Monday, November 7, 2016

Hikvision cURL Enable Telnet

Here is how to enable Telnet on my Hikvision NVR using a cURL command, you can use it on the camera's as well.


cURL Command:
curl -T telnet_on.xml http://admin:12345@192.168.1.100:80/ISAPI/System/Network/telnetd

curl -T telnet_off.xml http://admin:12345@192.168.1.100:80/ISAPI/System/Network/telnetd


Contents of telnet_on.xml:

<?xml version="1.0" encoding="UTF-8"?>
<Telnetd version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<enabled>true</enabled>
</Telnetd>


Contents of telnet_off.xml:

<?xml version="1.0" encoding="UTF-8"?>
<Telnetd version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<enabled>false</enabled>
</Telnetd>

Monday, October 24, 2016

Hikvision cURL Enable or Disable IR LED

Here is how to turn on or off the IR LED on my Hikvision Camera using a cURL command, you can use it on your camera's as well.


cURL Command:
curl -T irlight_on.xml http://admin:12345@192.168.1.100:80/ISAPI/System/Hardware

curl -T irlight_off.xml http://admin:12345@192.168.1.100:80/ISAPI/System/Hardware


Contents of irlight_on.xml:

<?xml version="1.0" encoding="UTF-8"?>
<HardwareService xmlns="http://www.hikvision.com/ver20/XMLSchema" version="2.0">
<IrLightSwitch>
<mode>open</mode>
</IrLightSwitch>
</HardwareService>


Contents of irlight_off.xml:

<?xml version="1.0" encoding="UTF-8"?>
<HardwareService xmlns="http://www.hikvision.com/ver20/XMLSchema" version="2.0">
<IrLightSwitch>
<mode>close</mode>
</IrLightSwitch>
</HardwareService>

Monday, October 10, 2016

Hikvision cURL Enable SSH

Here is how to enable SSH on my Hikvision Camera using a cURL command, you can use it on the camera's as well.


cURL Command:
curl -T ssh_on.xml http://admin:12345@192.168.1.100:80/ISAPI/System/Network/ssh

curl -T ssh_off.xml http://admin:12345@192.168.1.100:80/ISAPI/System/Network/ssh


Contents of ssh_on.xml:

<?xml version="1.0" encoding="UTF-8"?>
<SSH version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<enabled>true</enabled>
</SSH>


Contents of ssh_off.xml:

<?xml version="1.0" encoding="UTF-8"?>
<SSH version="2.0" xmlns="http://www.isapi.org/ver20/XMLSchema">
<enabled>false</enabled>
</SSH>

Monday, August 1, 2016

Install APP .tar.gz

Here is now to install a application that you downloaded as tar.gz file:

                                              

1) Extract the contents, type the following command:
                 tar -xvf FileName.tar.gz

2) Change directory to the directory of the files, type the following:
                 cd FileName

3) Configure it by typing the following:
                ./configure

4)Make the install file, type:
                 make

5) Install the application, type:
                 sudo make install

 Congratulations, you have now compiled and installed an application in Linux.

Sunday, July 31, 2016

Auto Reboot Modem or Router

I previously posted a URL to remotely reboot your modem, however once I upgraded my modem I realized I had no way to remotely reboot this device, not via a web interface or curl command. So I took to the internet and found a couple device that would do what I needed. Essentially these devices ping a IP or domain name and reset power to the plug the modem is plugged into automatically if the ping fails. Most of these plugs can be controlled via web interface or mobile app, they also auto-reboot if ping fails.

Here is a list of them:

1) AVIOSYS International IP Power 9255 (Single Outlet)

Pros:
  • Available in 5 global plug formats

Cons:
  • No firmware updates since 2012

2) 3GStore Remote Power IP Switch (Single Outlet)

Pros:
  •  Built in 10Amp Fuse
  • Specify Ping Interval

Cons:
  • Unable to Specify IP to Ping
  • Firmware update must be made through iOS or Android Application, not web interface.

3) 3GStore Remote Power IP Switch (Dual Outlet)

Pros:
  • Specify Ping Interval
  • Specify up to 5 internal or external IP or Domain Names(ex. google.com) to Ping
  • Specify reboot order(Plug 1 Only. Plug 1 First Plug 2 after specified time)
  • Built in 10Amp Fuse
  • Works with google talk

Cons:
  •  Firmware update must be made through iOS or Android Application, not web interface.


4) Ambery IP-P2 (Dual Outlet)


Pros:
  • Specify Ping Interval
  • Specify IP to Ping
  • Specify reboot order(Plug 1 Only. Plug 1 First Plug 2 after specified time)

Cons:
  • No firmware update since 2012

5) ORUIBO 2200W GSM Remote Control Power Adapter

Pros:
  • Reboot remotely by sending SMS or calling device.

Cons:
  • No ethernet/wifi interface(not a network device)
  • May have to use a adapter to plug it into your outlet, however once plugged in any plug can be plugged into it as it is universal.
Now I have to decide which one to purchase, once I do I will provide an update. These device can be  found on eBay or the manufacturers website.Thanks for reading and feel free to chime in and let me know if there other devices you know of. I thought about using a digital timer reboot the modem once a day or so but I think this would be a waste and could shorten the lifespan of the modem.

Monday, July 25, 2016

SD Card / MicroSD Card Corrupt Fix

My memory card was corrupt and I was unable to mount it in windows or linux, like it was not even being detected. I was not able to get any devices (Camera, Phone, etc.) to recognize it either. I kept getting the error:
                          
Under Linux:
mmc0: error -110 whilst initialising SD card
mmc0: error -110 whilst initialising SD card
mmc0: error -110 whilst initialising SD card

Under Windows:
Nothing, windows would not detect it.


I would eject it and put it back in, same thing.

Here is how to get you card mounted and copy your data. Insert the SD/MicroSD card into the reader of your computer, count to 6 seconds, eject it and and reinsert it, count to 6 seconds again. Continue to do this until your card is mounted, I noticed it can take 4-7 inserts/ejects before it mounts. However I once had to do it 30 times in a row before it mounted. You can do this in Windows or Linux, I have tried it in both.

Once it mounts and you can access the files, copy ALL DATA from the Memory Card to your Computer IMMEDIATELY. As your Card is failing or has failed.


Note: I take no responsibility for ANY damages or lost data that may result from following these instructions. I had this happen to me twice and it worked each time. 

PiKVM to NVR

  Trying to connect to your IP Camera Network Video Recorder (NVR) via your PiKVM and it’s not working? No video from the NVR on...