Merge branch 'master' of https://github.com/cyberman54/ESP32-Paxcounter
This commit is contained in:
commit
b443c1a359
16
README.md
16
README.md
@ -90,16 +90,16 @@ Note: If you use this software you do this at your own risk. That means that you
|
||||
|
||||
Paxcounter generates identifiers for sniffed MAC adresses and collects them temporary in the device's RAM for a configurable scan cycle time (default 240 seconds). After each scan cycle the collected identifiers are cleared. Identifiers are generated by salting and hashing MAC adresses. The random salt value changes after each scan cycle. Identifiers and MAC adresses are never transferred to the LoRaWAN network. No persistent storing of MAC adresses, identifiers or timestamps and no other kind of analytics than counting are implemented in this code. Wireless networks are not touched by this code, but MAC adresses from wireless devices as well within as not within wireless networks, regardless if encrypted or unencrypted, are sniffed and processed by this code. If the bluetooth option in the code is enabled, bluetooth MACs are scanned and processed by the included BLE stack, then hashed and counted by this code.
|
||||
|
||||
# LED
|
||||
# LED blink pattern
|
||||
|
||||
Legend for mono color on board LED:
|
||||
**Mono color LED:**
|
||||
|
||||
- Single Flash (50ms): seen a new Wifi or BLE device
|
||||
- Quick blink (20ms on each 1/5 second): joining LoRaWAN network in progress or pending
|
||||
- Small blink (10ms on each 1/2 second): LoRaWAN data transmit in progress or pending
|
||||
- Long blink (200ms on each 2 seconds): LoRaWAN stack error
|
||||
|
||||
Legend for RGB LED (LoPy/LoPy4/FiPy/Lolin32 only):
|
||||
**RGB LED:**
|
||||
|
||||
- Green each blink: seen a new Wifi device
|
||||
- Magenta each blink: seen a new BLE device
|
||||
@ -107,9 +107,9 @@ Legend for RGB LED (LoPy/LoPy4/FiPy/Lolin32 only):
|
||||
- Blue blink: LoRaWAN data transmit in progress or pending
|
||||
- Red long blink: LoRaWAN stack error
|
||||
|
||||
# Payload
|
||||
# Payload format
|
||||
|
||||
You can select between different payload formats in [paxcounter.conf](src/paxcounter.conf#L40):
|
||||
You can select different payload formats in [paxcounter.conf](src/paxcounter.conf#L40):
|
||||
|
||||
- ***Plain*** uses big endian format and generates json fields, e.g. useful for TTN console
|
||||
|
||||
@ -117,11 +117,11 @@ You can select between different payload formats in [paxcounter.conf](src/paxcou
|
||||
|
||||
- [***CayenneLPP***](https://mydevices.com/cayenne/docs/lora/#lora-cayenne-low-power-payload-reference-implementation) generates MyDevices Cayenne readable fields
|
||||
|
||||
If you're using [TheThingsNetwork](https://www.thethingsnetwork.org/) (TTN) you may want to use a payload converter. Go to TTN Console - Application - Payload Formats and paste the code example below in tabs Decoder and Converter. Make sure that your application parses the fields `pax`, `ble` and `wifi`.
|
||||
If you're using [TheThingsNetwork](https://www.thethingsnetwork.org/) (TTN) you may want to use a payload converter. Go to TTN Console - Application - Payload Formats and paste the code example below in tabs Decoder and Converter. This way your MQTT application can parse the fields `pax`, `ble` and `wifi`.
|
||||
|
||||
To map a GPS capable paxcounter device and at the same time contribute to TTN coverage mapping, you simply activate the [TTNmapper integration](https://www.thethingsnetwork.org/docs/applications/ttnmapper/) in TTN Console. Paxcounter generates ttnmapper compatible data fields.
|
||||
To track a paxcounter device with on board GPS and at the same time contribute to TTN coverage mapping, you simply activate the [TTNmapper integration](https://www.thethingsnetwork.org/docs/applications/ttnmapper/) in TTN Console. The formats *plain* and *packed* generate the fields `latitude`, `longitude` and `hdop` required by ttnmapper.
|
||||
|
||||
Hereafter described is the default *Plain* format.
|
||||
Hereafter described is the default *plain* format.
|
||||
|
||||
**LoRaWAN Port #1:**
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user