From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Signal to Bluetooth headset

Solved!
Go to solution

I'm trying to send a signal to a Bluetooth headset that is already paired and working on Windows 10 and failing miserably. I thought this would be a fairly simple thing but after reading the app notes, looking at the examples and combing through the forums, I have found little meat on the bone.

Everything I've tried gives me the ambiguous error 59 or 56. Is this something that has to be done by drilling into .NET, or am I overlooking something? Any pointers would be appreciated.

 

Not this simpleNot this simple

 

0 Kudos
Message 1 of 7
(3,113 Views)

Just to make sure... Have you read these:

 

https://forums.ni.com/t5/LabVIEW/bluetooth-timeout-error-56/td-p/961490

http://digital.ni.com/public.nsf/allkb/D90C4F99C1EF3F6A86256E4A0080A120

https://forums.ni.com/t5/RF-Measurement-Devices/Bluetooth-Application-Error-59/td-p/301402

 

Maybe it won't help you, but at least others trying to answer your question won't have to search the forum for "Bluetooth error 56" and "Bluetooth error 59".

 

I agree, there's not much info about this. I think you're trying to work with the device as if it's a DAQ device. This doesn't seem to be how it works. I think you might need a lot more work to first connect (wait for connection to be accepted), then send the data. But I might be wrong...

0 Kudos
Message 2 of 7
(3,070 Views)

Thanks man.

Yeah, I've read those articles. They deal with TCP and/or setting up separate Bluetooth client/server applications. I was trying to work with the device like an I/O port. Thinking I'm going to have to dig into a .NET solution.

 

0 Kudos
Message 3 of 7
(3,065 Views)
Solution
Accepted by topic author reniam

I may be over simplifying it but it would appear to me that if the BT headset is paired in Windows then it's just a matter of sending the audio tone to the speaker using the audio output vi's and as long as the headset is set to be the default audio device in Windows, Windows will direct it to the headset .

 

No need for the low level BT stuff Windows already took care of that when you paired.   

========================
=== Engineer Ambiguously ===
========================
Message 4 of 7
(3,054 Views)

@RTSLVU:

That sounds exactly like what was attached in the OP, and that doesn't work...

 

The question is why.

0 Kudos
Message 5 of 7
(3,041 Views)

Dude, RTSLVU, you are a gentleman and scholar. Yup, it's that simple. Once paired it just shows up as another speaker. I just wrote a little vi to list the found devices and pick the one I want.

 

Got to revisit William of Ockham's little saying.

 

Thanks man!

 

bt.PNG

 

 

 

 

0 Kudos
Message 6 of 7
(3,025 Views)

@RTSLVU wrote:

I may be over simplifying it but it would appear to me that if the BT headset is paired in Windows then it's just a matter of sending the audio tone to the speaker using the audio output vi's and as long as the headset is set to be the default audio device in Windows, Windows will direct it to the headset .

 

No need for the low level BT stuff Windows already took care of that when you paired.   


Ah. Now it makes sense. Spot on.

0 Kudos
Message 7 of 7
(3,015 Views)