[Ovmsdev] RC5 trial with heating state

Mark Webb-Johnson mark at webb-johnson.net
Wed Feb 22 13:41:35 HKT 2012


Jack,

[took the liberty of replying to this via ovmsdev, for wider dissemination]

> When I first opened the OVMS app my phone had lost service and of course the app wasn't working. 
> After a few minutes I restarted the app and had data right away.  No big deal, just a note.


We have logic in the iOS App to cope with a complete loss of service. If the iPhone says 'no network', the App will give you a big ugly warning alert dialog. We need this to pass Apple's AppStore gatekeepers (it is one of the top 5 reasons an App gets rejected). I suspect that either (a) something nasty happens in the phone if you continually try to access the network with no network connection, or (b) this was one of Steve's pet peeves.

If the phone has network, but the iOS App can't access the server, then things are handled badly. There is no retry attempt, and not a very clear indication. Exit and re-enter the app (or select another car) is the only way to get it back.

This is something I would like to improve, and it should not be too hard. But, it is in the App and we can relatively easily release updates.

> When in the heating state, the app has the plug icon (nice!) but no indication ( other than the icon) that the car is heating or acting like it's in the charging state (amps/volts whatever).  This is OK, just noting it.

I can add this to the iOS App. No biggy.

> If I select the wake up car command and then try to cancel, it just kind of hangs for a bit, maybe a minute before being able to cancel.  Selecting wake up works right away.  Again, no big deal, just a note.  Might be my connection, but it is repeatable.

I guess some network issue. The car can only queue one command at a time, which is a bit limiting but we are tight on RAM.

Interestingly, there is another 'quirk' of the Tesla. If you transmit on the CAN bus a "START CHARGE" command while the car is sleeping, it doesn't actually start the charge. A couple of hours later, press the door handle to wake up the car, and the charge will start ;-) Kind of freaked me out the first time I saw it. Our current approach is to handle start charge in the car module by first transmitting the START CHARGE can command, followed by the WAKEUP can command - this is the same approach used by the VDS.

> Slide pilot switch off on cable during heating state:
>   SMS ALERT = "charging, preparing". Ideally we would get a "charge stopped" MSG 
>   OVMS PUSH = "charging, preparing"
>   After a short time app shows "prepare - 1V at 0A" on plug icon


I think we made a mistake in the reverse-engineering labeling of the charge states as 'charge state' and 'charge sub-state'. The sub-state seems to be a much more useful and granular indication of what is going on with the car, and the charge state is only really useful to know what happened with the last charge.

In your case, when you stop the charge during heating, you get 'preparing' state. Not useful.

That said, the car's handling of these states is also a mess (witness the stuck in 'preparing-to-charge' state when a charge is requested and the car charge port is closed).

At the moment, for this case, the Alert is raised and that should at least tell the user that something is wrong. I think we can emphasis the sub-state in the App (particularly when the car is unplugged).

> Car lock/unlock worked perfectly.

US car, right? Be afraid, very afraid.

With what we now know, plugging a laptop with a canbus usb adaptor into the diag port, a blackhat could easily output "unlock 0000", "unlock 0001", in very quick succession until the code is guessed. Remotely via OVMS (if he knows the car id and password) is also possible, but much much slower (perhaps one guess every three or four seconds).

Thankfully, the non-US cars have separate immobilisers and alarms, so are more secure.

> You have really done an outstanding job.  I'm excited to have this in our car.  So is my wife, who is the one that uses the car the most and has seen the most failed charges (leaving her with a low battery when she needs a full one!).  Nice work

It has been a truly amazing project. Thanks to everyone's help, we've built something to bring the Tesla Roadster up to the level of, and in some cases surpassing, other more modern EVs. I actually prefer to look at the iPhone App screen rather than the VDS (particularly since Felix cleaned it up so nicely).

The next step is to open this up to end-users. I really hope that the people that have been using this for the past few months will step forward and help the not-so-technically-capable roadster owners in their areas get it running.

Regards, Mark.

On 22 Feb, 2012, at 12:31 PM, Jack West wrote:

> 
> Some notes on my experience using RC5 and the updated app today.  I'd like to stress that I think things are looking very good.
> 
> When I first opened the OVMS app my phone had lost service and of course the app wasn't working.  My phone did find service a minute later but the app never did start reporting.  Changing tabs didn't help.  I didn't try to send any commands.  After a few minutes I restarted the app and had data right away.  No big deal, just a note.
> 
> When in the heating state, the app has the plug icon (nice!) but no indication ( other than the icon) that the car is heating or acting like it's in the charging state (amps/volts whatever).  This is OK, just noting it.
> 
> If I select the wake up car command and then try to cancel, it just kind of hangs for a bit, maybe a minute before being able to cancel.  Selecting wake up works right away.  Again, no big deal, just a note.  Might be my connection, but it is repeatable.
> 
> From battery screen, plug icon slide to stop -> looks good!  Stops heating mode perfectly.
> 
> Icon slide to start restarts heating exactly as advertised.
> 
> Slide pilot switch off on cable during heating state:
>   SMS ALERT = "charging, preparing". Ideally we would get a "charge stopped" MSG 
>   OVMS PUSH = "charging, preparing"
>   After a short time app shows "prepare - 1V at 0A" on plug icon
> Slide physical pilot switch 'on'
>   "prepare - 1V at 0A" disappears from Icon
>   Car goes back to heating
> 
> Using the VDS stop by request during heating mode:
>   Plug icon shows "charge stopped"
>   No alerts or push 
> This part is perfect
> 
> Car lock/unlock worked perfectly.
> 
> You have really done an outstanding job.  I'm excited to have this in our car.  So is my wife, who is the one that uses the car the most and has seen the most failed charges (leaving her with a low battery when she needs a full one!).  Nice work
> 
> Jack

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


More information about the OvmsDev mailing list