How can I disable trace output in "mybeacon" application?

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

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

I'm using mybeacon application, I found that my 92073X kit's HCI port always output content like this, how can I disable it?

Best Regards,

Ren Kai

0 Likes
1 Solution
VikramR_26
Employee
Employee
25 sign-ins 10 sign-ins 10 comments on KBA

#include "sparcommon.h"  OR

define below macro in your app:

#define BLE_APP_DISABLE_TRACING()  do{                                          \

                                         extern UINT8 bleapp_trace_enable;      \

                                         extern UINT32 blecm_enabledFeatures;   \

                                         bleapp_trace_enable = 0;               \

                                         blecm_enabledFeatures &= ~(0x04);      \

                                     }while(0)

Then use this macro:

APPLICATION_INIT()

{

    bleapp_set_cfg(NULL, 0, NULL, (void *)&mybeacon_puart_cfg, NULL, mybeacon_create);

    BLE_APP_DISABLE_TRACING();

}

HTH

http://community.broadcom.com/message/10315#10315

View solution in original post

1 Reply
VikramR_26
Employee
Employee
25 sign-ins 10 sign-ins 10 comments on KBA

#include "sparcommon.h"  OR

define below macro in your app:

#define BLE_APP_DISABLE_TRACING()  do{                                          \

                                         extern UINT8 bleapp_trace_enable;      \

                                         extern UINT32 blecm_enabledFeatures;   \

                                         bleapp_trace_enable = 0;               \

                                         blecm_enabledFeatures &= ~(0x04);      \

                                     }while(0)

Then use this macro:

APPLICATION_INIT()

{

    bleapp_set_cfg(NULL, 0, NULL, (void *)&mybeacon_puart_cfg, NULL, mybeacon_create);

    BLE_APP_DISABLE_TRACING();

}

HTH

http://community.broadcom.com/message/10315#10315