This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes Problem in Device Descovery via Bluetooth Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Problem in Device Descovery via Bluetooth" Watch "Problem in Device Descovery via Bluetooth" New topic

Problem in Device Descovery via Bluetooth

Atul Prajapati

Joined: Oct 24, 2005
Posts: 7
Hi Friends,

In my application i m going to monitor the near by bluetooth devices by making contineous search.For this i am serching for devices contineously in a loop i.e. one device discovry is completed then start new device discovry.

My application works perfectly on WTK but when i tested it on NOKIA 6600 i faced the following problem.

At first time when i start my MIDlet it descovers all the near by bluetooth devices.Now i m going for another device discovery.In this case If any new user join the room it is discovered but if any existing user leave the area or switch off the Bluetooth, still that device is descovered in device discovery. So is there anything like cache? i need help that why my application is not working in same manner on Real Device and how can i identify the devices which left the room or swithed off the bluetooth.

Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

First, just note, that Bluetooth of all the Specs/APIs is the one I find the most frustrating on real devices. Becuase it seems that the manufacturer's all really interpretted the specs all different and did different things.

But enough of that. There are two types of discovery, if I remember. One that gets all the devices, regardless of any search you did before, and another that just gets the new stuff. Maybe it is just using the getting the new stuff discovery, and you might want the get all again. Which of course, I would suspect that getting all again would take a little longer.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: Problem in Device Descovery via Bluetooth
It's not a secret anymore!