RUI-3 Mesh Custom Data #7
-
Hii, the mesh logic works but if i need to send custom data. What should I do? I tried changing the data from timed_loop() function. But it gives the same output as before. |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 9 replies
-
Did you change the data_buffer in lines 226 to 230 convert_value.l_value = msg_cnt;
memcpy(&data_buffer[0], convert_value.b_values, 8);
memcpy(&data_buffer[8], convert_value.b_values, 8);
convert_value.l_value = g_this_device_addr;
memcpy(&data_buffer[16], convert_value.b_values, 8); to something like for (int idx = 0; idx < 24; idx++)
{
databuffer[idx] = idx;
} |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I tried your logic and i get this output. I am not sure. By the way whats the decoder. Is it Hex to ASCII or Base64 or any other? |
Beta Was this translation helpful? Give feedback.
-
Can you share your libraries and code as a zip file, so i could analyse it. |
Beta Was this translation helpful? Give feedback.
-
I never tested the Mesh app with only two nodes (makes not really sense, that is just LoRa P2P). There is no library. It is all in this example code. |
Beta Was this translation helpful? Give feedback.
-
Just added one missing information in the README. The app by itself does not send data automatically. The RX/TX messages you see are the Mesh Map that is frequently interchanged between the nodes. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have worked using the mesh, considering three nodes are working. Node 1
is the bridge and node 2 is in range with node 1. Node 3 is out of range
with node 1 but is in range with node 2. But the message isn't hopping from
node 3 -> node 2 -> node 1. I assigned the bridge (master) for every nodes
but i only get data from node 2. Any suggestions would be helpful.
Thanks,
Shylendran R
…---------- Forwarded message ---------
From: Bernd Giesecke ***@***.***>
Date: Wed, 14 May, 2025, 4:37 pm
Subject: Re: [RAKWireless/RUI3-Best-Practice] RUI-3 Mesh Custom Data
(Discussion #7)
To: RAKWireless/RUI3-Best-Practice ***@***.***>
Cc: Shylendran7801 ***@***.***>, Mention <
***@***.***>
Just added one missing information in the README.
The app by itself does not send data automatically. The RX/TX messages you
see are the Mesh Map that is frequently interchanged between the nodes.
The example application does not send data automatically unless it is
activated with an AT command.
ATC+SENDINT=30 sets the interval to send data to random nodes in the Mesh
network every 30 seconds.
<https://github.com/RAKWireless/RUI3-Best-Practice/blob/main/RUI3-Mesh/README.md#%EF%B8%8F-info>
—
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQU3QAJV5Q6NTQMXFNH2B7326MPXPAVCNFSM6AAAAAB5CLXJQ2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTGMJUGM2TSMI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
How do you setup the configuration? // To simulate a mesh where some nodes are out of range,
// replace the 3 node addresses below with real node addresses
// Requires at least 3 nodes in the net
// NODE 1 can only connect to NODE 3
// NODE 2 can only connect to NODE 3
#define BROKEN_NODE_1 0xFE0537A1
#define BROKEN_NODE_2 0xFE0A710C
#define BROKEN_NODE_3 0xFE0AF1B9 Tested with 3 nodes and master with this configuration MASTER (FE0537A1) <====> NODE 1 (FE0AF1B9) <=====> NODE2 (FE0AF1B9) Master receives messages from both Node 1 (bridge) and Node 2 Then I set Node 1 as master and bridge NODE3 (FE0537A1) <====> MASTER (FE0AF1B9) <=====> NODE2 (FE0AF1B9) Master/Bridge receives messages from both Node 3 and Node 2 |
Beta Was this translation helpful? Give feedback.
-
Once you have assigned a master node, the other nodes will only send packets to that master node. They will not send broadcast messages anymore. So when MASTER (FE0537A1) <====> NODE 1 (FE0AF1B9) <=====> NODE2 (FE0AF1B9) Node 1 will only send to Master and never to Node 2 Destination is 0 if the packet is sent as broadcast. |
Beta Was this translation helpful? Give feedback.
Just added one missing information in the README.
The app by itself does not send data automatically. The RX/TX messages you see are the Mesh Map that is frequently interchanged between the nodes.
The example application does not send data automatically unless it is activated with an AT command.
ATC+SENDINT=30 sets the interval to send data to random nodes in the Mesh network every 30 seconds.