From didik@dsp.itb.ac.id Fri Aug 1 12:36:03 2008 From: didik@dsp.itb.ac.id (Eko Didik Widianto) Date: Fri Aug 1 12:36:03 2008 Subject: [Lcdproc] USB CS-LCD for HD44780 module Message-ID: <20080801193505.27c779f0.didik@dsp.itb.ac.id> hello, i'm developing usb interface board for HD44780 alphanumeric LCD module.=20 That board has the following features: * designed for both 2=D716 and 4=D720 character LCD * supports 32-keys scanning input * software-controlled backlight * display contrast adjustment * provides USB type-B interface and 4-pin SIP connector * supports special characters * provides 4 ports GIO interface * No external power suppy * without FIRMWARE and kernel module driver. It uses libusb for board detec= tion, data and control transfer * tested using lcdproc (patched version) in Linux it needs server driver patch. i hope i can share it to you. currently, only board prototype is available. please see http://edwidianto.= wordpress.com/2008/08/01/power-up-usb-cs-lcd/ for detail. thank you, -eko didik widianto From erik@frenchguys.com Fri Aug 1 14:41:03 2008 From: erik@frenchguys.com (Erik Dasque) Date: Fri Aug 1 14:41:03 2008 Subject: [Lcdproc] LCDproc on DIY USB (serial) LCD on Mac OS X (10.5.4) In-Reply-To: References: Message-ID: <04BDC8EC-6FD8-47A8-A1FC-D67AA221CF2C@frenchguys.com> hmmm, no responses yet. Could it be that I need libftdi installed ? The LCD is showing some text, some garbled characters too as you can see from the youtube videos. There isn't much in the doc about the FTDI driver, any pointers ? Erik On Jul 24, 2008, at 10:38 PM, Erik Dasque wrote: > Hi all, > > I just started looking at LCDproc and I have a million questions, > hopefully you guys will be able to help answer some of them. > > Without anything connected just yet, I got LCDd running on Mac OS X > with ncurses. I have built the nightly tarball on my system > (removing the reference to kvm.h) and I can launch LCDd. I can also > launch LCDproc which connects to LCDd and displays the different > screens well. > > Now to the hardware. > > I am using a Sparkfun Breakout Board for FT232RL USB to Serial (http://www.sparkfun.com/commerce/product_info.php?products_id=718 > ) and a Sparkfun Serial Enabled 16x2 LCD - ( http://www.sparkfun.com/commerce/product_info.php?products_id=813 > ). I can give you a bit more information on the setup if you need > any, it's pretty much $40 worth of hardware. > > I am able to establish a serial communication with the device and > the characters I type (as well as control sequences) do appear on > the LCD using: > screen /dev/tty.usbserial-A8003TFi 9600 > > The LCD uses a HD44780 controller coupled with a "SerLCD backpack.. > [which]... takes care of all the HD44780 commands allowing seamless > integration with any micro that can communicate at 9600bps TTL > serial". It obeys the HD44780 commands (clear, move cursor, > scroll, ...). > > So I chose the HD44780 driver and it seemed that the closest > connection type is picanlcd. This is what I get, I think it's pretty > close about as you see there is quite a bit of garbage. > > with PicanLCD: http://youtube.com/watch?v=tjFTjKKs0mM > > With lcdserializer, we're getting closer I think, as you can see the > boot and shut down messages display correctly. At this point, I > wonder if it's just the default message that doesn't play well in > 16x2 or maybe some weird characters are not interpreted correctly > (the hearts ?). I am not very familiar with the clients yet so I > don't know what to try out that would be simpler. Unless there is a > unit testing type client that attempts more and more complex > operations. > > With lcdserializer: http://youtube.com/watch?v=9G6O0pO0wt4 > > I also tried pertelian which gives me the same result as > lcdserializer (hearts, some scrolling on top but erratic, nothing > much changing at the bottom). Same thing with vdr-lcd and los-panel. > > I think I am very close, I hope I documented it enough to get some > help. Any suggestion ? > > Thanks in advance, > > Erik > > ---------------------------------------------------------------------------------- > P.S. here are my HD44780 parameters: > > ## Hitachi HD44780 driver ## > [hd44780] > > ConnectionType=lcdserializer > #ConnectionType=picanlcd > #ConnectionType=pertelian > > Port=0x378 > Device=/dev/tty.usbserial-A8003TFi > Speed=9600 > > Keypad=no > Contrast=0 > Backlight=no > OutputPort=no > > Size=16x2 > > #ExtendedMode=yes > > # Character map to to map ISO-8859-1 to the LCD's character set > # [default: hd44780_default; legal: hd44780_default, ea_ks0073, > sed1278f_0b ] > Charmap=hd44780_default > > # If your display is slow and cannot keep up with the flow of data > from > # LCDd, garbage can appear on the LCDd. Set this delay factor to 2 > or 4 > # to increase the delays. Default: 1. > #DelayMult=2 > > # Some displays (e.g. vdr-wakeup) need a message from the driver to > that it > # is still alive. When set to a value bigger then null the character > in the > # upper left corner is updated every seconds. > Default: 0. > #KeepAliveDisplay=0 > > # If you experience occasional garbage on your display you can use > this > # option as workaround. If set to a value bigger than null it forces a > # full screen refresh seconds. Default: 0. > #RefreshDisplay=5 > > # You can reduce the inserted delays by setting this to false. > # On fast PCs it is possible your LCD does not respond correctly. > # Default: true. > DelayBus=true > > # If you have a keypad you can assign keystrings to the keys. > # See documentation for used terms and how to wire it. > # For example to give directly connected key 4 the string "Enter", > use: > # KeyDirect_4=Enter > # For matrix keys use the X and Y coordinates of the key: > # KeyMatrix_1_3=Enter > KeyMatrix_4_1=Enter > KeyMatrix_4_2=Up > KeyMatrix_4_3=Down > KeyMatrix_4_4=Escape > > _______________________________________________ > LCDproc mailing list > LCDproc@lists.omnipotent.net > http://lists.omnipotent.net/mailman/listinfo/lcdproc > From didik@dsp.itb.ac.id Fri Aug 1 19:47:01 2008 From: didik@dsp.itb.ac.id (Eko Didik Widianto) Date: Fri Aug 1 19:47:01 2008 Subject: [Lcdproc] LCDproc on DIY USB (serial) LCD on Mac OS X (10.5.4) In-Reply-To: <04BDC8EC-6FD8-47A8-A1FC-D67AA221CF2C@frenchguys.com> References: <04BDC8EC-6FD8-47A8-A1FC-D67AA221CF2C@frenchguys.com> Message-ID: <19602.202.93.37.88.1217619921.squirrel@mail.dsp.itb.ac.id> i guess it is because its actual writing to LCD is much slower than lcdproc buffer refresh time. applying mutex lock in hw_lcd_writing_routine and relaxing refresh time may help. -eko didik widianto > hmmm, no responses yet. Could it be that I need libftdi installed ? > The LCD is showing some text, some garbled characters too as you can > see from the youtube videos. There isn't much in the doc about the > FTDI driver, any pointers ? > > Erik >