ct-Open-Source/tuya-convert

Topgreener TGWF500D always times out

Test-subj opened this issue · 1 comments

I've been beating my head against this dimmer for a week now. I have 2 others that were super easy to convert (3 months ago)
I've tried on 2 different laptops.
After running tuya-convert, the led stays on, but I can't get it to actually finish.
I've also tried putting it in AP mode and using apconfig.py.

Weirdly, both laptops seemed to give up and reconnect to my network partway through unless I either deleted the saved network or turned off wifi first.

TOPGREENER TGWF500D
Uses a TYWE1S
Main Module: V2.2.6
MCU Module: V4.0.1

MQTT:
1683656033: mosquitto version 2.0.11 starting
1683656033: Using default config.
1683656033: Starting in local only mode. Connections will only be possible from clients running on this machine.
1683656033: Create a configuration file which defines a listener to allow remote access.
1683656033: For more details see https://mosquitto.org/documentation/authentication-methods/
1683656033: Opening ipv4 listen socket on port 1883.
1683656033: Opening ipv6 listen socket on port 1883.
1683656033: mosquitto version 2.0.11 running
1683656074: New connection from 127.0.0.1:32831 on port 1883.
1683656074: New client connected from 127.0.0.1:32831 as auto-A12BCEE1-CDEE-749F-D087-B6407037E5F7 (p2, c1, k60).
1683656074: No will message specified.
1683656074: Sending CONNACK to auto-A12BCEE1-CDEE-749F-D087-B6407037E5F7 (0, 0)
1683656074: Received PUBLISH from auto-A12BCEE1-CDEE-749F-D087-B6407037E5F7 (d0, q0, r0, m0, 'smart/device/in/87331610bcddc28cb6d4', ... (147 bytes))
1683656074: Received DISCONNECT from auto-A12BCEE1-CDEE-749F-D087-B6407037E5F7
1683656074: Client auto-A12BCEE1-CDEE-749F-D087-B6407037E5F7 disconnected.

PSK:
new client on port 443 from 10.42.42.23:40554
could not establish sslpsk socket: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:997)
don't panic this is probably just your phone!
new client on port 443 from 10.42.42.23:40560
could not establish sslpsk socket: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:997)
don't panic this is probably just your phone!
new client on port 443 from 10.42.42.23:40566
could not establish sslpsk socket: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:997)
don't panic this is probably just your phone!
new client on port 443 from 10.42.42.23:40570
could not establish sslpsk socket: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:997)
don't panic this is probably just your phone!
new client on port 443 from 10.42.42.23:40574
could not establish sslpsk socket: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:997)
don't panic this is probably just your phone!
new client on port 443 from 10.42.42.23:40578
could not establish sslpsk socket: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:997)
don't panic this is probably just your phone!
new client on port 443 from 10.42.42.23:40580
could not establish sslpsk socket: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:997)
don't panic this is probably just your phone!
new client on port 443 from 10.42.42.23:40588
could not establish sslpsk socket: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:997)
don't panic this is probably just your phone!
new client on port 443 from 10.42.42.23:40590
could not establish sslpsk socket: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:997)
don't panic this is probably just your phone!
new client on port 443 from 10.42.42.23:40600
could not establish sslpsk socket: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:997)
don't panic this is probably just your phone!
new client on port 443 from 10.42.42.23:40602
could not establish sslpsk socket: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:997)
don't panic this is probably just your phone!
new client on port 443 from 10.42.42.23:40608
could not establish sslpsk socket: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:997)
don't panic this is probably just your phone!
new client on port 443 from 10.42.42.23:40610
could not establish sslpsk socket: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:997)
don't panic this is probably just your phone!
new client on port 443 from 10.42.42.23:40612
could not establish sslpsk socket: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:997)
don't panic this is probably just your phone!
new client on port 443 from 10.42.42.23:40618
could not establish sslpsk socket: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:997)
don't panic this is probably just your phone!
new client on port 443 from 10.42.42.23:40620
could not establish sslpsk socket: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:997)
don't panic this is probably just your phone!
new client on port 443 from 10.42.42.23:40624
could not establish sslpsk socket: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:997)
don't panic this is probably just your phone!
new client on port 443 from 10.42.42.23:40632
could not establish sslpsk socket: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:997)
don't panic this is probably just your phone!
new client on port 443 from 10.42.42.23:40634
could not establish sslpsk socket: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:997)
don't panic this is probably just your phone!
new client on port 443 from 10.42.42.23:40636
could not establish sslpsk socket: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:997)
don't panic this is probably just your phone!
new client on port 443 from 10.42.42.23:40644
could not establish sslpsk socket: [SSL: NO_SHARED_CIPHER] no shared cipher (_ssl.c:997)
don't panic this is probably just your phone!

UDP:
/home/test_subj/Desktop/tuya-convert-ap-config/scripts/./tuya-discovery.py:50: DeprecationWarning: There is no current event loop
loop = asyncio.get_event_loop()
Listening for Tuya broadcast on UDP 6666
Listening for encrypted Tuya broadcast on UDP 6667
10.42.42.28 {"ip":"10.42.42.28","gwId":"87331610bcddc28cb6d4","active":2,"ability":0,"mode":0,"encrypt":true,"productKey":"4T0aYRs5TZOaHQTQ","version":"3.1"}

WEB:
Listening on 10.42.42.1:80
�[32m[I 230509 11:13:55 web:2344]�[m� 302 GET /generate_204 (10.42.42.23) 1.13ms
�[32m[I 230509 11:13:55 web:2344]�[m� 302 GET /generate_204 (10.42.42.23) 0.95ms
�[32m[I 230509 11:13:56 web:2344]�[m� 200 GET / (10.42.42.23) 0.83ms
�[32m[I 230509 11:13:56 web:2344]�[m� 302 GET /favicon.ico (10.42.42.23) 0.51ms
�[32m[I 230509 11:13:56 web:2344]�[m� 302 GET /generate_204 (10.42.42.23) 0.45ms
�[32m[I 230509 11:13:56 web:2344]�[m� 304 GET / (10.42.42.23) 0.53ms
�[32m[I 230509 11:13:56 web:2344]�[m� 302 GET /generate_204 (10.42.42.23) 0.63ms
�[32m[I 230509 11:13:58 web:2344]�[m� 302 GET /generate_204 (10.42.42.23) 0.58ms
�[32m[I 230509 11:14:01 web:2344]�[m� 200 GET / (10.42.42.23) 0.54ms

POST /gw.json?a=s.gw.reset&gwId=87331610bcddc28cb6d4&t=1683656047&sign=0ba0f01eef817e90b7d948c36a7d8873
Host: 10.42.42.1
Ty-Ua: HW
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Content-Length: 0

Answer generic (s.gw.reset)
reply {"t":1683656047,"e":false,"success":true}
�[32m[I 230509 11:14:07 web:2344]�[m� 200 POST /gw.json?a=s.gw.reset&gwId=87331610bcddc28cb6d4&t=1683656047&sign=0ba0f01eef817e90b7d948c36a7d8873 (10.42.42.28) 0.77ms
�[32m[I 230509 11:14:08 web:2344]�[m� 302 GET /generate_204 (10.42.42.23) 0.58ms
�[32m[I 230509 11:14:16 web:2344]�[m� 302 GET /generate_204 (10.42.42.23) 0.58ms

POST /gw.json?a=s.gw.token.get&gwId=87331610bcddc28cb6d4&other={"token":"00000000","region":"US","tlinkStat":{"configure":"smartconfig","time":2,"source":"ap","path":"multicast"}}&t=6&v=3.0&sign=9beb6669de07706dae058148142fbde7
Host: a.gw.tuyaus.com
Ty-Ua: HW
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Content-Length: 0

Answer s.gw.token.get
reply {"t":1683656064,"e":false,"success":true,"result":{"gwApiUrl":"http://10.42.42.1/gw.json","stdTimeZone":"-05:00","mqttRanges":"","timeZone":"-05:00","httpsPSKUrl":"https://10.42.42.1/gw.json","mediaMqttUrl":"10.42.42.1","gwMqttUrl":"10.42.42.1","dstIntervals":[]}}
�[32m[I 230509 11:14:24 web:2344]�[m� 200 POST /gw.json?a=s.gw.token.get&gwId=87331610bcddc28cb6d4&other={"token":"00000000","region":"US","tlinkStat":{"configure":"smartconfig","time":2,"source":"ap","path":"multicast"}}&t=6&v=3.0&sign=9beb6669de07706dae058148142fbde7 (10.42.42.28) 13.64ms

POST /gw.json?a=s.gw.dev.pk.active&gwId=87331610bcddc28cb6d4&other={"token":"00000000"}&t=1683656064&v=3.0&sign=9e1209fc624605f2f9c55f0e09e3da73
Host: 10.42.42.1
Ty-Ua: HW
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Content-Length: 421

payload 1298670C33E52B0F98A2A9EA5EA5CF47B42FF36B6FDC00E534EDFE876B78E1E7DDEF3EC72A4897B4630E2553D6D57ED8E3775937B9CE014F1BEC566FD60E04EEBFBF021AA4EC7BCC196E2EA4638F1C414358B19A8F8AB854912DDB3DBB8345A78B47798FE21B39B27DB9DBBFE3C31095E82CDC5CF5478A2ABFDD40F117376310A626D84F4700EF59FB080A6FFDC16BB7C1B9A0F1042650232FC41B6321FBEA0277490EB678F6D7A963892ED4BF24F6A6323C60CC5D0D0C4A4E1F29CB3F20F0EE892EFD3BCA10B6758490566893E921C0
Answer s.gw.dev.pk.active
reply {"t":1683656064,"e":false,"success":true,"result":{"schema":"[{"mode":"rw","property":{"type":"bool"},"id":1,"type":"obj"},{"mode":"rw","property":{"type":"bool"},"id":1,"type":"obj"},{"mode":"rw","property":{"type":"bool"},"id":1,"type":"obj"},{"mode":"rw","property":{"type":"bool"},"id":1,"type":"obj"},{"mode":"rw","property":{"type":"bool"},"id":1,"type":"obj"},{"mode":"rw","property":{"type":"bool"},"id":1,"type":"obj"},{"mode":"rw","property":{"type":"bool"},"id":1,"type":"obj"},{"mode":"rw","property":{"type":"bool"},"id":1,"type":"obj"},{"mode":"rw","property":{"type":"bool"},"id":1,"type":"obj"},{"mode":"rw","property":{"type":"bool"},"id":1,"type":"obj"},{"mode":"rw","property":{"type":"bool"},"id":1,"type":"obj"},{"mode":"rw","property":{"type":"bool"},"id":1,"type":"obj"},{"mode":"rw","property":{"type":"bool"},"id":1,"type":"obj"},{"mode":"rw","property":{"type":"bool"},"id":1,"type":"obj"},{"mode":"rw","property":{"type":"bool"},"id":1,"type":"obj"},{"mode":"rw","property":{"type":"bool"},"id":1,"type":"obj"},{"mode":"rw","property":{"type":"bool"},"id":1,"type":"obj"},{"mode":"rw","property":{"type":"bool"},"id":1,"type":"obj"},{"mode":"rw","property":{"type":"bool"},"id":1,"type":"obj"},{"mode":"rw","property":{"type":"bool"},"id":1,"type":"obj"}]","uid":"00000000000000000000","devEtag":"0000000000","secKey":"0000000000000000","schemaId":"0000000000","localKey":"0000000000000000"}}
TRIGGER UPGRADE IN 10 SECONDS
�[32m[I 230509 11:14:24 web:2344]�[m� 200 POST /gw.json?a=s.gw.dev.pk.active&gwId=87331610bcddc28cb6d4&other={"token":"00000000"}&t=1683656064&v=3.0&sign=9e1209fc624605f2f9c55f0e09e3da73 (10.42.42.28) 4.29ms
encoding {"data":{"gwId":"87331610bcddc28cb6d4"},"protocol":15,"s":1523715,"t":1683656074} using protocol 2.1
b'2.186f22b65e6ff7161t5inCMDHpcJKQpxfOe2RbTgrH/SuMEjSu8S92YaRRByI0c/oVlGm6iH8M1hvy05oJsm5uMafEvnzLLz/1MQ4v4RqvNlJD5g+pjtsAumkpb7dg4SXZL9kLEC9aqKXAOwI'
�[32m[I 230509 11:14:36 web:2344]�[m� 302 GET /generate_204 (10.42.42.23) 0.60ms

POST /gw.json?a=tuya.device.upgrade.silent.get&gwId=87331610bcddc28cb6d4&t=1683656087&v=4.1&sign=aa67d485c7625c7a87956e440cc6b0c4
Host: 10.42.42.1
Ty-Ua: HW
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Content-Length: 37

payload {"subId":null}
Answer tuya.device.upgrade.get
reply {"t":1683656088,"e":false,"success":true,"result":{"auto":true,"type":0,"size":"506587","version":"9.0.0","url":"http://10.42.42.1/files/upgrade.bin","md5":"dc92883ebc44f64253bfb004433fc929"}}
�[32m[I 230509 11:14:48 web:2344]�[m� 200 POST /gw.json?a=tuya.device.upgrade.silent.get&gwId=87331610bcddc28cb6d4&t=1683656087&v=4.1&sign=aa67d485c7625c7a87956e440cc6b0c4 (10.42.42.28) 2.33ms

POST /gw.json?a=s.gw.upgrade.updatestatus&gwId=87331610bcddc28cb6d4&t=1683656088&sign=261b0f1f7dbda5dd0e9fddcd13402e9e
Host: 10.42.42.1
Ty-Ua: HW
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Content-Length: 69

payload {"upgradeStatus":2}
Answer s.gw.upgrade.updatestatus
reply {"t":1683656088,"e":false,"success":true}
�[32m[I 230509 11:14:48 web:2344]�[m� 200 POST /gw.json?a=s.gw.upgrade.updatestatus&gwId=87331610bcddc28cb6d4&t=1683656088&sign=261b0f1f7dbda5dd0e9fddcd13402e9e (10.42.42.28) 2.08ms
�[32m[I 230509 11:14:49 web:2344]�[m� 206 GET /files/upgrade.bin (10.42.42.28) 6.07ms
�[32m[I 230509 11:14:56 web:2344]�[m� 206 GET /files/upgrade.bin (10.42.42.28) 6662.58ms
�[32m[I 230509 11:14:56 web:2344]�[m� 302 GET /generate_204 (10.42.42.23) 0.58ms
�[32m[I 230509 11:15:16 web:2344]�[m� 302 GET /generate_204 (10.42.42.23) 0.87ms

POST /gw.json?a=tuya.device.upgrade.silent.get&gwId=87331610bcddc28cb6d4&t=30&v=4.1&sign=19b7c86a5f7b31fde6b9f93e143791b9
Host: 10.42.42.1
Ty-Ua: HW
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Content-Length: 37

payload {"subId":null}
Answer tuya.device.upgrade.get
reply {"t":1683656120,"e":false,"success":true,"result":{"auto":true,"type":0,"size":"506587","version":"9.0.0","url":"http://10.42.42.1/files/upgrade.bin","md5":"dc92883ebc44f64253bfb004433fc929"}}
�[32m[I 230509 11:15:20 web:2344]�[m� 200 POST /gw.json?a=tuya.device.upgrade.silent.get&gwId=87331610bcddc28cb6d4&t=30&v=4.1&sign=19b7c86a5f7b31fde6b9f93e143791b9 (10.42.42.28) 2.13ms

POST /gw.json?a=s.gw.upgrade.updatestatus&gwId=87331610bcddc28cb6d4&t=1683656120&sign=80821c02e91d9399068bc9a83c2eb341
Host: 10.42.42.1
Ty-Ua: HW
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Content-Length: 69

payload {"upgradeStatus":2}
Answer s.gw.upgrade.updatestatus
reply {"t":1683656120,"e":false,"success":true}
�[32m[I 230509 11:15:20 web:2344]�[m� 200 POST /gw.json?a=s.gw.upgrade.updatestatus&gwId=87331610bcddc28cb6d4&t=1683656120&sign=80821c02e91d9399068bc9a83c2eb341 (10.42.42.28) 2.03ms
�[32m[I 230509 11:15:22 web:2344]�[m� 206 GET /files/upgrade.bin (10.42.42.28) 2.27ms
�[32m[I 230509 11:15:28 web:2344]�[m� 206 GET /files/upgrade.bin (10.42.42.28) 6724.80ms
�[32m[I 230509 11:15:36 web:2344]�[m� 302 GET /generate_204 (10.42.42.23) 0.64ms

POST /gw.json?a=tuya.device.upgrade.silent.get&gwId=87331610bcddc28cb6d4&t=30&v=4.1&sign=19b7c86a5f7b31fde6b9f93e143791b9
Host: 10.42.42.1
Ty-Ua: HW
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Content-Length: 37

payload {"subId":null}
Answer tuya.device.upgrade.get
reply {"t":1683656152,"e":false,"success":true,"result":{"auto":true,"type":0,"size":"506587","version":"9.0.0","url":"http://10.42.42.1/files/upgrade.bin","md5":"dc92883ebc44f64253bfb004433fc929"}}
�[32m[I 230509 11:15:52 web:2344]�[m� 200 POST /gw.json?a=tuya.device.upgrade.silent.get&gwId=87331610bcddc28cb6d4&t=30&v=4.1&sign=19b7c86a5f7b31fde6b9f93e143791b9 (10.42.42.28) 5.31ms

POST /gw.json?a=s.gw.upgrade.updatestatus&gwId=87331610bcddc28cb6d4&t=1683656152&sign=06625788fbf9ca8e130f5bde00a47c42
Host: 10.42.42.1
Ty-Ua: HW
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Content-Length: 69

payload {"upgradeStatus":2}
Answer s.gw.upgrade.updatestatus
reply {"t":1683656152,"e":false,"success":true}
�[32m[I 230509 11:15:52 web:2344]�[m� 200 POST /gw.json?a=s.gw.upgrade.updatestatus&gwId=87331610bcddc28cb6d4&t=1683656152&sign=06625788fbf9ca8e130f5bde00a47c42 (10.42.42.28) 3.30ms
�[32m[I 230509 11:15:54 web:2344]�[m� 206 GET /files/upgrade.bin (10.42.42.28) 2.04ms
�[32m[I 230509 11:15:56 web:2344]�[m� 302 GET /generate_204 (10.42.42.23) 0.64ms
�[32m[I 230509 11:16:08 web:2344]�[m� 206 GET /files/upgrade.bin (10.42.42.28) 13680.94ms

POST /gw.json?a=tuya.device.upgrade.silent.get&gwId=87331610bcddc28cb6d4&t=30&v=4.1&sign=19b7c86a5f7b31fde6b9f93e143791b9
Host: 10.42.42.1
Ty-Ua: HW
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Content-Length: 37

payload {"subId":null}
Answer tuya.device.upgrade.get
reply {"t":1683656185,"e":false,"success":true,"result":{"auto":true,"type":0,"size":"506587","version":"9.0.0","url":"http://10.42.42.1/files/upgrade.bin","md5":"dc92883ebc44f64253bfb004433fc929"}}
�[32m[I 230509 11:16:25 web:2344]�[m� 200 POST /gw.json?a=tuya.device.upgrade.silent.get&gwId=87331610bcddc28cb6d4&t=30&v=4.1&sign=19b7c86a5f7b31fde6b9f93e143791b9 (10.42.42.28) 4.13ms

POST /gw.json?a=s.gw.upgrade.updatestatus&gwId=87331610bcddc28cb6d4&t=1683656185&sign=e4ee0b19c5d417874cfbc2e306955035
Host: 10.42.42.1
Ty-Ua: HW
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Content-Length: 69

payload {"upgradeStatus":2}
Answer s.gw.upgrade.updatestatus
reply {"t":1683656185,"e":false,"success":true}
�[32m[I 230509 11:16:25 web:2344]�[m� 200 POST /gw.json?a=s.gw.upgrade.updatestatus&gwId=87331610bcddc28cb6d4&t=1683656185&sign=e4ee0b19c5d417874cfbc2e306955035 (10.42.42.28) 1.99ms
�[32m[I 230509 11:16:26 web:2344]�[m� 206 GET /files/upgrade.bin (10.42.42.28) 2.06ms
�[32m[I 230509 11:16:40 web:2344]�[m� 206 GET /files/upgrade.bin (10.42.42.28) 13446.33ms

POST /gw.json?a=tuya.device.upgrade.silent.get&gwId=87331610bcddc28cb6d4&t=30&v=4.1&sign=19b7c86a5f7b31fde6b9f93e143791b9
Host: 10.42.42.1
Ty-Ua: HW
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Content-Length: 37

payload {"subId":null}
Answer tuya.device.upgrade.get
reply {"t":1683656217,"e":false,"success":true,"result":{"auto":true,"type":0,"size":"506587","version":"9.0.0","url":"http://10.42.42.1/files/upgrade.bin","md5":"dc92883ebc44f64253bfb004433fc929"}}
�[32m[I 230509 11:16:57 web:2344]�[m� 200 POST /gw.json?a=tuya.device.upgrade.silent.get&gwId=87331610bcddc28cb6d4&t=30&v=4.1&sign=19b7c86a5f7b31fde6b9f93e143791b9 (10.42.42.28) 1.96ms

POST /gw.json?a=s.gw.upgrade.updatestatus&gwId=87331610bcddc28cb6d4&t=1683656217&sign=5e05761e602e13d40d1ea0fe0144eae9
Host: 10.42.42.1
Ty-Ua: HW
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Content-Length: 69

payload {"upgradeStatus":2}
Answer s.gw.upgrade.updatestatus
reply {"t":1683656217,"e":false,"success":true}
�[32m[I 230509 11:16:57 web:2344]�[m� 200 POST /gw.json?a=s.gw.upgrade.updatestatus&gwId=87331610bcddc28cb6d4&t=1683656217&sign=5e05761e602e13d40d1ea0fe0144eae9 (10.42.42.28) 1.98ms
�[32m[I 230509 11:17:00 web:2344]�[m� 206 GET /files/upgrade.bin (10.42.42.28) 2.22ms
�[32m[I 230509 11:17:13 web:2344]�[m� 206 GET /files/upgrade.bin (10.42.42.28) 13185.73ms

POST /gw.json?a=tuya.device.upgrade.silent.get&gwId=87331610bcddc28cb6d4&t=30&v=4.1&sign=19b7c86a5f7b31fde6b9f93e143791b9
Host: 10.42.42.1
Ty-Ua: HW
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Content-Length: 37

payload {"subId":null}
Answer tuya.device.upgrade.get
reply {"t":1683656251,"e":false,"success":true,"result":{"auto":true,"type":0,"size":"506587","version":"9.0.0","url":"http://10.42.42.1/files/upgrade.bin","md5":"dc92883ebc44f64253bfb004433fc929"}}
�[32m[I 230509 11:17:31 web:2344]�[m� 200 POST /gw.json?a=tuya.device.upgrade.silent.get&gwId=87331610bcddc28cb6d4&t=30&v=4.1&sign=19b7c86a5f7b31fde6b9f93e143791b9 (10.42.42.28) 1.90ms

POST /gw.json?a=s.gw.upgrade.updatestatus&gwId=87331610bcddc28cb6d4&t=1683656251&sign=39ed3aaf9b759b01376a28f5101df09c
Host: 10.42.42.1
Ty-Ua: HW
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Content-Length: 69

payload {"upgradeStatus":2}
Answer s.gw.upgrade.updatestatus
reply {"t":1683656251,"e":false,"success":true}
�[32m[I 230509 11:17:31 web:2344]�[m� 200 POST /gw.json?a=s.gw.upgrade.updatestatus&gwId=87331610bcddc28cb6d4&t=1683656251&sign=39ed3aaf9b759b01376a28f5101df09c (10.42.42.28) 1.96ms
�[32m[I 230509 11:17:32 web:2344]�[m� 206 GET /files/upgrade.bin (10.42.42.28) 3.68ms
�[32m[I 230509 11:17:39 web:2344]�[m� 206 GET /files/upgrade.bin (10.42.42.28) 6665.41ms

WIFI:
System info

fatal: not a git repository (or any of the parent directories): .git
Linux Dusty 5.19.0-41-generic #42~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 18 17:40:00 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022)
Dnsmasq version 2.86 Copyright (c) 2000-2021 Simon Kelley
Compile time options: IPv6 GNU-getopt DBus no-UBus i18n IDN2 DHCP DHCPv6 no-Lua TFTP conntrack ipset auth cryptohash DNSSEC loop-detect inotify dumpfile

This software comes with ABSOLUTELY NO WARRANTY.
Dnsmasq is free software, and you are welcome to redistribute it
under the terms of the GNU General Public License, version 2 or 3.
hostapd v2.10
User space daemon for IEEE 802.11 AP management,
IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
Copyright (c) 2002-2022, Jouni Malinen j@w1.fi and contributors
Python 3.10.6

Stopping NetworkManager...
Failed to stop network-manager.service: Unit network-manager.service not loaded.
Configuring AP interface...
RTNETLINK answers: File exists
RTNETLINK answers: File exists
Starting DNSMASQ server...
Starting AP on wlp2s0...
wlp2s0: interface state UNINITIALIZED->ENABLED

wlp2s0: AP-ENABLED
wlp2s0: AP-STA-CONNECTED bc:dd:c2:8c:b6:d4
wlp2s0: AP-STA-CONNECTED fa:94:4f:d6:eb:1e
wlp2s0: AP-STA-DISCONNECTED bc:dd:c2:8c:b6:d4
wlp2s0: AP-STA-CONNECTED bc:dd:c2:8c:b6:d4
wlp2s0: AP-STA-DISCONNECTED bc:dd:c2:8c:b6:d4
wlp2s0: AP-STA-CONNECTED bc:dd:c2:8c:b6:d4
wlp2s0: AP-STA-DISCONNECTED bc:dd:c2:8c:b6:d4
wlp2s0: AP-STA-CONNECTED bc:dd:c2:8c:b6:d4
wlp2s0: AP-STA-DISCONNECTED bc:dd:c2:8c:b6:d4
wlp2s0: AP-STA-CONNECTED bc:dd:c2:8c:b6:d4
wlp2s0: AP-STA-DISCONNECTED bc:dd:c2:8c:b6:d4
wlp2s0: AP-STA-CONNECTED bc:dd:c2:8c:b6:d4
wlp2s0: AP-STA-DISCONNECTED bc:dd:c2:8c:b6:d4
wlp2s0: AP-STA-CONNECTED bc:dd:c2:8c:b6:d4
wlp2s0: AP-STA-DISCONNECTED bc:dd:c2:8c:b6:d4
wlp2s0: AP-STA-CONNECTED bc:dd:c2:8c:b6:d4

It worked with buster.