web applications on embedded systems -...

17
Web Applications on Web Applications on embedded systems embedded systems #jsNight, 2016-06-08 Gianpaolo Macario (C) 2016 Gianpaolo Macario - License: https://gmacario.github.io/ CC BY-SA 4.0 1

Upload: others

Post on 14-Aug-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Web Applications on embedded systems - gmacario.github.iogmacario.github.io/images/webapps-jsnight-2016-06-08.pdf2016/06/08  · Open Source software With the economy of scale achieved

Web Applications onWeb Applications on

embedded systemsembedded systems

#jsNight, 2016-06-08

Gianpaolo Macario

(C) 2016 Gianpaolo Macario - License:

https://gmacario.github.io/

CC BY-SA 4.0

1

Page 2: Web Applications on embedded systems - gmacario.github.iogmacario.github.io/images/webapps-jsnight-2016-06-08.pdf2016/06/08  · Open Source software With the economy of scale achieved

What is an embedded system?What is an embedded system?

2

Page 3: Web Applications on embedded systems - gmacario.github.iogmacario.github.io/images/webapps-jsnight-2016-06-08.pdf2016/06/08  · Open Source software With the economy of scale achieved

We live surrounded by embedded syWe live surrounded by embedded systemsstems

3

Page 4: Web Applications on embedded systems - gmacario.github.iogmacario.github.io/images/webapps-jsnight-2016-06-08.pdf2016/06/08  · Open Source software With the economy of scale achieved

Typical characteristics of an embedded systemTypical characteristics of an embedded system

Embedded systems often have oneor more of the following features:

1. Reduced power consumption2. Reduced size3. Low cost per unit4. High Reliability5. Reduced (zero) need of maintenance

4

Page 5: Web Applications on embedded systems - gmacario.github.iogmacario.github.io/images/webapps-jsnight-2016-06-08.pdf2016/06/08  · Open Source software With the economy of scale achieved

Example: In-Vehicle InfotainmentExample: In-Vehicle Infotainment

5

Page 6: Web Applications on embedded systems - gmacario.github.iogmacario.github.io/images/webapps-jsnight-2016-06-08.pdf2016/06/08  · Open Source software With the economy of scale achieved

Hardware commoditizationHardware commoditizationThanks to Moore's law, embedded systems have now enoughcomputing power to allow adaptation and reuse of complex softwareoriginally developed for servers and desktops

Networking stacks and protocolsUser Interface frameworksOpen Source software

With the economy of scale achieved by smartphones and otherconsumer devices, complex computer architectures have becomeaffordable also for embedded systemsOn the other hand, developing dedicated, custom hardware andporting standard platform software requires a huge investment andbecomes justified only for high volume productions

6

Page 7: Web Applications on embedded systems - gmacario.github.iogmacario.github.io/images/webapps-jsnight-2016-06-08.pdf2016/06/08  · Open Source software With the economy of scale achieved

Example: GENIVI Demo PlatformExample: GENIVI Demo Platform$ sloccount gdp_ivi9_beta/workspace

Totals grouped by language (dominant language first):

ansic: 46260693 (69.83%)cpp: 9910207 (14.96%)asm: 2006557 (3.03%)sh: 1575972 (2.38%)perl: 1276566 (1.93%)python: 1163866 (1.76%)xml: 1054193 (1.59%)

...

Total Physical Source Lines of Code (SLOC) = 66,247,653

7

Page 8: Web Applications on embedded systems - gmacario.github.iogmacario.github.io/images/webapps-jsnight-2016-06-08.pdf2016/06/08  · Open Source software With the economy of scale achieved

Example: Android 5.1.1Example: Android 5.1.1$ sloccount build_android_udooneo/workspace

Totals grouped by language (dominant language first):ansic: 28909496 (48.66%)cpp: 14820059 (24.95%)xml: 6894345 (11.61%)java: 5651249 (9.51%)asm: 1105027 (1.86%)python: 1061272 (1.79%)sh: 434135 (0.73%)perl: 197439 (0.33%)

...

Total Physical Source Lines of Code (SLOC) = 59,405,160

8

Page 9: Web Applications on embedded systems - gmacario.github.iogmacario.github.io/images/webapps-jsnight-2016-06-08.pdf2016/06/08  · Open Source software With the economy of scale achieved

Standard HW/SW Platforms areStandard HW/SW Platforms arebecoming mainstreambecoming mainstream

Low-cost building blocks to prototype embedded systemsComplete with a ready-to-go Open Source software stackWidely used hardware interfacesAvailable for PoC and low-volume productionCan speed up and reduce risk in embedded system design

9

Page 10: Web Applications on embedded systems - gmacario.github.iogmacario.github.io/images/webapps-jsnight-2016-06-08.pdf2016/06/08  · Open Source software With the economy of scale achieved

CHIP - The World's First Nine Dollar ComputerCHIP - The World's First Nine Dollar Computer

CPU: 1 GHzAllwinner A13

GPU: Mali400

RAM: 512 MB

Flash: 4 GB

WiFi 802.11b/g/n

Bluetooth 4.0

OS: Debian

10

Page 11: Web Applications on embedded systems - gmacario.github.iogmacario.github.io/images/webapps-jsnight-2016-06-08.pdf2016/06/08  · Open Source software With the economy of scale achieved

UDOO NEOUDOO NEO

OS: Android 5.1.1 /UDOObuntu2 (14.04 LTS)Price: Starting from $49.90

CPU: Cortex A9 MCU: Cortex M4RAM: Up to 1GBIntegrated 2D/3D GPUMicro HDMI+LVDSStorage: MicroSDAudio: HDMI, S/PDIFUSB: 1x2.0, 1xOTGEthernet, WiFi, BTGPIO, Gyro, Accelerom,MagnetometerArduino pinout

11

Page 12: Web Applications on embedded systems - gmacario.github.iogmacario.github.io/images/webapps-jsnight-2016-06-08.pdf2016/06/08  · Open Source software With the economy of scale achieved

UDOOUDOO Board Web Config Board Web ConfigWeb-based application

Runs on the A9 coreFeatures

Get board infoRead on-board sensorsRemote TerminalRemote DesktopBuild Arduino sketchesProgram M4 core

Architecture: Node.js, Express 4, Socket.ioSources: https://github.com/UDOOboard/udoo-web-conf

12

Page 13: Web Applications on embedded systems - gmacario.github.iogmacario.github.io/images/webapps-jsnight-2016-06-08.pdf2016/06/08  · Open Source software With the economy of scale achieved

Meteor.js on UDOOMeteor.js on UDOOhttps://udoo.hackster.io/tomfreudenberg/meteor-on-udoo-and-others-a98e6d

https://github.com/4commerce-technologies-AG/meteor

13

Page 14: Web Applications on embedded systems - gmacario.github.iogmacario.github.io/images/webapps-jsnight-2016-06-08.pdf2016/06/08  · Open Source software With the economy of scale achieved

UDOO X86: The definitionUDOO X86: The definitionof "embedded system" is broadening...of "embedded system" is broadening...

14

Page 15: Web Applications on embedded systems - gmacario.github.iogmacario.github.io/images/webapps-jsnight-2016-06-08.pdf2016/06/08  · Open Source software With the economy of scale achieved

SummarySummaryEmbedded Systems: more features, more capabilities

HW is becoming a commodity unless for huge volumesSW development and system validation becomes the issue

Low-cost, standard HW platforms are now available -complete with a broad choice of Open Source software

Standard Web Frameworks and Tools are now affordable alsoon many types of embedded systems

Relying on proven and validated HW/SW platformsallows embedded system developers to focus on applicationlevel and maximize the value to the end user

15

Page 16: Web Applications on embedded systems - gmacario.github.iogmacario.github.io/images/webapps-jsnight-2016-06-08.pdf2016/06/08  · Open Source software With the economy of scale achieved

Thanks!Thanks!

Gianpaolo Macariohttps://gmacario.github.io/

16

Page 17: Web Applications on embedded systems - gmacario.github.iogmacario.github.io/images/webapps-jsnight-2016-06-08.pdf2016/06/08  · Open Source software With the economy of scale achieved

BACKUP SLIDESBACKUP SLIDES

17