<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=""><font face="Courier New" class="">can can2 status</font> gave me the same result. Once it stopped after receiving just 4 frames on Can2. During the few restarts I did this morning, 251 was the most I got before it stopped. <div class="">Can1 recieved 50000 frames in no time and kept on going. It seems Can2 is the problem. Don’t know what happened yesterday when can1 stopped… </div><div class=""><br class=""></div><div class="">Geir <br class=""><div><br class=""><blockquote type="cite" class=""><div class="">29. des. 2017 kl. 22:23 skrev Michael Balzer <<a href="mailto:dexter@expeedo.de" class="">dexter@expeedo.de</a>>:</div><br class="Apple-interchange-newline"><div class="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">
<div text="#000000" bgcolor="#FFFFFF" class="">
Geir,<br class="">
<br class="">
can you check the output of "can … status" before and after death?
Do the rx/tx counters still grow after death?<br class="">
<br class="">
Regards,<br class="">
Michael<br class="">
<br class="">
<br class="">
<div class="moz-cite-prefix">Am 29.12.2017 um 22:14 schrieb Geir
Øyvind Vælidalo:<br class="">
</div>
<blockquote type="cite" cite="mid:F5276F08-CBF3-453B-AEED-C765CDAA9B6F@validalo.net" 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="" moz-do-not-send="true">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>
<br class="">
<fieldset class="mimeAttachmentHeader"></fieldset>
<br class="">
<pre wrap="" class="">_______________________________________________
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 class="">
<pre class="moz-signature" cols="160">--
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.teslaclub.hk" class="">OvmsDev@lists.teslaclub.hk</a><br class="">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev<br class=""></div></blockquote></div><br class=""></div></body></html>