Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logs seem to indicate device doesn't use ESP82XX when I have confirmed that it does #380

Closed
uatuba opened this issue Nov 7, 2019 · 27 comments

Comments

@uatuba
Copy link

uatuba commented Nov 7, 2019

I am now attempting to flash a Teckin SP10. The log seems to indicate that this does not use the ESP82XX, but having torn one apart, I can assure you that it does. I'm not aware of the current firmware as I have not connected it to Tuya's servers and I do not know of another way to obtain that information. Any advice would be greatly appreciated:

smarthack-mqtt.log

smarthack-psk.log

smarthack-web.log

smarthack-wifi.log

@kueblc
Copy link
Collaborator

kueblc commented Nov 7, 2019

Is this from the one you tore apart? The same model can use different Tuya modules, the WR3 is designed to be pin out compatible.

@fatfox511
Copy link

same issue here :(

I bought the LSC Smart Connect devices (LED Bulb, Motion Sensor and Door Sensor), all with live seen ESP82XX on board.

I set them into pairing mode, they are blinking fast, after starting flash they stop blinking (Bulb for example has stativ light). Tuy tries resending smartconfig packets for a while then tells me " Device did not appear with the intermediate firmware", log indicates them as "non ESP82XX".

I just tried 2 different raspberrys, with different SD Cards with and without external wifi.

Is it normal, that there is no internet connection at the vtrust wifi?

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

@kueblc
Copy link
Collaborator

kueblc commented Nov 7, 2019

Are you able to retrieve a backup of the firmware over serial? I can use this to help debug the issue.

Is it normal, that there is no internet connection at the vtrust wifi?

Yes

@kueblc
Copy link
Collaborator

kueblc commented Nov 7, 2019

Also helpful would be a network capture of the device registering with the cloud through the app

@fatfox511
Copy link

Are you able to retrieve a backup of the firmware over serial? I can use this to help debug the issue.

Is it normal, that there is no internet connection at the vtrust wifi?

Yes

I can try that next week!

The network capture is difficult for me as long as I do not want to use the app 😅 maybe I also give it a try.

@oscar-rr
Copy link

same problem here. also saying that there is no ESP82XX

@kueblc
Copy link
Collaborator

kueblc commented Nov 10, 2019

@oscar-rr have you opened the device to confirm?

@kueblc
Copy link
Collaborator

kueblc commented Nov 10, 2019

Can any of you confirm this message is wrong with a picture of the ESP chip on the device that is giving this message?

This message was added to inform users why a flash might not be completing successful, but it does not alter the behavior of tuya-convert in any way. So if a flash is not completing with this message, removing the message will not make it more likely to complete.

@fatfox511
Copy link

I can check again tomorrow and send a pic of proof, i will also try to do a backup via ftdi.

@uatuba
Copy link
Author

uatuba commented Nov 10, 2019 via email

@kueblc
Copy link
Collaborator

kueblc commented Nov 10, 2019

tuya-convert is not actively preventing you from flashing these devices. It is only printing a warning message to give you clues as to why it might not be working.

@fatfox511
Copy link

image

This is a pic of the motionsensor. There is a TYWE3S on it. I think that should be able to flash, isn‘t it?

@fatfox511
Copy link

image

And the doorsensor. Same chipset :)

@meingraham
Copy link
Contributor

Surely Tuya aren't labeling Wi-Fi modules that contain an ESP (e.g., TYWE3S) with the same model number as a module that contains a RTL chip? It seems that they'd have to differentiate the modules in FCC filings due to what is likely different Wi-Fi radio specs between the two chips.

@fatfox511
Copy link

Surely Tuya aren't labeling Wi-Fi modules that contain an ESP (e.g., TYWE3S) with the same model number as a module that contains a RTL chip? It seems that they'd have to differentiate the modules in FCC filings due to what is likely different Wi-Fi radio specs between the two chips.

Hmmmm I think you are right. I was fooled by the wifi Chip. There is a STML8 processor on the board. Maybe this one is doing the work.

https://www.mouser.com/datasheet/2/389/stm8l051f3-956454.pdf

In this case Tuya Convert doesn't seem to be the right choice for me ;)

What do the others think?

@fatfox511
Copy link

Don`t wanna give up too fast:

Recording to this german forum https://www.mikrocontroller.net/topic/479796
the STM8 Chip is only for energy saving purpose and wakes up the ESP8266 within the TYW3S. One member claims that he was able to flash Tasmota on it but was not able to run it properly due to the energy savings controlled by the STM8 chip.

It seems that this one (STM8) works like a energy gatekeeper. Maybe this one should be bridged in order to wake up the ESP for flashing...

maybe something like this https://github.com/arendst/Tasmota/wiki/DM_WF_MDV4

@kueblc
Copy link
Collaborator

kueblc commented Nov 11, 2019

Good work @fatfox511. This does add some depth to the mystery :) The next step would be getting a copy of the firmware so we can begin reverse engineering the differences.

@meingraham you would think, but the Teckin SP22 (#269) uses the same model number for both ESP and RTL based versions. Maybe this is an FCC violation, but IANAL.

@fatfox511
Copy link

thank you @kueblc !

I stay tuned on the mikrocontroller forum asking the member how he's got an ftdi connection.

There are some connecting plates (swim,rst, gnd, 3v3) on the backside of the board, maybe I can gather some information before soldering. I don't know if I can use the swim "pin" and the rst for tx and rx.

If the worst comes to the worst i need to go directly on the TYWE3S Pins.

@kueblc
Copy link
Collaborator

kueblc commented Nov 11, 2019

IIRC I think SWIM is a STM thing, "single wire interface module", not standard serial.

@fatfox511
Copy link

image

Found the Solution on the backside :) soldering a littlebit now!

@terryhonn
Copy link

I have no idea if the below is useful or not, I'm not a programmer, nor have I ever played one on TV.

I have a box of Teckin SP10s that I had hoped to put Tasmota on but couldn't get tuya-convert to connect to and flash. I tore one apart hoping to be able to flash via serial, but couldn't get to the location of the chip connections to solder without significantly destroying the enclosure, so I set them aside.
After searching around again and finding this issue, I decided to unsolder the chip so that I could connect an FTDI adapter and see what happened. Below is the serial output from the chip from the time I grounded GPIO0 and applied 3.3v until after the tuya-convert connection attempts timed out. If useful, fantastic. If not, please disregard and get back to useful activities. :-)

[01-01 00:00:49 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:49 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:50 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:50 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:50 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:50 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:51 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:51 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:51 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:52 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:52 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:52 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:53 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:53 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:53 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:53 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:54 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:54 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:54 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:55 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:55 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:55 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:56 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:56 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:56 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:57 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:57 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:57 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:57 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:58 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:58 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:58 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:59 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:59 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:59 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:00 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:00 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:00 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:01 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:01 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:01 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:01 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:02 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:02 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:02 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:03 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:03 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:03 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:04 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:04 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:04 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:05 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:05 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:05 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:05 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:06 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:06 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:06 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:07 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:07 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:07 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:08 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:08 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:08 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:08 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:09 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:09 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:09 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:10 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:10 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:10 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:11 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:11 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:11 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:12 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:12 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:12 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:12 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:13 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:13 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:13 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:14 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:14 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:14 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:15 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:15 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:15 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:16 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:16 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:16 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:16 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:17 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:17 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:17 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:18 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:18 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:18 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:19 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:19 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:19 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:20 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:20 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:20 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:20 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:21 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:21 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:21 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:22 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:22 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:22 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:23 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:23 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:23 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:23 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:24 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:24 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:24 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:25 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:25 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:25 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:26 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:26 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:26 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:27 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:27 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:27 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:27 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:28 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:28 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:28 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:29 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:29 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:29 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:30 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:30 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:30 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:31 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:31 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:31 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:31 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:32 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:32 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:32 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:33 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:33 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:33 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:34 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:34 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:34 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:35 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:35 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:35 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:35 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:36 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:36 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:36 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:37 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:37 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:37 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:38 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:38 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:38 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:38 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:39 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:39 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:39 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:40 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:40 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:40 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:41 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:41 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:41 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:42 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:42 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:42 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:42 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:43 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:43 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:43 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:44 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:44 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:44 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:45 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:45 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:45 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:46 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:46 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:46 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:46 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:47 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:47 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:47 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:48 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:48 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:48 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:49 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:49 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:49 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:49 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:50 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:50 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:50 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:51 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:01:51 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:51 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

sort_rev_data: 0x00c8 0x0081 0x0130 0x0130 0x0130 0x0130

sort_rev_data: 0x0086 0x0082 0x0130 0x0130 0x0130 0x0130

[01-01 00:01:52 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

sort_rev_data: 0x00be 0x0083 0x0130 0x0131 0x0130 0x0131

sort_rev_data: 0x00af 0x0084 0x0176 0x0174 0x0172 0x0175

sort_rev_data: 0x00f3 0x0085 0x0173 0x0174 0x012d 0x0166

sort_rev_data: 0x00d4 0x0086 0x016c 0x0161 0x0173 0x0168

[01-01 00:01:52 TUYA Notice][gw_intf.c:473] stop smt cfg mthd:1

[01-01 00:01:52 TUYA Notice][gw_intf.c:476] lowpower or special mode stop tmm_short and tmm_long timer



LwIP_DHCP: dhcp stop.


Deinitializing WIFI ...[01-01 00:01:52 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0



WIFI deinitialized


Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 



WIFI initialized


ReguTimer CalibData:125c 

[01-01 00:01:52 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:52 TUYA Notice][tuya_device.c:410] ===============lowpower_disable=================

[01-01 00:01:52 TUYA Notice][tuya_device.c:378] ===============lowpower_ctrl 0=================

[01-01 00:01:52 TUYA Notice][tuya_led.c:107] port = 23 ,type = 1

[01-01 00:01:52 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:52 TUYA Notice][tuya_led.c:107] port = 23 ,type = 1

[01-01 00:01:52 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:01:53 TUYA Notice][tuya_device.c:404] ===============lowpower_timer_cb=================

[01-01 00:01:53 TUYA Notice][tuya_device.c:378] ===============lowpower_ctrl 0=================

[01-01 00:01:53 TUYA Notice][tuya_device.c:381] device enter sleep mode

[01-01 00:01:53 TUYA Notice][tuya_device.c:384] ===============lowpower_ctrl 1=================



LDO Mode, BD_Info: 0 

[01-01 00:01:54 TUYA Notice][tuya_key.c:440] get key interrupt



RTL8195A[Driver]: set ssid [vtrust-flash] 



RTL8195A[Driver]: start auth to b8:27:eb:f8:b0:e3



RTL8195A[Driver]: auth success, start assoc



RTL8195A[Driver]: association success(res=3)


wlan1: 1 DL RSVD page success! DLBcnCount:01, poll:00000001

[01-01 00:01:56 TUYA Err][gw_intf.c:1342] net work unavailable

[01-01 00:01:57 TUYA Notice][tuya_device.c:410] ===============lowpower_disable=================

[01-01 00:01:57 TUYA Notice][tuya_device.c:378] ===============lowpower_ctrl 1=================

[01-01 00:01:57 TUYA Notice][tuya_device.c:390] device exit sleep mode

[01-01 00:01:57 TUYA Notice][tuya_device.c:393] ===============lowpower_ctrl 0=================

[01-01 00:01:57 TUYA Notice][tuya_device.c:1245] port: 14,type: 2,cnt: 0


<RTL8195A>
ROM:[V0.1]


FLASHRATE:4


BOOT TYPE:0 XTAL:40000000


IMG1 DATA[1168:10002000]


IMG1 ENTRY[8000541:100021ef]


IMG1 ENTER


CHIPID[000000ff]


read_mode idx:3, flash_speed idx:0


calibration_result:[1:5:11][9:d] 


calibration_result:[2:13:7][1:d] 


calibration_result:[3:7:5][1:7] 


calibration_ok:[2:13:7] 


FLASH CALIB[NEW OK]


OTA2 ADDR[80d0000]


OTAx SELE[fffffffc]


OTA1 USE


IMG2 DATA[0x8099fa0:8460:0x10005000]


IMG2 SIGN[RTKWin(10005008)]


IMG2 ENTRY[0x10005000:0x800b1a5]


===== Enter Image 2 ====


System_Init1


OSC8M: 8390004 


boot reason: 4605 


System_Init2



11111111111111111111111111

interface 0 is initialized

interface 1 is initialized



Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 



WIFI initialized



init_thread(55), Available heap 0xf020[01-01 00:00:00 TUYA Debug][tuya_iot_com_api.c:79] init fs. Path: üï[03][10][01][01] 

[01-01 00:00:00 TUYA Notice][simple_flash.c:428] key_addr: 0x1eb000   block_sz 4096

[01-01 00:00:00 TUYA Notice][simple_flash.c:496] get key:

0xdc 0x87 0x61 0xad 0x7e 0x7f 0x9a 0x43 0x90 0x1b 0x80 0xeb 0x5f 0xd5 0x7f 0x90 

[01-01 00:00:00 TUYA Debug][uni_thread.c:158] Init Thread Del Mgr

[01-01 00:00:00 TUYA Debug][sys_timer.c:64] system timer has been inited

[01-01 00:00:00 TUYA Debug][sys_timer.c:64] system timer has been inited

[01-01 00:00:00 TUYA Debug][ty_work_queue.c:22] init work queue. stack size:2560 pro:3 num:2

[01-01 00:00:00 TUYA Debug][ty_work_queue.c:27] ty work queue create success

[01-01 00:00:00 TUYA Notice][tuya_device.c:155] key:14, relay:12, led:23

[01-01 00:00:00 TUYA Notice][tuya_device.c:157] rtlbn_plug_timer_keygg897krt5kk4t:1.0.3:Jun 25 2019:21:08:07

[01-01 00:00:00 TUYA Notice][tuya_device.c:158] < TUYA IOT SDK V:2.0.0 BS:30.01_PT:2.2_LAN:3.3_CAD:1.0.1_CD:1.0.0 >

< BUILD AT:2019_02_20_20_26_06 BY tuya_iot_team FOR rtlbn_tls_lp_common AT 8710_2M >

IOT DEFS < WIFI_GW:1 DEBUG:1 KV_FILE:0 SHUTDOWN_MODE:0 LITTLE_END:1 TLS_MODE:3 ENABLE_LOCAL_LINKAGE:0 ENABLE_CLOUD_OPERATION:0 ENABLE_SUBDEVICE:0 ENABLE_ENGINEER_TO_NORMAL:0 OPERATING_SYSTEM:2 ENABLE_SYS_RPC:0 TY_SECURITY_CHIP:0 RELIABLE_TRANSFER:RELIABLE_TRANSFER ENABLE_LAN_ENCRYPTION:1 >



[01-01 00:00:00 TUYA Notice][tuya_device.c:164] 

 USER SET LOG_LEVEL_NOTICE 



[01-01 00:00:00 TUYA Notice][tuya_uart.c:125] 1   9600

[01-01 00:00:00 TUYA Notice][tuya_main.c:359] mf_init succ

[01-01 00:00:00 TUYA Notice][tuya_device.c:122] 

 ENABLE OEM KEY: keygg897krt5kk4t 





LwIP_DHCP: dhcp stop.


Deinitializing WIFI ...


WIFI deinitialized


Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 



WIFI initialized

[01-01 00:00:01 TUYA Notice][tuya_main.c:113] current product ssid name:tuya_mdev_test1

[01-01 00:00:02 TUYA Notice][wifi_hwl.c:259] not find scan ssid (tuya_mdev_test1)

[01-01 00:00:02 TUYA Notice][tuya_main.c:117] wf_assign_ap_scan failed(-606)

[01-01 00:00:02 TUYA Notice][tuya_device.c:1161] 

 ENABLE LOW POWER 



[01-01 00:00:02 TUYA Notice][gw_intf.c:2152] serial_no:68572d3cd8c0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2180] gw_cntl.gw_wsm.stat:1

[01-01 00:00:02 TUYA Notice][gw_intf.c:2183] gw_cntl.gw_wsm.nc_tp:1

[01-01 00:00:02 TUYA Notice][gw_intf.c:2184] gw_cntl.gw_wsm.md:0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2216] gw_cntl.gw_if.abi:0 input:0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2217] gw_cntl.gw_if.product_key:keygg897krt5kk4t, input:keygg897krt5kk4t

[01-01 00:00:02 TUYA Notice][gw_intf.c:2218] gw_cntl.gw_if.tp:0, input:0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2219] gw_cntl.gw_if.firmware_key:, input:üï[03][10][01][01]

[01-01 00:00:02 TUYA Notice][hw_table.c:106] IO - relay[0]:	pin-12	type high

[01-01 00:00:02 TUYA Notice][hw_table.c:349] trig_type:level

[01-01 00:00:02 TUYA Notice][hw_table.c:369] CH[0],    DPID[1]

[01-01 00:00:02 TUYA Notice][hw_table.c:370] CH[0],    CDDPID[11]

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:02 TUYA Notice][hw_table.c:106] IO - wifi_stat:	pin-23	type low

[01-01 00:00:02 TUYA Notice][hw_table.c:106] IO - power_button:	pin-14	type low

[01-01 00:00:02 TUYA Notice][hw_table.c:404] trig_type:level

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:186] id 14 {0x100186b4}

[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:129 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:130 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:131 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:129 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:130 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:131 



[01-01 00:00:02 TUYA Notice][timer_data.c:186]  timer_clear_data data_addr=10006284 



[01-01 00:00:02 TUYA Notice][local_timer.c:117] nLen = 0 error

[01-01 00:00:02 TUYA Notice][timer_data.c:186]  timer_clear_data data_addr=10006398 



[01-01 00:00:02 TUYA Notice][local_timer.c:117] nLen = 0 error

[01-01 00:00:02 TUYA Notice][timer_data.c:186]  timer_clear_data data_addr=100064ac 



[01-01 00:00:02 TUYA Notice][local_timer.c:117] nLen = 0 error

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:168] port = 12 ,level = 0

[01-01 00:00:02 TUYA Notice][tuya_led.c:107] port = 23 ,type = 1

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:02 TUYA Notice][tuya_device.c:1222] device_init ok  free_mem_size:42664



LwIP_DHCP: dhcp stop.


Deinitializing WIFI ...


WIFI deinitialized


Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 



WIFI initialized

[01-01 00:00:03 TUYA Notice][tuya_device.c:410] ===============lowpower_disable=================

[01-01 00:00:03 TUYA Notice][tuya_device.c:378] ===============lowpower_ctrl 0=================

[01-01 00:00:03 TUYA Notice][tuya_led.c:107] port = 23 ,type = 3

[01-01 00:00:03 TUYA Notice][tuya_device.c:814] save timer data



[01-01 00:00:03 TUYA Notice][tuya_device.c:831] timer write flash[{"nomal_time":"","random_time":"","cycle_time":""}]

[01-01 00:00:03 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:04 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0



LwIP_DHCP: dhcp stop.


Deinitializing WIFI ...[01-01 00:00:04 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1



WIFI deinitialized


Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 

[01-01 00:00:04 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0



WIFI initialized

[01-01 00:00:04 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:05 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:05 TUYA Notice][gw_intf.c:473] stop smt cfg mthd:1

[01-01 00:00:05 TUYA Notice][gw_intf.c:476] lowpower or special mode stop tmm_short and tmm_long timer



LwIP_DHCP: dhcp stop.


Deinitializing WIFI ...


WIFI deinitialized


Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 

[01-01 00:00:05 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1



WIFI initialized


ReguTimer CalibData:1264 

[01-01 00:00:05 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:06 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:06 TUYA Notice][tuya_device.c:410] ===============lowpower_disable=================

[01-01 00:00:06 TUYA Notice][tuya_device.c:378] ===============lowpower_ctrl 0=================

[01-01 00:00:06 TUYA Notice][tuya_led.c:107] port = 23 ,type = 1

[01-01 00:00:06 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:06 TUYA Notice][tuya_led.c:107] port = 23 ,type = 1

[01-01 00:00:06 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1



LDO Mode, BD_Info: 0 

[01-01 00:00:07 TUYA Notice][tuya_key.c:440] get key interrupt



RTL8195A[Driver]: set ssid [vtrust-flash] 

[01-01 00:00:07 TUYA Notice][tuya_device.c:404] ===============lowpower_timer_cb=================

[01-01 00:00:07 TUYA Notice][tuya_device.c:378] ===============lowpower_ctrl 0=================

[01-01 00:00:07 TUYA Notice][tuya_device.c:381] device enter sleep mode

[01-01 00:00:07 TUYA Notice][tuya_device.c:384] ===============lowpower_ctrl 1=================



RTL8195A[Driver]: start auth to b8:27:eb:f8:b0:e3



RTL8195A[Driver]: auth success, start assoc



RTL8195A[Driver]: association success(res=3)


wlan1: 1 DL RSVD page success! DLBcnCount:01, poll:00000001



RTL8195A[Driver]: sta recv deauth reason code(2) sta:b8:27:eb:f8:b0:e3

[01-01 00:00:09 TUYA Err][gw_intf.c:1342] net work unavailable

[01-01 00:00:10 TUYA Notice][tuya_device.c:410] ===============lowpower_disable=================

[01-01 00:00:10 TUYA Notice][tuya_device.c:378] ===============lowpower_ctrl 1=================

[01-01 00:00:10 TUYA Notice][tuya_device.c:390] device exit sleep mode

[01-01 00:00:10 TUYA Notice][tuya_device.c:393] ===============lowpower_ctrl 0=================

[01-01 00:00:10 TUYA Notice][tuya_device.c:1245] port: 14,type: 2,cnt: 0


<RTL8195A>
ROM:[V0.1]


FLASHRATE:4


BOOT TYPE:0 XTAL:40000000


IMG1 DATA[1168:10002000]


IMG1 ENTRY[8000541:100021ef]


IMG1 ENTER


CHIPID[000000ff]


read_mode idx:3, flash_speed idx:0


calibration_result:[1:5:11][9:d] 


calibration_result:[2:13:7][1:d] 


calibration_result:[3:7:5][1:7] 


calibration_ok:[2:13:7] 


FLASH CALIB[NEW OK]


OTA2 ADDR[80d0000]


OTAx SELE[fffffffc]


OTA1 USE


IMG2 DATA[0x8099fa0:8460:0x10005000]


IMG2 SIGN[RTKWin(10005008)]


IMG2 ENTRY[0x10005000:0x800b1a5]


===== Enter Image 2 ====


System_Init1


OSC8M: 8379705 


boot reason: 4605 


System_Init2



11111111111111111111111111

interface 0 is initialized

interface 1 is initialized



Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 



WIFI initialized



init_thread(55), Available heap 0xf020[01-01 00:00:00 TUYA Debug][tuya_iot_com_api.c:79] init fs. Path: üï[03][10][01][01] 

[01-01 00:00:00 TUYA Notice][simple_flash.c:428] key_addr: 0x1eb000   block_sz 4096

[01-01 00:00:00 TUYA Notice][simple_flash.c:496] get key:

0xdc 0x87 0x61 0xad 0x7e 0x7f 0x9a 0x43 0x90 0x1b 0x80 0xeb 0x5f 0xd5 0x7f 0x90 

[01-01 00:00:00 TUYA Debug][uni_thread.c:158] Init Thread Del Mgr

[01-01 00:00:00 TUYA Debug][sys_timer.c:64] system timer has been inited

[01-01 00:00:00 TUYA Debug][sys_timer.c:64] system timer has been inited

[01-01 00:00:00 TUYA Debug][ty_work_queue.c:22] init work queue. stack size:2560 pro:3 num:2

[01-01 00:00:00 TUYA Debug][ty_work_queue.c:27] ty work queue create success

[01-01 00:00:00 TUYA Notice][tuya_device.c:155] key:14, relay:12, led:23

[01-01 00:00:00 TUYA Notice][tuya_device.c:157] rtlbn_plug_timer_keygg897krt5kk4t:1.0.3:Jun 25 2019:21:08:07

[01-01 00:00:00 TUYA Notice][tuya_device.c:158] < TUYA IOT SDK V:2.0.0 BS:30.01_PT:2.2_LAN:3.3_CAD:1.0.1_CD:1.0.0 >

< BUILD AT:2019_02_20_20_26_06 BY tuya_iot_team FOR rtlbn_tls_lp_common AT 8710_2M >

IOT DEFS < WIFI_GW:1 DEBUG:1 KV_FILE:0 SHUTDOWN_MODE:0 LITTLE_END:1 TLS_MODE:3 ENABLE_LOCAL_LINKAGE:0 ENABLE_CLOUD_OPERATION:0 ENABLE_SUBDEVICE:0 ENABLE_ENGINEER_TO_NORMAL:0 OPERATING_SYSTEM:2 ENABLE_SYS_RPC:0 TY_SECURITY_CHIP:0 RELIABLE_TRANSFER:RELIABLE_TRANSFER ENABLE_LAN_ENCRYPTION:1 >



[01-01 00:00:00 TUYA Notice][tuya_device.c:164] 

 USER SET LOG_LEVEL_NOTICE 



[01-01 00:00:00 TUYA Notice][tuya_uart.c:125] 1   9600

[01-01 00:00:00 TUYA Notice][tuya_main.c:359] mf_init succ

[01-01 00:00:00 TUYA Notice][tuya_device.c:122] 

 ENABLE OEM KEY: keygg897krt5kk4t 





LwIP_DHCP: dhcp stop.


Deinitializing WIFI ...


WIFI deinitialized


Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 



WIFI initialized

[01-01 00:00:01 TUYA Notice][tuya_main.c:113] current product ssid name:tuya_mdev_test1

[01-01 00:00:02 TUYA Notice][wifi_hwl.c:259] not find scan ssid (tuya_mdev_test1)

[01-01 00:00:02 TUYA Notice][tuya_main.c:117] wf_assign_ap_scan failed(-606)

[01-01 00:00:02 TUYA Notice][tuya_device.c:1161] 

 ENABLE LOW POWER 



[01-01 00:00:02 TUYA Notice][gw_intf.c:2152] serial_no:68572d3cd8c0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2180] gw_cntl.gw_wsm.stat:1

[01-01 00:00:02 TUYA Notice][gw_intf.c:2183] gw_cntl.gw_wsm.nc_tp:1

[01-01 00:00:02 TUYA Notice][gw_intf.c:2184] gw_cntl.gw_wsm.md:0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2216] gw_cntl.gw_if.abi:0 input:0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2217] gw_cntl.gw_if.product_key:keygg897krt5kk4t, input:keygg897krt5kk4t

[01-01 00:00:02 TUYA Notice][gw_intf.c:2218] gw_cntl.gw_if.tp:0, input:0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2219] gw_cntl.gw_if.firmware_key:, input:üï[03][10][01][01]

[01-01 00:00:02 TUYA Notice][hw_table.c:106] IO - relay[0]:	pin-12	type high

[01-01 00:00:02 TUYA Notice][hw_table.c:349] trig_type:level

[01-01 00:00:02 TUYA Notice][hw_table.c:369] CH[0],    DPID[1]

[01-01 00:00:02 TUYA Notice][hw_table.c:370] CH[0],    CDDPID[11]

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:02 TUYA Notice][hw_table.c:106] IO - wifi_stat:	pin-23	type low

[01-01 00:00:02 TUYA Notice][hw_table.c:106] IO - power_button:	pin-14	type low

[01-01 00:00:02 TUYA Notice][hw_table.c:404] trig_type:level

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:186] id 14 {0x100186b4}

[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:129 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:130 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:131 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:129 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:130 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:131 



[01-01 00:00:02 TUYA Notice][timer_data.c:186]  timer_clear_data data_addr=10006284 



[01-01 00:00:02 TUYA Notice][local_timer.c:117] nLen = 0 error

[01-01 00:00:02 TUYA Notice][timer_data.c:186]  timer_clear_data data_addr=10006398 



[01-01 00:00:02 TUYA Notice][local_timer.c:117] nLen = 0 error

[01-01 00:00:02 TUYA Notice][timer_data.c:186]  timer_clear_data data_addr=100064ac 



[01-01 00:00:02 TUYA Notice][local_timer.c:117] nLen = 0 error

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:168] port = 12 ,level = 0

[01-01 00:00:02 TUYA Notice][tuya_led.c:107] port = 23 ,type = 1

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:02 TUYA Notice][tuya_device.c:1222] device_init ok  free_mem_size:42664



LwIP_DHCP: dhcp stop.


Deinitializing WIFI ...


WIFI deinitialized


Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 



WIFI initialized

[01-01 00:00:03 TUYA Notice][tuya_device.c:410] ===============lowpower_disable=================

[01-01 00:00:03 TUYA Notice][tuya_device.c:378] ===============lowpower_ctrl 0=================

[01-01 00:00:03 TUYA Notice][tuya_led.c:107] port = 23 ,type = 3

[01-01 00:00:03 TUYA Notice][tuya_device.c:814] save timer data



[01-01 00:00:03 TUYA Notice][tuya_device.c:831] timer write flash[{"nomal_time":"","random_time":"","cycle_time":""}]

[01-01 00:00:03 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:04 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0



LwIP_DHCP: dhcp stop.


Deinitializing WIFI ...[01-01 00:00:04 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1



WIFI deinitialized


Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 



WIFI initialized

[01-01 00:00:04 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:04 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:05 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:05 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:05 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:06 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:06 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:06 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:07 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:07 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:07 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:08 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:08 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

sort_rev_data: 0x00c8 0x0081 0x0130 0x0130 0x0130 0x0130

[01-01 00:00:08 TUYA Notice][gw_intf.c:473] stop smt cfg mthd:1

[01-01 00:00:08 TUYA Notice][gw_intf.c:476] lowpower or special mode stop tmm_short and tmm_long timer



LwIP_DHCP: dhcp stop.


Deinitializing WIFI ...[01-01 00:00:08 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1



LDO Mode, BD_Info: 0 



WIFI deinitialized


Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 

[01-01 00:00:08 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0



WIFI initialized


ReguTimer CalibData:123d 

[01-01 00:00:09 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:09 TUYA Notice][tuya_device.c:410] ===============lowpower_disable=================

[01-01 00:00:09 TUYA Notice][tuya_device.c:378] ===============lowpower_ctrl 0=================

[01-01 00:00:09 TUYA Notice][tuya_led.c:107] port = 23 ,type = 1

[01-01 00:00:09 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:09 TUYA Notice][tuya_led.c:107] port = 23 ,type = 1

[01-01 00:00:09 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:10 TUYA Notice][tuya_device.c:404] ===============lowpower_timer_cb=================

[01-01 00:00:10 TUYA Notice][tuya_device.c:378] ===============lowpower_ctrl 0=================

[01-01 00:00:10 TUYA Notice][tuya_device.c:381] device enter sleep mode

[01-01 00:00:10 TUYA Notice][tuya_device.c:384] ===============lowpower_ctrl 1=================



LDO Mode, BD_Info: 0 

[01-01 00:00:10 TUYA Notice][tuya_key.c:440] get key interrupt



RTL8195A[Driver]: set ssid [vtrust-flash] 



RTL8195A[Driver]: start auth to b8:27:eb:f8:b0:e3



RTL8195A[Driver]: auth success, start assoc



RTL8195A[Driver]: association success(res=3)


wlan1: 1 DL RSVD page success! DLBcnCount:01, poll:00000001


<RTL8195A>
ROM:[V0.1]


FLASHRATE:4


BOOT TYPE:0 XTAL:40000000


IMG1 DATA[1168:10002000]


IMG1 ENTRY[8000541:100021ef]


IMG1 ENTER


CHIPID[000000ff]


read_mode idx:3, flash_speed idx:0


calibration_result:[1:5:11][9:d] 


calibration_result:[2:13:7][1:d] 


calibration_result:[3:7:5][1:7] 


calibration_ok:[2:13:7] 


FLASH CALIB[NEW OK]


OTA2 ADDR[80d0000]


OTAx SELE[fffffffc]


OTA1 USE


IMG2 DATA[0x8099fa0:8460:0x10005000]


IMG2 SIGN[RTKWin(10005008)]


IMG2 ENTRY[0x10005000:0x800b1a5]


===== Enter Image 2 ====


System_Init1


OSC8M: 8386568 


boot reason: 0 


System_Init2



11111111111111111111111111

interface 0 is initialized

interface 1 is initialized



Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 



WIFI initialized



init_thread(55), Available heap 0xf020[01-01 00:00:00 TUYA Debug][tuya_iot_com_api.c:79] init fs. Path: üï[03][10][01][01] 

[01-01 00:00:00 TUYA Notice][simple_flash.c:428] key_addr: 0x1eb000   block_sz 4096

[01-01 00:00:00 TUYA Notice][simple_flash.c:496] get key:

0xdc 0x87 0x61 0xad 0x7e 0x7f 0x9a 0x43 0x90 0x1b 0x80 0xeb 0x5f 0xd5 0x7f 0x90 

[01-01 00:00:00 TUYA Debug][uni_thread.c:158] Init Thread Del Mgr

[01-01 00:00:00 TUYA Debug][sys_timer.c:64] system timer has been inited

[01-01 00:00:00 TUYA Debug][sys_timer.c:64] system timer has been inited

[01-01 00:00:00 TUYA Debug][ty_work_queue.c:22] init work queue. stack size:2560 pro:3 num:2

[01-01 00:00:00 TUYA Debug][ty_work_queue.c:27] ty work queue create success

[01-01 00:00:00 TUYA Notice][tuya_device.c:155] key:14, relay:12, led:23

[01-01 00:00:00 TUYA Notice][tuya_device.c:157] rtlbn_plug_timer_keygg897krt5kk4t:1.0.3:Jun 25 2019:21:08:07

[01-01 00:00:00 TUYA Notice][tuya_device.c:158] < TUYA IOT SDK V:2.0.0 BS:30.01_PT:2.2_LAN:3.3_CAD:1.0.1_CD:1.0.0 >

< BUILD AT:2019_02_20_20_26_06 BY tuya_iot_team FOR rtlbn_tls_lp_common AT 8710_2M >

IOT DEFS < WIFI_GW:1 DEBUG:1 KV_FILE:0 SHUTDOWN_MODE:0 LITTLE_END:1 TLS_MODE:3 ENABLE_LOCAL_LINKAGE:0 ENABLE_CLOUD_OPERATION:0 ENABLE_SUBDEVICE:0 ENABLE_ENGINEER_TO_NORMAL:0 OPERATING_SYSTEM:2 ENABLE_SYS_RPC:0 TY_SECURITY_CHIP:0 RELIABLE_TRANSFER:RELIABLE_TRANSFER ENABLE_LAN_ENCRYPTION:1 >



[01-01 00:00:00 TUYA Notice][tuya_device.c:164] 

 USER SET LOG_LEVEL_NOTICE 



[01-01 00:00:00 TUYA Notice][tuya_uart.c:125] 1   9600

[01-01 00:00:00 TUYA Notice][tuya_main.c:359] mf_init succ

[01-01 00:00:00 TUYA Notice][tuya_device.c:122] 

 ENABLE OEM KEY: keygg897krt5kk4t 





LwIP_DHCP: dhcp stop.


Deinitializing WIFI ...


WIFI deinitialized


Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 



WIFI initialized

[01-01 00:00:01 TUYA Notice][tuya_main.c:113] current product ssid name:tuya_mdev_test1

[01-01 00:00:02 TUYA Notice][wifi_hwl.c:259] not find scan ssid (tuya_mdev_test1)

[01-01 00:00:02 TUYA Notice][tuya_main.c:117] wf_assign_ap_scan failed(-606)

[01-01 00:00:02 TUYA Notice][tuya_device.c:1161] 

 ENABLE LOW POWER 



[01-01 00:00:02 TUYA Notice][gw_intf.c:2152] serial_no:68572d3cd8c0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2180] gw_cntl.gw_wsm.stat:1

[01-01 00:00:02 TUYA Notice][gw_intf.c:2183] gw_cntl.gw_wsm.nc_tp:1

[01-01 00:00:02 TUYA Notice][gw_intf.c:2184] gw_cntl.gw_wsm.md:0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2216] gw_cntl.gw_if.abi:0 input:0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2217] gw_cntl.gw_if.product_key:keygg897krt5kk4t, input:keygg897krt5kk4t

[01-01 00:00:02 TUYA Notice][gw_intf.c:2218] gw_cntl.gw_if.tp:0, input:0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2219] gw_cntl.gw_if.firmware_key:, input:üï[03][10][01][01]

[01-01 00:00:02 TUYA Notice][hw_table.c:106] IO - relay[0]:	pin-12	type high

[01-01 00:00:02 TUYA Notice][hw_table.c:349] trig_type:level

[01-01 00:00:02 TUYA Notice][hw_table.c:369] CH[0],    DPID[1]

[01-01 00:00:02 TUYA Notice][hw_table.c:370] CH[0],    CDDPID[11]

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:02 TUYA Notice][hw_table.c:106] IO - wifi_stat:	pin-23	type low

[01-01 00:00:02 TUYA Notice][hw_table.c:106] IO - power_button:	pin-14	type low

[01-01 00:00:02 TUYA Notice][hw_table.c:404] trig_type:level

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:186] id 14 {0x100186b4}

[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:129 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:130 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:131 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:129 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:130 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:131 



[01-01 00:00:02 TUYA Notice][timer_data.c:186]  timer_clear_data data_addr=10006284 



[01-01 00:00:02 TUYA Notice][local_timer.c:117] nLen = 0 error

[01-01 00:00:02 TUYA Notice][timer_data.c:186]  timer_clear_data data_addr=10006398 



[01-01 00:00:02 TUYA Notice][local_timer.c:117] nLen = 0 error

[01-01 00:00:02 TUYA Notice][timer_data.c:186]  timer_clear_data data_addr=100064ac 



[01-01 00:00:02 TUYA Notice][local_timer.c:117] nLen = 0 error

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:168] port = 12 ,level = 0

[01-01 00:00:02 TUYA Notice][tuya_led.c:107] port = 23 ,type = 1

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:02 TUYA Notice][tuya_device.c:1222] device_init ok  free_mem_size:42664



LwIP_DHCP: dhcp stop.


Deinitializing WIFI ...


WIFI deinitialized


Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 



WIFI initialized

[01-01 00:00:03 TUYA Notice][tuya_device.c:410] ===============lowpower_disable=================

[01-01 00:00:03 TUYA Notice][tuya_device.c:378] ===============lowpower_ctrl 0=================

[01-01 00:00:03 TUYA Notice][tuya_led.c:107] port = 23 ,type = 3

[01-01 00:00:03 TUYA Notice][tuya_device.c:814] save timer data



[01-01 00:00:03 TUYA Notice][tuya_device.c:831] timer write flash[{"nomal_time":"","random_time":"","cycle_time":""}]

[01-01 00:00:03 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:04 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0



LwIP_DHCP: dhcp stop.


Deinitializing WIFI ...[01-01 00:00:04 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1



WIFI deinitialized


Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 



WIFI initialized

[01-01 00:00:04 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:04 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:05 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:05 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:05 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:06 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:06 TUYA Notice][gw_intf.c:473] stop smt cfg mthd:1

[01-01 00:00:06 TUYA Notice][gw_intf.c:476] lowpower or special mode stop tmm_short and tmm_long timer



LwIP_DHCP: dhcp stop.


Deinitializing WIFI ...[01-01 00:00:06 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0



WIFI deinitialized


Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 

[01-01 00:00:06 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1



WIFI initialized


ReguTimer CalibData:124f 

[01-01 00:00:07 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:07 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:07 TUYA Notice][tuya_device.c:410] ===============lowpower_disable=================

[01-01 00:00:07 TUYA Notice][tuya_device.c:378] ===============lowpower_ctrl 0=================

[01-01 00:00:07 TUYA Notice][tuya_led.c:107] port = 23 ,type = 1

[01-01 00:00:07 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:07 TUYA Notice][tuya_led.c:107] port = 23 ,type = 1

[01-01 00:00:07 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1



LDO Mode, BD_Info: 0 

[01-01 00:00:08 TUYA Notice][tuya_key.c:440] get key interrupt

[01-01 00:00:08 TUYA Notice][tuya_device.c:404] ===============lowpower_timer_cb=================

[01-01 00:00:08 TUYA Notice][tuya_device.c:378] ===============lowpower_ctrl 0=================

[01-01 00:00:08 TUYA Notice][tuya_device.c:381] device enter sleep mode

[01-01 00:00:08 TUYA Notice][tuya_device.c:384] ===============lowpower_ctrl 1=================



RTL8195A[Driver]: set ssid [vtrust-flash] 



RTL8195A[Driver]: start auth to b8:27:eb:f8:b0:e3



RTL8195A[Driver]: auth success, start assoc



RTL8195A[Driver]: sta recv deauth reason code(2) sta:b8:27:eb:f8:b0:e3



RTL8195A[Driver]: sta recv deauth reason code(6) sta:b8:27:eb:f8:b0:e3

[01-01 00:00:10 TUYA Err][gw_intf.c:1342] net work unavailable

[01-01 00:00:11 TUYA Notice][tuya_device.c:410] ===============lowpower_disable=================

[01-01 00:00:11 TUYA Notice][tuya_device.c:378] ===============lowpower_ctrl 1=================

[01-01 00:00:11 TUYA Notice][tuya_device.c:390] device exit sleep mode

[01-01 00:00:11 TUYA Notice][tuya_device.c:393] ===============lowpower_ctrl 0=================

[01-01 00:00:11 TUYA Notice][tuya_device.c:1245] port: 14,type: 2,cnt: 0


<RTL8195A>
ROM:[V0.1]


FLASHRATE:4


BOOT TYPE:0 XTAL:40000000


IMG1 DATA[1168:10002000]


IMG1 ENTRY[8000541:100021ef]


IMG1 ENTER


CHIPID[000000ff]


read_mode idx:3, flash_speed idx:0


calibration_result:[1:5:11][9:d] 


calibration_result:[2:13:7][1:d] 


calibration_result:[3:7:5][1:7] 


calibration_ok:[2:13:7] 


FLASH CALIB[NEW OK]


OTA2 ADDR[80d0000]


OTAx SELE[fffffffc]


OTA1 USE


IMG2 DATA[0x8099fa0:8460:0x10005000]


IMG2 SIGN[RTKWin(10005008)]


IMG2 ENTRY[0x10005000:0x800b1a5]


===== Enter Image 2 ====


System_Init1


OSC8M: 8386568 


boot reason: 4605 


System_Init2



11111111111111111111111111

interface 0 is initialized

interface 1 is initialized



Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 



WIFI initialized



init_thread(55), Available heap 0xf020[01-01 00:00:00 TUYA Debug][tuya_iot_com_api.c:79] init fs. Path: üï[03][10][01][01] 

[01-01 00:00:00 TUYA Notice][simple_flash.c:428] key_addr: 0x1eb000   block_sz 4096

[01-01 00:00:00 TUYA Notice][simple_flash.c:496] get key:

0xdc 0x87 0x61 0xad 0x7e 0x7f 0x9a 0x43 0x90 0x1b 0x80 0xeb 0x5f 0xd5 0x7f 0x90 

[01-01 00:00:00 TUYA Debug][uni_thread.c:158] Init Thread Del Mgr

[01-01 00:00:00 TUYA Debug][sys_timer.c:64] system timer has been inited

[01-01 00:00:00 TUYA Debug][sys_timer.c:64] system timer has been inited

[01-01 00:00:00 TUYA Debug][ty_work_queue.c:22] init work queue. stack size:2560 pro:3 num:2

[01-01 00:00:00 TUYA Debug][ty_work_queue.c:27] ty work queue create success

[01-01 00:00:00 TUYA Notice][tuya_device.c:155] key:14, relay:12, led:23

[01-01 00:00:00 TUYA Notice][tuya_device.c:157] rtlbn_plug_timer_keygg897krt5kk4t:1.0.3:Jun 25 2019:21:08:07

[01-01 00:00:00 TUYA Notice][tuya_device.c:158] < TUYA IOT SDK V:2.0.0 BS:30.01_PT:2.2_LAN:3.3_CAD:1.0.1_CD:1.0.0 >

< BUILD AT:2019_02_20_20_26_06 BY tuya_iot_team FOR rtlbn_tls_lp_common AT 8710_2M >

IOT DEFS < WIFI_GW:1 DEBUG:1 KV_FILE:0 SHUTDOWN_MODE:0 LITTLE_END:1 TLS_MODE:3 ENABLE_LOCAL_LINKAGE:0 ENABLE_CLOUD_OPERATION:0 ENABLE_SUBDEVICE:0 ENABLE_ENGINEER_TO_NORMAL:0 OPERATING_SYSTEM:2 ENABLE_SYS_RPC:0 TY_SECURITY_CHIP:0 RELIABLE_TRANSFER:RELIABLE_TRANSFER ENABLE_LAN_ENCRYPTION:1 >



[01-01 00:00:00 TUYA Notice][tuya_device.c:164] 

 USER SET LOG_LEVEL_NOTICE 



[01-01 00:00:00 TUYA Notice][tuya_uart.c:125] 1   9600

[01-01 00:00:00 TUYA Notice][tuya_main.c:359] mf_init succ

[01-01 00:00:00 TUYA Notice][tuya_device.c:122] 

 ENABLE OEM KEY: keygg897krt5kk4t 





LwIP_DHCP: dhcp stop.


Deinitializing WIFI ...


WIFI deinitialized


Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 



WIFI initialized

[01-01 00:00:01 TUYA Notice][tuya_main.c:113] current product ssid name:tuya_mdev_test1

[01-01 00:00:02 TUYA Notice][wifi_hwl.c:259] not find scan ssid (tuya_mdev_test1)

[01-01 00:00:02 TUYA Notice][tuya_main.c:117] wf_assign_ap_scan failed(-606)

[01-01 00:00:02 TUYA Notice][tuya_device.c:1161] 

 ENABLE LOW POWER 



[01-01 00:00:02 TUYA Notice][gw_intf.c:2152] serial_no:68572d3cd8c0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2180] gw_cntl.gw_wsm.stat:1

[01-01 00:00:02 TUYA Notice][gw_intf.c:2183] gw_cntl.gw_wsm.nc_tp:1

[01-01 00:00:02 TUYA Notice][gw_intf.c:2184] gw_cntl.gw_wsm.md:0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2216] gw_cntl.gw_if.abi:0 input:0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2217] gw_cntl.gw_if.product_key:keygg897krt5kk4t, input:keygg897krt5kk4t

[01-01 00:00:02 TUYA Notice][gw_intf.c:2218] gw_cntl.gw_if.tp:0, input:0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2219] gw_cntl.gw_if.firmware_key:, input:üï[03][10][01][01]

[01-01 00:00:02 TUYA Notice][hw_table.c:106] IO - relay[0]:	pin-12	type high

[01-01 00:00:02 TUYA Notice][hw_table.c:349] trig_type:level

[01-01 00:00:02 TUYA Notice][hw_table.c:369] CH[0],    DPID[1]

[01-01 00:00:02 TUYA Notice][hw_table.c:370] CH[0],    CDDPID[11]

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:02 TUYA Notice][hw_table.c:106] IO - wifi_stat:	pin-23	type low

[01-01 00:00:02 TUYA Notice][hw_table.c:106] IO - power_button:	pin-14	type low

[01-01 00:00:02 TUYA Notice][hw_table.c:404] trig_type:level

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:186] id 14 {0x100186b4}

[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:129 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:130 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:131 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:129 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:130 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:131 



[01-01 00:00:02 TUYA Notice][timer_data.c:186]  timer_clear_data data_addr=10006284 



[01-01 00:00:02 TUYA Notice][local_timer.c:117] nLen = 0 error

[01-01 00:00:02 TUYA Notice][timer_data.c:186]  timer_clear_data data_addr=10006398 



[01-01 00:00:02 TUYA Notice][local_timer.c:117] nLen = 0 error

[01-01 00:00:02 TUYA Notice][timer_data.c:186]  timer_clear_data data_addr=100064ac 



[01-01 00:00:02 TUYA Notice][local_timer.c:117] nLen = 0 error

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:168] port = 12 ,level = 0

[01-01 00:00:02 TUYA Notice][tuya_led.c:107] port = 23 ,type = 1

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:02 TUYA Notice][tuya_device.c:1222] device_init ok  free_mem_size:42664



LwIP_DHCP: dhcp stop.


Deinitializing WIFI ...


WIFI deinitialized


Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 



WIFI initialized

[01-01 00:00:03 TUYA Notice][tuya_device.c:410] ===============lowpower_disable=================

[01-01 00:00:03 TUYA Notice][tuya_device.c:378] ===============lowpower_ctrl 0=================

[01-01 00:00:03 TUYA Notice][tuya_led.c:107] port = 23 ,type = 3

[01-01 00:00:03 TUYA Notice][tuya_device.c:814] save timer data



[01-01 00:00:03 TUYA Notice][tuya_device.c:831] timer write flash[{"nomal_time":"","random_time":"","cycle_time":""}]

[01-01 00:00:03 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1


<RTL8195A>
ROM:[V0.1]


FLASHRATE:4


BOOT TYPE:0 XTAL:40000000


IMG1 DATA[1168:10002000]


IMG1 ENTRY[8000541:100021ef]


IMG1 ENTER


CHIPID[000000ff]


read_mode idx:3, flash_speed idx:0


calibration_result:[1:5:11][9:d] 


calibration_result:[2:13:7][1:d] 


calibration_result:[3:7:5][1:7] 


calibration_ok:[2:13:7] 


FLASH CALIB[NEW OK]


OTA2 ADDR[80d0000]


OTAx SELE[fffffffc]


OTA1 USE


IMG2 DATA[0x8099fa0:8460:0x10005000]


IMG2 SIGN[RTKWin(10005008)]


IMG2 ENTRY[0x10005000:0x800b1a5]


===== Enter Image 2 ====


System_Init1


OSC8M: 8390004 


boot reason: 0 


System_Init2



11111111111111111111111111

interface 0 is initialized

interface 1 is initialized



Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 



WIFI initialized



init_thread(55), Available heap 0xf020[01-01 00:00:00 TUYA Debug][tuya_iot_com_api.c:79] init fs. Path: üï[03][10][01][01] 

[01-01 00:00:00 TUYA Notice][simple_flash.c:428] key_addr: 0x1eb000   block_sz 4096

[01-01 00:00:00 TUYA Notice][simple_flash.c:496] get key:

0xdc 0x87 0x61 0xad 0x7e 0x7f 0x9a 0x43 0x90 0x1b 0x80 0xeb 0x5f 0xd5 0x7f 0x90 

[01-01 00:00:00 TUYA Debug][uni_thread.c:158] Init Thread Del Mgr

[01-01 00:00:00 TUYA Debug][sys_timer.c:64] system timer has been inited

[01-01 00:00:00 TUYA Debug][sys_timer.c:64] system timer has been inited

[01-01 00:00:00 TUYA Debug][ty_work_queue.c:22] init work queue. stack size:2560 pro:3 num:2

[01-01 00:00:00 TUYA Debug][ty_work_queue.c:27] ty work queue create success

[01-01 00:00:00 TUYA Notice][tuya_device.c:155] key:14, relay:12, led:23

[01-01 00:00:00 TUYA Notice][tuya_device.c:157] rtlbn_plug_timer_keygg897krt5kk4t:1.0.3:Jun 25 2019:21:08:07

[01-01 00:00:00 TUYA Notice][tuya_device.c:158] < TUYA IOT SDK V:2.0.0 BS:30.01_PT:2.2_LAN:3.3_CAD:1.0.1_CD:1.0.0 >

< BUILD AT:2019_02_20_20_26_06 BY tuya_iot_team FOR rtlbn_tls_lp_common AT 8710_2M >

IOT DEFS < WIFI_GW:1 DEBUG:1 KV_FILE:0 SHUTDOWN_MODE:0 LITTLE_END:1 TLS_MODE:3 ENABLE_LOCAL_LINKAGE:0 ENABLE_CLOUD_OPERATION:0 ENABLE_SUBDEVICE:0 ENABLE_ENGINEER_TO_NORMAL:0 OPERATING_SYSTEM:2 ENABLE_SYS_RPC:0 TY_SECURITY_CHIP:0 RELIABLE_TRANSFER:RELIABLE_TRANSFER ENABLE_LAN_ENCRYPTION:1 >



[01-01 00:00:00 TUYA Notice][tuya_device.c:164] 

 USER SET LOG_LEVEL_NOTICE 



[01-01 00:00:00 TUYA Notice][tuya_uart.c:125] 1   9600

[01-01 00:00:00 TUYA Notice][tuya_main.c:359] mf_init succ

[01-01 00:00:00 TUYA Notice][tuya_device.c:122] 

 ENABLE OEM KEY: keygg897krt5kk4t 





LwIP_DHCP: dhcp stop.


Deinitializing WIFI ...


WIFI deinitialized


Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 



WIFI initialized

[01-01 00:00:01 TUYA Notice][tuya_main.c:113] current product ssid name:tuya_mdev_test1

[01-01 00:00:02 TUYA Notice][wifi_hwl.c:259] not find scan ssid (tuya_mdev_test1)

[01-01 00:00:02 TUYA Notice][tuya_main.c:117] wf_assign_ap_scan failed(-606)

[01-01 00:00:02 TUYA Notice][tuya_device.c:1161] 

 ENABLE LOW POWER 



[01-01 00:00:02 TUYA Notice][gw_intf.c:2152] serial_no:68572d3cd8c0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2180] gw_cntl.gw_wsm.stat:1

[01-01 00:00:02 TUYA Notice][gw_intf.c:2183] gw_cntl.gw_wsm.nc_tp:1

[01-01 00:00:02 TUYA Notice][gw_intf.c:2184] gw_cntl.gw_wsm.md:0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2216] gw_cntl.gw_if.abi:0 input:0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2217] gw_cntl.gw_if.product_key:keygg897krt5kk4t, input:keygg897krt5kk4t

[01-01 00:00:02 TUYA Notice][gw_intf.c:2218] gw_cntl.gw_if.tp:0, input:0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2219] gw_cntl.gw_if.firmware_key:, input:üï[03][10][01][01]

[01-01 00:00:02 TUYA Notice][hw_table.c:106] IO - relay[0]:	pin-12	type high

[01-01 00:00:02 TUYA Notice][hw_table.c:349] trig_type:level

[01-01 00:00:02 TUYA Notice][hw_table.c:369] CH[0],    DPID[1]

[01-01 00:00:02 TUYA Notice][hw_table.c:370] CH[0],    CDDPID[11]

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:02 TUYA Notice][hw_table.c:106] IO - wifi_stat:	pin-23	type low

[01-01 00:00:02 TUYA Notice][hw_table.c:106] IO - power_button:	pin-14	type low

[01-01 00:00:02 TUYA Notice][hw_table.c:404] trig_type:level

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:186] id 14 {0x100186b4}

[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:129 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:130 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:131 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:129 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:130 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:131 



[01-01 00:00:02 TUYA Notice][timer_data.c:186]  timer_clear_data data_addr=10006284 



[01-01 00:00:02 TUYA Notice][local_timer.c:117] nLen = 0 error

[01-01 00:00:02 TUYA Notice][timer_data.c:186]  timer_clear_data data_addr=10006398 



[01-01 00:00:02 TUYA Notice][local_timer.c:117] nLen = 0 error

[01-01 00:00:02 TUYA Notice][timer_data.c:186]  timer_clear_data data_addr=100064ac 



[01-01 00:00:02 TUYA Notice][local_timer.c:117] nLen = 0 error

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:168] port = 12 ,level = 0

[01-01 00:00:02 TUYA Notice][tuya_led.c:107] port = 23 ,type = 1

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:02 TUYA Notice][tuya_device.c:1222] device_init ok  free_mem_size:42664



LwIP_DHCP: dhcp stop.


Deinitializing WIFI ...


WIFI deinitialized


Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 



WIFI initialized

[01-01 00:00:03 TUYA Notice][tuya_device.c:410] ===============lowpower_disable=================

[01-01 00:00:03 TUYA Notice][tuya_device.c:378] ===============lowpower_ctrl 0=================

[01-01 00:00:03 TUYA Notice][tuya_led.c:107] port = 23 ,type = 3

[01-01 00:00:03 TUYA Notice][tuya_device.c:814] save timer data



[01-01 00:00:03 TUYA Notice][tuya_device.c:831] timer write flash[{"nomal_time":"","random_time":"","cycle_time":""}]

[01-01 00:00:03 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1


<RTL8195A>
ROM:[V0.1]


FLASHRATE:4


BOOT TYPE:0 XTAL:40000000


IMG1 DATA[1168:10002000]


IMG1 ENTRY[8000541:100021ef]


IMG1 ENTER


CHIPID[000000ff]


read_mode idx:3, flash_speed idx:0


calibration_result:[1:5:11][9:d] 


calibration_result:[2:13:7][1:d] 


calibration_result:[3:7:5][1:7] 


calibration_ok:[2:13:7] 


FLASH CALIB[NEW OK]


OTA2 ADDR[80d0000]


OTAx SELE[fffffffc]


OTA1 USE


IMG2 DATA[0x8099fa0:8460:0x10005000]


IMG2 SIGN[RTKWin(10005008)]


IMG2 ENTRY[0x10005000:0x800b1a5]


===== Enter Image 2 ====


System_Init1


OSC8M: 8390004 


boot reason: 0 


System_Init2



11111111111111111111111111

interface 0 is initialized

interface 1 is initialized



Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 



WIFI initialized



init_thread(55), Available heap 0xf020[01-01 00:00:00 TUYA Debug][tuya_iot_com_api.c:79] init fs. Path: üï[03][10][01][01] 

[01-01 00:00:00 TUYA Notice][simple_flash.c:428] key_addr: 0x1eb000   block_sz 4096

[01-01 00:00:00 TUYA Notice][simple_flash.c:496] get key:

0xdc 0x87 0x61 0xad 0x7e 0x7f 0x9a 0x43 0x90 0x1b 0x80 0xeb 0x5f 0xd5 0x7f 0x90 

[01-01 00:00:00 TUYA Debug][uni_thread.c:158] Init Thread Del Mgr

[01-01 00:00:00 TUYA Debug][sys_timer.c:64] system timer has been inited

[01-01 00:00:00 TUYA Debug][sys_timer.c:64] system timer has been inited

[01-01 00:00:00 TUYA Debug][ty_work_queue.c:22] init work queue. stack size:2560 pro:3 num:2

[01-01 00:00:00 TUYA Debug][ty_work_queue.c:27] ty work queue create success

[01-01 00:00:00 TUYA Notice][tuya_device.c:155] key:14, relay:12, led:23

[01-01 00:00:00 TUYA Notice][tuya_device.c:157] rtlbn_plug_timer_keygg897krt5kk4t:1.0.3:Jun 25 2019:21:08:07

[01-01 00:00:00 TUYA Notice][tuya_device.c:158] < TUYA IOT SDK V:2.0.0 BS:30.01_PT:2.2_LAN:3.3_CAD:1.0.1_CD:1.0.0 >

< BUILD AT:2019_02_20_20_26_06 BY tuya_iot_team FOR rtlbn_tls_lp_common AT 8710_2M >

IOT DEFS < WIFI_GW:1 DEBUG:1 KV_FILE:0 SHUTDOWN_MODE:0 LITTLE_END:1 TLS_MODE:3 ENABLE_LOCAL_LINKAGE:0 ENABLE_CLOUD_OPERATION:0 ENABLE_SUBDEVICE:0 ENABLE_ENGINEER_TO_NORMAL:0 OPERATING_SYSTEM:2 ENABLE_SYS_RPC:0 TY_SECURITY_CHIP:0 RELIABLE_TRANSFER:RELIABLE_TRANSFER ENABLE_LAN_ENCRYPTION:1 >



[01-01 00:00:00 TUYA Notice][tuya_device.c:164] 

 USER SET LOG_LEVEL_NOTICE 



[01-01 00:00:00 TUYA Notice][tuya_uart.c:125] 1   9600

[01-01 00:00:00 TUYA Notice][tuya_main.c:359] mf_init succ

[01-01 00:00:00 TUYA Notice][tuya_device.c:122] 

 ENABLE OEM KEY: keygg897krt5kk4t 





LwIP_DHCP: dhcp stop.


Deinitializing WIFI ...


WIFI deinitialized


Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 



WIFI initialized

[01-01 00:00:01 TUYA Notice][tuya_main.c:113] current product ssid name:tuya_mdev_test1

[01-01 00:00:02 TUYA Notice][wifi_hwl.c:259] not find scan ssid (tuya_mdev_test1)

[01-01 00:00:02 TUYA Notice][tuya_main.c:117] wf_assign_ap_scan failed(-606)

[01-01 00:00:02 TUYA Notice][tuya_device.c:1161] 

 ENABLE LOW POWER 



[01-01 00:00:02 TUYA Notice][gw_intf.c:2152] serial_no:68572d3cd8c0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2180] gw_cntl.gw_wsm.stat:1

[01-01 00:00:02 TUYA Notice][gw_intf.c:2183] gw_cntl.gw_wsm.nc_tp:1

[01-01 00:00:02 TUYA Notice][gw_intf.c:2184] gw_cntl.gw_wsm.md:0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2216] gw_cntl.gw_if.abi:0 input:0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2217] gw_cntl.gw_if.product_key:keygg897krt5kk4t, input:keygg897krt5kk4t

[01-01 00:00:02 TUYA Notice][gw_intf.c:2218] gw_cntl.gw_if.tp:0, input:0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2219] gw_cntl.gw_if.firmware_key:, input:üï[03][10][01][01]

[01-01 00:00:02 TUYA Notice][hw_table.c:106] IO - relay[0]:	pin-12	type high

[01-01 00:00:02 TUYA Notice][hw_table.c:349] trig_type:level

[01-01 00:00:02 TUYA Notice][hw_table.c:369] CH[0],    DPID[1]

[01-01 00:00:02 TUYA Notice][hw_table.c:370] CH[0],    CDDPID[11]

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:02 TUYA Notice][hw_table.c:106] IO - wifi_stat:	pin-23	type low

[01-01 00:00:02 TUYA Notice][hw_table.c:106] IO - power_button:	pin-14	type low

[01-01 00:00:02 TUYA Notice][hw_table.c:404] trig_type:level

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:186] id 14 {0x100186b4}

[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:129 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:130 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:131 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:129 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:130 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:131 



[01-01 00:00:02 TUYA Notice][timer_data.c:186]  timer_clear_data data_addr=10006284 



[01-01 00:00:02 TUYA Notice][local_timer.c:117] nLen = 0 error

[01-01 00:00:02 TUYA Notice][timer_data.c:186]  timer_clear_data data_addr=10006398 



[01-01 00:00:02 TUYA Notice][local_timer.c:117] nLen = 0 error

[01-01 00:00:02 TUYA Notice][timer_data.c:186]  timer_clear_data data_addr=100064ac 



[01-01 00:00:02 TUYA Notice][local_timer.c:117] nLen = 0 error

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:168] port = 12 ,level = 0

[01-01 00:00:02 TUYA Notice][tuya_led.c:107] port = 23 ,type = 1

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:02 TUYA Notice][tuya_device.c:1222] device_init ok  free_mem_size:42664



LwIP_DHCP: dhcp stop.


Deinitializing WIFI ...


WIFI deinitialized


Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 



WIFI initialized

[01-01 00:00:03 TUYA Notice][tuya_device.c:410] ===============lowpower_disable=================

[01-01 00:00:03 TUYA Notice][tuya_device.c:378] ===============lowpower_ctrl 0=================

[01-01 00:00:03 TUYA Notice][tuya_led.c:107] port = 23 ,type = 3

[01-01 00:00:03 TUYA Notice][tuya_device.c:814] save timer data



[01-01 00:00:03 TUYA Notice][tuya_device.c:831] timer write flash[{"nomal_time":"","random_time":"","cycle_time":""}]

[01-01 00:00:03 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1


<RTL8195A>
ROM:[V0.1]


FLASHRATE:4


BOOT TYPE:0 XTAL:40000000


IMG1 DATA[1168:10002000]


IMG1 ENTRY[8000541:100021ef]


IMG1 ENTER


CHIPID[000000ff]


read_mode idx:3, flash_speed idx:0


calibration_result:[1:5:11][9:d] 


calibration_result:[2:13:7][1:d] 


calibration_result:[3:7:5][1:7] 


calibration_ok:[2:13:7] 


FLASH CALIB[NEW OK]


OTA2 ADDR[80d0000]


OTAx SELE[fffffffc]


OTA1 USE


IMG2 DATA[0x8099fa0:8460:0x10005000]


IMG2 SIGN[RTKWin(10005008)]


IMG2 ENTRY[0x10005000:0x800b1a5]


===== Enter Image 2 ====


System_Init1


OSC8M: 8386568 


boot reason: 0 


System_Init2



11111111111111111111111111

interface 0 is initialized

interface 1 is initialized



Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 



WIFI initialized



init_thread(55), Available heap 0xf020[01-01 00:00:00 TUYA Debug][tuya_iot_com_api.c:79] init fs. Path: üï[03][10][01][01] 

[01-01 00:00:00 TUYA Notice][simple_flash.c:428] key_addr: 0x1eb000   block_sz 4096

[01-01 00:00:00 TUYA Notice][simple_flash.c:496] get key:

0xdc 0x87 0x61 0xad 0x7e 0x7f 0x9a 0x43 0x90 0x1b 0x80 0xeb 0x5f 0xd5 0x7f 0x90 

[01-01 00:00:00 TUYA Debug][uni_thread.c:158] Init Thread Del Mgr

[01-01 00:00:00 TUYA Debug][sys_timer.c:64] system timer has been inited

[01-01 00:00:00 TUYA Debug][sys_timer.c:64] system timer has been inited

[01-01 00:00:00 TUYA Debug][ty_work_queue.c:22] init work queue. stack size:2560 pro:3 num:2

[01-01 00:00:00 TUYA Debug][ty_work_queue.c:27] ty work queue create success

[01-01 00:00:00 TUYA Notice][tuya_device.c:155] key:14, relay:12, led:23

[01-01 00:00:00 TUYA Notice][tuya_device.c:157] rtlbn_plug_timer_keygg897krt5kk4t:1.0.3:Jun 25 2019:21:08:07

[01-01 00:00:00 TUYA Notice][tuya_device.c:158] < TUYA IOT SDK V:2.0.0 BS:30.01_PT:2.2_LAN:3.3_CAD:1.0.1_CD:1.0.0 >

< BUILD AT:2019_02_20_20_26_06 BY tuya_iot_team FOR rtlbn_tls_lp_common AT 8710_2M >

IOT DEFS < WIFI_GW:1 DEBUG:1 KV_FILE:0 SHUTDOWN_MODE:0 LITTLE_END:1 TLS_MODE:3 ENABLE_LOCAL_LINKAGE:0 ENABLE_CLOUD_OPERATION:0 ENABLE_SUBDEVICE:0 ENABLE_ENGINEER_TO_NORMAL:0 OPERATING_SYSTEM:2 ENABLE_SYS_RPC:0 TY_SECURITY_CHIP:0 RELIABLE_TRANSFER:RELIABLE_TRANSFER ENABLE_LAN_ENCRYPTION:1 >



[01-01 00:00:00 TUYA Notice][tuya_device.c:164] 

 USER SET LOG_LEVEL_NOTICE 



[01-01 00:00:00 TUYA Notice][tuya_uart.c:125] 1   9600

[01-01 00:00:00 TUYA Notice][tuya_main.c:359] mf_init succ

[01-01 00:00:00 TUYA Notice][tuya_device.c:122] 

 ENABLE OEM KEY: keygg897krt5kk4t 





LwIP_DHCP: dhcp stop.


Deinitializing WIFI ...


WIFI deinitialized


Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 



WIFI initialized

[01-01 00:00:01 TUYA Notice][tuya_main.c:113] current product ssid name:tuya_mdev_test1

[01-01 00:00:02 TUYA Notice][wifi_hwl.c:259] not find scan ssid (tuya_mdev_test1)

[01-01 00:00:02 TUYA Notice][tuya_main.c:117] wf_assign_ap_scan failed(-606)

[01-01 00:00:02 TUYA Notice][tuya_device.c:1161] 

 ENABLE LOW POWER 



[01-01 00:00:02 TUYA Notice][gw_intf.c:2152] serial_no:68572d3cd8c0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2180] gw_cntl.gw_wsm.stat:1

[01-01 00:00:02 TUYA Notice][gw_intf.c:2183] gw_cntl.gw_wsm.nc_tp:1

[01-01 00:00:02 TUYA Notice][gw_intf.c:2184] gw_cntl.gw_wsm.md:0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2216] gw_cntl.gw_if.abi:0 input:0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2217] gw_cntl.gw_if.product_key:keygg897krt5kk4t, input:keygg897krt5kk4t

[01-01 00:00:02 TUYA Notice][gw_intf.c:2218] gw_cntl.gw_if.tp:0, input:0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2219] gw_cntl.gw_if.firmware_key:, input:üï[03][10][01][01]

[01-01 00:00:02 TUYA Notice][hw_table.c:106] IO - relay[0]:	pin-12	type high

[01-01 00:00:02 TUYA Notice][hw_table.c:349] trig_type:level

[01-01 00:00:02 TUYA Notice][hw_table.c:369] CH[0],    DPID[1]

[01-01 00:00:02 TUYA Notice][hw_table.c:370] CH[0],    CDDPID[11]

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:02 TUYA Notice][hw_table.c:106] IO - wifi_stat:	pin-23	type low

[01-01 00:00:02 TUYA Notice][hw_table.c:106] IO - power_button:	pin-14	type low

[01-01 00:00:02 TUYA Notice][hw_table.c:404] trig_type:level

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:186] id 14 {0x100186b4}

[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:129 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:130 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:131 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:129 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:130 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:131 



[01-01 00:00:02 TUYA Notice][timer_data.c:186]  timer_clear_data data_addr=10006284 



[01-01 00:00:02 TUYA Notice][local_timer.c:117] nLen = 0 error

[01-01 00:00:02 TUYA Notice][timer_data.c:186]  timer_clear_data data_addr=10006398 



[01-01 00:00:02 TUYA Notice][local_timer.c:117] nLen = 0 error

[01-01 00:00:02 TUYA Notice][timer_data.c:186]  timer_clear_data data_addr=100064ac 



[01-01 00:00:02 TUYA Notice][local_timer.c:117] nLen = 0 error

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:168] port = 12 ,level = 0

[01-01 00:00:02 TUYA Notice][tuya_led.c:107] port = 23 ,type = 1

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:02 TUYA Notice][tuya_device.c:1222] device_init ok  free_mem_size:42664



LwIP_DHCP: dhcp stop.


Deinitializing WIFI ...


WIFI deinitialized


Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 



WIFI initialized

[01-01 00:00:03 TUYA Notice][tuya_device.c:410] ===============lowpower_disable=================

[01-01 00:00:03 TUYA Notice][tuya_device.c:378] ===============lowpower_ctrl 0=================

[01-01 00:00:03 TUYA Notice][tuya_led.c:107] port = 23 ,type = 3

[01-01 00:00:03 TUYA Notice][tuya_device.c:814] save timer data



[01-01 00:00:03 TUYA Notice][tuya_device.c:831] timer write flash[{"nomal_time":"","random_time":"","cycle_time":""}]

[01-01 00:00:03 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1


<RTL8195A>
ROM:[V0.1]


FLASHRATE:4


BOOT TYPE:0 XTAL:40000000


IMG1 DATA[1168:10002000]


IMG1 ENTRY[8000541:100021ef]


IMG1 ENTER


CHIPID[000000ff]


read_mode idx:3, flash_speed idx:0


calibration_result:[1:5:11][9:d] 


calibration_result:[2:13:7][1:d] 


calibration_result:[3:7:5][1:7] 


calibration_ok:[2:13:7] 


FLASH CALIB[NEW OK]


OTA2 ADDR[80d0000]


OTAx SELE[fffffffc]


OTA1 USE


IMG2 DATA[0x8099fa0:8460:0x10005000]


IMG2 SIGN[RTKWin(10005008)]


IMG2 ENTRY[0x10005000:0x800b1a5]


===== Enter Image 2 ====


System_Init1


OSC8M: 8383135 


boot reason: 0 


System_Init2



11111111111111111111111111

interface 0 is initialized

interface 1 is initialized



Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 



WIFI initialized



init_thread(55), Available heap 0xf020[01-01 00:00:00 TUYA Debug][tuya_iot_com_api.c:79] init fs. Path: üï[03][10][01][01] 

[01-01 00:00:00 TUYA Notice][simple_flash.c:428] key_addr: 0x1eb000   block_sz 4096

[01-01 00:00:00 TUYA Notice][simple_flash.c:496] get key:

0xdc 0x87 0x61 0xad 0x7e 0x7f 0x9a 0x43 0x90 0x1b 0x80 0xeb 0x5f 0xd5 0x7f 0x90 

[01-01 00:00:00 TUYA Debug][uni_thread.c:158] Init Thread Del Mgr

[01-01 00:00:00 TUYA Debug][sys_timer.c:64] system timer has been inited

[01-01 00:00:00 TUYA Debug][sys_timer.c:64] system timer has been inited

[01-01 00:00:00 TUYA Debug][ty_work_queue.c:22] init work queue. stack size:2560 pro:3 num:2

[01-01 00:00:00 TUYA Debug][ty_work_queue.c:27] ty work queue create success

[01-01 00:00:00 TUYA Notice][tuya_device.c:155] key:14, relay:12, led:23

[01-01 00:00:00 TUYA Notice][tuya_device.c:157] rtlbn_plug_timer_keygg897krt5kk4t:1.0.3:Jun 25 2019:21:08:07

[01-01 00:00:00 TUYA Notice][tuya_device.c:158] < TUYA IOT SDK V:2.0.0 BS:30.01_PT:2.2_LAN:3.3_CAD:1.0.1_CD:1.0.0 >

< BUILD AT:2019_02_20_20_26_06 BY tuya_iot_team FOR rtlbn_tls_lp_common AT 8710_2M >

IOT DEFS < WIFI_GW:1 DEBUG:1 KV_FILE:0 SHUTDOWN_MODE:0 LITTLE_END:1 TLS_MODE:3 ENABLE_LOCAL_LINKAGE:0 ENABLE_CLOUD_OPERATION:0 ENABLE_SUBDEVICE:0 ENABLE_ENGINEER_TO_NORMAL:0 OPERATING_SYSTEM:2 ENABLE_SYS_RPC:0 TY_SECURITY_CHIP:0 RELIABLE_TRANSFER:RELIABLE_TRANSFER ENABLE_LAN_ENCRYPTION:1 >



[01-01 00:00:00 TUYA Notice][tuya_device.c:164] 

 USER SET LOG_LEVEL_NOTICE 



[01-01 00:00:00 TUYA Notice][tuya_uart.c:125] 1   9600

[01-01 00:00:00 TUYA Notice][tuya_main.c:359] mf_init succ

[01-01 00:00:00 TUYA Notice][tuya_device.c:122] 

 ENABLE OEM KEY: keygg897krt5kk4t 





LwIP_DHCP: dhcp stop.


Deinitializing WIFI ...


WIFI deinitialized


Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 



WIFI initialized

[01-01 00:00:01 TUYA Notice][tuya_main.c:113] current product ssid name:tuya_mdev_test1

[01-01 00:00:02 TUYA Notice][wifi_hwl.c:259] not find scan ssid (tuya_mdev_test1)

[01-01 00:00:02 TUYA Notice][tuya_main.c:117] wf_assign_ap_scan failed(-606)

[01-01 00:00:02 TUYA Notice][tuya_device.c:1161] 

 ENABLE LOW POWER 



[01-01 00:00:02 TUYA Notice][gw_intf.c:2152] serial_no:68572d3cd8c0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2180] gw_cntl.gw_wsm.stat:1

[01-01 00:00:02 TUYA Notice][gw_intf.c:2183] gw_cntl.gw_wsm.nc_tp:1

[01-01 00:00:02 TUYA Notice][gw_intf.c:2184] gw_cntl.gw_wsm.md:0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2216] gw_cntl.gw_if.abi:0 input:0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2217] gw_cntl.gw_if.product_key:keygg897krt5kk4t, input:keygg897krt5kk4t

[01-01 00:00:02 TUYA Notice][gw_intf.c:2218] gw_cntl.gw_if.tp:0, input:0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2219] gw_cntl.gw_if.firmware_key:, input:üï[03][10][01][01]

[01-01 00:00:02 TUYA Notice][hw_table.c:106] IO - relay[0]:	pin-12	type high

[01-01 00:00:02 TUYA Notice][hw_table.c:349] trig_type:level

[01-01 00:00:02 TUYA Notice][hw_table.c:369] CH[0],    DPID[1]

[01-01 00:00:02 TUYA Notice][hw_table.c:370] CH[0],    CDDPID[11]

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:02 TUYA Notice][hw_table.c:106] IO - wifi_stat:	pin-23	type low

[01-01 00:00:02 TUYA Notice][hw_table.c:106] IO - power_button:	pin-14	type low

[01-01 00:00:02 TUYA Notice][hw_table.c:404] trig_type:level

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:186] id 14 {0x100186b4}

[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:129 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:130 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:131 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:129 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:130 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:131 



[01-01 00:00:02 TUYA Notice][timer_data.c:186]  timer_clear_data data_addr=10006284 



[01-01 00:00:02 TUYA Notice][local_timer.c:117] nLen = 0 error

[01-01 00:00:02 TUYA Notice][timer_data.c:186]  timer_clear_data data_addr=10006398 



[01-01 00:00:02 TUYA Notice][local_timer.c:117] nLen = 0 error

[01-01 00:00:02 TUYA Notice][timer_data.c:186]  timer_clear_data data_addr=100064ac 



[01-01 00:00:02 TUYA Notice][local_timer.c:117] nLen = 0 error

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:168] port = 12 ,level = 0

[01-01 00:00:02 TUYA Notice][tuya_led.c:107] port = 23 ,type = 1

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:02 TUYA Notice][tuya_device.c:1222] device_init ok  free_mem_size:42664



LwIP_DHCP: dhcp stop.


Deinitializing WIFI ...


WIFI deinitialized


Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 



WIFI initialized

[01-01 00:00:03 TUYA Notice][tuya_device.c:410] ===============lowpower_disable=================

[01-01 00:00:03 TUYA Notice][tuya_device.c:378] ===============lowpower_ctrl 0=================

[01-01 00:00:03 TUYA Notice][tuya_led.c:107] port = 23 ,type = 3

[01-01 00:00:03 TUYA Notice][tuya_device.c:814] save timer data



[01-01 00:00:03 TUYA Notice][tuya_device.c:831] timer write flash[{"nomal_time":"","random_time":"","cycle_time":""}]

[01-01 00:00:03 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:04 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0



LwIP_DHCP: dhcp stop.


Deinitializing WIFI ...[01-01 00:00:04 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1



WIFI deinitialized


Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 



WIFI initialized

[01-01 00:00:04 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:04 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:05 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:05 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:05 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:06 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:06 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:06 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:07 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:07 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

sort_rev_data: 0x00c5 0x0080 0x0100 0x010e 0x0155 0x0153

[01-01 00:00:07 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

sort_rev_data: 0x00c8 0x0081 0x0130 0x0130 0x0130 0x0130

sort_rev_data: 0x0086 0x0082 0x0130 0x0130 0x0130 0x0130

sort_rev_data: 0x00be 0x0083 0x0130 0x0131 0x0130 0x0131

sort_rev_data: 0x00af 0x0084 0x0176 0x0174 0x0172 0x0175

sort_rev_data: 0x00f3 0x0085 0x0173 0x0174 0x012d 0x0166

sort_rev_data: 0x00d4 0x0086 0x016c 0x0161 0x0173 0x0168

[01-01 00:00:07 TUYA Notice][gw_intf.c:473] stop smt cfg mthd:1

[01-01 00:00:07 TUYA Notice][gw_intf.c:476] lowpower or special mode stop tmm_short and tmm_long timer



LwIP_DHCP: dhcp stop.


Deinitializing WIFI ...


WIFI deinitialized[01-01 00:00:08 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1



Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 



WIFI initialized


ReguTimer CalibData:12ac 

[01-01 00:00:08 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:08 TUYA Notice][tuya_device.c:410] ===============lowpower_disable=================

[01-01 00:00:08 TUYA Notice][tuya_device.c:378] ===============lowpower_ctrl 0=================

[01-01 00:00:08 TUYA Notice][tuya_led.c:107] port = 23 ,type = 1

[01-01 00:00:08 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:08 TUYA Notice][tuya_led.c:107] port = 23 ,type = 1

[01-01 00:00:08 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:09 TUYA Notice][tuya_device.c:404] ===============lowpower_timer_cb=================

[01-01 00:00:09 TUYA Notice][tuya_device.c:378] ===============lowpower_ctrl 0=================

[01-01 00:00:09 TUYA Notice][tuya_device.c:381] device enter sleep mode

[01-01 00:00:09 TUYA Notice][tuya_device.c:384] ===============lowpower_ctrl 1=================



LDO Mode, BD_Info: 0 

[01-01 00:00:09 TUYA Notice][tuya_key.c:440] get key interrupt



RTL8195A[Driver]: set ssid [vtrust-flash] 



RTL8195A[Driver]: start auth to b8:27:eb:f8:b0:e3



RTL8195A[Driver]: auth success, start assoc



RTL8195A[Driver]: association success(res=3)


wlan1: 1 DL RSVD page success! DLBcnCount:01, poll:00000001

[01-01 00:00:12 TUYA Err][gw_intf.c:1342] net work unavailable

[01-01 00:00:12 TUYA Notice][tuya_device.c:410] ===============lowpower_disable=================

[01-01 00:00:12 TUYA Notice][tuya_device.c:378] ===============lowpower_ctrl 1=================

[01-01 00:00:12 TUYA Notice][tuya_device.c:390] device exit sleep mode

[01-01 00:00:12 TUYA Notice][tuya_device.c:393] ===============lowpower_ctrl 0=================

[01-01 00:00:12 TUYA Notice][tuya_device.c:1245] port: 14,type: 2,cnt: 0


<RTL8195A>
ROM:[V0.1]


FLASHRATE:4


BOOT TYPE:0 XTAL:40000000


IMG1 DATA[1168:10002000]


IMG1 ENTRY[8000541:100021ef]


IMG1 ENTER


CHIPID[000000ff]


read_mode idx:3, flash_speed idx:0


calibration_result:[1:5:11][9:d] 


calibration_result:[2:13:7][1:d] 


calibration_result:[3:7:5][1:7] 


calibration_ok:[2:13:7] 


FLASH CALIB[NEW OK]


OTA2 ADDR[80d0000]


OTAx SELE[fffffffc]


OTA1 USE


IMG2 DATA[0x8099fa0:8460:0x10005000]


IMG2 SIGN[RTKWin(10005008)]


IMG2 ENTRY[0x10005000:0x800b1a5]


===== Enter Image 2 ====


System_Init1


OSC8M: 8390004 


boot reason: 4605 


System_Init2



11111111111111111111111111

interface 0 is initialized

interface 1 is initialized



Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 



WIFI initialized



init_thread(55), Available heap 0xf020[01-01 00:00:00 TUYA Debug][tuya_iot_com_api.c:79] init fs. Path: üï[03][10][01][01] 

[01-01 00:00:00 TUYA Notice][simple_flash.c:428] key_addr: 0x1eb000   block_sz 4096

[01-01 00:00:00 TUYA Notice][simple_flash.c:496] get key:

0xdc 0x87 0x61 0xad 0x7e 0x7f 0x9a 0x43 0x90 0x1b 0x80 0xeb 0x5f 0xd5 0x7f 0x90 

[01-01 00:00:00 TUYA Debug][uni_thread.c:158] Init Thread Del Mgr

[01-01 00:00:00 TUYA Debug][sys_timer.c:64] system timer has been inited

[01-01 00:00:00 TUYA Debug][sys_timer.c:64] system timer has been inited

[01-01 00:00:00 TUYA Debug][ty_work_queue.c:22] init work queue. stack size:2560 pro:3 num:2

[01-01 00:00:00 TUYA Debug][ty_work_queue.c:27] ty work queue create success

[01-01 00:00:00 TUYA Notice][tuya_device.c:155] key:14, relay:12, led:23

[01-01 00:00:00 TUYA Notice][tuya_device.c:157] rtlbn_plug_timer_keygg897krt5kk4t:1.0.3:Jun 25 2019:21:08:07

[01-01 00:00:00 TUYA Notice][tuya_device.c:158] < TUYA IOT SDK V:2.0.0 BS:30.01_PT:2.2_LAN:3.3_CAD:1.0.1_CD:1.0.0 >

< BUILD AT:2019_02_20_20_26_06 BY tuya_iot_team FOR rtlbn_tls_lp_common AT 8710_2M >

IOT DEFS < WIFI_GW:1 DEBUG:1 KV_FILE:0 SHUTDOWN_MODE:0 LITTLE_END:1 TLS_MODE:3 ENABLE_LOCAL_LINKAGE:0 ENABLE_CLOUD_OPERATION:0 ENABLE_SUBDEVICE:0 ENABLE_ENGINEER_TO_NORMAL:0 OPERATING_SYSTEM:2 ENABLE_SYS_RPC:0 TY_SECURITY_CHIP:0 RELIABLE_TRANSFER:RELIABLE_TRANSFER ENABLE_LAN_ENCRYPTION:1 >



[01-01 00:00:00 TUYA Notice][tuya_device.c:164] 

 USER SET LOG_LEVEL_NOTICE 



[01-01 00:00:00 TUYA Notice][tuya_uart.c:125] 1   9600

[01-01 00:00:00 TUYA Notice][tuya_main.c:359] mf_init succ

[01-01 00:00:00 TUYA Notice][tuya_device.c:122] 

 ENABLE OEM KEY: keygg897krt5kk4t 





LwIP_DHCP: dhcp stop.


Deinitializing WIFI ...


WIFI deinitialized


Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 



WIFI initialized

[01-01 00:00:01 TUYA Notice][tuya_main.c:113] current product ssid name:tuya_mdev_test1

[01-01 00:00:02 TUYA Notice][wifi_hwl.c:259] not find scan ssid (tuya_mdev_test1)

[01-01 00:00:02 TUYA Notice][tuya_main.c:117] wf_assign_ap_scan failed(-606)

[01-01 00:00:02 TUYA Notice][tuya_device.c:1161] 

 ENABLE LOW POWER 



[01-01 00:00:02 TUYA Notice][gw_intf.c:2152] serial_no:68572d3cd8c0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2180] gw_cntl.gw_wsm.stat:1

[01-01 00:00:02 TUYA Notice][gw_intf.c:2183] gw_cntl.gw_wsm.nc_tp:1

[01-01 00:00:02 TUYA Notice][gw_intf.c:2184] gw_cntl.gw_wsm.md:0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2216] gw_cntl.gw_if.abi:0 input:0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2217] gw_cntl.gw_if.product_key:keygg897krt5kk4t, input:keygg897krt5kk4t

[01-01 00:00:02 TUYA Notice][gw_intf.c:2218] gw_cntl.gw_if.tp:0, input:0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2219] gw_cntl.gw_if.firmware_key:, input:üï[03][10][01][01]

[01-01 00:00:02 TUYA Notice][hw_table.c:106] IO - relay[0]:	pin-12	type high

[01-01 00:00:02 TUYA Notice][hw_table.c:349] trig_type:level

[01-01 00:00:02 TUYA Notice][hw_table.c:369] CH[0],    DPID[1]

[01-01 00:00:02 TUYA Notice][hw_table.c:370] CH[0],    CDDPID[11]

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:02 TUYA Notice][hw_table.c:106] IO - wifi_stat:	pin-23	type low

[01-01 00:00:02 TUYA Notice][hw_table.c:106] IO - power_button:	pin-14	type low

[01-01 00:00:02 TUYA Notice][hw_table.c:404] trig_type:level

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:186] id 14 {0x100186b4}

[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:129 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:130 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:131 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:129 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:130 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:131 



[01-01 00:00:02 TUYA Notice][timer_data.c:186]  timer_clear_data data_addr=10006284 



[01-01 00:00:02 TUYA Notice][local_timer.c:117] nLen = 0 error

[01-01 00:00:02 TUYA Notice][timer_data.c:186]  timer_clear_data data_addr=10006398 



[01-01 00:00:02 TUYA Notice][local_timer.c:117] nLen = 0 error

[01-01 00:00:02 TUYA Notice][timer_data.c:186]  timer_clear_data data_addr=100064ac 



[01-01 00:00:02 TUYA Notice][local_timer.c:117] nLen = 0 error

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:168] port = 12 ,level = 0

[01-01 00:00:02 TUYA Notice][tuya_led.c:107] port = 23 ,type = 1

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:02 TUYA Notice][tuya_device.c:1222] device_init ok  free_mem_size:42664



LwIP_DHCP: dhcp stop.


Deinitializing WIFI ...


WIFI deinitialized


Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 



WIFI initialized

[01-01 00:00:03 TUYA Notice][tuya_device.c:410] ===============lowpower_disable=================

[01-01 00:00:03 TUYA Notice][tuya_device.c:378] ===============lowpower_ctrl 0=================

[01-01 00:00:03 TUYA Notice][tuya_led.c:107] port = 23 ,type = 3

[01-01 00:00:03 TUYA Notice][tuya_device.c:814] save timer data



[01-01 00:00:03 TUYA Notice][tuya_device.c:831] timer write flash[{"nomal_time":"","random_time":"","cycle_time":""}]

[01-01 00:00:03 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1


<RTL8195A>
ROM:[V0.1]


FLASHRATE:4


BOOT TYPE:0 XTAL:40000000


IMG1 DATA[1168:10002000]


IMG1 ENTRY[8000541:100021ef]


IMG1 ENTER


CHIPID[000000ff]


read_mode idx:3, flash_speed idx:0


calibration_result:[1:5:11][9:d] 


calibration_result:[2:13:7][1:d] 


calibration_result:[3:7:5][1:7] 


calibration_ok:[2:13:7] 


FLASH CALIB[NEW OK]


OTA2 ADDR[80d0000]


OTAx SELE[fffffffc]


OTA1 USE


IMG2 DATA[0x8099fa0:8460:0x10005000]


IMG2 SIGN[RTKWin(10005008)]


IMG2 ENTRY[0x10005000:0x800b1a5]


===== Enter Image 2 ====


System_Init1


OSC8M: 8386568 


boot reason: 0 


System_Init2



11111111111111111111111111

interface 0 is initialized

interface 1 is initialized



Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 



WIFI initialized



init_thread(55), Available heap 0xf020[01-01 00:00:00 TUYA Debug][tuya_iot_com_api.c:79] init fs. Path: üï[03][10][01][01] 

[01-01 00:00:00 TUYA Notice][simple_flash.c:428] key_addr: 0x1eb000   block_sz 4096

[01-01 00:00:00 TUYA Notice][simple_flash.c:496] get key:

0xdc 0x87 0x61 0xad 0x7e 0x7f 0x9a 0x43 0x90 0x1b 0x80 0xeb 0x5f 0xd5 0x7f 0x90 

[01-01 00:00:00 TUYA Debug][uni_thread.c:158] Init Thread Del Mgr

[01-01 00:00:00 TUYA Debug][sys_timer.c:64] system timer has been inited

[01-01 00:00:00 TUYA Debug][sys_timer.c:64] system timer has been inited

[01-01 00:00:00 TUYA Debug][ty_work_queue.c:22] init work queue. stack size:2560 pro:3 num:2

[01-01 00:00:00 TUYA Debug][ty_work_queue.c:27] ty work queue create success

[01-01 00:00:00 TUYA Notice][tuya_device.c:155] key:14, relay:12, led:23

[01-01 00:00:00 TUYA Notice][tuya_device.c:157] rtlbn_plug_timer_keygg897krt5kk4t:1.0.3:Jun 25 2019:21:08:07

[01-01 00:00:00 TUYA Notice][tuya_device.c:158] < TUYA IOT SDK V:2.0.0 BS:30.01_PT:2.2_LAN:3.3_CAD:1.0.1_CD:1.0.0 >

< BUILD AT:2019_02_20_20_26_06 BY tuya_iot_team FOR rtlbn_tls_lp_common AT 8710_2M >

IOT DEFS < WIFI_GW:1 DEBUG:1 KV_FILE:0 SHUTDOWN_MODE:0 LITTLE_END:1 TLS_MODE:3 ENABLE_LOCAL_LINKAGE:0 ENABLE_CLOUD_OPERATION:0 ENABLE_SUBDEVICE:0 ENABLE_ENGINEER_TO_NORMAL:0 OPERATING_SYSTEM:2 ENABLE_SYS_RPC:0 TY_SECURITY_CHIP:0 RELIABLE_TRANSFER:RELIABLE_TRANSFER ENABLE_LAN_ENCRYPTION:1 >



[01-01 00:00:00 TUYA Notice][tuya_device.c:164] 

 USER SET LOG_LEVEL_NOTICE 



[01-01 00:00:00 TUYA Notice][tuya_uart.c:125] 1   9600

[01-01 00:00:00 TUYA Notice][tuya_main.c:359] mf_init succ

[01-01 00:00:00 TUYA Notice][tuya_device.c:122] 

 ENABLE OEM KEY: keygg897krt5kk4t 





LwIP_DHCP: dhcp stop.


Deinitializing WIFI ...


WIFI deinitialized


Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 



WIFI initialized

[01-01 00:00:01 TUYA Notice][tuya_main.c:113] current product ssid name:tuya_mdev_test1

[01-01 00:00:02 TUYA Notice][wifi_hwl.c:259] not find scan ssid (tuya_mdev_test1)

[01-01 00:00:02 TUYA Notice][tuya_main.c:117] wf_assign_ap_scan failed(-606)

[01-01 00:00:02 TUYA Notice][tuya_device.c:1161] 

 ENABLE LOW POWER 



[01-01 00:00:02 TUYA Notice][gw_intf.c:2152] serial_no:68572d3cd8c0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2180] gw_cntl.gw_wsm.stat:1

[01-01 00:00:02 TUYA Notice][gw_intf.c:2183] gw_cntl.gw_wsm.nc_tp:1

[01-01 00:00:02 TUYA Notice][gw_intf.c:2184] gw_cntl.gw_wsm.md:0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2216] gw_cntl.gw_if.abi:0 input:0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2217] gw_cntl.gw_if.product_key:keygg897krt5kk4t, input:keygg897krt5kk4t

[01-01 00:00:02 TUYA Notice][gw_intf.c:2218] gw_cntl.gw_if.tp:0, input:0

[01-01 00:00:02 TUYA Notice][gw_intf.c:2219] gw_cntl.gw_if.firmware_key:, input:üï[03][10][01][01]

[01-01 00:00:02 TUYA Notice][hw_table.c:106] IO - relay[0]:	pin-12	type high

[01-01 00:00:02 TUYA Notice][hw_table.c:349] trig_type:level

[01-01 00:00:02 TUYA Notice][hw_table.c:369] CH[0],    DPID[1]

[01-01 00:00:02 TUYA Notice][hw_table.c:370] CH[0],    CDDPID[11]

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:02 TUYA Notice][hw_table.c:106] IO - wifi_stat:	pin-23	type low

[01-01 00:00:02 TUYA Notice][hw_table.c:106] IO - power_button:	pin-14	type low

[01-01 00:00:02 TUYA Notice][hw_table.c:404] trig_type:level

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:186] id 14 {0x100186b4}

[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:129 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:130 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:131 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:129 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:130 



[01-01 00:00:02 TUYA Notice][local_timer_dlist_macro.h:87]  __timer_data_clear_list  87 nType:131 



[01-01 00:00:02 TUYA Notice][timer_data.c:186]  timer_clear_data data_addr=10006284 



[01-01 00:00:02 TUYA Notice][local_timer.c:117] nLen = 0 error

[01-01 00:00:02 TUYA Notice][timer_data.c:186]  timer_clear_data data_addr=10006398 



[01-01 00:00:02 TUYA Notice][local_timer.c:117] nLen = 0 error

[01-01 00:00:02 TUYA Notice][timer_data.c:186]  timer_clear_data data_addr=100064ac 



[01-01 00:00:02 TUYA Notice][local_timer.c:117] nLen = 0 error

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:168] port = 12 ,level = 0

[01-01 00:00:02 TUYA Notice][tuya_led.c:107] port = 23 ,type = 1

[01-01 00:00:02 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:02 TUYA Notice][tuya_device.c:1222] device_init ok  free_mem_size:42664



LwIP_DHCP: dhcp stop.


Deinitializing WIFI ...


WIFI deinitialized


Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 



WIFI initialized

[01-01 00:00:03 TUYA Notice][tuya_device.c:410] ===============lowpower_disable=================

[01-01 00:00:03 TUYA Notice][tuya_device.c:378] ===============lowpower_ctrl 0=================

[01-01 00:00:03 TUYA Notice][tuya_led.c:107] port = 23 ,type = 3

[01-01 00:00:03 TUYA Notice][tuya_device.c:814] save timer data



[01-01 00:00:03 TUYA Notice][tuya_device.c:831] timer write flash[{"nomal_time":"","random_time":"","cycle_time":""}]

[01-01 00:00:03 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:04 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0



LwIP_DHCP: dhcp stop.


Deinitializing WIFI ...[01-01 00:00:04 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1



WIFI deinitialized


Initializing WIFI ...

LDO Mode, BD_Info: 0 



LDO Mode, BD_Info: 0 



WIFI initialized

[01-01 00:00:04 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:05 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:05 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:05 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:05 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:06 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:06 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:06 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:07 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:07 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:07 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:08 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:08 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:08 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:09 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:09 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:09 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:09 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:10 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:10 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:10 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:11 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:11 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:11 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:12 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:12 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:12 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:12 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:13 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:13 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:13 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:14 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:14 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:14 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:15 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:15 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:15 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:16 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:16 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:16 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:16 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:17 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:17 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:17 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:18 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:18 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:18 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:19 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:19 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:19 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:20 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:20 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:20 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:20 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:21 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:21 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:21 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:22 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:20 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:20 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:20 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:20 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:21 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:21 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:21 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:22 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:22 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:22 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:23 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:23 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:23 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:23 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:24 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:24 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:24 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:25 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:25 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:25 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:26 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:26 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:26 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:27 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

[01-01 00:00:27 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 0

[01-01 00:00:27 TUYA Notice][tuya_gpio.c:168] port = 23 ,level = 1

@kueblc
Copy link
Collaborator

kueblc commented Nov 11, 2019

This is interesting data @terryhonn, thank you! It does confirm that in your case, the firmware is running on a RTL8195A.

@fatfox511
Copy link

pir.zip

@kueblc after soldering and trying I was able to perform a backup. It seems to be an ESP8266EX with 1mb flash memory.

Maybe that helps :)

Now that I got constant power through my ftdi adapter I will try the tuya-convert method once again tomorrow :)

@kueblc
Copy link
Collaborator

kueblc commented Nov 12, 2019

@fatfox511 it looks like this device, with gwId 21020567ecfabc4bb81d, failed to flash for a different reason. Looking back at your web logs I do not see the message

WARNING: it appears this device does not use an ESP82xx and therefore cannot install ESP based firmware

But it does look like it's repeating the config calls, which has been indicative of schema problems, some of which may be resolved with release v2.2.0

@kueblc
Copy link
Collaborator

kueblc commented Nov 12, 2019

The device producing the warning in your web logs was uuid b1b803647e5aade4

@fatfox511
Copy link

Sorry for my lateness. Yeah thats right.

I tried the procedure multiple times with different devices (Door Sensor, Motion Sensor, Light Bulb), all of them are having the ESP in it, but maybe i mixed up the Log Files with on of the 3 devices.

The pictures of the PIR sensor and the backup bin file are just for an example and for further examination :)

I hope it helps anyway.

@kueblc
Copy link
Collaborator

kueblc commented Nov 14, 2019

All evidence points to the warning message being accurate, and checking the SDK confirms. The Tuya ESP8266 SDK contains no reference to d.json or TUYA_IOT_SDK while the Tuya RTL8710 SDK and others contains no mention of gw.json.

Please feel free to post any new findings, but for now closing this issue as invalid since the message is presumably accurate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants