Re: Recommendations for a serial port card you can actually BUY?



On Sun, Oct 08, 2006 at 04:14:44PM +0200, Matthias Andree wrote:
Karl Denninger <karl@xxxxxxxxxxxxx> writes:

Uh, if you unplug a working serial device's USB cable, you've got bigger
problems :)

So you think? USB is hotplug, and it doesn't have to be a port in use
that you're unplugging.

I realize that but my point is that if you unplug a serial port that has a
process connected to it you're going to yank its file descriptor out from
under it, and it will not be pleased about that!

If you plug and unplug ONLY ONE, it should ID in the same place, since
there's a "hole". If you plug / unplug more than one, I can live with the
penalty being a required reboot. After all, these are NOT supposed to be
tampered with while the machine is running!

OK, that makes things easier.

Perhaps un-/reloading the kernel driver modules (if compiled as module)
is sufficient anyways -- the module will probably reprobe everything upon
reload; OTOH you can check usbd and devd and things if you can pin
devices to certain ordering.

I'm likely going to have a shell script that runs at boot and creates a
"local device" directory with symlinks to the ucom ports involved, based on
their physical location. This way Device #1 that is connected to USB Serial
Adapter #1 can always open /ldev/usb-serial1 and GET the first USB serial
device (plugged into the first physical USB port), no matter in what order
they identify.

--
--
Karl Denninger (karl@xxxxxxxxxxxxx) Internet Consultant & Kids Rights Activist
http://www.denninger.net My home on the net - links to everything I do!
http://scubaforum.org Your UNCENSORED place to talk about DIVING!
http://genesis3.blogspot.com Musings Of A Sentient Mind


_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Installing a program which requires a COM Port - What if you have no COM Port?
    ... > up" the COM1 port once the mouse is removed from it? ... Unplug the mouse, plug in a USB mouse and the COM port is now clear. ... Lovin life on Mercer Island 8^) ...
    (microsoft.public.windowsxp.general)
  • Re: MOUSE PROBLEM
    ... About once an hour, my mouse freezes. ... I need to unplug it from the USB ...
    (microsoft.public.windowsxp.general)
  • Switching USB port for default printer
    ... I have a USB printer setup as a local default printer with printer port USB001. ... unplug the USB cable and plug it back in, Windows will install a copy of the printer on port USB002. ...
    (microsoft.public.windowsxp.general)
  • USB to Virtual COM Port: Keeping COM Port Existing
    ... When I unplug a device from COM2, COM2 remains an existing port to any ... a USB to virtual COM port ...
    (microsoft.public.development.device.drivers)
  • usb_insert_transfer panic with if_zyd
    ... When I use my ZyXEL G-220 Wireless USB Stick with the if_zyd driver, ... <ACPI PCI bus> on pcib0 ... device problem, disabling port 1 ... <Ethernet over FireWire> on firewire0 ...
    (freebsd-current)