Faiing CallHome
Hi forumsters! 😁 (that should be Failing in the title!)
UPDATE 15th DEC 2021:
After much trying and retrying with
- multiple boards of the same type and different - 3x ESP (ESP8266-1M), 2 x ESP32-CAM and 2 x ESP32-Devkit
- Different software versions IAS 2.1.0-RC5.1 ending up on 2.0.2
- Different board software versions ending up on ESP8266 at 2.4.2
- Different Partition tables
- Different IDE - Arduino and PlarformIO - I prefer the latter but couldn't get it to compile in all circumstances
I am left with a number of issues:
- The main one is where I started this thread - 'Failing to Call Home'
- Registering device OK through IASLoader
- Upload a sketch to MyApps OK -
- Board does initial Call Home and downloads MyApp from the URL https://iotappstory.com/ota/updates
- BUT it loses the WiFi credentials AND changes the Call Home URL to https://iotappstory.com/ota/esp32-v1.php
- ESP8266-1M is too small even for the IASBlink OTA - Max user partition is 470K - I will not be able to OTA these - I'll need to invest in bigger devices if I need the OTA ability. No Problem
- The sign-in to the configuration app is very hit and miss - only about 1 in 3 attempts get through - again I can live with this now that I kinow I have to be persistent.
There area few other things that I am looking into, including getting the correct libraries in place - so these could all be issues of my making!
It seems to be a great solution and I thank Andreas and Onno who are allowing me to get very complex solutions up and running.
The Project
The end point of this is a distributed campervan security system with multiple sensors and cellular comms/control back to me. Every part is acting as a sentry on the other parts, so the ability to disarm the alarm system unnoticed should be limited!
History and logs
I am to get working with IOTAppStory but have run into a problem which has me baffled 😕
I am able to use IASLoader to register new devices with my project, go through the config and switch to normal. I can see the device I am testing connected through my WiFi router.
When the device tries to call home it fails to get a good response from https://iotappstory.com/ota/esp32-v1.php only a 404
However, the very first device I tried (ESP8266-1M) did work and successfully called home. The OTA failed because the file was too big. I made the mistake of leaving the device on whilst I looked into the code, forgot it and after a few hours of failing I had used my Data Download limit for the month! Stupid Me! 🤡
Onno was very kind and reset my account 👍 but now I get the response highlighted below.
Obviously there is nothing wrong with the IOTAppStory server. Can anyone identify where it is failing please?
*-------------------------------------------------------------------------*
Start INITLoader v1.2.0
*-------------------------------------------------------------------------*
Mode select button: GPIO0
Boardname: initloader
Update on boot: 0
*-------------------------------------------------------------------------*
bootTimes since last update: 8
boardMode: C
*-------------------------------------------------------------------------*
Connecting to WiFi AP
WiFi connected
Device MAC: 94:B9:7E:D9:05:6C
Device IP Address: 10.1.1.211
MDNS responder started: http://initloader.local
To use mDNS Install host software:
- For Linux, install Avahi (http://avahi.org/)
- For Windows, install Bonjour (https://commaster.net/content/how-resolve-multicast-dns-windows)
- For Mac OSX and iOS support is built in through Bonjour already
*-------------------------------------------------------------------------*
C O N F I G U R A T I O N M O D E
STA mode. Open 10.1.1.211
Exit config
ets Jun 8 2016 00:22:57
rst:0xc (SW_CPU_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:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1216
ho 0 tail 12 room 4
load:0x40078000,len:10944
load:0x40080400,len:6388
entry 0x400806b4
*-------------------------------------------------------------------------*
Start INITLoader v1.2.0
*-------------------------------------------------------------------------*
Mode select button: GPIO0
Boardname: initloader
Update on boot: 0
*-------------------------------------------------------------------------*
bootTimes since last update: 9
boardMode: N
*-------------------------------------------------------------------------*
Connecting to WiFi AP
WiFi connected
Device MAC: 94:B9:7E:D9:05:6C
Device IP Address: 10.1.1.211
MDNS responder started: http://initloader.local
To use mDNS Install host software:
- For Linux, install Avahi (http://avahi.org/)
- For Windows, install Bonjour (https://commaster.net/content/how-resolve-multicast-dns-windows)
- For Mac OSX and iOS support is built in through Bonjour already
*-------------------------------------------------------------------------*
Calling Home
Checking for App(Sketch) updates from: https://iotappstory.com/ota/esp32-v1.php
Failed. Lost Wifi, Server down OR HTTPS problems
Checking for SPIFFS updates from: https://iotappstory.com/ota/esp32-v1.php
Failed. Lost Wifi, Server down OR HTTPS problems
Returning from IOTAppStory.com