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 10 of 16

680x Series Portable Printers Technical Reference Manual: Section 4: Operation, pages 89 to 96

Pages 89 to 96 of 146, from 680x Series Portable Printers Technical Reference Manual

The original document is the PDF (15 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 Intermec 6804

Page 89

Operation

SECTION 4 flash configuration override commands are valid only until changed by another command or the printer falls asleep. Command: {ME!} Enable Magnetic card reader (temporarily overrides Flash setting) Response: {ME!} Command: {MD!} Disable Magnetic card reader (Temporarily overrides Flash setting) Response: {MD!} Command: {MZ!} Zero Magnetic card data (use to assure data is from CURRENT read) Response: {MZ!} Command: {MR?} Read Magnetic card data – all data read from card is returned, Including start/stop characters (%?;) and delimiters (^=) Returns data delimited as follows: " {N} – no card data read OR: " T1: -- delimits Track 1 data (sent if track 1 is enabled) " T2: -- delimits Track 2 data (sent if track 2 is enabled) " T3: -- delimits Track 3 data (sent if track 3 is enabled) " | -- delimits data from one track to another If there is NO data recorded on an enabled track, then an ‘N’ is returned in place of that data. If the data read was bad (parity or LRC), then a ‘B’ is returned in place of that data. Response example (all three tracks enabled – all good read) {T1:<data>|T2:<data>|T3:<data>} Response example (Track 1 data bad and Track 3 not recorded) {T1:B|T2:<data>|T3:B}.

Magnetic Card Configuration Commands The magnetic card reader is capable of reading Tracks I, II, and III. Not all applications use all tracks, so to avoid bad Intermec Portable Printers Technical Reference Manual

4-41

Page 90

Operation

SECTION 4 reads being reported you should enable only the tracks you expect data to read for data. In addition, the reader can read data when the card is inserted, removed or in both directions. Finally, the card reader can be globally enabled or disabled. Parameters to be set should be set in a single command, with options separated by semicolons: Command: {CMR:data} Configure Magnetic Card Reader – requires data. CMR data: " T1:ON or OFF to enable or disable reading Track I " T2:ON or OFF to enable or disable reading Track II " T3:ON or OFF to enable or disable reading Track III " E:ON or OFF to enable or disable the magnetic card read " D:IN or OUT or BOTH for card read direction " S:ON or OFF to enable or disable auto RS--232 send of data on reading " A:ON or OFF to enable the auto print stand--alone demo EXAMPLE:

Turn T1&2 ON, T3 OFF, and the auto print ON: "

"

1 – put the printer into Easy Print by sending 3 characters ESC+EZ 2 – configure by sending {CMR:T1:ON;T2:ON;T3:OFF;A:ON}

Smart Card Operational Commands Since Smart Card applications and card types can vary widely, the printer acts only as a conduit to the card, relaying commands to the card and accepting data back from the card. Most cards require special commands of their own. The commands shown here are commands to the reader, not to the card. 4-42

Intermec Portable Printers Technical Reference Manual

Page 91

Operation

SECTION 4

The card specific data sent to the printer as data along with these reader commands is sent to the card and any response (data and/or status word – a 2 byte sequence) from the card is returned to the host. Consult ISO--7816 part 4 for T=0 commands to the smart card, which are included as the data for the SR and SW commands to the card reader and meaning of responses. Command: {SP:data} Controls Power to the Smart card – requires data. Response for power ON: {SP:<ATR data>} Where ATR data is Answer To Reset data returned by card Response for power OFF: {SP!} SP data: 0 (zero) – Turn power off 1 (one) – Turn power on (printer returns ATR for async card) Command: {SW:data} ICC card write – requires command to be written to card (ISO--7816) Uses Sync or if Async, protocol selected at configuration Returns status response from card preceded by {SW! Command: {SR:data} ICC card read – requires command/ data to be written to card (ISO--7816) Uses Sync or of Async, protocol selected at configuration Returns data and status response with data from card preceded by {SR! Implemented as required (future): Command: {SM:data} Smart Memory Card – requires command/data to be written to card Uses I2C or SPI communications to card Subcommands for read and write control the reader as well as the card

Intermec Portable Printers Technical Reference Manual

4-43

Page 92

Operation

SECTION 4

Smart Card Configuration Commands The smart card reader can be enabled and disabled. The reader can support smart Asynchronous (T=0 and T=1/future) and Synchronous (future) smart cards, microprocessor based cards as well as memory cards (future). But it must be configured for the type of card that is to be used. Parameters to be set should be set in a single command, with options separated by semicolons: Command: {CSR:data}Configures the smart card reader – requires data CSR data: T:MEM or ASYNC or SYNC for memory or async or sync µP based card types P:T0 or T1 for ASYNC card protocol to be used (T1 is future) M:I2C or SPI for I2C or SPI type memory card interface (future) E:ON or OFF to enable or disable the smart card reader C:BIN or HEX to send commands to the card in binary or ASCII Hex R:BIN or HEX to receive status&data responses from card in binary or ASCII Hex A:ON or OFF to enable the auto print stand--alone demo EXAMPLE:

To turn the auto print demo ON: "

"

1 – put the printer into Easy Print by sending three characters: ESC+EZ 2 – configure the printer by sending {CSR:A:ON}

Operational Scenarios General The magnetic card and button data are read automatically by the 6804TCR and 6808 printers, and buffered internally 4-44

Intermec Portable Printers Technical Reference Manual

Page 93

Operation

SECTION 4 until the host requests the data. Data is flushed either when the host explicitly requests that the buffer is zeroed or when the printer falls asleep. Smart cards, however, vary widely and many have specific security issues (such as passwords, cryptographic keys, and application knowledge of file structure) that must be presented to gain access to data stored on the card. For smart card applications, the 6804 and 6808TCR printers acts as a conduit for commands and data from the host, and returns data sent from the card. In normal operation, the printer will probably be asleep when any card or button transaction begins. 1. The printer will wake up whenever a magnetic card or smart card is inserted, or the probe is touched to a button. 2. The button is read automatically whenever the printer is awake and the button is sensed by touching with the probe. 3. The magnetic card is read when the printer is awake and the card is moving. 4. This data is stored in an internal buffer in the printer and available to the host via RS--232 or IrDA. 5. Data directly from the smart card can be read by command from via RS--232 or IrDA

Magnetic Card Reader Although insertion type card readers such as the one used on the reader can read cards either upon insertion or withdrawal, the read rate is much higher upon withdrawal with virtually all readers of this type (e.g. the gas pump readers). This is because the card is unstable and the rate of movement can change drastically when the card is first inserted. If the reader is already awake, and more than one card could be inserted, the application may choose to zero the Intermec Portable Printers Technical Reference Manual

4-45

Page 94

Operation

SECTION 4 buffer before prompting the insertion of the card to assure the data is from the card about to be inserted, and not a previously read card. An application, then, may choose the following sequence if the operator of the equipment is trained (i.e. not a “consumer” end user); this uses the automatically generated LED/ Buzzer status indicators " Handheld prompts the user to insert, then remove card " Operator inserts card (waking up the reader) and waits for green LED, then removes card " Handheld polls the 6804 and 6808 TCR printers waiting for data to be available Or, if the operator is an “untrained consumer”, the application may choose a more step--by--step approach and handle handheld screen prompts and LED/Buzzer as required: 1. Handheld prompts the user to insert their card 2. User inserts the magnetic card into the card reader slot waking up the reader 3. Handheld polls the reader looking for the card to be inserted 4. When the handheld sees the card is inserted, it prompts user to remove card 5. 6804 TCR automatically reads and buffers card data from any or all of Tracks I, II, and III 6. Handheld polls the reader looking for the card to be removed 7. Handheld requests card data from reader

Smart Card Reader Smart cards vary widely (some are microprocessor based, some are memory only; all may have security). In addition, memory cards have data organization and microprocessor-based cards have a file structure that is defined by the application. 4-46

Intermec Portable Printers Technical Reference Manual

Page 95

Operation

SECTION 4

Most smart card operating systems (inside the smart card) do not provide a method of “reading the directory (file structure)”. The file structure and security features are unique to the application. So although the reader gives access to “standard card types” (as defined in ISO--7816), it is not possible to “automatically” read and buffer the smart card data. Each application should have a predefined card type as well as use of that card; the handheld should then have that knowledge. The application, then, might choose to handle a microprocessor--based smart card as follows: " "

"

"

"

"

"

"

"

Handheld prompts the user to insert their card. User inserts the smart card into the card reader slot waking up the reader> Handheld polls the reader looking for the card to be inserted. Handheld commands reader to power up the card; reader returns the card’s answer to reset (unique to each card type). Handheld commands reader to pass commands and data to the card, selecting files and providing passwords and cryptographic keys as required. Reader returns smart card’s response to each command and data sent from the handheld, allowing the handheld to determine if proper access has been attained. Handheld requests data from the card, and reader returns that data. Handheld provides command with data to be written to the card, and the reader passes that command and data to the card and returns the card’s response. When the transaction is complete, the handheld prompts the reader to power down the card, then prompts the user to remove the card. Intermec Portable Printers Technical Reference Manual

4-47

Page 96

Operation

4-48

Intermec Portable Printers Technical Reference Manual

SECTION 4