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 14 of 20

Bar Code Handy Terminal BHT-7000 User's Manual: Chapter 3 Communications Operations of BHT-7000, pages 110 to 118

Pages 110 to 118 of 175, from Bar Code Handy Terminal BHT-7000 User's Manual

The original document is the PDF (934 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 Denso BHT-7000

Page 110

[ 3 ] Basic Format of Transmission Messages Basically, the BHT-7000 transmits data as units of a file. First, it transmits a heading text which includes the attribute information of a file (e.g., file name and the number of data texts) to be transmitted. Following the heading text, it transmits the data text in the file. A heading text and data text comprise a text. In actual text transmission, the text is divided into several blocks, then a header and terminator are added to each block. If the serial number management or error checking by BCC (Block Check Character) is required, the serial number or BCC is also added to each block, respectively. This procedure forms a transmission block. A set of transmission blocks makes up one transmission message. Shown below is an example of a transmission message formed with the BHT-protocol.

Text

Heading text

S O H

Transmission Message

Data text 1

Data text 2

Heading text

Data text n

E T X

B C C

Transmission block

S T X

Serial number (5 bytes)

Data text 1

E T X

B C C

Transmission block

S T X

Serial number

Data text n

E T X

B C C

Transmission block

In the above figure, SOH, STX, and ETX are text control characters as described in [ 2 ] Control Characters, (2). A serial number is expressed by a five-digit decimal number, starting from 00001 to 32767, and identifies transmitted data texts. For the BCC, refer to Appendix B, B.1, "BHT-protocol," [ 3 ].

94

Page 111

Chapter 3. Communications Operations of BHT-7000

[ 4 ] Text Format Text should be formatted according to the standard of the BHT-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 (.FN3 and .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

Example of contents

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

95

0

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 112

■ Data Text Format (1) Heading text

Byte position

Number of fields (2 bytes) Length of data field 1 Length of data field n (2 bytes) (2 bytes)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 Number of data texts contained (5 bytes)

Data file name (12 bytes) Example of contents

M A S T E R

. D A T n

0 0 5 9 2

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).

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).

1 0

Every data field should be 1 to 254 digits in length. If it is less than 2 digits, the upper blank byte will be filled with zero (0). If a data field is 100 to 199 digits in length, @0 to I9 will be given; if it is 200 to 254 digits, P0 to U4 will be given. @ A B

20X 21X

...

...

...

...

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

0 6

18X 19X

H I

24X 25X

T U

10X 11X 12X

P Q

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).

To transfer a data file containing a data field(s) of 100 digits or more, use the Windows-based Transfer Utility. The MS-DOS–based Transfer Utility does not support transmission of data fields exceeding 99 digits.

(2) Data text

Data field 1 Example of contents

Data field 2

Data field n

T 1 0 0 9 1 S 1 2 3 Every data field should be 1 to 99 digits in length.

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. 96

Page 113

Chapter 3. Communications Operations of BHT-7000

3.3.2 BHT-Ir Protocol [ 1 ] Overview The BHT-Ir protocol is the communications procedure for the serial infrared link, which is used to transmit files between the BHT-7000 and a host (or between the BHT-7000s). It adopts the response method using ACK/NAK codes. The BHT-Ir protocol can be used also for communications through the direct-connect interface. The BHT-Ir protocol is composed of a defined set of the control character sequences including the following three phases:

Phase 1:

Establishment of data link The sending station confirms that the receiving station is ready to receive data.

Phase 2:

Data transmission The sending station transmits data to the target receiving station.

Phase 3:

Release of data link The sending station confirms whether or not all of the transmitted data has been correctly received by the receiving station. If yes, the sending station terminates the data transmission and releases the data link.

For details about the transmission control sequences and CRC, refer to Appendix B, B.2, "BHT-Ir protocol."

97

Page 114

[ 2 ] Control Characters The control characters are classified into two groups: transmission control characters and text control characters.

(1)

Transmission control characters

The transmission control characters listed below are used to compose transmission control sequences in phases 1 through 3. Symbol

Value

Meaning

Function

DLE EOT

1004h

End Of Transmission

Releases a data link (Phase 3). Requests abort of transmission (Phase 2).

DLE ENQ 1005h

Enquiry

Requests establishment of a data link (Phase 1). Prompts the receiver to respond to the sent text (Phase 2).

DLE ACK

1006h

Acknowledge

Acknowledgment response to DLE ENQ (Phase 1). Acknowledgment response to text (Phase 2). Acknowledgment response to DLE EOT (Phase 3).

DLE NAK 1015h

Negative Acknowledge

Negative acknowledgment response to DLE ENQ (Phase 1). Negative acknowledgment response to text (Phase 2).

WACK

103Bh

Wait for Acknowledge

Requests suspension of data reception during erasure of the flash memory.

■ Transparency The BHT-7000 uses the transparent mode which allows the control characters and codes (e.g., STX, ETX, SOH, and DLE) to be transmitted as normal data in the transmission texts. To transmit a DLE as normal data, type DLE DLE per DLE.

98

Page 115

Chapter 3. Communications Operations of BHT-7000

(2)

Text control characters

The text control characters are used to format transmission texts. In the BHT-Ir protocol, they include the following headers and a terminator. Symbol

Value

Meaning

Function

DLE SOH 1001h

Start Of Heading

Indicates the start of heading text (Phase 2).

DLE STX

1002h

Start Of Text

Indicates the start of data text (Phase 2).

DLE ETX

1003h

End Of Text

Indicates the end of data text (Phase 2).

In the BHT-Ir protocol, you cannot change the values of the headers and terminator with the protocol functions in BHT-BASIC.

99

Page 116

[ 3 ] Basic Format of Transmission Messages Basically, the BHT-7000 transmits data as units of a file. First, it transmits a heading text which includes the attribute information of a file (e.g., file name and the number of data texts) to be transmitted. Following the heading text, it transmits the data text in the file. A heading text and data text comprise a text. In actual text transmission, the text is divided into several blocks, then a header, terminator, serial number, receiver station's ID, and CRC-16 (Cyclic Redundancy Check) are added to each block. This procedure forms a transmission block. A set of transmission blocks makes up one transmission message. Shown below is an example of a transmission message formed with the BHT-Ir protocol.

Text

Heading text

S D L • O H E

Data text 1

Data text 2

I Heading text D

Data text n

E D L • T X E

C R C

Transmission block

D E L • T E X

C R C

Transmission block

D E L • T E X

C R C

Transmission block

(2 bytes)

Transmission Message

D S L • T E X

D S L • T E X

I D

I

Serial number

Data text 1

(5 bytes)

Serial number

Data text 2

D

In the above figure, DLE SOH, DLE STX and DLE ETX are text control characters as described in [ 2 ] Control Characters, (2). An ID denotes the ID number of the receiver station, expressed by two bytes. A serial number is expressed by a five-digit decimal number, starting from 00001 to 32767, and identifies data texts. For the CRC-16, refer to Appendix B, B.2, "BHT-Ir protocol, " [ 3 ].

You can use the control characters for expressing IDs, serial numbers, or text data.

100

Page 117

Chapter 3. Communications Operations of BHT-7000

[ 4 ] 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 (.EX3 and .FN3 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 .EX3 or .FN3.

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, .EX3, and .FN3.)

101

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 118

■ 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).

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, .EX3, and .FN3, and it may be omitted (together with a period).

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). 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

Data field n

T 1 0 0 9 1 S 1 2 3

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

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.

102