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

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

Pages 101 to 109 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 101

Chapter 3. Communications Operations of BHT-7000

Chapter 3 Communications Operations of BHT-7000 This chapter describes the communications operations of the BHT-7000--the RS-232C interface specifications, the basic communications specifications, and the communications protocols--for data transmission with the host computer or other devices. 3.1

RS-232C Interface Specifications ............................................. 8 6

3.2

Basic Communications Specifications and Parameters .... 8 8

3 . 2 . 1 Basic Communications Specifications .............................. 8 8 3 . 2 . 2 Communications Parameters ................................................. 9 0 3.3

Communications Protocols ......................................................... 9 1

3 . 3 . 1 B H T - p r o t o c o l ................................................................................ 9 1 [ 1 ] O v e r v i e w ...................................................................................... 9 1 [ 2 ] Control Characters .................................................................. 9 2 [ 3 ] Basic Format of Transmission Messages ........................ 9 4 [ 4 ] Text Format ................................................................................ 9 5 3 . 3 . 2 BHT-Ir Protocol ............................................................................ 9 7 [ 1 ] O v e r v i e w ...................................................................................... 9 7 [ 2 ] Control Characters .................................................................. 9 8 [ 3 ] Basic Format of Transmission Messages ........................ 1 0 0 [ 4 ] Text Format ................................................................................ 1 0 1

85

Page 102

3.1 RS-232C Interface Specifications [ 1 ] Interface Connector and Pin Assignment The BHT-7000 has a direct-connect interface port which is connectable to the 3-pole mini stereo plug (ø2.5 mm or 0.1") and supports a subset of the RS-232C interface as shown below. Using a direct-connect interface cable having the mini stereo plugs makes it possible to connect the BHT-7000 to a host computer (or another BHT-7000) directly without any routing through the CU-7000.

SD

RD

SG

3-pole Mini Stereo Plug (ø2.5 mm or 0.1")

The poles of the plug are assigned as listed below. Signal Name

Function

Signal Input/Output BHT-7000

External device

SD

Send data

→

RD

Receive data

←

SG

Signal ground

The input/output voltage threshold for the logical valued signal is listed below. Logical Value

Input Voltage Threshold

Output Voltage Threshold

(RD)

(SD)

0

3V min.

5V min.

1

-3V max.

-5V max.

The direct-connect interface port is not designed to stand frequent connecting/ disconnecting. Do not plug and unplug basically more than one time a day; otherwise, the service life of the plug will shorten. To connect the BHT-7000 to a host computer having no IR port (or another BHT-7000) frequently, use the CU7000. Allow the specified signals only to enter the direct-connect interface port. Entry of other signals will result in a failure or malfunction of the BHT-7000. 86

Page 103

Chapter 3. Communications Operations of BHT-7000

[ 2 ] Interface Cable Connection Connect the BHT-7000 directly to a host computer, a modem, or a printer with a directconnect interface cable as illustrated below. BHT-7000 Connector I/F

Host Computer

FG SD RD RS CS DR SG CD ER

SD RD

SG

Cable Connection between BHT-7000 and Host Computer

BHT-7000 Connector I/F

Modem

FG SD RD RS CS DR SG CD ER

SD RD

SG

Cable Connection between BHT-7000 and Modem

BHT-7000 Connector I/F

Printer

FG SD

RD busy(RD)

busy

SG

SG

Cable Connection between BHT-7000 and Printer

87

Page 104

3.2 Basic Communications Specifications and Parameters 3.2.1 Basic Communications Specifications Listed below are the communications specifications when the BHT-7000 exchanges data with a host computer through the CU-7000 (optical interface) or direct-connect interface cable. Optical Interface

Direct-connect Interface

Start-stop

Synchronization Transmission Speed

2400, 9600, 19200, 38400, 57600, or 115200 bps

300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, or 115200 bps

Transmission Code

JIS 8-bit codes

JIS 7- or 8-bit codes

Transmission Bit Order Vertical Parity

LSB (Least significant bit) first Even, odd, or none

None

■ Synchronization For accurate data transaction, it is very important to synchronize the transmission between the sender and receiver. To do this, it is required to previously define the bit order and position, the character length, and the beginning and end of the character to be transmitted. The start-stop synchronization is an asynchronous system which synchronizes each character as a unit; that is, it externally adds start and stop bits to the leading and trailing bit positions of the character to be transmitted, respectively. A clock starts counting on receiving the start bit and it falls into a non-communication state on receiving the stop bit. The number of the stop bits is selectable (1 or 2 bits).

■ Transmission Speed Maximum number of bits to be transmitted per second. Expressed in bps (bits per second).

■ Optical Interface Communications Range The optical interface's maximum effective range is 80 cm (31.5 in.) with the IR beam within a 10˚ angle of divergence.

■ Switching Time between Sending and Receiving on Optical Interface The optical interface should satisfy the following requirements in switching between sending and receiving: (1) Within 10 ms from completion of sending, the optical interface should become ready to receive. (2) After 10 ms or more from completion of receiving, the optical interface should start sending. 88

Page 105

Chapter 3. Communications Operations of BHT-7000

■ Transmission Code and Bit Order All characters should be coded to 7- or 8-bit code for data transmission. The standard data exchange code of the BHT-7000 is JIS 7- or 8-bit code. The transmission bit order is LSB (Least significant bit) first. What follows is an example for transmitting character A (41h, 01000001b) coded to JIS 8-level code with an even parity and a single bit each for start and stop bits. LSB 1

MSB 0

0

0

0

0

1

0

0

Stop bit

Start bit

Parity bit

■ Vertical Parity A vertical parity bit is a redundancy bit which is added to every character to be transmitted in order to check that data has been transmitted accurately. The parity bit should be set to "1" or "0" depending upon the parity parameter setting, to make the number of set bits in the character even or odd. The receiver counts the number of set bits in the transmitted character code to make sure that it has the selected number (even or odd) of set bits. The vertical parity bit is positioned immediately following the MSB (Most significant bit) as shown below.

LSB b0

MSB b1 b2 b3 b4 b5 b6

(For 7-bit data) Vertical parity bit

LSB b0

MSB b1 b2 b3 b4 b5 b6 b7

(For 8-bit data) Vertical parity bit

89

Page 106

3.2.2 Communications Parameters In System Mode and user programs written in BHT-BASIC, you may set the communications parameters listed below. Communications Port

Optical interface

Direct-connect interface

Transmission Speed

2400, 9600, 19200, 38400, 57600, or 115200 bps

300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, or 115200 bps

Character Length

8 bits

7 or 8 bits

Vertical Parity

None

Odd, even, or none

Stop Bit Length

1 bit

1 or 2 bits

In System Mode Refer to Chapter 2, Subsection 2.6.3, [4.5], "Setting the communications environments."

In BHT-BASIC To set the transmission speed, character length, vertical parity, and stop bit length (To set the transmission speed only for the optical interface), use the OPEN "COM:" statement in BHT-BASIC.

OPEN "COM: ... "

Opens the interface port selected in System Mode.

OPEN "COM1: ... "

Opens the optical interface port for data transmission routing through the CU-7000, irrespective of the setting in System Mode.

OPEN "COM2: ... "

Opens the direct-connect interface port for data transmission, irrespective of the setting in System Mode.

Note that it is impossible to open both the optical interface port and the direct-connect interface port concurrently. Through the interface port opened by the OPEN "COM:" statement, the XFILE statement transmits a designated file.

90

Page 107

Chapter 3. Communications Operations of BHT-7000

3.3 Communications Protocols The BHT-7000 supports both the BHT-protocol and the BHT-Ir protocol for file transmission.

3.3.1 BHT-protocol [ 1 ] Overview The BHT-protocol is the communications procedure 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-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 horizontal parity checking, refer to Appendix B, B.1, "BHT-protocol."

91

Page 108

[ 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

EOT

04h

End Of Transmission

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

ENQ

05h

Enquiry

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

ACK

06h

Acknowledge

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

NAK

15h

Negative Acknowledge

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

■ Transparency The BHT-7000 uses the non-transparent mode which handles the control characters and codes (e.g., STX, ETX, and SOH) as starting or ending markers and does not allow them to be transmitted as normal data in the transmission texts.

92

Page 109

Chapter 3. Communications Operations of BHT-7000

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

Value

Meaning

Function

SOH

01h

Start Of Heading

Indicates the start of heading text (Phase 2).

STX

02h

Start Of Text

Indicates the start of data text (Phase 2).

ETX

03h

End Of Text

Indicates the end of data text (Phase 2).

You may designate headers and a terminator with the protocol functions in BHTBASIC. If you designate none of them in a user program, the BHT-7000 may apply those as listed above. Refer to the "BHT-BASIC Programmer's Manual."

93