can't download Oceanic VT3 on linux

Hamish Moffatt hamish at cloud.net.au
Wed Mar 12 06:32:58 PDT 2014


On 12/03/14 23:29, Jef Driesen wrote:
> On 2014-03-12 13:14, Hamish Moffatt wrote:
>> On 12/03/14 21:02, Jef Driesen wrote:
>>> On 2014-03-12 01:20, Hamish Moffatt wrote:
>>>> On 12/03/14 10:57, Linus Torvalds wrote:
>>>>> Sounds like some other timing difference between Linux and Windows.
>>>>> Maybe Jef can make sense to the logs (and do you have logs with 
>>>>> timing
>>>>> from windows for Jef to compare?)
>>>>>
>>>> Here's a log from Windows. There appears to be a whole lot less timing
>>>> precision so it's a bit hard to compare, other than noting the absence
>>>> of NAKs from the VT3.
>>>
>>> That's due to the limited precision (in the order of several tens of 
>>> milliseconds) of the Windows GetTickCount() function. Try with the 
>>> attached patch instead, which uses the QueryPerformanceCounter() 
>>> function instead. That's the same function I'm using for the 
>>> half-duplex timing. There is a pre-build binary here:
>>>
>>> http://www.libdivecomputer.org/builds/experimental/windows/universal-timings.exe 
>>>
>>
>> There seems to be a heap of read-write turnaround; there's 14ms+ in
>> some of the early commands although it's as low as 1.5ms later. But
>> there's 100ms sleeps after each read too - that's not in the regular
>> build though?
>
> Ah sorry, my mistake. That 100ms delay was a leftover from one of the 
> previous builds. I have removed it now. Just re-download the same file 
> again.

Here's the log. As before there's quite a lot of write-read turnaround. 
The Mac log showed the same, and the linux log doesn't.

[0.000015] DATETIME 2014-03-12T13:16:22Z (1394630182)
[0.000622] VERSION 0.5.0-devel (a712c8781d0e2065f6e9b7768286546c9495defe)
[0.000946] Opening the device (Oceanic VT3, COM3).
[0.002302] INFO: Open: name=COM3
[0.024421] INFO: Configure: baudrate=38400, databits=8, parity=0, 
stopbits=1, flowcontrol=0
[0.029375] INFO: Timeout: value=3000
[0.029712] INFO: Sleep: value=100
[0.124765] INFO: Flush: queue=3, input=0, output=0
[0.125288] INFO: Write: size=2, data=8400
[0.129447] INFO: Read: size=1, data=5A
[0.145393] INFO: Read: size=17, data=4F43452056543320523244203531324BBF
[0.146257] Registering the event handler.
[0.146698] Registering the cancellation handler.
[0.146996] Downloading the memory dump.
[0.147333] Event: vendor=4F43452056543320523244203531324B
[0.150762] Event: progress 0.00% (0/65536)
[0.151195] INFO: Write: size=4, data=B1000000
[0.161318] INFO: Read: size=1, data=5A
[0.177263] INFO: Read: size=17, data=0416041120081001425800730000000075
[0.177628] Event: progress 0.02% (16/65536)
[0.178262] INFO: Write: size=4, data=B1000100
[0.193202] INFO: Read: size=1, data=5A
[0.193509] INFO: Read: size=17, data=6701DA064204E506E206DC06FF0FAAFBF6
[0.193773] Event: progress 0.05% (32/65536)
[0.194195] INFO: Write: size=4, data=B1000200
[0.209158] INFO: Read: size=1, data=5A
[0.209513] INFO: Read: size=17, data=0000DC06FF0FDC06FF0F00000000AA8A14
[0.209866] Event: progress 0.07% (48/65536)
[0.210268] INFO: Write: size=4, data=B1000300
[0.225104] INFO: Read: size=1, data=5A
[0.225578] INFO: Read: size=17, data=890E370D00011B0B670542053250AAE1C2
[0.225871] Event: progress 0.10% (64/65536)
[0.226282] INFO: Write: size=4, data=B1000400
[0.241057] INFO: Read: size=1, data=5A
[0.241476] INFO: Read: size=17, data=300220028003500530BEB0BB0000000085
[0.241787] Event: progress 0.12% (80/65536)
[0.242204] INFO: Write: size=4, data=B1000500
[0.256970] INFO: Read: size=1, data=5A
[0.257406] INFO: Read: size=17, data=A014000300002C01980805A0022100024E
[0.257774] Event: progress 0.15% (96/65536)
[0.258190] INFO: Write: size=4, data=B1000600
[0.272930] INFO: Read: size=1, data=5A
[0.273329] INFO: Read: size=17, data=3899000099003102E9050400000000008F
[0.273598] Event: progress 0.17% (112/65536)
[0.273952] INFO: Write: size=4, data=B1000700
[0.288850] INFO: Read: size=1, data=5A
[0.289192] INFO: Read: size=17, data=0906290000000000003C00000100000277
[0.289457] Event: progress 0.20% (128/65536)
[0.289835] INFO: Write: size=4, data=B1000800
[0.304833] INFO: Read: size=1, data=5A
[0.305385] INFO: Read: size=17, data=A9A6C9AAAAAAAAAAAA0000000000000014
[0.305709] Event: progress 0.22% (144/65536)
[0.306117] INFO: Write: size=4, data=B1000900
[0.320764] INFO: Read: size=1, data=5A
[0.321095] INFO: Read: size=17, data=6400000300001400980805A00251000215
[0.321360] Event: progress 0.24% (160/65536)
[0.321871] INFO: Write: size=4, data=B1000A00
[0.336649] INFO: Read: size=1, data=5A
[0.337050] INFO: Read: size=17, data=0000000000000000000000000000000000
[0.337360] Event: progress 0.27% (176/65536)
[0.337783] INFO: Write: size=4, data=B1000B00
[0.352612] INFO: Read: size=1, data=5A
[0.353122] INFO: Read: size=17, data=42056EA46350460014AA1001438348204F
[0.353401] Event: progress 0.29% (192/65536)
[0.353774] INFO: Write: size=4, data=B1000C00
[0.368514] INFO: Read: size=1, data=5A
[0.368848] INFO: Read: size=17, data=43142CA56F40510015AA541324064720DF
[0.369146] Event: progress 0.32% (208/65536)
[0.369556] INFO: Write: size=4, data=B1000D00
[0.384487] INFO: Read: size=1, data=5A
[0.384967] INFO: Read: size=17, data=4414FEA35D40450015AA240440114D2080
[0.385446] Event: progress 0.34% (224/65536)
[0.385861] INFO: Write: size=4, data=B1000E00
[0.400392] INFO: Read: size=1, data=5A
[0.400735] INFO: Read: size=17, data=4524B9A46840450015AA530119824B20CC
[0.401010] Event: progress 0.37% (240/65536)
[0.401380] INFO: Write: size=4, data=B1000F00
[0.416324] INFO: Read: size=1, data=5A
[0.416748] INFO: Read: size=17, data=4624FEA35D40470015AA080113844920B7
[0.417077] Event: progress 0.39% (256/65536)
[0.417526] INFO: Write: size=4, data=B1001000
[0.432294] INFO: Read: size=1, data=5A
[0.435167] INFO: Read: size=17, data=472336A46040470016AA211322064820AF
[0.435504] Event: progress 0.42% (272/65536)
[0.435944] INFO: Write: size=4, data=B1001100
[0.448208] INFO: Read: size=1, data=5A
[0.448574] INFO: Read: size=17, data=482416A45F40510016AA03021309492060
[0.448880] Event: progress 0.44% (288/65536)
[0.449279] INFO: Write: size=4, data=B1001200
[0.464144] INFO: Read: size=1, data=5A
[0.464483] INFO: Read: size=17, data=493460A46350460016AA030109114C20C4
[0.464791] Event: progress 0.46% (304/65536)
[0.465233] INFO: Write: size=4, data=B1001300
[0.480081] INFO: Read: size=1, data=5A
[0.480446] INFO: Read: size=17, data=503441A57140450016AA210217824B2047
[0.480778] Event: progress 0.49% (320/65536)
[0.481134] INFO: Write: size=4, data=B1001400
[0.496032] INFO: Read: size=1, data=5A
[0.496512] INFO: Read: size=17, data=510197A24710460017AA2323268245203C
[0.496877] Event: progress 0.51% (336/65536)
[0.497279] INFO: Write: size=4, data=B1001500

and here's a bit of the Mac log, which I posted earlier (Mac works, btw);

[0.000491] DATETIME 2014-03-12T04:17:10Z (1394597830)
[0.000515] VERSION 0.5.0-devel (575f2e9016ac9baa2b1b031caa6fe0bc77cdbbee)
[0.000519] DEVICE=/dev/tty.usbserial-20030001
[0.000540] oceanic_atom2_device_open
[0.000557] INFO: Open: name=/dev/tty.usbserial-20030001
[0.004850] INFO: Configure: baudrate=38400, databits=8, parity=0, 
stopbits=1, flowcontrol=0
[0.005042] INFO: Timeout: value=3000
[0.005061] INFO: Sleep: value=100
[0.106152] INFO: Flush: queue=3, input=2, output=0
[0.106450] INFO: Write: size=2, data=8400
[0.114123] INFO: Read: size=1, data=5A
[0.114137] INFO: Read: size=17, data=4F43452056543320523244203531324BBF
[0.114170] dc_device_dump
[0.114411] INFO: Write: size=4, data=B1000000
[0.130090] INFO: Read: size=1, data=5A
[0.130110] INFO: Read: size=17, data=0416041120081001425800730000000075
[0.130302] INFO: Write: size=4, data=B1000100
[0.146005] INFO: Read: size=1, data=5A
[0.146034] INFO: Read: size=17, data=6701DA064204E506E206DC06FF0FAAFBF6
[0.146180] INFO: Write: size=4, data=B1000200
[0.162008] INFO: Read: size=1, data=5A
[0.162029] INFO: Read: size=17, data=0000DC06FF0FDC06FF0F00000000AA8A14
[0.162166] INFO: Write: size=4, data=B1000300
[0.177875] INFO: Read: size=1, data=5A
[0.177899] INFO: Read: size=17, data=890E370D00011B0B670542053250AAE1C2
[0.178035] INFO: Write: size=4, data=B1000400
[0.193736] INFO: Read: size=1, data=5A
[0.193757] INFO: Read: size=17, data=300220028003500530BEB0BB0000000085
[0.193916] INFO: Write: size=4, data=B1000500
[0.209734] INFO: Read: size=1, data=5A
[0.209753] INFO: Read: size=17, data=A014000300002C01980805A0022100024E
[0.209917] INFO: Write: size=4, data=B1000600




More information about the devel mailing list