Hi,
I am debugging the zigbee functionality and would like to enable the zigbee log,already enabled log in prj.conf but no data coming out.What do I have to do to enable log.
Hi,
I am debugging the zigbee functionality and would like to enable the zigbee log,already enabled log in prj.conf but no data coming out.What do I have to do to enable log.
Hello,
Are you sure you mean that you want to enable the zigbee trace? Or do you want to enable normal application logging? They are two different things. Application logs are the ones that you can monitor using a UART or RTT terminal, while a trace log is something that we would have to send to our stack provider to decrypt, if you suspect that there is a bug in the Zigbee stack (Zboss stack).
Best regards,
Edvin
Hi Edvin,
I want to enable zigbee log.I'm doing zigbee development so I'd like to use the zigbee log to helped me understand the source code.I just need to enable a log like "TRACE_MSG(TRACE_ZCL1,">> zb_zcl_ias_zone_check_attr_notify buf_param %hd", (FMT__H, buf_param));"
I believe you misunderstood my question. The TRACE_MSG() is not something that is intended for your development.
What you are looking for is the logging module. Do you prefer the log on UART or RTT? I suggest you check out the way that the logging is set up in the sample:
NCS\nrf\samples\zigbee\light_bulb.
E.g. in main.c -> main() it says:
LOG_INF("Starting ZBOSS Light Bulb example");
This will be printed over UART, so if you open the COM port that belongs to your DK using baudrate 115200, you should see this log. If you want more detials, remove the line in prj.conf saying CONFIG_NCS_SAMPLES_DEFAULTS=y, and it should include a timestamp, and you will be able to move the log to RTT if you prefer that.
Best regards,
Edvin
I believe you misunderstood my question. The TRACE_MSG() is not something that is intended for your development.
What you are looking for is the logging module. Do you prefer the log on UART or RTT? I suggest you check out the way that the logging is set up in the sample:
NCS\nrf\samples\zigbee\light_bulb.
E.g. in main.c -> main() it says:
LOG_INF("Starting ZBOSS Light Bulb example");
This will be printed over UART, so if you open the COM port that belongs to your DK using baudrate 115200, you should see this log. If you want more detials, remove the line in prj.conf saying CONFIG_NCS_SAMPLES_DEFAULTS=y, and it should include a timestamp, and you will be able to move the log to RTT if you prefer that.
Best regards,
Edvin