Beruflich Dokumente
Kultur Dokumente
Network Camera
Technical Notes
Ver. 2.3
3 October, 2004
2003.10.3 2.20 Added new CGI command/parameters (Compatible with ver. 1.75 of Network Camera firmware)
nphControlCamera (Click to Center)
nphManipulateCamera
Set network configuration parameters
Set camera name and time
Set administrator ID and password
Set general user ID and password
Set image transfer parameters
Set various camera parameters
Set parameter for external output
Delete stored image
nphSecurityGeneralUserDelete (Delete general user information)
nphSecurityGeneralUserModify (Modify general user information)
nphRestart (Restart Network Camera)
nphPresetNameCheck (Set preset and clear preset)
nphPanTiltControl (Verify status of preset, verify name of preset button)
nphReplayRecord (Acquire motion image stored in camera buffer)
BufferingImage (Acquire still image stored in camera buffer)
2003.4.1 2.00 Added new CGI commands/parameters
ImageViewer (added Title parameter)
nphControlCamera (added Zoom and Focus parameters for HCM280)
nphMotionJpeg (acquire motion image)
SnapShotJPEG (acquire still image)
2002.9.26 1.00 First English version
The information is in this document is written for use with the following Panasonic Network Cameras:
KX-HCM8
KX-HCM10
KX-HCM230
KX-HCM250
KX-HCM270
KX-HCM280.
2.BASIC INFORMATION
Panasonic Network Cameras KX-HCM10 and KX-HCM8 support a maximum of 10 simultaneous accesses.
Panasonic Network Cameras KX-HCM230, KX-HCM250, KX-HCM270, and KX-HCM280 support a maximum of 30
simultaneous accesses.
If you need to provide for more simultaneous accesses, you will need to setup an external FTP server to receive images
from the Network Camera.
nphManipulateCamera
Example:
nphManipulateCamera?PAGE=Network&CameraBootpEnable=Check&CameraPort=80&
CameraInternetFlag=1&CameraIP=192.168.0.250&CameraNetmask=255.255.255.0&
CameraGateway=192.168.0.1&CameraDNS1=192.168.0.1&CameraDNS2=202.238.95.24&
Copyright © 2003 Panasonic Communications Co., Ltd. All rights reserved. 4
CameraDDNSEnable=Check&CameraConnectionType=1&CameraBandwidth=65536&Save=ON
nphManipulateCamera
nphManipulateCamera
Example:
nphManipulateCamera?PAGE=SecurityAdministrator&AuthenticationEnable=1&
AdministratorID=Admin&AdministratorPassword1=mnger&
AdministratorPassword2=mnger&Save=ON
nphManipulateCamera
Example:
nphManipulateCamera?PAGE=SecurityGeneralUser&NewUserID=xxxxx&
NewUserPassword1=yyyyy&NewUserPassword2=yyyyy&Save=ON
nphSecurityGeneralUserDelete
Example:
nphSecurityGeneralUserDelete?PAGE=SecurityGeneralUserDelete&
USERNAME=xxxxx&OK=OK
nphSecurityGeneralUserModify
Example:
nphSecurityGeneralUserModify?PAGE=SecurityGeneralUserModify&
USERNAME=ppppp&NewUserPassword1=qqqqq&NewUserPassword2=qqqqq&Save=ON
nphManipulateCamera
Example:
nphManipulateCamera?PAGE=ImageTransferNon&TaskEnable=on&
ClearImage=ON&Save=ON
NphManipulateCamera
Example:
nphManipulateCamera?PAGE=ImageTransferTimer&TaskEnable=on&
PrimaryTimeMode=86400000&PrimaryStartHour=0&PrimaryStartMin=0&
PrimaryStartSec=0&PrimaryStopHour=23&PrimaryStopMin=59&
PrimaryStopSec=59&PrimaryStartSun=ON&PrimaryStartMon=ON&
PrimaryStartTue=ON&PrimaryStartWed=ON&PrimaryStartThu=ON&
PrimaryStartFri=ON&PrimaryStartSat=ON&SecondaryEnable=ON&
PrimaryResolution=0&PrimaryQuality=0&PrimaryPostIntervalNum=1&
PrimaryPostIntervalPer=1&SecondaryPostIntervalNum=1&
SecondaryPostIntervalPer=1&TransferMode=0&Save=ON
nphManipulateCamera
Example:
nphManipulateCamera?PAGE=ImageTransferAlarm&TaskEnable=on&
PrimaryTimeMode=86400000&PrimaryStartHour=0&PrimaryStartMin=0&
PrimaryStartSec=0&PrimaryStopHour=23&PrimaryStopMin=59&PrimaryStopSec=59&
PrimaryStartSun=on&PrimaryStartMon=on&PrimaryStartTue=on&
PrimaryStartWed=on&PrimaryStartThu=on&PrimaryStartFri=on&
PrimaryStartSat=on&PrimaryTrigger=3&SecondaryEnable=on&
SecondaryTrigger=3&PrimaryResolution=0&PrimaryQuality=0&
PrimaryPreIntervalNum=1&PrimaryPreIntervalPer=1&PrimaryPreNum=1&
PrimaryPostEnable=on&PrimaryPostIntervalNum=1&PrimaryPostIntervalPer=1&
PrimaryPostNum=1&TransferMode=0&Save=ON
nphManipulateCamera
Example:
nphManipulateCamera?PAGE=CameraSetup&WhiteBalance=0&PowLineFreq=60&
CameraBright=0&NightViewControl=1&CameraControl=0&Preset=0&PresetControl=0
&ZoomControl=0&FocusControl=0&PanRangeMinus=-17500&PanHome=0&PanRangePlus=
17500&Layout=0&TiltRangeMinusTab=-12000&TiltHomeTab=-9000&TiltRangePlusTab
=0&TiltRangeMinusCeil=0&TiltHomeCeil=9000&TiltRangePlusCeil=9000&Save=ON
nphManipulateCamera
Example:
nphManipulateCamera?PAGE=DigitalOutputControl&DigitalOutput=0&Save=ON
nphRestart
Example:
nphRestart?PAGE=Restart&Restart=OK
3.13 Creating a new preset with the current camera position
nphPresetNameCheck
Example:
nphPresetNameCheck?PresetName=Upperside&Data=1
3.14 Deleting a preset
nphPresetNameCheck
Example:
nphPresetNameCheck?Data=1
nphReplayRecord
0 0:by Alarm
Type 1 1:by Timer
2 2:by Capture
Example:
nphReplayRecord?Record=0&Type=1 Motion images recorded in Primary time by Timer
nphReplayRecord?Record=1&Type=1 Motion images recorded in Secondary time by Timer
nphReplayRecord?Record=0&Type=0 Motion images recorded in Primary time by Alarm
nphReplayRecord?Record=1&Type=0 Motion images recorded in Secondary time by Alarm
nphReplayRecord?Record=2&Type=2 Motion images recorded by pressing the “Start Capture” button in the operation
bar
Refer to “3.3 Capturing motion images” for information on viewing captured motion images.
BufferingImage
Example:
BufferingImage?ImageAdr=0&Type=1 No.1 image stored in Primary time by Timer
BufferingImage?ImageAdr=65536&Type=1 No.1 image stored in Secondary time by Timer
BufferingImage?ImageAdr=0&Type=0 No.1 image stored in Primary time by Alarm
BufferingImage?ImageAdr=65536&Type=0 No.1 image stored in Secondary time by Alarm
BufferingImage?ImageAdr=131072&Type=2 No.1 image stored by pressing the “Start Capture” button.
nphManipulateCamera
Example:
nphManipulateCamera?PAGE=ImageTransferNon&ClearImage=OK
ImageViewer
Note 1: A title is displayed on the top the frame which displays the image. Firmware version 1.62 or later is required to
display image frame titles. The latest firmware is available for download at the following URL:
http://panasonic.co.jp/pcc/products/en/netwkcam/
Note 2: When embedding images from your Network Camera into a web page, the Click to Center function is also
available. When a user clicks an area of the image, the camera will center its image on that point.
Note 3: The following two frames are necessary when using this command.
- ImageViewer frame
- Message frame (Frame which displays messages. If not needed, the size can be set “0”.)
If you do not set this frame, a new window will open when the screen is clicked.
nphControlCamera
Parameter Value Description / Note
PanLeft Moves the lens left or right.
PanRight
TiltUp Moves the lens up or down.
TiltDown
Pans the lens to the far left, to the far right, then returns it to the
PanScan original position. Requires firmware version 1.40 or later.
Tilts the lens to the highest then lowest position before
Direction TiltScan returning it to the original position. Requires firmware version
1.40 or later.
Returns the lens to the preprogrammed “home” position.
HomePosition Requires firmware version 1.40 or later.
Darker
DefaultBrightness Controls image brightness.
Brighter
ZoomTele
Zooms in (tele) or out (wide).
ZoomWide
First of three parameters required to move the camera to a
Direction Preset
preset location. Requires firmware version 1.40 or later.
Second of three parameters required to move the camera to a
PresetOperation Move
preset location.
Last of three parameters required to move the camera to a
Data 1 to 8 preset location. The value of the Data parameter indicates
the preset number.
Direction FocusAuto Sets the camera to auto focus mode.
FocusNear First of two parameters required to focus the camera on a
Direction FocusFar nearby or distant object.
Controls how much focus correction is applied by the
Direction=FocusNear and
Dist 1
2 Direction=FocusFar parameters.
1: Small (subtle change)
2: Large (drastic change)
Note: When recording motion images from a Network Camera, make sure an appropriate amount of remaining hard disk
space is maintained. If disk space becomes too low, the PC may become unstable.
nphMotionJpeg
2. Send a request to the Network Camera by sending the following message to its HTTP port.
“GET
http://xxx.xxx.xxx.xxx:yy/nphMotionJpeg?Resolution=320x240&Quality=Standard
HTTP/1.0\r\n"
Note: The data from FFD8 to FFD9 is the JPEG data for a single frame.
FFD8 begins after the text “Content-type: …image/jpeg”.
FFD9 is just before “--myboundary”.
4. Images can be recorded and viewing by using the extracted JPEG data.
Example:
SnapshotJPEG?Resolution=320x240&Quality=Standard
The Control Pad graphic can be customized. In this example, the file “pad.gif” is used. This file can be extracted from the
Panasonic Network Camera screen by right clicking on the image in a web browser, and choosing “Save image…”
If ActiveX is not installed in your web browser, you will be asked to download and install it the first time you access the
web page.
PAN/TILT Control Frame ”Control” Message Frame ”Message” Motion Image Frame ”right”
Described in ”control1.html” section. Described in ”dummy.html” section using the “ImageViewer”
command.
<! This is Sample Code. Panasonic will not be held responsible for damages or loss incurred by using this information. >
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">
<!-- sample1.html PAN/TILT Control Pad and Live Image Frame-->
<HTML>
<HEAD>
<TITLE>Sample1</TITLE>
</HEAD>
<FRAMESET COLS="123,*" FRAMEBORDER=0 BORDER=0 FRAMESPACING=0>
<FRAMESET ROWS="175,*">
<!—Upper Left:PAN/TILT Control Pad Display Frame -->
<FRAME BGCOLOR="#C4CEEF" SCROLLING=no SRC="frame/control1.html" NAME="Control">
<!—Lower Left:Dummy frame to respond to PAN/TILT Control -->
<!-- Note:"Message" frame is used to show feedback from "frame/control1.html"-->
<FRAME BGCOLOR="#C4CEEF" SCROLLING=no SRC="frame/dummy.html"
NAME="Message">
</FRAMESET>
<!—RIGHT:Live Image Frame -->
<!—Type Camera’s URL address in the field to replace "xx.xx.xx.xxx"-->
<!—An Error Message will be displayed if the wrong URL is typed in for "xx.xx.xx.xxx". -->
<FRAME SRC="http://xx.xx.xx.xxx/ImageViewer?Mode=Motion&Resolution=320x240&Quality=Standard&Interval=10"
NAME="right">
<NOFRAMES>
<BODY>
<!—Message for a viewer using an incompatible browser -->
Please Use Appropriate Browser to View the Frame
</BODY>
</NOFRAMES>
</FRAMESET>
</HTML>
<!- This is Sample Code. Panasonic will not be held responsible for damages or loss incurred by using this information. >
<!- PAN/TILT Control pad Frame control1.html -->
<html>
<head>
<title>
Control1 Frame
</title>
</head>
<body BGCOLOR="#C4CEEF">
<center>
<!- Display PAN/TILT Control Pad -->
<!- Type Camera’s URL address in the field to replace "xx.xx.xx.xxx" -->
<table><tr><TD BGCOLOR="#C4CEEF" ALIGN=center>
<img src="http://xx.xx.xx.xxx/image/pad.gif" usemap="#pad" width=90 height=98 border=0>
</TD></tr></table>
<!- Clickable Image Map for PAN/TILT -->
<map name="pad">
<area shape="circle" coords="12,12 10"
href="http://xx.xx.xx.xxx/nphControlCamera?Direction=PanScan&Resolution=320x240&Quality=Standard&RPeriod=0&Si
ze=STD&PresetOperation=Move&Language=1" TARGET="Message" ALT="Pan Scan" TITLE="Pan Scan">
<area shape="circle" coords="78,12 10"
href="http://xx.xx.xx.xxx/nphControlCamera?Direction=TiltScan&Resolution=320x240&Quality=Standard&RPeriod=0&Siz
e=STD&PresetOperation=Move&Language=1" TARGET="Message" ALT="Tilt Scan" TITLE="Tilt Scan">
<area shape="circle" coords="45,33 10"
href="http://xx.xx.xx.xxx/nphControlCamera?Direction=TiltUp&Resolution=320x240&Quality=Standard&RPeriod=0&Size=
STD&PresetOperation=Move&Language=1" TARGET="Message" ALT="TiltUp" TITLE="Tilt Up">
<area shape="circle" coords="20,58 10"
href="http://xx.xx.xx.xxx/nphControlCamera?Direction=PanLeft&Resolution=320x240&Quality=Standard&RPeriod=0&Siz
e=STD&PresetOperation=Move&Language=1" TARGET="Message" ALT="PanLeft" TITLE="Pan Left">
<area shape="circle" coords="45,58 10"
href="http://xx.xx.xx.xxx/nphControlCamera?Direction=HomePosition&Resolution=320x240&Quality=Standard&RPeriod=
0&Size=STD&PresetOperation=Move&Language=1" TARGET="Message" ALT="HomePosition" TITLE="HomePosition">
<area shape="circle" coords="70,58 10"
href="http://xx.xx.xx.xxx/nphControlCamera?Direction=PanRight&Resolution=320x240&Quality=Standard&RPeriod=0&Si
ze=STD&PresetOperation=Move&Language=1" TARGET="Message" ALT="PanRight" TITLE="Pan Right">
<area shape="circle" coords="45,83 10"
href="http://xx.xx.xx.xxx/nphControlCamera?Direction=TiltDown&Resolution=320x240&Quality=Standard&RPeriod=0&Si
ze=STD&PresetOperation=Move&Language=1" TARGET="Message" ALT="TiltDown" TITLE="Tilt Down">
</map>
</center>
</body>
</html>
<! This is Sample Code. Panasonic will not be held responsible for damages or loss incurred by using this information. >
<html>
<head>
<title>
Dummy Frame
</title>
</head>
<body BGCOLOR="#C4CEEF">
</body>
</html>