| Author |
Message |
pd
Joined: 23 May 2006 Posts: 95 Helped: 3 Location: India
|
09 Jan 2008 4:43 serial communication between two PCs |
|
|
|
Hi!
I want to do a serial communication between a PC and an Oscilloscope with Windows in it.It has also got a serial port.
Can anybody help me on how to do that in C/C++/Perl/VB?
I would appreciate if a working code is explained as an example.
Thanks in advance!
-pd
|
|
| Back to top |
|
 |
senthilkumar
Joined: 24 Nov 2001 Posts: 610 Helped: 3 Location: india
|
09 Jan 2008 6:11 serial communication between two PCs |
|
|
|
| use MSCOMM active x Control in VB.in MSDN they have example Programme
|
|
| Back to top |
|
 |
aisex
Joined: 25 Jan 2008 Posts: 2
|
25 Jan 2008 11:53 serial communication between two PCs |
|
|
|
| o ,good
|
|
| Back to top |
|
 |
andre_teprom
Joined: 07 Nov 2006 Posts: 159 Helped: 11 Location: BRAZIL - Rio de Janeiro
|
25 Jan 2008 13:38 Re: serial communication between two PCs |
|
|
|
If you want connect 2 PC´s, you will need a serial cross cable ( named NULL MODEM cable ). It inverts pins 2 and 3, and flow control signals pins too.
Also, if you are using - for example - C++Builder or Delphi, it have some examples in the Web using Windows API.
+++
|
|
| Back to top |
|
 |
master_picengineer
Joined: 03 Sep 2007 Posts: 1073 Helped: 62
|
25 Jan 2008 13:43 serial communication between two PCs |
|
|
|
| Try it with Delphy. Use the comport utility.
|
|
| Back to top |
|
 |
manish12
Joined: 21 Nov 2006 Posts: 869 Helped: 24
|
30 Jan 2008 18:06 Re: serial communication between two PCs |
|
|
|
| you can search ADC0820 oscilloscope vc project , and you can use the mscom for creating pc communication between two pc.
|
|
| Back to top |
|
 |
nrajeshwar
Joined: 28 Jan 2008 Posts: 1
|
01 Feb 2008 4:24 Re: serial communication between two PCs |
|
|
|
try it with labview VISA subvi.
|
|
| Back to top |
|
 |
Shani
Joined: 26 Jul 2006 Posts: 60 Helped: 3 Location: Karachi, Pakistan
|
27 Feb 2008 8:52 serial communication between two PCs |
|
|
|
Hello !
You can use the " SaxComm6.ocx " for the serial communication between two PCs.
|
|
| Back to top |
|
 |
davidgrm
Joined: 08 Apr 2006 Posts: 155 Helped: 9
|
12 Mar 2008 12:39 Re: serial communication between two PCs |
|
|
|
| Take a look at the CPORT libraries. I think that they work in most compilers. I have used it with Delphi and Borland builder. Works well and has many features. Easy to use
|
|
| Back to top |
|
 |
AdvaRes
Joined: 14 Feb 2008 Posts: 456 Helped: 20
|
12 Mar 2008 15:23 serial communication between two PCs |
|
|
|
| Use Delphy with Comport component. It is very usefull and easy to use.
|
|
| Back to top |
|
 |
Raj123456789
Joined: 12 Mar 2008 Posts: 5
|
17 Mar 2008 13:23 Re: serial communication between two PCs |
|
|
|
Hai
First Check the Serial Communication Between PC and Scope through Hyper Terminal in windows.If It's Working then We can easily Communicate through Vb.
Using Vb We can send and recive data in serial port easily.Using MsCOMM32 Activex Control.
By
R.Rajesh kumar
|
|
| Back to top |
|
 |
vsmGuy
Joined: 26 Jun 2006 Posts: 456 Helped: 23
|
17 Mar 2008 18:30 serial communication between two PCs |
|
|
|
The TeraTerm Pro source code is widely available.
Study it and you will be easily be able to not only solve your problems but those of others too !
|
|
| Back to top |
|
 |
jr600400
Joined: 05 Apr 2007 Posts: 25 Helped: 1 Location: palestine
|
23 Mar 2008 16:26 serial communication between two PCs |
|
|
|
hay all
i will give an idea
i use the serial port to control dot matrix desplay before
and you can mak small test on it by usingthe c languge
youmust have the MILINUM windows
and by using the port number instruction you can make amazing things
try and say hi
|
|
| Back to top |
|
 |
mezo
Joined: 16 Jul 2007 Posts: 20 Location: Egypt
|
20 Apr 2008 23:07 Re: serial communication between two PCs |
|
|
|
you can perform this connection using c\c++ using these instructions:
outp()
inp()
you shall have their prototype in c compiler help .
you only have to know the number of the serial port you are using .
you can know the number of the serial port from device manager .
you also need to know the baud rate of the transmitting/recieving com
|
|
| Back to top |
|
 |
Sayem Ahmed
Joined: 07 Apr 2008 Posts: 49 Helped: 3 Location: Dhaka,Bangladesh
|
28 Apr 2008 20:13 Re: serial communication between two PCs |
|
|
|
HELLO!!!!!!!!!
I am already interested on it . I use parallel port in c++ with outportb comand
with port address 378.
Port address for serial port may be 3F8. So can we use outportb with port
address 3F8. Would it work.
Let's try & let me know what happen.
|
|
| Back to top |
|
 |
goslock
Joined: 17 Oct 2006 Posts: 22 Helped: 3
|
30 Apr 2008 1:42 Re: serial communication between two PCs |
|
|
|
that C++ compiler you use?
Because if it is in DOS if you have to work directly with their addresses and records, but if a version of C in visual mode you have to enter the port as a file and what type in the open and then close
|
|
| Back to top |
|
 |
thuvu
Joined: 03 Jan 2006 Posts: 68 Helped: 6
|
30 Apr 2008 9:20 serial communication between two PCs |
|
|
|
look at this site
http://www.beyondlogic.org/serial/serial.htm
|
|
| Back to top |
|
 |
Sayem Ahmed
Joined: 07 Apr 2008 Posts: 49 Helped: 3 Location: Dhaka,Bangladesh
|
30 Apr 2008 20:30 Re: serial communication between two PCs |
|
|
|
WinXP does not support user mode operation.
They handle all port securely so it is not possible to access port directly by addressing
in DOS by Borland c++ or others.So when I am using them to access parallel port have to download a driver and install them in system32.
Now is there any such driver available for serial port.Please some one upload it.
|
|
| Back to top |
|
 |
FINALFANTASYFAN
Joined: 22 Mar 2007 Posts: 16
|
01 May 2008 9:31 serial communication between two PCs |
|
|
|
Hi , every body!
I'm taking a small example of communicating through RS232 using CMSComm. But it got me to trouble.
It seems that the receive buffer is never cleared when I use m_Comm.GetInput(). I can achieve the data sent to COM port but the receive buffer gonna be full and overflow. I try to catch out what's going on by adding a byteCounter and surprisingly, the total bytes I receive is exactly the size of the receive buffer.
That is, if buffer'size is 9192, I can get 9192 bytes only till I get a receive buffer overflow event. A AfxMessage is popped up for warning. Click OK then I can receive 9192 bytes more before I get another overflow event. ( so I think when AFxMessage is popped up, the buffer is cleared )
Does anybody know whu the buffer is not cleared when I read it and how to solve??? Because I'm sending a quite big file through COM port ( typically bigger than the reasonable buffer's size - up to 1MB )
Thanks in advance!!!
|
|
| Back to top |
|
 |