Header Lrc; Packet Id; Packet Length; Crc - Advanced Navigation GNSS Compass Reference Manual

Hide thumbs Also See for GNSS Compass:
Table of Contents

Advertisement

Field #
Bytes
Data
Offset
Type
1
0
u8
2
1
u8
3
2
u8
4
3
u16
Table 26: ANPP header format
10.2.1

Header LRC

The header LRC (Longitudinal Redundancy Check) provides error checking on the packet header.
It also allows the decoder to find the start of a packet by scanning for a valid LRC. The LRC can be
found using the following:
LRC = ((packet_id + packet_length + crc[0] + crc[1])^0xFF) + 1
10.2.2

Packet ID

The packet ID is used to distinguish the contents of the packet. Packet IDs range from 0 to 255.
Within this range there are three different sub-ranges, these are system packets, state packets and
configuration packets.
System packets have packet IDs in the range 0 to 19. These packets are implemented the same
by every device using ANPP.
State packets are packets that contain data that changes with time, i.e. temperature. State packets
can be set to output at a certain rate. State packets are packet IDs in the range 20 to 179.
Configuration packets are used for reading and writing device configuration. Configuration packets
are packet IDs in the range 180 to 255.
10.2.3

Packet Length

The packet length denotes the length of the packet data, i.e. from byte index 5 onwards inclusive.
Packet length has a range of 0 – 255.
10.2.4

CRC

The CRC is a CRC16-CCITT. The starting value is 0xFFFF. The CRC covers only the packet data.
10.3

Packet Requests

Any of the state and configuration packets can be requested at any time using the request packet.
See section 10.9.2.
All manuals and user guides at all-guides.com
ANPP Header Format
Size
1
1
1
Packet Length, see section 10.2.3
2
GNSS Compass Reference Manual
Page 43 of 85
Version 1.1
13/01/2021
Description
Header LRC, see section 10.2.1
Packet ID, see section 10.2.2
CRC16, see section 10.2.4

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the GNSS Compass and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Gc-ek-ser-lc-can

Table of Contents