Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for ZSP-001 #589

Closed
ljakob opened this issue Apr 14, 2020 · 1 comment
Closed

Support for ZSP-001 #589

ljakob opened this issue Apr 14, 2020 · 1 comment

Comments

@ljakob
Copy link

ljakob commented Apr 14, 2020

Hi,

I'm trying to use tuya-convert for a ZSP-001 socket. Since it is listed here

https://templates.blakadder.com/ZSP-001.html

I expect that it is possible. After unsuccessfully using tuya-convert I tried to flash it via serial but without any success. I soldered a serial connection and I'm getting logs:

< TUYA IOT SDK V:2.0.0 BS:30.01_PT:2.2_LAN:3.3_CAD:1.0.1_CD:1.0.0 >
[FW]: TC0084_TW03_PLUG_DLTJL2_P0 | [HW]: TW03 | [SW]: V1.4.2 (Nov 11 2019 11:55:38) | [PID]: tpfykupqyhsvhaqv
[01-01 00:00:00 TUYA Notice][hw_table.c:352] wifi status is :0
[01-01 00:00:00 TUYA Notice][wifi_hwl.c:1316] 

I've checked the pinout of the wifi module and it seems to be an esp8266 but didn't open the can. All GPIO pins are correctly set but I can't enter flash mode (I've used this setup for other devices).

In smarthack-udp.log I find:

10.42.42.33 {"ip":"10.42.42.33","gwId":"bf4a9c26922c28b30dkehp","active":0,"ablilty":0,"encrypt":true,"productKey":"tpfykupqyhsvhaqv","version":"3.3"}
WARNING: it appears this device does not use an ESP82xx and therefore cannot install ESP based firmware

The device loops at

[01-01 00:00:23 TUYA Err][iot_httpc.c:820] Post Data Return Fail.-1
[01-01 00:00:23 TUYA Err][iot_httpc.c:2045] httpc_gw_get_urlcfg_v41/httpc_gw_region_cfg_get_v10 error:-1
[01-01 00:00:25 TUYA Err][iot_httpc.c:820] Post Data Return Fail.-1
[01-01 00:00:25 TUYA Err][iot_httpc.c:2045] httpc_gw_get_urlcfg_v41/httpc_gw_region_cfg_get_v10 error:-1
[01-01 00:00:26 TUYA Err][iot_httpc.c:820] Post Data Return Fail.-1
[01-01 00:00:26 TUYA Err][iot_httpc.c:2045] httpc_gw_get_urlcfg_v41/httpc_gw_region_cfg_get_v10 error:-1
[01-01 00:01:14 TUYA Notice][gw_intf.c:4576] gw is long time(60s) disconnected to router/failed to connect mqtt,now go to reconnect!!
[01-01 00:01:14 TUYA Notice][gw_intf.c:4577] netstat:6
[01-01 00:01:14 TUYA Notice][hw_table.c:352] wifi status is :5
[01-01 00:01:15 TUYA Notice][hw_table.c:352] wifi status is :6
[01-01 00:02:15 TUYA Notice][gw_intf.c:4576] gw is long time(60s) disconnected to router/failed to connect mqtt,now go to reconnect!!

The registration server receives:

POST /d.json?a=tuya.device.config.get&et=1&other={"token":"00000000","region":"DE"}&t=20&uuid=c57ec9d8ecf21961&v=4.1&sign=79469f32ae29d7647d0529dcf887ed83
Host: a2.tuyaus.com
User-Agent: TUYA_IOT_SDK
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Content-Length: 37

payload 418D7F28A3DACB7E2EBD7783F15CC722

I've tried to play with the region settings in scripts/smartconfig/main.py but no success

Is this device ESP8266 based or is it just a waste of money?

Thanks Leif

@kueblc
Copy link
Collaborator

kueblc commented Apr 15, 2020

Unfortunately the warning is accurate, this is not an ESP82xx which is also why you were unable to flash it with ESP firmware over serial.

@kueblc kueblc closed this as completed Apr 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants