Skip to Content

Everyone knows what is Internet of Things (IoT). SAP offers a comprehensive portfolio of solutions for Internet of Things. The HCP IoT Services can help you quickly develop, deploy and manage your own real time IoT and Machine to Machine applications. In this blog series I am explaining how to try HCP IoT services using an IoT simulator.

It was last year I first put my hands on a Beaglebone mini computer –  I was pretty impressed with the possibilities of this small device. And now, after the release of the $5 mini computer (rasberry pi zero) I thought to try the in-memory IoT platform SAP provides. Unfortunately because of huge demand, the device is out of stock. Doesn’t matter, an IoT simulator helped me to try the HCP IoT services.

In this blog series you will learn how to push notifications to an IoT simulator using HCP IoT Services on cloud.

Enable HCP IoT Trial

  • Go to SAP HCP landing page and sign up for an HCP trial account.
  • After successful sign up, from the HCP cockpit go to “Services”, then click on “Internet of Things Services”.

/wp-content/uploads/2016/02/2016_02_01_09_17_53_877897.png

  • Press “Enable” button.

/wp-content/uploads/2016/02/2016_02_01_09_23_37_877913.png

  • After enabling it, click on “Go to Service” to see the IoT cockpit.

/wp-content/uploads/2016/02/2016_02_01_09_28_54_877914.png

/wp-content/uploads/2016/02/2016_02_01_09_34_16_877915.png

Create Device Information in IoT Cockpit

Create Device Type

  • Click on “Device Types”.

/wp-content/uploads/2016/02/2016_02_01_09_34_16_877915.png

  • Press on + button to add a new device type. And, enter name for the device.
  • Then, click on “Create” button.

/wp-content/uploads/2016/02/2016_01_24_18_50_55_877930.png

/wp-content/uploads/2016/02/2016_01_24_18_51_04_877949.png

Create Message Type

  • Click on “Message Types” tile.

/wp-content/uploads/2016/02/2016_02_01_10_33_20_877950.png

  • Press on + button to add a new message type.
  • Enter a name for the message type – OutboundMessage.
  • Select the device from the drop down list – RasberryPi.
  • Select “From Device” as Direction from the dropdown list.

/wp-content/uploads/2016/02/2016_01_24_18_58_45_877951.png

  • Add 3 fields (timestamp, sensor and value) as given below. Then click on “Create”.

/wp-content/uploads/2016/02/2016_01_24_18_58_55_877967.png

/wp-content/uploads/2016/02/2016_02_01_10_46_11_877968.png

  • Press on + button to add a new message type.
  • Enter a name for the message type – InboundMessage.
  • Select the device from the drop down list – RasberryPi.
  • Select “To Device” as Direction from the dropdown list.
  • Add 2 fields (opcode and operand) as given below.
  • Finally, click on “Create” button.

/wp-content/uploads/2016/02/2016_02_01_11_05_17_877991.png

/wp-content/uploads/2016/02/2016_02_01_11_10_43_877997.png

Create Device

  • Press on “Devices” tile.
  • Press on + button to add a new device.
  • Enter name for the device – MyRasberryPi.
  • Select device type from the drop down – RasberryPi.
  • Press on “Create” button.

/wp-content/uploads/2016/02/2016_01_24_19_01_00_877998.png

  • Note down the “OAuth Access Token”.

/wp-content/uploads/2016/02/2016_01_24_19_06_42_877999.png

  • The final result should look like below.

/wp-content/uploads/2016/02/2016_01_24_19_03_25_878012.png

Go to next part of the blog: Little known Ways to Try HCP IoT Services using Simulator – Part 2

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply