Skip to content

Product Configuration and Quick Access Example

Introduction

This chapter explains how to configure a product and quickly access Developer Center through AT commands.

AT CommandDescription
AT+QIOTCFGConfigure Optional Parameters
AT+QIOTREGConfigure Connection Mode
AT+QIOTSTATEQuery Connection Status

Note: See Product Configuration Commands for details.

Procedure

Operation on Developer Center

1. Log in to Developer Center

Log in to Developer Center. If you don't have an account click Register Now to register.

2. Create a Product

For details about product creation, see Create a Product.

Note: PK and PS should be in safekeeping, because they will be used for device authentication and product deletion.

Operation on Device

1. Configure Product Information (via First Connection)

Upon product creation on Developer Center, Developer Center will send you ProductKey and ProductSecret by e-mail. All devices under the same product can download the same ProductKey and ProductSecret. During the bootstrap authentication process, the device will transmit the ProductKey and ProductSecret, and the Developer Center will verify them. If the authentication is successful, the device will be granted access. To connect the device to Developer Center for the first time, configure product information by AT+QIOTCFG="productinfo"[,<pk>,<ps>]. Download ProductKey and ProductSecret to the device and perform bootstrap authentication, then the authenticated device will be automatically added to the product where the Developer Center is located.

c
[TX]AT+QIOTCFG="productinfo","pxxxxt","cDVTxxxxxxxxWGVB"

[RX]AT+QIOTCFG="productinfo","pxxxxt","cDVTxxxxxxxxWGVB"

OK

2. Access Developer Center

MCU can configure connection mode by AT+QIOTREG=<reg_mode>. ProductKey and ProductSecret must be configured before a device accesses Developer Center, otherwise, ERROR will be returned.

c
[TX]AT+QIOTREG=1

[RX]AT+QIOTREG=1

OK

3. Query Connection Status

To further confirm whether the device has connected to Developer Center, you can query the connection status by AT+QIOTSTATE?. If +QIOTSTATE: 8 is returned, the device has connected to Developer Center and data can be sent.

c
[TX]AT+QIOTSTATE?

[RX]AT+QIOTSTATE?

+QIOTSTATE: 8

OK

Connection statuses:

Response ValueDescription
0Uninitialized
1Initialized
2Authenticating
3Authenticated
4Authentication failed
5Registering
6Registered and waiting to subscribe
7Registration failed
8Subscribed and data can be sent
9Subscription failed
10Deregistering
11Deregistered
12Deregistration failed