Hi,
Basically, the setup of the mesh network is as follows,
- There are END NODES based on sensor server model.
- There are RELAY NODES based on the sensor client model.
- There is a PROXY NODE
I am using ,
- NRF SDK 5 for MESH
- NRF CONNECT SDK 17.0.2
- NRF MESH mobile application for provisioning
- SEGGER Embedded Studio for developing software
- nrf52840 dev kits as the different types of nodes.
So, suppose there is an END NODE 'E1' and there is a RELAY NODE 'R1', When E1 sends the packet and it is first received by R1 then I want to add the MAC Address of R1 in the packet before relaying it further.
FINAL OBJECTIVE : I want to know which is the first RELAY NODE encountered with a packet, sent by END NODE.
I have tried following things to solve the problem or get the solution,
1. Searched on the Devzone about the problem but didn't get any lead towards the solution.
2. I have read about the stack architecture from the Bluetooth mesh stack architecture and have understood that the packet coming in RELAY NODE, enters Bearer Layer and Network Layer only.
3. I have traced the packet in Network layer and printed it on the logs, where it gets decrypted with network key. But as the packet gets relayed from Network layer itself without going in the Transport layer.
4. So, as the packet doesn't enter the Transport layer it didn't get decrypted with Application key.
5. Therefore, I couldn't edit the packet to append the MAC address of the RELAY NODE in the packet to achieve my final objective as mentioned above " I want to know which is the first RELAY NODE encountered with a packet, sent by END NODE."
Thanks in advance !
Any leads towards the solution or link to the readable material useful in solving the problem will be highly appreciated.
Regards !
Akbar