beautypg.com

Convert from char a property – MagTek MICRSafe99875466 User Manual

Page 41

background image

Section 5. USB Communications

33

CONVERT FROM CHAR A PROPERTY

Property ID:

26 (0x1A)

Property Type:

Byte

Length:

1 byte

Get Property:

Yes

Set Property:

Yes

Default Value:

255 (0xFF) (None)

Description:

The value is a byte that represents the ASCII value of a character transmitted
by the device as keystroke data that is to be changed into a string of ASCII
values prior to being transmitted by the device as keystroke data. The string
of ASCII values that this value will be changed into is contained in the
Convert To String A property. If the value of this property is set to 0xFF, no
characters will be changed into the string. For example, if you would like a
carriage return to be sent as an end of text character you could set the Convert
From Char A
property to 0x0D (carriage return) and set the Convert To
String A
property to 0x03 (end of text). If you would like a carriage return to
be sent as two carriage returns you could set the Convert From Char A
property to 0x0D (carriage return) and set the Convert To String A property
to 0x0D 0x0D (carriage return, carriage return). If you would like a carriage
return not to be sent you could set the Convert From Char A property to
0x0D (carriage return) and set the Convert To String A property to no string.

This property is stored in non-volatile memory, so it will persist when the unit
is power cycled. When this property is changed, the unit must be reset (see
Command Number 2) or power cycled for these changes to take effect.

Example Set Convert From Char A property Request (Hex):

Cmd Num

Data Len

Prp ID

Prp Value

01

02

1A

FF

Example Set Convert From Char A property Response (Hex):

Result Code Data Len

Data

00

00

Example Get Convert From Char A property Request (Hex):

Cmd Num

Data Len

Prp ID

00

01

1A


Example Convert From Char A property Response (Hex):

Result Code Data Len

Prp Value

00

01

FF