Unit 2: Registering the Raspberry Pi on EnOS Management Console


Before connecting the RPi to EnOS, you need to register the RPi device in EnOS Management Console, which includes defining a model, product, and device.

Step 1: Creating a Model for RPi

In this step, we will create a model named RPi with the required attributes.

  1. In EnOS Management Console, click Models from the left navigation menu.

  2. Click New Model, enter the following, and click OK.

    ../../_images/create_model.png


  3. From the model list, click the btn_edit for the RPi model, and click Feature Definition > Edit > Add > Create Custom Feature to add the following measurement points.

    Measurement Point

    Description

    Temperature

    AI point type data collected from the temperature sensor.

    Humidity

    AI point type data collected from the humidity sensor.

    Light

    DI point type of data sent to Raspberry Pi to control the light. 0 stands for light off, 1 stands for light on, and 2 stands for light flickering.

    Light_Flicker

    DI point type of data collected from Raspberry Pi to show the light status. 0 stands for light off, and 1 stands for light on.


Refer to the following screen capture of the created measurement points.

../../_images/measuring_points.png


You can define your own measurement points in your device model based on your needs.

Step 2: Creating a Product

A product is a collection of devices with the same features. In this tutorial, create a product named RPi_Product under the RPi model.

  1. In EnOS Management Console, click Device Management > Products from the left navigation menu.

  2. Click New Product, enter the following, and click OK.

    ../../_images/create_product1.png

Step 3: Registering the Device

In this step, create a device named RPi_Device, which belongs to the product created in the previous step.

  1. In EnOS Management Console, click Device Management > Device Assets from the left navigation menu.

  2. Click New Device, provide the following basic settings for the device, and click OK.

    ../../_images/create_device.png

After you complete the device registration, you can get the device triple properties: ProductKey, DeviceKey, and DeviceSecret, which will be used to connect the device to EnOS.

Next Unit

Configuring Alerts