volttron 读取 BACnet 指向消息总线 [英] volttron read BACnet points to message bus

查看:56
本文介绍了volttron 读取 BACnet 指向消息总线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在测试台上设置一个带有 2 个温度传感器的 MSTP BACnet 控制器的 rasp pi.如何将这些传感器读数连续读取/发布到 VOLTTRON 消息总线?

I am setting up a rasp pi on a test bench with a MSTP BACnet controller with 2 temp sensors. How can I continuously read/publish these sensor readings to the VOLTTRON message bus?

RPi->以太网->路由器->mstpdevice

RPi->ethernet->router->mstpdevice

我想我错过了一些关于如何在 pi 终端中查看 VOLTTRON 日志文件的初始步骤.是否可以通过 SSH 查看 pi 终端和 VOLTTRON .log/message 总线的尾部?

I think I am missing some initial step with how to view VOLTTRON log file in the pi terminal. Is it possible to view through SSH the pi terminal and the tail of the VOLTTRON .log/message bus?

我在 pi 上设置并运行了 volttron,运行 python3 bacnet_scan.py 我可以看到我的 BACnet 路由器 &带有温度传感器的 MSTP 控制器:

I have volttron setup and running on the pi, with running python3 bacnet_scan.py I can see my BACnet router & MSTP controller with the temp sensors:

Device Address        = <Address 192.168.0.190>
Device Id             = 0
maxAPDULengthAccepted = 1476
segmentationSupported = noSegmentation
vendorID              = 245

Device Address        = <RemoteStation 12345:2>
Device Id             = 201201
maxAPDULengthAccepted = 286
segmentationSupported = noSegmentation
vendorID              = 11

运行,python3grab_bacnet_config.py 201201 --driver-out-file uhl.csv thru nano 我可以看到这个文件:

Running, python3 grab_bacnet_config.py 201201 --driver-out-file uhl.csv thru nano I can see this file:

{
    "driver_config": {
        "device_address": "12345:2",
        "device_id": 201201
    },
    "driver_type": "bacnet",
    "registry_config": "config://registry_configs/<stdout>"
}

是否可以在 analogInput 1analogInput 2 的消息总线上查看传感器读数(继续 BACnet 读取)?

Is it possible to view sensor readings (continout BACnet read's) on the message bus of analogInput 1 and analogInput 2?

谢谢!

编辑

观看这个 YouTube 视频!

推荐答案

VOLTTRON 中的 BACnet 通信比其他一些驱动程序至少多出了 1 个步骤,即配置和安装 BACnet Proxy 代理.我建议阅读文档,但它可以像任何其他代理一样安装,并且在许多情况下,您唯一需要更改的值是地址,这是代理创建的 BACnet 虚拟设备应该绑定到的地址(通常是您的具有默认 BACnet 端口的本地 IP).

BACnet communication in VOLTTRON has at least 1 additional step over some of the other drivers, which is to configure and install the BACnet Proxy agent. I'd suggest reading up on the documentation, but it can installed the same as any other agent, and in many cases the only value you should need to change is the address, which is the address that the BACnet virtual device created by the proxy should bind to (often your local IP with default BACnet port).

此外,VOLTTRON 中的驱动程序需要 2 个配置文件:驱动程序配置和注册表配置.您在上面创建的uhl.csv"(实际上是一个 JSON 文件)是驱动程序配置,它告诉主驱动程序如何控制驱动程序.注册表配置是一个 CSV(实际上是一个 CSV),它告诉驱动程序如何读取设备(更多信息 此处).创建驱动程序配置的相同实用程序脚本可用于创建两种配置:

Additionally, drivers in VOLTTRON require 2 configuration files: the driver config and registry config. 'uhl.csv' (really a JSON file) you've created above is the driver config which tells the master driver how to control the driver. The registry config is a CSV (actually a CSV) which tells the driver how to read the device (more info here). The same utility script which created your driver config can be used to create both configurations:

python3grab_bacnet_config.py 201201 --driver-out-file uhl.json --registry-out-file uhl.csv

创建两个文件后,应使用 VOLTTRON-Control 的配置存储子命令将它们加载到配置存储中(本指南显示了伪造驱动程序的步骤,步骤相同,驱动程序的具体内容不同).

When both files have been created, they should be loaded into the config store using VOLTTRON-Control's config store sub-command (this guide shows steps for a fake driver, the steps are the same, the specifics of the driver are what differ).

关于 SSH 和查看您的环境,SSH(安全外壳)将您连接到单个外壳实例.有一些实用程序,例如 tmux,它允许您在单个 SSH 连接中拥有多个 shell,但为了代替学习如何使用 tmux,我通常会建立多个 SSH 连接(可能还有其他选项,这只是我自己的)方法).

Regarding SSH and viewing your environment, SSH (Secure Shell) connects you to a single shell instance. There are utilities such as tmux which will allow you to have multiple shells in a single SSH connection, but in lieu of learning how to use tmux, generally I make multiple SSH connections (there are likely other options as well, this is just my own method).

这篇关于volttron 读取 BACnet 指向消息总线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆