All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ users <bluez-users@lists.sourceforge.net>
Subject: Re: [Bluez-users] Use /dev/ttyS* instead of /dev/rfcomm*
Date: Mon, 23 Jul 2007 16:21:01 +0200	[thread overview]
Message-ID: <1185200461.7111.44.camel@violet> (raw)
In-Reply-To: <1185197769.46a4aec9d9dee@webmail.epfl.ch>

Hi Steve,

> I would like to know if it is possible to use /dev/ttyS* instead of /dev/rfcomm*
> to connect to a bluetooth device.
> Indeed I tried :
> 
> rfcomm connect /dev/ttyS2 xx:xx:xx:xx:xx:xx

that is wrong syntax anyway. No idea who thinks you can give it an
actual device node. It is only a device number from 0 to 255. That will
in the end correlate with number the X on /dev/rfcommX. However the
actual naming of the device node is up to udev and we don't force it. If
you don't give it a number (for example /dev/ttyS2) it will convert it
into 0 since it uses atoi() as parsing function.

As a side node. Using -1 will create the next free RFCOMM TTY device
node.

And btw. what the f* are you trying to do? Your question makes no sense
whatsoever. ttyS and rfcomm TTY devices are totally different. The ttyS
actually present a physical serial port in your system how do you wanna
attach a Bluetooth virtual TTY into it. Think about it.

Regards

Marcel



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

      parent reply	other threads:[~2007-07-23 14:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-23 13:36 [Bluez-users] Use /dev/ttyS* instead of /dev/rfcomm* steve.morard
2007-07-23 13:41 ` Manuel Naranjo
2007-07-23 14:21 ` Marcel Holtmann [this message]

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=1185200461.7111.44.camel@violet \
    --to=marcel@holtmann.org \
    --cc=bluez-users@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.