fruggy83 / openocean

27 stars 11 forks source link

Can't intialize bridge via rfc2217://x.x.x.x:3001 #72

Open nimric opened 4 years ago

nimric commented 4 years ago

I have a Raspberry with an EnoceanPi and ser2net running. The config has the following entry:

3001:raw:600:/dev/ttyAMA0:57600 8DATABITS NONE 1STOPBIT remctl

At another Raspberry I have openHab with the binding version 2.5.0.1 running. After adding the bridge it stucks in the state Offline - Configuration Pending and in the log the following lines repeat every minute:

2019-09-28 00:26:01.775 [hingStatusInfoChangedEvent] - 'enocean:bridge:enoceanpi' changed from OFFLINE (CONFIGURATION_PENDING): trying to get bridge base id... to OFFLINE (CONFIGURATION_PENDING): opening serial port...
2019-09-28 00:26:01.779 [INFO ] [transceiver.EnOceanSerialTransceiver] - EnOceanSerialTransceiver initialized
2019-09-28 00:26:01.787 [hingStatusInfoChangedEvent] - 'enocean:bridge:enoceanpi' changed from OFFLINE (CONFIGURATION_PENDING): opening serial port... to OFFLINE CONFIGURATION_PENDING): starting rx thread...
2019-09-28 00:26:01.791 [hingStatusInfoChangedEvent] - 'enocean:bridge:enoceanpi' changed from OFFLINE (CONFIGURATION_PENDING): starting rx thread... to OFFLINE (CONFIGURATION_PENDING): trying to get bridge base id...
2019-09-28 00:27:01.804 [INFO ] [transceiver.EnOceanSerialTransceiver] - Transceiver shutdown
2019-09-28 00:27:01.816 [INFO ] [transceiver.EnOceanSerialTransceiver] - EnOceanSerialTransceiver initialized
2019-09-28 00:27:01.816 [hingStatusInfoChangedEvent] - 'enocean:bridge:enoceanpi' changed from OFFLINE (CONFIGURATION_PENDING): trying to get bridge base id... to OFFLINE CONFIGURATION_PENDING): opening serial port...
2019-09-28 00:27:01.831 [hingStatusInfoChangedEvent] - 'enocean:bridge:enoceanpi' changed from OFFLINE (CONFIGURATION_PENDING): opening serial port... to OFFLINE CONFIGURATION_PENDING): starting rx thread...
2019-09-28 00:27:01.865 [hingStatusInfoChangedEvent] - 'enocean:bridge:enoceanpi' changed from OFFLINE (CONFIGURATION_PENDING): starting rx thread... to OFFLINE (CONFIGURATION_PENDING): trying to get bridge base id...
2019-09-28 00:28:01.838 [INFO ] [transceiver.EnOceanSerialTransceiver] - Transceiver shutdown
nimric commented 4 years ago

I found the issue. The state in the config of ser2net needs to be telnet instead of raw. Maybe you can add some more documentation to the configuration section and give an example how to configure ser2net. Keep up the good work!

fruggy83 commented 4 years ago

Hi @nimric thanks for your hint. I will update the docs 👍

BananaJoeTo commented 2 years ago

Hi i tried to open an enOcean USB300 by a OH3 via ser2net (rfc2217://...:3001) from an other "remote" raspi. But it seems that OH3 stucks in "trying to get base id ... " The ser2net configuration on the "remote" raspi is: 3001:telnet:600:/dev/ttyUSB0:57600 8DATABITS NONE 1STOPBIT remctl Any ideas?

nimric commented 2 years ago

@BananaJoeTo Can you try 3001:telnet:0:/dev/ttyUSB0:57600 8DATABITS NONE 1STOPBIT remctl