-
Notifications
You must be signed in to change notification settings - Fork 0
examples
smtc-bot edited this page Sep 24, 2024
·
1 revision
This page shows a few examples for specific tasks.
Sometimes, you may need to check and even correct the crystal error for your board:
>> bsp_get_crystal_err
crystal error: 16000
>> bsp_set_crystal_err 15040
>> bsp_get_crystal_err
crystal error: 15040
Below command sequence shows how to set up end-device and requests to join the LoRaWAN network, and once get the JOINED event, sends an empty uplink packet. Finally, it leaves the network:
>> set_dev_eui FE:FF:FF:FF:FD:FF:3B:00
>> set_join_eui 00:16:C0:01:FF:FE:00:01
>> set_nwk_key 0:0:0:0:0:0:0:0:0:0:0:0:0:0:3B:0
>> join_network
>>
----> Event happened (0 such event missed): JOINED (successfully joined network)
>> request_empty_uplink +fport 0x24 confirm
>> leave_network
>>
Before run Test commands, the user needs to run test_start first to enter the TEST mode, and call test_exit to exit from TEST mode once the tests are done.
Note: Since test_tx_cw won't stop by itself, the user can use test_nop to stop it. Once done, an EVENT TEST_MODE will be triggered.
>> test_start
>> test_tx_cw 866200000 10
>> test_nop
>>
----> Event happened (0 such event missed): TEST_MODE
STATUS: Test mode ended action
>> test_exit
>> test_start
>> test_rssi 867200000 10 125000
>> test_read_rssi
rssi: -119
>> test_exit