Pepper
Posts: 13
Joined: Thu Jan 26, 2006 7:16 pm

Got Error: [21] Error setting DTR

Thu Jan 26, 2006 7:20 pm

Hi all,
can someone tell me what the messeage "[21] Error setting DTR" means?
I get it if I try to connect on an virtual port on a Windows Mobile 5 device. I use the built-in portsplitter of WM 5. (no additional software)

Thanks for help
Karin

User avatar
johan
GpsGate
Posts: 14926
Joined: Wed Aug 04, 2004 10:40 pm
Location: Sweden
Contact: Website

RE: Got Error: [21] Error setting DTR

Thu Jan 26, 2006 10:27 pm

Sounds like a bug in GpsTools. Or a bug in WM2005 depending on how you see it :-) I guess Redmond is right by definition, so will try to include a fix in the next service update of GpsTools.

Regards,
Johan

Franson Support

Pepper
Posts: 13
Joined: Thu Jan 26, 2006 7:16 pm

RE: Got Error: [21] Error setting DTR

Fri Jan 27, 2006 2:12 pm

When will the next service update release?
Regards,
Karin

Pepper
Posts: 13
Joined: Thu Jan 26, 2006 7:16 pm

RE: Got Error: [21] Error setting DTR

Fri Jan 27, 2006 4:52 pm

Hi Johan,
I got an information for you:
The error I described above does only occur if I connect to the virtual port from Windows Mobile 5 (new built in port splitter from Microsoft). If I connect directly to the hardware port then all works well.

By the way: What does the Messsage: "[10007] Could not set DCB"

Regards
Karin

Mike Schaefer
Posts: 7
Joined: Fri Feb 10, 2006 12:08 am
Location: USA

RE: Got Error: [21] Error setting DTR

Fri Feb 10, 2006 12:14 am

I am fining the same problem and really need a fix or work around. I have another detail. If I use another program (several tested) to connect to the WM5 virtual port before connecting with the GPSTools I do not get an error and can connect just fine.

Mike

Mike Schaefer
Posts: 7
Joined: Fri Feb 10, 2006 12:08 am
Location: USA

RE: Got Error: [21] Error setting DTR

Fri Feb 10, 2006 12:16 am

Also, when is the next service update scheduled to address this issue?

Mike

Mike Schaefer
Posts: 7
Joined: Fri Feb 10, 2006 12:08 am
Location: USA

RE: Got Error: [21] Error setting DTR

Fri Feb 10, 2006 12:52 am

More info. If we set the com port and buad rate to 0 then let the parser find the GPS port on a WM5 device it finds the hardware port for the GPS not the WM5 virtual port. The code looks like this;

aParser.Baudrate = 0
aParser.Comport = 0
aParser.PortEnabled = True


Mike

User avatar
johan
GpsGate
Posts: 14926
Joined: Wed Aug 04, 2004 10:40 pm
Location: Sweden
Contact: Website

RE: Got Error: [21] Error setting DTR

Fri Feb 10, 2006 11:41 am

We'll take a look at this next week.

Regards,
Johan

Franson Support

User avatar
johan
GpsGate
Posts: 14926
Joined: Wed Aug 04, 2004 10:40 pm
Location: Sweden
Contact: Website

RE: Got Error: [21] Error setting DTR

Mon Feb 13, 2006 8:05 pm

This is fixed in the GpsTools 2.20p release.

Regards,
Johan

Franson Support

Mike Schaefer
Posts: 7
Joined: Fri Feb 10, 2006 12:08 am
Location: USA

RE: Got Error: [21] Error setting DTR

Tue Feb 14, 2006 8:42 pm

Thank you very much.

Cheers, Mike

Mike

Mike Schaefer
Posts: 7
Joined: Fri Feb 10, 2006 12:08 am
Location: USA

RE: Got Error: [21] Error setting DTR

Mon Feb 27, 2006 11:45 pm

Johan,

We have tried to use GPS Toos 2.20p release and we still have the same problem.

Cheers,

Mike

User avatar
johan
GpsGate
Posts: 14926
Joined: Wed Aug 04, 2004 10:40 pm
Location: Sweden
Contact: Website

RE: Got Error: [21] Error setting DTR

Mon Feb 27, 2006 11:50 pm

Make sure you update GpsLibCE.dll

Regards,
Johan

Franson Support

Return to “GpsTools”