Managing Products


For products, you can perform operations such as viewing and editing products, viewing device logs, exporting and importing products in batch, debugging devices, and migrating products.

Prerequisite


  • Ensure that you have the corresponding permissions for Product service. If you do not have the access, contact your OU administrator.

  • Ensure that you have read the limitations for products. See Limitations.

Viewing Product Information


Before you start, ensure that your account has been authorized the policy that includes the following service(s) and action permission(s). If not, contact your OU administrator.


Operation

Required Service

Required Operation Permission

Viewing the product details

Product

Read (default)

Viewing the product’ model

Model

Read (default)

Viewing the product secret

Product

Create or Update

Viewing the devices under the product

Device Management Service

Read (default)


On the Product Details page, you can view the information of the product.

  1. In EnOS Management Console, select Device Management > Products.

  2. In the list of products, click View btn_view to open the Product Details page of the target product.

  3. The page displays the details of the product:

    • Model: The model of the product. Click View btn_view to view the model details.

    • Product key and Product secret: The key-pair of credentials uniquely identifies the product.

    • Devices: Click Manage btn_config to view the devices under the product.

Editing Product Information and Tags


Before you start, ensure that your account has been authorized the policy that includes the following service(s) and action permission(s). If not, contact your OU administrator.


Required Service

Required Operation Permission

Product

Update


On the Product Details page, you can edit the information and the tags of the product.

  1. In EnOS Management Console, select Device Management > Products.

  2. In the list of products, click View btn_view to open the Product Details page of the target product.

  3. Select Basic Information tab and click btn_edit to edit the following:

    • Basin Information: you can edit Product Name, Description, and Certificate-Based Authentication.

    • Tags: click New Tag in the pop-up, enter the Key:Value, and click OK.

Viewing Logs


On the Product Details page, you can view the logs of important behaviors of all the devices under the product.

  1. In EnOS Management Console, select Device Management > Products.

  2. In the list of products, click View btn_view to open the Product Details page of the target product.

  3. Click the Logs tab to open the log details page.

  4. Under the Activity Logs tab, enter the target device key and set a time period to view the log of that device for the set period of time.

  5. To view logs of upstream and downstream messages, click the Upstream and Downstream tabs.

    • The Upstream page mainly displays the logs of the following upstream messages:

      • Messages sent by the device to the topic queue.

      • Messages flowed from the topic queue to the rules engine.

      • Messages forwarded from the rules engine to other services and applications in EnOS Cloud.

    • The Downstream page mainly displays the logs of messages sent from the cloud to the device.

Exporting Products


This function enables you to export products across different models to an Excel file.

  1. In EnOS Management Console, select Device Management > Products, and click Batch Export.

  2. You can either export all of the products listed by clicking Export All, or export specific products by selecting the products you wish to export and click Export Selected.

  3. Save the Excel file to your local directory.

Importing Products


Before you start, ensure that your account has been authorized the policy that includes the following service(s) and action permission(s). If not, contact your OU administrator.


Required Service

Required Operation Permission

Product

Create


This function enables you to batch create new products or batch update existing products across different models using an Excel file. Batch importing of existing products will update the existing information. If there are no existing products, new products will be created.

  1. In EnOS Management Console, select Device Management > Products.

  2. Click the Import button.

  3. Upload an Excel file. For file size limitations, refer to the pop-up window.


    If you require a template, click Download Blank Template to download a blank template in Excel format. Fill in the template once it’s downloaded and upload the file.


Excel Template Parameters

Name

Mandatory/Optional

Description

Product Key

Depends on creating new or updating products.

See description for more information.

The product key.

  • For creating new products, leave this blank. The system will generate a product key when the product is successfully created.

  • For updating products, the Product Key must match the product’s product key that you are updating. If it cannot be found, it will be an invalid record.

Product Name (Default)

Mandatory

The name of the product, unique within the same OU. 1 - 64 characters. Does not support <>;@*%&\ characters.

Product Name (Internationalization)

Optional

The internationalization name of the product, e.g. English(en_US) and Simplified Chinese(zh_CN). If not given, the default product name will be used. 1 - 64 characters.

Product Description

Optional

The description of the product. Max 512 characters.

Asset Type

Mandatory if creating new product, and optional when updating product

The asset type of the product. Available values are Device (there are no sub-devices that needs to be connected) and Gateway (needs to connect to sub-devices).

Onboarding Method

Mandatory if creating new product, and optional when updating product

The method by which devices onboard to EnOS. Available values are Json (via EnOS standard JSON data) and Custom (via custom data format or via third-party device protocols that can be converted to EnOS standard protocol using protocol gateways).

Model ID

Mandatory if creating new product, and optional when updating product

The ID of the model that the product will be under.

Protocol Gateway

Depends on Onboarding Method.

See description for more information.

  • Leave blank if Json is given for Onboarding Method. The default protocol gateway used in EnOS will be automatically assigned.

  • Leave blank if Custom is given for Onboarding Method and the method is via custom data.

  • Enter the protocol gateway ID if Custom is given for Onboarding Method and the method is via third-party device protocol. The ID can be found at EnOS Management Console > Device Onboarding > Protocol Gateways.

Certificate-Based Authentication

Mandatory

  • true: Enables the certificate-based bi-directional authentication method for this product.

  • false: Disables certificate-based bi-directional authentication method for this product.

Default Validity Period

Mandatory if Certificate-Based Authentication is true

When the device/gateway applies for a certificate but does not specify the validity period, this parameter will be used as the certificate validity period. This value must be less than Max Validity Period. Range: 1 - 3650

Max Validity Period

Mandatory if Certificate-Based Authentication is true

The maximum certificate validity period of a device/gateway when a device/gateway under this product applies for a certificate. If the validity period is exceeded, an error will be reported and the certificate application will fail. Range: 1 - 3650


Note

Do not leave blank rows between the rows as the file may fail to import.


../../_images/product_batch_import_upload.png


4. Click Import.

5. If invalid records exist, a pop-up window will show an error message and a Download Error File link. Click to download the file, check the cause of the error, rectify it, and upload the file again.

6. Once the products are successfully imported, the new products will appear in the list of products in Device Management > Products.

Debugging Online Devices


Before you start, ensure that your account has been authorized the policy that includes the following service(s) and action permission(s). If not, contact your OU administrator.


Required Service

Required Operation Permission

Product

Update


On the Product Details page, you can debug devices under the product, simulate a real device to connect to the cloud, report defined attributes, and handle events. Based on the data of the simulated device, the cloud can complete application development and debugging. Once the real device is online, the virtual device will automatically go offline.

  1. In EnOS Management Console, select Device Management > Products.

  2. In the list of products, click btn_view to open the Product Details page of the target product.

  3. Click the Debugging tab to open the debugging page.

  4. Select the device you want to debug from the drop-down list.

  5. Simulate a scenario using the debugging feature.

  6. Click Run.

Migrating Products


You can migrate products to another OU by sharing it.


When shared, if the model of the product does not exist in the target OU, the model will be shared together with the product to the target OU. Both the model and product will appear in the target OU’s list of models and products respectively, and the target OU will be given read access to both. The target OU will not be able to edit any information for the shared model/product.


Any changes to the model/product in the original OU will be reflected in the target OU. Deleting the model/product in the original OU will delete it in the target OU as well.


  1. In EnOS Management Console, go to Device Management > Products, and click the Migrate icon migrate for the product you wish to migrate.

  2. Select Share for Action.

  3. Enter the OU ID for the OU you wish to share the product to.

  4. Select the Verification Method, either via email or mobile.

  5. Click Get Code. Depending on the Verification Method selected, a verification code will be sent via email or SMS to the owner of the target OU.

  6. Enter the verification code (6-digits) and click OK.

  7. A pop-up window to confirm the migration will appear. Click OK to proceed.

  8. The product will appear in the target OU’s list of products.


../../_images/migrate_asset_share.png