Re: Import data from Scubapro Aladin Sport Matrix

2017-11-01 Thread Linus Torvalds
On Wed, Nov 1, 2017 at 2:44 AM, Berthold Stoeger wrote: >> @Linus: patch attached. Sorry about that. > > Forgot to commit one file... Thanks, applied. Linus ___ subsurface mailing list

Re: Import data from Scubapro Aladin Sport Matrix

2017-11-01 Thread Berthold Stoeger
> @Linus: patch attached. Sorry about that. Forgot to commit one file... Berthold >From 27562a715bdd4955f665d376d2103efc2e236142 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Wed, 1 Nov 2017 10:16:51 +0100 Subject: [PATCH] Fix model number of the Scubapro

Re: Import data from Scubapro Aladin Sport Matrix

2017-11-01 Thread Berthold Stoeger
On Mittwoch, 1. November 2017 09:42:04 CET Jef Driesen wrote: > On 31-10-17 23:35, Berthold Stoeger wrote: > > On Dienstag, 31. Oktober 2017 11:29:00 CET Jef Driesen wrote: > >> I believe you have the model number wrong. I think it should be 0x17, > > > >> and your test seems to confirm that: > >

Re: Import data from Scubapro Aladin Sport Matrix

2017-11-01 Thread Jef Driesen
On 31-10-17 23:35, Berthold Stoeger wrote: On Dienstag, 31. Oktober 2017 11:29:00 CET Jef Driesen wrote: I believe you have the model number wrong. I think it should be 0x17, and your test seems to confirm that: Well, I put a printf directly after "rc = scubapro_g2_transfer (device,

Re: Import data from Scubapro Aladin Sport Matrix

2017-10-31 Thread Berthold Stoeger
On Dienstag, 31. Oktober 2017 11:29:00 CET Jef Driesen wrote: > I believe you have the model number wrong. I think it should be 0x17, > and your test seems to confirm that: Well, I put a printf directly after "rc = scubapro_g2_transfer (device, cmd_model, sizeof (cmd_model), model, sizeof

Re: Import data from Scubapro Aladin Sport Matrix

2017-10-31 Thread Jef Driesen
On 2017-10-31 12:12, Berthold Stoeger wrote: Hi Jef, On Dienstag, 31. Oktober 2017 11:29:00 CET Jef Driesen wrote: On 2017-10-23 00:55, Berthold Stoeger wrote: > On Sonntag, 22. Oktober 2017 04:31:39 CEST Linus Torvalds wrote: >> so you literally *could* try to claim it's a G2 and try to see

Re: Import data from Scubapro Aladin Sport Matrix

2017-10-31 Thread Berthold Stoeger
Hi Jef, On Dienstag, 31. Oktober 2017 11:29:00 CET Jef Driesen wrote: > On 2017-10-23 00:55, Berthold Stoeger wrote: > > On Sonntag, 22. Oktober 2017 04:31:39 CEST Linus Torvalds wrote: > >> so you literally *could* try to claim it's a G2 and try to see how far > >> it downloads. > > > > The

Re: Import data from Scubapro Aladin Sport Matrix

2017-10-31 Thread Jef Driesen
On 2017-10-23 00:55, Berthold Stoeger wrote: On Sonntag, 22. Oktober 2017 04:31:39 CEST Linus Torvalds wrote: so you literally *could* try to claim it's a G2 and try to see how far it downloads. The handshake is different. The G2 client sends 1b and 1c1027 and expects 01 as the answer

Re: Import data from Scubapro Aladin Sport Matrix

2017-10-29 Thread Berthold Stoeger
On Sonntag, 29. Oktober 2017 15:23:42 CET Linus Torvalds wrote: > I've merged this, and also merged Jef's patch to fix the date handling > problem I noticed on the trip. So current libdivecomputer should > handle the Aladin Sport Matrix correctly, and also fix the date > downloading problems you

Re: Import data from Scubapro Aladin Sport Matrix

2017-10-29 Thread Linus Torvalds
On Mon, Oct 23, 2017 at 12:39 PM, Berthold Stoeger wrote: > > Nevertheless, in the attachments is my attempt at making the Aladin Sport > Matrix work. Ok, I'm back home, and going through old emails. I've merged this, and also merged Jef's patch to fix the date

Re: Import data from Scubapro Aladin Sport Matrix

2017-10-23 Thread Berthold Stoeger
On Montag, 16. Oktober 2017 08:06:55 CEST Berthold Stoeger wrote: > Dear all, > > On Sonntag, 15. Oktober 2017 22:08:52 CEST Berthold Stoeger wrote: > > By the way, there seems to be a strange bug(?): for the first failed > > download I get an information window. For each subsequent retry there

Re: Import data from Scubapro Aladin Sport Matrix

2017-10-23 Thread Linus Torvalds
On Oct 23, 2017 15:39, "Berthold Stoeger" wrote: > Only the dates are incorrect - I will try to figure out what is going on. Sigh. This was probably also me sending random commands. :( It somehow reset the date to 1.1.2000 and I think this messed with the dive

Re: Import data from Scubapro Aladin Sport Matrix

2017-10-23 Thread Berthold Stoeger
On Montag, 23. Oktober 2017 00:55:37 CEST Berthold Stoeger wrote: > Only the dates are incorrect - I will try to figure out what is going on. Sigh. This was probably also me sending random commands. :( It somehow reset the date to 1.1.2000 and I think this messed with the dive timestamps. In my

Re: Import data from Scubapro Aladin Sport Matrix

2017-10-22 Thread Berthold Stoeger
On Sonntag, 22. Oktober 2017 04:31:39 CEST Linus Torvalds wrote: > so you literally *could* try to claim it's a G2 and try to see how far > it downloads. The handshake is different. The G2 client sends 1b and 1c1027 and expects 01 as the answer twice. The Aladin Sport returns 00 in both

Re: Import data from Scubapro Aladin Sport Matrix

2017-10-21 Thread Linus Torvalds
On Sat, Oct 21, 2017 at 7:56 PM, Berthold Stoeger wrote: > > Fetch newest dives does (I: to divecomputer O: from divecomputer) > I: 09c69a32b9421027 > O: 04 That actually looks like the Scubapro G2 protocol. Same model of 9-byte command with a 0xC6 command

Re: Import data from Scubapro Aladin Sport Matrix

2017-10-20 Thread Linus Torvalds
On Thu, Oct 19, 2017 at 5:51 PM, Berthold Stoeger wrote: > > Sorry, I confused dec 18 with hex 18. The second characteristic is notify and > read. This is clearly a read/write pair. So that looks very regular, and the existing code in core/qt-ble.cpp should hopefully

Re: Import data from Scubapro Aladin Sport Matrix

2017-10-19 Thread Berthold Stoeger
On Donnerstag, 19. Oktober 2017 00:45:37 CEST Berthold Stoeger wrote: > > On the Aladin Sport there is a single non-standard "service" > {fdcdeaaa-295d-470e-bf15-04217b7aa0a0}. > This service has two "characteristics": > 1) {a188b7dd-debb-449a-852d-c243d46b4b1a} with property "write". > 2)

Re: Import data from Scubapro Aladin Sport Matrix

2017-10-18 Thread Dirk Hohndel
> On Oct 18, 2017, at 6:45 PM, Berthold Stoeger > wrote: > > Unrelated point: Perhaps I'm missing something obvious, but I think the code > in qt-ble.cpp leaks resources. Is it worth noting such things, or is this > work-in-progress so don't bother? Always worth

Re: Import data from Scubapro Aladin Sport Matrix

2017-10-18 Thread Berthold Stoeger
On Sonntag, 15. Oktober 2017 18:31:34 CEST Linus Torvalds wrote: > So I think you have two issues that make it but work for you. > > The first and more fundamental is that we haven't done the BLE support for > the Aladin Sport at all yet, unless somebody did it without me even > noticing. > >

Re: Import data from Scubapro Aladin Sport Matrix

2017-10-16 Thread Dirk Hohndel
> On Oct 16, 2017, at 7:41 AM, Berthold Stoeger > wrote: >> >> Would you be able to create a commit with "Signed-off-by" line? >> Or even a GitHub pull request? > > I tried, but I have no idea what I'm doing: >

Re: Import data from Scubapro Aladin Sport Matrix

2017-10-16 Thread Berthold Stoeger
Hi Dirk, On Montag, 16. Oktober 2017 11:05:49 CEST you wrote: > > On Oct 16, 2017, at 2:06 AM, Berthold Stoeger > > wrote: > > Answering to myself here: The issue seems to be the > > > > connect(, SIGNAL(finished()), ...); > > > > call in

Re: Import data from Scubapro Aladin Sport Matrix

2017-10-16 Thread Dirk Hohndel
> On Oct 16, 2017, at 2:06 AM, Berthold Stoeger > wrote: > > Dear all, > > On Sonntag, 15. Oktober 2017 22:08:52 CEST Berthold Stoeger wrote: > >> By the way, there seems to be a strange bug(?): for the first failed >> download I get an information window. For

Re: Import data from Scubapro Aladin Sport Matrix

2017-10-16 Thread Berthold Stoeger
Dear all, On Sonntag, 15. Oktober 2017 22:08:52 CEST Berthold Stoeger wrote: > By the way, there seems to be a strange bug(?): for the first failed > download I get an information window. For each subsequent retry there is an > additional window. E.g. for the 5th failed download it opens 5

Re: Import data from Scubapro Aladin Sport Matrix

2017-10-15 Thread Berthold Stoeger
Dear Linus, On Sonntag, 15. Oktober 2017 18:31:34 CEST Linus Torvalds wrote: > So I think you have two issues that make it but work for you. > > The first and more fundamental is that we haven't done the BLE support for > the Aladin Sport at all yet, unless somebody did it without me even >

Re: Import data from Scubapro Aladin Sport Matrix

2017-10-15 Thread Linus Torvalds
On Oct 15, 2017 05:28, "Berthold Stoeger" wrote: I'm trying to import dive logs from a Scubapro Aladin Sport Matrix according to the manual. This is on Kubuntu 17.04 and subsurface compiled from source. So I think you have two issues that make it but work for you.

Import data from Scubapro Aladin Sport Matrix

2017-10-15 Thread Berthold Stoeger
Dear all, I'm trying to import dive logs from a Scubapro Aladin Sport Matrix according to the manual. This is on Kubuntu 17.04 and subsurface compiled from source. Pairing with bluetoothctl works as described, with the exception that I have to remove the device before pairing. Nevertheless,