<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="">I’ll start with my priority question, then summarize a few things I’ve learned that might be of interest.<div class=""><br class=""></div><div class="">Q: How do I convince git to update the esp-idf branch?</div><div class=""><br class=""></div><div class="">I grabbed the v2.1 release branch and built it without any obvious errors, but I don’t know how to pull or otherwise check that I have the latest. Here’s a snapshot of my current state:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">$ git status</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #c33720" class="">HEAD detached at </span>origin/release/v2.1</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">nothing to commit, working directory clean</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">$ git branch</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(52, 189, 38);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">* </span>(detached from origin/release/v2.1)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> master</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">$ git pull</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">remote: Counting objects: 189, done.</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">remote: Compressing objects: 100% (50/50), done.</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">remote: Total 189 (delta 141), reused 185 (delta 137), pack-reused 0</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Receiving objects: 100% (189/189), 27.68 KiB | 0 bytes/s, done.</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Resolving deltas: 100% (141/141), completed with 55 local objects.</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">From <a href="https://github.com/espressif/esp-idf" class="">https://github.com/espressif/esp-idf</a></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> e6afe28..de750e9 master -> origin/master</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">You are not currently on a branch. Please specify which</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">branch you want to merge with. See git-pull(1) for details.</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""> git pull <remote> <branch></div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;" class=""><br class=""></div></div><div style="margin: 0px; min-height: 13px;" class=""><div style="font-family: Menlo; font-size: 11px; margin: 0px;" class="">$ git pull</div><div style="font-family: Menlo; font-size: 11px; margin: 0px;" class="">You are not currently on a branch. Please specify which</div><div style="font-family: Menlo; font-size: 11px; margin: 0px;" class="">branch you want to merge with. See git-pull(1) for details.</div><div style="font-family: Menlo; font-size: 11px; margin: 0px; min-height: 13px;" class=""><br class=""></div><div style="font-family: Menlo; font-size: 11px; margin: 0px;" class=""> git pull <remote> <branch></div><div style="font-family: Menlo; font-size: 11px; margin: 0px; min-height: 13px;" class=""><br class=""></div><div style="font-family: Menlo; font-size: 11px; margin: 0px;" class="">$ </div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">A: After reading the warnings about the Silicon Labs driver crashes, I decided to host my efforts on OS X Yosemite, 10.10.5, instead of any newer macOS. Therefore, I installed the legacy driver. So far, I’ve not had any problems. I’m able to connect to the OVMS v3 and communicate. I am using a cheap, $4.99 Full Speed USB hub (unpowered, because I’m too lazy to hunt for the wall wart adaptor). I realize that a powered hub is recommended, but I’ve not had any issues yet.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">B: Those of you who may not be familiar with the ‘screen’ application might be interested to read that I am able to connect to the USB serial converter using that program without running ‘make monitor’ - the only drawback is that I have to type Control-j instead of return/enter (but that might be resolved by another command line option that I’m not familiar with yet).</div><div class=""><br class=""></div><div class="">The command is ‘screen /dev/tty.SLAB_USBtoUART 115200’</div><div class="">I’m avoiding /dev/cu.SLAB_USBtoUART because I assume it might activate the RTS / DTR / etc lines and cause unexpected results.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">C: I’m often quite paranoid about checking that new hardware is functional before I try building my own firmware, erasing any existing firmware, and therefore basically avoid trying too many steps in the first volley. Although I’ve build the esp-idf environment, I haven’t run ‘make monitor’ yet, so I was happy to see that the OVMS v3 shipped with a working firmware already installed (*). Using the ‘screen’ command detailed above, I am able to connect to the device, turn on the wifi, and execute commands.</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #34bd26" class="">OVMS ></span> ota status</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Firmware: 3.0.0/factory/main build (idf v2.1-2-g7138fb02) Sep 21 2017 20:33:27</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Running partition: factory</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Boot partition: factory</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;" class=""><br class=""></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #34bd26" class="">OVMS ></span> wifi mode ap TR25</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">Starting WIFI as access point...</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(52, 189, 38);" class="">I (575846) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(52, 189, 38);" class="">I (575846) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(175, 173, 36);" class="">W (576526) phy_init: failed to load RF calibration data (0x1102), falling back to full calibration</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(52, 189, 38);" class="">I (576706) phy: phy_version: 355.1, 59464c5, Jun 14 2017, 20:25:06, 0, 2</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">I (575846) wifi: wifi firmware version: 407bb27</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">I (575846) wifi: config NVS flash: enabled</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">I (575846) wifi: config nano formating: disabled</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">I (575866) wifi: Init dynamic tx buffer num: 32</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">I (575866) wifi: Init dynamic rx buffer num: 32</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">I (575866) wifi: wifi driver task: 3ffe9ad8, prio:23, stack:4096</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">I (575866) wifi: Init static rx buffer num: 10</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">I (575866) wifi: Init dynamic rx buffer num: 32</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">I (575866) wifi: Init rx ampdu len mblock:7</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">I (575866) wifi: Init lldesc rx ampdu entry mblock:4</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">I (575866) wifi: wifi power manager task: 0x3ffef880 prio: 21 stack: 2560</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">I (576526) wifi: wifi timer task: 3fff0af0, prio:22, stack:3584</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">I (576706) wifi: mode : softAP (30:ae:a4:37:25:85)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(52, 189, 38);" class="">I (576716) ovms-mdns: Launching MDNS service</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">[Join...]</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">I (643136) wifi: n:1 0, o:1 0, ap:1 1, sta:255 255, prof:1</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">I (643146) wifi: station: f4:5c:89:a3:64:cd join, AID=1, g, 20</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">[Leave...]</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">I (789976) wifi: station: f4:5c:89:a3:64:cd leave, AID = 1</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;" class="">I (789976) wifi: n:1 0, o:1 0, ap:1 1, sta:255 255, prof:1</div></div><div class=""><br class=""></div><div class="">D: My next step is obviously to build the latest OVMS v3 firmware from git. I’m not having any trouble pulling the latest source updates because we’re not working on a branch, and it’s much easier to use git commands when working from the head / master (at least for me - I’m way more familiar with Subversion).</div><div class=""><br class=""></div><div class="">Brian Willoughby</div><div class=""><br class=""></div><div class="">* I don’t know whether Mark had to manually install the OVMS v3 firmware on each of these preliminary units, or if the assembly / manufacturing process is already set up to install an initial firmware on new boards. Either way, it’s nice that it didn’t arrive with a blank Flash!</div><div style="font-family: Menlo; font-size: 11px;" class=""><br class=""></div></div></body></html>