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.

Linux Device driver for CC2531EMK USB dongle?

Other Parts Discussed in Thread: CC2531, Z-STACK

Hello,

I am working with CC2531 EMK USB dongle. I would like to connect this dongle to Linux system.

Can anyone help me which Linux driver is required to mount this device on Linux System?

Thanks

  • Hi,

    Please see the following thread:

    http://e2e.ti.com/support/low_power_rf/f/155/t/36405.aspx#127029

    Cheers,

    M.

  • Hi Sunny,

     

    Do you want to connect it without any Z-Stack example running on it?

    It might be an issue, especially on the Linux side, cc2531 dongle FW

    can be taken from TI website, as an USB examples and then changed

    in a day or two to meet the requirements of cc2531 Side.

     

    On the other hand, if you are using, let's say, the serialApp FW (this is an

    sample application distributed with Z-Stack), it can be easily addopted

    to cc2531 devices, and act like a CDC device, which must be recognized by

    most versions of Linux OS.

  • Hi Igor,

    Thanks for your response. My intention is I would like to enable the serial interface of CC2531 USB dongle and communicate it with C test application running on Linux. So I am looking is there any device driver like CP210x USB to UART bridge. I am not aware of any identified driver available on Linux please suggest the name.

    Thanks

    Sunny

  • Hi Sunny,

     

    Before we proceed more deeply into the drivers part, may I know what is your intentions

    regarding the dongle itself, as it may change the overall thinking. :)

    Is in any stage you are willing to run a Z-stack on it, if yes, what kind of solution (generally

    speaking?)

  • Hi Igor,

     

    My intention is running HA On-Off sample switch FW on CC2531 dongle and send the toggle command from C program running on Linux.

    My intention steps are

    1.       HA Serial application FW is available in Samples need to flash on CC2531 USB Dongle. (will compile as ZC application). I will eable HA on-off client cluster. 

    2.       Join and bind any device which implemented the On-Off server cluster to ZC (CC2531 USB dongle)

    3.       Implement the serial interface functionality using C to communicate with CC2531

    4.       After successful initialization sends the ZCL light toggle command (custom command which implemented ZC side also) to ZC which will toggle the joined device

     

    Here I am struck at point 3 as this CC2531 is not mounted on my Linux machine. That’s why I am searching the device driver which can mount this dongle.

    Thanks

    Sunny

  • Linux has standard CDC driver which will connect and talk to the CC2531 which will appear as a serial port device to your linux OS - see this post:

    http://e2e.ti.com/support/low_power_rf/f/155/t/67770.aspx

    Which makes this link reference:

    http://lxr.linux.no/linux+v2.6.38/drivers/usb/class/cdc-acm.c