Solved

RS232 Upload to PC

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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.

743 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

9 Experts available now in Live!

Get 1:1 Help Now