Bluemix iot with intel galileo

Preview:

DESCRIPTION

這是一份IBM Bluemix IOT 的入門介紹。 透過Bluemix, 可讓資訊閘道(Intel Galileo )所收集資訊,同歩到雲端,的NoSQL DB, Hadoop File System, Mobile App,Web App,Twitter, e-mail, Twillio SMS, 做為Big Data analysis 的基礎,開發物聯網應用變的如此快速,容易,又便且宜. 看完立馬動手 https://ibm.biz/BdEzTj The is a quick start guide for using Intel Galileo as a recipe to access blumix. You can also learn how to sent message to Twitter, Cloudant DB with Bluemix IOT.

Citation preview

© 2014 IBM Corporation

How to Connect Intel Galileo to IBM Bluemix IOT

Joseph Chang

Senior IT Specialist

IBM Software Group

Document number

© 2014 IBM Corporation2

Hardware Requirements

Intel Galileo

Source: If applicable, describe source origin

Micro SD Card (4G above) USB Cable

RJ45 Ethernet Cable

https://ibm.biz/BdEzTj

© 2014 IBM Corporation

Software Requirements

3

• Arduino Software 1.5.3• SD-Card Linux Image

Please download the tool from:https://communities.intel.com/docs/DOC-22226

https://ibm.biz/BdEzTj

© 2014 IBM Corporation

Connect the cable and install the driver

4

Connect the PC with Galileo with USB cable.Install the driver. Then launch the device manager in the Windows. You should be able to find the Galileo in the serial Port.

Take note for the port number.

https://ibm.biz/BdEzTj

© 2014 IBM Corporation

Bluemix IOT Recipe – Intel Galileo

5

Follow the instruction in the following URL to configure Bluemix iot demohttps://developer.ibm.com/iot/recipes/intel-galileo/

Download ibm-iot-quickstart.zip

https://ibm.biz/BdEzTj

© 2014 IBM Corporation

Connect to Galileo with Arduno

Launch arduino from you desktop.

Copy the sketch/print_ipaddr/print_ipaddr.ino from ibm-iot-quickstart.zip

6

• Run the script to get Ethernet address.

Take note for the Ethernet address.

https://ibm.biz/BdEzTj

© 2014 IBM Corporation

Bluemix IOT Recipe – Intel Galileo

7

Bluemix supports following IOT Devices

https://ibm.biz/BdEzTj

© 2014 IBM Corporation

Bluemix IOT Recipe – Intel Galileo

8

Follow the instruction in the following URL to configure Bluemix iot demohttps://developer.ibm.com/iot/recipes/intel-galileo/

Key Steps:a)Download ibm-iot-quickstart.zipb)copy the file to the Galieo linux env. ps. There is tftp and unzip in the linux.c) Unzip the ibm-iot-quickstart.zip and execute setup.d)Launch sample with the command: node ibm-iot-quickstart.js

https://ibm.biz/BdEzTj

© 2014 IBM Corporation

Launch the demo

9

Use putty ssh to connect to Galileo.

https://ibm.biz/BdEzTj

© 2014 IBM Corporation

Connect to Quick Start

10

http://quickstart.internetofthings.ibmcloud.com/If you successfully configure the quickstart sample, you will see the following screen.

https://ibm.biz/BdEzTj

© 2014 IBM Corporation

Connect to Quick Start

11

If you successfully configure the quickstart sample, you will see the following screen.

https://ibm.biz/BdEzTj

© 2014 IBM Corporation

Create IOT application with Node-Red

12

Goto Bluemix catalog. Create a IOT server.

https://ibm.biz/BdEzTj

© 2014 IBM Corporation

Launch Node-Red

13

Connect to the IOT server you created. Then click Node-RED flow editor Ex. http://jziot.mybluemix.net/

https://ibm.biz/BdEzTj

© 2014 IBM Corporation

Create IOT application with Node-Red

14

Import the sample json file. Modify the topic of IOT Appin

The topic is : iot-2/type/iotsample-galileo/id/984fee018b9e/evt/status/fmt/json

https://ibm.biz/BdEzTj

© 2014 IBM Corporation

Tweet message

15

https://ibm.biz/BdEzTj

© 2014 IBM Corporation

Store message in Cloudant DB

16

* The temperature DB need to be created by yourself in Cloudant.

https://ibm.biz/BdEzTj

© 2014 IBM Corporation17

Recommended