Xinyuan-LilyGO / T-ZigBee

Zigbee Ultra Low Power IOT Development Board
GNU Affero General Public License v3.0
72 stars 18 forks source link

TLSR8258 not responding after upgrade (Red Led PD4 not working) #13

Open SangaranSiva opened 1 year ago

SangaranSiva commented 1 year ago

Hello,

I try to use the sensor_demo example to use my devices to connect to Zigbee2MQTT. I upgrade the firmware of TLSR8258 following the instructions (DIP switch and U2T) on sensor_demo, I upload the sensor_demo code and there was no error when flashing but the red led (PD4) is not working anymore.

I don't know if it's normal or not. Is there something I have to do ?

20220808_171618

ejri commented 1 year ago

Had the same issue. No red light after TLSR8258 firmware update.

Though the sensor_demo doesn't seem to work for me...

swkim01 commented 1 year ago

@SangaranSiva @ejri How did you build and upload the firmware from the sensor_demo.ino? Use arduino ide with installing core and esp32-c3 settings as this link in order to build and upload the firmware.

SangaranSiva commented 1 year ago

@swkim01 I upgraded the firmware of TLSR8258 to hciDevice_ZR_8258_SDK_eb644f1_MD5_3e7c395bacca28475952808a79ff2ec1.bin using USBCOMFlashTx.html found in the same link.

Ok I will try, thanks.

ejri commented 1 year ago

@swkim01 Yeah, followed the same link you posted.

factory_test.ino works as expected, http request over wifi. Though for anything related to zigbee, it doesn't seem to work.

zigbee2mqtt returns a LittleFS error, saying that the board is a esp32-c3 chip, despite choosing the esp32-c3 board. https://github.com/Xinyuan-LilyGO/T-ZigBee/issues/6

light_demo.ino doesn't get recognized by sonoff 3.0 usb https://github.com/Xinyuan-LilyGO/T-ZigBee/issues/7

lbuque commented 1 year ago

@ejri @SangaranSiva

Please follow this document strictly to burn new firmware for tlsr8258.

Make sure that the Red Led PD4 is working properly, and then perform other operations.

ejri commented 1 year ago

to clarify, I followed the document very closely.

This is a screenshot that the firmware file has been successfully uploaded, as in the document.

Screen Shot 2022-08-09 at 7 24 59 PM
lbuque commented 1 year ago

This flasher has no feedback, it is only responsible for sending, no matter whether the chip is receiving normally or not.

lbuque commented 1 year ago

Before burning tlsr8258, you need to burn factory_test.

factory_test is used to power on the tlsr8258

SangaranSiva commented 1 year ago

I burn factory_test then I flash the firmware with a new board, but i got the same result.

SangaranSiva commented 1 year ago

I also try as mention here using python, but the led is still off. It looks like the tlsr8258 is bricked.

python3 TLSR825xComFlasher.py -p /dev/cu.usbmodem539C0127771  -t 70 wf 0 hciDevice_ZR_8258_SDK_eb644f1_MD5_3e7c395bacca28475952808a79ff2ec1.bin
=======================================================
TLSR825x Flasher version 00.00.04
-------------------------------------------------------
Open /dev/cu.usbmodem539C0127771, 921600 baud...
Reset module (RTS low)...
Activate (70 ms)...
UART-SWS 92160 baud. SW-CLK ~24.9 MHz(?)
Inputfile: hciDevice_ZR_8258_SDK_eb644f1_MD5_3e7c395bacca28475952808a79ff2ec1.bin
Write Flash data 0x00000000 to 0x00032f84...
-------------------------------------------------------
Worked Time: 81.594 sec
Done!
lbuque commented 1 year ago

I also try as mention here using python, but the led is still off. It looks like the tlsr8258 is bricked.

python3 TLSR825xComFlasher.py -p /dev/cu.usbmodem539C0127771  -t 70 wf 0 hciDevice_ZR_8258_SDK_eb644f1_MD5_3e7c395bacca28475952808a79ff2ec1.bin
=======================================================
TLSR825x Flasher version 00.00.04
-------------------------------------------------------
Open /dev/cu.usbmodem539C0127771, 921600 baud...
Reset module (RTS low)...
Activate (70 ms)...
UART-SWS 92160 baud. SW-CLK ~24.9 MHz(?)
Inputfile: hciDevice_ZR_8258_SDK_eb644f1_MD5_3e7c395bacca28475952808a79ff2ec1.bin
Write Flash data 0x00000000 to 0x00032f84...
-------------------------------------------------------
Worked Time: 81.594 sec
Done!

Do you have a win computer? You can try to use a win computer to burn the firmware!

At present, we have not received feedback from other customers that tlsr8258 cannot be burned!

Hope to get your help! Find out if it is a product defect! ! !

SangaranSiva commented 1 year ago

Hi, I try using a win computer, but the led is still off.

python3 TLSR825xComFlasher.py -p COM18  -t 70 wf 0 hciDevice_ZR_8258_SDK_eb644f1_MD5_3e7c395bacca28475952808a79ff2ec1.bin
=======================================================
TLSR825x Flasher version 00.00.04
-------------------------------------------------------
Open COM18, 921600 baud...
Reset module (RTS low)...
Activate (70 ms)...
UART-SWS 92160 baud. SW-CLK ~23.5 MHz(?)
Inputfile: hciDevice_ZR_8258_SDK_eb644f1_MD5_3e7c395bacca28475952808a79ff2ec1.bin
Write Flash data 0x00000000 to 0x00032f84...
-------------------------------------------------------
Worked Time: 85.042 sec
Done!
lbuque commented 1 year ago

You use a multimeter to measure the two places marked in Chinese in the picture below.

Is the voltage 3.3V

D1EYO757{N8SJOY8VW5N07A

SangaranSiva commented 1 year ago

Yes it's 3.3V.

lbuque commented 1 year ago

Is the status of the dip switch the same as the picture below?

image

90e37bd39d3c0f30df89eaaf1eadc4e

SangaranSiva commented 1 year ago

Yes it's the same.

lbuque commented 1 year ago

Please contact our customer service for compensation!

ejri commented 1 year ago

It’s the same for me for one of the boards.

I have 3 boards in total. I’ll try it on all the other two and let you know.

ejri commented 1 year ago

@liangyingy I have tried the three boards and they have the same issue. I will contact customer service and share with them the video of uploading the firmware and testing it, exactly as mentioned in https://zbhci.readthedocs.io/en/latest/user-guide/burning.html

lbuque commented 1 year ago

@ejri I don't quite believe that all three boards will have the same problem.

ejri commented 1 year ago

@liangyingy Sent the video to customer service, please check it. (it's a youtube video showing the step by step, following the tutorial). Please send me your email, I can forward it to you too.

pcopa commented 1 year ago

I'm having the same issue. Tried to flash several images but they all result in "Failed to initialize LittleFS". This is what I get:

Executing task in folder zigbee2mqtt: C:\Users\schel\.platformio\penv\Scripts\platformio.exe device monitor 

--- Terminal on COM7 | 115200 8-N-1
--- Available filters and text transformations: colorize, debug, default, direct, esp32_exception_decoder, hexlify, log2file, nocontrol, printable, send_on_enter, time
--- More details at https://bit.ly/pio-monitor-filters
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H
ESP-ROM:esp32c3-api1-20210207
Build:Feb  7 2021
rst:0x1 (POWERON),boot:0xd (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0x438
load:0x403ce000,len:0x918
load:0x403d0000,len:0x24e4
SHA-256 comparison failed:
Calculated: 080c5cb68a075ced55f248b97bca965e3e5bd5da80a64e34e6a1638f89d6f64e
Expected: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
Attempting to boot anyway...
entry 0x403ce000
./components/esp_littlefs/src/littlefs/lfs.c:1071:error: Corrupted dir pair at {0x0, 0x1}
E (211) esp_littlefs: mount failed,  (-84)
E (211) esp_littlefs: Failed to initialize LittleFS
[   210][E][LittleFS.cpp:94] begin(): Mounting LittleFS failed! Error: -1
An Error has occurred while mounting LittleFS
lbuque commented 1 year ago

@pcopa Please execute the following command in the terminal of platformio:

pio run -e ttgo-t-oi-plus -t upload
pio run -e ttgo-t-oi-plus -t uploadfs
shojkeee commented 1 year ago

The LED does not work because the instructions for the sensor_demo and light_demo firmware present the same firmware for TLSR8258. I think that's the problem. Please people who are running this git, edit the instructions. It seems to me that the wrong firmware has been added for sensor_demo

shojkeee commented 1 year ago

but no. as it turned out, this is not the problem. liligo.light is working. but sensor_demo is not. As soon as sensor_demo.ino is poured into the esp32-c3, the diodes stop burning from the TLSR microcontroller. The problem is clearly sensor_demo.ino

shojkeee commented 1 year ago

I found what the problem is. The sensor_demo program is not going correctly because of the platform.ini file. Change platform.ini to the values that I attach below in the sensor_demo folder

[platformio] src_dir = . lib_dir = ../..

[env:ttgo-t-oi-plus] platform = espressif32 board = ttgo-t-oi-plus framework = arduino board_build.mcu = esp32c3 board_build.f_cpu = 160000000L upload_speed = 921600 monitor_speed = 115200 lib_deps = mathertel/OneButton@^2.0.3 adafruit/DHT sensor library@^1.4.4 adafruit/Adafruit Unified Sensor@^1.1.5 build_flags = -D CORE_DEBUG_LEVEL=3

lbuque commented 1 year ago

@shojkeee The following code snippet has enabled RT9080: https://github.com/Xinyuan-LilyGO/T-ZigBee/blob/42fd137ad32bba083e7f0f41dcc42219afecbdde/examples/sensor_demo/sensor_demo.ino#L46-L47

milekium commented 1 year ago

Before flashing the firmware with 'TLSR825xComFlasher wf ' you need to delete all regions of flash with 'TLSR825xComFlasher ea '.

purha commented 10 months ago

I have the same issue, after flashing the TRLS chip, the red light doesnt turn on, none of the TLSR825xComFlasher.py commands work. Before using the web ui to flash I tried python version which gave the error:

Reset module (RTS low)...
Activate (6000 ms)...
UART-SWS 92160 baud. SW-CLK ~43.3 MHz(?)
Inputfile: hciDevice_ZE_8258_SDK_eb644f1_MD5_a27ce68a94bc19284c5c87a4e0aa416b.bin
Write Flash data 0x00000000 to 0x00027404...
Error Read Flash Status! (0)
Error write sector at 0x000100!

and after flashing from the ui the device seems to be bricked.

❯ python3 TLSR825xComFlasher.py -p /dev/cu.usbserial-54350178781 -t 3000 ea
=======================================================
TLSR825x Flasher version 00.00.04
-------------------------------------------------------
Open /dev/cu.usbserial-54350178781, 921600 baud...
Reset module (RTS low)...
Activate (3000 ms)...
Chip sleep? -> Use reset chip (RTS-RST): see option --tact

any ideas?