Closed Sarius121 closed 2 years ago
Hi @Sarius121, I´m not as deep into this as you, but I found the same error in my smarthack-psk.log for the issue I did report here: https://github.com/ct-Open-Source/tuya-convert/issues/1022
Would you mind taking a look and give your opinion if that might be related? For sure I will simply try to add your lines to see if that makes a difference ... I guess it would be interesting to understand why this exception is happening for 3 of my 5 devices (tried all to flash in the same setup).
Thanks!
Hi, I think our issue must be a differnent one - as much as I can say from our logs there is no other devices other than the phone ever connecting ... the exception we see in our log at the end seems to come from an interrupt ...
Out of curiosity I tried your modification but it did not make any difference - just the exception not showing up in my log anymore ...
My guess ...
Hi @MacSass, the error in your smarthack-psk.log seems to be exactly the same and also seems to be triggered by your phone. But if you still get a timeout after adding the two lines and not getting this exact error anymore the problem is probably somewhere else.
the exception we see in our log at the end seems to come from an interrupt
As far as I understand the program, this interrupt is just the consequence of the timeout and not directly related to an error so your problem is probably not related to an error in the smarthack-psk part of the program.
Thanks @Sarius121 - yes I tend to agree with you - some other reason seems to prevent the device from re-connecting with IP 10.42.42.42, but I´m not clear yet on what could be causing this ... I keep searching ...
general information: flashed device: CASALUX Wifi LED RGB Light Strip (TYWE3S chip) operating system: Raspberry Pi 3B+ with Raspberry Pi OS bullseye (headless) and its internal wifi chip
issue I tried to flash the device when I got an timeout:
Timed out while waiting for the device to (re)connect
Searching for errors in the logs I found this error in the
smarthack-psk.log
:solution This error was caused by my phone and not the device and shouldn't matter for the flashing process. The first error is catched but the second error (throwed because
e.reason
seems to beNone
) not so it prevents the flashing process from working properly for the next connected devices. So I tried just preventing this error by inserting the following after line 71 in thenew_client
-function in psk-frontend.py:Because the more detailed error message is not at all important for the flashing process, this change shouldn't effect it.
After this small change everything worked and I successfully flashed my device.
I hope this issue may help others who get the same error.