linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Swathi Mathur80 <swathi_mathur80@yahoo.com>
To: bluez-users@lists.sourceforge.net
Subject: Re: [Bluez-users] Can't connect RFCOMM channel: Resource temporarily unavailable
Date: Thu, 22 Dec 2005 01:28:03 -0800 (PST)	[thread overview]
Message-ID: <20051222092803.72923.qmail@web36112.mail.mud.yahoo.com> (raw)
In-Reply-To: <1135163495.26233.58.camel@localhost>

Hello Marcel,
As per your request i have pasted the result of
“hciconfig -a” and “hcidump -X -V”. Along with it
someother information which i thought might be helpful
in debugging.

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:                          
    [FAILED]
Starting Bluetooth services:                          
    [  OK  ]
[root@localhost bluetooth]# /etc/init.d/bluetooth
restart
Stopping Bluetooth services:                          
    [  OK  ]
Starting Bluetooth services:                          
    [  OK  ]
-------------------------------------------------------

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

Voice setting: 0x0060
Can't connect RFCOMM channel: Resource temporarily
unavailable
-------------------------------------------------------

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
-------------------------------------------------------
The output of “hciconfig -a” is as below
-------------------------------------------------------
[root@localhost bluetooth]# hciconfig -a
hci0:   Type: USB
        BD Address: 00:10:60:A5:A7:61 ACL MTU: 192:8
SCO MTU: 64:8
        UP RUNNING PSCAN ISCAN
        RX bytes:181 acl:0 sco:0 events:23 errors:0
        TX bytes:94 acl:0 sco:0 commands:18 errors:0
        Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00
0x00
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2
HV3
        Link policy: RSWITCH HOLD SNIFF PARK
        Link mode: SLAVE ACCEPT
        Name: 'localhost.localdomain-0'
        Class: 0x000000
        Service Classes: Unspecified
        Device Class: Miscellaneous,
        HCI Ver: 1.1 (0x1) HCI Rev: 0x20d LMP Ver: 1.1
(0x1) LMP Subver: 0x20d
        Manufacturer: Cambridge Silicon Radio (10)
-------------------------------------------------------

Output of /etc/init.d/bluetooth status
-------------------------------------------------------
[root@localhost mail]# /etc/init.d/bluetooth status
hcid (pid 3136) is running...
sdpd (pid 3140) is running...
-------------------------------------------------------
output of “ps x”
 2714 ?        Ss     0:00 hcid: processing events
 2716 ?        Ss     0:00 sdpd
-------------------------------------------------------
I got 
You have new mail in /var/spool/mail/root after
executing “btsco xxxx“ command and i have enclosed the
mail. I don’t know whether i will be helpful in
debugging. Basically what i noticed was 2 things one
saying

 --------------------- Connections (secure-log) Begin
-----------------
 **Unmatched Entries**
 userhelper[3460]: running
'/usr/share/hwbrowser/hwbrowser' with root privileges
on behalf of 'root'
 userhelper[3599]: running
'/usr/share/hwbrowser/hwbrowser' with root privileges
on behalf of 'root'
---------------------- Connections (secure-log) End
--------------------

 --------------------- SSHD Begin
------------------------
 SSHD Killed: 6 Time(s)
 SSHD Started: 6 Time(s)
 Failed to bind:
    0.0.0.0 port 22 (Address already in use) : 6
Time(s)
 ---------------------- SSHD End
-------------------------

My apologies for such a long  mail. 
Warm Regards,
Swathi










--- Marcel Holtmann <marcel@holtmann.org> wrote:

> Hi Swathi,
> 
> > I have installed all the bluez-packages and bt_sco
> > module as a root. All the commands which are
> trying to
> > establish a connection to my headset are being
> > executed as a root. I login with root privilages
> and
> > at this point if 
> > 
> > i check the status of hcid it was showing as
> stopped.
> > (below output)
> >
>
------------------------------------------------------
> > [root@localhost /]# /etc/init.d/bluetooth status
> > hcid is stopped
> > sdpd (pid 1725) is running...
> >
>
------------------------------------------------------
> > 
> > So i restarted the bluetooth and for the first
> time i
> > got the below msg
> >
>
------------------------------------------------------
> > [root@localhost /]# /etc/init.d/bluetooth restart
> > Stopping Bluetooth services:                      
>    
> >     [FAILED]
> > Starting Bluetooth services:                      
>    
> >     [  OK  ]
> >
>
------------------------------------------------------
> > 
> > For the second time, i was able to successfully
> stop
> > and start BT services
> >
>
------------------------------------------------------
> > [root@localhost /]# /etc/init.d/bluetooth restart
> > Stopping Bluetooth services:                      
>    
> >     [  OK  ]
> > Starting Bluetooth services:                      
>    
> >     [  OK  ]
> >
>
------------------------------------------------------
> > 
> > cross checking the BT status again
> >
>
------------------------------------------------------
> > [root@localhost /]# /etc/init.d/bluetooth status
> > hcid (pid 2743) is running...
> > sdpd (pid 2745) is running...
> >
>
------------------------------------------------------
> 
> check this with "ps x" as root. I don't trust it,
> because the hcidump
> output is telling me something different. Show me
> also the output of
> "hciconfig -a".
> 
> 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
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-------------------------------------------------------
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-22  9:28 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 [this message]
2005-12-27  8:39                                     ` Marcel Holtmann
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=20051222092803.72923.qmail@web36112.mail.mud.yahoo.com \
    --to=swathi_mathur80@yahoo.com \
    --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).