3 Replies Latest reply on Apr 27, 2015 8:02 AM by MichaelF_56

    BCM9020736 HCI periodic message

      Hi,

      I'm using SDK V2.1.1 over a BCM9020736s module.

      Recently I changed advertise structure adding device name and I noticed that now every second I have a periodic message over HCI UART:

       

      @$*#04FF16F7009201020000078E1E000000000007721F01000000

      ...

      @$*#04FF16F7009201020000078E1E000000000007721F09000000

      @$*#04FF16F7009201020000078E1E000000000007721FFFFFFFF

      @$*#04FF16F7009201020000078E1E000000000007721FFFFFFFF

      @$*#04FF16F7009201020000078E1E000000000007721FFFFFFFF

      @$*#04FF16F7009201020000078E1E000000000007721FFFFFFFF

       

      What does it means?

      Can this message be disabled?

       

      Thank you

      Franco

        • 2. Re: BCM9020736 HCI periodic message

          Thank you!

          It was certainly a trace, I used BLE_APP_DISABLE_TRACING() macro and now string is disappeared.

          Anyway also application level traces are disabled.

          Is there a way to keep application level traces enabled?

           

          Thank you

          Franco

          • 3. Re: BCM9020736 HCI periodic message
            MichaelF_56

            In your APPLICATION_INIT() function, if you set ble_trace_enable = 1, ble_trace* functions will print to the peripheral UART. If you set this to 2 instead, debug traces will go to the HCI UART. Since the 2073X ROM uses HCI UART RXd to detect the presence of a host device (for download mode), make sure that you disconnect RXd line, leaving the TXd line connected and then power cycle the device (or the device will enter download mode again).
             
            Setting ble_trace_enable = 0 instead will disable all debug messages.

             

            I do see that we now include a simpler function within APPLICATION_INIT() to disable traces per what I just pulled out of hello_sensor.c in SDK 2.2

             

            {
                bleapp_set_cfg((UINT8 *)hello_sensor_gatt_database,
                               sizeof(hello_sensor_gatt_database),
                               (void *)&hello_sensor_cfg,
                               (void *)&hello_sensor_puart_cfg,
                               (void *)&hello_sensor_gpio_cfg,
                               hello_sensor_create);

                // BLE_APP_DISABLE_TRACING();     ////// Uncomment to disable all tracing
            }