ColinPitrat / kalenji-gps-watch-reader

A tool to import data from some Kalenji running watches
GNU General Public License v3.0
30 stars 11 forks source link

Kalenji 500sd File is too big #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I want to read the file from my Kalenji 500sd !

The output message is

Oups, this session is too big ! I'm still quite experimental :-/
error std::exception

Original issue reported on code.google.com by wallbaum...@googlemail.com on 5 Jun 2013 at 7:39

GoogleCodeExporter commented 9 years ago
Hello,

first question: are you really trying to import a quite long session (more than 
one hour ?). If yes how long ?

If this is the case, you can try to change the size of the buffer used in 
src/device/CWKalenji500SD.cc. You can modify line 353 and 387 from:
unsigned char buffer[4096];
if(offset > 4080)

To:
unsigned char buffer[65536];
if(offset > 65520)

Then rebuild kalenji_reader and retry. Does it solve the problem ?

Anyway this exception is a leftover from when I was reverse engineering the 
watch. I hadn't much time with it so I did it quick and dirty but now I need to 
handle it properly, using std::vector.

Regards,
Colin

Original comment by colin.pi...@gmail.com on 6 Jun 2013 at 7:34

GoogleCodeExporter commented 9 years ago

Original comment by colin.pi...@gmail.com on 6 Jun 2013 at 7:34

GoogleCodeExporter commented 9 years ago
Yes the File is 2:40 long !

I make the changes !
Then I become the following error 

Reset of device failed
Retrieve session 0
Speicherzugriffsfehler (Speicherabzug geschrieben)

Original comment by wallbaum...@googlemail.com on 6 Jun 2013 at 6:45

GoogleCodeExporter commented 9 years ago
This has been fixed in SVN and a new delivery has been done.
Version 4.4 should solve this.

Original comment by colin.pi...@gmail.com on 26 Aug 2013 at 5:37