Skip to content

Instantly share code, notes, and snippets.

@lupyuen
Last active Jan 4, 2022
Embed
What would you like to do?
LoRaWAN Transmit Log on Apache NuttX OS (See https://lupyuen.github.io/articles/lorawan3)
nsh> lorawan_test
###### ===================================== ######
Application name : lorawan_test
Application version: 1.2.0
GitHub base version: 5.0.0
###### ==================================== ######
init_event_queue
TimerInit: 0x4201680c
callout_handler: lock
TimerInit: 0x42016828
TimerInit: 0x42016844
TimerInit: 0x420168a8
TimerInit: 0x4201693c
TimerInit: 0x42016958
TimerInit: 0x42016974
TimerInit: 0x42016990
TODO: RtcGetCalendarTime
TODO: SX126xReset
init_gpio
DIO1 pintype before=5
init_gpio: change DIO1 to Trigger GPIO Interrupt on Rising Edge
gpio_ioctl: Requested pintype 8, but actual pintype 5
DIO1 pintype after=5
Starting process_dio1
process_dio1 started
process_dio1: event=0x42015a98
init_spi
SX126xSetTxParams: power=22, rampTime=7
SX126xSetPaConfig: paDutyCycle=4, hpMax=7, deviceSel=0, paLut=1
TimerInit: 0x420179dc
TimerInit: 0x42017b0c
RadioSetModem
RadioSetModem
RadioSetPublicNetwork: public syncword=3444
RadioSleep
DIO1 add event
TODO: EepromMcuReadBuffer
TODO: EepromMcuReadBuffer
TODO: EepromMcuReadBuffer
TODO: EepromMcuReadBuffer
TODO: EepromMcuReadBuffer
TODO: EepromMcuReadBuffer
TODO: EepromMcuReadBuffer
TODO: EepromMcuReadBuffer
RadioSetModem
RadioSetPublicNetwork: public syncword=3444
DevEui : 4B-C1-5E-E7-37-7B-B1-5B
JoinEui : 00-00-00-00-00-00-00-00
Pin : 00-00-00-00
TimerInit: 0x42016464
TimerInit: 0x42016480
TimerInit: 0x4201643c
TODO: RtcGetCalendarTime
TODO: RtcBkupRead
TODO: RtcBkupRead
RadioSetChannel: freq=923400000
RadioSetTxConfig: modem=1, power=13, fdev=0, bandwidth=0, datarate=10, coderate=1, preambleLen=8, fixLen=0, crcOn=1, freqHopOn=0, hopPeriod=0, iqInverted=0, timeout=4 000
RadioSetTxConfig: SpreadingFactor=10, Bandwidth=4, CodingRate=1, LowDatarateOptimize=0, PreambleLength=8, HeaderType=0, PayloadLength=255, CrcMode=1, InvertIQ=0
RadioStandby
RadioSetModem
SX126xSetTxParams: power=13, rampTime=7
SX126xSetPaConfig: paDutyCycle=4, hpMax=7, deviceSel=0, paLut=1
SecureElementRandomNumber: 0x45953064
RadioSend: size=23
00 00 00 00 00 00 00 00 00 5b b1 7b 37 e7 5e c1 4b 64 30 82 d3 c8 13
RadioSend: PreambleLength=8, HeaderType=0, PayloadLength=23, CrcMode=1, InvertIQ=0
TimerStop: 0x420179dc
TimerStart2: 0x420179dc, 4000 ms
callout_reset: evq=0x42017b28, ev=0x420179dc
###### =========== MLME-Request ============ ######
###### MLME_JOIN ######
###### ===================================== ######
STATUS : OK
StartTxProcess
TimerInit: 0x42015360
TimerSetValue: 0x42015360, 42249 ms
OnTxTimerEvent: timeout in 42249 ms, event=0
TimerStop: 0x42015360
TimerSetValue: 0x42015360, 42249 ms
TimerStart: 0x42015360
TimerStop: 0x42015360
TimerStart2: 0x42015360, 42249 ms
callout_reset: evq=0x42017b28, ev=0x42015360
handle_event_queue
handle_event_queue: ev=0x42015a98
RadioOnDioIrq
RadioIrqProcess
RadioOnDioIrq
RadioIrqProcess
DIO1 add event
handle_event_queue: ev=0x42015a98
RadioOnDioIrq
RadioIrqProcess
IRQ_TX_DONE
TimerStop: 0x420179dc
TODO: RtcGetCalendarTime
TODO: RtcBkupRead
RadioOnDioIrq
RadioIrqProcess
RadioSleep
DIO1 add event
TimerSetValue: 0x42016828, 4988 ms
TimerStart: 0x42016828
TimerStop: 0x42016828
TimerStart2: 0x42016828, 4988 ms
callout_reset: evq=0x42017b28, ev=0x42016828
TimerSetValue: 0x42016844, 5988 ms
TimerStart: 0x42016844
TimerStop: 0x42016844
TimerStart2: 0x42016844, 5988 ms
callout_reset: evq=0x42017b28, ev=0x42016844
TODO: RtcGetCalendarTime
handle_event_queue: ev=0x42015a98
RadioOnDioIrq
RadioIrqProcess
RadioOnDioIrq
RadioIrqProcess
callout_handler: unlock
callout_handler: evq=0x42017b28, ev=0x42016828
callout_handler: lock
handle_event_queue: ev=0x42016828
TimerStop: 0x42016828
RadioStandby
RadioSetChannel: freq=923400000
RadioSetRxConfig
RadioStandby
RadioSetModem
RadioSetRxConfig done
RadioRx
TimerStop: 0x42017b0c
TimerStart2: 0x42017b0c, 3000 ms
callout_reset: evq=0x42017b28, ev=0x42017b0c
RadioOnDioIrq
RadioIrqProcess
DIO1 add event
handle_event_queue: ev=0x42015a98
RadioOnDioIrq
RadioIrqProcess
IRQ_PREAMBLE_DETECTED
RadioOnDioIrq
RadioIrqProcess
DIO1 add event
handle_event_queue: ev=0x42015a98
RadioOnDioIrq
RadioIrqProcess
IRQ_HEADER_VALID
RadioOnDioIrq
RadioIrqProcess
DIO1 add event
handle_event_queue: ev=0x42015a98
RadioOnDioIrq
RadioIrqProcess
IRQ_RX_DONE
TimerStop: 0x42017b0c
RadioOnDioIrq
RadioIrqProcess
RadioSleep
DIO1 add event
TimerStop: 0x42016844
OnTxData
###### =========== MLME-Confirm ============ ######
STATUS : OK
OnJoinRequest
###### =========== JOINED ============ ######
OTAA
DevAddr : 01DA9790
DATA RATE : DR_2
TODO: EepromMcuWriteBuffer
TODO: EepromMcuWriteBuffer
TODO: EepromMcuWriteBuffer
TODO: EepromMcuWriteBuffer
TODO: EepromMcuWriteBuffer
TODO: EepromMcuWriteBuffer
UplinkProcess
PrepareTxFrame: Transmit to LoRaWAN: Hi NuttX (9 bytes)
PrepareTxFrame: status=0, maxSize=11, currentSize=11
LmHandlerSend: Data frame
TODO: RtcGetCalendarTime
TODO: RtcBkupRead
RadioSetChannel: freq=923400000
RadioSetTxConfig: modem=1, power=13, fdev=0, bandwidth=0, datarate=9, coderate=1, preambleLen=8, fixLen=0, crcOn=1, freqHopOn=0, hopPeriod=0, iqInverted=0, timeout=4000
RadioSetTxConfig: SpreadingFactor=9, Bandwidth=4, CodingRate=1, LowDatarateOptimize=0, PreambleLength=8, HeaderType=0, PayloadLength=128, CrcMode=1, InvertIQ=0
RadioStandby
RadioSetModem
SX126xSetTxParams: power=13, rampTime=7
SX126xSetPaConfig: paDutyCycle=4, hpMax=7, deviceSel=0, paLut=1
RadioSend: size=22
40 90 97 da 01 00 01 00 01 be 34 05 af ab f0 fd 9a 21 25 35 9f 88
RadioSend: PreambleLength=8, HeaderType=0, PayloadLength=22, CrcMode=1, InvertIQ=0
TimerStop: 0x420179dc
TimerStart2: 0x420179dc, 4000 ms
callout_reset: evq=0x42017b28, ev=0x420179dc
###### =========== MCPS-Request ============ ######
###### MCPS_UNCONFIRMED ######
###### ===================================== ######
STATUS : OK
PrepareTxFrame: Transmit OK
handle_event_queue: ev=0x42015a98
RadioOnDioIrq
RadioIrqProcess
RadioOnDioIrq
RadioIrqProcess
DIO1 add event
handle_event_queue: ev=0x42015a98
RadioOnDioIrq
RadioIrqProcess
IRQ_TX_DONE
TimerStop: 0x420179dc
TODO: RtcGetCalendarTime
TODO: RtcBkupRead
RadioOnDioIrq
RadioIrqProcess
RadioSleep
DIO1 add event
TimerSetValue: 0x42016828, 980 ms
TimerStart: 0x42016828
TimerStop: 0x42016828
TimerStart2: 0x42016828, 980 ms
callout_reset: evq=0x42017b28, ev=0x42016828
TimerSetValue: 0x42016844, 1988 ms
TimerStart: 0x42016844
TimerStop: 0x42016844
TimerStart2: 0x42016844, 1988 ms
callout_reset: evq=0x42017b28, ev=0x42016844
TODO: RtcGetCalendarTime
handle_event_queue: ev=0x42015a98
RadioOnDioIrq
RadioIrqProcess
RadioOnDioIrq
RadioIrqProcess
callout_handler: unlock
callout_handler: evq=0x42017b28, ev=0x42016828
callout_handler: lock
handle_event_queue: ev=0x42016828
TimerStop: 0x42016828
RadioStandby
RadioSetChannel: freq=923400000
RadioSetRxConfig
RadioStandby
RadioSetModem
RadioSetRxConfig done
RadioRx
TimerStop: 0x42017b0c
TimerStart2: 0x42017b0c, 3000 ms
callout_reset: evq=0x42017b28, ev=0x42017b0c
RadioOnDioIrq
RadioIrqProcess
DIO1 add event
handle_event_queue: ev=0x42015a98
RadioOnDioIrq
RadioIrqProcess
IRQ_RX_TX_TIMEOUT
TimerStop: 0x42017b0c
RadioOnDioIrq
RadioIrqProcess
RadioSleep
DIO1 add event
TimerStop: 0x42016844
TimerStop: 0x4201680c
OnTxData
###### =========== MCPS-Confirm ============ ######
STATUS : OK
###### ===== UPLINK FRAME 1 ===== ######
CLASS : A
TX PORT : 1
TX DATA : UNCONFIRMED
48 69 20 4E 75 74 74 58 00
DATA RATE : DR_3
U/L FREQ : 923400000
TX POWER : 0
CHANNEL MASK: 0003
TODO: EepromMcuWriteBuffer
TODO: EepromMcuWriteBuffer
UplinkProcess
handle_event_queue: ev=0x42015a98
RadioOnDioIrq
RadioIrqProcess
RadioOnDioIrq
RadioIrqProcess
UplinkProcess
callout_handler: unlock
callout_handler: evq=0x42017b28, ev=0x42015360
callout_handler: lock
handle_event_queue: ev=0x42015360
OnTxTimerEvent: timeout in 42249 ms, event=0x42015360
TimerStop: 0x42015360
TimerSetValue: 0x42015360, 42249 ms
TimerStart: 0x42015360
TimerStop: 0x42015360
TimerStart2: 0x42015360, 42249 ms
callout_reset: evq=0x42017b28, ev=0x42015360
RadioOnDioIrq
RadioIrqProcess
UplinkProcess
PrepareTxFrame: Transmit to LoRaWAN: Hi NuttX (9 bytes)
PrepareTxFrame: status=0, maxSize=53, currentSize=53
LmHandlerSend: Data frame
TODO: RtcGetCalendarTime
TODO: RtcBkupRead
RadioSetChannel: freq=923400000
RadioSetTxConfig: modem=1, power=13, fdev=0, bandwidth=0, datarate=9, coderate=1, preambleLen=8, fixLen=0, crcOn=1, freqHopOn=0, hopPeriod=0, iqInverted=0, timeout=4000
RadioSetTxConfig: SpreadingFactor=9, Bandwidth=4, CodingRate=1, LowDatarateOptimize=0, PreambleLength=8, HeaderType=0, PayloadLength=128, CrcMode=1, InvertIQ=0
RadioStandby
RadioSetModem
SX126xSetTxParams: power=13, rampTime=7
SX126xSetPaConfig: paDutyCycle=4, hpMax=7, deviceSel=0, paLut=1
RadioSend: size=22
40 90 97 da 01 00 02 00 01 24 b5 b8 db 4a b3 3f 49 83 53 30 1c ec
RadioSend: PreambleLength=8, HeaderType=0, PayloadLength=22, CrcMode=1, InvertIQ=0
TimerStop: 0x420179dc
TimerStart2: 0x420179dc, 4000 ms
callout_reset: evq=0x42017b28, ev=0x420179dc
###### =========== MCPS-Request ============ ######
###### MCPS_UNCONFIRMED ######
###### ===================================== ######
STATUS : OK
PrepareTxFrame: Transmit OK
DIO1 add event
handle_event_queue: ev=0x42015a98
RadioOnDioIrq
RadioIrqProcess
IRQ_TX_DONE
TimerStop: 0x420179dc
TODO: RtcGetCalendarTime
TODO: RtcBkupRead
RadioOnDioIrq
RadioIrqProcess
RadioSleep
DIO1 add event
TimerSetValue: 0x42016828, 980 ms
TimerStart: 0x42016828
TimerStop: 0x42016828
TimerStart2: 0x42016828, 980 ms
callout_reset: evq=0x42017b28, ev=0x42016828
TimerSetValue: 0x42016844, 1988 ms
TimerStart: 0x42016844
TimerStop: 0x42016844
TimerStart2: 0x42016844, 1988 ms
callout_reset: evq=0x42017b28, ev=0x42016844
TODO: RtcGetCalendarTime
handle_event_queue: ev=0x42015a98
RadioOnDioIrq
RadioIrqProcess
RadioOnDioIrq
RadioIrqProcess
callout_handler: unlock
callout_handler: evq=0x42017b28, ev=0x42016828
callout_handler: lock
handle_event_queue: ev=0x42016828
TimerStop: 0x42016828
RadioStandby
RadioSetChannel: freq=923400000
RadioSetRxConfig
RadioStandby
RadioSetModem
RadioSetRxConfig done
RadioRx
TimerStop: 0x42017b0c
TimerStart2: 0x42017b0c, 3000 ms
callout_reset: evq=0x42017b28, ev=0x42017b0c
RadioOnDioIrq
RadioIrqProcess
DIO1 add event
handle_event_queue: ev=0x42015a98
RadioOnDioIrq
RadioIrqProcess
IRQ_RX_TX_TIMEOUT
TimerStop: 0x42017b0c
RadioOnDioIrq
RadioIrqProcess
RadioSleep
DIO1 add event
TimerStop: 0x42016844
TimerStop: 0x4201680c
OnTxData
###### =========== MCPS-Confirm ============ ######
STATUS : OK
###### ===== UPLINK FRAME 2 ===== ######
CLASS : A
TX PORT : 1
TX DATA : UNCONFIRMED
48 69 20 4E 75 74 74 58 00
DATA RATE : DR_3
U/L FREQ : 923400000
TX POWER : 0
CHANNEL MASK: 0003
TODO: EepromMcuWriteBuffer
TODO: EepromMcuWriteBuffer
UplinkProcess
handle_event_queue: ev=0x42015a98
RadioOnDioIrq
RadioIrqProcess
RadioOnDioIrq
RadioIrqProcess
UplinkProcess
callout_handler: unlock
callout_handler: evq=0x42017b28, ev=0x42015360
callout_handler: lock
handle_event_queue: ev=0x42015360
OnTxTimerEvent: timeout in 42249 ms, event=0x42015360
TimerStop: 0x42015360
TimerSetValue: 0x42015360, 42249 ms
TimerStart: 0x42015360
TimerStop: 0x42015360
TimerStart2: 0x42015360, 42249 ms
callout_reset: evq=0x42017b28, ev=0x42015360
RadioOnDioIrq
RadioIrqProcess
UplinkProcess
PrepareTxFrame: Transmit to LoRaWAN: Hi NuttX (9 bytes)
PrepareTxFrame: status=0, maxSize=53, currentSize=53
LmHandlerSend: Data frame
TODO: RtcGetCalendarTime
TODO: RtcBkupRead
RadioSetChannel: freq=923200000
RadioSetTxConfig: modem=1, power=13, fdev=0, bandwidth=0, datarate=9, coderate=1, preambleLen=8, fixLen=0, crcOn=1, freqHopOn=0, hopPeriod=0, iqInverted=0, timeout=4000
RadioSetTxConfig: SpreadingFactor=9, Bandwidth=4, CodingRate=1, LowDatarateOptimize=0, PreambleLength=8, HeaderType=0, PayloadLength=128, CrcMode=1, InvertIQ=0
RadioStandby
RadioSetModem
SX126xSetTxParams: power=13, rampTime=7
SX126xSetPaConfig: paDutyCycle=4, hpMax=7, deviceSel=0, paLut=1
RadioSend: size=22
40 90 97 da 01 00 03 00 01 69 ac 51 21 e5 ce 4f e2 d7 2c f7 b9 d6
RadioSend: PreambleLength=8, HeaderType=0, PayloadLength=22, CrcMode=1, InvertIQ=0
TimerStop: 0x420179dc
TimerStart2: 0x420179dc, 4000 ms
callout_reset: evq=0x42017b28, ev=0x420179dc
###### =========== MCPS-Request ============ ######
###### MCPS_UNCONFIRMED ######
###### ===================================== ######
STATUS : OK
PrepareTxFrame: Transmit OK
DIO1 add event
handle_event_queue: ev=0x42015a98
RadioOnDioIrq
RadioIrqProcess
IRQ_TX_DONE
TimerStop: 0x420179dc
TODO: RtcGetCalendarTime
TODO: RtcBkupRead
RadioOnDioIrq
RadioIrqProcess
RadioSleep
DIO1 add event
TimerSetValue: 0x42016828, 980 ms
TimerStart: 0x42016828
TimerStop: 0x42016828
TimerStart2: 0x42016828, 980 ms
callout_reset: evq=0x42017b28, ev=0x42016828
TimerSetValue: 0x42016844, 1988 ms
TimerStart: 0x42016844
TimerStop: 0x42016844
TimerStart2: 0x42016844, 1988 ms
callout_reset: evq=0x42017b28, ev=0x42016844
TODO: RtcGetCalendarTime
handle_event_queue: ev=0x42015a98
RadioOnDioIrq
RadioIrqProcess
RadioOnDioIrq
RadioIrqProcess
callout_handler: unlock
callout_handler: evq=0x42017b28, ev=0x42016828
callout_handler: lock
handle_event_queue: ev=0x42016828
TimerStop: 0x42016828
RadioStandby
RadioSetChannel: freq=923200000
RadioSetRxConfig
RadioStandby
RadioSetModem
RadioSetRxConfig done
RadioRx
TimerStop: 0x42017b0c
TimerStart2: 0x42017b0c, 3000 ms
callout_reset: evq=0x42017b28, ev=0x42017b0c
RadioOnDioIrq
RadioIrqProcess
DIO1 add event
handle_event_queue: ev=0x42015a98
RadioOnDioIrq
RadioIrqProcess
IRQ_RX_TX_TIMEOUT
TimerStop: 0x42017b0c
RadioOnDioIrq
RadioIrqProcess
RadioSleep
DIO1 add event
TimerStop: 0x42016844
TimerStop: 0x4201680c
OnTxData
###### =========== MCPS-Confirm ============ ######
STATUS : OK
###### ===== UPLINK FRAME 3 ===== ######
CLASS : A
TX PORT : 1
TX DATA : UNCONFIRMED
48 69 20 4E 75 74 74 58 00
DATA RATE : DR_3
U/L FREQ : 923200000
TX POWER : 0
CHANNEL MASK: 0003
TODO: EepromMcuWriteBuffer
TODO: EepromMcuWriteBuffer
UplinkProcess
handle_event_queue: ev=0x42015a98
RadioOnDioIrq
RadioIrqProcess
RadioOnDioIrq
RadioIrqProcess
UplinkProcess
callout_handler: unlock
callout_handler: evq=0x42017b28, ev=0x42015360
callout_handler: lock
handle_event_queue: ev=0x42015360
OnTxTimerEvent: timeout in 42249 ms, event=0x42015360
TimerStop: 0x42015360
TimerSetValue: 0x42015360, 42249 ms
TimerStart: 0x42015360
TimerStop: 0x42015360
TimerStart2: 0x42015360, 42249 ms
callout_reset: evq=0x42017b28, ev=0x42015360
RadioOnDioIrq
RadioIrqProcess
UplinkProcess
PrepareTxFrame: Transmit to LoRaWAN: Hi NuttX (9 bytes)
PrepareTxFrame: status=0, maxSize=53, currentSize=53
LmHandlerSend: Data frame
TODO: RtcGetCalendarTime
TODO: RtcBkupRead
RadioSetChannel: freq=923200000
RadioSetTxConfig: modem=1, power=13, fdev=0, bandwidth=0, datarate=9, coderate=1, preambleLen=8, fixLen=0, crcOn=1, freqHopOn=0, hopPeriod=0, iqInverted=0, timeout=4000
RadioSetTxConfig: SpreadingFactor=9, Bandwidth=4, CodingRate=1, LowDatarateOptimize=0, PreambleLength=8, HeaderType=0, PayloadLength=128, CrcMode=1, InvertIQ=0
RadioStandby
RadioSetModem
SX126xSetTxParams: power=13, rampTime=7
SX126xSetPaConfig: paDutyCycle=4, hpMax=7, deviceSel=0, paLut=1
RadioSend: size=22
40 90 97 da 01 00 04 00 01 9b 88 b2 17 ae 8d f9 aa d0 90 0e 22 3f
RadioSend: PreambleLength=8, HeaderType=0, PayloadLength=22, CrcMode=1, InvertIQ=0
TimerStop: 0x420179dc
TimerStart2: 0x420179dc, 4000 ms
callout_reset: evq=0x42017b28, ev=0x420179dc
###### =========== MCPS-Request ============ ######
###### MCPS_UNCONFIRMED ######
###### ===================================== ######
STATUS : OK
PrepareTxFrame: Transmit OK
DIO1 add event
handle_event_queue: ev=0x42015a98
RadioOnDioIrq
RadioIrqProcess
IRQ_TX_DONE
TimerStop: 0x420179dc
TODO: RtcGetCalendarTime
TODO: RtcBkupRead
RadioOnDioIrq
RadioIrqProcess
RadioSleep
DIO1 add event
TimerSetValue: 0x42016828, 980 ms
TimerStart: 0x42016828
TimerStop: 0x42016828
TimerStart2: 0x42016828, 980 ms
callout_reset: evq=0x42017b28, ev=0x42016828
TimerSetValue: 0x42016844, 1988 ms
TimerStart: 0x42016844
TimerStop: 0x42016844
TimerStart2: 0x42016844, 1988 ms
callout_reset: evq=0x42017b28, ev=0x42016844
TODO: RtcGetCalendarTime
handle_event_queue: ev=0x42015a98
RadioOnDioIrq
RadioIrqProcess
RadioOnDioIrq
RadioIrqProcess
callout_handler: unlock
callout_handler: evq=0x42017b28, ev=0x42016828
callout_handler: lock
handle_event_queue: ev=0x42016828
TimerStop: 0x42016828
RadioStandby
RadioSetChannel: freq=923200000
RadioSetRxConfig
RadioStandby
RadioSetModem
RadioSetRxConfig done
RadioRx
TimerStop: 0x42017b0c
TimerStart2: 0x42017b0c, 3000 ms
callout_reset: evq=0x42017b28, ev=0x42017b0c
RadioOnDioIrq
RadioIrqProcess
DIO1 add event
handle_event_queue: ev=0x42015a98
RadioOnDioIrq
RadioIrqProcess
IRQ_RX_TX_TIMEOUT
TimerStop: 0x42017b0c
RadioOnDioIrq
RadioIrqProcess
RadioSleep
DIO1 add event
TimerStop: 0x42016844
TimerStop: 0x4201680c
OnTxData
###### =========== MCPS-Confirm ============ ######
STATUS : OK
###### ===== UPLINK FRAME 4 ===== ######
CLASS : A
TX PORT : 1
TX DATA : UNCONFIRMED
48 69 20 4E 75 74 74 58 00
DATA RATE : DR_3
U/L FREQ : 923200000
TX POWER : 0
CHANNEL MASK: 0003
TODO: EepromMcuWriteBuffer
TODO: EepromMcuWriteBuffer
UplinkProcess
handle_event_queue: ev=0x42015a98
RadioOnDioIrq
RadioIrqProcess
RadioOnDioIrq
RadioIrqProcess
UplinkProcess
callout_handler: unlock
callout_handler: evq=0x42017b28, ev=0x42015360
callout_handler: lock
handle_event_queue: ev=0x42015360
OnTxTimerEvent: timeout in 42249 ms, event=0x42015360
TimerStop: 0x42015360
TimerSetValue: 0x42015360, 42249 ms
TimerStart: 0x42015360
TimerStop: 0x42015360
TimerStart2: 0x42015360, 42249 ms
callout_reset: evq=0x42017b28, ev=0x42015360
RadioOnDioIrq
RadioIrqProcess
UplinkProcess
PrepareTxFrame: Transmit to LoRaWAN: Hi NuttX (9 bytes)
PrepareTxFrame: status=0, maxSize=53, currentSize=53
LmHandlerSend: Data frame
TODO: RtcGetCalendarTime
TODO: RtcBkupRead
RadioSetChannel: freq=923400000
RadioSetTxConfig: modem=1, power=13, fdev=0, bandwidth=0, datarate=9, coderate=1, preambleLen=8, fixLen=0, crcOn=1, freqHopOn=0, hopPeriod=0, iqInverted=0, timeout=4000
RadioSetTxConfig: SpreadingFactor=9, Bandwidth=4, CodingRate=1, LowDatarateOptimize=0, PreambleLength=8, HeaderType=0, PayloadLength=128, CrcMode=1, InvertIQ=0
RadioStandby
RadioSetModem
SX126xSetTxParams: power=13, rampTime=7
SX126xSetPaConfig: paDutyCycle=4, hpMax=7, deviceSel=0, paLut=1
RadioSend: size=22
40 90 97 da 01 00 05 00 01 95 54 28 7a e7 d3 f7 d0 f6 bd 4c c0 1d
RadioSend: PreambleLength=8, HeaderType=0, PayloadLength=22, CrcMode=1, InvertIQ=0
TimerStop: 0x420179dc
TimerStart2: 0x420179dc, 4000 ms
callout_reset: evq=0x42017b28, ev=0x420179dc
###### =========== MCPS-Request ============ ######
###### MCPS_UNCONFIRMED ######
###### ===================================== ######
STATUS : OK
PrepareTxFrame: Transmit OK
DIO1 add event
handle_event_queue: ev=0x42015a98
RadioOnDioIrq
RadioIrqProcess
IRQ_TX_DONE
TimerStop: 0x420179dc
TODO: RtcGetCalendarTime
TODO: RtcBkupRead
RadioOnDioIrq
RadioIrqProcess
RadioSleep
DIO1 add event
TimerSetValue: 0x42016828, 980 ms
TimerStart: 0x42016828
TimerStop: 0x42016828
TimerStart2: 0x42016828, 980 ms
callout_reset: evq=0x42017b28, ev=0x42016828
TimerSetValue: 0x42016844, 1988 ms
TimerStart: 0x42016844
TimerStop: 0x42016844
TimerStart2: 0x42016844, 1988 ms
callout_reset: evq=0x42017b28, ev=0x42016844
TODO: RtcGetCalendarTime
handle_event_queue: ev=0x42015a98
RadioOnDioIrq
RadioIrqProcess
RadioOnDioIrq
RadioIrqProcess
callout_handler: unlock
callout_handler: evq=0x42017b28, ev=0x42016828
callout_handler: lock
handle_event_queue: ev=0x42016828
TimerStop: 0x42016828
RadioStandby
RadioSetChannel: freq=923400000
RadioSetRxConfig
RadioStandby
RadioSetModem
RadioSetRxConfig done
RadioRx
TimerStop: 0x42017b0c
TimerStart2: 0x42017b0c, 3000 ms
callout_reset: evq=0x42017b28, ev=0x42017b0c
RadioOnDioIrq
RadioIrqProcess
DIO1 add event
handle_event_queue: ev=0x42015a98
RadioOnDioIrq
RadioIrqProcess
IRQ_RX_TX_TIMEOUT
TimerStop: 0x42017b0c
RadioOnDioIrq
RadioIrqProcess
RadioSleep
DIO1 add event
TimerStop: 0x42016844
TimerStop: 0x4201680c
OnTxData
###### =========== MCPS-Confirm ============ ######
STATUS : OK
###### ===== UPLINK FRAME 5 ===== ######
CLASS : A
TX PORT : 1
TX DATA : UNCONFIRMED
48 69 20 4E 75 74 74 58 00
DATA RATE : DR_3
U/L FREQ : 923400000
TX POWER : 0
CHANNEL MASK: 0003
TODO: EepromMcuWriteBuffer
TODO: EepromMcuWriteBuffer
UplinkProcess
handle_event_queue: ev=0x42015a98
RadioOnDioIrq
RadioIrqProcess
RadioOnDioIrq
RadioIrqProcess
UplinkProcess
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment