<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Thanks, Mark. Confirmed fixed.<br>
<br>
I notice that the 3.0 code base is also a lot less chatty than the
2.1. Almost spooky...<br>
<br>
Greg<br>
<br>
<br>
<div class="moz-cite-prefix">Mark Webb-Johnson wrote:<br>
</div>
<blockquote type="cite"
cite="mid:10C915E4-AF6E-4C51-B522-AD1CDA3345A5@webb-johnson.net">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div class=""><br class="">
</div>
This is the issue Michael pointed out. The 'server response is
incomplete’ problem with select(). Apologies for this; I am not
sure why I didn’t notice it before.
<div class=""><br class="">
</div>
<div class="">Gory details are here:</div>
<div class=""><br class="">
</div>
<blockquote style="margin: 0 0 0 40px; border: none; padding:
0px;" class="">
<div class=""><a
href="https://github.com/espressif/esp-idf/issues/1510"
class="" moz-do-not-send="true">https://github.com/espressif/esp-idf/issues/1510</a></div>
</blockquote>
<div class="">
<div><br class="">
</div>
<div>I think Espressif implemented requirement this in a bizarre
way, likely to break compatibility, but such is life. They did
point it out as a ‘breaking change’ (at the bottom of the
release notes for 3.0b1):</div>
<div><br class="">
</div>
</div>
<blockquote style="margin: 0 0 0 40px; border: none; padding:
0px;" class="">
<div class="">
<div><a
href="https://github.com/espressif/esp-idf/releases/tag/v3.0-rc1"
class="" moz-do-not-send="true">https://github.com/espressif/esp-idf/releases/tag/v3.0-rc1</a></div>
</div>
<div><br class="">
</div>
<div>
<ul style="box-sizing: border-box; padding-left: 2em;
margin-top: 0px; margin-bottom: 16px; color: rgb(36, 41,
46); font-family: -apple-system, BlinkMacSystemFont,
"Segoe UI", Helvetica, Arial, sans-serif,
"Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol"; font-size: 16px;" class="">
<li style="box-sizing: border-box; margin-top: 0.25em;"
class="">LWIP socket file descriptors now take higher
numeric values (via the LWIP LWIP_SOCKET_OFFSET macro).
BSD sockets code should mostly work as expected (and, new
in V3.0, some standard POSIX functions can now be used
with sockets). However any code which assumes a socket
file descriptor is always a low numbered integer may need
modifying to account for LWIP_SOCKET_OFFSET.</li>
</ul>
</div>
</blockquote>
<div class="">
<div><br class="">
</div>
<div>It sure broke us.</div>
<div><br class="">
</div>
<div>I’ve made a one-line workaround fix (to ovms_buffer.cpp),
and ovms server v2 connections are working again for me. That
is committed and pushed already.</div>
<div><br class="">
</div>
<div>It is kind of messy to have all these different networking
implementations in our code base; I intend to move
ovms_server_* to mongoose networking over the next few days.
That will mean we won’t need a separate task/stack for server
connections, and should save us 7KB internal RAM for each
connection. Also ovms_ota. But that will have to wait, as I
need to get the hardware complete first (some issues with 1.8v
vs 3.3v logic on VDD_SDIO of the wrover module and some of our
GPIOs), and that is top priority.</div>
<div><br class="">
</div>
<div>Regards, Mark.</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 17 Jan 2018, at 7:05 AM, Greg D. <<a
href="mailto:gregd2350@gmail.com" class=""
moz-do-not-send="true">gregd2350@gmail.com</a>>
wrote:</div>
<br class="Apple-interchange-newline">
<div class=""><span style="font-family: Helvetica;
font-size: 24px; font-style: normal; font-variant-caps:
normal; font-weight: normal; letter-spacing: normal;
text-align: start; text-indent: 0px; text-transform:
none; white-space: normal; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color:
rgb(255, 255, 255); float: none; display: inline
!important;" class="">But, I'm not getting much love out
of the v2 server. The connection doesn't appear to be
working - "server response is incomplete". Same error
whether on wifi or modem. <span
class="Apple-converted-space"> </span></span><br
style="font-family: Helvetica; font-size: 24px;
font-style: normal; font-variant-caps: normal;
font-weight: normal; letter-spacing: normal; text-align:
start; text-indent: 0px; text-transform: none;
white-space: normal; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color:
rgb(255, 255, 255);" class="">
</div>
</blockquote>
</div>
<br class="">
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
OvmsDev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.teslaclub.hk">OvmsDev@lists.teslaclub.hk</a>
<a class="moz-txt-link-freetext" href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a>
</pre>
</blockquote>
<br>
</body>
</html>