Talk:SW2-303: Difference between revisions
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
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) | ||
Line 14: | Line 16: | ||
=== 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 | ||
Revision as of 16:09, 18 September 2018
µPD78F11BB
1 wire uart comms
c5 command response
01 - soh = start of heading(command sending to 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)
format of messaging <stx/soh><length><command/error><checksum><etx>
checksum
Command frame: LEN + COM + all of command information
Data frame: LEN + all of data
01 01 c5 3a 03 = get version c5 02 01 06 f9 03 = ack response 02 06 00 00 00 01 00 00 f9 03 = 00 00 00 01 00 00
device version:0.00 firmware version: 1.00
DV1: Integer 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) FV1: Integer of firmware version FV2: First decimal place of firmware version FV3: Second decimal place of firmware version