rickbronson / Open-Source-Software-on-a-Tuya-TH01-Temperature-Humidity-Sensor

12 stars 2 forks source link

error Cannot get bus #1

Open GHBLoos opened 2 days ago

GHBLoos commented 2 days ago

Hi,

I followed the steps which were al very clear. But I can't program the sensor. I keep getting cannot get bus.

pi@raspberry:~ $ python3 hid_download_py/uartprogram OpenBK7231N_QIO_1.17.301.bin -u -d /dev/ttyUSB0 -w -s 0x0 -b 460800 UARTDownloader.... program.... Cannot get bus. : | | [ ?k/s]

Before hitting enter on the command line, I connect pin 1 of the CB3S to GND. I disconnect and within half a second I hit enter.

Just to be sure about the hookup: 3.3v to Bat+ TX to RX2 RX to TX2 gnd to pin 9 gnd to pin 1 (switch)

Please let me know if I do something wrong or else what I should try.

Thanks

GHBLoos commented 2 days ago

Ok, after many, many tries I go it flashed. I tried several things, like changing to a prolifc usb to uart and connecting the USB while holding the switch. I can't remember what I exactly did, but it works now. The hookup is correct, but maybe the exact steps aren't yet.

~Only thing is that the temperature and humidity give 0,00 °C and 0%. So I think there is still something wrong with the setup/settings. Not sure exactly what and where to start. Maybe I will return here later for this question~

GHBLoos commented 1 day ago

Busy with a second TH01 to flash. But can't seem to get the bus ready to flash. Help is appreciated.