Integration with AWS IoT using the Advantco MQTT adapter

  1. Introduction.

AWS Internet of Things (IoT) offers services and solutions to connect and manage billions of devices. Collect, store, and analyze IoT data for industrial, consumer, commercial, and automotive workloads. 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 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 through the configuration steps to connect your SAP PI/PO or SAP Cloud Platform Integration to AWS IoT using the Advantco MQTT adapter.

 

  1. 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”.

Integration with AWS IoT using the Advantco MQTT adapter_Pic1

 

2.2. Create and Activate a Device Certificate

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

Integration with AWS IoT using the Advantco MQTT adapter_Pic2

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”

 Integration with AWS IoT using the Advantco MQTT adapter_Pic3

 

2.4. Attach an AWS IoT Policy to a Device Certificate

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

Integration with AWS IoT using the Advantco MQTT adapter_Pic4

 

2.5. Attach a Thing to a Certificate

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

Integration with AWS IoT using the Advantco MQTT adapter_Pic5

Input a device name and click “Attach”

Integration with AWS IoT using the Advantco MQTT adapter_Pic6

2.6. Obtain the AWS IoT Certificate

Go to the address bar in the web browser and click on the lock icon and then click details

 Integration with AWS IoT using the Advantco MQTT adapter_Pic7

Integration with AWS IoT using the Advantco MQTT adapter_Pic8 

 

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

 

3.1. Import AWS certificate into NetWeaver Keystore.

Integration with AWS IoT using the Advantco MQTT adapter_Pic9

3.2. Configuration for sender MQTT channel

 Integration with AWS IoT using the Advantco MQTT adapter_Pic10

3.3. Configuration for receiver MQTT channel

Integration with AWS IoT using the Advantco MQTT adapter_Pic11 

 

  1. 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.jks file.

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

Integration with AWS IoT using the Advantco MQTT adapter_Pic12

 

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

 

4.2. Configuration for sender MQTT channel

Integration with AWS IoT using the Advantco MQTT adapter_Pic13

 

4.3. Configuration for receiver MQTT channel

 Integration with AWS IoT using the Advantco MQTT adapter_Pic14

 

  1. 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

 

Please reach out to our sales team at sales@advantco.com if you have any questions.

 MQTTMQTT PO CPIAWS Amazon Web Service PO CPI