Cloud Connected IoT Sensor Nodes With STM32

Transcription

Cloud Connected IoT Sensor Nodeswith STM32Ernesto Manuel CANTONEernesto.cantone@st.comAME IoT Promotion & Enablement

AgendaCloud Connected IoT Sensor Nodes with STM32 INTRO: IoT, ST Products and Ecosystem Amazon Web Services IBM Watson IoT X-CUBE-AWS FP-CLD-WATSON1 FP-CLD-AWS1 SensorTile Amazon FreeRTOS Microsoft Azure IoT FP-CLD-AZURE1 STM32ODE IoT Web Dashboard ST BlueMS SensorTile to Cloud ST Partner Program2

The IoT MovementIoT is a movement where any system is able to leverage the Internet and its eco-systemCloud computing – Low cost embedded computers – Explosion of reliable wireless connectivity – Rapid innovation of low cost sensorsNodes1GatewaysCloudSmart Things(With intelligence)Networkinfrastructure2Simple Things(Send raw data)Sense – Process – Connect – Power - SecureGatewayProcess – Connect – Power - SecureServers(Big data & cloud)(Switch / Router)Process – Power - Secure3

ST: Products & EcosystemMarket Trendsto match IoT market trendsSmartThingsSmartThingsUltra-low power, FormFactor, SensorsPerformance SmartHomeWifi, BTLE, sub-GHz,Sensors, Audio, Touch,Graphics ST OfferingBroad Technology OfferLTE, Sub-GHz, MotionSensorsLongevity, Certification,motion sensors Ecosystem for application developmentSTM32 Nucleoexpansion boardsfor connectivity,sensing, actuatingConnectProcessMove SenseSTM32 Nucleodevelopment kitsStarter Kits andForm Factor Boards4

ST IoT StrategyCovers the market needs and lowers barriers for developersRight IoTBuilding BlocksProcessingSecuritySensing &ActuatingConnectivityMotorControlPower &EnergyManagementConditioning& ProtectionDevelopment StartPrototype to ProductStackable Boards& modular SWApplicationspecific SWAudioAlgorithmsCloudIntegration of CloudProvider SDKsSensorFusionPre-integrated Softwarefor vertical ApplicationsReady to useSmartphone AppsST BlueMSEnablementPartnerProgram5

HW Development ToolsDevelopment Tools adapted to your needsSTM32 NucleoDiscovery kitsEvaluationboardsSTM32 NucleoexpansionThird-party boardsFlexibleprototypingKey featureprototypingFull featureevaluationFunctionalityadd-onFrom full evaluation to leo

Software Development ToolsC/C FocusA complete flow, from configuration up to monitoringFREEIDE’sSTM32CubeMXConfigure & Generate CodeIDEsCompile and DebugSTM32CubeProgrammerSTM32CubeMonitorProgram & Monitor7

Development Software ArchitectureCompatibility with free andcommercial IDEsDevelopment toolsMobile app prototyping & cloud prototypingSample applications Function PacksSTM32CubemiddlewareSTM32Cube expansion SWHigh-value middlewareSTM32CubeExpansion HALSTM32CubeHardware Abstraction Layer (HAL)STM32 NucleoDevelopment boardsSTM32 NucleoExpansion boards8

Simple vs Advanced Use CasesExpansion SW (X-Cube) Prototype with a single expansion board Expanded Functionality (e.g. Cloud Connectivity)vsFunction Pack Create advanced use cases based on multipleexpansion boards (e.g. Device Management,Predictive Maintenance)Pre-integrated application exampleSample applicationsHomeapplicationsIoTSmart ThingsWearablesBuildingautomation 9

STM32L475 Discovery Kit IoT NodeB-L475E-IOT01ASW Libraries for STM32L4 MCU & SensorsLow-power long-range communication (SubGHz)Direct Wi-Fi connection to cloud serversEnvironmental awareness: humidity, pressure, tempDetection hub: motion, proximity, audio10

A1Dynamic TagX-NUCLEO-IDW01M1Wi-Fi b/g/nNUCLEO-F401RESTM32 Dev Board11

01A1Dynamic TagX-NUCLEO-IDW01M1Wi-Fi b/g/nNUCLEO-L476RGSTM32 Dev Board12

Cloud-JAM by Rush UpSTM32 ODE product accelerator JAM is a family of boards that embeds the mostused STM32 Nucleo Function Packs Out-of-box Software Support usingFP-CLD Firmware Packages RushUp offers customization service Motion MEMS and Environmental Sensor Dynamic NFC Tag Wi-Fi b/g/n Connectivity Ultra-Low-Power ARM Cortex-M4 MCU Available with STM32F401 or STM32L476www.rushup.tech/jam13

SensorTilewww.st.com/sensortileMEMS microphoneBluetooth 4.1Ultra Low PowerConnectivityLow-power brainSensor fusionEnvironmentalsensorsLow-Power MCUSensorsMotion MEMSMotion MEMS14BLE toSmartphone appMQTT, HTTP

15AWS IoT

16Where does ST play?

What is Amazon AWS IoT Core? AWS IoT Core is a managed cloud platform that lets connected devices easily and securelyinteract with cloud applications and other devices. AWS IoT Core can support billions ofdevices and trillions of messages, and can process and route those messages to AWSendpoints and to other devices reliably and securely. With AWS IoT Core, your applicationscan keep track of and communicate with all your devices, all the time, even when they aren’tconnected.17

IoT Device Connected to AWS IoT Core The AWS IoT service enables secure, bidirectional communication betweenIoT devices and the cloud over MQTT, HTTP and WebSockets. MQTT stands for MQ Telemetry Transport. It is an extremely simple and lightweight messagingprotocol, designed for constrained devices and low-bandwidth, high-latency or unreliable networks. ST’s IoT Devices communicate with AWS IoT Core via MQTT AWS IoT devices are authenticated using TLS mutual authentication withX.509 certificates to establish trust between two parties. Once a certificate isprovisioned and activated it can be installed on a device. The device will thenuse that certificate for all requests to AWS IoT via MQTT. ST’s IoT Devices use TLS 1.2 (mbed TLS)18

How MQTT Works MQTT uses a client/server model where every IoT device is a client and isconnected to a server, called an MQTT broker (AWS IoT Core). The clients send messages to an address, called a topic. The MQTT brokerwill forward that message to all the clients subscribed to that topic.Thing xPublish “On” to the “LED” TopicLEDThing y“On”Subscribed to “LED” topicMQTTBroker“On”Thing zSubscribed to “LED” topic19

AWS IoT Device SDK The AWS IoT Device SDK helps you to easily and quickly connect yourhardware device or your mobile device to AWS IoT Core. IoT Discovery KitNode is listed on https://aws.amazon.com/iot-core/getting-started/ ST implementations of AWS IoT Device SDK X-CUBE-AWS on B-L475E-IOT01A, 32F413HDISCOVERY, 32F769IDISCOVERY (Ethernet) One board starter kit on amazon website Training available on Udemy Mooc Upon request FP-CLD-AWS1 on P-NUCLEO-CLD1 (B-L475E-IOT01A coming soon) Stackable HW for further expandibility FP-CLD-AWS1 on RushUp’s CloudJAM (3rd party) Product Accelerator20

https://aws.amazon.com/iot-core/getting-started/21

Function Pack and X-CUBE structureEWARMIAR project filesMDK-ARMKeil project filesSW4STM32SystemWorkbenchproject files22

Amazon FreeRTOS23

ST is LaunchPartner

Amazon FreeRTOS Distribution Amazon FreeRTOS console to get a custom download of the operatingsystem by choosing the libraries relevant to use case and HW choice. Alternatively full package on GitHub, SourceForge, or FreeRTOS.orgcontaining all libraries and hardware-specific porting layers.25

Amazon FreeRTOS Console ST predefined configurations forSTM32L4 Discovery Kit IoT Nodeinclude a project forSystem Workbench for STM32(coming soon)26

Amazon FreeRTOS Starter rsSTMicroelectronics Texas InstrumentsNameCuriosity PIC32MZ EFDevelopment BoardWiFi 7 Click Board &USB UART Click BoardOM40007 LPC54108 IoTModule and OM40006 BaseBoardSTM32L4 Discovery Kit IoTNodeSimpleLink Wi-Fi CC3220SF WirelessMicrocontroller LaunchPad Development KitMCUPIC32MZ2048EFM100 32-bitMCU200 MHz MIPS M-class coreLPC54018 power-efficientMCU180 MHz Arm Cortex -M4coreSTM32L475 MCU80MHz ARM Cortex -M4coreCC3220SF WirelessMicrocontroller80MHz ARM Cortex -M4 ARM Cortex -M3(WiFi)Flash2MB Flash128Mb MacronixMX25L12835 Quad-SPIflash1MB Integrated64-Mbit Quad-SPI (Macronix)Flash memory1MB Flash32MbitS-FlashSRAM512KB SRAM360KB SRAM128KB256KB of RAMMost compact Kit with MCU tailored for constrainedapplication (and scalable through STM32Cube)27

Amazon FreeRTOS Starter KitsMicrochip TechnologyIncorporatedNXP SemiconductorsSTMicroelectronicsTexas InstrumentsWi-FiModule: ATWINC1500 IoTnetwork controller: IEEE 802.11b/g/n Single-band 2.4GHzModule: Longsys GT1216WiFi (802.11 b/g/ncompliant)Module: Inventek ISM43362M3G-L44 (802.11 b/g/ncompliant)Integrated 802.11 b/g/nWi-Fi ChipsetATWINC15x Wi-FiQualcomm QCA4004Cypress BCM43362-Expansion2x mikroBUS expansionsocketsArduinoArduino Uno V3PMOD2x20-pin stackableconnectors (BoosterPackheaders) to connect to TILaunchPads and otherBoosterPacksKnowles SPH0641LM4HDig-MicNXP MMA8652FCR1accelerometer2x Dig-Mic (MP34DT01)Temp/Humidity (HTS221)3D Mag (LIS3MDL)3D XL 3D Gyro (LSM6DSL)Pressure (LPS22HB)Time-of-Flight (VL53L0X)Acceleration Sensor BMA222Temp Sensor TMP006SensorsOther CommunicationLinks SupportedEthernet with LAN8720A PHYDaughter BoardDynamic NFC tagBluetooth V4.1 (SPBTLE-RF)Sub-GHz low-powerprogrammable RF moduleMost expandability options and other RF options onboardWide Integrated set of Sensors28

Microsoft Internet of Things

30 PaaS SaaS Azure IoT Suite Microsoft IoT Central Preconfigured solutions on acustomizable PaaS to acceleratecommon scenarios A fully managed SaaS solution for IoT For when you need a lot of control overyour IoT solution For when you need to get startedquickly with minimal IoT experience

Azure IoT Suite: ST on Device CatalogAzure IoT Starter Kits with STHardware P-NUCLEO-AZURE1 MCU STM32L476 WIFI SWPF01SA Compatible with Professional IDE(IAR, Keil)B-L475E-IOT01A MCU STM32L475 WIFI Inventek ISM43362-M3G-L44 Compatible with Professional IDE(IAR, Keil)MXCHIP AZ1366 (3rd party) “Microsoft IoT Starter Kit” EMW3166 Module withSTM32F412RG BCM43362 HW Design MXCHIP SW Design Microsoft Visual Studio Code Extension forArduinohttps://catalog.azureiotsuite.com31

FP-CLD-AZURE1: Features Integrated Microsoft Azure IoT device Software Development Kit. Includes sampleapplication for: Connection to IoT Hub and transmission of Device-to-Cloud messages based on MQTT protocol Implementation of a Device Management solution based on Cloud-to-Device messages Direct Methods Device Properties Firmware Update Secure network communication with the cloud application based on mbedTLS library Include middleware and drivers for Wi-Fi connectivity, NFC, inertial and environmentalsensors Provide software interface to access temperature and humidity sensor (HTS221), pressure sensor(LPS25HB, LPS22HB), inertial sensors (LIS3MDL, LSM303AGR, LSM6DS0, LSM6DSL), and towrite and read the M24SR64-Y RFID/NFC tagLatest info available at www.st.comFP-CLD-AZURE132

FP-CLD-AZURE133 Platforms and kit supported P-NUCLEO-CLD1 STM32-NucleoF401RE, X-NUCLEO-IKS01A2, X-NUCLEO-NFC01A1, X-NUCLEO-IDW01M1 P-NUCLEO-AZURE1 Device Management STM32-NucleoL476RG, X-NUCLEO-IKS01A2, X-NUCLEO-NFC01A1, X-NUCLEO-IDW01M1 RushUp’s CloudJAM (3rd party) RushUp’s CloudJAM-L4 (3rd party) Device Management STM32-NucleoF429ZI (Ethernet) B-L475E-IOT01A (also compatible with X-CUBE-AZURE) Main features Applications: data telemetry, device control and management, Firmware update over-the-air (L4) Companion IoT Web Dashboard (stm32ode.azurewebsites.net) for time series sensor data visualizationand device controlFull training on how to provision the IoT Device onMicrosoft IoT Device Catalog or ST Quick Start Guide

STM32ODE IoT Web Dashboardhttps://stm32ode.azurewebsites.net/Get MAC address from serial terminal (e.g. TeraTerm) at board boot34

35

36

Microsoft IoT Central Microsoft IoT Central is a fully managed IoTSaaS (software-as-a-service) solution thatmakes it easy to connect, monitor and manageyour IoT assets at scale, so you can createdeep insights from your IoT data and takeinformed action. Microsoft IoT Centraldramatically lowers the barriers of entry forcompanies looking to revolutionize theirbusiness with IoT. IoT Central Devkits Rasperry PI MXChip IoT DevKit ST B-L475E-IOT01A (Coming Soon)37

38IBM Watson IoT

IBM Watson IoT Device SDK The IBM Watson IoT Embedded C SDK by IBM simplifies interactions with the IBM WatsonIoT when building applications using the C language. Some of its supported features includeDevice and Gateway Connectivity as well as SSL/TLS and client side certificate. Developersusing the SDK have access to the embedded C MQTT Client 1.0.0. mbed TLS, and cJSONdependencies. ST implementations of IBM Watson IoT SDK X-CUBE-WATSON on B-L475E-IOT01A, 32F413HDISCOVERY, 32F769IDISCOVERY (Ethernet interface) FP-CLD-WATSON1 on P-NUCLEO-CLD1 Stackable HW for further expandibility FP-CLD-WATSON1 on CloudJAM (3rd party) Product Accelerator39

ST Published /category/internet-of-things-iot/?s stm32CommunityST40

FP-CLD-WATSON1 (1)41

FP-CLD-WATSON1 (2) IBM provides a QUICKSTART Mode, IBM hosted web app to visualizesensors data in real time. To use other services the user needs to connect in REGISTERED Mode42

FP-CLD-WATSON1 (3)Vibration Analysis Feature Vibration Analysis (VA), applied in an industrial or maintenance environment aims to reducemaintenance costs and equipment downtime by detecting equipment faults To analyze vibrations, accelerometer time domain signal is transferred to frequency domainfor more effective analysis. This is achieved with FFT (LSM303AGR or IIS2DH are needed) Output of the FFT library Maximum frequency of detected vibration Amplitude for the frequency Motor Status (OK, warning, failure)Please consult the Quickstart Guide and User Manual for detailed fp-cld-watson1.html43

SensorTile to IBM Watson IoT44

SensorTile & ST BlueMS AppST BlueMSSTMICROELECTRONICS INC45

Post SensorTile Sensor Data on IBM WatsonSelect “IBMQuickstart”Click “Connect”Select a featurePlot of selected feature46

SensorTile Enables Cloud ApplicationsSTM32ODE IoT Web Dashboard47

48ST Partner Programwww.st.com/partners

49

134 Partners and counting50

51

52

53

54

55

Questions?56

Cloud Connected IoT Sensor Nodes with STM32 2 INTRO: IoT, ST Products and Ecosystem Amazon Web Services X-CUBE-AWS FP-CLD-AWS1 Amazon FreeRTOS . Audio Algorithms Sensor Fusion Pre-integrated Software for vertical Applications Right IoT Building Blocks Connectivity Conditioning & Protection Sensing & Actuating