Author Topic: To know bluetooth availability and version  (Read 17791 times)

MarekCh

  • Guest
To know bluetooth availability and version
« on: November 12, 2014, 12:34:57 AM »
Hello, I have to:

1: check if bluetooth adapter (or dongle) is presented in computer I run my application
2: check bluetooth version (I need to be no less than 4.0)

3: if 1 and 2, search available devices (I think Discovery demo will be helpful and I will know how to do it)

4: when found device I expect, pair and open HID channel to read and write

I hope to get help which components to use or demo to examine.

I do not have experience with bluetooth, I used RS or USB previoisly. I'm evaluating library for delphi, so need help to start :).

Thanx
Marek

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: To know bluetooth availability and version
« Reply #1 on: November 12, 2014, 07:53:49 AM »
Hello,

1. It is possible with TwclAPI (refer to API demo)
2. Unfortunately WCL does not provide such functions
3. Yes, you can use TwclBluetoothDiscovery (refer to DiscoveryDemo)
4. Pairing is possible but no easy way to connect to HID device as it requires L2CAP connection which does not supported by all drivers. HID connection requires special design for every HID device with full protocol implementation in WCL coce.

MarekCh

  • Guest
Re: To know bluetooth availability and version
« Reply #2 on: November 12, 2014, 12:29:36 PM »
Hello, I recieved this sort of documentation

1.BLE Profile description
   Service UUID: 0xFFF0
    Feture UUID:
   TX UUID:0xFFF6  phone send data to the pedometer,length is 16 byte
   RX UUID:0xFFF7  pedometer sdned data to the phone,length is 16 byte   
   BLE communication interact between two features of UUID, Specific agreements Section 2 format.

with advise to use HID. Maybe I will try to open COM and send data as described in protocol, let us see what will happen.

Marek

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: To know bluetooth availability and version
« Reply #3 on: November 12, 2014, 12:41:20 PM »
Hello,

At present WCL does not support BLE. We are preparing release with BLE support but it works with BlueSoleil drivers only. You can not open COM port for BLE communication (especialy for HID). BLE HID devices are supported by BlueSoleil only. MS supports only GATT BLE profile (on Windows 8 only).

MarekCh

  • Guest
Re: To know bluetooth availability and version
« Reply #4 on: November 12, 2014, 01:35:49 PM »
Thanks. Some people say, that it is enough to find BT LE pedometer with BT 4.0 radio and it works.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: To know bluetooth availability and version
« Reply #5 on: November 12, 2014, 01:48:16 PM »
MS drivers support BLE only in Windows 8, so you will not even find it on Win 7/Vista. BS driver may find it but it does not support Pedometr Profile. BTW, Pedometr profile is no HID profile. So it is not HID device.

 

Sitemap 1 2 3 4 5 6 7