Mares Horizon SCR

105 views
Skip to first unread message

Peter K Anderson

unread,
Dec 1, 2020, 7:04:24 PM12/1/20
to Subsurface Divelog

Hello,

I have just completed training on the relatively new Mares Horizon SCR and was hoping to use Subsurface as lsusb listed the unit as:

iManufacturer      1 Mares
iProduct                2 ICON HD COM

No such luck though as, even if the Horizon dive computer is based on the Icon HD, it's not something I really expected to work ...well not without some help hence my post here.

Am currently running Subsurface on Ubuntu (Bionic) and happy to provide lsusb output, and Subsurface log/dump or any other data that may be required to get this to work.

Please advise whether to post the required data here or whether there is some other mechanism to have support for the  Horizon considered for inclusion in a future release of Subsurface.

Regards,

Peter


Peter K Anderson

unread,
Dec 9, 2020, 11:35:57 PM12/9/20
to Subsurface Divelog
Compiled latest subsurface and associated libdivecomputer code from git repo (with intention of hacking ...though confess am not a coder) and then ran resultant binary with extra verbosity, producing:

----------
$ ./subsurface -v -v
  Subsurface v,
  built with libdivecomputer v0.7.0-devel-Subsurface-NG (e58a5866bbd6d12fba7b3482c11d0ae2bed2e1c4)
  built with Qt Version 5.9.5, runtime from Qt Version 5.9.5
  built with libgit2 0.26.0
  "validateGL(): created OpenGLContext."
  "validateGL(): obtained QOpenGLFunctions."
  "validateGL(): detected OpenGL version 4.6."
  can't find Qt base localization for locale "en-AU" searching in "/usr/share/qt5/translations"
  can't find Subsurface localization for locale "en-AU"
  MapWidget.qml: cannot find a plugin named: googlemaps
  qrc:/qml/MapWidget.qml:24: Error: Cannot assign [undefined] to QDeclarativeGeoMapType*
  loading dive data from ("/home/peter/.subsurface/peter.xml")
 
  File locations:
 
  Cloud email:
  Unable to get local git directory
  Cloud URL: No valid cloud credentials set.
 
  Image filename table: /home/peter/.subsurface/hashes
  Local picture directory: /home/peter/.subsurface/picturedata/
 
  Starting download from  "SERIAL"
  downloading only new dives
  INFO: dev_info: Opening serial device /dev/ttyACM0
 
  INFO: dev_info: Connecting ...
 
  INFO: dc_device_open error value of 0
  INFO: dev_info: Starting import ...
 
  EVENT_DEVINFO gave us a different detected product (model 0 instead of 20), but that one is unknown.
  INFO: dev_info: model=Icon HD firmware=0 serial=892809520
 
  [0.002482] ERROR: Ringbuffer pointer out of range (0x01000005). [in /home/peter/Projects/subsurface-build/subsurface/libdivecomputer/src/mares_iconhd.c:746 (mares_iconhd_device_foreach_raw)]
  INFO: dev_info: No new dives downloaded from dive computer
 
  Finishing download thread: "Dive data import error"

----------

Apart from the obvious (ERROR), the reported serial number is not correct as my unit serial number (from Mares 'Dive Organizer' software, log download) is: 'SAMPLE #000175'

That 'SAMPLE' serial number is not particularly inspiring though of course the Horizon is rather new to the market where some peripheral aspects of the dive computer firmware are still in flux.

I've attached a dump from the release version of subsurface ...though am guessing that including subsurface support for the Horizon computer (arguably a Mares-hacked 'Icon HD') wont be possible without physical access to the unit by someone much more capable (at coding) than I.

Who knows, if the Horizon becomes more popular then maybe Mares would even consider making a unit available ...maybe when things settle down a bit in a year or so.

In the mean time, unless someone cares to comment (I'd certainly welcome any comments on this subject), I'll just have to resign myself to using the Mares provided dive log software (definitely not my first choice)

Regards,

Peter
mares-horizon-subsurface.bin
mares-horizon-lsusb.txt

Jef Driesen

unread,
Dec 10, 2020, 1:55:17 AM12/10/20
to subsurfac...@googlegroups.com, Peter K Anderson
On 10/12/2020 05:35, Peter K Anderson wrote:
> ...
>
>   EVENT_DEVINFO gave us a different detected product (model 0 instead of 20),
> but that one is unknown.
>   INFO: dev_info: model=Icon HD firmware=0 serial=892809520
>
>   [0.002482] ERROR: Ringbuffer pointer out of range (0x01000005). [in
> /home/peter/Projects/subsurface-build/subsurface/libdivecomputer/src/mares_iconhd.c:746
> (mares_iconhd_device_foreach_raw)]
>   INFO: dev_info: No new dives downloaded from dive computer
>
>   Finishing download thread: "Dive data import error"
> ----------
>
> Apart from the obvious (ERROR), the reported serial number is not correct as my
> unit serial number (from Mares 'Dive Organizer' software, log download) is:
> 'SAMPLE #000175'
>
> That 'SAMPLE' serial number is not particularly inspiring though of course the
> Horizon is rather new to the market where some peripheral aspects of the dive
> computer firmware are still in flux.
>
> I've attached a dump from the release version of subsurface ...though am
> guessing that including subsurface support for the Horizon computer (arguably a
> Mares-hacked 'Icon HD') wont be possible without physical access to the unit by
> someone much more capable (at coding) than I.

The fact that you were able to download a memory dump means the protocol has not
changed. That's already good. The fact that it failed with an error is not
entirely unexpected. Because we don't recognize the new model yet, we are not
able to select the correct memory layout. That should be easy to fix. But I'll
need not only the memory dump but also the full log file. That's because the
model information is not present in the memory dump, only in the verbose log.

So download again, but this time with both the "Save libdivecomputer logfile"
and "Save libdivecomputer dumpfile" checkboxes. Having an export (or the
database) from the Mares software will also help me a lot.

Jef

Peter K Anderson

unread,
Dec 10, 2020, 2:29:47 AM12/10/20
to Subsurface Divelog
Sorry Jef,

I also saved a logfile but neglected to send ...here it is (attached)

Regards,

Peter
mares-horizon-subsurface.log

Jef Driesen

unread,
Dec 10, 2020, 11:03:06 AM12/10/20
to subsurfac...@googlegroups.com, Peter K Anderson
On 10/12/2020 08:29, Peter K Anderson wrote:
> I also saved a logfile but neglected to send ...here it is (attached)

I suspect the Horizon is similar to the Genius, which is a bit different from
the other Mares models. Can you try downloading with the libedivecomputer
command-line tool:

http://www.libdivecomputer.org/builds/experimental/linux/horizon

This build already has some patches to recognize the Horizon. Download twice (a
memory dump and a normal download) with these options:

chmod +x dctool
./dctool -vv -l dump.log -f iconhd dump -o dump.bin /dev/ttyACM0
./dctool -vv -l download.log -f iconhd download -o dive.%n.bin -f raw /dev/ttyACM0

And send me the output files.

Jef
Reply all
Reply to author
Forward
0 new messages