Great problem with bluetooth and MIDP devices

Hello all,
I'm making a client/server application with bluetooth JSR82 Serial Port Profile (SPP). The clients are mobile phones (J2ME application) that want to get informations from a server (J2SE application) that publishes a service.
My system works well with Sun Wireless Toolkit: it works fine also if I try to start a lot of servers and a lot of clients and a lot of other bluetooth device.
When I install it on actual environment like a personal computer with BlueCove stack and mobile phone like Nokia 6600 it works ONLY if there are 1 client and 1 server.
The problem is that the mobile phone doesn't find the server if there are other Bluetooth devices enabled!!!
I've made a lot of changes in my code but it don't work!
At first my client application works in this way:
1) start finding Bluetooth devices
2) a device found -> start finding services on this device
3) a server service is found -> stop device inquiry and connect to the server
4) else client continues to search devices and iterates like above
This solution works WELL on Sun toolkit but not on Nokia 6600 and Bluecove. So i changed it in this way:
1) start finding all bluetooth devices
2) after device inquiry stops:
3a) start finding all services on first device found... waiting for end
3b) start finding all services on seconddevice found... waiting for end
3x) ....
4) connect to the first service found
Also this solution doesn't work with Nokia 6600 and BlueCove!!!!!!!
I'm getting crazy!!!
Thanks,
Renato
ps Sorry for my English...

Hi guys, Im new here and its the first time i get to develop something using J2ME and J2SE toogether via bluetooth! You seem to be more expert than me so i was wandering if you could help me with some literature or even with some code.
I even tryed BlueCove but Im having some trouble! Please help me!!!
email me at: [email protected]

Similar Messages

  • Problems with Bluetooth and stablity post Portico ...

    I updated my Lumia 920 on ATT with the Portico update the day it came out in order to get the daylight camera improvements.  I started having problems after the update, ironically problems that the update was supposed to fix:
    1) Bluetooth connection with BMW does not stay alive, drops after a few minutes
    2) When Bluetooth is connected, don't get sound and don't transmit sound.
    3) Just the other day, the phone frooze while connected to Bluetooth.  Had to put phone on speaker while calling, when I ended the call, the phone frooze.  Had to soft reset, but still have problems with bluetooth stay alive.
    4) Random reboots. 
    WIshing I had not done that update.  Any way to roll back?

    Unfortunately, seems like it . I would let the battery drain flat, then take it back to your local AT&T store and ask for a replacement. If they are being less than helpful, contact Nokia direclty by clicking the Nokia Support link at the bottom of this page.

  • Problems with Bluetooth and the Lexus GS350

    I have an 07 GS350 and I had no problem syncing the built in Bluetooth to my Blackberry but I cannot figure out how to sync the iPhone...it seems to "see" the phone but I can't figure out how to put in the 1111 it asks you to enter...
    Has anyone else figured it out or had a similar experience?
    MacBook Pro   Mac OS X (10.4.10)   iPhone

    I paired my Lexus IS250 by going into the "Settings" feature of the phone into the "General" section and then by selecting bluetooth and turning it on -- it was off when I got the phone. Once I did that the iPhone asked me to enter the Lexus key and then once that was entered on the phone, the car and iPhone "paired". What I am having trouble doing is uploading my contacts list from the iPhone into the Lexus' phone management database. In the short term I manually entered a small group of important contacts.
      Mac OS X (10.4.4)  

  • Problems with Bluetooth and Mac OS X 10.4.4

    Hello all,
    I recently installed the the X.4.4 update on my PowerBook, and now it is having problems connecting to my RAZR. When I try to "Rebond" to it, it says an unexpected error has occurred (on the PB), and shows no bluetooth devices. Also, I am using a program called "BluePhoneMenu", and about every 15 seconds, it changes from active, to error. It waits another 15 seonds, and changes back (never connecting to the phone.) Does anyone have any suggestions? I have created a website to show visually what the problem is. It can be found at http://homepage.mac.com/chwebb1
    Thanks,
    -Chris

    For some reason, Bluetooth is temporarily working. Is there any suggestion to get bluetooth to work 100% of the time? It is really annoying that is only works intermittently. Any help is greatly appreciated.
    -Chris

  • Problems with EA2700 and Android devices

    I enjoyed EA2700 for more than 3 months so far until I decided to change my cell phone to Galaxy S3.
    I have my router operating 2.4Ghz and 5Ghz simultaneously, providing perfect internet access to my two windows 7 laptops, mac mini and iPad. This is not the case when I try to hook my Galaxy S3 phone and Galaxy Tab 2 7.0. This two korean devices have a real problem using the router for internet. Both the tablet and the phone connect to the router and have strong signal, but there is no ping going through nor any other internet app works. The router is set to WPA2/WPA Mixed personal sec mode and auto channel. I even try to make it open, but even then the Android devices connect but don't have an internet access. In the same time the rest of the home pcs and mac work perfectly.
    I tried, for the two last days different approaches like upgrading the router firmware, installing the cloud and the smart wi-fi interface, removing the security and opening the network…. it didn't work! What I figure out so far that if I set a guess account the devices connect without problem and have internet, although I have to manually enter  the password for the guess account, which dialogue is provided through a web page you have to navigate to before attempting to use internet. I though the problem could be with the Samsung s3 and the tablet 2 7.0,  and had them several time reset to their factory settings.
    I tried connecting and old WRT 120N router and it worked fine!!!! just this EA2700 is still not usable with android devices running Android 4.0 OS.
    Has somebody experienced the similar problem please share the found solution, otherwise I have to change the EA2700 i guess.
    Solved!
    Go to Solution.

    @NO_SCREENNAME@ wrote:
    I enjoyed EA2700 for more than 3 months so far until I decided to change my cell phone to Galaxy S3.
    I have my router operating 2.4Ghz and 5Ghz simultaneously, providing perfect internet access to my two windows 7 laptops, mac mini and iPad. This is not the case when I try to hook my Galaxy S3 phone and Galaxy Tab 2 7.0. This two korean devices have a real problem using the router for internet. Both the tablet and the phone connect to the router and have strong signal, but there is no ping going through nor any other internet app works. The router is set to WPA2/WPA Mixed personal sec mode and auto channel. I even try to make it open, but even then the Android devices connect but don't have an internet access. In the same time the rest of the home pcs and mac work perfectly.
    I tried, for the two last days different approaches like upgrading the router firmware, installing the cloud and the smart wi-fi interface, removing the security and opening the network…. it didn't work! What I figure out so far that if I set a guess account the devices connect without problem and have internet, although I have to manually enter  the password for the guess account, which dialogue is provided through a web page you have to navigate to before attempting to use internet. I though the problem could be with the Samsung s3 and the tablet 2 7.0,  and had them several time reset to their factory settings.
    I tried connecting and old WRT 120N router and it worked fine!!!! just this EA2700 is still not usable with android devices running Android 4.0 OS.
    Has somebody experienced the similar problem please share the found solution, otherwise I have to change the EA2700 i guess.
    you may wanna try using Wireless B/G Only for network mode on 2.4GHz. check if your devices can connect to the network successfully. there was an issue with Android devices connecting to N networks before so this might be a fix. however, it will rate limit your connection speeds to 54Mbs at best.
    there's also a workaround you can try on the android devices. ensure wifi is set to enable at start up. turn off wifi and reboot the device. verify your connection status. since your devices have already connected to the network, they should reconnect to the network automatically. check if you can go online from there.

  • Problem with Lion and mobile device

    I can access the web only through a mobile pen drive. Lion can't make the access because need a java run time for the mobile device and can't get the run time because not internet connected!

    So for reference, in case other people are experiencing this problem...
    It seems to be happening to iMacs running Lion and using bluetooth keyboard and/or mouse and/or trackpad. What happens is when you turn the computer on and the bluetooth devices on at the same time Lion can't find them, panics and starts up in Safe Mode. That is why functionality (including network) is limited. Restarting the computer seems to fix the problem and Safe Mode is avoided on the second boot up.
    The fix is apparently (and it works) to turn the iMac on and wait for the grey background and apple logo. Wait for the spinning circle/clock face to stop and vanish, then turn the bluetooth devices on when you see your desktop. I've been doing it for the last ten days and it's worked perfectly every time.
    In the mean time, Apple please can you recognise this as an issue and fix it?!

  • When will Apple fix the Yosemite connection problems with Bluetooth and USB?

    Since my Yosemite upgrade, my Apple mouse disconnects randomly - with increasing frequency, and my USB port does not connect properly with devices that used to work just fine.  Is there a way to reverse Yosemite?

    Re: how do i downgrade my OS for my macbook pro

  • JAR packages with J2ME and MIDP devices

    Some devices that use J2ME have limitted the size of java applications.
    Here's an example, device has 120 Kb of memory, but max. size of downloadable app is 30 Kb. Is it possible to make JAR packages like in J2SE so that the the application (the classes of the app) are devided to two or more JARs and get it work. Since this is an easy workaround this limit.
    In J2SE grouping app into many JARs is possible if I am right.. JAR-docs propably quides my way... I am just wondering if this is possible J2ME
    P_TR

    you may use the special .jar tool to do it.
    www.pivotonic.com
    JavaJar1.1
    you can add files to .jar file like winzip.
    and you can edit and check correct the manifest file in JavaJar editor.
    why not try it?

  • Hi all. I recently restore my old iphone 5 on my new 6. I'm having problems with bluetooth devices. The ones that were already paired with the old one are not showing in the list, and most of them(not all) are not working or pairing. I already restod

    Hi all. I recently restore my old iphone 5 on my new 6. I'm having problems with bluetooth devices. The ones that were already paired with the old one are not showing in the list, and most of them(not all) are not working or pairing. I already restored network settings to no avail. Any ideas?

    What's more, they don't even show on the bluetooth devices list..

  • Any new  about updating lion to 10.7.4 and problems  with bluetooth devices  like Bose Soundlink Bluetooth Speaker?

    Any new  about updating lion to 10.7.4 and problems  with bluetooth devices  like Bose Soundlink Bluetooth Speaker?

    Monroe
    Just in the moment i updated to lion 10.7.4  my Bose Soundlink Bluetooth  stop working as  good as it was. I´m gonna try the update in the Bose  web page. I hope  it works

  • I Have A Problem with Bluetooth connection between my I-Phone and Bluetooth in my auto

    I have a problem with bluetooth conection between my auto  (2013 Buick) And I-phone 5. I can call out but am unable to recieve incomming calls.When I attempt to answer ,Everthing disconnects and the phone call goes to mail automatically.

    Try:
    - Reset the iOS device. Nothing will be lost      
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings                            
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                               
    iOS: Back up and restore your iOS device with iCloud or iTunes
    - Restore to factory settings/new iOS device.                       
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
      Apple Retail Store - Genius Bar                                                              

  • Problem with IMAQdx and Pleora GigE Devices

    We have an iPort Analog Pro Pleora device to convert analog camera output to GigE. Our old camera works properly using the manufacturer's application "GEV". Images are displayed without problem and any packet size works fine.
    Using NI-MAX the device is found and configured properly, but trying to get images the following message appear:
    "the system did not receive a test packet from the camera. The packet size may be too large for the network config or a firewall may be enabled".
    Firewall has been disabled and several packet sizes tested, but no images received. Manufacturer said that: "I know that NI IMAQ-dx does not have multi channel support, you can stream from the first channel but what happens is when NI caches the XML file upon connection, it reads the SourceSelector register and defaults it to Source2. You have to manually change the XML file to read Source1 for the SourceSelector or you can change this in the IMAQ software itself." This is true, but modifiyng the icd file for the first channel, nothing happens.
    Also, some old messages about a similar problem with the Pleora's devices recommended to set the package' size to 1400. Again, nothing happens.
    Any piece of advice about this problem (I know many people is working with pleora's device under NI-labview)?
    Thanks in advance
    Enrique Joven (Spain)

    For interested people:
    1.- Select 1400 bytes packages
    2.- Always select "Source 1"
    and the most important thing:
    3.- Select "Firewall Traversal - enabled"
    And works.

  • I have a problem with my PC mobile device that the keyboard stop working and the mouse also

    I have a problem with my PC mobile device that the keyboard stop working and the mouse also

    All I can suggeset is:
    Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7
    or
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    Have you looked at the AMDS topic of:
    iOS: Device not recognized in iTunes for Windows
    Do you have han image capture programs linstalled like for a camers or scanner?

  • Problem with bluetooth between Iphone 6 and Mac

    I've a IPhone 6 (iOS 8.1),and a MacBook Air (OS Yosemite,10.10) and I can't pair their by bluetooth. When I try to pair them the same code is showed but their don't match.. I would like to use handoff. Tks for your support. Ezio

    what are you expecting to do with bluetooth between the devices?
    you can't sync or transfer files or the likes between the 2 using bluetooth
    would link to the apple support page about supported  bluetooth profiles but they seem to have taken down the page

  • If i buy an apple product from the actual customer who bought it, and i face some problem with it, but the device is still under warranty, so would there be any issue for getting the device checked?

    If i buy an apple product from the actual customer who bought it, and i face some problem with it, but the device is still under warranty, so would there be any issue for getting the device checked?

    If you make an appointment at the Genius Bar about a problem, they will check and evaluate the device, and if it warrants a replacement under warranty, they make the final determination. We are users here. This is a user to user support forum. We cannot determine what Apple will do. I can tell you what I already did, the warranty follows the device.

Maybe you are looking for

  • High CPU usage while running a java program

    Hi All, Need some input regarding one issue I am facing. I have written a simple JAVA program that lists down all the files and directories under one root directory and then copies/replicates them to another location. I am using java.nio package for

  • New Apple user, brand new MBP, and several (simple) issues:

    1.  One of the first things I did was change the "natural" scrolling to normal scrolling on the trackpad.  Then I found it wasn't as responsive as expected - nor as responsive as my friend's Macbook Air - so I changed it back to "natural" scrolling,

  • How to configure Load balance

    Dear all,   Newly I installed dialog instance to my CI server, Now I can configure load balance to my CI server. Please send configuration doc for MSLG and what Settings I need to perform in SAPGUI Regards, satish

  • Not sure i like the micro ph

    hello...first post. I just bought the micro photo on ebay. Looks cool, much heavier than my previous, but my first impression isn't great. I had the IAUDIO U2 and loved it! It was lost and while looking on ebay I got a deal for 00 bucks for the micro

  • How can you set up chapters in Imovie, then Idvd?

    I have slides, I brought them into Imovie, made my movie, then successfully brought it into Idvd, but when I play the dvd, I have not access to any controls, like pause or FF to next slide. Can anyone let me know what I am doing wrong? Thanks.