首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >将openHAB配置为使用KNX在U盘上运行

将openHAB配置为使用KNX在U盘上运行
EN

Stack Overflow用户
提问于 2015-04-01 16:04:46
回答 2查看 1.3K关注 0票数 2

我在通过USB建立到KNX的连接时遇到了一些问题。运行演示项目甚至我的项目都没有问题。

我已经在openHAB上配置了我的房间,但无法连接,即使调试日志告诉我其他信息。

我的配置如下所示:

代码语言:javascript
复制
# KNX gateway IP address 
# (optional, if serialPort or connection type 'ROUTER' is specified)
#knx:ip=

# KNX IP connection type. Could be either TUNNEL or ROUTER (optional, defaults to TUNNEL)
# Note: If you cannot get the ROUTER mode working (even if it claims it is connected), 
# use TUNNEL mode instead with setting both the ip of the KNX gateway and the localIp.
knx:type=ROUTER

# KNX gateway port (optional, defaults to 3671)
# Note: If you use eibd, setting to 6720
#knx:port=

# Local endpoint to specify the multicast interface, no port is used (optional)
#knx:localIp=

# Serial port of FT1.2 KNX interface (ignored, if ip is specified)
# Valid values are e.g. COM1 for Windows and /dev/ttyS0 or /dev/ttyUSB0 for Linux
#knx:serialPort=

调试日志告诉我以下内容:

代码语言:javascript
复制
10:01:06.867 [INFO ] [runtime.busevents             :22   ] - Light_GF_Office received command ON
10:01:06.871 [INFO ] [tuwien.auto.calimero          :51   ] - [qtp29372484-54] link 224.0.23.12:3671: send message to 0/0/6, wait for confirmation
10:01:06.871 [DEBUG] [.b.knx.internal.bus.KNXBinding:163  ] - Received groupWrite Event.
10:01:06.871 [INFO ] [tuwien.auto.calimero          :51   ] - [KNXnet/IP receiver] link 224.0.23.12:3671: indication from 0.0.0
10:01:06.871 [INFO ] [runtime.busevents             :22   ] - Light_GF_Office received command ON
10:01:06.871 [DEBUG] [.b.knx.internal.bus.KNXBinding:138  ] - Wrote value 'ON' to datapoint 'command DP 0/0/6 Light_GF_Office, DPT main 0 id 1.001, low priority'

因此,与KNX-Bus的通信中一定存在错误。如何将openhab.cfg配置为通过USB-Port进行通信。

EN

回答 2

Stack Overflow用户

发布于 2015-12-01 16:15:28

您可能需要显式定义KNX接口连接到的USB端口的名称,如下所示:

knx:serialPort=/dev/ttyUSB0

你可以通过抓取你的内核日志来找出这是哪个端口:

dmesg | grep ttyUSB

您还应该注释掉ROUTER的定义,因为USB接口是到总线的直接连接。

票数 2
EN

Stack Overflow用户

发布于 2017-07-11 13:43:14

我看到这个问题很久以前就被问到了,但我也许能为答案做点贡献。

您正在尝试使用IP通过USB进行连接。路由和隧道是KNXnet/IP的属性,您需要作为KNX IP路由器(用于路由或隧道)或KNX IP接口(仅隧道)工作的设备才能使用此协议- USB不支持IP。

在手头,我不知道任何KNX设备,从USB到IP转换。您可以获得USB接口(USB <--> KNX)、IP接口(IP <--> KNX)和IP路由器(它们执行与IP接口相同的功能,但还可以使用IP将KNX电报从一个区域/线路路由到安装拓扑中的另一个区域/线路(KNX线路1.1.x <--> IP <--> KNX线路1.1.y)。IP提供比KNX双绞线的9600波特率更快的通信。

这些文档可能有助于理解KNXnet/IP:

http://www.knx.org/fileadmin/template/documents/downloads_support_menu/KNX_tutor_seminar_page/tutor_documentation/08_IP%20Communication_E0510a.pdf

http://www.knx.org/fileadmin/downloads/05%20-%20KNX%20Partners/03%20-%20Becoming%20a%20KNX%20Scientific%20Partner/2010-11%20Conference/Presentations/Session%202.pdf

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/29385753

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档