Data Packet Structures - Mantracourt T24-BSi Technical Manual

T24 series
Hide thumbs Also See for T24-BSi:
Table of Contents

Advertisement

Data Packet Structures

The following structures show how the data is defined within the Data Packet Structure of the overall packet.
Data Provider
These packets are sent at intervals by some devices and contain data. There is no need to request these packets
as they arrive automatically. If you have multiple base stations and these are within the range of the transmitting
device the packets will arrive from each base station.
Packet Type
Data
Tag
03
00
00
Packet Type
This is 0x3 hex (3 decimal) and may have higher bits set which indicate Error, Low Battery and Broadcast.
Data Tag
Every device that transmits Data Provider packets has a configurable 2 byte Data Tag. Devices that consume Data
Provider Packets can be configured to look for specific Data Tags. The reason we use Data Tags and not just rely
on a devices ID for identification is that in a working system multiple devices may be relying on data from a single
device. If that device were ever replaced then its unique ID would change and therefore multiple devices would
have to be reconfigured. By using a Data Tag we only need to change this tag on the replacement device and the
rest of the system will work as required.
Status
The bit values in this byte are used to indicate certain things. Only two bits are allocated a global meaning. The
rest are device specific and you will need to refer to the device manual for clarification.
bit 7
bit 6
X
X
Data Type
This byte defines how the data is formatted in this packet and also indicates the best way to represent the data.
Function
Display As
Bit
7
Sample
0
Display As
Type
0
Undefined
1
Numeric
2
Boolean
3
Text
4
Binary (unprintable)
5
Hex
6
Bit Map (10110101)
7
Percent
Data Type
Description
0
No content/unknown
1
UINT8
2
UINT16
3
INT32
4
Float
5
String
6
Binary
NOTE: See Data Type Formats in Appendix A
The Display As bits should be used where possible as this can help in presenting the data for display purposes.
Mantracourt Electronics Limited T24 Technical Manual
Status
Data
Data
Type
00
00
[...]
Status Byte
bit 5
bit 4
X
X
6
5
1
1
Description
Numeric representation based on Data Type
The data may be in any format but represents a boolean result
where non zero numeric is True and string length > 1 or > 0 is
True
Can display as ascii text
Unprintable characters
Best represented as hex
Each bit value should be shown
Numeric or string value has a value 0 - 100
Size In Bytes
0
1
2
4
4
0-64
0-64
RSSI
CV
00
00
bit 3
bit 2
X
X
4
3
1
1
bit 1
bit0
Integrity
Shunt Cal
Data Type
2
1
0
0
0
1
8

Advertisement

Table of Contents
loading

Table of Contents