The PDA Module supports Bluetooth communication on PDA devices running Pocket PC 2003 or Windows Mobile 5.0 with the WIDCOMM Bluetooth DLLs version 1.4 or later or the Microsoft Bluetooth driver. Bluetooth communication has low-power consumption with a range of about 30 feet (approximately 10 meters) and is designed for battery-operated devices. Bluetooth is supported for the following:
![]() |
Note Do not install the WIDCOMM Bluetooth DLLs if you have the Microsoft Bluetooth driver or you receive an error when you use the Bluetooth VIs and functions. If your device uses the Broadcom Bluetooth driver, install the LabVIEW WIDCOMM Bluetooth driver by manually copying LVBtw.dll from the labview\PDA\Utilities\Bluetooth directory to the Windows directory. Do not run Setup.exe and do not copy BtCoreIf.dll and BtSdkCE30.dll if they already exist on the device. |
Creating a Bluetooth PDA application involves creating a Bluetooth server application and creating a Bluetooth client application. Creating Bluetooth server and client applications in LabVIEW is similar to creating TCP server and client applications. A Bluetooth server application can use the Service Discovery Protocol (SDP) to broadcast the availability of services and listen for inbound connections. A client application creates an outbound RFCOMM connection to a server application. After the client and server connect to each other, they exchange data until the client or server terminates the connection or the connection is lost.
![]() |
Note The Bluetooth protocol does not have inherent security, although many devices include settings that require clients to log in before accessing Bluetooth services. |
A typical Bluetooth server application involves the following:
Use the Bluetooth Create Listener function to create a service for a Bluetooth server. This function returns a listener ID refnum, which you use to refer to the Bluetooth server in the PDA application, and a channel, which you use to listen for inbound connections. A Bluetooth channel is a global resource with only 30 channels available on any Bluetooth device. You receive an error if there are no available server channels.
Use the Bluetooth Wait On Listener function to wait for an incoming request from a client.
Use the Bluetooth Read function and the Bluetooth Write function to exchange data with the client. You can specify the behavior, or mode, of the read operation.
Use the Bluetooth Close Connection function to stop listening for incoming connections and close the connection to the client.
A typical Bluetooth client application involves the following:
Use the Bluetooth Open Connection function to connect to a Bluetooth server application. You can identify the Bluetooth server by channel or unique identifier. Set the channel input to 0 to use the Bluetooth unique identifier, which is the uuid input, to identify the service you want to connect to.
Use the Bluetooth Read function and the Bluetooth Write function to exchange data with the server. You can specify the behavior, or mode, of the read operation.
Use the Bluetooth Close Connection function to close the connection to the server.