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

the state of radio

I am doing a ble project with three roles exist simultaneously, slave, scanner and broadcaster. i used the 'ble_radio_notification_init' and a rtc to see when the radio is up. And i find that the connection heart packet inerval is about 500ms, while the adv inerval is about 120ms, scan interval is 660ms, which match what i set in code. However, now i want to know which role is working at some point. in other words, when radio is up, whether it is advertising, or scaning, or sending connection packet? Before, i observed the interval of radio up time to determine, but it doesn't seem to be a good way. Is there any API or other ways to know the radio state?

Parents
  • Hi Deye, 

    I don't think there is an API to get the current state of the radio. Using the radio notification and calculate the radio active time to determine the state is the closest you can do in my opinion. 

    May I ask what's the reason you want to detect the radio activity for your application ? 

Reply
  • Hi Deye, 

    I don't think there is an API to get the current state of the radio. Using the radio notification and calculate the radio active time to determine the state is the closest you can do in my opinion. 

    May I ask what's the reason you want to detect the radio activity for your application ? 

Children
Related