×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    6

    simple Bluetooth chat application

    Hi, I am programming a simple chat application using bluetooth. On Sun's Emulator, messages can be sent and received from one device to another; but when using the S40 Sdk Emulator, the connection between two devices cannot be established.
    this is the exception that is thrown:
    btspp://003435127B35:1;authenticate=false;encrypt=false;master=false
    ERROR en serviceSearchCompleted()
    at com.nokia.mid.impl.isa.bluetooth.ProtocolExceptionFailedNoInfo.handleStatus(ProtocolExceptionFailedNoInfo.java:109)
    at com.nokia.mid.impl.isa.io.protocol.external.btspp.Protocol.openPrim(Protocol.java:291)
    at com.sun.midp.io.InternalConnector.openPrim(InternalConnector.java:254)
    at com.sun.midp.io.InternalConnector.open(InternalConnector.java:162)
    at javax.microedition.io.Connector.open(Connector.java:138)
    at javax.microedition.io.Connector.open(Connector.java:120)
    at javax.microedition.io.Connector.open(Connector.java:104)
    at Bluetooth.BTClient.serviceSearchCompleted(BTClient.java:91)
    at javax.bluetooth.DiscoveryAgent$ServiceSearchListenerThread.run(+358)
    javax.bluetooth.BluetoothConnectionException

    Server starts and waits form incoming connections. both, client and server enter passcode and get paired, but the connection cannot be set. the Sun's emulator does not asks to pair devices and it works.
    any Ideas/sugestions/comments would be appreciated.

    thanks

  2. #2
    Regular Contributor
    Join Date
    Sep 2008
    Location
    Ahmedabad
    Posts
    254

    Re: simple Bluetooth chat application

    Hi,

    Did you tried on a real device. If possible try it on a real device and see then what happens.
    Sunil
    Mobile Application Developer

  3. #3
    Registered User
    Join Date
    Jun 2008
    Posts
    12

    Re: simple Bluetooth chat application

    Hi,
    try this: https://marge.dev.java.net/

    this solve your problem

  4. #4
    Registered User
    Join Date
    Oct 2008
    Posts
    6

    Re: simple Bluetooth chat application

    Thanks, I will give it a try.

  5. #5
    Registered User
    Join Date
    Oct 2008
    Posts
    6

    Re: simple Bluetooth chat application

    It is now working fine on emulation, but when tested on a real device, I cannot find any remote devices. On emulation, I show a List screen and add all devices found for the user to select one, but on the real device it doesn't work. I'll keep trying.
    It is not being able to get the remote devices' friendly name. RemoteDevice.getFriendlyName(true) returns null.
    any suggestions?
    thanks
    Last edited by ocmolina; 2008-10-28 at 21:36.

  6. #6
    Regular Contributor
    Join Date
    Jun 2008
    Location
    Tel-Aviv,Israel
    Posts
    100

    Lightbulb Re: simple Bluetooth chat application

    Ofcourse it wont fine any of ur devices due to the fact that your BT Dongle or Build in Device is used by another App which manages your with a driver...

    Test it in ur mobile.

    Try This...
    http://code.google.com/p/bluetooth-chat/

    Just to open Your mind a bit: - no need to chat by text anymore...

    http://thinkabdul.com/2008/01/26/blu...obile-devices/

    Good Luck
    Y

  7. #7
    Registered User
    Join Date
    Jan 2010
    Posts
    8

    Re: simple Bluetooth chat application

    hey guys....i m working on a similar project...i.e developing a chat application using bluetooth. The problem is i m unable to get the connection between my laptop emulated mobile device and my nokia bluetooth enabled device 5130 (S 40 series).
    problems:
    1.when i hv multiple midlets in the same suite, it works on my laptop with the emulated device, but when i deploy it on my mobile it shows me some invalid application.
    2.no matter what i do, i cant get to the physical address of my laptop bluetooth adapter.....it always shows a virtual device address...0123456789AF.
    3.i can't run two emulated devices on my laptop simultaneously....i tried doing it using by netbeans 6.8 and the sun WTK SDK......running simultaneously each the server and client versions of may app....but nothing happened. The second emulated device never shows up. So i cant test my apps on my laptop as well.
    Guys, please help me.

  8. #8
    Registered User
    Join Date
    Jan 2010
    Posts
    8

    Re: simple Bluetooth chat application

    hey ocmolina....could u just send me the code u designed for the sun emulator.my email id is jatinkumar.nitk@gmail.com...Thanks in advance.

Similar Threads

  1. App. Provisioning over Bluetooth, from the Application Itself
    By a_n_k_u_r in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2005-07-24, 23:00
  2. Replies: 0
    Last Post: 2005-01-07, 14:52
  3. Replies: 0
    Last Post: 2004-10-31, 13:14
  4. Replies: 0
    Last Post: 2004-10-31, 13:13
  5. searching for bluetooth devices which has a specified application
    By tserivdd in forum Bluetooth Technology
    Replies: 3
    Last Post: 2004-02-05, 09:15

Posting Permissions

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