.NET Components for Mobility

Bluetoothclient connects and asks password. How to avoid this?

Last post 07-01-2009 3:18 AM by win32nipuh. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 06-28-2009 7:51 AM

    Bluetoothclient connects and asks password. How to avoid this?

     Hi, my desktop pc application discovers BT devices and connects to each of them 1 by one.

    But when i am trying to connect to phone it asks me: Add device to my devices? and then I must enter password, then

    this password i must enter on the desktop side.

    How to avoid these passwords? I'd like to connect to many devices which are detected and it is impossible to enter

    passwrods.

     

    BluetoothEndPoint remoteEndPoint = new BluetoothEndPoint(bt.DeviceAddress, BluetoothService.SerialPort);// .ObexFileTransfer);

    client = new BluetoothClient();

    try

    {

    client.Connect(remoteEndPoint);

    Stream peer = client.GetStream();

    // to do

    }

     

    Thank you

  • 06-29-2009 8:53 AM In reply to

    Re: Bluetoothclient connects and asks password. How to avoid this?

    BluetoothClient.SetPin?  See the "Bluetooth Security" section in the user guide (in the release or at http://www.alanjmcf.me.uk/comms/bluetooth/32feet.NET%20--%20User%20Guide.html)

    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.
  • 06-29-2009 9:32 AM In reply to

    Re: Bluetoothclient connects and asks password. How to avoid this?

    Hi Alan,

    thank you so much.

     

    Could you pelase say yet:

     Is this method suitable for my scenario:

    I want PC with dongle automatically detect bt enabled devices (phones) and send file to every detected device.

    Currently I use loop via array of detected devices, then connect to every device and then send file via obex.

    How can I use this Pair calls?

     What Pin should I provide?

    Regards,

    Oleg.

     

  • 06-30-2009 3:16 PM In reply to

    Re: Bluetoothclient connects and asks password. How to avoid this?

    If one sends an OBEX object (to OBEX Push Profile) that shouldn't need authentication.  Normally the phone just prompts when it has received the object and the user can just discard it them.  Are you sending to different service?  To a custom one or to OBEX FTP.  Change to using OBEX Push if you can then.  That will avoid the problem hopefully. :-)  If you can't do that let us know.

    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.
  • 07-01-2009 3:18 AM In reply to

    Re: Bluetoothclient connects and asks password. How to avoid this?

    Exactly what I need :-)

    Thank you Alan.

     

Page 1 of 1 (5 items)
Copyright © 2001-2010 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy.