Translation of the original instructions
PROTOCOL
The computer always initiates commands with query, the SUM always responds to it. If the SUM does not respond within
500 ms, it is no longer operational.
The SUM supports 2 types of request-answer: the Setter and the Getter. The Setter applies a value to the product. The
Getter allows to read a value of the product.
A command has at least one associated data (argument). For the Setter, the data is sent with the order in the request..
For a Getter, the data is received by the response with the associated command.
The SUM returns a status in its reply to indicate that the order has been properly processed. The Setter answer always
contains the order and status. For the Getter, the answer contains the order and the data if everything goes well.
Otherwise, the answer contains the order and status.
SYNTAX
The exchanges between the computer and the SUM are done in ASCII characters.
Each request and response ends with <CR><LF>(or 0x0D0A or «\r\n»).
The command name contains no spaces.
The name of the command is followed by an equal «=».
In a Setter request and a Getter response, the data follows the equal sign «=». They are separated by a semicolon
«;». For decimal data, the decimal separator is «.». The data are shown without units.
For a Getter request, a question mark «?» follows the equal sign «=».
The status has 2 values: «OK» or «KO».
Example of exchanges between the computer and the SUM :
«
Process_state=
run
Process_state=
OK
«
«
Process_state=
?
<CR><LF>
idle
«
Process_state=
«
Process_sta=
?
<CR><LF>
KO
«
Process_sta=
<CR><LF>
«
Date=
2020
;
13
;
31
KO
«
Date=
<CR><LF>
LIST OF GETTER FOR GYSFLASH CNT
Typical Getter
request
Version=?
Version=
Produit1
Produit2
...
Serial=?
Serial=
Product_info=?
Product_info=
P roduct_name=? Product_name=
10
SMART USB MODULE
Setter
request: control + data
request: control + status
<CR><LF>
» the computer asks to start the load.
<CR><LF>
» the SUM returns the correct acknowledgement of the order.
» asks for the status of the current process.
<CR><LF>
» returns the value requested here IDLE (stopping process).
» request for Getter badly formed, the command name does not exist.
» returns an error response.
;
08
;
53
;
10
<CR><LF>
» updates the product date with a wrong value (MM=13).
» returns an error status.
Gysflash CNT answer
;
HW_version1
;
SW_version1
;
HW_version2
;
SW_version2
Produit1
;
SN1
;
Produit2
;
SN2
U
;
I
product_name
Names
Produit1
e.g.:
;
Produit2
GYSFLASH 121.12 CNT
Smart USB module
HW_version1
e.g.:
HW_version2
HW 1-2
HW E0046IND1-0
SW_version1
e.g.:
SW V06.01
SW_version2
...
Produit1
e.g.:
Produit2
GYSFLASH 121.12 CNT
Smart USB module
SN1
e.g.:
SN2
20.02.026971.000001
U
0
to
48
I
0
to
120
product_name
e.g.:
GYSFLASH 121.12
CNT
Getter
request: control
answer: control + data
request: control + status
Arguments
Possible values
Name(s) of the product(s) pre-
sent on the SMC network
Associated hardware version
Associated software version
Name(s) of the product(s) pre-
sent on the SMC network
Associated serial number
in V
Charger voltage
in A
Current charger
Charger's name
EN
OR
Description