background image

–     –

–     –

10

11

Slow Start Time

The most critical factors in start time are current ephemeris data, signal 
strength and sky view. The ephemeris data describes the path of each 
satellite as they orbit the earth. This is used to calculate the position of 
a satellite at a particular time. This data is only usable for a short period 
of time, so if it has been more than a few hours since the last fix or if the 
location has significantly changed (a few hundred miles), then the receiver 
may need to wait for a new ephemeris transmission before a position can 
be calculated. The GPS satellites transmit the ephemeris data every 30 
seconds. Transmissions with a low signal strength may not be received 
correctly or be corrupted by ambient noise. The view of the sky is important 
because the more satellites the receiver can see, the faster the fix and the 
more accurate the position will be when the fix is obtained.

If the receiver is in a very poor location, such as inside a building, urban 
canyon, or dense foliage, then the time to first fix can be slowed. In very 
poor locations with poor signal strength and a limited view of the sky with 
outdated ephemeris data, this could be on the order of several minutes. 
In the worst cases, the receiver may need to receive almanac data, which 
describes the health and course data for every satellite in the constellation. 
This data is transmitted every 15 minutes. If a lock is taking a long time, try 
to find a location with a better view of the sky and fewer obstructions. Once 
locked, it is easier for the receiver to maintain the position fix.

Protocols

Linx GPS modules use the SiRFstar IV chipset. This chipset allows two
protocols to be used, NMEA-0183 and SiRF Binary. Switching between the 
two is handled using a single serial command. The NMEA protocol uses 
ASCII characters for the input and output messages and provides the most 
common features of GPS development in a small command set. The SiRF 
Binary protocol uses BYTE data types and allows more detailed control 
over the GPS receiver and its functionality using a much larger command 
set. Although both protocols have selectable baud rates, it’s recommended 
that SiRF Binary use 115,200bps. For a detailed description of the SiRF 
Binary protocol, see the SiRF Binary Protocol Reference Manual, available 
from SiRF Technology, Inc. 

Note:

 Although SiRF Binary protocol may be used with the module, 

Linx only offers tech support for the NMEA protocol.

Interfacing with NMEA Messages

Linx modules default to the NMEA protocol. Output messages are sent 
from the receiver on the TX pin and input messages are sent to the receiver 
on the RX pin. By default, output messages are sent once every second. 
Details of each message are described in the following sections.

The NMEA message format is as follows: <Message-ID + Data P
Ch End Sequence>. The serial data structure defaults to 
9,600bps, 8 data bits, 1 start bit, 2 stop bits, and no parity. Each message 
starts with a $ character and ends with a <CR> <LF>. All fields within 
each message are separated by a comma. The checksum follows the * 
character and is the last two characters, not including the <CR> <LF>. 
It consists of two hex digits representing the exclusive OR (XOR) of all 
characters between, but not including, the $ and * characters. When 
reading NMEA output messages, if a field has no value assigned to it, the 
comma will still be placed following the previous comma. For example, 
{,04,,,,,2.0,} shows four empty fields between values 04 and 2.0. When 
writing NMEA input messages, all fields are required, none are optional. An 
empty field will invalidate the message and it will be ignored.

Reading NMEA output messages:

• 

Initialize a serial interface to match the serial data structure of the GPS 
receiver.

• 

Read the NMEA data from the TX pin into a receive buffer.

• 

Separate it into six buffers, one for each message type. Use the 
characters ($) and <CR> <LF> as end points for each message.

• 

For each message, calculate the checksum as mentioned above to 
compare with the received checksum.

• 

Parse the data from each message using commas as field separators.

• 

Update the application with the parsed field values.

• 

Clear the receive buffer and be ready for the next set of messages. 

Writing NMEA input messages:

• 

Initialize a serial interface to match the serial data structure of the GPS 
receiver.

• 

Assemble the message to be sent with the calculated checksum.

• 

Transmit the message to the receiver on the RX pin.

Summary of Contents for R4 Series

Page 1: ...R4 Series GPS Receiver Module Data Guide...

Page 2: ...egulatory certification and warranty Customers may use our non Function Modules Antenna and Connectors as part of other systems in Life Safety Situations but only with necessary and industry appropria...

Page 3: ...us RF or GPS experience Features SiRF Star IV chipset Built in jammer remover High sensitivity 160dBm 48 channels Fast TTFF at low signal levels Battery backed SRAM CGEE allows 3 day prediction No pro...

Page 4: ...Supply Operating Voltage VCC 3 0 3 3 3 6 VDC Supply Current lCC Peak 122 mA 1 Acquisition 56 mA 1 Tracking 33 mA 1 Hibernate 0 43 mA 1 Backup Battery Voltage VBAT 2 0 6 0 VDC Backup Battery Current IB...

Page 5: ...satellite transmits low power radio signals which contain three different bits of information a pseudorandom code identifying the satellite ephemeris data which contains the current date and time as...

Page 6: ...then outputs the data through a standard serial port using several standard NMEA protocol formats The GPS core handles all of the necessary initialization tracking and calculations autonomously so no...

Page 7: ...RFIN line This bead prevents the RF from getting into the power supply but allows the DC voltage onto the RF trace to feed into the antenna A series capacitor inside the module prevents this DC volta...

Page 8: ...have selectable baud rates it s recommended that SiRF Binary use 115 200bps For a detailed description of the SiRF Binary protocol see the SiRF Binary Protocol Reference Manual available from SiRF Tec...

Page 9: ...rential GPS SPS Mode fix valid 3 5 Not supported 6 Dead Reckoning Mode fix valid Figure 9 Position Indicator Values GLL Geographic Position Latitude Longitude Figure 10 contains the values for the fol...

Page 10: ...s Channel 4 Range 00 to 90 Azimuth 077 degrees Channel 4 Range 00 to 359 SNR C No 46 dB Hz Channel 4 Range 00 to 99 null when not tracking Checksum 73 CR LF End of message termination 1 Depending on t...

Page 11: ...Figure 17 outlines the message identifiers supported by the module Serial Data Structure Name Example Description Start Sequence PSRF Message ID MID Message Identifier consisting of three numeric cha...

Page 12: ...alization This command is used to initialize the receiver with the current position in X Y Z coordinates clock offset and time enabling a faster fix Increased receiver sensitivity and the removal of S...

Page 13: ...ssages may be polled once or setup for periodic output Checksums may also be enabled or disabled depending on the needs of the receiving program NMEA message settings are saved in battery backed memor...

Page 14: ...ault value of 96000 is used Figure 24 ResetCfg Values ResetCfg Values Hex Description 0x01 Hot Start All data valid 0x02 Warm Start Ephemeris cleared 0x04 Cold Start Clears all data in memory 0x08 Cle...

Page 15: ...e is also included for use with a PC running custom software or the included development software The Master Development System software enables configuration of the receiver and displays the satellit...

Page 16: ...r the module A ground plane as large and uninterrupted as possible should be placed on a lower layer of your PC board opposite the module This plane is essential for creating a low impedance return fo...

Page 17: ...ackage that supports hand and automated assembly techniques Since the modules contain discrete components internally the assembly procedures are critical to ensuring the reliable function of the modul...

Page 18: ...irreparably damage the modules Assembly personnel need to pay careful attention to the oven s profile to ensure that it meets the requirements necessary to successfully reflow all components while sti...

Page 19: ...stomer including without limitation breach of contract breach of warranty strict liability or negligence Customer assumes all liability including without limitation liability for injury to person or p...

Reviews: