The text of a manual · part 14 of 28
MK1000 MicroKiosk Product Reference Guide: Chapter 5 PCK Emulation, pages 117 to 126
Pages 117 to 126 of 240, from MK1000 MicroKiosk Product Reference Guide
The original document is the PDF (2.2 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 Symbol MK-1000
Page 117
Chapter 5 PCK Emulation Overview This chapter describes how to use the MK1000 PCK emulation application. The Symbol PCK emulation application* is a PCK9100/9140 emulator for the Symbol MK1000. The application allows the MK1000 (wired or wireless) to connect to a host computer and behave like a Symbol PCK9100/9140. The Symbol PCK emulation application uses a proprietary command set developed by Symbol Technologies for use with its Kiosk Scanning Solutions. While running this application, the MK1000 can interact with PCK9100/9140 compatible applications on the host. It receives commands and data from the host and displays them on the MK1000's screen. The PCK emulation application has operating parameters that can be modified by the user. The user can set these parameters using menu screens displayed on the MK1000, or they can be preset in an "ini" style configuration file that can be loaded via FTP transfer. Note: * The MK1000’s PCK emulation application is not compatible with pre-existing PCK9142/9144/9130 applications.
5-1
Page 118
MK1000 MicroKiosk Product Reference Guide
New PCK Emulation Functionality on the MK1000 The differences between the MK1000 PCK emulation and Symbol's PCK9100/9140 architecture are listed in Table 5-1. Table 5-1. MK1000 PCK Emulation Versus PCK91XX Architecture MK1000 PCK Emulation
PCK9100/9140 Architecture
The MK1000's operating system supports multiple communication interfaces (Wireless RF, cabled Ethernet, RS-485 and RS-232) co-existing on a single unit.
The PCK9100/9140 was one interface per unit.
The MK1000 can be configured via a PC file that can be FTPed to the unit.
The PCK9100/9140 could not.
The MK1000 has four programmable function The PCK9100/9140 did not. buttons Maximum resource file size is 128k.
5-2
Maximum resource file size was 74k.
Page 119
PCK Emulation
Host Communication Commands Table 5-2 lists the commands used in host communications. Table 5-2. Host Communication Commands Control Character
Hex Representation
Description
<STX>
02
ASCII Start of Text
<ETX>
03
ASCII End of Text
<SOH>
01
ASCII Start of Header
<EOT>
04
ASCII End of Transmission
<DATA>
00-FF
Data packet. This is the actual data being sent to the MK1000. The maximum size of the packet is 300 bytes, but under 50 is recommended for accurate communication.
<LRC>
00-FF
Used for error detection, LRC is the Exclusive-OR (XOR) of all characters in <DATA> and the <ETX>.
<ADDR>
30-4F
The address of the MK1000 when used in a 485 network. Each unit is assigned a unique address.
<ENQ>
05
ASCII Enquiry
<ACK>
06
ASCII Acknowledge
<NAK>
15
ASCII Negative Acknowledge
PCK Ethernet & RS-232 Communication Protocol When communicating to the host terminal via Ethernet or RS-232, MK1000 data is formatted as follows: <STX> <DATA> <ETX> <LRC>
5-3
Page 120
MK1000 MicroKiosk Product Reference Guide
Host to MK1000 Handshaking ACK/NAK handshaking is supported for data sent from the host to the MK1000. If enabled, the MK1000 ACKs or NAKs a data packet based on its format and the LRC being correct. Because no error checking is performed on the data in the packet, the MK1000 ignores invalid display commands within the packet and sends an ACK. This increases the throughput of the system. The MK1000 can store incoming packets in memory while performing commands in packets already received. This frees up the host to do other things after sending a sequence of complex commands to the MK1000. The MK1000 can store up to 25 packets (totaling up to 600 bytes) in memory before the queue is full. When full, incoming packets are NAKed until space is available (if host to MK1000 ACK/NAK handshaking is enabled). When the MK1000 is responding to a packet from the host, it waits a programmable Turnaround Time after the last character is received before transmitting back to the host.
None The MK1000 transmits data to the host without software handshaking and assumes an ACK. The EOT character is sent immediately after the LRC. Host handshaking is ignored.
ACK/NAK ACK/NAK is the default software handshaking. The host verifies the LRC and responds with an ACK or NAK. If no response is received within the Host Time-out period (2.0 seconds), a NAK is assumed and the MK1000 retransmits (see Example 4 - Host Not Receiving Transmission on page 5-5.) Retransmission occurs up to three times. If a NAK is received from the host, the MK1000 re-transmits immediately. If ACK/NAK is disabled, the MK1000 transmits the data and assumes an ACK. The EOT is sent immediately after LRC.
ENQ (RS-232 Only) ENQ software handshaking is also supported for data sent to the host. The MK1000 waits for an ENQ from the host before sending data. If the ENQ is not received within the Host Time-out period (2.0 seconds), the data is discarded.
ACK/NAK with ENQ The MK1000 uses ACK/NAK handshaking to communicate with the host but does not respond to the host until an ENQ is received.
5-4
Page 121
PCK Emulation
RAW Allows binary data communication, no software handshaking is used. Data packets contain no control characters.
Communications Examples Example 1 - Correct Communications MK1000
Host
<STX> <DATA> <ETX> <LRC> <ACK> <EOT>
Example 2 -Wrong First Transmission MK1000
Host
<STX> <DATA> <ETX> <LRC> <NAK> No Time-out
Example 3 - No Time-out MK1000
Host
<STX> <DATA> <ETX> <LRC> <ACK> <EOT>
Example 4 - Host Not Receiving Transmission MK1000
Host
<STX> <DATA> <ETX> <LRC> No response
5-5
Page 122
MK1000 MicroKiosk Product Reference Guide
Example 5 - MK1000 Waiting for Host Time-out Period MK1000
Host
<STX> <DATA> <ETX> <LRC> <ACK> <EOT>
PCK RS-485 Communication Protocol When communicating via RS-485, the host computer must poll each MK1000 individually. Therefore, each MK1000 has a unique address programmable by bar code menus. The value of the address ranges from hex 30 (48 decimal) to hex 4F (79 decimal). The poll command format is: <EOT> <ADDR> <ENQ> The host and the MK1000 communicate with each other using the following packet format: <SOH> <ADDR> <STX> <DATA> <ETX> <LRC> If the MK1000 is polled and has no data, it responds with an EOT character. The same ACK/NAK protocol used for RS-232 is used for RS-485 communication.
5-6
Page 123
PCK Emulation
Example 1 - Correct Communications, No Data Host
MK1000
<EOT> <ADDR> <ENQ> <EOT>
Example 2 - Correct Communications, MK1000 Sends Data Host
MK1000
<EOT> <ADDR> <ENQ> <SOH><ADDR> <STX> <DATA> <ETX> <LRC> <ACK> <EOT>
Example 3 - Display Message for MK1000 Host
MK1000
<SOH> <ADDR> <STX> <DATA> <ETX> <LRC> <ACK> <EOT>
5-7
Page 124
MK1000 MicroKiosk Product Reference Guide
Default Display Messages There are three default display messages that can be overridden by downloading a resource file, or through host commands. Downloaded resource file messages are retained until a new resource file is sent, while messages sent through host commands are lost when the unit is powered down, and must be resent when the unit is powered up again.
Powerup Message This default message displays when the unit powers up.
Symbol Technologies MK1000
Figure 5-1. Powerup Default Message
Idle Message/Host Connection Failure Message This default message displays if the MK1000 is not polled by the host for more than one minute, or if a connection fails to the host.
* Out of Service * Please Try Later A0
Figure 5-2. Idle/Connection Failure Default Message
5-8
Page 125
PCK Emulation
Reactivated/Host Connection Established Message This default message displays once the station has received polls from the host, or if a host connection is established after being out of service.
* READY * Scan Item
Figure 5-3. Reactivated/Connection Established Message
Display Control Characters The following control characters are supported within display messages. Note that the exact position of the cursor after a VT, FF, or CR depends on the size of the currently selected font. Table 5-3. Display Control Characters Control Character
Hex Representation
Function
VT
0BH
Clear display & go to top left position
FF
0CH
Clear display & go to top left position
CR
0DH
Go to left-most position of next line
SO
0EH
Shift Out: Set the shift state that causes the most significant bit of all subsequent characters to be flipped. This allows 7-bit systems to access codes 160-255, and 8-bit systems to access codes 0-31. Note: Codes 0-3 are not shifted.
SI
0FH
Shift In: Resets the shift state set by the Shift Out code. The shift state is also reset at the end of every packet sent to the MK1000.
5-9
Page 126
MK1000 MicroKiosk Product Reference Guide
Display Commands Several commands display text and bit mapped graphics, control data sent to and from the second Serial port, or interface to the scanner. Display commands view the LCD display as an array of points 240 across by 64 high. Point 0,0 is in the top left corner and point 239,63 is in the bottom right.
Command Parameters Table 5-4 lists the display command parameters. Table 5-4. Command Parameters Px
X-axis parameter specified with ASCII digits. Valid range is 0-239.
Py
Y-axis parameter specified with ASCII digits. Valid range is 0-63.
Pf
Fill/No Fill flag parameter used to fill graphic geometric shapes. No Fill: 0 Fill: 1
Pi
ID parameter that specifies a particular bitmap, font, or message. ID numbers are assigned through the Resource Manager program. Any valid ID number may identify a bitmap/font/message. Valid ranges are: Bitmaps: 0-999 Fonts: 0-1000 where 1000 selects the default font. This ID cannot be overridden. Messages: 0-1002 999 = Socket Connection Broken message 1000 = Power-up message 1001 = Out of Service Message 1002 = Ready to Scan Message
The default messages are overridden by creating a new message in the Resource Manager and giving it the appropriate ID number.
5-10