NordicPlayground / nRF51-multi-role-conn-observer-advertiser

Runs an Observer or Advertiser role (timeslot API) with a Connection. Provides a HCI interface to the Observer and Advertiser. Advertiser provides SCAN REQs back to application.
42 stars 25 forks source link

Scanning only on channel 39? #10

Closed alessandro-montanari closed 9 years ago

alessandro-montanari commented 9 years ago

Hi, is the scanner scanning only on channel 39 or am I missing something? I was looking at the file ll_scan.c and radio_init() is called only once with the channel number 39. Does that mean that only that channel is scanned or all of three (37, 38 and 39)?

Thank you.

pratyushd commented 9 years ago

Please post your question on the our DevZone, where there such questions do get answered more promptly.

daviddedwin commented 9 years ago

You are correct, however you can rotate the scanner slowly to different channels, for example you can scan on 37 for 1 second, 38 on 1 second and then move to 39 for 1 second and repeat. The frequency can be added to the interface function. Alternatively you can switch the channel for each scan interval within the scanner function (no interface changes).

alessandro-montanari commented 9 years ago

Thanks daviddedwin! I have made a pull request with your second suggestion.