ostc BT download failure

Anton Lundin glance at acc.umu.se
Thu Oct 1 04:47:38 PDT 2015


On 01 October, 2015 - Miika Turkia wrote:

> On Thu, Oct 1, 2015 at 2:28 AM, Jef Driesen <jef at libdivecomputer.org> wrote:
> > On 2015-09-29 20:06, Miika Turkia wrote:
> >>
> >> I am testing out OSTC sport and BT download. However, this fails
> >> miserably:
> >> ---8<---
> >> INFO: Sleep: value=300
> >> Event: model=18 (0x00000012), firmware=2578 (0x00000a12), serial=10321
> >> (0x00002851)
> >
> >
> > You have an OSTC Sport with firmware v10.18.
> 
> Yep, and now updated to v10.20. As I mentioned on another email, I was
> able to download successfully once, but since then downloads have
> failed.
> 
> >> ERROR: Failed to receive the answer. [in hw_ostc3.c:242
> >> (hw_ostc3_transfer)]
> >> ERROR: Failed to read the header. [in hw_ostc3.c:635
> >> (hw_ostc3_device_foreach)]
> >
> >
> > This is an error during the download of the full headers. Without more
> > verbose logging ("enable libdivecomputer logfile"), it's hard to tell what
> > exactly is going wrong here. It looks like we received the command echo, but
> > no data packet (or not a complete packet).
> 
> I don't seem to be getting any better logs when enabling the
> libdivecomputer logfile. Here is the latest log when I successfully
> donwloaded one dive, but failed after that:
> 
> INFO: Sleep: value=300
> Event: model=18 (0x00000012), firmware=2580 (0x00000a14), serial=10321
> (0x00002851)
> ERROR: Failed to receive the answer. [in hw_ostc3.c:242 (hw_ostc3_transfer)]
> ERROR: Failed to read the dive. [in hw_ostc3.c:744 (hw_ostc3_device_foreach)]
> ERROR: Failed to receive the echo. [in hw_ostc3.c:200 (hw_ostc3_transfer)]
> ERROR: Failed to send the command. [in hw_ostc3.c:487 (hw_ostc3_device_close)]
> 

The qtserialbluetooth layer doesn't log packets as the libdivecomputer
serial backend does, and it will needs some work to get access to those
pointers to do that from the dc_context_t struct.

We should fix that.


//Anton


-- 
Anton Lundin	+46702-161604


More information about the subsurface mailing list