Results 1 to 3 of 3

Thread: COM ports in Linux, how do I set them up?

  1. #1
    Join Date
    Apr 2007
    Location
    Staunton, Va. USA
    Beans
    447
    Distro
    Ubuntu 15.04 Vivid Vervet

    COM ports in Linux, how do I set them up?

    Background: I have a Weather display station that is connected to my desktop via a Serial port. The software (Heavy Weather) runs on Windows, so I am using WINE. This application allows me to select from COM port 1,2,3, or 4, but my Ubuntu OS does not see any COM selections. I also have a couple of other pieces of hardware that connect via the Serial port. In fact I have three (3) physical Serial ports on the rear panel of my desktop.

    Question: How do I configure Ubuntu to utilize these Serial ports. I have seen some sltuff about ttyS but none of it is descriptive enough to help me.

    So I would like to have this weather station on one Serial port, my UPS communication link on another Serial port, and the third is for an infrared connection for a fun device.
    WhiteBoxComputer:GigabyteGA-A75-UD4H MB,AMD A6-3670 APU, 640GB HD, 16GB RAM, System76 Lemur Laptop,4GB RAM,250SSD w/15.04OSAcerAspireOneNetbook725 6GB RAM, 320GB HD :AcerOneNetbookAO150,1.5GB RAM,120GB HD,2GB RAM 320GB HD. 14.04LTS

  2. #2
    Join Date
    Nov 2006
    Location
    Craggy Island.
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: COM ports in Linux, how do I set them up?

    Im not sure if this will help you as normally I use the comport to configure stuff or talk to modems, so I am not sure how its going to work for your particular application.

    What I can tell you is that on a wiondows box you have Com 1 com2 and so on.
    In Ubuntu/Linux its ttyS0, ttyS1 etc.
    to find out what you have, you would rung

    dmesg | grep tty

    Heres the output from my machine, showing my comports available


    [ 0.000000] console [tty0] enabled
    [ 0.533704] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
    [ 0.533824] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
    [ 0.534306] 00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
    [ 0.534494] 00:09: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A


    tty0 is my virtual console.
    ttyS0 and 1 are my comports on my machine


    Normally I would use this information for configuration of my ports using minicom, but in your case, Im not sure what is required for that program to work.
    You can tell a man who boozes by the company he chooses, as the pig got up and slowly walked away.

  3. #3
    Join Date
    Feb 2007
    Location
    West Hills CA
    Beans
    9,280
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: COM ports in Linux, how do I set them up?

    Install setserial:

    Open a terminal:

    Code:
    sudo apt-get install setserial
    man setserial
    -------------------------------------
    Oooh Shiny: PopularPages

    Unumquodque potest reparantur. Patientia sit virtus.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •