RS-485 Communication Protocol for PTC-1000
Ver1.02
2007/11/16
1.Connection
External Control[RS-485]
D+DGND

Camera 5P connecter(white)[RS-485]
1.Ｄ+ (brown)
2.Ｄ- (red)3.NC (orange)
4.NC (yellow)
5.GND (green)

Next Camera 5P connecter(white)[RS-485]
1.Ｄ+ (brown)
2.Ｄ- (red)3.NC (orange)
4.NC (yellow)
5.GND (green)

2. UART Protocol
Transmission mode
Baud rate:
Start bit:
Data bit:
Parity:Stop bit:

Asynchronous half duplex
9600
18None1

3. Command Packet
Every command is composed of six bytes; the packet format is described as below..
Byte 1
Receiver ID

Byte 2Transmitter ID

Byte 3
OP CodeByte 4
Data 0

Byte5
Data 1

Byte 6Check Sum

The first byte is the Receiver or ‘Destination’ device ID.
The second byte is the Transmitter or ‘Source’ device ID.
The third byte is the OP code or ‘command’ byte.
The fourth and fifth bytes are the data byte.
The sixth byte is the check sum of this command packet.
Checksum = Byte1 XOR Byte2 XOR Byte3 XOR Byte4 XOR Byte5(XOR= exclusive or)

4. Communication Setting
Please change setting to show below from an IR controller.
CAUTION: Communication is not possible when setting is changed via RS -485.
OSD(On Screen Display) MENU<UART>PROTOCOL
MODE1 (Factory Settings:MODE1)CAMERA ID
1to223 (Factory Settings:1)
TERMINATE
ON/OFF (Factory Settings:OFF)
BAUD RATE
9600 (Factory Settings:9600)
WAIT TIME
1ms to 5ms (Factory Settings:5ms)[Protocol][ID-address][Terminating Resistance][Baud Rate][Acknowledge Delay Time]COMMAND LIST for PTC-1000

Ver1.02
2007/11/16

COMMAND LIST

CommandSetZoom

CommandStopTele
WideSpeed
Speed(Request)Lens Position

Packet
ID 00 24 04 00 cs
ID 00 24 01 00 cs
ID 00 24 00 00 cs
ID 00 24 03 pq cs
ID 00 24 05 00 cs
ID 00 27 pq rs cs

Packet Reply
00 ID 24 04 00 cs
00 ID 24 01 00 cs
00 ID 24 00 00 cs
00 ID 24 03 pq cs
00 ID 24 05 pq cs
00 ID 27 pq rs cs

Comments

pq:Speed parameter 00h(Slow) to 03h(Fast), 0Fh:OSD SETTING
pq:Speed parameter 00h(Slow) to 03h(Fast), 0Fh:OSD SETTING

pq:High Address rs:Low Address (W-0000h T-7C00h)
0000h to 4000h:Optical Erea, 4001h to 7C00h:Electoronic Erea

Lens Position(Request) ID 00 20 01 00 cs

00 ID 20 pq rs cs

pq:High Address rs:Low Address (W-0000h T-7C00h)
0000h to 4000h:Optical Erea, 4001h to 7C00h:Electoronic Erea

Electronic Zoom Off ID 00 2E 00 00 cs
Electronic Zoom Max ID 00 2E 01 pq cs

00 ID 2E 00 00 cs
00 ID 2E 01 pq cs

Electronic Zoom Max ID 00 2E 03 00 cs

00 ID 2E 03 pq cs

pq: Electronic Zoom Max Magnification 01h(x1.5),02h(x2),03h(x2.5),04h(x3),05h(x4),06h(x6),07h(x8),08h(x16)

Focus

Iris

Pan-tiltDrive(Manual)Pan-tiltDrive(Step)

Pan-tiltDrive(Absolute)

AutoFlip(Request)
StopFarNearAuto*1 Far(Manual)*1 Near(Manual)*1 Auto / Manual

pq: Electronic Zoom Max Magnification 00h(OFF),01h(x1.5),02h(x2),03h(x2.5),04h(x3),05h(x4),06h(x6),07h(x8),08h(x16)

ID 00 25 04 00 cs
ID 00 25 06 pq cs
ID 00 25 05 pq cs
ID 00 26 03 00 cs
ID 00 25 01 pq cs
ID 00 25 00 pq cs
ID 00 26 00 00 cs
Lens Position(Request) ID 00 20 02 00 cs

00 ID 25 04 00 cs00 ID 25 06 pq cs
00 ID 25 05 pq cs
00 ID 26 03 00 cs
00 ID 25 01 pq cs
00 ID 25 00 pq cs
00 ID 26 00 00 cs
00 ID 20 pq rs cs

CloseOpenID 00 23 03 00 cs
ID 00 23 02 00 cs
Normal(standard) ID 00 23 04 00 cs
Right
ID 00 18 00 pq cs
Left
ID 00 18 01 pq cs
Pan Stop
ID 00 13 00 00 cs
Up
ID 00 18 02 pq cs
Down
ID 00 18 03 pq cs
Tilt Stop
ID 00 14 00 00 cs
Right
ID 00 4E 00 pq cs
Left
ID 00 4E 01 pq cs
UpID 00 4E 02 pq cs
Down
ID 00 4E 03 pq cs
PanID 00 07 pq rs cs
Tilt
ID 00 08 pq rs cs
Pan(Request)
ID 00 09 00 00 cs
Tilt(Request)
ID 00 0A 00 00 cs

00 ID 23 03 00 cs
00 ID 23 02 00 cs
00 ID 23 04 00 cs
00 ID 18 00 pq cs
00 ID 18 01 pq cs
00 ID 13 00 00 cs
00 ID 18 02 pq cs
00 ID 18 03 pq cs
00 ID 14 00 00 cs
00 ID 4E 00 pq cs
00 ID 4E 01 pq cs
00 ID 4E 02 pq cs
00 ID 4E 03 pq cs
00 ID 07 pq rs cs
00 ID 08 pq rs cs
00 ID 09 pq rs cs
00 ID 0A pq rs cs

Angle

ID 00 18 04 pq cs

00 ID 18 04 pq cs

ID 00 18 15 00 cs

00 ID 18 15 pq cs

ID 00 11 02 00 cs
ID 00 1C 00 00 cs
ID 00 1C 01 00 cs
ID 00 1C 02 pq cs
ID 00 1C 03 pq cs
ID 00 1C 04 pq cs

00 ID 11 02 00 cs
00 ID 1C 00 00 cs
00 ID 1C 01 00 cs
00 ID 1C 02 pq cs
00 ID 1C 03 pq cs
00 ID 1C 04 pq cs

Direction(Request) ID 00 1C 12 00 cs

00 ID 1C 12 pq cs
00 ID 1C 13 pq cs
00 ID 1C 14 pq cs

pq:Speed parameter 00h(Slow) 01h(Fast), 0Fh:OSD SETTING
pq:Speed parameter 00h(Slow) 01h(Fast), 0Fh:OSD SETTING
pq:Speed parameter 00h(Slow) 01h(Fast), 0Fh:OSD SETTING
pq:Speed parameter 00h(Slow) 01h(Fast), 0Fh:OSD SETTINGToggle
pq:High Address rs:Low Address(F-1000h N-B800h(@NEAR LIMIT=0.2m))

pq:Speed parameter 00h(Slow)to 0Fh(Fast), 16 steps

10h(Auto Speed)

pq:Degree parameter
1step=1.0125°

00h~ 0Fh 15 steps

pq:High Address rs:Low Address (Absolute Position)

Pan:0000h ~ 31FFh<12799d>
Tilt:Dome-off:0000h ~ 1D95h<7573d>
Dome-on:0496h<1174d> ~ 1900h<6400d>
pq: 00h(off), 01h(100deg),02h(110deg),03h(120deg),04h(130deg),
05h(140deg),06h(150deg),07h(160deg),08h(170deg),09h(180deg)

AutoPan*1 Angle(Request)
Run AutoPan
Set Start Point
Set End Point
Direction
Speed*1 Dwell

pq: 00h(off), 01h(100deg),02h(110deg),03h(120deg),04h(130deg),
05h(140deg),06h(150deg),07h(160deg),08h(170deg),09h(180deg)

Speed(Request) ID 00 1C 13 00 cs*1 Dwell(Request) ID 00 1C 14 00 cs

pq:00h=Right, 01h=Leftpq:00h(slow) to 07h(fast)
pq: Dwell Time 00h(0s),01h(1s),02h(1s),03h(5s)04h(10s),05h(20s),06h(30s)
pq:00h=Right, 01h=Left
pq:00h(slow) to 07h(fast)
pq: Dwell Time 00h(0s),01h(1s),02h(2s),03h(3s)04h(5s),05h(10s),06h(20s),07h(30s)Sequence

Run Sequence N ID 00 11 01 pq cs
Preset
ID 00 19 pq rs cs

00 ID 11 01 pq cs
00 ID 19 pq rs cs

Dwell00 ID 1A pq rs cs

ID 00 1A pq rs cs

pq: Sequence Line 00h(Line1) to 03h(Line4) 4lines
pq: bit7 to 5=Sequence Line 0(Line1) to 3(Line4)
bit4 to 0=Sequence number 0(No.1) to 31(No.32)
rs: Preset Number 00h(Preset1) to FEh(Preset255) ,FFh(Sequnce Number Disable)
pq: bit7 to 5=Sequence Line 0(Line1) to 3(Line4)
bit4 to 0=Sequence number 0(No.1) to 31(No.32)
rs: Dwell Time 02h(2s),04h(3s),06h(5s),08h(10s),0Ah(30s)0Ch(1min),0Eh(2min),10h(3min),12h(4min),14h(5min),Speed

ID 00 1B pq rs cs

00 ID 1B pq rs cs

ID 00 12 00 00 cs
ID 00 11 00 pq cs
ID 00 11 03 pq cs
ID 00 1D 00 pq cs
ID 00 1D 01 pq cs
ID 00 49 02 00 cs
ID 00 15 AA 55 cs
Go to Alarm Point ID 00 10 00 pq cs
Alarm Point Set ID 00 AD pq rs cs

00 ID 12 00 00 cs
00 ID 11 00 pq cs
00 ID 11 03 pq cs
00 ID 1D 00 pq cs
00 ID 1D 01 pq cs
00 ID 49 02 00 cs
00 ID 15 AA 55 cs
00 ID 10 00 pq cs
00 ID AD pq rs csSequence & AutoPan Stop

PresetAlarm

Go to Preset N
Go to Preset N
Memory N
Clear N
Home/OSDReset00h(Sequnce Number Disable)
pq: bit7 to 5=Sequence Line 0(Line1) to 3(Line4)
bit4 to 0=Sequence number 0(No.1) to 31(No.32)
rs: Speed 00h(Slow) to 07h(Fast) ,FFh(Sequnce Number Disable)
Sequence & AutoPan Stop
pq: Preset number 00h(Position1) to FEh(Position255) 255Positions
pq: Preset number 00h(Position1) to FEh(Position255) 255Positions
pq: Preset number 00h(Position1) to FEh(Position255) 255Positions
pq: Preset number 00h(Position1) to FEh(Position255) 255Positions

Home/OSD Bothpq: Alarm number 00h(Alarm1) to 07h(Alarm8)
pq: Alarm number 00h(Alarm1) to 07h(Alarm8)
rs: Preset number 00h(Position0) to FFh(Position255) 256Positions

Alarm Point(Request)
Alarm Status(Request)
Camera Display Title*1 Select(Request)

ID 00 10 02 pq cs

00 ID 10 02 rs cs

pq: Alarm number 00h(Alarm1) to 07h(Alarm8)
rs: Preset number 00h(Position0) to FFh(Position255) 256Positions

ID 00 10 03 pq cs

00 ID 10 03 rs cs

ID 00 4C 01 pq cs
ID 00 4C 02 pq cs
ID 00 4D 00 00 cs

00 ID 4C 01 pq cs
00 ID 4C 02 pq cs
00 ID 4D pq rs cs

pq: Alarm number 00h(Alarm1) to 07h(Alarm8)
rs: Alarm Status 00h=Off, 01h=On
pq: Title 00h=Off, 01h=On
pq: Select 00h=Preset, 01h=Camera
pq:bit1=Title(0:Off ,1:On),bit2=Select(0:Camera ,1:Preset )bit0,3 to 7=N/A(always 0)
rs:bit0 to 7=N/A(always 0)
ICR

OffOn
Auto
*1 Threshold*1 Wavelength
OSD Control
Up
Down
Left
RightStop
MENU
System Device(Request)
Communication Acknowledge
Device Capability (Request)

ID 00 48 00 00 cs
ID 00 48 01 00 cs
ID 00 48 02 00 cs
ID 00 48 04 pq cs
ID 00 48 05 pq cs
ID 00 28 00 00 cs
ID 00 28 01 00 cs
ID 00 28 02 00 cs
ID 00 28 03 00 cs
ID 00 28 FF 00 cs
ID 00 28 04 00 cs
ID 00 00 00 00 cs
ID 00 84 pq 00 cs
ID 00 4A 00 00 cs

00 ID 48 00 00 cs
00 ID 48 01 00 cs
00 ID 48 02 00 cs
00 ID 48 04 pq cs
00 ID 48 05 pq cs
00 ID 28 00 00 cs
00 ID 28 01 00 cs
00 ID 28 02 00 cs
00 ID 28 03 00 cs
00 ID 28 FF 00 cs
00 ID 28 04 00 cs
00 ID 00 pq rs cs
00 ID 84 pq 00 cs
00 ID 4A pq 00 cs

pq:00h(Insensitive) to 0Fh(Sensitive)
pq:00h=Visible Ray,01h:850nm,02h:950nm
Up key pushDown key push
Left key push
Right key push
key pull
MENU key push
pq:00h=Camera,01h=Multiplexer rs=60h:PTC-1000

pq: 00h:Enable, 01h:Disable
pq:bit0=Cruise(0:non-supported ),bit1=Pan/Tilt(0:supported )bit2=Zoom(0:supported), bit3=OSDmenu(0:supported )bit4=DeviceLock(1:supported ),bit5=Home(1:supported )bit6=0,bit7=0
Camera Status(Request)

ID 00 01 00 00 cs

00 ID 01 pq rs cs

PTC-1000=30h(defalut)

pq: bit0=Pan busy(0:free ,1:busy), bit1=Tilt busy(0:free ,1:busy)

bit2 to 4, 7=N/A(always 0),
bit5,6=Pan/Tilt Install Direction(always 1)
rs: bit0=OSDmenu(0:off,1:on), bit1=AF(0:manu,1:auto)

bit2=OSD operation(0:pan/tilt,1:OSD operation)
bit3 to 7=N/A(always 0)
Camera Status 1 (Request)

ID 00 20 00 00 cs

00 ID 20 pq rs cs

pq: bit1=Electronic Zoom(0:off,1:on), bit2=OnePush AF(0:not OnePush,1:OnePush)

bit3=Flickerless(0:off,1:on), bit4=BLC(0:off,1:on)
bit5=WB AWC(0:off,1:on), bit7=Focus Mode(0:AF,1:manual)

bit0,6=N/A(always 0)
rs: bit1=Electronic Zoom(0:off,1:on), bit2=OnePush AF(0:not OnePush,1:OnePush)

bit0,3to7=N/A(always 0)

Camera Version (Request)*1

ID 00 02 00 00 cs

On/Off(Request)
Ena/DisID 00 82 pq 00 cs
ID 00 82 02 00 cs
ID 00 03 pq 00 cs

00 ID 82 pq 00 cs
00 ID 82 02 pq cs
00 ID 03 pq 00 cs

Sequence Request (Request)

ID 00 03 pq rs cs

00 ID 03 pq rs cs

Power
Power Status

IR Remote

00 ID pq rs tu cs

pq:Cam CPU Version, rs:PT CPU Version, tu:Main CPU Version,pq,rs,tu:7-5bit = Major Version, 4-0bit = Minor Version21h = Version 1.01, FFh = Version 8.31
pq: 00h:off,01h:on
pq: 00h:on,01h:off
pq: 00h:Enable,01h:Disable*1*2

pq: 4*n + X0h
n: Sequence number 0(No.1) to 31(No.32)
X: Sequence Line line1,3=0, Sequence Line line2,4=8

rs: 04h + Y
Y: Sequence Line line1,2=0, Sequence Line line3,4=1

Sequence Setting (Request)*2

ID 00 04 01 04 cs

00 ID 04 01 04 cs

Alarm Notice

00 00 80 pq rs cs

tu F0 A0 30 vw cs

PTC-1000 Send Command*2<the following communication process>controller: ID 00 03 pq rs cs(Sequence Request Command)
PTC-1000: 00 ID 03 pq rs cs
controller: ID 00 04 01 04 cs
PTC-1000: 00 ID 04 01 pq cs (pq=Dwell Setting)controller: ID 00 04 01 04 cs
PTC-1000: 00 ID 04 01 pq cs (pq=Speed Setting)controller: ID 00 04 01 04 cs
PTC-1000: 00 ID 04 01 pq cs (pq=Speed Setting)controller: ID 00 04 01 04 cs
PTC-1000: 00 ID 04 01 pq cs (pq=Preset Number)This command is sent from PTC-1000.
pq: CAMERA ID 1 to 223
r: Alarm Push/Pull status 0=Push, 8=Pulls: Alarm Number 0(Alarm1) to 7(Alarm8),8(Motion Detector)

tu: 0xE0 + (pq / 0x10)
vw: ASCII Character CODE of Decimal(pq & 0x0F)
Exp. vw = 0x31(@pq = 0x01), vw = 0x47(@pq = 0x10),vw = 0x31(@pq = 0x11), vw = 0x47(@pq = 0x20)*1 = Private Command*2 = Confidential Command
cs=CheckSum(Byte1~5:XOR)