LowPowerLab Forum

Hardware support => General topics => Topic started by: Not_invented on July 03, 2017, 03:02:49 AM

Title: RFM95(LoRa, Semtech sx1276)
Post by: Not_invented on July 03, 2017, 03:02:49 AM
Hello. Hope you will help me. I have two RFM95 modules interacting with their respective pairs. let's call them 1 and 2. The message I send and receive is relatively long so it takes about 500mS to get one. The problem is that I need the 1st receiver to get messages from the 1 transmitter only. When I add an identifier to messages, it results in spending time by receiver 1 to receive a message from transmitter 2 to see that ID is wrong and missing an actual message from transmitter 1 while receiving from 2. I see there is 0x39 register in sx1276(which is the same as rf95 chip on rfm95 module i suppose), but i can't fully grasp how it works - simple changing the register value gives no result.
How is this problem solved in LoRa?
Thank you.
Title: Re: RFM95(LoRa, Semtech sx1276)
Post by: Not_invented on July 18, 2017, 02:10:57 AM
If someone is interested in the answer here it is: there is no special "hardware" way to distinguish two modules transmitting with  the same settings but there is a soltion of some sort. You can get the number of bytes received in 0x25 register. So you can store an ID in the 1st byte of your mesage and upon receiving a valid LoRa sygnal start getting the value stored in 0x25. When it's = 1 you just read 1 byte from FIFO and if it's not equel to ID stop the reception.
Title: Re: RFM95(LoRa, Semtech sx1276)
Post by: Erik84750 on October 02, 2017, 10:51:24 AM
Hi, yes I am interested. I found your post searching for RFM95 and SX1276. Can you post your code and a diagram please? I am new in this area, but very interested. Thank you.