Wumpus Posted January 18, 2016 at 10:19 PM Share Posted January 18, 2016 at 10:19 PM Hallo zusammen, das Java Beispiel für den im Sekundentakt wechselnden Relay-Zustand funktioniert einwandfrei. Wenn ich jetzt das setState(true, true) gegen setSelectedState(1, true) (natürlich äquivalent für false) austausche, zeigt das Relay keinerlei Reaktion. Gleiches Problem bei Verwendung von OpenHAB, das ja auch auf den Java Bindings basiert und bei Zustandswechseln ebenfalls setSelectedState anspricht. Auch hier keinerlei Reaktion des Bricklets. Edit: Mit Wireshark sehe ich Nachrichten vom Typ '06' rausgehen, die Nachrichten haben die Länge 10. Quote Link to comment Share on other sites More sharing options...
Wumpus Posted January 19, 2016 at 09:41 AM Author Share Posted January 19, 2016 at 09:41 AM Nachtrag: Mit den Shell-Bindings das gleiche Verhalten. Brickd: 2.2.2, aktuelle Firmware, Java Bindings 2.1.6 und 2.1.7, Shell Bindings 2.1.2 brickd.log Debug sieht wie folgt aus: 2016-01-19 10:31:26.985639 <D> <event|event_linux.c:161> EPoll returned 1 event source(s) as ready 2016-01-19 10:31:26.985669 <D> <event|event.c:392> Handling generic event source (handle: 22, received-events: 0x0001) 2016-01-19 10:31:26.985699 <D> <client.c:340> Creating client from plain-socket (handle: 23) 2016-01-19 10:31:26.985718 <D> <event|event.c:221> Added generic event source (handle: 23, events: 0x0001) at index 9 2016-01-19 10:31:26.985726 <I> <network.c:373> Added new client (N: 127.0.0.1:52871, T: plain-socket, H: 23, A: disabled) 2016-01-19 10:31:26.985731 <D> <event|event_linux.c:174> Handled all ready event sources 2016-01-19 10:31:26.985736 <D> <event|event_linux.c:142> Starting to epoll on 10 event source(s) 2016-01-19 10:31:26.986362 <D> <event|event_linux.c:161> EPoll returned 1 event source(s) as ready 2016-01-19 10:31:26.986380 <D> <event|event.c:392> Handling generic event source (handle: 23, received-events: 0x0001) 2016-01-19 10:31:26.986393 <D> <packet|client.c:282> Received request (U: XXX, L: 10, F: 6, S: 2, R: 0) from client (N: 127.0.0.1:52871, T: plain-socket, H: 23, A: disabled) 2016-01-19 10:31:26.986401 <D> <packet|hardware.c:124> Dispatching request (U: XXX, L: 10, F: 6, S: 2, R: 0) to 1 stack(s) 2016-01-19 10:31:26.986453 <D> <packet|usb_transfer.c:280> Submitted write transfer 0x12641d0 for 10 bytes to Master Brick [XXXXXX] 2016-01-19 10:31:26.986471 <D> <packet|stack.c:133> Sent request to Master Brick [XXXXXX] 2016-01-19 10:31:26.986489 <D> <event|event_linux.c:174> Handled all ready event sources 2016-01-19 10:31:26.986505 <D> <event|event_linux.c:142> Starting to epoll on 10 event source(s) 2016-01-19 10:31:26.986512 <D> <event|event_linux.c:161> EPoll returned 1 event source(s) as ready 2016-01-19 10:31:26.986516 <D> <event|event.c:392> Handling USB event source (handle: 21, received-events: 0x0004) 2016-01-19 10:31:26.986534 <D> <packet|usb_transfer.c:122> Write transfer 0x12641d0 returned successfully from Master Brick [XXXXXX] 2016-01-19 10:31:26.986541 <D> <event|event_linux.c:174> Handled all ready event sources 2016-01-19 10:31:26.986545 <D> <event|event_linux.c:142> Starting to epoll on 10 event source(s) 2016-01-19 10:31:26.987204 <D> <event|event_linux.c:161> EPoll returned 1 event source(s) as ready 2016-01-19 10:31:26.987229 <D> <event|event.c:392> Handling generic event source (handle: 23, received-events: 0x0001) 2016-01-19 10:31:26.987265 <I> <client.c:220> Client (N: 127.0.0.1:52871, T: plain-socket, H: 23, A: disabled) disconnected by peer 2016-01-19 10:31:26.987277 <D> <event|event_linux.c:174> Handled all ready event sources 2016-01-19 10:31:26.987290 <D> <network.c:415> Removing disconnected client (N: 127.0.0.1:52871, T: plain-socket, H: 23, A: disabled) 2016-01-19 10:31:26.987309 <D> <event|event.c:354> Marked generic event source (handle: 23, events: 0x0001) as removed at index 9 2016-01-19 10:31:26.987385 <D> <event|event.c:372> Removed generic event source (handle: 23, events: 0x0001) at index 9 2016-01-19 10:31:26.987391 <D> <event|event_linux.c:142> Starting to epoll on 9 event source(s) Könnt ihr bitte mal schauen? Quote Link to comment Share on other sites More sharing options...
Wumpus Posted January 19, 2016 at 09:48 AM Author Share Posted January 19, 2016 at 09:48 AM Hat sich gerade aufgelöst: Ich habe prophylaktisch die Firmware erneut auf das Dual Relay Bricklet geflasht. Danach funktioniert es... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.