×

Discussion Board

Results 1 to 7 of 7

Hybrid View

  1. #1
    Registered User
    Join Date
    May 2011
    Posts
    40

    How to Connect Symbian phone to Android phone Use Bluetooth

    Hi,
    Everyone.I'm a rookie in symbian field.I want to connect different type phones use bluetooth.I connect two symbian phones use bluetooth advertiser,bluetooth device search,bluetooth service serach and it works well.But when I'd like to find a service in an android phone,I couldn't find the service in fact it is existed.The problem has trouble me several days.What can I do?Are there some methods to construct a socket use UUID just like Android?

    this are android codes to connect two phones

    Android 2.0 bluetooth connection

    service:
    UUID uuid = uuid.fromString(“27648B4D-D854-5674-FA60E4F535E44AF7″); //generate your own UUID at http://www.uuidgenerator.com
    BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
    BluetoothServerSocket serverSocket = adapter.listenUsingRfcommWithServiceRecord(“MyBluetoothApp”, uuid);
    BluetoothSocket socket = serverSocket.accept(); // blocks until a connection is accepted
    serverSocket.close(); // close the listening socket – does not close the connected client socket


    client.
    UUID uuid = uuid.fromString(“27648B4D-D854-5674-FA60E4F535E44AF7″); // UUID of server socket
    BluetoothAdapter adapter = BluetoothAdapter.getDefaultAdapter();
    BluetoothDevice device = adapter.getRemoteDevice(“00:11:22:33:44:55″); // BT MAC address of server
    BluetoothSocket socket = device.createRfcommSocketToServiceRecord(uuid);
    adapter.cancelDiscovery();
    adapter.connect(); // blocks until connection established

  2. #2
    Super Contributor
    Join Date
    May 2008
    Location
    Helsinki, Finland
    Posts
    1,100

    Re: How to Connect Symbian phone to Android phone Use Bluetooth

    Hi there,

    So far as I have not seen your actual code where you are performing this operation, it is a bit difficult to say where things go wrong - this only from the point of view connecting two "any" bluetooth using devices and searching their services. Basically, what you are attempting to do should work as the communication between bt devices should be pretty much device independent from the protocol side.

    Could you perhaps tell more about the steps you have done, devices models you are using, O/S versions - such, to get a perhaps bigger picture, would help. Thanks.

    Best Regards,
    Marko
    [FONT="Comic Sans MS"][COLOR="Blue"][/COLOR][I]Marko Lumivuori
    Technical Support
    +358 40 8019330
    [email]marko.lumivuori@nokia.com[/email][/I][/FONT]

  3. #3
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: How to Connect Symbian phone to Android phone Use Bluetooth

    I would suggest looking into the old Point-to-point examples found from old SDKs, or check what is available on new ones. There would be nice code in those that would separately implement the device discovery as well as the service discovery, then you could see more easily what happens on Symbian side.

    Anyway, no point on asking Android code samples here, as you could see This is Nokia developer discussion board, and we are not making Android devices.

  4. #4
    Registered User
    Join Date
    May 2011
    Posts
    40

    Re: How to Connect Symbian phone to Android phone Use Bluetooth

    Thanks for your help.I have solved the problem with the PMP examples.I'd like ask you a more question.What do you think about the future of symbian? Wish for your reply.Thanks!

  5. #5
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: How to Connect Symbian phone to Android phone Use Bluetooth

    You could check the announcements, simple googling would do fine. Nokia have announced that they will continue supporting Symbian at least till end of 2016, and they'll bring new exiting devices to the marked.

  6. #6
    Super Contributor
    Join Date
    May 2008
    Location
    Helsinki, Finland
    Posts
    1,100

    Re: How to Connect Symbian phone to Android phone Use Bluetooth

    I can verify this from my side. Some really cool things coming up.
    Best,
    Marko
    [FONT="Comic Sans MS"][COLOR="Blue"][/COLOR][I]Marko Lumivuori
    Technical Support
    +358 40 8019330
    [email]marko.lumivuori@nokia.com[/email][/I][/FONT]

  7. #7
    Registered User
    Join Date
    May 2011
    Posts
    40

    Re: How to Connect Symbian phone to Android phone Use Bluetooth

    Hi Marko,
    Thanks for your attention,I have solved the problem with the help of BluetoothPMPExample codes in nokia forum.The problem is because of I didn't handle the asynchronous service search
    in the right way.I have remove myself code into the service discoverer observer,and the program works well.

    Best Regards.

    xiaoz

Similar Threads

  1. Best strategy to connect a phone to a lan using bluetooth
    By simonen in forum Bluetooth Technology
    Replies: 1
    Last Post: 2009-08-02, 13:58
  2. How can I use PC to connect phone?
    By jfml in forum Symbian
    Replies: 5
    Last Post: 2007-02-20, 03:42
  3. How to connect PC n PHONE by bluetooth
    By Donnylie in forum Mobile Java General
    Replies: 1
    Last Post: 2006-05-05, 15:48
  4. 3650 PC SuiteCannot use bluetooth to connect with phone
    By madarin in forum Bluetooth Technology
    Replies: 0
    Last Post: 2004-09-22, 08:40
  5. Connect phone to net via Bluetooth
    By carmack in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2004-02-11, 23:13

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×