Operating manual
PROTOCOL
The computer always initiates commands with a request, the SWM always responds. If the SWM does not respond
within 500 ms, it is no longer functioning.
The SWM supports two types of request-response : 'setter' and 'getter'. The first option, setter, applies a value to the
product. The second option, getter, is used to read a value from the product.
Every command has at least one associated data item (variable). For the setter request response, the data are sent
with the command in the request. For the getter, the data are received in the response with the associated command.
The SWM returns a status update in its response to indicate that the order has been acknowledged. The setter response
always contains the command and status update. For the getter, the response contains the command and the data,
provided everything works well. Otherwise, the response will contain the order and status update.
request : command + data
response : command + status
SYNTAX
The exchanges between the computer and the SWM are done using ASCII characters.
Each request and response ends with <CR><LF> (or 0x0D0A or «\r\n»).
The command name does not contain spaces.
The command name will be followed by an equals sign (=).
In both a setter request and a getter response, the data will follow the equals sign (=). They will be separated by a semi-
colon (;). For decimal data, the decimal separator is the full stop (.). The data are represented without units.
For a getter request, a question mark (?) will follow the equals sign (=).
The status update has two values: «OK» or «KO».
Example of exchanges between the computer and the SWM:
«
Process_state=
run
<CR><LF>
Process_state=
OK
<CR><LF>
«
Process_state=
?
<CR><LF>
«
«
Process_state=
idle
<CR><LF>
«
Process_sta=
?
<CR><LF>
«
Process_sta=
KO
<CR><LF>
«
Date=
2020
;
13
;
31
;
08
«
Date=
KB
<CR><LF>
GYSFLASH CNT GETTER LIST
Getter Request
Type
Version=?
Version=
Product1
Product2
etc.
Serial=?
Serial=
N2
etc.
Product_info=?
Product_info=
P roduct_name=?
Product_name=
12
Translation of the original
instructions
Setter
» the computer asks to start the charging process.
» the SWM has successfully processed the command.
» requests the current process status.
» returns the requested value here IDLE (process stopped).
» poorly formatted getter request, command name does not exist.
» returns an error response.
;
53
;
10
<CR><LF>
» updates the product date with a false value (MM=13).
» returns an error status.
SWM response
;
HW_version1
;
SW_version1
;
HW_version2
;
SW_version2
Product1
;
SN1
;
Product2
;
S-
U
;
I
product_name
SWM
Names
Possible Values
Product1
e.g.:
;
Product2
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
Product1
e.g.:
Product2
GYSFLASH 121.12 CNT
Smart USB Module
SN1
e.g.:
SN2
20.02.026971.000001
U
0
-
48
Volts
I
0
-
120
Amps
product_name
GYSFLAHS
e.g.:
CNT
SMART WIRELESS MODULE
Getter
request : command
response : command + data
response : command + status
Variables
Description
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
Charger voltage
Charger current
121.12
Charger name
SUM
SWM
OR