C Board  

Go Back   C Board > General Programming Boards > Networking/Device Communication

Reply
 
LinkBack Thread Tools Display Modes
Old 09-12-2005, 07:25 AM   #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
File Type: txt sample.txt (14.6 KB, 64 views)
shraddha is offline   Reply With Quote
Old 09-12-2005, 10:48 AM   #2
and the hat of Jobseeking
 
Salem's Avatar
 
Join Date: Aug 2001
Location: The edge of the known universe
Posts: 21,650
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.

Salem is offline   Reply With Quote
Old 09-12-2005, 10:58 AM   #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.
shraddha is offline   Reply With Quote
Old 09-12-2005, 11:18 AM   #4
Registered User
 
Join Date: Aug 2005
Posts: 1,265
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.
Ancient Dragon is offline   Reply With Quote
Old 10-24-2005, 12:28 AM   #5
tin
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.
tin is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP program jakemott Linux Programming 14 10-06-2008 01:58 PM
brace-enclosed error jdc18 C++ Programming 53 05-03-2007 05:49 PM
Linux serial port interrupts danga1993 Linux Programming 1 04-28-2007 11:15 AM
Segmentation Fault - Trying to access parallel port tvsinesperanto C Programming 3 05-24-2006 03:28 AM
DOS, Serial, and Touch Screen jon_nc17 A Brief History of Cprogramming.com 0 01-08-2003 04:59 PM


All times are GMT -6. The time now is 10:26 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

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