1. Write to memory
Using this command the data is written into the device non-volatile memory. The maximum
length of data that could be written with one command is 64bytes. The device’s internal
memory store the vending settings, counters, prices, etc. It is possible to modify, at any
time, any of the device’s settings, reset the counters, etc. After modifying the vending
configuration, the user application must send a reset command to the device. Prices and
counters modification does not need a reset.
<HEADER>
(B0)
<CMD>
(B1)
<PARAMETERS>
(B2 to Bn)
<CRC>
(Bn + 1)
0xFA
0x01
- B2-B3 – beginning address to write (for example 0x02 0x58 means that the first byte will
be written at address decimal 600)
- B4-Bn – data bytes to be written starting with address [B2:B3]
CRC
Device response
ACK or NACK, according to the command execution result
WARNING!
Writing wrong values for some parameters may put the device in an unstable or
unknown state. You are responsible to manage parameter settings to keep the
interface working. Be careful modifying those parameters and please make sure you
clearly understand the meaning of each parameter.
2. Read from memory
Using this command the data could be read from device’s non-volatile memory. The
maximum length of data that could be read with one command is 64 bytes. The device’s
internal memory store the vending settings, counters, prices, etc. It is highly recommended
to read memory locations after write operations, to ensure that data was correctly written.
<HEADER>
(B0)
<CMD>
(B1)
<PARAMETERS>
(B2 to Bn)
<CRC>
(Bn + 1)
0xFA
0x02
- B2-B3 – beginning address to read (for example 0x02 0x58 means that the first byte will
be read from address decimal 600)
- B4-B5 – data length
CRC
Device response
0xFA
0x02
- B2 → Bn – data bytes read from memory
CRC
3. Device reset
Using this command the user’s application can reset the device at any moment. After
reset, the vending settings are reloaded and the current credit is set to 0.
<HEADER>
(B0)
<CMD>
(B1)
<PARAMETERS>
(B2 to Bn)
<CRC>
(Bn + 1)
0xFA
0x03
No parameters
0xF9
Device response
ACK or NACK, according to the command execution result