From: Hossein G. N. <hgn...@gm...> - 2006-11-04 16:30:50
|
Hello All, I am having a bit of problem on "make"ing and compiling the serial-log.cwith my buildroot. Attached are all files that are currently in my serial-log directory and the following is the error message that I get: >>>>>>>>>>>>>>>>>>>>>>>>>> [root@localhost ~]# cd serial-log/ [root@localhost serial-log]# [root@localhost serial-log]# make /staging_dir/bin/arm-linux-uclibc-gcc -O2 -Wall -I . -I ../Common -I ../../Shared -Os -march=armv5te -mtune=xscale -Wa,-mcpu=xscale -c -o serial-log.o serial-log.c make: /staging_dir/bin/arm-linux-uclibc-gcc: Command not found make: *** [serial-log.o] Error 127 [root@localhost serial-log]# >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> I am able to compile and make hello-world.c without any problem and I think that I do have the arm-linux-uclibc-gcc. It may be something very basic, however your help is greatly appreciated. Best Regards, HoSsEiN |
From: Rodrigo S. <rod...@gm...> - 2006-11-04 17:08:41
|
Hi Hossein, At first glance, it seems that the path on the makefile is wrong, because the "Command not found" message. Try to find manually the path to: arm-linux-uclibc-gcc and compare that with the Makefile from the hello-world.c that is actually working (if that Makefile is working, you can deduce the path from there too) Telling us where did you installed the gumstix-buildroot in your disk will help in the way someone here can correct your Makefile. Hope it works regards Rodrigo On 11/4/06, Hossein Ghaffari Nik <hgn...@gm...> wrote: > > > Hello All, > > I am having a bit of problem on "make"ing and compiling the serial-log.cwith my buildroot. > Attached are all files that are currently in my serial-log directory and > the following is the error message that I get: > > >>>>>>>>>>>>>>>>>>>>>>>>>> > [root@localhost ~]# cd serial-log/ > [root@localhost serial-log]# > [root@localhost serial-log]# make > /staging_dir/bin/arm-linux-uclibc-gcc -O2 -Wall -I . -I ../Common -I > ../../Shared -Os -march=armv5te -mtune=xscale -Wa,-mcpu=xscale -c -o > serial-log.o serial-log.c > make: /staging_dir/bin/arm-linux-uclibc-gcc: Command not found > make: *** [serial-log.o] Error 127 > [root@localhost serial-log]# > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> > > I am able to compile and make hello-world.c without any problem and I > think that I do have the arm-linux-uclibc-gcc. > > It may be something very basic, however your help is greatly appreciated. > > Best Regards, > HoSsEiN > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > > > |
From: Dave H. <dhy...@gm...> - 2006-11-04 17:14:08
|
Hi Hosein, > I am having a bit of problem on "make"ing and compiling the serial-log.c > with my buildroot. > Attached are all files that are currently in my serial-log directory and the > following is the error message that I get: The simplest way to build serial-log is to grab the robostix tree and place it beside the gumstix-buildroot tree. The serial-log program depends on several other files located throughout the tree. If you put it in the tree where it was intended to go, then you shouldn't need to make any changes to the Makefile. If you want to collect all of the files together in a single directory, then I can show you how to modify the Makefile to work like that. Let me know which way you want to proceed. -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/ |
From: Dave H. <dhy...@gm...> - 2006-11-04 20:20:46
Attachments:
Makefile
|
Hi Hossein, > I have installed the latest buildroot and my files are located in my root > directory. (/root/gumstix-buildroot) > >>>>>>>>>>>>>>>>>>>>>>>>>>>> > [root@localhost ~]# ls > anaconda-ks.cfg gumstix-buildroot hello-world-cpp > install.log.syslog Desktop hello-world > install.log serial-log > [root@localhost ~]# > >>>>>>>>>>>>>>>>>>>>>>>>>>>> So you'll need to copy the following files into the serial-log directory robostix/Shared/Log.h robostix/Shared/Log.c robostix/gumstix/Common/SerialLog.h robostix/gumstix/Common/SerialLog.c You can grab the files from here: <http://websvn.gumstix.com/listing.php?repname=Buildroot&path=%2Fbranches%2Fprojects%2Frobostix%2F&rev=0&sc=0> You'll need to browse into the various subdirectories. I took the Makefile for hello-world and modified it -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/ |
From: Hossein G. N. <hgn...@gm...> - 2006-11-05 00:14:36
|
Dave, WoW ... It worked like a charm! I did download all those file you specified and used your make file and it worked. I transferred them to my CF card and here it is: >>>>>>>>>>>>>>>>>>>>>>>>>>>> # cd /mnt/cf # ls Log.o SerialLog.o serial-log serial-log.o # # ./serial-log Logging /dev/ttyS2 @ 38400 baud, press Ctrl-C to quit... Shutting down... # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Thanks very much for you help! I have some more questions ... " At this time I don't have anything connected to my breakout-gs board, but when I do have something: - This logging that is being done by this program where is it being saved? (is it going to be only shown on the screen?). - I know that the serial ports on breakout-gs is 3V TTL . If I connect a 3V TTL input to one of the ports will I be logging 0's and 1's or I have to do more decoding for there. - Can I use the same program for sending serial data out to the breakout board's port? " I really really appreciate your time and efforts. Best Regards, HoSsEiN On 11/4/06, Dave Hylands <dhy...@gm...> wrote: > > Hi Hossein, > > > I have installed the latest buildroot and my files are located in my > root > > directory. (/root/gumstix-buildroot) > > >>>>>>>>>>>>>>>>>>>>>>>>>>>> > > [root@localhost ~]# ls > > anaconda-ks.cfg gumstix-buildroot hello-world-cpp > > install.log.syslog Desktop hello-world > > install.log serial-log > > [root@localhost ~]# > > >>>>>>>>>>>>>>>>>>>>>>>>>>>> > > So you'll need to copy the following files into the serial-log directory > robostix/Shared/Log.h > robostix/Shared/Log.c > robostix/gumstix/Common/SerialLog.h > robostix/gumstix/Common/SerialLog.c > > You can grab the files from here: > < > http://websvn.gumstix.com/listing.php?repname=Buildroot&path=%2Fbranches%2Fprojects%2Frobostix%2F&rev=0&sc=0 > > > You'll need to browse into the various subdirectories. > > I took the Makefile for hello-world and modified it > > -- > Dave Hylands > Vancouver, BC, Canada > http://www.DaveHylands.com/ > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > > > |
From: Dave H. <dhy...@gm...> - 2006-11-05 18:15:09
Attachments:
serial-log.c
|
Hi Hossein, > I have some more questions ... > " > At this time I don't have anything connected to my breakout-gs board, but > when I do have something: > This logging that is being done by this program where is it being saved? (is > it going to be only shown on the screen?). Yes, currently the logged output is only saved to the screen. You can use the tee program to log the output to a file: serial-log | tee logfile.txt > I know that the serial ports on breakout-gs is 3V TTL . Actually, it's 3.3v > If I connect a 3V > TTL input to one of the ports will I be logging 0's and 1's or I have to do > more decoding for there. It logs characters, not the raw 0's and 1's. > Can I use the same program for sending serial data out to the breakout > board's port?" With a few mods, yes. I've attached an updated serial-log.c which takes stdin and sends it down to the serial port. -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/ |
From: Hossein G. N. <hgn...@gm...> - 2006-11-13 23:50:11
|
Dave, I have been struggling with this serial-log.c program, I have modified it to my needs and I am able to compile and run it on my Gumstix. My goal is to record from a GPS receiver with about 3V TTL level output through the serial input/outputs of the breakout-gs board. " I have already tested this GPS with my computer serial port (I believe 5V TTL). I had to do level shifting (MAXIM233) to be able to recognize and receive characters into my hyperterminal. The output of the MAX level shifter that I measured was about 18V p-p going into my serial port of the PC!" Now my question is: - "when we say that gumstix has 3.3V TTL serial ports, do we mean that everything above the 3.3V is a one?" or better said : - "What is the maximum safe input peak-to-peak that I can get into the serial ports of breakout-gs without damaging it?" - How do I know which one of the physical connections on the breakout-gs board is the which serial device in the /dev/ folder (ttys0/1 or 2)?" Your help is greatly appreciated! Best Regards HoSsEiN |
From: Dave H. <dhy...@gm...> - 2006-11-14 05:08:27
|
Hi Hossein, > Now my question is: > "when we say that gumstix has 3.3V TTL serial ports, do we mean that > everything above the 3.3V is a one?" or better said : No. The max input voltage on a 3.3v logic level signal is 3.3v (at least on the PXA255). > "What is the maximum safe input peak-to-peak that I can get into the serial > ports of breakout-gs without damaging it?" It only accepts voltages between 0v and 3.3v. Voltges between 0v and 0.66v are considered a logic zero, and voltages between 2.64v and 3.3v are considered a logic 1. Anything above 3,3v or below 0v may damage the circuitry and anything in between 0.66v and 2.64v is not guaranteed to have a deterministic result. You should probably take a look at this page: http://docwiki.gumstix.org/Serial_voltages > How do I know which one of the physical connections on the breakout-gs board > is the which serial device in the /dev/ folder (ttys0/1 or 2)?" When the gumstix boots up, it prints the following in the log: pxa2xx-uart.0: ttyS0 at MMIO 0x40100000 (irq = 15) is a FFUART pxa2xx-uart.1: ttyS1 at MMIO 0x40200000 (irq = 14) is a BTUART pxa2xx-uart.2: ttyS2 at MMIO 0x40700000 (irq = 13) is a STUART pxa2xx-uart.3: ttyS3 at MMIO 0x41600000 (irq = 0) is a HWUART You could also refer to: http://docwiki.gumstix.org/Gumstix_UARTs -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/ |
From: Hossein G. N. <hgn...@gm...> - 2006-11-14 06:56:53
|
Dave, Thanks for the quick response. I have tried all of the RX connections on the breakout-gs with the TX connection of my GPS and I have not seen any output yet! I am using: http://www.sparkfun.com/datasheets/GPS/EM-406%20Product_Guide1.pdf as my GPS. Do you have any idea about why I am not seeing anything on my screen! Your help is greatly appreciated. Best Regards, HoSsEiN. |
From: Dave H. <dhy...@gm...> - 2006-11-14 07:25:59
|
Hi Hossein, > I have tried all of the RX connections on the breakout-gs with the TX > connection of my GPS and I have not seen any output yet! > > I am using: > http://www.sparkfun.com/datasheets/GPS/EM-406%20Product_Guide1.pdf > as my GPS. > > Do you have any idea about why I am not seeing anything on my screen! What voltage are you supplying the GPS? Did you connect up the ground to the ground on the breakout-gs (with no common ground they won't communicate). Did you connect up both grounds on the GPS? Is the LED on the GPS doing anything? Have you tried connected the Tx to Rx on the breakout (no GPS) and verify that you can receive what you send? The docs say it communicates at 4800 baud. You should see data even if you don't have a fix. How are you trying to read the serial port on the gumstix? -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/ |
From: Hossein G. N. <hgn...@gm...> - 2006-11-17 22:06:44
|
Dave, I got it to work! I had everything setup the way you suggested but I could not get anything from any of the RX connections on my breakout-gs! And that's when I found out that: On R277 of the breakout GS I2C is labelled incorrectly. Is swapped with STUART silkscreen. RXD <-> SCL TXD <-> SDA So, now by connecting to SCL I am able to see my GPS data and also log them into a text file by the tee command. I was also able to send info out of the TX using the modified serial-log.cthat you gave me. THANKS ALOT !!! Now: - Do you know of any programs/codes suitable for Gumstix that I can use to decode the output messages (NMEA 0183 GGA, GSA, GSV, RMC, VTG, GLL) from my GPS? I would really appreciate it if you could give me some insights about them. - Also, I am planning to have the Gumstix run independently and communicate with the GPS and other parts without being connected to a PC. How can I make the Gumstix run my programs automatically every time that it boots up? - I am planning to extend the Bluetooth antenna out from the Gumstix board using an MMCX extension cable (2-3 inches). Do you think that might create any problems with the Bluetooth? I really appreciate your time and efforts. Best Regards, HoSsEiN On 11/14/06, Dave Hylands <dhy...@gm...> wrote: > > Hi Hossein, > > > I have tried all of the RX connections on the breakout-gs with the TX > > connection of my GPS and I have not seen any output yet! > > > > I am using: > > http://www.sparkfun.com/datasheets/GPS/EM-406%20Product_Guide1.pdf > > as my GPS. > > > > Do you have any idea about why I am not seeing anything on my screen! > > What voltage are you supplying the GPS? > > Did you connect up the ground to the ground on the breakout-gs (with > no common ground they won't communicate). Did you connect up both > grounds on the GPS? > > Is the LED on the GPS doing anything? > > Have you tried connected the Tx to Rx on the breakout (no GPS) and > verify that you can receive what you send? > > The docs say it communicates at 4800 baud. > > You should see data even if you don't have a fix. > > How are you trying to read the serial port on the gumstix? > > -- > Dave Hylands > Vancouver, BC, Canada > http://www.DaveHylands.com/ > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > |
From: Dave H. <dhy...@gm...> - 2006-11-17 22:16:54
|
Hi Hossein, > Do you know of any programs/codes suitable for Gumstix that I can use to > decode the output messages (NMEA 0183 GGA, GSA, GSV, RMC, VTG, GLL) from my > GPS? I would really appreciate it if you could give me some insights about > them. gpsd has been used by others on the gumstix. It parses the stream, and you can connect to it via TCP/IP (either from the local machine or from a remote machine). > Also, I am planning to have the Gumstix run independently and communicate > with the GPS and other parts without being connected to a PC. How can I > make the Gumstix run my programs automatically every time that it boots up? Add a file to the /etc/init.d directory. The file needs to start with a capital S and be followed by a two digit number and then anything else you want. Here's an example here: <http://websvn.gumstix.com/filedetails.php?repname=Buildroot&path=%2Fbranches%2Fprojects%2Frobostix%2Fgumstix%2FS10robostix&rev=0&sc=0> Make sure that the script is marked executable, and has linux line endings. You should be able to run /etc/init.d/S10robostix start (or use the real name of your script). The scripts are started up in ascending order by the 2-digit number. > I am planning to extend the Bluetooth antenna out from the Gumstix board > using an MMCX extension cable (2-3 inches). Do you think that might create > any problems with the Bluetooth? As long as it's a proper shielded cable, it should be fine. -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/ |
From: Hossein G. N. <hgn...@gm...> - 2006-11-18 22:08:06
|
Dave, I looked into the gpsd and added it from "make menuconfig" to my buildroot. I am currently replacing my image files on my Gumstix. I also looked in this website: >>> http://gpsd.berlios.de/index.html Do I get all the functionality that is explained here by the what I got with my buildroot or do I have to download each one of these separately! If I need to download them, where do they go ? my PC or directly in the Gumstix? Also, I am not trying to use the TCP/IP. My goal is to save the position from GPS in a file for tracking/logging. I hope that I can do this with gpsd. The other tasks are currently pending. Your time and effort is greatly appreciated. Best Regards, HoSsEiN On 11/17/06, Dave Hylands <dhy...@gm...> wrote: > > Hi Hossein, > > > Do you know of any programs/codes suitable for Gumstix that I can use to > > decode the output messages (NMEA 0183 GGA, GSA, GSV, RMC, VTG, GLL) from > my > > GPS? I would really appreciate it if you could give me some insights > about > > them. > > gpsd has been used by others on the gumstix. It parses the stream, and > you can connect to it via TCP/IP (either from the local machine or > from a remote machine). > > > Also, I am planning to have the Gumstix run independently and > communicate > > with the GPS and other parts without being connected to a PC. How can I > > make the Gumstix run my programs automatically every time that it boots > up? > > Add a file to the /etc/init.d directory. The file needs to start with > a capital S and be followed by a two digit number and then anything > else you want. Here's an example here: > < > http://websvn.gumstix.com/filedetails.php?repname=Buildroot&path=%2Fbranches%2Fprojects%2Frobostix%2Fgumstix%2FS10robostix&rev=0&sc=0 > > > > Make sure that the script is marked executable, and has linux line > endings. You should be able to run > > /etc/init.d/S10robostix start > > (or use the real name of your script). The scripts are started up in > ascending order by the 2-digit number. > > > I am planning to extend the Bluetooth antenna out from the Gumstix board > > using an MMCX extension cable (2-3 inches). Do you think that might > create > > any problems with the Bluetooth? > > As long as it's a proper shielded cable, it should be fine. > > -- > Dave Hylands > Vancouver, BC, Canada > http://www.DaveHylands.com/ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > |