BreeeZe / rpos

Raspberry Pi Onvif Server
http://breeeze.github.io/rpos
MIT License
647 stars 147 forks source link

ONVIF support keyboard can't connect to rpos #45

Open shmrymbd opened 5 years ago

shmrymbd commented 5 years ago

Hi, I used C400-I from MYTECH. I had a couple of ONVIF supported camera different model/manuf manage to connect to C400 keyboard but RPOS failed to connect. I check SOAP request from the keyboard controller,

"<?xml version="1.0" encoding="utf-8"?>username1</wsse:Username>fctLh7e3HR6fKUc4qB6/ihbjoh8=</wsse:Password>5FWQrVNVT1MjvLR5mVfXPQ==</wsse:Nonce>2010-01-01T00:19:17Z</wsu:Created></wsse:UsernameToken></wsse:Security></s:Header></s:Body></s:Envelope>"

the request used s:Envelopve and s:Body instead of soap:Envelope / soap:Body. can this be the problem why RPOS failed to connect?

I have another DVR manage to connect to RPOS and control everything. The request is below

"DeviceService - Calltype : received, Data : <?xml version="1.0" encoding="UTF-8" ?>

admin xi2ZdakrUDkgOpA4ROWIE/5EIDI= Jy3sZ5N9TOudLga1rlu/RA== 2018-08-26T16:04:28Z Manual false CST-8 16 5 2 2018 8 26 " Pls advice thanks.
shmrymbd commented 5 years ago

hi this is full soap request which unsuccesfull,

Read IP address 192.168.1.40 from wlan0 Manufacturer : Raspberry Pi Model : 2 B HardwareId : SerialNumber : 000000009dfd8cba FirmwareVersion : 0.2.1 Binding DeviceService to http://192.168.1.40:8081/onvif/device_service Binding MediaService to http://192.168.1.40:8081/onvif/media_service discovery_service started web request received : /onvif/device_service web request received : /onvif/device_service device_service started media_service started DeviceService - Calltype : info, Data : Handling POST on /onvif/device_service DeviceService - Calltype : received, Data : <?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"><s:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:tplt="http://www.onvif.org/ver10/plus/schema" xmlns:tpl="http://www.onvif.org/ver10/plus/wsdl"><wsse:UsernameToken><wsse:Username></wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">Pm5soeS2o6/LBl5Vtj/bPZ4eJ9o=</wsse:Password><wsse:Nonce>Q0ACljaUJbRvbx4YjTKuRQ==</wsse:Nonce><wsu:Created>2255-11-30T00:00:56Z</wsu:Created></wsse:UsernameToken></wsse:Security></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GetDeviceInformation xmlns="http://www.onvif.org/ver10/device/wsdl"/></s:Body></s:Envelope> DeviceService - Calltype : info, Data : Attempting to bind to /onvif/device_service DeviceService - Calltype : info, Data : Trying Device from path DeviceService received request GetDeviceInformation DeviceService - Calltype : replied, Data : <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:i0="http://www.onvif.org/ver10/device/wsdl" xmlns:tns="http://tempuri.org/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tt="http://www.onvif.org/ver10/schema"><soap:Body><tds:GetDeviceInformationResponse xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns="http://www.onvif.org/ver10/device/wsdl"><tds:Manufacturer>Raspberry Pi</tds:Manufacturer><tds:Model>Raspberry Pi</tds:Model><tds:FirmwareVersion>0.2.1</tds:FirmwareVersion><tds:SerialNumber>000000009dfd8cba</tds:SerialNumber><tds:HardwareId></tds:HardwareId></tds:GetDeviceInformationResponse></soap:Body></soap:Envelope> DeviceService - Calltype : info, Data : Handling POST on /onvif/device_service DeviceService - Calltype : received, Data : <?xml version="1.0" encoding="utf-8"?><s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"><s:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:tplt="http://www.onvif.org/ver10/plus/schema" xmlns:tpl="http://www.onvif.org/ver10/plus/wsdl"><wsse:UsernameToken><wsse:Username></wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">CBp0X2/A7xKcefu+AKfbz7AR8Wg=</wsse:Password><wsse:Nonce>tV3i1y8H6jXmUFfO6CpJDg==</wsse:Nonce><wsu:Created>2255-11-30T00:00:56Z</wsu:Created></wsse:UsernameToken></wsse:Security></s:Header><s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><GetCapabilities xmlns="http://www.onvif.org/ver10/device/wsdl"><Category>All</Category></GetCapabilities></s:Body></s:Envelope> DeviceService - Calltype : info, Data : Attempting to bind to /onvif/device_service DeviceService - Calltype : info, Data : Trying Device from path DeviceService received request GetCapabilities DeviceService - Calltype : replied, Data : <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:i0="http://www.onvif.org/ver10/device/wsdl" xmlns:tns="http://tempuri.org/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tt="http://www.onvif.org/ver10/schema"><soap:Body><tds:GetCapabilitiesResponse xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns="http://www.onvif.org/ver10/device/wsdl"><tds:Capabilities><tt:Device xmlns:tt="http://www.onvif.org/ver10/schema"><tt:XAddr>http://192.168.1.40:8081/onvif/device_service</tt:XAddr><tt:Network><tt:IPFilter>false</tt:IPFilter><tt:ZeroConfiguration>false</tt:ZeroConfiguration><tt:IPVersion6>false</tt:IPVersion6><tt:DynDNS>false</tt:DynDNS><tt:Extension><tt:Dot11Configuration>false</tt:Dot11Configuration><tt:Extension></tt:Extension></tt:Extension></tt:Network><tt:System><tt:DiscoveryResolve>false</tt:DiscoveryResolve><tt:DiscoveryBye>false</tt:DiscoveryBye><tt:RemoteDiscovery>false</tt:RemoteDiscovery><tt:SystemBackup>false</tt:SystemBackup><tt:SystemLogging>false</tt:SystemLogging><tt:FirmwareUpgrade>false</tt:FirmwareUpgrade><tt:SupportedVersions><tt:Major>2</tt:Major><tt:Minor>5</tt:Minor></tt:SupportedVersions><tt:Extension><tt:HttpFirmwareUpgrade>false</tt:HttpFirmwareUpgrade><tt:HttpSystemBackup>false</tt:HttpSystemBackup><tt:HttpSystemLogging>false</tt:HttpSystemLogging><tt:HttpSupportInformation>false</tt:HttpSupportInformation><tt:Extension></tt:Extension></tt:Extension></tt:System><tt:IO><tt:InputConnectors>0</tt:InputConnectors><tt:RelayOutputs>0</tt:RelayOutputs><tt:Extension><tt:Auxiliary>false</tt:Auxiliary><tt:AuxiliaryCommands></tt:AuxiliaryCommands><tt:Extension></tt:Extension></tt:Extension></tt:IO><tt:Security><tt:TLS1.1>false</tt:TLS1.1><tt:TLS1.2>false</tt:TLS1.2><tt:OnboardKeyGeneration>false</tt:OnboardKeyGeneration><tt:AccessPolicyConfig>false</tt:AccessPolicyConfig><tt:X.509Token>false</tt:X.509Token><tt:SAMLToken>false</tt:SAMLToken><tt:KerberosToken>false</tt:KerberosToken><tt:RELToken>false</tt:RELToken><tt:Extension><tt:TLS1.0>false</tt:TLS1.0><tt:Extension><tt:Dot1X>false</tt:Dot1X><tt:RemoteUserHandling>false</tt:RemoteUserHandling></tt:Extension></tt:Extension></tt:Security><tt:Extension></tt:Extension></tt:Device><tt:Media xmlns:tt="http://www.onvif.org/ver10/schema"><tt:XAddr>http://192.168.1.40:8081/onvif/media_service</tt:XAddr><tt:StreamingCapabilities><tt:RTPMulticast>false</tt:RTPMulticast><tt:RTP_TCP>true</tt:RTP_TCP><tt:RTP_RTSP_TCP>true</tt:RTP_RTSP_TCP><tt:Extension></tt:Extension></tt:StreamingCapabilities><tt:Extension><tt:ProfileCapabilities><tt:MaximumNumberOfProfiles>1</tt:MaximumNumberOfProfiles></tt:ProfileCapabilities></tt:Extension></tt:Media></tds:Capabilities></tds:GetCapabilitiesResponse></soap:Body></soap:Envelope>