-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Non group address commands do not work #256
Comments
Removed when transitioning to libev, not yet re-implemented. |
Does that include MemoryWrite (mwrite)? This is what I actually want to do: to trigger the "device LED" if you try to find a device in the KNX tree (for that one needs to write to 0x81 to memory address 0x60). Could I help reimplementing this? |
Yes, currently that includes all messages that go to physical=individual addresses. The code is still part of the archive (src/libserver/management.* and …/layer7.*). The problem is that most of these requests are not stateless. Thus you need either a thread/subprocess, or rewrite the code using events. Both isn't exactly trivial. The way forward is to separate the routing (and group address caching) functions of knxd from the API. Each connection using knxd's API (i.e. the part that knxtool talks to) should create a pipe into the router, but otherwise be a separate process. Work to do that separation has not yet started. I'd also like to use that refactoring to switch to a common protocol like JSON (or one of its binary equivalents), because that would make knxd's auto-generated client code obsolete – it's mostly non-idiomatic and nobody really uses it. |
I started digging through the code to go in this direction. It is of not much use to directly develop on the pi, so I set up everything on my ubuntu system and ran into a compilation issue which I did not manage to solve for a while now:
I tried adding -mmmx and -msse compiler flags but no success. This is a x86_64 system. Any quick fix which you have in mind? |
GCC 4.8 has problems with that code. Known gcc bug. Please upgrade. |
I also need mwrite/mread commands to communicate with my own device. So far only solution is to switch back to v0.10 and pthsem, correct? |
Hi,
I am currently on knxd 0.12 with an MDT USB SCN-USBR.01
I start knxd with -e 0.0.1 -E 0.0.2:8 -u /tmp/eib -b usb -t 0xffc -f 9
vbusmonitor1 and on/off commands through knxtool work well.
However, anything using a bus address fails. E.g.:
$ knxtool maskver local:/tmp/eib 1.1.41
Read failed: Connection reset by peer
$ knxtool progmodestatus local:/tmp/eib 1.1.41
Set failed: Connection reset by peer
Any idea what I am missing?
I tried also with v0.14 without success.
Many thanks!
Jan
The text was updated successfully, but these errors were encountered: