加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Protocol_V2.0.txt 3.69 KB
一键复制 编辑 原始数据 按行查看 历史
温崋 提交于 2015-06-17 13:00 . protocl
ONVIF中心管理服务器和CMS交互
1.服务器连接
ONVIF发送:
<Envelope type="cregister"></Envelope>
CMS响应:
<Envelope type="r_cregister">success</Envelope>
2.转发服务器
ONVIF发送:
<Envelope type="getrtspuri">
<profile>
<mac>4f:8f:xx:xx:xx:xx</mac>
<cfd>6</cfd>
<token>PROFILE_H264_CH0_MAJOR</token>
<sourceuri>rtsp://122.205.129.253:554/1/h264major</sourceuri>
</profile>
<profile>
<mac>4f:8f:xx:xx:xx:xx</mac>
<cfd>6</cfd>
<token>PROFILE_H264_CH0_MA</token>
<sourceuri>rtsp://122.205.129.254:554/1/h264minor</sourceuri>
</profile>
</Envelope>
CMS响应:
<Envelope type="r_getrtspuri">
<profile>
<mac>4f:8f:xx:xx:xx:xx</mac>
<cfd>6</cfd>
<token>PROFILE_H264_CH0_MAJOR</token>
<sourceuri>rtsp://122.205.129.253:554/1/h264major</sourceuri>
<desturi>[None|desuri]</desturi>
</profile>
<profile>
<mac>4f:8f:xx:xx:xx:xx</mac>
<cfd>6</cfd>
<sourceuri>rtsp://122.205.129.254:554/1/h264minor</sourceuri>
<desturi>[None|desuri]</desturi>
</profile>
</Envelope>
3.存储服务器
ONVIF发送:
<Envelope type="startstorage">
<profile>
<mac>4f:8f:xx:xx:xx:xx</mac>
<cfd>6</cfd>
<rtspuri>rtsp://122.205.129.254:554/1/h264major</rtspuri>
<height>1280</height>
<width>720</width>
</profile>
</Envelope>
CMS响应:
<Envelope type="r_startstorage">
<profile>
<mac>4f:8f:xx:xx:xx:xx</mac>
<cfd>6</cfd>
<rtspuri>rtsp://122.205.129.254:554/1/h264major</rtspuri>
<action>[success|exception|exist|fail]</action>
</profile>
</Envelope>
ONVIF发送:
<Envelope type="stopstorage">
<profile>
<mac>4f:8f:xx:xx:xx:xx</mac>
<cfd>6</cfd>
<rtspuri>rtsp://122.205.129.254:554/1/h264major</rtspuri>
</profile>
</Envelope>
CMS响应:
<Envelope type="r_stopstorage">
<profile>
<mac>4f:8f:xx:xx:xx:xx</mac>
<cfd>6</cfd>
<rtspuri>rtsp://122.205.129.254:554/1/h264major</rtspuri>
<action>[success|notexist|fail]</action>
</profile>
</Envelope>
4.图像处理
ONVIF发送:
<Envelope type="startdeal">
<profile>
<mac>4f:8f:xx:xx:xx:xx</mac>
<cfd>6</cfd>
<rtspuri>rtsp://122.205.129.254:554/1/h264major</rtspuri>
<startcol>0</startcol>
<startrow>500</startrow>
<endcol>800</endcol>
<endrow>0</endrow>
</profile>
</Envelope>
CMS响应:
<Envelope type="r_startdeal">
<profile>
<mac>4f:8f:xx:xx:xx:xx</mac>
<cfd>6</cfd>
<rtspuri>rtsp://122.205.129.254:554/1/h264major</rtspuri>
<action>[success|exception|exisit|fail]</action>
</profile>
</Envelope>
ONVIF发送:
<Envelope type="stopdeal">
<profile>
<mac>4f:8f:xx:xx:xx:xx</mac>
<cfd>6</cfd>
<rtspuri>rtsp://122.205.129.254:554/1/h264major</rtspuri>
</profile>
</Envelope>
CMS响应:
<Envelope type="r_stopdeal">
<profile>
<mac>4f:8f:xx:xx:xx:xx</mac>
<cfd>6</cfd>
<rtspuri>rtsp://122.205.129.254:554/1/h264major</rtspuri>
<action>[success|notexist|fail]</action>
</profile>
</Envelope>
5.报警信息
CMS发送:
<Envelope type="warning">
<profile>
<mac>4f:8f:xx:xx:xx:xx</mac>
<cfd>6</cfd>
<rtspuri>rtsp://122.205.129.254:554/1/h264major</rtspuri>
<type>[cross|shelter|unknown]</type>
<time>YY-MM-DD-HH-MM-SS</time>
</profile>
</Envelope>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化