Anonymous

Project:RELaserSoftware/USB protocol: Difference between revisions

From London Hackspace Wiki
m
formatting
No edit summary
m (formatting)
Line 32: Line 32:
All USB command follow the same format:
All USB command follow the same format:
<pre>
<pre>
host  01 05:    sending 1 byte: are you there?
host  01 05             sending 1 byte: are you there?
laser 04:    yes I am here
laser 04                 yes I am here
host  05 01 01 10 06 e8:    sending 5 bytes, 1 byte payload, always 1, 10 is the command, 06 is the payload, e8 is the checksum
host  05 01 01 10 06 e8 sending 5 bytes, 1 byte payload, always 1, 10 is the command, 06 is the payload, e8 is the checksum
laser 06:    OK, I received and understood (ACK)
laser 06                 OK, I received and understood (ACK)
laser 05:    host, are you there?
laser 05                 host, are you there?
host  01 04:    sending 1 byte, yes i am here
host  01 04             sending 1 byte, yes i am here
laser 00 01 10 00 ef:     0 bytes payload, always 1, repeating the command sent, payload would be here, 00 is OK (81 is checksum error), checksum
laser 00 01 10 00 ef    0 bytes payload, always 1, repeating the command sent, payload would be here, 00 is OK (81 is checksum error), checksum
host  01 06:    sending 1 byte, OK (ACK)
host  01 06             sending 1 byte, OK (ACK)
</pre>
</pre>


17

edits