Thread: reading and writing from a COM port

  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    1

    reading and writing from a COM port

    Hello All,

    I want to read and write to a COM port in Windows Xp. I am using the code blocks IDE with the GNU GCC compiler.

    I understand that different compilers have different functions to read and write to a COM port. How do I do it under GNU GCC (MingW).

    Thanks,

    abq_guy

  2. #2
    Registered User ssharish2005's Avatar
    Join Date
    Sep 2005
    Location
    Cambridge, UK
    Posts
    1,732
    Have a look the link. It gives an idea oon how to program RS232 on a windows platform.

    http://www.robbayer.com/files/serial-win.pdf

    -ssharish
    Life is like riding a bicycle. To keep your balance you must keep moving - Einstein

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. serial port to poll on request
    By infineonintern in forum C++ Programming
    Replies: 2
    Last Post: 06-11-2009, 06:52 AM
  2. Replies: 3
    Last Post: 03-05-2009, 03:14 AM
  3. Reading and writing to a serial port
    By SwarfEye in forum C Programming
    Replies: 2
    Last Post: 08-18-2006, 12:28 AM
  4. accessing my com port, writing and reading data
    By shoobsie in forum C Programming
    Replies: 7
    Last Post: 09-16-2005, 03:29 PM
  5. file writing and reading
    By Micko in forum C Programming
    Replies: 8
    Last Post: 01-13-2004, 11:18 AM