Re: Serial ports



Marco Trapanese <marcotrapaneseNOSPAM@xxxxxxxxx> writes:

Mark Hobley ha scritto:

Most PCs support more than one serial port at controller level. It
is probable that your computer has more than one serial port
connector on the motherboard, even though only one is connected to
the outer case. Even if there is only one connector on the
motherboard, the controller chip is designed for more than one.

You're right, but the control panel of Windows XP tells me I have only
COM1 (the one connected to the outer case). So I assume my motherboard
has only one serial.

What Windows shows doesn't mean much. Plug and unplug a USB-serial
converter a few times on a Windows machine and watch the number of
listed COM ports grow. Only COM1 being displayed is probably a result
of the vendor removing the unconnected COM2-4 from the configuration.

You could either ask a question during installation, as to which
ports to use with this application, or you could examine the line
statuses to determine which ports have devices attached.

I'm sorry if I compare Windows and Linux, but I need to rewrite
software from there. In my applications I have a combo box which shows
the available serial ports. For example I can add 4 USB-RS232
converter and obviously Windows (and therefore my application) will
show up them.

USB serial adapters usually show up as ttyUSBn (n=0,1...) in Linux.
Some USB devices get ttyACMn names.

I want to do the same thing in Linux, no matter what the user know
about the system. He want to see which are the available serial ports.

The simplest and most robust thing to do is to use /dev/ttyS0 as
default, and provide a free-form entry for an override. Don't bother
trying to enumerate the actual ports. Someone could be using some
exotic hardware with a completely different name for the devices.

--
Måns Rullgård
mans@xxxxxxxxx
.



Relevant Pages

  • Re: 1-wire to USB converter that can use 1820s directly
    ... than to need to add another PCI card to support serial ports. ... how someone could finally say "not one more f'ing wire!" ...
    (comp.home.automation)
  • Re: Another 1.500 Job Losses - Time And Tiny Computers Go Under !
    ... > previous Windows compatible hardware and software. ... But that kind of thinking is what crippled none NT based windows, legacy ... MS has phased out support for serial, parallel and joystick ports in XP, ... parallel and serial ports are used, ...
    (uk.politics.misc)
  • Re: Front USB port problems
    ... Well the conectors are square and separated, not 1 whole connector for all ... there a way to test them to know if the ports are ok? ... > | Pin out and I connected it correctly, I downloaded the USB ... > | installed them, windows recognizes the ports, now instead ...
    (microsoft.public.windowsxp.general)
  • Re: remote access KVM switch
    ... ->>seen so many Lightwave KVM switches around in server rooms. ... Some console servers even allow ssh access. ... -> very sophisticated, but it has 30 serial ports, telnet ...
    (comp.sys.sun.admin)
  • Re: Serial Ports not working in XP
    ... Are the ports enabled in the system BIOS? ... Associate Expert - WindowsXP Expert Zone ... Windows help - www.rickrogers.org ... > says the serial ports pass the tests administered by the ...
    (microsoft.public.windowsxp.basics)