Bluetooth OS Functions (Windows Embedded CE 6.0)
1/6/2010
The functions that you can use when developing your Bluetooth OS design are exported from Btdrt.dll, and are provided to help you develop either a shell or dedicated application functionality in the absence of a WinSock layer. You can call these functions from an application other than the Bluetooth stack layer, in device.exe.
Most of these functions have an equivalent WinSock function, which is the preferred way to access Bluetooth functionality because of convenience and code portability within the Win32 family.
The following table shows the functions that you can use when developing your Bluetooth OS design.
Programming element | Description |
---|---|
This function instructs the Bluetooth stack to accept incoming SCO connections. |
|
This function responds to a request for the personal identification number (PIN) for a Bluetooth device. |
|
This function requests that the existing connection with the peer device be authenticated. |
|
This function cancels the current inquiry operation. |
|
This function clears the Inquiry Filter. |
|
This function closes the specified baseband connection. |
|
This function creates an ACL connection to a device with the specified address. |
|
This function creates an SCO connection to a device with the specified address. |
|
This function places the ACL connection to the peer in Hold mode. |
|
This function places the ACL connection to the peer specified by the Bluetooth address in PARK mode. |
|
This function places the ACL connection to the peer in SNIFF mode. |
|
This function forces the ACL connection to the peer to leave PARK mode. |
|
This function forces the ACL connection to the peer to leave SNIFF mode. |
|
This function retrieves the Bluetooth address based on the specified connection handle. |
|
This function retrieves baseband connection data for all current connections. |
|
This function retrieves handles of all current connections. This is equivalent to BTH_HCI_IOCTL_GET_BASEBAND_HANDLES HCI IOCTL function. |
|
This function retrieves the current mode of the ACL connection to the peer that is specified by the Bluetooth address. This function is equivalent to BTH_HCI_IOCTL_GET_HANDLE_MODE HCI IOCTL. |
|
This function obtains the hardware status. |
|
This function retrieves the link key for the Bluetooth device. |
|
This function retrieves the address of the Bluetooth peer device authentication of which requires the personal identification number (PIN) code. |
|
This functions retrieves the COD for a specified device that has a baseband connection with the local device. |
|
This function initiates a client query that is constrained by the information contained within a WSAQUERYSET (Bluetooth) structure. |
|
This function frees the handle after previous calls to the BthNsLookupServiceBegin and BthNsLookupServiceNext functions. |
|
This function retrieves the results of an SDP search. |
|
This function adds, updates, or removes service records from the local SDP database. |
|
This function requests the personal identification number (PIN) for a Bluetooth device. |
|
This function performs an Inquiry operation. |
|
This function reads the value for the authentication setting. |
|
This function reads adapter's class of device. |
|
This function reads the current link policy for the existing connection with the peer that is specified by its Bluetooth address. |
|
This function retrieves the Bluetooth address of the current device. |
|
This function Reads the version and capabilities of Host Controller Interface (HCI) and Link Manager Protocol (LMP) stacks on the Bluetooth device. It is a combination of the following two HCI commands:
|
|
This function retrieves the current page timeout value. |
|
This function reads the version and capabilities of Link Manager Protocol (LMP) stack on the Bluetooth device. It is a combination of the following two HCI commands: Read_Remote_Version_Information and Read_Remote_Supported_Features. |
|
This function reads the adapter's scan mode. |
|
This function refuses an outstanding PIN request that is retrieved by BthGetPINRequest function. |
|
This function queries the name of a remote Bluetooth device. |
|
This function removes the link key for a Bluetooth device. |
|
This function revokes the PIN for the Bluetooth device. |
|
This function sets the Inquiry Filter to a specified class of device (COD). |
|
This function requests that the encryption mode on an existing connection is switched with the peer device. |
|
This function sets the Inquiry Filter to a specified address. |
|
This function stores the link key for the Bluetooth device. |
|
This function stores the PIN for the Bluetooth device. |
|
This function allows an application to provide an event that will be signaled by the stack when a device without a PIN sends a PIN request. |
|
This function disconnects all idle connections held by the L2CAP layer. |
|
This function sets the value for the authentication setting. |
|
This function sets adapter's class of device. |
|
This function writes the current link policy for the existing connection with the peer specified by its Bluetooth address. |
|
This function configures the page timeout. |
|
This function sets the adapter's scan mode. |
**The following table shows the Phone-Extension Component functions of the Audio Gateway service.
Programming element | Description |
---|---|
Called by the AG service to deinitialize the Phone Extension module. |
|
Called by the AG service to retrieve the number last dialed on the device. |
|
Called by the AG service to retrieve the name of the caller by using the Call Line Identification (CLI). |
|
Called by the AG service to retrieve the destination number dialed using speed dial. |
|
Called by the AG service to initialize the Phone-Extension module. |
|
Called by the Audio Gateway (AG) service when the specified event occurs on the Bluetooth device. |
|
Called by the AG service when an incoming call arrives. |
|
Called by the AG service when a call is placed on the device. |
|
Called by the AG service to determine whether or not the phone has cellular service. |
The following table shows the Network Component functions of the Audio Gateway service.
Programming element | Description |
---|---|
Called by the AG to receive an incoming call. |
|
Called by the AG to deinitialize the Network module. |
|
Called by the AG to place an outgoing call. |
|
Called by the AG to terminate an ongoing call. |
|
Called by the Audio Gateway (AG) service to retrieve the current state of the network. |
|
Called by the Audio Gateway (AG) service to put an active call on hold. |
|
Called by the AG to initialize the Network module. |
|
Called by the AG to drop an incoming call. |
|
Called by the Audio Gateway (AG) service to change the call status from active to hold and vice versa. |
|
Called by the AG to sends DTMF codes. |
|
Called by the Audio Gateway (AG) service to activate a call that is on a hold status. |
The following table shows the Audio Gateway Core Component function of the Audio Gateway service.
Programming element | Description |
---|---|
Called by the Network module when an event occurs. |
The following table shows the AT Command Extension Module functions of the Audio Gateway service.
Programming element | Description |
---|---|
Called by the Audio Gateway (AG) service to determine how to respond to the AT commands sent by a peer Bluetooth device. |
|
Called by the Audio Gateway (AG) service each time an AT command is received from a peer Bluetooth device. |