Mares Smart Dive Computer + Bluelink pro

Fabio Capriati fabio.capriati at gmail.com
Wed Sep 26 12:55:36 PDT 2018


Hi everyone,
Something is changed. Now it said that "no new dives are present on
computer".

I'm honered  help this project! Thanks for your work.

Here the "daily chocolate" ;)

Bye




---------- subsurface.log ----------
Empty filename passed to function
"0.040: Failed to open logfile /storage/emulated/0/subsurface.log at mer
set 26 21:46:31 2018 error: Permission denied"
"0.041: Failed to open logfile /storage/emulated/0/Documents/subsurface.log
at mer set 26 21:46:31 2018 error: Permission denied"
"0.042: Successfully opened logfile
/storage/emulated/0/Android/data/org.subsurfacedivelog.mobile/files/Documents/subsurface.log
at mer set 26 21:46:31 2018"
"0.044: Starting Subsurface-mobile:2.1.4(4.8.2.74):Android Oreo
(8.0):arm:it-IT"
"0.045: built with libdivecomputer v0.7.0-devel-Subsurface-NG
(e97886a994c18844bdcb1e1832ce4475dbe409b0)"
"0.045: built with Qt Version 5.11.1, runtime from Qt Version 5.11.1"
"0.045: built with libgit2 0.26.0"
"localDevice OnePlus 3 is valid, starting discovery"

Found new device: "Quad" "LE:00:1A:85:E0:0C:23"
"this could be a Mares Quad"

Paired = "Mares bluelink pro" "LE:00:1A:85:E0:0C:23"

"Created position source android"
"0.135: Created position source android"
"Set GPS service update interval to 300 s"
"0.136: Set GPS service update interval to 300 s"
"0.136: location service is available"
"0.892: Credenziali cloud mancanti"
checkPendingIntents
Using the following font: Roboto at 16pt with mobile_scale: 1
qqwindow devicePixelRatio 3 3
Supported dive computers:
"Aeris: 500 AI (SERIAL), A300 (SERIAL), A300 AI (SERIAL), A300CS (SERIAL),
Atmos 2 (SERIAL), Atmos AI (SERIAL), Atmos AI 2 (SERIAL), Compumask
(SERIAL), Elite (SERIAL), Elite T3 (SERIAL), Epic (SERIAL), F10 (SERIAL),
F11 (SERIAL), Manta (SERIAL), XR-1 NX (SERIAL), XR-2 (SERIAL)"
"Aqualung: i200 (SERIAL), i300 (SERIAL), i450T (SERIAL), i550 (SERIAL),
i750TC (SERIAL, BT)"
"Atomic Aquatics: Cobalt (USB), Cobalt 2 (USB)"
"Beuchat: Mundial 2 (SERIAL), Mundial 3 (SERIAL), Voyager 2G (SERIAL)"
"Cochran: Commander I (SERIAL), Commander II (SERIAL), Commander TM
(SERIAL), EMC-14 (SERIAL), EMC-16 (SERIAL), EMC-20H (SERIAL)"
"Cressi: Drake (SERIAL), Giotto (SERIAL), Leonardo (SERIAL), Newton
(SERIAL)"
"Garmin: Descent Mk1 (USBSTORAGE)"
"Genesis: React Pro (SERIAL), React Pro White (SERIAL)"
"Heinrichs Weikamp: Frog (SERIAL, BT), OSTC (SERIAL), OSTC 2 (SERIAL, BT,
BLE), OSTC 2 TR (SERIAL, BT, BLE), OSTC 2C (SERIAL), OSTC 2N (SERIAL), OSTC
3 (SERIAL), OSTC 4 (SERIAL, BT, BLE), OSTC Mk2 (SERIAL), OSTC Plus (SERIAL,
BT, BLE), OSTC Sport (SERIAL, BT, BLE), OSTC cR (SERIAL)"
"Hollis: DG02 (SERIAL), DG03 (SERIAL), TX1 (SERIAL)"
"Mares: Puck Pro (SERIAL, BLE), Quad (SERIAL, BLE), Quad Air (SERIAL, BLE),
Smart (SERIAL, BLE), Smart Air (SERIAL, BLE)"
"Oceanic: Atom 1.0 (SERIAL), Atom 2.0 (SERIAL), Atom 3.0 (SERIAL), Atom 3.1
(SERIAL), Datamask (SERIAL), F10 (SERIAL), F11 (SERIAL), Geo (SERIAL), Geo
2.0 (SERIAL), OC1 (SERIAL), OCS (SERIAL), OCi (SERIAL), Pro Plus 2
(SERIAL), Pro Plus 2.1 (SERIAL), Pro Plus 3 (SERIAL), VT 4.1 (SERIAL), VT
Pro (SERIAL), VT3 (SERIAL), VT4 (SERIAL), VTX (SERIAL), Veo 1.0 (SERIAL),
Veo 180 (SERIAL), Veo 2.0 (SERIAL), Veo 200 (SERIAL), Veo 250 (SERIAL), Veo
3.0 (SERIAL), Versa Pro (SERIAL)"
"Scubapro: Aladin Sport Matrix (BLE), Aladin Square (USBHID), G2 (USBHID,
BLE), G2 Console (USBHID, BLE)"
"Seemann: XP5 (SERIAL)"
"Shearwater: Nerd (SERIAL, BT), Nerd 2 (BLE), Perdix (SERIAL, BT, BLE),
Perdix AI (BLE), Petrel (SERIAL, BT), Petrel 2 (SERIAL, BT, BLE), Predator
(SERIAL, BT), Teric (BLE)"
"Sherwood: Amphos (SERIAL), Amphos Air (SERIAL), Insight (SERIAL), Insight
2 (SERIAL), Vision (SERIAL), Wisdom (SERIAL), Wisdom 2 (SERIAL), Wisdom 3
(SERIAL)"
"Subgear: XP-Air (SERIAL)"
"Suunto: Cobra (SERIAL), Cobra 2 (SERIAL), Cobra 3 (SERIAL), D3 (SERIAL),
D4 (SERIAL), D4f (SERIAL), D4i (SERIAL), D6 (SERIAL), D6i (SERIAL), D9
(SERIAL), D9tx (SERIAL), DX (SERIAL), EON Core (USBHID, BLE), EON Steel
(USBHID, BLE), Eon (SERIAL), Gekko (SERIAL), HelO2 (SERIAL), Mosquito
(SERIAL), Solution (SERIAL), Solution Alpha (SERIAL), Solution Nitrox
(SERIAL), Spyder (SERIAL), Stinger (SERIAL), Vyper (SERIAL), Vyper 2
(SERIAL), Vyper Air (SERIAL), Vyper Novo (SERIAL), Vytec (SERIAL), Zoop
(SERIAL), Zoop Novo (SERIAL)"
"Tecdiving: DiveComputer.eu (SERIAL, BT)"
"Tusa: Element II (IQ-750) (SERIAL), Zen (IQ-900) (SERIAL), Zen Air
(IQ-950) (SERIAL)"
"Uwatec: Aladin Air Twin (SERIAL), Aladin Air Z (SERIAL), Aladin Air Z
Nitrox (SERIAL), Aladin Air Z O2 (SERIAL), Aladin Pro (SERIAL), Aladin Pro
Ultra (SERIAL), Aladin Sport Plus (SERIAL), Memomouse (SERIAL)"
qqwindow screen has ldpi/pdpi 72 133.858
"1.721: AppState changed to active with no save ongoing and no unsaved
changes"
"2.878: Switching to no cloud mode"
"2.972: Unable to look up revision 'master'"
"2.973: Unable to look up revision 'master'"
"2.973: loading dives from cache failed -1"
"2.976: have cloud credentials, but user asked not to connect to network"
"11.662: DCDownloadThread started for Mares Smart on LE:00:1A:85:E0:0C:23"
Starting download from  BT
Creating Android Central/Client support for BTLE
qt_ble_open( 00:1A:85:E0:0C:23 )
"LocalDeviceBroadcastReceiver::onReceive() - event:
android.bluetooth.device.action.ACL_CONNECTED"
Connection updated: error: QLowEnergyController::Error(NoError) oldState:
QLowEnergyController::ControllerState(ConnectingState) newState:
QLowEnergyController::ControllerState(ConnectedState)
connected to the controller for device 00:1A:85:E0:0C:23
  .. discovering services
Service discovery initiated
Found service "{00001800-0000-1000-8000-00805f9b34fb}"
 .. created service object QLowEnergyService(0xc1c47eb0)
Discovery of "{00001800-0000-1000-8000-00805f9b34fb}" started
Found service "{544e326b-5b72-c6b0-1c46-41c1bc448118}"
 .. created service object QLowEnergyService(0xc1c47f80)
Discovery of "{544e326b-5b72-c6b0-1c46-41c1bc448118}" started
Found service "{0000180a-0000-1000-8000-00805f9b34fb}"
 .. created service object QLowEnergyService(0xc1bc2040)
Discovery of "{0000180a-0000-1000-8000-00805f9b34fb}" started
Found service "{0000180f-0000-1000-8000-00805f9b34fb}"
 .. created service object QLowEnergyService(0xc1bc2100)
Discovery of "{0000180f-0000-1000-8000-00805f9b34fb}" started
Found service "{a86abc2d-d44c-442e-99f7-80059a873e36}"
 .. created service object QLowEnergyService(0xc1bc21c0)
Discovery of "{a86abc2d-d44c-442e-99f7-80059a873e36}" started
 .. done discovering services
Service "00001800-0000-1000-8000-00805f9b34fb" discovered (start: 1 end: 5
) QLowEnergyServicePrivate(0xc3c46380)
Service "544e326b-5b72-c6b0-1c46-41c1bc448118" discovered (start: 6 end: 13
) QLowEnergyServicePrivate(0xc3c46440)
Service "0000180a-0000-1000-8000-00805f9b34fb" discovered (start: 14 end:
22 ) QLowEnergyServicePrivate(0xc3c46740)
Service "0000180f-0000-1000-8000-00805f9b34fb" discovered (start: 23 end:
25 ) QLowEnergyServicePrivate(0xc3bc6080)
Service "a86abc2d-d44c-442e-99f7-80059a873e36" discovered (start: 26 end:
33 ) QLowEnergyServicePrivate(0xc3bc6180)
Found service "{00001800-0000-1000-8000-00805f9b34fb}" "Generic Access"
   c: "{00002a00-0000-1000-8000-00805f9b34fb}"
   c: "{00002a01-0000-1000-8000-00805f9b34fb}"
Found service "{544e326b-5b72-c6b0-1c46-41c1bc448118}" "Unknown Service"
   c: "{1d1aae28-d2a8-91a1-1242-9d2973fbe571}"
        d: "{00002902-0000-1000-8000-00805f9b34fb}"
   c: "{99a91ebd-b21f-1689-bb43-681f1f55e966}"
   c: "{d8b3ab7c-4101-ec80-c441-9b0914f6ebc3}"
Found service "{0000180a-0000-1000-8000-00805f9b34fb}" "Device Information"
   c: "{00002a29-0000-1000-8000-00805f9b34fb}"
   c: "{00002a24-0000-1000-8000-00805f9b34fb}"
   c: "{00002a28-0000-1000-8000-00805f9b34fb}"
   c: "{00002a23-0000-1000-8000-00805f9b34fb}"
Found service "{0000180f-0000-1000-8000-00805f9b34fb}" "Battery Service"
   c: "{00002a19-0000-1000-8000-00805f9b34fb}"
Found service "{a86abc2d-d44c-442e-99f7-80059a873e36}" "Unknown Service"
   c: "{1bd19c14-b78a-4e0f-aeb5-8e0352bac382}"
        d: "{00002902-0000-1000-8000-00805f9b34fb}"
   c: "{279f9dab-79be-4663-af1d-24407347af13}"
   c: "{6aa5711b-0376-44f1-bca1-8647b48bdb55}"
 .. ignoring standard service "{00001800-0000-1000-8000-00805f9b34fb}"
Using service "{544e326b-5b72-c6b0-1c46-41c1bc448118}" as preferred service
 .. enabling notifications
Using read characteristic "{1d1aae28-d2a8-91a1-1242-9d2973fbe571}"
now writing "0x0100" to the descriptor
"{00002902-0000-1000-8000-00805f9b34fb}"
Write descriptor with handle  9 "0100" (service:
"{544e326b-5b72-c6b0-1c46-41c1bc448118}" )
QTime("21:46:47.880") packet SEND "c267"
Write characteristic with handle  10 "c267" (service:
"{544e326b-5b72-c6b0-1c46-41c1bc448118}" , writeWithResponse: false ,
signed: false )
QTime("21:46:47.881") packet WAIT
Descriptor write confirmation "{544e326b-5b72-c6b0-1c46-41c1bc448118}" 9
"0100" QLowEnergyService::ServiceError(NoError)
BLE write completed
Characteristic write confirmation "{544e326b-5b72-c6b0-1c46-41c1bc448118}"
10 "c267" QLowEnergyService::ServiceError(NoError)
BLEObject::characteristicWritten
Characteristic change notification "{544e326b-5b72-c6b0-1c46-41c1bc448118}"
7 "aa00000000000000000000000000000000000000"
QTime("21:46:49.839") packet RECV "aa00000000000000000000000000000000000000"
Characteristic change notification "{544e326b-5b72-c6b0-1c46-41c1bc448118}"
7 "0000000000000000000000000000000000000000"
QTime("21:46:49.840") packet RECV "0000000000000000000000000000000000000000"
Characteristic change notification "{544e326b-5b72-c6b0-1c46-41c1bc448118}"
7 "0000000000000000000000000000000000000000"
QTime("21:46:49.842") packet RECV "0000000000000000000000000000000000000000"
Characteristic change notification "{544e326b-5b72-c6b0-1c46-41c1bc448118}"
7 "0000000000000000000000536d61727400000000"
QTime("21:46:49.845") packet RECV "0000000000000000000000536d61727400000000"
QTime("21:46:49.846") packet READ "aa"
QTime("21:46:49.848") packet READ "00000000000000000000000000000000000000"
QTime("21:46:49.849") packet READ "0000000000000000000000000000000000000000"
QTime("21:46:49.849") packet READ "0000000000000000000000000000000000000000"
QTime("21:46:49.850") packet READ "0000000000000000000000536d61727400000000"
QTime("21:46:49.850") packet WAIT
Characteristic change notification "{544e326b-5b72-c6b0-1c46-41c1bc448118}"
7 "0000000000000030322e30312e30300201000031"
QTime("21:46:50.335") packet RECV "0000000000000030322e30312e30300201000031"
Characteristic change notification "{544e326b-5b72-c6b0-1c46-41c1bc448118}"
7 "352d30352d313760f1536d617274204d61726573"
QTime("21:46:50.336") packet RECV "352d30352d313760f1536d617274204d61726573"
QTime("21:46:50.340") packet READ "0000000000000030322e30312e30300201000031"
QTime("21:46:50.340") packet READ "352d30352d313760f1536d617274204d61726573"
QTime("21:46:50.341") packet WAIT
Characteristic change notification "{544e326b-5b72-c6b0-1c46-41c1bc448118}"
7 "0000000000000000000000000000000000000000"
QTime("21:46:50.342") packet RECV "0000000000000000000000000000000000000000"
Characteristic change notification "{544e326b-5b72-c6b0-1c46-41c1bc448118}"
7 "00ea"
QTime("21:46:50.343") packet RECV "00ea"
QTime("21:46:50.344") packet READ "0000000000000000000000000000000000000000"
QTime("21:46:50.344") packet READ "00"
QTime("21:46:50.345") packet READ "ea"
QTime("21:46:50.347") packet SEND "e742"
Write characteristic with handle  10 "e742" (service:
"{544e326b-5b72-c6b0-1c46-41c1bc448118}" , writeWithResponse: false ,
signed: false )
QTime("21:46:50.351") packet WAIT
Characteristic write confirmation "{544e326b-5b72-c6b0-1c46-41c1bc448118}"
10 "e742" QLowEnergyService::ServiceError(NoError)
BLEObject::characteristicWritten
Characteristic change notification "{544e326b-5b72-c6b0-1c46-41c1bc448118}"
7 "aa"
QTime("21:46:51.319") packet RECV "aa"
QTime("21:46:51.321") packet READ "aa"
QTime("21:46:51.323") packet SEND "0c00000004000000"
Write characteristic with handle  10 "0c00000004000000" (service:
"{544e326b-5b72-c6b0-1c46-41c1bc448118}" , writeWithResponse: false ,
signed: false )
QTime("21:46:51.331") packet WAIT
Characteristic write confirmation "{544e326b-5b72-c6b0-1c46-41c1bc448118}"
10 "0c00000004000000" QLowEnergyService::ServiceError(NoError)
BLEObject::characteristicWritten
Characteristic change notification "{544e326b-5b72-c6b0-1c46-41c1bc448118}"
7 "ea"
QTime("21:46:51.816") packet RECV "ea"
QTime("21:46:51.818") packet READ "ea"
QTime("21:46:51.819") packet WAIT
Deleting BLE object
"32.105: Non sono state trovate nuove immersioni nel computer subacqueo"
Finishing download thread: "Errore importazione dati immersione"
no new dives downloaded
"32.195: DCDownloadThread finished"
"LocalDeviceBroadcastReceiver::onReceive() - event:
android.bluetooth.device.action.ACL_DISCONNECTED"
"42.304: DCDownloadThread started for Mares Smart on LE:00:1A:85:E0:0C:23"
Starting download from  BT
Creating Android Central/Client support for BTLE
qt_ble_open( 00:1A:85:E0:0C:23 )
"LocalDeviceBroadcastReceiver::onReceive() - event:
android.bluetooth.device.action.ACL_CONNECTED"
Connection updated: error: QLowEnergyController::Error(NoError) oldState:
QLowEnergyController::ControllerState(ConnectingState) newState:
QLowEnergyController::ControllerState(ConnectedState)
connected to the controller for device 00:1A:85:E0:0C:23
  .. discovering services
Service discovery initiated
Found service "{00001800-0000-1000-8000-00805f9b34fb}"
 .. created service object QLowEnergyService(0xc7610aa0)
Discovery of "{00001800-0000-1000-8000-00805f9b34fb}" started
Found service "{544e326b-5b72-c6b0-1c46-41c1bc448118}"
 .. created service object QLowEnergyService(0xc7610b60)
Discovery of "{544e326b-5b72-c6b0-1c46-41c1bc448118}" started
Found service "{0000180a-0000-1000-8000-00805f9b34fb}"
 .. created service object QLowEnergyService(0xc7610c20)
Discovery of "{0000180a-0000-1000-8000-00805f9b34fb}" started
Found service "{0000180f-0000-1000-8000-00805f9b34fb}"
 .. created service object QLowEnergyService(0xc7610ce0)
Discovery of "{0000180f-0000-1000-8000-00805f9b34fb}" started
Found service "{a86abc2d-d44c-442e-99f7-80059a873e36}"
 .. created service object QLowEnergyService(0xc7610da0)
Discovery of "{a86abc2d-d44c-442e-99f7-80059a873e36}" started
 .. done discovering services
Service "00001800-0000-1000-8000-00805f9b34fb" discovered (start: 1 end: 5
) QLowEnergyServicePrivate(0xc7611e40)
Service "544e326b-5b72-c6b0-1c46-41c1bc448118" discovered (start: 6 end: 13
) QLowEnergyServicePrivate(0xc7611f00)
Service "0000180a-0000-1000-8000-00805f9b34fb" discovered (start: 14 end:
22 ) QLowEnergyServicePrivate(0xc7611fc0)
Service "0000180f-0000-1000-8000-00805f9b34fb" discovered (start: 23 end:
25 ) QLowEnergyServicePrivate(0xc193af40)
Service "a86abc2d-d44c-442e-99f7-80059a873e36" discovered (start: 26 end:
33 ) QLowEnergyServicePrivate(0xc5412080)
Found service "{00001800-0000-1000-8000-00805f9b34fb}" "Generic Access"
   c: "{00002a00-0000-1000-8000-00805f9b34fb}"
   c: "{00002a01-0000-1000-8000-00805f9b34fb}"
Found service "{544e326b-5b72-c6b0-1c46-41c1bc448118}" "Unknown Service"
   c: "{1d1aae28-d2a8-91a1-1242-9d2973fbe571}"
        d: "{00002902-0000-1000-8000-00805f9b34fb}"
   c: "{99a91ebd-b21f-1689-bb43-681f1f55e966}"
   c: "{d8b3ab7c-4101-ec80-c441-9b0914f6ebc3}"
Found service "{0000180a-0000-1000-8000-00805f9b34fb}" "Device Information"
   c: "{00002a29-0000-1000-8000-00805f9b34fb}"
   c: "{00002a24-0000-1000-8000-00805f9b34fb}"
   c: "{00002a28-0000-1000-8000-00805f9b34fb}"
   c: "{00002a23-0000-1000-8000-00805f9b34fb}"
Found service "{0000180f-0000-1000-8000-00805f9b34fb}" "Battery Service"
   c: "{00002a19-0000-1000-8000-00805f9b34fb}"
Found service "{a86abc2d-d44c-442e-99f7-80059a873e36}" "Unknown Service"
   c: "{1bd19c14-b78a-4e0f-aeb5-8e0352bac382}"
        d: "{00002902-0000-1000-8000-00805f9b34fb}"
   c: "{279f9dab-79be-4663-af1d-24407347af13}"
   c: "{6aa5711b-0376-44f1-bca1-8647b48bdb55}"
 .. ignoring standard service "{00001800-0000-1000-8000-00805f9b34fb}"
Using service "{544e326b-5b72-c6b0-1c46-41c1bc448118}" as preferred service
 .. enabling notifications
Using read characteristic "{1d1aae28-d2a8-91a1-1242-9d2973fbe571}"
now writing "0x0100" to the descriptor
"{00002902-0000-1000-8000-00805f9b34fb}"
Write descriptor with handle  9 "0100" (service:
"{544e326b-5b72-c6b0-1c46-41c1bc448118}" )
QTime("21:47:20.552") packet SEND "c267"
Write characteristic with handle  10 "c267" (service:
"{544e326b-5b72-c6b0-1c46-41c1bc448118}" , writeWithResponse: false ,
signed: false )
QTime("21:47:20.554") packet WAIT
Descriptor write confirmation "{544e326b-5b72-c6b0-1c46-41c1bc448118}" 9
"0100" QLowEnergyService::ServiceError(NoError)
BLE write completed
Characteristic write confirmation "{544e326b-5b72-c6b0-1c46-41c1bc448118}"
10 "c267" QLowEnergyService::ServiceError(NoError)
BLEObject::characteristicWritten
Characteristic change notification "{544e326b-5b72-c6b0-1c46-41c1bc448118}"
7 "aa000000000000000000"
QTime("21:47:23.006") packet RECV "aa000000000000000000"
Characteristic change notification "{544e326b-5b72-c6b0-1c46-41c1bc448118}"
7 "0000000000000000000000000000000000000000"
QTime("21:47:23.009") packet RECV "0000000000000000000000000000000000000000"
Characteristic change notification "{544e326b-5b72-c6b0-1c46-41c1bc448118}"
7 "0000000000000000000000000000000000000000"
QTime("21:47:23.011") packet RECV "0000000000000000000000000000000000000000"
Characteristic change notification "{544e326b-5b72-c6b0-1c46-41c1bc448118}"
7 "0000000000000000000000000000000000000000"
QTime("21:47:23.014") packet RECV "0000000000000000000000000000000000000000"
QTime("21:47:23.014") packet READ "aa"
QTime("21:47:23.015") packet READ "000000000000000000"
QTime("21:47:23.015") packet READ "0000000000000000000000000000000000000000"
QTime("21:47:23.015") packet READ "0000000000000000000000000000000000000000"
QTime("21:47:23.015") packet READ "0000000000000000000000000000000000000000"
QTime("21:47:23.016") packet WAIT
Characteristic change notification "{544e326b-5b72-c6b0-1c46-41c1bc448118}"
7 "00536d617274000000000000000000000030322e"
QTime("21:47:23.500") packet RECV "00536d617274000000000000000000000030322e"
Characteristic change notification "{544e326b-5b72-c6b0-1c46-41c1bc448118}"
7 "30312e30300201000031352d30352d313760f153"
QTime("21:47:23.503") packet RECV "30312e30300201000031352d30352d313760f153"
Characteristic change notification "{544e326b-5b72-c6b0-1c46-41c1bc448118}"
7 "6d617274204d"
QTime("21:47:23.505") packet RECV "6d617274204d"
Characteristic change notification "{544e326b-5b72-c6b0-1c46-41c1bc448118}"
7 "6172657300000000000000000000000000000000"
QTime("21:47:23.507") packet RECV "6172657300000000000000000000000000000000"
QTime("21:47:23.508") packet READ "00536d617274000000000000000000000030322e"
QTime("21:47:23.510") packet READ "30312e30300201000031352d30352d313760f153"
QTime("21:47:23.511") packet READ "6d617274204d"
QTime("21:47:23.512") packet READ "6172657300000000000000000000000000000000"
QTime("21:47:23.514") packet WAIT
Characteristic change notification "{544e326b-5b72-c6b0-1c46-41c1bc448118}"
7 "0000000000ea"
QTime("21:47:23.997") packet RECV "0000000000ea"
QTime("21:47:23.998") packet READ "0000000000"
QTime("21:47:23.998") packet READ "ea"
QTime("21:47:23.999") packet SEND "e742"
Write characteristic with handle  10 "e742" (service:
"{544e326b-5b72-c6b0-1c46-41c1bc448118}" , writeWithResponse: false ,
signed: false )
QTime("21:47:24.007") packet WAIT
Characteristic write confirmation "{544e326b-5b72-c6b0-1c46-41c1bc448118}"
10 "e742" QLowEnergyService::ServiceError(NoError)
BLEObject::characteristicWritten
Characteristic change notification "{544e326b-5b72-c6b0-1c46-41c1bc448118}"
7 "aa"
QTime("21:47:24.989") packet RECV "aa"
QTime("21:47:24.990") packet READ "aa"
QTime("21:47:24.991") packet SEND "0c00000004000000"
Write characteristic with handle  10 "0c00000004000000" (service:
"{544e326b-5b72-c6b0-1c46-41c1bc448118}" , writeWithResponse: false ,
signed: false )
QTime("21:47:24.993") packet WAIT
Characteristic write confirmation "{544e326b-5b72-c6b0-1c46-41c1bc448118}"
10 "0c00000004000000" QLowEnergyService::ServiceError(NoError)
BLEObject::characteristicWritten
Characteristic change notification "{544e326b-5b72-c6b0-1c46-41c1bc448118}"
7 "ea"
QTime("21:47:25.473") packet RECV "ea"
QTime("21:47:25.475") packet READ "ea"
QTime("21:47:25.476") packet WAIT
Deleting BLE object
"65.737: Non sono state trovate nuove immersioni nel computer subacqueo"
Finishing download thread: "Errore importazione dati immersione"
no new dives downloaded
"65.753: DCDownloadThread finished"
"LocalDeviceBroadcastReceiver::onReceive() - event:
android.bluetooth.device.action.ACL_DISCONNECTED"



---------- libdivecomputer.log ----------
Subsurface: v4.8.2-74-g2626538dcf93, built with libdivecomputer
v0.7.0-devel-Subsurface-NG (e97886a994c18844bdcb1e1832ce4475dbe409b0)
INFO: Open: transport=32
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=1, data=AA
INFO: Read: size=9, data=000000000000000000
INFO: Read: size=20, data=0000000000000000000000000000000000000000
INFO: Read: size=20, data=0000000000000000000000000000000000000000
INFO: Read: size=20, data=0000000000000000000000000000000000000000
INFO: Read: size=20, data=00536D617274000000000000000000000030322E
INFO: Read: size=20, data=30312E30300201000031352D30352D313760F153
INFO: Read: size=6, data=6D617274204D
INFO: Read: size=20, data=6172657300000000000000000000000000000000
INFO: Read: size=5, data=0000000000
INFO: Read: size=1, data=EA
Event:
vendor=00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000536D617274000000000000000000000030322E30312E30300201000031352D30352D313760F1536D617274204D61726573000000000000000000000000000000000000000000
INFO: Write: size=2, data=E742
INFO: Read: size=1, data=AA
INFO: Write: size=8, data=0C00000004000000
INFO: Read: size=1, data=EA
INFO: Read: size=0, data=
ERROR: Failed to receive the answer. [in
/data/android/subsurface/libdivecomputer/src/mares_iconhd.c:194
(mares_iconhd_transfer)]
ERROR: Failed to read the memory. [in
/data/android/subsurface/libdivecomputer/src/mares_iconhd.c:424
(mares_iconhd_device_foreach)]
---------- finish ----------





Il mer 26 set 2018, 20:43 Linus Torvalds <torvalds at linux-foundation.org> ha
scritto:

> On Wed, Sep 26, 2018 at 10:40 AM Linus Torvalds
> <torvalds at linux-foundation.org> wrote:
> >
> > I suspect I need to put the "repeat read" condition inside
> > libdivecomputer itself. Because right now the "user passed in a NULL
> > actual pointer" case is insane: dc_iostream_read() will happily return
> > a partial buffer with no way to see how much of it was filled.
>
> I have now done that.
>
> Dirk - I have updated the libdivecomputer branch with the current tip being
>
>    e97886a994c1 ("Fix dc_iostream_{read,write} debugging implementation")
>
> which handles the case of a dc_iostream_read/write() user that is not
> able or willing to handle partial IO results.
>
> That, together with the subsurface pull request that I just did on
> github, should finally fix this issue.
>
> I have actually "tested" this by not only verifying that yes, the EON
> Core still works, I also made a fake (and broken) EON Core backend
> change that tried to read both partial packets and multi-packet full
> buffers. The iostream layer now does the right thing, and the qt-ble
> case only needs to handle the partial packet case.
>
> Two notes:
>
>  - the subsurface pull request also implements the 'hh:mm:ss' parsing.
> I've tested that too with a manually edited XML file, it seems fine.
>
>  - the subsurface pull request does *not* update the libdivecomputer
> submodule, but for the Mares BlueLink to work, you need *both* the new
> libdivecomputer _and_ the subsurface change.
>
> UPS tracking shows that my BlueLink dongle was loaded on the delivery
> vehicle this morning, so hopefully I'll be able to finally test this
> later today. But all actual credit obviously does to Fabio for his
> patience in testing various broken versions and sending back debug
> information showing which parts needed fixing.
>
>                             Linus
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20180926/463fb544/attachment-0001.html>


More information about the subsurface mailing list