questions about mesh message publication

hi support team,

i have customer is developping mesh.

customer is trying to sniffer the message when i pressed the buttoon on demo mesh_light.

i have two questions on mesh.

 i set publication retransmission time for 0 in andriod mesh app, and here is the sniffer log:

my question is

1.why mac address is changing everytime device send the message after i pressed the button, is there  any document about this?

2.how to set the default trasmission(seems it is 3 internally) , if customer want to set this to 4 or 5

Regards,

William.

Parents
  • Hello William,

    The address is changing for privacy reasons. If you, however, for debugging purposes, want to keep using the same address, you can set CONFIG_BT_MESH_DEBUG_USE_ID_ADDR=y in prj.conf. This is not recommended for production. From NCS\zephyr\subsys\bluetooth\mesh\Kconfig:

    config BT_MESH_DEBUG_USE_ID_ADDR    
        bool "Use identity address for all advertising"    
        help    
          This option forces the usage of the local identity address for    
          all advertising. This can be a help for debugging (analyzing    
          traces), however it should never be enabled for a production    
          build as it compromises the privacy of the device.

    2.how to set the default trasmission(seems it is 3 internally) , if customer want to set this to 4 or 5

    There are two parameters for this. One for relayed messages (messages that are picked up, and retransmitted out to the network), and one for when you are the originator of the message.

    The relay count can be set using CONFIG_BT_MESH_RELAY_RETRANSMIT_COUNT

    The transmit count can be set using CONFIG_BT_MESH_NETWORK_TRANSMIT_COUNT

    Best regards,

    Edvin

Reply
  • Hello William,

    The address is changing for privacy reasons. If you, however, for debugging purposes, want to keep using the same address, you can set CONFIG_BT_MESH_DEBUG_USE_ID_ADDR=y in prj.conf. This is not recommended for production. From NCS\zephyr\subsys\bluetooth\mesh\Kconfig:

    config BT_MESH_DEBUG_USE_ID_ADDR    
        bool "Use identity address for all advertising"    
        help    
          This option forces the usage of the local identity address for    
          all advertising. This can be a help for debugging (analyzing    
          traces), however it should never be enabled for a production    
          build as it compromises the privacy of the device.

    2.how to set the default trasmission(seems it is 3 internally) , if customer want to set this to 4 or 5

    There are two parameters for this. One for relayed messages (messages that are picked up, and retransmitted out to the network), and one for when you are the originator of the message.

    The relay count can be set using CONFIG_BT_MESH_RELAY_RETRANSMIT_COUNT

    The transmit count can be set using CONFIG_BT_MESH_NETWORK_TRANSMIT_COUNT

    Best regards,

    Edvin

Children
No Data
Related