Set COD on Android bluetooth server

I'm developing a bluetooth server over Android. The client I want to be connected has established a COD (Class of Device) filter, in order I don't catch the connection unless I have a concrete COD.

Are there any way for establishing the COD of the Bluetooth adapter?

Thanks in advance.

-------------Problems Reply------------

You probably have stopped looking here, but I'll try my luck anyway. you may be able to alter the CoD of the device using hcitool through adb shell. try entering in the following

hciconfig hci0 class 0x002504

With whatever class you want.

You can also try changing the CoD in /system/etc/bluetooth/main.conf.

I am searching for a solution to this problem myself and unfortunately because of the way Samsung implemented the bluetooth stack on the Galaxy S neither work. If anyone else has any other solutions please respond to my XDA post here

Category:android Views:0 Time:2010-08-20

Related post

  • Trouble connecting android bluetooth client socket to ubuntu server socket 2010-07-15

    I am writing an Android app that should exchange data to a server over Bluetooth, with the server side on a PC running Ubuntu, using the bluez library, in C (or C++). My Android app fails (IOException) when I try to connect to my server socket on the

  • Setting up a pc bluetooth server for android 2010-07-22

    Possible Duplicate: Service discovery failed exception using Bluetooth on Android Alright, I've been reading a lot of topics the past two or three days and nothing seems to have asked this. I am writing a PC side server for my andriod device, this is

  • Code samples for Android Bluetooth programming 2011-04-11

    I'm new to Android. I'm looking for some code samples for Android Bluetooth programming. Could you please post them for me? Any useful link would be appreciated. --------------Solutions------------- I realize this is an old thread, but I thought I'd

  • Android Bluetooth - source code 2011-05-23

    I have been strugling with a Bluetooth project on Android for weeks. Does anyone know where I can go to see the actual code that's used by Google to make their Bluetooth pairing and connection logic work? I have been through all the documentaiton, th

  • Android Bluetooth Programming Source Code Examples and Documentation 2012-01-24

    I am experienced to some extent with Android mobile phone programming; but, I must admit that I am always learning. I am working on a project involving HTC Desire HD mobile phones running Android version 2.3.5 Gingerbread. Through my research I have

  • Android Bluetooth Fails to Pair 2010-03-13

    I am having a problem getting my devices to pair in Android. If I go into the settings and pair them manually I can get them to connect using the following code: Server @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedI

  • android.bluetooth.BluetoothSocket cannot connect 2010-12-09

    I've tried all the suggestions in other comments without avail and I hope someone can help me. I've been struggling with this problem for three days now. I'm quite sure my UUIDs are correct and I know that the bluetooth access is enabled in the manif

  • Android Bluetooth socket freeze application 2010-12-10

    I have a strange issue with bluetooth socket. If I create socket and later close application, android device freeze with very hight CPU load. Here my sample code: // open socket public ConnectThread(final BluetoothDevice device) { Log.v(ConnectThread

  • Android Bluetooth Development - connecting to an UNPAIRED device 2011-01-19

    First off, I AM able to programmatically connect to a device via bluetooth if I have manually paired it beforehand. However, I haven't found a (user-friendly) way to connect with unpaired devices (that are discoverable, obviously), even using the unc

  • Bluetooth server application using java WTK 2.5.2 crashes on launch 2011-03-02

    For the last few days, I've been developing an Android application which goal is to use the touch screen to move the cursor on my computer. I've first implemented the communication between the mobile phone and my computer using WiFi. Everything is ok

  • Android bluetooth UUID for serial port causes exception 2011-04-25

    I'm using the Android development sample project BluetoothChat. I'm running it on an Archos 43 and trying to communicate with a serial to bluetooth adapter. To communicate with t

  • Android Bluetooth API: Can a servar side app Connect to well known client only on a bluetooth connection 2011-04-28

    May i achieve that server side application (using android bluetooth API)connect to particular client if i already know client's device name (as saved at servar side app in its database)? How would i handle it? some idea /Code example? i am making cla

  • Android: Bluetooth - can't establish connection, IOException "Connection reset by peer" 2011-05-07

    I'd be very grateful if someone could help me. I'm trying to connect to some custom bluetooth hardware a client has provided me. I've followed the API docs religiously and am using the following code (mostly copied and sewn together from the official

  • How to connect to different Bluetooth server applications on the same computer? 2011-11-28

    I would like to know how I can connect to multiple Bluetooth server applications (written in Java) from Android mobile phone. Every server application has different UUID. I referenced some code from Android's Bluetooth Chat application, but tmp = dev

  • "Service discovery failed" from Android Bluetooth Insecure Rfcomm 2011-12-15

    Does anyone know how to create an insecure RFCOMM connection between 2 Android devices at API level 2.3.3 while using an arbitrarily declared service name? (not random or changing service name, just a service name that I define myself) Details I am t

  • Android bluetooth SDP does not recognize service advertised in JAVAME 2012-02-23

    I am developing a bluetooth application for my MSc. End Project. It includes a server implemented in JAVA ME, and a client writen in Android. The problem is that Android SDP seems to fail at recognizing the ServiceRecord of my JAVA ME server. If I us

  • Android Bluetooth enable 2012-02-24

    I am developing a Bluetooth chat application. The problem is that when i enable Bluetooth the application enables Bluetooth but causes force close. the next time i launch the same application(with Bluetooth enabled) it works smoothly ! i have searche

  • Android bluetooth connection error (no bt sock found, scn 1) - infinite loop 2012-03-29

    I am facing the same problem as in a previous (and unanswered) question, I was hesitating to edit it, as I want to add a lot more information. So here is the related question : Android bluetooth connection fails (Error: no bt sock found, scn 1). The

  • How to prevent Android bluetooth RFCOMM connection from dying immediately after .connect()? 2010-04-18

    This problem has been solved! Thanks a lot to Brad, Denis and junkie! You're the heroes! :) This is the working code. It connects to Zeemote and reads data from it. ===== Code ===== public class ZeeTest extends Activity { @Override public void onCrea

Copyright (C), All Rights Reserved.

processed in 0.103 (s). 11 q(s)