public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] tcsendbreak and flow control on hciattach (csr chip)
@ 2004-10-08  9:14 Rognlien Dag Kristian
  2004-10-08 10:04 ` Marcel Holtmann
  0 siblings, 1 reply; 3+ messages in thread
From: Rognlien Dag Kristian @ 2004-10-08  9:14 UTC (permalink / raw)
  To: Bluez-devel


Hello,

If I enable both flow control and send break with hciattach:
hciattach -b ttyS1 csr 921600 flow

The unit fails to initialize. This does not happen if I disable flow
control, or send break.
The problem is also solved by setting a sleep of 0.5 seconds after the
tcsendbreak command in the hciattach.c code.

This is on an Intel XScale platform.

I use bluez libs and bluez utils 2.9 on a 2.4.21 kernel with the mh9
patch.

Any ideas for another solution than the usleep, or is this the best
solution?

Regards,
Dag K. W. Rognlien
Research Scientist
SINTEF ICT
Communication Systems


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] tcsendbreak and flow control on hciattach (csr chip)
  2004-10-08  9:14 [Bluez-devel] tcsendbreak and flow control on hciattach (csr chip) Rognlien Dag Kristian
@ 2004-10-08 10:04 ` Marcel Holtmann
  2004-10-09  9:30   ` David Woodhouse
  0 siblings, 1 reply; 3+ messages in thread
From: Marcel Holtmann @ 2004-10-08 10:04 UTC (permalink / raw)
  To: Rognlien Dag Kristian; +Cc: BlueZ Mailing List

Hi Dag,

> If I enable both flow control and send break with hciattach:
> hciattach -b ttyS1 csr 921600 flow
> 
> The unit fails to initialize. This does not happen if I disable flow
> control, or send break.
> The problem is also solved by setting a sleep of 0.5 seconds after the
> tcsendbreak command in the hciattach.c code.
> 
> This is on an Intel XScale platform.
> 
> I use bluez libs and bluez utils 2.9 on a 2.4.21 kernel with the mh9
> patch.
> 
> Any ideas for another solution than the usleep, or is this the best
> solution?

maybe this is CSR specific, I don't know. Actually I wasn't aware of
that the -b option is really used. However if the 0.5 seconds sleep is
needed then send me a patch for it and I will apply it.

Regards

Marcel




-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] tcsendbreak and flow control on hciattach (csr chip)
  2004-10-08 10:04 ` Marcel Holtmann
@ 2004-10-09  9:30   ` David Woodhouse
  0 siblings, 0 replies; 3+ messages in thread
From: David Woodhouse @ 2004-10-09  9:30 UTC (permalink / raw)
  To: Marcel Holtmann; +Cc: Rognlien Dag Kristian, BlueZ Mailing List

On Fri, 2004-10-08 at 12:04 +0200, Marcel Holtmann wrote:
> maybe this is CSR specific, I don't know. Actually I wasn't aware of
> that the -b option is really used. However if the 0.5 seconds sleep is
> needed then send me a patch for it and I will apply it.

IIRC the CSR units ship with the 'reset on break' PS key turned off so
it doesn't have any effect anyway. It's very useful if you change the
UART speed on attach though, when you want to get the thing back into a
known state.

-- 
dwmw2

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

end of thread, other threads:[~2004-10-09  9:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-08  9:14 [Bluez-devel] tcsendbreak and flow control on hciattach (csr chip) Rognlien Dag Kristian
2004-10-08 10:04 ` Marcel Holtmann
2004-10-09  9:30   ` David Woodhouse

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