after a recent update, I noticed that my EnOcean USB300 Dongle stopped sending commands. The device was working perfectly before, but now it’s listed as “OFFLINE” with a “CONFIGURATION_ERROR: Port could not be found” message in the OpenHAB interface.
Here’s what I’ve tried so far:
Device and Port Verification:
The device is recognized by the system:
openhabian@openhabian:~ $ dmesg | grep ttyUSB0
[ 6.770089] usb 1-1.1: FTDI USB Serial Device converter now attached to ttyUSB0
The port permissions seem correct:
openhabian@openhabian:~ $ sudo ls -l /dev/ttyUSB*
crw-rw---- 1 root dialout 188, 0 29. Aug 12:50 /dev/ttyUSB0
The openhabian user is part of the necessary groups:
openhabian@openhabian:~ $ groups openhabian
openhabian : openhab adm tty dialout cdrom sudo audio video plugdev games users input render netdev bluetooth spi i2c gpio openhabian
Restarted both the OpenHAB service and the Raspberry Pi itself.
Verified that the serial port /dev/ttyUSB0 is available and correctly assigned.
Checked group memberships to ensure openhabian has access to the port.
Despite these checks, the dongle still fails to connect. I’m running out of ideas and would greatly appreciate any suggestions or insights into what might be causing this issue or how I might resolve it.
openhab needs access to the port, not openhabian. openhabian is the user you log into the machine with. openhab is the user that openHAB runs under so that’s the user that needs access to that port.
So do step 1 and 3 again but this time for user openhab. I can’t say for sure if that will help but what you’ve done with user openhabian definitely wont as that’s irrelevant to the problem.
I am using the same dongle with latest version of openhab on Raspi. No problems at all. So it is not related to the binding or openhab version in general. Just for your information
Thank you for the additional information that it still works for you. Unfortunately, I still haven’t figured out exactly what the problem is.
In the openHAB logs, I see:
2024-08-30 16:01:29.238 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing ‘enocean:bridge:FT3G3VBX’ changed from OFFLINE (CONFIGURATION_ERROR): Port could not be found to OFFLINE (CONFIGURATION_PENDING): opening serial port…
2024-08-30 16:01:29.252 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing ‘enocean:bridge:FT3G3VBX’ changed from OFFLINE (CONFIGURATION_PENDING): opening serial port… to OFFLINE (CONFIGURATION_ERROR): Port could not be found
Thanks, I’m trying this right now after the current backup has gone through. If this does not work, I will try a backup from March 2024. If neither works, I suspect that the USB stick has a defect. It has been in use since mid 2020. I’ll be back with an update.
I am pretty sure this is a port problem where the initial port, where your Gateway was connected, is occupied by something else. I am no expert on this but I know for sure that I have the same problem.
Try this: Shutdown your pi via “sudo init 0”
Remove the EnOcean Stick from the USB port.
Restart your pi and wait for OH to fully boot. Then reconnect your EnOcean Stick.
If this helps, I can try to give you further instructions.
Very strange. I had restarted the system and the OpenHAB service a few times, but nothing helped. I had also already tried various USB ports. Now I had shut down the system, removed the SD card to copy it with Win32DiskImager on my pc and when I brought the system back to power to try to remove the thing, it is already showing as online and everything is working again .
I also checked with
sudo lsof /dev/ttyUSB0
to see if there were other processes causing problems here. But I didn’t find anything in this regard yesterday either. Empty output yesterday. And now:
sudo lsof /dev/ttyUSB0
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
java 863 openhab 195u CHR 188,0 0t0 366 /dev/ttyUSB0
What’s in openhab.log? When there is an error that’s where it’s going to be logging. events.log is only going to log out the event that the Things went offline but not much about why.
If it happens again you should put the binding into debug mode so you can see what happens before those “Transceiver shutdown” messages. Often the reason will be logged out and that can provide more info for diagnosing the problem.