This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

52805 broadcasting problem

I stopped reconfiguring the broadcast configuration and started the broadcast in the following order: ①, ②, and ③. However, I found that the system may report a hardware error that leads to the restart of the device. According to the log, NRF_ERROR_INVALID_STATE is reported as the failure of stopping the broadcast, which leads to the failure of configuring the broadcast or starting the broadcast and the restart of the device. Consult, how should this problem be solved?

Is it normal to find that my flash data will be erased when the device is rebooted?

  • It means I'm not on the air, but I stopped the air and reported an error, which I probably know.But theoretically I stop broadcasting and report an error saying I am not in the broadcast state, but I go to reconfigure the broadcast after this error, why still report an error?

  • Check it again that article according to your opinion, I recorded the status of radio, stopped broadcasting the step error is eliminated, but then call radio parameter setting and the broadcast data API interface, will continue to 0 x08 mistake, but I can make sure my side set the parameters of the radio is normal, and radio data is and is not the same as before, May I ask why the error 0x08 is still reported here?

  • Hi,

    You get an NRF_ERROR_INVALID STATE error after the sd_ble_gap_adv_stop. So, this could be because the advertising handle is not advertising, i.e you call the stop when there was nothing to stop.

    I am not exactly sure, but this may be because you call the stop function first, then the configure and then the start function. So you call a stop function when there was nothing to stop in the first place. Maybe if you configure, start and then stop, is it still showing an error?

    Regards,

    Priyanka

  • The problem now is that I have eliminated the error of the broadcast stop step and have written a flag that handles the broadcast status to determine if I need to stop the broadcast. When I need to reconfigure the radio configuration and data, found that stopped will go directly to configure the radio broadcast and then to start, but found that configuration will quote 0 x08 error, I look at the configuration API if returns 0 x08 mistakes unless it is not change or radio broadcast content configuration pointer is empty, However, my broadcast data will change, and the configuration item will not be null pointer, so I would like to ask how to cause this error.

  • The problem has been found. When I switched the broadcast package again, one of the timers was not turned off in time, which led to the error of 0x08 in the broadcast setting. I'm really sorry.

Related