Panasonic WJHD200 WJHD200 User Guide - Page 82

RS-232C Communication Protocol, Transmission Command, Response Command

Page 82 highlights

I RS-232C Communication Protocol The following pages detail the elements for communication between the Digital Disk Recorder and the personal computer. Be sure to select RS-232C for PROTOCOL in the COMMUNICATION SETUP window. For BAUD RATE, DATA BIT and PARITY settings, refer to COMMUNICATION SETUP. For cable connection refer to RS-232C CONNECTION. 1. Transmission Command The PC sends messages to the Recorder in the format shown below. Also refer to the command table shown later. Code ASCII [STX] [Transmission Command] : [p1] : [p2] : : [pn] [ETX] (02H 03H) [p] stands for parameter. Parameters are omitted when there is no need to specify them in the command. 2. Response Command The Recorder returns messages in reply to the PC's messages with the following formats. (1) Reception Command When the reception was completed successfully, the Recorder sends back the "ACK code 06H" to the PC, and then the response command below. Code ASCII [STX] [Response Command] : [p1] : [p2] : : [pn] [ETX] (02H 03H) Parameters are omitted when the command format includes neither data nor status to send back. (2) Reception error The recorder sends back the "NAK code 15H", followed by the parameters shown below. The Recorder then resets the reception buffer and enters waiting mode for the next message. Parameter "e" identifies the error status. Code ASCII [NAK] [e] (15H) "e" value 1: Parity error (31H) 2: Framing error (33H) 3: Overrun error (34H) (3) Parameter error The Recorder returns the "ACK code 06H", if the transmission code was not processed properly for some reason, followed by an error code as shown below. Code ASCII [STX] ERE [ETX] (02H) (45H) (03H) Note: The Recorder returns [ACK] or [NAK] to the PC within 20 ms after the reception of [ETX] in a transmission. 82

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94

82
RS-232C Communication Protocol
The following pages detail the elements for communication between the Digital Disk Recorder and the personal computer. Be
sure to select RS-232C for PROTOCOL in the COMMUNICATION SETUP window. For BAUD RATE, DATA BIT and PARITY set-
tings, refer to COMMUNICATION SETUP. For cable connection refer to RS-232C CONNECTION.
1. Transmission Command
The PC sends messages to the Recorder in the format shown below. Also refer to the command table shown later.
[p] stands for parameter. Parameters are omitted when there is no need to specify them in the command.
2. Response Command
The Recorder returns messages in reply to the PC
s messages with the following formats.
(1)
Reception Command
When the reception was completed successfully, the Recorder sends back the "ACK code 06H" to the PC, and then the
response command below.
Parameters are omitted when the command format includes neither data nor status to send back.
(2)
Reception error
The recorder sends back the "NAK code 15H", followed by the parameters shown below. The Recorder then resets the
reception buffer and enters waiting mode for the next message. Parameter "e" identifies the error status.
"e" value
1: Parity error (31H)
2: Framing error (33H)
3: Overrun error (34H)
(3)
Parameter error
The Recorder returns the "ACK code 06H", if the transmission code was not processed properly for some reason, followed
by an error code as shown below.
Note:
The Recorder returns [ACK] or [NAK] to the PC within 20 ms after the reception of [ETX] in a transmission.
[STX]
ERE
[ETX]
Code
Code
Code
(02H)
(
)
(
)
(03H)
[STX]
[Transmission Command] : [p1] : [p2] :
: [pn]
[ETX]
ASCII
(02H)
(
)
(
)
(03H)
[STX]
[Response Command] : [p1] : [p2] :
: [pn]
[ETX]
ASCII
[NAK]
[e]
ASCII
(15H)
Code
(02H)
(45H)
(03H)
ASCII