Thread: Raw serial control in Linux

  1. #1
    Registered User crepincdotcom's Avatar
    Join Date
    Oct 2003
    Posts
    94

    Cool Raw serial control in Linux

    Greetings,

    Back many years ago, I figured out how to control the pins of a serial port independently under Win98 in VB6. IE, rather than writing data to the port, I could set two of the pins low or high as well as read the input state of three different pins.

    Does anyone know how to do this in linux? I know how to bit-bang a parralel port so bit math is no problem... I just can't find documentation on doing any sort of serial control on linux other than streams.

    Thanks in advance,
    Last edited by crepincdotcom; 09-12-2008 at 11:42 AM.
    -Jack C
    jack {at} crepinc.com
    http://www.crepinc.com

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    Good coverage of serial programming in Linux: http://www.easysw.com/~mike/serial/serial.html

    There is access to several pins, but not all (like Rx and Tx). Anything not provided by the existing driver means you would have to write your own driver.

    gg

  3. #3
    Registered User crepincdotcom's Avatar
    Join Date
    Oct 2003
    Posts
    94
    Sounds like fun :-p

    Thanks!
    -Jack C
    jack {at} crepinc.com
    http://www.crepinc.com

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Music Programming - Serial Matrix Display
    By CrazyHorse in forum C Programming
    Replies: 1
    Last Post: 11-12-2007, 04:16 PM
  2. Serial port programming in Linux
    By g4j31a5 in forum C++ Programming
    Replies: 1
    Last Post: 09-28-2006, 08:24 PM
  3. Why Linux, for the average user?
    By Hunter2 in forum A Brief History of Cprogramming.com
    Replies: 32
    Last Post: 07-07-2006, 02:36 PM
  4. installing linux for the first time
    By Micko in forum Tech Board
    Replies: 9
    Last Post: 12-06-2004, 05:15 AM
  5. Linux for Windows!
    By Strut in forum Linux Programming
    Replies: 2
    Last Post: 12-25-2002, 11:36 AM