S76G/S78G Commands Set Reference
v1.6.5
July 2, 2018
16 of 73
Product Name
Version
Doc No
Date
Page
sip set_gpio A 0 1
>> Ok
3.1.12
(production verification) sip get_gpio <Gpio_Group>
<Gpio_Pin_Number>
<Gpio_Group> A string representing STM32 GPIO pin groups, it can be these characters
A, B, C, D, E,
F
and
H
(note: no G).
<Gpio_Pin_Number> A decimal string representing STM32 GPIO pin number, it can be set from
0
to
15
.
Response:
1
, if this GPIO pin state is high.
0
, if this GPIO pint state is low.
Ok
, if input arguments are valid.
Invalid
, if input argument are not valid or out of range.
Purpose: Get the pin state from the assigned GPIO pin.
Example (get PA_2 pin state):
sip get_gpio A 2
>> 1
3.1.13
(production verification) sip get_uuid
Response: A string representing hardware STM32L0 MCU UUID 96-bit value.
Purpose: Each STM32 MCU device has its own unique UUID, use this command to read it out
Example:
sip get_uuid
>> uuid=002400413630373619473630
3.1.14
sip set_storage <EEPROM_Encrypted>
<EEPROM_Encrypted>: a series of ASCII string representing the stored EEPROM encrypted data.
Purpose: To overwrite whole EEPROM data in just one-time, it allows to set its own EERPOM from
another S76G/S78G EEPROM data (
they must use the same HW model and FW version
).
Response:
Ok
, if <EEPROM_Encrypted> string is valid