I have a PC with a bluetooth dongle that is associated to a bluetooth GPS
device. That appears as COM4. I am trying with VB2005 to read the data
from the GPS but can't do it. I am opening the port but when I use the method
".ReadLine" it just sits there doing nothing. I see that someone else recently
posted with the same problem but no-one replied to their post. Any ideas?
Has anyone done this before? If so, could you post some code?
I want to do it all with code rather than use an external DLL.
Daniel
---------------------------------------------------
To contact me you need to clean up my email address. It should be fairly
obvious...
--
Chris Tacke
OpenNETCF Consulting
www.opennetcf.com
--
"Daniel" <idontlikejunk...@gmail.com> wrote in message
news:57431052578a8...@news.microsoft.com...
I have done this (though I use ReadExisting, not ReadLine -- but, since
standard GPS NMEA sentences are terminated by a newline character pair
(CRLF), usually this isn't an issue). Realize that if the data does not
have proper format, ReadLine will wait forever.
So, is your BT port mapped to the emulator?
And, as Chris asks, does yout BT adapter work with HyperTerminal (or some
other terminal program)?
BTW, I do have example code in my book that shows how to read the serial
data stream (pretty easy) and to decode and display it (sometimes a little
more difficult). See below.
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.