I-Appliance BBS
The Official Source for Internet Appliance Upgrades and Mods
Amazon Honor System Click Here to Pay Learn More
BBS Main List | Sign In | Sign Up | Search | Help | Linux-Hacker.netReply to Thread | Printer |

Home / Network Computers / GallantWeb Server
LCD fun
lcdsetup command line

New MessageLCD fun (modified 0 times) Chiliblue
Profile
I still haven't cracked open my GW mainly because I want to figure out this lcd thing before replacing the OS.

It appears that the lcd_daemon simply rotates the characters sent to the lcd unit using lcdsetup.

If you kill the daemon /etc/rc.d/init.d/lcd_daemon stop
You can send text to the lcd like this
cd to the directory /usr/local/gallantweb/sbin
then type ./lcdsetup -c 1 -t HELLO-WORLD
and tada HELLO-WORLD will appear on the first line of the display.
./lcdsetup -c 2 -t 2nd-line will make "2nd-line" appear on the second.

If you just type ./lcdsetup you will be give a whole bunch of different commands and options to play with.

I realise this is no great brain work but I thought it was interesting, and a nice place to start. I really and confidant that the lcd related stuff can be transplanted into a more recent full linux distro and that the lcd_daemon could be changed to do a great deal more that it currently does.

I am not sure about the reboot and halt, ping stuff though.

02-05-2003 09:30:32

New MessageRE:LCD fun (modified 0 times) Chiliblue
Profile
Oh and just for the record it is a 2x16 unit, not a 2x15.

./lcdsetup -c 1 -t 1234567890123456

Fits you see :o)

02-05-2003 09:33:05

New MessageRE:LCD fun (modified 0 times) Chiliblue
Profile
Talking to myself here but...

[root@gweb sbin]# ./lcdsetup -c 7 0
Usage: lcdsetup -c command_code -f filename
or: lcdsetup -c command_code -t text
Command Code:
0: Ping the LCD module. text: any
1: Display text on line 1
2: Display text on line 2
3: Set special character
4: Set cursor position. text: "x,y" x:0-15, y:0-1
5: Set cursor style. text: "x" x:0-3
6: Set contrast. text: "x" x:0-100
7: Set backlight. text: "x" x:0-100
8: Set power-up text for line 1
9: Set power-up text for line 2
10: Set power-up special character
11: Set IP address. text: "a.b.c.d"
12: Get IP address. text: any
13: Set subnet mask. text: "a.b.c.d"
14: Get subnet mask. text: "x" x:0-1
15: Set gateway address. text: "a.b.c.d"
16: Get gateway address. text: any
17: Set serial number. text: "abcdefghijkl"
18: Get serial number. text: any
20: Set boot option. text: "x" x:0-1
21: Get boot option. text: any
22: Get firmware version. text: any

This one I like

./lcdsetup -c 7 -t 0

No backlight!!!

02-05-2003 10:01:17

New MessageRE:LCD fun (modified 0 times) Neb001
Profile
wow, thanks for all the info! so you think it'll be compatible with other linux distros? I'm currently debating on which distro to go with, red hat, debian, or something else?
02-05-2003 12:31:37

New MessageRE:LCD fun (modified 0 times) mrastudent
Profile
What we really need is a program for Windows (2k/XP/.NET, not 9x) that will control this LCD ;)
02-05-2003 14:46:49

New MessageRE:LCD fun (modified 0 times) orbillius
Profile | Email
I second that.
02-05-2003 15:00:17

New MessageRE:LCD fun (modified 0 times) Chiliblue
Profile
I think it is just a matter of trial and error on the windows front. Maybe start here

http://www.lcdmod.co.uk/downloads.htm

The unit seems pretty stand alone, and you would expect it to be fairly generic. It just seems to be a matter of sending data to it over the serial port in the correct format.

02-05-2003 15:34:19

New MessageRE:LCD fun (modified 2 times) luv2chill
Profile
Korashime posted this in the Yahoo Group:

I'm hoping that the software found at
http://www.crystalfontz.com/software/crystalcontrol/ will be able
to control the LCD screen in windows.

Right now my server is on the shelf. I have a few other
projects it must take a back seat to.

Anyway according to Varitronix's documentation, the LCD supports
HD44780 interfacing. The CrystalFontz software says it's not
recommended but does work..sometimes.

Good luck.

--------------------------------------
Apparently the Crystalfontz software only supports HD44780 with a parallel interface. The GW500 uses a serial interface. Has anyone tried LCDriver 2.0? Not only does it support HD44780 with certain serial interfaces it is supposed to be able to control the keypads.

Can someone with Windows 2000/XP on their GW500 install the LCDriver software and let us know if it works?

Thanks

Dan

Edit: I'm sure a link would come in handy ;)

http://lcdriver.pointofnoreturn.org/

Edit2: Whoops... I didn't notice that v2.0 of LCDriver isn't out yet. Nevertheless, version 1.2 should still work with the HD44780, just no keypad support.

02-05-2003 15:35:13

New MessageRE:LCD fun (modified 0 times) orbillius
Profile | Email
I will try this tonight and report back. Running windows xp.
02-05-2003 15:45:29

New MessageRE:LCD fun (modified 0 times) orbillius
Profile | Email
ok. I have lcd driver running and I am not sure which com port it is running under, and what baud rate it operated at. On soem come ports I see that it is in use and I have to go to the registy to reset the in use value. I guess I need more complete information before my tests can me useful. Any advise would be appreciated. until then I will continue to try different combinations.
02-05-2003 20:21:52

New MessageRE:LCD fun (modified 0 times) LeakyFaucet
Profile
OK, I tried several programs for Windows and no go....
Windows 2000 SP3, that is.

In any event, I'm pretty sure that the LCD is setup on COM2 @ 9600 BPS.
Anybody get any good results?

Linux users can't have ALL the fun!


Dood, I STILL suck...
02-05-2003 20:59:37

New MessageRE:LCD fun (modified 0 times) orbillius
Profile | Email
Here is my confusion. When I unplug the lcd form the motherboard I still get the standatd Gallantweb display on the lcd. When I set it to com 2 an hit test with lcddriver I get some flickering, but no change in display. This message must be hard coded into the lcd? How can linus overcome this? This is past my knowledge lever for sure. I will continue to investigate.
02-05-2003 21:21:53

New MessageRE:LCD fun (modified 0 times) Korashime
Profile | Email
My bad on the link.
I missed that it's was only for parallel.
Really need to pay better attention to detail.

I also found the LCDriver 1.2 link, and was hopefull
that it would provide the solution. Saddened to hear
that it doesn't.

Knowing what the interface chip is looking for by way of
input...wonder how hard it will be to write something in C?


Temet Nosce
02-06-2003 00:52:43

New MessageRE:LCD fun (modified 0 times) ChocoNutDancer
Profile | Email
this might be a silly question but has anyone asked Gallant
for info on the LCD display and buttons?

they just might say "yah sure, I'll fax/email it to you".

02-06-2003 05:19:19

New MessageRE:LCD fun (modified 0 times) Chiliblue
Profile
I am not suprised at the constant GallantWeb display in the LCD.

If you look at the output from lcdsetup it explains what it does. As well as simply sending text to the lcd. You can also send text that appears to be stored locally on the lcd unit. Certain settings are sent to the unit on boot, like the host name and ip etc. The GallantWeb is just one of the settings.

The main thing for me is the independance of the device. Information is sent and there it stays untill new information is sent. The daemon seems to simply rotate the information sent to the unit at a set interval.

As far as the buttons are concerned, I think a couple of things are happening, one it is changing the display (that may not involve the pc at all) and secondly it is sending some signal to the motherboard which is then envoking the the reboot or shut down.

I haven't tried it yet but it would be interesting to cat the ttyS1 when the daemon is not running to see if the signal sent comes up. Now it is entirely possible that the button side of the unit doesn't even need the lcd_daemon running to function there could be another routine running to catch the signal comming from the lcd buttons.

02-06-2003 12:37:12

New MessageRE:LCD fun (modified 0 times) Chiliblue
Profile
Answering myself again confirmed.

This is what is going on with the LCD.

I was wrong on some counts but....

The daemon is controlling the effect of the buttons totally, i.e it changes what is shown on the screen when a button is pressed. The it proforms the action selected.

So with the daemon stopped the screen will not update even when the buttons are pressed, it will just continue displaying the last thing sent to the screen.

I cat'd /dev/ttyS1 with the daemon stopped and sure enough it comes up when you press the bottons, each button has its own individual signal.

here I pressed all buttons one more than the others as you should see.

[root@gweb network-scripts]# cat /dev/ttyS1
÷ÓÐ÷ÓÐ÷ÓÐl¤HâPuTTY~ZÁÁ­9

Not sure how all this helps, I know I understand what is going on...just I can't code for it :oP

02-06-2003 14:36:40

New MessageRE:LCD fun (modified 0 times) wfay
Profile
[root@gweb network-scripts]# cat /dev/ttyS1
÷ÓÐ÷ÓÐ÷ÓÐl¤HâPuTTY~ZÁÁ­


That ugliness is due to your telnet/ssh client (Putty). If you get a native console on the box, the output should be more legible/understandable. Or just pipe the outfrom from cat /dev/ttyS1 to a file and then check it out. I will hack around with this LCD and the keys as I have time and report back, though I doubt much of my answers will be helpful for the Windows crowd, you're on your own. =)

Wayne

02-06-2003 16:41:39

New MessageRE:LCD fun (modified 0 times) catastrophe
Profile
Any progress on getting the LCD to work in Windows?
09-08-2004 12:51:47

Reply to Thread | Printer |
All times are PSTPowered by UltraBoard v1.62



Copyright © 2000, Netmake Inc. All Rights Reserved.
See Terms and Conditions for more information.




i-opener opener laptop notebook computer help drivers dll free windows dos repair fix linux mac macintosh 2000 95 98 nt pc configure hardware software sound video netscape explorer network networking lan wan software cmos fat bios printer card mouse modem ide scsi cd rom controllers scanner tape hard drive cgi scripts source code mp3