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

CUL868 and CC2531 with CUxD #2905

Open
reinhard089 opened this issue Nov 6, 2024 · 4 comments
Open

CUL868 and CC2531 with CUxD #2905

reinhard089 opened this issue Nov 6, 2024 · 4 comments
Labels
💡 enhancement-ideas New feature or change request 🕙 awaiting feedback waiting for feedback from ticket owner

Comments

@reinhard089
Copy link

Describe the solution you'd like

while using both CUL868 and CC2531 they switch ttyACM0 and ttyACM1 sometimes when you boot your system.
within the CUxD you can:
TTYASSIGN=ttyACM1:NC
when the CC2531 should not be used by CUxD, but when the switch ports, that does not work.
if you would have a udev rule like:
ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="204b", RUN+="modprobe cdc_acm", NAME="ttyACMCUL868"
ATTRS{idVendor}=="0451", ATTRS{idProduct}=="16a8", RUN+="modprobe cdc_acm", NAME="ttyACMCC2531"
the system would always use the right tty ports (links).

Describe alternatives you've considered

i unplug the USB-sticks and reinsert them in the right order after the reboot und than i need to reboot nodered as well.

Is your feature request related to a problem?

yes, because those two usb-sticks, sometimes switch the /dev/ttyACM0 and /dev/ttyACM0 symlinks.
when they do, the CUxD and nodeRed does not work anymore.

Additional information

CUxD Status:
USB 1-1 - (2514) [HUB] - Wed Nov 6 19:10:27 2024
USB 1-1.1 - (2514) [HUB] - Wed Nov 6 19:10:27 2024
USB 1-1.1.1 - (7800) [FF] - no driver - Wed Nov 6 19:10:27 2024
USB 1-1.1.2 - {NC} TI CC2531 USB CDC [COMM] - /dev/ttyACM1 - Wed Nov 6 19:10:27 2024
USB 1-1.1.3 - USB Mass Storage Device [STORAGE] - Wed Nov 6 19:10:27 2024
USB 1-1.2 - {CUX} CUL868 [COMM] - /dev/ttyACM0 {:6571s} - V 1.55 CUL868 (CUL_V3) - Wed Nov 6 19:10:27 2024
USB 1-1.3 - eQ-3 HmIP-RFUSB [FF] - no driver - Wed Nov 6 19:10:27 2024

CUxD setup:
TTYASSIGN=ttyACM1:NC

NodeRed Setup for Zigbee
image

@reinhard089 reinhard089 added the 💡 enhancement-ideas New feature or change request label Nov 6, 2024
@jens-maus
Copy link
Owner

Did you try to put your own udev rules file into /usr/local/lib/udev/rules.d/ as per the official udev documentation (see https://www.freedesktop.org/software/systemd/man/latest/udev.html).

@jens-maus jens-maus added the 🕙 awaiting feedback waiting for feedback from ticket owner label Nov 7, 2024
Copy link
Contributor

github-actions bot commented Nov 7, 2024

@reinhard089, the maintainer of this project has requested more detailed information or a specific feedback. Please provide this feedback and report back ASAP or this ticket will be automatically marked as stale after a certain short grace period.

@reinhard089
Copy link
Author

hi,
thank for the reply.
no, i have not tried.
in my installation of RaspberryMatic (rpi3), there is no /usr/local/lib/...
image
and i could not find a place where i can place a custom udev-rule.

@jens-maus
Copy link
Owner

Well, then generate/create /usr/local/lib and put your own udev rules file under /usr/local/lib/udev/rules.d. Thus, a simple mkdir -p /usr/local/lib/udev/rules.d should be enough and then put your own rules.d file there for whatever you want to do via udev.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡 enhancement-ideas New feature or change request 🕙 awaiting feedback waiting for feedback from ticket owner
Projects
None yet
Development

No branches or pull requests

2 participants