cyberman54 / ESP32-Paxcounter

Wifi & BLE driven passenger flow metering with cheap ESP32 boards
https://cyberman54.github.io/ESP32-Paxcounter/
Other
1.69k stars 397 forks source link

question: what about high numbers? #971

Closed AugustQu closed 1 year ago

AugustQu commented 1 year ago

I reactivated my Paxcounter and made it working again. In my first test it counted between 120 and 160 smartphones on a place.

Is this a limit? Ca it detect let's say >200 devices? Or maybe 300?

Or is it better to change the interval from 60 seconds to 120 seconds?

In paxcounter.conf I found SENDCYCLE with a value of 30. But changing this seems not to modify the behaviour.

AugustQ

cyberman54 commented 1 year ago

Sendcycle is stored in NVRAM of board. If you change the default on a new build, you must clear the NVRAM, otherwise the old value is restored during startup, and there is no effect. Or you change it during runtime by rcommand.

cyberman54 commented 1 year ago

Limit by memory is 65535 pax. But the real bottleneck is cpu speed and limited radio bandwith, because ESP32 has only 1 radio, while Wifi signalling happenes on 13 channels and BLE on 3 channels. Thus, we must rotate channels what means sniffing is time slot based. That means, we can miss devices.

cyberman54 commented 1 year ago

I close this, since it's not an issue. For further questions or discussion, please move to discussion tab.