Solved

RS232 Upload to PC

Posted on 1998-03-29
1
496 Views
Last Modified: 2012-05-04
I'm using C++ Builder and need a way to recieve 512 bytes of data through a RS232 connection without using ZComm.  I'm using 8 data, 1 stop, 1 start, no parity, com2, 9600 baud.  The data is from a DSP chip and is 8 bit hex.  I need a way to save the data to a char array.  I thought about using "inportb", but I'm not familiar with it.
0
Comment
Question by:schmim04
1 Comment
 

Accepted Solution

by:
hf earned 50 total points
ID: 1183929
you can't use inportb because you are programming with windows and you have to go through a virtual device driver

look at the delphi super page "http://sunsite.icm.edu.pl/delphi/" in the c++builder freeware section for a component called "comthred"
The zip file contain instruction on installing a component and the component works very well

You can also use the win32 api functions to do the serial comms if you want to write it yourself.

look at the question "serial port in windows" in the "windows programming" section of experts-exchange for source code on using the win32 api's for serial comms

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
cb: unreferenced local variable 11 72
Which IDE to use to begin C++ training? 5 59
thread-safe code in c++ 2 82
operator overload: incompatible type and too many params 5 62
When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

932 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

10 Experts available now in Live!

Get 1:1 Help Now