Hello, I have a relay switch, Use BL602 as its MCU.
Every time the device is powered on or rebooted, it will turn on the switch first and turn it off quickly.
I want to disable it so that every time the device is powered on or restarted, it defaults to the off state, or remember the last state. What should I do?
Because I now have a problem, when the device is connected to the WIFI, but the WIFI does not have the Internet, due to the watchdog mechanism, the device will repeatedly restart and switch the relay state, which bothers me.
你好,我有一个继电器开关,它的MCU是BL602。
每次设备通电或重启时,它都会先打开开关,然后迅速关闭。
我想禁用它,这样每次设备通电或重新启动时,它都会默认为关闭状态,或者记住最后的状态。我该怎么办?
因为我现在遇到一个问题,当设备连接到WIFI,但是WIFI没有英特网时,由于看门狗的机制,设备会反复的重启并切换继电器状态,这对我造成了困扰。
OBK template
{
"vendor": "Tuya",
"bDetailed": "0",
"name": "Full Device Name Here",
"model": "enter short model name here",
"chip": "BL602",
"board": "TODO",
"flags": "10",
"keywords": [
"TODO",
"TODO",
"TODO"
],
"pins": {
"2": "TglChanOnTgl;1",
"14": "LED_n;1",
"20": "Btn;1",
"21": "Rel;1"
},
"command": "PowerSave 1",
"image": "https://obrazki.elektroda.pl/YOUR_IMAGE.jpg",
"wiki": "https://www.elektroda.com/rtvforum/topic_YOUR_TOPIC.html"
}
Added after 9 [minutes]:
I have tried to change the value of Channel in config startup, which is not valid.
The picture shows that the device has been turned off by default, and the device will be turned on once after it is powered on and turned off immediately.
If I change it to 0, the device will be turned on once after it is powered on, then off, and on again.
Every time the device is powered on or rebooted, it will turn on the switch first and turn it off quickly.
I want to disable it so that every time the device is powered on or restarted, it defaults to the off state, or remember the last state. What should I do?
Because I now have a problem, when the device is connected to the WIFI, but the WIFI does not have the Internet, due to the watchdog mechanism, the device will repeatedly restart and switch the relay state, which bothers me.
你好,我有一个继电器开关,它的MCU是BL602。
每次设备通电或重启时,它都会先打开开关,然后迅速关闭。
我想禁用它,这样每次设备通电或重新启动时,它都会默认为关闭状态,或者记住最后的状态。我该怎么办?
因为我现在遇到一个问题,当设备连接到WIFI,但是WIFI没有英特网时,由于看门狗的机制,设备会反复的重启并切换继电器状态,这对我造成了困扰。
OBK template
{
"vendor": "Tuya",
"bDetailed": "0",
"name": "Full Device Name Here",
"model": "enter short model name here",
"chip": "BL602",
"board": "TODO",
"flags": "10",
"keywords": [
"TODO",
"TODO",
"TODO"
],
"pins": {
"2": "TglChanOnTgl;1",
"14": "LED_n;1",
"20": "Btn;1",
"21": "Rel;1"
},
"command": "PowerSave 1",
"image": "https://obrazki.elektroda.pl/YOUR_IMAGE.jpg",
"wiki": "https://www.elektroda.com/rtvforum/topic_YOUR_TOPIC.html"
}
Added after 9 [minutes]:

I have tried to change the value of Channel in config startup, which is not valid.
The picture shows that the device has been turned off by default, and the device will be turned on once after it is powered on and turned off immediately.
If I change it to 0, the device will be turned on once after it is powered on, then off, and on again.