This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
projects:crazyflie:crtp [2013-04-02 15:36] arnaud [Serial port] |
projects:crazyflie:crtp [2013-04-02 15:41] arnaud [Layers] |
||
---|---|---|---|
Line 22: | Line 22: | ||
CRTP is implemented in 3 layers: | CRTP is implemented in 3 layers: | ||
- | <code> | + | <ditaa> |
| | ||
| | ||
Line 30: | Line 30: | ||
| | ||
| | ||
- | </code> | + | </ditaa> |
* **CRTP Link** is responsible for transferring the packets between the Crazyflie and the host. It will typically handles packet size and error detection. | * **CRTP Link** is responsible for transferring the packets between the Crazyflie and the host. It will typically handles packet size and error detection. | ||
Line 54: | Line 54: | ||
===== USB port ===== | ===== USB port ===== | ||
This is currently not implemented but it will potentially replace the serial port link. The use of this is to get CRTP at higher speeds than the radio can transmit. | This is currently not implemented but it will potentially replace the serial port link. The use of this is to get CRTP at higher speeds than the radio can transmit. | ||
+ | |||
+ | ===== Serial port ===== | ||
+ | The serial port is configured in 115200 8N1. CRTP packets are sent and received asynchronously using the following packet format: | ||
< | < | ||
Line 69: | Line 72: | ||
+---+---+---+---+---+---+---+---+ | +---+---+---+---+---+---+---+---+ | ||
: : | : : | ||
- | +---+---+---+---+---+---+---+---+ | ||
- | | DATA 30 | | ||
+---+---+---+---+---+---+---+---+ | +---+---+---+---+---+---+---+---+ | ||
| Cksum | | | Cksum | | ||
Line 88: | Line 89: | ||
| Data | | Data | ||
| | | | ||
- |