<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Edwin,<br>
<br>
welcome :-)<br>
<br>
<a class="moz-txt-link-freetext" href="https://docs.google.com/spreadsheets/d/1sY5n8WFu52U6a4_mg3MdcGcmDk3scAP8_muSy-BlXPc/edit#gid=946940079">https://docs.google.com/spreadsheets/d/1sY5n8WFu52U6a4_mg3MdcGcmDk3scAP8_muSy-BlXPc/edit#gid=946940079</a><br>
<br>
There really seem to be quite some similarities, e.g. the battery
capacity is read from PID 41A3 for both Volt & Bolt, and the SOC
is available at PID 8334 on both. So it's probably worth giving the
Volt adaption a try and using that as the template.<br>
<br>
Looking at the most current polling vehicle addition (Hyundai Ioniq
vFL) may also be worth while, as that demonstrates the current
recommendations on handling poll responses etc.<br>
<br>
<blockquote type="cite">In the bolt/ampera pid sheet there are these
pids but how do I translate these into a new car template? </blockquote>
<br>
That's pretty straight forward:<br>
<ul>
<li>The column "ModeAndPID" includes the combination of the
request type (aka mode, mostly 22) and the actual PID.</li>
<li>Column "Header" is the address of the ECU to query for that
PID. The response address is that value + 8 if not specified
explicitly.</li>
<li>The "Equation" needs to be implemented by the poll reply
handler.<br>
</li>
</ul>
Example: for the SOC, fetching 228334 from ECU 7E4 translates to
this polling list entry:<br>
<br>
<font face="monospace"> { 0x7e4, 0x7ec,
VEHICLE_POLL_TYPE_OBDIIEXTENDED, 0x8334, { 0, 10, 10 }, 0,
ISOTP_STD }, // SOC</font><br>
<br>
…because VEHICLE_POLL_TYPE_OBDIIEXTENDED = 22 (you could also use
VEHICLE_POLL_TYPE_READDATA or write 0x22 if you like).<br>
<br>
The timing { 0, 10, 10 } means no polling in state 0, polling every
10 seconds in poll states 1 & 2. State 3 is unused. You use the
poll states to model different poll frequencies per vehicle state
(e.g. off / driving / charging).<br>
<br>
In PID equations, "A" refers to the first payload byte, "B" to the
second and so on. For single frame responses, the poll reply handler
can simply read directly from the "data" byte array.<br>
<br>
<style type="text/css">td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}</style>So
<font face="monospace">A*100/255</font> translates to: <font
face="monospace">data[0] * 100.0f / 255.0f</font><br>
<br>
Regards,<br>
Michael<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">Am 16.04.21 um 10:10 schrieb Alexander
K:<br>
</div>
<blockquote type="cite"
cite="mid:CAN_98syPbEC5VgjCVuqTQOnSuDZP0cBy4X7tkksse+ry16qLyw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr">Hello Edwin <br>
<div><br>
</div>
<div>The most similar car to Bolt/Ampera-e is Chevrolet Volt.
Try a Volt vehicle with your car or use it as a template. <br>
You will most likely need a swcan module to wake up the car.<br>
</div>
</div>
<div><br>
</div>
Alexander.<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">пт, 16 апр. 2021 г. в 10:49,
Edwin ten Haaf <<a href="mailto:edwin@familietenhaaf.nl"
moz-do-not-send="true">edwin@familietenhaaf.nl</a>>:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div>Hello All,</div>
<div><br>
</div>
<div>I'm currently driving a 2018 Opel Ampera-e and since
Opel pulled out the plug from OnStar as they moved to
PSA group (peugeot) my car is offline.</div>
<div>Recently I noticed the OVMS project and bought myself
a kit.</div>
<div>It's hooked up and connected but only location data
is available at the moment.</div>
<div><br>
</div>
<div>The pids needed are available from this location <span
style="background-color:rgb(250,250,250);color:rgb(85,85,85);font-family:"Source
Sans Pro","Source Sans
Pro";font-size:16px"><a
href="https://allev.info/boltpids/" target="_blank"
moz-do-not-send="true">https://allev.info/boltpids/</a></span></div>
<div>Jason_ABRP wrote some tips in the forum thread <a
href="https://www.openvehicles.com/node/2345"
target="_blank" moz-do-not-send="true">https://www.openvehicles.com/node/2345</a></div>
<div><br>
</div>
<div>As I am not a developer but a eager to learn system
engineer in IT i'm lost from this point.</div>
<div>In the bolt/ampera pid sheet there are these pids but
how do I translate these into a new car template? <br>
My son is a software developer student and can also help
me in making this template.<br>
<br>
Any help would be appreciated.</div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>Edwin</div>
<div><br>
</div>
<div><br>
<br>
</div>
</div>
_______________________________________________<br>
OvmsDev mailing list<br>
<a href="mailto:OvmsDev@lists.openvehicles.com"
target="_blank" moz-do-not-send="true">OvmsDev@lists.openvehicles.com</a><br>
<a
href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a><br>
</blockquote>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
OvmsDev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.openvehicles.com">OvmsDev@lists.openvehicles.com</a>
<a class="moz-txt-link-freetext" href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26</pre>
</body>
</html>