Difference between revisions of "Protocols"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
== XModem protocol == | == XModem protocol == | ||
The XModem protocol transmits data in a sequence of blocks. | |||
{| class="xmodem" | {| class="xmodem" | ||
| Block | |||
| Block | |||
| Block | |||
| ... | |||
| Block | |||
|} | |||
where each block is defined in this way (numbers tell the number of bytes for each field): | |||
{| class="xmodem" | |||
! 1 | |||
! 1 | |||
! 1 | |||
! style="width:200px" | 128 | |||
! 1 | |||
|- | |||
| SOH | | SOH | ||
| | | Number | ||
| / | | /Number | ||
| | | Data bytes | ||
| Checksum | | Checksum | ||
|} | |} |
Revision as of 20:18, 7 May 2011
Communication with devices
Here is a commented log when formatting a SSSD floppy disk with the TI disk controller. Actually, this dump was achieved using MESS and putting in some printf lines.
XModem protocol
The XModem protocol transmits data in a sequence of blocks.
Block | Block | Block | ... | Block |
where each block is defined in this way (numbers tell the number of bytes for each field):
1 | 1 | 1 | 128 | 1 |
---|---|---|---|---|
SOH | Number | /Number | Data bytes | Checksum |