Hi,
Reflow the thread “Clover4x4”
I have installed knxd on my Raspian in RP3.
When it starts.
> pi@raspberrypi:~ $ findknxusb
Possible addresses for KNX USB devices:
device: 1:6:1:0:0 (ABB STOTZ-KONTAKT GmbH:KNX-USB Interface (MDRC))
pi@raspberrypi:~ $ ps ax|grep knxd
1241 pts/0 S+ 0:00 grep --color=auto knxd
pi@raspberrypi:~ $ sudo systemctl status networking.service
● networking.service - Raise network interfaces
Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: e
Active: active (exited) since Mon 2017-11-27 00:17:05 CET; 12h ago
Docs: man:interfaces(5)
Process: 295 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=0/SUC
Process: 285 ExecStartPre=/bin/sh -c [ "$CONFIGURE_INTERFACES" != "no" ] && [ -n "
Main PID: 295 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/networking.service
nov 27 00:17:02 raspberrypi systemd[1]: Starting Raise network interfaces...
nov 27 00:17:02 raspberrypi sh[285]: ifquery: couldn't open interfaces file "/etc/ne
nov 27 00:17:02 raspberrypi ifup[295]: ifup: couldn't open interfaces file "/etc/net
nov 27 00:17:05 raspberrypi systemd[1]: Started Raise network interfaces.
pi@raspberrypi:~ $ knxtool vbusmonitor1 ip:localhost
Open failed: Connection refused
Not work, then restart “knxd.service”
pi@raspberrypi:~ $ sudo systemctl restart knxd.service
I work knxd well sending telegrams with “knxtool groupswrite ip:localhost 4/0/1 1”
> pi@raspberrypi:~ $ ps ax|grep knxd
1319 ? Ssl 0:00 /usr/local/bin/knxd -p /run/knxd/knxd.pid --eibaddr=1.1.128 --client-addrs=1.1.129:16 -d -D -T -R -S -i --listen-local=/tmp/knx -b usb:
1341 pts/0 S+ 0:00 grep --color=auto knxd
pi@raspberrypi:~ $ knxtool vbusmonitor1 ip:localhost
LPDU: BC 11 82 20 01 E1 00 81 91 :L_Data low from 1.1.130 to 4/0/1 hops: 06 T_DATA_XXX_REQ A_GroupValue_Write (small) 01
In OpenHAB2 The config is the same of user “Clover4x4”. Connect a BUS KNX OK but not work he telegrams sent from openhab2.
They are sent correctly but not received by the USB gateway.
> `
> 2017-11-27 12:37:05.488 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel
> 2017-11-27 12:37:06.294 [INFO ] [nx.internal.connection.KNXConnection] - Established connection to KNX bus on 224.0.23.12:3671 in mod e TUNNEL.
> 2017-11-27 12:37:16.477 [INFO ] [ui.habmin.internal.servlet.HABminApp] - Stopped HABmin servlet
> 2017-11-27 12:37:16.566 [INFO ] [basic.internal.servlet.WebAppServlet] - Stopped Basic UI
> 2017-11-27 12:37:19.166 [INFO ] [ui.habmin.internal.servlet.HABminApp] - Started HABmin servlet at /habmin
> 2017-11-27 12:37:19.758 [INFO ] [basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
>
> ==> /var/log/openhab2/events.log <==
> 2017-11-27 12:40:19.426 [ItemCommandEvent ] - Item 'knx_Vent1' received command ON
> 2017-11-27 12:40:19.548 [ItemStateChangedEvent ] - knx_Vent1 changed from NULL to ON
> 2017-11-27 12:40:21.170 [ItemCommandEvent ] - Item 'knx_Vent1' received command OFF
> 2017-11-27 12:40:21.184 [ItemStateChangedEvent ] - knx_Vent1 changed from ON to OFF
> 2017-11-27 12:40:21.847 [ItemCommandEvent ] - Item 'knx_Vent2' received command ON
> 2017-11-27 12:40:21.875 [ItemStateChangedEvent ] - knx_Vent2 changed from NULL to ON
> 2017-11-27 12:40:22.462 [ItemCommandEvent ] - Item 'knx_Vent2' received command OFF
> 2017-11-27 12:40:22.477 [ItemStateChangedEvent ] - knx_Vent2 changed from ON to OFF
> `
I think something must have in the routing.
I have tried all the options of the messages above and it does not work.
My IP data: /etc/systemd/network/eth0.network
[Match]
# You can also use wildcards. Maybe you want enable dhcp
# an all eth* NICs
Name=eth0
[Network]
#DHCP=v4
# static IP
# 192.168.1.250 netmask 255.255.255.0
Address=192.168.1.250/24
Gateway=192.168.1.10
DNS=80.58.61.254 8.8.8.8
# Route for Multicast Address EIB/KNX
[Route]
Destination=224.0.23.12/32
>pi@raspberrypi:~ $ ifconfig
> eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
> inet 192.168.1.250 netmask 255.255.255.0 broadcast 192.168.1.255
> inet6 fe80::ba27:ebff:feb5:bfd7 prefixlen 64 scopeid 0x20<link>
> ether b8:27:eb:b5:bf:d7 txqueuelen 1000 (Ethernet)
> RX packets 18635 bytes 2159944 (2.0 MiB)
> RX errors 0 dropped 2 overruns 0 frame 0
> TX packets 1263 bytes 183220 (178.9 KiB)
> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
pi@raspberrypi:~ $ dmesg|grep eth
[ 1.954250] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:b5:bf:d7
[ 4.913742] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[ 4.914258] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 6.501103] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 6.504633] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
> pi@raspberrypi:~ $ route
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use Iface
> default 192.168.1.10 0.0.0.0 UG 0 0 0 eth0
> 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
> 224.0.23.12 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
More configuration information:
> lsusb -v
>
> Bus 001 Device 006: ID 147b:5120
> Device Descriptor:
> bLength 18
> bDescriptorType 1
> bcdUSB 1.01
> bDeviceClass 0 (Defined at Interface level)
> bDeviceSubClass 0
> bDeviceProtocol 0
> bMaxPacketSize0 8
> idVendor 0x147b
> idProduct 0x5120
> bcdDevice 1.03
> iManufacturer 1 ABB STOTZ-KONTAKT GmbH
> iProduct 2 KNX-USB Interface (MDRC)
> iSerial 0
> bNumConfigurations 1
>
> pi@raspberrypi:~ $ sudo systemctl status knxd.service
> ● knxd.service - KNX Daemon
> Loaded: loaded (/lib/systemd/system/knxd.service; enabled; vendor preset: enabled
> Active: active (running) since Mon 2017-11-27 12:35:07 CET; 13min ago
> Main PID: 1432 (knxd)
> CGroup: /system.slice/knxd.service
> └─1432 /usr/local/bin/knxd -p /run/knxd/knxd.pid --eibaddr=1.1.128 --clie
>
> nov 27 12:35:07 raspberrypi systemd[1]: Started KNX Daemon.
> pi@raspberrypi:~ $ journalctl -xu knxd.service
> -- Logs begin at Thu 2016-11-03 18:16:42 CET, end at Mon 2017-11-27 12:48:51 CET. --
> nov 27 00:17:05 raspberrypi systemd[1]: Started KNX Daemon.
> -- Subject: Unit knxd.service has finished start-up
> -- Defined-By: systemd
> -- Support: https://www.debian.org/support
> --
> -- Unit knxd.service has finished starting up.
> --
> -- The start-up result is done.
> nov 27 00:17:05 raspberrypi systemd[1]: knxd.service: Main process exited, code=kill
> nov 27 00:17:05 raspberrypi systemd[1]: knxd.service: Unit entered failed state.
> nov 27 00:17:05 raspberrypi systemd[1]: knxd.service: Failed with result 'signal'.
> nov 27 12:26:11 raspberrypi systemd[1]: Started KNX Daemon.
> -- Subject: Unit knxd.service has finished start-up
knx.cfg y knxd
> openhab> config:list "(service.pid=org.openhab.knx)"
> ----------------------------------------------------------------
> Pid: org.openhab.knx
> BundleLocation: file:/usr/share/openhab2/addons/org.openhab.binding.knx-1.9.0-201611251544.jar
> Properties:
> busaddr = 1.1.128
> ignorelocalevents = true
> ip = 224.0.23.12
> localIp = 192.168.1.250
> port = 3671
> service.pid = org.openhab.knx
> timeout = 100000
> type = TUNNEL
KNXD_OPTIONS="–eibaddr=1.1.128 --client-addrs=1.1.129:16 -d -D -T -R -S -i --listen-local=/tmp/knx -b usb:"
Thank you very much in advance and I feel the text so long.
What is the problem?
I think something must have in the routing.