We are having trouble connecting our node (LoPy) to the gateway (Raspberry Pi + Dragino Hat). Our gateway is connected and being seen on the things network, but our node is never seen (but there is a green indicator).
We were able to send a message to the gateway ONE time and our node was finally being seen, but we’re having difficulty duplicating how we were able to get a message.
We set up our node and gateway exactly in the links below (we are located in the US):
Honestly, that was just straight from the code as well. Can you share where you read that frequency should be 903900000? I will try setting this within the code, but just wanted to understand/read up more on this.
And thanks for the tip, went back and removed the keys.
I was using a Pi and a Dragino as my first gateway and found that only certain packets got through. However, the pi gateway showed a log message when it received a packet and forwarded it to the Lorawan network.
I think you can set the Pycom to use US frequencies by specifying the region. .e.g mine was specified as follows: lora = LoRa(mode=LoRa.LORAWAN, region=LoRa.EU868)
I don’t know if you have only sent through part of your program, but mine concludes with …
# make the socket blocking
# (waits for the data to be sent and for the 2 receive windows to expire)
s.setblocking(True)
# send some data
s.send(bytes([0x01, 0x02, 0x03]))
It’s only when the socket send method is called, does anything actually happen on the network.