Author Topic: BluetoothDiscoveryDemoXE2 Bug  (Read 3150 times)

Offline gomsun2

  • Newbie
  • *
  • Posts: 18
  • Karma: 0
BluetoothDiscoveryDemoXE2 Bug
« on: April 12, 2012, 02:16:17 AM »
Hi. I found BluetoothDiscoveryDemoXE2 Bug.

1. Run BluetoothDiscoveryDemoXE2.exe
2. Enum -> Search Microsoft / Bluesoleil -> Bluesoleil Select
3. Discover -> EConverError Raise (wclStringToAddress)

Offline gomsun2

  • Newbie
  • *
  • Posts: 18
  • Karma: 0
Re: BluetoothDiscoveryDemoXE2 Bug
« Reply #1 on: April 12, 2012, 03:33:59 AM »
i trace bug and i find problem method.
method is "Device.GetClassOfDevice(Radio, COD);" in "procedure TfmMain.RefreshDevice;"

scenario is
0. Open BluetoothDiscoveryDemoXE2.dpr and Run(F9)
1. Enum Click
2. Select BT Driver (Driver is bluesoleil)
3. Discover Click
4. event handler is excute "procedure TfmMain.wclBluetoothDiscoveryDiscoveryComplete(Sender: TObject; Radio: TwclBluetoothRadio; Devices: TwclBluetoothDevices);"
5. if Devices = 0 then Ok
6. if Devices. = 1 then EConverthError raise in "Device.GetClassOfDevice(Radio, COD);"

sorry my english is bed :(

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3052
  • Karma: 1000
    • Soft Service Company
Re: BluetoothDiscoveryDemoXE2 Bug
« Reply #2 on: April 12, 2012, 07:44:01 AM »
Hello,

Caould you please show MAC address of your device? And what version of demo do you use (Delphi/CBuilder)?

Offline gomsun2

  • Newbie
  • *
  • Posts: 18
  • Karma: 0
Re: BluetoothDiscoveryDemoXE2 Bug
« Reply #3 on: April 12, 2012, 07:50:40 AM »
Device Addr: see attach File
version: Delphi XE2 / Demo - http://forum.btframework.com/index.php/topic,1199.msg5573.html#msg5573

thank you

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3052
  • Karma: 1000
    • Soft Service Company
Re: BluetoothDiscoveryDemoXE2 Bug
« Reply #4 on: April 12, 2012, 07:59:00 AM »
Hm, strange. Address looks valid. Let me install BS and check this issue. I'll back to you in few minutes.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3052
  • Karma: 1000
    • Soft Service Company
Re: BluetoothDiscoveryDemoXE2 Bug
« Reply #5 on: April 12, 2012, 08:04:28 AM »
Just tested. Works on my side.

Please, check function function TfmMain.GetSelectedDevice: TwclBluetoothDevice; (in demo)
and this line: Result.Address := lvDevices.Selected.Caption;
Result.Address - must be valid BT address.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3052
  • Karma: 1000
    • Soft Service Company
Re: BluetoothDiscoveryDemoXE2 Bug
« Reply #6 on: April 13, 2012, 09:15:28 AM »
Hello,

Unfortunately we couldn;t reproduce the issue. Does it appear with all devices? Or only with specific one?

Offline gomsun2

  • Newbie
  • *
  • Posts: 18
  • Karma: 0
Re: BluetoothDiscoveryDemoXE2 Bug
« Reply #7 on: April 16, 2012, 04:54:33 AM »
hi. Answer was delayed.
i found some issue

procedure TfmMain.RefreshDevice;
...
//      Res := Device.GetRSSI(Radio, RSSI);
//      if Res = WCL_E_SUCCESS then
//        lvDevices.Selected.SubItems[3] := IntToStr(RSSI)
//      else
//        lvDevices.Selected.SubItems[3] := 'Error: ' + IntToStr(Res);
...
Uncomment this part, the error does not occur.

please check.

my pc info - Windows7 64bit / API - Bluesoleil / Microsoft

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3052
  • Karma: 1000
    • Soft Service Company
Re: BluetoothDiscoveryDemoXE2 Bug
« Reply #8 on: April 16, 2012, 05:54:44 AM »
What BS version do yo use?

Offline gomsun2

  • Newbie
  • *
  • Posts: 18
  • Karma: 0
Re: BluetoothDiscoveryDemoXE2 Bug
« Reply #9 on: April 16, 2012, 06:04:11 AM »
wcl use  this version - http://forum.btframework.com/index.php/topic,1199.msg5573.html#msg5573
BlueSoleil version is " 2.7.0.8 "
« Last Edit: April 16, 2012, 06:07:19 AM by gomsun2 »

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3052
  • Karma: 1000
    • Soft Service Company
Re: BluetoothDiscoveryDemoXE2 Bug
« Reply #10 on: April 16, 2012, 07:00:11 AM »
Looks fixed (attached).

Offline gomsun2

  • Newbie
  • *
  • Posts: 18
  • Karma: 0
Re: BluetoothDiscoveryDemoXE2 Bug
« Reply #11 on: April 16, 2012, 08:29:37 AM »
I've confirmed that the issue has been fixed.
Thank you for quick response. : )

 

Sitemap 1 2 3 4 5 6 7 8 9