Serial port problem with USB-Serial driver of Solaris 10 SPARC

From: Andreas Höschler (ahoesch@smartsoft.de)
Date: Thu May 24 2007 - 05:05:42 EDT


Dear managers,

we use an EdgePort USB-Serial Adaptor to add four additional serial
interfaces to a SF 240 running Solaris 10. This adaptor is natively
supported by Solaris. When plugging the device into one of the USB
ports of the server, we get the devices

/dev/term/0
/dev/term/1
/dev/term/2
/dev/term/3

However, while I can open the native serial port /dev/term/a with the
following command.

    fdes = open("/dev/term/a", O_RDWR)

this does not work for the edgeport ports. The command

    fdes = open("/dev/term/0", O_RDWR)

blocks. I have to do

    fdes = open("/dev/term/a", O_RDWR | O_NDELAY);

to get it opened. Any idea why? I read the open manpage but not really
figured out what the O_NDELAY option is meant for. From time to time
the edgeport driver or the device itself seems to go into the woods.
Doing an open of the above form returns an invalid file descriptor
then. I have to unplug the edgeport, wait a few seconds and plug it in
again to get the whole scenario working again. No solution for a
production system.

Can I manually trigger the reinitialization of the edgeport interfaces
(the Solalris USB- Serial driver), e.g. by killing a process or calling
whatever script? I looked through "ps-Af" but found nothing that seemed
related. Hints are greatly appreciated. Thanks in advance!

Regards,

   Andreas
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:41:59 EDT