Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Jun 2020 00:25:58 +0200
From:      Tomasz CEDRO <tomek@cedro.info>
To:        freebsd@dreamchaser.org
Cc:        Hans Petter Selasky <hps@selasky.org>, "freebsd-usb@FreeBSD.org" <freebsd-usb@freebsd.org>
Subject:   Re: arduino usb/com port issue
Message-ID:  <CAM8r67Beey9CREUjnks-An=eeAA9wVGWb_KkZkX-NV8kzxtCOQ@mail.gmail.com>
In-Reply-To: <43628ef3-fc10-4bd8-4314-04a84a956d62@dreamchaser.org>
References:  <59da59d9-f0f0-0b30-f112-1c0af5f5399f@dreamchaser.org> <e17b8319-69c1-de73-678e-b7c9572da927@selasky.org> <CAM8r67Cx9DJ8EHGYmWiZVG_UOBdeyzJWdNKfxz-z_2pzbaAbmA@mail.gmail.com> <43628ef3-fc10-4bd8-4314-04a84a956d62@dreamchaser.org>

index | next in thread | previous in thread | raw e-mail

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


help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAM8r67Beey9CREUjnks-An=eeAA9wVGWb_KkZkX-NV8kzxtCOQ>