<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div>Steve,<div class=""><br class=""></div><div class=""><blockquote type="cite" class="">You may have noticed that in 57aab41 I fixed the bug that caused the<br class="">crash.  The OvmsHttpClient::m_buf variable was not initialized.</blockquote></div><div class=""><br class=""></div><div class="">Thanks for that. Nice find. Works for me:</div><div class=""><br class=""></div><blockquote style="margin: 0px 0px 0px 40px; border: none; padding: 0px;" class=""><div class="">Welcome to the Open Vehicle Monitoring System (OVMS) - Async Console</div><div class="">OVMS > ota flash http</div><div class="">Current running partition is: factory</div><div class="">Target partition is: ota_0</div><div class="">Download firmware from <a href="http://api.openvehicles.com/firmware/ota/v3/main/ovms3.bin" class="">api.openvehicles.com/firmware/ota/v3/main/ovms3.bin</a> to ota_0</div><div class="">Error: Request failed</div><div class="">W (7274) net: DNS lookup on <a href="http://api.openvehicles.com" class="">api.openvehicles.com</a> failed err=202</div></blockquote><div class=""><br class=""></div><div class="">Feel bad about that one. I (almost) never do that (I push myself into the habit of adding initialisers and destructors when I create the member variable). Not sure how that slipped through, but it explains the weird stack mess.</div><div class=""><br class=""></div><div class=""><blockquote type="cite" class="">OVMS > ota flash http<br class="">OTA flash was successfull<br class=""> Flashed 927744 bytes from <a href="http://api.openvehicles.com/firmware/ota/v3/main/ovms3.bin" class="">api.openvehicles.com/firmware/ota/v3/main/ovms3.bin</a><br class=""> Next boot will be from â€˜ota_0'</blockquote><br class=""></div><div class="">Looks good! (apart from the spelling error, now fixed)</div><div class=""><br class=""></div><div class="">Regards, Mark.</div><div class=""><br class=""></div><div><blockquote type="cite" class=""><div class="">On 9 Oct 2017, at 2:16 PM, Stephen Casner <<a href="mailto:casner@acm.org" class="">casner@acm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">On Sun, 8 Oct 2017, Mark Webb-Johnson wrote:<br class=""><br class=""><blockquote type="cite" class="">I think that is because no network connection available (wifi). Can<br class="">you try with wifi up, running, and an IP address assigned?<br class=""></blockquote><br class="">OVMS > ota flash http<br class="">Current running partition is: factory<br class="">Target partition is: ota_0<br class="">Download firmware from <a href="http://api.openvehicles.com/firmware/ota/v3/main/ovms3.bin" class="">api.openvehicles.com/firmware/ota/v3/main/ovms3.bin</a> to ota_0<br class="">Checksum is ae7b3ab032f6a5be7a8789650c76ea52 and expected file size is 927777<br class="">Preparing flash partition...<br class="">Downloading... (100943 bytes so far)<br class="">Downloading... (201095 bytes so far)<br class="">Downloading... (301399 bytes so far)<br class="">Downloading... (402139 bytes so far)<br class="">Downloading... (502879 bytes so far)<br class="">Downloading... (603771 bytes so far)<br class="">Downloading... (704359 bytes so far)<br class="">Downloading... (805099 bytes so far)<br class="">Downloading... (905839 bytes so far)<br class="">Download file length is 927744 and digest ae7b3ab032f6a5be7a8789650c76ea52<br class="">Setting boot partition...<br class="">OTA flash was successfull<br class="">  Flashed 927744 bytes from <a href="http://api.openvehicles.com/firmware/ota/v3/main/ovms3.bin" class="">api.openvehicles.com/firmware/ota/v3/main/ovms3.bin</a><br class="">  Next boot will be from 'ota_0'<br class=""><br class=""><blockquote type="cite" class="">Seems stack gets messed up in that case. I'll try to find out why,<br class="">but the backtrace isn't helping much.<br class=""></blockquote><br class="">You may have noticed that in 57aab41 I fixed the bug that caused the<br class="">crash.  The OvmsHttpClient::m_buf variable was not initialized.  Now<br class="">without the wifi connection I get:<br class=""><br class="">OVMS > ota flash http<br class="">Current running partition is: factory<br class="">Target partition is: ota_0<br class="">Download firmware from <a href="http://api.openvehicles.com/firmware/ota/v3/main/ovms3.bin" class="">api.openvehicles.com/firmware/ota/v3/main/ovms3.bin</a> to ota_0<br class="">Error: Request failed<br class="">W (8297) net: DNS lookup on <a href="http://api.openvehicles.com" class="">api.openvehicles.com</a> failed err=202<br class=""><br class="">                                                        -- Steve<br class="">_______________________________________________<br class="">OvmsDev mailing list<br class=""><a href="mailto:OvmsDev@lists.teslaclub.hk" class="">OvmsDev@lists.teslaclub.hk</a><br class="">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev<br class=""></div></div></blockquote></div><br class=""></body></html>