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 6 of 11

PSM20i Bar Code Scanner Attachment Programmer's Guide: Chapter 2 Function Definitions, pages 35 to 44

Pages 35 to 44 of 80, from PSM20i Bar Code Scanner Attachment Programmer's Guide

The original document is the PDF (773 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 Symbol PSM20i

Page 35

Function Definitions codabar Class BarCodeReader

Description Enable or disables decoding of Codabar bar codes and options.

Invocation boolean codabar (boolean enable, byte options, byte len1, byte len2) enable

= false - Disable Codabar decoding = true - Enable Codabar decoding options

Sets Codabar bar code options. Bit mapped options logically OR’d as needed = 1 NOTIS = 2 CLSI len1

See len2 description len2

If len2 = 0 then len1 determines the discrete length of the bar code. If len1 > len2 then, two discrete lengths are acceptable, where len1 and len2 determine the actual lengths. If len1 < len2 then valid length of bar code falls within the range determined by len1 and len2 If len1 = len2 = 0, then any length of Codabar bar code is accepted.

Return Value true if configuration was successful.

false if configuration failed.

2-21

Page 36

PSM20i Bar Code Scanner Attachment Programmer’s Guide

Example import com.symbol.j2me.midlets.ascanner.BarCodeReader; BarCodeReader barCodeReader = new BarCodeReader(); boolean response = barCodeReader. codabar ( true, (byte)0x03, (byte)0x00, (byte)0x00 ); Enable decoding Codabar labels, NOTIS and CLSI, and allow any length label.

2-22

Page 37

Function Definitions code128 Class BarCodeReader

Description Enable or disables decoding of Code128 bar codes.

Invocation boolean code128 (boolean enable) enable

= false - Disable USS-128 decoding = true - Enable USS-128 decoding

Return Value true if configuration was successful.

false if configuration failed.

Example import com.symbol.j2me.midlets.ascanner.BarCodeReader; BarCodeReader barCodeReader = new BarCodeReader(); boolean response = barCodeReader.code128 (true); Enable decoding of Code128.

2-23

Page 38

PSM20i Bar Code Scanner Attachment Programmer’s Guide code39 Class BarCodeReader

Description Enable or disables decoding of Code 39 bar codes and options.

Invocation boolean code39 (boolean enable, boolean checkdigit, byte options, byte len1, byte len2) enable

= false - Disable Code 39 decoding = true - Enable Code 39 decoding checkdigit

= false - Disable check digit verification = true - Enable check digit verification options

Sets Code 39 bar code options. Bit mapped options logically OR’d as needed = 1 Convert Code 39 to Code 32 = 2 Add prefix of “A” to Code 32 barcodes. Code 39 to 32 must be enabled = 4 Transmit check digit. = 8 Code 39 Full ASCII len1

See len2 description len2

If len2 = 0 then len1 determines the discrete length of the bar code. If len1 > len2 then, two discrete lengths are acceptable, where len1 and len2 determine the actual lengths. If len1 < len2 then valid length of bar code falls within the range determined by len1 and len2 If len1 = len2 = 0, then any length of Code 39 bar code is accepted.

2-24

Page 39

Function Definitions

Return Value true if configuration was successful.

false if configuration failed.

Example import com.symbol.j2me.midlets.ascanner.BarCodeReader; BarCodeReader barCodeReader = new BarCodeReader(); boolean response = barCodeReader. code39 ( true, true, (byte)0x05, (byte)0x00, (byte)0x00 ); Enable decoding of Code 39 labels, enable check digit verification, convert Code 39 to Code 32, transmit check digit, and allow any length label.

2-25

Page 40

PSM20i Bar Code Scanner Attachment Programmer’s Guide code39Trioptic Class BarCodeReader

Description Enable or disables decoding of Trioptic Code 39 bar codes.

Invocation boolean code39Trioptic (boolean enable) enable

= false - Disable Trioptic decoding = true - Enable Trioptic decoding

Return Value true if configuration was successful.

false if configuration failed.

Example import com.symbol.j2me.midlets.ascanner.BarCodeReader; BarCodeReader barCodeReader = new BarCodeReader(); boolean response = barCodeReader. code39Trioptic (true); Enable decoding of Trioptic Code39 labels.

2-26

Page 41

Function Definitions code93 Class BarCodeReader

Description Enable or disables decoding of Code 93 bar codes and lengths.

Invocation boolean code93 (boolean enable, byte len1, byte len2) enable

= false - Disable Code 93 decoding = true - Enable Code 93 decoding len1

See len2 description len2

If len2 = 0 then len1 determines the discrete length of the bar code. If len1 > len2 then, two discrete lengths are acceptable, where len1 and len2 determine the actual lengths. If len1 < len2 then valid length of bar code falls within the range determined by len1 and len2 If len1 = len2 = 0, then any length of Code 93 bar code is accepted.

Return Value true if configuration was successful.

false if configuration failed.

Example import com.symbol.j2me.midlets.ascanner.BarCodeReader; BarCodeReader barCodeReader = new BarCodeReader(); boolean response = barCodeReader. code93 ( true, (byte)0x00, (byte)0x00 ); Enable decoding of Code 93 labels and allow any length label.

2-27

Page 42

PSM20i Bar Code Scanner Attachment Programmer’s Guide discrete2of5 Class BarCodeReader

Description Enable or disables decoding of Discrete 2 of 5 bar codes and lengths. Note: It is highly recommended to use discrete lengths greater than 8 on low security barcodes, such as Discrete 2of5 and Interleaved 2of5, to avoid poor system performance.

Invocation boolean discrete2of5 (boolean enable, byte len1, byte len2) enable

= false - Disable Discrete 2 of 5 decoding = true - Enable Discrete 2 of 5 decoding len1

See len2 description len2

If len2 = 0 then len1 determines the discrete length of the bar code. If len1 > len2 then, two discrete lengths are acceptable, where len1 and len2 determine the actual lengths. If len1 < len2 then valid length of bar code falls within the range determined by len1 and len2 If len1 = len2 = 0, then any length of Discrete 2 of 5 bar code is accepted.

2-28

Page 43

Function Definitions

Return Value true if configuration was successful.

false if configuration failed.

Example import com.symbol.j2me.midlets.ascanner.BarCodeReader; BarCodeReader barCodeReader = new BarCodeReader(); boolean response = barCodeReader. discrete2of5 ( true, (byte)0x00, (byte)0x00 ); Enable decoding of Discrete 2of5 labels, and allow any length label.

2-29

Page 44

PSM20i Bar Code Scanner Attachment Programmer’s Guide ean128 Class BarCodeReader

Description Enable or disables decoding of UCC/EAN-128 bar codes.

Invocation boolean ean128 (boolean enable) enable

= false - Disable UCC/EAN-128 decoding = true - Enable UCC/EAN-128 decoding

Return Value true if configuration was successful.

false if configuration failed.

Example import com.symbol.j2me.midlets.ascanner.BarCodeReader; BarCodeReader barCodeReader = new BarCodeReader(); boolean response = barCodeReader.ean128 (true); Enable decoding of UCC/EAN-128.

2-30