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)
-
@jmarcelino Thanks. There is a way to enable some C/C++ traces to see why is not working on this 6 new LopYs?
-
@colateral
There no hardware difference between 868 and 915. Just depends which country you selected when using the Pycom upgrade tool
-
@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
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.
-
This post is deleted!
-
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'
-
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