Fwd: feedback on experience with OSX packaging
jefdriesen at telenet.be
Mon Oct 8 01:28:23 PDT 2012
On 2012-10-05 21:56, Dirk Hohndel wrote:
> Henrik Brautaset Aronsen <henrik at synth.no> writes:
>> Den 05.10.12 16:51, skrev Jef Driesen:
>>> On 2012-10-05 06:42, Dirk Hohndel wrote:
>>>> My guess would be that the device name is wrong, but I'm on a
>>>> plane and
>>>> can't even Google for this. Jef - any suggestions (as this is
>>>> libdivecomputer territory)?
>>> The /dev/tty.SLAB_USBtoUART device name indicates you have some
>>> Silicon Labs CP210x based hardware. The official Suunto cable has
>>> FTDI usb-serial chip. So unless you have one of the third-party
>>> cables, that device name is likely incorrect. You mention a Mares
>>> Puck, and that one does indeed need the CP210x driver. So maybe
>>> device name comes from there?
>> Yup, that's correct. My official cable uses
>> /dev/tty.usbserial-ST000001, while my Custom Idea cable uses
> Ah! I bet that's it.
> One of the things I had been playing with but then abandoned because
> was too close to the 2.0 release was to add code that would make the
> device that is suggested by Subsurface be DC specific. What triggered
> this for me is of course that all of these device names are silly and
> wrong for the Uemis Zurich. It needs something like
> "/var/run/<userid>/media/UEMISSDA" on Linux, "/Volumes/UEMISSDA" on
> and some random drive letter "E:" on Windows...
One of the things you could do is enumerate the serial ports on the
system, and list them in the GUI (a dropdown or something). It's already
a bit more user friendly than having to find the device name manually. I
even considered adding support for enumerating ports in libdivecomputer,
but it turned out to be pretty difficult to implement correctly. On
Windows the enumeration api is different for each Windows version, on
Linux I don't know how to do it all, and Mac OS X probably has an api
for it too, but I'm not very familiar with it.
So in the end, I just didn't try to implement this.
> Of course of different dive computer cables require different device
> names we may need to change the DC selector that we have today into
> something more like "Suunto (Gecko, Vyper Family, etc) with Suunto
> cable", "Suunto (Gecko, Vyper Family, etc) with Idea cable", ...
With a list of the available ports on the system, that shouldn't be
necessary. It's very unlikely a user will have multiple types of cables
connected at the same time, so normally the list will contain just one
More information about the subsurface