<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Thanks Michael,<div class=""><br class=""></div><div class="">Had a try and ended up with this bit added but return anything</div><div class=""><br class=""></div><div class="">Where am I going wrong?</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;" class="">Shane</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;" class="">*******</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(196, 26, 22); background-color: rgb(255, 255, 255);" class=""><span style="color: #643820" class="">#include </span>"ovms_log.h"</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(155, 35, 147); background-color: rgb(255, 255, 255);" class=""><b class="">static</b><span style="color: rgba(0, 0, 0, 0.85)" class=""> </span><b class="">const</b><span style="color: rgba(0, 0, 0, 0.85)" class=""> </span><b class="">char</b><span style="color: rgba(0, 0, 0, 0.85)" class=""> *</span><span style="color: #0f68a0" class="">TAG</span><span style="color: rgba(0, 0, 0, 0.85)" class=""> = </span><span style="color: #c41a16" class="">"v-edeliver3"</span><span style="color: rgba(0, 0, 0, 0.85)" class="">;</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(196, 26, 22); background-color: rgb(255, 255, 255);" class=""><span style="color: #643820" class="">#include </span>"vehicle_edeliver3.h"</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(196, 26, 22); background-color: rgb(255, 255, 255);" class=""><span style="color: #643820" class="">#include </span>"metrics_standard.h"</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(155, 35, 147); background-color: rgb(255, 255, 255);" class=""><b class="">namespace</b><span style="color: rgba(0, 0, 0, 0.85)" class=""> {</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(15, 104, 160); background-color: rgb(255, 255, 255);" class=""><span style="color: #9b2393" class=""><b class="">const</b></span><span style="color: rgba(0, 0, 0, 0.85)" class=""> </span>OvmsVehicle<span style="color: rgba(0, 0, 0, 0.85)" class="">::</span>poll_pid_t<span style="color: rgba(0, 0, 0, 0.85)" class=""> </span>obdii_polls<span style="color: rgba(0, 0, 0, 0.85)" class="">[] =</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class="">{</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class=""> { <span style="color: #1c00cf" class="">0x7e3</span>, <span style="color: #1c00cf" class="">0x7eb</span>, VEHICLE_POLL_TYPE_OBDIIEXTENDED, <span style="color: #1c00cf" class="">0xf194</span>, { <span style="color: #1c00cf" class="">10</span>, <span style="color: #1c00cf" class="">10</span>, <span style="color: #1c00cf" class="">10</span>, <span style="color: #1c00cf" class="">10</span> }, <span style="color: #1c00cf" class="">0</span>, ISOTP_STD }, <span style="color: #5d6c79" class="">//VIN</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class=""> { <span style="color: #1c00cf" class="">0x7e3</span>, <span style="color: #1c00cf" class="">0x7eb</span>, VEHICLE_POLL_TYPE_OBDIIEXTENDED, <span style="color: #1c00cf" class="">0xe003</span>, { <span style="color: #1c00cf" class="">10</span>, <span style="color: #1c00cf" class="">10</span>, <span style="color: #1c00cf" class="">10</span>, <span style="color: #1c00cf" class="">10</span> }, <span style="color: #1c00cf" class="">0</span>, ISOTP_STD }, <span style="color: #5d6c79" class="">//SOH</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class=""> POLL_LIST_END</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class="">};</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class="">};</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(15, 104, 160); background-color: rgb(255, 255, 255);" class="">OvmsVehicleEdeliver3<span style="color: rgba(0, 0, 0, 0.85)" class="">::</span>OvmsVehicleEdeliver3<span style="color: rgba(0, 0, 0, 0.85)" class="">()</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class=""> {</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(196, 26, 22); background-color: rgb(255, 255, 255);" class=""><span style="color: rgba(0, 0, 0, 0.85)" class=""> ESP_LOGI(TAG, </span>"Start eDeliver3 vehicle module"<span style="color: rgba(0, 0, 0, 0.85)" class="">);</span></div><p style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;" class=""> <br class="webkit-block-placeholder"></p><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class=""> RegisterCanBus(<span style="color: #1c00cf" class="">1</span>,CAN_MODE_ACTIVE,CAN_SPEED_500KBPS);</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class=""> }</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(15, 104, 160); background-color: rgb(255, 255, 255);" class="">OvmsVehicleEdeliver3<span style="color: rgba(0, 0, 0, 0.85)" class="">::~</span>OvmsVehicleEdeliver3<span style="color: rgba(0, 0, 0, 0.85)" class="">()</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class=""> {</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(196, 26, 22); background-color: rgb(255, 255, 255);" class=""><span style="color: rgba(0, 0, 0, 0.85)" class=""> ESP_LOGI(TAG, </span>"Stop eDeliver3 vehicle module"<span style="color: rgba(0, 0, 0, 0.85)" class="">);</span></div><p style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;" class=""> <br class="webkit-block-placeholder"></p><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class=""> memset(m_vin, <span style="color: #1c00cf" class="">0</span>, <span style="color: #9b2393" class=""><b class="">sizeof</b></span>(m_vin));</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class=""> }</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(93, 108, 121); background-color: rgb(255, 255, 255);" class="">//testing polls</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(15, 104, 160); background-color: rgb(255, 255, 255);" class=""><span style="color: #9b2393" class=""><b class="">void</b></span><span style="color: rgba(0, 0, 0, 0.85)" class=""> </span>OvmsVehicleEdeliver3<span style="color: rgba(0, 0, 0, 0.85)" class="">::</span>IncomingPollReply<span style="color: rgba(0, 0, 0, 0.85)" class="">(</span></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class=""> canbus* bus, uint16_t type, uint16_t pid, uint8_t* data, uint8_t length, uint16_t mlremain)</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class="">{</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class=""> string& rxbuf = med_obd_rxbuf;</div><p style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;" class=""> <br class="webkit-block-placeholder"></p><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class=""> OvmsVehicle::PollSetPidList(m_can1, obdii_polls);</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class=""> OvmsVehicle::PollSetState(<span style="color: #1c00cf" class="">0</span>);</div><p style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;" class=""> <br class="webkit-block-placeholder"></p><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(93, 108, 121); background-color: rgb(255, 255, 255);" class=""><span style="color: rgba(0, 0, 0, 0.85)" class=""> </span>// init / fill rx buffer:</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class=""> <span style="color: #9b2393" class=""><b class="">if</b></span> (m_poll_ml_frame == <span style="color: #1c00cf" class="">0</span>) {</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class=""> rxbuf.clear();</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class=""> rxbuf.reserve(length + mlremain);</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class=""> }</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class=""> rxbuf.append((<span style="color: #9b2393" class=""><b class="">char</b></span>*)data, length);</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class=""> <span style="color: #9b2393" class=""><b class="">if</b></span> (mlremain)</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class=""> <span style="color: #9b2393" class=""><b class="">return</b></span>;</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(93, 108, 121); background-color: rgb(255, 255, 255);" class=""><span style="color: rgba(0, 0, 0, 0.85)" class=""> </span>// complete:</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class=""> <span style="color: #9b2393" class=""><b class="">switch</b></span> (pid) {</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class=""> <span style="color: #9b2393" class=""><b class="">case</b></span> <span style="color: #1c00cf" class="">0xe003</span>: {</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class=""> <span style="color: #9b2393" class=""><b class="">unsigned</b></span> <span style="color: #9b2393" class=""><b class="">int</b></span> soh_raw = ((<span style="color: #9b2393" class=""><b class="">unsigned</b></span> <span style="color: #9b2393" class=""><b class="">int</b></span>)rxbuf[<span style="color: #1c00cf" class="">0</span>] << <span style="color: #1c00cf" class="">8</span>) | (<span style="color: #9b2393" class=""><b class="">unsigned</b></span> <span style="color: #9b2393" class=""><b class="">int</b></span>)rxbuf[<span style="color: #1c00cf" class="">1</span>];</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class=""> <span style="color: #9b2393" class=""><b class="">float</b></span> soh = soh_raw / <span style="color: #1c00cf" class="">10</span>;</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class=""> StdMetrics.ms_v_bat_soh->SetValue(soh);</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class=""> <span style="color: #9b2393" class=""><b class="">break</b></span>;</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class=""> }</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class=""> }</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255);" class="">}</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgb(93, 108, 121); background-color: rgb(255, 255, 255);" class="">// end testing polls</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo; color: rgba(0, 0, 0, 0.85); background-color: rgb(255, 255, 255); min-height: 14px;" class=""><br class=""></div><div><br class=""><blockquote type="cite" class=""><div class="">On 5 Mar 2021, at 12:37, Michael Balzer <<a href="mailto:dexter@expeedo.de" class="">dexter@expeedo.de</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" class="">
<div class="">
Shane,<br class="">
<br class="">
on OBD polling basics:
<a class="moz-txt-link-freetext" href="http://lists.openvehicles.com/pipermail/ovmsdev/2020-December/014758.html">http://lists.openvehicles.com/pipermail/ovmsdev/2020-December/014758.html</a><br class="">
<br class="">
Regards,<br class="">
Michael<br class="">
<br class="">
<br class="">
<div class="moz-cite-prefix">Am 04.03.21 um 19:45 schrieb Shane @
Kilve Engineering:<br class="">
</div>
<blockquote type="cite" cite="mid:6580C00C-DF5C-4D81-80C6-B886FE5D21F9@kilve-engineering.co.uk" class="">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" class="">
Good evening Michael,
<div class=""><br class="">
</div>
<div class="">Or any one that has the time to help, </div>
<div class=""><br class="">
</div>
<div class="">Ive now successfully retrieved as much info as I can
without polling any info for the maxus, but I have have now
found an ecu that responds to pid requests. </div>
<div class=""><br class="">
</div>
<div class="">For example if I use the obdii pid scanner I get the
loads of data back and I’ve decoded some of it, just need a bit
of guidance how to write the code to get the same info </div>
<div class=""><br class="">
</div>
<div class="">A part of a scan is as follows</div>
<div class=""><br class="">
</div>
<div class="">
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: Monaco; color: rgb(2, 26,
0); background-color: rgb(255, 255, 255);" class=""><span style="font-kerning: none" class="">Scan complete (7e3
e000-e100)</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: Monaco; color: rgb(2, 26,
0); background-color: rgb(255, 255, 255);" class=""><span style="font-kerning: none" class="">Scan started :
2021-03-04 18:32:36 GMT</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: Monaco; color: rgb(2, 26,
0); background-color: rgb(255, 255, 255);" class=""><span style="font-kerning: none" class="">Last response:
2021-03-04 18:32:39 GMT</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: Monaco; color: rgb(2, 26,
0); background-color: rgb(255, 255, 255);" class=""><span style="font-kerning: none" class="">7e3[7eb]:e000 00</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: Monaco; color: rgb(2, 26,
0); background-color: rgb(255, 255, 255);" class=""><span style="font-kerning: none" class="">7e3[7eb]:e001 64</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: Monaco; color: rgb(2, 26,
0); background-color: rgb(255, 255, 255);" class=""><span style="font-kerning: none" class="">7e3[7eb]:e002 4b</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: Monaco; color: rgb(2, 26,
0); background-color: rgb(255, 255, 255);" class=""><span style="font-kerning: none" class="">7e3[7eb]:e003 26 bc</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: Monaco; color: rgb(2, 26,
0); background-color: rgb(255, 255, 255);" class=""><span style="font-kerning: none" class="">7e3[7eb]:e004 00 07</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: Monaco; color: rgb(2, 26,
0); background-color: rgb(255, 255, 255);" class=""><span style="font-kerning: none" class="">7e3[7eb]:e005 2f</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: Monaco; color: rgb(2, 26,
0); background-color: rgb(255, 255, 255);" class=""><span style="font-kerning: none" class="">7e3[7eb]:e006 2e</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: Monaco; color: rgb(2, 26,
0); background-color: rgb(255, 255, 255);" class=""><span style="font-kerning: none" class="">7e3[7eb]:e007 02 00</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: Monaco; color: rgb(2, 26,
0); background-color: rgb(255, 255, 255);" class=""><span style="font-kerning: none" class="">7e3[7eb]:e008 01 ff</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: Monaco; color: rgb(2, 26,
0); background-color: rgb(255, 255, 255);" class=""><span style="font-kerning: none" class="">7e3[7eb]:e009 02 00</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: Monaco; color: rgb(2, 26,
0); background-color: rgb(255, 255, 255);" class=""><span style="font-kerning: none" class="">7e3[7eb]:e010 02 00</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: Monaco; color: rgb(2, 26,
0); background-color: rgb(255, 255, 255);" class=""><span style="font-kerning: none" class=""><br class="">
</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: Monaco; color: rgb(2, 26,
0); background-color: rgb(255, 255, 255);" class=""><span style="font-kerning: none" class="">I know that e003 is SOH
= 26bc = 9916 /100 = 99.16% SOH</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: Monaco; color: rgb(2, 26,
0); background-color: rgb(255, 255, 255);" class=""><span style="font-kerning: none" class="">And e002 is a temp 4b =
75 / 10 = 7.5 degrees</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: Monaco; color: rgb(2, 26,
0); background-color: rgb(255, 255, 255);" class=""><span style="font-kerning: none" class=""><br class="">
</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: Monaco; color: rgb(2, 26,
0); background-color: rgb(255, 255, 255);" class=""><span style="font-kerning: none" class="">So if some one can help
me with an example of how to correctly code this one I can
work out the rest, </span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: Monaco; color: rgb(2, 26,
0); background-color: rgb(255, 255, 255);" class=""><span style="font-kerning: none" class=""><br class="">
</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: Monaco; color: rgb(2, 26,
0); background-color: rgb(255, 255, 255);" class=""><span style="font-kerning: none" class="">Ive looked through
various vehicles but everyone uses different methods and I
can’t seem to get one to work for me. </span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: Monaco; color: rgb(2, 26,
0); background-color: rgb(255, 255, 255);" class=""><span style="font-kerning: none" class=""><br class="">
</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: Monaco; color: rgb(2, 26,
0); background-color: rgb(255, 255, 255);" class=""><span style="font-kerning: none" class="">Any help much
appreciated </span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: Monaco; color: rgb(2, 26,
0); background-color: rgb(255, 255, 255);" class=""><span style="font-kerning: none" class=""><br class="">
</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 13px;
line-height: normal; font-family: Monaco; color: rgb(2, 26,
0); background-color: rgb(255, 255, 255);" class=""><span style="font-kerning: none" class="">Shane</span></div>
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On 15 Feb 2021, at 08:05, Michael Balzer <<a href="mailto:dexter@expeedo.de" class="" moz-do-not-send="true">dexter@expeedo.de</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">Shane,<br class="">
<br class="">
I forgot to mention: if you're working on a new vehicle
module, you'll also need to start the bus somewhere in
your initialization code. Example:<br class="">
<br class="">
RegisterCanBus(1, CAN_MODE_ACTIVE, CAN_SPEED_500KBPS);<br class="">
<br class="">
Regards,<br class="">
Michael<br class="">
<br class="">
<br class="">
Am 15.02.21 um 08:36 schrieb Michael Balzer:<br class="">
<blockquote type="cite" class="">Shane,<br class="">
<br class="">
Am 14.02.21 um 16:42 schrieb Shane @ Kilve
Engineering:<br class="">
<blockquote type="cite" class="">can any one help me
with a bit of code to retrieve ve some data from ecu
can1/6f2 00 4c 00 00 01 97 bc 00 as i cant poll
this ecu it just broadcasts when its active, ive
tried polling it but does not respond, i need to
choose one byte and allocate it to a PID.<br class="">
</blockquote>
<br class="">
I don't know what you mean by "allocating a byte to a
PID", but if you want to process frames received
directly, simply override IncomingFrameCan1() (or
…2/3/4 depending on your bus).<br class="">
<br class="">
Reduced example:<br class="">
<br class="">
void OvmsVehicleXYZ::IncomingFrameCan1(CAN_frame_t
*p_frame)<br class="">
{<br class="">
uint8_t *d = p_frame->data.u8;<br class="">
<br class="">
switch (p_frame->MsgID)<br class="">
{<br class="">
case 0x6f2:<br class="">
// for example, assuming the SOC is in byte 1:<br class="">
StdMetrics.ms_v_bat_soc->SetValue(d[1]);<br class="">
break;<br class="">
}<br class="">
}<br class="">
<br class="">
If you're outside a vehicle context, you can register
your own CAN receiver by creating a queue and calling
MyCan.RegisterListener(). See the vehicle module for
an example.<br class="">
<br class="">
Regards,<br class="">
Michael<br class="">
<br class="">
</blockquote>
<br class="">
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
<br class="">
<pre class="moz-signature" cols="72">--
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26</pre>
</div>
_______________________________________________<br class="">OvmsDev mailing list<br class=""><a href="mailto:OvmsDev@lists.openvehicles.com" class="">OvmsDev@lists.openvehicles.com</a><br class="">http://lists.openvehicles.com/mailman/listinfo/ovmsdev<br class=""></div></blockquote></div><br class=""></div></body></html>