Shearwater Petrel import has wrong timestamp

Jef Driesen jefdriesen at telenet.be
Sun May 12 02:28:00 PDT 2013


On 12-05-13 05:22, Dirk Hohndel wrote:
> On Sun, 2013-05-12 at 00:14 +0200, Henrik Brautaset Aronsen wrote:
>> I tried importing a couple of dives from the Petrel today.  Observations:
>>
>> - The imported dives are two hours wrong.  E.g. a dive is at 14:23 on
>> the Petrel, but is imported as 16:23 in Subsurface.  Norway is in CEST
>> (GMT+2) right now, that might have something to do with it.  There are
>> no time zone settings on the Petrel.
>
> That is very odd. Need to try again with mine with the latest code in
> master of both libdivecomputer and Subsurface. This worked perfectly the
> last time I tried it (with PST - GMT-8).

This is very odd indeed. I believe we fixed that a while ago and I didn't notice 
any date/time errors since then.

>> - I get a bluetooth timeout error on the Petrel when it tries to import
>> the two test dives that came with the computer.
>
> Also odd. Which firmware is installed on your Petrel?

This is a known issue. The shutdown command, which we are supposed to send right 
before closing the bluetooth connection, is still missing. That's why you get 
the "Bluetooth error: Disconnect" at the end. It doesn't affect the download, so 
for now you can just ignore it.

I'll fix this for the libdivecomputer v0.4 release. This is actually the last 
remaining item on my todo list :-)

>> - Otherwise, it works great.  It's *so* nice that Jef implemented the
>> native support.  I tried and old libdc version first, and it was sloooow.
>
> Yes, it's a massive improvement.

BTW, you can still use the legacy Predator protocol, by selecting "Shearwater 
Predator" as the device. There are no good reasons to do so, but it does still 
work :-)

Jef


More information about the subsurface mailing list