-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
Been trying to get ODM to work with an Pelco P1220 with no luck so far.
This camera suports: Open API: Pelco API, ONVIF Profile S and Profile G
Firmware Version: 05.10.57 (MB: 48 PB: 15) date of 5/14/2021
I did a git clone and build onvifmgr
running ONVIF_DEBUG=1 ./onvifmgr
First part is scanning, nothing found. Here is the output:
INFO 25-10-11 23:38:49.548184 124504606700288 onvif_app.c:534: Starting ONVIF Devices Network Discovery...
DEBUG 25-10-11 23:38:49.548544 124504606700288 task_manager.c:19: Task Manager : Event Added
TRACE 25-10-11 23:38:49.548560 124504606700288 onvif_app.c:493: EventQueue Added : 0/1/8
DEBUG 25-10-11 23:38:49.548575 124503141099200 task_manager.c:27: Task Manager : Event Started
TRACE 25-10-11 23:38:49.548616 124503141099200 onvif_app.c:493: EventQueue Dispatching : 1/0/8
TRACE 25-10-11 23:38:49.548638 124503141099200 onvif_app.c:145: _start_onvif_discovery
DEBUG 25-10-11 23:38:49.548858 124503141099200 onvif_discovery.c:211: Sending NVT probe...
DEBUG 25-10-11 23:38:51.551257 124503141099200 onvif_discovery.c:211: Sending NVT probe...
DEBUG 25-10-11 23:38:53.553620 124503141099200 task_manager.c:23: Task Manager : Event finished
TRACE 25-10-11 23:38:53.553644 124503141099200 onvif_app.c:493: EventQueue Dispatched : 0/0/8
TRACE 25-10-11 23:38:53.553655 124504606700288 onvif_app.c:609: OnvifApp__discovery_finished_cb
Second part is manually adding the camera:
DEBUG 25-10-11 23:40:16.258040 124504606700288 task_manager.c:19: Task Manager : Event Added
TRACE 25-10-11 23:40:16.258070 124504606700288 onvif_app.c:493: EventQueue Added : 0/1/8
DEBUG 25-10-11 23:40:16.258083 124502897841856 task_manager.c:27: Task Manager : Event Started
TRACE 25-10-11 23:40:16.258122 124502897841856 onvif_app.c:493: EventQueue Dispatching : 1/0/8
INFO 25-10-11 23:40:16.258154 124502897841856 onvif_app.c:343: Manually adding URL : 'http://192.168.15.24:80/onvif/device_service'
INFO 25-10-11 23:40:16.258217 124502897841856 onvif_device.c:403: Created Device:
INFO 25-10-11 23:40:16.258222 124502897841856 onvif_device.c:404: protocol -- http
INFO 25-10-11 23:40:16.258226 124502897841856 onvif_device.c:405: host : 192.168.15.24
INFO 25-10-11 23:40:16.258230 124502897841856 onvif_device.c:406: port -- 80
INFO 25-10-11 23:40:16.258234 124502897841856 onvif_device.c:407: endpoint : onvif/device_service
INFO 25-10-11 23:40:16.258241 124502897841856 onvif_device.c:126: [http://192.168.15.24:80/onvif/device_service] OnvifDevice__authenticate
DEBUG 25-10-11 23:40:16.258251 124502897841856 onvif_device_service.c:40: [http://192.168.15.24:80/onvif/device_service] Invoking GetSystemDateAndTime
TRACE 25-10-11 23:40:16.259568 124502897841856 onvif_base_service.c:216: [http://192.168.15.24:80/onvif/device_service] No time adjustment required. Camera in sync with client.
INFO 25-10-11 23:40:16.259598 124502897841856 onvif_base_service.c:321: ONVIF_DEBUG variable set. '1'
POST /onvif/device_service HTTP/1.1
Host: 192.168.15.24
User-Agent: gSOAP/2.8
Content-Type: application/soap+xml; charset=utf-8; action="http://www.onvif.org/ver10/device/wsdl/GetSystemDateAndTime"
Content-Length: 1314
Connection: close
Accept-Encoding: gzip,deflate
SOAPAction: "http://www.onvif.org/ver10/device/wsdl/GetSystemDateAndTime"
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"><SOAP-ENV:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" SOAP-ENV:mustUnderstand="true"><wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Time"><wsu:Created>2025-10-12T03:40:16Z</wsu:Created><wsu:Expires>2025-10-12T03:40:26Z</wsu:Expires></wsu:Timestamp><wsse:UsernameToken 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" wsu:Id="Auth"><wsse:Username>admin</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">AgPXjg0cahDbojg0iTjn5EAAlYw=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">ICPraPKETXiVrkiCz3R1mNd/Fb8=</wsse:Nonce><wsu:Created>2025-10-12T03:40:16Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><tds:GetSystemDateAndTime xmlns:tds="http://www.onvif.org/ver10/device/wsdl"></tds:GetSystemDateAndTime></SOAP-ENV:Body></SOAP-ENV:Envelope>
HTTP/1.1 200 OK
Server: gSOAP/2.8
Content-Type: application/soap+xml; charset=utf-8; action="http://www.onvif.org/ver10/device/wsdl/GetSystemDateAndTime"
Content-Length: 2385
Connection: close
Date: Mon, 26 Apr 2021 10:52:55 GMT
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xmime="http://tempuri.org/xmime.xsd" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:wsrf-bf2="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsrf-r="http://docs.oasis-open.org/wsrf/r-1" xmlns:wsrf-bf="http://docs.oasis-open.org/wsrf/bf-1" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsrf-r2="http://docs.oasis-open.org/wsrf/r-2" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:tr2="http://www.onvif.org/ver20/media/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:timg1="http://www.onvif.org/ver10/imaging/wsdl" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tse="http://www.onvif.org/ver10/search/wsdl" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl"><SOAP-ENV:Header></SOAP-ENV:Header><SOAP-ENV:Body><tds:GetSystemDateAndTimeResponse><tds:SystemDateAndTime><tt:DateTimeType>Manual</tt:DateTimeType><tt:DaylightSavings>false</tt:DaylightSavings><tt:TimeZone><tt:TZ>GMT0</tt:TZ></tt:TimeZone><tt:UTCDateTime><tt:Time><tt:Hour>10</tt:Hour><tt:Minute>52</tt:Minute><tt:Second>55</tt:Second></tt:Time><tt:Date><tt:Year>2021</tt:Year><tt:Month>4</tt:Month><tt:Day>26</tt:Day></tt:Date></tt:UTCDateTime><tt:Extension><tt:Region>:Greenwich/GMT</tt:Region></tt:Extension></tds:SystemDateAndTime></tds:GetSystemDateAndTimeResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>
INFO 25-10-11 23:40:16.300331 124502897841856 onvif_base_service.c:338: ONVIF_DEBUG variable set. '1'
INFO 25-10-11 23:40:16.300435 124502897841856 onvif_device.c:151: [http://192.168.15.24:80/onvif/device_service] Camera SystemDateAndTime : '2021-04-26 06:52:55'
TRACE 25-10-11 23:40:16.300447 124502897841856 onvif_device.c:54: [http://192.168.15.24:80/onvif/device_service] OnvifDevice__createServices
DEBUG 25-10-11 23:40:16.300454 124502897841856 onvif_device_service.c:68: [http://192.168.15.24:80/onvif/device_service] Invoking GetServices
TRACE 25-10-11 23:40:16.300801 124502897841856 onvif_base_service.c:231: [http://192.168.15.24:80/onvif/device_service] Time adjustment [2025-10-12 03:40:16] to [2021-04-26 10:52:55] offset -140806041
INFO 25-10-11 23:40:16.300830 124502897841856 onvif_base_service.c:321: ONVIF_DEBUG variable set. '1'
POST /onvif/device_service HTTP/1.1
Host: 192.168.15.24
User-Agent: gSOAP/2.8
Content-Type: application/soap+xml; charset=utf-8; action="http://www.onvif.org/ver10/device/wsdl/GetServices"
Content-Length: 1347
Connection: close
Accept-Encoding: gzip,deflate
SOAPAction: "http://www.onvif.org/ver10/device/wsdl/GetServices"
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"><SOAP-ENV:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" SOAP-ENV:mustUnderstand="true"><wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Time"><wsu:Created>2025-10-12T03:40:16Z</wsu:Created><wsu:Expires>2025-10-12T03:40:26Z</wsu:Expires></wsu:Timestamp><wsse:UsernameToken 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" wsu:Id="Auth"><wsse:Username>admin</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest">Qsu2bdYiFpa6JYpFj0oT/q0JpOE=</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">ICPraMxiV4T/3DuoAEbMQE+/p4k=</wsse:Nonce><wsu:Created>2021-04-26T10:52:55Z</wsu:Created></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><SOAP-ENV:Body><tds:GetServices xmlns:tds="http://www.onvif.org/ver10/device/wsdl"><tds:IncludeCapability>true</tds:IncludeCapability></tds:GetServices></SOAP-ENV:Body></SOAP-ENV:Envelope>
HTTP/1.1 400 Bad Request
Server: gSOAP/2.8
Content-Type: application/soap+xml; charset=utf-8
Content-Length: 2041
Connection: close
Date: Mon, 26 Apr 2021 10:52:55 GMT
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xmime="http://tempuri.org/xmime.xsd" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:wsrf-bf2="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:wsrf-r="http://docs.oasis-open.org/wsrf/r-1" xmlns:wsrf-bf="http://docs.oasis-open.org/wsrf/bf-1" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsrf-r2="http://docs.oasis-open.org/wsrf/r-2" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:tr2="http://www.onvif.org/ver20/media/wsdl" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:timg1="http://www.onvif.org/ver10/imaging/wsdl" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:tse="http://www.onvif.org/ver10/search/wsdl" xmlns:trc="http://www.onvif.org/ver10/recording/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl"><SOAP-ENV:Header></SOAP-ENV:Header><SOAP-ENV:Body><SOAP-ENV:Fault><SOAP-ENV:Code><SOAP-ENV:Value>SOAP-ENV:Sender</SOAP-ENV:Value></SOAP-ENV:Code><SOAP-ENV:Reason><SOAP-ENV:Text xml:lang="en"/></SOAP-ENV:Reason></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
ERROR 25-10-11 23:40:16.653894 124502897841856 onvif_device_service.c:68: [http://192.168.15.24:80/onvif/device_service] Unhandled ERROR 1 [(null)]
ERROR 25-10-11 23:40:16.653937 124502897841856 onvif_base_service.c:389: SOAP 1.2 fault SOAP-ENV:Sender [no subcode]
ERROR 25-10-11 23:40:16.653937 124502897841856 onvif_base_service.c:389: ""
ERROR 25-10-11 23:40:16.653937 124502897841856 onvif_base_service.c:389: Detail: [no detail]
INFO 25-10-11 23:40:16.653953 124502897841856 onvif_base_service.c:338: ONVIF_DEBUG variable set. '1'
ERROR 25-10-11 23:40:16.654049 124502897841856 onvif_device.c:73: [http://192.168.15.24:80/onvif/device_service] Failed to retrieve device services...
ERROR 25-10-11 23:40:16.654062 124502897841856 onvif_device.c:187: [http://192.168.15.24:80/onvif/device_service] OnvifDevice__authenticate - Failed to create media service [5]
ERROR 25-10-11 23:40:16.654075 124502897841856 onvif_app.c:387: An soap error was encountered
DEBUG 25-10-11 23:40:16.654185 124502897841856 task_manager.c:23: Task Manager : Event finished
TRACE 25-10-11 23:40:16.654200 124502897841856 onvif_app.c:493: EventQueue Dispatched : 0/0/8
GUI shows "Unexected error occured" and fails to add the camera.
Network is using the second eth port the computer on its own private network with no gateway. Manually network configured. No dhcp and so on.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels