reading and writing from a COM port

This is a discussion on reading and writing from a COM port within the C Programming forums, part of the General Programming Boards category; Hello All, I want to read and write to a COM port in Windows Xp. I am using the code ...

  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,682
    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, 07: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, 01:28 AM
  4. accessing my com port, writing and reading data
    By shoobsie in forum C Programming
    Replies: 7
    Last Post: 09-16-2005, 04:29 PM
  5. file writing and reading
    By Micko in forum C Programming
    Replies: 8
    Last Post: 01-13-2004, 11:18 AM

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