Menu

Protocols

Didier Lapeyre
Attachments
ASCII frame.PNG (5860 bytes)
BINARY frame.PNG (5132 bytes)
UDP frame.PNG (4482 bytes)

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 :
ASCII frame

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 :
BINARY frame

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 :
UDP frame

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).


Related

Wiki: Home

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.