Editing Talk:SW2-303
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 3: | Line 3: | ||
== 1 wire uart comms == | == 1 wire uart comms == | ||
c5 command response | |||
01 - soh = start of heading(command sending to chip) | 01 - soh = start of heading(command sending to chip) | ||
02 - stx = start of text/start transmission(marker for start of reply from chip) | 02 - stx = start of text/start transmission(marker for start of reply from chip) | ||
03 - etx = end of text/end transmission(marker for end of reply from chip/end of command data sent to chip) | 03 - etx = end of text/end transmission(marker for end of reply from chip/end of command data sent to chip) | ||
format of messaging | format of messaging | ||
<stx/soh><length><command/error><data><checksum><etx> | <stx/soh><length><command/error><data><checksum><etx> | ||
=== checksum === | === checksum === | ||
Command frame: LEN + COM + all of command information | Command frame: LEN + COM + all of command information | ||
Data frame: LEN + all of data | Data frame: LEN + all of data | ||
01 01 c5 3a 03 = get version c5 | 01 01 c5 3a 03 = get version c5 | ||
02 01 06 f9 03 = ack response | 02 01 06 f9 03 = ack response | ||
02 06 00 00 00 01 00 00 f9 03 = 00 00 00 01 00 00 | 02 06 00 00 00 01 00 00 f9 03 = 00 00 00 01 00 00 | ||
device version:0.00 | device version:0.00 | ||
firmware version: 1.00 | firmware version: 1.00 | ||
DV1: Integer of device version (fixed to 00H) | DV1: Integer of device version (fixed to 00H) | ||
DV2: First decimal place of device version (fixed to 00H) | DV2: First decimal place of device version (fixed to 00H) | ||
DV3: Second decimal place of device version (fixed to 00H) | DV3: Second decimal place of device version (fixed to 00H) | ||
FV1: Integer of firmware version | FV1: Integer of firmware version | ||
FV2: First decimal place of firmware version | FV2: First decimal place of firmware version | ||
FV3: Second decimal place of firmware version | FV3: Second decimal place of firmware version | ||