mirror of https://github.com/OpenIPC/wiki.git
Merge pull request #101 from thomas425777/master
Add device Digitus DN-16048 Thank you !pull/102/head
commit
9bbd0376f4
|
@ -75,6 +75,7 @@ OpenIPC Wiki
|
|||
- [Smartwares CIP-37210](en/device-smartwares-cip-37210.md)
|
||||
- [Xiaomi Mi Camera 2K (MJSXJ03HL)](https://github.com/OpenIPC/device-mjsxj03hl/)
|
||||
- [Wyze V3](en/device-wyze-integration.md)
|
||||
- [Digitus DN-16048 Optizoom](en/device-digitus-dn16048.md)
|
||||
|
||||
### Software
|
||||
- [List of Software for Recording Video](en/software-video-recording.md)
|
||||
|
|
|
@ -0,0 +1,288 @@
|
|||
# Digitus DN-16048 Optizoom PTZ
|
||||
Pan, Tilt, Focus and Zoom (via command line ssh)
|
||||
|
||||
## Flashing OpenIPC:
|
||||
|
||||
Opening the case, it turns out, that the SoC is **hi3815cv100**, **16MB** and the camera sensor is **mt9p006**. Install a TFTP server at the PC and follow the installation instructions: https://github.com/OpenIPC/wiki/blob/master/en/installation.md Download the correct image (16MB, Lite) and put it into the directory of the TFTP server (in case the image is not packed, the "unpacking" step can be skipped). Connect a UART adapter to the pins on the SoC board and start a terminal at the PC:
|
||||
|
||||
```sh
|
||||
screen -L -Logfile ipcam-$(date +%s).log /dev/ttyUSB0 115200
|
||||
```
|
||||
|
||||
Follow the instructions that are generated by the OpenIPC web page. To access UBOOT, press Ctrl-C immediately after plugging in the power supply: https://openipc.org/cameras/vendors/hisilicon/socs/hi3518cv100 To make the network work later on in Linux: Before the final „reset“ command in UBOOT, enter the following commands, according to: https://github.com/OpenIPC/wiki/blob/master/en/network-perversions.md
|
||||
|
||||
```sh
|
||||
setenv extras 'hieth.phyaddru=3 hieth.mdioifu=0'
|
||||
saveenv
|
||||
```
|
||||
|
||||
Finally enter:
|
||||
|
||||
```sh
|
||||
reset
|
||||
```
|
||||
|
||||
Logon to Linux using „root“ and „12345“. In Linux enter:
|
||||
|
||||
```sh
|
||||
firstboot
|
||||
```
|
||||
|
||||
Login to Linux again. The sensor will not be detected automatically. Therfore enter the following commands in Linux on the camera:
|
||||
|
||||
```sh
|
||||
fw_setenv soc hi3518cv100
|
||||
fw_setenv sensor mt9p006
|
||||
```
|
||||
|
||||
Find out the IP address of the camera via
|
||||
|
||||
```sh
|
||||
ip a
|
||||
```
|
||||
|
||||
## Change password and MAC address:
|
||||
Access the web interface using a browser via port 85 and change the password and the MAC address.
|
||||
|
||||
## Configure night mode switching:
|
||||
Via ipctool (ipctool gpio scan) one can find out easily, that the light sensor input (for automatic switching between day and night) is number 2. The IR cutoff is controlled by 1 and 0.
|
||||
|
||||
* Preview-NightMode-Settings:
|
||||
|
||||
```
|
||||
Enable Night mode: on
|
||||
GPIO pin of signal from IR sensor: 2
|
||||
GPIO pin1 of signal for IRcut filter: 1
|
||||
GPIO pin2 of signal for IRcut filter: 0
|
||||
```
|
||||
|
||||
## Configure the camera resolution:
|
||||
|
||||
* Mainstream Video (Video0):
|
||||
|
||||
```
|
||||
Video resolution: 1280x720
|
||||
Video framerate: 10
|
||||
```
|
||||
|
||||
* RTSP:
|
||||
|
||||
```
|
||||
RTSP enable output: on
|
||||
```
|
||||
|
||||
* MJPEG:
|
||||
|
||||
```
|
||||
Video resolution: 1280x720
|
||||
```
|
||||
|
||||
* JPEG:
|
||||
|
||||
```
|
||||
Snapshot size: 1280x720
|
||||
```
|
||||
|
||||
## Configure the Image Signal Processor:
|
||||
|
||||
* Image Signal Processor (ISP):
|
||||
|
||||
```
|
||||
Path to sensor configuration file: /etc/sensors/mt9p006_i2c_dc_720p.ini
|
||||
Block count: 4
|
||||
```
|
||||
|
||||
## Configure web admin:
|
||||
|
||||
* System:
|
||||
|
||||
```
|
||||
Serve Web Admin via Majestic: off
|
||||
```
|
||||
|
||||
## Configure the watchdog:
|
||||
|
||||
* Watchdog:
|
||||
|
||||
```
|
||||
Enable watchdog: on
|
||||
Watchdog timeout: 120
|
||||
```
|
||||
|
||||
## Test the MJPEG stream:
|
||||
I.e. browser or Android app "IPCamViewer" (replace ip with your current one). mjpeg has lower latency than rtsp.
|
||||
|
||||
```sh
|
||||
192.168.1.188/mjpeg
|
||||
```
|
||||
|
||||
## Test the RTSP stream:
|
||||
I.e. "mpv" or Android app "IPCamViewer" (replace the password and ip with your current ones)
|
||||
|
||||
```sh
|
||||
mpv rtsp://root:12345@192.168.1.188:554/stream=0
|
||||
```
|
||||
|
||||
## Test pan, tilt, zoom and focus:
|
||||
It turns out, that the camera uses the pelco-d via the serial port ttyAMA1, so logon to the camera via ssh (use your ip):
|
||||
|
||||
```sh
|
||||
ssh root@192.168.1.188
|
||||
```
|
||||
|
||||
The serial port can be configured via the following stty command:
|
||||
|
||||
```sh
|
||||
stty -F /dev/ttyAMA1 2400
|
||||
```
|
||||
|
||||
Create the following scripts with the editor "vi" or copy the files via tftp. Use chmod to make the files executeable. I.e:
|
||||
|
||||
```sh
|
||||
chmod +x ./right
|
||||
```
|
||||
|
||||
|
||||
### Script ./right
|
||||
|
||||
```sh
|
||||
#!/bin/sh
|
||||
stty -F /dev/ttyAMA1 2400
|
||||
printf '\xFF\x01\x00\x00\x00\x00\x01' >/dev/ttyAMA1
|
||||
printf '\xFF\x01\x00\x02\x20\x00\x23' >/dev/ttyAMA1
|
||||
sleep 0.1
|
||||
printf '\xFF\x01\x00\x00\x00\x00\x01' >/dev/ttyAMA1
|
||||
```
|
||||
|
||||
|
||||
### Script ./left
|
||||
|
||||
```sh
|
||||
#!/bin/sh
|
||||
stty -F /dev/ttyAMA1 2400
|
||||
printf '\xFF\x01\x00\x00\x00\x00\x01' >/dev/ttyAMA1
|
||||
printf '\xFF\x01\x00\x04\x20\x00\x25' >/dev/ttyAMA1
|
||||
sleep 0.1
|
||||
printf '\xFF\x01\x00\x00\x00\x00\x01' >/dev/ttyAMA1
|
||||
```
|
||||
|
||||
|
||||
### Script ./up
|
||||
|
||||
```sh
|
||||
#!/bin/sh
|
||||
stty -F /dev/ttyAMA1 2400
|
||||
printf '\xFF\x01\x00\x00\x00\x00\x01' > /dev/ttyAMA1
|
||||
printf '\xFF\x01\x00\x08\x20\x00\x29' > /dev/ttyAMA1
|
||||
sleep 0.1
|
||||
printf '\xFF\x01\x00\x00\x00\x00\x01' > /dev/ttyAMA1
|
||||
```
|
||||
|
||||
|
||||
### Script ./down
|
||||
|
||||
```sh
|
||||
#!/bin/sh
|
||||
stty -F /dev/ttyAMA1 2400
|
||||
printf '\xFF\x01\x00\x00\x00\x00\x01' >/dev/ttyAMA1
|
||||
printf '\xFF\x01\x00\x10\x20\x00\x31' >/dev/ttyAMA1
|
||||
sleep 0.1
|
||||
printf '\xFF\x01\x00\x00\x00\x00\x01' >/dev/ttyAMA1
|
||||
```
|
||||
|
||||
|
||||
### Script ./in (Zoom)
|
||||
|
||||
```sh
|
||||
#!/bin/sh
|
||||
stty -F /dev/ttyAMA1 2400
|
||||
printf '\xFF\x01\x00\x00\x00\x00\x01' >/dev/ttyAMA1
|
||||
printf '\xFF\x01\x00\x20\x00\x00\x21' >/dev/ttyAMA1
|
||||
sleep 1
|
||||
printf '\xFF\x01\x00\x00\x00\x00\x01' >/dev/ttyAMA1
|
||||
```
|
||||
|
||||
|
||||
### Script ./out (Zoom)
|
||||
|
||||
```sh
|
||||
#!/bin/sh
|
||||
stty -F /dev/ttyAMA1 2400
|
||||
printf '\xFF\x01\x00\x00\x00\x00\x01' >/dev/ttyAMA1
|
||||
printf '\xFF\x01\x00\x40\x00\x00\x41' >/dev/ttyAMA1
|
||||
sleep 1
|
||||
printf '\xFF\x01\x00\x00\x00\x00\x01' >/dev/ttyAMA1
|
||||
```
|
||||
|
||||
|
||||
### Script ./near (Focus)
|
||||
|
||||
```sh
|
||||
#!/bin/sh
|
||||
stty -F /dev/ttyAMA1 2400
|
||||
printf '\xFF\x01\x00\x00\x00\x00\x01' >/dev/ttyAMA1
|
||||
printf '\xFF\x01\x01\x00\x00\x00\x02' >/dev/ttyAMA1
|
||||
sleep 0.1
|
||||
printf '\xFF\x01\x00\x00\x00\x00\x01' >/dev/ttyAMA1
|
||||
```
|
||||
|
||||
|
||||
### Script ./far (Focus)
|
||||
|
||||
```sh
|
||||
#!/bin/sh
|
||||
stty -F /dev/ttyAMA1 2400
|
||||
printf '\xFF\x01\x00\x00\x00\x00\x01' >/dev/ttyAMA1
|
||||
printf '\xFF\x01\x00\x80\x00\x00\x81' >/dev/ttyAMA1
|
||||
sleep 0.1
|
||||
printf '\xFF\x01\x00\x00\x00\x00\x01' >/dev/ttyAMA1
|
||||
```
|
||||
|
||||
|
||||
### Script ./scanh
|
||||
|
||||
```sh
|
||||
#!/bin/sh
|
||||
stty -F /dev/ttyAMA1 2400
|
||||
printf '\xFF\x01\x00\x00\x00\x00\x01' >/dev/ttyAMA1
|
||||
sleep 0.5
|
||||
printf '\xFF\x01\x00\x04\x08\x00\x0d' >/dev/ttyAMA1
|
||||
```
|
||||
|
||||
|
||||
### Script ./scanv
|
||||
|
||||
```sh
|
||||
#!/bin/sh
|
||||
stty -F /dev/ttyAMA1 2400
|
||||
printf '\xFF\x01\x00\x00\x00\x00\x01' >/dev/ttyAMA1
|
||||
sleep 0.5
|
||||
printf '\xFF\x01\x00\x08\x08\x00\x11' >/dev/ttyAMA1
|
||||
```
|
||||
|
||||
|
||||
### Script ./stop
|
||||
The following script stops every action including horizontal and vertical scan). It is a workaround, because the normal pelco-d "stop" command did not always work. It turned out that "up", "down", "left", "right" always stops the scan commands, so short left+right commands are included in this script:
|
||||
|
||||
```sh
|
||||
#!/bin/sh
|
||||
stty -F /dev/ttyAMA1 2400
|
||||
printf '\xFF\x01\x00\x00\x00\x00\x01' >/dev/ttyAMA1
|
||||
printf '\xFF\x01\x00\x02\x20\x00\x23' >/dev/ttyAMA1
|
||||
printf '\xFF\x01\x00\x00\x00\x00\x01' >/dev/ttyAMA1
|
||||
printf '\xFF\x01\x00\x04\x20\x00\x25' >/dev/ttyAMA1
|
||||
printf '\xFF\x01\x00\x00\x00\x00\x01' >/dev/ttyAMA1
|
||||
printf '\xFF\x01\x00\x04\x20\x00\x25' >/dev/ttyAMA1
|
||||
printf '\xFF\x01\x00\x00\x00\x00\x01' >/dev/ttyAMA1
|
||||
```
|
||||
|
||||
|
||||
## Possible further improvements:
|
||||
|
||||
- The camera seems to have a PoE board, but it does not seem to work. Maybe there were two versions (one with 12V and one with PoE) that mainly differ from each other by the cable. So maybe the camera could be modified to use the PoE board.
|
||||
|
||||
- There is a SDCard slot (altrough only accessable when opening the case). It does not work at the moment. Although there had been an update for the stock firmware addressing explicity the sdcard functionality, it is not sure whether it ever worked with stock firmware.
|
||||
|
||||
- The camera has got a Wifi module. Probably this could be activated via OpenIPC.
|
||||
|
||||
- The camery has got a zoom and focus board. Documentation for this board exists in Chinese (can be translated via google translate). There seems to be a „factory calibration“ procedure to assign „standard“ focus settings for the zoom levels.
|
Loading…
Reference in New Issue