Need help or info about serial port communication

This is a discussion on Need help or info about serial port communication within the Linux Programming forums, part of the Platform Specific Boards category; Hello all, I have to port some C code from windows to linux, this code will comunicate with a filter ...

  1. #1
    Unregistered
    Guest

    Need help or info about serial port communication

    Hello all,

    I have to port some C code from windows to linux, this code will comunicate with a filter wheel on the serial port( this a simple step motor that moves the wheel around, to differant positions and has a home position.)

    I do not know how to do this, so some information on how I would go about this would be helpful. The windows source code was written in C.

    It first sets the device(number of filters,steps etc...)
    Opens the port
    Gets the port config
    Has 2 functions to write and read data to the port
    Closes the port
    Sets the filterposition and has a stepmotor function

    Any help from similiar serial port projects or code that I could view that would help with these 6 tasks would be most helpful.

    thanks a lot.

    David Walker

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,434

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Duplex communication thro serial port
    By Priyachu in forum Networking/Device Communication
    Replies: 1
    Last Post: 05-30-2009, 04:24 AM
  2. Duplex communication thro serial port
    By Priyachu in forum Linux Programming
    Replies: 1
    Last Post: 05-30-2009, 04:03 AM
  3. Serial port Communication
    By vin_pll in forum C++ Programming
    Replies: 23
    Last Post: 01-07-2009, 08:32 AM
  4. Serial Port Communication
    By maxorator in forum C++ Programming
    Replies: 11
    Last Post: 04-27-2006, 03:13 PM
  5. DOS, Serial, and Touch Screen
    By jon_nc17 in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 01-08-2003, 03:59 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21