-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add documentation for CRTP link services
- Loading branch information
Showing
3 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
title: Link layer services | ||
page_id: crtp_link | ||
--- | ||
|
||
This ports handle various link-related low level services. It most notably host the *null packet* used by the radio | ||
link to pull downlink packets. | ||
|
||
## CRTP channels | ||
|
||
| port | channel | Function | | ||
|------|---------|----------| | ||
| 13 | 0 | [Echo](#platform-commands) | | ||
| 13 | 1 | [Source](#platform-commands) | | ||
| 13 | 2 | [Sink](#app-channel) | | ||
| 13 | 3 | [*Null packets*](#null-packet) | | ||
|
||
## Echo | ||
|
||
Packets sent to the Echo channel are send back unaltered. | ||
|
||
## Source | ||
|
||
When receiving any packet on the source channel, the Crazyflie sends back a 32 bytes packet on the source channel. | ||
|
||
Since protocol version 1, this packet contains the string "Bitcraze Crazyflie" followed by zeros. Before version 1 the | ||
content of the packet was not defined. This allows to detect firmware protocol version bellow 1 (the getProtocolVersion | ||
packet was only implemented after version 1 of the protocol). | ||
|
||
## Sink | ||
|
||
Packet sent to the sink channel are dropped and ignored. | ||
|
||
## Null packet | ||
|
||
Null packets must be dropped. The data part of NULL packet is used for some out-of-band communication at the link | ||
level or by the bootloader. The Crazyflie firmware and lib should ignore them. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters