I have no code but I would just like to know if I can send sensor data from module 1 to module 2. Are the 2 modules compatable or do I need to have the same modules on the transmit and receive sides?
At the LoRa level the devices are compatible, both modules use an SX1276.
However, the RYLR896 has a UART interface with custom software in front of its SX1276.
Whether you can work out how to get the RFM95 to send and receive packets from the RYLR896 I dont know, unless someone has published a compatible library you could have problems.
Occasional misses are not important from time to time. I want to minimize the ontime of these modules to increase battery duration. I will use a crc check to avoid false data.
Thanks. Yes, OK. Of course, I can use an ACK to increase reliability. But we're wandering away from my original question. Can I communicate between a HopeRFM95W and a Reyax RYLR896?
Why should I do my homework if it's not possible to connect them? I thought the goal of this forum was to exchange information. If someone was able to do this, I would gladly start my "homework". I have already done my "homework" using a repeater with the 2 modules back to back. The solution is less elegant but working. I just want to improve it if possible.
I do not know if you would know how to reverse the encryption that the RYLR896 uses.
That the packet data and the ‘addressing’ is encrypted is not a problem when two or more RYLR896 are talking to each other. But to use a RFM95W to send or receive packets (and understand the packet data) you would need to work out how to apply the encryption.
Maybe the Reyax encryption can be turned off, what does the manual say ?
The easiest, safest and best approach is to buy two identical LoRa modules and Arduinos, and use readily available libraries and example code to communicate.
I strongly recommend the Adafruit Feather LoRa boards, as that is all you need for a complete solution.
I don't think you mentioned which host microcontroller you are using
it is worth noting that both the HopeRFM95W and Reyax RYLR896 uses 3.3V logic therefore if connecting to a microcontroller which uses 5V logic level converters should be used
@jremington suggestion to use modules such as the Adafruit Feather LoRa boards (I have several) is a good idea - having the host microcontroller and LoRa module on the same PCB saves wire interconnections which are a cause of poor connections and intermittent problems
I would suggest HelTec ESP32 SX1262 LoRa modules which have a ESP32 host microcontroller (and are lower cost than the Adafruit Feather LoRa boards)
thanks. Yes I use an ATMega328p 3.3V. My situation is the following:
I already have 4 sensors around my property using the Reyax RYLR896, each connected to an ATMega328p. I have a base station in my living room connecting and displaying the sensor data and time, weather forecast etc. The base station again uses the Reyax RYLR896 and the 3.3V Teensy micro. I was trying to add a 5th sensor usng the Reyax as well. This sensor was apparently too far out out of range so I used the HopeRFM95W with success. That's why I wanted to know if I can communicate directly with the Reyax at the base station. Unfortunately, I have not succeeded and have had to put a repeater in one of the sensors close to the base station. There are both the Reyax and Hope radios in this sensor. As the Reyax has no library but an AT command interface, it's a black box to me. All works fine like this but I find that it's not a very elegant solution. I am trying to contact Reyax to find out more details on this product,
I can ,more or less, look into the RFM95W config. registers via the library. Not so, for the Reyax. No library.
I need technical help from the Reyax people. So far, not much detailed info from them. Thought I could maybe find someone on the forum who had the same problem and had found a solution.
Well, the max. distance for the 4 sensors is around 10m and the max. number of concrete walls or floors is 4. The 5th sensor is at 30m, inside a metallic mailbox (Farady cage). It nevertheless, works fine with the RFM95W. As srnet mentioned, the settings are probably different. I need to find out about all the settings of the Reyax module. I was able to compare the outside ranges of both modules. Reyax about 120m thru 3 walls and 3 houses. Same walk with the RFM95W about 800m.