14
Sales Engineering
Messages
How to create a Message
The XT6350 custom message allows users to select what fields of data to be sent in a message when triggered.
A message can contain up to 40 data fields and you can have up to 128 different messages.
Refer to Appendix F - Message Field Table
When defining a Message use the following syntax:
pcr[<slot_index>] "<recipe_hex_string>"
where:
o
<slot_index> is in the range 0 - 127
o
"<recipe_hex_string>" is a quoted string of hexadecimal bytes (represented by two ascii
characters) The
Message Field Table
in Appendix F contains the
Hex
values for the
individual fields that can be selected to create the Packet.
String format:
"
<recipe_id><num_fields><field_0><field_1>...<field_N>
"
EXAMPLES
pcr[0] "0003010306"
o
pcr slot 0 will contain a Recipe string with 3 fields: PacketID, DeviceID, and GpsSpeed
recipe_hex_string -"000301030b"
RecipeID
00
(Hex)
Number of fields
03
(Hex)
Field 0 is Packet ID
01
(Hex)
Field 1 is DeviceID
03
(Hex)
Field 2 is GpsSpeed
0b
(Hex)
Notes:
o
The device can store and use 128 pcr (messages)
:wycfg pcr[0] …. :wycfg pcr[127]
RecipeID is always in Hex.
pcr[1] "14050103070809"
o
pcr slot 1 will contain a Recipe string with 5 fields : PacketID, DeviceID, Latitude, Longitude,
and Altitude
recipe_hex_string -"14050103070809"
RecipeID
01
Number of fields
05
Field 0 is Packet ID
01
Field 1 is DeviceID
03
Field 2 is Latitude
07
Field 3 is Longitude
08
Field 4 is Altitude
09
Содержание XT6350
Страница 4: ...3 Sales Engineering support xirgotech com ...