Skip to content

Instantly share code, notes, and snippets.

@lupyuen
Last active Jan 4, 2022
Embed
What would you like to do?
LoRaWAN Join Log on Apache NuttX OS (See https://lupyuen.github.io/articles/lorawan3)
nsh> lorawan_test
create_task
TimerInit
TimerSetValue: 25 ms
TimerInit
TimerSetValue: 25 ms
TimerInit
TimerSetValue: 100 ms
TimerInit
TimerSetValue: 5000 ms
###### ===================================== ######
Application name : fuota-test-01
Application version: 1.2.0
GitHub base version: 5.0.0
###### ===================================== ######
TimerInit
TimerInit
TimerInit
TimerInit
TimerInit
TimerInit
TimerInit
TimerInit
TODO: RtcGetCalendarTime
TODO: SX126xReset
SX126xIoInit
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
DIO1 before=0
init_spi
TODO: SX126X interrupt init
SX126xWakeup
sx126x_hal_write: command_length=1, data_length=1
spi tx: c0 00
spi rx: 44 44
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=1
spi tx: 80 00
spi rx: a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=1
spi tx: 9d 01
spi rx: a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=1
spi tx: 80 00
spi rx: a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=1
spi tx: 96 01
spi rx: a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=2
spi tx: 8f 00 00
spi rx: a2 a2 a2
SX126xWaitOnBusy
SX126xSetTxParams: power=22, rampTime=7
SX126xGetDeviceId: SX1262
SX126xWaitOnBusy
sx126x_hal_read: command_length=4, data_length=1
spi tx: 1d 08 d8 00 00
spi rx: a2 a2 a2 a2 c8
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=3, data_length=1
spi tx: 0d 08 d8 de
spi rx: a2 a2 a2 a2
SX126xWaitOnBusy
SX126xSetPaConfig: paDutyCycle=4, hpMax=7, deviceSel=0, paLut=1
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=4
spi tx: 95 04 07 00 01
spi rx: a2 a2 a2 a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=3, data_length=1
spi tx: 0d 08 e7 38
spi rx: a2 a2 a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=2
spi tx: 8e 16 07
spi rx: a2 a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=8
spi tx: 08 ff ff ff ff 00 00 00 00
spi rx: a2 a2 a2 a2 a2 a2 a2 a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_read: command_length=4, data_length=9
spi tx: 1d 02 9f 00 00 00 00 00 00 00 00 00 00
spi rx: a2 a2 a2 a2 00 be 0e ac 80 69 0d 42 c7
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=3, data_length=9
spi tx: 0d 02 9f 01 08 ac ac 80 69 0d 42 c7
spi rx: a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_read: command_length=4, data_length=9
spi tx: 1d 02 9f 00 00 00 00 00 00 00 00 00 00
spi rx: a2 a2 a2 a2 01 08 ac ac 80 69 0d 42 c7
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=3, data_length=9
spi tx: 0d 02 9f 02 08 ac 08 89 69 0d 42 c7
spi rx: a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2
SX126xWaitOnBusy
TimerInit
TimerInit
RadioSetModem
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=1
spi tx: 8a 01
spi rx: a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=8
spi tx: 08 00 00 00 00 00 00 00 00
spi rx: a2 a2 a2 a2 a2 a2 a2 a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_read: command_length=4, data_length=1
spi tx: 1d 08 e2 00 00
spi rx: a2 a2 a2 a2 0c
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=3, data_length=1
spi tx: 0d 08 e2 0c
spi rx: a2 a2 a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_read: command_length=4, data_length=1
spi tx: 1d 08 e5 00 00
spi rx: a2 a2 a2 a2 20
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=3, data_length=1
spi tx: 0d 08 e5 20
spi rx: a2 a2 a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=3, data_length=1
spi tx: 0d 08 ac 94
spi rx: a2 a2 a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=3
spi tx: 82 ff ff ff
spi rx: a2 a2 a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_read: command_length=4, data_length=4
spi tx: 1d 08 19 00 00 00 00 00
spi rx: d2 d2 d2 d2 22 29 4a e4
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=1
spi tx: 80 00
spi rx: d2 d2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=3, data_length=1
spi tx: 0d 08 e2 0c
spi rx: a2 a2 a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=3, data_length=1
spi tx: 0d 08 e5 20
spi rx: a2 a2 a2 a2
SX126xWaitOnBusy
RadioSetModem
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=1
spi tx: 8a 01
spi rx: a2 a2
SX126xWaitOnBusy
RadioSetPublicNetwork: public syncword=3444
SX126xWaitOnBusy
sx126x_hal_write: command_length=3, data_length=1
spi tx: 0d 07 40 34
spi rx: a2 a2 a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=3, data_length=1
spi tx: 0d 07 41 44
spi rx: a2 a2 a2 a2
SX126xWaitOnBusy
RadioSleep
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=1
spi tx: 84 04
spi rx: a2 a2
DelayMs
DIO1 add event
DIO1 after=1
DIO1 before=1
TODO: EepromMcuReadBuffer
TODO: EepromMcuReadBuffer
TODO: EepromMcuRadBuffer
TODO: EepromMcuReadBuffer
TODO: EepromMcuReadBuffer
TODO: EepromMcuReadBuffer
TODO: EepromMcuReadBuffer
TODO: EepromMcuReadBuffer
RadioSetModem
SX126xWakeup
sx126x_hal_write: command_length=1, data_length=1
spi tx: c0 00
spi rx: ff ff
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=1
spi tx: 8a 01
spi rx: a2 a2
SX126xWaitOnBusy
RadioSetPublicNetwork: public syncword=3444
SX126xWaitOnBusy
sx126x_hal_write: command_length=3, data_length=1
spi tx: 0d 07 40 34
spi rx: a2 a2 a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=3, data_length=1
spi tx: 0d 07 41 44
spi rx: a2 a2 a2 a2
SX126xWaitOnBusy
DevEui : 4B-C1-5E-E7-37-7B-B1-5B
JoinEui : 00-00-00-00-00-00-00-00
Pin : 00-00-00-00
TimerInit
TimerInit
TimerInit
TODO: RtcGetCalendarTime
TimerGetElapsedTime
TimerGetCurrentTime: 25820 ms
TimerGetCurrentTime: 25820 ms
TODO: RtcBkupRead
TODO: RtcBkupRead
RadioSetChannel: freq=923400000
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=2
spi tx: 98 e1 e9
spi rx: a2 a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=4
spi tx: 86 39 b6 66 66
spi rx: a2 a2 a2 a2 a2
SX126xWaitOnBsy
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
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=1
spi tx: 80 00
spi rx: a2 a2
SX126xWaitOnBusy
RadioSetModem
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=1
spi tx: 8a 01
spi rx: a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=4
spi tx: 8b 0a 04 01 00
spi rx: a2 a2 a2 a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=6
spi tx: 8c 00 08 00 ff 01 00
spi rx: a2 a2 a2 a2 a2 a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_read: command_length=4, data_length=1
spi tx: 1d 08 89 00 00
spi rx: a2 a2 a2 a2 04
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=3, data_length=1
spi tx: 0d 08 89 04
spi rx: a2 a2 a2 a2
SX126xWaitOnBusy
SX126xSetRfTxPower
SX126xSetTxParams: power=13, rampTime=7
SX126xGetDeviceId: SX1262
SX126xWaitOnBusy
sx126x_hal_read: command_length=4, data_length=1
spi tx: 1d 08 d8 00 00
spi rx: a2 a2 a2 a2 fe
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=3, data_length=1
spi tx: 0d 08 d8 fe
spi rx: a2 a2 a2 a2
SX126xWaitOnBusy
SX126xSetPaConfig: paDutyCycle=4, hpMax=7, deviceSel=0, paLut=1
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=4
spi tx: 95 04 07 00 01
spi rx: a2 a2 a2 a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=3, data_length=1
spi tx: 0d 08 e7 38
spi rx: a2 a2 a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_lengh=2
spi tx: 8e 0d 07
spi rx: a2 a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=6
spi tx: 8c 00 08 00 17 01 00
spi rx: a2 a2 a2 a2 a2 a2 a2
SX126xWaitOnBusy
SecureElementRandomNumber: 0x7afdd4f8
RadioSend: size=23
00 00 00 00 00 00 00 00 00 5b b1 7b 37 e7 5e c1 4b f8 d4 b6 47 33 5d
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=8
spi tx: 08 02 01 02 01 00 00 00 00
spi rx: a2 a2 a2 a2 a2 a2 a2 a2 a2
SX126xWaitOnBusy
RadioSend: PreambleLength=8, HeaderType=0, PayloadLength=23, CrcMode=1, InvertIQ=0
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=6
spi tx: 8c 00 08 00 17 01 00
spi rx: a2 a2 a2 a2 a2 a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=2, data_length=23
spi tx: 0e 00 00 00 00 00 00 00 00 00 00 5b b1 7b 37 e7 5e c1 4b f8 d4 b6 47 33 5d
spi rx: a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=3
spi tx: 83 00 00 00
spi rx: a2 a2 a2 a2
SX126xWaitOnBusy
TimerStart2: 4000 ms
TimerStop
###### =========== MLME-Request ============ ######
###### MLME_JOIN ######
###### ===================================== ######
STATUS : OK
TimerInit
TimerSetValue: 42249 ms
TimerStop
TimerSetValue: 42249 ms
TimerStart
TimerStart2: 42249 ms
TimerStop
task_callback
task_callback: ev=0x42015b18
RadioOnDioIrq
RadioIrqProcess
SX126xReadCommand: command=0x12, size=2
SX126xWaitOnBusy
sx126x_hal_read: command_length=2, data_length=2
spi tx: 12 00 00 00
spi rx: e2 e2 00 00
status=0xe2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=2
spi tx: 02 00 00
spi rx: e2 e2 e2
SX126xWaitOnBusy
TODO: SX126xGetDio1PinState
RadioOnDioIrq
RadioIrqProcess
SX126xReadCommand: command=0x12, size=2
SX126xWaitOnBusy
sx126x_hal_read: command_length=2, data_length=2
spi tx: 12 00 00 00
spi rx: e2 e2 00 00
status=0xe2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=2
spi tx: 02 00 00
spi rx: e2 e2 e2
SX126xWaitOnBusy
TODO SX126xGetDio1PinState
TODO: BoardCriticalSectionBegin
TODO: BoardCriticalSectionEnd
TODO: BoardCriticalSectionBegin
TODO: BoardCriticalSectionEnd
DIO1 add event
DIO1 after=1
DIO1 before=1
task_callback: ev=0x42015b18
RadioOnDioIrq
RadioIrqProcess
SX126xReadCommand: command=0x12, size=2
SX126xWaitOnBusy
sx126x_hal_read: command_length=2, data_length=2
spi tx: 12 00 00 00
spi rx: ac ac 00 01
status=0xac
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=2
spi tx: 02 00 01
spi rx: ac ac ac
SX126xWaitOnBusy
TODO: SX126xGetDio1PinState
IRQ_TX_DONE
TimerStop
TimerGetCurrentTime: 26250 ms
TODO: RtcGetCalendarTime
TODO: RtcBkupRead
RadioOnDioIrq
RadioIrqProcess
SX126xReadCommand: command=0x12, size=2
SX126xWaitOnBusy
sx126x_hal_read: command_length=2, data_length=2
spi tx: 12 00 00 00
spi rx: ac ac 00 00
status=0xac
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=2
spi tx: 02 00 00
spi rx: ac ac ac
SX126xWaitOnBusy
TODO: SX126xGetDio1PinState
RadioSleep
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=1
spi tx: 84 04
spi rx: ac ac
DelayMs
DIO1 add event
DIO1 after=1
DIO1 before=1
TimerSetValue: 4988 ms
TimerStart
TimerStart2: 4988 ms
TimerStop
TimerSetValue: 5988 ms
TimerStart
TimerStart2: 5988 ms
TimerStop
TODO: RtcGetCalendarTime
TODO: BoardCriticalSectionBegin
TODO: BoardCriticalSectionEnd
TODO: BoardCriticalSectionBegin
TODO: BoardCriticalSectionEnd
task_callback: ev=0x42015b18
RadioOnDioIrq
RadioIrqProcess
SX126xReadCommand: command=0x12, size=2
SX126xWakeup
sx126x_hal_write: command_length=1, data_length=1
spi tx: c0 00
spi rx: ff ff
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_read: command_length=2, data_length=2
spi tx: 12 00 00 00
spi rx: a2 a2 00 00
status=0xa2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=2
spi tx: 02 00 00
spi rx: a2 a2 a2
SX126xWaitOnBusy
TODO: SX126xGetDio1PinState
RadioOnDioIrq
RadioIrqProcess
SX126xReadCommand: command=0x12, size=2
SX126xWaitOnBusy
sx126x_hal_read: command_length=2, data_length=2
spi tx: 12 00 00 00
spi rx: a2 a2 00 00
status=0xa2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=2
spi tx: 02 00 00
spi rx: a2 a2 a2
SX126xWaitOnBusy
TODO: SX126xGetDio1PinState
TODO: BoardCriticalSectionBegin
TODO: BoardCriticalSectionEnd
TODO: BoardCriticalSectionBegin
TODO: BoardCriticalSectionEnd
DIO1 timeout
DIO1 after=0
DIO1 before=0
task_callback: ev=0x42016828
TimerStop
RadioStandby
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=1
spi tx: 80 00
spi rx: a2 a2
SX126xWaitOnBusy
RadioSetChannel: freq=923400000
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=4
spi tx: 86 39 b6 66 66
spi rx: a2 a2 a2 a2 a2
SX126xWaitOnBusy
RadioSetRxConfig
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=1
spi tx: 9f 00
spi rx: a2 a2
SX126xWaitOnBusy
RadioStandby
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=1
spi tx: 80 00
spi rx: a2 a2
SX126xWaitOnBusy
RadioSetModem
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=1
spi tx: 8a 01
spi rx: a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=4
spi tx: 8b 0a 04 01 00
spi rx: a2 a2 a2 a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=6
spi tx: 8c 00 08 00 ff 00 01
spi rx: a2 a2 a2 a2 a2 a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=1
spi tx: a0 0a
spi rx: a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=3, data_length=1
spi tx: 0d 07 06 28
spi rx: a2 a2 a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_read: command_length=4, data_length=1
spi tx: 1d 07 36 00 00
spi rx: a2 a2 a2 a2 0d
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=3, data_length=1
spi tx: 0d 07 36 09
spi rx: a2 a2 a2 a2
SX126xWaitOnBusy
RadioSetRxConfig done
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=6
spi tx: 8c 00 08 00 80 00 01
spi rx: a2 a2 a2 a2 a2 a2 a2
SX126xWaitOnBusy
RadioRx
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=8
spi tx: 08 ff ff ff ff 00 00 00 00
spi rx: a2 a2 a2 a2 a2 a2 a2 a2 a2
SX126xWaitOnBusy
TimerStart2: 3000 ms
TimerStop
SX126xWaitOnBusy
sx126x_hal_write: command_length=3, data_length=1
spi tx: 0d 08 ac 94
spi rx: a2 a2 a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=3
spi tx: 82 3f ff c0
spi rx: a2 a2 a2 a2
SX126xWaitOnBusy
RadioOnDioIrq
RadioIrqProcess
SX126xReadCommand: command=0x12, size=2
SX126xWaitOnBusy
sx126x_hal_read: command_length=2, data_length=2
spi tx: 12 00 00 00
spi rx: d2 d2 00 00
status=0xd2
SX126xWaitOnusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=2
spi tx: 02 00 00
spi rx: d2 d2 d2
SX126xWaitOnBusy
TODO: SX126xGetDio1PinState
TODO: BoardCriticalSectionBegin
TODO: BoardCriticalSectionEnd
TODO: BoardCriticalSectionBegin
TODO: BoardCriticalSectionEnd
DIO1 add event
DIO1 after=1
DIO1 before=1
task_callback: ev=0x42015b18
RadioOnDioIrq
RadioIrqProcess
SX126xReadCommand: command=0x12, size=2
SX126xWaitOnBusy
sx126x_hal_read: command_length=2, data_length=2
spi tx: 12 00 00 00
spi rx: a6 a6 02 00
status=0xa6
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=2
spi tx: 02 02 00
spi rx: a6 a6 a6
SX126xWaitOnBusy
TODO: SX126xGetDio1PinState
IRQ_RX_TX_TIMEOUT
TimerStop
RadioOnDioIrq
RadioIrqProcess
SX126xReadCommand: command=0x12, size=2
SX126xWaitOnBusy
sx126x_hal_read: command_length=2, data_length=2
spi tx: 12 00 00 00
spi rx: a6 a6 00 00
status=0xa6
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=2
spi tx: 02 00 00
spi rx: a6 a6 a6
SX126xWaitOnBusy
TODO: SX126xGetDio1PinState
RadioSleep
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=1
spi tx: 84 04
spi rx: a6 a6
DelayMs
DIO1 add event
DIO1 after=1
DIO1 before=1
TimerGetElapsedTime
TimerGetCurrentTime: 31420 ms
TimerStop
###### =========== MLME-Confirm ============ ######
STATUS : Rx 1 timeout
TODO: RtcGetCalendarTime
TimerGetElapsedTime
TimerGetCurrentTime: 31420 ms
TimerGetCurrentTime: 31420 ms
TODO: RtcBkupRead
TODO: RtcBkupRead
RadioSetChannel: freq=923400000
SX126xWakeup
sx126x_hal_write: command_length=1, data_length=1
spi tx: c0 00
spi rx: ff ff
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: commnd_length=1, data_length=4
spi tx: 86 39 b6 66 66
spi rx: a2 a2 a2 a2 a2
SX126xWaitOnBusy
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=128, CrcMode=1, InvertIQ=0
RadioStandby
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=1
spi tx: 80 00
spi rx: a2 a2
SX126xWaitOnBusy
RadioSetModem
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=1
spi tx: 8a 01
spi rx: a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=4
spi tx: 8b 0a 04 01 00
spi rx: a2 a2 a2 a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=6
spi tx: 8c 00 08 00 80 01 00
spi rx: a2 a2 a2 a2 a2 a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_read: command_length=4, data_length=1
spi tx: 1d 08 89 00 00
spi rx: a2 a2 a2 a2 04
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=3, data_length=1
spi tx: 0d 08 89 04
spi rx: a2 a2 a2 a2
SX126xSetRfTxPower
SX126xSetTxParams: power=13, rampTime=7
SX126xGetDeviceId: SX1262
SX126xWaitOnBusy
sx126x_hal_read: command_length=4, data_length=1
spi tx: 1d 08 d8 00 00
spi rx: a2 a2 a2 a2 fe
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=3, data_length=1
spi tx: 0d 08 d8 fe
spi rx: a2 a2 a2 a2
SX126xWaitOnBusy
SX126xSetPaConfig: paDutyCycle=4, hpMax=7, deviceSel=0, paLut=1
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=4
spi tx: 95 04 07 00 01
spi rx: a2 a2 a2 a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=3, data_length=1
spi tx: 0d 08 e7 38
spi rx: a2 a2 a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=2
spi tx: 8e 0d 07
spi rx: a2 a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=6
spi tx: 8c 00 08 00 17 01 00
spi rx: a2 a2 a2 a2 a2 a2 a2
SX126xWaitOnBusy
SecureElementRandomNumber: 0x760b11b3
RadioSend: size=23
00 00 00 00 00 00 00 00 00 5b b1 7b 37 e7 5e c1 4b b3 11 34 78 94 8e
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=8
spi tx: 08 02 01 02 01 00 00 00 00
spi rx: a2 a2 a2 a2 a2 a2 a2 a2 a2
SX126xWaitOnBusy
RadioSend: PreambleLength=8, HeaderType=0, PayloadLength=23, CrcMode=1, InvertIQ=0
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=6
spi tx: 8c 00 08 00 17 01 00
spi rx: a2 a2 a2 a2 a2 a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=2, data_length=23
spi tx: 0e 00 00 00 00 00 00 00 00 00 00 5b b1 7b 37 e7 5e c1 4b b3 11 34 78 94 8e
spi rx: a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2 a2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=3
spi tx: 83 00 00 00
spi rx: a2 a2 a2 a2
SX126xWaitOnBusy
TimerStart2: 4000 ms
TimerStop
###### =========== MLME-Request ============ ######
###### MLME_JOIN ######
###### ===================================== ######
STATUS : OK
TODO: BoardCriticalSectionBegin
TODO: BoardCriticalSectionEnd
TODO: BoardCriticalSectionBegin
TODO: BoardCriticalSectionEnd
task_callback: ev=0x42015b18
RadioOnDioIrq
RadioIrqProcess
SX126xReadCommand: command=0x12, size=2
SX126xWaitOnBusy
sx126x_hal_read: command_length=2, data_length=2
spi tx: 12 00 00 00
spi rx: e2 e2 00 00
status=0xe2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=2
spi tx: 02 00 00
spi rx: e2 e2 e2
SX126xWaitOnBusy
TODO: SX126xGetDio1PinState
RadioOnDioIrq
RadioIrqProcess
SX126xReadCommand: command=0x12, size=2
SX126xWaitOnBusy
sx126x_hal_read: command_length=2, data_length=2
spi tx: 12 00 00 00
spi rx: e2 e2 00 00
status=0xe2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=2
spi tx: 02 00 00
spi rx: e2 e2 e2
SX126xWaitOnBusy
TODO: SX126xGetDio1PinState
TODO: BoardCriticalSectionBegin
TODO: BoardCriticalSectionEnd
TODO: BoardCriticalSectionBegin
TODO: BoardCriticalSectionEnd
DIO1 add event
DIO1 after=1
DIO1 before=1
task_callback: ev=0x42015b18
RadioOnDioIrq
RadioIrqProcess
SX126xReadCommand: command=0x12, size=2
SX126xWaitOnBusy
sx126x_hal_read: command_length=2, data_length=2
spi tx: 12 00 00 00
spi rx: ac ac 00 01
status=0xac
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=2
spi tx: 02 00 01
spi rx: ac ac ac
SX126xWaitOnBusy
TODO: SX126xGetDio1PinState
IRQ_TX_DONE
TimerStop
TimerGetCurrentTime: 31850 ms
TODO: RtcGetCalendarTime
TODO: RtcBkupRead
RadioOnDioIrq
RadioIrqProcess
SX126xReadCommand: command=0x12, size=2
SX126xWaitOnBusy
sx126x_hal_read: command_length=2, data_length=2
spi tx: 12 00 00 00
spi rx: ac ac 00 00
status=0xac
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=2
spi tx: 02 00 00
spi rx: ac ac ac
SX126xWaitOnBusy
TODO: SX126xGetDio1PinState
RadioSleep
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=1
spi tx: 84 04
spi rx: ac ac
DelayMs
DIO1 add event
DIO1 after=1
DIO1 before=1
TimerSetValue: 4988 ms
TimerStart
TimerStart2: 4988 ms
TimerStop
TimerSetValue: 5988 ms
TimerStart
TimerStart2: 5988 ms
TimerStop
TODO: RtcGetCalendarTime
TODO: BoardCriticalSectionBegin
TODO: BoardCriticalSectionEnd
TODO: BoardCriticalSectionBegin
TODO: BoardCriticalSectionEnd
task_callback: ev=0x42015b18
RadioOnDioIrq
RadioIrqProcess
SX126xReadCommand: command=0x12, size=2
SX126xWakeup
sx126x_hal_write: command_length=1, data_length=1
spi tx: c0 00
spi rx: ff ff
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_read: command_length=2, data_length=2
spi tx: 12 00 00 00
spi rx: a2 a2 00 00
status=0xa2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=2
spi tx: 02 00 00
spi rx: a2 a2 a2
SX126xWaitOnBusy
TODO: SX126xGetDio1PinState
RadioOnDioIrq
RadioIrqProcess
SX126xReadCommand: command=0x12, size=2
SX126xWaitOnBusy
sx126x_hal_read: command_length=2, data_length=2
spi tx: 12 00 00 00
spi rx: a2 a2 00 00
status=0xa2
SX126xWaitOnBusy
SX126xWaitOnBusy
sx126x_hal_write: command_length=1, data_length=2
spi tx: 02 00 00
spi rx: a2 a2 a2
SX126xWaitOnBusy
TODO: SX126xGetDio1PinState
TODO: BoardCriticalSectionBegin
TODO: BoardCriticalSectionEnd
TODO: BoardCriticalSectionBegin
TODO: BoardCriticalSectionEnd
DIO1 timeout
DIO1 after=0
DIO1 before=0
DIO1 timeout
DIO1 after=0
DIO1 before=0
DIO1 timeout
DIO1 after=0
DIO1 before=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment