cyberman54 / ESP32-Paxcounter

Wifi & BLE driven passenger flow metering with cheap ESP32 boards

Home Page:https://cyberman54.github.io/ESP32-Paxcounter/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BLE Scanner not working on Build 3.4.3 ? (TTGO LORA OLED BOARD 1.6.1)

Qmick01 opened this issue · comments

Hi, I am on build 3.4.3 and after flashing a few boards for BLE sensing only have found the BLE count is consistently 0.

I believe there may be an issue here and would appreciate any thoughts or a fix?

Paxcounter conf is below:

/ default settings for transmission of sensor data (first list = data on / second line = data off)
#define PAYLOADMASK
((GPS_DATA | MEMS_DATA | COUNT_DATA | SENSOR1_DATA | SENSOR2_DATA | SENSOR3_DATA | BATT_DATA)
& (~RESERVED_DATA))

// MAC sniffing parameters
#define BLECOUNTER 1 // set to 0 if you do not want to install the BLE sniffer
#define WIFICOUNTER 0 // set to 0 if you do not want to install the WIFI sniffer
#define RSSILIMIT 0 // 0...-128, set to 0 if you do not want to filter signals

// BLE scan parameters
#define BLESCANTIME 0 // [seconds] scan duration, 0 means infinite [default], see note below
#define BLESCANWINDOW 80 // [milliseconds] scan window, see below, 3 .. 10240, default 80ms
#define BLESCANINTERVAL 80 // [illiseconds] scan interval, see below, 3 .. 10240, default 80ms = 100% duty cycle

Can you provide logs from the board?

FYI: you can format code blocks like this:

    ```
     code / conf etc. 
    ```

Here are the logs for a few minutes of running. Is that helpful?

SERIAL PORT DATA

09:32:11.849 >
09:32:11.849 > rst:0x5 (DEEPSLEEP_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
09:32:11.853 > configsip: 188777542, SPIWP:0xee
09:32:11.853 > clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
09:32:11.866 > mode:DIO, clock div:2
09:32:11.866 > load:0x3fff0030,len:1184
09:32:11.866 > load:0x40078000,len:13132
09:32:11.871 > load:0x40080400,len:3036
09:32:11.871 > entry 0x400805e4
09:32:11.930 > [ 20][I][configmanager.cpp:96] loadConfig(): [src/configmanager.cpp] Loading device configuration from NVRAM...
09:32:11.937 > [ 22][I][configmanager.cpp:122] loadConfig(): [src/configmanager.cpp] Runtime configuration v3.4.3 loaded
09:32:11.947 > [ 30][I][reset.cpp:72] do_after_reset(): [src/reset.cpp] Time spent in deep sleep: 600097 ms
09:32:11.958 > [ 38][I][main.cpp:115] setup(): [src/main.cpp] Starting paxcounter_7dd43646 v3.4.3 (runmode=2 / restarts=0)
09:32:11.965 > [ 47][I][main.cpp:116] setup(): [src/main.cpp] code build date: 1669277974
09:32:11.975 > [ 54][I][esp32-hal-i2c.c:75] i2cInit(): Initialising I2C Master: sda=21 scl=22 freq=100000
09:32:11.980 > [ 63][I][power.cpp:194] calibrate_voltage(): [src/power.cpp] ADC characterization based on reference voltage stored in eFuse
09:32:11.992 > [ 76][I][main.cpp:275] setup(): [src/main.cpp] Starting libpax...
09:32:11.997 > [ 79][I][main.cpp:285] setup(): [src/main.cpp] WIFISCAN: off
09:32:12.004 > [ 85][I][main.cpp:291] setup(): [src/main.cpp] BLESCAN: on
09:32:12.008 > [ 91][I][blescan.cpp:203] start_BLE_scan(): [bluetooth] Initializing bluetooth scanner ...
09:32:12.636 > [ 731][I][blescan.cpp:113] hci_cmd_send_ble_scan_start(): [bluetooth] BLE Scanning started
09:32:12.836 > [ 931][I][blescan.cpp:264] start_BLE_scan(): [bluetooth] Bluetooth scanner started
09:32:12.848 > [ 931][I][main.cpp:309] setup(): [src/main.cpp] Starting rcommand interpreter...
09:32:12.852 > [ 935][I][rcommand.cpp:515] rcmd_init(): [src/rcommand.cpp] Rcommand send queue created, size 55 Bytes
09:32:12.865 > [ 944][I][lorawan.cpp:248] lmic_init(): [src/lorawan.cpp] LORA send queue created, size 530 Bytes
09:32:12.874 > [ 969][I][lorawan.cpp:537] LoadLMICFromRTC(): [src/lorawan.cpp] LMIC state loaded
09:32:12.886 > [ 969][I][lorawan.cpp:293] lmic_init(): [src/lorawan.cpp] Already joined
09:32:12.891 > [ 972][I][lorawan.cpp:297] lmic_init(): [src/lorawan.cpp] Starting LMIC...
09:32:12.897 > [ 979][I][sdcard.cpp:95] sdcard_init(): [src/sdcard.cpp] looking for SD-card...
09:32:12.921 > E (1012) sdmmc_common: sdmmc_init_ocr: send_op_cond (1) returned 0x107
09:32:12.933 > E (1013) vfs_fat_sdmmc: sdmmc_card_init failed (0x107).
09:32:12.938 > [ 1017][E][sdcard.cpp:156] sdcard_init(): [src/sdcard.cpp] SD-card not found (263)
09:32:12.944 > E (1020) wifi_init: Failed to deinit Wi-Fi driver (0x3001)
09:32:12.950 > [ 1029][I][main.cpp:412] setup(): [src/main.cpp] Starting Interrupt Handler...
09:32:12.955 > [ 1036][I][main.cpp:440] setup(): [src/main.cpp] Starting Timers...
09:32:12.961 > [ 1042][I][timekeeper.cpp:391] time_init(): [src/timekeeper.cpp] Starting time pulse...
09:32:12.971 > [ 1051][I][timekeeper.cpp:194] timepulse_init(): [src/timekeeper.cpp] Timepulse: internal (ESP32 hardware timer)
09:32:12.978 > [ 1060][I][main.cpp:485] setup(): [src/main.cpp] Features: BATT OTA BLE LORA PACKED TIME
09:33:11.998 > [ 60096][I][reset.cpp:88] enter_deepsleep(): [src/reset.cpp] Preparing to sleep...
09:33:12.009 > [ 60096][I][blescan.cpp:277] stop_BLE_scan(): [bluetooth] Shutting down bluetooth scanner ...
09:33:12.015 > [ 60103][I][lorawan.cpp:219] lora_send(): [src/lorawan.cpp] 4 byte(s) sent to LORA
09:33:12.059 > [ 60157][I][blescan.cpp:286] stop_BLE_scan(): [bluetooth] Bluetooth scanner stopped
09:33:12.070 > [ 60157][I][reset.cpp:110] enter_deepsleep(): [src/reset.cpp] Waiting until send queues are empty...
09:33:18.200 > [ 66300][I][lorawan.cpp:219] lora_send(): [src/lorawan.cpp] 2 byte(s) sent to LORA
09:33:19.063 > [ 67162][I][reset.cpp:119] enter_deepsleep(): [src/reset.cpp] Waiting until LMIC is idle...
09:33:25.063 > [ 73162][I][lorawan.cpp:532] SaveLMICToRTC(): [src/lorawan.cpp] LMIC state saved
09:33:25.074 > [ 73163][I][reset.cpp:179] enter_deepsleep(): [src/reset.cpp] Going to sleep, good bye.

I can reproduce this. Will have to look deeper in this issue. Solution is probably to restructure code by removing compiler directives WIFICOUNTER and BLECOUNTER, and switch Wifi and BLE using runtime variables instead.

Thank you.
Would you know where this became an issue?
I can report that version 3.3.2 does NOT have this bug and is working fine on sensors I have deployed.

I compared 3.3.2 and 3.4.0, and did not find any relevant diffs in paxcounter code. But probably this could be causing this issue, is need to check further:

image

This should be fixed now. Bumped new code as v3.4.4
/cc @Qmick01

Hi,

I have been testing for 2 hours.
I am now on 3.4.4 and have flashed two different versions of the same board, one a new type and one an older version I have stock of and used for many deployments. I am still unable to get a BLE number reported back.
BLE 0 is all I get in several locations where other boards report BLE number.
Also my tests revealed this build does not respond to an "80" on port 2 downlink.

Then you probably use outdated code in your toolchain. Update Arduino Espressif32 framework and libraries of the project (i.e. libpax). Make sure that your settings in paxcounter.conf for WIFICOUNTER and BLECOUNTER are appropriate. Clear the NVRAM if board were flashed with other paxcounter build before.

please post platformio.ini and paxconter.conf of your build.

Make sure you're using current libpax lib, look in the build processing notes:

Scanning dependencies...
Dependency Graph
|-- libpax @ 1.0.2+sha.2f774b5

I don't see any problems with downlinks. Everything is working, as it did before.

Did you copy platformio_orig.ini to your platformio.ini when upgrading your build installation? If not, you're probably using outdated / incompatible libs.

@Qmick01 for debugging, you can use new feature logging system output to SD card

Received by mail from @Qmick01:

I have just re-cloned paxcounter on a different machine. It does compile and everything looks great - but still no BLE count.

I need to flash some more boards this week and have been using a version from February as this works reliably for most things.

I attach the compile output - perhaps there is something in there I am not seeing?

Can not remove temporary directory C:\Users\Mike\Documents\PlatformIO\Projects\3.4.4 new\ESP32-Paxcounter\.pio\build. Please remove it manually to avoid build issues
Processing usb (framework: arduino; board: esp32dev; platform: espressif32@5.2.0)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose option
Parsing hardware configuration from C:\Users\Mike\Documents\PlatformIO\Projects\3.4.4 new\ESP32-Paxcounter\src\hal\ttgov21new.h
Parsing LMIC configuration from C:\Users\Mike\Documents\PlatformIO\Projects\3.4.4 new\ESP32-Paxcounter\src\lmic_config.h
Parsing LORAWAN keys from C:\Users\Mike\Documents\PlatformIO\Projects\3.4.4 new\ESP32-Paxcounter\src\loraconf.h
Parsing OTA keys from C:\Users\Mike\Documents\PlatformIO\Projects\3.4.4 new\ESP32-Paxcounter\src\ota.conf
Target board: esp32dev @ 921600bps
Partition table: min_spiffs.csv
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (5.2.0) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:

  • framework-arduinoespressif32 @ 3.20005.220925 (2.0.5)
  • tool-esptoolpy @ 1.40201.0 (4.2.1)
  • tool-mkfatfs @ 2.0.1
  • tool-mklittlefs @ 1.203.210628 (2.3)
  • tool-mkspiffs @ 2.230.0 (2.30)
  • tool-openocd-esp32 @ 2.1100.20220706 (11.0)
  • toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch3
    LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Found 54 compatible libraries
    Scanning dependencies...
    Dependency Graph
    |-- libpax @ 1.0.2+sha.1402107
    |-- RokkitHash @ 20151212.0.0+sha.8500494
    |-- ArduinoJson @ 6.19.4
    |-- RTC @ 2.3.5
    |-- OneButton @ 2.0.3
    |-- XPowersLib @ 0.1.4
    | |-- Wire @ 2.0.0
    |-- MQTT @ 2.5.0
    |-- MCCI LoRaWAN LMIC library @ 4.1.1
    | |-- SPI @ 2.0.0
    |-- OneBitDisplay @ 2.2.1
    | |-- BitBang_I2C @ 2.2.1
    | | |-- Wire @ 2.0.0
    | |-- SPI @ 2.0.0
    |-- bb_spi_lcd @ 2.4.0
    | |-- Wire @ 2.0.0
    | |-- SPI @ 2.0.0
    |-- QRCode @ 0.0.1
    |-- FastLED @ 3.5.0
    | |-- SPI @ 2.0.0
    |-- TinyGPSPlus @ 1.0.3
    |-- Adafruit Unified Sensor @ 1.1.6
    |-- Adafruit BME280 Library @ 2.2.2
    | |-- Adafruit BusIO @ 1.14.1
    | | |-- Wire @ 2.0.0
    | | |-- SPI @ 2.0.0
    | |-- Wire @ 2.0.0
    | |-- SPI @ 2.0.0
    | |-- Adafruit Unified Sensor @ 1.1.6
    |-- Adafruit BMP085 Library @ 1.2.2
    | |-- Adafruit BusIO @ 1.14.1
    | | |-- Wire @ 2.0.0
    | | |-- SPI @ 2.0.0
    | |-- Wire @ 2.0.0
    |-- BSEC Software Library @ 1.6.1480
    | |-- SPI @ 2.0.0
    | |-- Wire @ 2.0.0
    |-- Nova Fitness Sds dust sensors library @ 1.5.1
    |-- Ultrathin_LED_Matrix @ 1.0.0
    |-- Wire @ 2.0.0
    |-- ESPmDNS @ 2.0.0
    | |-- WiFi @ 2.0.0
    |-- Update @ 2.0.0
    |-- WebServer @ 2.0.0
    | |-- WiFi @ 2.0.0
    | |-- FS @ 2.0.0
    |-- WiFi @ 2.0.0
    |-- WiFiClientSecure @ 2.0.0
    | |-- WiFi @ 2.0.0
    |-- Ticker @ 2.0.0
    |-- Preferences @ 2.0.0
    |-- BitBang_I2C @ 2.2.1
    | |-- Wire @ 2.0.0
    |-- SPI @ 2.0.0
    |-- Ethernet @ 2.0.0
    | |-- WiFi @ 2.0.0
    |-- BintrayClient @ 1.0.0
    | |-- ArduinoJson @ 6.19.4
    | |-- HTTPClient @ 2.0.0
    | | |-- WiFi @ 2.0.0
    | | |-- WiFiClientSecure @ 2.0.0
    | | | |-- WiFi @ 2.0.0
    Building in release mode
    Compiling .pio\build\usb\src\bmesensor.cpp.o
    Compiling .pio\build\usb\src\boot.cpp.o
    Compiling .pio\build\usb\src\button.cpp.o
    Compiling .pio\build\usb\src\configmanager.cpp.o
    Compiling .pio\build\usb\src\cyclic.cpp.o
    Compiling .pio\build\usb\src\dcf77.cpp.o
    Compiling .pio\build\usb\src\display.cpp.o
    Compiling .pio\build\usb\src\gpsread.cpp.o
    Compiling .pio\build\usb\src\if482.cpp.o
    Compiling .pio\build\usb\src\irqhandler.cpp.o
    Compiling .pio\build\usb\src\led.cpp.o
    Compiling .pio\build\usb\src\ledmatrixdisplay.cpp.o
    Compiling .pio\build\usb\src\libpax_helpers.cpp.o
    Compiling .pio\build\usb\src\loraconf_abp.cpp.o
    Compiling .pio\build\usb\src\lorawan.cpp.o
    Compiling .pio\build\usb\src\main.cpp.o
    Compiling .pio\build\usb\src\mqttclient.cpp.o
    Compiling .pio\build\usb\src\ota.cpp.o
    Compiling .pio\build\usb\src\payload.cpp.o
    Compiling .pio\build\usb\src\power.cpp.o
    Compiling .pio\build\usb\src\rcommand.cpp.o
    Compiling .pio\build\usb\src\reset.cpp.o
    Compiling .pio\build\usb\src\rtctime.cpp.o
    Compiling .pio\build\usb\src\senddata.cpp.o
    Compiling .pio\build\usb\src\sensor.cpp.o
    Compiling .pio\build\usb\src\spislave.cpp.o
    Compiling .pio\build\usb\src\timekeeper.cpp.o
    Compiling .pio\build\usb\src\timesync.cpp.o
    Linking .pio\build\usb\firmware_ttgov21new_v3.4.4.elf
    Retrieving maximum program size .pio\build\usb\firmware_ttgov21new_v3.4.4.elf
    Checking size .pio\build\usb\firmware_ttgov21new_v3.4.4.elf
    Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
    RAM: [== ] 18.0% (used 58896 bytes from 327680 bytes)
    Flash: [======= ] 66.2% (used 1300673 bytes from 1966080 bytes)
    Building .pio\build\usb\firmware_ttgov21new_v3.4.4.bin
    esptool.py v4.2.1
    Creating esp32 image...
    Merged 25 ELF sections
    Successfully created esp32 image.
    Configuring upload protocol...
    AVAILABLE: cmsis-dap, esp-bridge, esp-prog, espota, esptool, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa
    CURRENT: upload_protocol = esptool
    Looking for upload port...
    Auto-detected: COM16
    Uploading .pio\build\usb\firmware_ttgov21new_v3.4.4.bin
    esptool.py v4.2.1
    Serial port COM16
    Connecting......
    Chip is ESP32-PICO-D4 (revision 1)
    Features: WiFi, BT, Dual Core, 240MHz, Embedded Flash, VRef calibration in efuse, Coding Scheme None
    Crystal is 40MHz
    MAC: 4c:75:25:d6:e3:f4
    Uploading stub...
    Running stub...
    Stub running...
    Changing baud rate to 921600
    Changed.
    Configuring flash size...
    Flash will be erased from 0x00001000 to 0x00005fff...
    Flash will be erased from 0x00008000 to 0x00008fff...
    Flash will be erased from 0x0000e000 to 0x0000ffff...
    Flash will be erased from 0x00010000 to 0x0014ffff...
    Compressed 17440 bytes to 12127...
    Writing at 0x00001000... (100 %)
    Wrote 17440 bytes (12127 compressed) at 0x00001000 in 0.3 seconds (effective 466.6 kbit/s)...
    Hash of data verified.
    Compressed 3072 bytes to 129...
    Writing at 0x00008000... (100 %)
    Wrote 3072 bytes (129 compressed) at 0x00008000 in 0.0 seconds (effective 744.8 kbit/s)...
    Hash of data verified.
    Compressed 8192 bytes to 47...
    Writing at 0x0000e000... (100 %)
    Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 1093.2 kbit/s)...
    Hash of data verified.
    Compressed 1306960 bytes to 834821...
    Writing at 0x00010000... (1 %)
    Writing at 0x0001b87e... (3 %)
    Writing at 0x000271b0... (5 %)
    Writing at 0x00031e46... (7 %)
    Writing at 0x0003af4e... (9 %)
    Writing at 0x0004d4d1... (11 %)
    Writing at 0x00052f11... (13 %)
    Writing at 0x0005888c... (15 %)
    Writing at 0x0005d9e3... (17 %)
    Writing at 0x00062dd2... (19 %)
    Writing at 0x000688a7... (21 %)
    Writing at 0x0006e139... (23 %)
    Writing at 0x00073e20... (25 %)
    Writing at 0x0007989a... (27 %)
    Writing at 0x0007f3d3... (29 %)
    Writing at 0x00084992... (31 %)
    Writing at 0x00089d38... (33 %)
    Writing at 0x0008efcd... (35 %)
    Writing at 0x00094681... (37 %)
    Writing at 0x00099730... (39 %)
    Writing at 0x0009ea00... (41 %)
    Writing at 0x000a3ceb... (43 %)
    Writing at 0x000a9232... (45 %)
    Writing at 0x000ae973... (47 %)
    Writing at 0x000b48d2... (49 %)
    Writing at 0x000bab9b... (50 %)
    Writing at 0x000c0917... (52 %)
    Writing at 0x000c5b8e... (54 %)
    Writing at 0x000cad14... (56 %)
    Writing at 0x000d0049... (58 %)
    Writing at 0x000d5c98... (60 %)
    Writing at 0x000db227... (62 %)
    Writing at 0x000e07b7... (64 %)
    Writing at 0x000e5d2b... (66 %)
    Writing at 0x000eaeae... (68 %)
    Writing at 0x000f02a3... (70 %)
    Writing at 0x000f5512... (72 %)
    Writing at 0x000fabc8... (74 %)
    Writing at 0x001003ef... (76 %)
    Writing at 0x00106085... (78 %)
    Writing at 0x0010bb58... (80 %)
    Writing at 0x0011140d... (82 %)
    Writing at 0x0011702d... (84 %)
    Writing at 0x0011fd5e... (86 %)
    Writing at 0x001283b6... (88 %)
    Writing at 0x0012dfd9... (90 %)
    Writing at 0x00133671... (92 %)
    Writing at 0x00138d37... (94 %)
    Writing at 0x0013eb85... (96 %)
    Writing at 0x00143fc1... (98 %)
    Writing at 0x001496ac... (100 %)
    Wrote 1306960 bytes (834821 compressed) at 0x00010000 in 11.4 seconds (effective 917.8 kbit/s)...
    Hash of data verified.

Leaving...
Hard resetting via RTS pin...
===================================================================================== [SUCCESS] Took 73.41 seconds =====================================================================================

Environment Status Duration


usb SUCCESS 00:01:13.414
====================================================================================== 1 succeeded in 00:01:13.414 ====================================================================================== * Terminal will be reused by tasks, press any key to close it.

The toolchain seems current, i checked the compiler log.

I cannot reproduce the issue.
@t-huyeng @spmrider could you, please, test the current code and look if you can reproduce this issue? Thanks.

@Qmick01 please look on the display, while running v3.4.4 - what is shown in line with "RLIM:" ?

I can not reproduce this issue. Looks like everything is working fine.

I also cloned the repository completed new and used a new board (Heltec).
See my configs here.

My steps as descript in the documentations after cloning:

➜  ESP32-Paxcounter  (master) ✔ cp platformio_orig.ini platformio.ini

➜  ESP32-Paxcounter  (master) ✔ cp src/paxcounter_orig.conf src/paxcounter.conf

➜  ESP32-Paxcounter  (master) ✔ cp src/loraconf_sample.h src/loraconf.h

➜  ESP32-Paxcounter  (master) ✔ cp src/ota_sample.conf src/ota.conf

I only updated paxcounter.conf to enable BLECOUNTER see here and set my board to heltecv21.h in the platformio.ini see here .

I also updated the lorawan keys loraconf.h.

Running Heltec board:
image

Grafana Dashboard:
image

So this morning the 3.4.4 board is showing a ble count of 1 but two units on an older build are running next to it and they both show a ble count of 5.

The 3.4.4 screen shots are below. It shows RSSI 37 and RLIM off.

I don't set the RSSI in my config file so that is whatever it is defaulted to. See image of the conf file.

If that's the actual RSSI then it could be a problem. What should I set it to in the conf file so it defaults to no limit?

Perhaps this is the issue.

20221202_093051
Screenshot_20221202_092724_Gallery
Screenshot_20221202_093251_Gallery

@Qmick01 I think your config file picture is missing.
You are also sharing some private pictures with your pictures currently.

It is also better to share your config file as formatted code as I described #921 (comment) here or as a gist.

I have added the photo of the Paxcounter.conf section showing the RSSILIMIT value at zero.

Any thoughts?

Have you read the comment behind #define RSSILIMIT 0 ?

It states this: // 0...-128, set to 0 if you do not want to filter signals
So if you have it set to 0 (default) no signal filtering will happen.

It would also be much easier to help you if you could share config files as formatted code as I described #921 (comment) here or as a gist.

I also tried my board with #define WIFICOUNTER 0 and it works fine.
I would suggest you check again if your files are like this https://gist.github.com/t-huyeng/42e08a22ca2a7f71ea00f681dded2d9f

How old is the version you are running on board which are showing more BLE-Counts? Which version of libpax is running there?

As far as I know there has been changes to the libpax for better filtering (maybe this here dbSuS/libpax@277a5d2).

As far as I know there has been changes to the libpax for better filtering (maybe this here >dbSuS/libpax@277a5d2).

Exactly. Thus, count values generated with older versions are not comparable with newer ones.

Yes. No RSSILIMIT value means to filtering on RSSI. That's what I would expect.

The other boards are running 3.1.2 version of the code. Is the new LIBPAX subsequent to that version?

This change is now already ~1 year in place. Reasons were

  1. improving privacy
  2. studies showed that using randomized MACs gives better results on number of pax, because headless devices like cars, scooters etc. are better filtered this way

Remember that libpax lib is an approach to estimate crowds and/or relative changes over time. Not single persons, not absolute values.