[Ovmsdev] changing android app server IP

Tom Saxton tom at idleloop.com
Sun Jun 29 00:28:52 HKT 2014

I just downloaded the Android Open Vehicle app and configured it for our
Roadster. It gives me an error message that it can't connect and
recommends checking my passwords. I've double-checked the passwords and I
think they are right.

I don't see anywhere to enter my OVMS server user name, which the iOS app
requires. Is that the problem?


-----Original Message-----
From: Mark Webb-Johnson <mark at webb-johnson.net>
Reply-To: OVMS Developers <ovmsdev at lists.teslaclub.hk>
Date: Saturday, June 28, 2014 at 6:06 AM
To: OVMS Developers <ovmsdev at lists.teslaclub.hk>
Subject: Re: [Ovmsdev] changing android app server IP

>Looks good. I merged it, and submitted v3.2.2 to google play.
>Regards, Mark.
>On 28 Jun, 2014, at 3:44 am, Lee Howard <lee.howard at mainpine.com> wrote:
>> On 06/27/2014 10:38 AM, Lee Howard wrote:
>>> On 06/26/2014 08:38 PM, Tom Saxton wrote:
>>>> Arguably the server account should be per-vehicle but I'm guessing the
>>>> thought was that anyone who has multiple OVMS vehicles will have them
>>>> on the same server and making that app-wide means you only have to
>>>> username, password and server IP once.
>>>> Of course none of this is any help for figuring out how to do it on
>>>> Android...
>>> As I dug-into the Android code better to hard-code the address change
>>>I discovered - to my delight - that the app server address is stored in
>>>a per-car data object.  Yay!  So this is nice.  I'm going to give this
>>>another shot.
>> Here is the patch.  Someone with privs can apply it and commit these
>>changes to the repository if it meets with their approval.
>> It's a very small enhancement - basically permitting an interface to
>>sel_server in the CarData object.  The interface is right where it
>>should be, IMO: right where you enter the vehicle info and passwords.
>>The default is left to "tmc.openvehicles.com", but the user now has the
>>capability to modify it (on a per-car basis, even).
>> I did not change the sel_server initialization value of
>>"tmc.openvehicles.com".  I could have changed this to "" as with the
>>other CarData strings, but it probably makes little difference. Leaving
>>it to initialize with "tmc.openvehicles.com" possibly it could be
>>confusing to someone later who doesn't recognize that the initialized
>>value is always overwritten by the configured value (as with the other
>>CarData strings which are initialized to "").  If someone cares they can
>>modify that at the top of CarData.java.
>> This patch also makes one obvious grammatical correction in a string
>>appearing on the same page layout.
>> If there is any concern just look at the patch - it's a very, very
>>benign set of changes.  This e-mail is longer than the patch is.
>> Thanks,
>> Lee.
>> -- 
>> *Lee Howard*
>> *Mainpine, Inc. Chief Technology Officer*
>> Tel: +1 866 363 6680 | Fax: +1 360 462 8160
>> lee.howard at mainpine.com | www.mainpine.com
>> OvmsDev mailing list
>> OvmsDev at lists.teslaclub.hk
>> http://lists.teslaclub.hk/mailman/listinfo/ovmsdev
>OvmsDev mailing list
>OvmsDev at lists.teslaclub.hk

More information about the OvmsDev mailing list