{"action":"created","issue":{"url":"https://api.github.com/repos/calimero-project/calimero-server/issues/1","labels_url":"https://api.github.com/repos/calimero-project/calimero-server/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/calimero-project/calimero-server/issues/1/comments","events_url":"https://api.github.com/repos/calimero-project/calimero-server/issues/1/events","html_url":"https://github.com/calimero-project/calimero-server/issues/1","id":115147106,"number":1,"title":"Group monitor works but Bus monitor doesn't with USB interface","user":{"login":"alesf76","id":15024512,"avatar_url":"https://avatars.githubusercontent.com/u/15024512?v=3","gravatar_id":"","url":"https://api.github.com/users/alesf76","html_url":"https://github.com/alesf76","followers_url":"https://api.github.com/users/alesf76/followers","following_url":"https://api.github.com/users/alesf76/following{/other_user}","gists_url":"https://api.github.com/users/alesf76/gists{/gist_id}","starred_url":"https://api.github.com/users/alesf76/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alesf76/subscriptions","organizations_url":"https://api.github.com/users/alesf76/orgs","repos_url":"https://api.github.com/users/alesf76/repos","events_url":"https://api.github.com/users/alesf76/events{/privacy}","received_events_url":"https://api.github.com/users/alesf76/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-11-04T21:02:23Z","updated_at":"2015-11-14T12:45:04Z","closed_at":null,"body":"My setup is Windows 8.1 32 bit, calimero-server from the Java 8 branch, a KNX USB interface.\r\nConnecting from ETS3 and activating the group monitor works, but if I activate the bus monitor I get this exception\r\n\r\n[main] INFO calimero.server - Discovery service network interfaces:\r\n[main] INFO calimero.server -     listen on all\r\n[main] INFO calimero.server -     outgoing all\r\n[main] INFO calimero.server - Service container 147b:5120: \r\n[main] INFO calimero.server -     IPv4 UDP host 192.168.1.133 port 3671 routing false\r\n[main] INFO calimero.server -     usb connection, TP1 medium, device 1.0.248\r\n[main] INFO calimero.server -     GrpAddrFilter []\r\n[main] INFO calimero.server - connect to 147b:5120\r\n[main] INFO calimero.usb - Found KNX devices:\r\n |--Bus 001 Device 003: ID 147b:5120\r\n[main] INFO calimero.usb.147b:5120 - Bus 001 Device 003: ID 147b:5120\r\n[main] INFO calimero.link.147b:5120 - Device Mask Version 0012 - System 1 (BCU 1)\r\n[main] INFO calimero.link.147b:5120 - PEI type 1\r\n[main] INFO calimero.link.147b:5120 - KNX individual address 1.0.253\r\n[main] INFO calimero.link.147b:5120 - hop count set to 6\r\n[main] INFO Calimero KNX server gateway - main-line group address forward setting set to 1\r\n[main] INFO Calimero KNX server gateway - sub-line group address forward setting set to 1\r\n[Calimero KNX server gateway] INFO knx-server - launch KNXnet/IP server My KNXnet/IP Server\r\n[knx-server control endpoint 147b:5120] INFO knx-server - knx-server control endpoint 147b:5120 is up and running\r\n[knx-server control endpoint 147b:5120] WARN knx-server - received disconnect request with unknown channel id 1 - ignored\r\n[knx-server control endpoint 147b:5120] INFO knx-server - 147b:5120: setup data endpoint (channel 1) for connection request from /192.168.1.134:63229\r\n[knx-server control endpoint 147b:5120] INFO knx-server - assigning additional individual address 1.0.249\r\n[knx-server control endpoint 147b:5120] WARN calimero.usb.147b:5120 - close connection\r\njavax.usb.UsbPlatformException: USB error 5: Unable to release interface: Entity not found\r\n\tat org.usb4java.javax.ExceptionUtils.createPlatformException(ExceptionUtils.java:39)\r\n\tat org.usb4java.javax.AbstractDevice.releaseInterface(AbstractDevice.java:455)\r\n\tat org.usb4java.javax.Interface.release(Interface.java:113)\r\n\tat tuwien.auto.calimero.serial.usb.UsbConnection.close(UsbConnection.java:647)\r\n\tat tuwien.auto.calimero.serial.usb.UsbConnection.close(UsbConnection.java:554)\r\n\tat tuwien.auto.calimero.link.AbstractLink.close(AbstractLink.java:293)\r\n\tat tuwien.auto.calimero.server.gateway.KnxServerGateway$KNXnetIPServerListener.closeLink(KnxServerGateway.java:322)\r\n\tat tuwien.auto.calimero.server.gateway.KnxServerGateway$KNXnetIPServerListener.acceptDataConnection(KnxServerGateway.java:189)\r\n\tat tuwien.auto.calimero.server.knxnetip.KNXnetIPServer$ControlEndpointService.lambda$acceptConnection$5(KNXnetIPServer.java:2411)\r\n\tat java.util.stream.MatchOps$1MatchSink.accept(Unknown Source)\r\n\tat java.util.ArrayList$ArrayListSpliterator.tryAdvance(Unknown Source)\r\n\tat java.util.stream.ReferencePipeline.forEachWithCancel(Unknown Source)\r\n\tat java.util.stream.AbstractPipeline.copyIntoWithCancel(Unknown Source)\r\n\tat java.util.stream.AbstractPipeline.copyInto(Unknown Source)\r\n\tat java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)\r\n\tat java.util.stream.MatchOps$MatchOp.evaluateSequential(Unknown Source)\r\n\tat java.util.stream.MatchOps$MatchOp.evaluateSequential(Unknown Source)\r\n\tat java.util.stream.AbstractPipeline.evaluate(Unknown Source)\r\n\tat java.util.stream.ReferencePipeline.allMatch(Unknown Source)\r\n\tat tuwien.auto.calimero.server.knxnetip.KNXnetIPServer$ControlEndpointService.acceptConnection(KNXnetIPServer.java:2411)\r\n\tat tuwien.auto.calimero.server.knxnetip.KNXnetIPServer$ControlEndpointService.initNewConnection(KNXnetIPServer.java:2389)\r\n\tat tuwien.auto.calimero.server.knxnetip.KNXnetIPServer$ControlEndpointService.handleServiceType(KNXnetIPServer.java:2142)\r\n\tat tuwien.auto.calimero.server.knxnetip.KNXnetIPServer$ServiceLoop.onReceive(KNXnetIPServer.java:1476)\r\n\tat tuwien.auto.calimero.internal.UdpSocketLooper.loop(UdpSocketLooper.java:134)\r\n\tat tuwien.auto.calimero.server.knxnetip.KNXnetIPServer$ServiceLoop.run(KNXnetIPServer.java:1447)\r\n\tat tuwien.auto.calimero.server.knxnetip.KNXnetIPServer$LooperThread.run(KNXnetIPServer.java:1665)\r\n[knx-server control endpoint 147b:5120] INFO calimero.link.147b:5120 - link closed\r\n[knx-server control endpoint 147b:5120] INFO calimero.usb.147b:5120 - Bus 001 Device 003: ID 147b:5120\r\n[knx-server control endpoint 147b:5120] ERROR calimero.link - initial connection attempt\r\ntuwien.auto.calimero.KNXException: open USB connection\r\n\tat tuwien.auto.calimero.serial.usb.UsbConnection.<init>(UsbConnection.java:405)\r\n\tat tuwien.auto.calimero.serial.usb.UsbConnection.<init>(UsbConnection.java:375)\r\n\tat tuwien.auto.calimero.link.KNXNetworkMonitorUsb.<init>(KNXNetworkMonitorUsb.java:98)\r\n\tat tuwien.auto.calimero.server.gateway.SubnetConnector.lambda$openMonitorLink$16(SubnetConnector.java:283)\r\n\tat tuwien.auto.calimero.link.Connector$Link.connect(Connector.java:446)\r\n\tat tuwien.auto.calimero.link.Connector$Link.<init>(Connector.java:219)\r\n\tat tuwien.auto.calimero.link.Connector$Link.<init>(Connector.java:176)\r\n\tat tuwien.auto.calimero.link.Connector.newMonitor(Connector.java:172)\r\n\tat tuwien.auto.calimero.server.gateway.SubnetConnector.openMonitorLink(SubnetConnector.java:297)\r\n\tat tuwien.auto.calimero.server.gateway.KnxServerGateway$KNXnetIPServerListener.acceptDataConnection(KnxServerGateway.java:190)\r\n\tat tuwien.auto.calimero.server.knxnetip.KNXnetIPServer$ControlEndpointService.lambda$acceptConnection$5(KNXnetIPServer.java:2411)\r\n\tat java.util.stream.MatchOps$1MatchSink.accept(Unknown Source)\r\n\tat java.util.ArrayList$ArrayListSpliterator.tryAdvance(Unknown Source)\r\n\tat java.util.stream.ReferencePipeline.forEachWithCancel(Unknown Source)\r\n\tat java.util.stream.AbstractPipeline.copyIntoWithCancel(Unknown Source)\r\n\tat java.util.stream.AbstractPipeline.copyInto(Unknown Source)\r\n\tat java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)\r\n\tat java.util.stream.MatchOps$MatchOp.evaluateSequential(Unknown Source)\r\n\tat java.util.stream.MatchOps$MatchOp.evaluateSequential(Unknown Source)\r\n\tat java.util.stream.AbstractPipeline.evaluate(Unknown Source)\r\n\tat java.util.stream.ReferencePipeline.allMatch(Unknown Source)\r\n\tat tuwien.auto.calimero.server.knxnetip.KNXnetIPServer$ControlEndpointService.acceptConnection(KNXnetIPServer.java:2411)\r\n\tat tuwien.auto.calimero.server.knxnetip.KNXnetIPServer$ControlEndpointService.initNewConnection(KNXnetIPServer.java:2389)\r\n\tat tuwien.auto.calimero.server.knxnetip.KNXnetIPServer$ControlEndpointService.handleServiceType(KNXnetIPServer.java:2142)\r\n\tat tuwien.auto.calimero.server.knxnetip.KNXnetIPServer$ServiceLoop.onReceive(KNXnetIPServer.java:1476)\r\n\tat tuwien.auto.calimero.internal.UdpSocketLooper.loop(UdpSocketLooper.java:134)\r\n\tat tuwien.auto.calimero.server.knxnetip.KNXnetIPServer$ServiceLoop.run(KNXnetIPServer.java:1447)\r\n\tat tuwien.auto.calimero.server.knxnetip.KNXnetIPServer$LooperThread.run(KNXnetIPServer.java:1665)\r\nCaused by: javax.usb.UsbClaimException: An interface is already claimed\r\n\tat org.usb4java.javax.AbstractDevice.claimInterface(AbstractDevice.java:404)\r\n\tat org.usb4java.javax.Interface.claim(Interface.java:102)\r\n\tat tuwien.auto.calimero.serial.usb.UsbConnection.open(UsbConnection.java:608)\r\n\tat tuwien.auto.calimero.serial.usb.UsbConnection.<init>(UsbConnection.java:389)\r\n\t... 27 more\r\n[main] INFO Calimero KNX server gateway - knx-server: user request for shutdown\r\n\r\n\r\nAlso other functions doesn't work:\r\n- trying to download a program make the server continuosly print\r\n[Calimero KNX server gateway] WARN Calimero KNX server gateway - no active KNXnet/IP connection for destination 1.0.253\r\n- trying to download an address the server never detects the pressed button\r\n- diagnotics/individual addresses doesn't work, no error or warning but it doesn't detect nothing.\r\n "},"comment":{"url":"https://api.github.com/repos/calimero-project/calimero-server/issues/comments/156693467","html_url":"https://github.com/calimero-project/calimero-server/issues/1#issuecomment-156693467","issue_url":"https://api.github.com/repos/calimero-project/calimero-server/issues/1","id":156693467,"user":{"login":"alesf76","id":15024512,"avatar_url":"https://avatars.githubusercontent.com/u/15024512?v=3","gravatar_id":"","url":"https://api.github.com/users/alesf76","html_url":"https://github.com/alesf76","followers_url":"https://api.github.com/users/alesf76/followers","following_url":"https://api.github.com/users/alesf76/following{/other_user}","gists_url":"https://api.github.com/users/alesf76/gists{/gist_id}","starred_url":"https://api.github.com/users/alesf76/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alesf76/subscriptions","organizations_url":"https://api.github.com/users/alesf76/orgs","repos_url":"https://api.github.com/users/alesf76/repos","events_url":"https://api.github.com/users/alesf76/events{/privacy}","received_events_url":"https://api.github.com/users/alesf76/received_events","type":"User","site_admin":false},"created_at":"2015-11-14T12:45:04Z","updated_at":"2015-11-14T12:45:04Z","body":"OK, I realized that it's ETS5 that have problems. When using it directly connected to an USB interface, if the bus monitor is open it doesn't allow me to use the group addresses check function saying that the USB interface is already in use. But if I use it to connect to calimero, it says nothing and goes on."}}