.NET Components for Mobility

P-L-E-A-S-E ..BT Radio Name

Last post 12-05-2006 3:15 PM by alanjmcf. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 12-04-2006 10:08 PM

    P-L-E-A-S-E ..BT Radio Name

    hi here

     

    please help me how can i change bt radio name

    from the application before sending a file to a device??????

     

     

    10X

  • 12-04-2006 10:54 PM In reply to

    Re: P-L-E-A-S-E ..BT Radio Name

    We discussed such a thing previously, but I think the thread may have been aged out of the forums.  Oh wait there's something here http://32feet.net/forums/thread/1995.aspx  We found, if I remember correctly that there is no Windows API to change the device name, except maybe in the area Peter noted there.  There certainly wasn't any way to change it for a particular send.  My understanding is that after discovery a device can choose to then ask the device's name, and it then caches it, so changing it later might not be apparent on the receiving device.  I've seen that with Windows.  I move a dongle from pc2 to pc3 and discoverying from pc1 showed no new device, after much head banging I realised that there weren't any new devices (Bluetooth radios), it has just move from one pc to another.  Only after deleting the pc2 record did discovery show pc3.

    However maybe you're doing this for Bluejacking reasons, if so isn't it the OBEX Name header that is often displayed onscreen on the receiving device?

    Alan J. McFarlane
    http://www.alanjmcf.me.uk/
    Please follow-up in the newsgroup for the benefit of all.
    Have I helped? Consider visiting my Amazon wishlist, see my homepage.
  • 12-05-2006 7:11 AM In reply to

    Re: P-L-E-A-S-E ..BT Radio Name

    hi

    "is it the OBEX Name header that is often displayed onscreen on the receiving device"

    do you mean the i can change some param in the header request and

    this name will be displayed on the device screen????????

    can you link me to some example or library that works with obex header request

    10X

  • 12-05-2006 12:22 PM In reply to

    Re: P-L-E-A-S-E ..BT Radio Name

    No, there is only an obex header for the filename which you are sending, you can't override the sending device name. Since the device names are usually cached you wont see changes in the name unless the receiving device rescans for devices, which you aren't going to be able to do during a file transfer.

    You could always include the displayname you want in your filename so that it appears in the user prompt.

    Peter

    Peter Foot
    Microsoft Device Application Development MVP
    www.peterfoot.net | www.inthehand.com
  • 12-05-2006 3:15 PM In reply to

    Re: P-L-E-A-S-E ..BT Radio Name

    Actually Peter it occurred to me last night that the name of the object is often displayed when it is being received.  On my Palm for instance, for Bluetooth and IrDA respectively I see:

        Receiving Copy of David Akeroyd.vcf from ALANPC1...
        Do you want to accept "David Akeroyd" into Contacts?

        Receiving : Copy of David Akeroyd.vcf
        Do you want to accept "David Akeroyd" into Contacts?

    The first line being the filename on my PC, sent using Brecham.Obex's PutGuiVb2 program, and the second line appear once the transfer is complete and is apparently taken from the name field in the vCard file (i.e. "N:Akeroyd;David").

    With Windows XP's "Bluetooth File Transfer Wizard" during the receive one sees e.g.

        Receiving from:  AlanMcfPalm2
        File name:       David Akeroyd.vcf

    where the filename is generated by the Palm from the content of the address book entry; and on completion:

        File name:  Akeroyd-David.vcf
        Location:    <path on disk>

    So changing the filename, and thus the OBEX Name header, would seem to be enough in most cases.

    So shaykeren if that's what you want, just change the filename of the object you are sending.  In ObexWebRequest that's the filename part of the URL, and in Brecham.Obex just set the String name parameter of the PutFrom/Put call.

    One wesbite with some info is http://www.bluejackq.com/bluejacking-faq.shtml

    Alan J. McFarlane
    http://www.alanjmcf.me.uk/
    Please follow-up in the newsgroup for the benefit of all.
    Have I helped? Consider visiting my Amazon wishlist, see my homepage.
Page 1 of 1 (5 items)
Copyright © 2001-2010 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy.