-
Notifications
You must be signed in to change notification settings - Fork 33
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
TH03 custom firmware #129
Comments
https://pvvx.github.io/TS0601_TZE204/ |
the display will work in this case? |
The required firmware and the option of how to solder the jumpers have not yet been made. |
I'm ready to be a tester of it ) I can desoldering/soldering, I don't have soldering fan, but I think I can find how to desoldering the Tuya MCU |
I have the following names in the firmware of the ZTH05 thermometer from Tuya: There are 4 types of sensors possible on the PCB. |
Let you know when recheck with my device |
Could you please share some photos of the pcb and the imprint of both chips? I have a working solution for ZTH05 https://pvvx.github.io/TS0601_TZE204/. Maybe this works with small changes on your device. |
I don't see any tuya mcu unit It's more similar to th05 but ZigBee version |
Yes, it is completely different from ZTH05. |
How we can detect or debug which chip is used? Is it possible to take off the metalic holder at top? |
Looks like the metal (rf) cap is soldered to the pcb. True? Maybe it's also fixed with latches through hole? Then you have to take your hot air gun and desolder the whole pcb first and then the cap. Of course there will be a good chance that you'll destroy the "chip". It depends on your soldering skills. |
I'm already ask my friend to desoldering metal cup, so in any case give you info what inside ) |
In description of the to the issue I post the link to ali also ) |
By the link https://www.aliexpress.com/item/1005007309529179.html I ordered these: The main differences between Xiaomi and Tuya sensors are that Xiaomi always has a larger communication radius due to the correct layout of the printed antenna and all components are of significantly higher quality. |
In my case the same, but do diff region it can be delivered. Thus I select the city where it's posible and in adress line specify my postal code and my city with the street. Postal company route to needed place without any issue ) You can try to do this in the same way. Great lifehack ) |
Can I try to use Zigbee OTA to flash custom firmware? Above picture can help to understand if it's TLSR8258? |
TLSR8258F512ET32 ? |
As I know BLE is not here ( only zigbee... or BLE can be not powered during init the chip? Without Zigbee it seems it's TLSR8656F512ET32 |
Quartz at 24.0 MHz, like all TLSR825x. All TLSR825x have the same crystal. The only difference is in the plastic case and what pins are made from the crystal. |
Where I can take custom firmware and how to flash? |
For the TH03Z variant, the firmware needs to be created. Find out which pins go where, how the LCD segments are routed. Take the source code and write... :) Or wait until I get TH03Z and create firmware for it, make changes to TelinkMiFlasher and other software, finish writing all the README, check the work with the new TH03Z firmware... Not before the New Year. |
I can also invistigate, I have only one question if something goes wrong how to flash via UART... since I'm not sure where the uart pins to flash... May be by photos you already find them? ) |
It seems TX under P2 section (numeation from P2 text)
But while connection nothing happens ( |
First, you need to read the existing Tuya firmware. The simplest option: Datasheet DS_TLSR8258-E_Datasheet for Telink BLE IEEE802.15.4 Multi-Standard Wireless SoC TLSR8258.pdf : |
Ok, I have USB-Serial TTL can I use it also? But is not clear how to use RST? |
If this is so new to you, how will you create the firmware? Pictures of wires won't do. A map of the segments on the LCD glass is required. Example -https://github.com/pvvx/ATC_MiThermometer/blob/master/src/lcd_mho_c122.c#L19-L41 PS: Only one firmware version was created, which was created without taking into account the thermometer I had, based on FaBjE data. |
I'm able to read the firmware
|
TLSR8258 use 1 MB or 512 KB Flash.
|
Ahh, it's SRAM 64k ) So tiny and 512k... |
Have some additional info:
As I understand this driver can works via i2c... Am I right? Since the same driver at TH05 connected via i2c as I can see from the code of it. Is not clear why it's connected to UART pins... @pvvx Can you point me to the correct docs? Official docs mentioned i2c but in the table of pins mentioned serial in/out on the SDA pin of the driver. Can I somehow using DEBUG UART to print somehow debug info? |
https://pvvx.github.io/TH-05/ |
Ok, I've already use this code. If it works only via i2c, in this case I'm going to find where the mistake. Thanks for documentation |
The LCD driver is the same as LYWSD03MMC B1.9.
Without PowerProfiler, writing BLE or Zigbee firmware is useless. Minimum for purchase PowerProfiler
What other debug output in UART? |
I've prepared BLE firmware with th following configuration:
And device up and I able to connect via BLE I'm getting H&T data, battery, led and key is working but nothing with screen, it even don't turn on ( ![]() Any suggestions/ideas what I can do with LCD to init it? |
I've notice I can specify custom command which can be send to device, I'm interesting to I2C scan... How I can do this? |
My bad, I miss the R between driver, thus It's connected to I2C bus as needed with R1 which the same capacity as R3 for tha TH sensor. It's seems need to pullup some pin to wakeup it before I2C init Sorry for it... My bad ( |
BLE firmware "TH03_v48.bin" added. Another emulation of a thermometer from Tuya = Buy and throw away. https://pvvx.github.io/TS0201_TZ3000_TH03/ - Added measurements of the original Zigbee firmware consumption. It looks like this is a fake "Tuya" from "Sonoff". The Zigbee firmware is marked by the manufacturer as "Sonoff". The minimum current for TH03 when all chips are in sleep mode is 13 μA! This is how much LYWSD03MMC consumes when working in BLE with transmission every 2.5 seconds. TH03 Tuya (Sonoff)Zigbee -> BLE: |
Thanks, for your work and quick response. Close. In any case who dissagree can take work from BLE and migrate here |
Is any chance to upload custom firmware analogue of TH03Z with LCD?
https://www.aliexpress.com/item/1005007309529179.html?spm=a2g0o.order_list.order_list_main.11.a23b1802WLv9gX#nav-specification
The issue of zigbee2mqqt Koenkk/zigbee2mqtt#23983
The text was updated successfully, but these errors were encountered: