Closed rainer38 closed 3 months ago
I flashed the other 9 devices and i can connect to all of them. Only to the first one i can't connect. But this is not a great problem compared to how cheap they were.
Thanks for your help and the ticket can be closed.
Try writing with erasing the entire flash (option -a
):
python3 rdwr_phy62x2.py -p COMxx -a -r wh BOOT_xxx_vxx.hex
Areas protected from normal erase may contain some settings that are incorrect (RF, ADC).
Sorry for the late answer but now it works. Today i reflashed v1.7 with your command and i can connect to the device.
Thanks for the help.
Hi,
thanks for your effort for this nice project. I already updated my Xiaomi Thermometers and they work fine with your firmware. :)
Now i got a few cheap Tuya THB1 and tried to flash your firmware on them.
Therefor i soldered an usb2ttl serial adapter to the board and executed the following two commands:
python3 rdwr_phy62x2.py -p /dev/ttyUSB0 -e -r wh bin/BOOT_THB1_v16.hex python3 rdwr_phy62x2.py -p /dev/ttyUSB0 -r we 0x10000 bin/THB1_v16.bin
They executed successfully and the LCD shows "bot 16" after the first and "app 16" after the second command. I can also see some bluetooth beacons with "hcitool lescan --duplicates".
The problem starts when i try to connect to the device through this webpage from yours: https://pvvx.github.io/THB2/web/PHY62x2BTHome.html
I started the page in chromium on android to get the bluetooth web api and can see my device in the list. But when i try to connect to the device i get an connection failure error.
These are the screens from my android device:
![Screenshot_20240401-201241](https://github.com/pvvx/THB2/assets/21087560/157562f6-e893-4851-bd05-08dcf6309af6)
The translation of the messages doesn't help me at all where the problem could be.
Maybe you have a hint for me what i can try to connect to the device.
Thanks Rainer