GPS Sensors
From Combustory
(Difference between revisions)
Combustor (Talk | contribs)
(New page: =Pharos GPS-500= ==Device Set Up on Linux== * Plug in GPS-500 device to a USB port * Search for device on computer lsusb This command should result in a finding the Prolific Tech. lin...)
Newer edit →
(New page: =Pharos GPS-500= ==Device Set Up on Linux== * Plug in GPS-500 device to a USB port * Search for device on computer lsusb This command should result in a finding the Prolific Tech. lin...)
Newer edit →
Revision as of 02:37, 6 December 2010
Pharos GPS-500
Device Set Up on Linux
- Plug in GPS-500 device to a USB port
- Search for device on computer
lsusb
This command should result in a finding the Prolific Tech. line as seen below.
example output:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 008: ID 067b:aaa0 Prolific Technology, Inc. Prolific Pharos Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
- Search for a tty device
ls /dev
Look for a tty device
View Data
- You may need to use sudo to allow permissions to the tty.
- This command will output troubleshooting info from the server process.
- This command will set the device to allow you to log data via tail or cat
stty -F /dev/ttyUSB0 cs8 4800 ignbrk -brkint -icrnl -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke noflsh -ixon -crtscts
- View raw data after stty command
cat /dev/ttyUSB0
- Log Data - You will need to manage the log file sizes
cat /dev/ttyUSB0 >> gps_log