This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Mesh debug print

HI I'm developing Mesh network with SDK for mesh 1.0.1.0

I just started  with own provisioner code bud a really need some debug print while programme running.

I tried a lot of ways but without succes. Can anybody help with this ?

I'm loking for some functional way.

Please can anybody share some code or tell which libraries I should use.

Thank you.

Parents
  • Hi,

    There is logging support in nRF5 SDK for mesh. It uses RTT, which also integrates well with Segger Embedded Studio. While the logging macros are not currently documented on Infocenter, there are some examples of usage throughout the examples, for instance this one from the light_switch client:

    __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, "Node 0x%04x alive with %u active fault(s), RSSI: %d\n",
        p_event->p_meta_data->src.value, p_event->data.fault_status.fault_array_length,
        p_event->p_meta_data->rssi);

    You should use the LOG_SRC_APP log source for log messages from your application. Log levels are defined in mesh/core/include/log.h, where the __LOG macro is defined as well. For configuring log level, etc., use mesh/core/api/nrf_mesh_config_core.h.

    Regards,
    Terje

Reply
  • Hi,

    There is logging support in nRF5 SDK for mesh. It uses RTT, which also integrates well with Segger Embedded Studio. While the logging macros are not currently documented on Infocenter, there are some examples of usage throughout the examples, for instance this one from the light_switch client:

    __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, "Node 0x%04x alive with %u active fault(s), RSSI: %d\n",
        p_event->p_meta_data->src.value, p_event->data.fault_status.fault_array_length,
        p_event->p_meta_data->rssi);

    You should use the LOG_SRC_APP log source for log messages from your application. Log levels are defined in mesh/core/include/log.h, where the __LOG macro is defined as well. For configuring log level, etc., use mesh/core/api/nrf_mesh_config_core.h.

    Regards,
    Terje

Children
No Data
Related