m5stack / AirQUserDemo

10 stars 5 forks source link

Connecting / uploading to ezdata fails with the firmware which is delivered with the device from factory #10

Open basisbit opened 1 month ago

basisbit commented 1 month ago

Just received an M5 AirQ Monitor, connected it to a USB battery pack, did the initial config, and I am not getting any visible data on the ezdata2 website. After that, I tried reset and then setting up once more, still same result. So I install Arduino IDE and all the board + libraries software + drivers in order to get the debug output.

It seems like Wifi connect works, but the http connect times out. Is this maybe a known issue? The wifi uses WPA2 AES and another ESP32 for weather station can use the same wifi just fine.

The log:

[  1784][I][AppWeb.cpp:57] appWebServer(): HTTP server started
[  1784][I][AirQUserDemo.ino:246] setup(): I2C init
[  1784][I][esp32-hal-i2c.c:75] i2cInit(): Initialising I2C Master: sda=11 scl=12 freq=100000
[  1792][I][AirQUserDemo.ino:251] setup(): RTC(BM8563) init
[  1798][I][AirQUserDemo.ino:1191] getDeviceWakeupType(): USB wake-up
[  1805][I][AirQUserDemo.ino:257] setup(): NTP init
[  1807][I][AirQUserDemo.ino:266] setup(): SCD40 sensor init
[  1814][I][AirQUserDemo.ino:1014] onWiFiGotIP(): WiFi connected
[  1818][I][AirQUserDemo.ino:1015] onWiFiGotIP(): IP address: 192.168.2.117
[  2314][I][AirQUserDemo.ino:281] setup(): Waiting for first measurement... (5 sec)
[  2315][I][AirQUserDemo.ino:284] setup(): SEN55 sensor init
[ 13502][I][WiFiClient.cpp:253] connect(): select returned due to timeout 5000 ms for fd 49
[ 13503][W][HTTPClient.cpp:1469] returnError(): error(-1): connection refused
[ 13506][W][AirQUserDemo.ino:1166] uploadSensorRawData(): error
[ 20127][I][WiFiClient.cpp:253] connect(): select returned due to timeout 5000 ms for fd 49
[ 20128][W][HTTPClient.cpp:1469] returnError(): error(-1): connection refused
[ 20131][W][AirQUserDemo.ino:1166] uploadSensorRawData(): error
[ 25565][I][WiFiClient.cpp:253] connect(): select returned due to timeout 5000 ms for fd 49
[ 25566][W][HTTPClient.cpp:1469] returnError(): error(-1): connection refused
[ 25569][W][AirQUserDemo.ino:809] ezdataServiceTask(): registeredDevice error
[ 25576][I][AirQUserDemo.ino:810] ezdataServiceTask(): Login ...
[ 30583][I][WiFiClient.cpp:253] connect(): select returned due to timeout 5000 ms for fd 49
[ 30584][W][HTTPClient.cpp:1469] returnError(): error(-1): connection refused

Any suggestions what I could look into next to get this issue resolved?

tushargkwd commented 1 month ago

Confirm that I too have the same issue. Device received today, but no data seen on EZdata website. I get tye status as 'NG' meaning unsuccessful upload.

lbuque commented 1 month ago

@basisbit @tushargkwd

Please update the firmware.

image