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

From Yantrr Wiki
Jump to: navigation, search
(Hardware Instructions)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Vayu-2GP-A, Vayu-3GHP-A, VAYU-3GCP-A and VAYU-P cape come with a GPS module.  
+
 
 +
 
 +
 
 +
The Vayu-2GP-A, Vayu-3GHP-A, VAYU-3GCP-A and VAYU-P capes come with a GPS module. For a quick guide to starting with the Vayu-P cape's HW, see [[media:Leaflet_for_Vayu_P_Cape.pdf| Leaflet for P cape]].
 +
 
 +
Below, we describe how to set up the GPS portion of the VAYU capes and the associated software.
 +
 
  
 
==Hardware Instructions==
 
==Hardware Instructions==
 
It has following interfaces available to user and for connecting to Beaglebone Black :
 
It has following interfaces available to user and for connecting to Beaglebone Black :
  
# '''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]].  
+
# '''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.
 
# '''GPIO50''': It is used for resetting the GPS modules. It should be pulled high all the time.
 
# '''GPIO50''': It is used for resetting the GPS modules. It should be pulled high all the time.
 
# '''GPIO27 ''': It is used as an input GPIO to receive 1 PPS output from the GPS module.
 
# '''GPIO27 ''': It is used as an input GPIO to receive 1 PPS output from the GPS module.
Line 13: Line 19:
 
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.
 
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.  
+
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 ==
 
== Using GPS module with Debian Wheezy ==
Line 19: Line 25:
 
To read the NMEA messages from the GPS Module on Beaglebone Black :  
 
To read the NMEA messages from the GPS Module on Beaglebone Black :  
  
# Enable UART4 (/dev/ttyO4) in device tree kernel.  
+
* Enable UART4 (/dev/ttyO4) in device tree kernel.  
  
 
<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 36:
  
 
<pre>
 
<pre>
''cat /sys/devices/bone_capemgr.9/slots''
+
# cat /sys/devices/bone_capemgr.9/slots''
  
 
</pre>
 
</pre>
Line 45: Line 51:
 
''7: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART4''
 
''7: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART4''
 
</pre>  
 
</pre>  
# Install Minicom or use the following commands to see NMEA messages
+
 
 +
* Install Minicom or use the following commands to see NMEA messages
  
 
<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 56: Line 63:
 
<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 ]]

Latest revision as of 04:50, 27 March 2015


The Vayu-2GP-A, Vayu-3GHP-A, VAYU-3GCP-A and VAYU-P capes come with a GPS module. For a quick guide to starting with the Vayu-P cape's HW, see Leaflet for P cape.

Below, we describe how to set up the GPS portion of the VAYU capes and the associated software.


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.
  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