Aeris XR2 Download problem

3rd party extensions (phpDivingLog, dive computer downloader,...)
Post Reply
diver10021
Posts: 8
Joined: Thu Apr 21, 2011 23:07

Aeris XR2 Download problem

Post by diver10021 »

I am very interested in using this software unfortunately I cannot seem to get it to talk to my computer which is an Aeris XR2.
I can successfully use the Aeris software to download data so I am sure that the connection is good.

Steps:
1. Launch Diving Log
2. Click on “Download”
3. Click on “Downloader”
4. Set Port to COM4 and Dive computer to “Aeris” and “XR2”
5. Click “next”
6. Put my XR2 into “PC” mode.
7. Click “download”
8. I receive an error of: DEVICE_STATUS_TIMEOUT

I have also tried the test programs from http://www.divesoftware.org/libdc/ I used vtpro.exe COM4 and got the following back:
C:\Temp>vtpro com4
DATETIME 2011-04-21T23:00:37Z (1303426837)
REVISION ce9459039cc8a2df9a4694628d88f81b7433fe7d
DEVICE=com4
oceanic_vtpro_device_open
Timeout: value=3000
DTR: value=1
RTS: value=1
Sleep: value=100
Flush: queue=3, input=0, output=0
Write: timer=0, size=2, data=AA00, remaining=0
Read: timer=3011, size=0, data=, remaining=0
../../source/src/oceanic_vtpro.c:183: Failed to receive the answer.
../../source/examples/oceanic_vtpro_test.c:35: Error opening serial port.

Any help would be greatly appreciated as the program looks great and is exactly what I am looking for.

Thanks
TnT
Posts: 262
Joined: Thu Nov 29, 2007 14:53
Contact:

Re: Aeris XR2 Download problem

Post by TnT »

For the Aeris XR2, you need to use the "veo250" app, not the "vtpro" one.

This may also be the problem in divinglog. There could be a mistake in mapping the device name to the correct backend. Try downloading by selecting "Oceanic Veo 250" from the list of dive computers.
libdivecomputer developer
Support the libdivecomputer project with a donation!
http://www.libdivecomputer.org/donate.html
diver10021
Posts: 8
Joined: Thu Apr 21, 2011 23:07

Re: Aeris XR2 Download problem

Post by diver10021 »

Tnt-
Thanks, I downloaded the veo250 test program it it seems to work, not sure of the format of the dump file but the exe reports back success.

Unfortunately even when I select veo250 in divinglog it still reports back "DEVICE_STATUS_TIMEOUT"

Any other ideas, I would really like to get this working.

From divinglog when using "VEO 250"
[0.047] Timeout: value=3000
[0.047] DTR: value=1
[0.062] RTS: value=1
[0.062] Sleep: value=100
[0.156] Flush: queue=3, input=0, output=0
[0.156] Write: timer=0, size=2, data=5500, remaining=0
[3.151] Read: timer=2995, size=0, data=, remaining=0
[3.151] oceanic_veo250.c:181: Failed to receive the answer.


libdivecomputer version: 4fd295b4acdfed77be0660a29b3a00cb8b8a7259

Thanks
diver10021
Posts: 8
Joined: Thu Apr 21, 2011 23:07

Re: Aeris XR2 Download problem

Post by diver10021 »

I have been doing a bit of investigating and have posted the traffic from the com port. The first block is from divinglog (which does not work) the second block is from the test program which does work.




COM port is opened
<20110422173219.926 SYS>
Baud rate 9600
<20110422173219.929 SYS>
RTS on
<20110422173219.932 SYS>
DTR on
<20110422173219.935 SYS>
Data bits=8, Stop bits=1, Parity=None
<20110422173219.935 SYS>
Set chars: Eof=0x00, Error=0x00, Break=0x00, Event=0x00, Xon=0x11, Xoff=0x13
<20110422173219.938 SYS>
Handflow: ControlHandShake=(DTR_CONTROL), FlowReplace=(TRANSMIT_TOGGLE, RTS_CONTROL), XonLimit=2048, XoffLimit=512
<20110422173219.938 SYS>
Set timeouts: ReadInterval=0, ReadTotalTimeoutMultiplier=0, ReadTotalTimeoutConstant=3000, WriteTotalTimeoutMultiplier=0, WriteTotalTimeoutConstant=0
<20110422173219.941 SYS>
DTR on
<20110422173219.944 SYS>
RTS on
<20110422173220.044 SYS>
Purge the serial port: RXABORT, RXCLEAR, TXABORT, TXCLEAR
<20110422173220.045 TX>
U<NUL>
<20110422173223.047 SYS>
Baud rate 9600
<20110422173223.050 SYS>

RTS on
<20110422173223.053 SYS>
DTR on
<20110422173223.056 SYS>
Data bits=8, Stop bits=1, Parity=None
<20110422173223.056 SYS>
Set chars: Eof=0x00, Error=0x00, Break=0x00, Event=0x00, Xon=0x11, Xoff=0x13
<20110422173223.059 SYS>
Handflow: ControlHandShake=(DTR_CONTROL), FlowReplace=(TRANSMIT_TOGGLE, RTS_CONTROL), XonLimit=2048, XoffLimit=512
<20110422173223.059 SYS>
Set timeouts: ReadInterval=-1, ReadTotalTimeoutMultiplier=0, ReadTotalTimeoutConstant=0, WriteTotalTimeoutMultiplier=0, WriteTotalTimeoutConstant=0
<20110422173223.169 SYS>
COM port is closed

************************************************************************************

COM port is opened
<20110422173300.792 SYS>
Baud rate 9600
<20110422173300.795 SYS>
RTS on
<20110422173300.801 SYS>
DTR on
<20110422173300.803 SYS>
Data bits=8, Stop bits=1, Parity=None
<20110422173300.803 SYS>
Set chars: Eof=0x00, Error=0x00, Break=0x00, Event=0x00, Xon=0x11, Xoff=0x13
<20110422173300.806 SYS>
Handflow: ControlHandShake=(DTR_CONTROL), FlowReplace=(TRANSMIT_TOGGLE, RTS_CONTROL), XonLimit=2048, XoffLimit=512
<20110422173300.808 SYS>
Set timeouts: ReadInterval=0, ReadTotalTimeoutMultiplier=0, ReadTotalTimeoutConstant=3000, WriteTotalTimeoutMultiplier=0, WriteTotalTimeoutConstant=0
<20110422173300.815 SYS>
DTR on
<20110422173300.821 SYS>
RTS on
<20110422173300.924 SYS>
Purge the serial port: RXABORT, RXCLEAR, TXABORT, TXCLEAR
<20110422173300.925 TX>
U<NUL>
<20110422173304.050 SYS>
Purge the serial port: RXABORT, RXCLEAR
<20110422173304.051 TX>
<NUL>
<20110422173304.058 RX>
ZAERISXR2 1A 256Kê¥
TnT
Posts: 262
Joined: Thu Nov 29, 2007 14:53
Contact:

Re: Aeris XR2 Download problem

Post by TnT »

Can you send me the VEO250.LOG and VEO250.DMP files that are generated by the test application? (Note that I'm away for a couple of days and won't be able to investigate or respond before Tuesday.)
libdivecomputer developer
Support the libdivecomputer project with a donation!
http://www.libdivecomputer.org/donate.html
divinglog
Site Admin
Posts: 5768
Joined: Sat Feb 08, 2003 21:02
Location: Coburg
Contact:

Re: Aeris XR2 Download problem

Post by divinglog »

Hi

I've checked the internal mapping for the XR-2 and it uses the VEO 250 download function. You can try to use the latest beta of Diving Log, it contains a slightly newer downloader: https://www.divinglog.de/blog/?p=784

Kind regards,
Sven
diver10021
Posts: 8
Joined: Thu Apr 21, 2011 23:07

Re: Aeris XR2 Download problem

Post by diver10021 »

Jef, dmp and log files sent via email.

Sven I tried the beta you provided in the link and I am still have the same problem.

Thanks
TnT
Posts: 262
Joined: Thu Nov 29, 2007 14:53
Contact:

Re: Aeris XR2 Download problem

Post by TnT »

This is a known problem with some veo compatible devices. For some unknown reason they do not respond to the initialization sequence, but can download just fine without it. It was already fixed in the libdivecomputer code, but DL5 has an older version without the fix. That explains why the test app work, but DL5 doesn't. As a temporary workaround, you can download an updated version on the libdivecomputer website. Just replace the dll in the DL5 installation directory (backup the old one just in case).

http://www.divesoftware.org/libdc/builds/divinglog/
libdivecomputer developer
Support the libdivecomputer project with a donation!
http://www.libdivecomputer.org/donate.html
diver10021
Posts: 8
Joined: Thu Apr 21, 2011 23:07

Re: Aeris XR2 Download problem

Post by diver10021 »

Thanks the new dll worked!
Post Reply