2

KNX我在与我的 over建立连接时遇到了一些问题USB。运行演示项目甚至我的项目都没有问题。
我已经配置了我的房间,openHAB但无法建立连接,即使调试日志告诉我其他信息。
我的配置如下所示:

# 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=

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

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 进行通信。

4

2 回答 2

2

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

knx:serialPort=/dev/ttyUSB0

您可以通过 grepping 内核日志找出这是哪个端口:

dmesg | grep ttyUSB

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

于 2015-12-01T08:15:27.640 回答
0

我看到很久以前有人问过这个问题,但我也许可以为答案做出贡献。

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

我不知道有任何从 USB 转换为 IP 的 KNX 设备。您可以获得 USB 接口 (USB <--> KNX)、IP 接口 (IP <--> KNX) 和 IP 路由器(它们执行与 IP 接口相同的功能,但还可以从一个区域路由 KNX 电报/使用 IP 连接到安装拓扑中的另一个区域/线路(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

于 2017-07-11T05:43:13.930 回答