Created
June 4, 2022 12:02
-
-
Save lupyuen/477982242d897771d7a5780c8a9b0910 to your computer and use it in GitHub Desktop.
NuttX LoRaWAN App compiled with Zig Compiler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gplh_enable: WARNING: pin9: Already detached | |
gplh_enable: WARNING: pin12: Already detached | |
gplh_enable: WARNING: pin19: Already detached | |
cst816s_register: path=/dev/input0, addr=21 | |
cst816s_register: Driver registered | |
NuttShell (NSH) NuttX-10.3.0-RC2 | |
nsh> lorawan_test | |
lorawan_test_main: Compiled with zig cc | |
init_entropy_pool | |
offset = 2228 | |
temperature = 30.181866 Celsius | |
offset = 2228 | |
temperature = 29.536953 Celsius | |
offset = 2228 | |
temperature = 29.021025 Celsius | |
offset = 2228 | |
temperature = 30.568811 Celsius | |
###### ===================================== ###### | |
Application name : lorawan_test | |
Application version: 1.2.0 | |
GitHub base version: 5.0.0 | |
###### ===================================== ###### | |
LoRaMacInitialization: Compiled with gcc | |
init_event_queue | |
TimerInit: 0x4201c76c | |
TimerInit: 0x4201c788 | |
TimerInit: 0x4201c7a4 | |
TimerInit: 0x4201c820 | |
TimerInit: 0x4201c8d4 | |
TimerInit: 0x4201c8f0 | |
TimerInit: 0x4201c90c | |
TimerInit: 0x4201c928 | |
TODO: RtcGetCalendarTime | |
TODO: SX126xReset | |
SX126xIoInit: Compiled with gcc | |
init_gpio | |
DIO1 pintype before=5 | |
init_gpio: change DIO1 to Trigger GPIO Interrupt on Rising Edge | |
gplh_enable: WARNING: pin19: Already detached | |
DIO1 pintype after=8 | |
Starting process_dio1 | |
init_spi | |
SX126xSetTxParams: power=22, rampTime=7 | |
SX126xSetPaConfig: paDutyCycle=4, hpMax=7, deviceSel=0, paLut=1 | |
TimerInit: 0x4201b86c | |
TimerInit: 0x4201b7d8 | |
RadioSetModem | |
RadioSetModem | |
RadioSetPublicNetwork: public syncword=3444 | |
RadioSleep | |
callout_handler: lock | |
process_dio1 started | |
process_dio1: event=0x4201b894 | |
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: 0x4201c3c4 | |
TimerInit: 0x4201c3e0 | |
TimerInit: 0x4201c2a4 | |
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, timeut=4000 | |
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: 0x7825a6a9 | |
RadioSend: size=23 | |
00 00 00 00 00 00 00 00 00 5b b1 7b 37 e7 5e c1 4b a9 a6 0c 00 8a a1 | |
RadioSend: PreambleLength=8, HeaderType=0, PayloadLength=23, CrcMode=1, InvertIQ=0 | |
TimerStop: 0x4201b86c | |
TimerStart2: 0x4201b86c, 4000 ms | |
callout_reset: evq=0x420131a8, ev=0x4201b86c | |
###### =========== MLME-Request ============ ###### | |
###### MLME_JOIN ###### | |
###### ===================================== ###### | |
STATUS : OK | |
StartTxProcess | |
TimerInit: 0x42015b0c | |
TimerSetValue: 0x42015b0c, 42249 ms | |
OnTxTimerEvent: timeout in 42249 ms, event=0 | |
TimerStop: 0x42015b0c | |
TimerSetValue: 0x42015b0c, 42249 ms | |
TimerStart: 0x42015b0c | |
TimerStop: 0x42015b0c | |
TimerStart2: 0x42015b0c, 42249 ms | |
callout_reset: evq=0x420131a8, ev=0x42015b0c | |
handle_event_queue | |
DIO1 add event | |
handle_event_queue: ev=0x4201b894 | |
RadioOnDioIrq | |
RadioIrqProcess | |
IRQ_TX_DONE | |
TimerStop: 0x4201b86c | |
TODO: RtcGetCalendarTime | |
TODO: RtcBkupRead | |
RadioOnDioIrq | |
RadioIrqProcess | |
ProcessRadioTxDone: RxWindow1Delay=4988 | |
RadioSleep | |
TimerSetValue: 0x4201c788, 4988 ms | |
TimerStart: 0x4201c788 | |
TimerStop: 0x4201c788 | |
TimerStart2: 0x4201c788, 4988 ms | |
callout_reset: evq=0x420131a8, ev=0x4201c788 | |
TimerSetValue: 0x4201c7a4, 5988 ms | |
TimerStart: 0x4201c7a4 | |
TimerStop: 0x4201c7a4 | |
TimerStart2: 0x4201c7a4, 5988 ms | |
callout_reset: evq=0x420131a8, ev=0x4201c7a4 | |
TODO: RtcGetCalendarTime | |
callout_handler: unlock | |
callout_handler: evq=0x420131a8, ev=0x4201c788 | |
callout_handler: lock | |
handle_event_queue: ev=0x4201c788 | |
TimerStop: 0x4201c788 | |
RadioStandby | |
RadioSetChannel: freq=923400000 | |
RadioSetRxConfig | |
RadioStandby | |
RadioSetModem | |
RadioSetRxConfig done | |
RadioRx: timeout=3000 | |
TimerStop: 0x4201b7d8 | |
TimerStart2: 0x4201b7d8, 3000 ms | |
callout_reset: evq=0x420131a8, ev=0x4201b7d8 | |
RadioOnDioIrq | |
RadioIrqProcess | |
DIO1 add event | |
handle_event_queue: ev=0x4201b894 | |
RadioOnDioIrq | |
RadioIrqProcess | |
IRQ_PREAMBLE_DETECTED | |
RadioOnDioIrq | |
RadioIrqProcess | |
DIO1 add event | |
handle_event_queue: ev=0x4201b894 | |
RadioOnDioIrq | |
RadioIrqProcess | |
IRQ_HEADER_VALID | |
RadioOnDioIrq | |
RadioIrqProcess | |
DIO1 add event | |
handle_event_queue: ev=0x4201b894 | |
RadioOnDioIrq | |
RadioIrqProcess | |
IRQ_RX_DONE | |
TimerStop: 0x4201b7d8 | |
RadioOnDioIrq | |
RadioIrqProcess | |
RadioSleep | |
TimerStop: 0x4201c7a4 | |
OnTxData | |
###### =========== MLME-Confirm ============ ###### | |
STATUS : OK | |
OnJoinRequest | |
###### =========== JOINED ============ ###### | |
OTAA | |
DevAddr : 00DC5ED5 | |
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 d5 5e dc 00 00 01 00 01 20 39 4e f0 34 95 da 7d dc 68 52 46 65 | |
RadioSend: PreambleLength=8, HeaderType=0, PayloadLength=22, CrcMode=1, InvertIQ=0 | |
TimerStop: 0x4201b86c | |
TimerStart2: 0x4201b86c, 4000 ms | |
callout_reset: evq=0x420131a8, ev=0x4201b86c | |
###### =========== MCPS-Request ============ ###### | |
###### MCPS_UNCONFIRMED ###### | |
###### ===================================== ###### | |
STATUS : OK | |
PrepareTxFrame: Transmit OK | |
DIO1 add event | |
handle_event_queue: ev=0x4201b894 | |
RadioOnDioIrq | |
RadioIrqProcess | |
IRQ_TX_DONE | |
TimerStop: 0x4201b86c | |
TODO: RtcGetCalendarTime | |
TODO: RtcBkupRead | |
RadioOnDioIrq | |
RadioIrqProcess | |
ProcessRadioTxDone: RxWindow1Delay=980 | |
RadioSleep | |
TimerSetValue: 0x4201c788, 980 ms | |
TimerStart: 0x4201c788 | |
TimerStop: 0x4201c788 | |
TimerStart2: 0x4201c788, 980 ms | |
callout_reset: evq=0x420131a8, ev=0x4201c788 | |
TimerSetValue: 0x4201c7a4, 1988 ms | |
TimerStart: 0x4201c7a4 | |
TimerStop: 0x4201c7a4 | |
TimerStart2: 0x4201c7a4, 1988 ms | |
callout_reset: evq=0x420131a8, ev=0x4201c7a4 | |
TODO: RtcGetCalendarTime | |
callout_handler: unlock | |
callout_handler: evq=0x420131a8, ev=0x4201c788 | |
callout_handler: lock | |
handle_event_queue: ev=0x4201c788 | |
TimerStop: 0x4201c788 | |
RadioStandby | |
RadioSetChannel: freq=923400000 | |
RadioSetRxConfig | |
RadioStandby | |
RadioSetModem | |
RadioSetRxConfig done | |
RadioRx: timeout=3000 | |
TimerStop: 0x4201b7d8 | |
TimerStart2: 0x4201b7d8, 3000 ms | |
callout_reset: evq=0x420131a8, ev=0x4201b7d8 | |
RadioOnDioIrq | |
RadioIrqProcess | |
DIO1 add event | |
handle_event_queue: ev=0x4201b894 | |
RadioOnDioIrq | |
RadioIrqProcess | |
IRQ_RX_TX_TIMEOUT | |
TimerStop: 0x4201b7d8 | |
RadioOnDioIrq | |
RadioIrqProcess | |
RadioSleep | |
TimerStop: 0x4201c7a4 | |
TimerStop: 0x4201c76c | |
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 | |
callout_handler: unlock | |
callout_handler: evq=0x420131a8, ev=0x42015b0c | |
callout_handler: lock | |
handle_event_queue: ev=0x42015b0c | |
OnTxTimerEvent: timeout in 42249 ms, event=0x42015b0c | |
TimerStop: 0x42015b0c | |
TimerSetValue: 0x42015b0c, 42249 ms | |
TimerStart: 0x42015b0c | |
TimerStop: 0x42015b0c | |
TimerStart2: 0x42015b0c, 42249 ms | |
callout_reset: evq=0x420131a8, ev=0x42015b0c | |
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 d5 5e dc 00 00 02 00 01 f5 b7 4b 16 3b 89 e4 a7 0a 42 73 75 63 | |
RadioSend: PreambleLength=8, HeaderType=0, PayloadLength=22, CrcMode=1, InvertIQ=0 | |
TimerStop: 0x4201b86c | |
TimerStart2: 0x4201b86c, 4000 ms | |
callout_reset: evq=0x420131a8, ev=0x4201b86c | |
###### =========== MCPS-Request ============ ###### | |
###### MCPS_UNCONFIRMED ###### | |
###### ===================================== ###### | |
STATUS : OK | |
PrepareTxFrame: Transmit OK | |
DIO1 add event | |
handle_event_queue: ev=0x4201b894 | |
RadioOnDioIrq | |
RadioIrqProcess | |
IRQ_TX_DONE | |
TimerStop: 0x4201b86c | |
TODO: RtcGetCalendarTime | |
TODO: RtcBkupRead | |
RadioOnDioIrq | |
RadioIrqProcess | |
ProcessRadioTxDone: RxWindow1Delay=980 | |
RadioSleep | |
TimerSetValue: 0x4201c788, 980 ms | |
TimerStart: 0x4201c788 | |
TimerStop: 0x4201c788 | |
TimerStart2: 0x4201c788, 980 ms | |
callout_reset: evq=0x420131a8, ev=0x4201c788 | |
TimerSetValue: 0x4201c7a4, 1988 ms | |
TimerStart: 0x4201c7a4 | |
TimerStop: 0x4201c7a4 | |
TimerStart2: 0x4201c7a4, 1988 ms | |
callout_reset: evq=0x420131a8, ev=0x4201c7a4 | |
TODO: RtcGetCalendarTime | |
callout_handler: unlock | |
callout_handler: evq=0x420131a8, ev=0x4201c788 | |
callout_handler: lock | |
handle_event_queue: ev=0x4201c788 | |
TimerStop: 0x4201c788 | |
RadioStandby | |
RadioSetChannel: freq=923200000 | |
RadioSetRxConfig | |
RadioStandby | |
RadioSetModem | |
RadioSetRxConfig done | |
RadioRx: timeout=3000 | |
TimerStop: 0x4201b7d8 | |
TimerStart2: 0x4201b7d8, 3000 ms | |
callout_reset: evq=0x420131a8, ev=0x4201b7d8 | |
RadioOnDioIrq | |
RadioIrqProcess | |
DIO1 add event | |
handle_event_queue: ev=0x4201b894 | |
RadioOnDioIrq | |
RadioIrqProcess | |
IRQ_RX_TX_TIMEOUT | |
TimerStop: 0x4201b7d8 | |
RadioOnDioIrq | |
RadioIrqProcess | |
RadioSleep | |
TimerStop: 0x4201c7a4 | |
TimerStop: 0x4201c76c | |
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 : 923200000 | |
TX POWER : 0 | |
CHANNEL MASK: 0003 | |
TODO: EepromMcuWriteBuffer | |
TODO: EepromMcuWriteBuffer | |
UplinkProcess |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment