Back to Smartcitizen.me

ERROR sending mesg to ESP

i recently got the new SmartCitizen 2.1 Urban Sensor Board and Data Board. At first i got no problem connecting to the wifi and sending data to the plataform. But after a weekend off, the citizen stopped publishing, i went to the serial monitor and there i found the problem, the board can’t communicate to the ESP, here’s the output:

Urban board detected
ESP finished booting
Synced config with ESP!!
Connected to wifi!!
Asked new time sync to ESP…
RTC updated: 2019-11-12T16:39:36Z
Info sent!
ERROR sending mesg to ESP!!!
ERROR on Info publish!!
ERROR sending kit info to platform!!!


2019-11-12T16:39:52Z
Temperature: 24.34 C
Humidity: 65.75 %
Battery: 100 %
Light: 339 Lux
Noise dBA: 60.87 dBA
Barometric pressure: 95.00 kPa
VOC Gas CCS811: null ppb
eCO2 Gas CCS811: null ppm
PM 1.0: 7 ug/m3
PM 2.5: 10 ug/m3
PM 10.0: 10 ug/m3

(2019-11-12T16:39:52Z) Sent 9 readings to platform.
(2019-11-12T16:39:52Z) Sent 9 readings to platform.
ERROR sending mesg to ESP!!!
(2019-11-12T16:39:52Z) Sent 9 readings to platform.
ERROR sending mesg to ESP!!!
ERROR on MQTT publish
Will retry on next publish interval!!!
ESP off…

Specs:

Hardware Version: 2.1
SAM Hardware ID: 7AE0CCE850515157382E3120FF141D3E
SAM version: 0.9.6-5802732
SAM build date: 2019-10-16T18:25:44Z
ESP MAC address: CE:50:E3:18:FD:9B
ESP version: 0.9.2-5802732
ESP build date: 2019-10-16T18:26:24Z

Hello Alison,

Sorry to hear that your kit is having problems.
Do you changed something in the kit or in your Wi-Fi on the weekend off you mention?

To try to diagnose your problem can you please click the reset button and describe me the behavior of the Wi-Fi led when the kit is trying to connect?

Another thing to try is enabling the debug messages during the communication with the ESP, you can do that with the command:

debug -espcom

You will see a lot more info in the console, maybe we can find a clue of what’s happening!

Keep us posted!

Thanks for the reply, no changes were made in either the SCK or the WiFI over the weekend.

The SCK connects fine with the wifi, i can see it in the wifi administrator page. But for some reason it has problems in the handshake phase when configuring the SCK(the wifi LED blinks from time to time in sync with the status LED).

The output for debug -espcom is:

ESP on…
Receiving msg from ESP in 2 parts
{“mac”:“CE:50:E3:18:FD:9B”,“ver”:“0.9.2-5802732”,“bd”:“2019-10-16T18:26:24Z”}
ESP finished booting
Sending msg to ESP with 3 parts and 130 bytes
{“cs”:1,“ss”:“SSID”,“pa”:PASSWORD,“ts”:1,“to”:“jpfzxh”,“ver”:“0.9.6-53fba6b”,“bd”:“2019-08-27T16:58:01Z”,“ac”:6}
Sent part num 0
Sent part num 1
Sent part num 2
Synced config with ESP!!
Receiving msg from ESP in 1 parts
Connected to wifi!!
Sending msg to ESP with 1 parts and 1 bytes

Sent part num 0
Hello sent!
Sending msg to ESP with 1 parts and 1 bytes

ERROR sending mesg to ESP!!!
Sending msg to ESP with 1 parts and 1 bytes

ERROR sending mesg to ESP!!!
ERROR sending hello!!!
Restarting ESP…
ESP off…

i’m still here man, i really want to make this work…

Hi @alison.santos,

  1. Did you replaced the SSID and PASSWORD of your Wi-Fi for security or it looked actually as you post it?

{“cs”:1,“ss”:“SSID”,“pa”:PASSWORD,“ts”:1,“to”:“jpfzxh”,“ver”:“0.9.6-53fba6b”,“bd”:“2019-08-27T16:58:01Z”,“ac”:6}

  1. Could you register the sensor as on SD Card mode and then share us the url of the device in the platform when you finish?

Thanks you!

  1. the SSID and the PASSWORD are right, i changed it before posting in the forum for security reasons.

  2. https://smartcitizen.me/kits/10536 here is the URL, i uploaded some data it recorded also

I just added your device key (token) to the device you registered on SD card mode.

https://smartcitizen.me/kits/10536

That means if you press the button on your Kit till the led turns BLUE, your device should start publishing data to the platform via Wi-Fi, too.

Let me know if this works! It will help us know a little bit better what is going on

It worked! Thank you so much for the support.

Great it works!

Let us know if you have any more problems!