How to access mesh proxy packets

Hi,

We've had a mesh sensor network all working for a long time using SDK17.0.2 + Mesh SDK 4.1.0

The data is accessed by a mobile app through a mesh node acting as a proxy. We can send data back and forth from the mobile app through the mesh proxy node with no problems. Everything is working like it should.

On the proxy node, how can I access the proxy packets being sent to/from the mobile app? I want to print them out over UART to log them.

Thanks.

Parents
  • Hi, 

    If you want to print logs on the embedded side, there is no dedicated interface or debug prints to get access to proxy packets. You can add your own logging at the following places and print the raw packets:

    For packets being received by the embedded device via proxy: add logging here.

    For packets being sent by the embedded device to the proxy: add logging here.

    Ensure that you analyze the code and add appropriate logging or make the proper modifications. Because the function calls, especially within bt_mesh_proxy_msg_send(), might return errors, which means the message was not sent (or processed). You should consider these return codes of underlying functions and then decide whether to print a particular packet in the log or not. Be careful not to break functional logic there.

    Regards,
    Amanda H.

  • Hi Amanda,

    I don't have those functions or proxy_msg.c. I am using SDK17.0.2 + Mesh SDK 4.1.0 (modified light switch server).

    Thanks.

Reply Children
Related