×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Port failure Error: Inappropriate ioctl for device.

  • Posts: 2257
  • Thank you received: 223

Rendering Error in layout Message/Item: array_keys(): Argument #1 ($array) must be of type array, null given. Please enable debug mode for more information.

Please Log in or Create an account to join the conversation.

  • Posts: 1029
  • Thank you received: 301
These are clearly not the same device, see the major/minor? Another device is detected as a prolific serial converter and is taking the symlink. You need to be more restrictive on the device selection in the udev rule.

-Eric
5 years 9 months ago #28537

Please Log in or Create an account to join the conversation.

  • Posts: 2257
  • Thank you received: 223
Hello Eric,

I only have one adapter plugged in, it's a symlink through udev rules.
Something has changed, I need to figure it out. yes I agree the major an minor are different.
5 years 9 months ago #28568

Please Log in or Create an account to join the conversation.

  • Posts: 1029
  • Thank you received: 301
Change logging level of the udev daemon with "udevadm control --log-priority=info". Plug out, run "dmesg -Hw", plug in. You should see what is happening perhaps.

-Eric
5 years 9 months ago #28571

Please Log in or Create an account to join the conversation.

  • Posts: 1029
  • Thank you received: 301
Oh sorry now I see it! You need to filter the "tty" subsystem in your udev rule, not the "usb" subsystem. What you are interested in is the device that offer serial transfer features...

-Eric
5 years 9 months ago #28572

Please Log in or Create an account to join the conversation.

  • Posts: 2257
  • Thank you received: 223
ok, I shall amend the rule and see how it goes. Will report soon.
Last edit: 5 years 9 months ago by Gonzothegreat.
5 years 9 months ago #28575

Please Log in or Create an account to join the conversation.

  • Posts: 1
  • Thank you received: 0
Just FYI for the people googling this in the future: I had this exact same problem with a CP201x usb-serial adapter. The solution is to change all the "ATTR" references to "ATTRS" in the udev rules. That's it. That's the magic incantation. I hoped this helped someone.
In this case changing ATTR{manufacturer}=="Prolific Technology Inc." to ATTRS{manufacturer}=="Prolific Technology Inc." most likely would have fixed OP's issue.

Also, here's a link to a pile of udev rules at work:
raw.githubusercontent.com/platformio/pla...latformio-udev.rules
It was through examining the differences between those rules and my own that fixed the issue.
4 years 1 week ago #53459

Please Log in or Create an account to join the conversation.

Time to create page: 0.297 seconds