Created
June 3, 2022 05:57
-
-
Save lupyuen/ada7f83a96eb36ad1b9fe09da4527003 to your computer and use it in GitHub Desktop.
NuttX LoRa SX1262 Library 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> | |
nsh> uname -a | |
NuttX 10.3.0-RC2 acac856b48-dirty Jun 3 2022 13:37:37 risc-v bl602evb | |
nsh> | |
nsh> lorawan_test | |
init_entropy_pool | |
offset = 2228 | |
temperature = 29.923901 Celsius | |
offset = 2228 | |
temperature = 30.955759 Celsius | |
offset = 2228 | |
temperature = 29.150007 Celsius | |
offset = 2228 | |
temperature = 32.116600 Celsius | |
###### ===================================== ###### | |
Application name : lorawan_test | |
Application version: 1.2.0 | |
GitHub base version: 5.0.0 | |
###### ===================================== ###### | |
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 zig cc | |
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: 0x4201b6c4 | |
TimerInit: 0x4201b6e0 | |
RadioSetModem | |
RadioSetModem | |
RadioSetPublicNetwork: public syncword=3444 | |
RadioSleep | |
callout_handler: lock | |
process_dio1 started | |
process_dio1: event=0x4201b988 | |
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, timeout=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: 0xce9cb65d | |
RadioSend: size=23 | |
00 00 00 00 00 00 00 00 00 5b b1 7b 37 e7 5e c1 4b 5d b6 0f e6 5b 67 | |
RadioSend: PreambleLength=8, HeaderType=0, PayloadLength=23, CrcMode=1, InvertIQ=0 | |
TimerStop: 0x4201b6c4 | |
TimerStart2: 0x4201b6c4, 4000 ms | |
callout_reset: evq=0x420131a0, ev=0x4201b6c4 | |
###### =========== 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=0x420131a0, ev=0x42015b0c | |
handle_event_queue | |
DIO1 add event | |
handle_event_queue: ev=0x4201b988 | |
RadioOnDioIrq | |
RadioIrqProcess | |
IRQ_TX_DONE | |
TimerStop: 0x4201b6c4 | |
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=0x420131a0, ev=0x4201c788 | |
TimerSetValue: 0x4201c7a4, 5988 ms | |
TimerStart: 0x4201c7a4 | |
TimerStop: 0x4201c7a4 | |
TimerStart2: 0x4201c7a4, 5988 ms | |
callout_reset: evq=0x420131a0, ev=0x4201c7a4 | |
TODO: RtcGetCalendarTime | |
callout_handler: unlock | |
callout_handler: evq=0x420131a0, 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: 0x4201b6e0 | |
TimerStart2: 0x4201b6e0, 3000 ms | |
callout_reset: evq=0x420131a0, ev=0x4201b6e0 | |
RadioOnDioIrq | |
RadioIrqProcess | |
DIO1 add event | |
handle_event_queue: ev=0x4201b988 | |
RadioOnDioIrq | |
RadioIrqProcess | |
IRQ_PREAMBLE_DETECTED | |
RadioOnDioIrq | |
RadioIrqProcess | |
DIO1 add event | |
handle_event_queue: ev=0x4201b988 | |
RadioOnDioIrq | |
RadioIrqProcess | |
IRQ_HEADER_VALID | |
RadioOnDioIrq | |
RadioIrqProcess | |
DIO1 add event | |
handle_event_queue: ev=0x4201b988 | |
RadioOnDioIrq | |
RadioIrqProcess | |
IRQ_RX_DONE | |
TimerStop: 0x4201b6e0 | |
RadioOnDioIrq | |
RadioIrqProcess | |
RadioSleep | |
TimerStop: 0x4201c7a4 | |
OnTxData | |
###### =========== MLME-Confirm ============ ###### | |
STATUS : OK | |
OnJoinRequest | |
###### =========== JOINED ============ ###### | |
OTAA | |
DevAddr : 000E268C | |
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 8c 26 0e 00 00 01 00 01 ce 68 c3 61 df ac c8 28 00 9c f3 20 2d | |
RadioSend: PreambleLength=8, HeaderType=0, PayloadLength=22, CrcMode=1, InvertIQ=0 | |
TimerStop: 0x4201b6c4 | |
TimerStart2: 0x4201b6c4, 4000 ms | |
callout_reset: evq=0x420131a0, ev=0x4201b6c4 | |
###### =========== MCPS-Request ============ ###### | |
###### MCPS_UNCONFIRMED ###### | |
###### ===================================== ###### | |
STATUS : OK | |
PrepareTxFrame: Transmit OK | |
DIO1 add event | |
handle_event_queue: ev=0x4201b988 | |
RadioOnDioIrq | |
RadioIrqProcess | |
IRQ_TX_DONE | |
TimerStop: 0x4201b6c4 | |
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=0x420131a0, ev=0x4201c788 | |
TimerSetValue: 0x4201c7a4, 1988 ms | |
TimerStart: 0x4201c7a4 | |
TimerStop: 0x4201c7a4 | |
TimerStart2: 0x4201c7a4, 1988 ms | |
callout_reset: evq=0x420131a0, ev=0x4201c7a4 | |
TODO: RtcGetCalendarTime | |
callout_handler: unlock | |
callout_handler: evq=0x420131a0, 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: 0x4201b6e0 | |
TimerStart2: 0x4201b6e0, 3000 ms | |
callout_reset: evq=0x420131a0, ev=0x4201b6e0 | |
RadioOnDioIrq | |
RadioIrqProcess | |
DIO1 add event | |
handle_event_queue: ev=0x4201b988 | |
RadioOnDioIrq | |
RadioIrqProcess | |
IRQ_RX_TX_TIMEOUT | |
TimerStop: 0x4201b6e0 | |
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=0x420131a0, 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=0x420131a0, 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=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 8c 26 0e 00 00 02 00 01 bd 9c 9b 3c 87 8f 5b 64 d6 b2 85 84 ad | |
RadioSend: PreambleLength=8, HeaderType=0, PayloadLength=22, CrcMode=1, InvertIQ=0 | |
TimerStop: 0x4201b6c4 | |
TimerStart2: 0x4201b6c4, 4000 ms | |
callout_reset: evq=0x420131a0, ev=0x4201b6c4 | |
###### =========== MCPS-Request ============ ###### | |
###### MCPS_UNCONFIRMED ###### | |
###### ===================================== ###### | |
STATUS : OK | |
PrepareTxFrame: Transmit OK | |
DIO1 add event | |
handle_event_queue: ev=0x4201b988 | |
RadioOnDioIrq | |
RadioIrqProcess | |
IRQ_TX_DONE | |
TimerStop: 0x4201b6c4 | |
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=0x420131a0, ev=0x4201c788 | |
TimerSetValue: 0x4201c7a4, 1988 ms | |
TimerStart: 0x4201c7a4 | |
TimerStop: 0x4201c7a4 | |
TimerStart2: 0x4201c7a4, 1988 ms | |
callout_reset: evq=0x420131a0, ev=0x4201c7a4 | |
TODO: RtcGetCalendarTime | |
callout_handler: unlock | |
callout_handler: evq=0x420131a0, 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: 0x4201b6e0 | |
TimerStart2: 0x4201b6e0, 3000 ms | |
callout_reset: evq=0x420131a0, ev=0x4201b6e0 | |
RadioOnDioIrq | |
RadioIrqProcess | |
DIO1 add event | |
handle_event_queue: ev=0x4201b988 | |
RadioOnDioIrq | |
RadioIrqProcess | |
IRQ_RX_TX_TIMEOUT | |
TimerStop: 0x4201b6e0 | |
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 : 923400000 | |
TX POWER : 0 | |
CHANNEL MASK: 0003 | |
TODO: EepromMcuWriteBuffer | |
TODO: EepromMcuWriteBuffer | |
UplinkProcess | |
callout_handler: unlock | |
callout_handler: evq=0x420131a0, 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=0x420131a0, ev=0x42015b0c | |
RadioOnDioIrq | |
RadioIrqProcess | |
UplinkProcess | |
PrepareTxFrame: Trasmit 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 8c 26 0e 00 00 03 00 01 c8 c0 6e 18 ee ec 6f ed 18 ea 55 14 7e | |
RadioSend: PreambleLength=8, HeaderType=0, PayloadLength=22, CrcMode=1, InvertIQ=0 | |
TimerStop: 0x4201b6c4 | |
TimerStart2: 0x4201b6c4, 4000 ms | |
callout_reset: evq=0x420131a0, ev=0x4201b6c4 | |
###### =========== MCPS-Request ============ ###### | |
###### MCPS_UNCONFIRMED ###### | |
###### ===================================== ###### | |
STATUS : OK | |
PrepareTxFrame: Transmit OK | |
DIO1 add event | |
handle_event_queue: ev=0x4201b988 | |
RadioOnDioIrq | |
RadioIrqProcess | |
IRQ_TX_DONE | |
TimerStop: 0x4201b6c4 | |
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=0x420131a0, ev=0x4201c788 | |
TimerSetValue: 0x4201c7a4, 1988 ms | |
TimerStart: 0x4201c7a4 | |
TimerStop: 0x4201c7a4 | |
TimerStart2: 0x4201c7a4, 1988 ms | |
callout_reset: evq=0x420131a0, ev=0x4201c7a4 | |
TODO: RtcGetCalendarTime | |
callout_handler: unlock | |
callout_handler: evq=0x420131a0, 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: 0x4201b6e0 | |
TimerStart2: 0x4201b6e0, 3000 ms | |
callout_reset: evq=0x420131a0, ev=0x4201b6e0 | |
RadioOnDioIrq | |
RadioIrqProcess | |
DIO1 add event | |
handle_event_queue: ev=0x4201b988 | |
RadioOnDioIrq | |
RadioIrqProcess | |
IRQ_RX_TX_TIMEOUT | |
TimerStop: 0x4201b6e0 | |
RadioOnDioIrq | |
RadioIrqProcess | |
RadioSleep | |
TimerStop: 0x4201c7a4 | |
TimerStop: 0x4201c76c | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment