This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
doc:crazyradio:usb:index [2012-03-28 20:44] arnaud created |
doc:crazyradio:usb:index [2012-04-02 09:07] arnaud [Dongle configuration] |
||
---|---|---|---|
Line 14: | Line 14: | ||
==== Dongle configuration ==== | ==== Dongle configuration ==== | ||
+ | The following vendor control messages are implemented in the radio dongle: | ||
+ | |||
+ | ^ Control message | ||
+ | | SET_RADIO_CHANNEL | 0x01 | SET | One 8bit integer representing the radio channel to set from 0 to 125 | | ||
+ | | SET_RADIO_ADDRESS | 0x02 | | ||
+ | | SET_DATA_RATE | ||
+ | | LAUNCH_BOOTLOADER | 0xFF | - | Resets the dongle in nRF24LU1 bootloader mode. The dongle has to be disconnected and reconnected in order to restart in crazyradio mode | | ||
+ | |||
+ | Possible values for the datarate: | ||
+ | ^ Value ^ Radio datarate ^ | ||
+ | | 0 | 250Kbps | ||
+ | | 1 | 1MBps | | ||
+ | | 2 | 2Mbps (Default)| | ||
==== Data transfer ==== | ==== Data transfer ==== | ||
+ | The radio dongle is configured in PTX mode (in the Nordic terminology) which means that it sends packet to the copter and waits for the acknowledge. The acknowledge can contains a Payload which is the mean to get data from the copter. | ||
+ | |||
+ | The packet is to send is sent to the EP1 and the ack status is then received from the EP1. There are no buffering in the radio dongle, the ACK must be received by the PC before the next packet can be sent. | ||
+ | |||
+ | < | ||
+ | | ||
+ | < | ||
+ | +-------------------------+ | ||
+ | To EP1_OUT: | ||
+ | +-------------------------+ | ||
+ | 1..32 Bytes | ||
+ | 1Byte < | ||
+ | +-----+----------------------+ | ||
+ | From EP1_IN: | ||
+ | +-----+----------------------+ | ||
+ | </ | ||
+ | |||
+ | This protocol permits to transfer about 500 packets per seconds. | ||
===== Radio protocol ===== | ===== Radio protocol ===== | ||