Difference between revisions of "SW startup guide for Vayu GPS"

From Yantrr Wiki
Jump to: navigation, search
(Using GPS module with Debian Wheezy)
(Using GPS module with Debian Wheezy)
Line 22: Line 22:
  
 
<pre>
 
<pre>
''cd /lib/firmware''
+
# cd /lib/firmware
  
''echo BB-UART4 > /sys/devices/bone_capemgr.9/slots''
+
#echo BB-UART4 > /sys/devices/bone_capemgr.9/slots''
 
</pre>
 
</pre>
  
Line 30: Line 30:
  
 
<pre>
 
<pre>
''cat /sys/devices/bone_capemgr.9/slots''
+
# cat /sys/devices/bone_capemgr.9/slots''
  
 
</pre>
 
</pre>
Line 49: Line 49:
  
 
<pre>
 
<pre>
''apt-get install minicom''
+
# apt-get install minicom''
  
''minicom –s'' (port settings /dev/ttyO4 19200 8N1 )
+
# minicom –s'' (port settings /dev/ttyO4 19200 8N1 )
 
</pre>
 
</pre>
 
or  
 
or  
Line 57: Line 57:
 
<pre>
 
<pre>
  
''stty –F /dev/ttyO4 19200 raw''
+
# stty –F /dev/ttyO4 19200 raw''
 
+
#cat /dev/ttyO4''
''cat /dev/ttyO4''
+
  
 
</pre>
 
</pre>
  
 
For more information and detailed guide on Time synchronization and GPS Location , please refer to the App note -[[Configuring_for_GPS_Location_and_Time_Synchronization | GPS Location and time synchronization ]]
 
For more information and detailed guide on Time synchronization and GPS Location , please refer to the App note -[[Configuring_for_GPS_Location_and_Time_Synchronization | GPS Location and time synchronization ]]

Revision as of 20:19, 11 March 2014

Vayu-2GP-A, Vayu-3GHP-A, VAYU-3GCP-A and VAYU-P cape come with a GPS module.

Hardware Instructions

It has following interfaces available to user and for connecting to Beaglebone Black :

  1. UART4 (/dev/ttyO4): It is used for reading the GPS NMEA messages from UART port of GPS module. It should be configured for use at baud rate 19200 raw after ttyO4 has been enabled in the kernel by applying device tree overlay for UART4. Refer Some_Link.
  2. GPIO50: It is used for resetting the GPS modules. It should be pulled high all the time.
  3. GPIO27 : It is used as an input GPIO to receive 1 PPS output from the GPS module.
  4. Switch S3 on Cape : It is push button Reset switch. To reset the module , push this button for atleast 1 sec or set the reset GPIO50 low for atleast 1 sec.
  5. LED D5 on Cape:It is GPS fix LED of the GPS Module. When the Module has acquired GPS fix, this LED starts blinking at 1s OFF/1s ON . Also 1PPS output can be detected at GPIO27 after that.
  6. LED D7 on Cape : It is 3.3V power LED for cape. It indicates that the GPS module is powered on.

Connect the GPS antenna at SMA connector P6 and place the antenna under open sky for better operations and Boot up Beaglebone Black with cape mounted on it. Notice LED D7 powering up.

Depending on the GPS module had a cold start, warm start or hot start , You should soon see LED D5 to start blinking, denoting that GPS Fix has been acquired.

Using GPS module with Debian Wheezy

To read the NMEA messages from the GPS Module on Beaglebone Black :

  • Enable UART4 (/dev/ttyO4) in device tree kernel.
# cd /lib/firmware

#echo BB-UART4 > /sys/devices/bone_capemgr.9/slots''

You can read the slots or use dmesg to see that UART4 has been enabled.

# cat /sys/devices/bone_capemgr.9/slots''

Output will be like this :

''0: 54:PF---''
''1: 55:PF---''
''2: 56:PF---''
''3: 57:PF---''
''4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G''
''5: ff:P-O-L Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI''
''7: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART4''
  • Install Minicom or use the following commands to see NMEA messages
# apt-get install minicom''

# minicom –s'' (port settings /dev/ttyO4 19200 8N1 )

or


# stty –F /dev/ttyO4 19200 raw''
#cat /dev/ttyO4''

For more information and detailed guide on Time synchronization and GPS Location , please refer to the App note - GPS Location and time synchronization