03-04-2016 09:05 AM
Hi All,
I am working on a project where I am using the Bluefruit LE 32u to aquire data from a MAX3675 thermocouple and accelertion using the accelerometer ADXL377. I found an example of labveiw VI of a way to discover near by Low energy bluetooth devices. I am also using the BLED112 dongle that appears as a serial port on labview. I was able to dicover the BLE and connect to it, but i was unable to identifiy and read the acutal data from the BLE.
When I read the buffer i revcieve something like this
"uit Bluefruit LE 0E2C€# žÊÜ$ å©à“ó£µ Adafruit Bluefruit LE€# "
like it is not reading the acutal data but the adress or the name of the bluetooth device and i am supposed to recieve tempreture readings and acceleration.
I read from other posts that a call library funcrion is a way to do this. Honestly, i dont know how to do it. since i was able to discove and connect to the BLE device, it should not be very diffecult to read the actual data from it with some functions.
Would someone help or guide me with a way to modify the IV to recieve the actual data?
i am attatching the code. the first loop is to discover and connect to the bluetooth. it contains some sub VIs but i dont think we we need to make modifications to it. it is onle with the second loop that reads the data.
thank you
Hamza
03-07-2016
08:19 AM
- last edited on
05-08-2025
11:41 AM
by
Content Cleaner
I'd like to point you to a few references that should get you going.
Developing Bluetooth Applications in LabVIEW:
In particular with the above article, take a look at "Querying Services Available on a Bluetooth Device"
This second article is a forum post with code from users who have developed a similar application.
How to Communicate With Third Party Bluetooth Device in LabVIEW
Lastly, here is documentation regarding calling a Library
How Do I Call a Dynamic Link Library (DLL) from LabVIEW?
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YGggCAG&l=en-US
I hope this helps.
03-07-2016 09:16 AM
You should consider using simple Bluetooth serial adaptors like the HC-05 (master/slave) ane HC-06 (Slave only)
These bluetooth adaptors are cheap <$5 each and once setup to pair with each other are transperent to LabVIEW and Adruino as they use the Bluetooth Serial Port Protocol.
In LabVIEW tou use VISA just like with any other serial port device and on the Ardunio sketch you use the standard serial commands.
03-07-2016 09:18 AM
thank you for replying, but what you mentioned here is about a classic bluetooth configuration. Working and connecting to low energy bluetooth devices is a different manner l believe. anyways thanks for the reply