Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Becker USB Device Upper / Lower Case #34

Open
CoreDi opened this issue Mar 12, 2024 · 1 comment
Open

Becker USB Device Upper / Lower Case #34

CoreDi opened this issue Mar 12, 2024 · 1 comment

Comments

@CoreDi
Copy link

CoreDi commented Mar 12, 2024

Don´t know if this is still maintained here but i found some change in the Becker USB Stick.

My USB Device ordered 01 / 2024 has now lower case letters and so the Script is running into an error:

./centronic-stick.py  -l
Traceback (most recent call last):
  File "/home/iobroker/script/centronic-py/./centronic-stick.py", line 466, in <module>
    main(sys.argv[1:])
  File "/home/iobroker/script/centronic-py/./centronic-stick.py", line 441, in main
    stick = USBStick(db, device)
  File "/home/iobroker/script/centronic-py/./centronic-stick.py", line 184, in __init__
    raise FileExistsError(devname + " don't exists")
FileExistsError: /dev/serial/by-id/usb-BECKER-ANTRIEBE_GmbH_CDC_RS232_v125_Centronic-if00 don't exists

Device Name (Intel NUC, Proxmox, Ubuntu LTS) is now:

ls /dev/serial/by-id/
usb-Becker-Antriebe_GmbH_CDC_RS232_v125_Centronic-if00

So i changed in centronic-stick.py:

#DEFAULT_DEVICE_NAME = '/dev/serial/by-id/usb-BECKER-ANTRIEBE_GmbH_CDC_RS232_v125_Centronic-if00'
DEFAULT_DEVICE_NAME = '/dev/serial/by-id/usb-Becker-Antriebe_GmbH_CDC_RS232_v125_Centronic-if00'
LOCK_FILE_NAME = '/tmp/centronic-stick.lock'

Working now.

@CoreDi CoreDi changed the title Becker USB Device in Script - Upper / Lower Case Becker USB Device Upper / Lower Case Change in Script Mar 12, 2024
@CoreDi CoreDi changed the title Becker USB Device Upper / Lower Case Change in Script Becker USB Device Upper / Lower Case Mar 12, 2024
@CoreDi
Copy link
Author

CoreDi commented Mar 12, 2024

Update, because already discussed here but no solution:
#14

For now, it´s also not working on my side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant