Author Topic: Moteino Mega Send/Recieve code not working  (Read 8851 times)

RuggoMuggo

  • NewMember
  • *
  • Posts: 8
Moteino Mega Send/Recieve code not working
« on: April 23, 2019, 12:55:40 PM »
Hello, I recently purchased two Moteino Megas which both RFM 868/915mhz transceivers and extra flash. I used these two pieces of code just to test how the send and receive functions work. (https://github.com/LowPowerLab/RFM69/blob/master/Examples/Gateway/Gateway.ino and https://github.com/LowPowerLab/RFM69/blob/master/Examples/Node/Node.ino). I set the Frequency to RF69_868MHZ on each chip respectively, yet in the Node.ino (sender) it fails to send the message, and the other chip listening receives no messages. Also I would like to note that I do not have the antennas attached, but they are said to work within close proximity (I believe it said within 5 feet), and I have them roughly an inch away.  Are there any other parameters I am not setting correctly? Thank you!


Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: Moteino Mega Send/Recieve code not working
« Reply #1 on: April 23, 2019, 01:05:57 PM »
Whatever was said before, antennas must be attached.
By the way, it was also said, that without antennas, you can well damage your transceivers (they can self destruct by reflecting all TX power back into itself).
You need to also pay attention to other settings, especially the IS_RFM69HW_HCW, if that is mismatched, it will definitely not work and the damage risk is even greater.

RuggoMuggo

  • NewMember
  • *
  • Posts: 8
Re: Moteino Mega Send/Recieve code not working
« Reply #2 on: April 23, 2019, 01:19:32 PM »
Okay so my tranciever is also a RFM95 (Lora 868/915 mhz). I'm assuming that means that I should #define FREQUENCY   RF95_868MHZ instead of the #define FREQUENCY   RF69_868MHZ. This also means that I should comment out the IS_RFM69HW_HCW correct? Also where would I find RFM95.h and RFM95_ATC.h assuming I would need that instead of the RFM69.h and RFM69_ATC.h.
« Last Edit: April 23, 2019, 01:37:25 PM by RuggoMuggo »

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6866
  • Country: us
    • LowPowerLab
Re: Moteino Mega Send/Recieve code not working
« Reply #3 on: April 23, 2019, 02:21:32 PM »
There is no RFM95_ATC. They are completely different libraries. RFM95 is LoRa, RFM69 is FSK.
For Moteinos with RFM95 you want the RadioHead library. I have it linked on this page.