Introduction Of The IoT Platform Node-RED And Hitachi’s .

Transcription

Introduction of the IoT Platform Node-REDand Hitachi’s ActivitiesOpen Source Summit Japan 2018Ide, TakayaNakanishi, Kazuki Hitachi Co., Ltd. 2018. All rights reserved.

Internet of ThingsIoT has hugepotentials tocreate newbusiness20.4B2020Number of connectedthings will be in useworldwide(Gartner) 1.1T2021Forecast of globalIoT spending1T2025Number ofsensors connectedwith Internet(WEF)(IDC)34%2015CAGR of shipmentsof IoT endpoints(Gartner)IDC, Worldwide Semiannual Internet of Things Spending Guide, May 2016.Gartner, Forecast: Internet of Things — Endpoints and Associated Services, Worldwide, 2016 Published: 29 December 2016 ID: G00321441Endpoints of the Internet of Things will grow at a 32.9% CAGR from 2015 through 2020, reaching an installed base of 20.4 billion units. Gartner is now projecting shipmentsof 6.5 billion Internet of Things (IoT) endpoints in 2020 (down from 6.6 billion units in the 2015 forecast). Annual shipments are projected to grow at a 34% compoundannual growth rate (CAGR) from 2015.1 Hitachi Hitachi,Co., ved.2017.

Internet of ThingsBut IoT projectsare difficultto operate IoT systems work on both of edge and cloud Create the both env and connect them IoT projects involve various people besides IT eng. Difficult to collaborate on developing systems Hitachi Hitachi,Co., ved.2017.2

Internet of ThingsNode-RED Hitachi Co., Ltd. 2018. All rights reserved.3

What is Node-RED?Browser based programing tool for IoT Work on cloud, edge, and local env. OSS under JS Foundation originally developed by IBM Pre-installed in standard edge devices such as Raspberry PiEditor pageExecuteFlowNode-REDFlow data1Your browser1.Flow : the program you createdCloudEdgeLocal Hitachi Co., Ltd. 2018. All rights reserved.4

What is Node-RED? Easy and Rapid development by connecting nodes Over 1,400 nodes available including essential IoT tech.1.Drag&Drop3.DeploymqttNode Hitachi Co., Ltd. 2018. All rights reserved.5

Node-RED usersBig vendors have been using Node-RED in their services1IBM, Microsoft, GE, Intel, Fujitsu, NEC, HitachiNode-RED users are increasingnpm downloads60K55,00040Kdownloadsin a month20K0KJan '15Jul '15Jan '16Jul '16Jan '17Jul '17The number of npm downloads per month1. Node-RED Cloud service: Fujitsu(K5 COLMINA Platform), Hitachi(Lumada), IBM(IBM Cloud)Connector: NEC(CONNEXIVE IoT Connectivity Engine), Microsoft(Azure IoT Hub)Edge devices: GE(Predix Developer Kit), Intel(Intel IoT Gateway)Jan '18 Hitachi Co., Ltd. 2018. All rights reserved.6

Demo: Tracking space station on map Node-RED can easily get data via web API andvisualize it on the browser Demo: Get location of space station and plot it on mapSpace stationWeb API1. Get latitudeand longitudeWeb browser2. Handlelocation data3. Plot pins on mapNode-RED Hitachi Co., Ltd. 2018. All rights reserved.7

Demo: Tracking space station on map Hitachi Co., Ltd. 2018. All rights reserved.8

Rapid prototyping with Node-RED Hitachi Co., Ltd. 2018. All rights reserved.9

How does Hitachi uses Node-RED?To obtain insight, trial and errorthrough co-creation is good approach Node-RED is suited to this approach Hitachi uses Node-RED in LUMADANEXPERIENCE Vision DesignBusiness ModelDesignIoT PlatformStudioServiceIdeationService ValueEvaluationEdgeCoreAnalyticsFoundry Hitachi Co., Ltd. 2018. All rights reserved.10

Node-RED in LUMADANEXPERIENCE accelerate ideation.We need a tool to accelerate PoC/PoV of Business ModelDesignIoT PlatformStudioServiceIdeationService ValueEvaluationO&MPlatformNEXPERIENCE Vision DesignDevSystemEdgeCoreAnalyticsFoundry Hitachi Co., Ltd. 2018. All rights reserved.11

Node-RED in LUMADAHitachi uses Node-RED for PoC/PoVto accelerate trial and error cycle in ogyNode-REDNEXPERIENCE Vision DesignBusiness ModelDesignO&MPlatformIoT PlatformStudioServiceIdeationService ValueEvaluationDevSystemEdgeCoreAnalyticsFoundry Hitachi Co., Ltd. 2018. All rights reserved.12

Hitachi’s contribution to Node-REDTo utilize Node-RED in business,we added 150 commits and 16,000 LoC last yearWe will keep contributingLine of code15,00012,000OtherHitachi 6Sep-16Jan-17May-17Sep-17Jan-18May-18Line of codes in Node-RED repository Hitachi Co., Ltd. 2018. All rights reserved.13

New features & Community activities Hitachi Co., Ltd. 2018. All rights reserved.14

New features & Community activitiesReliabilityConnectivityGUI testing frameworkNode GeneratorPersistable ContextFlow Manipulation API(v0.19 )Functionality(v0.19 )(TBD)PopularityMessage sequence nodesIntroductory bookUser defined iconIBM ThinkInternationalizationIndex Developer Conf.Quality improvementJS Interactive (Oct. 2018)※ Blue : Will be introduced later Hitachi Co., Ltd. 2018. All rights reserved.15

Reliability: Automated GUI testing frameworkTesting codes for GUIto prevent the creation of new onAccessCall WebdriverIO APIRun test scripts#4#1#2#3// Add an inject node and a debug nodevar workspace require("workspace");var inject workspace.addNode("inject");// #1var debug workspace.addNode("debug", nodeWidth); // #2// Connect an inject node with a debug node, and deploy itinject.connect(debug); // #3workspace.deploy();// #4 Hitachi Co., Ltd. 2018. All rights reserved.16

Reliability: Persistable ContextNode-RED can share data among nodes using “Context”feature. It is currently held in memory.MemoryRestartsNode-REDThe data is lost “Persistable Context” stores “Context” on an external storage.RestartsNode-REDPersist data across restarts Hitachi Co., Ltd. 2018. All rights reserved.17

Connectivity: Node generator Node generator has functionality for generating nodesfrom JavaScript code or Swagger definition Flow Connection Gateway connect services easilyNode development phaseJavaScriptcodeSwaggerdefinition(e.g. MATLAB)Node GeneratorProduction phaseNode-REDDeployMATLABFlow Connection Gateway*REST APIOriginal nodeMATLAB (MPS)Node generator en* Currently under the development Hitachi Co., Ltd. 2018. All rights reserved.18

Functionality: Message sequence nodesSequence of messages can be processedas a group. This makes various algorithmdescriptions in Node-RED much easier.Sequence of Messages99 98210CSV recordper message993Accumulated ValueN(1 3 .99)10.99CSV dataFiltered Sequence(odd records) Hitachi Co., Ltd. 2018. All rights reserved.19

Functionality: User defined iconWhen there are multiple nodes with a same type,it is hard to distinguish at a glance. This featurehelps it to recognize which node is which.beforeafterMQTTMQTTMQTT Hitachi Co., Ltd. 2018. All rights reserved.20

Functionality: Internationalization Added Japanese and Chinese translation Your contribution is very welcome!English(Original)JapaneseChinese Hitachi Co., Ltd. 2018. All rights reserved.21

Popularity: Node-RED introductory bookWe published a Node-RED introductory book forexpanding Node-RED community.Contents Create your originalapplication by your own! What is a "program"? You can create programseasily with Node-RED First Node-RED flow What kind of nodescan you use? Let’s create useful applications!http://amzn.asia/hQBvEIK Hitachi Co., Ltd. 2018. All rights reserved.22

Example:Integration of advanced data analytics of OT fielddata and enterprise IT systems Hitachi Co., Ltd. 2018. All rights reserved.23

Background Gather vibration data from machine tools andpredict those bearing wear condition usingMATLAB Simulink Need to get an alert from Microsoft Dynamics 365automatically when a bearing seems to be brokenHow can Iconnect them?MATLAB Simulink MicrosoftDynamics 365 Hitachi Co., Ltd. 2018. All rights reserved.24

Data management system of Dynamics 365 (Movie) Hitachi Co., Ltd. 2018. All rights reserved.25

Combined systems with Node-REDEnabling rapid and easy integration of analysis softwareand data management systems with Node-REDNode-REDCall MATLABParse dataTimerMachine toolsCall APIVibrationdataMATLAB Simulink GetdataStoragePredict bearingwear conditionRegister incidentRegisterincidentDynamics 365Managebusiness data Hitachi Co., Ltd. 2018. All rights reserved.26

Implementation on Node-RED(Movie) Hitachi Co., Ltd. 2018. All rights reserved.27

Implementation on Node-REDWe developed this system in3 days!(Movie) Hitachi Co., Ltd. 2018. All rights reserved.28

Conclusion Node-RED can accelerate PoC/PoV of IoT Hitachi uses Node-RED and we will keepcontributingLet’s contribute together! GitHub: https://github.com/node-red/node-red Slack : https://node-red.slack.com/ Hitachi Co., Ltd. 2018. All rights reserved.29

Trademarks Ansible is a registered trademark of RedHat, Inc. Chrome is a registered trademark of Google.Chrome Logo’s Source: Google. Docker is a registered trademark of Docker, Inc. Fujitsu and COLMINA are registered trademarks ofFujitsu Ltd. GE and Predix are registered trademarks of GeneralElectric Company. Raspberry Pi is a registered trademark of RaspberryPi Foundation Slack is a registered trademark of SlackTechnologies, Inc. Travis CI is a registered trademark of Travis CIGmbH WebdriverIO is licensed under the MIT License Git Logo by Jason Long is licensed under CC BY 3.0 GitHub is a registered trademark of GitHub, Inc. Grunt is licensed under the MIT License IBM and IBM Cloud are registered trademarks ofInternational Business Machines Corporation. Intel is a registered trademark of Intel Corporation. MATLAB and SIMULINK are registered trademarksof MathWorks, Inc. Microsoft, Azure IoT Hub and Microsoft Dynamics365 is a registered trademark of MicrosoftCorporation. mocha is licensed under the MIT License NEC and CONNEXIVE are registered trademarks ofNEC Corporation. Hitachi Co., Ltd. 2018. All rights reserved.30

Hitachi Co., Ltd. 2018. All rights reserved.

Node-RED users 6 Big vendors have been using Node-RED in their services1 IBM, Microsoft, GE, Intel, Fujitsu, NEC, Hitachi Node-RED users are increasing Node-RED Cloud service: Fujitsu(K5 COLMINA Platform), Hitachi(Lumada), IBM(IBM Cloud) Connector: NEC(CON