Nyx5800 - Software IDD.V1.03 (1) - 1
Nyx5800 - Software IDD.V1.03 (1) - 1
D e s c r i p t i o n D o c u m e n t ( I DD )
N o v e m b e r 7 , 11
D o c u m e n t N u m b e r : d h - 1 0 0 - 11
Ve r s i o n 1 . 0 3
Table of Contents
1. Document ....................................................................................................................................... 3
1.1. Revision History ........................................................................................................................ 3
2. Acronyms / Abbreviations ............................................................................................................ 3
3. Serial Communications Protocol.................................................................................................. 3
3.1 Port Settings ............................................................................................................................... 3
4. Packet Protocol .............................................................................................................................. 3
4.1 Base Packet Protocol ................................................................................................................. 4
4.2 Base Serial Command List ....................................................................................................... 6
4.3 Extend Packet Protocol ........................................................................................................... 10
4.4 Extend Serial Command List ................................................................................................. 11
5. Application demonstration ......................................................................................................... 13
5.1 Base Packet Protocol ............................................................................................................... 13
5.2 Extend Packet Protocol ........................................................................................................... 13
6. Summarized Command Lists ..................................................................................................... 13
2/14
1. Document
1.1. Revision History
Rev.# Date Comments
1.01 11/01/2015 Initial Release.
1.02 05/08/2017 Add new image Command.
1.03 Add new command and example.
08/11/2018
Add timeout for the given commands.
2. Acronyms / Abbreviations
AGC Automatic Gain Control
CCITT Commite' Consultatif International de Telegraphique et Telephonique. (International
consultative committee on telecommunications and Telegraphy)
CRC Cyclic Redundancy Check
FFC Flat Field Correction
FPA Focal Plane Array
FW Firmware
IDD Interface Description Drawing / Document
LSB Least Significant Bit
MSB Most Significant Bit
ROI Region of Interest
SW Software
TBD To Be Determined
4. Packet Protocol
All incoming and reply messages shall adhere to the packet protocol defined in 4.2 and the subparagraphs
3/14
that follow.
4.1 Base Packet Protocol
Table 4-1
BYTE# Upper Byte Comments
1 Process Code Set to 0x6E on all valid incoming and reply messages
2 Status See 4.1.1
3 Reserved reserved
4 Function See 4.1.2
5 Byte Count (MSB) See 4.1.3
6 Byte Count (LSB) See 4.1.3
7 CRC1 (MSB) See 4.1.4
8 CRC1 (LSB) See 4.1.4
N Argument See 4.1.5
N+1 CRC2 (MSB) See 4.1.4
N+2 CRC2 (LSB) See 4.1.4
4/14
0x14 CAM_ALGORITHM_ERROR Algorithm error
0x15 CAM_MEMORY_ERROR Memory error
5/14
4.1.5 Argument Bytes
The argument bytes (also called data bytes) are used to encode the argument of a message packet. The
number of argument bytes is typically a positive integer. See Command List for the argument definition for
each message. Two’s-complement numbering is used for all signed values. Big-endian ordering is
employed:
Byte 0, Byte 1, Byte 2, etc.
1)Default
COMMAND FUCTION Byte Count Argument Description
SET 0x01 cmd:0 Sets all current
None settings as power-on
DEFAULTS reply:0
defaults
2) Reset
COMMAND FUCTION Byte Count Argument Description
RESET 0x02 cmd:0
None Sets camera
reply:0 reset/reboot
4) Serial Number
COMMAND FUCTION Byte Count Argument Description
Bytes 0-31: Camera
SERIAL cmd:0 serial number Gets the serial
0x04 number of the
NUMBER reply:64 Bytes 32-63: Sensor
camera and sensor
serial number
5) Version
COMMAND FUCTION Byte Count Argument Description
Bytes 0-31: SW version
GET cmd:0
0x05 Bytes 32-63: FW Gets the firmware /
VERSION reply:64 software version
version
6/14
6) Baud Rate
COMMAND FUCTION Byte Count Argument Description
get cmd:0 Gets the Baud Rate
None
reply:2
0x0000: Auto baud Set the Baud Rate
0x0001: 9600 baud
BAUD
0x07 0x0002: 19200 baud
RATE set cmd:2
0x0004: 57600 baud
reply:2
0x0005: 115200 baud
0x0006: 460800 baud
0x0007: 921600 baud
7) Gain Mode
COMMAND FUCTION Byte Count Argument Description
Gets the
get cmd:0
None dynamic-range-contr
reply:2 ol mode
GAIN
0x0a 0x0001 = Low Gain sets the
MODE dynamic-range-contr
set cmd:2 Only
ol mode
reply:2 0x0002 = High Gain
Only
8) FFC Mode
COMMAND FUCTION Byte Count Argument Description
get cmd:0 Gets the FFC mode
None
reply:2
FFC MODE 0x0b
set cmd:2 0x0000 = Manual Sets the FFC mode
reply:2 0x0001 = Automatic
9) Do FFC
COMMAND FUCTION Byte Count Argument Description
get cmd:0 a short FFC is
Do FFC 0x0c None executed.
reply:0
7/14
Set Cmd:2 Set FFC interval for
Bytes 0-1: FFC interval current gain state
& Reply: 2
Set Cmd:4 Bytes 0-1: reserved Set FFC interval for
all state
& Reply: 4 Bytes 2-3: FFC interval
8/14
0x000a-icefire
0x000b-rain
0x000c-redhot
0x000d-greenhot
0x000f-spring
0x0010-summer
0x0011-autumn
0x0012-winter
9/14
& Reply: 2 Range:0 to 4095
19) Brightness
COMMAND FUCTION Byte Count Argument Description
Get Cmd: 0 Get brightness
none
(Reply: 2)
BRIGHTNE
0x55 Bytes 0-1: brightness Set brightness
SS Set Cmd: 2
value
& Reply: 2
Range: 0 to 255
20) Sharpness
COMMAND FUCTION Byte Count Argument Description
Get Cmd: 0 Get sharpness
none
(Reply: 2)
SHARPNES
0xe3 Bytes 0-1: sharpness Set sharpness
S Set Cmd: 2
value
& Reply: 2
Range: -20 to 100
10/14
Table 4-1
BYTE# Upper Byte Comments
1 Process Code 0x6E
2 Status See 4.1.1
3 Reserved reserved
4 Function 0x00
5 Byte Count (MSB) See 4.1.3
6 Byte Count (LSB) See 4.1.3
7 CRC1 (MSB) See 4.1.4
8 CRC1 (LSB) See 4.1.4
BYTE# Argument below
9 DHSCP Function See 4.3.1
N DHSCP Argument See 4.3.2
N+1 CRC2 (MSB) See 4.1.4
N+2 CRC2 (LSB) See 4.1.4
2) 3D de-noise
COMMAND DHSCP Description
Byte Count Argument
Function
3D 0x04 Get Cmd: 0 none Get 3D level
11/14
(Reply: 2)
Set Cmd: 2 Bytes 0-1: 3D level Set 3D level
& Reply: 2 Range: 0 to 100
3) Scene Mode
COMMAND DHSCP Description
Byte Count Argument
Function
Get Cmd: 0 Get Scene mode
none
(Reply: 2)
byte0~1: Set Scene mode
SCENE
0x2a 0x0000:low dynamic
MODE Set Cmd: 2
0x0001:high dynamic
& Reply: 2
0x0002 : adaptive
dynamic
4) Contrast
COMMAND DHSCP Description
Byte Count Argument
Function
CONTRAST 0x2d Get Cmd: 0 Get Contrast
none
(Reply: 2)
Bytes 0-1: Contrast Set Contrast
Set Cmd: 2
level
& Reply: 2
Range: 0 to 100
5) Detail Enhancement
COMMAND DHSCP Description
Byte Count Argument
Function
Detail 0x2c Get Detail
Get Cmd: 0
Enhancement none Enhancement
(Reply: 2)
6) histogram equalization
COMMAND DHSCP Description
Byte Count Argument
Function
HISTOGRA 0x32 Get Cmd: 0 none Get histogram
12/14
M (Reply: 2) equalization
EQUALIZAT Set histogram
Set Cmd: 2 Bytes 0-1: level
ION equalization
& Reply: 2 Range: 0 to 32
5. Application demonstration
5.1 Base Packet Protocol
For example, get the housing temperature:
[COMMAND]
Process
Status Reserved Function Byte Count CRC1 Argument CRC2
Code
0x6E 0x00 0x00 0x20 0x00 0x02 0x79 0x3F 0x00 0x0a 0xa1 0x4a
[REPLY]
Process
Status Reserved Function Byte Count CRC1 Argument CRC2
Code
0x6E 0x00 0x00 0x20 0x00 0x02 0x79 0x3F 0x11 0x55 0x3a 0x12
[REPLY]
Process DHSCP DHSCP
Status Reserved Function Byte Count CRC1 CRC2
Code Function Argument
0x6E 0x00 0x00 0x00 0x00 0x03 0xef 0xd8 0x2d 0x00 0x32 0xd2 0x86
13/14
List of Camera basic setting commands:
Function Code COMMAND Cost Time(Max)
0x01 SET DEFAULTS 6s
0x02 SET RESET NA
RESTORE FACTORY 130ms
0x03
DEFAULTS
0x04 SERIAL NUMBER NA
0x05 GET VERSION 50ms
0x07 BAUD RATE NA
0x20 READ SENSOR 30ms
0x25 TEST PATTERN 30ms
0x0c DO FFC 4s
14/14