This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
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

S130 and scan performance potential issue

Hello,

I use S130 with NUS style connections as central and device at same time. It works nice and performance is good but when i run scan, performance become very poor.

I need active scan to see any iBeacon in proximity area and / or any new potential device.

Is there any way to fix that ? Fast "passive" scan at same time that fast connections ?

edit:

Performance is a "ping" latency (question from nRF51 board A to nRF51 board B then response from B to A)

define MIN_CONNECTION_INTERVAL (1 * BLE_GAP_CP_MIN_CONN_INTVL_MIN)

define MAX_CONNECTION_INTERVAL (1 * BLE_GAP_CP_MIN_CONN_INTVL_MIN)

define SLAVE_LATENCY 0

define SUPERVISION_TIMEOUT MSEC_TO_UNITS(1000, UNIT_10_MS)

define SCAN_INTERVAL MSEC_TO_UNITS(10, UNIT_0_625_MS)

define SCAN_WINDOW MSEC_TO_UNITS(5, UNIT_0_625_MS)

=> 20 to 30 ms (10 ms resolution)

define MIN_CONNECTION_INTERVAL (1 * BLE_GAP_CP_MIN_CONN_INTVL_MIN)

define MAX_CONNECTION_INTERVAL (1 * BLE_GAP_CP_MIN_CONN_INTVL_MIN)

define SLAVE_LATENCY 0

define SUPERVISION_TIMEOUT MSEC_TO_UNITS(1000, UNIT_10_MS)

define SCAN_INTERVAL MSEC_TO_UNITS(10, UNIT_0_625_MS)

define SCAN_WINDOW MSEC_TO_UNITS(10, UNIT_0_625_MS)

=> 200 ms (10 ms resolution)

Thank you.

Parents
  • You only have one radio. It can either scan or handle a connection event. By setting the scan window equal to the scan interval you tell the SoftDevice to scan 100 % of the time, and more connection events will be dropped. You can read more about this in the S130 SoftDevice Specification, see this. I'm not sure what connection interval you are actually using, but I recommend you to try different settings and see if you can get results that fulfill your requirements.

  • I don't understand what you mean. Are you asking if you can scan on the channels used for connections? Then the answer is no. You scan on the three advertising channels. As you may know, it is possible to advertise on one channel, but our SoftDevice does not currently support scanning on only one channel. Please see this question for more information. If I have misunderstood you, please let me know.

Reply
  • I don't understand what you mean. Are you asking if you can scan on the channels used for connections? Then the answer is no. You scan on the three advertising channels. As you may know, it is possible to advertise on one channel, but our SoftDevice does not currently support scanning on only one channel. Please see this question for more information. If I have misunderstood you, please let me know.

Children
No Data
Related