The text of a manual · part 11 of 40
QuickScan 3000 & 3500 Handheld Bar Code Scanner Product Reference Guide: Chapter 6 RS-232 Interface, pages 87 to 96
Pages 87 to 96 of 352, from QuickScan 3000 & 3500 Handheld Bar Code Scanner Product Reference Guide
The original document is the PDF (4.4 MB). 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 PSC QS-3000, Datalogic QS-3000 and PSC QS-3500
Page 87
RS-232 Interface
Parity (continued) Select Space parity and the parity bit is always 0.
Space
Select None when no parity bit is required.
*None Stop Bit Select The stop bit(s) at the end of each transmitted character marks the end of transmission of one character and prepares the receiving device for the next character in the serial data stream. The number of stop bits selected (one or two) depends on the number the receiving terminal is programmed to accommodate. Set the number of stop bits to match host device requirements.
*1 Stop Bit
2 Stop Bits
6-11
Page 88
QuickScan QS3000/QS3500 Product Reference Guide
ASCII Format This parameter allows the scanner to interface with devices requiring a 7-bit or 8-bit ASCII protocol.
7-Bit
*8-Bit
6-12
Page 89
RS-232 Interface
Check Receive Errors Select whether or not the parity, framing, and overrun of received characters are checked. The parity value of received characters is verified against the parity parameter selected above.
*Check For Received Errors (Enable)
Do Not Check For Received Errors (Disable)
6-13
Page 90
QuickScan QS3000/QS3500 Product Reference Guide
Hardware Handshaking The data interface consists of an RS-232 port designed to operate either with or without the hardware handshaking lines, Request to Send (RTS), and Clear to Send (CTS). If Standard RTS/CTS handshaking is not selected, scan data is transmitted as it becomes available. If Standard RTS/CTS handshaking is selected, scan data is transmitted according to the following sequence: •
The scanner reads the CTS line for activity. If CTS is asserted, the scanner waits up to 2 seconds for the host to negate the CTS line. If, after 2 seconds (default), the CTS line is still asserted, the scanner sounds a transmit error, and any scanned data is lost.
•
When the CTS line is negated, the scanner asserts the RTS line and waits up to 2 seconds for the host to assert CTS. When the host asserts CTS, data is transmitted. If, after 2 seconds (default), the CTS line is not asserted, the scanner sounds a transmit error, and discards the data.
•
When data transmission is complete, the scanner negates RTS 10 msec after sending the last character.
•
The host should respond by negating CTS. The scanner checks for a negated CTS upon the next transmission of data.
During the transmission of data, the CTS line should be asserted. If CTS is deasserted for more than 50 ms between characters, the transmission is aborted, the scanner sounds a transmission error, and the data is discarded. If the above communications sequence fails, the scanner issues an error indication. In this case, the data is lost and must be rescanned. If Hardware Handshaking and Software Handshaking are both enabled, Hardware Handshaking takes precedence. Note: The DTR signal is jumpered to the active state.
6-14
Page 91
RS-232 Interface
None Scan the bar code below if no Hardware Handshaking is desired.
*None Standard RTS/CTS Scan the bar code below to select Standard RTS/CTS Hardware Handshaking.
Standard RTS/CTS
RTS/CTS Option 1 When RTS/CTS Option 1 is selected, the scanner asserts RTS before transmitting and ignores the state of CTS. The scanner de-asserts RTS when the transmission is complete.
RTS/CTS Option 1
RTS/CTS Option 2 When Option 2 is selected, RTS is always high or low (user-programmed logic level). However, the scanner waits for CTS to be asserted before transmitting data. If CTS is not asserted within 2 seconds (default), the scanner issues an error indication and discards the data.
RTS/CTS Option 2
6-15
Page 92
QuickScan QS3000/QS3500 Product Reference Guide
RTS/CTS Option 3 When Option 3 is selected, the scanner asserts RTS prior to any data transmission, regardless of the state of CTS. The scanner waits up to 2 seconds (default) for CTS to be asserted. If CTS is not asserted during this time, the scanner issues an error indication and discards the data. The scanner de-asserts RTS when transmission is complete.
RTS/CTS Option 3
Software Handshaking This parameter offers control of the data transmission process in addition to, or instead of, that offered by hardware handshaking. There are five options. If Software Handshaking and Hardware Handshaking are both enabled, Hardware Handshaking takes precedence.
None When this option is selected, data is transmitted immediately.
*None
6-16
Page 93
RS-232 Interface
ACK/NAK When this option is selected, after transmitting data, the scanner expects either an ACK or NAK response from the host. When a NAK is received, the scanner transmits the same data again and waits for either an ACK or NAK. After three unsuccessful attempts to send data when NAKs are received, the scanner issues an error indication and discards the data. The scanner waits up to the programmable Host Serial Response Time-out to receive an ACK or NAK. If the scanner does not get a response in this time, it issues an error indication and discards the data. There are no retries when a time-out occurs.
ACK/NAK
ENQ When this option is selected, the scanner waits for an ENQ character from the host before transmitting data. If an ENQ is not received within the Host Serial Response Time-out, the scanner issues an error indication and discards the data. The host must transmit an ENQ character at least every Host Serial Response Time-out to prevent transmission errors.
ENQ
ACK/NAK with ENQ This combines the two previous options.
ACK/NAK with ENQ
6-17
Page 94
QuickScan QS3000/QS3500 Product Reference Guide
XON/XOFF An XOFF character turns the scanner transmission off until the scanner receives an XON character. There are two situations for XON/XOFF: •
XOFF is received before the scanner has data to send. When the scanner has data to send, it waits up to 2 seconds for an XON character before transmission. If the XON is not received within this time, the scanner issues an error indication and discards the data.
•
XOFF is received during a transmission. Data transmission then stops after sending the current byte. When the scanner receives an XON character, it sends the rest of the data message. The scanner waits indefinitely for the XON.
XON/XOFF
Host Serial Response Time-out This parameter specifies how long the scanner waits for an ACK, NAK, or CTS before determining that a transmission error has occurred. This only applies when in one of the ACK/NAK Software Handshaking modes, or RTS/CTS Hardware Handshaking option.
*Minimum: 2 Sec
Low: 2.5 Sec
6-18
Page 95
RS-232 Interface
Medium: 5 Sec
High: 7.5 Sec
Maximum: 9.9 Sec
RTS Line State This parameter sets the idle state of the Serial Host RTS line. Scan a bar code below to select Low RTS or High RTS line state.
*Host: Low RTS
Host: High RTS
6-19
Page 96
QuickScan QS3000/QS3500 Product Reference Guide
Beep on <BEL> When this parameter is enabled, the scanner issues a beep when a <BEL> character is detected on the RS-232 serial line. <BEL> is issued to gain a user’s attention to an illegal entry or other important event.
Beep On <BEL> Character (Enable)
*Do Not Beep On <BEL> Character (Disable)
6-20