Skip to Content

1. Introduction.

AWS IoT is a managed cloud platform that lets connected devices easily and securely interact with cloud applications and other devices. AWS IoT can support billions of devices and trillions of messages, and can process and route those messages to AWS endpoints and to other devices reliably and securely. With AWS IoT, your applications can keep track of and communicate with all your devices, all the time, even when they aren’t connected.

 

AWS IoT allows you to easily connect devices to the cloud and to other devices. AWS IoT supports MQTT, a lightweight communication protocol specifically designed to tolerate intermittent connections, minimize the code footprint on devices, and reduce network bandwidth requirements.

(source AWS IoT – Amazon Web Services)

 

This blog guides you thru the configuration steps to connect your SAP PI/PO or SAP Cloud Platform Integration  to AWS IoT using the Advantco MQTT adapter.

 

2. Configure on AWS IoT

Use the AWS Web Console to the following configurations.

 

2.1. Create a Device in the Thing Registry

Click “Create a thing” –> input a name for device (example: device2) –> click “Created”.

/wp-content/uploads/2016/08/pic1_1024837.png

2.2. Create and Activate a Device Certificate

Click Create a certificate  –> Click Active –> click “1-Click Certificate create”

/wp-content/uploads/2016/08/pic2_1024892.png

Download the certificate and private key.

 

2.3. Create an AWS IoT Policy

Click “Create Policy” –> input a policy name –> choose value for action (example: iot:*) –> input value for resource (example: *) –> enable “Allow checkbox” –> click “Add statement”

 

 

/wp-content/uploads/2016/08/pic4_1024893.png

2.4. Attach an AWS IoT Policy to a Device Certificate

Choose a device certificate and from the Actions menu, choose “Attach a policy”.

/wp-content/uploads/2016/08/pic5_1024894.png

2.5. Attach a Thing to a Certificate

Choose a device certificate and from the Actions menu, choose “Attach a thing”.

/wp-content/uploads/2016/08/pic6_1024895.png

Input a device name and click “Attach”

/wp-content/uploads/2016/08/pic7_1024896.png

2.6. Obtain the AWS IoT Certificate

Go to the AWS IoT Console url and click on the lock icon and then click details

/wp-content/uploads/2016/08/pic8_1024897.png

 

/wp-content/uploads/2016/08/pic9_1024898.png

 

3. Configure the Advantco MQTT Adapter in SAP PI/PO

 

3.1. Import AWS certificate into Netweaver Keystore.

/wp-content/uploads/2016/08/pic10_1024899.png

3.2. Configuration for sender MQTT channel

/wp-content/uploads/2016/08/pic11_1024900.png

 

3.3. Configuration for receiver MQTT channel

/wp-content/uploads/2016/08/pic12_1024901.png

 

4.Configure the Advantco MQTT Adapter on SAP Cloud Platform Integration

 

4.1. Import client certificate file to system.jks

Download the system.jks file to the local system from SAP Cloud Platform Integration

You can use KeyStore Explorer tool to import the PKCS#12 file to the system.jsk file.

Select import –> choose PKCS#12 –> click OK

/wp-content/uploads/2016/08/pic13_1024902.png

Deploy modified system.jks file to SAP Cloud Platform Integration.

 

4.2. Configuration for sender MQTT channel

/wp-content/uploads/2016/08/pic14_1024903.png

 

4.3. Configuration for receiver MQTT channel

/wp-content/uploads/2016/08/pic15_1024905.png

 

5. AWS Iot MQTT Client

You can use the AWS IoT MQTT client to better understand the MQTT messages sent by a device.

Devices publish MQTT messages on topics. You can use the AWS IoT MQTT client to subscribe to these topics to see the content of these messages.

Refer to http://docs.aws.amazon.com/iot/latest/developerguide/view-mqtt-messages.html

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