LoRa Node Help - Cannot receive packets from other node + other issues

I am not that confident that I already did the suggestions you gave to me from the beginning but I really did my best even thou I am a newbie in programming and this is my progress so far.

As you can see here, this was the output of this code I will show below before it stopped. It only lasted for about 3 mins and I really don't know why I have no idea. I keep the masterNode running and it is still sending request till now.

Sender01.ino (1.3 KB)

their only difference is this line of code and I printed the recipient value so I can see what is each node receiving and whos node is sending sensor data to the MasterNode.

if (recipient != 0xBB) {         // 0xCC for node 2 and 0xDD for Node 3
Serial.println(recipient);
      ;
      return;                              // skip rest of function
    }

And here is the output of the MasterNode before the Nodes 1 2 and 3 stopped

it only receives data from the one node

I already tried exchanging LoRa and Arduino on each transmitter node but it has the result is the same.

this is the code I am using right now for the MasterNode

Master01.ino (2.5 KB)

It is working just fine when I only have MasterNode and only one Node but when I add other nodes, the output is chaotic.

Hi @horace sorry for mentioning you directly I just wanted to ask if you can give me advice to reduce this kind of error on received data

NodeBB,9.94,-6.88,-68.41,1008.00,-7.01,-7070.69,194.82,1.00,-35,
NodeC7,9.18,-19.62,180.14,-0.00,-2450177711182844664250524147064.42,-0.00,-0.00,10575069.00,-33,
Node39,9.13,0.00,-18702190023836266163925756700336.93,73189824.00,-0.00,-0.00,0.00,1267113786398881281058947934.07,-32,
NodeBB,10.01,-6.89,-69.00,1001.00,-6.92,-6930.75,191.41,1.00,-35,
Node9D,-0.00,-20.99,-3865538816.00,-1280537942893452907355822389945387.84,-0.00,296876408832.00,-0.00,1305636456908655373965.18,-32,
NodeBB,9.82,-6.81,-66.85,998.00,-7.04,-7030.08,194.82,1.00,-35,

I am sometimes receiving incorrect values and it is annoying.

you appear to transmitting different sized packets to the MasterNode
if so you need to look at the packet size to work out what structure it is and copy it in the corresponding structure
otherwise you can end up filling the wrong structure and and get the problem in post 22

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.