serial communication from VB.NET

  • Thread starter Thread starter Mobileboy36
  • Start date Start date
M

Mobileboy36

Hi Group,

Normally i Pinvoke the ftp-functions of "wininet.dll" to transfer textfiles
from the pocketpc to another platform.
I'm searching an "easy" way to transfer files (not a bytestream) from the
pocket pc to a desktop using RS232.
Using Active sync is not an option for me because I want to have full
control from within my application.
(or has anyone a vb.net implementation for the active sync API and the
SyncData Function)

Are there .NET compact framework libraries available with serial
functionality wich behaves like the ftpPutfile function?
What I want is a function simply returning true, if a file is communicated
correctly over RS232 (serial)

Best regards,
Mobile boy
 
If you allow ActiveSync connections, they are pretty much network
connections, in 4.x and later. You should be able to use your original FTP
code.

Paul T.
 
Serial and FTP are not the same - not really even similar. There are
classes for Serial communication in the CF, but they don't have anything
liek what you're after. To achieve that you'd need to create a desktop
"listener" (effectively the FTP server, but for serial) and then a protocol
API that would sit on top of serial.

It's not difficult, but it's a lot of work. I question the value in doing
it. What's your overall goal? To transfer files from a cradled device to
the PC without using ActiveSync? Why is ActiveSync out of the question?


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Managed Code in an Embedded World
www.OpenNETCF.com
 
Hi,

I have a XMCOMM checksum/CRC error-checked file transfer dll (implementation
on the CDROM that accompanies my book) that wraps the built-in SerialPort
object provided by the Compact Framework 2 (and one for CF1 that uses my own
CFSerialIO class). It can be used to automate such transfers over a serial
connection. See below for information. Naturally, the code is in VB, but
use in a C# application is quite straight forward.

Dick



--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
 
Back
Top