Bluetooth service search

I'm going to write a program searching fo services on other devices. It works well on other mobile phones, but when my application looks for services on devices like a headset the servicesDiscovered method is never been invoked.
I'm using the searchServices method of the DiscoveryAgent class, with attributes and UUID for a BrowseGroupList.
My question is, is it possible to search for services on devices like headsets otherwise?

Thanks for your reply. I have tested it with the attribute for service names, i.e.
attrSet = new int[]{ 0x0100 }; // Service nameIt didn't help, though.

Similar Messages

  • My new backbeat GO 2 is not recognized by bluetooth service on my ipad mini with ios 7.0.4! Could you help me?

    My new backbeat GO 2 headset is not recognized by bluetooth service of my new ipad mini with ios 7.0.4! It doesńt appear in the list of bluetooth devices. It was working on previous versions! What happens? Could someone help me? Thanks!

    There are a ton of posts on this already if you search the forums.In short...
    Delete all Bluetooth profiles from your device. Do the same if your Bluetooth devices allow for that.
    Setting > Reset Network Settings
    Reset your iPad by simultaneously pressing and holding the Home and Sleep/Wake buttons until you see the Apple Logo. This can take up to 15 seconds so be patient and don't release the buttons until the logo appears.
    Repair your devices
    Try again to see if the problem persists.

  • Is it possible to know which bluetooth services are available with a MIDlet

    ...Bluetooth Services like Serial Port Support, Obex File Transfer, Dial-up Networking...
    I've already try to search with "getProperty()" (api.version, n� max. of devices...) but it awlays return "null" !!!!. I'm a beginner in j2me BLUETOOTH. Thanks!

    Varies from phone to phone.
    I believe it is recommended to use a port between
    16001 and 16999 on a J2me app as these are almost
    always free.
    In my opinion the best way to find out what will work
    and what won't is to create a small app which will
    try to create an SMS connection on a specified port
    (specified through something like a textbox) and
    which will display something indicative if an
    IOException is thrown during the process of
    creation.
    Most manufacturers usually also have documentation on
    this on their developer sites...hi i have a similar problem with they guy above
    i have installed a camera network wich has acces to web from port 8080 i have access from any computer that has internet but when i connect with the java app provided from the cameras company it throws "java.lang.securityexception untrusted midlet attempted to connect to a restricted port" i was wondering if i change te port tha i connect will i have access from that program?? and if yes wich port should i use? i am asking because its not easy to have access to the router to change the port forwarding settings thank you in advance

  • Cannot find where the issue is, Bluetooth service discovery

    Hi there,
    I am developing a client/server bluetooth messaging application and seem to have to run into a brick wall. I am able to perform a device discovery, and the client is able to locate the server, however I am not able to locate the service on the server even though the server and the client are both using the same UUID and service name.
    It gets to the point where it displays the status message, "Service search initiated" and then it seems like nothing else happens. I have been staring at the code for days and tried all sorts of tinkering, but have been unable to get it to work.
    The UUID and service name I am using is:
    48dd1cf559bb41009d0686f7862d26a2
    serverand below is the code for my class that I implement the device and services discovery in:
    import javax.microedition.io.*;
    import java.util.*;
    import java.io.*;
    import javax.bluetooth.*;
    public class SearchForServices implements DiscoveryListener
        private MessageClient client;
        private String StrUUID; //UUID of service
        private String nameOfService; // Name of service
        private LocalDevice local; //local device
        //Discovery Agent
        private DiscoveryAgent discover;
        //store list of found devices
        private Vector devicesFound;
        //table of matching services/ device name & service Record
        private Hashtable servicesFound;
        private boolean searchComplete;
        private boolean terminateSearch;
        public SearchForServices(MessageClient client, String uuid, String nameOfService)
            //create the discovery listener and then perform device and services search
            this.client = client;
            this.StrUUID = uuid;
            this.nameOfService = nameOfService;
             //create service search data structure
            this.servicesFound = new Hashtable();
            try
                //get discovery agent
                local = LocalDevice.getLocalDevice();
                discover = local.getDiscoveryAgent();
                //create storage for device search
                devicesFound = new Vector();
                //begin search: first devices, then services
                this.client.modifyStatus("Searching for devices...");
                discover.startInquiry(DiscoveryAgent.GIAC, this);
            catch(Exception e)
                this.client.reportError("Unable to perform search");
        /////////////Methods related to the device search called automatically///
        public void deviceDiscovered(RemoteDevice remote, DeviceClass rank)
            // a matching device is found.Only store if it's a PC or phone
            int highRankDevice = rank.getMajorDeviceClass();
            int lowRankDevice = rank.getMinorDeviceClass();
            //restrict devices
            if((highRankDevice == 0x0100) || (highRankDevice == 0x0200))
                devicesFound.addElement(remote);
                this.client.modifyStatus("Device Found");
            else
                this.client.reportError("Matching device not found");
        private String deviceName(RemoteDevice remote)
            String name = null;
            try
                name = remote.getFriendlyName(false);           
            catch(IOException e)
                this.client.modifyStatus("Unable to get Friendly name");
            return name;
        public void inquiryCompleted(int inquiryMode)
            showInquiryStatus(inquiryMode);
            //update status
            this.client.modifyStatus("Number of devices found: " + devicesFound.size());
            // start searching for services
            this.client.modifyStatus("Service search initiated");
            findServices(devicesFound, this.StrUUID);
        private void showInquiryStatus(int inquiryMode)
            if(inquiryMode == INQUIRY_COMPLETED)
                this.client.modifyStatus("Device Search Completed");
            else if(inquiryMode == INQUIRY_TERMINATED)
                this.client.modifyStatus("Device Search Terminated");
            else if(inquiryMode == INQUIRY_ERROR)
                this.client.modifyStatus("Error searching for devices");
        //service search////
        private void findServices(Vector devFound, String strUuid)
            //Perform search for services that have a matching UUID
            //and also check service name
            UUID[] uuids = new UUID[1]; //holds UUIDs for searching       
            //add the one for the service in question
            uuids[0] = new UUID(strUuid, false);
            //to include search for service name attribute
            int[] attributes = new int[1];
            attributes[0] = 0x100;      
            //carry out service search for each device
            //terminate search
            this.terminateSearch = false;
            RemoteDevice xremote;
            for(int i=0; i < devFound.size(); i++)
                xremote = (RemoteDevice)devFound.elementAt(i);
                findService(xremote, attributes, uuids);
                if(terminateSearch)
                    break;
            //report status
            if(servicesFound.size() > 0)
                this.client.displayServices(servicesFound);
            else
                this.client.reportError("No Matching services found");
        private void findService(RemoteDevice remote, int[] attributes, UUID[] uuid)
            try
                int transaction = this.discover.searchServices(attributes, uuid, remote, this);      
                searchFinished(transaction);
            catch(BluetoothStateException e)
        private void searchFinished(int transaction)
            this.searchComplete = false;
            while(!searchComplete)
                synchronized(this)
                    try
                        this.wait();
                    catch(Exception e)
        //below methods called automatically during a search for devices
        public void servicesDiscovered(int transID, ServiceRecord[] records)
            for(int i=0; i < records.length; i++)
                if(records[i] != null)
                    //get service records name
                    DataElement servNameElem = records.getAttributeValue(0x0100);
    String sName = (String)servNameElem.getValue();
    //terminate search
    this.terminateSearch = true;
    if(sName.equals(this.nameOfService)) //check name
    RemoteDevice rem = records[i].getHostDevice();
    servicesFound.put(deviceName(rem), records[i]); //add to hashtable
    public void serviceSearchCompleted(int transID, int respCode)
    //wake up the waiting thread for this search, enabling the next services
    //search to commence
    this.searchComplete = true;
    synchronized(this)
    this.notifyAll();
    After doing abit of troubleshooting, I realised that somehow the client is not able to locate the service on the Server, but I do not understand why that should be so, because the UUID and service name are matching on both the client and the server. It just beats me, and I would appreciate it if a 2nd pair of eyes could have a look at the code. Maybe there is something that I am missing.
    Thanks, I do appreciate..                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi there,
    I tried a few things such as
    1) Changing the UUID for my application, but that didn't make the system work.
    2) I then went on to modify the implementation and use the selectService() method of the bluetooth class, but still without any luck.
    The only way it works, is if I get the server side to display the connection parameters and I manually enter them into the client side to connect. I do not understand why it is not working the automatic way. I have scanned through my code and logic multiple times, and still cannot figure out what the issue is. :(
    Any help would be appreciated...

  • HT1414 bluetooth devise searching will not stop

    Bluetooth devise searching - will not stop.  draining battery.  Have tried reset network settings, complete system restore, forget this device.  nothing is working to remove this bug.

    You are on step #5. You need to select your network and input network password.
    Setup new iPad
    1. Turn on iPad
    2. Set Language; tap arrow on top right
    3. Set Country; tap Next
    4. Enable Location Service; tap Next
    5. Setup WiFi (connect to internet)
    6. Setup as new; tap Next
    7. Sign-in with Apple ID
    8. Agree with Apple Terms and Conditions
    9. Enable iCloud
    10. Enable Find My iPad
    11. Register iPad
    12. Start using iPad

  • HT1688 My iphone 3GS is showing no service your network is restriced you can choose a different network in settings ive tried a restore and upgrading software/downgrading still no fix just no service searching...

    My iphone 3GS is showing no service your network is restriced you can choose a different network in settings ive tried a restore and upgrading software/downgrading still no fix just no service searching...
    I have no idea why this has happend ive been using the phone for 2years bought it on pay as you go and now all of a sudden its stating the above error i have never come across this problem before and currently im using 3GS and Iphone 4S

    Sounds like it's been blacklisted.
    Even if it hasn't, downgrading voids any warranty and forfeits all rights to support. You hacked your phone. You can't get help here.

  • My iphone 3 bluetooth is searching all the time

    my iphone 3 bluetooth is searching all the time ,it is not working properly
    ple solved this problems

    That's completely normal.  Everytime you open up the bluetooth settings menu, it will indicate the bluetooth is searching.  It stops when you get out of the menu.

  • N95 bluetooth services, and firmware

    Phone: N95
    Firmware: 10.0.018
    Nokia PC Suite: 6.81.13.0
    Problem:
    - I am trying to use N95 as a bluetooth control for my PC. There is a Java software (Moccatroller) that has server/PC Java application and client/phone applcation. However, I can not establish valid (serial?) connection with that server application via bluetooth. On the other hand, PC Suite works fine: synchronising, transfer of music and pictures, etc - works perfectly.
    I am not using Bluesoleil, but I tried it because i wanted to see if i can discover where is the problem. using Bluesoleil I could not find any bluetooth services of myu N95. It says something about not being able to detect any services from my N95. Other phones work ok and have servces such as object push, serial com, etc. Then, I unistalled Bluesoleil and tried to see if some services are available from classic b.tooth software (? one that came with PC Suite or my btooth USB dogle). However, only DUN service is available with my N95. I tried with other phone, and one more service was availabe - Serial Port (SPP) COM11. I believe that is the service i need to run the remote control software i mentioned in previous paragraph.
    Questions:
    1. Is this the normal behaviour of N95?
    2. How can I make more bluetooth services available from my N95 (specially serial port)?
    3. Will firmware upgrade solve my problem?
    4. What are new features and improvements in firmware 12 compared to version 10 that i have installed.
    Thank you for the answers.

    It's been a while since you posted this, so you have probably already stumbled on this solution.
    I have a Jabra Cruiser rather than a Jabra Freeway, but I expect the same trick will work.
    When I get out of my vehicle, I slide the switch on the Jabra to the off position. When I return to the vehicle, my BlackBerry automatically connects to the BlackBerry Music Gateway when I start the vehicle. When I turn on the Jabra after that, it autoconnects. Music goes to the Gateway, but phone calls go to the Jabra.

  • Configuring Browsing Indexes for Service Search Descriptor Filters

    I am running DSEE 6.1 on Solaris 10.
    I restrict access to the ldap clients (solaris8, 9, and 10) for various users in the Directory by configuring the service search descriptors to use a filter based on specific roles. Each servers profile mentions a role depending on type of server and then users are assigned roles which are nested within specific server type roles:
    NS_LDAP_SERVICE_SEARCH_DESC= passwd:ou=People,dc=example,dc=com?one?nsrole=cn=serverRole,ou=profile,dc=example,dc=com
    NS_LDAP_SERVICE_SEARCH_DESC= group:ou=group,dc=example,dc=com?one
    NS_LDAP_SERVICE_SEARCH_DESC= audit_user:ou=People,dc=example,dc=com?one?nsrole=cn=serverRole,ou=profile,dc=example,dc=com
    NS_LDAP_SERVICE_SEARCH_DESC= shadow:ou=People,dc=example,dc=com?one?nsrole=cn=serverRole,ou=profile,dc=example,dc=com
    NS_LDAP_SERVICE_SEARCH_DESC= user_attr:ou=People,dc=example,dc=com?one?nsrole=cn=serverRole,ou=profile,dc=example,dc=com
    I have noticed in my error logs on the Directory servers messages regarding these filters not being indexed:
    WARNING<20805> - Backend Database - conn=949139 op=1 msgId=2 - search is not indexed base='ou=people,dc=example,dc=com' filter='(nsRole=cn=serverRole,ou=profile,dc=example,dc=com)' scope='one'
    I have also had a few instances where the naming services seems to have stopped altogether. This seems to be timed with when my clients do a refresh of the ldap cache - which is the time that I seed the not indexed messages in the error log.
    I guess that I need to set up Browsing Indexes for these filters
    Can anyone give examples how to do this?
    I guess I will need a vlvBase of ou=people,dc=example,dc=com
    vlvScope of 1
    vlvFilter of nsRole=cn=serverRole,ou=profile,dc=example,dc=com
    I am not sure what I would do for vlvsort attributes though??

    The access logs shows that the attributes to be sorted are uid and cn:
    25/Apr/2008:09:58:21 +1200] conn=171835 op=1 msgId=2 - SRCH base="ou=people,dc=example,dc=com" scope=1 filter="(nsRole=cn=serverRole,ou=profile,dc=example,dc=com)" attrs="cn uid uidNumber gidNumber gecos description homeDirectory loginShell"
    [25/Apr/2008:09:58:21 +1200] conn=171835 op=1 msgId=2 - SORT cn uid (1426)
    [25/Apr/2008:09:58:21 +1200] conn=171835 op=1 msgId=2 - VLV 0:999:0:0 1:1426 (0)
    [25/Apr/2008:09:58:26 +1200] conn=171835 op=1 msgId=2 - RESULT err=0 tag=101 nentries=999 etime=5 notes=U
    So the vlvsort attributes should be cn and uid.

  • Intel Bluetooth Service View has stopped working

    I have a Windows 7 laptop model dv4t-4000 CTO Entertainment Notebook PC (product number LH989AV) and I get this error message ("Intel Bluetooth Service View has stopped working") every time I try to connect to my Bluetooth Earbuds. The pairing seems to work fine, but there is NO SOUND in the earbuds, the sound continues to play from my PC speakers instead. Can anyone help? Please tell me how to fix this error message "Intel Bluetooth Service View has stopped working." Thank you!!!

    Hello CathyJo
    I am sorry to hear you are having issues with your Bluetooth not working. I would like to offer my assistance in this matter. I would recommend that you try the steps I have outlined below"
    Step 1. Go to device manager
    Step 2. Right click on "Bluetooth Peripheral Device" that you want
    Step 3. Select "Update Driver Software..."
    Step 4. Choose "Browse my computer for driver software"
    Step 5. Choose "Let me pick from a list of device drivers on my computer"
    Step 6. Select "Ports (COM & LPT)"
    Step 7. Select "Microsoft" at "Manufacturer" list
    Step 8. Finally select "Standard Serial over Bluetooth link"
    If the above steps do not work I would recommend you read this thread concerning this issue on the Intel Forums.
    I hope I have been able to provide you with the assistance you need. Thank you for posting on the HP Forums. Have a great day!
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    Dunidar
    I work on behalf of HP
    Find out a bit more about me by checking out my profile!
    "Customers don’t expect you to be perfect. They do expect you to fix things when they go wrong." ~ Donald Porter

  • Can someone hack into my MacBook Pro even it's not connected to the internet and both Wi-fi and Bluetooth services are off?

    Hi,
    Need to know if someone can hack into my MacBook Pro even if it's not connected to the internet and both Wi-fi and Bluetooth services are off? Can someone enter my system even if the settings at System Preferences > Sharing are all off?

    Jose Alessandro wrote:
    Need to know if someone can hack into my MacBook Pro even if it's not connected to the internet and both Wi-fi and Bluetooth services are off? Can someone enter my system even if the settings at System Preferences > Sharing are all off?
    Yes,
    Through Bonjour, Apple's open source zero configuration networking.
    https://developer.apple.com/bonjour/
    http://flylib.com/books/en/2.434.1.105/1/
    And you can't turn it off or your computer won't work, however saving grace is the hacker has to be pretty close to your machine to do it.

  • Need help abt bluetooth services on windows 8 enterprise

    glad to join hp forums and thats help me too much persoanlly also at work 
    got problem in bluetooth services nd iam using windows 8 enterprise all bluetooth services was working well on windows 7 professional but i upgraded ma os nd now just i can send and recive files via bluetooth , cant play music directly too , i got screen shot thats will explain more :    
    thats what i need i got this screen shot from help its full services  i got just one option its file transfer
    and this is what i got right now   
    need help i like win 8 more than 7 so i wont back to use win 7 

    With the Error 2, let's try a standalone Apple Application Support install. It still might not install, but fingers crossed any error messages will give us a better idea of the underlying cause of the issue.
    Download and save a copy of the iTunesSetup.exe (or iTunes64setup.exe) installer file to your hard drive:
    http://www.apple.com/itunes/download/
    Download and install the free trial version of WinRAR:
    http://www.rarlab.com/download.htm
    Right-click the iTunesSetup.exe (or iTunes64Setup.exe), and select "Extract to iTunesSetup" (or "Extract to iTunes64Setup"). WinRAR will expand the contents of the file into a folder called "iTunesSetup" (or "iTunes64Setup").
    Go into the folder and doubleclick the AppleApplicationSupport.msi to do a standalone AAS install.
    Does it install properly for you?
    If instead you get an error message during the install, let us know what it says. (Precise text, please.)

  • Creating a bluetooth service

    I'm trying to create a bluetooth service but I'm not sure what is required in the .plist they want me to load into IOBluetoothSDPServiceRecord. Does anyone have an outline or a guide. The documentation isn't help me out much here.
    Thanks.

    However, I was hoping someone could save me some time.
    You had to go there, didn't you Again, what I'm hearing is...
    "I'm not eager enough to spend my time, but I'm brash enough to take advantage of someone who has!"
    The more effort you express, the more effort those who've already been done the road may feel like donating...don't insult those types by walking up and asking for a handout right off the bat.
    Same goes for blaming the docs - it's amazing how many first posts contain that refrain, like it's an original excuse, when forum regulars hear it over and over and recognize it for what it is - an excuse for not wanting to do the work - just get the code from someone else and collect the money.
    Everyone gets tired of people blaming something else as an excuse for their not being able/willing to man up and do at least a bit of work on their own.
    Lots of people do this from time to time, but please at least try to not be so blunt on your first visit..._try to hide it - try to show some effort_ of some sort, ok?
    If you have some good info and perhaps share that first, others will be encouraged to exchange...you're on the right track with that. Good luck in any case.

  • Missing Bluetooth Services

    I am trying to pair my Zire 72 with my laptop with Bluetooth.  On the Zire 72 I get a dialog box saying "Missing or incorrectly installed Bluetooth services."  How can I fix this problem.  I can't run the bluetooth pairng setup.
    Thanks,
    Andrew
    Post relates to: Zire 72

    Hi, I have a similar problem with my TX. I can pair it with a cellphone, I can receive a file via Bluetooth, but when I try to send a file (with no lock), I don't have any dialog box to chose the way to send it.
    When I want to send a file via Documets to Go, I have a error message : "the operation could not be completed. There may be no transmission service provided or there may be no available receiving application for this type of data"
    When I want to send a file via FileZ, I have a error message : "Error:exg:Target Missing in item::send VFSFile() a" puis "An error occured and the item could not be sent".
    Whan I want to send via menu App-> Send, no dialog box. I stop the program and do again menu APP-> Send and the Palm reboots.
    I soft reset with no change, and I don't what to hard reset if possible. Can someone tell the files/programs on the palm which control this service so I can check if I have them still on my device.
    Regards

  • HT201270 My wifi is not working and the bluetooth is searching

    My wifi is greyed out and not able to be turned on. The bluetooth is also not working and is simply searching continously.

    My iphone 4s 7.1.2 is doing the exact same thing. and the bluetooth continously searching isn't what it is normally supposed to do. It can't find anything.

Maybe you are looking for