Need information on IOBlueTooth - objective-c

I need to know few things about IOBlueTooth framework for MAC:
Does this framework support BTLE?
What different does it has from iOS framework CoreBlueTooth?
To support BTLE on MAC OSX, do we need both IOBlueTooth & CoreBlueTooth framworks? Please share link for some sample app, if any?
Also, please point me to some good documentation or WWDC videos for IOBlueTooth framework.

1.) Yes..assuming you have a mac that supports BLE (airs, minis, and newest macbook pro's i believe)
2.) The IOBluetooth framework contains C and Objective-c api's to connect to nearby Bluetooth devices (not only BLE devices). So yes, it contains the CoreBluetooth.framework, but the IOBluetooth framework allows you to interact with Bluetooth devices supporting other protocols as well.
3.) You need to import the IOBluetooth.framework since CoreBluetooth.framework is embedded inside it, but that's all you need to do with it.
Check out the Heart Rate Monitor sample code.

Related

Using CoreBluetooth to connect to Windows10 with iOS devices

Question1.
IOBluetooth can support connection both ways via LE or classic. However it only supports macOs. CoreBluetooth supports only up to LE along with IOS.
As far as I know, in order for me to connect my bluetooth connection within IOs device, I must use CoreBluetooth frameworks. Am I correct?
Question2.
CoreBluetooth frameworks can connect Windows10 labtop with bluetooth connection?
Your question is a bit vague. I assume you just want to have a way to exchange some data between an iOS app and your Windows 10 desktop.
Yes, you are correct. Usage of Bluetooth Classic in any of your iOS apps requires Apple MFI Membership and only makes sense if you have your own product. If you are not a member of the MFI program then you are left with CoreBluetooth (BLE). Please note, that BLE is significantly slower than Bluetooth Classic so it only makes sense for applications that require transmission of small data packets (expect around 4kB/s max).
Yes, as long as your Windows 10 device supports BLE. If you want to use any of the SIG adopted Profiles such as HID over Gatt you should be able to connect without any additional software. Otherwise you need to implement your own profile. If you want to know more about your options, I suggest you have a look at the CoreBluetooth documentation and/or get a copy of Getting Started with Bluetooth Low Energy which is a comprehensive read on the topic.

Serial Port Profile (SPP) communication on Mac OSX

I am looking for Bluetooth SPP communication between MAC OSX and bluetooth device.
I am able to discover bluetooth device. I could not find examples on SPP communication on Mac OSX.
I have the foll0wing resources with me
https://developer.apple.com/library/mac/documentation/devicedrivers/conceptual/bluetooth/Bluetooth.pdf
Could someone point me the examples or any pointers where I can start.
Is it advisable to use SPP. I did not find much info on this but I found some APIs for OBEX?
If we have to use SPP then where can I find links?
I found the following links useful
https://developer.apple.com/library/mac/navigation/index.html?filter=bluetooth
Bluetooth Example Code for Cocoa (Objective-C)
Examples hosted at the following link
http://cs.dal.ca/~mcormier/Bluetooth.zip

Specs for Microsoft Xinput USB devices (Xbox controllers)?

Has anybody found the specifications for the USB protocol used by the Xbox controllers? All I can find is the API documentation of Microsoft's implementation (Xinput). I'm trying to write a driver for OS X so Xinput controllers will appear as normal HID devices. Without the specs I'm pretty at a loss...
There is a linux driver here https://github.com/Grumbel/xboxdrv for the XBox that should get you a long way to getting it working on Mac. I don't think the spec is available legally without signing an NDA and paying Microsoft money.

need help for bluetooth framework on mac osx

i'm an iOs developer and I actually need to make a mac application that use bluetooth framework to connect to another device (not iOS device).
I'm actually showing a modal view showing the connected bluetooth device with IOBluetoothDeviceSelectorController and I get the user choice with [modal getResults] but I don't know how to initiate the connection with the selected device and I can't find a simple way to do it on the mac dev library.
is anyone know a tutorial or sample code that could help me advance in my project?
linkos
The Mac Developer Library has two sample Bluetooth projects; connecting to a health thermometer and connecting to a heart rate monitor. There is also video available of the Advanced Core Bluetooth WWDC 2012 session.

Carbon development on intel based mac

I am trying to make an application on mac.i am trying to develop a user authentication module that uses the OS authorization dialog and use its functionality in my application. i have two questions regarding the mac development;
1) Is there a possibility to port the carbon applications to cocoa? (i don't have any concern
with 64 bit, i want to develop in cocoa for simplicity and also because it doesn't go to
low level programming.)
2) secondly, please tell me that i am using an intel based mini mac with OS 10.5, so, if
there is no possibility of porting the carbon application to cocoa then can i develop on
this intel based mini mac for Carbon?
Regards
Yes, but there's no automatic way to do it. If you write your Carbon application in C++, then you can use Objective-C++ to integrate Cocoa without having to change your existing classes too much, but you still have to do all of the heavy lifting.
You can develop Carbon applications on OS X 10.5.
Note that Apple's "Getting started with Carbon" guide is now part of the legacy documentation library, and an increasing number of new features are only accessible through Cocoa APIs. I would strongly suggest using Cocoa for your new application, instead of starting with Carbon then porting.