Peter
Tue Nov 11 03:00:59 CST 2003
Hi Peter,
Actually, the weird-characters are not in form of numeric '0..9'...they are
in form such unmapped chars.
And also ...it seems get hang when reading from comport (using starndar
WINCE API);
Thanks for your helps and support;
regards,
Peter
"PeterB" <peter@data.se> wrote in message
news:uzybjoCqDHA.392@TK2MSFTNGP11.phx.gbl...
> Are you only getting a bunch of numbers (0-9)? If so you need to convert
the
> bytes to strings.
>
> A good place to learn about it is on
http://www.opennetcf.org/serial.asp
> where you can find a library for this.
>
> You can use the code below to convert a byte array (port.Input) to an
ASCII
> string:
> System.Text.Encoding.ASCII.GetString( port.Input, 0, port.Input.Length );
>
>
>
> regards,
>
> Peter
>
>
>
> "Peter Alex" <peteralexbox@hotmail.com> wrote in message
> news:u9eZOLCqDHA.2312@TK2MSFTNGP12.phx.gbl...
> > I am trying to read data from GPS CF using serial comm on Pocket PC
2002.
> > However, the result were some weird unreadable chars.
> > The GPS CF itself uses NMEA and I just follow its default settings.
> >
> > Is there anyone can give some helps/support for me to solve this prob?
> >
> > Thanks for any support/helps.
> >
> > Peter
> >
> >
> >
>
>