public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] Use /dev/ttyS* instead of /dev/rfcomm*
@ 2007-07-23 13:36 steve.morard
  2007-07-23 13:41 ` Manuel Naranjo
  2007-07-23 14:21 ` Marcel Holtmann
  0 siblings, 2 replies; 3+ messages in thread
From: steve.morard @ 2007-07-23 13:36 UTC (permalink / raw)
  To: bluez-users

Hello !

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

But I get  :

Connected /dev/rfcomm0 to xx:xx:xx:xx:xx:xx on channel 1

Any help would be appreciated

Thanks





-------------------------------------------------------------------------
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

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

* Re: [Bluez-users] Use /dev/ttyS* instead of /dev/rfcomm*
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Manuel Naranjo @ 2007-07-23 13:41 UTC (permalink / raw)
  To: BlueZ users

You can create a symlink :D.
ln -s /dev/rfcomm# /dev/ttyS@
Where @ is not a used ttyS
> Hello !
>
> 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
>
> But I get  :
>
> Connected /dev/rfcomm0 to xx:xx:xx:xx:xx:xx on channel 1
>
> Any help would be appreciated
>
> Thanks
>
>
>
>
>
> -------------------------------------------------------------------------
> 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
>
>   


-------------------------------------------------------------------------
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

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

* Re: [Bluez-users] Use /dev/ttyS* instead of /dev/rfcomm*
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Marcel Holtmann @ 2007-07-23 14:21 UTC (permalink / raw)
  To: BlueZ users

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

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

end of thread, other threads:[~2007-07-23 14:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox