Skytraq driver broken with some devices?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Skytraq driver broken with some devices?

Eerik Kiskonen
Hello,

First, where would I find older packages of GPSBabel? Couldn’t find anything else than the latest ones on the webpage.

Then, the actual problem why I would like to check out an older version:

Seems like the Skytraq driver is not functioning properly with some old no-name devices. I have a random USB GPS unit which I have been using with earlier versions of GPSBabel without problems. Cannot specify exact versions now, it has been some 2-3 years since the last time.

Now with the newest 1.5.3 build on OSX the program obviously tries to run the skytraq_set_location function regardless of arguments given to the program, and with this particular device it fails with “cannot set new location” error message.

Here is an example with simple erase, but everything else fails too and I think I tried all the possible combinations of parameters, known good baud rates etc:

stnzAir:MacOS stnz$ ./gpsbabel -D2 -i skytraq,erase,no-output -f /dev/cu.SLAB_USBtoUART 
GPSBabel Version: 1.5.3 
options: module/option=value: skytraq/erase="1"
options: module/option=value: skytraq/targetlocation="" (=default)
options: module/option=value: skytraq/configlog="" (=default)
options: module/option=value: skytraq/baud="230400" (=default)
options: module/option=value: skytraq/initbaud="0" (=default)
options: module/option=value: skytraq/read-at-once="255" (=default)
options: module/option=value: skytraq/first-sector="0" (=default)
options: module/option=value: skytraq/last-sector="-1" (=default)
options: module/option=value: skytraq/no-output="1"
skytraq: Probing SkyTraq Venus at 9600baud...
skytraq: Didn't get message start tag
Didn't receive ACK (-3), retrying...
Receiving message with 2 bytes of payload (expected >=2)
Receiving message with 2 bytes of payload (expected >=2)
Receiving message with 14 bytes of payload (expected >=14)
skytraq: Venus device found: Kernel version = 1.4.8, ODM version = 1.8.22, revision (Y/M/D) = 08/10/23
Receiving message with 2 bytes of payload (expected >=2)
skytraq: Warning: Got unexpected ACK (id=0x02)
Receiving message with 14 bytes of payload (expected >=2)
Receiving message with 2 bytes of payload (expected >=2)
skytraq: Got neither ACK nor NACK, resending msg (id=0x36)...
Receiving message with 2 bytes of payload (expected >=2)
Receiving message with 2 bytes of payload (expected >=2)
skytraq: cannot set new location


-

Ystävällisin Terveisin

Eerik Kiskonen

Tekninen asiantuntija

Tietokeskus Yhtiöt

Keskus: +358 207 191 600

Suora: +358 207 191 613

Satakunnantie 110, 20320 TURKU

www.tietokeskus.com

Tietokeskus on Suomen läheisin ja nopein, teknisesti osaava IT-palvelutalo,
jonka 98 alan ammattilaista ovat palvelleet asiakkaita ylivoimaisella huolenpidolla jo 27 vuotta.

Seuraa meitä myös Twitterissä! https://twitter.com/tietokeskus_oy


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Gpsbabel-misc mailing list http://www.gpsbabel.org
[hidden email]
To unsubscribe, change list options, or see archives, visit:
https://lists.sourceforge.net/lists/listinfo/gpsbabel-misc
Reply | Threaded
Open this post in threaded view
|

Re: Skytraq driver broken with some devices?

tsteven4-2
looks like a bug introduced in
https://github.com/gpsbabel/gpsbabel/commit/c927faac0a6304ee650d903cf8bd19518f416900
Robert - this was your commit and I am not sure what you were up to.

Anyway, if the command line options aren't set then we end up pointing to an empty string.
suggest
diff --git a/skytraq.cc b/skytraq.cc
index f3a4c73..e656f27 100644
--- a/skytraq.cc
+++ b/skytraq.cc
@@ -1308,13 +1308,17 @@ skytraq_read(void)
   int dlbaud;
 
   if (opt_set_location) {
-    skytraq_set_location();
-    return;
+    if (*opt_set_location) {
+      skytraq_set_location();
+      return;
+    }
   }
 
   if (opt_configure_logging) {
-    skytraq_configure_logging();
-    return;
+    if (*opt_configure_logging) {
+      skytraq_configure_logging();
+      return;
+    }
   }
 
   dlbaud = atoi(opt_dlbaud);



On 2/6/2016 3:31 PM, Eerik Kiskonen wrote:
Hello,

First, where would I find older packages of GPSBabel? Couldn’t find anything else than the latest ones on the webpage.

Then, the actual problem why I would like to check out an older version:

Seems like the Skytraq driver is not functioning properly with some old no-name devices. I have a random USB GPS unit which I have been using with earlier versions of GPSBabel without problems. Cannot specify exact versions now, it has been some 2-3 years since the last time.

Now with the newest 1.5.3 build on OSX the program obviously tries to run the skytraq_set_location function regardless of arguments given to the program, and with this particular device it fails with “cannot set new location” error message.

Here is an example with simple erase, but everything else fails too and I think I tried all the possible combinations of parameters, known good baud rates etc:

stnzAir:MacOS stnz$ ./gpsbabel -D2 -i skytraq,erase,no-output -f /dev/cu.SLAB_USBtoUART 
GPSBabel Version: 1.5.3 
options: module/option=value: skytraq/erase="1"
options: module/option=value: skytraq/targetlocation="" (=default)
options: module/option=value: skytraq/configlog="" (=default)
options: module/option=value: skytraq/baud="230400" (=default)
options: module/option=value: skytraq/initbaud="0" (=default)
options: module/option=value: skytraq/read-at-once="255" (=default)
options: module/option=value: skytraq/first-sector="0" (=default)
options: module/option=value: skytraq/last-sector="-1" (=default)
options: module/option=value: skytraq/no-output="1"
skytraq: Probing SkyTraq Venus at 9600baud...
skytraq: Didn't get message start tag
Didn't receive ACK (-3), retrying...
Receiving message with 2 bytes of payload (expected >=2)
Receiving message with 2 bytes of payload (expected >=2)
Receiving message with 14 bytes of payload (expected >=14)
skytraq: Venus device found: Kernel version = 1.4.8, ODM version = 1.8.22, revision (Y/M/D) = 08/10/23
Receiving message with 2 bytes of payload (expected >=2)
skytraq: Warning: Got unexpected ACK (id=0x02)
Receiving message with 14 bytes of payload (expected >=2)
Receiving message with 2 bytes of payload (expected >=2)
skytraq: Got neither ACK nor NACK, resending msg (id=0x36)...
Receiving message with 2 bytes of payload (expected >=2)
Receiving message with 2 bytes of payload (expected >=2)
skytraq: cannot set new location


-

Ystävällisin Terveisin

Eerik Kiskonen

Tekninen asiantuntija

Tietokeskus Yhtiöt

Keskus: +358 207 191 600

Suora: +358 207 191 613

Satakunnantie 110, 20320 TURKU

www.tietokeskus.com

Tietokeskus on Suomen läheisin ja nopein, teknisesti osaava IT-palvelutalo,
jonka 98 alan ammattilaista ovat palvelleet asiakkaita ylivoimaisella huolenpidolla jo 27 vuotta.

Seuraa meitä myös Twitterissä! https://twitter.com/tietokeskus_oy



------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140


_______________________________________________
Gpsbabel-misc mailing list http://www.gpsbabel.org
[hidden email]
To unsubscribe, change list options, or see archives, visit:
https://lists.sourceforge.net/lists/listinfo/gpsbabel-misc


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Gpsbabel-misc mailing list http://www.gpsbabel.org
[hidden email]
To unsubscribe, change list options, or see archives, visit:
https://lists.sourceforge.net/lists/listinfo/gpsbabel-misc
Reply | Threaded
Open this post in threaded view
|

Re: Skytraq driver broken with some devices?

Robert Lipe-4

On Sat, Feb 6, 2016 at 6:14 PM, tsteven4 <[hidden email]> wrote:
looks like a bug introduced in
https://github.com/gpsbabel/gpsbabel/commit/c927faac0a6304ee650d903cf8bd19518f416900
Robert - this was your commit and I am not sure what you were up to.

Anyway, if the command line options aren't set then we end up pointing to an empty string.
suggest
diff --git a/skytraq.cc b/skytraq.cc
index f3a4c73..e656f27 100644
--- a/skytraq.cc
+++ b/skytraq.cc
@@ -1308,13 +1308,17 @@ skytraq_read(void)
   int dlbaud;
 
   if (opt_set_location) {
-    skytraq_set_location();
-    return;
+    if (*opt_set_location) {
+      skytraq_set_location();
+      return;
+    }
   }
 
   if (opt_configure_logging) {
-    skytraq_configure_logging();
-    return;
+    if (*opt_configure_logging) {
+      skytraq_configure_logging();
+      return;
+    }
   }
 
   dlbaud = atoi(opt_dlbaud);



On 2/6/2016 3:31 PM, Eerik Kiskonen wrote:
Hello,

First, where would I find older packages of GPSBabel? Couldn’t find anything else than the latest ones on the webpage.

Then, the actual problem why I would like to check out an older version:

Seems like the Skytraq driver is not functioning properly with some old no-name devices. I have a random USB GPS unit which I have been using with earlier versions of GPSBabel without problems. Cannot specify exact versions now, it has been some 2-3 years since the last time.

Now with the newest 1.5.3 build on OSX the program obviously tries to run the skytraq_set_location function regardless of arguments given to the program, and with this particular device it fails with “cannot set new location” error message.

Here is an example with simple erase, but everything else fails too and I think I tried all the possible combinations of parameters, known good baud rates etc:

stnzAir:MacOS stnz$ ./gpsbabel -D2 -i skytraq,erase,no-output -f /dev/cu.SLAB_USBtoUART 
GPSBabel Version: 1.5.3 
options: module/option=value: skytraq/erase="1"
options: module/option=value: skytraq/targetlocation="" (=default)
options: module/option=value: skytraq/configlog="" (=default)
options: module/option=value: skytraq/baud="230400" (=default)
options: module/option=value: skytraq/initbaud="0" (=default)
options: module/option=value: skytraq/read-at-once="255" (=default)
options: module/option=value: skytraq/first-sector="0" (=default)
options: module/option=value: skytraq/last-sector="-1" (=default)
options: module/option=value: skytraq/no-output="1"
skytraq: Probing SkyTraq Venus at 9600baud...
skytraq: Didn't get message start tag
Didn't receive ACK (-3), retrying...
Receiving message with 2 bytes of payload (expected >=2)
Receiving message with 2 bytes of payload (expected >=2)
Receiving message with 14 bytes of payload (expected >=14)
skytraq: Venus device found: Kernel version = 1.4.8, ODM version = 1.8.22, revision (Y/M/D) = 08/10/23
Receiving message with 2 bytes of payload (expected >=2)
skytraq: Warning: Got unexpected ACK (id=0x02)
Receiving message with 14 bytes of payload (expected >=2)
Receiving message with 2 bytes of payload (expected >=2)
skytraq: Got neither ACK nor NACK, resending msg (id=0x36)...
Receiving message with 2 bytes of payload (expected >=2)
Receiving message with 2 bytes of payload (expected >=2)
skytraq: cannot set new location


-

Ystävällisin Terveisin

Eerik Kiskonen

Tekninen asiantuntija

Tietokeskus Yhtiöt

Keskus: +358 207 191 600

Suora: +358 207 191 613

Satakunnantie 110, 20320 TURKU

www.tietokeskus.com

Tietokeskus on Suomen läheisin ja nopein, teknisesti osaava IT-palvelutalo,
jonka 98 alan ammattilaista ovat palvelleet asiakkaita ylivoimaisella huolenpidolla jo 27 vuotta.

Seuraa meitä myös Twitterissä! https://twitter.com/tietokeskus_oy



------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140


_______________________________________________
Gpsbabel-misc mailing list http://www.gpsbabel.org
[hidden email]
To unsubscribe, change list options, or see archives, visit:
https://lists.sourceforge.net/lists/listinfo/gpsbabel-misc



------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Gpsbabel-misc mailing list http://www.gpsbabel.org
[hidden email]
To unsubscribe, change list options, or see archives, visit:
https://lists.sourceforge.net/lists/listinfo/gpsbabel-misc
Reply | Threaded
Open this post in threaded view
|

Re: Skytraq driver broken with some devices?

Eerik Kiskonen
In reply to this post by tsteven4-2
Any hope of getting it fixed some day in the distribution package? :)

Or well, I would be happy with older version distribution package too, just couldn’t locate one. No tools to patch+compile myself and honestly no idea how to do it on OSX. :)


-

Best Regards

Eerik Kiskonen

Technical Specialist

Tietokeskus Yhtiöt

Keskus: +358 207 191 600

Suora: +358 207 191 613

Satakunnantie 110, 20320 TURKU

Finland

www.tietokeskus.com


From: tsteven4 <[hidden email]>
Date: sunnuntai 7. helmikuuta 2016 klo 2.14
To: stnz <[hidden email]>, "[hidden email]" <[hidden email]>, Robert Lipe <[hidden email]>
Subject: Re: [Gpsbabel-misc] Skytraq driver broken with some devices?

looks like a bug introduced in
https://github.com/gpsbabel/gpsbabel/commit/c927faac0a6304ee650d903cf8bd19518f416900
Robert - this was your commit and I am not sure what you were up to.

Anyway, if the command line options aren't set then we end up pointing to an empty string.
suggest
diff --git a/skytraq.cc b/skytraq.cc
index f3a4c73..e656f27 100644
--- a/skytraq.cc
+++ b/skytraq.cc
@@ -1308,13 +1308,17 @@ skytraq_read(void)
   int dlbaud;
 
   if (opt_set_location) {
-    skytraq_set_location();
-    return;
+    if (*opt_set_location) {
+      skytraq_set_location();
+      return;
+    }
   }
 
   if (opt_configure_logging) {
-    skytraq_configure_logging();
-    return;
+    if (*opt_configure_logging) {
+      skytraq_configure_logging();
+      return;
+    }
   }
 
   dlbaud = atoi(opt_dlbaud);



On 2/6/2016 3:31 PM, Eerik Kiskonen wrote:
Hello,

First, where would I find older packages of GPSBabel? Couldn’t find anything else than the latest ones on the webpage.

Then, the actual problem why I would like to check out an older version:

Seems like the Skytraq driver is not functioning properly with some old no-name devices. I have a random USB GPS unit which I have been using with earlier versions of GPSBabel without problems. Cannot specify exact versions now, it has been some 2-3 years since the last time.

Now with the newest 1.5.3 build on OSX the program obviously tries to run the skytraq_set_location function regardless of arguments given to the program, and with this particular device it fails with “cannot set new location” error message.

Here is an example with simple erase, but everything else fails too and I think I tried all the possible combinations of parameters, known good baud rates etc:

stnzAir:MacOS stnz$ ./gpsbabel -D2 -i skytraq,erase,no-output -f /dev/cu.SLAB_USBtoUART 
GPSBabel Version: 1.5.3 
options: module/option=value: skytraq/erase="1"
options: module/option=value: skytraq/targetlocation="" (=default)
options: module/option=value: skytraq/configlog="" (=default)
options: module/option=value: skytraq/baud="230400" (=default)
options: module/option=value: skytraq/initbaud="0" (=default)
options: module/option=value: skytraq/read-at-once="255" (=default)
options: module/option=value: skytraq/first-sector="0" (=default)
options: module/option=value: skytraq/last-sector="-1" (=default)
options: module/option=value: skytraq/no-output="1"
skytraq: Probing SkyTraq Venus at 9600baud...
skytraq: Didn't get message start tag
Didn't receive ACK (-3), retrying...
Receiving message with 2 bytes of payload (expected >=2)
Receiving message with 2 bytes of payload (expected >=2)
Receiving message with 14 bytes of payload (expected >=14)
skytraq: Venus device found: Kernel version = 1.4.8, ODM version = 1.8.22, revision (Y/M/D) = 08/10/23
Receiving message with 2 bytes of payload (expected >=2)
skytraq: Warning: Got unexpected ACK (id=0x02)
Receiving message with 14 bytes of payload (expected >=2)
Receiving message with 2 bytes of payload (expected >=2)
skytraq: Got neither ACK nor NACK, resending msg (id=0x36)...
Receiving message with 2 bytes of payload (expected >=2)
Receiving message with 2 bytes of payload (expected >=2)
skytraq: cannot set new location


-

Ystävällisin Terveisin

Eerik Kiskonen

Tekninen asiantuntija

Tietokeskus Yhtiöt

Keskus: +358 207 191 600

Suora: +358 207 191 613

Satakunnantie 110, 20320 TURKU

www.tietokeskus.com

Tietokeskus on Suomen läheisin ja nopein, teknisesti osaava IT-palvelutalo,
jonka 98 alan ammattilaista ovat palvelleet asiakkaita ylivoimaisella huolenpidolla jo 27 vuotta.

Seuraa meitä myös Twitterissä! https://twitter.com/tietokeskus_oy



------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140


_______________________________________________
Gpsbabel-misc mailing list http://www.gpsbabel.org[hidden email]
To unsubscribe, change list options, or see archives, visit:
https://lists.sourceforge.net/lists/listinfo/gpsbabel-misc


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Gpsbabel-misc mailing list http://www.gpsbabel.org
[hidden email]
To unsubscribe, change list options, or see archives, visit:
https://lists.sourceforge.net/lists/listinfo/gpsbabel-misc