knxd with BJ Powernet

48 views
Skip to first unread message

Robert Schrödel

unread,
Dec 29, 2018, 6:15:59 PM12/29/18
to knxd
Hello,
I'm new with knxd. I already installed it on Ubuntu 18.04 together with openHAB.
knxd runs on Ubuntu without any problem but ...

I get no connection to the USB.
If I follow the manual on Github I get the following answers:

~$ udevadm info --attribute-walk /sys/bus/usb/drivers/cdc_acm/*/tty/ttyACM0                     

Unknown device, absolute path in /dev/ or /sys expected.


But if I use:

~$lsusb                                                                                        

Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 006 Device 003: ID 145c:1330 


I see the USB device.

Also if I try:


~$dmesg | grep usb


I get:


[ 1552.497970] usb 6-1: USB disconnect, device number 2                                                           

[ 1558.393872] usb 6-1: new full-speed USB device number 3 using uhci_hcd                                         

[ 1558.604896] usb 6-1: New USB device found, idVendor=145c, idProduct=1330                                       

[ 1558.604902] usb 6-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0                                  

[ 1558.604906] usb 6-1: Product: KNX-USB Interface (Flush mounted)                                                

[ 1558.604909] usb 6-1: Manufacturer: Busch-Jaeger Elektro GmbH                                                   

[ 1558.611850] hid-generic 0003:145C:1330.0004: hiddev0,hidraw0: USB HID v1.01 Device [Busch-Jaeger Elektro GmbH KNX-USB Interface (Flush mounted)] on usb-0000:00:1d.0-1/input0  


So, I think the device is connected. Or I'm wrong?

The main question is now: What I have to enter in to the /etc/udev/rules.d/70-knxd.rules?
At the moment the file looks like this:

ACTION=="add", SUBSYSTEM=="tty", ATTRS{idVendor}=="145c", ATTRS{idProduct}=="1330", KERNELS=="6-1:1.0", SYMLINK+=$LINK+="knx1", OWNER="knxd"


Is it possible to connect this device to knxd?


Thank you for your help!

Robert





Matthias Urlichs

unread,
Dec 30, 2018, 3:38:21 AM12/30/18
to knxd
This is not a TTY device, it's a USB-HCI device and the messages you posted say so quite clearly. I have no idea why you think it's controlled by the cdc_acm driver. Care to enllighten us?

This device already is in knxd's udev ruleset. Just use "-b usb:" for knxd to talk to it.

Robert Schrödel

unread,
Dec 30, 2018, 7:23:39 AM12/30/18
to knxd
Thank you for your quick answer.

I have not so many skulls with USB and Linux ... I just follow the howto's ...

I used this howto: https://wiki.fhem.de/wiki/Knxd

I edit /etc/default/knxd like the howto:

START_KNXD=YES


and


DAEMON_ARGS="-e 0.0.1 -E 0.0.2:8 -u /run/knx -u /var/run/knx -i -b usb:"


Is this correct?

Do I have add something after "usb:"?


I'm really sorry, but I have only limited knowledge.


Robert

Michael Markstaller

unread,
Dec 30, 2018, 10:18:31 AM12/30/18
to Robert Schrödel, knxd
No, nothing special needed, "usb:" should be enough.
Still, I wont stop to tell: keep your fingers off USB-IF if you don't
want to learn about trouble & pain - it just doesnt work..

Michael

Am 30.12.18 um 13:23 schrieb Robert Schrödel:
> --
> You received this message because you are subscribed to the Google
> Groups "knxd" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to knxd+uns...@googlegroups.com
> <mailto:knxd+uns...@googlegroups.com>.
> To post to this group, send email to kn...@googlegroups.com
> <mailto:kn...@googlegroups.com>.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/knxd/b4cde87c-390e-4aff-91b0-442fd37fb526%40googlegroups.com
> <https://groups.google.com/d/msgid/knxd/b4cde87c-390e-4aff-91b0-442fd37fb526%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.


--
Für Rückfragen stehe ich jederzeit gerne zur Verfügung.

Mit freundlichen Grüssen

Michael Markstaller
Softwareentwicklung & IT-Dienstleistungen

Am Birkengarten 19b
82024 Taufkirchen
Tel: +49-89-21553825, Mobile: +49-179-2080789
USt-ID: DE293191950

signature.asc
Reply all
Reply to author
Forward
0 new messages