Author Topic: XP changing radio name  (Read 20868 times)

andy.stephenson

  • Guest
XP changing radio name
« on: December 22, 2010, 07:40:00 PM »
Hi,

Similar to CYP thread back in Nov 2008, how do I change the radio name in XP?

In vista, I have elevated the user, but I don't know how to do this for XP. I tried "Run as.." and selecting Administrator, but when I do that I get transport not found. The same app if run normally finds the radio/transport OK. It's just that I can't change the radio name.

Thanks,

Andy

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: XP changing radio name
« Reply #1 on: December 22, 2010, 08:51:07 PM »
The user must be in adminitrators group on XP and use manifest file: http://forum.btframework.com/index.php/topic,433.0.html

andy.stephenson

  • Guest
Re: XP changing radio name
« Reply #2 on: January 05, 2011, 12:28:58 PM »
Mike,

I checked this link out and added it to my project.

On Vista, all is working as expected.

On XP, it's not. The radio name is not changing.

I am using the code:
procedure TfrmeGO.TimerNameCheckTimer(Sender: TObject);
var
  ThisRadioName : widestring;

begin
// check radio name
wclServer.BluetoothParams.Radio.GetName(ThisRadioName);
if (ThisRadioName <> 'philsci') then
  begin
    DisplayDebug('Radio Name is: ' + ThisRadioName);
  end
else
  begin
    TimerNameCheck.Enabled := false;
  end;
end;

This checks the radio name after it has been changed, and if it's as expected, it stops checking.

On my dev machine, ThisRadioName gets set to '', on another test machine with only one user as Administrator, ThisRadioName is reporting as:
Radio Name is: y 2.0 Bluetooth Dongle
03F0 = hp Bluetooth Device
047D = Kensington Bluetooth EDR dongle
07D1 = Cameo USB Bluetooth Adaptor
2001 = Formosa USB Bluetooth Device
044E = Sony Alps USB Bluetooth Device
13D3 = WhiteBox AzureWave BT 2.1
0B05 = Asustek
05

Also, on the XP machines, the radio name is not changing as the data is not getting through.

If I manually set the radio name through bluetooth properties, the data gets through.

So, on XP, I'm not doing something correct. Any ideas?

Could you modify the bluechat server to show an example of correctly changing the radio name?

Any help is appreciated.

Regards,

Andy

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: XP changing radio name
« Reply #3 on: January 05, 2011, 12:37:49 PM »
Hi,

I'm going to install fresh copy of Windows XP on the virtual machine and then test the things. Will back to you shortly.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: XP changing radio name
« Reply #4 on: January 05, 2011, 01:07:48 PM »
Ok, just tested on Win XP SP 3 Russian x86 running on Samsung NC10 netbook with USB Bluetake BT007i dongle (MS drivers). It also has build-in Bluetooth adapter running under WidComm driver. So I didn't copied wcl2wbt.dll and application (used BluetoothDiscovery demo) didn't see WidComm dongle. I changed name and then ran WidComm toll to find the Bluetooth devices. The tool found MS dongle with its new name. The demo application has been running under user's account (the user is in Administrators group). The application was executed without any manifest file.

Please let me know your Windows XP version and language so I can download exactly the same version and run it here.

andy.stephenson

  • Guest
Re: XP changing radio name
« Reply #5 on: January 05, 2011, 04:54:05 PM »
Mike,

I am using XP pro Version 2002 SP3. English (United Kingdom).

I guess that you don't want an exe to run, so if you want my project source I will PM it to you.

Widcomm 5.5.0.3200 on both XP machines, Microsoft stack on Vista.

...Andy

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: XP changing radio name
« Reply #6 on: January 05, 2011, 05:03:11 PM »
Aha! That makes sense now! I just thought that you use MS driver on XP PCs. But you use WidComm!

There are 2 wcl2wbt.dll (in redist folder and in redist/old folder). The first one has been built with using newest widcomm sdk. Unfortunately the newest WD SDK has no (it was removed) the name changing function (Radio.SetName() returns WCL_E_INTERNAL in this case). So you must use the DLL from old folder.

Sorry that I missunderstood that you may use other than MS driver :(

andy.stephenson

  • Guest
Re: XP changing radio name
« Reply #7 on: January 05, 2011, 05:21:50 PM »
Mike,

Just tested with old dll and its works fine. Thanks.

I have noticed though that the bluetooth tray icon does not indicate the name change.

Can it be done somehow? It may ease the testing we are about to do.

Thanks for your help so far.

Regards,

Andy

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: XP changing radio name
« Reply #8 on: January 05, 2011, 05:37:28 PM »
Unfortunately no, at least we don't know how to fix it now. But I have recorded it in our ToDo list some will think later and may be find the way.

 

Sitemap 1 2 3 4 5 6 7