This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/WL1835MOD: How do I get the BluetoothStackID in case BTPM is used?

Part Number: WL1835MOD

Tool/software: Linux

Using a HW based on AM335X and WL1835MOD. Operating system is linux.

Bluetopia is  BluetopiaPM-4.2.1.0.1.

External device is a Bluetooth LE device.

To perform a passive scan I have to call the following function to set the scan type to passive:


BTPSAPI_DECLARATION int BTPSAPI HCI_LE_Set_Scan_Parameters ( unsigned int BluetoothStackID,
Byte_t LE_Scan_Type,
Word_t LE_Scan_Interval,
Word_t LE_Scan_Window,
Byte_t Own_Address_Type,
Byte_t Scanning_Filter_Policy,
Byte_t * StatusResult
)

But how do I get BluetoothStackID in case BTPM is used?

  • Thomas,

    You can use the following API to find out the BluetoothStackID.

    BTPSAPI_DECLARATION int BTPSAPI DEVM_QueryDeviceBluetoothStackID(void);

    The prototype for the API can be found in the /AM335xBluetopiaLinuxProduction-4.2.1.0.1.0/BluetopiaPM/include/server/DEVMAPI.h file.

    Best regards,
    Vihang