[Ovmsdev] OVMS Leaf Support

Mark Webb-Johnson mark at webb-johnson.net
Mon Oct 21 09:06:59 HKT 2013


Robert,

PID polling vs passive can bus listening.

In general, passive listening is much simpler and easier to develop for without the car. Everything can be done by examining and replaying can bus logs.

PID polling requires active access to the can bus, and is much more intrusive. It is also much harder to test without a physical car.

Regards, Mark.

On 20 Oct, 2013, at 12:23 am, Robert Sharpe <robert.sharpe at evergreen-consulting.co.uk> wrote:

> Hi Mark,
> 
> Thanks for the update.
> 
> Good and bad news.
> 
> For those of us less capable, and only if you think it is worth it, what is the importance of PID polling and how does it affect the development?
> 
> Regards,
> Rob
> 
> 
> 
> ---- On Sat, 19 Oct 2013 16:23:00 +0100 Mark Webb-Johnson <mark at webb-johnson.net> wrote ---- 
> 
> 
> I met up with a local Leaf owner (George) and spent a few hours in the car logging stuff off the main CAN bus. The car is a 2011 model, I think (the VIN model year is U/V, which makes no sense).
> 
> Good news it that the OVMS cables are fine. The ‘right hand’ ovms obdii cable appears to be the best for the right hand drive nissan leafs. The OBDII connector is under the steering wheel, parallel with the car direction of travel, short side on the left, so using a right-hand cable directs the cable towards the front of the car, which should be easiest for routing.
> 
> I managed to get quite a few log files, using a standard CAN USB adaptor at 512kbps.
> 
> Bad news is I am having trouble correlating lots of the messages against the published spreadsheets of Leaf can bus messages. Some messages are partially correct, but many are missing / don’t match up. The car also seems to go to sleep during charging, although the leaf spy could update the SOC ok. The 0x5b3 SOC+GIDS message wasn’t visible on the bus at all.
> 
> I think we are going to have to use PID polling to get the data we need.
> 
> Regards, Mark.
> 
> On 16 Oct, 2013, at 10:31 pm, Mark Webb-Johnson <mark at webb-johnson.net> wrote:
> 
>> 
>> Anyone feeling brave?
>> 
>> I’ve just committed a nissan leaf module (set vehicle id to NL) that will monitor the can bus and pickup the SOC%. That is all it does at the moment, but it should work.
>> 
>> Regards, Mark.
>> 
>> On 16 Oct, 2013, at 2:49 pm, Nikki Gordon-Bloomfield <nikki at littlecollie.com> wrote:
>> 
>>> I've already messages mark C. Let's hope he has it :) I know he and his husband have done a lot of logging. 
>>> 
>>> Sent from my iPhone
>>> 
>>> On 16 Oct 2013, at 07:02, Robert Sharpe <robert.sharpe at evergreen-consulting.co.uk> wrote:
>>> 
>>>> Hi Mark,
>>>> 
>>>> >I think the fastest way to get this done is for me to do it with a local Leaf owner.
>>>> That sounds like a good idea.
>>>> 
>>>> >Can someone tell me which CarCAN bus message to look for, which byte(s) to access, and how to convert to percentage SOC?
>>>> >The document at https://docs.google.com/spreadsheet/ccc?key=0An7gtcYL2Oy0dGRaSWl6VTV2eXBQMy1ON2xZSzlMUXc#gid=5 suggests ID 5B3 tracks SOH and Gids. But how to convert to percentage SOC?
>>>> 
>>>> Is @nufkin (Mark C) on this list? He has done some analysis of codes.
>>>> There is always the authors of the other projects that read Leaf data.
>>>> 
>>>> Regards,
>>>> Rob
>>>> 
>>>> 
>>>> On Oct 16, 2013, at 6.33AM, Mark Webb-Johnson wrote:
>>>> 
>>>> I think the fastest way to get this done is for me to do it with a local Leaf owner.
>>>> 
>>>> If I can get basic support working, then perhaps someone else (or others) with better knowledge of the Leaf scene, can take over to get the advanced stuff working.
>>>> 
>>>> So, I'm going to try to get some Leaf Spy traces, as well as CAN bus logs for parked, charging and driving. Then, get the basic module working with SOC%, GPS location, door status, drive/park and charge monitor.
>>>> 
>>>> My biggest confusion at the moment is SOC% in the Leaf. There is a lot of talk about gids, etc, but I've never gone into it too deeply.
>>>> 
>>>> Can someone tell me which CarCAN bus message to look for, which byte(s) to access, and how to convert to percentage SOC?
>>>> 
>>>> The document at https://docs.google.com/spreadsheet/ccc?key=0An7gtcYL2Oy0dGRaSWl6VTV2eXBQMy1ON2xZSzlMUXc#gid=5 suggests ID 5B3 tracks SOH and Gids. But how to convert to percentage SOC?
>>>> 
>>>> Regards, Mark.
>>>> 
>>>> On 16 Oct, 2013, at 1:03 pm, Evergreen <robert.sharpe at evergreen-consulting.co.uk">target="_blank">robert.sharpe at evergreen-consulting.co.uk> wrote:
>>>> 
>>>> That's great news.
>>>> 
>>>> Regards,
>>>> Rob
>>>> 
>>>> On 16 Oct 2013, at 06:00, Mark Webb-Johnson <mark at webb-johnson.net">target="_blank">mark at webb-johnson.net> wrote:
>>>> 
>>>> 
>>>> P.S. I'm trying to find a friendly Leaf owner in Hong Kong to co-operate with this. There are 200+ Leafs here, and no carwings coverage at all, but most are in government service and relatively few in private hands.
>>>> 
>>>> I think my fishing expedition on the forums may have come up with a bite. A Hong Kong Leaf owner who is willing to help.
>>>> 
>>>> I'll let you know how it pans out (over the next couple of days), but if I can get access to a local Leaf, getting the basic support working should be much faster.
>>>> 
>>>> Regards, Mark.
>>>> 
>>>> On 15 Oct, 2013, at 1:00 pm, Mark Webb-Johnson <mark at webb-johnson.net">target="_blank">mark at webb-johnson.net> wrote:
>>>> 
>>>> Barry,
>>>> 
>>>> Thanks for the history. I really think we can get what we need from the single car CAN bus.
>>>> 
>>>> I'll extract the relevant sections from the developers guide tonight, and post them here. The first step is to see which of those 'virtual car' pieces of information are available on the car CAN bus, and see if they match-up.
>>>> 
>>>> I really would like to see a dump (and dump) of the car CAN bus, as well as a trace from the leaf spy program. The captioned google docs spreadsheet for leaf can bus messages is quite confusing - it would be good to be able to compare that against what is actually seen on the bus.
>>>> 
>>>> Regards, Mark.
>>>> 
>>>> P.S. I'm trying to find a friendly Leaf owner in Hong Kong to co-operate with this. There are 200+ Leafs here, and no carwings coverage at all, but most are in government service and relatively few in private hands.
>>>> 
>>>> On 15 Oct, 2013, at 11:45 am, Barry Gershenfeld <gbarry42 at gmail.com">target="_blank">gbarry42 at gmail.com> wrote:
>>>> 
>>>> Early development assumed you had to get the EV info from the EV-CAN buss.  Somewhere during the development of Leaf Spy they kept finding desirable info on the car-CAN buss and so eventually determined that all if could be gotten from the car-CAN.  As a bonus, the ELM dongle no longer has to be modified to read the EV buss.
>>>> 
>>>> The original reporting efforts started with the "GID" meter, and the early work involved Gary G. building a data recorder as well as a program to analyze the logs.  I'm sure that's precisely what you have in mind as well.  There were downloadable logs--he invited others to install the analyzer and try to find meaningful messages therein.  But as it was early development, they were probably gotten from the EV-CAN.  I don't know if any more recent logs from the car CAN buss are posted.
>>>> 
>>>> As a matter of fact, I suspect Gary would be happy to have his analyzing program used.  It would be nice output the data into the same format that it uses.  Or at least write a converter.
>>>> 
>>>> I naturally have some interest, being a LEAF owner and PIC hacker.  I'll see if I can make head or tail of the developer's guide.
>>>> 
>>>>  * * *
>>>> 
>>>> On Mon, Oct 14, 2013 at 7:04 PM, Mark Webb-Johnson <mark at webb-johnson.net">target="_blank">mark at webb-johnson.net> wrote:
>>>> Developers guide is here:
>>>> 
>>>> https://github.com/markwj/Open-Vehicle-Monitoring-System/blob/master/docs/OVMS_Development.pdf?raw=true
>>>> 
>>>> I would rather the actual development discussions take place here on this list. A lot of smart people here, with experience getting these vehicle modules working.
>>>> 
>>>> The biggest concern for me is whether we can get everything we need off one CAN bus...
>>>> _______________________________________________
>>>> OvmsDev mailing list
>>>> OvmsDev at lists.teslaclub.hk">target="_blank">OvmsDev at lists.teslaclub.hk
>>>> http://lists.teslaclub.hk/mailman/listinfo/ovmsdev
>>>> 
>>>> _______________________________________________
>>>> OvmsDev mailing list
>>>> OvmsDev at lists.teslaclub.hk">target="_blank">OvmsDev at lists.teslaclub.hk
>>>> http://lists.teslaclub.hk/mailman/listinfo/ovmsdev
>>>> 
>>>> _______________________________________________
>>>> OvmsDev mailing list
>>>> OvmsDev at lists.teslaclub.hk">target="_blank">OvmsDev at lists.teslaclub.hk
>>>> http://lists.teslaclub.hk/mailman/listinfo/ovmsdev
>>>> _______________________________________________
>>>> OvmsDev mailing list
>>>> OvmsDev at lists.teslaclub.hk">target="_blank">OvmsDev at lists.teslaclub.hk
>>>> http://lists.teslaclub.hk/mailman/listinfo/ovmsdev
>>>> 
>>>> 
>>>> 
>>>> _______________________________________________
>>>> OvmsDev mailing list
>>>> OvmsDev at lists.teslaclub.hk
>>>> http://lists.teslaclub.hk/mailman/listinfo/ovmsdev
>>> _______________________________________________
>>> OvmsDev mailing list
>>> OvmsDev at lists.teslaclub.hk
>>> http://lists.teslaclub.hk/mailman/listinfo/ovmsdev
>> 
>> _______________________________________________
>> OvmsDev mailing list
>> OvmsDev at lists.teslaclub.hk
>> http://lists.teslaclub.hk/mailman/listinfo/ovmsdev
> 
> _______________________________________________ 
> OvmsDev mailing list 
> OvmsDev at lists.teslaclub.hk 
> http://lists.teslaclub.hk/mailman/listinfo/ovmsdev 
> 
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.teslaclub.hk
> http://lists.teslaclub.hk/mailman/listinfo/ovmsdev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.teslaclub.hk/pipermail/ovmsdev/attachments/20131021/225f4382/attachment-0001.html>


More information about the OvmsDev mailing list