public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] rfcomm in TTY raw mode from DBus
Date: Mon, 28 Aug 2006 21:15:34 +0200	[thread overview]
Message-ID: <1156792534.5613.42.camel@aeonflux.holtmann.net> (raw)
In-Reply-To: <1156770065.8576.71.camel@localhost>

Hi Pierre-Yves,

> > > I can get the rfcomm connected nicely from the DBus, I only miss how to
> > > have it done in "raw".
> > 
> > this is the job the application using that TTY. It is the same as you
> > need to /dev/ttyS0 etc.
> 
> Thank you for your answer Marcel. After some investigation, it seems
> that switching a virtual TTY into raw mode is not possible in pure JAVA
> (a native call (eg JNI) to C code has to be used).
> 
> As the DBus interface is meant to be used from various languages which
> may or may not have the ability to configure TTYs, wouldn't it make
> sense to offer the possibility to get the TTY in one mode or the other
> at the time of the DBus "connect" call? Or am  missing other important
> points? To make it short, I do not understand why it is a good idea to
> offer this option from the "rfcomm" utility, and not from the DBus
> interface.

the rfcomm utility has this capability, because I needed it for some
early kernel RFCOMM demonstrations. I wrote that tool back in 2002 and
in general the application should set the TTY in the needed mode. Only
cat is too stupid for this.

If Java or any other language is too stupid to handle a TTY correctly
then it also will have problems with serial ports and other TTY based
services. This is a problem of the language you choose. So in this case
you have to fix the language and not make our D-Bus API workaround these
problems.

Regards

Marcel



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

  reply	other threads:[~2006-08-28 19:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-28  9:24 [Bluez-devel] rfcomm in TTY raw mode from DBus Pierre-Yves Paulus
2006-08-28 13:39 ` Marcel Holtmann
2006-08-28 13:01   ` Pierre-Yves Paulus
2006-08-28 19:15     ` Marcel Holtmann [this message]
2006-08-29  7:53       ` Pierre-Yves Paulus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1156792534.5613.42.camel@aeonflux.holtmann.net \
    --to=marcel@holtmann.org \
    --cc=bluez-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox