Document

LoRaWAN® Specification v1.0.1

Issue link: https://read.uberflip.com/i/1428386

Contents of this Issue

Navigation

Page 21 of 90

LoRaWAN Specification ©2016 LoRa™ Alliance Page 22 of 91 The authors reserve the right to change specifications without notice. 5 MAC Commands 1 For network administration, a set of MAC commands may be exchanged exclusively 2 between the network server and the MAC layer on an end-device. MAC layer commands 3 are never visible to the application or the application server or the application running on the 4 end-device. 5 A single data frame can contain any sequence of MAC commands, either piggybacked in the 6 FOpts field or, when sent as a separate data frame, in the FRMPayload field with the FPort 7 field being set to 0. Piggybacked MAC commands are always sent without encryption and 8 must not exceed 15 octets. MAC commands sent as FRMPayload are always encrypted 9 and must not exceed the maximum FRMPayload length. 10 Note: MAC commands whose content shall not be disclosed to an 11 eavesdropper must be sent in the FRMPayload of a separate data 12 message. 13 A MAC command consists of a command identifier (CID) of 1 octet followed by a possibly 14 empty command-specific sequence of octets. 15 16 CID Command Transmitted by Short Description End- device Gateway 0x02 LinkCheckReq x Used by an end-device to validate its connectivity to a network. 0x02 LinkCheckAns x Answer to LinkCheckReq command. Contains the received signal power estimation indicating to the end-device the quality of reception (link margin). 0x03 LinkADRReq x Requests the end-device to change data rate, transmit power, repetition rate or channel. 0x03 LinkADRAns x Acknowledges the LinkRateReq. 0x04 DutyCycleReq x Sets the maximum aggregated transmit duty-cycle of a device 0x04 DutyCycleAns x Acknowledges a DutyCycleReq command 0x05 RXParamSetupReq x Sets the reception slots parameters 0x05 RXParamSetupAns x Acknowledges a RXSetupReq command 0x06 DevStatusReq x Requests the status of the end-device 0x06 DevStatusAns x Returns the status of the end-device, namely its battery level and its demodulation margin 0x07 NewChannelReq x Creates or modifies the definition of a radio channel 0x07 NewChannelAns x Acknowledges a NewChannelReq command 0x08 RXTimingSetupReq x Sets the timing of the of the reception slots 0x08 RXTimingSetupAns x Acknowledges RXTimingSetupReq command 0x80 to 0xFF Proprietary x x Reserved for proprietary network command extensions Table 4: MAC commands 17 Note: The length of a MAC command is not explicitly given and must 18 be implicitly known by the MAC implementation. Therefore unknown 19 MAC commands cannot be skipped and the first unknown MAC 20 command terminates the processing of the MAC command sequence. 21

Articles in this issue

view archives of Document - LoRaWAN® Specification v1.0.1