maximkulkin / esp-homekit

Apple HomeKit accessory server library for ESP-OPEN-RTOS
MIT License
1.1k stars 168 forks source link

Can't connect iphone #133

Closed CHNleing closed 4 years ago

CHNleing commented 4 years ago

!!! [ 554606] HomeKit: Failed to compact HomeKit storage: sector data read error !!! [ 554613] HomeKit: Failed to write pairing info to HomeKit storage: max number of pairings !!! [ 554621] HomeKit: [Client 1073683436] Failed to store pairing (code -2)

Using ESP8266-12E

maximkulkin commented 4 years ago

From this piece of log there is so many things that are wrong, so my question is: can you try it on a different module?

pbendersky commented 4 years ago

I got an error similar to this today when using CMake (I build using idf.py build). I got errors on writing flash when creating the device ID and key.

I reverted to make and it worked...

@CHNleing how did you build? @maximkulkin are you aware of this issue or should I open another ticket?

CHNleing commented 4 years ago

Probably because the default CPU frequency of arduino is 80mhz, it is normal after changing to 160mhz

maximkulkin commented 4 years ago

I wonder how do you achieve this (to run ESP at 80MHz)

CHNleing commented 4 years ago

I am not sure if Google Translate is accurate, I mean 80mhz will go wrong. Normal with 160mhz