linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: bluez-users@lists.sourceforge.net
Subject: Re: [Bluez-users] Can't connect RFCOMM channel: Resource temporarily unavailable
Date: Tue, 27 Dec 2005 09:39:36 +0100	[thread overview]
Message-ID: <1135672776.25315.7.camel@localhost> (raw)
In-Reply-To: <20051222092803.72923.qmail@web36112.mail.mud.yahoo.com>

Hi Swathi,

> As per your request i have pasted the result of
> =E2=80=9Chciconfig -a=E2=80=9D and =E2=80=9Chcidump -X -V=E2=80=9D. Alo=
ng with it
> someother information which i thought might be helpful
> in debugging.
>=20
> When i first started my pc if found that hcid demon
> was not running. So i re-started the bluetooth
> services and made the hcid to run
> -------------------------------------------------------
> [root@localhost bluetooth]# /etc/init.d/bluetooth
> status
> hcid is stopped
> sdpd (pid 1729) is running...
> [root@localhost bluetooth]# /etc/init.d/bluetooth
> restart
> Stopping Bluetooth services:                         =20
>     [FAILED]
> Starting Bluetooth services:                         =20
>     [  OK  ]
> [root@localhost bluetooth]# /etc/init.d/bluetooth
> restart
> Stopping Bluetooth services:                         =20
>     [  OK  ]
> Starting Bluetooth services:                         =20
>     [  OK  ]
> -------------------------------------------------------
>=20
> The headset is being put in the pairing mode. Hcidump
> -X -V is running in the background. I execute the
> btsco command
> -------------------------------------------------------
> [root@localhost /]# btsco 00:08:C6:3E:54:2C -v -r
> btsco v0.4c
> Device is 1:0
> Error: Failed to connect to SDP server: Function not
> implemented
> Assuming channel 2
>=20
> Voice setting: 0x0060
> Can't connect RFCOMM channel: Resource temporarily
> unavailable
> -------------------------------------------------------
>=20
> output of hcidump -X -V is as below
> -------------------------------------------------------
> < HCI Command: Create Connection (0x01|0x0005) plen 13
>     bdaddr 00:08:C6:3E:54:2C ptype 0xcc18 rswitch 0x01
> clkoffset 0x0000
>     Packet type: DM1 DM3 DM5 DH1 DH3 DH5
> > HCI Event: Command Status (0x0f) plen 4
>     Create Connection (0x01|0x0005) status 0x00 ncmd 1
> > HCI Event: PIN Code Request (0x16) plen 6
>     bdaddr 00:08:C6:3E:54:2C
> > HCI Event: Connect Complete (0x03) plen 11
>     status 0x22 handle 41 bdaddr 00:08:C6:3E:54:2C
> type ACL encrypt 0x00
>     Error: LMP Response Timeout
> < HCI Command: Read Voice Setting (0x03|0x0025) plen 0
> > HCI Event: Command Complete (0x0e) plen 6
>     Read Voice Setting (0x03|0x0025) ncmd 1
>     status 0x00 voice setting 0x0060
> < HCI Command: Create Connection (0x01|0x0005) plen 13
>     bdaddr 00:08:C6:3E:54:2C ptype 0xcc18 rswitch 0x01
> clkoffset 0x0000
>     Packet type: DM1 DM3 DM5 DH1 DH3 DH5
> > HCI Event: Command Status (0x0f) plen 4
>     Create Connection (0x01|0x0005) status 0x00 ncmd 1
> > HCI Event: PIN Code Request (0x16) plen 6
>     bdaddr 00:08:C6:3E:54:2C
> > HCI Event: Connect Complete (0x03) plen 11
>     status 0x22 handle 42 bdaddr 00:08:C6:3E:54:2C
> type ACL encrypt 0x00
>     Error: LMP Response Timeout
> -------------------------------------------------------

run the next one with "hcidump -X -V -t" to get the timestamps, but I am
quite sure that the hcid is not running.

> -------------------------------------------------------
> [root@localhost mail]# /etc/init.d/bluetooth status
> hcid (pid 3136) is running...
> sdpd (pid 3140) is running...
> -------------------------------------------------------
> output of =E2=80=9Cps x=E2=80=9D
>  2714 ?        Ss     0:00 hcid: processing events
>  2716 ?        Ss     0:00 sdpd
> -------------------------------------------------------

Are you 100% sure that these are running as root. You might better check
with "ps -u root | grep hcid". The non-matching PIDs make it a little
but suspicious.

Check /var/log/messages for any syslog output. However since this looks
like a RedHat or Fedora distribution, it might be a SELinux problem. If
nothing else works, try to switch it off.

Regards

Marcel




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

  reply	other threads:[~2005-12-27  8:39 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-19  3:32 [Bluez-users] Can't connect RFCOMM channel: Resource temporarily unavailable Swathi Mathur80
2005-12-19  8:54 ` Marcel Holtmann
2005-12-19  9:44   ` Swathi Mathur80
2005-12-19 10:00     ` Marcel Holtmann
2005-12-19 10:42       ` Swathi Mathur80
2005-12-19 11:07         ` Marcel Holtmann
2005-12-19 11:41           ` Swathi Mathur80
2005-12-19 11:43             ` Marcel Holtmann
2005-12-19 12:00               ` Swathi Mathur80
2005-12-19 12:05                 ` Marcel Holtmann
2005-12-19 12:32                   ` Swathi Mathur80
2005-12-19 12:45                     ` Marcel Holtmann
2005-12-19 13:03                       ` Swathi Mathur80
2005-12-19 13:39                         ` Marcel Holtmann
2005-12-20 10:08                           ` Swathi Mathur80
2005-12-20 12:02                             ` Marcel Holtmann
2005-12-21  8:41                               ` Swathi Mathur80
2005-12-21 11:11                                 ` Marcel Holtmann
2005-12-22  9:28                                   ` Swathi Mathur80
2005-12-27  8:39                                     ` Marcel Holtmann [this message]
2005-12-28 11:44                                       ` Swathi Mathur80
2005-12-28 12:16                                         ` Marcel Holtmann
2006-01-09 10:46                                           ` Swathi Mathur80

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1135672776.25315.7.camel@localhost \
    --to=marcel@holtmann.org \
    --cc=bluez-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).