RavenSystem / esp-homekit-devices

Advanced firmware to add native Apple HomeKit and custom configurations, compatible with any SoC based on ESP32, ESP32-S, ESP32-C and ESP8266 series. (Shelly, Sonoff, Electrodragon, Tuya...)
Other
2.7k stars 357 forks source link

ESP01 starts into 'frc2_timer_ta' #1604

Closed tgoschuetz closed 2 years ago

tgoschuetz commented 2 years ago

Using an ESP-01S with a relay, trying to create a switch for HomeKit.

Loading initial firmware to ESP, connecting to config mode and setting WiFi, AutoUpdate (does not make a difference) and JSON (example or alternatively my own JSON, makes no difference). Afterwards, ESP restarts, makes two downloads and then in the final reset runs into:

'...HAAMAIN v8.1.0 installed

Restarting... rm match del if0 usl sul 0 0

ets Jan 8 2013,rst cause:2, boot mode:(3,6)

load 0x40100000, len 2292, room 16 tail 4 chksum 0x57 load 0x3ffe8000, len 772, room 4 tail 0 chksum 0x0b csum 0x0b

rBoot v1.4.0 - richardaburton@gmail.com Flash Size: 8 Mbit Flash Mode: DOUT Flash Speed: 40 MHz rBoot Option: Big flash rBoot Option: RTC data

Booting rom 0. pp_task_hdl : 3ffeff78, prio:14, stack:512 pm_task_hdl : 3ffef738, prio:1, stack:176 frc2_timer_tar'

(See Screenlog.0.txt for details up until this point) screenlog.0.txt

Several resets then seem to make the ESP run again, but it seems to be incomplete:

'phy ver: 273, pp ver: 8.3

sleep disable

Home Accessory Architect v8.1.0 (c) 2018-2021 José Antonio Jiménez Campos

SETUP MODE Wifi config init mode : sta(44:17:93:0d:a1:29) add if0 Saved BSSID: 00f76fd04d76 Wifi Mode: Normal HAA Setup Set hostname Enabling auto reboot mode : sta(44:17:93:0d:a1:29) + softAP(46:17:93:0d:a1:29) add if1 bcn 100 Function called without core lock Start AP SSID=HAA-0DA129 bcn 0 del if1 add if1 bcn 100 Start DHCP server Start HTTP server scandone add 0 aid 5 cnt

connected with TGWLAN, channel 6 dhcp client start... ip:192.168.0.111,mask:255.255.255.0,gw:192.168.0.1 bcn 0 del if1 mode : sta(44:17:93:0d:a1:29)'

I can access the ESP at 192.168.0.111:4567, but no changes on this page are accepted. Connecting the ESP to HomeKit times out after a while.

RavenSystem commented 2 years ago

I don't see anything wrong. If you want to get logs in normal mode, add "o":1 to JSON config section.

https://github.com/RavenSystem/esp-homekit-devices/wiki/General-Configuration#Log-output

tgoschuetz commented 2 years ago

So maybe it's an error in the JSON although there is no error mentioned in the log Bildschirmfoto 2021-10-31 um 12 38 46 ?

hennessyevan commented 2 years ago

I had the exact same problem... not sure what it is. I'll let you know if I find a solution.

1477

My earlier digging around suggested it happens in some other esp applications but I can't find the issues relating to it now

tgoschuetz commented 2 years ago

It happens as soon as you add any config JSON. If you set the configuration with everything except a JSON, it boots normally afterwards. If you then enter a JSON (or right at the first configuration), it runs into this:

* HAAMAIN v9.1.0 installed

*** REBOOTING

rm match
del if0
usl
sul 0 0

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x40100000, len 2292, room 16 
tail 4
chksum 0x57
load 0x3ffe8000, len 772, room 4 
tail 0
chksum 0x0b
csum 0x0b

rBoot v1.4.0 - richardaburton@gmail.com
Flash Size:   8 Mbit
Flash Mode:   DOUT
Flash Speed:  40 MHz
rBoot Option: Big flash
rBoot Option: RTC data

Booting rom 0.
pp_task_hdl : 3ffeff38, prio:14, stack:512
pm_task_hdl : 3ffef6f8, prio:1, stack:176
**frc2_timer_ta**

I have already tried with four different ESP01 and ESP-12 and it is sufficient to use the very basic example JSON from the wiki, it does not need to be a very complex JSON string:

{"a":[{"t":1},{"t":2}]}

tgoschuetz commented 2 years ago

OK, got it using the log in normal mode.

hennessyevan commented 2 years ago

@tgoschuetz You got it? What did you need to do to get it to work?

tgoschuetz commented 2 years ago

Hi Evan,

Without the extensive logging, it seems that the device stopped, but fact is, it is running and if the JSON is correct, you can add it to HomeKit as well.

I have configured only WiFI and OTA-Updates in the first step and then, after the updates, added just the example JSON with a „c“-section, usingthe „o“-Option Raven mentioned. This makes the ESP log more to the serial port which gives you more transparency.

In the last step, I have added the final JSON and then added it to HomeKit. (Just do some resets, so the device goes back to SETUP Mode, which you can see when monitoring the serial port.

Tom

Am 14.11.2021 um 21:41 schrieb Evan Hennessy @.***>:

 @tgoschuetz You got it? What did you need to do to get it to work?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.