Find the answer to your Linux question:
Results 1 to 6 of 6
Hello, here the sun is shinning under light clouds and the birds have begun a lyrical competition. Every thing's fine... however I encounter problems with my pc: I'm a newby ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2008
    Posts
    4

    Question Serial Port Logger


    Hello,

    here the sun is shinning under light clouds and the birds have begun a lyrical competition. Every thing's fine... however I encounter problems with my pc:

    I'm a newby in linux world. I'm looking for a small app able to scan the serial port (rs232) of my computer, read the every-1-second 100-characters line and write it to a file. In brief I'm looking for a simplistic serial port logger.

    The ideal solution would be to create daily files.

    I have made extensive research over the web and haven't any app available, a lot of port "sniffers" but no loggers (only one in development in sourceforge but no release yet). Does it mean I have to write a script by myself? where should I begin?

    Please excuse my inexperience!

    Thank very much for your help,

    Bosse2Nage

  2. #2
    Just Joined!
    Join Date
    Jun 2008
    Posts
    39
    Are you a programmer but new to Linux? If so, you can write your own port logger for the RS232 port. You would probably use an ioctl to get the data values of the port and then write them to the log.

    What are you logging RS232 for?

  3. #3
    Just Joined!
    Join Date
    Jun 2008
    Posts
    4
    Hi felPmy,

    thank you for your suggestion!

    I am actually a poor programmer. Since my post I found the perfect tool: kermit. Not the frog but the serial and network communication software, it offers greats services. A command "log session" allows to record any line transmitted by any serial port.

    Thank you anyway for your help,

    Best Regards,

    francois

  4. #4
    Just Joined!
    Join Date
    Jun 2008
    Posts
    39
    "Session logging and debugging. "
    C-Kermit 8.0 Specifications

    What is your RS232 application?

  5. #5
    Just Joined!
    Join Date
    Jun 2008
    Posts
    4
    an ultrasonic anemometer!
    we want to install it on a stand-alone station.

  6. #6
    Just Joined!
    Join Date
    Jun 2008
    Posts
    39
    9-pin RS232? One sample per second ttyS0.

    Does Kermit provide the logging capability that you need for the ultrasonic anemometer? Have you connected this RS232 device to Linux already and it works? What application will you use to make sense of the log files?

Posting Permissions

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