473,320 Members | 1,957 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,320 software developers and data experts.

how can I use the Serial COM port ???

I have a device that send to my computer information by serial com port.
The comunication parameters are:

PORT: COM 1
Bits per second: 9600
Data bits: 8
Parity: None (0)
Stop bits:1

How can I receive or transfer DATA by COM 1 serial port ???
Nov 16 '05 #1
3 2220
http://msdn.microsoft.com/msdnmag/is...netserialcomm/

"Swatcat" <Sw*****@discussions.microsoft.com> wrote in message
news:37**********************************@microsof t.com...
I have a device that send to my computer information by serial com port.
The comunication parameters are:

PORT: COM 1
Bits per second: 9600
Data bits: 8
Parity: None (0)
Stop bits:1

How can I receive or transfer DATA by COM 1 serial port ???

Nov 16 '05 #2
Hi Swatcat,

1) By C#, you can find references on serial com port.

3 ways:
a) using the ActiveX MSComm.ocx
b) manually write a library with platform invocation to kernel32.dll - check in gotdotnet workspaces, there is around 3 - 4 good examples.
c) wait for .net framework 2.0, there will be a built in. Probably this is not the best option.

2) If you want to test whether is there any data being transfer on your serial com port. Use this software. Quite amazing. I used it all the time.

HDD Serial Monitor:
http://www.hhdsoftware.com/Download/sermonlt.exe

Hope it helps.
--
Regards,
Chua Wen Ching :)
"Swatcat" wrote:
I have a device that send to my computer information by serial com port.
The comunication parameters are:

PORT: COM 1
Bits per second: 9600
Data bits: 8
Parity: None (0)
Stop bits:1

How can I receive or transfer DATA by COM 1 serial port ???

Nov 16 '05 #3
Hi,
I've had to do quite a lot of serial comms using C# and in my
experience this is the most lightweight/reliable/high
performance/easy-to-use library out there at the moment:

http://www.codeproject.com/dotnet/DotNetComPorts.asp

Its been used with many many different microcontrollers (including
Nokia mobile phones) with no problems (in contrast to some other
libraries out there - including the one on gotdotnet).

HTH
Kieran

"Chua Wen Ching" <ch************@nospam.hotmail.com> wrote in message news:<2B**********************************@microso ft.com>...
Hi Swatcat,

1) By C#, you can find references on serial com port.

3 ways:
a) using the ActiveX MSComm.ocx
b) manually write a library with platform invocation to kernel32.dll - check in gotdotnet workspaces, there is around 3 - 4 good examples.
c) wait for .net framework 2.0, there will be a built in. Probably this is not the best option.

2) If you want to test whether is there any data being transfer on your serial com port. Use this software. Quite amazing. I used it all the time.

HDD Serial Monitor:
http://www.hhdsoftware.com/Download/sermonlt.exe

Hope it helps.
--
Regards,
Chua Wen Ching :)
"Swatcat" wrote:
I have a device that send to my computer information by serial com port.
The comunication parameters are:

PORT: COM 1
Bits per second: 9600
Data bits: 8
Parity: None (0)
Stop bits:1

How can I receive or transfer DATA by COM 1 serial port ???

Nov 16 '05 #4

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

Similar topics

4
by: ^CeFoS^ | last post by:
Hello to everybody, I've done an application that draws in a frame the trajectory of a robot. The robot position is readed through the serial port, and several commands are wrote through the...
2
by: willie | last post by:
Hi, I'm writing a program which requires the use of three serial ports and one parallel port. My application has a scanning devices on each port, which I can access fine with pyserial. ...
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',...
13
by: Al the programmer | last post by:
I need to access the serial ports on my webserver from an asp.net page. I have no problem accessing the serial ports from a windows form application, but the code doesn't work in asp.net. I have...
4
by: joe bloggs | last post by:
I am writing a mobile application to interface with a legacy system and I am planning to use web services to communicate with this system. The legacy system receives data through a serial port. ...
4
by: Frank | last post by:
Hello, how to get information about all serial ports in the PC? I use the following code, but i got only the data of the FIRST serial port. All other serial port information are not available...
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...
4
by: rowan | last post by:
I'm writing a driver in Python for an old fashioned piece of serial equipment. Currently I'm using the USPP serial module. From what I can see all the serial modules seem to set the timeout when...
3
by: naveen.sabapathy | last post by:
Hi, I am trying to use virtual serial ports to develop/test my serial communication program. Running in to trouble... I am using com0com to create the virtual ports. The virtual ports seem to...
6
by: terry | last post by:
Hi, I am trying to send a character to '/dev/ttyS0' and expect the same character and upon receipt I want to send another character. I tired with Pyserial but in vain. Test Set up: 1. Send...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.