Difference between revisions of "Robotino3 IO protocol"

From RobotinoWiki
(Created page with "==Description of the data exchange protocol between LPC2378 and COM-Express module over USB== Most of the I/Os comming with Robotino 3 are still connected to a NXP LPC2378 mic...")
 
Line 6: Line 6:
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
!Name
+
!Field name
!Length (bytes)
+
!Bytes
!Value
 
!Escape
 
 
!Description
 
!Description
 
|-
 
|-
 
|Head
 
|Head
 
|1
 
|1
|0xAA
+
|Start of package
|NO
+
|-
|Byte identifying the beginning of a new message
+
|Length
 +
|2
 +
|Length of package payload
 +
|-
 +
|Payload
 +
|
 +
|Payload data
 +
|-
 +
|Checksum
 +
|1
 +
|Calculated from length and payload bytes
 
|}
 
|}

Revision as of 14:07, 6 July 2012

Description of the data exchange protocol between LPC2378 and COM-Express module over USB

Most of the I/Os comming with Robotino 3 are still connected to a NXP LPC2378 microcontroller (MC). In contrast to previous versions of Robotino the interface between the MC and Robotino's internal industral PC is no longer RS232 but USB. This page describes the protocol used for communication between MC and PC over USB.

Package assembly

All data send from PC to MC and vice versa has the form

Field name Bytes Description
Head 1 Start of package
Length 2 Length of package payload
Payload Payload data
Checksum 1 Calculated from length and payload bytes