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/CC2650MODA: Host processor to BLE module over SPI - libraries

Part Number: CC2650MODA
Other Parts Discussed in Thread: CC2650, , BLE-STACK, CC2640

Tool/software: Linux

I will be using the CC2650 Launchapd kit. We have a custom imx6 processor board. We need to talk to the BLE module over SPI. The imx6 board will act as the host processor and runs Linux. 

I need to know the sequence of commands/ APIs to send out to the launchpad kit over SPI for the BLE profile/configuration. Is there any library and/or application programmer's guide for the same? 

It will be great if a sample linux code using SPIDEV is available for the same.

  • Hi Akash,

    It sounds like what you're describing is using the CC2650MODA as a network processor. This is totally doable - this is what effectively host_test is (taking HCI commands & vendor specific HCI commands over UART and sending back stack messages)

    You can configure host_test to operate off of SPI instead of UART - getting the result you want.

    As for the sequence of commands, they are totally up to you. Bluetooth Specification Documentation has a list of HCI commands you can use, as well as TI's Vendor Specific commands help get you going. See the HCI Vendor Specific Guide in the docs folder of your SDK for more information on this. The list of Bluetooth HCI commands that can be sent to the network processor is also listed in the CC2640 SW Developer's Guide (SWRU393) for BLE-Stack v2.2.1.

    We don't have any Linux examples unfortunately. Most linux distributions have in-box SPI drivers which can be used to send the HCI and Vendor Specific HCI commands. You can prototype the behavior with BTool or HCITester and use that as a guide for commands needed in your linux environment.

    Regards,
    Rebel

  • Thank you Rebel for your prompt reply.

    I will have a look and come back if I have further queries.

    Regards,

    Akash