[PATCH] libdivecomputer - custom implementation for serial communication

Claudiu Olteanu olteanu.vasilica.claudiu at gmail.com
Thu Jun 25 16:33:27 PDT 2015


Hi there,

I attached some patches which can be used to make the *libdivecomputer *
project to accept callbacks to custom functions used for serial
communication.

As I mentioned in my weekly report, I am not sure if I made the best
decisions
on the implementation.

I tested the HW OSTC 3 family with my OSTCs device and the native serial
communication works. I also implemented a custom implementation using
the QtBluetooth API and  I managed to transfer the dive logs without any
problems.

Best wishes,
Claudiu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150626/30d4445a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Extend-the-transport-enum-descriptor-for-serial-comm.patch
Type: text/x-patch
Size: 956 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150626/30d4445a/attachment-0013.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Create-a-generic-structure-to-represent-any-type-of-.patch
Type: text/x-patch
Size: 2933 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150626/30d4445a/attachment-0014.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Implement-initialization-method-for-serial-device.patch
Type: text/x-patch
Size: 2378 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150626/30d4445a/attachment-0015.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Add-targets-for-custom-serial-source-to-Makefile.patch
Type: text/x-patch
Size: 738 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150626/30d4445a/attachment-0016.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-Add-a-new-parameter-for-serial-open-method.patch
Type: text/x-patch
Size: 1269 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150626/30d4445a/attachment-0017.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-Implement-open-method-for-native-serial-communicatio.patch
Type: text/x-patch
Size: 2744 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150626/30d4445a/attachment-0018.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-Add-dc_-prefix-to-custom-serial-open-method.patch
Type: text/x-patch
Size: 1882 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150626/30d4445a/attachment-0019.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008-Add-get_received-and-get_transmitted-functions-point.patch
Type: text/x-patch
Size: 1612 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150626/30d4445a/attachment-0020.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0009-Use-the-dc_serial_t-structure-in-HW-OSTC-family.patch
Type: text/x-patch
Size: 10905 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150626/30d4445a/attachment-0021.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0010-Use-the-dc_serial_t-structure-in-HW-OSTC-family-3.patch
Type: text/x-patch
Size: 6711 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150626/30d4445a/attachment-0022.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0011-Implement-custom-open-method-for-HW-OSTC-3-family.patch
Type: text/x-patch
Size: 3164 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150626/30d4445a/attachment-0023.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0012-Implement-custom-open-method-for-HW-OSTC-family.patch
Type: text/x-patch
Size: 3046 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150626/30d4445a/attachment-0024.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0013-Implement-custom-device-open-method.patch
Type: text/x-patch
Size: 2269 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20150626/30d4445a/attachment-0025.bin>


More information about the subsurface mailing list