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

Two Hikvision DS-2CV2026G0-IDW - can't add second camera #28

Open
tgrabows opened this issue Feb 18, 2023 · 4 comments
Open

Two Hikvision DS-2CV2026G0-IDW - can't add second camera #28

tgrabows opened this issue Feb 18, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@tgrabows
Copy link

tgrabows commented Feb 18, 2023

Hello!
I love idea with such a simple solution - alarmserver - thank you!

I am using alarmserver from new docker image.
Unfortunately I have problem with "adding" second camera - it always fails.

My config is:

hikvision:
  enabled: true              
  cams:
    cam1:                   
      address: 192.168.44.210  
      https: false           
      username: admin 
      password: bothCamHaveSamePass   
      rawTcp: false          
    cam2:                   
      address: 192.168.44.209  
      https: false           
      username: admin        
      password: bothCamHaveSamePass   
      rawTcp: false  

My log looks:

Initializing Webhook bus...
WEBHOOK BUS INITIALIZED
STARTED HISILICON SERVER
HIK: Adding camera cam1: http://192.168.44.210/ISAPI/
HIK: USING DIGEST AUTH
HIK: Adding camera cam2: http://192.168.44.209/ISAPI/
HIK: BAD STATUS 401HIK: ERROR: Camera cam2 does not seem to support event streaming
            Is it a doorbell? Try adding rawTcp to its config!
HIK: Closed connection to camera cam2
HIK: USING DIGEST AUTH
HIK: BAD STATUS 401HIK: ERROR: Camera cam2 does not seem to support event streaming
            Is it a doorbell? Try adding rawTcp to its config!
HIK: Closed connection to camera cam2
STARTED HIKVISION SERVER

If I swap addresses:

hikvision:
  enabled: true              
  cams:
    cam1:                   
      address: 192.168.44.209  
      https: false           
      username: admin 
      password: bothCamHaveSamePass   
      rawTcp: false          
    cam2:                   
      address: 192.168.44.210  
      https: false           
      username: admin        
      password: bothCamHaveSamePass   
      rawTcp: false  

Again problem with second camera:

Initializing Webhook bus...
WEBHOOK BUS INITIALIZED
STARTED HISILICON SERVER
HIK: Adding camera cam1: http://192.168.44.209/ISAPI/
HIK: USING DIGEST AUTH
HIK: Adding camera cam2: http://192.168.44.210/ISAPI/
HIK: BAD STATUS 401HIK: ERROR: Camera cam2 does not seem to support event streaming
            Is it a doorbell? Try adding rawTcp to its config!
HIK: Closed connection to camera cam2
HIK: USING DIGEST AUTH
HIK: BAD STATUS 401HIK: ERROR: Camera cam2 does not seem to support event streaming
            Is it a doorbell? Try adding rawTcp to its config!
HIK: Closed connection to camera cam2
STARTED HIKVISION SERVER

Configuration with single camera, alike 192.168.44.209 and 192.168.44.210, works well.

@toxuin
Copy link
Owner

toxuin commented Feb 26, 2023

Hey thank you for detailed bug report!

This indeed looks like a bug. I will have a look once I have some spare time.

@toxuin toxuin added the bug Something isn't working label Feb 26, 2023
@eddiex666
Copy link

Have you checked this?

image

@tgrabows
Copy link
Author

tgrabows commented Mar 2, 2023

My configuration is:
obraz

@tgrabows
Copy link
Author

tgrabows commented Mar 2, 2023

If is set on both cams WEB Authentication to digest/basic it works :)

Initializing Webhook bus...
WEBHOOK BUS INITIALIZED
STARTED HISILICON SERVER
HIK: Adding camera cam1: http://192.168.44.209/ISAPI/
HIK: USING BASIC AUTH
HIK: Adding camera cam2: http://192.168.44.210/ISAPI/
2023/03/02 18:20:06 cam2 event: videoloss (inactive - 0)
HIK: USING BASIC AUTH
2023/03/02 18:20:06 cam2 event: videoloss (inactive - 0)
2023/03/02 18:20:16 cam2 event: videoloss (inactive - 0)
2023/03/02 18:20:16 cam2 event: videoloss (inactive - 0)

With digest first cam is authorized, second doesn't.

Initializing Webhook bus...
WEBHOOK BUS INITIALIZED
STARTED HISILICON SERVER
HIK: Adding camera cam1: http://192.168.44.209/ISAPI/
HIK: USING DIGEST AUTH
HIK: Adding camera cam2: http://192.168.44.210/ISAPI/
HIK: BAD STATUS 401HIK: ERROR: Camera cam2 does not seem to support event streaming
            Is it a doorbell? Try adding rawTcp to its config!
HIK: Closed connection to camera cam2
HIK: USING DIGEST AUTH
HIK: BAD STATUS 401HIK: ERROR: Camera cam2 does not seem to support event streaming
            Is it a doorbell? Try adding rawTcp to its config!
HIK: Closed connection to camera cam2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants