lora/packets

Description:  list of uplink and downlink packets : ARRAY

Element Type Description
GET returns uplink and downlink packets, number of packets retained is controlled by”trimRows” setting
     appeui STRING application EUI
     coderate STRING packet coding rate, LoRaWAN uses only 4/5
     commands STRING MAC commands in packet, HEX bytes
     control STRING control byte in packet header, HEX byte
     counter INT 32-bit frame counter
     created_at STRING timestamp of packet record creation
     data STRING uplink packet payload or entire downlink packet in base64 encoding
     data_size INT size in bytes of encoded data
     datarate STRING LoRaWAN datarate of packet
     dev_addr STRING LoRaWAN address of end-device session
     deveui STRING end-device EUI
     direction STRING direction of packet up or down
     frequency FLOAT frequency of packet in MHz
     gweui STRING gateway EUI
     major_version INT LoRaWAN major version in packet header
     message_type INT LoRaWAN message type in header
     mic STRING packet message-integrity-code, AES CMAC hash of packet, 4 HEX
bytes
     port STRING application port
     rssi INT received signal strength of packet
     snr FLOAT received signal to noise ration of packet
     tmst INT internal clock timestamp from gateway card used for synchronizing the
downlink with the end of transmission of the uplink to communicate response to end-device
     trx_time STRING UTC time the packet was received or transmitted
up ARRAY list of uplink packets
     GET returns only uplink packets, number of packets retained is controlled by “trimRows” setting
          appeui STRING application EUI 8 byte HEX string
          channel INT channel packet was received
          coderate STRING coding rate of transmitted packet
          commands STRING MAC commands included in the packet HEX string
          control STRING LoRaWAN control byte in packet header, contains ACK bit and
count of optional bytes
          counter STRING 32-bit integer value of packet frame counter in HEX
          created_at STRING UTC time packet was transmitted
          data STRING base64 encoded packet payload
          data_size INT number of bytes in received packet
          datarate STRING LoRaWAN datarate of packet
          dev_addr STRING LoRaWAN 32-bit device address HEX string
          deveui STRING end-device EUI
          frequency FLOAT frequency of packet in MHz
          gweui STRING gateway EUI
          major_version INT LoRaWAN version
          message_type INT LoRaWAN message type: join request/accept, unconfirmed
up/down or confirmed up/down
          mic STRING packet message-integrity-code, AES CMAC hash of packet, 4 HEX bytes
          modulation STRING LORA or FSK modulation of packet
          port INT application port
          rf_chain INT radio front-end packet was received on
          rssi INT RSSI of packet, includes signal and noise
          rx_time STRING UTC time packet was received
          size INT number of bytes in received packet
          snr INT SNR of received packet
          tmst INT internal clock timestamp from gateway card used for synchronizing the
downlink with the end of transmission of the uplink to communicate response to end-device
recent ARRAY list of unauthenticated uplink packets received, cleared after
each GET
     GET returns the latest packets received, packets are not authenticated and CRC error packets may be included and marked with stat: -1
          chan INT channel packet was received
          codr INT code rate used for packet
          data STRING base64 encoded packet
          datr STRING LoRaWAN datarate of packet
          freq FLOAT frequency of packet in MHz
          lsnr FLOAT SNR of packet
          modu STRING LORA or FSK modulation of packet
          rfch INT radio front-end packet was received on
          rssi INT RSSI of packet, includes signal and noise
          size INT number of bytes received in packet
          stat stat CRC result, 1:passed or -1:failed
          tmst INT internal clock value packet was received
down ARRAY list of downlink packets
     GET
          appeui STRING application EUI 8 byte HEX string
          coderate STRING coding rate of transmitted packet
          commands STRING MAC commands included in the packet HEX string
          control STRING LoRaWAN control byte in packet header, contains ACK bit and
count of optional bytes
          counter STRING 32-bit integer value of packet frame counter in HEX
          created_at STRING UTC time packet was transmitted
          data STRING base64 encoded packet
          data_size INT number of bytes in data field
          datarate STRING LoRaWAN datarate of packet
          dev_addr STRING LoRaWAN 32-bit device address HEX string
          deveui STRING end-device EUI
          frequency FLOAT frequency of packet in MHz
          gweui STRING gateway EUI
          major_version INT LoRaWAN version
          message_type INT LoRaWAN message type: join request/accept, unconfirmed
up/down or confirmed up/down
          mic STRING packet message-integrity-code, AES CMAC hash of packet, 4 HEX
bytes
          modulation STRING LORA or FSK modulation of packet
          port INT application port
          rf_chain INT radio front-end packet was received on
          rx_ack_received BOOL to be set true if ACK was received from end-device after confirmed downlink
          rx_window INT Rx window the packet was scheduled for: 0:Class C, 1:Rx1 or 2:Rx2
          size INT number of bytes in packet
          tmst INT internal clock value packet was received in microseconds
          tx_ack_received BOOL to be set true if ACK was received from gateway that
packet was scheduled for transmit
          tx_time STRING UTC time packet was sent to radio
queue ARRAY list of downlink packets queued for transmission
     GET
          ack BOOL true if ACK is requested from end-device
          created_at STRING UTC time packet was queued
          data STRING base64 encoded payload for downlink
          data_size INT number of payload bytes
          deveui STRING device EUI
          id INT database ID
          port INT application port
          priority INT packet priority
          retry_count INT number of times the packet has been re-transmitted
          retry_max INT number of times the packet is allowed to be re-transmitted
          rx_window INT Rx window to schedule packet
     POST add a packet to the downlink queue
          required fields: STRING {“deveui”: “<EUI>”, “data”: “<BASE-64>”}
          data STRING base64 encoded payload for downlink
          deveui STRING device EUI
          ack BOOL true if ACK is requested from end-device
          port INT application port
          priority INT packet priority
          retry_count INT number of times the packet has been re-transmitted
          retry_max INT number of times the packet is allowed to be re-transmitted
          rx_window INT Rx window to schedule packet
     DELETE remove a packet from the queue
/api/lora/packets/queue/<DEVEUI>/<ID>
join ARRAY list of join uplinks and downlinks
     GET
          data STRING packet contents in HEX
          datarate STRING LoRaWAN datarate of packet
          deveui STRING end-device EUI
          direction STRING up for Join Request or down for Join Accept
          frequency FLOAT frequency of packet in MHz
          gweui STRING gateway EUI
          joineui STRING join EUI from Join Request
          mic STRING packet message-integrity-code, AES CMAC hash of packet, 4 HEX bytes
          nonce INT device nonce in Join Request, or application nonce in Join Accept
          rssi INT RSSI of Join Request packet
          snr FLOAT SNR of received packet
          tmst INT internal clock value packet was received in microseconds
          tx_time STRING UTC time packet was transmitted or received