Lopy to Lopy example is not working...or incomplete by design?
-
So after having PySense + LoPy4 connected to TTN via real gateway (TTIG) I decided to try making PySense+LopY4 to talk to PyTrack+LoPy4. I looked at the example code LoPy to Lopy and it looked that there is nothing easier than that...
I do all this with VS Code + PyMakr and connecting to each node from different laptop via corresponding COM ports...
In VS Code I opened a folder on each laptop for LoPy A and LoPy B and changed the frequency and added the correct region for the U.S.:
lora = LoRa(mode=LoRa.LORA, frequency=903900000, region=LoRa.US915)I ran the code on each laptop - but nothing happens...should I add a single channel? If yes, why the examples come without it? Anything else I am missing?
-
There is no print in the example code - so no obvious check if Node A is receiving any data. Add a print('Pong') below s.send('Pong').
-
@Gruger I realize that there are no "print" statements. My point/question was whether anybody knows if this sample works at all - may be with some changes that were not mentioned?
-
@securigy Never mind. With a little bit of digging it works. Example explanations and comments? What for?..
-
@securigy Sometimes They work, sometimes not. my experience with Lora: Always start tests from a fresh power-up.
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