Solved

RS232 Upload to PC

Posted on 1998-03-29
1
502 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

752 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