[Ovmsdev] Locations and scripts

Mark Webb-Johnson mark at webb-johnson.net
Mon Apr 1 15:28:44 HKT 2019


OK. That is expected behaviour then. The location system requires StandardMetrics.ms_v_env_on to be TRUE before issuing events.

I guess it is possible to make that behaviour configurable, but a better solution would be to fix the can2 and get ms_v_env_on correct (as it is used for many other things - including the generalised charge/drive logging I am working on).

What is the current status of the CAN2 issue? Anybody manage to find why it is an issue for Nissan Leafs?

Regards, Mark.

> On 1 Apr 2019, at 3:09 PM, ovms <ovms at topphemmelig.no> wrote:
> 
> Mark, you are correct, I have a Nissan Leaf. The location service is still updating correct locations on the status page but is no longer triggering scripts. If I issue the "can can2 start active 500000" command it will return to normal and trigger scripts for a while (until the can2 stops receiving).
>  
>  
> On 2019-04-01 06:44, Mark Webb-Johnson <mark at webb-johnson.net> wrote:
> Looking at Stein’s past messages, I think he is using Nissan Leaf as well. Perhaps he and Anko have the same problem.
> 
> > On 1 Apr 2019, at 12:34 PM, Stephen Casner <casner at acm.org> wrote:
> >   
> > Anko,
> >   
> > Yours is an interesting additional datapoint, but I think the cause is
> > unrelated.  In the cases I mentioned the cars were parked in our
> > private garages.  As Mark suggested, for the Roadster the software may
> > not be obtaining the GPS data in the most reliable manner.
> >   
> >                                                        -- Steve
> >   
> > On Mon, 1 Apr 2019, Anko Hanse wrote:
> >   
> >> I received one of those car theft messages as well, on March 24 at 17:10 New Zealand time.
> >> In my case the car (Nissan Leaf) was actually moving as my wife was driving somewhere while I was at home.
> >>   
> >> A quick remote "metrics list" revealed that the "v.e.on" metric somehow remained false during the entire trip.
> >> Most other metrics seemed to be updating fine, including
> >> - gps location and speed
> >> - temperatures
> >> - v.b.voltage, v.b.current
> >> - v.b.soc
> >> - v.m.rpm
> >>   
> >> Only saw this once, the next trip all was functioning as normal again. Did not have any logs running so had no way to further investigate.
> >> Just now made some screenshots of that metrics query from last week and added them to this post (hope that works). Could not figure out how to copy the full text from the messages tab in the Android App, it only seemed to copy the first half of the query result.
> >>   
> >>   
> >> -----Original Message-----
> >> From: Stephen Casner <casner at acm.org>
> >> Sent: Monday, 1 April 2019 4:12 AM
> >> To: OVMS Developers <ovmsdev at lists.openvehicles.com>
> >> Subject: Re: [Ovmsdev] Locations and scripts
> >>   
> >> Mark,
> >>   
> >> This message reminds me to mention that both Timothy Rodgers and I have received false alarm car-theft notifications from OVMS.  Have you?  I presume these are caused by temporary inaccuracy in the GPS signal.
> >>   
> >>                                                        -- Steve
> >>   
> >> On Sun, 31 Mar 2019, Mark Webb-Johnson wrote:
> >>   
> >>> Except it does use the metric that says the car is on (for the car theft feature).
> >>>   
> >>>> On 31 Mar 2019, at 9:37 PM, Mark Webb-Johnson <mark at webb-johnson.net> wrote:
> >>>>   
> >>>> Location service just works off gps data. For cars using the gps in the simcom modules, that shouldn't rely on can at all.
> >>>>   
> >>>> Regards, Mark
> >>>>   
> >>>>> On 29 Mar 2019, at 3:56 PM, ovms <ovms at topphemmelig.no> wrote:
> >>>>>   
> >>>>>   
> >>>>> Hi
> >>>>>   
> >>>>> I would like to run scripts based on location. The scripts work fine, but the location service stops working.
> >>>>> I guess the location service requires CAN1 to be working?
> >>>>> Since CAN1 stops receiving after a short period of time, the location service also stops.
> >>>>> Is there a way to bypass this so the location service does not depend on CAN1 working?
> >>>>>   
> >>>>> Kind regards,
> >>>>> Stein Arne Sordal
> >>   
> >>   
> > _______________________________________________
> > OvmsDev mailing list
> > OvmsDev at lists.openvehicles.com
> > http://lists.openvehicles.com/mailman/listinfo/ovmsdev
> 
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.openvehicles.com
> http://lists.openvehicles.com/mailman/listinfo/ovmsdev
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.openvehicles.com
> http://lists.openvehicles.com/mailman/listinfo/ovmsdev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20190401/ade20517/attachment.htm>


More information about the OvmsDev mailing list