Nhãn hiệu của chúng tôi

Impact-Company-Logo-English Black-01-177x54

Chào mừng bạn đến với Trang web của Schneider Electric

Chào mừng đến với trang web của chúng tôi.
		
Hôm nay chúng tôi có thể giúp gì cho bạn?
Geo SCADA MQTT driver simple test with Mosquitto

DISCLAIMER

The example below is intended to demonstrate one or more features or methods and is presented as a configuration example only. Schneider Electric assumes no liability for the use or application of this example or any portion thereof.



This document is meant to be a simple guide on how to test the Geo SCADA MQTT driver JSON Schema A. A detailed description on how this driver works can be found in the manual. The MQTT driver must connect to a Broker and, for this article, we are going to use the open source Mosquitto MQTT Broker. There will be no instructions on how to install Mosquitto and no comments on its features. Also note that Schneider Electric has no responsibility on the use of the Mosquitto Broker.

We will start the Mosquitto Broker, which will run on the same machine as Geo SCADA, from a command prompt dialog box (running as Administrator):
Start Broker
The broker will be listening on port 1883. Leave the command prompt window open.
With the broker running, let's configure the Geo SCADA objects, within ViewX.
We will create:

  • A MQTT Broker object;
  • A MQTT > JSON Schema A > Device
  • A MQTT > JSON Schema A > Analog Point

Initial Folder


Below the minimum configuration for the Broker object:

Broker Object

After saving the configuration, we can check that the connection to the Mosquitto Broker was established by taking a look at the command prompt window:

Check Connection

Back to ViewX, let's configure the Device (note that we are subscribing to a Topic called "test"):

Device

Once we save the configuration, we can see, from the Mosquitto Broker window, that the subscription was accepted:

Check Subscription

Now, let's configure the Analog point (we will read "value1"):

Analog point

Now we are going to run "moquitto_pub" tool on another command prompt window to publish time and value for the tag "value1". More details on the JSON Schema A message format can be found in the Geo SCADA manual.
Please note that the time stamp is in the UNIX Epoch time in seconds (UTC), remember to change it when replicating this example:

Publish value

Below the results on a mimic:

Value update

Note: The MQTT driver log file is a good start in case troubleshooting is needed. It can show, for example, if the message received could not be parsed properly.

Schneider Electric Việt Nam

Tìm hiểu thêm
Sản phẩm:
Tìm hiểu thêm
Sản phẩm:
  • Tài liệu về Sản phẩm
  • Tải xuống phần mềm
  • Công cụ chọn Sản phẩm
  • Thay thế và thay đổi sản phẩm
  • Trung tâm Hỗ trợ
  • Tìm Văn phòng của chúng tôi
  • Nhận báo giá
  • Tìm Nhà Phân phối
  • Cộng đồng Schneider Electric
  • Cơ hội nghề nghiệp
  • Hồ sơ doanh nghiệp
  • Báo cáo hành vi sai trái
  • Khả năng truy cập
  • Phòng tin tức
  • Nhà đầu tư
  • EcoStruxure
  • Tìm việc
  • Blog
  • Chính sách bảo mật
  • Thông báo về Cookie
  • Điều khoản sử dụng
  • Change your cookie settings