Re: usbserial driving multiple devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, May 02, 2011 at 10:23:19AM -0700, Steve Calfee wrote:
> On 05/02/11 09:36, azimout@xxxxxxxxx wrote:
> > On 2 May 2011 18:05, Greg KH <greg@xxxxxxxxx> wrote:
> >> On Mon, May 02, 2011 at 05:52:03PM +0200, azimout@xxxxxxxxx wrote:
> >>> Hello list,
> >>>
> >>> I was wondering if there's a way for usbserial.ko to drive multiple
> >>> devices when it's loaded manually. Specifically, I want to connect to
> >>> professional GPS/GNSS receivers via USB and talk to them through a
> >>> serial connection over USB.
> >>>
> >>> I can make it work for each single one, through "sudo modprobe
> >>> usbserial vendor=xxxx product=yyyy", but I cannot run this command a
> >>> second time to make it create a second /dev/ttyUSB[09] device (this is
> >>> not true; I can run it a second time, and it exits without error, but
> >>> since the module is already loaded, it doesn't have the desired
> >>> effect).
> >>
> <snip>
> > 
> > Greg, thank you for the prompt response.
> > 
> > The first device is a Novatel OEMV board. The vid/pid pair is [09d7:0100].
> > The other device is a Javad Delta board. The vid/pid pair is [1a46:0000].

What chip type are these devices?  We need to know that as odds are the
generic driver is _not_ the proper way to control these devices.  The
generic driver has no flow control, or any type of line settings, which
I think you will want to properly handle these devices, right?

> > However, I guess I will see this in the next kernel version. Is there
> > anything I can do now, to be able to work with both?
> > 
> 
> Buried in the /sys file system is a driver for your type device.

Huh?  Which one?

> Check gout the new_id entry, it allows you to assign new VID/PID to an
> existing driver.

Yes, you can add new device ids to the generic usb-serial driver after
it has been loaded, that would work, but again, it's not the nicest way.



> 
> Regards, Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux