Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Discovering Bluetooth Devices and Services (Mobile Module)

LabVIEW 8.6 Mobile Module Help
June 2008

NI Part Number:
372508A-01

»View Product Info

Bluetooth discovery is the process of finding devices and services you can connect to.

Bluetooth Device Discovery

Use the Bluetooth Discover function to search for Bluetooth devices within the range of the Bluetooth network. This function returns a list of device addresses and names. The client application uses the device addresses to connect to a specific Bluetooth server. You can set a time limit for device discovery. Set the time limit ms input to 0 to return a list of locally installed Bluetooth devices.

The process of discovering Bluetooth devices can be a slow operation. The longer the time limit, the more Bluetooth devices you can discover. If you know the Bluetooth address of the specific device you want to connect to, you can skip the discovery process and use the Bluetooth Open Connection function to connect to the device directly.

Bluetooth Service Discovery

Use the Bluetooth RFCOMM Service Discovery VI to perform a Service Discovery Protocol (SDP) query to search for available Bluetooth services from a Bluetooth address. This VI returns a list of available services and the associated channel for the service. Use the channel number to open a Bluetooth connection using the Bluetooth Open Connection function.

Note  If you use the Microsoft Bluetooth driver, the Bluetooth RFCOMM Service Discovery VI does not return the service name in the service list output. All other outputs in this VI return the correct information.

Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit