Solved

RS232 interfacing program

Posted on 2003-11-18
4
776 Views
Last Modified: 2012-06-27
Hello All,

I am new to this list and am not sure if this is the right place to ask this question. Nonetheless, I am sure that you computer gurus can provide me some pointers.

What I am trying to do is this:

I have a camera shutter driver that is connected to COM1 port and a camera image processing unit that is connected to the parallel (printer) port. I am using a null modem cable as a physical interconnect between the COM1 and the camera shutter driver which supports only RS232 mode of communication. I am interested to control the driver and the image processing unit by writing a program in a PC that is used as a controller. The PC has Windows 98 installed in it, and I am using a Turbo C++ 7.0 compiler. I am using the bioscom command to communicate with the devices over the RS232 Link.

While compiling the program, I am getting an error in dos.h which states  that the following are wrong:

void _Cdecl setvect (int interruptno, void interrupt (*isr()); -> This says function definition out of place

void interrupt (*_Cdecl getvect(int interruptno)) (); -> the same error here as well.

I am not sure what exactly the problem is, though I suspect a compiler mismatch. Can any one of you please let me know what I could do to rectify this error? Or perhaps provide me some help (or an alternative link) so that I could
get the program working.

Thanks a lot in advance!

Dip
0
Comment
Question by:dguha
4 Comments
 

Accepted Solution

by:
alistairmcnicoll earned 50 total points
ID: 9833506
No idea about the ins and outs, but a friend of mine maintains an opensource RS232 driver at sourceforge.net - you might be able to either skim through his code for clues or even use his driver, which has been tested pretty rigourously:

http://sourceforge.net/projects/dzcomm/

Al
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how to open Waze.com/livemap from address saved in DB? 26 175
wordcount challenge 11 103
python sqlite question 11 46
Regular Expression Calculator Tester 2 48
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
This is about my first experience with programming Arduino.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now