puart_control with BLE_APP_DISABLE_TRACING() will have some problem

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
RuCh_2181101
Level 3
Level 3
5 likes given First like received First like given

Hi Sir,

   This situation is hard to describe. First, we observe one case. If we show up too much message in HCI UART, the device will reboot.

So we want to use BLE_APP_DISABLE_TRACING() to disable console output. But we found that other case.

if the puart_control.exe send the command to WICED (20736), it will no response to send information back to puart_control.exe.

But if we add some code in puart_control_rx_callback. Like .

test_puart_write(PUART_CONTROL_EVENT_CONTINUE);

test_puart_write(PUART_CONTROL_EVENT_CONTINUE);

test_puart_write(PUART_CONTROL_EVENT_CONTINUE);

test_puart_write(PUART_CONTROL_EVENT_CONTINUE);

test_puart_write(PUART_CONTROL_EVENT_CONTINUE);

test_puart_write(PUART_CONTROL_EVENT_CONTINUE);

test_puart_write(PUART_CONTROL_EVENT_CONTINUE);

test_puart_write(PUART_CONTROL_EVENT_CONTINUE);

test_puart_write(PUART_CONTROL_EVENT_CONTINUE);

test_puart_write(PUART_CONTROL_EVENT_CONTINUE);


   It will back to normal. It is very strange.


  Do you know the way to close HCI UART safely ?


Best Regards,

Rush Chen


0 Likes
1 Solution

Sorry for late.

We turn off HCI debug message to fix the issue.

View solution in original post

0 Likes
5 Replies
MichaelF_56
Moderator
Moderator
Moderator
250 sign-ins 25 comments on blog 10 comments on blog

Not sure I understand as both UARTs are being discussed here.

HCI Uart and PUART.

The puart_control application and peer app is designed to be used on the puart. Is this application functioning properly on the PUART?

It sounds like you believe the traces from the HCI UART (used for programming only) are interfering with the puart and the associated puart_control application.

Have you verified that traces are disabled?

This is a good thread for disabling traces: Re: How to disable 20737S SDK trace, BLE_TRACE_DISABLE?

0 Likes

Hi Sir,

   You can test this case. Using puart_control (without any changed)  and scan the 20 tags (advertisement interval: 100ms). The puart_control will crash.

Best Regards,

Rush Chen

0 Likes

I do not have the resource to scan 20 tags. Any update to this issue?

0 Likes

Sorry for late.

We turn off HCI debug message to fix the issue.

0 Likes

Thanks for the update Rush.

0 Likes