13
Computer Engineering Computer Engineering and and Networks Networks Laboratory Laboratory BTnodes Architecture and Applications Jan Beutel, Oliver Kasten, Matthias Ringwald

Architecture and Applications · 2015. 5. 18. · Baseband Audio Link Manager Applications SDP ... L2CAP Host Controller Interface. May 27, 2003 ... – script like command language

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Architecture and Applications · 2015. 5. 18. · Baseband Audio Link Manager Applications SDP ... L2CAP Host Controller Interface. May 27, 2003 ... – script like command language

Computer EngineeringComputer Engineeringand and NetworksNetworks LaboratoryLaboratory

BTnodesArchitecture and Applications

Jan Beutel, Oliver Kasten, Matthias Ringwald

Page 2: Architecture and Applications · 2015. 5. 18. · Baseband Audio Link Manager Applications SDP ... L2CAP Host Controller Interface. May 27, 2003 ... – script like command language

May 27, 2003

Slide 2

Initial Projects

Smart everyday objectsby attaching sensor nodes:– self aware– context sensitive– cooperative– integration into computing environment

Ad hoc networking scenarios– integrated application protocols– scalable multi-hop routing

Wearable Computing

Page 3: Architecture and Applications · 2015. 5. 18. · Baseband Audio Link Manager Applications SDP ... L2CAP Host Controller Interface. May 27, 2003 ... – script like command language

May 27, 2003

Slide 3

Bluetooth Piconets

S1’’ S2’’

S3’’M’’

S1 S2

S3M

S2'

S1'

M'

Communication organized in piconets– controlled by one master– up to 7 active slaves– 255 inactive (parked) slaves

Master-Slave– implements centralized control– synchronization of all slaves– only master-slave communication

Multiple piconets– separate channels– no coordination

Page 4: Architecture and Applications · 2015. 5. 18. · Baseband Audio Link Manager Applications SDP ... L2CAP Host Controller Interface. May 27, 2003 ... – script like command language

May 27, 2003

Slide 4

Bluetooth Connections

Connected

Disconnected

Managed by the host controller

Statemachine for each connection

Link Layer Control & Adaptation (L2CAP)– connection-oriented– connectionless data– protocol multiplexing for a

single “air interface”– packet segmentation and reassembly– channel abstraction– encryption– Security– …

Req Conn Req Disc

RFCOMM

RF

Baseband

Audio Link Manager

Applications

SDP ...

L2CAP

Host Controller Interface

Page 5: Architecture and Applications · 2015. 5. 18. · Baseband Audio Link Manager Applications SDP ... L2CAP Host Controller Interface. May 27, 2003 ... – script like command language

May 27, 2003

Slide 5

Hardware RequirementsAutonomous wireless communication and computing platform

based on a Bluetooth radio module and a microcontroller.

Requirements– small form factor, low component count– standardized wireless interface– flexible and cost effective deployment of large quantities of

networking nodes

Page 6: Architecture and Applications · 2015. 5. 18. · Baseband Audio Link Manager Applications SDP ... L2CAP Host Controller Interface. May 27, 2003 ... – script like command language

May 27, 2003

Slide 6

Power Consumption Details

P

SensingTX/RX

Idle SensingTX/RX

t

Sensor Network Example: 10% duty cycle

Operation Power consumption [mW] Lifetime [h]*4 sec sensing 12 2522 sec communication 160 1954 sec idle 0.5 6048

Total duty cycle ~ 6.5 mW 421*on 840 mAh Li-ion

Page 7: Architecture and Applications · 2015. 5. 18. · Baseband Audio Link Manager Applications SDP ... L2CAP Host Controller Interface. May 27, 2003 ... – script like command language

May 27, 2003

Slide 7

System Software

Lightweight OS– event-driven application model– cooperative multithreading– device drivers (UART, RTC, ADC, ...)

Programming– standard C language– high-level Bluetooth interface– system software available as library – emulation environment on Linux

Page 8: Architecture and Applications · 2015. 5. 18. · Baseband Audio Link Manager Applications SDP ... L2CAP Host Controller Interface. May 27, 2003 ... – script like command language

May 27, 2003

Slide 8

Multiple Drivers and the Dispatcher

void handler( /* ... */ ) {}void main() {

btn_disp_ev_reg( RECEIVE_EV, handler, 0 );btn_disp_run();

}

handler()

read buffer

event buffer

Dispatcher

EVENT, handler funcRECEIVE_EV, handler()OTHER_EV, func2()

btn_disp_run()

RECEIVE_EV

Application handler()

read()

Driver

received_irq()Hardware

Page 9: Architecture and Applications · 2015. 5. 18. · Baseband Audio Link Manager Applications SDP ... L2CAP Host Controller Interface. May 27, 2003 ... – script like command language

May 27, 2003

Slide 9

Bluetooth enabled AppliancesCommunication with other Bluetooth enables devices

– standard Bluetooth profiles for SMS, object push and RFCOMM

SMS from Egg Carton Interactive DialogBTnode enabled Egg Carton

Page 10: Architecture and Applications · 2015. 5. 18. · Baseband Audio Link Manager Applications SDP ... L2CAP Host Controller Interface. May 27, 2003 ... – script like command language

May 27, 2003

Slide 10

XHOP/R-DSR Multihop NetworkBluetooth multihop source routing prototype

– integrated scalable application protocol

– based on Dynamic Source Routing (CMU)

– routing across piconet borders to support >8 nodes

Remote topology discovery– script like command

language in the payload

Performance– 1-2 sec per hop,

depending on inquiries

Page 11: Architecture and Applications · 2015. 5. 18. · Baseband Audio Link Manager Applications SDP ... L2CAP Host Controller Interface. May 27, 2003 ... – script like command language

May 27, 2003

Slide 11

Cool sights at MobiSys 2003

R. K. Harle, A. Ward and A. Hopper: Single Reflection Spatial Voting, Cambridge

K. Römer: The Lighthouse Location System for Smart-Dust, ETH Zürich

C. Carter, R. Kravets and J. Tourrilhes: Contact Networking: A Localized Mobility System, U of Illinois and HP labs

K. Barr and K. Asanovic: Energy Aware Lossless Data Compression, MIT

M. Balazinska and P. Castro: Characterizing Mobility and Network Usage in a Corporate WLAN, MIT and IBM TJ Watson

All papers are available in the Wearable Repository.

Page 12: Architecture and Applications · 2015. 5. 18. · Baseband Audio Link Manager Applications SDP ... L2CAP Host Controller Interface. May 27, 2003 ... – script like command language

May 27, 2003

Slide 12

Hardware Details

61 mm

40 m

m

Generic Sensor Interfaces

UART and I2C Data Interfaces

Memory128 kB Flash244 kB SRAM4 kB EEPROM

IntegratedPIFA Antenna

LEDs,Reset,Clocks

CommunicationEricsson Bluetooth Module

CPUAtmel ATmega 128L MCU8-Bit RISC (max. 8 MHz ~8MIPS)

Power Management

Page 13: Architecture and Applications · 2015. 5. 18. · Baseband Audio Link Manager Applications SDP ... L2CAP Host Controller Interface. May 27, 2003 ... – script like command language

May 27, 2003

Slide 13

Designing for Power Aware OperationFeatures

– optional switchable power supply for Bluetooth module– MCU with 6 power down modes– frequency scaling: 7.3 MHz - 57 kHz – low idle/sleep current

– single power supply (3.6 – 16 V), single internal voltage (3.3 V) – battery charge indicator– direct current access shunts for all components– internal Vcc available at every connector to power external sensor modules

Power consumption @ 3.3V, 7.3 MHz [mW] max. typ. Lifetime [h]*– Bluetooth Connected/CPU On 250 160 12-19– Bluetooth Idle/CPU On 95 67 32-45– Bluetooth Off/CPU Idle 15 12 202-252– Bluetooth Off/CPU Sleep 6 <0.5 504-6048

*on 840 mAh Li-ion