海康ehome协议分析(1):设备注册

设备注册

  • 1.Device to Platform
  • 2.Platform to Device

1.Device to Platform

海康设备注册后会主动连接配置的ehome平台,发送报文如下:


<PPVSPMessage>
	
    <Version>2.0Version> 
   	
    <Sequence>21910Sequence>
	
	<CommandType>REQUESTCommandType>
		
    <Command>REGISTERCommand>
    <Params>
        <NetUnitType>PUNetUnitType>
        
        <DeviceID>560796072DeviceID>
        
        <FirmwareVersion>V5.4.5 build 170302FirmwareVersion>
        
        <LocalIP>192.168.1.100LocalIP>
        
        <LocalPort>9486LocalPort>
        
        <DevType>31DevType>
        
        <Manufacture>0Manufacture>
    Params>
PPVSPMessage>

2.Platform to Device

ehome平台在收到设备注册指令后,回复如下:


<PPVSPMessage>
	
    <Version>2.5Version>
    	
    <Sequence>21910Sequence>
    
    <CommandType>RESPONSECommandType>
    
    <Method>REGISTERMethod>
    <WhichCommand>REGISTERWhichCommand>
    
    <Status>200Status>
    
    <Description>OKDescription>
    <Params>
    	
        <KeepAliveSeconds>15KeepAliveSeconds>
        
        <AlarmServerIP>10.21.84.13AlarmServerIP>
        <AlarmServerPort>7332AlarmServerPort>
        <AlarmServerType>2AlarmServerType>
        
        <NTPServerIP>10.17.132.231NTPServerIP>
        <NTPServerPort>123NTPServerPort>
        <NTPInterval>3600NTPInterval>
        
        <PictureServer>10.21.84.48PictureServer>
        <PictureServerPort>10002PictureServerPort>
        <PictureServerType>2PictureServerType>   
        
        <BlackListAddr>BlackListAddr>
        <BlackListName>BlackListName>
        <BlackListPort>0BlackListPort>
        <BlackListUser>BlackListUser>
        <BlackListPassword>BlackListPassword>
        <RegisterServerIP>RegisterServerIP>
        <RegisterServerPort>0RegisterServerPort>
    Params>
PPVSPMessage>

基友之家:开源ehome平台
安防、互联网直播交流Q群:1033175645

你可能感兴趣的:(海康eHome)