Linux bluetooth development
 help / color / mirror / Atom feed
From: Shreesh Holla <hshreesh@yahoo.com>
To: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [RFCOMM] Cannot complete connections into Ubuntu
Date: Sun, 29 Aug 2010 23:53:33 -0700 (PDT)	[thread overview]
Message-ID: <287015.9937.qm@web56502.mail.re3.yahoo.com> (raw)
In-Reply-To: <AANLkTi=j6ch9_oQwb0xK9xPZ5btMUSqoHx4D8N8YM6nt@mail.gmail.com>





----- Original Message ----
From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: Shreesh Holla <hshreesh@yahoo.com>
Cc: linux-bluetooth@vger.kernel.org
Sent: Tue, August 24, 2010 8:00:11 PM
Subject: Re: [RFCOMM] Cannot complete connections into Ubuntu

Hi,

On Mon, Aug 23, 2010 at 3:22 AM, Shreesh Holla <hshreesh@yahoo.com> wrote:
> Hi,
>
> I'm running Ubuntu with 2.6.32.24 kernel.
> I have a simple RFCOMM program running on Windows Mobile which would connect
> into the Ubuntu machine. Of course I have the corresponding service running on
> the Ubuntu machine. The RFCOMM port numbers do match up.
>
> This was working a few days back and now with no changes(i.e. the same
> executable), it refuses to work anymore.
>
> So is there some configuration needed  now?
>
> I have the dongle running in Ubuntu as : hciconfig hci0 noauth noencrypt pscan
 ------ Luis says:
>>Had you tried the latest bluez, I did some changes to pair that solve
>>some problem with RFCOMM and ssp. If that doesn't help maybe you
>>should try to produce some logs of the so we can take a look.

>>Regards,

>>-- 
>>Luiz Augusto von Dentz
>>Computer Engineer

Luis,

It seems the problem is in aborting an open RFCOMM connection. And this seems to 
be an issue even with the 2.6.29 kernel. If I do abort a connection i.e. not 
gracefully i.e. by killing the applications then this is what I see:
- The connection is refused until reboot
- I tried to reset by doing a hciconfig hci0 reset AND also hciconfig hci0 
up/down
- When I do a reset actually the VM hangs completely i.e. the only way is to 
power off and restart the VM
- I do have two Bluetooth dongles - but I dont think that could be any issue.

So, fundamentally as long as I do a graceful shutdown of the RFCOMM connections 
all seems to be fine. This issue happens sometimes on the first abort. But 
definitely within three attempts. This is what I have been able to figure out 
since my last e-mail.

Do let me know if this helps. If you would need more details such as the hcidump 
logs or dmesg logs - I ca send that too.

Thanks,
Shreesh



      reply	other threads:[~2010-08-30  6:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-23  7:22 [RFCOMM] Cannot complete connections into Ubuntu Shreesh Holla
2010-08-25  3:00 ` Luiz Augusto von Dentz
2010-08-30  6:53   ` Shreesh Holla [this message]

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=287015.9937.qm@web56502.mail.re3.yahoo.com \
    --to=hshreesh@yahoo.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=luiz.dentz@gmail.com \
    /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