servicing COM port interrupts

This is a discussion on servicing COM port interrupts within the Networking/Device Communication forums, part of the General Programming Boards category; this is a code which i have picked up from the internet.... now after i run this code ,i dont ...

  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    9

    servicing COM port interrupts

    this is a code which i have picked up from the internet....
    now after i run this code ,i dont any kind of output.as in the code is not able to sense the interupt .that is the reason when it does not read anything coming in from the port.i want to capture the stream of data coming in via the modem through COM3.but the problem here is i m not able get any output for this prog.
    Attached Files Attached Files

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,761
    Lemme guess, you tried to compile this using some new compiler on some new OS?
    Look at the dates - 1990 - that's old!!!!
    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
    Sep 2005
    Posts
    9
    no!!! i have compiled it using Turbo C compiler...
    the problem for me is ,i m not understanding wht shuld be the output ideally??

    thank u.

  4. #4
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    you will not see anything on your computer's screen unless you attach something to the serial port that will echo (send) something to the serial port so that the program can capture and display it.

    It may only work with MS-DOS 6.X and earlier, or Win95/98. I double it will work at all on Windows 200 or XP.

  5. #5
    tin
    tin is offline
    Registered User
    Join Date
    Sep 2004
    Posts
    12

    Capture from network interface instead of port

    You may want to capture from the protocol stack instead of directly from the port. You'll need a newer compiler though.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. FTP program
    By jakemott in forum Linux Programming
    Replies: 14
    Last Post: 10-06-2008, 02:58 PM
  2. brace-enclosed error
    By jdc18 in forum C++ Programming
    Replies: 53
    Last Post: 05-03-2007, 06:49 PM
  3. Linux serial port interrupts
    By danga1993 in forum Linux Programming
    Replies: 1
    Last Post: 04-28-2007, 12:15 PM
  4. Segmentation Fault - Trying to access parallel port
    By tvsinesperanto in forum C Programming
    Replies: 3
    Last Post: 05-24-2006, 04:28 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

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