
1.7. GPS Receiver Interface
Manually Request Packet from GPS Receiver (Command 0x32)
This command is a hybrid of commands 0x30 and 0x31. With this command the user specifies the
packet length and ID of a packet sent by the receiver (response packet) and specifies the packet
length, ID, and data for the packet to be sent to the receiver (request packet.) The TPF sends the
request packet to the receiver and transfers the response packet to the DPRAM GPS Packet Area
when it arrives. If the response packet ID is 0x00 then the TFP will ignore the response, in which
case, this command would be functionally identical to Command 0x30. The TFP sets ACK bit 0 once
the request packet is sent to the receiver. Later, when the response packet has been transferred to
the DPRAM GPS Packet Area, the TFP sets ACK bit 2. As with Command 0x31, if the receiver fails
to respond within a timeout period, the bc637PCI-V2 sets the packet length in the DPRAM GPS
Packet Area to zero and then sets ACK bit 2.
Note: A response packet length of 0 (ZERO) (Byte 1) will return any packet with the corresponding
response packet ID (Byte 2). This is useful for packets, like 0x47, that return variable length
responses.
Byte
Type
Item
Value or Range
0
UINT8
command ID
0x32
1
UINT8
response packet length
1 - 255
2
UINT8
response packet ID
0x00 - 0xFF
3
UINT8
request packet length
1 - 255
4
UINT8
request packet ID
0x00 - 0xFF
5 - N
UINT8
request packet data bytes
0 - 255
As an example of this command, let us suppose the user wants to retrieve packet 0x5B (satellite
ephemeris status) for satellite number six. The receiver sends packet 0x5B in response to packet
0x3B (request satellite ephemeris status.) Packet 0x3B specifies the PRN number for the satellite of
interest, in this case, satellite number six. The appropriate command structure for this example is
shown below:
Byte
Item
Value
0
command ID
0x32
1
response packet length
17
2
response packet ID
0x5B
3
request packet length
2
4
request packet ID
0x3B
5
satellite PRN number
6
Byte
Item
Value
0
command ID
0x32
1
response packet length
0
2
response packet ID
0x47
3
request packet length
1
- 67 -
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com