Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

RS232 Upload to PC

Posted on 1998-03-29
1
Medium Priority
?
504 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 150 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 Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
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.
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.

715 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