26. RTC set
<HEADER>
<CMD>
<SUBCMD>
<PARAMETERS>
<CRC>
0xFE
0x50
0x03
<DATE_TIME> - 7 bytes
- seconds (00 -> 59)
- minutes (00 -> 59)
- hour (00 -> 23)
- Day of week (1 -> 7)
- Day of month (1 -> 31)
- Month (1 -> 12)
- Year (00 ->99)
CRC
RASPIVEND answer
0xFE
0x50
0x03
0xFB – command execution failed
0xFC – command successfully executed
0xFD – command CRC error
CRC
This command will set the date and hour into the RTC.
27. RTC get
<HEADER>
<CMD>
<SUBCMD>
<PARAMETERS>
<CRC>
0xFE
0x50
0x04
[none]
CRC
RASPIVEND answer
0xFE
0x50
0x04
<DATE_TIME> - 7 bytes
- seconds (00 -> 59)
- minutes (00 -> 59)
- hour (00 -> 23)
- Day of week (1 -> 7)
- Day of month (1 -> 31)
- Month (1 -> 12)
- Year (00 ->99)
CRC
This command will read and return the date and hour from the RTC.
© 2016 – AUTOMATROM SRL – www.vendingtools.ro
Содержание RASPIVEND
Страница 22: ...2016 AUTOMATROM SRL www vendingtools ro...
Страница 51: ...NOTES 2016 AUTOMATROM SRL www vendingtools ro...