Page 1 of 1

Tuya camera Wake Up command

Posted: 2024年 May 13日 07:16
by cmoss

Hello,

We're trying to integrate a number of Tuya compatible IP cameras with one of our products, whereby the camera would be in standby mode most of the time, and would be woken from our monitoring device. I've seen that many cameras implement an ability to be woken from the Smart Life app, and this post talks about the wireless_awake property to check what caused the camera to wake up:

https://developer.tuya.com/en/docs/app- ... nxw2gncv8t

My question: what is the method used by the app (or hub) to cause the camera to wake up? Is this a wifi beacon of some sort? Is there a way to simulate this from another nearby device?

Thanks.


Re: Tuya camera Wake Up command

Posted: 2024年 May 13日 20:34
by niezheyuan
cmoss 2024年 May 13日 07:16

Hello,

We're trying to integrate a number of Tuya compatible IP cameras with one of our products, whereby the camera would be in standby mode most of the time, and would be woken from our monitoring device. I've seen that many cameras implement an ability to be woken from the Smart Life app, and this post talks about the wireless_awake property to check what caused the camera to wake up:

https://developer.tuya.com/en/docs/app- ... nxw2gncv8t

My question: what is the method used by the app (or hub) to cause the camera to wake up? Is this a wifi beacon of some sort? Is there a way to simulate this from another nearby device?

Thanks.

Hello,
What kind of API do you want to wake low power IP cameras remotely? APP sdk or Cloud api?


Re: Tuya camera Wake Up command

Posted: 2024年 Jul 26日 10:46
by cmoss

Hi there,

Apologies, I'd forgotten to enable notifications to receive the response.

We're looking for either a Cloud API, or a local call which can be made from an embedded Linux system running on the same network segment as the camera.


Re: Tuya camera Wake Up command

Posted: 2024年 Jul 26日 11:38
by lqz_gogo
cmoss 2024年 Jul 26日 10:46

Hi there,

Apologies, I'd forgotten to enable notifications to receive the response.

We're looking for either a Cloud API, or a local call which can be made from an embedded Linux system running on the same network segment as the camera.

Hello, for embedded devices, there is no API that can meet your needs. I suggest waking up the device through an app. You can wake up the device remotely through live video streaming via the app. You can refer to: https://developer.tuya.com/cn/docs/app- ... nuvynnjk7h


Re: Tuya camera Wake Up command

Posted: 2024年 Jul 26日 11:39
by cmoss

Hi there, unfortunately using an app is not possible for our usecase. The documentation you linked is in Chinese, do you have an English language version of this available?


Re: Tuya camera Wake Up command

Posted: 2024年 Jul 26日 11:45
by cmoss

I modified the documentation link to show English language documentation. What is the underlying mechanism used by the SDK to actually wake the camera? Presumably we could recreate that. Is a specific packet sent to the camera that causes it to wake?

We have the WebRTC client working with this camera, is it possible to use that to wake the camera?


Re: Tuya camera Wake Up command

Posted: 2024年 Jul 26日 15:07
by cmoss

After sniffing the 802.11 traffic with Wireshark, I can see that the Camera seems to use 802.11 power management. I assume this is the mechanism it's using to wake? Is there anything special about the implementation I need to consider?


Re: Tuya camera Wake Up command

Posted: 2024年 Jul 26日 15:31
by pippin-bobo
cmoss 2024年 Jul 26日 11:45

I modified the documentation link to show English language documentation. What is the underlying mechanism used by the SDK to actually wake the camera? Presumably we could recreate that. Is a specific packet sent to the camera that causes it to wake?

We have the WebRTC client working with this camera, is it possible to use that to wake the camera?

We wake up devices based on TCP keep alive connections, using specific data packets to wake up the camera. For more details, please refer to https://developer.tuya.com/en/docs/iot- ... 1qc5he02rw


Re: Tuya camera Wake Up command

Posted: 2024年 Jul 26日 16:01
by pippin-bobo

The WebRTC client can wake up the camera, but it needs to be integrated with Tuya, such as echoshow and chromecast


Re: Tuya camera Wake Up command

Posted: 2024年 Jul 29日 05:48
by cmoss

Thanks for the detailed response, very helpful!

I've been able to wake up the camera using wakeup packets sent straight to it, and once the camera is awake, I can control it using the Tuya Dev Platform, but the dev platform doesn't seem to be able to wake the camera using the debug console. I had thought that setting "wireless_awake" to true would cause it to wake, but that doesn't seem to be correct.

Is there a way to force it to wake using the "Control Device with Standard Instruction Set" function within the developer platform?

Thanks.