LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Send/Receive Audio to Bluetooth Device Using Labview

Hello,

 

I am trying to setup an audio loopback test for a bluetooth headset PCB using Labview. The purpose of the test is to test the bluetooth chipset audio capabilities, codec, and PCB audio circuitry at the PCB electronics level without a speaker and microphone physically attached. I can discover and connect to my device over bluetooth but I have been unable to figure out how to then send the headset audio to record in over the mic input and play it back out of the device speaker output so I can then analyze the sine wave coming out of the device speaker output. I see in the help that Labview can only handle ASCII string data using the built in Bluetooth Read/Write nodes and so I am assuming that I can't use those for waveform data. If I am connected to my bluetooth device using Labview is there anything I can do with ActiveX Property Nodes, etc in order to send and receive the audio. I noticed that when I am connected to the device using Labview I still can't see the headset as a bluetooth audio playback/recording device within the Win7 ControlPanel/Sounds utility.

 

Thanks,

Aaron     

0 Kudos
Message 1 of 9
(7,620 Views)

Hello Aaron,

 

Here is a link to the details on Developing Bluetooth Applications with LabVIEW. In the section titled "Setup and Requirements" you will see that the bluetooth device must be compatible with the Microsoft Bluetooth driver to work with LabVIEW.

 

2012-01-16_174432.jpg

 

ALso, if you are using a bluetooth device that uses A2DP, Windows does not have a built-in profile for these devices. Please check and see what device profile you need and if your device is supported by the Microsoft Bluetooth driver.

 

Regards,

 

Jeff L.

0 Kudos
Message 2 of 9
(7,575 Views)

Jeff,

 

I have a dongle that is compatible with the Microsoft Bluetooth stack and I am trying to use the Headset Profile. As I state in my original post I can connect and talk to the board just fine using the built in Labview Bluetooth functions. My problem is that I am trying to figure out how to send and receive audio through the mic input and speaker output of the CSR BC5MM chipset while the board is paired with the PC via Labview.

 

-Aaron

0 Kudos
Message 3 of 9
(7,556 Views)

Hello Aaron,

 

I don't have the hardware you are testing so I won't be able to try this out. However, if you have any code that you are working on you could post screenshots of it. Are you receiving errors when you run your code?

 

Regards,

 

Jeff L.

0 Kudos
Message 4 of 9
(7,541 Views)

Hi Jeff

  May i ask do you have any progress for this issue because i have the same problem with you.

 

Thanks

Daniel

0 Kudos
Message 5 of 9
(7,028 Views)

Hi Daniel,

 

Jeff posted his reply to this thread nearly 2 years ago!  I don't think he's in the department anymore.  What seems to be the issue you're having?  

Julian R.
Applications Engineer
National Instruments
0 Kudos
Message 6 of 9
(6,988 Views)

HI Julian

  Because i want to take bluetooth A2DP function to send audio between BT each other. Because Labview got bluetooth function VI so i want to ask how to achieve audio function in labview.

 

Thanks

Daniel

0 Kudos
Message 7 of 9
(6,956 Views)

Hi Daniel,

 

What Bluetooth chipset (brand/part) are you working with?

 

I found that I could not acheive the goal I had with my Bluetooth test setup given the standard set of Labview Bluetooth VIs. I think that this was more a limitation of my company's custom firmware and Bluetooth profile running on our CSR vMM5 chipset than it was a limitation of Labview.

 

I ended up having to write a custom C++ DLL that would interact properly with our custom Bluetooth profile, firmware, and drivers in order to play and record RAW audio stimulus files to and from our CSR Bluetooth chipset. It works like a champ in my application but it is custom and propriotary to my company so it probably wouldn't do you much good.

 

If you figure out an all Labview based solution please let me know. Sorry I can't be of more help.

 

Regards,

Aaron

 

0 Kudos
Message 8 of 9
(6,945 Views)

Hi,

 

There are many resources online for developing Bluetooth applications, and there is also a Bluetooth Toolkit, which may provide more of the functionality you're looking for.  Here are some resources I found:

 

Developing Bluetooth Applications with LabVIEW

 

How to make your Bluetooth device work with LabVIEW

 

Also check out this forum thread, about how to communicate with a third party device using LabVIEW: https://forums.ni.com/t5/LabVIEW/How-to-communicate-with-third-party-bluetooth-device-using/td-p/163...

 

Bluetooth Toolkit: https://www.ni.com/en/support/downloads/software-products/download.test-toolkit-for-bluetooth.html

 

Please let me know if you'd like any more assistance finding resources to help with your Bluetooth development.

 

Have a great day!

Julian R.
Applications Engineer
National Instruments
0 Kudos
Message 9 of 9
(6,923 Views)