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
Tuya BLE sensor: BTH01 #1
Comments
Разработка PHY6222 только началась. Development of PHY6222 has just begun. |
Соединения на печатной плате BTH01
|
Тестовая прошивка для BTH01 готова, протестирована. |
Hi, first of all thank you for the hard work done! I just flashed your latest firmware BTH01_v05.hex on a BTH01, Bluetooth communication works but the temperature and humidity values were 0, the battery value is fine. I have hope that you can also implement this sensor? Thanks so much again! |
I don't have AHT30 yet. But I added processing code. There is no opportunity to check yet... |
Flashed FW 0.7 and the AHT30 works perfectly! Great job |
Did you flash OTA with the example site or did you solder in? Is this fully functioning firmware to add to home assistant via proxy and still has functional screen or is this just testing getting custom firmware on the device? I tried the example web page but it wouldn't list my test device. |
@pvvx Hi Victor! I have v0.6 flashed via serial. can i update to 0.7 OTA? or do I have to do this over serial a last time? |
v0.x is the firmware for tests. |
he guys. sorry but i dont gt how to get the chip to flash mode? |
In my case it worked with TM left open and RST shortly pulled to GND |
|
with RTS to REST_N i get
but with " RST shortly pulled to GND" it works. |
Linux ? - Everything is crooked there. |
yes, never used windoze in 20 years. so linux is my natural OS. |
I have the same error with windows, trying to reset manually (I use a arduino uno with board with the atmel removed as a serial adapter and reset line is not availble, I think.) |
its tricky...even with another instance inbetween. i started the flash and grounded the pin afterwards shortly. you maybe have to play with the timing |
Since i get the "Reset ok" message, I guess my timing is ok, but it's still unable to read the revision |
also did get the "reset ok" as you can read in my post, but it was not "ok". |
I did this:
Flashed that way first try with no issues. |
REST_N must be released when the Reset OK message occurs. |
New serial adapter is already on it's way 😀 I hope it works then |
On Linux there are always problems with setting the character reception timeout and RTS/DTR on USB-UART adapters. |
I've got exact the same board. And yes, some usb adapters doesn't work with some devices but work with others... I used CH341A programmer in TTL mode on mine. |
Different USB2Serial worked the first time, even though I did the reset manually. |
Firmware 1.6 |
Just an FYI for future readers of this issue thread, in my case with my serial adapter i had to tap REST_N to ground to get it working instead of just going straight to ground and then releasing like was suggested. Was using an older cp210x adapter. |
The script has been fixed to work on Linux. |
good to know |
Sorry if I got this wrong, but I can't use OTA first, I have to flash using UART? And could I do it with a raspberry pi instead of with a uart usb adapter? |
On rPi you need to switch something to output RTS... /boot/config.txt ... |
Have one of those, initially it was with CHT8305, but with original firmware I didn't find a use for it. Later removed 8305, as i needed it as a spare part for something else. Found this firmware, looked through source, and seen that it supports AHT2x. Instead of 8305, soldered AHT21, as they are almost pin compatible (AHT21 lacks AD0 and ALERT pins, instead they are NC), and can confirm that this mod works. |
@pvvx - is it not expected to support other data packet formats (for example ATC1441), like for devices on the Telink chipset? |
BTHome is the only open standard with a registered UUID and paid for in the Bluetooth SIG by Allterco. |
Hello
I have a very similar sensor: BTH01
Marking on SoC: PHY6222QCW04IYOJSH (PHY6222QC-W04C)
Marking on sensor: 8305 (CHT8305C)
The case looks cheap, same as TS0202, disassembles very easily
Current price on Aliexpress is less than $2
The text was updated successfully, but these errors were encountered: