Bill Perry
2018-09-14 01:05:47 UTC
The android app downloaded from the Playstore behaves differently than the one I just built from current sources.
I'm currently testing on a Samsung GS4 running kitkat 4.4.4
With the one from the play store: version 2.1.0(4.8.0)
- When the cable is plugged in OS asks to run subsurface.
NOTE: it will not do this if running the app in no cloud mode.
and it also won't talk over the ftdi cable either.
Once in cloud mode,
- It can open the port and push bytes out the data cable
However, the timing between the bytes & messages is wrong (which is what I'm trying to fix)
With the one I just built: version 2.1.2(4.8.1.413)
It appears to not be able to open the serial connection.
The libdivecomputer log shows:
====================
Subsurface: v4.8.1-413-g76c4fb397512, built with libdivecomputer v0.7.0-devel-Subsurface-NG (8f2ac8f61e8768d4774983de1f367f73c8c34ea2)
INFO: Open: name=ftdi
ERROR: No such file or directory (2) [in /home/bill/Documents/devel/Subsurface-devel/subsurface/libdivecomputer/src/serial_posix.c:295 (dc_serial_open)]
====================
Which seems to indicate it is trying open the device "ftdi" vs checking for the magic "ftdi" name and calling the ftdi serial code instead of serial_posix code.
Have I not built the app properly, or is the code broken right now and I should go back to the tagged code from the last release?
Here is the subsurface log
====================
"0.012: Successfully opened logfile /storage/emulated/0/subsurface.log at Thu Sep 13 19:49:06 2018"
"0.013: Starting Subsurface-mobile:2.1.2(4.8.1.413):Android KitKat (4.4):arm:en-US"
"0.013: built with libdivecomputer v0.7.0-devel-Subsurface-NG (8f2ac8f61e8768d4774983de1f367f73c8c34ea2)"
"0.014: built with Qt Version 5.11.1, runtime from Qt Version 5.11.1"
"0.014: built with libgit2 0.26.0"
"localDevice bperrybap-SGH-M919 is valid, starting discovery"
paired BT classic device type 1 with address "00:00:00:00:00:01"
paired BT classic device type 1 with address "B8:27:EB:AA:44:2B"
paired BT classic device type 1 with address "00:BA:55:56:45:2E"
Found new device: "obd-2" "00:00:00:00:00:01"
Not recognized as dive computer
Found new device: "GreenIceZero" "B8:27:EB:AA:44:2B"
Not recognized as dive computer
Found new device: "AB SHUTTER 3" "00:BA:55:56:45:2E"
Not recognized as dive computer
Paired = "obd-2" "00:00:00:00:00:01"
Paired = "GreenIceZero" "B8:27:EB:AA:44:2B"
Paired = "AB SHUTTER 3" "00:BA:55:56:45:2E"
"Created position source android"
"0.095: Created position source android"
"Set GPS service update interval to 300 s"
"0.096: Set GPS service update interval to 300 s"
"0.096: location service is available"
"1.702: Synchronising data file"
"1.707: Load dives from local cache"
"1.731: Successfully opened dive data"
"1.737: 26 dives loaded from cache"
"1.740: have cloud credentials, but user asked not to connect to network"
"Set GPS service update interval to 300 s"
"1.741: Set GPS service update interval to 300 s"
checkPendingIntents
Using the following font: Roboto
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 146.967
"4.798: AppState changed to active with no save ongoing and no unsaved changes"
"15.411: AppState changed to inactive with no save ongoing and no unsaved changes"
"20.321: AppState changed to active with no save ongoing and no unsaved changes"
"23.558: DCDownloadThread started for Aeris Atmos AI on FTDI"
Starting download from ftdi
"23.579: Looking at device with VID/PID 1478/36940"
"23.579: Looking at device with VID/PID 1027/24577"
"23.580: usbManager tells us we don't have permission to access this device"
Finishing download thread: "Unable to open ftdi Aeris (Atmos AI)"
"23.591: Unsupported operation"
no new dives downloaded
"23.592: DCDownloadThread finished"
The item Settings_QMLTYPE_30(0x7ca5f068, "Settings") is already in the PageRow
====================
I'm currently testing on a Samsung GS4 running kitkat 4.4.4
With the one from the play store: version 2.1.0(4.8.0)
- When the cable is plugged in OS asks to run subsurface.
NOTE: it will not do this if running the app in no cloud mode.
and it also won't talk over the ftdi cable either.
Once in cloud mode,
- It can open the port and push bytes out the data cable
However, the timing between the bytes & messages is wrong (which is what I'm trying to fix)
With the one I just built: version 2.1.2(4.8.1.413)
It appears to not be able to open the serial connection.
The libdivecomputer log shows:
====================
Subsurface: v4.8.1-413-g76c4fb397512, built with libdivecomputer v0.7.0-devel-Subsurface-NG (8f2ac8f61e8768d4774983de1f367f73c8c34ea2)
INFO: Open: name=ftdi
ERROR: No such file or directory (2) [in /home/bill/Documents/devel/Subsurface-devel/subsurface/libdivecomputer/src/serial_posix.c:295 (dc_serial_open)]
====================
Which seems to indicate it is trying open the device "ftdi" vs checking for the magic "ftdi" name and calling the ftdi serial code instead of serial_posix code.
Have I not built the app properly, or is the code broken right now and I should go back to the tagged code from the last release?
Here is the subsurface log
====================
"0.012: Successfully opened logfile /storage/emulated/0/subsurface.log at Thu Sep 13 19:49:06 2018"
"0.013: Starting Subsurface-mobile:2.1.2(4.8.1.413):Android KitKat (4.4):arm:en-US"
"0.013: built with libdivecomputer v0.7.0-devel-Subsurface-NG (8f2ac8f61e8768d4774983de1f367f73c8c34ea2)"
"0.014: built with Qt Version 5.11.1, runtime from Qt Version 5.11.1"
"0.014: built with libgit2 0.26.0"
"localDevice bperrybap-SGH-M919 is valid, starting discovery"
paired BT classic device type 1 with address "00:00:00:00:00:01"
paired BT classic device type 1 with address "B8:27:EB:AA:44:2B"
paired BT classic device type 1 with address "00:BA:55:56:45:2E"
Found new device: "obd-2" "00:00:00:00:00:01"
Not recognized as dive computer
Found new device: "GreenIceZero" "B8:27:EB:AA:44:2B"
Not recognized as dive computer
Found new device: "AB SHUTTER 3" "00:BA:55:56:45:2E"
Not recognized as dive computer
Paired = "obd-2" "00:00:00:00:00:01"
Paired = "GreenIceZero" "B8:27:EB:AA:44:2B"
Paired = "AB SHUTTER 3" "00:BA:55:56:45:2E"
"Created position source android"
"0.095: Created position source android"
"Set GPS service update interval to 300 s"
"0.096: Set GPS service update interval to 300 s"
"0.096: location service is available"
"1.702: Synchronising data file"
"1.707: Load dives from local cache"
"1.731: Successfully opened dive data"
"1.737: 26 dives loaded from cache"
"1.740: have cloud credentials, but user asked not to connect to network"
"Set GPS service update interval to 300 s"
"1.741: Set GPS service update interval to 300 s"
checkPendingIntents
Using the following font: Roboto
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 146.967
"4.798: AppState changed to active with no save ongoing and no unsaved changes"
"15.411: AppState changed to inactive with no save ongoing and no unsaved changes"
"20.321: AppState changed to active with no save ongoing and no unsaved changes"
"23.558: DCDownloadThread started for Aeris Atmos AI on FTDI"
Starting download from ftdi
"23.579: Looking at device with VID/PID 1478/36940"
"23.579: Looking at device with VID/PID 1027/24577"
"23.580: usbManager tells us we don't have permission to access this device"
Finishing download thread: "Unable to open ftdi Aeris (Atmos AI)"
"23.591: Unsupported operation"
no new dives downloaded
"23.592: DCDownloadThread finished"
The item Settings_QMLTYPE_30(0x7ca5f068, "Settings") is already in the PageRow
====================