Bleeding edge development version of the xDot library for mbed 5. This version of the library is not guaranteed to be stable or well tested and should not be used in production or deployment scenarios.

Dependents:   Dot-Examples Dot-AT-Firmware Dot-Examples TEST_FF1705 ... more

Embed: (wiki syntax)

« Back to documentation index

NetworkSession Struct Reference

NetworkSession Struct Reference

Network session info Some settings are acquired in join message and others may be changed through Mac Commands from server. More...

#include <Lora.h>

Data Fields

uint8_t Joined
 State of session.
uint8_t Class
 Operating class of device.
uint8_t Rx1DatarateOffset
 Offset for datarate for first window.
uint32_t Rx2Frequency
 Frequency used in second window.
uint8_t Rx2DatarateIndex
 Datarate for second window.
uint32_t BeaconFrequency
 Frequency used for the beacon window.
bool BeaconFreqHop
 Beacon frequency hopping enable.
uint32_t PingSlotFrequency
 Frequency used for ping slot windows.
uint8_t PingSlotDatarateIndex
 Datarate for the ping slots.
bool PingSlotFreqHop
 Ping slot frequency hopping enable.
uint8_t TxPower
 Current total radiated output power in dBm.
uint8_t TxDatarate
 Current datarate can be changed when ADR is enabled.
uint32_t Address
 Network address.
uint32_t NetworkID
 Network ID 24-bits.
uint8_t NetworkSessionKey [16]
 Network session key.
uint8_t ApplicationSessionKey [16]
 Data session key.
uint16_t ChannelMask [4]
 Current channel mask.
uint16_t ChannelMask500k
 Current channel mask for 500k channels.
uint32_t DownlinkCounter
 Downlink counter of last packet received from server.
uint32_t UplinkCounter
 Uplink counter of last packet received from server.
uint8_t Redundancy
 Number of time to repeat an uplink.
uint8_t MaxDutyCycle
 Current Max Duty Cycle value.
uint32_t JoinTimeOnAir
 Balance of time on air used during join attempts.
uint32_t JoinTimeOffEnd
 RTC time of next join attempt.
uint32_t JoinFirstAttempt
 RTC time of first failed join attempt.
uint32_t AggregatedTimeOffEnd
 Time off air expiration for aggregate duty cycle.
uint16_t AggregateDutyCycle
 Used for enforcing time-on-air.
uint8_t AckCounter
 Current number of packets sent without ACK from server.
uint8_t AdrCounter
 Current number of packets received without downlink from server.
uint8_t RxDelay
 Number of seconds to wait before 1st RX Window.
uint8_t CommandBuffer [COMMANDS_BUFFER_SIZE]
 Buffer to hold Mac Commands and parameters to be sent in next packet.
uint8_t CommandBufferIndex
 Index to place next Mac Command, also current size of Command Buffer.
bool SrvRequestedAck
 Indicator of ACK requested by server in last packet received.
bool DataPending
 Indicator of data pending at server.
uint8_t RxTimingSetupReqReceived
 Indicator that RxTimingSetupAns should be included in uplink.
uint8_t RxParamSetupReqAnswer
 Indicator that RxParamSetupAns should be included in uplink.
uint8_t DlChannelReqAnswer
 Indicator that DlChannelAns should be included in uplink.
uint8_t DownlinkDwelltime
 On air dwell time for downlink packets 0:NONE,1:400ms.
uint8_t UplinkDwelltime
 On air dwell time for uplink packets 0:NONE,1:400ms.
uint8_t Max_EIRP
 Maximum allowed EIRP for uplink.

Detailed Description

Network session info Some settings are acquired in join message and others may be changed through Mac Commands from server.

Definition at line 372 of file Lora.h.


Field Documentation

uint8_t AckCounter

Current number of packets sent without ACK from server.

Definition at line 400 of file Lora.h.

uint32_t Address

Network address.

Definition at line 385 of file Lora.h.

uint8_t AdrCounter

Current number of packets received without downlink from server.

Definition at line 401 of file Lora.h.

Time off air expiration for aggregate duty cycle.

Definition at line 398 of file Lora.h.

Used for enforcing time-on-air.

Definition at line 399 of file Lora.h.

uint8_t ApplicationSessionKey[16]

Data session key.

Definition at line 388 of file Lora.h.

Beacon frequency hopping enable.

Definition at line 379 of file Lora.h.

uint32_t BeaconFrequency

Frequency used for the beacon window.

Definition at line 378 of file Lora.h.

uint16_t ChannelMask[4]

Current channel mask.

Definition at line 389 of file Lora.h.

uint16_t ChannelMask500k

Current channel mask for 500k channels.

Definition at line 390 of file Lora.h.

uint8_t Class

Operating class of device.

Definition at line 374 of file Lora.h.

uint8_t CommandBuffer[COMMANDS_BUFFER_SIZE]

Buffer to hold Mac Commands and parameters to be sent in next packet.

Definition at line 403 of file Lora.h.

Index to place next Mac Command, also current size of Command Buffer.

Definition at line 404 of file Lora.h.

Indicator of data pending at server.

Definition at line 406 of file Lora.h.

Indicator that DlChannelAns should be included in uplink.

Definition at line 409 of file Lora.h.

uint32_t DownlinkCounter

Downlink counter of last packet received from server.

Definition at line 391 of file Lora.h.

On air dwell time for downlink packets 0:NONE,1:400ms.

Definition at line 410 of file Lora.h.

uint8_t Joined

State of session.

Definition at line 373 of file Lora.h.

uint32_t JoinFirstAttempt

RTC time of first failed join attempt.

Definition at line 397 of file Lora.h.

uint32_t JoinTimeOffEnd

RTC time of next join attempt.

Definition at line 396 of file Lora.h.

uint32_t JoinTimeOnAir

Balance of time on air used during join attempts.

Definition at line 395 of file Lora.h.

uint8_t Max_EIRP

Maximum allowed EIRP for uplink.

Definition at line 412 of file Lora.h.

uint8_t MaxDutyCycle

Current Max Duty Cycle value.

Definition at line 394 of file Lora.h.

uint32_t NetworkID

Network ID 24-bits.

Definition at line 386 of file Lora.h.

uint8_t NetworkSessionKey[16]

Network session key.

Definition at line 387 of file Lora.h.

Datarate for the ping slots.

Definition at line 381 of file Lora.h.

Ping slot frequency hopping enable.

Definition at line 382 of file Lora.h.

Frequency used for ping slot windows.

Definition at line 380 of file Lora.h.

uint8_t Redundancy

Number of time to repeat an uplink.

Definition at line 393 of file Lora.h.

Offset for datarate for first window.

Definition at line 375 of file Lora.h.

Datarate for second window.

Definition at line 377 of file Lora.h.

uint32_t Rx2Frequency

Frequency used in second window.

Definition at line 376 of file Lora.h.

uint8_t RxDelay

Number of seconds to wait before 1st RX Window.

Definition at line 402 of file Lora.h.

Indicator that RxParamSetupAns should be included in uplink.

Definition at line 408 of file Lora.h.

Indicator that RxTimingSetupAns should be included in uplink.

Definition at line 407 of file Lora.h.

Indicator of ACK requested by server in last packet received.

Definition at line 405 of file Lora.h.

uint8_t TxDatarate

Current datarate can be changed when ADR is enabled.

Definition at line 384 of file Lora.h.

uint8_t TxPower

Current total radiated output power in dBm.

Definition at line 383 of file Lora.h.

uint32_t UplinkCounter

Uplink counter of last packet received from server.

Definition at line 392 of file Lora.h.

uint8_t UplinkDwelltime

On air dwell time for uplink packets 0:NONE,1:400ms.

Definition at line 411 of file Lora.h.