Cruisers Forum

Join CruisersForum Today

Thread Tools Rate Thread Display Modes
Old 22-06-2011, 07:40   #1
Registered User

Join Date: Jun 2011
Posts: 1
Problem with remote gps

We have 2 computers on the boat, one whit a USB-GPS and gpsd, that both computers connects to.

The localhost connection works fine, but the other computer says "no gps device" in debug output, whitout reson.

more detaljed, its the row: "if (m_gps_data->devices.list[0].activated < 1.0)" that disable the gps, if i ignore that, then it works fine, anyone got an ide how to dig deeper in this?

Made a workaround patch, to be able to use opencpn until the problem is solved:

diff --git a/src/chart1.cpp b/src/chart1.cpp
index f8aba47..1b1ab9e 100644
--- a/src/chart1.cpp
+++ b/src/chart1.cpp
@@ -391,6 +391,7 @@ bool             g_bAISRolloverShowCOG;
 bool             g_bAISRolloverShowCPA;
 bool             g_bDebugGPSD;
+bool             g_bForceGPSDActive;
 bool             g_bFullScreenQuilt;
 bool             g_bQuiltEnable;
diff --git a/src/navutil.cpp b/src/navutil.cpp
index 1f04c7a..2b954bc 100644
--- a/src/navutil.cpp
+++ b/src/navutil.cpp
@@ -248,6 +248,7 @@ extern bool             g_bAISRolloverShowCPA;
 extern bool             g_blocale_changed;
 extern bool             g_bDebugGPSD;
+extern bool             g_bForceGPSDActive;
 extern bool             g_bfilter_cogsog;
 extern int              g_COGFilterSec;
@@ -2674,6 +2675,7 @@ int MyConfig::LoadMyConfig ( int iteration )
       Read ( _T ( "DebugS57" ),  &g_bDebugS57, 0 );         // Show LUP and Feature info in object query
       Read ( _T ( "DebugBSBImg" ),  &g_BSBImgDebug, 0 );
       Read ( _T ( "DebugGPSD" ),  &g_bDebugGPSD, 0 );
+      Read ( _T ( "ForceGPSDActive" ),  &g_bForceGPSDActive, 0 );
       Read ( _T ( "UseGreenShipIcon" ),  &g_bUseGreenShip, 0 );
       Read ( _T ( "AllowExtremeOverzoom" ),  &g_b_overzoom_x, 1 );
diff --git a/src/nmea.cpp b/src/nmea.cpp
index 8f1bcf8..5657d29 100644
--- a/src/nmea.cpp
+++ b/src/nmea.cpp
@@ -81,6 +81,7 @@ int                      s_dns_test_flag;
 static      GenericPosDat     ThreadPositionData;
 extern bool             g_bDebugGPSD;
+extern bool             g_bForceGPSDActive;
 extern MyFrame          *gFrame;
@@ -788,6 +789,7 @@ void NMEAHandler::OnTimerLIBGPS(wxTimerEvent& event)
                   if(g_bDebugGPSD)printf("  no gps device\n");
+                  if(g_bForceGPSDActive) m_bgps_present = true;
That make it possible to bypass this problem by adding ForceGPSDActive=1 under [Settings] in the config-file
puggan is offline   Reply With Quote
Old 22-06-2011, 08:17   #2
Registered User
Unicorn Dreams's Avatar

Join Date: Aug 2007
Location: Clear Lake Marine Services - Seabrook, Texas
Boat: Gulfstar, Mark II Ketch, 43'
Posts: 2,359
Re: Problem with remote gps

Welcome Aboard Cruisers Forum

Can't help you with your problem
Formerly Santana
The winds blow true,The skies stay blue,
Everyday is a good day for SAILING!!!!
Unicorn Dreams is offline   Reply With Quote


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Garmin GPS 18x Problem svadagio OpenCPN 9 24-07-2011 19:22
C-Map / GPS Problem TOM Navigation 21 14-03-2011 04:55
Victron Remote Panel Problem AAD Electrical: Batteries, Generators & Solar 1 08-02-2011 18:10
Autohelm 5000 Remote Problem Trekka Marine Electronics 6 12-01-2011 20:22
GPS Problem boden36 Marine Electronics 7 26-02-2010 08:13

Our Communities

Our communities encompass many different hobbies and interests, but each one is built on friendly, intelligent membership.

» More about our Communities

Automotive Communities

Our Automotive communities encompass many different makes and models. From U.S. domestics to European Saloons.

» More about our Automotive Communities

Marine Communities

Our Marine websites focus on Cruising and Sailing Vessels, including forums and the largest cruising Wiki project on the web today.

» More about our Marine Communities

Copyright 2002-2015 Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 19:36.

Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2016, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.