ct-Open-Source / tuya-convert

A collection of scripts to flash Tuya IoT devices to alternative firmwares
MIT License
4.65k stars 499 forks source link

Problem with neo coolcam 16A nas-wr01w power plug #666

Open tty74it opened 4 years ago

tty74it commented 4 years ago

I've buyed 2 of this power plug. One is flashed without problem. With the second one i can't flash it, and it reboot many time when tuya-convert is activated

smarthack-mqtt.log smarthack-psk.log smarthack-udp.log smarthack-web.log smarthack-wifi.log

Thank's

kueblc commented 4 years ago

Did you buy these two plugs at the same time?

Would you share the logs and firmware backup from the other device?

tty74it commented 4 years ago

Yes same time device-info.txt smarthack-mqtt.log smarthack-psk.log smarthack-udp.log smarthack-web.log smarthack-wifi.log

20200425_115531.zip

kueblc commented 4 years ago

Can you post the backup as well?

tty74it commented 4 years ago

Yes in the zip

Thank's

kueblc commented 4 years ago

I do not see the registration call in your web log. Have you tried putting the device back in pairing mode and starting from scratch?

Is this a clean tuya-convert install or have you added or changed any files?

tty74it commented 4 years ago

Now i've tried win a cleaninstall and any files are changed (only config wlan interface name WLAN=wlx00156d846131)

But is the same, i see the device reboot many time and also the relay status ( click sound on reboot i think) smarthack-mqtt.log smarthack-psk.log smarthack-udp.log smarthack-web.log smarthack-wifi.log

kueblc commented 4 years ago

I see that these two devices are running different firmware, and that the first device was converted in April. It may be that you have gotten a firmware update from Tuya since then, blocking tuya-convert.

tty74it commented 4 years ago

Ok thank's , i'm waiting a new version tuya-convert, because i see is not to simple solder wire in this device. At the moment i use the first device converted

Many thank's

nogueirasa commented 4 years ago

Hello, any news? I'm with the same problem, new firmware from Tuya.

KoalaBear84 commented 4 years ago

I have 5 of these now, the first 3 flashed without problems. Ordered 1 on july 5, ordered 2 on july 25.

The last 2, ordered only 4 days later they do flash, but they do NOT connect to WiFi. They appear bricked, but when you remove the wifi (disconnected the modem/router) they do supply tasmota-xxxx, and supply the wifi (again), but they just won't connect to the wifi. The credentials are 100% correct.

They don't listen to anything, the button does not turn the relay, which I understand, because it doesn't have the template. It doesn't respond to 4 short button presses for wifi reconfigure option. It doesn't respond to keep it pressed for 5 seconds (or 40). It doesn't respond to power cycling. Really strange.

KoalaBear84 commented 4 years ago

Sorry, for me it is resolved., I took it to a friend to escape my WiFi, added it to his network and saw that the new one has a completely different MAC address range (vendor). The previous ones were all 80:7D:3A, and the new ones are D8:BF:C0 🙊

I really scanned the network 10 times, and none of the MAC addresses reported "Espressif Inc.".

stefxx commented 4 years ago

I just ordered 5 of those plugs. I was only able to tuya-convert 2 of them successfully. I will have to wait for my serial adapter before I can attempt serial flashing the other three.

Too bad. OTA flashing is sooooo much easier. Really hope a future version will fix this.

worldwidefelix commented 4 years ago

I just ordered 5 of those plugs. I was only able to tuya-convert 2 of them successfully. I will have to wait for my serial adapter before I can attempt serial flashing the other three.

Too bad. OTA flashing is sooooo much easier. Really hope a future version will fix this.

Hi. Do you get any information how to open the plug with latest one? It seems like there are some differences between previous model. The new one is really hard to get into under the PCB which is pad for flashing.

stefxx commented 4 years ago

Nope, haven't tried yet.

worldwidefelix commented 4 years ago

Nope, haven't tried yet.

I see. Hope to share how to work out this matter altogether. Thx

stefxx commented 4 years ago

Just opened the top cover. I was hoping it would be simple but I can't find any screws to get it out of it's housing.

Might need to sacrifice one to see how we can open them neatly.

KoalaBear84 commented 4 years ago

I do not have experience with it, but found this last week, it has some info about it: https://github.com/xoseperez/espurna/wiki/Hardware-NEO-COOLCAM-NAS-WR01W

stefxx commented 4 years ago

I've seen that as well. But it is not the same version (10A vs 16A version). It can't locate the two screws to get the boards out of the housing.

stefxx commented 4 years ago

Turns out there is only the one screw. Hammer carefully on the pins and the whole module will come out. Watch out for the earth connector (at the screw point), thats all. Unfortunately, I am afraid I already ruined it, but that's ok.

Here are some pictures:

20200828_203400 20200828_203418 20200828_203429 20200828_203441 20200828_203458 20200828_203508 20200828_203528 20200828_203617

You can clearly see my damage on the second picture, the black part is broken. Anyway, I was able to find GND, 3V3, RXD and TXD (TXD is accessible but the label is hard to see below the relay. I can't find GPI00, I am afraid we need to take it apart to get to it.

worldwidefelix commented 4 years ago

Turns out there is only the one screw. Hammer carefully on the pins and the whole module will come out. Watch out for the earth connector (at the screw point), thats all. Unfortunately, I am afraid I already ruined it, but that's ok.

Here are some pictures:

You can clearly see my damage on the second picture, the black part is broken. Anyway, I was able to find GND, 3V3, RXD and TXD (TXD is accessible but the label is hard to see below the relay. I can't find GPI00, I am afraid we need to take it apart to get to it.

Thank you for sharing your experience. Mine was already got damaged either while I tried to open. I had no idea after opening top cover at that time.

At the first, I was looking for another 2 screws. Now, I know how to disassembly finally.

sanderlv commented 4 years ago

Any luck or any schema available to do the flashing?

I have the same issue. I have tried to flash but get below. I am not a linux expert and have tried for a few hours how to get the 5 logfiles from my pi to windows... installing samba, editing files, etc. etc. but no luck... so I do not know how to help with sending my logfiles to you.

pi@raspberrypi:~/tuya-convert $ ./start_flash.sh
tuya-convert v2.4.4
Checking for network interface wlan0... Found.
Checking UDP port 53... Occupied by dnsmasq with PID 568.
Port 53 is needed to resolve DNS queries
Do you wish to terminate dnsmasq? [y/N] y
Attempting to stop dnsmasq.service
Checking UDP port 67... Available.
Checking TCP port 80... Available.
Checking TCP port 443... Available.
Checking UDP port 6666... Available.
Checking UDP port 6667... Available.
Checking TCP port 1883... Occupied by mosquitto with PID 553.
Port 1883 is needed to run MQTT
Do you wish to terminate mosquitto? [y/N] y
Attempting to stop mosquitto.service
Checking TCP port 8886... Available.
======================================================
  Starting AP in a screen.
  Starting web server in a screen
  Starting Mosquitto in a screen
  Starting PSK frontend in a screen
  Starting Tuya Discovery in a screen

======================================================

IMPORTANT
1. Connect any other device (a smartphone or something) to the WIFI vtrust-flash
   This step is IMPORTANT otherwise the smartconfig may not work!
2. Put your IoT device in autoconfig/smartconfig/pairing mode (LED will blink fast). This is usually done by pressing and holding the primary button of the device
   Make sure nothing else is plugged into your IoT device while attempting to flash.
3. Press ENTER to continue

======================================================
Starting smart config pairing procedure
Waiting for the device to install the intermediate firmware
Put device in EZ config mode (blinking fast)
Sending SSID                  vtrust-flash
Sending wifiPassword
Sending token                 00000000
Sending secret                0101
................
SmartConfig complete.
Resending SmartConfig Packets
.................
SmartConfig complete.
Resending SmartConfig Packets
.................
SmartConfig complete.
Resending SmartConfig Packets
................
SmartConfig complete.
Resending SmartConfig Packets
.................
SmartConfig complete.
Resending SmartConfig Packets
.................
SmartConfig complete.
Resending SmartConfig Packets
................
SmartConfig complete.
Resending SmartConfig Packets
.................
SmartConfig complete.
Resending SmartConfig Packets
.................
SmartConfig complete.
Resending SmartConfig Packets
.................
SmartConfig complete.
Resending SmartConfig Packets
..............
Device did not appear with the intermediate firmware
Check the *.log files in the scripts folder
Do you want to try flashing another device? [y/N]

Something is happening on the plug though because the red light flashing stops after the first attempt...

djfanatix commented 4 years ago

I have the same issue, bought 3 plugs, 2 worked fine, but the 3rd switches of the pairing mode and the relay flickers when Tuya convert tries to connect.

sanderlv commented 4 years ago

Just asking... any update on this device? I have successfully flashed 16 other devices now running esphome :-)... Wanting to use these 2 as well...

stefxx commented 4 years ago

Nope. We have to wait until tuya-convert works again on newer devices (if ever). I tried to open one and in order to flash them serial I most certainly destroy them in the process, so I decided to wait. Again, it might be a looooong wait.

sanderlv commented 4 years ago

Argh... I hate to wait (long), I tend to forget then :-)

bobybobybob commented 4 years ago

it is less difficult to solder the Flash component. Then solder on the circuit board of an ESP01, put Tasmota on it, unsolder it and put it back into the china socket.

stefxx commented 4 years ago

Hi @bobybobybob ! Do you have some instructions/pictures on how you flashed the Neo Coolcam?

bobybobybob commented 4 years ago

I have two of these adapters. One broke when I took it apart. From this broken one I unsoldered the flash module. From one ESP01 the flash component was desoldered and the other one was soldered. With Tasmotizer the Tasmota is loaded. Desoldered the component again.

With the other adapter with a side cutter I removed the flash component and soldered the rest. Soldered the Tasmota Flash module into the adapter and finished. Set the Tasmota Template etc. and everything is great.

bobybobybob commented 4 years ago

https://s12.directupload.net/images/201115/uf5v5zdj.jpg

stefxx commented 4 years ago

Thanks @bobybobybob , also for the great pictures. Not sure if I am brave enough to do that, but then again, I broke one already and the others are currently unused because I can't flash them... And if not, I am sure it will help others!

Gunner251192 commented 3 years ago

Hi, when running Tuya convert it seems to regocnize the plug, because it stops blinking fast or you hear the relay clicking. I got 10! of them ( NAS-WR01W 16A plugs bought 3 weeks ago) and really want them to flash so i can use them local in my automations. It would be really great to get this fixed, to help i uploaded my logs when running Tuya Convert, if there is someone who can point me in the right direction it would be really great. They are pretty useless now.

Thanks in advance. https://github.com/ct-Open-Source/tuya-convert/files/5575765/NAS-WR01W.zip

Shamshala commented 3 years ago

@stefxx ... I can't find GPI00, I am afraid we need to take it apart to get to it.

If you haven't already found out, you don't need to look anywhere for GPIO0 actually, it's connected to the button. I'm kinda impressed that you were able to hammer it out. I took the harder way to desolder the top PCB inside the housing in my 6 plugs. :rofl:

I tried TuyaConvert two times, it bricked my sockets everytime but i already knew how took them apart so it wasn't a big deal and flashed them directly.

clausmuus commented 3 years ago

Thank you all for your documentation. So it was possible for me to flash my devices successful. For the second one I need only a view minutes :)

gabest11 commented 3 years ago

I have one with ID: 02... that do not work with tuya-convert. Desoldered the flash chip and saved the original fw if anyone needs it. Can I just load it with files/tasmota.bin even though it's less then 0.5 MB and the original is 1 MB?

clau-bucur commented 3 years ago

Thank you all for your documentation. So it was possible for me to flash my devices successful. For the second one I need only a view minutes :)

I've just flashed tasmota-minimal.bin using Tasmotizer. It creates the wifi, I can connect to it, I get ping replies from 192.168.4.1 but I can't connect to it to configure it. No ports are opened (even after a couple of hard resets).

Can you describe your flashing procedure? What tools and what firmware have you used ? Thanks!

clau-bucur commented 3 years ago

Nevermind, it works now :) I gave it another shot and flashed by selecting image "Release / tasmota.bin" and checking "Erase before flashing".

finalstate commented 3 years ago

Don't use a hammer to open the plug :-) After unscrewing and taking the 'female' side off:

alnavasa commented 3 years ago

I have flashed It soldering the pins but I might have damaged the step-down voltage converter, Or I don't know what, but, I have two flashed ones with erratic behavior: 1: I plug it, it works ok, I un-plug it, and plug it back, nothing happens, doesn't work. un-plug it, wait 10 min, plug it back, it now does work.

2: Plug it, works for 15 seconds, then it powers of.

In My case is a "Avatto 16A Power Monitoring Plug" from aliexpress. but its the same probably

I am wondering if I broke the step-down converter, or what the hell happened...

Captura de pantalla 2021-01-01 a las 2 15 21 Captura de pantalla 2021-01-01 a las 2 15 13
ragzol commented 3 years ago

I have flashed! It soldering the pins tx, rx, gnd, 3.3V pcb and connect serial usb adapter. flashing: Connect pin to usb adapter: tx->rx, rx->tx, 3.3v -> 3.3v, gnd-> gnd GI00 -> gnd switch push or connect two switch pins

tasmota pyflasher run

esptool.py v2.8 Serial port COM3 Connecting.... Detecting chip type... ESP8266 Chip is ESP8266EX Features: WiFi Crystal is 26MHz MAC: 50:02:91:d7:4a:95 Uploading stub... Running stub... Stub running... Configuring flash size... Auto-detected Flash size: 1MB Erasing flash (this may take a while)... Chip erase completed successfully in 0.0s Compressed 602192 bytes to 430094... Wrote 602192 bytes (430094 compressed) at 0x00000000 in 46.9 seconds (effective 102.8 kbit/s)... Hash of data verified.

Leaving... Staying in bootloader.

Firmware successfully flashed. Unplug/replug or reset device to switch back to normal boot mode.

in Tasmota: General template: LED = GPIO13 ,RELAY = GPIO14, BUTTON = GPIO0

20210120_082049 20210120_082104 20210120_083855

stefxx commented 3 years ago

Flashed, no soldering. It takes a few attempts to get the pins just right ;)

20210102_111539 20210102_111600 20210102_111611

pesor commented 3 years ago

@stefxx

Flashed, no soldering. It takes a few attempts to get the pins just right ;)

Where did you get that smart clamp from?

stefxx commented 3 years ago

@pesor https://nl.aliexpress.com/item/4001016093009.html?spm=a2g0s.9042311.0.0.7b1c4c4dqvC5IW

pesor commented 3 years ago

@stefxx

Thanks, it is ordered. Got 6 Avatto 16 Amp, all with new firmware, so this is a really nice solution without soldering, and I gladly wait for delivery.

When I look at your picture, what did you do with the GI00, it is not clear from your photo.

stefxx commented 3 years ago

Just press the button during startup.

alnavasa commented 3 years ago

@stefxx

Thanks, it is ordered. Got 6 Avatto 16 Amp, all with new firmware, so this is a really nice solution without soldering, and I gladly wait for delivery.

When I look at your picture, what did you do with the GI00, it is not clear from your photo.

Let us know how it goes, I don't know What I did to my Avatto, but they booted and after a minute or so died. Tasmota was working on them, but after the minute they where gone... I got tired of trying to flash and reflash them

alnavasa commented 3 years ago

@pesor https://nl.aliexpress.com/item/4001016093009.html?spm=a2g0s.9042311.0.0.7b1c4c4dqvC5IW

what size did you order?

stefxx commented 3 years ago

I have it for a while, I think I got the largest one. But if it is just for flashing the Neo Coolcam, it's larger than necessary.

pesor commented 3 years ago

12 pins double row, 24 pins in total, that is the same size as @stefxx

Sendt fra min iPhone

Den 26. jan. 2021 kl. 20.27 skrev alnavasa notifications@github.com:



@pesorhttps://github.com/pesor https://nl.aliexpress.com/item/4001016093009.html?spm=a2g0s.9042311.0.0.7b1c4c4dqvC5IW

what size did you order?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/ct-Open-Source/tuya-convert/issues/666#issuecomment-767773443, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAXXLJCMGMZNEW65CI6DMA3S34JQTANCNFSM4N44ZJSQ.

Fettkeewl commented 3 years ago

Hio

I ordered 2 PCS of theese. And through some very informative posts here I've flashed tasmota on them. They state that it should be power monitoring on theese ones but I'm guessing that's not true? Does anyone know?

SEK 32.37 36%OFF | Smart Plug WiFi Socket 3680W 16A Power Energy Monitoring Timer Switch EU Outlet Voice Control By Alexa Google https://a.aliexpress.com/_mqxbfQV

KoalaBear84 commented 3 years ago

That is true, they have Power Monitoring. I would like to order some more, but I don't dare as I don't want to open them and flash them through hardware.. :(