
Command Reference
2015-2018 Microchip Technology Inc.
DS40001784G-page 43
Example:
mac get sync
2.4.9.23
mac get upctr
Response: decimal number representing the value of the uplink frame counter that will
be used for the next uplink transmission, from 0 to 4294967295.
This command will return the value of the uplink frame counter that will be used for the
next uplink transmission.
Default: 0
Example:
mac get upctr
FIGURE 2-1:
MAC STATUS BIT-MAPPED REGISTER
(1)
17 16 15 14 13 12
3 - 0
4
5
6
7
8
9
10
11
Mac state
(2)
Join status (‘
0
’ – network not joined, ‘
1
’ – network joined)
Automatic reply status (‘
0
’ – disabled, ‘
1
’ – enabled)
ADR status (‘
0
’ – ADR is disabled, ‘
1
’ – ADR is disabled)
Silent immediately status (‘
0
’ – disabled, ‘
1
’ – enabled)
Mac pause status (‘
0
’ – mac is not paused, ‘
1
’ – mac is paused)
Link check status (‘
0
’ – link check is disabled, ‘
1
’ – link check is enabled)
Channels updated (‘
0
’ – not updated, ‘
1
’ – updated via CFList or NewChannelReq MAC command)
Output power updated (‘
0
’ – not updated, ‘
1
’ – updated via LinkADRReq MAC command)
NbRep updated (‘
0
’ – not updated, ‘
1
’ – updated via LinkADRReq MAC command)
(3)
Prescaler updated (‘
0
’ – not updated, ‘
1
’ – updated via DutyCycleReq MAC command)
Second Receive window parameters updated (‘
0
’ – not updated, ‘
1
’ – updated RX ParamSetupReq command)
RX timing setup updated (‘
0
’ – not updated, ‘
1
’ – updated via RX TimingSetupReq MAC command)
Note
1:
Bits 11 (Channels updated), 12 (Output power updated), 13 (NbRep updated), 14 (Prescaler updated),
15 (Second Receive window parameters updated) and 16 (RX timing setup updated) are cleared after
issuing a “
mac get status
” command.
2:
Mac state:
0 – Idle (transmissions are possible)
1 – Transmission occurring
2 – Before the opening of Receive window 1
3 – Receive window 1 is open
4 – Between Receive window 1 and Receive window 2
5 – Receive window 2 is open
6 – Retransmission delay - used for ADR_ACK delay, FSK can occur
7 – APB_delay
8 – Class C RX2 1 open
9 – Class C RX2 2 open
3:
NbRep is the number of repetitions for unconfirmed packets (for more details, refer to the
LoRaWAN™
Specification
V1.0.2).
18
31-19
Multicast status (‘
0
’ – Multicast disabled, ‘
1
’ – Multicast enabled
RFU
Rx Done Status (‘
0
’ – Rx data is not ready, ‘
1
’ – Rx data is ready)
Rejoin needed (‘
0
’ – end-device functional. ‘
1
’ – end-device not functional and rejoin is needed)