From: surendranath g <sur...@ya...> - 2006-02-20 06:55:52
|
Hi Dave, I connected the LCD to serial port /dev/ttyS0 using a serial null modem cable and a gender changer. ( Normally this is the line i hyperm to, when I load images). Then I did an SSH to the gumstix and ran the following program. ./test633 /dev/ttyS0 19200 does not display anything on the LCD. But may be I should a different serial port thanks a lot. Surendra --- Dave Hylands <dhy...@gm...> wrote: > Hi Surenda, > > On 2/19/06, surendranath g <sur...@ya...> > wrote: > > > After compiling and loading on gumstix, test633 is > > supposed to talk to an LCD through the serial port > on > > gumstix, on redhat it sends a signal to the > display > > but not on gumstix. I dont know if its an IO issue > or > > a compiler issue or something else. > > I didn't realize that the code was designed to talk > to an LCD. > > I doubt very highly that it's got anything to do > with the compiler. > > Did you configure the appropriate lines to be > serial? > > For /dev/ttyS2 you need to do: > > modprobe proc_gpio > echo "AF2 in" > /proc/gpio/GPIO46 > echo "AF1 out" > /dev/gpio/GPIO47 > > I ran the tes633 program I compiled and I saw this > on my terminal > program connected to /dev/ttyS2: > > >This is line 1< > >This is line 2< > > with some control characters before and after each > line. > > How did you connect the LCD to the gumstix (i.e. > what exact cables did you use? > > -- > Dave Hylands > Vancouver, BC, Canada > http://www.DaveHylands.com/ > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do > you grep through log files > for problems? Stop! Download the new AJAX search > engine that makes > searching your log files as easy as surfing the > web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > |