How can I create a serial Bluetooth connection between iPhone and Arduino + Bluetooth Mate?

I have a project in which I need my iPhone to communicate with Arduino. Bluetooth seems to be the best option for communication. How do I program my iPhone (which framework?) For Bluetooth Mate or Apple restrictions prevent it? Is this possible with a jailbroken iPhone? Is there a better way besides bluetooth? Sample code would be helpful.

Thanks in advance

+5
source share
6 answers

, Bluetooth-iphone, , , Apple.
 Apple MFi

- , . , .

btstack , , .

+5
+9

Seeedstudio Arduino: Bluetooth Low Energy Shield

, Bluetooth 4.0, iPhone/iPad Bluetooth 4.0 ( iPhone 4S, 5 iPad 3), iOS 6. MFI . Core Bluetooth Framework, WWDC 2012 Core Bluetooth 101 (Core OS) Advanced Core Bluetooth (Core OS).

+6

Apple OS Bluetooth , , MFi.

0

bluetoth iBlueNova, .

0

, , - Ethernet Arduino WiFi. Arduino - http, .

, BT, COM-. -. .

, iPhone, Arduino .

:

http://192.168.1.101/?1

192.168.1.101 = IP Arduino

? 1 , PIN13 ( )

:

EthernetClient client = server.available();
while (client.connected())
{
    if (client.available()) 
    {
        char cVar = client.read();
        if (cVar != '?') return;
        Serial.Print(cVar)
        if (cVar == '1') digitalWrite(13, HIGH); //turn on the led
    }
}

, !

Let me know what you decide and how it works. I need to read further http://blog.makezine.com/2012/03/19/bluetooth-4-0-from-arduino-to-iphone-no-jailbreaking-no-mfi/

Thanks for this link ygbr!

-3
source

All Articles