-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Always receiving a BLE count of zero when using Arduino IDE #17
Comments
Reproduced again with the beta Arduino IDE 2.0 RC3. Going to try with esp-idf framework, that might take me a while since I never used it before. |
@zapoig could you please tun the test cases, and report results here?
|
Here you are :
|
All tests are also successful with |
Tests show BLE sniffing results (see third column) as expected, thus BLE sniffing works. Looks like in integration / API problem with your app. Did you set the build time options in your app?
|
At the moment I am not using any code of my own, I'm testing with only the libpax provided sample "src/main.cpp" As described in my initial post I have uncommented the build time options directly in the libpax file libpax_api.h so they are always enabled. |
In the example there is an RSSI threshold set:
Perhaps your BLE signals do not hit the threshold. Please set to zero and try again. |
Nope it doesn't change the outcome. Since the only time it actually detected some BLE ids was in the integration test build by platformio, my next attempt will be to try to build the sample code using pio. Will let you know the result, thanks for your help. |
I installed Arduino IDE 1.8.19, compiled and uploaded the main.cpp on a ESP32 T-Beam Board, an can reproduce this issue:
The same board, same software, but compiled and uploaded with platformio (frameworkespressif32 v3.5.0 which is based on Arduino-espressif32 v1.0.6) does work. |
That's similar to my own results. Thanks for your time testing that. |
I finally succeeded in building the main.cpp sample with esp-idf v4.4, and the BLE counting works there. |
@zapoig thanks for the note. |
I'm also experimenting with libpax and ran into the same issue:
gives me 0 BLE devices. |
Did you try to run the tests ? |
I can only support that this rssi threshold can lead to none or only few visible devices. Setting the threshold to default 0 should at least show something similar to the unittest. @zapoig @bleeptrack can you confirm that this still leads to no BLE counts in a noise environment? And do unit test yield counts? |
@lifezoned4 Yes I had tried setting rssi_thresholds (for both wifi and ble) to zero before. When unit tests yield counts :
The sample, built with arduino IDE, only finds wifis with default RSSIs = -80 :
And - still building using arduino IDE - switching the RSSIs to 0 doesn't change the BLE zero count (although it appears to find more wifis) :
Now if I build the original sample (rssi at -80) with platformio, it is finding both ble and wifi nodes :
And switching the rssi to 0 improves both counts - with platformio build again :
In the end I am happy having switched to platformio for my own project, but if the arduino IDE support is broken it should probably get mentioned in the README. |
@zapoig thanks for the report. It's strange, i have no idea what's the root cause here. |
Environment :
Steps to reproduce :
Expected output:
Receiving values for both wifi and ble counts.
Actual output:
16:25:09.268 -> pax: 3; 3; 0;
... 10 minutes later
16:25:19.262 -> pax: 7; 7; 0;
BLE count is always zero.
Note that running the BLE_scan sample sketch included with ESP32 arduino package finds around 15 BLE devices at the same location, same time on the same board.
The text was updated successfully, but these errors were encountered: