Skip to main content

Send Parameters to HMI Through the Platform

Use platform functions to send content to writable environment parameters in the model

Premise

  • In the model, it is an environment parameter
  • The properties of the parameter include writable (W)
  • In the HMI project, the subscription topic is completed (refer to Topic Subscription Configuration)

Directly send by the platform

  1. In the Device Management of Management Mode, find the device to be sent.Then click the Config button in More.
  1. Select the parameters to be sent (one or multiple parameters can be sent at the same time)
  1. After select the parameters, enter the content you want to send on the sending screen.
  1. The system will display send content and the corresponding delivery status in the Device Management screen (if the corresponding subscribed return topic is not configured in the project, it will always report failure here)

Send via DV screen

Complete send in the device page

  1. Add a new device page and select the corresponding model
  1. Select the digital box (currently the platform only supports digital send)
  1. Click the Edit Data Source button in the digital box property area, and set the two digital boxes for the sent parameters separately.
    1. Select the Interface data source
    2. Select the System type data source
    3. Select the Real-time parameter value data source
    4. Select the parameter ix to be sent (environment parameters in the model)
    5. Check Send data and select the type as current value
      1. Current value is the value entered in the input box
      2. Fixed value is a fixed value (for example:turns off the light to 0, and when the light off function is fixed, it is fixed to 0)
  1. After the number box is set, the input box will become two areas in front and back
    1. The area in front is not inputtable and will display the real-time value of the corresponding parameter in the current device.
    2. The area behind it can be used for input.The content is the target value sent
    3. After send is successful, the value content of the front area will be changed to the content of the back area, which means that send is successful.
  1. Add a button to send data by clicking the button
  1. In the button's Action, add a button click event to complete the sending action (multiple actions can be sent at the same time)
  1. Done, ready to test
    1. Current content
      1. Temperature setting value:55
      2. Humidity setting value:89
    2. Enter the content you want to send
      1. Temperature setting value:32
      2. Humidity setting value:48
    3. After clicking the send button, the device receives the sent content and then triggers data report the latest content to the cloud.The front content of the control is refreshed to the latest value.

Complete send in the board page

The setting method of the board page is similar to that of the device page, except that there is a difference after selecting the data source.

  • After selecting the data source, you need to specify the device in the digital box on the board page.