[Ovmsdev] Merging in Twizy and Volt/Ampera work

Mark Webb-Johnson mark at webb-johnson.net
Sun Nov 18 16:21:33 HKT 2012

The auth modes directly map to the three ways of doing it in the old code. Just standardised them and implemented in one place to save space, and reduce the amount of work needed to be done in the handlers.

Some commands can ONLY work with a password (things like REGISTER used to change the registered phone - which can obviously not work with a caller id).

Some commands can work with EITHER a password OR a registered phone (things like STAT).

Other commands can ONLY work with a registered phone (normally commands used to set settings like SERVER, MODULE, etc - where the presence of a password could be confused with the parameter itself).

Regards, Mark

On 18 Nov, 2012, at 6:08 AM, Michael Balzer <dexter at expeedo.de> wrote:

> Am 17.11.2012 19:20, schrieb Michael Balzer:
>> Thinking about auth... maybe I'm missing something, but why is there a need for the three auth modes? Couldn't it just be mode 3 for every command?
> Ok, thinking about it a bit more (I'm getting old...), a caller id obviously can be faked, so mode 1 definitely makes sense.
> But it still looks like mode 2 is included in mode 3...?
> Michael
> -- 
> Michael Balzer * Paradestr. 8 * D-42107 Wuppertal
> Fon 0202 / 272 2201 * Handy 0176 / 206 989 26
> <dexter.vcf>_______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.teslaclub.hk
> http://lists.teslaclub.hk/mailman/listinfo/ovmsdev

More information about the OvmsDev mailing list