LowPowerLab Forum

Hardware support => Moteino => Topic started by: jcozzy on May 05, 2018, 05:00:38 PM

Title: Moteino rf95 Examples
Post by: jcozzy on May 05, 2018, 05:00:38 PM
Hey everyone!

I just received 2 Moteino RFM95's and tried the Radiohead client and server examples using latest Arduino IDE with the Arduino Uno as the board selected.  See following video:


https://youtu.be/HGKu2FXp8Gw


The only change to the examples I made was the #define FREQUENCY 915 line due to concern of default values.  I do not even get serial output for these codes.

Any suggestions?
Title: Re: Moteino rf95 Examples
Post by: Felix on May 05, 2018, 05:12:40 PM
Hi jcozzy!

Hmmm, did you try the library from my RadioHead link on the LoRa guide page (https://lowpowerlab.com/guide/moteino/lora-support/), or did you get the latest RadioHead?
Title: Re: Moteino rf95 Examples
Post by: jcozzy on May 05, 2018, 10:22:37 PM
Thanks for the reply, I think it was the latest Radiohead, I tried the Radiohead version 1.83 from the link you provided and got this error on both client and server, respectively (I will try some editing):

rf95_client.ino:25:9: error: redefinition of 'RH_RF95 rf95'
rf95_client.pde:15:9: error: 'RH_RF95 rf95' previously declared here
rf95_client.ino: In function 'void setup()':
rf95_client.ino:27:6: error: redefinition of 'void setup()'
rf95_client.pde:22:6: error: 'void setup()' previously defined here
rf95_client.ino: In function 'void loop()':
rf95_client.ino:39:6: error: redefinition of 'void loop()'
rf95_client.pde:46:6: error: 'void loop()' previously defined here

rf95_server.pde:15:9: error: redefinition of 'RH_RF95 rf95'
rf95_server.ino:25:9: error: 'RH_RF95 rf95' previously declared here
rf95_server.pde: In function 'void setup()':
rf95_server.pde:24:6: error: redefinition of 'void setup()'
rf95_server.ino:27:6: error: 'void setup()' previously defined here
rf95_server.pde: In function 'void loop()':
rf95_server.pde:49:6: error: redefinition of 'void loop()'
rf95_server.ino:38:6: error: 'void loop()' previously defined here
Title: Re: Moteino rf95 Examples
Post by: jcozzy on May 05, 2018, 10:54:25 PM
The Reliable_Datagram versions compile, but they also give no serial.  I see this warnng in the code: "Ensure serial flash is not interfering with radio communication on SPI bus"

Might that be an issue?
Title: Re: Moteino rf95 Examples
Post by: Felix on May 06, 2018, 08:44:20 PM
Make sure there is only 1 version of RadioHead installed on your system. If you have two you will get those errors.
You may have one installed manually in your arduino/libraries folder (or two conflicting libs) or you may have a manual version installed and one from the Library manager.