<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Robert,<div><br></div><div>The leafspy log is interesting, but not very useful.</div><div><br></div><div>What I am interested in is a raw can bus dump. This can be done from the OBDII adaptor using 'monitor all' mode.</div><div><br></div><div>I know how to do it with a terminal emulator and some AT commands, but does anyone know any simple software that Robert can use?</div><div><br></div><div>Regards, Mark.</div><div><br><div><div>On 21 Dec, 2013, at 10:38 pm, Robert Sharpe <<a href="mailto:robert.sharpe@evergreen-consulting.co.uk">robert.sharpe@evergreen-consulting.co.uk</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"><div><div style="font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;">Hi Mark,<div><br></div><div>Sorry it has taken a while to get back to you.  I only have access to LeafSpy via my wife's work phone and she has been out most of the week. </div><div>I only just realised that logging could probably be done through the OVMS :-( so will try that in the next few days as well.</div><div><br></div><div>Anyway, attached is sample LeafSpy Elm Trace.  Before I do lots of testing using this method can you confirm that this is useful.</div><div><br></div><div><div id="1">Regards,</div><div id="1">Rob</div><div id="1"><br>---- On Wed, 18 Dec 2013 01:57:50 +0100 <b>Mark Webb-Johnson<<a href="mailto:mark@webb-johnson.net">mark@webb-johnson.net</a>></b> wrote ---- <br></div><br><blockquote style="border-left: 1px solid #0000FF; padding-left: 6px; margin:0 0 0 5px"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Nikki,<div><br></div><div>Thanks for this.</div><div><br></div><div>Firstly, I'm glad the firmware is connecting back to the server ok. I broke that a few months ago (this new module meant I had to reorganise some low-level crypto stuff to make room), and am glad it is fixed again.</div><div><br></div><div>For the SOC, I'm really just guessing. Supposedly message 0x5b3 on car can bus has GIDs in B6bit0 and B7 - I just divided that by 3 to get a rough approximation of SOC, but it is obviously not working. I think this one shouldn't be too hard, but I don't have any CAN bus dumps of what the 0x5b3 message looks like. If I can see a dump, with matching known SOC / GIDs, then I am sure we can get this right. That said, active polling (which is what leafspy uses) seems to be a better way of getting this, as it gets us true GIDs off the EV can bus.</div><div><br></div><div>Glad about the parking indicator. I work off the parking brake for that one, and it is an important status flag for quite a few things.</div><div><br></div><div>I'm working on the polling mechanism at the moment. It is very similar to the OBDII VIN number polling mechanism we already have, and my recent work on the common vehicle.{h,c} polling code should make this relatively easy.</div><div><br></div><div>Regards, Mark.</div><div><br><div><div>On 18 Dec, 2013, at 6:22 am, Nikki Gordon-Bloomfield <<a href="mailto:nikki@aminorjourney.com" target="_blank" mailid="nikki%40aminorjourney.com" subj="">nikki@aminorjourney.com</a>> wrote:</div><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">So here’s what I’ve learned from the alpha code so far… <div><br></div><div>1) It’s recording the parking status accurately, as far as I can tell. within a few minutes of parking, it’s noting that on the app screen. </div><div><br></div><div>2) It’s certainly sending me alerts as you might expect for low SOC warnings. </div><div><br></div><div>3) But sadly SOC isn’t working correctly with my car. For some reason, SOC is jumping all over the shop, with 22% SOC seemingly a favourite place for the OVMS code. On my quick trip just now to the shops, I noted it went from 76% SOC (which I think was fairly accurate given the number of bars I had) down to 22% when I parked up. </div><div><br></div><div>Coming back, I got no update and ended up having to do a hard reboot to get the system to wake up. </div><div><br></div><div>I haven’t been able to get any logs yet because I don’t have a splitter for the ODBII system. I’ll get that sorted later this week/early next. </div><div><br></div><div>Nikki.</div><div><br></div><div><br></div><div><br></div><div><br><div><div>On 17 Dec 2013, at 20:06, Nikki Gordon-Bloomfield <<a href="mailto:nikki@aminorjourney.com" target="_blank" mailid="nikki%40aminorjourney.com" subj="">nikki@aminorjourney.com</a>> wrote:</div><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Okay guys. <div><br></div><div>I’ve done a couple of quick tests with the new beta software. </div><div><br></div><div>First up, it installs (Which is good, of course) Second up: I was able to drive around the block and see some SOC reports. What did appear to happen is that SOC dropped and then went back up again. I had values from 27% SOC down to 14% SOC to Empty and back up to 22% SOC.  I’d guesstimate my real SOC was nearer 45%.  (Although I didn’t check with LEAFSpy)</div><div><br></div><div>Of course, I need to check the other bits and bobs too — Park/Drive status seems to work with the car on — but with the module rebooted, it forgets what was previously on. This is a problem I believe with the LEAF CAN bus, which turns itself off when parked. I’m guessing we’ll need to figure out a way to wake up CAN and then switch back off again? (That said,I think it’s supposed to stay on when charging… and I’m currently charging)</div><div><br></div><div>I’ll play a little more tomorrow and throughout the rest of the week. I’ll also try and get some decent logs if I can. </div><div><br></div><div>Nikki. </div><div><br></div><div><br></div><div><div><div>On 17 Dec 2013, at 14:16, Mark Webb-Johnson <<a href="mailto:mark@webb-johnson.net" target="_blank" mailid="mark%40webb-johnson.net" subj="">mark@webb-johnson.net</a>> wrote:</div><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><br></div><div>Attached is a first-run at Nissan Leaf support, with a few values read from the bus passively:</div><div><br></div><div><ul><li>Speed</li><li>Headlight status</li><li>Park / Drive status</li><li>SOC</li></ul></div><div><br></div><div>I’ve also pushed this to github (along with a large number of other small changes).</div><div><br></div><div>The Nissan Leaf support is proving really hard for me. I don’t have the car, or much CAN bus data, and the public documentation is contradictory and incomplete. End result is that I am just guessing, and completely unable to test my guesses.</div><div><br></div><div>Anyway, please try it and let me know if any of those figures show up with any sense of accuracy at all.</div><div><br></div><div>Going forward, I really need some CAN bus dumps from a Nissan Leaf. Specifically:</div><div><br></div><div><ol><li>Car idle</li><li>Car plugged in and charge started</li><li>Car charging</li><li>Charge interrupted</li><li>Driving</li><li>Driving as close to a constant speed of 10 kph as possible</li><li>Driving as close to a constant speed of 20 kph as possible</li><li>Driving as close to a constant speed of 30 kph as possible</li><li>Car parked, but on</li><li>Car parked, coming out of park into drive gear</li><li>Car stopped, coming out of drive gear into park</li><li>Car in park gear, then handbrake applied</li></ol></div><div><br></div><div>For each of those, both with and without a T connector and LeafSpy running would be helpful.</div><div><br></div><div>I’m guessing the logs can be gotten from monitor-all mode with an OBDII adaptor. There is not too much data on the can bus and that should be fast enough.</div><div><br></div><div>If anyone can help with the above, please let me know.</div><div><br></div><div>Regards, Mark.</div><div><br></div><div></div></div><span><OVMS.X.production.zip></span><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div></div></div>_______________________________________________<br>OvmsDev mailing list<br><a href="mailto:OvmsDev@lists.teslaclub.hk" target="_blank" mailid="OvmsDev%40lists.teslaclub.hk" subj="">OvmsDev@lists.teslaclub.hk</a><br><a href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev" target="_blank">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a><br></blockquote></div><br></div></div></blockquote></div><br></div></div>_______________________________________________<br>OvmsDev mailing list<br><a href="mailto:OvmsDev@lists.teslaclub.hk" target="_blank" mailid="OvmsDev%40lists.teslaclub.hk" subj="">OvmsDev@lists.teslaclub.hk</a><br><a href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev" target="_blank">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a><br></blockquote></div><br></div>_______________________________________________ <br>OvmsDev mailing list <br><a href="mailto:OvmsDev@lists.teslaclub.hk" target="_blank" mailid="OvmsDev%40lists.teslaclub.hk" subj="">OvmsDev@lists.teslaclub.hk</a> <br><a href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev" target="_blank">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a> <br></div></blockquote><br></div></div></div><span><TRC_1312211426.txt></span>_______________________________________________<br>OvmsDev mailing list<br><a href="mailto:OvmsDev@lists.teslaclub.hk">OvmsDev@lists.teslaclub.hk</a><br>http://lists.teslaclub.hk/mailman/listinfo/ovmsdev<br></blockquote></div><br></div></body></html>