fruggy83 / openocean

27 stars 11 forks source link

Enocean USB300 Dongle does not show any event #41

Closed edgarjung closed 5 years ago

edgarjung commented 5 years ago

After standard install of openocean (Bridge + SingleContact - both green "ONLINE", D5-00-01) looking up openhab.log or events.log. No event has been thrown open or closing the switch

Testet with DolphinView Advanced (works fine) - Windows - getting Signals (ON/OFF) Switched to UBUNTU, did a cat </dev/ttyUSB0 - works fine reboot an installed Dongle and Switch - both green in paperUI - no reaction in events.log nor openhab.log added openhab to group dialout, /dev/ttyUSB0, crw-rw---- For Testing, changed to RockerSwitch - does not help added EXTRA_JAVA_OPTS="-Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0" to /etc/defaults/openhab2 - does not help After all - reinstalled enocean (Standard openhab) - and the devices - does not help either. Set KARAF (enocean binding) to DEBUG/TRACE - no reaction

USB: stty -F /dev/ttyUSB0 shows speed 57600 baud; line = 0; min = 1; time = 1; -brkint -icrnl -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke

JAVA: openjdk version "1.8.0_191" OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-0ubuntu0.18.04.1-b12) OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)

UBUNTU: No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.1 LTS Release: 18.04 Codename: bionic

fruggy83 commented 5 years ago

Hi @edgarjung,

I am really sorry but I cannot reproduce this. I get the following messages for my Contact in my log, everything works fine for me:

2019-01-06 21:26:23.666 [DEBUG] [.e.i.h.EnOceanBaseThingHandler:147  ] - ESP Packet payload D5090182365B00 for 0182365B received
2019-01-06 21:26:36.611 [INFO ] [smarthome.event.ItemStateEvent:53   ] - enocean_contact_41b66532_0182365B_receivingState updated to Rssi 57, repeated 0
2019-01-06 21:26:36.611 [INFO ] [s.event.ItemStateChangedEvent :53   ] - enocean_contact_41b66532_0182365B_receivingState changed from NULL to Rssi 57, repeated 0
2019-01-06 21:26:36.642 [INFO ] [smarthome.event.ItemStateEvent:53   ] - enocean_contact_41b66532_0182365B_contact updated to CLOSED
2019-01-06 21:26:36.642 [INFO ] [s.event.ItemStateChangedEvent :53   ] - enocean_contact_41b66532_0182365B_contact changed from NULL to CLOSED
2019-01-06 21:26:46.050 [DEBUG] [o.o.b.e.i.t.EnOceanTransceiver:296  ] - RADIO_ERP1 with RORG _1BS for 0182365B payload D5080182365B0001FFFFFFFF3C00 received
2019-01-06 21:26:49.920 [DEBUG] [.e.i.h.EnOceanBaseThingHandler:147  ] - ESP Packet payload D5080182365B00 for 0182365B received
2019-01-06 21:27:12.988 [INFO ] [smarthome.event.ItemStateEvent:53   ] - enocean_contact_41b66532_0182365B_receivingState updated to Rssi 60, repeated 0
2019-01-06 21:27:12.996 [INFO ] [s.event.ItemStateChangedEvent :53   ] - enocean_contact_41b66532_0182365B_receivingState changed from Rssi 57, repeated 0 to Rssi 60, repeated 0
2019-01-06 21:27:19.028 [INFO ] [smarthome.event.ItemStateEvent:53   ] - enocean_contact_41b66532_0182365B_contact updated to OPEN
2019-01-06 21:27:19.041 [INFO ] [s.event.ItemStateChangedEvent :53   ] - enocean_contact_41b66532_0182365B_contact changed from CLOSED to OPEN

But if your EnOcean gateway gets green in PaperUI, the serial connection is working. To confirm this, you could check the properties of the gateway and see some infos about it like BaseId, Version Numbers and number of left id changes.

Best regards

@dominikkv do you have an idee whats wrong here?

dominikkv commented 5 years ago

Hmm I am also using D5-00-01 EEP on 4 devices with success. So, as Daniel suggested, can you first check whether the binding is working generally? -> Do other EnOcean devices get recognised? -> Can you see TRACE logs from the binding in other situations? If you do not have other EnOcean devices, just add a dummy Thing:

Thing rollershutter test "Test" [ enoceanId="11223344", senderIdOffset=1, sendingEEPId="A5_38_08_07" receivingEEPId="A5_11_03" ]
Rollershutter c_test "Test [%d%%]" {channel="enocean:rollershutter:usb300:test:rollershutter"}

and send some commands to nowhere. -> Can you see the TRACE log Received Sync Byte? -> Can you show us your config?

Dominik

edgarjung commented 5 years ago

I am using a Solar Switch. I tested it on my desk with enough light, when it worked.

Now I found out, once installed on my door, it does not have enough light, to send the status change. So no OPENHAB or openocean issue.