伏特隆多平台连接教程

2024-06-26 13:37:01 发布

您现在位置:Python中文网/ 问答频道 /正文

您好,我正在尝试通过这个tutorial获得一个Volttron数据采集器实例(rasp pi),该实例使用ZMQ集成到局域网上的Volttron中央实例(Ubuntu)。但是rasp pi似乎并没有与volttron中心实例对话

这是IP地址192.168.0.191上“中心”实例的配置:

(volttron) (base) bartlino@bartlino-Latitude-E5530-non-vPro:~/Desktop/volttron$ vcfg

Your VOLTTRON_HOME currently set to: /home/bartlino/.volttron

Is this the volttron you are attempting to setup? [Y]:
What type of message bus (rmq/zmq)? [zmq]: zmq
What is the vip address? [tcp://192.168.0.191]:
What is the port for the vip address? [22916]:
Is this instance web enabled? [N]: Y
What is the protocol for this instance? [https]:
Web address set to: https://bartlino-latitude-e5530-non-vpro
What is the port for this instance? [8443]:

The following certificate and keyfile exists for web access over https:
/home/bartlino/.volttron/certificates/certs/master_web-server.crt
/home/bartlino/.volttron/certificates/private/master_web-server.pem

Do you want to use these certificates for the web server? [Y]:
Is this an instance of volttron central? [N]: Y
Configuring /home/bartlino/Desktop/volttron/services/core/VolttronCentral.
Installing volttron central.
['volttron', '-vv', '-l', '/home/bartlino/.volttron/volttron.cfg.log']
Should the agent autostart? [N]: Y
VC admin and password are set up using the admin web interface.
After starting VOLTTRON, please go to https://bartlino-latitude-e5530-non-vpro:8443/admin/login.html to complete the setup.
Will this instance be controlled by volttron central? [Y]:
Configuring /home/bartlino/Desktop/volttron/services/core/VolttronCentralPlatform.
What is the name of this instance? [bartlino]:
Volttron central address set to https://bartlino-latitude-e5530-non-vpro:8443
['volttron', '-vv', '-l', '/home/bartlino/.volttron/volttron.cfg.log']
Should the agent autostart? [N]: Y
Would you like to install a platform historian? [N]: Y
Configuring /home/bartlino/Desktop/volttron/services/core/SQLHistorian.
['volttron', '-vv', '-l', '/home/bartlino/.volttron/volttron.cfg.log']
Should the agent autostart? [N]: Y
Would you like to install a master driver? [N]:
Would you like to install a listener agent? [N]: Y
Configuring examples/ListenerAgent.
['volttron', '-vv', '-l', '/home/bartlino/.volttron/volttron.cfg.log']
Should the agent autostart? [N]: Y
Finished configuration!

You can now start the volttron instance.

If you need to change the instance configuration you can edit
the config file is at /home/bartlino/.volttron/config

(volttron) (base) bartlino@bartlino-Latitude-E5530-non-vPro:~/Desktop/volttron$

vctl状态

(volttron) (base) bartlino@bartlino-Latitude-E5530-non-vPro:~/Desktop/volttron$ vctl start --tag vcp
(volttron) (base) bartlino@bartlino-Latitude-E5530-non-vPro:~/Desktop/volttron$ vctl status
  AGENT                    IDENTITY            TAG                STATUS          HEALTH
0 listeneragent-3.3        listeneragent-3.3_1 listener           running [9827]  GOOD
a master_driveragent-4.0   platform.driver     master_driver      running [9826]  GOOD
b sqlhistorianagent-3.7.0  platform.historian  platform_historian running [9825]  GOOD
c vcplatformagent-4.8      platform.agent      vcp                running [9824]  GOOD
d volttroncentralagent-5.2 volttron.central    vc                 running [9822]  GOOD
(volttron) (base) bartlino@bartlino-Latitude-E5530-non-vPro:~/Desktop/volttron$

IP地址192.168.0.102上的Rasp Pi:

(volttron) pi@raspberrypi:~/volttron $ vcfg

Your VOLTTRON_HOME currently set to: /home/pi/.volttron

Is this the volttron you are attempting to setup? [Y]:
What type of message bus (rmq/zmq)? [zmq]:
What is the vip address? [tcp://192.168.0.102]: tcp://127.0.0.1
What is the port for the vip address? [22916]:
Is this instance web enabled? [N]:
Will this instance be controlled by volttron central? [Y]:
Configuring /home/pi/volttron/services/core/VolttronCentralPlatform.
What is the name of this instance? [raspberrypi]:
What is the hostname for volttron central? [https://bartlino-latitude-e5530-non-vpro]:
What is the port for volttron central? [8443]:
['volttron', '-vv', '-l', '/home/pi/.volttron/volttron.cfg.log']
Should the agent autostart? [N]:
Would you like to install a platform historian? [N]:
Would you like to install a master driver? [N]: Y
Configuring /home/pi/volttron/services/core/MasterDriverAgent.
['volttron', '-vv', '-l', '/home/pi/.volttron/volttron.cfg.log']
Would you like to install a fake device on the master driver? [N]:
Should the agent autostart? [N]:
Would you like to install a listener agent? [N]:
Finished configuration!

You can now start the volttron instance.

If you need to change the instance configuration you can edit
the config file is at /home/pi/.volttron/config

pi上的vctl状态:

(volttron) pi@raspberrypi:~/volttron $ vctl status
   AGENT                   IDENTITY              TAG                STATUS          HEALTH
44 bacnet_proxyagent-0.5   platform.bacnet_proxy proxy              running [1581]  GOOD
f3 listeneragent-3.3       listeneragent-3.3_1   listener
13 master_driveragent-4.0  platform.driver       master_driver
4f sqlhistorianagent-3.7.0 platform.historian    platform_historian 0
79 vcplatformagent-4.8     platform.agent        vcp                running [1606]  GOOD

本教程在“central”实例中指出,我应该看到ZMQ证书可以接受,但我没有。非常感谢任何提示! enter image description here


Tags: thetoinstancemasteryouhomeispi