Tuya-convert: Unable to flash LSC SmartConnect LED Strip

Created on 16 Oct 2019  路  12Comments  路  Source: ct-Open-Source/tuya-convert

Hey everyone,

Last week I've bought a LSC SmartConnect led strip at Action (LSC, 970750), which uses the Tuya platform. I want to flash it so it can be used with HomeAssistant via MQTT instead of relying on the native Chinese platform ofcourse.

The device can be placed into pairing/flashing mode by quicky plugging and unplugging the powercable three times in succession, afterwards the led strip will flash rapidly.

The AP vtrust-flash is online and I can connect to it with a smartphone, and the device is in flashing mode. It looks like SmartConfig is succesfully flashed but the proces is stuck on "Waiting for the upgraded device to appear":

====================================================== Starting pairing procedure in screen RTNETLINK answers: File exists ~/tuya-convert Waiting for the upgraded device to appear If this does not work have a look at the '*.log'-files in the 'scripts' subfolder!
I've already tried to use another branch which solved the flashing problem for another user (can't come up with the name anymore) and I've double checked the compatibility of the device. Can anyone care to take a look at the logs and help me out? Many thanks in advance.

Logfiles
smarthack-mqtt.log
smarthack-web.log
smarthack-smartconfig.log
smarthack-psk.log
smarthack-wifi.log

Most helpful comment

According to your web log, you have another process running on port 80.

I missed that. I've killed the proces responsible for hogging port 80 and tried again, but to no avail. I've also added ports 80,42,1883 and 8883 to my firewall since I just remembed I have ufw installed but after trying for a while, I still can't get the led strip to connect.

Any other ideas? Seems more people are having this issue.

All 12 comments

According to your web log, you have another process running on port 80.

According to your web log, you have another process running on port 80.

I missed that. I've killed the proces responsible for hogging port 80 and tried again, but to no avail. I've also added ports 80,42,1883 and 8883 to my firewall since I just remembed I have ufw installed but after trying for a while, I still can't get the led strip to connect.

Any other ideas? Seems more people are having this issue.

@Pannnenkoek @DerpyDoom @Vibestar

Can you retrieve the productKey or schema for the device? You could do this by capturing the device registering with the cloud, using tuyapi, or through a firmware backup.

I鈥檓 going to return the led strip. It has a huge powerdrop in the strip. First led is bright and the last one half of the brightness. That鈥檚 no good.
Hopefully you鈥檒l find a answer.

Well it's a cheap Brand, expect something like this.

I'll try to get the productkey or schena for You. Will Update If I succeed.

Yeah, but this dimming and the fact that it can鈥檛 pair yet is 20 euro鈥檚 to much.

I was able to flash 4 of those devices successfully now, so it's definitely working.

Feedback: I managed to flash them via a vmware linux vm, it looks like this doesn't work via pi zero. I managed to brick mine by flashing a new version of "sonoff.bin", any idea how i can retrieve it?

Edit: Nevermind, it somehow was bugging around and I didn't notice that it's in my wifi already. Everything working perfectly!

@DerpyDoom I鈥檝e been trying to get it working on a MacBook Pro with a Linux VM but no luck. What鈥檚 your setup?

@DerpyDoom I鈥檝e been trying to get it working on a MacBook Pro with a Linux VM but no luck. What鈥檚 your setup?

I'm running Windows 10 on my main machine, debian 10 as vm host.
For the WiFi hotspot I'm using this one here that is being detected as soon as I plug it in. Vmware asks me If I want to mount it to the VM and of course I click yes.

Don't forget to edit your wifi card in the config of tuya-convert (can be retrieved by ip -a). And I also have noticed if You are trying things out multiple times it is possible that not every process from tuya-convert is being stopped. So you might need to kill them by hand.

@Pannnenkoek is this resolved?

Today I've successfully flashed my led strip but encountered some weird problems i like to share for the sake of record.
My attempt to take over this tuya device failed due to an unanswered TCP handshake!

But first thinks first:

  • Everything was setup and running
  • The LED strip received the WLAN credentials
  • It joined the vtrust-flash WLAN
  • It asked for the IP of the tuya cloud using DNS
  • It tried to connect to the (fake) tuya cloud over https

And this is were it got fishy. The logs didn't show anything so i used wireshark and saw the communication: The ESP was sending a TCP SYN which was never answered by the psk-thingy (multiple times). When using nmap of curl i could connect to the psk-thingy (and when using http (no s!) i even got an error from the psk script (due to TLS handshake failure which was expected)). So the python side seems to be fine.
I have no idea what caused this. I "fixed" it by booting Kali Linux from a stick (i'm on Arch).

So, in case anybody experiences this: try to use Kali Linux!
Indications for are:

  • The device leaves pairing mode (stops blicking)
  • The wifi process detects a new device joining
  • Nothing more, all logs are quiet
Was this page helpful?
0 / 5 - 0 ratings

Related issues

waltner picture waltner  路  10Comments

Cyber1000 picture Cyber1000  路  9Comments

uav2608 picture uav2608  路  11Comments

YARA-CODER picture YARA-CODER  路  11Comments

baldarn picture baldarn  路  4Comments