This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

HELP USB cc2511

Other Parts Discussed in Thread: CC2511

I am new to the programming of the USB controller on the cc2511. i have programmed the dongle to scan and i have saved the rssi values in an array. i want to setup the dongle to transfer this array to the pc via the USB controller. i have had a look at the software examples and the cc2511 manual but i am confused on how to go  about writing the code to transfer this data. I need to have this done in 2 days and i am asking for help on how i can configure the cc2511 dongle to transfer the data? Please feel free to make suggestions or supply any simple sample code. thank you your help will be greatly appreciated.

  • Hi,

    if you have downloaded the USB software example I would recommend you to have a look at the example called "rf-modem". This USB example implements a USB class called "Communication Device Class" (CDC) and "Abstract Control Model" (ACM) subclass of the USB spec (see list of available classes here). The CDC-ACM class is often used, as it on most operating systems will be recognized as a vitual serial port / COM port, and can be used as a regular serial port for transferring data with any PC application.

    If you base your code upon the CC2511-side example of "rf_modem" then you've come a long way. For (virtual) serial ports, one often uses a simple terminal program (on Windows one has HyperTerminal, but better, free alternatives exists, e.g. "Bray terminal") to do initial debugging. You could e.g. make a serial port protocol over the virtual COM port so that the USB dongle will wait for a command byte before it dumps/writes its RSSI values back to the PC.

    If you get the USB dongle to become recognized as a serial port (using the .inf device file, that relies on the included usbser.sys windows driver), you could try to connect to the dongle and send some characters from the PC and check with a debugger on the CC2511 dongle if it's able to receive the data.

  • i have had a look at that example but the code it too complicated for my level of understanding currently. The function of the device1 as referenced in the code is similar to what i would like to complete but i need the dongle to function as a virtual com port and also do the rf scan to get the rssi values then transfer to computer accordingly. I am lookin for something that is simple to work with like just the code for allowing the dongle to be referenced as a connection to the com port, i will then add the rf code i have and together with my pc side application transfer the data appropriately. the problem i am having is getting rid of the code from that example that i do not need and adding my own rf code.