<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I’m having problems with IncomingFrameCan when reading from two can buses from the Kia Soul. One of the can buses dies prematurely, and quite fast, with no visible errors. Most of the time it is Can2 that dies, however that is not always the case.<div class="">I tried with an almost empty IncomingFrameCan2, containing just a counter to see how many times it is called, and it varied from 15 to almost 200 before it dies. </div><div class=""><br class=""></div><div class="">This is the code:</div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco;" class="">RegisterCanBus(1, CAN_MODE_ACTIVE, CAN_SPEED_500KBPS);</div></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco;" class="">RegisterCanBus(2, CAN_MODE_ACTIVE, CAN_SPEED_100KBPS);</div></div><div class=""><br class=""></div><div class="">…</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Monaco;" class=""><span style="color: #931a68" class="">void</span> OvmsVehicleKiaSoulEv::IncomingFrameCan2(CAN_frame_t* p_frame)</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Monaco;" class="">{</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Monaco;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>uint8_t *d = p_frame->data.u8;</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Monaco;" class=""><span class="Apple-tab-span" style="white-space:pre"> </span>m_counter->SetValue( m_counter->AsInt()+1 );</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Monaco;" class="">}</div></div><div class=""><br class=""></div><div class="">IncomingFrameCan1 is quite verbose, but should not take too long time to process. But I have a lot of Polls on Can1:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><span style="color: #931a68" class="">static</span> <span style="color: #931a68" class="">const</span> OvmsVehicle::poll_pid_t vehicle_kiasoulev_polls[] =</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco;" class=""> {</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco;" class=""> { 0x7e2, 0x7ea, VEHICLE_POLL_TYPE_OBDIIVEHICLE, 0x02, { 30, 30, 30 } }, <span class="Apple-tab-span" style="white-space:pre"> </span><span style="color: #4e9072" class="">// VIN</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco;" class=""> { 0x7e4, 0x7ec, VEHICLE_POLL_TYPE_OBDIIGROUP, <span class="Apple-tab-span" style="white-space:pre"> </span>0x01, { 30, 10, 10 } }, <span class="Apple-tab-span" style="white-space:pre"> </span><span style="color: #4e9072" class="">// BMC </span><span style="text-decoration: underline ; color: #4e9072" class="">Diag</span><span style="color: #4e9072" class=""> page 01</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco;" class=""> { 0x7e4, 0x7ec, VEHICLE_POLL_TYPE_OBDIIGROUP, <span class="Apple-tab-span" style="white-space:pre"> </span>0x02, { 30, 30, 10 } }, <span class="Apple-tab-span" style="white-space:pre"> </span><span style="color: #4e9072" class="">// BMC </span><span style="text-decoration: underline ; color: #4e9072" class="">Diag</span><span style="color: #4e9072" class=""> page 02</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco;" class=""> { 0x7e4, 0x7ec, VEHICLE_POLL_TYPE_OBDIIGROUP, <span class="Apple-tab-span" style="white-space:pre"> </span>0x03, { 30, 30, 10 } }, <span class="Apple-tab-span" style="white-space:pre"> </span><span style="color: #4e9072" class="">// BMC </span><span style="text-decoration: underline ; color: #4e9072" class="">Diag</span><span style="color: #4e9072" class=""> page 03</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco;" class=""> { 0x7e4, 0x7ec, VEHICLE_POLL_TYPE_OBDIIGROUP, <span class="Apple-tab-span" style="white-space:pre"> </span>0x04, { 30, 30, 10 } }, <span class="Apple-tab-span" style="white-space:pre"> </span><span style="color: #4e9072" class="">// BMC </span><span style="text-decoration: underline ; color: #4e9072" class="">Diag</span><span style="color: #4e9072" class=""> page 04</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco;" class=""> { 0x7e4, 0x7ec, VEHICLE_POLL_TYPE_OBDIIGROUP, <span class="Apple-tab-span" style="white-space:pre"> </span>0x05, { 30, 30, 10 } },<span class="Apple-tab-span" style="white-space:pre"> </span><span style="color: #4e9072" class="">// BMC </span><span style="text-decoration: underline ; color: #4e9072" class="">Diag</span><span style="color: #4e9072" class=""> page 05</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco;" class=""> { 0x794, 0x79c, VEHICLE_POLL_TYPE_OBDIIGROUP, <span class="Apple-tab-span" style="white-space:pre"> </span>0x02, { 30, 30, 10 } }, <span class="Apple-tab-span" style="white-space:pre"> </span><span style="color: #4e9072" class="">// OBC - On board charger</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco;" class=""> { 0x7e2, 0x7ea, VEHICLE_POLL_TYPE_OBDIIGROUP, <span class="Apple-tab-span" style="white-space:pre"> </span>0x00, { 30, 10, 10 } }, <span class="Apple-tab-span" style="white-space:pre"> </span><span style="color: #4e9072" class="">// VMCU Shift-stick</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco;" class=""> { 0x7e2, 0x7ea, VEHICLE_POLL_TYPE_OBDIIGROUP, <span class="Apple-tab-span" style="white-space:pre"> </span>0x02, { 30, 10, 0 } }, <span class="Apple-tab-span" style="white-space:pre"> </span><span style="color: #4e9072" class="">// VMCU Motor </span><span style="text-decoration: underline ; color: #4e9072" class="">temp</span><span style="color: #4e9072" class="">++</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco;" class=""> { 0x7df, 0x7de, VEHICLE_POLL_TYPE_OBDIIGROUP, <span class="Apple-tab-span" style="white-space:pre"> </span>0x06, { 30, 10, 0 } }, <span class="Apple-tab-span" style="white-space:pre"> </span><span style="color: #4e9072" class="">// TMPS</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco;" class=""> { 0x7c5, 0x7cd, VEHICLE_POLL_TYPE_OBDIIGROUP, <span class="Apple-tab-span" style="white-space:pre"> </span>0x01, { 30, 10, 0 } }, <span class="Apple-tab-span" style="white-space:pre"> </span><span style="color: #4e9072" class="">// LDC - Low voltage DC-DC</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco;" class=""> { 0, 0, 0, 0, { 0, 0, 0 } }</div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco;" class=""> };</div></div><div class=""><br class=""></div><div class="">The few times that Can2 is the one that lives on, I can’t see any metrics from Can1.</div><div class=""> </div><div class="">Current source can be seen here: <a href="https://github.com/goev/Open-Vehicle-Monitoring-System-3" class="">https://github.com/goev/Open-Vehicle-Monitoring-System-3</a> in case someone can take a look.</div><div class=""><br class=""></div><div class="">Any pointers to where I can start looking, or tips to what I can try?</div><div class=""><br class=""></div><div class="">Best regards,</div><div class="">Geir</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div></body></html>