<div dir="ltr"><div><div>FYI - I have a C-Zero and OVMS with programmer and OBD logger.<br><br>I have done a bit of work, but am rather limited in time that I can spend on this project, but am able to help out a bit from time to time.<br>

<br></div>I have been planning a small application to hunt through all the CAN traffic for candidate data, but this is way behind!<br><br></div>Matt Beard<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">

On 15 September 2013 22:02, Thomas Bergo <span dir="ltr"><<a href="mailto:thomas.bergo@gmail.com" target="_blank">thomas.bergo@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">Finally got some time to work on the i-Miev implementation.<div><br><div>But I'm facing some issues setting up the car module. </div><div>- SMS is working and are able to send messages to the car module and get answers.</div>


<div>- Problem getting the GPRS to work. Get "Not connected" and "Not connected (0x0041) when sending GPRS?</div><div>- No connection from the iOS app to server. Only red flashing antenna. </div><div><br></div>


<div>Any advise?</div><div><br></div><div><br></div><div>Still has some debugging to do on the i-Miev code, as i'm only get "SOC: 0%" from STAT?</div><div><br></div><div>Regards, Thomas</div></div></div><div class="HOEnZb">

<div class="h5"><div class="gmail_extra">
<br><br><div class="gmail_quote">2013/5/1 Mark Webb-Johnson <span dir="ltr"><<a href="mailto:mark@webb-johnson.net" target="_blank">mark@webb-johnson.net</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div style="word-wrap:break-word"><div><br></div>I've created a stub file (vehicle_mitsubishi.c), and pushed to github. If you pull head you'll get it. This is just a stub. You'll need to setup the CAN IDs you want to receive (in the filters), and then add the decoding logic to update the car_* variables.<div>


<br></div><div>Regards, Mark.</div><div><br></div><div>Regards, Mark.<br><div><br><div><div><div><div>On 30 Apr, 2013, at 5:29 AM, Thomas Bergo <<a href="mailto:thomas.bergo@gmail.com" target="_blank">thomas.bergo@gmail.com</a>> wrote:</div>


<br></div></div><blockquote type="cite"><div><div>Hi,<div><br></div><div>So far the following CAN messages is discovered by Priusfan published on myimiev forum:</div><div><br></div><div>SOC</div><div>RPM</div><div>
Range</div><div>Battery current</div><div>Battery voltage</div>
<div>Speed</div><div>Odo</div><div>Battery cell voltage</div><div>Battery cell temperature</div><div><br></div><div>So we still have to find Car On/Off and the charging status.</div><div><br></div><div>Those messages are available as Mitsubishi has made a CAN Gateway where those data is provided. <span></span><a href="http://www.pref.nagasaki.jp/ev/ev&its/120614/navi/gateway_gaiyou.pdf" target="_blank">http://www.pref.nagasaki.jp/ev/ev&its/120614/navi/gateway_gaiyou.pdf</a></div>



<div><br></div><div><br></div><div>Regarding the two-character abbreviation I think Brand-Model (MI) as TR and RT is most intuitive. So my vote goes to MI.</div><div><br></div><div>I'm interested in using the OVMS v1 HW for logging of CAN messages. How to pay for postage?</div>



<div><br></div><div>Regards, Thomas</div><div><br><br>mandag 29. april 2013 skrev Mark Webb-Johnson  følgende:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">



Thomas,<div><br></div><div>Earlier this year, Matt Beard mentioned he was interested in doing i-Miev support, but I'm not sure of his status. He is on this list, so should see this. There are also several OVMS users who have that car in their stable, so the requirement is definitely there.</div>



<div><br></div><div>It is probably worth firstly doing a quick feasibility check, to see what level of OVMS support is possible:</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>
Firstly, What are the specs for the CAN bus? What baud rate is it, and what is the connector? There are  just three messages that are key to feasibility:</div><div><br></div></blockquote><div>
<div><ol><ol><li>SOC - battery state of charge - <i>car_SOC</i></li><li>Car On/Off (ignition switch, or Park/Drive gear lever) - <i>car_doors1 [bit7]</i></li><li>Car Charging (true or false) - <i>car_doors1 [bit 4]</i></li>



</ol></ol></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><br></div><div><div>If those three are available, and readable by the OVMS hardware, then the project is most likely feasible. There are lots of other parameters (range, temperature, odometer, speed, vin, tpms, etc) that are nice to have, but are either optional (nice-to-have) or can generally be derived from these three key messages - so long as they can be found. For example, on the Volt/Ampera we don't know the detailed charge messages, but do know whether the car is charging or not - we can assume charge interrupted if the charge finishes before 95% complete. Similarly, if the range of the car is XXkm, we can estimate the current range based on XX * SOC%. If the car has no GPS details on the CAN bus, then we can use the GPS in the OVMS module itself.</div>



</div></blockquote><div><div><br></div><div>What vehicle two-character abbreviation do you think is suitable: IM or MI? Examples are RT (Renault Twizy), VA (Volt/Ampera), TR (Tesla Roadster).</div><div><br></div><div>
If you can let me have the can bus specs and information on the above 3 messages, I will create you a stub vehicle implementation.</div><div><br></div><div>Regards, Mark.</div><div><br></div><div>P.S. With reference to the development guide (<a href="https://raw.github.com/markwj/Open-Vehicle-Monitoring-System/master/docs/OVMS_Development.pdf" target="_blank">https://raw.github.com/markwj/Open-Vehicle-Monitoring-System/master/docs/OVMS_Development.pdf</a>), these are the current set of parameters that OVMS supports.</div>



<div><br></div><div><blockquote style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:40px;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;border-width:initial;border-color:initial;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px">



<h1><a name="141236e6aa82331b_13e601450ab5123c_13e5473ab4dd4ae8_13e5473ab4dd4ae8__Toc221031762">Vehicle Module Development Checklists</a> </h1><h2><a name="141236e6aa82331b_13e601450ab5123c_13e5473ab4dd4ae8_13e5473ab4dd4ae8__Toc221031763">Development Checklists</a><br>


<br><u></u><u></u></h2><p>You can use these checklists to know what vehicle parameters the OVMS system supports, and how you can map a specific vehicle to these. </p><table style="border-collapse:collapse;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;border-width:initial;border-color:initial" border="1" cellpadding="0" cellspacing="0">



<thead><tr><td style="width:125.9pt;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:white;border-right-color:white;border-bottom-color:white;border-left-color:white;border-top-width:1pt;border-right-width:1pt;border-bottom-width:1pt;border-left-width:1pt;background-image:initial;background-color:black;padding-top:0cm;padding-right:5.4pt;padding-bottom:0cm;padding-left:5.4pt;background-repeat:initial initial" valign="top" width="126">


<p><b><span style="font-size:10pt;color:white">Parameter<u></u><u></u></span></b></p></td><td style="width:5cm;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-top-color:white;border-right-color:white;border-bottom-color:white;border-top-width:1pt;border-right-width:1pt;border-bottom-width:1pt;border-left-style:none;border-left-width:initial;border-left-color:initial;background-image:initial;background-color:black;padding-top:0cm;padding-right:5.4pt;padding-bottom:0cm;padding-left:5.4pt;background-repeat:initial initial" valign="top" width="142">


<p><b><span style="font-size:10pt;color:white">Purpose<u></u><u></u></span></b></p></td><td style="width:175.15pt;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-top-color:white;border-right-color:white;border-bottom-color:white;border-top-width:1pt;border-right-width:1pt;border-bottom-width:1pt;border-left-style:none;border-left-width:initial;border-left-color:initial;background-image:initial;background-color:black;padding-top:0cm;padding-right:5.4pt;padding-bottom:0cm;padding-left:5.4pt;background-repeat:initial initial" valign="top" width="175">


<p><b><span style="font-size:10pt;color:white">Vehicle Support Notes<u></u><u></u></span></b></p></td></tr></thead><tbody><tr><td colspan="3" style="width:442.8pt;border-top-style:none;border-top-width:initial;border-top-color:initial;border-left-style:solid;border-left-color:white;border-left-width:1pt;border-bottom-style:solid;border-bottom-color:windowtext;border-bottom-width:1pt;border-right-style:solid;border-right-color:white;border-right-width:1pt;background-image:initial;background-color:silver;padding-top:0cm;padding-right:5.4pt;padding-bottom:0cm;padding-left:5.4pt;background-repeat:initial initial" valign="top" width="443">


<p><b><span style="font-size:9pt"> </span></b></p><p><b><span style="font-size:9pt">Vehicle Identification<u></u><u></u></span></b></p></td></tr><tr><td style="width:125.9pt;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-right-color:white;border-bottom-color:white;border-left-color:white;border-right-width:1pt;border-bottom-width:1pt;border-left-width:1pt;border-top-style:none;border-top-width:initial;border-top-color:initial;background-image:initial;background-color:silver;padding-top:0cm;padding-right:5.4pt;padding-bottom:0cm;padding-left:5.4pt;background-repeat:initial initial" valign="top" width="126">


<p><span style="font-size:9pt">car_type<u></u><u></u></span></p></td><td style="width:5cm;border-top-style:none;border-top-width:initial;border-top-color:initial;border-left-style:none;border-left-width:initial;border-left-color:initial;border-bottom-style:solid;border-bottom-color:white;border-bottom-width:1pt;border-right-style:solid;border-right-color:white;border-right-width:1pt;background-image:initial;background-color:silver;padding-top:0cm;padding-right:5.4pt;padding-bottom:0cm;padding-left:5.4pt;background-repeat:initial initial" valign="top" width="142">


<p><span style="font-size:9pt">Vehicle type identified<u></u><u></u></span></p></td><td style="width:175.15pt;border-top-style:none;border-top-width:initial;border-top-color:initial;border-left-style:none;border-left-width:initial;border-left-color:initial;border-bottom-style:solid;border-bottom-color:white;border-bottom-width:1pt;border-right-style:solid;border-right-color:white;border-right-width:1pt;background-image:initial;background-color:silver;padding-top:0cm;padding-right:5.4pt;padding-bottom:0cm;padding-left:5.4pt;background-repeat:initial initial" valign="top" width="175">



<div><span style="font-size:9pt"> </span><br></div></td></tr><tr><td style="width:125.9pt;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-right-color:white;border-bottom-color:white;border-left-color:white;border-right-width:1pt;border-bottom-width:1pt;border-left-width:1pt;border-top-style:none;border-top-width:initial;border-top-color:initial;background-image:initial;background-color:silver;padding-top:0cm;padding-right:5.4pt;padding-bottom:0cm;padding-left:5.4pt;background-repeat:initial initial" valign="top" width="126">


<p><span style="font-size:9pt">car_vin<u></u><u></u></span></p></td><td style="width:5cm;border-top-style:none;border-top-width:initial;border-top-color:initial;border-left-style:none;border-left-width:initial;border-left-color:initial;border-bottom-style:solid;border-bottom-color:white;border-bottom-width:1pt;border-right-style:solid;border-right-color:white;border-right-width:1pt;background-image:initial;background-color:silver;padding-top:0cm;padding-right:5.4pt;padding-bottom:0cm;padding-left:5.4pt;background-repeat:initial initial" valign="top" width="142">


<p><span style="font-size:9pt">Vehicle VIN<u></u><u></u></span></p></td><td style="width:175.15pt;border-top-style:none;border-top-width:initial;border-top-color:initial;border-left-style:none;border-left-width:initial;border-left-color:initial;border-bottom-style:solid;border-bottom-color:white;border-bottom-width:1pt;border-right-style:solid;border-right-color:white;border-right-width:1pt;background-image:initial;background-color:silver;padding-top:0cm;padding-right:5.4pt;padding-bottom:0cm;padding-left:5.4pt;background-repeat:initial initial" valign="top" width="175">



<div><span style="font-size:9pt"> </span><br></div></td></tr></tbody></table><p><u></u> <u></u></p><table style="border-collapse:collapse;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;border-width:initial;border-color:initial" border="1" cellpadding="0" cellspacing="0">



<thead><tr><td style="width:125.9pt;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:white;border-right-color:white;border-bottom-color:white;border-left-color:white;border-top-width:1pt;border-right-width:1pt;border-bottom-width:1pt;border-left-width:1pt;background-image:initial;background-color:black;padding-top:0cm;padding-right:5.4pt;padding-bottom:0cm;padding-left:5.4pt;background-repeat:initial initial" valign="top" width="126">


<p><b><span style="font-size:10pt;color:white">Parameter<u></u><u></u></span></b></p></td><td style="width:5cm;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-top-color:white;border-right-color:white;border-bottom-color:white;border-top-width:1pt;border-right-width:1pt;border-bottom-width:1pt;border-left-style:none;border-left-width:initial;border-left-color:initial;background-image:initial;background-color:black;padding-top:0cm;padding-right:5.4pt;padding-bottom:0cm;padding-left:5.4pt;background-repeat:initial initial" valign="top" width="142">


<p><b><span style="font-size:10pt;color:white">Purpose<u></u><u></u></span></b></p></td><td style="width:175.15pt;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-top-color:white;border-right-color:white;border-bottom-color:white;border-top-width:1pt;border-right-width:1pt;border-bottom-width:1pt;border-left-style:none;border-left-width:initial;border-left-color:initial;background-image:initial;background-color:black;padding-top:0cm;padding-right:5.4pt;padding-bottom:0cm;padding-left:5.4pt;background-repeat:initial initial" valign="top" width="175">


<p><b><span style="font-size:10pt;color:white">Vehicle Support Notes<u></u><u></u></span></b></p></td></tr></thead><tbody><tr><td colspan="3" style="width:442.8pt;border-top-style:none;border-top-width:initial;border-top-color:initial;border-left-style:solid;border-left-color:white;border-left-width:1pt;border-bottom-style:solid;border-bottom-color:windowtext;border-bottom-width:1pt;border-right-style:solid;border-right-color:white;border-right-width:1pt;background-image:initial;background-color:silver;padding-top:0cm;padding-right:5.4pt;padding-bottom:0cm;padding-left:5.4pt;background-repeat:initial initial" valign="top" width="443">


<p><b><span style="font-size:9pt"> </span></b></p><p><b><span style="font-size:9pt">GPS Status</span></b><span style="font-size:9pt"><u></u><u></u></span></p></td></tr><tr><td style="width:125.9pt;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-right-color:white;border-bottom-color:white;border-left-color:white;border-right-width:1pt;border-bottom-width:1pt;border-left-width:1pt;border-top-style:none;border-top-width:initial;border-top-color:initial;background-image:initial;background-color:silver;padding-top:0cm;padding-right:5.4pt;padding-bottom:0cm;padding-left:5.4pt;background-repeat:initial initial" valign="top" width="126">


<p><span style="font-size:9pt">Vehicle GPS<u></u><u></u></span></p></td><td style="width:5cm;border-top-style:none;border-top-width:initial;border-top-color:initial;border-left-style:none;border-left-width:initial;border-left-color:initial;border-bottom-style:solid;border-bottom-color:white;border-bottom-width:1pt;border-right-style:solid;border-right-color:white;border-right-width:1pt;background-image:initial;background-color:silver;padding-top:0cm;padding-right:5.4pt;padding-bottom:0cm;padding-left:5.4pt;background-repeat:initial initial" valign="top" width="142">


<p><span style="font-size:9pt">Does the vehicle have a built-in GPS? If so, complete the following.<u></u><u></u></span></p></td><td style="width:175.15pt;border-top-style:none;border-top-width:initial;border-top-color:initial;border-left-style:none;border-left-width:initial;border-left-color:initial;border-bottom-style:solid;border-bottom-color:white;border-bottom-width:1pt;border-right-style:solid;border-right-color:white;border-right-width:1pt;background-image:initial;background-color:silver;padding-top:0cm;padding-right:5.4pt;padding-bottom:0cm;padding-left:5.4pt;background-repeat:initial initial" valign="top" width="175">



<div><span style="font-size:9pt"> </span><br></div></td></tr><tr><td style="width:125.9pt;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-right-color:white;border-bottom-color:white;border-left-color:white;border-right-width:1pt;border-bottom-width:1pt;border-left-width:1pt;border-top-style:none;border-top-width:initial;border-top-color:initial;background-image:initial;background-color:silver;padding-top:0cm;padding-right:5.4pt;padding-bottom:0cm;padding-left:5.4pt;background-repeat:initial initial" valign="top" width="126">


<p><span style="font-size:9pt">car_gpslock<u></u><u></u></span></p></td><td style="width:5cm;border-top-style:none;border-top-width:initial;border-top-color:initial;border-left-style:none;border-left-width:initial;border-left-color:initial;border-bottom-style:solid;border-bottom-color:white;border-bottom-width:1pt;border-right-style:solid;border-right-color:white;border-right-width:1pt;background-image:initial;background-color:silver;padding-top:0cm;padding-right:5.4pt;padding-bottom:0cm;padding-left:5.4pt;background-repeat:initial initial" valign="top" width="142">


<br></td></tr></tbody></table></blockquote></div></div></div></blockquote></div></div></div><div>
_______________________________________________<br>OvmsDev mailing list<br><a href="mailto:OvmsDev@lists.teslaclub.hk" target="_blank">OvmsDev@lists.teslaclub.hk</a><br><a href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev" target="_blank">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a><br>


</div></blockquote></div><br></div></div></div><br>_______________________________________________<br>
OvmsDev mailing list<br>
<a href="mailto:OvmsDev@lists.teslaclub.hk" target="_blank">OvmsDev@lists.teslaclub.hk</a><br>
<a href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev" target="_blank">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
OvmsDev mailing list<br>
<a href="mailto:OvmsDev@lists.teslaclub.hk">OvmsDev@lists.teslaclub.hk</a><br>
<a href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev" target="_blank">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a><br>
<br></blockquote></div><br></div>