Re: Mac APIs for Bluetooth networking?
Re: Mac APIs for Bluetooth networking?
- Subject: Re: Mac APIs for Bluetooth networking?
- From: Josh Graessley <email@hidden>
- Date: Thu, 09 Jul 2009 09:44:19 -0700
On Jul 9, 2009, at 9:33 AM, Jens Alfke wrote: On Jul 9, 2009, at 8:51 AM, Josh Graessley wrote: The easiest thing to do is use bonjour and sockets (through CF or NS). If Mac OS adopts the Bluetooth device to device support from the phone, your framework will just work.
What protocol is the iPhone using for this? (I googled [bluetooth 'device to device'] but that didn't turn up anything.) Is it something custom/undocumented?
From what you're saying, it sounds like the iPhone approach tunnels IP through Bluetooth, so the BT network looks like an IP subnet?
The iPhone is using something proprietary to advertise bonjour services in bluetooth...discovery packets? I'm not intimately familiar with bluetooth terminology. Bonjour can advertise/discover services over Bluetooth without doing any sort of pairing. When mDNSResponder is asked to resolve a Bonjour service, mDNSResponder tells bluetooth to establish a PAN connection. When the PAN connection comes up, IPv4LL addresses are assigned and the services are again advertised as usual over the PAN interface. Eventually the service resolves over the PAN interface. PAN is a bluetooth standard for running IP packets over bluetooth. It's more like ethernet over BT.
PAN is also used for internet tethering. Some phones use a bluetooth serial interface instead and run PPP over it.
Using bluetooth has serious coexistence problems and it's terribly slow. The coex problems might not be as terrible on laptops where there may be separate antennas for BT and WiFi and they may have some space between them.
-josh
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden