MicroPython v1.17 on 2021-12-20; ESP32C3 module with ESP32C3
Type "help()" for more information.
>>> import os
>>> os.listdir()
['main.py']
>>> from machine import LORAWAN
>>> node = LORAWAN(1)
E (142778) gpio: gpio_install_isr_service(460): GPIO isr service already installed
###### ===== Class A LoRaWAN application ==== ######
>>> Initiating OTAA join procedure.
modem=LoRa,power=17,fdev=0,bandwidth=0,datarate=12,coderate=1,preambleLen=8,fixLen=false,crcOn=true,freqHopOn=false,hopPeriod=0,timeout=4000
00 0A 00 00 00 00 00 00 00 BC 38 00 00 10 FF FF FF D2 09 55 60 95 B6
Start Send
Send done
Start Receive
MLME CONFIRM status: OK
Successfully joined a LoRaWAN network.
Device address : 00B9FD38
Data rate : DR_0
Successfully joined a LoRaWAN network. Sending data in loop.
vLorawanReceiveTask Startup
modem=LoRa,power=17,fdev=0,bandwidth=0,datarate=12,coderate=1,preambleLen=8,fixLen=false,crcOn=true,freqHopOn=false,hopPeriod=0,timeout=4000
80 38 FD B9 00 80 01 00 02 2B 02 23 D3 71
Start Send
Send done
Start Receive
MCPS CONFIRM status: OK
MCPS INDICATION status: OK
Successfully sent an uplink packet, confirmed = 1
Heartbeat Pulse. Waiting for 3600 seconds, before starting next cycle.
>>>
>>> node.write("0123456789",10)
modem=LoRa,power=17,fdev=0,bandwidth=0,datarate=12,coderate=1,preambleLen=8,fixLen=false,crcOn=true,freqHopOn=false,hopPeriod=0,timeout=4000
80 38 FD B9 00 80 02 00 08 7A 3C D7 57 5A BF AA 07 32 62 A4 2B D7 0E
Start Send
Send done
Start Receive
MCPS CONFIRM status: OK
MCPS INDICATION status: OK
0
>>> print("hello ,LoRaWAN & Micropython")
hello ,LoRaWAN & Micropython
>>> 90-87
3
>>>
使用ESP32C3,增加Micropython和LoRaWAN组件,终于可以使用了
Moderator: ESP_Bob
Who is online
Users browsing this forum: No registered users and 46 guests