Linux - "Could not open port. Please restart" --- worked befoer new Distro

It was this:
crw-rw---- 1 tegwilym dialout 188, 0 Sep 27 19:05 ttyUSB0

Just changed it back to –
crw-rw---- 1 root dialout 188, 0 Sep 27 19:05 ttyUSB0

And when you are logged in as user, what does the
“id” command say

uid=1001(tegwilym) gid=1001(tegwilym) groups=1001(tegwilym),4(adm),5(tty),20(dialout),24(cdrom),27(sudo),29(audio),30(dip),46(plugdev),120(netdev),122(lpadmin),124(nopasswdlogin),136(xastir-ax25),1000(svxlink)
tegwilym@ka7vik-station:/dev$

It was working after the USB reset with radio on last night. Just tried a reboot and it’s not connecting again.
Then looking closer at the files, it did assign me to the file owner again.
crw-rw---- 1 tegwilym dialout 188, 0 Sep 28 12:22 ttyUSB0

Then the new named file (from Eliott’s manual):
lrwxrwxrwx 1 root root 7 Sep 28 12:21 IC7300 → ttyUSB0

Confused! I hope my issues help other people, I can’t be the only one.

that is because the udev rule says:

SUBSYSTEM==“tty”, ATTRS{idVendor}==“10c4”, ATTRS{idProduct}==“ea60”, ATTRS{serial}==“IC-7300 02043151”, SYMLINK+=“IC7300”, OWNER=“tegwilym”

and “OWNER=…” causes this.

What you need to do is this:

a) get rid of owner in that line (like my original lines)
b) take out the USB plug
c) restart linux
d) ls -l /dev/IC* – shows nothing
e) plug in the USB plug
f) ls -l /dev/IC* should show /dev/IC7300
g) note the /dev/ttyUSBx port it shows (like /dev/ttyUSB0 → /dev/IC7300
h) ls -l above port, should be root:dialout
i) put /dev/IC7300 in the config of the wfview server part
j) save the wfview settings

Tried all that. Still needs a reboot, move the USB with radio on, and eventually works.
Reading more about lost USB connections on reboot there seems to be something with bios timing that may do something odd. Some forums say to have the USB on the boot order first so there is power to it, or maybe turn off fast boot…different things to try. I’ll give that a try. I know did something in bios to get the USB stick booting so maybe something there?

Tom, it seems like it’s just a permission issue. I wouldn’t dig into the bios.

Ok. I’ll mess some more. I’d like to keep the latest disto since I don’t like going backwards. I know that when I plug it in to my Pi computer it just works. I’ll have to compare permissions again on that.

Are you telling wfview to connect to ttyUSB0 or IC7300?

While it should work with IC7300, since I note that ttyUSB0 is owned by you, maybe just tell wfview to use ttyUSB0?

In any case, you can check the permission before you start wfview and verify ahead of time that it is going to be ok or not.

—E
de W6EL

I’ve tried both ways, direct to the new IC7300 port, ttyUSB0, and the Auto setting. Usually the “auto” setting has worked on most cases.
Currently, at this time it works after I did a reboot, moved the USB, and somehow it worked.
Settings:
lrwxrwxrwx 1 root root 7 Sep 28 19:18 IC7300 → ttyUSB0
crw-rw---- 1 root dialout 188, 0 Sep 29 12:27 ttyUSB0
lrwxrwxrwx 1 root root 13 Sep 28 19:18 usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_IC-7300_02043151-if00-port0 → …/…/ttyUSB0

All works! But as soon as I reboot - I have to mess with it manually.
Here’s a fresh new log I just made with the config that works at this moment. :wink:
https://termbin.com/2f88