Adding and Creating Devices

IBM Watson performs analytics on vast repositories of data that it processes to answer human-posed questions, often in a fraction of a second.

Creating a Simulated Device in IBM Watson

Let's create a simulated device that can run events of your choosing. With this simulated device, we will generate a random number. You can either follow this video or do this task in two parts within the lesson.

Follow video above. Alternatively go trough step-by-step instructions below.

Step 1.

The Dashboard

Start from the Dashboard -view and click the View all -button to show the Resource list. Below the services, in the resource list, you can find the IoT platform that we created earlier.

Step 2.

IoT Platform

In the Resource list below the Services, you can find the IoT Platform you created previously. Open the IoT Platform and once you're on the IBM Watson IoT Platform, press Launch.

Step 3.

Browse Devices

Create a new device either through the Create a device -button in the device list, or via the Add Device -button in the top right corner.

Step 4.

Adding a Device step 1

After clicking the add device button, type in Device Type and Device ID as described in the video, or copy them from below. After you are done, click the "Next" -button.

Device Type: Test_device Device ID: Device01

Step 5.

Adding a Device step 2

Now you need to add an Authentication Token for your device. You need this key later on, so don't make it too complex. Something like "simpletoken" is good for now

Step 6.

Adding device step 3

Now you are almost done. At this point, you can see the drill-down of your device. Note that after this point the Authentication Token will not be seen anymore, so you should write it down. Now you can find your just created device from your device list.

Step 7.

Turn the device simulation on

Now make sure you turn on your device simulation by clicking the Device Simulation switch.

Step 8.

Make sure the simulation works

Now that your device is ready for simulation, we need to make sure the simulation works. Do this by clicking the "simulations" pop-up window that appeared in your down right corner of the IBM Watson site. From the pop-up press the "create simulation" button and select the device you created earlier from the list.

Step 9.

Simulation events

Now you can set your parameters for your simulated device. In this exercise, we make our simulated device print out a random number between 0 to 400 every 20 minutes. Remember to click save after you have created the event for your device.

Step 10.

Enable your devices events

Remember to click this little icon after you have created the event with your device. This will enables events for your device. Then click the "Use Registered Device" -button and select the device we just created from the drop-down menu. Open your device's event window again by clicking the wrench icon. From the event window click send.

Step 11.

Inspect your devices simulation

Open your device's information and click the recent events. Here we can see the random numbers our device sends and we are able to inspect them.

Congratulations, you are done with the first part!

We are done now with the first part of the exercise. You are all set and ready to move to part two of the exercise.

The Internet of Things is removing mundane repetitive tasks or creating things that just weren’t possible before, enabling more people to do more rewarding tasks and leaving the machines to do repetitive jobs.

Part 2: Adding a connected simulated device

Now that you're done with part 1, it's time to move on to part 2. In part two you learn how to make the connected simulated device in IBM Watson

Step 1.

Create a new board

Start from the Dashboard -view and click the View all -button to show the Resource list. Below the services, in the resource list, you can find the IoT platform that we created earlier.

Step 2.

Fill the new board with information

Now you can see a new popup window and fill it with the required information. You can name the new board as "Data Analytics", note that description is optional. After you are done, click Next, and after that click submit.

Step 3.

Create data card

Now click the created board. To add a data card click the Add New Card button. A new popup will appear and you are able to choose from multiple ways to displaying data. For now, let's stick with the line chart.

Step 4.

Creating a Line chart card part 1

Now choose a device you want to see data from. Click connect new data set and then choose an event and add properties to it. Remember to change the type from text to numbers.

Step 5.

Creating a Line chart card part 2

You can change the name and size of the chart in its properties. Remember that naming cards with correct names make it easier for you to find correct cards in your future projects.

Congratulations!

Great job! You are done with this exercise now. You are ready to move on to the next exercise.

TEHTÄVÄ