Dive data import error with Hollis DG03

Rick Walsh rickmwalsh at gmail.com
Mon Mar 24 05:17:45 PDT 2014


On 24 March 2014 21:12, Jef Driesen <jef at libdivecomputer.org> wrote:

> This indicates a failure. Now I'm confused. I expected this to work with the
> low_latency disabled, but you say it fails with and without the low_latency
> disabled? Are you sure it was not reset between two attempts? As you
> noticed, the setting isn't persistent.

Ahh, I'm a fool. The error I was getting before was because the cable
was plugged into my laptop, but not the dive computer. Now that I've
worked that out, things look more promising. I'm happy to send the
full log files, but don't want to email all the attachments to the
mailing list. I think I've copied enough below

The universal log (with latency_timer left at 1ms) are:

[0.000080] DATETIME 2014-03-24T11:51:02Z (1395661862)
[0.007930] VERSION 0.5.0-devel (fa90009c293a9ca1a4eaf49a478b381477695c0a)
[0.008329] Opening the device (Oceanic Atom 1.0, /dev/ttyUSB0).
[0.009739] INFO: Open: name=/dev/ttyUSB0
[0.015533] INFO: Configure: baudrate=38400, databits=8, parity=0,
stopbits=1, flowcontrol=0
[0.017188] INFO: Timeout: value=3000
[0.017534] INFO: Sleep: value=100
[0.117660] INFO: Flush: queue=3, input=0, output=0
[0.119174] INFO: Write: size=2, data=8400
[0.121210] INFO: Read: size=1, data=5A
[0.125203] INFO: Read: size=17, data=484F4C4C44473033203142203531324BB3
[0.126290] Registering the event handler.
[0.126310] Registering the cancellation handler.
[0.126321] Downloading the memory dump.
[0.126492] Event: vendor=484F4C4C44473033203142203531324B
[0.126561] Event: progress 0.00% (0/65536)
[0.129166] INFO: Write: size=4, data=B1000000
...
...
[0.196143] Event: progress 0.12% (80/65536)
[0.198110] INFO: Write: size=4, data=B1000500
[0.198131] INFO: Read: size=1, data=A5
[0.198137] ERROR: Unexpected answer start byte(s). [in
../../source/src/oceanic_atom2.c:338 (oceanic_atom2_send)]
[0.198146] INFO: Sleep: value=100
[0.298274] INFO: Flush: queue=1, input=0, output=0
...
^^^Above error occurs hundreds of times throughout the 6314 lines of the file
...
[32.405994] INFO: Read: size=1, data=A5
[32.405998] ERROR: Unexpected answer start byte(s). [in
../../source/src/oceanic_atom2.c:338 (oceanic_atom2_send)]
[32.406004] INFO: Sleep: value=100
[32.506113] INFO: Flush: queue=1, input=0, output=0
[32.507952] INFO: Write: size=4, data=B1058F00
[32.508972] INFO: Read: size=1, data=5A
[32.519948] INFO: Read: size=17, data=0000000000000000000E00000000140022
[32.519958] Event: progress 34.77% (22784/65536)
[32.521948] INFO: Write: size=4, data=B1059000
[32.521990] INFO: Read: size=1, data=5A
[32.532945] INFO: Read: size=17, data=0A000D000D000A00070006000500030043
[32.532953] Event: progress 34.79% (22800/65536)
[32.534907] INFO: Write: size=4, data=B1059100
[32.534924] INFO: Read: size=1, data=5A
[35.537991] INFO: Read: size=0, data=
[35.538008] ERROR: Failed to receive the answer. [in
../../source/src/oceanic_atom2.c:376 (oceanic_atom2_transfer)]
[35.538014] ../../source/examples/universal.c:723: Error downloading
the memory dump.
[35.539471] INFO: Write: size=4, data=6A05A500
[35.540458] INFO: Read: size=1, data=A5
[35.547447] Result: Timeout



With latancy_timer set to 16ms using setserial, universal runs as (I
believe) it should. The resulting log contains:

[0.000067] DATETIME 2014-03-24T11:53:16Z (1395661996)
[0.000126] VERSION 0.5.0-devel (fa90009c293a9ca1a4eaf49a478b381477695c0a)
[0.000169] Opening the device (Oceanic Atom 1.0, /dev/ttyUSB0).
[0.000199] INFO: Open: name=/dev/ttyUSB0
[0.005927] INFO: Configure: baudrate=38400, databits=8, parity=0,
stopbits=1, flowcontrol=0
[0.007940] INFO: Timeout: value=3000
[0.007988] INFO: Sleep: value=100
[0.108145] INFO: Flush: queue=3, input=1, output=0
[0.109895] INFO: Write: size=2, data=8400
[0.112936] INFO: Read: size=1, data=5A
[0.128942] INFO: Read: size=17, data=484F4C4C44473033203142203531324BB3
[0.128993] Registering the event handler.
[0.129004] Registering the cancellation handler.
[0.129014] Downloading the memory dump.
[0.129113] Event: vendor=484F4C4C44473033203142203531324B
[0.129177] Event: progress 0.00% (0/65536)
[0.130882] INFO: Write: size=4, data=B1000000
....
....
36.394784] Event: progress 55.13% (36128/65536)
[36.396747] INFO: Write: size=4, data=B108D200
[36.410769] INFO: Read: size=1, data=A5
[36.410808] ERROR: Unexpected answer start byte(s). [in
../../source/src/oceanic_atom2.c:338 (oceanic_atom2_send)]
[36.410829] INFO: Sleep: value=100
...
^^^The above error only occurs once in the 16409 lines of the file
...
[66.099975] Event: progress 99.98% (65520/65536)
[66.101898] INFO: Write: size=4, data=B10FFF00
[66.115907] INFO: Read: size=1, data=5A
[66.115946] INFO: Read: size=17, data=50902403140100180E034C0057020000EA
[66.115958] Event: progress 100.00% (65536/65536)
[66.118412] Closing the device.
[66.120844] INFO: Write: size=4, data=6A05A500
[66.130907] INFO: Read: size=1, data=A5
[66.137902] Result: Success


I also ran it from Windows, with the same switches, except using COM4
as the device. Output is similar to Linux with latency set to 16ms.

[0.000022] DATETIME 2014-03-24T11:42:40Z (1395661360)
[0.000994] VERSION 0.5.0-devel (fa90009c293a9ca1a4eaf49a478b381477695c0a)
[0.001808] Opening the device (Oceanic Atom 1.0, COM4).
[0.002586] INFO: Open: name=COM4
[0.055874] INFO: Configure: baudrate=38400, databits=8, parity=0,
stopbits=1, flowcontrol=0
[0.071830] INFO: Timeout: value=3000
[0.072266] INFO: Sleep: value=100
[0.179741] INFO: Flush: queue=3, input=0, output=0
[0.180854] INFO: Write: size=2, data=8400
[0.195887] INFO: Read: size=1, data=5A
[0.196415] INFO: Read: size=17, data=484F4C4C44473033203142203531324BB3
[0.196856] Registering the event handler.
[0.197248] Registering the cancellation handler.
[0.197642] Downloading the memory dump.
[0.198084] Event: vendor=484F4C4C44473033203142203531324B
[0.199588] Event: progress 0.00% (0/65536)
[0.200844] INFO: Write: size=4, data=B1000000
...
...
[0.946589] Event: progress 1.12% (736/65536)
[0.947833] INFO: Write: size=4, data=B1002E00
[1.009849] INFO: Read: size=1, data=A5
[1.010260] ERROR: Unexpected answer start byte(s). [in
../../source/src/oceanic_atom2.c:338 (oceanic_atom2_send)]
[1.010987] INFO: Sleep: value=100
[1.115795] INFO: Flush: queue=1, input=0, output=0
...
^^^^Error occurs once in 16411 lines
...
[65.881190] INFO: Read: size=17, data=30902403140100180E034C0057020000CA
[65.881534] Event: progress 100.00% (65536/65536)
[65.882628] Closing the device.
[65.883847] INFO: Write: size=4, data=6A05A500
[65.896860] INFO: Read: size=1, data=A5
[66.027479] Result: Success


More information about the subsurface mailing list