2005-03-02 20:40:15

by Victor Shcherbatyuk

[permalink] [raw]
Subject: Re: [Bluez-devel] Connection with a phone staysopenafterclosingRFCOMM channel

Hi Marcel,

The /proc/bluetooth/rfcomm/{dlc,sock} are empty upon completion of the program. hcitool con gives:
> ACL 00:0f:de:11:e4:42 handle 41 state 1 in SLAVE

Regards,
Victor.

----- Original Message -----
From: "Marcel Holtmann" <[email protected]>
To: "Victor Shcherbatyuk" <[email protected]>
Cc: "BlueZ Mailing List" <[email protected]>
Sent: Wednesday, March 02, 2005 15:19
Subject: RE: [Bluez-devel] Connection with a phone stays
openafterclosingRFCOMM channel


> Hi Victor,
>
>> Don't know if I have to post it on the mailing list (with binary
>> files)...
>
> if I ask for it, it is always fine ;)
>
>> I can not try 2.11 rc5 cause it is not an option for the current
project
>> and I do not have time to try it at home at the moment.
>
> Using a 2.6.10-mh4 is also possible, but you should at least try it with
> my kernel patch.
>
>> At the moment it is not clear from the protocol (at least for me) who
is
>> responsible for terminating connection. It may be as well a bug in
>> SE630, cause Nokia 7650 for instance takes initiative to terminate the
>> connection after DISC on dlci6 (but from another side Nokias do not
take
>> initiative to reconnect to HF device when call is received when
>> bluetooth connection is broken, as SE phones do...)
>
> You won't find any written words or hints inside the specification who
> is responsible for terminating a connection. I discussed this problem
> with a lot of people so far and there is no solution besides accepting
> bad implementations.
>
> Actually I asked you for the contents of
>
> /proc/bluetooth/rfcomm/{dlc|sock}
>
> after you ran into the stalled connection. They are really needed,
> because it might be a bug with our code that we don't cleanup the mess
> of the SE 630.
>
> 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

--




-------------------------------------------------------
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-03-02 21:52:06

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] Connection with a phone staysopenafterclosingRFCOMM channel

Hi Victor,

> The /proc/bluetooth/rfcomm/{dlc,sock} are empty upon completion of the program. hcitool con gives:
> > ACL 00:0f:de:11:e4:42 handle 41 state 1 in SLAVE

and what does /proc/bluetooth/l2cap show?

In general if there are no more open RFCOMM channels, the DLCI 0 should
be closed and this should close the L2CAP connection on PSM 3. Seems
like we have a bug or a wrong reference counting somewhere. Please also
check lsmod for the "Used by" numbers. Do you see something unexpected.

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