lincomatic / kalenji-gps-watch-reader

Automatically exported from code.google.com/p/kalenji-gps-watch-reader
0 stars 0 forks source link

USB not found AFTER importing #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Keep several runs/sessions on the GPS watch
2. Connect watch
3. Import using regular command: 
/home/.../kalenji-gps-watch-reader/kalenji_reader -D OnMove710 -p 
/media/.../ONMOVE51-71/ -f UnreliablePoints

What is the expected output?
Routine should import all sessions in a row, one by one.

What do you see instead?
it creates data/files (GPX, html, kml) for ONE session then displays error 
message "error USB device not found !"
Each time I have more than one session on my watch, I have to:
a- run kalenji_reader, whixh imports a session,
b- let kalenji_reader "stops unexpectedly", 
c- remove corresponding files from the Geonaute device
d- run kalenji_reader again / loop to step a-.

What version of the product are you using?
OnMove 710

On what operating system?
Ubuntu 14.04

Please provide any additional information below.

1- exact output of the kalenji_reader execution
<<<
Retrieve session E6MA0249
Retrieve session E7SB5610
Retrieve session E7UA1423
  Applying filter UnreliablePoints
Creating /home/.../Kalenji/20140622_100249.gpx
Creating /home/.../Kalenji/20140622_100249.html
Creating /home/.../Kalenji/20140622_100249.kml
error USB device not found !
>>>
details : 
session E6MA0249 == session from 20140622_100249, everything OK for this one!
session E7SB5610 == session from 20140728_115610, no files created for this 
session in my "Kalenji" folder.
session E7UA1423 == session from 20140730_101423, no files created for this 
session in my "Kalenji" folder.

2- extract of the result of "lsusb" command line
<<<
Bus 002 Device 003: ID 283e:0007  
>>>
same result before and after import. 

please feel free to contact me if you need more logs/details. 
I compiled a debug version but there is nothing more than the output I pasted 
in /tmp/kalenji_reader/*

Best regards, 
Thomas.

Original issue reported on code.google.com by ctomtom...@gmail.com on 31 Jul 2014 at 1:56

GoogleCodeExporter commented 9 years ago
Did you specify Source=Path ?

https://code.google.com/p/kalenji-gps-watch-reader/wiki/ConfigurationFile#Suppor
t_of_OnMove_510_and_OnMove_710

If not, this may be the issue.

Original comment by colin.pi...@gmail.com on 31 Jul 2014 at 3:23

GoogleCodeExporter commented 9 years ago
thanks for your prompt reply!

source=Path + path=/media/... was not in the configuration file, so I added 
them. still no change.

Here is my cfg file, just in case I would have set something else wrong.
The config file is actually read, because I see the applied filters in the 
output.

T.

Original comment by ctomtom...@gmail.com on 31 Jul 2014 at 6:27

Attachments:

GoogleCodeExporter commented 9 years ago
I understand your problem.
It comes from your configuration file:
outputs=GPX,GoogleMap,KML,Kalenji

Kalenji outputs allows to upload a session (usually from a GPX file) to a 
Kalenji watch (W Kalenji 300 GPS, CW Kalenji 700 GPS, On Move 500, On Move 700 
and Keymaze 700 Trail).

In your case, it tries to export your sessions in all the output format 
specified (GPX, HTML, KML) and then upload to such a watch, which fails as 
there is no matching watch connected.

You can fix your issue by removing Kalenji from output list in your 
configuration file.

However, I'll keep the issue open to catch the error and improve both the error 
message and the behaviour in such a case.

Regards,
Colin

Original comment by colin.pi...@gmail.com on 2 Aug 2014 at 9:27

GoogleCodeExporter commented 9 years ago
OH! ok!
This is what happens when trying to want more!

It now works like a charm!

I also have "OVER_QUERY_LIMIT" error from GoogleAPI... I bet I shall add the 
right filter to reduce the number of points to 200. 

Thank you very much!
Thomas.

Original comment by ctomtom...@gmail.com on 2 Aug 2014 at 12:37

GoogleCodeExporter commented 9 years ago
You shouldn't use the ReducePoints filter when importing data. It is only aimed 
for uploading a session to the watch, because Kalenji watches have strict 
limitations on this (200 points max).

The OVER_QUERY_LIMIT should only happen after importing a lot of sessions or 
some very long ones, or importing multiple times the same sessions. Typically, 
I have it when I run my tests 10 or 20 times.

It shouldn't happen in normal usage, except if you do a long session (> few 
hours) or only import occasionally. The total duration that you should be able 
to import without error is ~7 hours with 1 point per second.

Limitations are detailed here: 
https://developers.google.com/maps/documentation/elevation/#Limits

If you have it more often, it may be due to the 10 requests per second 
limitation. If this is the case, I should add a small wait between each query 
to ensure this limits is never reached.

I also thought once to reduce a bit the risk of reaching this error by adding 
an option to only request every X points and interpolate in between, maybe 
mixing with elevation data coming from the watch.

Concerning your initial problem, I patched the code to be more resilient. The 
output would now be:
Creating /tmp/20140802_130908.kml
Error: couldn't export to output Kalenji:USB device not found !
Creating /tmp/20140802_130908.gpx

and the process continues (all other files are created correctly) instead of 
the initial obscure error you had that stopped the processing.

Regards,
Colin

Original comment by colin.pi...@gmail.com on 2 Aug 2014 at 2:23

GoogleCodeExporter commented 9 years ago
Marking this bug as fixed (in SVN).
I also patched to slow down the queries made to Google Elevation API to ensure 
the limit of 10 queries per second is never reached.

This will slightly slow down the application of the filter but this should be 
more robust. Tell me if you still have issue with it in SVN version.

Regards,
Colin

Original comment by colin.pi...@gmail.com on 2 Aug 2014 at 2:29

GoogleCodeExporter commented 9 years ago
Sorry, 404!

https://kalenji-gps-watch-reader.googlecode.com/svn/downloads/sources/kalenji-gp
s-watch-reader-4.8.tar.gz is "not found".

Thomas.

Original comment by ctomtom...@gmail.com on 5 Aug 2014 at 4:29

GoogleCodeExporter commented 9 years ago
Yes, this is an issue with Google Code:
http://code.google.com/p/support/issues/detail?id=33479

I hope they will fix it soon. In the mean time, you can use svn to retrieve the 
source code:
svn checkout http://kalenji-gps-watch-reader.googlecode.com/svn/trunk/ 
kalenji-gps-watch-reader

(you need to have the package subversion or svn installed)

Regards,
Colin

Original comment by colin.pi...@gmail.com on 5 Aug 2014 at 9:01

GoogleCodeExporter commented 9 years ago
Sorry I did not get your "in SVN" right the first time! Got the new version, 
compiled it, run it.

It is working much better, though I still had a GoogleAPI OVER_QUERY_LIMIT 
between import #10 and import #11.

Anyway, I admit importing more than 5-7 sessions must be really exceptional! In 
my opinion, it could remain as it is now.

Thanks a lot for your time and corrections!

Best regards, 
Thomas.

Original comment by ctomtom...@gmail.com on 5 Aug 2014 at 9:16

Attachments: