File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Problem in Device Descovery via Bluetooth" Watch "Problem in Device Descovery via Bluetooth" New topic
Author

Problem in Device Descovery via Bluetooth

Atul Prajapati
Greenhorn

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.

Thanks,
Atul
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

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.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
Consider Paul's rocket mass heater.
 
subject: Problem in Device Descovery via Bluetooth
 
Similar Threads
bluetooth streaming through anroid os cell phone
unable to reconnect the server bluetooth connection
Deploying midp application using nokia developer suite 2,2 with eclipse
Memory Exception!!! Help needed
do I need j2me?