21
Cumulations Modes of communication : Bluetooth

Modes of Communication by Cumulations | CuTech Talks

Embed Size (px)

Citation preview

Page 1: Modes of Communication by Cumulations | CuTech Talks

Cumulations Modes of communication : Bluetooth

Page 2: Modes of Communication by Cumulations | CuTech Talks

Bluetooth

1 . Bluetooth 2.0 or Bluetooth classic.

2 . Bluetooth 4.0 or Bluetooth low energy.

Page 3: Modes of Communication by Cumulations | CuTech Talks

Bluetooth Classic

1. Exchange data over input/output streams.

Read/Write data by polling.

2. Consumes more power.

3. Needs MFI certification to interact with iOS devices.

Royalty has to be paid to Apple for every device sold.

4. Mainly used in terminals like PoS and speakers.

Page 4: Modes of Communication by Cumulations | CuTech Talks

1. Two modes of communication.

Advertisement mode

Connection mode

2. No need of MFI certification for iOS devices.

3. Less power consumption.

Bluetooth Low Energy

Page 5: Modes of Communication by Cumulations | CuTech Talks

BLE: Advertisement Mode

1. BLE hardware emits data packets which is read by nearby devices.

2. 2-byte header and a variable payload from 6 to 37 bytes.

3. Can emit data upto 250 ft.

4. Need to follow iBeacon format to make it work with iPhone/iPad.

5. One way communication, cannot write data onto the BLE device.

6. Used in location based apps to cater ads to the nearby users. For example

retail apps.

7. Beacon vendors - Roximity, Estimote, Radius Networks.

Page 6: Modes of Communication by Cumulations | CuTech Talks

BLE : Connection Mode

1. Peer-to-peer connection is established between hardware and phone.

2. No need to poll for data. Gatt object is used to read, write and notify data.

3. Less power consumption.

4. FW on hardware can be upgraded over-the-air.

5. Used in Wearable devices.

6. Connection issues in some Android phones because of inconsistent BLE

stack.

Page 7: Modes of Communication by Cumulations | CuTech Talks

Cumulations Modes of communication : Wi-Fi

Page 8: Modes of Communication by Cumulations | CuTech Talks

Wi-Fi

1. Wi-Fi

2. Wi-Fi Direct

Page 9: Modes of Communication by Cumulations | CuTech Talks

1 . Wi-Fi

AP is the BOSS!

Dev 1

AP

Dev 2

Page 10: Modes of Communication by Cumulations | CuTech Talks

Wi-Fi

Lets Look in the context of our IoT Device

Page 11: Modes of Communication by Cumulations | CuTech Talks

1.1 Onboarding -1

How do we get in?

Dev 1

AP

Dev 2

Your

Device

Page 12: Modes of Communication by Cumulations | CuTech Talks

1.1 Onboarding - 2

Generic Way

Access Point Mode.

Connection by phone/laptop.

Pass credentials of Wi-Fi.

Reboots and starts as client.

Your

Device

Page 13: Modes of Communication by Cumulations | CuTech Talks

1.1 Onboarding - 3

We made it!

Dev 1

AP

Dev 2

Your

Device

Page 14: Modes of Communication by Cumulations | CuTech Talks

1.2 Discovery

1. Once the device is in network how to do we call it?

2. Static IP? Nope!

3. Solution

a. Multicast

Page 15: Modes of Communication by Cumulations | CuTech Talks

1.2 Discovery

Multicast

1. Each device registers itself with AP into a group.

( Ex: in UPnP group is 239.255.255.250 and the port is 1900)

2. Phone/Laptop sends message to the group.

3. Each device in the group receives and can responds back to the message

Page 16: Modes of Communication by Cumulations | CuTech Talks

1.2 Discovery

Discovery Protocols

1. UPnP

1. Bonjour

Page 17: Modes of Communication by Cumulations | CuTech Talks

Till Now ...

1. We have Configured our Device to AP

2. We have discovered the Device ( Multicast )

Now we need to interact with the device...

Page 18: Modes of Communication by Cumulations | CuTech Talks

1.3 Interaction

1. TCP Sockets

a. Connection Oriented,Reliable,Orderly

b. Slow

2. UDP Sockets

a. Connectionless,Fast

3. Via Cloud

a. ex: particle.io,Adafruit

Page 19: Modes of Communication by Cumulations | CuTech Talks

2.Wi-Fi- Direct

Supported from iOS 7 & Android 4.0

Devices play role of an AP and role of a Client concurrently :

Concurrent AP/Soft AP mode

Local file Sharing Applications like Superbeam,Hike Sharit etc

Wireless keyboards and Mouse

Page 20: Modes of Communication by Cumulations | CuTech Talks

2.1 Wi-Fi Direct

Devices communicating will form a group with a owner who acts like an AP.

Guy who becomes owner of the Group is P2P Go

P2P Go can cross connect (How to decide Owner! )

Ex: Music systems

Page 21: Modes of Communication by Cumulations | CuTech Talks

Thanks