All Products
Search
Document Center

IoT Platform:Create a gateway and connect a device on the AEP platform of China Telecom by using the gateway

Last Updated:Sep 03, 2024

After you create a product, a device for the product, and an app on the AEP platform of China Telecom, you can create a gateway and associate the gateway with the product to connect the device to IoT Platform.

Procedure

  1. Log on to the IoT Platform console.

  2. On the Overview page, click the card of the Exclusive Enterprise Edition instance named iot-cn-z2q1***.

    Important

    You can use gateways to connect NB-IoT devices of China Telecom only to Exclusive Enterprise Edition instances.

  3. In the left-side navigation pane, choose Devices > Gateway. On the Gateway page, click Add Gateway.

  4. In the Add Gateway dialog box, configure the parameters as prompted and click OK. The following table describes the parameters.

    Parameter

    Description

    Gateway Name

    The name of the gateway. The name must be unique within the instance. The name must be 4 to 30 characters in length, and can contain letters, digits, and underscores (_).

    Protocol

    Select China Telecom NB-IoT.

    Related Services

    The method that you want to use to associate a product. In this example, the parameter is set to Select Product and NBProduct1 is selected from the drop-down list.

    • Select Product: Select a product that you created in the IoT Platform console.

    • Product Variables: Specify a product in the ${Variable name} format.

      IoT Platform obtains the value of the variable and associate an IoT Platform product whose name is the same as the value.

      For example, if you specify ${Model}, IoT Platform parses the Model variable to WaterMeter. Then, IoT Platform associates an IoT Platform product named WaterMeter.

    Note

    Make sure that a product is created in the IoT Platform console and the name of the product is the same as the name of the product that you created on the AEP platform of China Telecom.

    Associate Device

    Specify a device in the ${Variable name}.

    IoT Platform obtains the value of the variable (for example, deviceID) and automatically creates a device whose DeviceName is the same as the value for an associated product, for example, NBProduct1.

    For example, if you specify ${deviceId}, IoT Platform parses the deviceId variable to 150082610000. Then, IoT Platform automatically creates a device named 150082610000.

    AppId

    The AppId and AppSecret of the app that you created on the AEP platform of China Telecom.

    For more information about how to create an app, see Configure a device and add an app on the AEP platform.

    AppSecret

  5. On the Gateway page, view and save the gateway URL of the gateway.

  6. Log on to the AEP Platform of China Telecom. In the left-side navigation pane, click Product Center. On the Product Center page, click the name of the NBProduct1 product. On the Product Details page, click Subscriptions.

  7. In the upper-right corner of the tab that appears, click Create Subscription. In the dialog box that appears, select All Message Type, set the Protocol parameter to https, enter a subscription URL, and then click OK.

    Enter a subscription URL in the ${Gateway URL}:443 format. Example: iot-cn-n***.iothub.aliyuncs.com:443.

  8. On the AEP-Online Debugging page of the nbdevice device, submit the data of water usage.

    If the page expires, go to the Devices tab and re-connect the device. For more information, see Step 6 in the Configure a device and add an app on the AEP platform topic.

  9. Go to the Instance Details page of the Exclusive Enterprise Edition instance in the IoT Platform console and choose Devices > Products. On the Products page, click Manage Devices in the Actions column of the NBproduct1 product.

    On the Devices page, a device named 15008261001 is automatically created for the NBproduct1 product. The DeviceName is the same as the device ID of device on the AEP platform of China Telecom.

    You can go to the AEP platform of China Telecom to view the device ID of the nbdevice device.

What to do next

Convert the data format of a TSL model