Divecomputer-reading from Mobile devices (Was: Divemate Fusion)
Dirk Hohndel
dirk at hohndel.org
Sat Apr 9 13:59:55 PDT 2016
On Sat, Apr 09, 2016 at 11:28:02AM -0700, Dirk Hohndel wrote:
>
> I like Linus' idea with the C.H.I.P. - I'll freely admit that I didn't realize it had BTLE support - that's what I get for not being up on the specs of this toy. Could have saved my money on the Pi3 I guess (because I have a C.H.I.P. as well). So yeah, more stuff to play with :-)
O.M.G.
This is frighteningly easy. I have libdivecomputer up and running on my
C.H.I.P. -- the board is not a speed daemon (snicker), but getting things
built and installed is too easy for words. Plug the C.H.I.P. into your
computer via a micro-USB cable. Check what port it connected to
(/dev/ttyACM0 or something on Linux, /dev/tty.usbmodem1411 or something
like that on the Mac).
screen /dev/ttyACM0
login (root/chip)
(change the root password)
setup network:
TERM=ansi
nmtui
add your local wireless network
apt-get update
apt-get install git g++ make autoconf automake libtool cmake pkg-config libusb-1.0-0-dev
(now create a non-root user or use the user chip - don't do this stuff as root)
mkdir ~/src
git clone -b Subsurface-branch git://subsurface-divelog.org/libdc libdivecomputer
cd libdivecomputer
autoreconf --install
./configure
make
yep, that's how hard this was.
It would be equally easy to build a full Subsurface - we seem to have a
pretty complete Debian distro here. But of course I don't want a UI here,
I want a device that acts as a BTLE peripheral that can be controlled by a
another computer/device to act as a dive computer download agent, so to
speak.
So right now I'm looking at what it takes to turn this thing into a BTLE
peripheral... documentation on that seems to fairly sparse out there...
/D
More information about the subsurface
mailing list