* [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
* Re: [Bluez-users] UDP and TCP packets across Bluez connections?
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-24 23:49 ` rparker
0 siblings, 2 replies; 5+ messages in thread
From: Marcel Holtmann @ 2007-09-22 7:46 UTC (permalink / raw)
To: BlueZ users
Hi,
> 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?
so first of all. The socket interface doesn't mean IP. It is a generic
way of using network protocols. And network protocols doesn't mean IP
only. There are more network protocols than you can think of.
> 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?
If you wanna have TCP then you can do Ethernet over Bluetooth which is
done by PAN over BNEP. And that would interact with Windows or any other
OS for that matter.
> 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.
The first thing that you should read is a Bluetooth introduction that
explains the various protocol layers that can be used for various tasks.
Regards
Marcel
-------------------------------------------------------------------------
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/
_______________________________________________
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
* Re: [Bluez-users] UDP and TCP packets across Bluez connections?
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
1 sibling, 1 reply; 5+ messages in thread
From: Timothy Murphy @ 2007-09-22 12:47 UTC (permalink / raw)
To: bluez-users
Marcel Holtmann wrote:
> The first thing that you should read is a Bluetooth introduction that
> explains the various protocol layers that can be used for various tasks.
Is there such a document online?
-------------------------------------------------------------------------
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/
_______________________________________________
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
* Re: [Bluez-users] UDP and TCP packets across Bluez connections?
2007-09-22 12:47 ` Timothy Murphy
@ 2007-09-22 18:53 ` Marcel Holtmann
0 siblings, 0 replies; 5+ messages in thread
From: Marcel Holtmann @ 2007-09-22 18:53 UTC (permalink / raw)
To: tim, BlueZ users
Hi Timothy,
> > The first thing that you should read is a Bluetooth introduction that
> > explains the various protocol layers that can be used for various tasks.
>
> Is there such a document online?
it is called the Bluetooth core specification and their additional
profile specifications.
Regards
Marcel
-------------------------------------------------------------------------
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/
_______________________________________________
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
* Re: [Bluez-users] UDP and TCP packets across Bluez connections?
2007-09-22 7:46 ` Marcel Holtmann
2007-09-22 12:47 ` Timothy Murphy
@ 2007-09-24 23:49 ` rparker
1 sibling, 0 replies; 5+ messages in thread
From: rparker @ 2007-09-24 23:49 UTC (permalink / raw)
To: BlueZ users
Marcel Holtmann <marcel@holtmann.org>
Sent by: bluez-users-bounces@lists.sourceforge.net
09/22/2007 12:46 AM
Please respond to
BlueZ users <bluez-users@lists.sourceforge.net>
To
BlueZ users <bluez-users@lists.sourceforge.net>
cc
Subject
Re: [Bluez-users] UDP and TCP packets across Bluez connections?
Hi,
> Or if there is not real TCP/IP support with Bluetooth does Windows
> understand RFCOMM and L2CAP?
If you wanna have TCP then you can do Ethernet over Bluetooth which is
done by PAN over BNEP. And that would interact with Windows or any other
OS for that matter.
Do you happen to know whether I need to install a special driver on
Windows so that Windows will recognize ethernet packets that come via
Bluetooth? Or will it just automagically work?
-------------------------------------------------------------------------
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/
_______________________________________________
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