Supergiovane / node-red-contrib-hikvision-ultimate

A native set of node for Hikvision Cameras, Doorbells, Alarms, Radars etc.
https://www.facebook.com/supergiovaneDev
MIT License
51 stars 11 forks source link

Problem with ANPR #15

Closed river20081997 closed 3 years ago

river20081997 commented 3 years ago

Help me. I can't connect to my ANPR camera HIKVISION via this module. I add new ANPR node, configure IP, username, password, auth protocol but it isn't have effect.
Maybe do I first need prepare my camera ?

Supergiovane commented 3 years ago

What error you get? Have you clicked “connect” on the config window?

river20081997 commented 3 years ago

My get error image

Yes, tried. But click was finished with error image

Supergiovane commented 3 years ago

Have you followed the indication to save and deploy first? If yes, please check the credentials. "Forbidden" means that the credentials are either wrong or that you heven't enabled the API on the camera. Please check that as well.

river20081997 commented 3 years ago

Yes. I deployed before click "connect" API on camera is Enabled and username/password is right

Connect to CAMERA API via "Postman" was successfully

Supergiovane commented 3 years ago

Hi What model do you have? Please tell me the node version and nodered version as well. For node, issue a node -v command Thanks.

river20081997 commented 3 years ago

CAMERA - iDS-2CD7A26G0/P-IZHS V5.5.130 build 200820 Firmware version of Camera

NODE - v12.22.1 NODE-RED - v1.3.2

Supergiovane commented 3 years ago

It should be ok. Do you use digest or basic authentication? Have uou tried to switch from digest to basic and vice versa? What querystring do you use with postman?

Supergiovane commented 3 years ago

PS: try also to use, for example, the picture node and let me know!

river20081997 commented 3 years ago

PS: try also to use, for example, the picture node and let me know!

Node picture connect successfully to this camera image

Supergiovane commented 3 years ago

What querystring do you use with postman?

river20081997 commented 3 years ago

basic

I use digest authentication Yes, but this switch in setting don't work correctly. I cound't select basic auth (this parametr cann't be saved). I don't know specific querystring by this problem. I checked auth proccess in postman.

Supergiovane commented 3 years ago

Tomorrow i’ll take a look at that. I use the ANPR node succesfully everyday with my ip camera and works great. There should be something wrong in the digest/basic selection option.

Supergiovane commented 3 years ago

Hello V. 1.0.43 is out with a fix with all issues you have. Thank you for reporting that!

river20081997 commented 3 years ago

Button 'connect' worked correctly now. But node can't work correctly.

river20081997 commented 3 years ago

image

river20081997 commented 3 years ago

image

Supergiovane commented 3 years ago

Ok, you can now try to switch from digest and basic and vice versa. On each switch, please restart node-red

river20081997 commented 3 years ago

Yes. Now I can switch from digest and basic and vice versa. But node return image

Supergiovane commented 3 years ago

Hi Have you maybe some IP filtering active on the camera? Is the admin user allowed to use the API? Please put banana after the ip. For example 192.168.1.103banana

Restart nodered. From now onwards, node red starts logging a lot of things. I need this log to sort out something, because these infos are kot enough. Thanks.

river20081997 commented 3 years ago

I'm found problem image This querystring I found in your code by this node

Do you have full api doc by this function? Maybe this function in firmware was changed?

river20081997 commented 3 years ago

Hi Have you maybe some IP filtering active on the camera? Is the admin user allowed to use the API? Please put banana after the ip. For example 192.168.1.103banana

Restart nodered. From now onwards, node red starts logging a lot of things. I need this log to sort out something, because these infos are kot enough. Thanks.

I'm not use IP filtering on the camera. User admin allowed to use the API.

Supergiovane commented 3 years ago

Hikvision ISAPI Core Protocol.pdf

Hi This is very strange. Attached, API docs. This should be the only and valid api call to get the plates...

jensfr1 commented 3 years ago

Hi, I am getting with DEVICE INFORMATION Model: DT2A404 Firmware: V5.6.12 The taling picture just works fine. Maybe that camera is not supported?

image

Supergiovane commented 3 years ago

Hi jensfr1, i don't understand your issue. Also please open a new issue, do not reply to an opened and different one. Thanks.

Supergiovane commented 3 years ago

Also... the DT2A404 is not an ANPR camera. Are you sure about the model?