- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've been doing some testing recently to determine the severity of packet loss and was wondering if its possible to advertise more than once per interval?
Currently I have one device set to advertise constantly at 100ms intervals and another device set to scan all the time with no sleep (30ms interval with 30ms duration). I've noticed that I still get on average around 6% packet loss and am wondering if sending 3 or 5 packets every 100ms instead of just 1 packet every 100ms would be able to reduce this.
I'm using the "blecm_startAdv()" and "blecm_startScan()" functions.
Solved! Go to Solution.
- Labels:
-
Scanning-Advertising
-
SDK 2.X
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ADVs are not guaranteed to be delivered - you may miss it for any number of reasons like scan interval and duration, interference and range (so 6% might be very low or very high for the environment you are testing in).
Keeping your scan intervals and windows small and reducing adv interval will increase the probability of successfullt getting the data across, but all of this has a power penalty that you will need to tune for your application/use case.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you elaborate a little on how you determine packet loss? What tools are you using?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry for the late reply. I calculated packet loss by constantly incrementing a 2 byte value in the advertising packet and comparing that to a value on the receiver that was incremented every time a packet was received. So I could compare how many packets were sent vs how many were actually received. I noticed that over time about 6% of packets would be lost so I was wondering if there was a advertising/scanning timing solution that I could use to reduce this or simply advertise the same packet a few times and hope it makes it through to the receiving end.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ADVs are not guaranteed to be delivered - you may miss it for any number of reasons like scan interval and duration, interference and range (so 6% might be very low or very high for the environment you are testing in).
Keeping your scan intervals and windows small and reducing adv interval will increase the probability of successfullt getting the data across, but all of this has a power penalty that you will need to tune for your application/use case.