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.

Communicate with CC2541 (HostTest) through RealTerm

Other Parts Discussed in Thread: CC2540, CC2541

I'd like to create my own application to communicate over BLE with CC2540 using HostTest project. I've used Btool for this purposes but i need to do the same in my application.

As first step i want to learn to control CC2540 by Real Term so that then i just need to communicate with cc2540 as a serial port.

Is it possible? How can i try to do this?

Thanks, 

Marco

  • Maybe my question could be a little bit ambiguous. I try to explain better.

    I need to communicate with CC2541 from my java application using CC2540 with HostTest loaded.
    I want to use dongle since there are no java libraries for BLE. So i want to use dongle and communicate with it as a serial port from java app.

    Thanks.
  • Hi Marco,

    Yes this is certainly possible. What I recommend is starting by reading up on the TI_BLE_Vendor_Specific_HCI_Guide that is contained within the documents folder of the BLE stack. BTool and other PC tools use the HCI command interface to control the HostTest dongle. If you implement an HCI communication layer in your Java app, you should be able to control the dongle.
  • Ok, thanks for the answer. I'd like to test serial communication by using real term before then implement  the communication layer in my Java app.

    Is there a guide which i can refer to? 

    Are there any example (source code) application which implement HCI communication layer? 

    Thanks,

    Marco.