can't download Oceanic VT3 on linux
Hamish Moffatt
hamish at cloud.net.au
Tue Mar 11 16:43:08 PDT 2014
On 12/03/14 02:59, Linus Torvalds wrote:
> On Tue, Mar 11, 2014 at 6:27 AM, Jef Driesen <jef at libdivecomputer.org> wrote:
>> I wonder if this is another case where the tcdrain() function isn't waiting
>> properly until all bytes have been send out.
> Assuming it is ftdi, we should have at least *tried* to do it since
> 3.8, but I really won't guarantee that it works. I'm assuming Hamish
> has something newer than that, but who knows.. As usual, I think
> Debian "stable" (also known as "bat shit crazy") is some ancient 3.2
> kernel still, but all other distros should be much more up-to-date.
I'm indeed running Debian "bat shit crazy", previously 3.2.0. I've
updated to 3.12.9 just now and I don't see any change in downloading
from the VT3 though.
3.12.9 was the latest I had easy access to from Debian packages; I can
build from source if you think a later version might help though.
[0.000052] DATETIME 2014-03-11T23:16:41Z (1394579801)
[0.000102] VERSION 0.4.2
[0.000112] DEVICE=/dev/ttyUSB0
[0.000122] oceanic_atom2_device_open
[0.000801] INFO: Configure: baudrate=38400, databits=8, parity=0,
stopbits=1, flowcontrol=0
[0.000907] INFO: Timeout: value=3000
[0.000918] INFO: Sleep: value=100
[0.101007] INFO: Flush: queue=3, input=1, output=0
[0.101491] INFO: Write: size=2, data=8400
[0.102869] INFO: Read: size=1, data=5A
[0.107847] INFO: Read: size=17, data=4F43452056543320523244203531324BBF
[0.107882] dc_device_dump
[0.111449] INFO: Write: size=4, data=B1000000
[0.111487] INFO: Read: size=1, data=5A
[0.120731] INFO: Read: size=17, data=0416041120081001425800730000000075
[0.123448] INFO: Write: size=4, data=B1000100
[0.123488] INFO: Read: size=1, data=A5
[0.123497] ERROR: Unexpected answer start byte(s). [in
oceanic_atom2.c:339 (oceanic_atom2_send)]
[0.123505] INFO: Sleep: value=100
[0.223573] INFO: Flush: queue=1, input=0, output=0
[0.227438] INFO: Write: size=4, data=B1000100
[0.227452] INFO: Read: size=1, data=5A
[0.236289] INFO: Read: size=17, data=6701DA064204E506E206DC06FF0FAAFBF6
[0.239433] INFO: Write: size=4, data=B1000200
[0.239445] INFO: Read: size=1, data=A5
[0.239449] ERROR: Unexpected answer start byte(s). [in
oceanic_atom2.c:339 (oceanic_atom2_send)]
Hamish
More information about the devel
mailing list