[Cbe-oss-dev] [Bluez-devel] [PATCH] bluetooth: reset unexpected connections

Ranulf Doswell ralf at ranulf.net
Wed Jul 4 17:05:34 EST 2007


Hello again

> > I'm pretty new to both bluetooth and HID in general, [...]

> That you don't see no packets on HCI doesn't mean that no packets are
> sent from the remote device anymore.

That appears to be a critical point I haven't yet figured out.

I've been trying to understand the minimum of bluetooth stack, HCI, USB,
HID, protocol descriptors, etc to try to figure out how to get the blu-ray
remote working (another issue) but I'm still getting my head around how all
the bits fit together as, for instance, it took a while to figure out how
the PS3 controller seemed to "just work"... :)

This was just a problem I discovered along the way, which seemed to have a
simple fix. If it's wrong, I'm happy to leave it to someone who knows
better! Geoff knows about the issue now, so I guess when he revisits the
bluetooth stuff, he might find a better solution to the problem.

> And there is no way to send a reset to a remote device. Period.

I'd like to figure out what's going on though, as the lights stop flashing
on the device when we do this local reset. Maybe it changes some lower level
state so packets are NAK'd instead, but I'd like to understand that process
in that case.

> > Additionally, because the linux subsystem hasn't connected with them
> > at this point, there's no way of initiating a connection with them or
> > stopping them:
> That makes no sense. The HID devices can re-connect. However they have
> to indicate this via requesting a ACL connection. Otherwise we can't
> know what to do with the data packets.

My understanding is that the controller believes it is already connected and
so it never tries to reconnect and instead just keeps sending data.

Maybe a reconnection does occur at some layer below ACL that I don't
understand yet, but I thought ACL was the lowest layer, so I've not been
looking for that.

>It is not a DoS, because you have to connect it first. And obviously you
> told your PS3 remote controller to user your system.

Looking back at the logs, I see that the messages do start around the time
hcid is loaded (which is set to autoconnect without authentication), so
maybe it has actually established a channel by that point.

There's nothing in the logs about a connection and hcitool doesn't list
anything, but I've not enough experience with other devices to know what's
actually going on.

Thanks for your input - I suspect I've got a lot of learning about bluetooth
to come...

Cheers,
   Ralf.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/cbe-oss-dev/attachments/20070704/d85f2894/attachment.htm>


More information about the cbe-oss-dev mailing list