PC Review


Reply
Thread Tools Rate Thread

Communication using the docking port

 
 
jayderk
Guest
Posts: n/a
 
      25th Aug 2004
Hello all,

I have an interesting challange, we are trying to hook a pda up to a
satellite antenna to send data to our server. we are of course using the
docking port on the pda and .net compact framework. Am I going to be able to
send a webrequest/response over the docking port?

what I mean is in order for the pda to transfer data over the docking port
activesync has to have made a connection, if I just use openNETCF.IO.Serial.
open("COM1:\0") will the .net compact framework call

*****************************************
req.Method = "POST";
req.ContentType = "text/plain; charset=utf-8";
byte[] encodedBytes = Encoding.UTF8.GetBytes(requestXml);
req.ContentLength = encodedBytes.Length;
if(timeOut.Length > 1)
req.Timeout = int.Parse(timeOut);

Stream reqStream = req.GetRequestStream();
reqStream.Write(encodedBytes, 0, encodedBytes.Length);
reqStream.Close();

WebResponse result = req.GetResponse();
return (Stream)result.GetResponseStream();
if(req != null)
req = null;
******************************************

know to use the docking port to communicate?

Cheers,
Jay


 
Reply With Quote
 
 
 
 
Dick Grier
Guest
Posts: n/a
 
      26th Aug 2004
The OpenNETCF serial class is used to access local serial ports. If your
device has a local port (usually Com1, not Com0), and ActiveSync is not
using that port, then you may open it and use it.

However!!! This employs standard Windows serial APIs. It does not employ
the TCP/IP or other network stack. So, it cannot be used with an internet
connection. At least, not without work that goes beyond normal scales.

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
docking station serial port biffo71 Microsoft C# .NET 0 3rd Nov 2008 12:39 PM
USB port communication? =?Utf-8?B?aXdkdTE1?= Microsoft VB .NET 3 28th Jul 2005 08:27 PM
Communication to TCP-IP Port =?Utf-8?B?S2VuSW5BdGw=?= Microsoft Access VBA Modules 3 25th Apr 2005 04:38 PM
Com port communication JoskeXp Microsoft VB .NET 3 30th Jun 2004 10:23 PM
LTP port : communication scott Windows XP Hardware 2 24th Mar 2004 01:01 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:56 AM.