FC41D AWS IoT Platform
Access Guide
Wi-Fi&Bluetooth Module Series
Version: 1.0.0
Date: 2022-01-27
Status: Preliminary

Wi-Fi&Bluetooth Module Series

At Quectel, our aim is to provide timely and comprehensive services to our customers. If you
require any assistance, please contact our headquarters:
Quectel Wireless Solutions Co., Ltd.
Building 5, Shanghai Business Park Phase III (Area B), No.1016 Tianlin Road, Minhang District, Shanghai
200233, China
Tel: +86 21 5108 6236
Email: info@quectel.com
Or our local offices. For more information, please visit:
http://www.quectel.com/support/sales.htm.
For technical support, or to report documentation errors, please visit:
http://www.quectel.com/support/technical.htm.
Or email us at: support@quectel.com.

Legal Notices
We offer information as a service to you. The provided information is based on your requirements and we
make every effort to ensure its quality. You agree that you are responsible for using independent analysis
and evaluation in designing intended products, and we provide reference designs for illustrative purposes
only. Before using any hardware, software or service guided by this document, please read this noticecarefully. Even though we employ commercially reasonable efforts to provide the best possible
experience, you hereby acknowledge and agree that this document and related services hereunder areprovided to you on an “as available” basis. We may revise or restate this document from time to time atour sole discretion without any prior notice to you.

Use and Disclosure Restrictions
License Agreements
Documents and information provided by us shall be kept confidential, unless specific permission isgranted. They shall not be accessed or used for any purpose except as expressly provided herein.

Copyright
Our and third-party products hereunder may contain copyrighted material. Such copyrighted material
shall not be copied, reproduced, distributed, merged, published, translated, or modified without priorwritten consent. We and the third party have exclusive rights over copyrighted material. No license shallbe granted or conveyed under any patents, copyrights, trademarks, or service mark rights. To avoid
ambiguities, purchasing in any form cannot be deemed as granting a license other than the normalnon-exclusive, royalty-free license to use the material. We reserve the right to take legal action fornoncompliance with abovementioned requirements, unauthorized use, or other illegal or malicious use ofthe material.

FC41D_AWS_IoT_Platform_Access_Guide

1 / 20Wi-Fi&Bluetooth Module Series

Trademarks
Except as otherwise set forth herein, nothing in this document shall be construed as conferring any rights
to use any trademark, trade name or name, abbreviation, or counterfeit product thereof owned by Quectelor any third party in advertising, publicity, or other aspects.

Third-Party Rights
This document may refer to hardware, software and/or documentation owned by one or more third parties(“third-party materials”). Use of such third-party materials shall be governed by all restrictions andobligations applicable thereto.
We make no warranty or representation, either express or implied, regarding the third-party materials,
including but not limited to any implied or statutory, warranties of merchantability or fitness for a particularpurpose, quiet enjoyment, system integration, information accuracy, and non-infringement of any
third-party intellectual property rights with regard to the licensed technology or use thereof. Nothing hereinconstitutes a representation or warranty by us to either develop, enhance, modify, distribute, market, sell,offer for sale, or otherwise maintain production of any our products or any other hardware, software,device, tool, information, or product. We moreover disclaim any and all warranties arising from the courseof dealing or usage of trade.

Privacy Policy
To implement module functionality, certain device data are uploaded to Quectel’s or third-party’s servers,
including carriers, chipset suppliers or customer-designated servers. Quectel, strictly abiding by therelevant laws and regulations, shall retain, use, disclose or otherwise process relevant data for thepurpose of performing the service only or as permitted by applicable laws. Before data interaction withthird parties, please be informed of their privacy and data security policy.

Disclaimera)
b)
c)

d)

We acknowledge no liability for any injury or damage arising from the reliance upon the information.
We shall bear no liability resulting from any inaccuracies or omissions, or from the use of theinformation contained herein.
While we have made every effort to ensure that the functions and features under development are
free from errors, it is possible that they could contain errors, inaccuracies, and omissions. Unlessotherwise provided by valid agreement, we make no warranties of any kind, either implied or express,and exclude all liability for any loss or damage suffered in connection with the use of features andfunctions under development, to the maximum extent permitted by law, regardless of whether suchloss or damage may have been foreseeable.
We are not responsible for the accessibility, safety, accuracy, availability, legality, or completeness of
information, advertising, commercial offers, products, services, and materials on third-party websites
and third-party resources.

Copyright © Quectel Wireless Solutions Co., Ltd. 2022. All rights reserved.

FC41D_AWS_IoT_Platform_Access_Guide2 / 20Wi-Fi&Bluetooth Module Series

About the Document
Revision History
Version

DateAuthor

Description-2022-01-26

Brave LIU

Creation of the document

1.0.0

2022-01-26

Brave LIU

Preliminary

FC41D_AWS_IoT_Platform_Access_Guide

3 / 20Wi-Fi&Bluetooth Module Series

Contents
About the Document .................................................................................................................................. 3Contents ...................................................................................................................................................... 4
Table Index .................................................................................................................................................. 5
Figure Index ................................................................................................................................................ 6
1Introduction ......................................................................................................................................... 72

Configure AWS IoT Platform ............................................................................................................. 8
2.1.
2.2.

Create AWS Account ................................................................................................................. 8
Get Certificates .......................................................................................................................... 8
2.2.1.
Create a Shortcut for IoT Core........................................................................................ 8
2.2.2.
Register Device ............................................................................................................... 8
2.2.3.
Get Certificates.............................................................................................................. 102.2.4.
Create a Policy .............................................................................................................. 11
2.2.5.
Attach a Policy to Certificate(s) ..................................................................................... 13
2.2.6.
Attach a Thing to Certificate(s) ..................................................................................... 15
2.3. Communicate with AWS IoT Core ........................................................................................... 16
3Data Communication ........................................................................................................................ 18
3.1. MQTT Protocol ......................................................................................................................... 18

4Appendix References ....................................................................................................................... 20

FC41D_AWS_IoT_Platform_Access_Guide

4 / 20Wi-Fi&Bluetooth Module Series

Table Index
Table 1: Related Documents ...................................................................................................................... 20
Table 2: Terms and Abbreviations ............................................................................................................. 20

FC41D_AWS_IoT_Platform_Access_Guide

5 / 20Wi-Fi&Bluetooth Module Series

Figure Index
Figure 1: Register Device - A ....................................................................................................................... 9Figure 2: Register Device - B ....................................................................................................................... 9Figure 3: Register Device - C ..................................................................................................................... 10Figure 4: Get Certificates – Add a Certificate for Your Thing .................................................................... 11Figure 5: Get Certificates – Download Certificates .................................................................................... 11Figure 6: Create a Policy – Choose "Create"............................................................................................. 12
Figure 7: Create a Policy ............................................................................................................................ 12Figure 8: Attach Policy – A ......................................................................................................................... 13
Figure 9: Attach Policy – B ......................................................................................................................... 13
Figure 10: Attach Policy – C....................................................................................................................... 14
Figure 11: Attach Policy – D....................................................................................................................... 14
Figure 12: Attach Thing - A ........................................................................................................................ 15
Figure 13: Attach Thing - B ........................................................................................................................ 15
Figure 14: Attach Thing - C ........................................................................................................................ 16
Figure 15: Communicate with AWS IoT Core - A ...................................................................................... 16
Figure 16: Communicate with AWS IoT Core - B ...................................................................................... 17
Figure 17: Certificates List ......................................................................................................................... 17

FC41D_AWS_IoT_Platform_Access_Guide

6 / 20Wi-Fi&Bluetooth Module Series

1 IntroductionAWS IoT provides the cloud services that connect your IoT devices to other devices and AWS cloudservices. It provides an easy way to help you manage IoT devices.
This document introduces how to access AWS IoT with Quectel FC41D module.

FC41D_AWS_IoT_Platform_Access_Guide

7 / 20Wi-Fi&Bluetooth Module Series

2 Configure AWS IoT Platform
2.1. Create AWS AccountBefore accessing AWS cloud, it is necessary to make some configuration on AWS IoT platform for yourdevices, including device registration, certificate acquisition, policy creation and attachment, etc.
Before using AWS IoT services, you must set up an AWS account. If you already have an AWS accountand an IAM user (see the link user for details) for yourself, you can use them to Open the AWS IoTconsole. Otherwise, open this link for a new account registration.

2.2. Get Certificates
The certificates are used to authenticate your devices to connect to AWS IoT. Follow the steps below toget certificates for your devices.

2.2.1. Create a Shortcut for IoT Core
Sign in to the AWS IoT platform. For more details on how to register the devices, refer to the AWS IoTCore Documentation center.
In the "AWS Management Console", a shortcut for "IoT Core" can be created simply by dragging it to themenu bar.

2.2.2. Register Device
Open your AWS IoT console, thena) Click "IoT Core",b) Choose "Manage"  "Things" in the left navigation bar.
c) Click "Create"d) Clidk "Create a single thing".

FC41D_AWS_IoT_Platform_Access_Guide

8 / 20Wi-Fi&Bluetooth Module Series

Figure 1: Register Device - A

Figure 2: Register Device - B

Then add your device to the thing registry according to the provided steps. Take the device named as"mytestthing" as an example:

FC41D_AWS_IoT_Platform_Access_Guide

9 / 20Wi-Fi&Bluetooth Module Series

Figure 3: Register Device - C

2.2.3. Get Certificates
X.509 certificates protects the connection between a device and AWS IoT platform. The certificates haveto be activated before using.

FC41D_AWS_IoT_Platform_Access_Guide

10 / 20

Wi-Fi&Bluetooth Module Series

Figure 4: Get Certificates – Add a Certificate for Your Thing

Download certificates and root CA and save them in your PC. Select "Starfield Root CA Certificate" forthe root CA.

Figure 5: Get Certificates – Download Certificates

2.2.4. Create a Policy
Thing policy variables allow you to write AWS IoT Core policies that grant or deny permissions based onthing properties like thing names, thing types, and thing attribute values.
Open your AWS IoT console and from the left menu, then

FC41D_AWS_IoT_Platform_Access_Guide

11 / 20

Wi-Fi&Bluetooth Module Seriesa) Click "IoT Core" menu.
b) Click "Secure"  "Policies" in the left navigation bar.
c) Click "Create".

Figure 6: Create a Policy – Choose "Create"

Figure 7: Create a Policy

FC41D_AWS_IoT_Platform_Access_Guide

12 / 20

Wi-Fi&Bluetooth Module Series

2.2.5. Attach a Policy to Certificate(s)In your AWS IoT console page and from the left menu,a) Click "IoT Core" menu.
b) Click "Secure"  "Certificates" in the left navigation bar.
c) Click a certificate to show details.
d) Click "Actions"  "Attach policy".
e) Select a policy and click "Attach".

Figure 8: Attach Policy – A

Figure 9: Attach Policy – B

FC41D_AWS_IoT_Platform_Access_Guide

13 / 20

Wi-Fi&Bluetooth Module Series

Figure 10: Attach Policy – C

Figure 11: Attach Policy – D

FC41D_AWS_IoT_Platform_Access_Guide

14 / 20

Wi-Fi&Bluetooth Module Series

2.2.6. Attach a Thing to Certificate(s)Remember the certificate to which you attached the policy and attach the thing to the certificate.
In your AWS IoT console page and from the left menu,f) Click "IoT Core" menu.
g) Click "Secure"  "Certificates" in the left navigation bar.
h) Click a certificate to show details.
i) Click "Actions"  "Attach policy".
j) Select a thing and click "Attach".

Figure 12: Attach Thing - A

Figure 13: Attach Thing - B

FC41D_AWS_IoT_Platform_Access_Guide

15 / 20

Wi-Fi&Bluetooth Module Series

Figure 14: Attach Thing - C

2.3. Communicate with AWS IoT Core
The AWS IoT device endpoints support communication between your IoT devices and AWS IoT. The
device endpoints are specific to your account. Refer to the following steps to find your endpoint.

Figure 15: Communicate with AWS IoT Core - A

FC41D_AWS_IoT_Platform_Access_Guide

16 / 20

Wi-Fi&Bluetooth Module Series

Figure 16: Communicate with AWS IoT Core - B

Figure 17: Certificates List

FC41D_AWS_IoT_Platform_Access_Guide

17 / 20Wi-Fi&Bluetooth Module Series

3 Data Communication
3.1. MQTT Protocol
AWS IoT Core supports devices and clients that use the MQTT and the MQTT over WebSocket Secure(WSS) protocols to publish and subscribe to messages.
After configuring AWS IoT platform, you can perform communication between the module and AWS IoTplatform as the example shown below. For details of the AT commands, see
AT+QSSLCERT="CA",2,1187
OKAT+QSSLCERT="User Cert",2,1220
OKAT+QSSLCERT="User Key",2,1675
OKAT+QSSLCFG="ciphersuite",1,0xFFFF
OKAT+QMTCFG="session",1,1OKAT+QMTCFG="ssl",1,1,1
OK
AT+QSSLCF="sni",1,0OKAT+QSSLCFG="verify",1,2OK
AT+QMTOPEN=1,"a1srr3yo833bl6-ats.iot.us-east-2.amazonaws.com",8883
OK+QMTOPEN: 1,0
AT+QMTCONN=1,"my_quething"
OK+QMTCONN: 1,0,0AT+QMTSUB=1,1,"$aws/things/mytestthing/shadow/update/accepted",0OK

FC41D_AWS_IoT_Platform_Access_Guide

18 / 20

Wi-Fi&Bluetooth Module Series+QMTSUB: 1,1,0,0
AT+QMTSUB=1,1,"$aws/things/mytestthing/shadow/update/rejected",0OK+QMTSUB: 1,1,0,0AT+QMTPUB=1,1,1,0,"$aws/things/mytestthing/shadow/update">{"state": {"reported": {"color": "red"}}}
OK+QMTPUB: 1,1,0+QMTRECV: 1,0,"$aws/things/mytestthing/shadow/update/accepted","{"state":{"reported":{"color":"red"}},"metadata":{"reported":{"color":{"timestamp":1610616830}}},"version":3,"timestamp":1610616830}"

FC41D_AWS_IoT_Platform_Access_Guide

19 / 20

Wi-Fi&Bluetooth Module Series

4 Appendix References
Table 1: Related Documents
Document Name
[1] Quectel_FC41D_AT_Commands_Manual

Table 2: Terms and Abbreviations
Abbreviation

Description

AWS

Amazon Web Services

IoT

Internet of Things

MQTT

Message Queuing Telemetry Transport

WSS

WebSocket Secure

FC41D_AWS_IoT_Platform_Access_Guide

20 / 20