.NET Components for Mobility

how to change bluetooth devicename by c#

Last post 12-16-2008 2:32 PM by alanjmcf. 8 replies.
Page 1 of 1 (9 items)
Sort Posts: Previous Next
  • 09-02-2008 4:54 AM

    how to change bluetooth devicename by c#

    I'd like to change bluetooth devicename by c# , who can help me out ?

     thank you very much

    Filed under: ,
  • 09-02-2008 6:22 PM In reply to

    Re: how to change bluetooth devicename by c#

    Local devicename can be set via the BluetoothRadio.Name property, on WM/CE at least...

    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.
  • 09-02-2008 8:38 PM In reply to

    Re: how to change bluetooth devicename by c#

    not local devicename , I want to change other PDA 's bluetooth device name from my PDA

  • 09-09-2008 8:12 AM In reply to

    • deepesh
    • Top 25 Contributor
    • Joined on 08-29-2008
    • Bangalore
    • Posts 14

    Re: how to change bluetooth devicename by c#

     hi,

    Can u plz help me? i m facing same problem. I m not able to change the local device name.

    Regards,

    Deepesh J

    Deepesh J
  • 09-10-2008 8:39 AM In reply to

    Re: how to change bluetooth devicename by c#

    Where do you want to see the name updated?  When other devices discover that device?  In your UI?  When it appears in the other Windows' UIs?  Or something else?  Clearly the remote device can't be updated, as device wouldn't allow its name to be changed remotely.

    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.
  • 09-10-2008 11:21 AM In reply to

    • deepesh
    • Top 25 Contributor
    • Joined on 08-29-2008
    • Bangalore
    • Posts 14

    Re: how to change bluetooth devicename by c#

     Hi,

    When i send a file from PC to mobile from my software, mobile shows accept message from SOME_BLUETOOTH_NAME. I want to name  SOME_BLUETOOTH_NAME to my software name.

    When i send a file from PC to mobile it should look like "Accept msg from MY_SOFTWARE_NAME"

    Is it possible? thx in advance

     Regards,

    Deepesh J

    Deepesh J
  • 09-25-2008 9:56 AM In reply to

    Re: how to change bluetooth devicename by c#

    iHi,

    When i send a file from PC to mobile from my software, mobile shows accept message from SOME_BLUETOOTH_NAME. I want to name  SOME_BLUETOOTH_NAME to my software name.

    When i send a file from PC to mobile it should look like "Accept msg from MY_SOFTWARE_NAME"

    Is it possible? thx in advance

     

    i am also searching dor same solution please update if u get it

     Regards,

  • 12-15-2008 2:26 AM In reply to

    • milk
    • Top 500 Contributor
    • Joined on 12-12-2008
    • Posts 3

    Re: how to change bluetooth devicename by c#

    How do we solve this problem
    ? Urgent!!!!!
  • 12-16-2008 2:32 PM In reply to

    Re: how to change bluetooth devicename by c#

    You can't.  By then it's too late.  That device name shown by the receiving device is calculated locally by it.  It learnt the device name of the sending device when it first saw the device and stored it then.  For instance if the device did a discovery (Inquiry) and found the device, it then asks the device for its name and stores it.

    Thus you can't control the name for one OBEX operation.  You have to always have your (sending) device use the name you want to appear in the message.

    However, a good way to get some specific text you want to appear on screen is to use it as the name of the file you are sending over OBEX.  For instance modifying the example from the user's guide:

    ' The host part of the URI is the device address, e.g. IrDAAddress.ToString(),
    ' and the file part is the OBEX object name.
    Dim uri As New Uri("obex://112233445566/This is a message to send to the user on screen")
    Dim req As New ObexWebRequest(uri)
    req.ReadFile("Hello World.txt")
    Dim rsp As ObexWebResponse = req.GetResponse()
    Console.WriteLine("Response Code: {0} (0x{0:X})", rsp.StatusCode)

    Set the message in the filename part of the URL.

     

    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 (9 items)
Copyright © 2001-2008 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy.