CanAirIO is a citizen science initiative. We are developing a mobile application that is able to set a PM2.5 or CO2 sensors, and other related sensors, as a fixed station using WiFi or mobile station with an smartphone by using a Bluetooth connection.
Steps to reproduce the behavior:
board: DevKit firmare: rev822 sensors: SPS30 UART, SHT31 Battery powered: NO Settings: UART stime: 60 Debug: ON WiFi: configured and working.
Log
Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) flash read err, 1000 ets_main.c 371 ets Jun 8 2016 00:22:57
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:2 load:0x3fff0018,len:4 load:0x3fff001c,len:1044 load:0x40078000,len:10124 load:0x40080400,len:5828 entry 0x400806a8
== CanAirIO Setup ==
-->[CONF] debug is enable. -->[OGUI] display config ready. -->[INFO] ESP32MAC: 08:3A:F2:B9:29:CE -->[INFO] Revision: r822 -->[INFO] Firmware: 0.4.2 -->[INFO] Flavor : ESP32DEVKIT -->[INFO] Target : dev -->[INFO] Detecting sensors.. -->[INFO] PM sensor configured: 2 -->[SLIB] new sample time: 1 -->[SLIB] debug is enable. -->[SLIB] temperature offset: 0.00 -->[SLIB] altitude offset: 0.00 -->[SLIB] forced only i2c sensors: 0 -->[SLIB] UART detecting SPS30 PM sensor.. -->[SLIB] UART SPS30 starting sensor.. Sending: 0x7E 0x00 0xD1 0x00 0x2E 0x7E Received: 0x7E 0x00 0xD1 0x00 0x07 0x02 0x01 0x00 0x07 0x00 0x02 0x00 0x1B 0x7E length: 13
Sending: 0x7E 0x00 0xD0 0x01 0x03 0x2B 0x7E Received: 0x7E 0x00 0xD0 0x00 0x11 0x43 0x39 0x41 0x41 0x35 0x42 0x42 0x46 0x46 0x35 0x41 0x44 0x35 0x37 0x37 0x46 0x00 0x38 0x7E length: 23
-->[SLIB] SPS30 Serial number : C9AA5BBFF5AD577F Sending: 0x7E 0x00 0xD0 0x01 0x00 0x2E 0x7E Received: 0x7E 0x00 0xD0 0x00 0x09 0x30 0x30 0x30 0x38 0x30 0x30 0x30 0x30 0x00 0x9E 0x7E length: 15
-->[SLIB] SPS30 product name : 00080000 Sending: 0x7E 0x00 0xD1 0x00 0x2E 0x7E Received: 0x7E 0x00 0xD1 0x00 0x07 0x02 0x01 0x00 0x07 0x00 0x02 0x00 0x1B 0x7E length: 13
-->[SLIB] SPS30 firmware level: 2.1 -->[SLIB] SPS30 Hardware level: 7 -->[SLIB] SPS30 SHDLC protocol: 2.0 -->[SLIB] SPS30 Library level : 1.4 Sending: 0x7E 0x00 0xD3 0x00 0x2C 0x7E Received: 0x7E 0x00 0xD3 0x00 0x00 0x2C 0x7E length: 6
-->[SLIB] SPS30 Detected SPS30 via UART. Sending: 0x7E 0x00 0x00 0x02 0x01 0x03 0xF9 0x7E Received: 0x7E 0x00 0x00 0x00 0x00 0xFF 0x7E length: 6
-->[SLIB] SPS30 Measurement OK -->[SLIB] UART detected SPS30 sensor :) -->[SLIB] UART detected: SENSIRION -->[SLIB] trying to load I2C sensors.. -->[SLIB] GCJA5 starting PANASONIC GCJA5 sensor.. -->[SLIB] AM2320 starting AM2320 sensor.. -->[SLIB] I2C detected AM2320 sensor :) -->[SLIB] SHT31 starting SHT31 sensor.. -->[SLIB] I2C detected SHT31 sensor :) -->[SLIB] BME280 starting BME280 sensor.. -->[SLIB] BME680 starting BME680 sensor.. -->[SLIB] AHT10 starting AHT10 sensor.. -->[SLIB] SCD30 starting CO2 SCD30 sensor.. -->[INFO] PM/CO2 sensor detected: SENSIRION -->[WDOG] watchdog config to check each 120 seconds. -->[WIFI] connecting to VirginWiFi................... done. -->[WIFI] IP: 192.168.1.100 -->[WIFI] publish interval: 120 sec. -->[INFO] OTA on: CanAirIO9CE.local with passw: CanAirIO -->[FOTA] not need update -->[CONF] response: { "dname": "", "stime": 60, "stype": 2, "wenb": true, "ssid": "VirginWiFi", "ienb": true, "ifxdb": "canairio", "ifxip": "influxdb.canair.io", "ifxpt": 8086, "geo": "d2g633c", "denb": true, "i2conly": false, "toffset": 0, "altoffset": 0, "lskey": "", "wmac": 52265, "wsta": true, "vrev": 822, "vflv": "ESP32DEVKIT", "vtag": "dev", "vmac": "08:3A:F2:B9:29:CE" } -->[BTLE] GATT server ready. (Waiting for client) -->[INFO] InfluxDb API: 1 -->[IFDB] config: canairio@influxdb.canair.io:8086 -->[IFDB] connected to http://influxdb.canair.io:8086 -->[OGUI] starting task loop Sending: 0x7E 0x00 0x03 0x00 0xFC 0x7E Received: 0x7E 0x00 0x03 0x00 0x28 0x41 0x3F 0xFD 0x24 0x41 0x4B 0x05 0x57 0x41 0x4B 0x05 0x60 0x41 0x4B 0x05 0x4D 0x42 0xA2 0xE0 0xDD 0x42 0xBE 0x9A 0x65 0x42 0xBF 0x87 0x78 0x42 0xBF 0x9B 0x21 0x42 0xBF 0xA4 0xD3 0x3E 0xFD 0x7B 0x14 0xDD 0x7E length: 46
-->[SLIB] SPS30 read > done! -->[SLIB] able data from UART sensors: 1 -->[SLIB] SHT31 read > done! -->[SLIB] PM1:012 PM25:013 PM10:013 CO2:0000 CO2humi:0.000000% CO2temp:0.000000°C H:63.669998% T:16.469999°C -->[SLIB] new sample time: 60 -->[BTLE] device client is connected. Sending: 0x7E 0x00 0x00 0x02 0x01 0x03 0xF9 0x7E Received: 0x7E 0x00 0x00 0x43 0x00 0xBC 0x7E length: 6
43 : state error instruction failed -->[SLIB] able data from UART sensors: 0 -->[SLIB] SHT31 read > done! -->[SLIB] PM1:012 PM25:013 PM10:013 CO2:0000 CO2humi:0.000000% CO2temp:0.000000°C H:63.740002% T:16.170000°C -->[IFDB] write done. Sending: 0x7E 0x00 0x00 0x02 0x01 0x03 0xF9 0x7E Received: 0x7E 0x00 0x00 0x43 0x00 0xBC 0x7E length: 6
43 : state error instruction failed -->[SLIB] able data from UART sensors: 0 -->[SLIB] SHT31 read > done! -->[SLIB] PM1:012 PM25:013 PM10:013 CO2:0000 CO2humi:0.000000% CO2temp:0.000000°C H:64.110001% T:16.020000°C