knxd vs JAVA

148 views
Skip to first unread message

Robert Jung

unread,
Feb 14, 2017, 4:01:08 AM2/14/17
to knxd
Hi,

I'm trying to call groupsocketlisten (knxd) through JAVA. Unfortunately I get no events back.
Calling groupsocketlisten from bash it works as expected.
After hours of tests and research we tried eibd and it works from JAVA without a problem.
Any ideas? I checked the source code. It looks like knxd uses "\n" as expected.

Thanks in advance,

Joe

Michael Kefeder

unread,
Feb 15, 2017, 7:56:00 AM2/15/17
to knxd
Hi,

what do you mean "from java", do you call the binary like Runtime.exec() and parse it's output or do you use a java extension that implements knx protocol (e.g. knxd language bindings for java)

br
 mike

Matthias Urlichs

unread,
Feb 15, 2017, 8:31:45 AM2/15/17
to knxd


On Tuesday, February 14, 2017 at 10:01:08 AM UTC+1, Robert Jung wrote:
I'm trying to call groupsocketlisten (knxd) through JAVA. Unfortunately I get no events back.
Probably because the output is buffered.  However, you're asking the wrong question.


After hours of tests and research we tried eibd and it works from JAVA without a problem.
Any ideas?
knxd's internal protocol is *very* easy to decode and implement. Use it directly, instead of running an external binary and parsing its output.
(a) that is not portable, (b) I will not guarantee that knxtool's output will not change, (c) you should say "no" every time somebody suggests doing something like that as a matter of principle, as it's almost never a good idea.
 
I checked the source code. It looks like knxd uses "\n" as expected.

knxd doesn't do any such thing. You probably mean knxtool.

Reply all
Reply to author
Forward
0 new messages