Overview

Skill Level: Any Skill Level

Eniscope is a Real-time Energy Management System that can monitor 8 individual 3-phase circuits or up to 24 single-phase circuits.
This recipe shows to set your Eniscope up to send realtime energy data to the Watson IoT platform using MQTT.

Ingredients

  1. An Eniscope that has already been activated and set up with one or more meters and which is connected to the internet.
    To find out more about Eniscope and how to order one, visit: http://www.bestenergysaving.com
  2. A computer with a web browser that is connected to the same local area network as the Eniscope
  3. An IBM Cloud account with Watson IoT platform enabled

Step-by-step

  1. Create a Device within Watson IoT Platform

    If you do not already have an instance of Watson IoT platform configured then you can find the quickstart on how to set that up here:
    https://console.bluemix.net/docs/services/IoT/index.html

    Once you have setup an instance of the IoT Platform:

    1. Navigate to the Settings page.
    2. Find the Connection Security section.
    3. Update the Default Connection Security Level to “TLS Optional”

     

    In Watson IoT platform you must create a device in order to generate the credentials you will need to add to your Eniscope

    Instructions for how to setup a device can be found here:
    https://developer.ibm.com/recipes/tutorials/how-to-register-devices-in-ibm-iot-foundation/

  2. Connect to your Eniscope

    Find the IP address of the Eniscope, if you don’t know it you can visit http://discovery.bestsupportdesk.com and scan your local network to show you the IP addresses of any Eniscopes on your network.

    Once you know the IP address of the Eniscope, connect to it via a web browser by visiting: http://<insert_your_ip_address>/Admin
    (e.g http://192.168.0.123/Admin)

    Enter the Administration username and password that you used when setting up the device.

    You should now see the home screen of the Eniscope, with a list of the currently configured meters.

     

    Screen-Shot-2018-01-17-at-16.54.33

    If you do not have any meters configured then please refer to the setup information that came with your Eniscope to start monitoring at least one meter.

  3. Configuring MQTT settings

    From the menu on the right hand side select ‘MQTT settings’.

    If you do not see the MQTT menu item you will need to update your Eniscope to the latest software version. 

    Click the ‘Add MQTT Instance’ button.

    This will show a form where you can set up which data you want to send to the IoT platform, and how frequently you want to send it.

    Eniscope_MQTT_Example_Settings

     

    • Give the setup a title so that you can refer to it later.
    • Check the boxes alongside any of the meters that you want to send to the platform
    • Choose an interval, this is the number of seconds between each message sent to the platform. If you want a reading every 10 seconds then input 10
    • In the host field enter the hostname for your instance of the Watson iot platform. This starts with your orgId followed by messaging.internetofthings.ibmcloud.com so for example if your orgId is abc123 then the host is abc123.messaging.internetofthings.ibmcloud.com
    • The port should be set to 1883
    • Username should be ‘use-token-auth’
    • Password should be the authentication token that you created when setting up the device in the Watson IoT platform
    • The Topic must be structured in a way that IoT platform expects and should follow the pattern:
       iot-2/evt/event_id/fmt/format_string
      For example if your device is called ‘Eniscope01’ and you want the data to be send using an event / topic name of ‘readings’ then the overall topic would be:
      iot-2/evt/readings/fmt/json
    • The ID field should contain the unque identifier for your device in the format:
      d:organisation_id:device_type:Device_Name
      Using the same device as the previous step the device ID would be:
      d:abc123:EniscopeType:Eniscope01

    Be sure to click the “Save All’ button.

    Once this is done the Eniscope should start sending your data to your IBM IoT platform.

    You can check that the data is coming through by going back to the Watson IoT Platform dashboard, navigating to the devices section and selecting the device that you have just configured. The Events and Logs section should display information about the data that the Eniscope has sent, and logs of any connection issues.

     

Join The Discussion