Solved

RS232 Upload to PC

Posted on 1998-03-29
1
499 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

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…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
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 be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

807 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