connecting to a garmin GPS unit

J

Jay

Hello all,

I am having an issue connecting my PDA to my garmin Legend. I have the
GPS broadcasting in NMEA mode and have verified this by connecting to
it with hyperterminal. it is broadcasting as expected every 1 - 2
seconds.

I have used the same OpenNetCf code to communicate via Satellite and
that seems to work just fine, I thought the only thing I would have to
do is change the baud rate from 9600 to 4800 ( that was the case with
hyperterminal) and it would work just peachy.. it appears to be hanging
on the port open request of OpenNetCf.serial.io.

does anyone have examples of successful communication with these units?
is there some other setting I am not thinking of?

here is some source
----------------------------------------------------------

public bool NMEAreOpenPort()
{

try
{
this.CreateAndInitPort("COM1:",500,1,BaudRates.CBR_4800);
}
catch(Exception myex)
{
Library.CfDebugger.WriteDebugLine("port.Open FAILED");

}
return true;
}


private void CreateAndInitPort(string COM,int RX_Thres,int TX_thres,
BaudRates Rate)
{

if(port != null)
{
port.Close();
port.Dispose();
}
// create a default port on COM2 with no handshaking
port = new Port(COM, portSettings);

// these are fairly inefficient settings
// for a terminal we want to send/receive all data as it is queued
// so 1 byte at a time is the best way to go
port.RThreshold = RX_Thres; // get an event for every 1 byte
received
port.SThreshold = TX_thres; // send 1 byte at a time
port.Settings.BaudRate = Rate;
port.DataReceived += new
OpenNETCF.IO.Serial.Port.CommEvent(port_DataReceived);
// an attempt is made to open the port for comm
// with the serial port "COM1:"
if(port.Open())
{
Library.CfDebugger.WriteDebugLine("Opened port");
}
}
 
T

Tomppa

Slightly off the topic.

I used this product API a couple of years back. I found it to be pretty
stable using my PPC2003 and bluetooth GPS. We were simpley logging the NMEA
data stream to file.
I'm not sure what Jon has done to the API lately.

http://www.gpsdotnet.com/



Tom
 

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

Similar Threads


Top