百度智能云

All Product Document

          Intelligent Edge

          Device Registration

          Device Model Management

          Each type of device has a corresponding model or a production batch number. Devices with the same model or batch number are mass-produced, and their general attributes are the same. Based on this feature, to facilitate batch registration of devices, the registration method of one key for one model is designed. One key for one model means that the same model/batch number key is initially installed on a batch of devices. The only difference among this batch of devices is the fingerprint (unique identifier of the device).

          When a device is initially started, the authentication connection to the cloud is based on the model key and device fingerprint. If the authentication is passed, the device is activated and the cloud issues an official device connection certificate for the device.

          View the Device Model List

          Click Registration management in Baidu IntelliEdge on the left menu of Baidu AI Cloud to open and view the device model list. The “model/batch number” of the device, application platform of this type of device and when the model was created are displayed in the list.

          contract_list.png

          Query a Device Model

          Enter the model (fuzzy query is supported) in the search bar at the top right of the device model list and press the Enter key or click the search button besides to get the search result.

          contract_search.png

          Create a Device Model

          To create a model, you have to fill in the following information:

          • Model/Batch number: Device model name
          • Application platform: Currently, the following platforms are supported:

            • Linux-amd64
            • Darwin-amd64
            • Linux-armv7
            • Linux-386
            • Linux-arm64
          • Registration ID path mapping: The path mapping method supports default and custom
          • ID save file: Saving files of the registration ID means saving the file name of the device fingerprint, and the default is: fingerprint.txtYou can also customize it based on actual conditions.
          • Host directory: The directory where the device fingerprint file is located, and the default is: var/db/activation, You can also customize it based on actual conditions. It is a relative path.

            • If you use setup.sh or a command line to install baetyl and start it through systemctl start baetyl, this directory is located in the /usr/local/ directory.
            • If you manually download the installation package and start Baetyl through sudo./baetyl start, this directory is located in the {$baetyl_home} directory.
          • Whether to use a template: A model can be associated with an application template, so that once devices of this model are activated, they can automatically be deployed based on the application template.
          • Description: Optional

          The interface to create a model is shown in the figure below:

          image.png

          Delete a Device Model

          Click Delete on the right of the device model, a pop-up appears to check whether you are sure to delete it, confirm it, and then the device model can be deleted.

          contract_delete.png

          The device model can only be deleted when there is no registration record, that is, no specific device has been registered, and otherwise it cannot be deleted.

          contract_cant_delete.png

          View and Edit Device Model Details

          Click the device model/batch number name or View on the right to enter the device model details page. When the device was created, the description information, Master Key and application platform are displayed on top of the details page. Among them, the description information can be edited, and the Master Key is initially hidden. Click the View/Hide button on the right to view or hide the Master Key.

          contract_detail_1.png

          The registration ID path mapping information is displayed at below of the details page. The mapping information includes information such as the path (host directory) of the registration ID on the device of this type, and the file name for saving the registration ID. In addition, you can also add tags.

          contract_detial_2.png

          The registration ID path mapping can be edited. Click “Edit” besides to modify the host directory and file name for saving the registration ID.

          edit_register_info.png

          Click Add a tag below to add tags for this device type.

          add_labels.png

          Click the x on the right of each tag, confirm to delete it in the pop-up, and then the tag can be deleted.

          delete_labels.png

          Registration Record Management

          View and Query a Registration Record

          Specific device registration records are available on the device model details page. The registration record includes the registration ID of a specific device and the core name (a provisional name before activation and a real core name after activation). Enter the registration ID (fuzzy query is supported) in the search bar at the top right of the registration list and press the Enter key or click the search button besides to get the search result.

          contract_detial_3.png

          Add a Registration Record

          Click Add a registration record, and a pop-up appears. The registration ID is required, and you can enter it manually or get it automatically generated by the system. The core name is optional.

          add_register.png

          Add Registration Records in Batches

          batch_add_register_num.png

          Click Add in batches, and a pop-up appears. When you select to automatically generate registration records, you have to enter the number of devices. The number of automatically generated records cannot exceed 1,000, and the registration ID and core name of each record are automatically generated by the system.

          For batch import, you can upload files in csv format, and each line includes Registration ID and core name. You can download the template file for reference. The system generates registration records according to the registration IDs and core names in the imported file.

          batch_add_register_file.png

          Edit a Registration Record

          Click Edit on the right of the registration record to modify the core name (only when the device is not activated), and the core name of randomly generated registration records cannot be edited. edit_register.png

          Previous
          Overview
          Next
          Device Activation