Hi,
after I get a little bit more into touch with Linux and had some time today, I start to work on my issue above.
I think that lirc has a new version, that is different at some basic parts. i.e. it is not using systemd anymore but systemctl.
I figured out, that my telnet-session on my custom port is working. When I connect via Telnet and type an “a” and execute “systemctl status lircd.service” on my lirc-device, I see the following in the logs:
Sep 23 09:09:17 raspberrypi lircd[467]: lircd-0.9.4c[467]: Notice: accepted new client from 192.168.0.25
Sep 23 09:09:17 raspberrypi lircd-0.9.4c[467]: Notice: accepted new client from 192.168.0.25
Sep 23 09:09:20 raspberrypi lircd[467]: lircd-0.9.4c[467]: Error: bad send packet: "a"
Sep 23 09:09:20 raspberrypi lircd-0.9.4c[467]: Error: bad send packet: "a"
Sep 23 09:09:20 raspberrypi lircd[467]: lircd-0.9.4c[467]: Info: removed client
Sep 23 09:09:20 raspberrypi lircd-0.9.4c[467]: Info: removed client
That means: The config was read successful and my custom port is working in general.
I checked the services (command “systemctl”) and see three running lirc-services:
lircd-uinput.service
lircd.service
lircmd.service
So at this point I assume, that lirc on my remote-device is configured correctly.
My next step was, that I investigated the traffic that is send from my OpenHab to my RemoteRaspberry. I installed tcpdump and checked the traffic. And voila, here is the problem:
pi@raspberrypi:~ $ sudo tcpdump -i wlan0 src 192.168.0.126
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on wlan0, link-type EN10MB (Ethernet), capture size 262144 bytes
09:37:28.208897 IP raspberryOpenHab.fritz.box.39778 > raspberrypi.fritz.box.8765: Flags [S], seq 472628587, win 29200, options [mss 1460,sackOK,TS val 1802440188 ecr 0,nop,wscale 7], length 0
In the 4th line you see that the OpenHab Binding seems to use the default Port 8765 instead of my custom port 8700. I checked the documentation of the binding and my config again. This seems to be correct. I put a config-file in the things-folder with the following content:
Bridge lirc:bridge:local [ host="192.168.0.145", port="8700" ] {
Thing remote Logitech_AudioSystem [ remote="Logitech_AudioSystem" ]
}
I cannot find the source code of the lirc-binding somewhere to check this. Does anybody know where it is?
Beside of this: am I doing anything else wrong?
Edit:
After I changed my port from 8700 to the default 8765 the binding instantly found my lirc-remotes. It seems to be “only” the port configuration issue.