03-05-2016 03:27 PM
Hi
I am working on a project that requires LabVIEW to communicate with a Raspberry Pi over Bluetooth. The Pi is running Python and using PyBluez for the Bluetooth side.
Preferably LabVIEW will connect to the Pi using a Bluetooth Socket over RFCOMM, however I cannot find a way of opening a socket in LabVIEW, only a channel. Using the RFCOMM VI's build in to LabVIEW I am able to see the Pi (the MAC and device name are found) but not connect to it.
Does anyone know if this is even possible? I am currently using LabVIEW 2013 but upgrading to a later version is an option if this support is included.
Cheers,
Darren.
Solved! Go to Solution.
03-08-2016 03:38 AM
Hi DazzaNL,
Are you trying to use LabVIEW as a Server or a Client? If you are using LabVIEW as a Client you should be able to use the Bluetooth Open Connection VI to connect to a Server.
The locations of the examples for Bluetooth that ship with LabVIEW are given in this White Paper and include an example of using LabVIEW as a Server:
http://www.ni.com/white-paper/3260/en/
Hope this helps you,
03-08-2016 06:24 AM
Hi Joe,
Thank you for your reply.
LabVIEW is used as the client for this project.
I have seen the white paper you link to, however I didn't see the part on finding the channel number using the RFCOMM Service Discovery vi.
I will check this and then post back with the progress!
Cheers,
Darren.
03-13-2016 10:09 AM
Hi Joe,
Using the details in the white paper (as well as a bit of trial and error) it was possible to do what I needed.
Thanks for pointing me in the right direction!
Cheers,
Darren.