问题
does anyone got a sample code of SPP communication ( serial over bluetooth ) for iOS ? I'd need to communicate between my microchip pic and an iphone or iPod.
I know I need a approved apple bluetooth rs232<->BT dongle and I have some with a MFi contract too ;)
Regards.
回答1:
For people like me who were looking at infos.
If you are not going to use Bluetooth LE devices with iOS and the associated corebluetooth, you need a MFi licence and bluetooth module from a certified vendor.
Using those modules does not involve the corebluetooth but another thing. Have a look at the EADemo Demo on how to link to MFi device The linked bluetooth module will be accessible this way.
回答2:
You have two options:
For small projects, research, development, etc., there are many companies that sell RS232 and USB to Bluetooth dongles. These are easy controllable via a simple and limited API. Here is an example. There are also similar chinese companies here or here If you want iPhone connectivity it is just a matter of getting hold of a couple of MFi co-processors and soldering them on to the dev board. The firmware should alreadyhandle iOS connections. See this.
If you have more serious intentions, like making your own hardware, you need to look at:
Bluetooth chips. Here is the website of a major vendor specialized in BT chips. You can also try Texas Instruments, Microchip, etc.
MFi authentication co-processors.
来源:https://stackoverflow.com/questions/12663822/spp-profile-bluetooth-ios