Giter VIP home page Giter VIP logo

ble_thsensor's Introduction

BLE_THSensor

BLE temperature and humidity sensor based on TS0201, TH03Z

#ATTENTION: Starting from version 4.8, support and code for the described models moved to https://github.com/pvvx/ATC_MiThermometer!

#ВНИМАНИЕ: Начиная с версии 4.8 поддержка и код описанных моделей переехала в https://github.com/pvvx/ATC_MiThermometer!

  • Варианты Zigbee firmware находится в ZigbeeTLc

ZTH01, ZTH02 работают с доработкой - требуется выпаять лишнюю микросхему и впаять перемычки.

Основные характеристики

  • Поддерживаемые форматы BLE рекламы: BTHome v1, BTHome v2, PVVX, MiHome.
  • Поддержка Bluetooth ver 5 c LE Long Range.
  • Объем памяти замеров 51943 шт. GraphMemo.html
  • Среднее потребление зависит от настроек - менее 20 мкА. TH03Z с установленным интервалом рекламы на 5 сек, TX RF +0 дБм потребляет до 8 мкА.

Функции кнопки

Кратковременное нажатие кнопки перключает BLE рекламу в режим Legacy (BT4.2) на 80 секунд с Advertising interval в 1 сек. Используется для быстрого соединения и если включен режим BLE LongRange или установлен большой Advertising interval. Нажатие кнопки сопровождается включением светодиода.

Hастройки

Для настройки BLE версий используется TelinkMiFlasher.html.

Первоначальная прошивка устройства

Первоначально перепрошить устройство возможно двумя вариантами.

  1. С помощью Zigbee OTA файлов 1141-d3a3-00993001-xxxx.zigbee в вариант BLE или с помощью файлов 1141-d3a3-01993001-xxxx.zigbee в ZigbeeTLc.
  2. USB-COM программатором через выводы разъема SWS и RST с файлами xxx.bin. При первом программировании из варианта Tuya желательно стереть всю Flash.

После прошивки в вариант BLE должно появиться устройство с именем "THS_xxxxxx", где "xxxxxx" - три последних байта MAC в hex виде.

Далее в TelinkMiFlasher.html возможно прошить любую версию, включая Zigbee.

Файлы прошивки для восстановления из ZigbeeTlc в BLE: 1141-02xx-99993001-xxxxxxxxxx.zigbee

Самый простой программатор-эмулятор Telink-Swire без обратной связи: WebUSBCOMflasher

pgm

Более сложный программатор-эмулятор Telink-Swire с переходом на UART связь: TlsrComProg825x

Полнофункциональный аппаратный Telink-Swire программатор: TLSRPGM


Работа в морозилке холодильника (BTHome v2, BLE LongRange для стабильной дальней связи через железные стенки холодильника):

ble_thsensor's People

Contributors

pvvx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ble_thsensor's Issues

Can’t update from TelinkMiFlasher

Hello,

It seems I can’t update the sensor with the button on the Telink Flasher webpage. If I click on "Custom firmware : TS0201_v47.bin", nothing happens.

Screenshot_20240411-122829

Any idea ?

Thanks

Supported device

Firmware for ZTH01 and ZTH02

Hi,
can you build a firmware for a modified ZTH01?
I have removed the so16 and would wire the pins accordingly to the attached picture.

SCL (AHT30) - C3
SDA (AHT30) - C2
VDD (AHT30) - D2
Button - B4
LED - B5

Best regards, Stefan
wiring

Zigbee: TS0201 by _TZ3000_xr3htd96

I have a TS0201 by _TZ3000_xr3htd96, which is already Zigbee and reports the following OTA data:

Manufacturer ID: 4417 (0x1141)
Image Type: 54179 (0xD3A3)
Image Version: 70 (0x46)

Is there any method to use Zigbee OTA to convert this to an optimal pvvx zigbee firmware (1141-0211-01183001-ZTS0201Z3000.zigbee)?

Or is the only way to flash these from factory, with a wired USB-TTL programmer?

Tuya ZTH05

Interesting project! So it seems to be possible to turn these ZTU zigbee modules in BLE with your custom firmware.
Will order a TS0201 to test.
I have a Tuya ZTH05 temp/humidity ordered that will be delivered soon.
I read about this ZTH05 the battery drains too fast but it seems that it is equipped with the same ZTU module.
So perhaps this ZTH05 could be added to this repo?

I/O pin for binary_sensor

TS0201 shows up in Home Assistant:
binary_sensor.ts0201_opening

binary_sensor ts0201_opening

Is this implemented in the firmware?
If yes, wich I/O pin to use to connect a reed switch for example?

Aliexpress links for devices with header?

I was wondering if this issue can stay, or if others are interrested, but can other please share aliexpress links for the TS0201 as showin with the header for flashing etc.? It seems to me that all the tuya zigbee ones use same case, but different internals. Or is there some secrett way to search and spot these (telink + header)?

I did created flashing jit for WSD500A, but header is always nicer.
In general these AAA battery based devices seems to last much longer, especially in cold, than cr2032 ones. I would like to monitor temperatures and humidity in remote property, that is quite large,
BT - epshome gateways - wifi - vpn, is the best way, at least for me, to collect the data. And with BT i just do not need to care about pairing etc. So these firmwares are great.
So that is why I'm looking for rather easy way to modify about 20 of these. But last time I ordered from few selers all were wsd500a and with those, i have success in 1 in 10 attempts, if that, when flashing.

Flashing instructions

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!

Another ZTU sensor: TH03Z

Hi, I bought a similar round sensor: TH03Z
The sensor uses a ZTU module and a 2450 battery.
Ali: https://aliexpress.ru/item/1005005942067380.html

I think the sensor is being used: GXHT30
The GXHT30 sensor is fully compatible with the SHT30 sensor.

I tried to flash the firmware from the TS0201 sensor, but instead of readings, as expected, I received zero values :)
(I don’t think it was worth removing the protective film from the sensor, but I did it while trying to find the markings)

TH03Z

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.