Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In this class, you will become familiar with the SmartServer CMS Planning widget and how IAP nodes are used

Note

Note: The IAP Node names and datapoints screen displays may differ from the workflow descriptions in this exercise.

This section consists of the following:

...

  1. Download Exercise 2.1 from the Dialog github repository → Node-RED Tutorial folder and import it into the Sequencing widget.

    This downloaded flow will serve as a template for the flow that you will be creating in this exercise, and will look similar to the following in your workspace:



  2. Click Deploy to save the flow.

  3. Click the Add Flow button () to begin creating a new flow.

    A new flow tab is added to the workspace.

  4. Double-click the new tab on the workspace.

    The Edit flow view appears.

  5. Enter the flow name.



  6. Click Done.

  7. Create and provision the LON room sensor if you have not already done so:
    1. Import the Lon Channel.dtp.zip from the Starter Kit archive → LON Channel folder using the Device Types widget.
    2. Create a new device using the Devices widget (see Discovering, Defining, or Importing Devices)
      1. Name: DIO-01
      2. Device categoryEdge Device
      3. Integration method: Guided discovery
      4. Owner: SmartServer IoT
      5. Driver: LON
      6. Device type: SC100-MP
      7. UID: Press the service button located on the lower left portion of the SC 100-MP device; doing so populates this field.

    3. Provision the SC 100-MP device on your Starter Kit.
    4. Assign the device to the Mango HQ/Building 1/Floor 1/Office 1 context using the Devices widget. 

      See SmartServer IoT's Starter Kit User's Guide → Setting up the LON Channel section for more information about creating and setting up this device.

  8. Create and provision the VAV controller (the DTP file that was previously imported also contains the VAV application and the XIF files).
    1. Create a new device using the Devices widget, and (see Discovering, Defining, or Importing Devices)
      1. Name: VAV sim
      2. Device categoryEdge Device
      3. Integration method: Guided discovery
      4. Owner: SmartServer IoT
      5. Driver: LON
      6. Device type: VAV_sim
      7. UID: Press the service button located on the upper right portion of the FT 6050 EVB board; doing so populates this field.



    2. Provision the FT 6050 EVB device on your Starter Kit using the Provisioning Devices.
    3. Assign the device to the Mango HQ/Building 1/Floor 1/Office 1 context using the Devices widget

      See SmartServer IoT's Starter Kit User's Guide → Setting up the LON Channel section for more information about creating and setting up this device.

  9. Drag the IAP Input node onto the workspace.



  10. Double-click the IAP Input node.

    The Edit iap-input node view appears.



  11. Enter SC100 nvoTempSensor in the Name field.
    Image Removed
    Image Added

  12. Select the Fixed checkbox to indicate that a specific datapoint on a specific device is being selected.
    Image Removed
    Image Added

  13. Apply filters to select the datapoint nvoTempSensor (the reading from the temperature sensor in the SC 100-MP device) for the DIO-01 device. 

    Note
    NOTE: You may need to deselect the View all datapoints checkbox.


  14. Click Done

  15. Click Deploy.
    Image Removed
    Image Added

  16. Drag the debug node and connect it to the SC100 nvoTempSensor node in order to log the datapoint value in the console. 
    Image Removed
    Image Added

  17. Double-click the debug node.

    The Edit debug node view appears.

  18. Set the Output field as msg.payload.data and select the node status checkbox.



  19. Click Done

  20. Click Deploy to save your changes.

    Datapoint values will appear in the debug console as they are updated.

    To switch to the console view, click the Debug button ().
    Image Removed
    Image Added

    To deactivate debugging, click the end of the node, and then click Deploy to save your changes.
    Image Removed
    Image Added

  21. Try setting different values in the Properties → Polling interval field on the Edit iap-input node view to see how often the data gets updated in the debug node. Polling interval specifies the time in seconds that you want to see the data updated from the device on-demand.

    Note

    Note: The polling rate is always determined by the polling setting in the Datapoint Properties widget. The interval setting in the IAP Input node allows you to specify a shorter interval. Specifying a longer interval in the IAP Input node will have no effect. 

    For example:

    If IAP Input node polling interval = 1 second and Datapoint Properties widget polling interval = 10 seconds, the datapoint will be polled every 1 second (set by the IAP Input node polling interval).

    If IAP Input node polling interval = 10 seconds and Datapoint Properties widget polling interval = 1 second, the datapoint will be polled every 1 second (set by the Datapoint Properties polling interval).


  22. Drag another IAP Input node onto the workspace.
    Image Removed
    Image Added

  23. Double-click the IAP Input node.

    The Edit iap-input node view appears.



  24. Enter SC100 0/nvoDI (Occ) in the Name field.
    Image Removed
    Image Added

  25. Select the Fixed checkbox to indicate that a specific datapoint on a specific device is being selected.
    Image Removed
    Image Added

  26. Apply filters to select the datapoint nvoDI (the reading for occupancy in the SC 100-MP device) for the DIO-01 device. 

    Note

    NOTE: With multiple nvoDI datapoints, be sure to select [SC100-MP/Digital Input/0/nvoDI]. You may also need to deselect the View all datapoints checkbox.


  27. Click Done.

  28. Click Deploy to save your changes.
    Image Removed
    Image Added

    With the IAP Input nodes and debug node created in the flow, the steps that follow are to create the IAP Output nodes.

  29. To write the datapoint in SmartServer IoT via IAP message broker, drag the IAP Output node onto the workspace.
    Image Removed
    Image Added

  30. Double-click the IAP Output node.

    The Edit iap-output node view appears.



  31. Enter VAV_sim nviSpaceTemp in the Name field.
    Image Removed
    Image Added

  32. Apply filters to select the datapoint nviSpaceTemp (the reading from the temperature sensor in the FT 6050 EVB) for the VAV sim device.

  33. Click Done.

  34. Click Deploy to save your changes.
    Image Removed
    Image Added

    The next set of steps will add and configure an inject node. This node will be used to inject some values into the IAP Output node (VAV_sim nviSpaceTemp) in order to demonstrate that it works.

  35. Drag the inject node onto the workspace and connect it to the VAV_sim nviSpaceTemp node. 
    Image Removed
    Image Added

  36. Double-click the inject node.

    The Edit inject node view appears.



  37. Select {}JSON from the msg.payload dropdown list.



  38. Enter {"data":25} in the msg.payload field. 

  39. Enter ev/data in the msg.topic field.



  40. Click Done.

  41. Click Deploy to save your changes.
    Image Removed
    Image Added

  42. Drag another IAP Output node onto the workspace.
    Image Removed
    Image Added

  43. Double-click the IAP Output node.

    The Edit iap-output node view appears.



  44. Enter VAV_sim nviOccSensor in the Name field.
    Image Removed
    Image Added

  45. Apply filters to select the datapoint nviOccSensor (the reading for occupancy in the FT 6050 EVB device) for the VAV sim device. 

  46. Click Done.

  47. Click Deploy to save your changes.
    Image Removed
    Image Added

  48. Connect the SC100 nvoTempSensor and VAV_sim nviSpaceTemp nodes, and click Deploy.

    With this connection, you should be able to observe temperature changes on the FT 6050 EVB LCD display by touching the LON sensor.
    Image Removed
    Image Added

  49. You can also observe temperature reading changes on the FT 6050 EVB LCD display by clicking the end of the inject node.



    The FT 6050 EVB LCD display should show a temperature reading of 25 degrees Celsius.

...