ESP RainMaker not initialised error on RMakerSwitch example

hamishcunningham
Posts: 11
Joined: Mon Jun 05, 2017 7:50 pm

ESP RainMaker not initialised error on RMakerSwitch example

Postby hamishcunningham » Tue Dec 14, 2021 10:09 pm

Hi!

I'm getting the errors below when burning the RMakerSwitch.ino example to an ESP32 (Adafruit Feather Huzzah32, via the Arduino IDE 1.8.16 with arduino-esp32 core 2.0.1 on Ubuntu 21.04):

Code: Select all

E (48) esp_rmaker_storage: NVS Flash init failed
E (49) esp_rmaker_core: Failed to initialise storage
E (49) esp_rmaker_node: Node or Device/Service handle cannot be NULL.
E (53) esp_rmaker_core: ESP RainMaker not initialised
E (57) esp_rmaker_node: Node or Device/Service handle cannot be NULL.
E (64) esp_rmaker_ota: Failed to enable OTA
E (68) esp_rmaker_core: ESP RainMaker not initialised
E (72) esp_rmaker_node: Node or Device/Service handle cannot be NULL.
E (80) esp_rmaker_core: ESP RainMaker not initialised
E (83) esp_rmaker_node: Node or Device/Service handle cannot be NULL.
E (89) esp_rmaker_schedule: Failed to add service Service
E (94) esp_rmaker_core: ESP RainMaker not initialised
This is with the "no OTA" partition table because the default table overran text section space.

Any ideas?

Thanks!
Hamish

hamishcunningham
Posts: 11
Joined: Mon Jun 05, 2017 7:50 pm

Re: ESP RainMaker not initialised error on RMakerSwitch example

Postby hamishcunningham » Wed Dec 15, 2021 9:22 am

I got this to work by erasing flash before burning the RMakerSwitch example :)

Now I get the QR code, but when submitting the wifi psk via the Android app I get "failed to associate device".

Any ideas?

Tnx
H

ESP_Piyush
Posts: 307
Joined: Wed Feb 20, 2019 7:02 am

Re: ESP RainMaker not initialised error on RMakerSwitch example

Postby ESP_Piyush » Wed Dec 15, 2021 5:44 pm

Hello,

If you indeed see the Wi-Fi scan list and the provisioning fails right after you provide the network password, it could mean that RainMaker hasn't gotten initialised correctly. Did you even see any "Claiming in progress" screen before the Wi-Fi scan list appeared? If not, can you check if any errors were shown in the serial terminal?

Note that using the RainMaker specific partition table is mandatory, especially for the "fctry" partition which gets used for storing the MQTT credentials.

hamishcunningham
Posts: 11
Joined: Mon Jun 05, 2017 7:50 pm

Re: ESP RainMaker not initialised error on RMakerSwitch example

Postby hamishcunningham » Wed Dec 15, 2021 10:15 pm

Thanks, I guess I have the wrong partition table. (I didn't see any "claiming in progress" screen.)

The Rainmaker partition table doesn't show up in my Arduino IDE>Tools menu (running core version 2.0.1); how should I access it?

Tnx!

pragnesh
Posts: 1
Joined: Fri Dec 23, 2022 12:07 pm

Re: ESP RainMaker not initialised error on RMakerSwitch example

Postby pragnesh » Fri Dec 23, 2022 12:40 pm

Hello,
I've been working on an ESP32-S3 device and was trying to interface the device with rainmaker. Everything went well but after connecting the device to the app, MQTT is not connecting due to this my Node confirming association is getting failed. As you mentioned earlier that it is "Claiming in Progress " and should come prior to the Wifi it's happening but, not able to connect.

sanketwadekar
Posts: 32
Joined: Tue Jul 26, 2022 10:08 am

Re: ESP RainMaker not initialised error on RMakerSwitch example

Postby sanketwadekar » Wed Dec 28, 2022 3:16 am

Can you attach the logs by setting "Core Debug Level" to "Debug" ?

Who is online

Users browsing this forum: No registered users and 58 guests