Identium BLE Gateway Test Kit 1.0  (for the ID-BGW-02 BLE gateway)
=================================================================

Sample reports, sample commands and example receivers for building your own server for the
ID-BGW-02. The full description is in the Identium BLE Gateway Integration Guide
(www.identiumone.com/resourcehub/).

payloads/    Six messages exactly as the gateway sends them in JSON mode:
             01 scan report, Type 1 (iBeacon, Eddystone TLM, Eddystone UID, another device)
             02 scan report, Type 2 (with scan response and device name)
             03 scan report, Type 3 (address and RSSI only)
             04 scan report, Type 4 (work-card format: motion, button, battery)
             05 gateway heartbeat
             06 reply to a command
commands/    Commands your server can send to the gateway (MQTT or TCP). Replace gw_addr
             with your gateway's Bluetooth address (12 hex digits, no colons).
receivers/   The same receiver in Python 3.8+ and Node.js 18+, for UDP, TCP and MQTT.
             Python:  cd receivers/python ; pip install -r requirements.txt   (MQTT only)
                      python receiver.py udp --port 7628
             Node.js: cd receivers/node ; npm install                        (MQTT only)
                      node receiver.js udp --port 7628
             Options: --port N  --host BROKER  --pub GwData  --sub SrvData  --user U  --password P
                      --tls --cafile CA.pem  --keepalive (sys_srv_hb every 30 s)  --command FILE
             Smallest versions: python/minimal_mqtt.py (MQTT) and node/minimal-udp.js (UDP).
             beacon.py / beacon.js decode iBeacon, Eddystone UID / URL / TLM and device names.
tools/       gateway-sim.py plays the sample payloads the way the gateway sends them:
             python gateway-sim.py udp 127.0.0.1 7628 ../payloads/*.json
             python gateway-sim.py tcp 127.0.0.1 7628 ../payloads/*.json --listen 5
             python gateway-sim.py mqtt localhost 1883 ../payloads/*.json --listen 35

Every receiver prints the same lines for the same payloads, for example:
[D4:F9:8D:1A:2B:3C] scan_report adv_only packet 1/1, 4 device(s)
  F0:C8:A0:00:01:01  rssi -63  iBeacon fda50693-a4e2-4fb1-afcf-c6eb07647825 major 10001 minor 101 power -59
  F0:C8:A0:00:01:02  rssi -71  Eddystone TLM battery 3012 mV temp 27.5 C

Identium Tech Solutions Pvt. Ltd. · info@identium.in · www.identiumone.com · www.indiarfidstore.com
