arduino usb/com port issue
Tomasz CEDRO
tomek at cedro.info
Sun May 31 22:26:37 UTC 2020
On Sun, May 31, 2020 at 11:45 PM Gary Aitken wrote:
> >>> I installed the arduino package on an 11.3-RELEASE system.
Message from arduino-1.0.6_3,1:
"--
Notes on using the Arduino IDE:
To allow serial port locking, add your user to the dialer group:
pw groupmod dialer -m myuser
(..)"
Did you add your user to the dialer group? That would allow to you to
access modem/vcom devices which seems exactly what you need. The modem
device is /dev/cuaU* for USB-Virtual-COM-Ports :-)
> >> Did you check the permissions on /dev/usb/XXX ?
>
> These are all set to crw-------
> I tried changing all to crw-rw-rw- but still no arduino success
How about /dev/cuaU* ?
> > ***/etc/devfs.rules: [localrules=10] add path 'ugen*' mode 0660 group
> > operator add path 'usb/*' mode 0660 group operator add path 'usb'
> > mode 0770 group operator
> >
> > ***/etc/rc.conf: devfs_system_ruleset="localrules"
>
> $ cat /etc/rc.conf | grep devfs
> # allow local rules as specified in /etc/devfs.rules (5)
> devfs_system_ruleset="localrules"
>
> $ cat /etc/devfs.rules
> # Allow operator group to mount USB devices
> [localrules=5]
> add path 'da*' mode 0660 group operator
> # for arduino hotplug USB
> add path 'ugen*' mode 0660 group operator
> add path 'usb/*' mode 0660 group operator
> add path 'usb' mode 0770 group operator
Either try adding your user to the dialer group as instructed by the
post-install package message (this is the preferred method, note you
need to logout and login after that), or add `add path 'cuaU*' mode
0660 group operator` as another rule in /etc/devfs.rules so you will
gain access to the /dev/cuaU* files as needed if that method works for
you with other devices :-)
You can restart devfs with `service devfs restart` as root no need to reboot :-)
> I don't understand the need for MINICOM. I currently use xterm.
> Will that work for the print output?
MINICOM can talk to the /dev/cuaU0 and other serial ports like this so
you can test if communication works with your device if other software
fails :-)
Good luck and have fun! :-)
Tomek
--
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
More information about the freebsd-usb
mailing list