I'm using the play store version 3.12.4 and I don't have the AC button. It's not that big of a deal except that I can't see whether or not the AC is on from the app.
On Thu, Jul 5, 2018 at 5:42 AM, ovmsdev-request@lists.openvehicles.com<ovmsdev-request@lists.openvehicles.com> wrote:Send OvmsDev mailing list submissions toTo subscribe or unsubscribe via the World Wide Web, visitor, via email, send a message with subject or body 'help' toYou can reach the person managing the list atWhen replying, please edit your Subject line so it is more specificthan "Re: Contents of OvmsDev digest..."Today's Topics:1. Re: Can buses stop after some time (Stein Arne Sordal)2. Re: Can buses stop after some time (Tom Parker)3. Re: Nissan Leaf Support Request (Tom Parker)4. Re: MQTT and Ovms Server v3 (Jakob L?w)----------------------------------------------------------------------Message: 1Date: Thu, 5 Jul 2018 08:34:17 +0200From: Stein Arne Sordal <ovms@topphemmelig.no>To: OVMS Developers <ovmsdev@lists.openvehicles.com>Subject: Re: [Ovmsdev] Can buses stop after some timeMessage-ID: <B62B646E-7129-4A61-B928-467E83EC32B1@topphemmelig.no>Content-Type: text/plain; charset=utf-8Did anyone figure out what happens here?Now the OVMS thinks my car is stolen since it?s moving (GPS) and CAN2 is dead.Reboot of module brings CAN2 back to life for a period of time.-Stein Arne Sordal-> On 11 May 2018, at 12:29, Stein Arne Sordal <ovms@topphemmelig.no> wrote:>> Hi Tom>> I have seen this with my Leaf.> I?ve been on vacation, so I haven?t got time to test a lot, but it looks like one of the can buses stops. Started testing again today.>> -Stein Arne Sordal->>>>> On 11 May 2018, at 12:22, Tom Parker <tom@carrott.org> wrote:>>>> Hi all,>>>> I synced up with master about a week ago and since then I've seen both can busses stop working. I still see the 12v battery metric changing, but everything that comes from the car stops. Rebooting the module with "module reset" does not seem to fix it, while make app-flash monitor does fix it. I haven't tried make monitor on it's own.>>>> Is anyone else seeing behavior like this?>>>> Sorry for the vague bug report. I'll spend some time later this weekend to try to gather more information.>> _______________________________________________>> OvmsDev mailing list>> _______________________________________________> OvmsDev mailing list------------------------------Message: 2Date: Thu, 5 Jul 2018 19:55:05 +1200From: Tom Parker <tom@carrott.org>Subject: Re: [Ovmsdev] Can buses stop after some timeMessage-ID: <8e2964d0-047e-7f27-9eaa-daf9cd14f6a0@carrott.org>Content-Type: text/plain; charset=utf-8; format=flowedI haven't had a chance to try to work out what is going on.I can say that the second can interface doesn't work for very longbefore stopping. This manifests most obviously on my Leaf as a stoppedodometer in the OVMS app. If you look at the metrics in the console theneverything that comes from the Car CAN bus (ie the second CAN bus) hasfrozen.The first CAN interface seems much more reliable, with SOC informationfrom the EV bus being fairly reliably reported.I haven't done the modification to make my 3.0 unit's GPS work so Ihaven't experienced the stolen detection.On 05/07/18 18:34, Stein Arne Sordal wrote:> Did anyone figure out what happens here?> Now the OVMS thinks my car is stolen since it?s moving (GPS) and CAN2 is dead.> Reboot of module brings CAN2 back to life for a period of time.>> -Stein Arne Sordal->>>>> On 11 May 2018, at 12:29, Stein Arne Sordal <ovms@topphemmelig.no> wrote:>>>> Hi Tom>>>> I have seen this with my Leaf.>> I?ve been on vacation, so I haven?t got time to test a lot, but it looks like one of the can buses stops. Started testing again today.>>>> -Stein Arne Sordal->>>>>>>>> On 11 May 2018, at 12:22, Tom Parker <tom@carrott.org> wrote:>>>>>> Hi all,>>>>>> I synced up with master about a week ago and since then I've seen both can busses stop working. I still see the 12v battery metric changing, but everything that comes from the car stops. Rebooting the module with "module reset" does not seem to fix it, while make app-flash monitor does fix it. I haven't tried make monitor on it's own.>>>>>> Is anyone else seeing behavior like this?>>>>>> Sorry for the vague bug report. I'll spend some time later this weekend to try to gather more information.>>> _______________________________________________>>> OvmsDev mailing list>> _______________________________________________>> OvmsDev mailing list> _______________________________________________> OvmsDev mailing list------------------------------Message: 3Date: Thu, 5 Jul 2018 20:34:34 +1200From: Tom Parker <tom@carrott.org>Subject: Re: [Ovmsdev] Nissan Leaf Support RequestMessage-ID: <85109d8f-31ba-245e-40bf-50b0351f13fc@carrott.org>Content-Type: text/plain; charset="windows-1252"; Format="flowed"On 01/07/18 21:23, Mark Webb-Johnson wrote:> A user has a raised a ticket:>>I can't see this link>> I would like to be able to turn my A/C on and off remotely as> discussed> I use their version of the OVMS app it just crashes repeatedly> after I input my car's settings so I can't use it. However when I> use the play market version of the app, there is no A/C button but> it runs solidly and I can see my car's information (it works). Is> there a way to turn the A/C on and off with this version of the> app? Also, I'm assuming (perhaps incorrectly) that the latest> hardware already has the features built in and no flashing is> necessary.>You want to use the play store version. I'm running 3.12.4 from the Playstore and when connected to a Leaf, I see the AC button.> Bonus questions:> In the app it seems there's an ability to unlock my car and to put> it in valet mode but those features need a pin. Where does this> pin come from and do the features really work? What is valet mode> anyway?>Not all cars support lock and unlock or valet mode. We have some codethat works for lock/unlock on the Leaf but it's not yet finished. Thereare no plans to support valet mode.> What is the 'Features' section of the app for? I see that I need> to set my #15 CAN Write to 1 before I can expect the A/C control> to work which I've done but is there any info on what the rest of> it does?>You don't need this for OVMS v3.> Server: 2.1.1-20121216> Car: 3.1.006> App: 3.12.4 (20180428> Update: The remote A/C worked with homelink 1 and 2 when I got> home to charge. I don't have a model with navigation or car wings> so I don't think I have the option mentioned about when to allow> remote A/C with respect to SOC level. Is it possible that there's> a way to set this option with the OVMS?>We still support climate control with homelink 1 & 2 for old apps. Thisat least lets use separate your climate control button problem questionsabout how the AC works.Which model year Leaf do you have? Older than 2013 may require extrahardware to enable climate control when the car is asleep. 2013 through2015 use a different remote climate control to that of 2016 & 2017. Youhave to set the module year configuration option to tell the OVMS whichcar you have. 2018 Leafs are not yet supported.We made a change to how the climate control is switched off recently andthis is probably in the latest firmware (which you don't have on yourOVMS). We don't have a way way to configure the remote climate control-- the OVMS simply sends the enable command to the car and the car doesit's thing.-------------- next part --------------An HTML attachment was scrubbed...URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20180705/1557c725/attachment-0001.html>------------------------------Message: 4Date: Thu, 05 Jul 2018 11:41:43 +0200From: Jakob L?w <ovms@m4gnus.de>Subject: Re: [Ovmsdev] MQTT and Ovms Server v3Message-ID: <1530783703.1790.1.camel@m4gnus.de>Content-Type: text/plain; charset="utf-8"Hey,Regarding naming:I suppose the following topic names:metrics: <prefix>/metric/#events: <prefix>/event/#notifications: <prefix>/notify/#config: <prefix>/config/#logs: <prefix>/log/<tag>active: <prefix>/client/<clientid>/activerequests: <prefix>/client/<clientid>/request/#commands: <prefix>/client/<clientid>/command/<command id>cmd responses: <prefix>/client/<clientid>/response/<command id>Filtering:In order to decrease used data a blacklist of metrics which are notsend (like m.freeram or m.monotonic) would be cool.heartbeats:I've seen you implemented that clients have to send a message every twominutes. A topic like the above .../<clientid>/active which is set to 1when a client connects and to 0 by its last will would have the sameeffect but not require heartbeats to be sent every two minutes and thususe less of our precious cellular data.Requesting values:In order to decrease data usage even more allowing clients to requestthe value of a metric using <prefix>/client/<clientid>/request/metricand the metric name in the value or using<prefix>/client/<clientid>/request/config and the config name in thevalue. Allowing wildcards like m.net.* or just * allows to requestmultiple or all metrics with a single request. Then e.g. the app wouldrequest all metrics it wants to display.Encryption:TLS in general seems to be a missing thing with OVMS. Downloadingfirmware updates over http and not doing any verification is kind ofmeh. The problem is (as noted in my last email) with the CA certs. Mysuggestion is to ship with one default CA (e.g. Let's Encrypt) andallow the user to replace it with a different one.I would love to implement this, but I am currently in exam phase andwon't have much time to spare until next week.Authentification:If you can live with moving to mosquitto[0] (MQTT broker by eclipse)they have a very good auth plugin[1]. All you have to do is to write ansql statement which receives the hashed passwords from the OVMSdatabase by username (see [2]).?If you are on debian its just an aptinstall mosquitto mosquitto-auth-plugin away.It is very important to set up ACL (access control lists) which makesure only user X can subscribe/publish to ovms/X and noone else.Luckily this is also handeled by mosquitto_auth_plugOn Thu, 2018-07-05 at 09:26 +0800, Mark Webb-Johnson wrote:> I am far from an expert in MQTT. Not even a novice. So, the work> below is ?best efforts?. Any help / comments / suggestions would be> most appreciated. In particular, a big thanks to Jakob for his> contributions to this so far.>> With yesterday?s merge, and commits, we have a very very basic OVMS> server v3 implementation. It sends the metrics, and doesn?t crash> (much). The overall design is as follows:>> We use the mongoose mqtt library. We don?t do anything special, and> everything is following the mqtt 3.1 standard.>> MQTT has the concept of topics. Our default prefix for everything is:>> ovms/<mqtt-username>/<vehicleid>/>> (that can be customised with config server.v3 topic.prefix)>> Metrics are sent as topics. The metric name is added to the topic> prefix + ?m/? suffix, and ?.? characters converted to ?/? to match> the MQTT conventions. The value is simply the metric value (as a> string). With our current arrangement, this adds m/m/, m/s/, and m/v/> sub-trees to the the MQTT topic hierarchy. Clients can subscribe to> <prefix>/m/# to receive all metrics. The ?retained? flag is set on> these metrics, at QOS level 0 (so subscribing clients will get a copy> of the last known values for these metrics, even with a disconnected> vehicle).>> The metric?s.v3.connected is maintained by the ServerV3 code. When a> successful MQTT connection is made, and login successful, that is set> true (yes). A MQTT last-will-testament is set so that if the OVMS> module disconnects the server will automatically update that to false> (no). The ?retained? flag is set on this metric, at QOS level 0 (so> subscribing clients will get a copy of the last known state). Clients> can use this to see if the vehicle is connected to the server.>> Connecting clients are expected to write a ?1? value to the> <prefix>/c/<clientid> topic, and to repeat that write once a minute.> They are also expected to use a last-will-testament on that same> topic with value ?0?. QOS 1 should be used, and these topics should> not be retained. The server V3 code subscribes to this <prefix>/c/#> topic, so it gets informed of all connected clients. It can then> update the s.v3.peers metric appropriately. Clients are expected to> monitor the <prefix>/s/v3/connected topic, so that if it becomes> ?yes? (true) the client should send <prefix>/c/<clientid> ?1?> immediately. This mechanism allows a newly connected vehicle to> immediately know if one or more clients is connected.>> The Server v3 sets a timeout for <prefix>/c/<clientid> connections of> 2 minutes. If that mqtt topic is not sent again within that time, it> is expired (and that client is treated as disconnected).>> Similar to the v2 code, the server v3 transmits modified metrics once> a minute if there are one or more clients connected, or once every> ten minutes if there are no clients connected.>> All the above has been implemented. To reach parity with v2, and> exceed it?s functionality in places, we have a few more things to do:>> Notifications>> On the vehicle side, I am proposing to use the <prefix>/notify/<type>> namespace for these, using QOS 2 messages without retention. Clients> can listen to those, if necessary. We can also have a central daemon> running that listens to ovms/+/+/n/# topic pattern to receive these> notifications and handle appropriately. Using QOS 2 we can confirm> the reception of the notification / historical data, and mark it as> delivered, appropriately. However, that would only confirm delivery> to the MQTT server, not to the central daemon; if the daemon was not> running, the notification would be lost.>> Textual Commands>> I am proposing to use the <prefix>/cmd/<clientid>/c/ and> <prefix>/cmd/<clientid>/r/ namespaces for this, using QOS 2 messages> without retention. The value in the /c/ would be the command, and the> response would be written to matching the /r/ topic. The commands and> responses could be prefixed by an identifier (like in imap protocol)> so responses can be matched to commands by the clients). The client> side can simply subscribe to itself, and the vehicle side subscribes> to <prefix>/cmd/#. In this way, commands cannot be duplicated, and> clients don?t see responses to commands they didn?t initiate (which> was an issue with v2).>> Numeric Commands>> I am not sure if we need to implement the numeric commands, as used> in the v2 protocol. It seems to me that we can use textual commands.>> Config Access>> I am not sure if we need this, beyond the command processor. If we> do, we could expose a /config/ namespace.>> Events>> It would be nice to expose events (except for the ticker.* ones, of> course). This could be done by a <prefix>/events topic, using QOS 2> and no retention.>> Logs>> It would be nice to expose logs. This could be done by a> <prefix>/logs topic, using QOS 1 and no retention.>> Security>> We need to add SSL support. I am trying to get an authentication> plugin for mosquitto / vernemq written so that we can authenticate> straight from the OVMS database that is already running on the> servers, and give each user their own ovms/<userid>/# namespace. That> way, the configuration for v3 on the vehicle/apps/clients is simple -> just put in the server username and password (no separate vehicle> passwords necessary).>> I think that is it. The above would form the basis of the> specification for this. As this is the basis for future work and> direction in OVMS, it is important that we get it right, so all> comments / suggestions most welcome.>> Regards, Mark.>> _______________________________________________> OvmsDev mailing list-------------- next part --------------A non-text attachment was scrubbed...Name: signature.ascType: application/pgp-signatureSize: 488 bytesDesc: This is a digitally signed message part------------------------------Subject: Digest Footer_______________________________________________OvmsDev mailing list------------------------------End of OvmsDev Digest, Vol 78, Issue 8**************************************