BSC-Tiny enocean LAN-Gateway not initializing - ESP3Packet malformed

Hello everyone,

I bought a BSC-Tiny Enocean LAN Gateway https://bscgmbh.de/images/datasheet/english/Datasheet%20EG32SC_E_September%202022.pdf as this has the possibility to solve some of my installation issues, due to PoE and external antenna support.

However I run into a initialization issue with this device. The enocean-AddOn seems to start the initialization but at some point it stops with ESP3Packet malformed.

Configured is the device as rfc2217 with IP-address and Port.

11:37:20.308 [DEBUG] [internal.handler.EnOceanBridgeHandler] - request base id
11:37:20.309 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'enocean:bridge:enocean_lan_gw_02' changed from OFFLINE (CONFIGURATION_PENDING): opening serial port... to OFFLINE (CONFIGURATION_PENDING): starting rx thread...
11:37:20.309 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'enocean:bridge:enocean_lan_gw_02' changed from OFFLINE (CONFIGURATION_PENDING): starting rx thread... to OFFLINE (CONFIGURATION_PENDING): trying to get bridge base id...
11:37:20.309 [DEBUG] [ternal.transceiver.EnOceanTransceiver] - Enqueue new send request with ESP3 type COMMON_COMMAND with callback
11:37:20.310 [DEBUG] [ternal.transceiver.EnOceanTransceiver] - Sending data, type COMMON_COMMAND, payload 08
11:37:20.310 [TRACE] [ternal.transceiver.EnOceanTransceiver] - Sending raw data: 5500010005700838
11:37:20.310 [DEBUG] [internal.handler.EnOceanBridgeHandler] - set postmaster mailboxes
11:37:20.310 [DEBUG] [ternal.transceiver.EnOceanTransceiver] - Enqueue new send request with ESP3 type SMART_ACK_COMMAND with callback
11:37:20.312 [DEBUG] [internal.handler.EnOceanBridgeHandler] - request version info
11:37:20.313 [DEBUG] [ternal.transceiver.EnOceanTransceiver] - Enqueue new send request with ESP3 type COMMON_COMMAND with callback
11:37:20.538 [TRACE] [ternal.transceiver.EnOceanTransceiver] - Received Sync Byte
11:37:20.539 [TRACE] [ternal.transceiver.EnOceanTransceiver] - >> Received header, data length 5 optional length 1 packet type 2
11:37:20.561 [DEBUG] [ternal.transceiver.EnOceanTransceiver] - Sending data, type SMART_ACK_COMMAND, payload 0814
11:37:20.561 [TRACE] [ternal.transceiver.EnOceanTransceiver] - Sending raw data: 5500020006C40814C4
11:37:20.578 [TRACE] [ternal.transceiver.EnOceanTransceiver] - ESP3Packet malformed: 00E980550001
11:37:20.814 [DEBUG] [ternal.transceiver.EnOceanTransceiver] - Sending data, type COMMON_COMMAND, payload 03
11:37:20.815 [TRACE] [ternal.transceiver.EnOceanTransceiver] - Sending raw data: 5500010005700309
11:37:20.838 [TRACE] [ternal.transceiver.EnOceanTransceiver] - Received Sync Byte
11:37:20.839 [TRACE] [ternal.transceiver.EnOceanTransceiver] - >> Received header, data length 33 optional length 0 packet type 2
11:37:20.839 [DEBUG] [ternal.transceiver.EnOceanTransceiver] - RESPONSE with code RET_OK payload 0001060100010501E7042189D3454F010354434D35313500000000000000000000 received
11:37:20.839 [TRACE] [ternal.transceiver.EnOceanTransceiver] - Response handled

Is this a configuration problem, a limitation of the add-on or a bug in the BSC-Tiny?

Thanks!

Chris

Ok. I think there is somethin odd going on, when using rfc2217 and the binding.

I now used socat to create a virtual serial port ttS3. With this serial port I can communicate with the BSC tiny.

Th socat command line is:

socat -d -d -d pty,link=/dev/ttS3,raw,b57600,user=openhab,group=dialout,mode=777 tcp:10.3.141.160:3001

The output from the console looks like this:

22:18:04.464 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'enocean:bridge:enocean_lan_gw_02' changed from UNINITIALIZED (DISABLED) to INITIALIZING
22:18:04.465 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'enocean:bridge:enocean_lan_gw_02' changed from INITIALIZING to OFFLINE (CONFIGURATION_PENDING): trying to connect to gateway...
22:18:04.465 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'enocean:bridge:enocean_lan_gw_02' changed from OFFLINE (CONFIGURATION_PENDING): trying to connect to gateway... to OFFLINE (CONFIGURATION_PENDING): opening serial port...
22:18:04.471 [INFO ] [ternal.transceiver.EnOceanTransceiver] - EnOceanSerialTransceiver initialized
22:18:04.471 [INFO ] [ternal.transceiver.EnOceanTransceiver] - EnOceanSerialTransceiver RX thread started
22:18:04.471 [INFO ] [internal.handler.EnOceanBridgeHandler] - EnOceanSerialTransceiver RX thread up and running
22:18:04.471 [DEBUG] [internal.handler.EnOceanBridgeHandler] - request base id
22:18:04.471 [DEBUG] [ternal.transceiver.EnOceanTransceiver] - Enqueue new send request with ESP3 type COMMON_COMMAND with callback
22:18:04.471 [DEBUG] [ternal.transceiver.EnOceanTransceiver] - Sending data, type COMMON_COMMAND, payload 08
22:18:04.471 [TRACE] [ternal.transceiver.EnOceanTransceiver] - Sending raw data: 5500010005700838
22:18:04.471 [DEBUG] [internal.handler.EnOceanBridgeHandler] - set postmaster mailboxes
22:18:04.471 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'enocean:bridge:enocean_lan_gw_02' changed from OFFLINE (CONFIGURATION_PENDING): opening serial port... to OFFLINE (CONFIGURATION_PENDING): starting rx thread...
22:18:04.471 [DEBUG] [ternal.transceiver.EnOceanTransceiver] - Enqueue new send request with ESP3 type SMART_ACK_COMMAND with callback
22:18:04.471 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'enocean:bridge:enocean_lan_gw_02' changed from OFFLINE (CONFIGURATION_PENDING): starting rx thread... to OFFLINE (CONFIGURATION_PENDING): trying to get bridge base id...
22:18:04.471 [DEBUG] [internal.handler.EnOceanBridgeHandler] - request version info
22:18:04.471 [DEBUG] [ternal.transceiver.EnOceanTransceiver] - Enqueue new send request with ESP3 type COMMON_COMMAND with callback
22:18:04.486 [TRACE] [ternal.transceiver.EnOceanTransceiver] - Received Sync Byte
22:18:04.486 [TRACE] [ternal.transceiver.EnOceanTransceiver] - >> Received header, data length 5 optional length 1 packet type 2
22:18:04.487 [DEBUG] [ternal.transceiver.EnOceanTransceiver] - RESPONSE with code RET_OK payload 00FFC4E980 received
22:18:04.487 [DEBUG] [internal.handler.EnOceanBridgeHandler] - received response for base id
22:18:04.487 [TRACE] [ternal.transceiver.EnOceanTransceiver] - Response handled
22:18:04.488 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'enocean:bridge:enocean_lan_gw_02' changed from OFFLINE (CONFIGURATION_PENDING): trying to get bridge base id... to ONLINE
22:18:04.722 [DEBUG] [ternal.transceiver.EnOceanTransceiver] - Sending data, type SMART_ACK_COMMAND, payload 0814
22:18:04.722 [TRACE] [ternal.transceiver.EnOceanTransceiver] - Sending raw data: 5500020006C40814C4
22:18:04.736 [TRACE] [ternal.transceiver.EnOceanTransceiver] - Received Sync Byte
22:18:04.736 [TRACE] [ternal.transceiver.EnOceanTransceiver] - >> Received header, data length 1 optional length 0 packet type 2
22:18:04.736 [DEBUG] [ternal.transceiver.EnOceanTransceiver] - RESPONSE with code RET_WRONG_PARAM payload 03 received
22:18:04.737 [DEBUG] [internal.handler.EnOceanBridgeHandler] - received response for postmaster mailboxes
22:18:04.737 [TRACE] [ternal.transceiver.EnOceanTransceiver] - Response handled
22:18:04.973 [DEBUG] [ternal.transceiver.EnOceanTransceiver] - Sending data, type COMMON_COMMAND, payload 03
22:18:04.973 [TRACE] [ternal.transceiver.EnOceanTransceiver] - Sending raw data: 5500010005700309
22:18:04.996 [TRACE] [ternal.transceiver.EnOceanTransceiver] - Received Sync Byte
22:18:04.996 [TRACE] [ternal.transceiver.EnOceanTransceiver] - >> Received header, data length 33 optional length 0 packet type 2
22:18:04.997 [DEBUG] [ternal.transceiver.EnOceanTransceiver] - RESPONSE with code RET_OK payload 0001060100010501E7042189D3454F010354434D35313500000000000000000000 received
22:18:04.998 [TRACE] [ternal.transceiver.EnOceanTransceiver] - Response handled

Question: Is this maybe a bug or might it something that Irun openhabian 3.4 from within a LXC container?

Thanks!

Chris