This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

does nrf51 softdevice can connect with specific channel?

As I know, BLE Advertising on 37, 38 ,39 channel and I can select which channel to advertise by masking them.

But, Is it possible to make an data connection to a channel as I want (from 1~38)?

Easily, can I choose which channel to communicate with Peripheral or Central?

I really tried to search for it, but I can't found such thing like that.

I think which channel to connected is all softdevice's desire.

Can I manage or choose which channel to data connection?

If I can, then How can I achive it?

Parents
  • You could try sd_ble_opt_set with the option ble_gap_opt_ch_map_t and set a one-channel channel map. I really don't know why you'd want to do that however as any interference will probably result in loss of connection. There's a reason bluetooth uses 37 channels.

  • well you shouldn't be worried because bluetooth is designed exactly to figure out what good and bad channels there are and adjust the channel map dynamically on a constant basis to keep communications up. As things change, the channels change, the packet timings have a slight random element also which helps them to stay out of each others way.

    I suggest instead of worrying about it and trying to work around a problem you probably don't actually have, you just assume the BT SIG knows how to design communications channels and let the softdevice work it out for you in accordance with the spec. Trying to do it manually is going to give you worse results, period.

Reply
  • well you shouldn't be worried because bluetooth is designed exactly to figure out what good and bad channels there are and adjust the channel map dynamically on a constant basis to keep communications up. As things change, the channels change, the packet timings have a slight random element also which helps them to stay out of each others way.

    I suggest instead of worrying about it and trying to work around a problem you probably don't actually have, you just assume the BT SIG knows how to design communications channels and let the softdevice work it out for you in accordance with the spec. Trying to do it manually is going to give you worse results, period.

Children
No Data
Related