Anyone know of a way to do ble scan continuously without limited by the (duration).
like using linux hcitool lescan.
esp32 ble scan
Re: esp32 ble scan
scan time max is 256? if you put a start scan in the scan complete case of the event handler how much would you actually lose?
-
- Posts: 95
- Joined: Tue Feb 21, 2017 10:17 pm
Re: esp32 ble scan
In reality, not over much. Timings for BLE announcement are largely terms of milliseconds and typically things you're scanning for will transmit on all three channels based on my observations from things on my initial experiments with the stack. I took the GATT client code and stripped all the GATT specific stuff out and cleaned up some things that were GATT specific and have a continuous scanner.f.h-f.s. wrote:scan time max is 256? if you put a start scan in the scan complete case of the event handler how much would you actually lose?
I suggest re-cocking the timeout in the complete event as mentioned. In reality while you might "drop" one event, you're going to see it on the next announcement unless you're very mobile and moving quickly (35+ MPH quickly...)
Re: esp32 ble scan
Thanks for your response.
Can you share your codes how you achieve beyond the max duration time of 256 seconds? Can you ble scan loop last indefinitely?
achan73
Can you share your codes how you achieve beyond the max duration time of 256 seconds? Can you ble scan loop last indefinitely?
achan73
Re: esp32 ble scan
anyone know how to select one channel out of 3 . my beacon transmit only through one channel,,so i hav to listen nly that channel, please tell how to stop scanning through another two channel.
Re: esp32 ble scan
I'm way over my head here ... but a thought strikes me ... it was my understanding that three channels in the BLE radio spectrum were dedicated to advertising and that the BLE protocol says that all three are used by every advertiser ... meaning that an advertiser will advertise on all three channels one transmission at a time. The thinking being that if one channel was suffering from interference, the other might be better.
If that is the case, then the "specialization" of your beacon might be an implementation artifact of that device rather than by design ... and there may not be a legal way to ask for a scan to constrain itself to just one of the three advertising channels as that might not be a concept in the BLE protocol itself.
If that is the case, then the "specialization" of your beacon might be an implementation artifact of that device rather than by design ... and there may not be a legal way to ask for a scan to constrain itself to just one of the three advertising channels as that might not be a concept in the BLE protocol itself.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32
Re: esp32 ble scan
Yaeh i know that sir. As you said, if we mask other scanning window, we may have loss due to signal interference or noise. But in our case, our beacons sending continuously for every 1 sec, still so many loss of packets were happening in between channel switching interval. As we are advertising through one channel, we will have better throughput only if our receiver listen to it continuously without switching channel. Is there any options available to disable the channels for our requirement? please let us know how to change that in code, sir.
ble advertising id
how to change ble address . i want to configure advertising id.
Re: esp32 ble scan
sir, this is my forum post i have already ping you, i also attach link where i got the code, please tell me where should i add whitelist
(https://github.com/ibm-watson-iot/devic ... ateway.ino). please support me
(https://github.com/ibm-watson-iot/devic ... ateway.ino). please support me
Who is online
Users browsing this forum: Baidu [Spider], VSparxx and 117 guests