2005-02-27 13:25:16

by Victor Shcherbatyuk

[permalink] [raw]
Subject: [Bluez-devel] Connection with a phone stays open after closing RFCOMM channel

Hi Marcel!

I have the following prob.:

My prog. listens on a RFCOMM chan. (adv. as HF channel via SDP) of a
laptop, when I
connect from my phone to the laptop the chan. is opened, I send some
commands to configure the phone and when finished, close the chan. The
problem is that L2CAP connection stays open, from the output of hcidump I
see that laptop sends DISC request on dlci 6 and receives UA, but then
according to protocol it should also then send DISC for dlci 0, and then
terminate L2CAP -- it does not happen...
If I do the same, but initiating connection from laptop - it works fine...
I'm sure there is no other RFCOMM chan. opened.

I have latest lib. and utils, 2.6.10 kernel not pached. The phone is
SE630.

Thanks in advance.

Kind regards,
Victor Shcherbatyuk.
--
P.S. btw, phone detects that RFCOMM chan. is closed and changes HF icon to
general connected icon...



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel


2005-02-28 08:07:48

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] Connection with a phone stays open after closing RFCOMM channel

Hi Victor,

> My prog. listens on a RFCOMM chan. (adv. as HF channel via SDP) of a
> laptop, when I
> connect from my phone to the laptop the chan. is opened, I send some
> commands to configure the phone and when finished, close the chan. The
> problem is that L2CAP connection stays open, from the output of hcidump I
> see that laptop sends DISC request on dlci 6 and receives UA, but then
> according to protocol it should also then send DISC for dlci 0, and then
> terminate L2CAP -- it does not happen...
> If I do the same, but initiating connection from laptop - it works fine...
> I'm sure there is no other RFCOMM chan. opened.

sounds like a bug in the phone. Send in the "hcidump -X -V" for it.

Regards

Marcel




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel