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.

CC2540EMK-USB: problem with python script for HCI interface with 2540 dongle

Part Number: CC2540EMK-USB
Other Parts Discussed in Thread: CC2650, CC2640, CC2540

Hello,

I am running cc2650 as peripheral and 2540 dongle as host to test peripheral device. I downloaded the python script (linuxHostTest3) from following link:

processors.wiki.ti.com/.../Category:LinuxHostTest3

As it is stated using "D" it performs discovery and then the link can be established with "e" etc...

I am able to do Discovery wit it but it is not establishing the link to the device.

What can be the possible issue? I also tried to set some GAP parameters stated in TI_BLE_Vendor_Specific_HCI_Guide.pdf

but it is still not establishing the connection.

Please help me to resolve the issue. Thanks a lot.

Regards

  • Are you using out of box simple_peripheral example? If not, can you provide the detail regarding modification you have done to the project?

    Can you try to use BTool to see if you are able to connect to the peripheral device?
  • Hello Christin ,

    Thanks for your reply. I have used simple_peripheral and modified the advertising data , Device information services.

    Yes i am able to connect with cc2640 through blesacanner app on android. I have also checked with sniffer. its fine.

    When i send link establish request it shows following result:

     c

    Connection related values are also zero. 



    waiting for your kind reply.

    Regards

  • Can you try to use Btool with CC2540 dongle for testing? Since you are just using CC2540 dongle to test your peripheral device, then it's better and easier to use Btool instead.
  • Hello Christin,

    Thanks for your suggestion. I could not find Btool inside folder \Texas Instruments\BLE-CC254x-1.4.2.2. Can you tell me where i can download it?
    I will try to test using Btool but i also want to do it using python scripts. Now i am able to connect with it but it is not giving correct values of connection interval. any guide what can be the problem?


    Regards