- VIEWER = PC/Laptop, RJ45 cable, OMX Player (1 set)
- CCTV (for each) = CCTV device, Power Cable, RJ-45 (3 sets)
- Wifi Router+ Power (1 pcs)
- RPI (4 pcs)
- CMOD A7 35T (4 pcs)
- Jumper Cable
-Hostname: vpn_gateway[n] n=1/2/3 -Username: pi -Pass: 1234 -Open VPN automatically run after OS booting -(-) DHCP not running automatically [maybe for next project]
-It needs 4 pcs (1 viewer, 3 CCTV)
-RPI PIN 1. RJ45 - To computer client (for viewer only)
To CCTV HIKVISIN model DS-2CD211F
2. SPI PIN = SPIO CS0 (GPIO 8) (PIN24) <---> PIN 22 CMODA7 35T (CS)
SPIO MOSI (GPIO 10) (PIN19) <---> PIN 20 CMODA7 35T (MOSI)
SPIO MISO (GPIO 9) (PIN21) <---> PIN 21 CMODA7 35T (MISO)
SPIO SCLK (GPIO 11) (PIN23) <---> PIN 23 CMODA7 35T (SCK)
3.3V PWR (PIN 1) <---> PIN 24 CMODA7 35T (VU)
GND PWR (PIN 6) <---> PIN 25 CMODA7 35T (GND)
##[DIAGRAM]
[ Viewer PC ] <---RJ-45---> [ RPI ] <--WIFI--> |^^^^^^^^^^^^^^^| <---WIFI------>[ RPI ]<----------> CCTV
| | | | |
Jumper Cable | | | Jumper Cable
| | | | |
[CMOD A7] | | | [CMOD A7]
| | |
| Internet | --WIFI--> [ RPI ]<----------> CCTV
| | | |
| (OpenVPN | | |
| Server) | | [CMOD A7]
| | |
| | --WIFI--> [ RPI ]<----------> CCTV
| | |
| | |
|_______________| [CMOD A7]
Do this step if you can not login to the CCTV device only
- Open the casing
- Power ON
- Press and Hold RESET BUTTON for 30 s
- Switch OFF
- Re-power ON
PIN RJ-45 CCTV <----> pin RJ-45 RPI
- Install with SADP Apps (SADP HiTools by HIKVISION)
- Connect Laptop and CCTV devices to the router (without connected to RPI and FPGA)
- Check the IP for each CCTV Device on SADP Apps (will be apear automatically)
- Login to each decive and setting the CCTV IP into VPN IP (this demo using 10.1.10.1XX) [XX=Different for each CCTV]
- The ACTIVATION CODE = Admin123!
- Password/Key = Admin123!
- Check list CCTV one by one and modified each IP devices.
- Setting each RPI OpenVPN param in file
/boot/vpn/bridge-up.sh
bridge_addr="10.1.10.102" #10.1.10.10X
- If there is an error run
ps aux | grep openvpn
sudo pkill openvpn
sudo openvpn --config /boot/vpn/client.opvn