Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem nach Verbindungsverlust #9

Closed
Hirsch-DE opened this issue Apr 20, 2020 · 9 comments
Closed

Problem nach Verbindungsverlust #9

Hirsch-DE opened this issue Apr 20, 2020 · 9 comments

Comments

@Hirsch-DE
Copy link

Hirsch-DE commented Apr 20, 2020

Wenn die Verbindung zur Kamera unterbrochen war, dann müsste createPullPointSubscription neu aufgerufen werden, was aber nicht passiert.
2020-04-20 12:00:41.687 - debug: onvif.0 (2336) startCameras (192_168_100_227_80) pullMessages: ERROR - Error: connect ETIMEDOUT 192.168.100.227:80. Resubscribe to events 2020-04-20 12:01:08.375 - debug: onvif.0 (2336) startCameras (192_168_100_227_80) pullMessages: ERROR - Error: connect ECONNREFUSED 192.168.100.227:80. Resubscribe to events 2020-04-20 12:01:21.471 - debug: onvif.0 (2336) startCameras (192_168_100_227_80) pullMessages: ERROR - Error: Network timeout. Resubscribe to events 2020-04-20 12:01:29.728 - debug: onvif.0 (2336) startCameras (192_168_100_227_80) pullMessages: ERROR - Error: ONVIF SOAP Fault: the parameter value is illegalNo pullmsg manager. Resubscribe to events

Es handelt sich um eine Hikvision-Kamera.

In der onvif lib (events.js) gab es den Hinweis:
'PT5S' + // pull timeout must be shorter than Socket timeout or we will get a socket error when there are no new events

Daher kommt auch immer die Fehlermeldung (2336) startCameras (192_168_100_228_80) pullMessages: ERROR - Error: Network timeout. Resubscribe to events, da aktuell 60sek verwendet wird.

MfG
Thomas Hirschfeld

@Haba1234
Copy link
Owner

Ich denke, Sie haben Netzwerkprobleme oder Probleme mit der Antwort von der Kamera.
Link
In der aktuellen Version der Bibliothek hat der Autor anscheinend die Einstellung InitialTerminationTime entfernt 1 und 2
Versuchen Sie hier, die Wartezeit für eine Antwort von der Kamera zu verlängern: link und sag mir die Testergebnisse

Haba1234 added a commit that referenced this issue Apr 21, 2020
@Haba1234
Copy link
Owner

Please test ver. 0.2.0

@Hirsch-DE
Copy link
Author

Hirsch-DE commented Apr 26, 2020

Hallo,
bei einem kurzen Netzwerkproblem wird die Verbindung wieder hergestellt. Alles ok.
Wenn aber die Kamera neu gestartet wird, oder bei einem Stromausfall, dann werden keine neu Abfrage erfolgreich ausgeführt! (V0.3.0)
2020-04-26 12:11:22.610 - �[34mdebug�[39m: onvif.0 (7588) startCameras (192_168_100_228_80) pullMessages: ERROR - Error: connect ECONNREFUSED 192.168.100.228:80. Resubscribe to events 2020-04-26 12:11:40.893 - �[34mdebug�[39m: onvif.0 (7588) startCameras (192_168_100_228_80) pullMessages: ERROR - Error: Network timeout. Resubscribe to events 2020-04-26 12:11:43.333 - �[34mdebug�[39m: onvif.0 (7588) startCameras (192_168_100_228_80) pullMessages: ERROR - Error: ONVIF SOAP Fault: the parameter value is illegalNo pullmsg manager. Resubscribe to events 2020-04-26 12:11:44.434 - �[34mdebug�[39m: onvif.0 (7588) startCameras (192_168_100_228_80) pullMessages: ERROR - Error: ONVIF SOAP Fault: the parameter value is illegalNo pullmsg manager. Resubscribe to events 2020-04-26 12:11:45.563 - �[34mdebug�[39m: onvif.0 (7588) startCameras (192_168_100_228_80) pullMessages: ERROR - Error: ONVIF SOAP Fault: the parameter value is illegalNo pullmsg manager. Resubscribe to events 2020-04-26 12:11:46.716 - �[34mdebug�[39m: onvif.0 (7588) startCameras (192_168_100_228_80) pullMessages: ERROR - Error: ONVIF SOAP Fault: the parameter value is illegalNo pullmsg manager. Resubscribe to events

Bei einer Netzwerkunterbrechung werden die Ereignisse alle nachgereicht. Hier ist die Auslösezeit ein wichtiges Instrument, um alte von neuen Events zu unterscheiden. Vielleicht sollte zu den states ein weitere mit der Zeit hinzugefügt werden?
2020-04-26 12:05:43.131 - �[34mdebug�[39m: onvif.0 (7588) EVENT (192_168_100_228_80): {"currentTime":"2020-04-26T11:05:43.000Z","terminationTime":"2020-04-26T18:47:02.000Z","notificationMessage":{"topic":{"_":"tns1:Monitoring/ProcessorUsage","$":{"Dialect":"http://www.onvif.org/ver10/tev/topicExpression/ConcreteSet"}},"message":{"message":{"$":{"UtcTime":"2020-04-26T11:02:33.000Z","PropertyOperation":"Changed"},"source":{"simpleItem":{"$":{"Name":"Token","Value":"Processor_Usage"}}},"data":{"simpleItem":{"$":{"Name":"Value","Value":66}}}}}}} 2020-04-26 12:05:43.131 - �[34mdebug�[39m: onvif.0 (7588) camEvents (192_168_100_228_80): camMessage = {"topic":{"_":"tns1:Monitoring/ProcessorUsage","$":{"Dialect":"http://www.onvif.org/ver10/tev/topicExpression/ConcreteSet"}},"message":{"message":{"$":{"UtcTime":"2020-04-26T11:02:33.000Z","PropertyOperation":"Changed"},"source":{"simpleItem":{"$":{"Name":"Token","Value":"Processor_Usage"}}},"data":{"simpleItem":{"$":{"Name":"Value","Value":66}}}}}} 2020-04-26 12:05:43.131 - �[34mdebug�[39m: onvif.0 (7588) EVENT (192_168_100_228_80): 2020-04-26T11:02:33.000Z Monitoring.ProcessorUsage PROP:Changed SRC:Token=Processor_Usage DATA:Value=66 2020-04-26 12:05:43.133 - �[34mdebug�[39m: onvif.0 (7588) state onvif.0.192_168_100_228_80.message.monitoring.processorusage.Value changed: 66 (ack = true) 2020-04-26 12:05:44.298 - �[34mdebug�[39m: onvif.0 (7588) EVENT (192_168_100_228_80): {"currentTime":"2020-04-26T11:05:44.000Z","terminationTime":"2020-04-26T18:47:02.000Z","notificationMessage":{"topic":{"_":"tns1:Monitoring/ProcessorUsage","$":{"Dialect":"http://www.onvif.org/ver10/tev/topicExpression/ConcreteSet"}},"message":{"message":{"$":{"UtcTime":"2020-04-26T11:03:34.000Z","PropertyOperation":"Changed"},"source":{"simpleItem":{"$":{"Name":"Token","Value":"Processor_Usage"}}},"data":{"simpleItem":{"$":{"Name":"Value","Value":56}}}}}}} 2020-04-26 12:05:44.298 - �[34mdebug�[39m: onvif.0 (7588) camEvents (192_168_100_228_80): camMessage = {"topic":{"_":"tns1:Monitoring/ProcessorUsage","$":{"Dialect":"http://www.onvif.org/ver10/tev/topicExpression/ConcreteSet"}},"message":{"message":{"$":{"UtcTime":"2020-04-26T11:03:34.000Z","PropertyOperation":"Changed"},"source":{"simpleItem":{"$":{"Name":"Token","Value":"Processor_Usage"}}},"data":{"simpleItem":{"$":{"Name":"Value","Value":56}}}}}} 2020-04-26 12:05:44.298 - �[34mdebug�[39m: onvif.0 (7588) EVENT (192_168_100_228_80): 2020-04-26T11:03:34.000Z Monitoring.ProcessorUsage PROP:Changed SRC:Token=Processor_Usage DATA:Value=56 2020-04-26 12:05:44.299 - �[34mdebug�[39m: onvif.0 (7588) state onvif.0.192_168_100_228_80.message.monitoring.processorusage.Value changed: 56 (ack = true) 2020-04-26 12:05:45.572 - �[34mdebug�[39m: onvif.0 (7588) EVENT (192_168_100_228_80): {"currentTime":"2020-04-26T11:05:45.000Z","terminationTime":"2020-04-26T18:47:02.000Z","notificationMessage":{"topic":{"_":"tns1:Monitoring/ProcessorUsage","$":{"Dialect":"http://www.onvif.org/ver10/tev/topicExpression/ConcreteSet"}},"message":{"message":{"$":{"UtcTime":"2020-04-26T11:04:36.000Z","PropertyOperation":"Changed"},"source":{"simpleItem":{"$":{"Name":"Token","Value":"Processor_Usage"}}},"data":{"simpleItem":{"$":{"Name":"Value","Value":72}}}}}}} 2020-04-26 12:05:45.572 - �[34mdebug�[39m: onvif.0 (7588) camEvents (192_168_100_228_80): camMessage = {"topic":{"_":"tns1:Monitoring/ProcessorUsage","$":{"Dialect":"http://www.onvif.org/ver10/tev/topicExpression/ConcreteSet"}},"message":{"message":{"$":{"UtcTime":"2020-04-26T11:04:36.000Z","PropertyOperation":"Changed"},"source":{"simpleItem":{"$":{"Name":"Token","Value":"Processor_Usage"}}},"data":{"simpleItem":{"$":{"Name":"Value","Value":72}}}}}} 2020-04-26 12:05:45.572 - �[34mdebug�[39m: onvif.0 (7588) EVENT (192_168_100_228_80): 2020-04-26T11:04:36.000Z Monitoring.ProcessorUsage PROP:Changed SRC:Token=Processor_Usage DATA:Value=72 2020-04-26 12:05:45.574 - �[34mdebug�[39m: onvif.0 (7588) state onvif.0.192_168_100_228_80.message.monitoring.processorusage.Value changed: 72 (ack = true) 2020-04-26 12:05:46.827 - �[34mdebug�[39m: onvif.0 (7588) EVENT (192_168_100_228_80): {"currentTime":"2020-04-26T11:05:46.000Z","terminationTime":"2020-04-26T18:47:02.000Z","notificationMessage":{"topic":{"_":"tns1:Monitoring/ProcessorUsage","$":{"Dialect":"http://www.onvif.org/ver10/tev/topicExpression/ConcreteSet"}},"message":{"message":{"$":{"UtcTime":"2020-04-26T11:05:37.000Z","PropertyOperation":"Changed"},"source":{"simpleItem":{"$":{"Name":"Token","Value":"Processor_Usage"}}},"data":{"simpleItem":{"$":{"Name":"Value","Value":80}}}}}}} 2020-04-26 12:05:46.827 - �[34mdebug�[39m: onvif.0 (7588) camEvents (192_168_100_228_80): camMessage = {"topic":{"_":"tns1:Monitoring/ProcessorUsage","$":{"Dialect":"http://www.onvif.org/ver10/tev/topicExpression/ConcreteSet"}},"message":{"message":{"$":{"UtcTime":"2020-04-26T11:05:37.000Z","PropertyOperation":"Changed"},"source":{"simpleItem":{"$":{"Name":"Token","Value":"Processor_Usage"}}},"data":{"simpleItem":{"$":{"Name":"Value","Value":80}}}}}} 2020-04-26 12:05:46.827 - �[34mdebug�[39m: onvif.0 (7588) EVENT (192_168_100_228_80): 2020-04-26T11:05:37.000Z Monitoring.ProcessorUsage PROP:Changed SRC:Token=Processor_Usage DATA:Value=80 2020-04-26 12:05:46.830 - �[34mdebug�[39m: onvif.0 (7588) state onvif.0.192_168_100_228_80.message.monitoring.processorusage.Value changed: 80 (ack = true)

Der State "connected" bleibt auf true, auch wenn keine Netzwerkverbindung zur Kamera steht! Damit ist eine Fehleranzeige unmöglich.

@Haba1234
Copy link
Owner

1
Ihre Vorschläge?
Option 1 - Hinzufügen eines Zeitobjekts
Option 2 - Speichern als Struktur "Wert + Zeit"

@Hirsch-DE
Copy link
Author

Hirsch-DE commented Apr 26, 2020 via email

@Haba1234
Copy link
Owner

Please test 0.4.0

@Hirsch-DE
Copy link
Author

Hi,
sieht gut aus.
Jetzt fehlt nur noch, dass die neu gestartete Kamera wieder abgefragt wird (automatisch).

@Haba1234
Copy link
Owner

Haba1234 commented May 8, 2020

Please test 0.4.3

@Hirsch-DE
Copy link
Author

Hirsch-DE commented May 16, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants