×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Aug 2012
    Posts
    3

    Using Mobility bluetooth Api to connect to an Android device

    My ultimate goal is to connect a Nokia 808 to and android device using the serial port profile over bluetooth.

    Toolchain : Qt Creator 2.41 : Qt 4.7.4 Qt Mobility 1.2.1

    I began using the QT btchat application to connect to an android terminal application. I modified the uuid in the btchat source to "00001101-0000-1000-8000-00805f9b34fb", the uuid for serial ports.
    I found that the btchat application was unable to detect the android app and the android app was unable to connect to the btchat. All devices are paired and visible. ( Once devices are paired , the Android app does not use discovery to connect , it just uses the uuid over RFCOMM protocol)

    I then configured a bluetooth com port on a PC, running Hyperterminal. The android app was successfully able to connect with the comport and communicate with Hyperterminal.
    The QT Bluetooth app did discover the PC's bluetooth service but if failed to successfully create a client socket with error code KErrConfigRejected.

    What do I need to change on the sample btchat app in addition to the uuid so that I can connect and communicate with an android device running a spp ?

    To compile the btChat app in QT, I removed the "networkcontrol" capability from the sis file. From other bluetooth samples I believe that I do not need it. Is my assumption correct?

    Thanks

  2. #2
    Nokia Developer Expert
    Join Date
    Oct 2007
    Posts
    441

    Re: Using Mobility bluetooth Api to connect to an Android device

    Hi

    In the original code of btchat example application from Qt SDK client and server communicate via RFCOMM --- Please try to run unmodified code when you try to connect to the device with PC Hyperterminal

    Regards,

  3. #3
    Registered User
    Join Date
    Aug 2012
    Posts
    3

    Re: Using Mobility bluetooth Api to connect to an Android device

    Hi

    I did manage a work around. When I create a connection using a custom uuid running over RFCOMM everything communicated as expected, it was only when I used the standard uuid for serial ports "00001101-0000-1000-8000-00805f9b34fb" that the android device could not establish the connection.
    Thanks

Similar Threads

  1. How to Connect Symbian phone to Android phone Use Bluetooth
    By luoxuewuchen in forum Symbian Networking & Messaging (Closed)
    Replies: 6
    Last Post: 2011-06-29, 15:32
  2. How can use SPP to connect a bluetooth device on N70?
    By bj.guopeng in forum Bluetooth Technology
    Replies: 1
    Last Post: 2007-11-23, 10:40
  3. Connect Bluetooth device
    By merchan in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2007-11-13, 11:45
  4. Cant connect to In-Car bluetooth device
    By computer-solutions in forum Bluetooth Technology
    Replies: 5
    Last Post: 2006-03-27, 08:11
  5. Connect emulated device via Bluetooth to a real device
    By ulimativ in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2005-06-17, 17:54

Posting Permissions

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