Hi OpenHAB Community,
after trying for days and looking for information on my problem, I finally decided to post here. Hope you can help me out.
Problem is the following:
I am using the TCP/UDP binding in order to send and receive item data via UDP. Sending works fine, receiving doesn´t.
I am trying to receive the UDP payload as String to a String item. Here my definitions:
Item
String MyString “Udp server receive: [%s]” {udp="<[localhost::'REGEX((.))’]"}
Sitemap
Text item=MyString
Openhab.cfg
udp:port=3001
Error Message
2016-06-21 13:05:38.418 [WARN ] [AbstractDatagramChannelBinding] - Received data O�� �������� from an undefined remote end /127.0.0.1:39292. We will not process it
2016-06-21 13:05:38.419 [WARN ] [AbstractDatagramChannelBinding] - No channel is active or defined for the data we received from /127.0.0.1:39292. It will be discarded.
The data i am trying to receive is atm just random test data of 20 bytes length. It is sent from localhost because I am forwarding UDP packets from IPv6 to IPv4 (as the Binding doesn´t support IPv6) with the linux tool socat.
UDP packets on wireshark
From 6loWpan device to Raspberry
5385 8230.996834 fe80::2f2:a1ff:fec8:f363 -> fe80::215:83ff:fee5:ce8e UDP 84 Source port: 5911 Destination port: 5911
From raspberry to itself (loopback)
2016 4303.027807 127.0.0.1 -> 127.0.0.1 UDP 62 Source port: 56542 Destination port: 3001
Was playing around alot with the openhab.cfg settings for the binding and also tried different item definitions, but the error (well, actually it´s just a warning) remains and my string item doesn´t receive anything. What am i doing wrong? Hope someone can help me out i am pretty clueless right now.
Best regards,
Martin