logo elektroda
logo elektroda
X
logo elektroda

Identify Tuya Mini WiFi Relay Module with TR6260 Chip - Encountered by Anyone?

ferbulous 5565 81
ADVERTISEMENT
  • #1 20499099
    ferbulous
    Level 18  
    Hi, so i bought a tuya mini wifi relay module. I was expecting another beken device but this is the chip that it came with.

    Anyone has encountered this?
    Googling the chip name leads to this doc

    https://fccid.io/2AUUL-TR6260/User-Manual/User-Manual-4520594

    Identify Tuya Mini WiFi Relay Module with TR6260 Chip - Encountered by Anyone?
  • ADVERTISEMENT
  • #2 20499279
    p.kaczmarek2
    Moderator Smart Home
    It seems that TR6260 was mentioned at least once here:
    https://www.elektroda.pl/rtvforum/topic3960571.html#20459827
    It's swappable to ESP, but I will have to look for SDK in order to support it and furthermore I would need to get at least one piece somehow.
    Helpful post? Buy me a coffee.
  • #3 20499837
    ferbulous
    Level 18  
    p.kaczmarek2 wrote:
    It seems that TR6260 was mentioned at least once here:
    https://www.elektroda.pl/rtvforum/topic3960571.html#20459827
    It's swappable to ESP, but I will have to look for SDK in order to support it and furthermore I would need to get at least one piece somehow.


    Thanks, I intend to do that soon since i have a few esp02s
  • #4 20584129
    p.kaczmarek2
    Moderator Smart Home
    I've got a device with TR6260, but I am unable to find a suitable flasher/SDK for it yet.

    Boot log:
    
          рШ°АЖЖЮ`ЖfАцЮ■Ю~fЮцЮШрШ``°fЮцЖxрЮАц°Ю рцЮ■~ ШЮцЮxfЖ[00:00:00.681][01-01 18:12:15 TUYA Err][light_main.c:47] led_init LED_DRIVER_PWM_CW product_type: 0x5507
     [00:00:00.690][01-01 18:12:15 TUYA Err][cmd_rgb.c:70] ++++++++++++++++++++++++ <light_cmd_init_rgb> +++++++++++++++++++++++++
    
     [00:00:00.702][01-01 18:12:15 TUYA Err][tuya_main.c:219] sdk info: < TUYA IOT SDK V:1.0.10 BS:40.00_PT:2.2_LAN:3.3_CAD:1.0.2_CD:1.0.0 >
    < BUILD AT:2020_10_20_21_23_01 BY embed FOR ty_iot_wf_rtos_sdk AT tr6260 >
    IOT DEFS < WIFI_GW:1 DEBUG:1 KV_FILE:0 SHUTDOWN_MODE:0 LI      L╣  └╚      ─╒! иг  L╣  аг     p╦  p╦  L╣  h╦     └╣  SYSTEM Task                                                  еееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееее[01-01 18:12:15 TUYA Err][tuya_main.c:108] ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     [00:00:00.764][01-01 18:12:15 TUYA Err][tuya_main.c:109] +++++++++++ BUILD: 2021-12-16-11:24:04: +++++++++++
     [00:00:00.774][01-01 18:12:15 TUYA Err][tuya_main.c:110] +++++++++++ FNAME: line_rgb_wifi_user_2.2.10 +++++++++++
     [00:00:00.783][01-01 18:12:15 TUYA Err][tuya_main.c:111] +++++++++++ FKEY: keygdg4gpysneder +++++++++++
     [00:00:00.792][01-01 18:12:15 TUYA Err][tuya_main.c:112] +++++++++++ PID: euxjqrqtzgrr2bdk +++++++++++
     [00:00:00.801][01-01 18:12:15 TUYA Err][tuya_main.c:115] +++++++++++ KEY_EN: 0, IR_EN: 1, BOOT_CNT_EN: 1, BOOT_SMART: 0, BOOT_AP: 0, CFG_FOREVER: 0, CFG_FADE: 0, LTIME: 0, WFC_LED_ON: 0, C_CS: 0, C_ON: 0, RS: 2, MIC: 1, MAGIC: 0 +++++++++++
     [00:00:00.823][01-01 18:12:15 TUYA Err][driver_pwm.c:229] ++++++++++++ RGB channel r: 0, g: 1, b: 2, pn: 0 +++++++++++
     [00:00:00.832][01-01 18:12:15 TUYA Err][tuya_main.c:117] ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     [00:00:00.846][01-01 18:12:15 TUYA Err][tuya_main.c:124] led power on cnt: 6, nc_type: 1
     [00:00:00.852]
    ************************************** WF_START_AP_FIRST *****************************************
     [00:00:01.645][01-01 18:12:15 TUYA Err][light_main.c:47] led_init LED_DRIVER_PWM_CW product_type: 0x5507
     [00:00:01.655][01-01 18:12:15 TUYA Err][cmd_rgb.c:70] ++++++++++++++++++++++++ <light_cmd_init_rgb> +++++++++++++++++++++++++
    
     [00:00:01.667][01-01 18:12:15 TUYA Err][tuya_main.c:219] sdk info: < TUYA IOT SDK V:1.0.10 BS:40.00_PT:2.2_LAN:3.3_CAD:1.0.2_CD:1.0.0 >
    < BUILD AT:2020_10_20_21_23_01 BY embed FOR ty_iot_wf_rtos_sdk AT tr6260 >
    IOT DEFS < WIFI_GW:1 DEBUG:1 KV_FILE:0 SHUTDOWN_MODE:0 LI      L╣  └╚      ─╒! иг  L╣  аг     p╦  p╦  L╣  h╦     └╣  SYSTEM Task                                                  еееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееееее[01-01 18:12:15 TUYA Err][tuya_main.c:108] ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     [00:00:01.728][01-01 18:12:15 TUYA Err][tuya_main.c:109] +++++++++++ BUILD: 2021-12-16-11:24:04: +++++++++++
     [00:00:01.738][01-01 18:12:15 TUYA Err][tuya_main.c:110] +++++++++++ FNAME: line_rgb_wifi_user_2.2.10 +++++++++++
     [00:00:01.748][01-01 18:12:15 TUYA Err][tuya_main.c:111] +++++++++++ FKEY: keygdg4gpysneder +++++++++++
     [00:00:01.756][01-01 18:12:15 TUYA Err][tuya_main.c:112] +++++++++++ PID: euxjqrqtzgrr2bdk +++++++++++
     [00:00:01.765][01-01 18:12:15 TUYA Err][tuya_main.c:115] +++++++++++ KEY_EN: 0, IR_EN: 1, BOOT_CNT_EN: 1, BOOT_SMART: 0, BOOT_AP: 0, CFG_FOREVER: 0, CFG_FADE: 0, LTIME: 0, WFC_LED_ON: 0, C_CS: 0, C_ON: 0, RS: 2, MIC: 1, MAGIC: 0 +++++++++++
     [00:00:01.787][01-01 18:12:15 TUYA Err][driver_pwm.c:229] ++++++++++++ RGB channel r: 0, g: 1, b: 2, pn: 0 +++++++++++
     [00:00:01.796][01-01 18:12:15 TUYA Err][tuya_main.c:117] ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
     [00:00:01.810][01-01 18:12:15 TUYA Err][tuya_main.c:124] led power on cnt: 6, nc_type: 2
     [00:00:01.819]tuya_hal_get_serialno------------------------------------------
     [00:00:01.825]--tuya_hal_wifi_set_country_code:735--  [CN]
     [00:00:01.914][01-01 18:12:15 TUYA Err][boot_cnt.c:16] ******** boot count set: 6 ********
    
     [00:00:01.939][01-01 18:12:15 TUYA Err][light_irda.c:1373] ++++++++++++++++++++++++ <hal_ir_init> +++++++++++++++++++++++++
    
     [00:00:01.950][01-01 18:12:15 TUYA Err][light_irda.c:1360] ##<ir_config_init>ir_port: 21,ir_key_cnt: 24
    
     [00:00:01.959][01-01 18:12:15 TUYA Err][light_mic.c:377] ++++++++++++++++++++++++ <music_local_mic_init> +++++++++++++++++++++++++
    
     [00:00:01.971]--tuya_hal_wifi_set_work_mode:435--workmode 4
     [00:00:01.976]sniffer stop, crcerr_close
     [00:00:01.979]Ap Start Info, ssid:SmartLife-26CD passwd:[] channel:6 hidden_ssid:0 authmode:0
     [0000ff59]OK
     [00:00:01.988]
     [0000ffb4]OK 
     [0000ffe3]OK
     [00:00:01.992]
     [00010038]OK
     [00:00:02.001]
     [0001008d]OK
     [00:00:02.004]
     [000100e1]OK
     [00:00:02.006]
     [00010143]OK
     [00:00:02.009]
     [00010197]OK
     [00:00:02.012]
     [000101eb]OK
     [00:00:02.014]
     [00010241]OK
     [00:00:02.017]
     [00:00:02.019]wpa state:DISCON->SCAN.
     [00:00:02.022]vif_id:1, scanning:true
     [00:00:02.027]create task name[udp_ap_v3], stack[3584], func[40c45f8e], ret[1], handle[0024b200], prio[5]
     [00:00:02.037]vif[1],event[27]
     [00:00:03.325]vif_id:1, scanning:false
     [00:00:03.341]wpa state:SCAN->COMPLETED.
     [00:00:03.349]vif[1],event[1]
     [00:00:03.352]vif[1],event[27]
     [00:00:03.354]vif[1],event[15]
     [00:00:12.018][01-01 18:12:25 TUYA Err][boot_cnt.c:16] ******** boot count set: 0 ********
    
     [00:03:01.534][01-01 18:15:16 TUYA Err][wifi_cfg.c:31] ****** wifi_cfg_timeout_cb, boot_cnt: 0 ******
    
     [00:03:01.542]sniffer stop, crcerr_close
     [00:03:01.546][01-01 18:15:16 TUYA Err][cmd_status.c:184] app_status_clear, reason: 1
     [00:05:05.501]wait channel time. [1|4194303]
     
    

    There are some interesting results when searching for ty_iot_wf_rtos_sdk, but nothing solid yet
    Helpful post? Buy me a coffee.
  • #5 20585437
    p.kaczmarek2
    Moderator Smart Home
    It seems that this dev board:
    
    HLK-M20 Serial Port 2.4G WiFi Wireless Module IOT Serial to WiFi Transparent Transmission Low Power SDK M20 Development Board Ki
    

    is using TRS:
    Screenshot of an AliExpress listing for the HLK-M20 WiFi module.
    TR6260S1 WiFi module on a PCB.
    TRS6260S1
    Development board with TR6260 WiFi module on a white background. Image of two WiFi modules with the TR6260S1 microcontroller. Set of boards with a WiFi module and pin labels. Specifications of the HLK-M20 module with TR6260 chip.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #6 20587026
    ferbulous
    Level 18  
    That’s quite interesting although I haven’t seen much of tuya device running on this chip
  • #7 20587056
    p.kaczmarek2
    Moderator Smart Home
    Still no possible flasher tool in the sight. My board had Boot and RX and TX, and in general, datasheet looks kinda like ESP8266 (options to boot from SD, UART, SPI...?), but I haven't managed to get any more progress yet.
    Helpful post? Buy me a coffee.
  • #8 20812359
    karwo
    Level 31  
    The mentioned TR6260S1 chip is found in the "ELM 327 WiFi diagnostic interface" ELM 327 Wi-Fi diagnostic adapter with casing and label. Close-up of circuit board featuring TR6260S1, MC4063A, and LM393 components. Open ELM 327 WiFi diagnostic interface with visible circuit board featuring TR6260S1 chip Open ELM 327 WiFi diagnostic interface with visible circuit board featuring TR6260S1 chip Electronic module with various integrated circuits on a wooden surface. In addition to the aforementioned TR6260, there are MC4063A and LM393 in the interface.
    This is how it came into my hands by chance - maybe such information will be useful to someone.
  • ADVERTISEMENT
  • #9 20968506
    morgan_flint
    Level 14  
    p.kaczmarek2 wrote:
    There are some interesting results when searching for ty_iot_wf_rtos_sdk, but nothing solid yet

    Hello!

    A device based on TR6260 fell into my hands (a friend gave it to me to see if I could repair it) and I found this new (for me ) chip in it. I started searching to see if it was compatible with open beken, but I see that, unfortunately, that's not still the case and it seems it won't be in the near future.

    Just out of curiosity, I searched "ty_iot_wf_rtos_sdk" and found this other more recent thread here in elektroda (ty_iot_wf_rtos_sdk appeared in the "code" embedded in the first post), but the device on that thread is based on a different chip (RTL8710) that, according to your post in that thread, has a greater possibility of being "opened", as you've already done some work on it.

    So, my question is: Does the coincidence of having "ty_iot_wf_rtos_sdk" in their boot logs mean that these two chips (TR6260 and RTL8710) have something in common?

    If that was the case, maybe the possible future "opening" of RTL8710 could also benefit TR6260...

    Thank you in advance!
  • #10 20968593
    p.kaczmarek2
    Moderator Smart Home
    No, it's a different chip. See: https://github.com/openshwprojects/OpenBK7231T_App/issues/1020
    We need to find an UART way to flash it.
    Helpful post? Buy me a coffee.
  • #11 20968688
    morgan_flint
    Level 14  
    Ok, thanks!

    Hope the method for flashing is found soon; as somebody said elsewhere, these Chinese manufacturers change chips faster than other people do with girlfriends!
  • ADVERTISEMENT
  • #14 21291368
    p.kaczmarek2
    Moderator Smart Home
    Nice, what is the difference between "DownLoader" and "Flash Upload"? Can it both read and write?
    Helpful post? Buy me a coffee.
  • #15 21291411
    divadiow
    Level 34  
    potentially. the file path field is a save path, so it looks to be.
    I don't yet have any TR6260 devices to test. ELM327 and HLK-M20 in post
    Screenshot of a program with an open window for saving a binary file.

    Screenshot of UTP software interface with options and file path to testdump.bin.

    the readme file is useless

    Added after 57 [seconds]:

    do you still have the Transa Semi LED controller to test with?
  • #16 21292707
    divadiow
    Level 34  
    Maybe @morgan_flint and @ferbulous have theirs
  • #17 21292851
    morgan_flint
    Level 14  
    >>21292707 I still have it, I could give it a try.
  • #18 21297056
    divadiow
    Level 34  
    >>20812359

    boo. my ELM327 came with an SV6060P

    Circuit board with an electronic chip and components.
  • #19 21297598
    p.kaczmarek2
    Moderator Smart Home
    That sounds like a totally new chip, can you open separate topic and we will look for SDK?

    I should still have TR6260 somewhere...
    Helpful post? Buy me a coffee.
  • #21 21300908
    ferbulous
    Level 18  
    I still have it, already desoldered
  • Helpful post
    #22 21305048
    divadiow
    Level 34  
    I've received my HLK-M20 module but not worked out the UTP program yet. The HLK-M20 does broadcast an AP. I'm expecting it to be similar to their other shipped firmwares. AT command tests and such (detailed in HLK-M20 PDFs).

    Screen to connect to HLK-M20_10AA Wi-Fi network.

    I attach the annoyingly difficult to obtain HLK-M20.7z mentioned here https://ask.hlktech.com/question/1039.html as well as the natively-English FCC PDF for the HLK-M20

    Code: Text
    Log in, to see the code
  • Helpful post
    #24 21310036
    divadiow
    Level 34  
    I have good news. Flash can be read to file as follows:

    GPIO14/TOUT2 needs to be grounded at power-on. Like LN882H this needs to be before power to USB-TTL. Just resetting the device (RST->GND) with GPIO14 grounded will bring it up in spi-flash boot mode, that being standard boot, NOT uart boot mode:

    Screenshot showing a console set to a baud rate of 57600 with messages entry BootRom and spi-flash boot mode.

    If you're watching TX then the correct procedure will give this output:

    Fragment of a terminal window displaying boot mode messages with a selected baud rate of 57600.

    then configure the UTP program as follows, using the boot_nocrc.bin from the 烧录工具.zip file posted above. The flash is 1mb so length is 0x100000

    PC Local Filepath is just where you want to save the file

    Screenshot of the UTP application showing flash upload settings.

    And so attached is the HLK-M20 factory firmware backup. It took 2-3 mins so could well be transferring at the 57600 baud used to capture log out.

    On the HLK-M20 module GPIO14/TOUT pad is the location of EN on ESP-12F, so if using an ESP universal adaptor it's just a case of grounding EN header.

    Diagram of an electronic module with highlighted pins

    HLK-M20 module mounted on a PCB with pin labels and wiring.

    The LSC6260 module is a little different (pic only added to show TOUT2 location difference - ignore the grounding of RST depicted)
    Close-up of an electronic module with visible pins labeled as TMS, TCK, IO21, IO20, and others.

    GPIO pin assignment table for the HLK-M20 module.

    I've not moved onto flashing yet. We could do with a backup or two from some Tuya devices.
  • Helpful post
    #25 21310437
    divadiow
    Level 34  
    And to flash firmware:

    If flashing a backup taken from 0x0 then up to 0x4000 needs to be removed from the file using a hex editor. File 1 needs to be the boot_nocrc.bin file starting from 0x0 then the rest of the trimmed flash from 0x4000

    Screenshot of a firmware flashing tool with the Downloader tab open.

    If you flash the whole factory backup file from 0x4000 then it doesn't detect the partition table where it's supposed to start - 0x6000

    Screenshot from a hex editor showing data in hexadecimal format with addresses and highlighted entries.

    and the programmer complains with [INFO]Please add partition:
    Screenshot of firmware flashing software with file list and operation log.
    and the failed boot log out:

    Code: Text
    Log in, to see the code


    and finally, a blank English translation of the Downloader tab
    Screenshot of firmware flashing application interface with the Downloader tab visible.
  • #26 21310648
    micbanand
    Level 5  
    so I just wire up. my TR6260S1 with 3v3, gnd, rx, tx.
    and GPIO14 to ground (instead of missing gpio0 pin) when inserting my programmer
    Like I did with the replacement ESP-02S module?
    if I will try to make a dump in the weekend :)
  • #27 21310652
    divadiow
    Level 34  
    That certainly sounds correct, yes.

    (common grounds and short cables of course ;) )
  • #28 21311788
    jekader
    Level 6  
    Thanks @divadiow for gathering this valuable info! The SDK was the missing piece for this platform, worth sharing it on GitHub at some point.

    The toolchain seems to be a standard one from Andes - multiple versions are available here https://github.com/andestech/Andes-Development-Kit/releases
    The sources are available here: https://github.com/andestech/nds-gnu-toolchain

    Didn't manage to find much application-level source code, just some demos for a third-party SDK:
    https://github.com/Akeeta/Akeeta-SDK-TR6260/tree/master/akeeta_tr6260/test_example
  • #29 21311807
    divadiow
    Level 34  
    Sure. Cool
    What does that mean for ever making a working OpenTR6260 I wonder

    Added after 1 [hours] 25 [minutes]:

    jekader wrote:
    Didn't manage to find much application-level source code, just some demos for a third-party SDK:https://github.com/Akeeta/Akeeta-SDK-TR6260/tree/master/akeeta_tr6260/test_example

    ah. I knew I'd seen the partition table laid out nicely somewhere. Here's it a bit tidier

    Table showing the partitioning of 1M Flash into various partitions with start and end addresses and notes.

    Added after 2 [minutes]:

    jekader wrote:
    worth sharing it on GitHub at some point

    https://github.com/divadiow/TR6260
  • #30 21312766
    jekader
    Level 6  
    Tested the SDK and it does work (does produce a binary at least).

    Steps are:
    1) download toolchain, extract it and add the bin subdirectory to PATH
    To verify, this command should display the compiler version: nds32le-elf-cpp --version
    I used this official release but the one attached to this thread should work as well. On Windows, cygwin might be needed too.
    2) Install GNU make depending on the OS used
    3) Download the SDK and extract it, then go to the scripts directory and run make st_tr6260s1_diff
    4) grab the binaries from the out/tr6260s1/standalone folder of the SDK, xip.bin seems to be the one

    The application itself built by the makefile is in ref_design/standalone/standalone.c of the SDK - hope this helps bootstrap further porting progress.

Topic summary

The discussion revolves around the Tuya Mini WiFi Relay Module equipped with the TR6260 chip, which some users have encountered. Initial inquiries reveal that the TR6260 chip is swappable with ESP chips, but users are struggling to find suitable SDKs or flashing tools for it. One user shared boot logs indicating the presence of the Tuya IoT SDK, while another noted that the TR6260S1 chip is also found in the ELM 327 WiFi diagnostic interface. There is speculation about the compatibility of the TR6260 with other chips like the RTL8710, but it appears that the TR6260 is not currently supported by open-source firmware like OpenBeken. Users express hope for future developments in flashing methods for the TR6260.
Summary generated by the language model.
ADVERTISEMENT