public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] UDP and TCP packets across Bluez connections?
@ 2007-09-21 16:57 rparker
  2007-09-22  7:46 ` Marcel Holtmann
  0 siblings, 1 reply; 5+ messages in thread
From: rparker @ 2007-09-21 16:57 UTC (permalink / raw)
  To: bluez-users


[-- Attachment #1.1: Type: text/plain, Size: 1599 bytes --]

I have an emebdded Linux app that currently listens on a socket that 
receives messages from multiple interfaces (e.g. ethernet, USB with RNDIS, 
wireless). I want to add Bluetooth support.

My question: Do Bluez interfaces to Bluetooth devices act like any other 
IP interface?

I found example source code on the internet of sockets being opened with 
AF_BLUETOOTH as the socket domain (i.e. the first argument to the socket 
call). Does one have to always do it that way in order to receive inbound 
messages on a Bluetooth interface?

I came across text that makes it sound like one uses L2CAP in place of UDP 
and RFCOMM in place of TCP.
http://people.csail.mit.edu/albert/bluez-intro/x95.html 

http://bluez.sourceforge.net/contrib/HOWTO-PAN

So then is it not possible to do TCP/IP across Bluetooth connections? Does 
one need to write application level code that is different for Bluetooth 
as compared to ethernet/USB/wireless?

Also, if one can do TCP/IP over Bluetooth from Linux then does Windows 
recognize incoming TCP and UDP packets without loading a special driver on 
Windows? Currently with USB one uses RNDIS on Windows and an RNDIS 
equivalent driver configuration on Linux. Then Windows and Linux can talk. 
But to do TCP/IP between Linux and Windows over Bluetooth what does one 
do?

Or if there is not real TCP/IP support with Bluetooth does Windows 
understand RFCOMM and L2CAP?

Also, is there some sort of authoritative write-up on a web page somewhere 
about TCP/IP on Bluetooth? I've Googled up read probably 100 web pages 
looking for better info and haven't found it.

[-- Attachment #1.2: Type: text/html, Size: 1945 bytes --]

[-- Attachment #2: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

end of thread, other threads:[~2007-09-24 23:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-21 16:57 [Bluez-users] UDP and TCP packets across Bluez connections? rparker
2007-09-22  7:46 ` Marcel Holtmann
2007-09-22 12:47   ` Timothy Murphy
2007-09-22 18:53     ` Marcel Holtmann
2007-09-24 23:49   ` rparker

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