Contents


Introduction

AWS IoT provides secure and bi-directional communication between end devices (such as sensors, actuators, embedded micro-controllers, smart appliances) and the AWS Cloud. This document will explain how to connect X5 Sensing Camera to AWS via MQTT protocol.


Requirements


  • X5 Sensing Camara: SC31x


Configuration

AWS Configuration

Create a Thing

1. Log in AWS account. 

2. Go to Manage > All device > Things and click Create things button to create a thing.

3. Click Create a single thing and click Next.

4. Name the thing and click Next.

5. Select Auto-generate a new certificate and click Next, then you can create a policy or skip this step which we will detail on next chapter and continue to click Create thing.


6. Download all certificates.

Note:

CA certificates have an expiration date after which they cannot be used to validate a server's certificate. CA certificates are needed to be replaced after expiration date in order to ensure ongoing connectivity and to keep up to date with security best practices.

Here are all certificates for device connection:


Create Policy

1. Go to Manage > Security > Policies and click Create policy to create a policy.

2. Name the policyand add statements as shown below, then click Create to save this policy.


3. In the list of Certificates, locate the certificate you want to attach a policy, open the certificate’s option menu by choosing the ellipsis icon and choose Attach Policies. And choose and attach the policy we created for mqtt-policy.



X5 Camara Configuration

1. Go to Object Capture > Capture Management > Upload Setting to enable post and select post type as MQTT.

2. Fill in AWS information and import certificates, then save the configuration.

  • Broker address: It can be found on AWS web GUI >Settings > Endpoint.
  • Broker Port: 8883
  • Client ID: AWS Thing name
  • TLS mode: Self signed certificates
  • Key file: ca.pem, certificate.pem.crt, private.pem.key



Data Visualization in AWS

1. Add a Uplink data topic on Milesight gateway, then go to AWS Web GUI> Test > MQTT test client page to subscribe topics of X5 cameras. Please refer to API document for MQTT topic details.


2. Check the details of data from camera.


 



---END---