Skip to content

release-2022-03-29

Compare
Choose a tag to compare
@github-actions github-actions released this 29 Mar 01:47
1ca9689

What's Changed

Full Changelog: release-2022-03-28...release-2022-03-29

All OK! BL602 has successfully joined the LoRaWAN Network

pi@raspberrypi:~ $ export BUILD_PREFIX=release; remote-bl602/scripts/test.sh &&
 read -p "Press Enter to shutdown" && sudo shutdown now
+ '[' release == '' ']'
+ '[' '' == '' ']'
++ date +%Y-%m-%d
+ export BUILD_DATE=2022-03-29
+ BUILD_DATE=2022-03-29
+ source /home/pi/.cargo/env
++ export PATH=/home/pi/.cargo/bin:/usr/lib/go-1.13.6/bin:/home/pi/.cargo/bin:/usr/lib/go-1.13.6/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
++ PATH=/home/pi/.cargo/bin:/usr/lib/go-1.13.6/bin:/home/pi/.cargo/bin:/usr/lib/go-1.13.6/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
+ set +x
----- Download the latest release NuttX build for 2022-03-29
+ wget -q https://github.com/lupyuen/incubator-nuttx/releases/download/release-2022-03-29/nuttx.zip -O /tmp/nuttx.zip
+ pushd /tmp
/tmp ~
+ unzip -o nuttx.zip
Archive:  nuttx.zip
  inflating: nuttx
  inflating: nuttx.S
  inflating: nuttx.bin
  inflating: nuttx.board
  inflating: nuttx.config
  inflating: nuttx.hex
  inflating: nuttx.manifest
  inflating: nuttx.map
+ popd
~
+ set +x
----- Enable GPIO 2 and 3
----- Set GPIO 2 and 3 as output
----- Set GPIO 2 to High (BL602 Flashing Mode)
----- Toggle GPIO 3 High-Low-High (Reset BL602)
----- Toggle GPIO 3 High-Low-High (Reset BL602 again)
----- BL602 is now in Flashing Mode
----- Flash BL602 over USB UART with blflash
+ blflash flash /tmp/nuttx.bin --port /dev/ttyUSB0
[INFO  blflash::flasher] Start connection...
[TRACE blflash::flasher] 5ms send count 55
[TRACE blflash::flasher] handshake sent elapsed 170.665µs
[INFO  blflash::flasher] Connection Succeed
[INFO  blflash] Bootrom version: 1
[TRACE blflash] Boot info: BootInfo { len: 14, bootrom_version: 1, otp_info: [0, 0, 0, 0, 3, 0, 0, 0, 61, 9d, c0, 5, b9, 18, 1d, 0] }
[INFO  blflash::flasher] Sending eflash_loader...
[INFO  blflash::flasher] Finished 2.562500674s 11.15KiB/s
[TRACE blflash::flasher] 5ms send count 500
[TRACE blflash::flasher] handshake sent elapsed 5.202369ms
[INFO  blflash::flasher] Entered eflash_loader
[INFO  blflash::flasher] Skip segment addr: 0 size: 47504 sha256 matches
[INFO  blflash::flasher] Skip segment addr: e000 size: 272 sha256 matches
[INFO  blflash::flasher] Skip segment addr: f000 size: 272 sha256 matches
[INFO  blflash::flasher] Erase flash addr: 10000 size: 358816
[INFO  blflash::flasher] Program flash... ba767ce812322956ad53a41a96ec4929ce986536596525c8b642f898a58376eb
[INFO  blflash::flasher] Program done 4.262442346s 82.22KiB/s
[INFO  blflash::flasher] Skip segment addr: 1f8000 size: 5671 sha256 matches
[INFO  blflash] Success
+ set +x
----- Set GPIO 2 to Low (BL602 Normal Mode)
----- Toggle GPIO 3 High-Low-High (Reset BL602)
----- BL602 is now in Normal Mode
----- Toggle GPIO 3 High-Low-High (Reset BL602)
----- Here is the BL602 Output...
▒bme280_register: Failed to init: -134
bl602_bringup: ERROR: Failed to register BME280

NuttShell (NSH) NuttX-10.20-RC0
nsh>
----- Send command to BL602: lorawan_test
lorawan_test
init_entropy_pool
offset = 2200
temperature = 31.858635 Celsius
offset = 2200
temperature = 31.213724 Celsius
offset = 2200
temperature = 30.955759 Celsius
offset = 2200
temperature = 33.148460 Celsius

###### ===================================== ######

Application name   : lorawan_test
Application version: 1.2.0
GitHub base version: 5.0.0

###### ===================================== ######

init_event_queue
TimerInit:     0x42017400
callout_handler: lock
TimerInit:     0x4201741c
TimerInit:     0x42017438
TimerInit:     0x420174b4
TimerInit:     0x42017568
TimerInit:     0x42017584
TimerInit:     0x420175a0
TimerInit:     0x420175bc
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=0x42016528
init_spi
SX126xSetTxParams: power=22, rampTime=7
SX126xSetPaConfig: paDutyCycle=4, hpMax=7, deviceSel=0, paLut=1
TimerInit:     0x42016500
TimerInit:     0x4201646c
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:     0x42017058
TimerInit:     0x42017074
TimerInit:     0x42016f38
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: 0x84aa4bc2
RadioSend: size=23
00 00 00 00 00 00 00 00 00 5b b1 7b 37 e7 5e c1 4b c2 4b 1a 11 c0 23
RadioSend: PreambleLength=8, HeaderType=0, PayloadLength=23, CrcMode=1, InvertIQ=0
TimerStop:     0x42016500
TimerStart2:   0x42016500, 4000 ms
callout_reset: evq=0x42013010, ev=0x42016500

###### =========== MLME-Request ============ ######
######               MLME_JOIN               ######
###### ===================================== ######
STATUS      : OK
StartTxProcess
TimerInit:     0x42015994
TimerSetValue: 0x42015994, 42249 ms
OnTxTimerEvent: timeout in 42249 ms, event=0
TimerStop:     0x42015994
TimerSetValue: 0x42015994, 42249 ms
TimerStart:    0x42015994
TimerStop:     0x42015994
TimerStart2:   0x42015994, 42249 ms
callout_reset: evq=0x42013010, ev=0x42015994
handle_event_queue
handle_event_queue: ev=0x42016528
RadioOnDioIrq
RadioIrqProcess
RadioOnDioIrq
RadioIrqProcess
DIO1 add event
handle_event_queue: ev=0x42016528
RadioOnDioIrq
RadioIrqProcess
IRQ_TX_DONE
TimerStop:     0x42016500
TODO: RtcGetCalendarTime
TODO: RtcBkupRead
RadioOnDioIrq
RadioIrqProcess
RadioSleep
DIO1 add event
TimerSetValue: 0x4201741c, 4988 ms
TimerStart:    0x4201741c
TimerStop:     0x4201741c
TimerStart2:   0x4201741c, 4988 ms
callout_reset: evq=0x42013010, ev=0x4201741c
TimerSetValue: 0x42017438, 5988 ms
TimerStart:    0x42017438
TimerStop:     0x42017438
TimerStart2:   0x42017438, 5988 ms
callout_reset: evq=0x42013010, ev=0x42017438
TODO: RtcGetCalendarTime
handle_event_queue: ev=0x42016528
RadioOnDioIrq
RdioIrqProcess
RadioOnDioIrq
RadioIrqProcess
callout_handler: unlock
callout_handler: evq=0x42013010, ev=0x4201741c
callout_handler: lock
handle_event_queue: ev=0x4201741c
TimerStop:     0x4201741c
RadioStandby
RadioSetChannel: freq=923400000
RadioSetRxConfig
RadioStandby
RadioSetModem
RadioSetRxConfig done
RadioRx
TimerStop:     0x4201646c
TimerStart2:   0x4201646c, 3000 ms
callout_reset: evq=0x42013010, ev=0x4201646c
RadioOnDioIrq
RadioIrqProcess
DIO1 add event
handle_event_queue: ev=0x42016528
RadioOnDioIrq
RadioIrqProcess
IRQ_PREAMBLE_DETECTED
RadioOnDioIrq
RadioIrqProcess
DIO1 add event
handle_event_queue: ev=0x42016528
RadioOnDioIrq
RadioIrqProcess
IRQ_HEADER_VALID
RadioOnDioIrq
RadioIrqProcess
DIO1 add event
handle_event_queue: ev=0x42016528
RadioOnDioIrq
RadioIrqProcess
IRQ_RX_DONE
TimerStop:     0x4201646c
RadioOnDioIrq
RadioIrqProcess
RadioSleep
DIO1 add event
TimerStop:     0x42017438
OnTxData

###### =========== MLME-Confirm ============ ######
STATUS      : OK
OnJoinRequest
###### ===========   JOINED     ============ ######

OTAA

DevAddr     :  00C611A9


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 a9 11 c6 00 00 01 00 01 8d 35 16 97 a5 d3 9e e3 d9 bc bb b2 d6
RadioSend: PreambleLength=8, HeaderType=0, PayloadLength=22, CrcMode=1, InvertIQ=0
TimerStop:     0x42016500
TimerStart2:   0x42016500, 4000 ms
callout_reset: evq=0x42013010, ev=0x42016500

###### =========== MCPS-Request ============ ######
######           MCPS_UNCONFIRMED            ######
###### ==================================== ######
STATUS      : OK
PrepareTxFrame: Transmit OK
handle_event_queue: ev=0x42016528
RadioOnDioIrq
RadioIrqProcess
RadioOnDioIrq
RadioIrqProcess
DIO1 add event
handle_event_queue: ev=0x42016528
RadioOnDioIrq
RadioIrqProcess
IRQ_TX_DONE
TimerStop:     0x42016500
TODO: RtcGetCalendarTime
TODO: RtcBkupRead
RadioOnDioIrq
RadioIrqProcess
RadioSleep
DIO1 add event
TimerSetValue: 0x4201741c, 980 ms
TimerStart:    0x4201741c
TimerStop:     0x4201741c
TimerStart2:   0x4201741c, 980 ms
callout_reset: evq=0x42013010, ev=0x4201741c
TimerSetValue: 0x42017438, 1988 ms
TimerStart:    0x42017438
TimerStop:     0x42017438
TimerStart2:   0x42017438, 1988 ms
callout_reset: evq=0x42013010, ev=0x42017438
TODO: RtcGetCalendarTime
handle_event_queue: ev=0x42016528
RadioOnDioIrq
RadioIrqProcess
RadioOnDioIrq
RadioIrqProcess
callout_handler: unlock
callout_handler: evq=0x42013010, ev=0x4201741c
callout_handler: lock
handle_event_queue: ev=0x4201741c
TimerStop:     0x4201741c
RadioStandby
RadioSetChannel: freq=923400000
RadioSetRxConfig
RadioStandby
RadioSetModem
RadioSetRxConfig done
RadioRx
TimerStop:     0x4201646c
TimerStart2:   0x4201646c, 3000 ms
callout_reset: evq=0x42013010, ev=0x4201646c
RadioOnDioIrq
RadioIrqProcess
DIO1 add event
handle_event_queue: ev=0x42016528
RadioOnDioIrq
RadioIrqProcess
IRQ_RX_TX_TIMEOUT
TimerStop:     0x4201646c
RadioOnDioIrq
RadioIrqProcess
RadioSleep
DIO1 add event
TimerStop:     0x42017438
TimerStop:     0x42017400
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=0x42016528
RadioOnDioIrq
RadioIrqProcess
RadioOnDioIrq
RadioIrqProcess
UplinkProcess

===== All OK! BL602 has successfully joined the LoRaWAN Network

Press Enter to shutdown