Thread: how can i read data from com port

  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    3

    Exclamation how can i read data from com port

    dear all,
    i want to read the data from the com port,i am a beginner so give brief idea about the com port reading and what book i have to read

    Thanks in advance

  2. #2
    Registered User Draco's Avatar
    Join Date
    Apr 2002
    Posts
    463
    Don't double post. If it was an accident it's fine, but please make sure you have read the rules to realize that this not only is against them, but usually makes people mad. Any books that involve the com port on www.thinkgeek.com would be at least decent ones, maybe you will have some success there.

  3. #3

  4. #4
    C maniac
    Join Date
    Aug 2004
    Location
    Cyberwarping to Middle Earth
    Posts
    154
    If your compiler supports inport or inp, then you can use them with 0x2F8 for COM2 or COM4, else 0x3F8 for COM1 or COM3.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Read data from file - C program ?
    By Pawan Sangal in forum C Programming
    Replies: 2
    Last Post: 08-22-2008, 04:28 AM
  2. Replies: 3
    Last Post: 02-29-2008, 01:29 PM
  3. I need help as soon as possible.
    By hyrule in forum C++ Programming
    Replies: 7
    Last Post: 11-09-2005, 05:49 PM
  4. Replies: 1
    Last Post: 09-10-2005, 06:02 AM
  5. DOS, Serial, and Touch Screen
    By jon_nc17 in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 01-08-2003, 04:59 PM