39
Mihini An open-source framework for M2M development Benjamin Cabé [email protected] — @kartben

Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M

Mihini

An open-source framework for M2M development

Benjamin Cabé [email protected] — @kartben

Page 2: Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M

Who I am

•  Benjamin Cabé •  Open Source guy

at Sierra Wireless •  Long-time Eclipse lover

Page 3: Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M

Sierra Wireless

Proven'innovator'in'new'wireless'technologies,'embedded'systems''

and'end'to'end'solu7ons'

A'leading'provider'of'Mobile'Compu7ng'and'Machine=to=Machine'cellular'

wireless'solu7ons'

Strong'global'presence.'''HQ'in'Vancouver,'Canada'R&D'on'three'con7nents'

NASDAQ'TSX'

Annual'Revenue'$650'million'

Broad'range'of'high'performance'hardware'&'soNware'solu7ons'

Founded'in'1993''''Experienced'leadership'Approximately'900'

employees''worldwide''

Page 4: Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M

� What is M2M?

Technology that supports wired or wireless communication between devices

Page 5: Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M

50

bill ion devices by 2020

Page 6: Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M

50

bill ion devices by 2020

Page 7: Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M
Page 8: Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M
Page 9: Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M
Page 10: Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M
Page 11: Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M
Page 12: Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M

Communication Infrastructure

Smart Pill Box

Heartbeat Sensor

Weight Scale

Blood Pressure

Medical Services Gateway

Near field

Blood Sugar

Internet of Things

Patient

Clinical Trial

Doctor

Page 13: Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M

Ready then?

Page 14: Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M

…Not quite!'

Page 15: Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M

M2M market = fragmented

Page 16: Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M

M2M development = complex

Page 17: Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M

M2M vendors = lock-in

Page 18: Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M

?

Page 19: Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M
Page 20: Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M

Interoperability

Tools

3 pillars

Experience

Page 21: Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M

Framework

Tools

3 projects

Protocols

Page 22: Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M

I/O manipulation data consolidation

application management dev-friendly API

framework =

Page 23: Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M

Before Mihini

•  Proprietary “OS” – No consistent HW access layer across Sierra

product line – No POSIX API

•  Applications written in C – Learning curve – Compilation and debug are complex

Page 24: Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M

M2M programming

•  low-level C •  memory

management •  multithreaded

programming

•  read sensor values •  control actuators •  consolidate data •  communicate

Page 25: Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M

Example: Sending an SMS int main(){ unsigned char char1[10]; unsigned char char_buf[8]="AT+CSQ\n"; // unsigned char sms_buf[20] = "AT+CMGS="xxxxxxxxx"; int wc_fd; /********* Init of serial port ************/ wc_fd = init_wc(wc_fd); sleep(3); //writing to serial port write(wc_fd,char_buf,sizeof(char_buf)); usleep(40000); //reading from serial port read(wc_fd,char1,sizeof(char1)); sleep(2); close(wc_fd); return 0;} // end of main// initialization of serial portstruct termios options;ttys5_fd = open("/dev/ttyS5", O_RDWR );if (ttys5_fd < 0){ printf("\nFail to open serial port 2\n"); return 0;}init_tty( ttys5_fd ,BAUD_RATE);return ttys5_fd;-----------------------------------//initializing baud rateint init_tty( int fd ,long wBaud){ long baud; switch (wBaud) {

sms.send( '+33612345678’, 'My SMS’, )

Page 26: Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M

Simplify M2M programming

•  powerful •  fast •  lightweight •  embeddable •  scripting •  C integration

Page 27: Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M

Lua is also…

•  A vibrant community •  A rich ecosystem of libraries •  A closed development model

Page 28: Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M

develop simulate debug deploy

tools =

Page 29: Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M

Lua Development Tools

OMA-DM Simulator

Next: Mihini tooling, M2M modeling

Page 30: Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M

Mihini architecture overview

Page 31: Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M

Moving to Eclipse Fdn?

•  Community – users – contributors/committers – adopters

•  Governance •  IP framework •  IT resources

Page 32: Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M

Building a community

•  Going open source is also a way to – simplify developer experience – grow a community – enable innovation (see open H/W hobbyists)

Page 33: Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M

M2M Developer Kit

Affordable' Simple' Industrial'

Page 34: Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M

M2M Developer Portal

Page 35: Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M

New business models

Third Party Ecosystem

Open M2M communication protocols

Internet of Things

Open M2M application framework and runtimes

Open M2M development tools

…'

Page 36: Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M

H/W differentiation

•  ruggedness •  radio certification •  add-ins •  services

Page 37: Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M

S/W differentiation

industrial protocols power optimization development tools

vertical applications real-time

professional services

24/7 3rd party services

security

billing carrier integration

professional services

embedded server

Page 38: Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M

Wrap-up

•  A complete M2M stack – embedded framework – comm. protocols (client and server) –  tools

•  An open collaboration model •  A de-facto standard M2M platform

for enabling new businesses

Page 39: Mihini - CAP'Tronic · Smart Pill Box Heartbeat Sensor Weight Scale Blood Pressure Medical Services Gateway Near field ... M2M Developer Kit Affordable' Simple' Industrial' M2M

Join us!