Lora not working on 1.8.0
-
Hello,
The below example from Daniel (that previously was running fine) is not working between 2 Lopy with the same code.
Do we need special configuration for Lora initialization ?
from network import LoRa import socket import machine import time # initialize LoRa in LORA mode # more params can also be given, like frequency, tx power and spreading factor lora = LoRa(mode=LoRa.LORA) # create a raw LoRa socket s = socket.socket(socket.AF_LORA, socket.SOCK_RAW) while True: # send some data s.setblocking(True) s.send('Hello 1') # get any data received... s.setblocking(False) data = s.recv(64) print(data) time.sleep(1) -
Try leaving this running for awhile (5-10min) and see if something comes across. Could be related to the intermittent issue I am encountering here: https://forum.pycom.io/topic/1795/lora-receiving-data-intermittently/12
-
Nope. Still not working.
We took 4 new LopY and 4 new expansion boards (from the last received lot), upgraded them with PyCom firmware software.>>> uos.uname() (sysname='LoPy', nodename='LoPy', release='1.8.0.b1', version='v1.8.6-760-g90b72952 on 2017-09-01', machine='LoPy with ESP32', lorawan='1.0.0')... and with default configuration nothing received during 10min.
Frequency: 868000000 Spreading Factor: 7 Power: 13 Coding Rate: 1 Preamble: 8 Bandwidth: 0 MAC: b'p\xb3\xd5I\x98\xacd\x9e' -
This post is deleted! -
@colateral
For me your code works on 2 LoPys on version 1.8.0.b1.
I copy-pasted your code to the devices, it works out of the box without any modification. -
@husigeza Thanks. We opened 6 brand new devices .... using pair of 2, none is receiving Lora raw. Here we are using 868Mhz.
Can be problem if we got 915 LoPy? How can we check if a device is 915Lopy or 868 LopY?
-
@colateral
There no hardware difference between 868 and 915. Just depends which country you selected when using the Pycom upgrade tool -
@jmarcelino Thanks. There is a way to enable some C/C++ traces to see why is not working on this 6 new LopYs?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login