Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Firmware for noise sensor slave by i2c.
Auto detect flash sice. Board need to has > 4 Mb of flah memory.
tested with :
S2 4Mb
S3 8Mb
T-display 4Mb
C3 4Mb
Log example:
==>[INFO] Time for initial setup over. Booting..
-->[INFO] ESP32MAC : CC:BA:97:15:55:32
-->[INFO] Hostname : CanAirIO532
-->[INFO] Revision : r990
-->[INFO] Firmware : 0.7.0
-->[INFO] Flavor : ESP32S3
-->[INFO] Target : dev
-->[INFO] == Detecting Sensors ==
-->[INFO] Sensorslib version : 0.7.6
-->[INFO] config UART sensor : GENERIC
-->[SLIB] temperature unit : C
-->[SLIB] temperature offset : 0.00
-->[SLIB] altitude offset : 0.00
-->[SLIB] sea level pressure : 1013.25 hPa
-->[SLIB] only i2c sensors : false
-->[SLIB] sensor registered : SPS30 :D
-->[SLIB] sensor registered : NOISE :D
-->[SLIB] sensors count : 2 (SPS30,NOISE,)
-->[INFO] restored saved unit : PM2.5
-->[SLIB] sensors units count : 10 (PM1,PM2.5,PM4,PM10,Noise,NoiseAvg,NoisePeak,NoiseMin,NoiseAvgLegal,NoiseAvgLegalMax,)
-->[WDOG] watchdog check each : 120 seconds.
-->[WIFI] device network IP : 192.168.68.109
-->[WIFI] publish interval : 10 sec.
-->[FOTA] remote OTA update : not need update
-->[IFDB] influxdb.canair.io : connected!
-->[INFO] InfluxDb cloud : enabled
-->[INFO] WiFi current config : enabled
-->[INFO] CanAirIO station name : EZTESP32S355532
-->[BTLE] Bluetooth GATT : ready for config client!
-->[INFO] Wifi connected to : MiDeco
-->[INFO] sensors units count : 10
-->[INFO] show unit selected : PM2.5
-->[HEAP] sizeof sensors : 01176b
-->[HEAP] sizeof GUI : 00108b
-->[HEAP] free memory : 144076b
==>[INFO] Setup end. CLI enable. Press ENTER ===
CanAirIO:$ -->[SLIB] SPS30 read : done!
-->[SLIB] sensors values : PM1:4.0 PM2.5:4.0 PM4:5.0 PM10:5.0 Noise:33.0 NoiseAvg:32.0 NoisePeak:36.0 NoiseMin:32.0 NoiseAvgLegal:32.0 NoiseAvgLegalMax:32.0
-->[SLIB] sensors count : 2 (SPS30,NOISE,)
-->[SLIB] sensors units count : 10 (PM1,PM2.5,PM4,PM10,Noise,NoiseAvg,NoisePeak,NoiseMin,NoiseAvgLegal,NoiseAvgLegalMax,)
-->[WIFI] AP RSSI signal : -80 dBm
-->[HEAP] LOOP bytes used : 00000b/133Kb
-->[SLIB] SPS30 read : done!
-->[SLIB] sensors values : PM1:4.0 PM2.5:4.0 PM4:5.0 PM10:5.0 Noise:32.0 NoiseAvg:32.0 NoisePeak:36.0 NoiseMin:31.0 NoiseAvgLegal:32.0 NoiseAvgLegalMax:32.0
-->[SLIB] sensors count : 2 (SPS30,NOISE,)
-->[SLIB] sensors units count : 10 (PM1,PM2.5,PM4,PM10,Noise,NoiseAvg,NoisePeak,NoiseMin,NoiseAvgLegal,NoiseAvgLegalMax,)
-->[WIFI] AP RSSI signal : -79 dBm
-->[HEAP] LOOP bytes used : 00000b/133Kb
-->[BATT] avarage: 0.0000 slope : 0.000000
-->[BATT] is discharging : True
-->[SLIB] SPS30 read : done!
-->[SLIB] sensors values : PM1:4.0 PM2.5:4.0 PM4:5.0 PM10:5.0 Noise:34.0 NoiseAvg:32.0 NoisePeak:36.0 NoiseMin:31.0 NoiseAvgLegal:32.0 NoiseAvgLegalMax:32.0
-->[SLIB] sensors count : 2 (SPS30,NOISE,)
-->[SLIB] sensors units count : 10 (PM1,PM2.5,PM4,PM10,Noise,NoiseAvg,NoisePeak,NoiseMin,NoiseAvgLegal,NoiseAvgLegalMax,)
-->[WIFI] AP RSSI signal : -80 dBm
-->[HEAP] LOOP bytes used : 00000b/133Kb
-->[SLIB] SPS30 read : done!
-->[SLIB] sensors values : PM1:4.0 PM2.5:4.0 PM4:5.0 PM10:5.0 Noise:33.0 NoiseAvg:32.0 NoisePeak:42.0 NoiseMin:31.0 NoiseAvgLegal:32.0 NoiseAvgLegalMax:32.0
-->[SLIB] sensors count : 2 (SPS30,NOISE,)
-->[SLIB] sensors units count : 10 (PM1,PM2.5,PM4,PM10,Noise,NoiseAvg,NoisePeak,NoiseMin,NoiseAvgLegal,NoiseAvgLegalMax,)
-->[WIFI] AP RSSI signal : -80 dBm
-->[HEAP] LOOP bytes used : 00000b/133Kb
-->[BATT] avarage: 0.0000 slope : 0.000000
-->[BATT] is discharging : True