[Lcdproc] Re: lcdproc-0.5.1 and serialized HD44780 on k-data wake-up 2.0 module

Markus Schorer ms@plain.de
Mon Feb 5 12:22:01 2007


hi,

after playing/working more on the LoS firmware/driver:

Matteo Pillon wrote:
>> One level, the "offbrightness", is for the case backlight off and the
>> other one "brightness" is for the case backlight on.
> Uhmmm... I see, now I understand. Very good!!
> Markus, consider this when working on los.

implemented it. implemented contrast too.
i'm not sure if i did it right though:
i had to declare the set_/get_contrast functions in hd44780.c/.h just as 
i did for set_/get_brightness.

did really no hd44780 driver ever use/implement this?

>>> Let me/us know how it's proceeding with los ;-).
>> Please Bernd and Markus test and report feedback.

when implementing the above functions, i tried to test the settings with 
LCDd's server-menu. i _never_ managed to get a undisturbed display with 
the original firmware/driver. as far as i could debug, it seemed that 
pressing the buttons led to rx-overflows in the avr which naturally 
killed the protocol.

@erik: did this work for you? setting heartbeat on/off/open?

i then did the following:

in the driver:
- changed protocol to:
   - data
   - ESC+FCODE+PARAM : only single escape char needed
- implemented byte stuffing for escape-code in data (can do binary data)
- modified scankeypad to use select

in the firmware:
- changed rx/tx to use interrupts and ringbuffers
- changed the protocol to match driver
- using 2 pwm-outputs for contrast/backlight
- rearranged pin-mappings
- reworked code to use "busy-waiting" only for buttons (my avr doesn't 
support input change INTs), could use power-down modes

now my display works as expected, even in LCDd's menu.

up next:
- adding usb-serial-emulation
- converting it to a generic-controller interface (like a 
connection-type, but for other controllers like sed1335)

i'm not sure how to proceed:
- it's no longer a normal "LoS", as the firmware _and_ protocol are 
heavily changed
- the protocol is yet another variant of the ESC+X variants in 
hd44780-serial
- i'd like to become it a generic serial interface for all bus-type 
controllers

what do you think?

markus
-- 
_______________________________________________________________________
plain GmbH        | daiserstrasse 15      | 81371 münchen
fon 089.540.149.0 | fax 089.540.149.44    | http://www.plain.de