Tuya camera Wake Up command

IPC/NVR/visual doorbell and other multimedia-enabled devices, sweeping robots/AGV and other robotic equipment.


Post Reply
cmoss
Posts: 7

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.

niezheyuan
Posts: 62

Re: Tuya camera Wake Up command

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?

cmoss
Posts: 7

Re: Tuya camera Wake Up command

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.

lqz_gogo
Posts: 8

Re: Tuya camera Wake Up command

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

cmoss
Posts: 7

Re: Tuya camera Wake Up command

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?

cmoss
Posts: 7

Re: Tuya camera Wake Up command

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?

cmoss
Posts: 7

Re: Tuya camera Wake Up command

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?

User avatar
pippin-bobo
Posts: 225

Re: Tuya camera Wake Up command

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

User avatar
pippin-bobo
Posts: 225

Re: Tuya camera Wake Up command

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

cmoss
Posts: 7

Re: Tuya camera Wake Up command

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.

Post Reply