From: r_z_aret on
I suggest you test first by starting a terminal program on the desktop
and trying to use your program on the Pocket PC. If you can find a
terminal program that runs on a Pocket PC (probably exists, but I've
never looked), then using it with your program running on the desktop
would probably be an even better first step.

I'm not sure what you're doing about hardware. If you have a serial
cable that you already use with ActiveSync, that should work for your
program(s) as well. If you are making your own cable, remember that
you are connecting two computers, so you must effectively use a "NULL"
modem; that means pin 2 on one computer must be connected to pin 3 on
the other, plus a few other details I don't remember.


On Sun, 18 Sep 2005 20:15:17 +0300, Paraschiv Victor
<dr.vick(a)gmail.com> wrote:

>I intend to build 2 programss 1 for win app and 1 for Pocket PC in order
>to connect them via serial port. I'm using .NET framework 20.
>
>In the win app I use:
>
>private void Form1_Load(object sender, EventArgs e)
>{
>SerialPort sp = new SerialPort("COM2", 19200);
>sp.DataReceived += new SerialDataReceivedEventHandler(sp_DataReceived);
>
>sp.StopBits = StopBits.One;
>sp.ReadTimeout = 500;
>sp.WriteTimeout = 500;
>sp.Open();
>}
> for writing :
>sp.WriteLine(txtMessage.Text);
>
>and for reading:
>txtMessage = sp.ReadLine();
>
>In CF app I use the same parameters for connection and the same
>procedures for sending/reading data. The 2 devices are connected with a
>cable from HP.
>
>The problem is that neither the win app nor the CF app receives any
>string or any message. I get a connection timeout exception. I really
>can't figure it out what is the matter.
>
>I also tryed to insert a mother/mother rs232 cable in COM2 and connect
>with a wire pins 2 and 3. But I also got nothing.
>
>
> Thanks a lot,
> Victor Paraschiv

-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
500 Harrison Ave., Suite 3R
Boston, MA 02118
www.penfact.com