<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Nikolay,<br>
<br>
congratulations :-)<br>
<br>
Mark already said it: look for "car_" variables, these will
transport common properties. "can_" variables are currently vehicle
locals, see my previous suggestion on renaming these to reflect
their vehicle specific nature. Only common properties and commands
will currently be supported by the Apps -- adding vehicle specific
code and UIs to the Apps is the next main todo.<br>
<br>
Note there are some variables already in the Twizy code, that
could/should become common. Generally, the more vehicles turn up to
need some value, the more likely it will become common.<br>
<br>
Without App support, you still can do vehicle specific data
collection and analysis by sending "H" MSGs to the server. "H" msg
types are basically free-form, they can transport all vehicle
specific data to the server and to any client. There are multiple
examples in the Twizy code for that, and I've added user guides and
a perl utility "cmd.pl" to query them from the server last night,
take a look. The output is simple CSV format, so you can load that
into any spreadsheet or database.<br>
<br>
For text messages, note there is already an App msg defined ("P" =
push message), the only current caveat is, the Apps (at least the
Android one) will only process these if backgrounded. That certainly
can be fixed soon, so push messages will become a fully functional
SMS alternative.<br>
<br>
Regards,<br>
Michael<br>
<br>
<br>
<div class="moz-cite-prefix">Am 06.01.2013 15:04, schrieb Nikolay
Shishkov:<br>
</div>
<blockquote
cite="mid:1357481055.40031.YahooMailNeo@web142604.mail.bf1.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff; font-family:times
new roman, new york, times, serif;font-size:12pt">
<div>Thanks to Michael, Mark and google the code now works. </div>
<div>I am fetching SOC, pack current, pack voltage, and pack
average temperature. </div>
<div>So w<span style="background-color: transparent;">hat next?</span></div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
'times new roman', 'new york', times, serif; background-color:
transparent; font-style: normal;">The current code is based on
the Twizy, I have changed the implementation of the Debug
command and am getting correct values... but I would like to
have the STATE command work too, and I will implement a custom
one too (based on the Twizy code) so it will report what I
want it to report. There is for example no range.</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
'times new roman', 'new york', times, serif; background-color:
transparent; font-style: normal;">How to go about with
integrating server and android/iphone app?</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
'times new roman', 'new york', times, serif; background-color:
transparent; font-style: normal;">In the simplest form I would
like to have at least SOC, Temperature, Pack voltage, Pack
current, a some kind of text or bit map for state (like
charged, charging enabled, plugged, waiting temp) there are
some more states, some additional parameters like PWM signal
for charge power, and eventual errors and warnings - there is
a warning "please charge to full soon" for example. These can
also be bits or text.</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
'times new roman', 'new york', times, serif; background-color:
transparent; font-style: normal;">From the Twizy code I can
see how to handle this for the sms commands, and I see some
ways of generating semicolon separated message to the
server... but would that mean that the message will be later
understood/presented by the apps? </div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
'times new roman', 'new york', times, serif; background-color:
transparent; font-style: normal;"><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
'times new roman', 'new york', times, serif; background-color:
transparent; font-style: normal;">I would also like to have
the SOC notifications - low SOC, charge finished, charge
stopped - I can also fix this the Twizy way.</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
'times new roman', 'new york', times, serif; background-color:
transparent; font-style: normal;"><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
'times new roman', 'new york', times, serif; background-color:
transparent; font-style: normal;">Very exciting!</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
'times new roman', 'new york', times, serif; background-color:
transparent; font-style: normal;">Thanks,</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
'times new roman', 'new york', times, serif; background-color:
transparent; font-style: normal;">Nikolay</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
'times new roman', 'new york', times, serif; background-color:
transparent; font-style: normal;"><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
'times new roman', 'new york', times, serif; background-color:
transparent; font-style: normal;"><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
'times new roman', 'new york', times, serif; background-color:
transparent; font-style: normal;"><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 16px; font-family:
'times new roman', 'new york', times, serif; background-color:
transparent; font-style: normal;"><br>
</div>
<div style="font-family: 'times new roman', 'new york', times,
serif; font-size: 12pt;">
<div style="font-family: 'times new roman', 'new york', times,
serif; font-size: 12pt;"><br>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
OvmsDev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.teslaclub.hk">OvmsDev@lists.teslaclub.hk</a>
<a class="moz-txt-link-freetext" href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Michael Balzer * Paradestr. 8 * D-42107 Wuppertal
Fon 0202 / 272 2201 * Handy 0176 / 206 989 26
</pre>
</body>
</html>