LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview low energy Bluetooth arduino (Bluefruit LE 32u)

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

0 Kudos
Message 1 of 4
(3,521 Views)

I'd like to point you to a few references that should get you going.

 

Developing Bluetooth Applications in LabVIEW:

https://www.ni.com/en/support/documentation/supplemental/06/developing-bluetooth-applications-with-l...

 

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

https://forums.ni.com/t5/LabVIEW/How-to-communicate-with-third-party-bluetooth-device-using/td-p/163...

 

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.

 

 

0 Kudos
Message 2 of 4
(3,471 Views)

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.

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 3 of 4
(3,462 Views)

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

0 Kudos
Message 4 of 4
(3,459 Views)