473,395 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

need suggestion about serial port programming

Hi there,
I am using a tool kit from
ActiveComport(http://www.activexperts.com/activcomport/) serial port tools
kit. I have my sending method working, but I am having problem with my
reading method. anyone used this lib before? Please give me some hits.
following is my code for receiving data:

//=========================================
private void receiveData()
{
string receiveText;
//while(true)
//{
this.axComPort1.ComTimeout=5000;
receiveText = this.axComPort1.ReadString();

if(receiveText.Length>0|| !this.listened)
{
this.txtShow.Text+="|"+receiveText;
this.lstReceive.Items.Add(receiveText);
//break;
}
//}
}
//==========================================

Thanks


Pei
Nov 15 '05 #1
2 1313
No but there is a free tool written by an MS employee that I've been using for a while. I'm not sure how to find it, I think it was
called CommBase.

--
Michael Culley
"pei_world" <pe*******@hotmail.com> wrote in message news:e2**************@tk2msftngp13.phx.gbl...
Hi there,
I am using a tool kit from
ActiveComport(http://www.activexperts.com/activcomport/) serial port tools
kit. I have my sending method working, but I am having problem with my
reading method. anyone used this lib before? Please give me some hits.
following is my code for receiving data:

//=========================================
private void receiveData()
{
string receiveText;
//while(true)
//{
this.axComPort1.ComTimeout=5000;
receiveText = this.axComPort1.ReadString();

if(receiveText.Length>0|| !this.listened)
{
this.txtShow.Text+="|"+receiveText;
this.lstReceive.Items.Add(receiveText);
//break;
}
//}
}
//==========================================

Thanks


Pei

Nov 15 '05 #2
I have that as well, but I am not quite sure how it can be used in my
application.
can you help me?
my msn:pe*******@hotmail.com

pei
"Michael Culley" <mc*****@NOSPAMoptushome.com.au> wrote in message
news:eC**************@TK2MSFTNGP09.phx.gbl...
No but there is a free tool written by an MS employee that I've been using for a while. I'm not sure how to find it, I think it was called CommBase.

--
Michael Culley
"pei_world" <pe*******@hotmail.com> wrote in message

news:e2**************@tk2msftngp13.phx.gbl...
Hi there,
I am using a tool kit from
ActiveComport(http://www.activexperts.com/activcomport/) serial port tools kit. I have my sending method working, but I am having problem with my
reading method. anyone used this lib before? Please give me some hits.
following is my code for receiving data:

//=========================================
private void receiveData()
{
string receiveText;
//while(true)
//{
this.axComPort1.ComTimeout=5000;
receiveText = this.axComPort1.ReadString();

if(receiveText.Length>0|| !this.listened)
{
this.txtShow.Text+="|"+receiveText;
this.lstReceive.Items.Add(receiveText);
//break;
}
//}
}
//==========================================

Thanks


Pei


Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: rusttree | last post by:
Many moons ago, I took a class in embedded control at school. The course focused on a micro-controller mounted on a small electric car that was programmed using simple C code. The...
3
by: collinm | last post by:
hi i send a command to a led display, the led display is suppose to return me some character i write a string on a serial port void ledDisplayExist() { char msg={'\0', '\0', '\0', '\0',...
1
by: pei_world | last post by:
Hi there, I have search the web for serial port programming for age. I found some example codes. but I don't know how to test then. I don't have any idea how such program what undernearth. Can...
1
by: David | last post by:
I have written an application in VB.NET 2003 that uses the SAX serial component for RS232 communications with hardware. The program sets up 2 serial ports so that it can talk to 2 different...
38
by: shussai2 | last post by:
Hi, I am trying to access Serial Port in XP. I am using Dev-C++ IDE that uses Mingw as a compiler. I just want to know how I can open up serial port on COM1 and write some data. I have searched...
13
by: Rob | last post by:
Hi all, I am fairly new to python, but not programming and embedded. I am having an issue which I believe is related to the hardware, triggered by the software read I am doing in pySerial. I...
20
by: Nickolai Leschov | last post by:
Hello all, I am programming an embedded controller that has a 'C' library for using its system functions (I/O, timers, all the specific devices). The supplied library has .LIB and .H files. ...
4
by: JDS | last post by:
I have an application that interfaces with a USB device using the .Net serial port. The code works fine, displaying live data on the screen; that is until the USB lead is pulled out from the PC...
3
by: akshaycjoshi | last post by:
IT"S A LONG QUESTION.PLEASE BE PATIENT TO READ IT. I HAVE EXPLAINED IT TO MY MAXIMUM CAPACITY. I am making one app. in which i need to create a seperate access database for each day. Its a...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.