In order to work properly, the data exchanged with the LUG application must comply to a specific format.
LoRa frames sent by the IOT platforms
The LoRa frames sent by IOT platforms to the central processing facility must comply to, at least, a subset of the frame format defined by Libelium for their Waspmote platforms.
The application supports both ASCII and BINARY frame formats and relays the entire frame to the central processing facility through an UDP datagram.
The ASCII frames must have the following format :
where :
SYNC is a 3 characters synchronisation pattern set to <=>
TYPE is the type of the frame : 0x80 for ASCII frames
* Payload is the data part of the frame composed of N ASCII characters (must not exceed the maximum size of a LoRa frame).
The BINARY frames must have the following format :
where :
SYNC is a 3 characters synchronisation pattern set to <=>
TYPE is the type of the frame : 0x00 for BINARY frames
Payload length is the length of the data (payload) part in bytes
Payload is the data part of the frame composed of N bytes (must not exceed the maximum size of a LoRa frame with a maximum on 255 characters).
UDP frames sent by the central processing facility
The UDP datagrams sent by the central processing facility to the IOT platforms through the LUG application must have the following format :
where :
LoRa address is the one byte address of the target IOT p latform in the range 0 to 255 (0 address is reserved to the broadcast of data to all the IOT platforms connected to the LoRa channel of the gateway).
Data is the data to send "as-is" to the target IOT platform(s).
In order to facilitate the acquisition of the data at IOT platform level, we recommend to use the same data format than for LoRa frames (see above).