How to resolve forgotten device password of Hikvision Q1 NETWORK PT CAMERA

IMG_20180623_213220

Figure1 :- Hikvision Q1 NETWORK PT CAMERA

I wanted to add my Hikvision Q1 NETWORK PT camera to Zoneminder .In Order to get RTSP stream we need the device username and  password of the camera. Therefore I have gone through the user manual of the camera for searching the default device   password .But the device password was not given in the brochure given with the camera.  Then I had to export xml file with the SADP tool and send it to the Hikvision support center in Bangladesh to get the key to reset the password. The Hikvision support center has sent keys several times but failed to reset the device password using the SADP tool.Then I have asked them whether there is a default password of the above camera. But they informed me  that there is no default password.

Then I have searched the internet  for the default password of Hikvision Q1 NETWORK PT CAMERA and finally  found a comment made by a gentleman called marku2 in a blog   ipcamtalk that gave a clue for the  default device password of the camera.

The default username and default password of Hikvision Q1 NETWORK PT CAMERA are as follows.

Default username – admin

Default password – admin(verification code on camera sticker)

Note:- You will have to enter the verification code just after “admin” without ( )

IMG_20180926_111521new.jpg

Figure 2 :- The verification code is circled with red .

The procedure I have used has following steps

1 .  The camera is set to factory reset by pressing  the reset button about 5 seconds .

(When you rotate the camera to the fully upward position , you can see a small door on the front face of the camera . You can open the door with a small pin . After opening the door you will be able to see a small grove for the SD card .To the right of the grove you can see the small reset button.)

Note:- Be careful to insert the SD card facing the metal pins in upward position in to the grove

Once the the camera is set to factory reset, the device username and password automatically set in to default values.

2. Now you will have to use Hikvision ivms4200 software to change the default password.

Figure 3 :-Control Panel of ivms4200

Press the device management button and add the camera.

Screenshot from 2018-09-27 00-03-07

Figure 4 :-entering  the IP address and Default  username and password

Figure 5 :-Changing the default password using user button and modify button

Screenshot from 2018-09-26 22-09-36

Figure 6:- Changing the device password

Changing the default password was successful. Then the camera was added to the Zoneminder monitor using the changed password .

Screenshot from 2018-09-27 00-19-33

 

Figure 7:- Zoneminder view of the camera monitor

Advertisements

Internet Connection to Raspberry pi 3 (Raspbian Stretch) with a 4G Huawei Mobile Broadband LTE USB Stick (HUAWEI E3372) using wvdial

This post describes how to use    the linux package “wvdial”   for configuring the USB dongle to obtain internet access  to pi3 .

First connect the 4G Huawei E3372  dongle is connected to a USB port of  the Raspberry pi 3

Required Linux Software

wvdial

usb-modeswitch

ppp

Install above packages using the terminal

sudo apt install ppp usb-modeswitch wvdial

Plug the USB 4G dongle to the Raspberry pi 3

Open the terminal

lsusb

Screenshot from 2018-09-01 00-00-41

Figure 1:- From the above figure it can be seen that USBMODEM=’12d1:1506′

Now you will be able to see the details of the USB dongle on the terminal

Creating a default wvdial.conf file on /etc

wvdialconf /wvdial.conf

Open wvdial.conf using gedit

sudo gedit /etc/wvdial.conf

Then modify the wvdial.conf file as shown below

Screenshot from 2018-09-04 22-31-58

Figure 2:-wvdial.conf file at /etc

As I have used a sim card of Mobitel Sri Lanka at the end of the line no 5 of above file is written as ‘mobitel’

Line no 10 depends on how the dongle is connected in your system.

ttyUSB* is found and automatically written in generated wvdial.conf when you use

“wvdialconf /wvdial.conf” command on the terminal.

ttyUSB* corresponds to USB dongle can also be found using “ls -l /dev/serial/by-id” on the terminal.

Screenshot from 2018-09-05 11-05-52

Figure 3:-

 

Test the connection

sudo wvdial

Now you can see that internet is activated in Raspberry pi 3

 

Making the internet connection automatic during the boot time.

For this purpose we have to make a script file and add an executing command in /etc/rc.local

sudo gedit 4GModam.sh

write following lines in the file and save

#!/bin/bash

wvdial

sudo chmod +x 4GModam.sh

Screenshot from 2018-09-04 22-32-58

Figure 4:- 4GModam.sh script file at /home/pi

Including executive command in /etc/rc.local to activate 4GModam.sh during the boot time

sudo gedit /etc/rc.local

Add the following command above “ext0” command in /etc/rc.local and save

sh ‘/home/pi/4GModam.sh’

Screenshot from 2018-09-04 22-34-03

Figure 5:- Editing  /etc/rc.local

Reboot the Raspberry pi 3

Now you can observe that the internet connection is activated in Raspberry pi 3


 

Internet Connection to Raspberry pi 3 (Raspbian Stretch) with a 4G Huawei Mobile Broadband LTE USB Stick (HUAWEI E3372) using sakis3g

Getting an internet  connection to Raspberry pi (with Raspbian Stretch)using a USB dongle is not that straightforward .

We know that 4G Huawei E3372  dongle is identified immediately and ready to use once it connected to a  Windows  or Ubuntu PC.

But for Raspberry pi , you will have to do some more work to get internet .

First connect the 4G Huawei E3372  dongle is connected to a USB port of  the Raspberry pi 3.

This post describes how the free software called   “sakis3g”  can be used for configuring the USB dongle to obtain internet access  to pi3 .

To get internet We are going to install following packages.

ppp package

sakis3g

usb-modeswitch

umtskeeper

Open the Terminal

sudo apt-get update
sudo apt-get install ppp
sudo apt-get install ppp usb-modeswitch
cd ~
pwd
mkdir umtskeeper
Download sakis3g.tar.gz file from sourceforge .
cd Downloads
Then copy the downloaded sakis3g.tar.gz file to the folder umtskeeper
cp sakis3g.tar.gz /home/pi/umtskeeper
cd ..
cd umtskeeper/
tar -xzvf sakis3g.tar.gz
chmod +x sakis3g

wget "http://mintakaconciencia.net/squares/umtskeeper/src/umtskeeper.tar.gz"
tar -xzvf umtskeeper.tar.gz
chmod +x umtskeeper


sudo ./sakis3g --interactive
Use 0 for APN username and password
Since my internet service provider  is mobitel Sri Lanka , I have used mobitel in sakis3g menu

 

 

 

 

Figure 1:-Connecting to internet using Sakis3G .You can see from above figures that the USBINTERFACE=’1′

Screenshot from 2018-08-31 19-34-12

Figure 2:- Internet is established using the 4G dongle

On the terminal to get the USBMODAM ID

lsusb

Screenshot from 2018-09-01 00-00-41

Figure 3:- From the above figure it can be seen that USBMODEM=’12d1:1506′

Using the data of Figure 1 and Figure 3 on the terminal
sudo ./sakis3g connect --sudo --console USBINTERFACE='1' OTHER='USBMODEM' USBMODEM='12d1:1506' SIM_PIN='1234' APN='CUSTOM_APN' CUSTOM_APN='mobitel' APN_USER='0' APN_PASS='0'" --sakisswitches "--sudo --console" --devicename 'Huawei' --log --nat 'no'


cat /var/log/umtskeeper.log
Screenshot from 2018-09-01 16-05-02

Figure 5:- Details in the log file


How to make internet connection automatic during the boot time of the PI 3 

sudo gedit /etc/rc.local 

add the following line to rc.local script file and save .This script file activates during the boot time to facilitate automatic internet connection
/home/pi/sakis3g connect --sudo --console USBINTERFACE='1' OTHER='USBMODEM' USBMODEM='12d1:1506' SIM_PIN='1234' APN='CUSTOM_APN' CUSTOM_APN='mobitel' APN_USER='0' APN_PASS='0'" --sakisswitches "--sudo --console" --devicename 'Huawei' --log --nat 'no'

Screenshot from 2018-09-04 17-20-48

  Figure 5:- Codes in file rc.local at /etc ( the codes underlined with green have to be changed to suit your dongle)

reboot pi 
Now you can see that the internet connection is established when the pi 3 is started

Note :- If you install Ubuntu MATE 16.0  , instead of Raspbian  on Raspberry pi 3 , USB internet Dongle can be used to access internet without Sakis3g or wvdial 
IMG_20180907_164742

Reference :-
mintakaconciencia.net