Upload
mark-villacampa
View
785
Download
3
Tags:
Embed Size (px)
DESCRIPTION
Citation preview
RubyMotionwith hardware
Connecting
HiI’m @MarkVillacampa
WARNINGSPANIARD
Using RubyMotion since mid 2012
Technologies
Bluetooth
WifiJack
Lightning
Long Range
Short Range
Difficult
Easy
http://web.eecs.umich.edu/~prabal/projects/hijack/
Project Hijack
MFI
•Revenue share with Apple
•Strict quality controls
•Licensing fees
•Proprietary chips for authentication
External Accessory Kit
EAAccessory
EASession
EAAccessoryDelegate
Redpark
Lightning Serial Cable
www.redpark.com
Bonjour
The thousand names technology: !
Zeroconf, Rendezvous, mDNSResponder...
NSNetService
NSNetServiceBrowser
www.spark.io
Based on TI3300
Spark Core
Bluetooth LECoreBluetooth
CBCentralManager → discovers and connects to devices
CBPeripheral → the device you connect to
CBPeripheralManager → turns your iOS device into a peripheral
CBCentral → another device that connects to your device
CoreBluetooth
CBService → features that the device has
CBCharacteristic → a value you can get or set on the device
iBeacons
Just Bluetooth LE devices
Apple Notification Center Service (ANCS)
Read notifications from the iOS device
The Pebble smartwatch uses this to display notifications
WWDC
HM-10
Based on TI CC2541
Bluetooth LE
Bluetooth UART RS232 Converter
https://github.com/kyab/mruby-arduino
Ruby on Arduino!!11!1!!
Where to buy some toys!
!
USA:
www.adafruit.com
www.sparkfun.com
!
China (worldwide shipping):
www.seeedstudio.com
www.kickstarter.com
MotionBluetoothDSL to work with Bluetooth LE devices
(Also Blackberry and MS-DOS Phone)
DEMO