Site icon Renzo Mischianti

Communication between an E32-900T20D and RFM95W

Hey there, after I finally got my module up working, I continued on actually getting my two LoRa modules to talk with each other. But to be honest, I'm lost yet again and overwhelmed with all the information and (honestly) not so clear examples to me. So my two modules and goals are: - E-Byte E32-900T20D (with an antenna attached to the SMA jack): This module should only listen for packages; it will be a simple gateway basically. - HopeRF RFM95W (with a wire sodlered to it as an antenna: This module should only send packages; they will be installed into various sensors I have. => So I ultimately want to do a "fixed transmission", as every RFM95W always directly talks to the E32. But I'm fine with having them at least communicate for now in ANY way... My first tests were just leaving all the default config for both modules as they are, just setting the frequency on both sides to 868MHz and send a message. Obviously, this doesn't work, as in: the RFM95W successfully sends the message, but my E32 module never receives something... So something must still be off between those two. I of course tested sending and receiving with two RFM95W and that does work. So *generally* sending data works. So I tried setting the E32 to broadcast mode using your tutorials ad also tried switching off FEC (tried wit and without FEC): configuration.ADDL = BROADCAST_ADDRESS; configuration.ADDH = BROADCAST_ADDRESS; configuration.OPTION.fec = FEC_0_OFF; I validated the response to setConfiguration included my changed settings, so I expect them saved. Unfortunately still nothing: My RFM95W apparently sending packages, nothing received on the E32... I think I understood how the E32 LoRa module communication works, at least that it's a matter of address and channel who will receive the data I send. The address (seems to be) defined by ADDH(igh) & ADDL(ow). The channel seems to also effect the frequency that is used. So setting the frequency with #define FREQUENCY_868 actually sets it to 862 and with my channel set to 6, it actually uses my desired 868MHz. So if I understand it right, changing the channel to 4 would make the module communicate on 866MHz!? However, I need 868MHz. Witout setting it to broadcast mode, my default settings are: AddH BIN: 0 AddL BIN: 0 Chan BIN: 6 -> 868MHz So I think I understood that side of the cake. But I can't make it to receive what the RFM95W sends... Actually, your / the E32 is way better documented and understandable than the RFM95W and the famous Arduino lib to use it: https://github.com/sandeepmistry/arduino-LoRa. This lib/the RFM95W doesn't have any ADDL/ADDH nor channel I can configure... It has a "sync word" which I still didn't fully understand how it's part of the whole sending/receiving process. Also setting the frequency is utterly complicated, split over three bits with a weird formula behind it... I can't even figure out the *exact* frequency when I set it to 868E6... I'm not asking you to understand how this lib works, but: This RFM95W is a *very* common module, so is this lib. I'm just wondering if you ever got an E-Byte and RFM95W to successfully communicate with each other, or if you have a hint where I could start searching what the issue is... Thanks again for your help and greetings, Andy!
Exit mobile version