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

Bar Code Handy Terminal BHT-7000 User's Manual: Appendices, pages 161 to 170

Pages 161 to 170 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 161

Appendices

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

Sending station

Receiving station DLE ENQ and IDm (1)

0.5 second DLE ENQ and IDm (2)

0.5 second DLE ENQ and IDm (3)

DLE ENQ and IDm (60)

0.5 second DLE EOT and IDm

Abnormal termination

TIP

The receiving station's default timeout is 30 seconds. You may modify the timeout length on the SET PROTOCOL screen in System Mode (pp. 54 and 56) or by using the XFILE statement (refer to the "BHT-BASIC Programmer's Manual").

145

Page 162

Phase 2: Data Transmission ■ Normal phase 2 The sending station first sends a transmission block containing the heading text. Each time the sending station receives a sequence of DLE ACK and IDs from the receiving station, it sends a transmission block containing the data texts as shown below. Upon receipt of a sequence of DLE ACK and IDs in response to the last transmission block (data text n), the sending station shifts to phase 3. If a transmission message contains no data text, the sending station transmits the heading text only.

Sending station

Receiving station Heading text

DLE ACK and IDs

Data text 1

DLE ACK and IDs

Data text n-1

DLE ACK and IDs

Data text n

DLE ACK and IDs

To phase 3.

146

Page 163

Appendices

■ Phase 2 with suspension of data reception for erasure of the flash memory If the receiving BHT-7000 requires the flash memory 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

147

Page 164

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

148

Receiving station

Page 165

Appendices

■ 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

149

Receiving station

Page 166

■ 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

150

Receiving station

Page 167

Appendices

■ 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

151

Receiving station

Page 168

■ 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

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

152

Page 169

Appendices

[ 3 ] 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 LSB of the first byte to the MSB 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

Data text

D

E D L • T X E

C R C

Operands Operand

[ 4 ] 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 BHT7000 as follows. • The system sets an ID when the BHT-7000 is initialized. • You may set an arbitrary ID in System Mode or by using the OUT statement in BHT-BASIC.

153

Page 170

Appendix C. A Typical Basic Operation What follows is a typical basic operation which helps you instruct the hands-on user in practical bar-code reading operation. Application type: Inventory Operation:

Power ON → Read the bar code on stock (A). → Key in the quantity. Read the bar code on stock (B). → Key in the quantity.

. ..

Repeat the above operation.

.. . 6. Ready for data entry Record 00100 scrolls up so that record 00101 becomes ready for next data entry.

File1 A:

99/10/20

MULTI K 00101

4. Display of read data

A:0031323120786 B: MULTI K 00100 2. Ready for data entry

File1 A:

99/10/20

MULTI K 00101 5. Quantity entry Enter the quantity by pressing the numerical keys, then press ENT key.

A:0031323120786 B:20

3. Bar code entry Bring the bar-code reading window to the bar code to be scanned and press M3 or M4 key.

MULTI K 00100

1. Power ON Press PW key to turn on the power.

154