Return-Path: Message-ID: <8c8e9de90805252209q6b34ca65g81ec1b8a45c27ee6@mail.gmail.com> Date: Mon, 26 May 2008 13:09:45 +0800 From: "Yuchih Liu" To: bluez-devel@lists.sourceforge.net MIME-Version: 1.0 Subject: Re: [Bluez-devel] immediate unsolicited disconnect after hcitool cc Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0647408650==" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net --===============0647408650== Content-Type: multipart/alternative; boundary="----=_Part_6314_30586620.1211778585843" ------=_Part_6314_30586620.1211778585843 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Marcel, On 2/18/07, Marcel Holtmann wrote: > Hi Choi, > > > after I do "hcitool cc xx:xx:xx:xx:xx:xx" I have a connection > > I can see with "hcitool con" but after one or two seconds I can > > see in hcidump that an HCI disconnect command is sent and > > the connection is disconnected. > > don't use this command for piconet creation. Use higher layer like L2CAP > and RFCOMM. The kernel will create the needed ACL link for you and take > fully care of it. I am doing some experience on the HCI level. Is there any HCI command i could use to maintain connection for a while? I have tried "Write Link Supervision Timeout Command", but not work. Shall i do something like unpark and then park the slavers? Thanks very much for your help, Yuchih ------=_Part_6314_30586620.1211778585843 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Marcel,

On 2/18/07, Marcel Holtmann <marcel@ho...> wrote:
> Hi Choi,
>
> > after I do "hcitool cc xx:xx:xx:xx:xx:xx" I have a connection
> > I can see with "hcitool con" but after one or two seconds I can
> > see in hcidump that an HCI disconnect command is sent and
> > the connection is disconnected.
>
> don't use this command for piconet creation. Use higher layer like L2CAP
> and RFCOMM. The kernel will create the needed ACL link for you and take
> fully care of it.

I am doing some experience on the HCI level.
Is there any HCI command i could use to maintain connection for a while?
I have tried "Write Link Supervision Timeout Command", but not work.
Shall i do something like unpark and then park the slavers?

Thanks very much for your help,

Yuchih

------=_Part_6314_30586620.1211778585843-- --===============0647408650== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ --===============0647408650== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel --===============0647408650==--