Mares Quad with BLE Interface

363 views
Skip to first unread message

Luc Martineau

unread,
Mar 29, 2018, 6:03:26 PM3/29/18
to Subsurface Divelog
I try to download from a Mares Quad computer using the BLE interface (Mares bluelink pro) with no success.

Is there some issue ?

Thanks

regards


Allen Hall

unread,
Apr 10, 2018, 5:30:19 AM4/10/18
to Subsurface Divelog
I'm experiencing difficulties as well, using Subsurface 4.7.8 on MacOS.  I can find the device in Bluetooth, although there are two instances of the BLE device with the same ID and different names (number of trailing spaces), so that might be a clue.  The logs are transferred successfully using the recommended MySSI app on iPhone, so the dive computer and BLE interface seem to be functioning as expected.

Log is small, so pasted below:

Subsurface: v4.7.8, built with libdivecomputer v0.7.0-devel-Subsurface-branch (8ae735a4d70307ebe2a42d315697f02ce71dbe88)
INFO: Configure: baudrate=115200, databits=8, parity=2, stopbits=0, flowcontrol=0
INFO: Timeout: value=1000
INFO: DTR: value=0
INFO: RTS: value=0
INFO: Purge: direction=3
INFO: Write: size=2, data=C267
INFO: Read: size=0, data=
ERROR: Failed to receive the answer. [in /Users/hohndel/src/subsurface/libdivecomputer/src/mares_iconhd.c:170 (mares_iconhd_transfer)]

Dirk Hohndel

unread,
Apr 10, 2018, 11:27:46 AM4/10/18
to 'Subsurface Divelog, Linus Torvalds
I'll admit that I'm not familiar with the Mares Quad. Clearly some people have been able to download from it, but that seemed to be through a USB interface from what I could tell from their emails.
Typically every BLE dive computer needs some special handling to get their encapsulation of their communication via BLE taken care of.

Linus, you're the expert on this, can you help Allen?

/D

--
You received this message because you are subscribed to the Google Groups "Subsurface Divelog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to subsurface-dive...@googlegroups.com.
To post to this group, send email to subsurfac...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/subsurface-divelog/4ccbf294-888d-4671-86a5-5a2b4c9f0f05%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Linus Torvalds

unread,
Apr 10, 2018, 12:19:21 PM4/10/18
to Dirk Hohndel, 'Subsurface Divelog
On Tue, Apr 10, 2018 at 8:27 AM, Dirk Hohndel <di...@hohndel.org> wrote:
> I'll admit that I'm not familiar with the Mares Quad. Clearly some people
> have been able to download from it, but that seemed to be through a USB
> interface from what I could tell from their emails.
> Typically every BLE dive computer needs some special handling to get their
> encapsulation of their communication via BLE taken care of.
>
> Linus, you're the expert on this, can you help Allen?

So the Mares Quad should just work over the USB cable that acts like a
serial line.

But Allen doesn't seem to see any actual communication. It could be
anything: bad cable positioning (some of the Mares clip-on things are
very finicky from what I remember) or just picking the wrong serial
device.

I think the Mares Dive Link 2 used the Silicon Labs CP210x USB serial
chip. Allen, I assume you have the driver for that thing? Has it
worked before?

The drivers can be found at

https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers

afaik.

The BLE case has no chance in hell of working right now -
libdivecomputer doesn't even have any support for it, and we've never
seen a BLE trace. So getting BLE working would require somebody to
first get a successful trace from the Mares app, and then likely a
whole lot of work to figure out the protocol. It *might* be one of
those easy cases ("very usual BLE serial emulation, same protocol as
the old serial protocol") but it might be a big job. But even the
"easy case" tends to be pretty nasty with BLE.

Linus

Luc Martineau

unread,
May 13, 2018, 12:25:47 PM5/13/18
to Subsurface Divelog
I don't know if it can help :

The FCCID of the bluetooth module is 2AIKSBLNK and the chip is an Broadcom BCM20737S.
This bluetooth module can be used with the mares computer (Puck Pro/Puck Pro+/Quad/Quad Air/Smart ... )

regards
Luc
Reply all
Reply to author
Forward
0 new messages