If the Authentication Type parameter of a gateway product is set to One-party Verification, you must import verification information of a device. This way, the information can be used to verify the device when you connect the device to IoT Platform. This topic describes how to import verification information about devices.
Prerequisites
A gateway whose Authentication Type parameter is set to One-party Verification is created as a product in the IoT Platform console. For more information, see Create a GB/T 32960 gateway.
Background information
The first time you use a cloud gateway whose Authentication Type parameter is set to Third-party Certification to connect a device to IoT Platform, IoT Platform automatically uses the value of the vin parameter as the DeviceName to create a device.
After you create a gateway whose Authentication Type parameter is set to One-party Verification, you must import the verification information of devices to add the devices to the gateway product. For more information about how to add the devices, see the following section.
Add multiple devices
Log on to the IoT Platform console.
On the Overview tab, click the Exclusive Enterprise Edition instance that you want to manage.
In the left-side navigation pane, choose . Find the gateway that you created and click Manage Devices in the Actions column.
On the Devices page, click Batch Add.
In the Batch Add Devices dialog box, click Download .csv Template to download the template file of device verification information.
In the template file, enter the vehicle identification numbers (VINs) of the devices that you want to add, and save the file.
ImportantA VIN must be 4 to 17 characters in length and can contain letters and digits.
Go to the Batch Add Devices dialog box and click Upload File. In the dialog box that appears, select the template file and click Open. Then, click OK to upload the template file to IoT Platform.
If a template file contains invalid information, an error occurs. Click Download Invalid Device Name List, view and change the invalid information, and then re-upload the template file.
Result
After device verification information is imported, IoT Platform creates devices and uses the uploaded VINs as DeviceNames. The Devices page displays information about the devices that are created.
What to do next
After the devices are added to the gateway product, you must update the endpoint of each device.
If an endpoint is specified for a device, you must configure a CNAME record to change the endpoint to the gateway URL. For information about how to resolve domain names, see Alibaba Cloud DNS.
If no endpoint is specified for a device, you must specify the gateway URL as the endpoint of the device.
For information about how to obtain a gateway URL, see View the gateway information.
For more information about how to connect a device to IoT Platform by using a gateway, see Messaging.