Home / Docs Center / Device API Reference / Motion Detection

Motion Detection

Device API Reference · Device Event Upload

Project: Device Interface Document (New Version) | page_id: 1358

[TOC]

Brief Description
  • Upload a message when a moving object is detected
Request URL
  • System Configuration --> Terminal Parameters --> Message Upload Address

Test link: http://192.168.0.190:10081/api/system/commonReceive

Request Method
  • POST
JSON BODY Parameters
Parameter Name Required Type Description
isThereCat Yes int 0 means no motion, 1 means motion detected
sn Yes string Device serial number
Request Example
  {"isThereCat": 0, "sn": "ead09bcad1ff2745a406396e504e5462"}
Return Example
  {
    "code": 0,
    "msg": ""
  }
Return Parameter Description
Parameter Name Type Description
code int 0: success, >0 failure
msg string Failure information
Notes
  • After sending data when a moving object is detected, wait 30s and then check again whether there is motion. If there is still motion, there is no need to send again after 30s; if there is no motion after another 30 seconds, send 0

Send 1 when a moving object is detected

Check once after 30 seconds
If motion is still detected, no need to send again

Check once after 30 seconds
If motion is still detected, no need to send

Check once after 30 seconds
If no motion is detected, send 0

Send 1 immediately when a moving object is detected

Didn't find what you need?Contact us,Talk to our engineers directly.

Request a Quote

Fill in the form and we will get back with a quote and proposal within 1 business day.

Click "Generate inquiry email" to open your mail client with the body pre-filled. If no mail client is configured, click "Copy" and paste it into webmail — recipient: sunshiyang@xstrive.com.