User Tools

Site Tools


doc:crazyradio:usb:index

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
doc:crazyradio:usb:index [2012-05-14 07:50]
arnaud [Dongle configuration]
doc:crazyradio:usb:index [2012-05-14 08:08]
arnaud [Dongle configuration]
Line 65: Line 65:
  
 === Set radio power === === Set radio power ===
 +
 +^ bmRequestType ^ bRequest                 ^ wValue   ^ wIndex ^ wLength ^ data    ^
 +|          0x40 | SET_RADIO_POWER (0x04)   | Power    | Zero   | Zero    | None    |
 +
  
 === Configure auto retry (ARD/ARC) === === Configure auto retry (ARD/ARC) ===
 +
 +^ bmRequestType ^ bRequest                 ^ wValue   ^ wIndex ^ wLength ^ data    ^
 +|          0x40 | SET_RADIO_ARD (0x05)     | ARD      | Zero   | Zero    | None    |
 +|          0x40 | SET_RADIO_ARC (0x06)     | ARC      | Zero   | Zero    | None    |
 +
 +After sending a packet the radio automatically waits for an acknowledge. ARD and ARC permits to configure the delay the radio waits for the acknowledge and the number of time the transfer will be retried in case the acknowledge is not received in that delay.
 +
 +The delay ARD depends of the length, in second, of the ack packed. This depends of the datarate and the Payload length contained in the Ack packet. The ARD can be configured either by step of 250us or by ack payload length. If the ack payload length is configured the time will be recalculated automatically even if the datarate is changed. To set the Ack payload lenght the bit 7 of Ard must be set (length | 0x80)
 +
 +Possible values for ARD:
 +
 +^ Value ^ ARD wait  time ^          ^ Value ^ Ack payload length ^
 +|  0x00 | 250us          |          |  0x80 | 0Byte              |
 +|  0x01 | 500us          |          |  0x81 | 1Byte              |
 +|   ... | ...            |          |   ... | ...                |
 +|  0x0F | 4000us                  |  0xA0 | 32Bytes            |
 +
 +ARC configures the number of time the radio will retry a transfer if the Ack has not been received, it can be set from 0 to 15.
 +
 +By default ARD=32Bytes (0xA0) and ARC=3.
  
 === Continuous carrier mode === === Continuous carrier mode ===
  
 === Launch bootloader === === Launch bootloader ===
- 
  
 ==== Data transfer ==== ==== Data transfer ====
doc/crazyradio/usb/index.txt · Last modified: 2020-05-12 14:12 by kimberly