Skip to Content
Author's profile photo Wouter Lemaire

HANA Car v1.0 – Internet of Things configuration

Description Hyperlink
Overview HCP IoT HANA Car v1.0
Internet of Things configuration HANA Car v1.0 – Internet of Things configuration
UI5 Java Webapp HANA Car v1.0 – Java Webapp
The Car with raspberry Pi HANA Car v1.0 – Raspberry Pi

In this blog I explain the steps of the IoT configuration of the HANA car

/wp-content/uploads/2016/04/pic1_921358.png

Activate IoT

First I activated the Internet of Things service by following the documentation:

https://help.hana.ondemand.com/iot/frameset.htm?53ad6006e50f4b0ca02402daa6da5bb5.html

/wp-content/uploads/2016/04/pic2_921362.png

Once IoT is activated, you can open the configuration from subscriptions or java applications:

/wp-content/uploads/2016/04/pic3_921363.png

Configuration

In the IoT cockpit I’ve configured a Device Type:

/wp-content/uploads/2016/04/pic4_921364.png

Based on that device type I’ve create a device:

/wp-content/uploads/2016/04/pic5_921365.png

After that I created a message type. A message type is not connected to a device. The device and the message type are connected to a device type. That way you can reuse message types for other devices.

I only created one message type “Motor”. The others (hidden ones) are just for testing purpose. The device type is the same as for the device. The direction is “Bidirectional”, this is required to use the websocket inside IoT. With a websocket you don’t have to use polling to get new messages. A websocket will automatically inform you when there’s a new message for the device. In the case of the HANA car the response time is very important. For that reason I’ve chosen to use the websocket of the IoT service.

/wp-content/uploads/2016/04/pic6_921366.png

The messagetype will only contain a timestamp and an action:

/wp-content/uploads/2016/04/pic7_921367.png

The action will contain the direction of the car.

Testing

Now, we can already test our service. Goto “Send and receive messages through Websockets”.

/wp-content/uploads/2016/04/pic8_921368.png

Change the deviceid, messagetypeid and message content. After you click on send you’ll see a reply from the server.

/wp-content/uploads/2016/04/pic9_921369.png

IoT configuration is done! 🙂

Kind regards,

Wouter

Assigned Tags

      1 Comment
      You must be Logged on to comment or reply to a post.
      Author's profile photo Mohd Khalid Sayeed
      Mohd Khalid Sayeed

      Thanks for Blog...I am planning to Build car with DHTT11 and raspberry PI