Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 16 of 20

Bar Code Handy Terminal BHT-6000 User's Manual: Chapter 3 Communications Operations of BHT-6000, pages 126 to 135

Pages 126 to 135 of 178, from Bar Code Handy Terminal BHT-6000 User's Manual

The original document is the PDF (973 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the NipponDenso CU-6002 and Denso CU-6002

Page 126

Chapter 3. Communications Operations of BHT-6000

■ Phase 2 with suspension of data reception for erasure of the flash ROM If the receiving BHT-6000 requires the flash ROM to be erased for receiving downloaded files, it sends a sequence of WACK and IDs to the sending station to suspend the data transmission. Upon receipt of the sequence of WACK and IDs, the sending station stops the data transmission until any response comes from the receiving station for one minute. If no response comes within one minute, the sending station sends a sequence of DLE EOT and IDs and then aborts the current transmission.

Sending station

Heading text

Receiving station

WACK and IDs

Start of erasure

DLE ACK and IDs

End of erasure

Data text #1 DLE ACK and IDs

111

Page 127

■ Phase 2 with a sequence of DLE NAK and IDs If the sending station receives a sequence of DLE NAK and IDs from the receiving station in response to a transmission block containing text data m, it sends that transmission block again immediately as shown below. If the sending station receives a sequence of DLE ACK and IDs before receiving the sequence of DLE NAK and IDs 10 times in succession, it continues the subsequent message transmission. Sending station

Data text m

Receiving station

DLE NAK and IDs

Data text m DLE NAK and IDs

Data text m DLE ACK and IDs

Data text m+1

If the sending station receives a sequence of DLE NAK and IDs 10 times in succession or it fails to send a same transmission block, it shifts to phase 3 to terminate the message transmission abnormally. Even if the phase 3 terminates normally, the transmission results in an abnormal end. Sending station

Data text m(1) DLE NAK and IDs

Data text m(2) DLE NAK and IDs

Data text m(10) DLE NAK and IDs

Occurrence of an error To phase 3.

112

Receiving station

Page 128

Chapter 3. Communications Operations of BHT-6000

■ Phase 2 with a sequence of DLE EOT and IDs If the sending station receives a sequence of DLE EOT and IDs anytime during phase 2, it shifts to phase 3 to terminate the message transmission abnormally. Even if the phase 3 terminates normally, the transmission results in an abnormal end. Sending station

Receiving station DLE EOT and IDs

Occurrence of an error To phase 3.

■ Phase 2 with iterated transmission of DLE ENQ and IDs due to no response or invalid response If the sending station receives no response or any invalid response from the receiving station in response to a transmission block sent, it iterates sending of a sequence of DLE ENQ and IDs at 0.5-second intervals up to 59 times. If the sending station receives a sequence of DLE ACK and IDs before sending the sequence of DLE ENQ and IDs 59 times, it continues the subsequent message transmission. Sending station 0.5 second 0.5 second

Data text m DLE ENQ and IDs DLE ENQ and IDs DLE ACK and IDs

Data text m+1

113

Receiving station

Page 129

■ Abnormal termination of phase 2 (Abort of phase 2) If the sending station receives no sequence of DLE ACK and IDs from the receiving station after sending a sequence of DLE ENQ and IDs 59 times in succession, it sends a sequence of DLE EOT and IDs to the receiving station after 0.5 second from the 59th sequence of DLE ENQ and IDs and then aborts this transmission abnormally. Sending station 0.5 second

0.5 second

Receiving station

DLE ENQ and IDs (1) DLE ENQ and IDs (2)

DLE ENQ and IDs (59) 0.5 second

DLE EOT and IDs

Abnormal termination

Phase 3: Release of Data Link ■ Normal phase 3 The sending station transmits a sequence of DLE EOT and IDs to the receiving station. Upon receipt of a sequence of DLE ACK and IDs from the receiving station, the sending station terminates the message transmission normally and releases the data link.

Sending station

DLE EOT and IDs

DLE ACK and IDs

Normal termination

114

Receiving station

Page 130

Chapter 3. Communications Operations of BHT-6000

■ Phase 3 with iterated transmission of DLE EOT and IDs due to no response or invalid response If the sending station receives no response or any invalid response from the receiving station in response to the sent sequence of DLE EOT and IDs, it iterates sending of the sequence at 0.5-second intervals up to 60 times. If the sending station receives a sequence of DLE ACK and IDs before sending the sequence of DLE EOT and IDs 60 times, it terminates the message transmission normally and releases the data link. Sending station

DLE EOT and IDs (1)

0.5 second

DLE EOT and IDs (2)

0.5 second

DLE EOT and IDs (3)

Receiving station

DLE ACK and IDs

Normal termination

■ Abnormal termination of phase 3 If the sending station receives no sequence of DLE ACK and IDs from the receiving station within 0.5 second from the 60th sequence of DLE EOT and IDs, it aborts the message transmission abnormally and releases the data link.

Sending station

DLE EOT and IDs (1)

0.5 second

DLE EOT and IDs (2)

0.5 second

DLE EOT and IDs (3)

DLE EOT and IDs (60) 0.5 second

Abnormal termination

115

Receiving station

Page 131

■ Phase 3 with timeout at the receiving station If the receiving station receives no subsequent text or normal sequence of DLE EOT and IDs within 30 seconds after sending a sequence of DLE ACK and IDs, it sends a sequence of DLE EOT and IDs and aborts the transmission abnormally. Sending station

Data text #n

Receiving station

DLE ACK and IDs 30 seconds DLE EOT and IDs

Abnormal termination

[ 5 ] Aborting Data Transmission Pressing the C key aborts data transmission. If the C key is pressed during downloading, the BHT-6000 transmits a sequence of DLE EOT and IDs and aborts the file transmission. If it is pressed during uploading, the BHT-6000 transmits the current transmission block followed by a sequence of DLE EOT and IDs and then aborts the file transmission.

116

Page 132

Chapter 3. Communications Operations of BHT-6000

[ 6 ] CRC To check whether data has been transmitted accurately, the BHT-Ir protocol supports CRC (Cyclic Redundancy Check) which employs the CRC-16 generating system. In CRC, a CRC character is suffixed to a sequence of DLE ETX of every transmission block.

Operands for CRC-16 The CRC generates CRC-16 from all bytes of a transmission block excluding DLE SOH or DLE STX characters (which are at the head of a transmission block), DLE character of DLE ETX and DLE character of DLE DLE in the text.

CRC operation The CRC system generates CRC-16 as follows: It multiplies the polynomial formed by aligning all of the bits starting from the LSD of the first byte to the MSD of the last byte in a transmission block in descending order, by X16. Next, divide the polynomial by the generative polynomial X16 + X15 + X2 + 1. The remainder is the value of CRC-16. Shown below is a data text transmission block and operands for CRC-16 generation.

S D L • T X E

I

Serial number

D

Data text

D

E

L • T X E

C R C

Operands Operand

[ 7 ] ID ID is a 2-digit hexadecimal and designated in 0000h through FFFFh in (2 bytes). 0000h is assigned to the host computer. Any of 0001h through FFFFh is assigned to the BHT6000 as follows. • The system sets an ID when the BHT-6000 is initialized. • You may set an arbitrary ID in System Mode or by using the OUT statement in BHT-BASIC 3.0.

117

Page 133

[ 8 ] Text Format Text should be formatted according to the standard of the BHT-Ir protocol before transmission. Shown below are two types of the standard text formats for program files and data files.

■ Program Text Format (1) Heading text Byte position

1

2 3

4

5

6

7 8

9 10 11 12 13 14 15 16 17 Number of data texts contained (5 bytes)

Program file name (12 bytes) Example of contents

P R O G 1 .

P D 3

The program file name should be a maximum of 12 characters in length and it consists of FILE NAME and .EXTENSION. The FILE NAME should be 1 to 8 characters. The EXTENSION should be .PD3 or .FN3 (.EX3 may be available for future functional expansion).

0

0 3

If the program file name is less than 12 characters in length, the lower blank bytes will be filled with space characters.

5 2

The number of data texts should be 0 to 32767. If it is less than 5 digits, the upper blank bytes will be filled with zeros (0).

(2) Data text 128 or 130 Byte position

1

2

3 4 128 bytes if extension is .PD3; 130 bytes if it is .FN3 or .EX3.

Program data

0 D 0 A 0 0 0

Example of contents

Object file (compiled from a source program file having one of the extensions .PD3, .FN3, and .EX3.)

118

0 0 0

If a program data field is less than the maximum digits in length, the lower blank bytes will be filled with zeros (0).

Page 134

Chapter 3. Communications Operations of BHT-6000

■ Data Text Format (1) Heading text Number of fields (2 bytes) Length of data field 1 (3 bytes) Byte position

1

2

3

4

5

6

7

8

9 10 11 12 13 14 15 16 17 18 19 20 21 22 Number of data texts contained (5 bytes)

Data file name (12 bytes) Example of contents

M A

S

T

E

R

.

Length of data field n (3 bytes)

D

A

T

0

0

5

9

2 n

The number of data texts should be 0 to 32767. If it is less than 5 digits, the upper blank bytes will be filled with zeros (0).

0

0

6

2

5

4

Every data field should be 1 to 254 digits in length. If it is less than 3 digits, the upper blank bytes will be filled with zeros (0).

The number of fields should be 1 to 16. If it is less than 2 digits, the upper blank byte will be filled with zero (0). The data file name should be a maximum of 12 characters in length and it consists of FILE NAME and .EXTENSION. The FILE NAME should be 1 to 8 characters. The EXTENSION should be other than .PD3, .FN3, and .EX3, and it may be omitted (together with a period).

If the data file name is less than 12 characters in length, the lower blank bytes will be filled with space characters.

(2) Data text

Data field 1 Example of contents

Data field 2

T 1 0 0 9 1 S 1 2 3

Every data field should be 1 to 254 digits in length.

NOTE

Data field n

9 2 0 2 1 4 1 3 2 5

If a data field is less than the maximum digits in length, the lower blank bytes will be filled with space characters.

The total length of all data fields plus the number of the character count bytes (= the number of the fields) should be 255 bytes or less. When you transfer five 50-digit (50-byte) fields, for example, the total length of all data fields is 250 (50 x 5) bytes and the number of the character count bytes is 5. Accordingly, the total is 255, so you can transfer the file.

119

Page 135

120