|
sonoff 刷 DHT的温湿度传感器原生homekit的固件 失败记录
泡论坛许久,看了很多帖子,收获很多,一股脑的吧树莓派B+等各种玩意收齐,开始了实战研究。
参考了long 大侠 https://bbs.hassbian.com/thread-4543-1-1.html
czde 大侠 [url]https://bbs.hassbian.com/thread-4482-1-1.html[/url]
yiyiwawa 大侠 https://bbs.hassbian.com/forum.p ... mp;highlight=sonoff等诸神的贡献贴
前期也安装了win64的python 怕 ESPFlashDownloadTool_v3.6.4清理不干净内存,就用命令行的形式清理一遍
C:\Windows\system32>esptool.py --port COM3 erase_flash
esptool.py v2.5.0
Serial port COM3
Connecting........__
Traceback (most recent call last):
File "c:\users\a\appdata\local\programs\python\python37\lib\site-packages\espt
ool.py", line 316, in command
p = self.read()
File "c:\users\a\appdata\local\programs\python\python37\lib\site-packages\espt
ool.py", line 261, in read
return next(self._slip_reader)
File "c:\users\a\appdata\local\programs\python\python37\lib\site-packages\espt
ool.py", line 1796, in slip_reader
raise FatalError("Timed out waiting for packet %s" % waiting_for)
esptool.FatalError: Timed out waiting for packet header
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\A\AppData\Local\Programs\Python\Python37\Scripts\esptool.py-scr
ipt.py", line 11, in <module>
load_entry_point('esptool==2.5.0', 'console_scripts', 'esptool.py')()
File "c:\users\a\appdata\local\programs\python\python37\lib\site-packages\espt
ool.py", line 2842, in _main
main()
File "c:\users\a\appdata\local\programs\python\python37\lib\site-packages\espt
ool.py", line 2543, in main
esp = ESPLoader.detect_chip(each_port, initial_baud, args.before, args.trace
)
File "c:\users\a\appdata\local\programs\python\python37\lib\site-packages\espt
ool.py", line 245, in detect_chip
detect_port.connect(connect_mode)
File "c:\users\a\appdata\local\programs\python\python37\lib\site-packages\espt
ool.py", line 447, in connect
last_error = self._connect_attempt(mode=mode, esp32r0_delay=True)
File "c:\users\a\appdata\local\programs\python\python37\lib\site-packages\espt
ool.py", line 424, in _connect_attempt
self.sync()
File "c:\users\a\appdata\local\programs\python\python37\lib\site-packages\espt
ool.py", line 363, in sync
timeout=SYNC_TIMEOUT)
File "c:\users\a\appdata\local\programs\python\python37\lib\site-packages\espt
ool.py", line 327, in command
self._port.timeout = saved_timeout
File "c:\users\a\appdata\local\programs\python\python37\lib\site-packages\seri
al\serialutil.py", line 368, in timeout
self._reconfigure_port()
File "c:\users\a\appdata\local\programs\python\python37\lib\site-packages\seri
al\serialwin32.py", line 222, in _reconfigure_port
'Original message: {!r}'.format(ctypes.WinError()))
serial.serialutil.SerialException: Cannot configure port, something went wrong.
Original message: PermissionError(13, '拒绝访问。', None, 5)
C:\Windows\system32>
然后又打开ESPFlashDownloadTool_v3.6.4刷czde 的贡献的bin ,
一切都看着很正常,但是居然在wifi 里找不到homekit 开头信号,按压开关也无果。
很是奇怪
|
|