Linux bluetooth development
 help / color / mirror / Atom feed
* Re: [Bluez-devel] Connection with a phone staysopenafterclosingRFCOMM channel
@ 2005-03-02 20:40 Victor Shcherbatyuk
  2005-03-02 21:52 ` Marcel Holtmann
  0 siblings, 1 reply; 2+ messages in thread
From: Victor Shcherbatyuk @ 2005-03-02 20:40 UTC (permalink / raw)
  To: bluez-devel

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" <marcel@holtmann.org>
To: "Victor Shcherbatyuk" <Victor.Shcherbatyuk@tomtom.com>
Cc: "BlueZ Mailing List" <bluez-devel@lists.sourceforge.net>
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
> Bluez-devel@lists.sourceforge.net
> 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
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Bluez-devel] Connection with a phone staysopenafterclosingRFCOMM channel
  2005-03-02 20:40 [Bluez-devel] Connection with a phone staysopenafterclosingRFCOMM channel Victor Shcherbatyuk
@ 2005-03-02 21:52 ` Marcel Holtmann
  0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2005-03-02 21:52 UTC (permalink / raw)
  To: BlueZ Mailing List

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
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-03-02 21:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-02 20:40 [Bluez-devel] Connection with a phone staysopenafterclosingRFCOMM channel Victor Shcherbatyuk
2005-03-02 21:52 ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox