Manual alarm trigger on 2386G2-ISU/SL

zanzibaru

n3wb
Apr 1, 2022
2
0
fr
Hello allo,
I just bought two 2386G2-ISU/SL and i'm quite happy with them.

However, i'd like to trigger the integrated alarm using a CGI query, i'm able to trigger the alarm using this url :
http://<camera ip>/IO/outputs/1/trigger
with this payload :
Code:
<IOPortData version="1.0" xmlns="http://www.hikvision.com/ver10/XMLSchema">
    <outputState>high</outputState>
</IOPortData>

I can see through the web interface that the alarm is ON, but i dont have any audible output or flashing light.
I think i did setup correctly the correct alarm linkage but is there something in particular to setup to trigger the integrated alarm ?

If i use smart event, i'm able to use alarm & flashing lights.


Thanks!
 
Alarm Enable/disable with addition:
Code:
Enable LED
curl -k --silent -H 'Content-Type:application/xml' -X PUT -d '<ExternalDevice><SupplementLight><enabled>true</enabled></SupplementLight></ExternalDevice>' http://your.camera.ip/ISAPI/System/externalDevice --digest -u user:pass

Disable LED
curl -k --silent -H 'Content-Type:application/xml' -X PUT -d '<ExternalDevice><SupplementLight><enabled>false</enabled></SupplementLight></ExternalDevice>' http://your.camera.ip/ISAPI/System/externalDevice --digest -u user:pass
 
  • Like
Reactions: centrino
Thanks for your answer, infortunately i'm getting the following response :
Code:
<?xml version="1.0" encoding="UTF-8"?><ResponseStatus version="2.0" xmlns="http://www.hikvision.com/ver20/XMLSchema">
<requestURL>/ISAPI/System/externalDevice</requestURL>
<statusCode>4</statusCode>
<statusString>Invalid Operation</statusString>
<subStatusCode>notSupport</subStatusCode>
</ResponseStatus>

It's weird because the flashing light/integrated audio alarm is working via smart events, but i can't get it to work via CGI or even via the manual alarm button.

1648839154624.png

1648839220931.png
 
@zanzibaru @trempa92 ,

I also installed a few new 2387G2 units and I found this thread since I was looking into automations of controlling LED lights, sound alarms, etc. After doing some research, looks like the code from @trempa92 is outdated on these new ColorVu cameras. But the good news is that I have figutired out the right parameters after using Chrome F12 console, you just need to dig into the network payload while playing around the camera web console.

That being said, the curl command for LED lights are:

Turn on LED
Code:
curl.exe -k --silent -H "Content-Type:application/xml" -X PUT -d "<SupplementLight><supplementLightMode>colorVuWhiteLight</supplementLightMode><mixedLightBrightnessRegulatMode>auto</mixedLightBrightnessRegulatMode><whiteLightBrightness>50</whiteLightBrightness></SupplementLight>" http://<YOUR_CAM_IP>/ISAPI/Image/channels/1/supplementLight --digest -u <USERNAME>:<PASSWORD>

Turn off LED
Code:
url.exe -k --silent -H "Content-Type:application/xml" -X PUT -d "<SupplementLight><supplementLightMode>close</supplementLightMode><mixedLightBrightnessRegulatMode>auto</mixedLightBrightnessRegulatMode><whiteLightBrightness>50</whiteLightBrightness></SupplementLight>" http://<YOUR_CAM_IP>/ISAPI/Image/channels/1/supplementLight --digest -u <USERNAME>:<PASSWORD>

Again the trick here is to inspect network payload and you will figure out all the rest
 
  • Like
Reactions: GentlePumpkin