This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
doc:crazyradio:usb:index [2012-05-10 22:37] arnaud |
doc:crazyradio:usb:index [2012-05-11 07:36] arnaud |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Usb and Radio protocol of the Crazyradio dongle ====== | ====== Usb and Radio protocol of the Crazyradio dongle ====== | ||
- | The Crazyradio dongle is based on a Nordic semiconductor nRF24LU1 chip. The radio communication is done using the Nordic " | + | The Crazyradio dongle is based on a Nordic semiconductor nRF24LU1 chip. The radio communication is done using the Nordic " |
This page document the protocol used in the version 0.40 of the Crazyradio dongle. Future version (up to 1.0) will be kept compatible. | This page document the protocol used in the version 0.40 of the Crazyradio dongle. Future version (up to 1.0) will be kept compatible. | ||
Line 14: | Line 14: | ||
==== Dongle configuration ==== | ==== Dongle configuration ==== | ||
- | Crazyradio vendor requests: | + | Crazyradio vendor requests |
^ bmRequestType ^ bRequest | ^ bmRequestType ^ bRequest | ||
Line 26: | Line 26: | ||
| 0x40 | LAUNCH_BOOTLOADER (0xFF) | Zero | Zero | Zero | None | | | 0x40 | LAUNCH_BOOTLOADER (0xFF) | Zero | Zero | Zero | None | | ||
+ | === Set radio channel === | ||
+ | ^ bmRequestType ^ bRequest | ||
+ | | 0x40 | SET_RADIO_CHANNEL (0x01) | channel | ||
+ | |||
+ | The nrf24L chips provides 126 Channels of 1MHz from 2400MHz to 2525MHz. The channel parameter shall be between 0 and 125 (if not the command will be ignored). | ||
+ | |||
+ | The radio channel is set as soon as the setup transaction is completed which takes about 1ms. The new frequency is going to be used for the following transfered packets. | ||
+ | |||
+ | === Set radio address === | ||
+ | |||
+ | ^ bmRequestType ^ bRequest | ||
+ | | 0x40 | SET_RADIO_ADDRESS (0x02) | Zero | Zero | 5 | Address | | ||
+ | |||
+ | === Set datarate === | ||
+ | |||
+ | ^ bmRequestType ^ bRequest | ||
+ | | 0x40 | SET_DATA_RATE (0x03) | ||
Possible values for the datarate: | Possible values for the datarate: | ||
Line 33: | Line 50: | ||
| 1 | 1MBps | | | 1 | 1MBps | | ||
| 2 | 2Mbps (Default)| | | 2 | 2Mbps (Default)| | ||
+ | |||
+ | |||
+ | === Set radio power === | ||
+ | |||
+ | === Configure auto retry (ARD/ARC) === | ||
+ | |||
+ | === Continuous carrier mode === | ||
+ | |||
+ | === Launch bootloader === | ||
+ | |||
+ | |||
==== Data transfer ==== | ==== Data transfer ==== | ||