<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2015-09-16 19:43 GMT+02:00 Guido Lerch <span dir="ltr"><<a href="mailto:guido.lerch@gmail.com" target="_blank">guido.lerch@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="text-align:left">Hi Dirk<div>I'll digest this later, I am on the road now.</div><div><br></div><div>I might send you and Linus a special patch that writes down the Uemis and files to disc.</div><div>As said I tested with two computer and both worked fine and fast.</div><div>If the download is slow it typically means that we cannot match the log entries to the dive details and typically you run out of memory with no results.</div><div>My hope is that with that special patch I see how different out dive logs and dive details are and amend the algorithm.</div><div><br></div><div><br>G. Lerch<br><br><br>Mittwoch, 16. September 2015 16:34 +0200 von Dirk Hohndel  <<a href="mailto:dirk@hohndel.org" target="_blank">dirk@hohndel.org</a>>:<div><div class="h5"><br>    <div><blockquote style="border-left:1px solid #fc2c38;margin:10px 10px 10px 5px;padding:0 0 0 10px"><div>
        
        <div>
                
                
                        <div>Good morning Guido...<br>
<br>
On Wed, Sep 16, 2015 at 09:02:11AM +0200, Guido Lerch wrote:<br>
                                 > > My results were not as good as Linus'<br>
> > After 8h connected to a charger it finally came back to life.<br>
> ><br>
> > When trying to download (empty dive file, so start from the oldest dive)<br>
> > it loads the first set of dives and then ping-pongs between details for #2<br>
> > and details for #3 back and forth and back and forth until the memory is<br>
> > full.<br>
> <br>
> This is exactly what happened to me with the old code where the offset was<br>
> calculated,<br>
> I completely re-did that part and tested it on 2 different Uemis computed<br>
> which worked like a charm.<br>
      <br>
That's the problem with trial and error bug fixing / coding. We don't<br>
understand exactly how the two different ids are related. I think they<br>
possibly aren't at all. So you need to figure out the offset by trial and<br>
error. With the three Uemis SDA that I had access to the offset was always<br>
fixed, but I don't even know if that is true.<br>
<br>
Here is the relevant excerpt from the debug log (I can send you the whole<br>
log if you think there's anything else in there that's interesting, but I<br>
don't think there is<br>
<br>
d_u_i after download and parse start 3 end 12 newmax 12 progress 0.19<br>
::w req.txt "n076800000054getDive{90d179077baa3186643ea3d84ac93499{notempty{3{{{"<br>
:tr n0769 (after seeks)<br>
::t /run/media/hohndel/UEMISSDA/ANS/ANS768.TXT "1mn{dive{1.0{dive-conditions{1.0{dive-gear{1.0{dive-buddies{1.0{computer_id{int{20719{user_id{int{2{"<br>
:tr n0770 (after seeks)<br>
added "{dive{1.0{dive-conditions{1.0{dive-gear{1.0{dive-buddies{1.0{computer_id{int{20719{user_id{int{2{object_id{int{3{remote_object_id{int{0{sync_id{int{ {deleted{bool{false{ctime{ts{2014-05-13T07:24:32{dive_no{int{3{logfilenr{int{5{date{ts{2014-05-13T16:22:53{duration{float{58.000000{depth{int{1466{altitude{int{1005{decoindex{int{-99{consumption{int{12{gas{int{1{water{int{1{divetype{int{0{diveactivity{int{0{training{int{0{conditions{u8Clouds{int{1{u8Deposit{int{1{u8Wind{int{1{u8Waves{int{1{u8Current{int{1{u8" to buffer - new length 510<br>
buf |object_id{int{3{remote_object_id{int{0{sync_id{in|<br>
reading details for #<br>
 3<br>
 {dive{1.0{dive-conditions{1.0{dive-gear{1.0{dive-buddies{1.0{computer_id{int{20719{user_id{int{2{object_id{int{3{remote_object_id{int{0{sync_id{int{ {deleted{bool{false{ctime{ts{2014-05-13T07:24:32{dive_no{int{3{logfilenr{int{5{date{ts{2014-05-13T16:22:53{duration{float{58.000000{depth{int{1466{altitude{int{1005{decoindex{int{-99{consumption{int{12{gas{int{1{water{int{1{divetype{int{0{diveactivity{int{0{training{int{0{conditions{u8Clouds{int{1{u8Deposit{int{1{u8Wind{int{1{u8Waves{int{1{u8Current{int{1{u8<br>
::t /run/media/hohndel/UEMISSDA/ANS/ANS769.TXT "1meVisibility{int{1{gear{u8DiveSuit{int{0{u8DiveSuitType{int{0{u8SuitThickness{int{0{f32Weight{float"<br>
added "Visibility{int{1{gear{u8DiveSuit{int{0{u8DiveSuitType{int{0{u8SuitThickness{int{0{f32Weight{float{0.000000{u8BCD{int{0{u8Light{int{0{u8Camera{int{0{u8BottomTankType{int{0{u8TravelTankType{int{0{u8DecoTankType{int{0{u8ScubaSet{int{0{u8Other{string{ {divespot_id{int{-1{buddies{notes{string{ {{{{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" to buffer - new length 1019<br>
:r: (null)<br>
::w req.txt "n077000000054getDive{90d179077baa3186643ea3d84ac93499{notempty{2{{{"<br>
:tr n0771 (after seeks)<br>
::t /run/media/hohndel/UEMISSDA/ANS/ANS770.TXT "1mn{dive{1.0{dive-conditions{1.0{dive-gear{1.0{dive-buddies{1.0{computer_id{int{20719{user_id{int{2{"<br>
:tr n0772 (after seeks)<br>
added "{dive{1.0{dive-conditions{1.0{dive-gear{1.0{dive-buddies{1.0{computer_id{int{20719{user_id{int{2{object_id{int{2{remote_object_id{int{0{sync_id{int{ {deleted{bool{false{ctime{ts{2014-05-12T03:39:37{dive_no{int{2{logfilenr{int{4{date{ts{2014-05-12T12:32:36{duration{float{64.000000{depth{int{1718{altitude{int{996{decoindex{int{-52{consumption{int{11{gas{int{1{water{int{1{divetype{int{0{diveactivity{int{0{training{int{0{conditions{u8Clouds{int{1{u8Deposit{int{1{u8Wind{int{1{u8Waves{int{1{u8Current{int{1{u8V" to buffer - new length 510<br>
buf |object_id{int{2{remote_object_id{int{0{sync_id{in|<br>
reading details for #<br>
 2<br>
 {dive{1.0{dive-conditions{1.0{dive-gear{1.0{dive-buddies{1.0{computer_id{int{20719{user_id{int{2{object_id{int{2{remote_object_id{int{0{sync_id{int{ {deleted{bool{false{ctime{ts{2014-05-12T03:39:37{dive_no{int{2{logfilenr{int{4{date{ts{2014-05-12T12:32:36{duration{float{64.000000{depth{int{1718{altitude{int{996{decoindex{int{-52{consumption{int{11{gas{int{1{water{int{1{divetype{int{0{diveactivity{int{0{training{int{0{conditions{u8Clouds{int{1{u8Deposit{int{1{u8Wind{int{1{u8Waves{int{1{u8Current{int{1{u8V<br>
::t /run/media/hohndel/UEMISSDA/ANS/ANS771.TXT "1meisibility{int{1{gear{u8DiveSuit{int{0{u8DiveSuitType{int{0{u8SuitThickness{int{0{f32Weight{float{"<br>
added "isibility{int{1{gear{u8DiveSuit{int{0{u8DiveSuitType{int{0{u8SuitThickness{int{0{f32Weight{float{0.000000{u8BCD{int{0{u8Light{int{0{u8Camera{int{0{u8BottomTankType{int{0{u8TravelTankType{int{0{u8DecoTankType{int{0{u8ScubaSet{int{0{u8Other{string{ {divespot_id{int{-1{buddies{notes{string{ {{{{000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" to buffer - new length 1019<br>
:r: (null)<br>
::w req.txt "n077200000054getDive{90d179077baa3186643ea3d84ac93499{notempty{3{{{"<br>
:tr n0773 (after seeks)<br>
::t /run/media/hohndel/UEMISSDA/ANS/ANS772.TXT "1mn{dive{1.0{dive-conditions{1.0{dive-gear{1.0{dive-buddies{1.0{computer_id{int{20719{user_id{int{2{"<br>
:tr n0774 (after seeks)<br>
added "{dive{1.0{dive-conditions{1.0{dive-gear{1.0{dive-buddies{1.0{computer_id{int{20719{user_id{int{2{object_id{int{3{remote_object_id{int{0{sync_id{int{ {deleted{bool{false{ctime{ts{2014-05-13T07:24:32{dive_no{int{3{logfilenr{int{5{date{ts{2014-05-13T16:22:53{duration{float{58.000000{depth{int{1466{altitude{int{1005{decoindex{int{-99{consumption{int{12{gas{int{1{water{int{1{divetype{int{0{diveactivity{int{0{training{int{0{conditions{u8Clouds{int{1{u8Deposit{int{1{u8Wind{int{1{u8Waves{int{1{u8Current{int{1{u8" to buffer - new length 510<br>
buf |object_id{int{3{remote_object_id{int{0{sync_id{in|<br>
reading details for #<br>
 3<br>
 {dive{1.0{dive-conditions{1.0{dive-gear{1.0{dive-buddies{1.0{computer_id{int{20719{user_id{int{2{object_id{int{3{remote_object_id{int{0{sync_id{int{ {deleted{bool{false{ctime{ts{2014-05-13T07:24:32{dive_no{int{3{logfilenr{int{5{date{ts{2014-05-13T16:22:53{duration{float{58.000000{depth{int{1466{altitude{int{1005{decoindex{int{-99{consumption{int{12{gas{int{1{water{int{1{divetype{int{0{diveactivity{int{0{training{int{0{conditions{u8Clouds{int{1{u8Deposit{int{1{u8Wind{int{1{u8Waves{int{1{u8Current{int{1{u8<br>
::t /run/media/hohndel/UEMISSDA/ANS/ANS773.TXT "1meVisibility{int{1{gear{u8DiveSuit{int{0{u8DiveSuitType{int{0{u8SuitThickness{int{0{f32Weight{float"<br>
added "Visibility{int{1{gear{u8DiveSuit{int{0{u8DiveSuitType{int{0{u8SuitThickness{int{0{f32Weight{float{0.000000{u8BCD{int{0{u8Light{int{0{u8Camera{int{0{u8BottomTankType{int{0{u8TravelTankType{int{0{u8DecoTankType{int{0{u8ScubaSet{int{0{u8Other{string{ {divespot_id{int{-1{buddies{notes{string{ {{{{00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" to buffer - new length 1019<br>
:r: (null)<br>
::w req.txt "n077400000054getDive{90d179077baa3186643ea3d84ac93499{notempty{2{{{"<br></div></div></div></blockquote></div></div></div></div></div></div></blockquote><div><br></div><div>weird debug output, you have logfilenr 5, then logfilenr 4 then again logfilenr 5 ....</div><div>anyway, I think I understand what the difference is with your and my offset and will send a patch soon.</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="text-align:left"><div><div><div class="h5"><div><blockquote style="border-left:1px solid #fc2c38;margin:10px 10px 10px 5px;padding:0 0 0 10px"><div><div><div>
<br>
And repeat at nausea.<br>
<br>
> Ca you do me a favour and switch on UEMIS debugging and send me the dump<br>
> files ? This will help me to analyse how your object_id and logfile_nr<br>
> differ from<br>
> mine which will help fixing the matching that obviously doesn't work on you<br>
> Uemis.<br>
<br>
On this one (I think this is the third one I had, Linus now has the forth<br>
one, the first two are both dead and I returned them to Uemis) the delta<br>
is 2. On one of mine the delta was 0 (that was the first one which lead to<br>
all kinds of unhealthy assumptions in the initial code that I wrote which<br>
worked for basically no one but me :-) ), on the other it was 3 IIRC. I<br>
don't know what it is on Linus'<br>
<br>
> > Cancelling the download from the dialog doesn't appear to work, either.<br>
> > Subsurface is simply hung when doing that.<br>
> <br>
> A bad on my side that I'll fix.<br>
<br>
I saw that you sent a patch for that and another cleanup patch. I will<br>
review the patches (this test was done with yesterday's master) and apply<br>
them unless something seems totally wrong.<br>
<br>
/D<br>
</div>
                        
                
                
        </div>

        
</div></blockquote></div></div></div></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Best regards,<div>Guido</div></div></div>
</div></div>