List Info

Thread: Re: How to read from COM port?




Re: How to read from COM port?
country flaguser name
United States
2008-03-20 02:58:54

Hi Darrin,

Thanks for your help!

> Line input waits for a carriage return before sending the 'whole'
> string. Sometimes CHR$(13) never comes.

GPS "sentences" are comma-separated values that end in a Chr(13),
which is why I thought Line Input to be appropriate, receiving one
sentence at a time, and then using Split to parse each each sentence
as they arrive.

I'm taking a look at the example suggested by bdloving. It uses the
MSCOM control object added to the form. I need to study its properties
and methods to learn how it works.

Regards,
Bamm

__._,_.___
.

__,_._,___
Re: How to read from COM port?
country flaguser name
United States
2008-03-20 06:10:08

I have uploaded a file of a GPS project (smartGPS.zip) from Elektor
magazine, from a few years ago. Unfortunately I can not find the
article that went with it, but it works, and was designed to be
pulled apart and customised, as a learning tool. (Files/programs/GPS
Comms.)
Current Elektor programs use USB, unless you have a good reason not
to, it is probably a better way to go.
cheers, Ken.

--- In visualbasic6programming%40yahoogroups.com">visualbasic6programmingyahoogroups.com, "Bamm Gabriana"
<bamm...> wrote:
&gt;
> Hi Darrin,
>
> Thanks for your help!
&gt;
> > Line input waits for a carriage return before sending the 'whole'
> > string. Sometimes CHR$(13) never comes.
&gt;
> GPS "sentences" are comma-separated values that end in a Chr(13),
> which is why I thought Line Input to be appropriate, receiving one
> sentence at a time, and then using Split to parse each each sentence
> as they arrive.
>
> I'm taking a look at the example suggested by bdloving. It uses the
> MSCOM control object added to the form. I need to study its
properties
> and methods to learn how it works.
&gt;
> Regards,
> Bamm
>;

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )