I am trying to connect a microcontroller to a host computer using a USB virtual com port. However, I do not have root privileges on the host computer. The controller shows up as /dev/ttyACM0.
When I try to connect to it using the pyserial module, an error occurs saying "permission denied".
Is there a way to work around this without using any sudo commands? Maybe somehow forcing the microcontroller to announce itself not as ACM? Could the permission problem be avoided in this way?
$ ls -l /dev/ttyACM0
crw-rw----. 1 root dialout 166, 0 Apr 4 13:44 /dev/ttyACM0
$ id
uid=1003(mri) gid=1001(nmruser) groups=1001(nmruser),100(users),1000(nmrsu) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
Unfortunately I cannot change the permissions. The host is the computer of an MRI scanner. Its system is maintained by the manufacturer of the scanner. I considered using Ethernet, but I was hoping there is a way to avoid it.