Input via the serial port for a C program

This is a discussion on Input via the serial port for a C program within the C++ Programming forums, part of the General Programming Boards category; Hello I am doing a electronics cource at the moment and have done some C++ programming but not alot, what ...

  1. #1
    Registered User
    Join Date
    Jul 2005
    Posts
    2

    Question Input via the serial port for a C program

    Hello
    I am doing a electronics cource at the moment and have done some C++ programming but not alot, what I need to know is whats requried for a C program to read data from the serial port, I know about reading data from a file.

    The reason I ask is because I would like to send data from a 8051 to the com port and have a C program read and store the data.

    Any information or links would be helpful.
    Thanks Anthony

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,671
    I've just done a board search
    "serial port" Showing results 1 to 25 of 207
    Which of those is confusing you?

    Oh, and next time mention your OS and compiler.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Jul 2005
    Posts
    2
    Windows Xp
    microsoft Visual C++ 4.0

    I did a search and using "serial port" and your right there is a heap of information.
    I'll start reading

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Serial Port Questions
    By valaris in forum Tech Board
    Replies: 2
    Last Post: 05-22-2009, 08:26 AM
  2. Program Plan
    By Programmer_P in forum C++ Programming
    Replies: 0
    Last Post: 05-11-2009, 01:42 AM
  3. FTP program
    By jakemott in forum Linux Programming
    Replies: 14
    Last Post: 10-06-2008, 01:58 PM
  4. brace-enclosed error
    By jdc18 in forum C++ Programming
    Replies: 53
    Last Post: 05-03-2007, 05:49 PM
  5. fopen();
    By GanglyLamb in forum C Programming
    Replies: 8
    Last Post: 11-03-2002, 11:39 AM

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