Discussion Board

Results 1 to 12 of 12
  1. #1
    Registered User kuno.meyer's Avatar
    Join Date
    Sep 2003
    Posts
    11
    Hi *

    I'm trying to establish an authenticated RFCOMM connection, but without any user interaction.

    I'm looking therefore for a possibility to enter programmatically the bluetooth passcode/PIN at local side (Nokia 3650). Does SymbianOS (v6.1) provide an API for this purpose?


    Thanks
    Kuno

  2. #2
    Nokia Developer Expert seppo_fn's Avatar
    Join Date
    Mar 2003
    Posts
    1,205
    There is no API for automatic passcode typing in Series 60 devices. Besides, automatic passcode entry is typical only to devices that have no input methods in their UI (e.g. headsets).

    Typically passcode is only entered once between two devices, after which the devices are paired (until the user deletes the pairing manually from the Bluetooth UI). So basically entering a passcode manually is a one-time task only.

    Passcode is required by the server side (slave) - if it is set to be required. You can set authentication off. As an example, please have a look at BluetoothPointToPoint example -> MessageServer.cpp for how to do it.

    To avoid other devices from accessing your application, you could implement your own, application-specific passcode that would be exchanged automatically. Or you could specify your own Bluetooth service so that other devices would not match the service criteria.

    Seppo
    Forum Nokia

  3. #3
    Registered User ayesh12's Avatar
    Join Date
    Aug 2004
    Posts
    20
    Seppo,

    as per your suggestion, I tried to set authentication to false in the messageserver.cpp of BTPointToPoint example code.

    I ran BtPointToPoint on Nokia 7610 and then selected the menu option StartReceiver to disable authentication.

    Now I tried connecting to DUN service of 7610 from a notebook, hoping that pairing process will not be required. However, it did pop up the pairing request ?

    Do I need to change the code of BtPointToPoint in some way more to completely disable the pairing on 7610?

    Please comment.

    Thanks,
    -Ayesh

  4. #4
    Nokia Developer Expert seppo_fn's Avatar
    Join Date
    Mar 2003
    Posts
    1,205
    Some services require authentication and authorisation. DUN and FTP are such services, as they have to be secured against connection attempts from other users: think of the consequences when a stranger would be using your phone as a modem (DUN) or browsing files on your phone (FTP).

    DUN and FTP are typically used by *one* user between her own PC and phone. Thus typing the passcode once and setting authorisation 'on' are not a big effort.

    So the answer to your question is 'No': you cannot connect to a device using DUN or FTP without authentication&authorisation, and there is no way to change these settings programmatically.

    Seppo
    Forum Nokia

  5. #5
    Registered User ayesh12's Avatar
    Join Date
    Aug 2004
    Posts
    20
    Thanks for the information!

  6. #6
    Regular Contributor entell's Avatar
    Join Date
    Sep 2004
    Posts
    69
    > Typically passcode is only entered once between two devices, after which the devices are paired (until the user deletes the pairing manually from the Bluetooth UI).

    Seppo,

    How do you manually delete pairing?

  7. #7
    Nokia Developer Expert seppo_fn's Avatar
    Join Date
    Mar 2003
    Posts
    1,205
    Go to Bluetooth UI -> Paired Devices view. Press 'C' (or options->delete pairing) on the device where you want to delete pairing.

    -seppo
    Forum Nokia

  8. #8
    Regular Contributor entell's Avatar
    Join Date
    Sep 2004
    Posts
    69
    .
    Last edited by entell; 2005-03-17 at 04:48.

  9. #9
    Registered User uanitta's Avatar
    Join Date
    Sep 2005
    Posts
    2
    Hi,

    I wrote an application for a Nokia 6630 (Symbian 8.0a) in which I connect to the serial port service (rfcomm) of a bt device connected to the PC, send and receive data, like in the bt point-2-multipoint example.

    That device unpairs the phone at each reset so the dialog requesting the passcode pops up every time. I want the connection to be authorized/authenticated, but I would like to be able to supply the pin by program. Is there a way to do this in Symbian 8.0a?

    Thank you a lot for any info.

    Uanitta

  10. #10
    Regular Contributor manojkumar.m's Avatar
    Join Date
    Jan 2008
    Posts
    272
    Hi,

    I am developing a j2me bluetooth broadcaster application.

    My BluetoothBroadcaster application will search a device and send

    the content. This is my requirement.I am using OBEX uuid (0x0008)

    Its working fine but,when a device first searched, its asking a

    passcode.

    I want to eliminate this passcode asking mechanism. Can I do it progarammatically?

    If so how to do this? Please suggest me.

    Thanks.

  11. #11
    Regular Contributor manojkumar.m's Avatar
    Join Date
    Jan 2008
    Posts
    272
    Hello every one,

    Have you any idea how to get rid of asking passcode for bluetooth application?

    I have developed a bluetooth application(j2me).

    Its asking for the first time when a device is trying to connect my application (mobile).

    I want to eliminate this passcode.

    How can I do this?

    Thanks.

  12. #12
    Regular Contributor manojkumar.m's Avatar
    Join Date
    Jan 2008
    Posts
    272
    Quote Originally Posted by seppo_fn View Post
    Passcode is required by the server side (slave) - if it is set to be required. You can set authentication off. As an example, please have a look at BluetoothPointToPoint example -> MessageServer.cpp for how to do it.

    To avoid other devices from accessing your application, you could implement your own, application-specific passcode that would be exchanged automatically. Or you could specify your own Bluetooth service so that other devices would not match the service criteria.

    Seppo
    Forum Nokia
    Hi Seppo,

    Where can I get the source code of BluetoothPointToPoint?

    How can I set authenticate off?

    How can I implement my own application specific passcode that would be exchanged automatically?

    Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved