Cino FA470 User Manual

Page 12

Advertising
background image

Command Overview

1-5

All FuzzyScan Serial Commands begin and end with the fixed prefix and suffix - 7Eh, which
serve as parentheses. Between the prefix and the suffix is the command body. The main body
consists of Opcode, Status, Length, Parameter(s) and check digit.

According to the functional group, there are two different parameter formats. The “Action” and
“Acknowledgement” command groups use the “Simple” parameter format. The other
command groups allow the “Compound” parameters to make more effective control. Please
refer to the following paragraphs for details.

Escape Sequence

Several characters have special functions in FuzzyScan Serial Command and communication
manipulation, such as “Prefix (7Eh)”, “Suffix (7Eh)”, “ACK (06h)”, “NAK (15h)”, “XON (11h)”,
“XOFF (13h)” and “Backslash (5Ch). If you have to use above characters in your command
string (from “Length”, “Parameter” to “LRC”), please replace them with their escaped value
listed in following table.

ASCII

~

\

ACK

NAK

XON

XOFF

Hex

7Eh

5Ch

06h

15h

11h

13h

Escaped Value

5Ch 00h 5Ch 01h 5Ch 02h 5Ch 03h 5Ch 04h 5Ch 05h


For example,

If a host-to-device serial command is listed as below:

" 7Eh 85h 00h 00h 00h 00h

06h

02h 00h 00h 02h 01h 01h 83h 7Eh "

“ Prefix Opcode Status Length Parameter(s) LRC Suffix “

The “06h” have to be replaced "5Ch 02h". So the correct command string will be,

" 7Eh 85h 00h 00h 00h 00h

5Ch 02h

02h 00h 00h 02h 01h 01h 83h 7Eh ".


In other words, if the device send following string to host.

" 7Eh 07h 00h 00h 00h 00h

5Ch 02h

02h 00h 00h 02h 01h 01h 01h 7Eh "


Your serial host application have to change “5Ch 02h” to “06h” as well.

Advertising