OpenNETCF.IO.Serial

K

Krupa

Hi,

I am working on a GPS application. It's a CF 2.0 application for
Windows CE 5.0 device. I am able to read from serial port using
OpenNETCF.IO.Serial class. Below is the code I use.

-------------------------------------------------------------------------------
Port com_port;
com_port = new Port("COM4:");
com_port.Settings.BaudRate = BaudRates.CBR_9600;
com_port.InputLen = 500;
bool success = com_port.Open();
byte[] gps_bytes = com_port.Input;

--------------------------------------------------------------------------------

This is working fine. Now I want to so some changes in settings at the
receiver. I need to use CFG-NAV2 protocol for this. I couldn't find out
how to send a stream of data to the receiver. Is there a link where
there is information on sending data on this port?

Could someone help me with this?

Thanks,
Krupa
 
D

Dick Grier

Have you looked at the Output method?

--
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.
 
D

Dick Grier

BTW, since this is CF2, why not use the built-in serial object
(System.IO.Ports)? with it you'd use the ReadExisting method for input, and
the Write method for output.

--
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top