LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Bluetooth Low Energy - TI CC2541 Sensortag

Hi

I would like to connect the Sensortag CC2541 from TI http://processors.wiki.ti.com/index.php/Category:BluetoothLE?DCMP=blestack&HQS=ble-wiki using the USB dongle CC2540 to Labview. Sensortag has a number of sensors eg accelerometer, gyrometer, temperature, pressure

Any idea how to approach such a project?

I found a good project where Kamil is using C# to read data from the USB dongle and send commands to the  sensortag

http://www.orcs.sebsoft.com/index.php/79-vision/72-how-to-acquire-data-by-c-from-bluetooth-4-bluetoo...

Can this be of help?

I assume to make the connection via com port is straight forward. I am not sure how to send receive the GATT commands.

Greetings Gernot

Message 1 of 2
(6,129 Views)

Hi Gernot.

 

 

I think there are two ways to approach getting data from over bluetooth using the CC2540. I don't have any experience with this device myself, but I have some ideas of how we might get this one to work.

 

The first is to set up a client as you can find in the LabVIEW shipping examples using the built in Bluetooth VI's. All you will need to connect to the server is the address of the server (and the port?). There is some information about getting the address of the CC2540 in the user manual. Also, have a look at this example: Community: Bluetooth Discovery in LabVIEW.

 

In the same manual, TI is showing how to use their own tool called BTool. It seems like they are sending serial commands. So the second option is to communicate with the USB dongle as if it was a serial port using the VISA Read and Write VIs. The user manual gives a lot of information for doing communication using BTool which is essentially just a wrapper for serial communication with the device, so I think it should be possible to adapt the commands shown in BTool to a VISA Serial Read and Write.

 

In section 4.7 of the manual, it states that their should exist some additional sample projects - including source code files. That way you can get a understanding of what kind of commands they are using for the various tasks.

 

I hope this will help you getting started.

 

Best Regards

Alex E. Munkhaus
Certified LabVIEW Developer (CLD)
System Engineer
0 Kudos
Message 2 of 2
(6,065 Views)