Skip to content

Commit

Permalink
place back the vendor and one device only
Browse files Browse the repository at this point in the history
  • Loading branch information
FranciscoLozCoding committed Aug 31, 2024
1 parent e3981d1 commit 92a2844
Show file tree
Hide file tree
Showing 12 changed files with 1,347 additions and 0 deletions.
137 changes: 137 additions & 0 deletions vendor/opensource/esp32-paxcounter copy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
name: ESP32-Paxcounter
description: The ESP32-Paxcounter has sensors for battery, GPS, altitude, temperature, humidity, barometer, pm2.5, and pm10. It is an ESP32 MCU-based device for metering passenger flows in real-time. It counts how many mobile devices are around by scanning WiFi and Bluetooth signals in the air and provides an estimation of how many people are around. The captured data is transmitted over a public or private LoRaWAN® radio network.

# Hardware versions (optional, use when you have revisions)
#hardwareVersions:
# - version: '1.0'
# numeric: 1

# Firmware versions (at least one is mandatory)
# LoRaWAN Device Profiles per region
# Supported regions are EU863-870, US902-928, AU915-928, AS923, CN779-787, EU433, CN470-510, KR920-923, IN865-867, RU864-870
firmwareVersions:
- version: '2.4.0'
numeric: 240
profiles:
EU863-870:
id: esp32-paxcounter-profile-eu868
#lorawanCertified: true
codec: esp32-paxcounter-codec
US902-928:
id: esp32-paxcounter-profile-us915
#lorawanCertified: true
codec: esp32-paxcounter-codec

- version: '3.0.0'
numeric: 300
profiles:
EU863-870:
id: esp32-paxcounter-profile-eu868
#lorawanCertified: true
codec: esp32-paxcounter-codec
US902-928:
id: esp32-paxcounter-profile-us915
#lorawanCertified: true
codec: esp32-paxcounter-codec

# Sensors that this device features (optional)
# 4-20 ma, accelerometer, altitude, analog input, auxiliary, barometer, battery, button, bvoc, co, co2, conductivity,
# current, digital input, dissolved oxygen, distance, dust, energy, gps, gyroscope, h2s, humidity, iaq, level, light,
# lightning, link, magnetometer, moisture, motion, no, no2, o3, particulate matter, ph, pir, pm2.5, pm10, potentiometer,
# power, precipitation, pressure, proximity, pulse count, pulse frequency, radar, rainfall, rssi, smart valve, snr, so2,
# solar radiation, sound, strain, surface temperature, temperature, tilt, time, tvoc, uv, vapor pressure, velocity,
# vibration, voltage, water potential, water, weight, wifi ssid, wind direction, wind speed.
sensors:
- battery
# - ble
# - wifi
# - pax
- gps
- altitude
# - latitude
# - longitude
# - hdop
# - sats
- temperature
- humidity
- barometer
- pm2.5
- pm10

# Additional radios that this device has (optional)
# Valid values are: ble, nfc, wifi, cellular.
additionalRadios:
- ble
- wifi

# Dimensions in mm (optional)
# Use width, height, length and/or diameter
#dimensions:
# width: 22.5
# length: 119
# height: 101

# Weight in grams (optional)
#weight: 160

## Operating conditions (optional)
#operatingConditions:
# Temperature (Celsius)
# temperature:
# min: -30
# max: 60
# Relative humidity (fraction of 1)
# relativeHumidity:
# min: 0
# max: 0.9

# IP rating (optional)
#ipCode: IP20

# Key provisioning (optional)
# Valid values are: custom (user can configure keys), join server and manifest.
keyProvisioning:
- custom
- join server

# Key security (optional)
# Valid values are: none, read protected and secure element.
keySecurity: none

# Product and data sheet URLs (optional)
productURL: https://github.com/cyberman54/ESP32-Paxcounter
dataSheetURL: https://github.com/cyberman54/ESP32-Paxcounter
#resellerURLs:
# - name: 'Reseller 1'
# region:
# - European Union
# url: https://example.org/reseller1
# - name: 'Reseller 2'
# region:
# - United States
# - Canada
# url: https://example.org/reseller2

# Photos
photos:
main: paxcounter.png
# other:
# - Paxcounter-title.jpg
# Youtube or Vimeo Video (optional)
###video: https://www.youtube.com/watch?v=JHzxcD2oEn8

# Regulatory compliances (optional)
#compliances:
# safety:
# - body: IEC
# norm: EN
# standard: 62368-1
# radioEquipment:
# - body: ETSI
# norm: EN
# standard: 301 489-1
# version: 2.2.0
# - body: ETSI
# norm: EN
# standard: 301 489-3
# version: 2.1.0
143 changes: 143 additions & 0 deletions vendor/opensource/esp32-paxcounter-codec copy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
# Uplink decoder decodes binary data uplink into a JSON object (optional)
# For documentation on writing encoders and decoders, see: https://thethingsstack.io/integrations/payload-formatters/javascript/
uplinkDecoder:
fileName: esp32-paxcounter-packed.js
examples:
- description: Paxcount data
input:
fPort: 1
bytes: [0x07, 0x00, 0x03, 0x00]
output:
data:
bytes: [0x07, 0x00, 0x03, 0x00]
port: 1
wifi: 7
ble: 3
pax: 10
errors: []
warnings: []
- description: Device status query result
input:
fPort: 2
bytes: [0x2F, 0x01, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x4B, 0x03, 0x00, 0x2D, 0xC0, 0x4B, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]
output:
data:
bytes: [0x2F, 0x01, 0x00, 0x00, 0x00, 0x00, 0xC0, 0x4B, 0x03, 0x00, 0x2D, 0xC0, 0x4B, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]
port: 2
voltage: 303
uptime: 216000
cputemp: 45
memory: 216000
reset0: 0
restarts: 0
errors: []
warnings: []
- description: Device config data
input:
fPort: 3
bytes: [0x09, 0x0F, 0x00, 0x00, 0x78, 0x32, 0x0A, 0x1E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]
output:
data:
bytes: [0x09, 0x0F, 0x00, 0x00, 0x78, 0x32, 0x0A, 0x1E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]
port: 3
loradr: 9
txpower: 15
rssilimit: 0
sendcycle: 120
wifichancycle: 50
blescantime: 10
rgblum: 30
flags:
adr: 0
antenna: 0
blescan: 0
countermode: 0
reserved: 0
screen: 0
screensaver: 0
payloadmask:
battery: 0
bme: 0
counter: 0
gps: 0
reserved: 0
sensor1: 0
sensor2: 0
sensor3: 0
version: ''
errors: []
warnings: []
- description: GPS data
input:
fPort: 4
bytes: [0x65, 0xCA, 0x06, 0x03, 0x05, 0x19, 0x6F, 0x00, 0x05, 0xC6, 0x00, 0x42, 0x00]
output:
data:
bytes: [0x65, 0xCA, 0x06, 0x03, 0x05, 0x19, 0x6F, 0x00, 0x05, 0xC6, 0x00, 0x42, 0x00]
port: 4
latitude: 50.776677
longitude: 7.280901
sats: 5
hdop: 1.98
altitude: 66
errors: []
warnings: []
- description: Button data
input:
fPort: 5
bytes: [0x01]
output:
data:
bytes: [0x01]
port: 5
button: 1
errors: []
warnings: []
- description: Environmental sensor data
input:
fPort: 7
bytes: [0x08, 0x34, 0x10, 0x27, 0x40, 0x1F, 0x10, 0x27]
output:
data:
bytes: [0x08, 0x34, 0x10, 0x27, 0x40, 0x1F, 0x10, 0x27]
port: 7
temperature: 21.00
pressure: 1000.0
humidity: 80.00
air: 100.00
errors: []
warnings: []
- description: Battery voltage data
input:
fPort: 8
bytes: [0x2F, 0x01]
output:
data:
bytes: [0x2F, 0x01]
port: 8
voltage: 303
errors: []
warnings: []
- description: Time/Date
input:
fPort: 9
bytes: [0x90, 0x86, 0xC8, 0x60, 0x00]
output:
data:
bytes: [0x90, 0x86, 0xC8, 0x60, 0x00]
port: 9
time: 1623754384
timestatus: 0
errors: []
warnings: []
- description: User sensor data
input:
fPort: 10
bytes: [0x00, 0x00]
output:
data:
bytes: [0x00, 0x00]
port: 10
ens: 0
errors: []
warnings: []
Loading

0 comments on commit 92a2844

Please sign in to comment.