Open soosp opened 8 months ago
Thanks for the quick response. I'll try it as soon as my sensor arrives.
Thanks for the firmware, just flashed and seems to be OK. Had a small issue of showing 0°C and 0% RH but all it needed was power-cycle after flashing.
If your version has slightly different PCB with no pinheader for prgramming, simply solder to the pins of the ZTU module datasheet. TLDR: fourth pin from the bottom on both sides. And then simply connect one to TX and second one to DTR on the USB-serial converter (in my case cp2102). Also don't forget to GND
Hope this helps anybody with the same PCB
Model "TS0601 TZE200.." is not supported.
More or less stable firmware in Zigbee has been released for TS0201_Z3000
@soosp @pvvx @Ctrl-F4 @landrysik my board have RTS, SWS, V, G, T, R pins. which pins to use?
Module - USB-UART G (GND) - GND V (VCC) - 3.3V SWS - TX RST - DSR or RTS (not required to use: may be short-circuited to ground for a short time while the starting “activation” procedure is in progress in the programmer program)
Image from the installation side (solder)(!)
I can confirm flawless flashing of WSD500A with ch340 just directly connecting 3 wires, no need for resistor etc.
WSD500A with different PCB color hue from each batch :) saved from just being trash
Added feature:
Firmware of original Tuya using Zigbee OTA to BLE version 1141-d3a3-00993001-TS0201_v45.zigbee
Would highly appreciate if some could take a look at my mess / wiring and tell me where I failed.
I bough the Ai Thinker TB 4 Kit and VCC to the bottom left pad and GND right next to it. On the left side I soldert the RST pin and on the right side the TX according to this image https://github.com/pvvx/TlsrComProg825x/blob/main/Doc/img/TB-04-com-prog.gif
Connect Pin PD4 (SWM) <-> SWS and:
python3 TlsrPgm.py -pCOMx -a5000 -m we 0 file_ota.bin
or
python3 TlsrPgm.py -pCOMx -z10 -m we 0 file_ota.bin
Thank you for your guidance. I flashed the programmer according to the README of your other repository. Here is the output when running the i command and the command you provided. Currently I get an error: Error get Flash Status! (102)
.
Here is my wiring. You did not mention wiring VCC but without it get a SWire read timeout!
BLE_THSensor/source/TS0201 ❯ python TlsrPgm.py -p /dev/ttyUSB0 i on master [?] via 🐍 v3.11.8 took 5s
=======================================================
TLSR82xx TlsrPgm version 31.10.23
-------------------------------------------------------
Open /dev/ttyUSB0, 230400 bit/s... ok
PGM: ChipID: 0x5562 (TLSR825x), ver: 0.0.0.1
swdiv 5, addrlen 3, swbuf [5a 00 06 02 00 05], pwr On
SWire bit rate: 0.9600 Mbits/s
=== Process ===========================================
Chip TLSR825x ID: 0x5562, rev: 0x02
CPU PC=0x00000000 ([0x0602] = 0x05)
Flash JEDEC ID: 0xC86014, Size: 1024 kbytes
Flash Status Register: 0x00
-------------------------------------------------------
FLASH UID:
000000: 41 50 33 31 39 30 30 18 01 29 00 30 ff ff ff ff
000010: c8 01 ff ff ff ff ff ff ff ff ff ff ff ff ff ff
-------------------------------------------------------
FLASH:
000000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
000010: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
-------------------------------------------------------
ANALOG REGISTERS:
000000: 48 4c a4 4f 48 02 ff 1d 05 00 00 7b c4 80 00 00
000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40
000020: 54 00 00 00 00 00 00 00 00 00 00 2e 1f 15 00 00
000030: 20 20 80 80 07 20 00 00 00 ff 00 00 00 00 00 00
000040: 5f b7 22 02 80 00 00 00 00 00 00 00 ff ff ff 0f
000050: 07 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
000060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
000070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01
000080: 48 4c a4 4f 48 02 ff 1d 05 00 00 7b c4 80 00 00
000090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40
0000a0: 54 00 00 00 00 00 00 00 00 00 00 2e 1f 15 00 00
0000b0: 20 20 80 80 07 20 00 00 00 ff 00 00 00 00 00 00
0000c0: 83 b7 22 02 80 00 00 00 00 00 00 00 ff ff ff 0f
0000d0: 07 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0000e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0000f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01
-------------------------------------------------------
REGISTERS:
000060: 7c f7 c7 83 08 30 06 00 02 00 02 00 01 02 1f 00
000070: 00 04 00 04 00 00 00 00 00 00 00 64 00 02 62 55
Flashing:
BLE_THSensor/source/TS0201 ❯ python TlsrPgm.py -p /dev/ttyUSB0 -a 5000 -m we 0 bin/TH03Z_v47.bin
=======================================================
TLSR82xx TlsrPgm version 31.10.23
-------------------------------------------------------
Open /dev/ttyUSB0, 230400 bit/s... ok
PGM: ChipID: 0x5562 (TLSR825x), ver: 0.0.0.1
swdiv 5, addrlen 3, swbuf [5a 00 06 02 00 05], pwr On
SWire bit rate: 0.9600 Mbits/s
=== PreProcess ========================================
Hard reset Ext.MCU 50 ms... ok
Activate 5000 ms... ok
CPU PC=0x00000000
=== Process ===========================================
Inputfile: bin/TH03Z_v47.bin
Write 0 to Flash Status Register...
Flash Status Register: 0x00
Write Flash data 0x00000000 to 0x000129d4...
Error get Flash Status! (102)
Hi, sorry, for me it's not clear : with : https://pvvx.github.io/TS0201_TZ3000/ do we need soldering serial or OTA is enough ?
thanks
https://github.com/pvvx/BLE_THSensor/tree/master/source/TS0201/bin
Hi, It seems very promisig, but not clear what flasher cable is needed, how to connect it etc. Could you share more detailed flashing instructions? Thanks in advance!