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.

cc2540 usb dongle in ubuntu

Other Parts Discussed in Thread: CC2540, CC2564

hello,

i have been trying to use the cc2540 usb dongle with bluez in linux but without any success.

i googled and also searched it in this forum and did not get any solution.

can you please provide with a firmware for the cc2540 usb dongle so that it can be used as a general usb dongle or something that can work with linux too?

or if theres already a solution for this in the forum please point me towards that.

thank you

  • Hello,

    CC2540 is single mode and supports all the HCI commands for bluetoothLE.  BlueZ may be looking for dual mode device. CC2564 fits along those lines.  I haven't looked at BlueZ in a while. If they have support for single mode (LE only) then HostTestRelease should work.  If you just want to connect to peripeheral and get data, then use CDC serial port and drive device with HCI vendor specific commands Linux application.

    BR,

    -Greg

  • i got the python code to do it from the ble wiki pc examples

    the default scan duration in the central role is quite too long for me.

    How to reduce the scan duration ? can it be done through hci commands or do i have to edit the host test release app?

    can you please provide the necessary code or command?

  • Hi bhardwaj,

    I want to use the cc2540 with ubuntu. If u have succeeded with this can u plz provide inputs to me.

    Regards,
    Sainath
  • Hey Sainath,

    Yes i did get the cc2540 usb dongle to work with ubuntu using python.
    It just requires you to send the HCI vendor specific commands over the CDC serial port and it would reply with the responses accordingly.
    All i had done was scanning for devices range using it, never made any communication over pairing but i guess it can be done without much difficulty using the HCI commands.
    Give me some time to dig up my codes if you want any specific help.

    Regards,
    Navaneeth Bhardwaj
  • Hi Bhardwaj,

    When I am connecting the TI's usb dongle to the system the ttyACM* dev node is created. I have used some python scripts through which able to scan & pair up with the keyfob. But now when I see the HCI vendor specific commands I am not understanding how to use them. So can you please guide me in using those commands.


    Regards,
    Sainath
  • Hi Sainath,

    I am facing an issue while using python script. I am able to perform discovery but host is not getting paired with peripheral. Can you guide me how you done that?

    Thanks a lot.