Welcome, Guest
Username: Password: Remember me

TOPIC: Extrange home screen

Extrange home screen 3 years 11 months ago #458

  • lalo_uy
  • lalo_uy's Avatar
  • Offline
  • New Member
  • Posts: 18
  • Thank you received: 1
  • Karma: 0
I managed to compile brewtroller 2.6 on an arduino ide 1.6.9
Uploaded to and Arduino Mega2560
I have tried 1.0-2.1 HWprofile and 2.2-2.4 version with same results.
The home screen show the BT icon and the open lock in the other corner, but is filled with numbers.
nothing happens if I push the enter button. Some times the screen change to other numbers and CANCEL in the bottom.



Any clue?
Is there some docs about the serial protocol? or something like BTremote that can run on Linux?

Thanks in advance
Last Edit: 3 years 11 months ago by lalo_uy.
The administrator has disabled public write access.

Extrange home screen 3 years 11 months ago #461

  • jvetter
  • jvetter's Avatar
  • Offline
  • Senior Member
  • Posts: 62
  • Thank you received: 3
  • Karma: 1
I have seen weirdness with the LCD before, but never like that.

Couple of questions:
- Which BT board are you using?
- Which version of the LCD boot are you using?
- Has this LCD boot ever worked with the BT and encoder before this point?
- Did you change the software in anyway?
- Is BTNic responsive when you connect to it via serial?

It looks like all of the LCD.print_P calls are being turned into numbers for some reason. Those strings are pulled from the program space so not really sure what would cause that.

You may try initializing the EEPROM and reloading, but if the UI is hosed and BTNic is not responding, I'm not sure there is a way to do that.
The administrator has disabled public write access.

Extrange home screen 3 years 11 months ago #462

  • lalo_uy
  • lalo_uy's Avatar
  • Offline
  • New Member
  • Posts: 18
  • Thank you received: 1
  • Karma: 0
- Which BT board are you using?

I'm using an Arduino mega2560 board

- Which version of the LCD boot are you using?

the LCD is directil conected 4 bits

- Has this LCD boot ever worked with the BT and encoder before this point?

It work fine with the LCD examples from Arduino

- Did you change the software in anyway?

I have to add some "const" in orther to compile on 1.6.9

- Is BTNic responsive when you connect to it via serial?

Yes, it looks to work ok. I managet to write a perl program to decode the logs and it respons to some basic com as GET_BOIL

-It looks like all of the LCD.print_P calls are being turned into numbers for some reason. Those strings are pulled from the program space so not really sure what would cause that.

Yes It may be related to the "const" declaration.
The newer version of the compiler say:
variable 'xxxxxx' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

so I have added the sencnd const by example:

const char * const TITLE_MASHSTEP[] PROGMEM = {
DOUGHIN,
ACID,
PROTEIN,
SACCH,
SACCH2,
MASHOUT
};

May be now the print is taking the string as numbers insted of characters.
Curius the CANCEL text looks ok.

will try some test skeches.
The administrator has disabled public write access.

Extrange home screen 3 years 11 months ago #463

  • lalo_uy
  • lalo_uy's Avatar
  • Offline
  • New Member
  • Posts: 18
  • Thank you received: 1
  • Karma: 0
Now it hits to me that the same problem is on the tty log output.
I find wier that the log output sned 2 digit decimal coded charaters like:

68658565 insted of DATA

thats why I have to write som perl to "decode" de logs.
It mas be related to the const PROGMEN declaration.
The administrator has disabled public write access.

Extrange home screen 3 years 11 months ago #464

  • jvetter
  • jvetter's Avatar
  • Offline
  • Senior Member
  • Posts: 62
  • Thank you received: 3
  • Karma: 1
The brewtroller boards are built using atmega1284p and atmega644p which is bound to have some differences with mega2560.

My guess would be the way the libraries are setup or configured in the BT source is not compatible with your chip. Also, I would expect that the pin assignments may be slightly different.

Your answer probably lies in the differences between those two chips. Since we don't test our software outside of BT hardware, it's hard for me to say what the problem is.

Good Luck!
The administrator has disabled public write access.

Extrange home screen 3 years 11 months ago #465

  • lalo_uy
  • lalo_uy's Avatar
  • Offline
  • New Member
  • Posts: 18
  • Thank you received: 1
  • Karma: 0
I made some progress :

on Com.ino changed the printFieldPs changed the Serial.print to Serial.write as is stated in the doc for sending single chars.

Now the logs look ok.

void printFieldPS (const char *sText) {
while (pgm_read_byte(sText) != 0) {Serial.write(pgm_read_byte(sText++));}
Serial.print("\n");
}

Had to find the same for LCD
Last Edit: 3 years 11 months ago by lalo_uy.
The administrator has disabled public write access.
Time to create page: 0.102 seconds
Follow via Facebook Follow via Twitter

Login