<p>Dear Jef,<br /> <br /> <<> There is almost no documentation other than the libdivecomputer source code. Why <br />> do you need it?>><br /> <br /><br /></p>
<p>I realised that talking to theVEO2 is as simple as talking to a com port.</p>
<p> </p>
<p>I considered writing an interface to talk to the VEO in C#.</p>
<p> </p>
<p>How did you found out about all communication protocol ?  ( reverce engineering  ? )</p>
<p> </p>
<p>I'm amazed !!</p>
<p> </p>
<p>Thanks,</p>
<p> </p>
<p>Loïc</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<blockquote style="padding-left: 5px; margin-left: 5px; border-left: #ff0000 2px solid;">> Message du 01/12/14 09:00<br />> De : "Jef Driesen" <jef@libdivecomputer.org><br />> A : "loicmichel" <5loicmichel5@wanadoo.fr><br />> Copie à : "'Libdivecomputer Mailinglist'" <devel@libdivecomputer.org><br />> Objet : Re: C# and libdivecomputer<br />> <br />> On 30-11-14 15:40, loicmichel wrote:<br />> > I recomplied the DLL in visual studio from the source code (see enclosed) and<br />> > now the DLL load in my C# project but I get an other error. Signature of the<br />> > call doesn't match the signature of the function in the DLL.<br />> <br />> I suspect this is due to the calling convention. Unless you changed it, the <br />> libdivecomputer dll is compiled with cdecl. But the Win32 API uses stdcall as <br />> the default calling convention, and so does .NET.<br />> <br />> The solution is to specify the calling convention explicitly in the DllImport <br />> statements. Change all occurrences of:<br />> <br />> [DllImport("libdivecomputer-0.dll")]<br />> <br />> into this:<br />> <br />> [DllImport("libdivecomputer-0.dll",CallingConvention=CallingConvention.Cdecl)]<br />> <br />> > Could you send me the technical documentation of the VEO2 communication protocol<br />> > ? (it's only serial com ) I think I should start from there...<br />> <br />> There is almost no documentation other than the libdivecomputer source code. Why <br />> do you need it?<br />> <br />> Jef<br />> </blockquote>