IBM Internet of Things Foundation Full graphic Crop option 1
by user
Comments
Transcript
IBM Internet of Things Foundation Full graphic Crop option 1
IBM Internet of Things Foundation Crop option 1 Crop option 2 IBM Internet of Things Foundation Intro Crop option 1 Crop option 2 IoT value is delivered in four foundational areas 3 Industry Transforma8on Evolve new business models Applica8ons & Solu8ons Mask complexity and reduce risks Packaged offerings that include strategic consul8ng and business process change Software and service solutions targeted at specific domains PlaBorms Build and manage IoT solutions Devices & Networks Connect devices into platforms Engineering and programming platforms IoT Foundation is IBM s IoT Platform Hardware, networking, and operating systems infrastructure IBM Internet of Things Foundation Service • • • • • • Secure Device Registration Scalable Device Connectivity Device Management new! PAYG SaaS pricing Sandbox QuickStart service Powered by IBM MessageSight technology Manage Assemble Connect Collect PlaBorm IoT Zone on Bluemix an intro to IoTF IoT Zone in Bluemix h5ps://bluemix.net/solu;ons/iot IoT Foundation model IBM IoT Founda8on Connec&vity Summary IBM Internet of Things Foundation Try it out with the Bluemix IoT Zone Phone as a Sensor Demo app QuickStart Crop option 1 Crop option 2 IoTF QuickStart As an embedded engineer I was to connect a device to the cloud, send data to it and visualise the data in the time it takes to drink 2 beers Enabled by IoTF QuickStart • A public sandbox instance of IoTF running in the cloud • Used to test device connectivity and experiment with IoTF • Runs 24 by 7 • No registration required • Build in device data visualisation • But Limited Security 9 developerWorks Recipes show how to connect a variety of devices to IoTF Derive IoT insight from data through strong industry partnerships and open ecosystem Examples: https://developer.ibm.com/recipes/ Wide variety of supported devices ! Self Service ! Open ecosystem ! Simple tutorials ! Connect in moments Add your own recipes to assist others Devices & Networks Device Simulator & Quickstart All from inside a web browser Device Simulator Recipe Device Simulator QuickStart Instance of IoTF Quickstart Visualisation https://developer.ibm.com/recipes/tutorials/use-the-simulated-device-to-experience-the-iot-foundation/ 11 Core Concepts Crop option 1 Crop option 2 IoTF Core Concepts Organizations • When you register with the Internet of Things Foundation you are given an organization ID, this is a unique 6 character identifier for your account. • Organizations ensure your data is only accessible from your devices and applications. Once registered, devices and API keys are bound to a single organization. When an application connects to the service using an API key it registers with the organization that owns the API key. • An organization is an instance of IoTF dedicated for your use • quickstart is a special organisation that is a public sandbox instance of IoTF to test initial device connectivity and to explore IoTF Devices • A device can be anything that has a connection to the internet and has data to send to or receive from the cloud. • Devices send data such as sensor readings to the cloud • Devices are able to accept commands from applications in the cloud. • Devices uniquely identify themselves to the IoT Foundation with a unique device identifier such as a mac address • Devices must be registered with an Organization before they can connect to the IoT Foundation. • For quickstart devices do not need to be registered • Registered devices uniquely identify themselves to the IoT Foundation with a unique device identifier and an authentication token that will only be accepted for that device. 13 https://docs.internetofthings.ibmcloud.com/reference/concepts.html IoTF Core Concepts Applications • An application is anything that has a connection to the internet and wants to interact with data from devices and/or control the behaviour of those devices in some manner. • Applications identify themselves to the IoT Foundation with an API key and a unique application ID. • Applications do not need to be registered before they can connect to the IoT Foundation, however they must present a valid API key that has previously been registered. MQTT • MQTT is a Client Server publish/subscribe messaging transport protocol. • It is used by Device to communicate with IoTF • It is used by Applications to send and receive data in realtime to IoTF • It is light weight, open, simple, and designed so as to be easy to implement. • Is ideal for use in many situations, including constrained environments such as for communication in Machine to Machine (M2M) and Internet of Things (IoT) contexts where a small code footprint is required and/or network bandwidth is at a premium. • Runs over TCP/IP, or over other network protocols that provide ordered, lossless, bi-directional connections. • Uses the publish/subscribe message pattern which provides one-to-many message distribution and decoupling of applications. 14 https://docs.internetofthings.ibmcloud.com/reference/concepts.html Create an Organisation “your own secure instance of IoTF” Crop option 1 Crop option 2 Create an IoTF Organisation Two approaches for creating an IoTF organisation 1. Use the Bluemix IoTF BoilerPlate that will create a node-red application that is bound to a new IoTF organisation 2. Select the IoT Bluemix tile to create a new instance of IoTF organisation 16 Registering a Device to an Organisation The next set of slides walk through using the IoT Crop option 1 Crop option 2 dashboard GUI to register devices. Interactions performed on the GUI can also be performed programmatically Registration process Use our recipes to find out how to add your devices. We work with partners and have sample connection recipes for many devices. If the device to connect is not available follow the how to connect a device to the cloud recipe. Launch the Internet of Things Foundation dashboard and add your devices by clicking the 'Add Device' button under the 'Devices' tab. 18 IoTF Dashboard - Overview The organisation being managed Select Devices to add and manage devices Summary of the number and type of devices registered to this organisation Manage access for both Applications and users Monitor how much devices and Applications have used the organisation 19 IoTF Dashboard - Devices List of registered devices and their status Select to register a new device When problems are reported they show under the diagnose view For managed devices actions can be initiated from the Actions view 20 IoTF Dashboard Add New Device Part 1 – Device Type selection If a device of the type to be added already exists select it from the drop down list. If the type of device has not been added previously add information about the class / type of device. A new device type is made up of :• • Name a descriptive alpha-numerical name for easy identification. This could be the model of the device Description 21 IoTF Dashboard Add New Device Part 2 – Device Type If a device of the type to be added already exists select it from the drop down list. If the type of device has not been added previously add information about the class / type of device. A new device type is made up of :• • • Name a descriptive alpha-numerical name for easy identification. This could be the model of the device Description An optional set of attributes for the device type. The selected set form a template that is used when an instance of a device is added. For instance firmware version, HW version and Manufacturer 22 IoTF Dashboard Add New Device Part 3 – Device Attributes Fill in the attributes of the device for the device being added. Important: Device ID must be unique for the type of device 23 IoTF Dashboard Add New Device Part 4 – Security To connect to an organisation (other than Quickstart) the device must have an Authentication Token (think password) that is used when connecting to the IoTF organisation :• The device stores the token • The does not store the token asis. If the token is misplaced the device will need to be re-registered with a new token. The Token can be created outside of IoTF and handed to IoTF alternatively IoTF will create a token that can then be stored on the device. 24 IoTF Dashboard Add New Device Part 5 – Validate and Add After all fields have been field have been entered and validated on the summary screen the device can be added / registered with the organisation. 25 IoTF Dashboard Add New Device Part 6 – Device Added The device has been added to the organisation If the Authentication Token was created by IoTF capture the token and store it on the device. • If the token is misplaced the device will need to be reregistered with a new token. At this point the device has been registered to the organisation. The device can now connect to the IoTF organisation. 26 Connecting to IoTF Devices connect to IoTF using the MQTT protocol An MQTT client id must be specified when establishing an MQTT connection • The format of the client id is d:org_id:device_type:device_id • d identifies your client as a device • org_id is your unique IoTF organization ID, assigned when you create an instance of the service. It will be a 6 character alphanumeric string or “quickstart” if connecting to Quickstart • device_type is intended to be used as an identifier of the type of device connecting, it may be useful to think of this as analogous to a model number. • device_id must uniquely identify a device across all devices of a specific device_type, it may be useful to think of this as analogous to a serial number. • When connecting to the Quickstart service no authentication (or registration) is required, and org_id must be set to “quickstart” 27