GPS Sensors

From Combustory
(Difference between revisions)
Jump to: navigation, search
(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...)
 
 
(3 intermediate revisions by one user not shown)
Line 1: Line 1:
 +
<anyweb>http://combustory.com/wiki/ads/ad_rtc.html</anyweb>
 +
 +
{{default}}
 +
<anyweb>http://combustory.com/wiki/ads/ad_rtc_1.html</anyweb>
 
=Pharos GPS-500=
 
=Pharos GPS-500=
  
Line 8: Line 12:
 
  lsusb
 
  lsusb
  
This command should result in a finding the Prolific Tech. line as seen below.
+
This command should result in finding the Prolific Tech. line as seen below.
  
 
example output:
 
example output:
  
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
+
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 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 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 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 008: ID 067b:aaa0 Prolific Technology, Inc. Prolific Pharos
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
+
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  
 
* Search for a tty device
 
* Search for a tty device
Line 23: Line 27:
 
  ls /dev
 
  ls /dev
  
Look for a tty device  
+
Look for a tty device: ttyUSB0 or ttyUSB1 or any other ttyUSBx, which depends on how many USB serial devices you have set up. (This was done on Fedora, other OS's may have a different designation)
 
+
  
 
==View Data==
 
==View Data==
  
 
* You may need to use sudo to allow permissions to the tty.
 
* 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
 
* This command will set the device to allow you to log data via tail or cat
Line 42: Line 44:
  
 
  cat /dev/ttyUSB0 >> gps_log
 
  cat /dev/ttyUSB0 >> gps_log
 +
 +
* Log Data with Filter - This significantly cuts down on the number of strings and is really the only string you need.
 +
 +
cat /dev/ttyUSB0 | grep GPRMC >> gps_logs

Latest revision as of 19:46, 29 January 2011

Welcome to Combustory


Any questions or comments:

  • Send them to - combustor@combustory.com

Contents

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 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: ttyUSB0 or ttyUSB1 or any other ttyUSBx, which depends on how many USB serial devices you have set up. (This was done on Fedora, other OS's may have a different designation)

View Data

  • You may need to use sudo to allow permissions to the tty.
  • 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
  • Log Data with Filter - This significantly cuts down on the number of strings and is really the only string you need.
cat /dev/ttyUSB0 | grep GPRMC >> gps_logs
Personal tools
Sponsers
Your Ad Here
Your Ad Here