Re: ni_usb with multiple devices

dave penkler <[email protected]>
Newsgroups gmane.linux.hardware.gpib.general
Message-ID <CAL=kjP0=SBoGm7pyotcbMsKf4Za==n_YDNL0uVzyj=pEdthBsA@mail.gmail.com>
BTW there is support for multiple cards in the USB hotplug scripts. See cut
and paste from INSTALL below:

Using multiple-boards of the same type with hotplug requires
udev support: In the hotplug scripts you can use either the
serial number $SERIAL or the device path $DEVPATH to decide
which board is to be associated with which minor in your
gpib.conf.  Using serial number it does not matter which usb
ports you use.  Using device path the association will be made
with the physical usb port in your system. To obtain the
serial numbers or device paths for your boards plug the boards
in and check the syslog for the output from the default
hotplog script. The order of the messages will correspond to
the order in which you plugged the boards in. Edit the hotplug
scripts to setup the serial numbers/device paths and minors
that correspond to your system.

On Thu, Dec 6, 2018 at 7:21 AM Frank Mori Hess <[email protected]> wrote:

> On Tue, Dec 4, 2018 at 5:42 AM Frank Mori Hess <[email protected]> wrote:
> >
> > On Mon, Dec 3, 2018 at 2:48 AM Manuel Mommertz <[email protected]>
> wrote:
> > >
> > > Just to make it clear: My patch selects the hardware by serial but
> (mis-)uses
> > > the config entry for device path to hold the wanted serial. That is
> the reason
> > > I call it quick and dirty.
> > >
> >
> > Oh, I missed that!  I'm going to fix it so it actually compares with
> > the device path.
> >
>
> Ok, now I see I was confused, thinking Linux had a universal device
> path for all buses.  But the device tree path on applies to devices
> coming from the device tree and doesn't apply to usb devices
> generally.  So, I reverted the whole deal.  The usb bus has it's own
> idea of a hardware path, but that should be selected by adding a
> different but similar ioctl to the one which specifies a device tree
> path.  Same goes for choosing by serial number.
>
>
> --
> Frank
>
>
> _______________________________________________
> Linux-gpib-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/linux-gpib-general
>

_______________________________________________
Linux-gpib-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-gpib-general
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.