<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
OK, and as your log output was from your vehicle module, please also
do…<br>
<br>
level verbose<br>
can can2 trace on<br>
<br>
…before activating the bus.<br>
<br>
Thanks,<br>
Michael<br>
<br>
<br>
<div class="moz-cite-prefix">Am 30.12.2017 um 18:22 schrieb Geir
Øyvind Vælidalo:<br>
</div>
<blockquote type="cite"
cite="mid:9AC60198-FE36-460C-A708-A0602F5DDABD@validalo.net">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div style="margin: 0px; font-stretch: normal; line-height:
normal; font-family: Menlo; background-color: rgb(255, 255,
255);" class=""><span style="font-variant-ligatures:
no-common-ligatures" class="">Can status gave this:</span></div>
<div style="margin: 0px; font-stretch: normal; line-height:
normal; font-family: Menlo; background-color: rgb(255, 255,
255);" class=""><span style="font-variant-ligatures:
no-common-ligatures" class=""><br class="">
</span></div>
<div style="margin: 0px; font-stretch: normal; line-height:
normal; font-family: Menlo; background-color: rgb(255, 255,
255);" class="">
<div style="margin: 0px; font-stretch: normal; line-height:
normal;" class=""><span style="font-variant-ligatures:
no-common-ligatures" class="">CAN: can2</span></div>
<div style="margin: 0px; font-stretch: normal; line-height:
normal;" class=""><span style="font-variant-ligatures:
no-common-ligatures" class="">Mode: Active</span></div>
<div style="margin: 0px; font-stretch: normal; line-height:
normal;" class=""><span style="font-variant-ligatures:
no-common-ligatures" class="">Speed: 100000</span></div>
<div style="margin: 0px; font-stretch: normal; line-height:
normal;" class=""><span style="font-variant-ligatures:
no-common-ligatures" class="">Rx pkt:
104</span></div>
<div style="margin: 0px; font-stretch: normal; line-height:
normal;" class=""><span style="font-variant-ligatures:
no-common-ligatures" class="">Rx err:
0</span></div>
<div style="margin: 0px; font-stretch: normal; line-height:
normal;" class=""><span style="font-variant-ligatures:
no-common-ligatures" class="">Tx pkt:
0</span></div>
<div style="margin: 0px; font-stretch: normal; line-height:
normal;" class=""><span style="font-variant-ligatures:
no-common-ligatures" class="">Tx err:
0</span></div>
<div style="margin: 0px; font-stretch: normal; line-height:
normal;" class=""><span style="font-variant-ligatures:
no-common-ligatures" class="">Err flags: 0x40</span></div>
<div class=""><span style="font-variant-ligatures:
no-common-ligatures" class=""><br class="">
</span></div>
</div>
<div style=""><br class="">
<blockquote type="cite" class="">
<div class="">30. des. 2017 kl. 18:13 skrev Geir Øyvind
Vælidalo <<a href="mailto:geir@validalo.net" class=""
moz-do-not-send="true">geir@validalo.net</a>>:</div>
<br class="Apple-interchange-newline">
<div class="">
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space;
line-break: after-white-space;" class="">Fantastic! I’m in
my car right now, so I’ll test it right now 🙂
<div class=""><br class="">
</div>
<div class="">Geir<br class="">
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">30. des. 2017 kl. 17:59 skrev Michael
Balzer <<a href="mailto:dexter@expeedo.de"
class="" moz-do-not-send="true">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="">
I've had a look into the mcp2515 driver and
found some possible causes for your issue. Main
possible cause would be there was no check or
clearing of RX buffer overflows.<br class="">
<br class="">
There also was a chance the driver would read
invalid frames, as the RX interrupts got cleared
before the buffer content was fetched.<br
class="">
<br class="">
I think I've solved those issues, and I also
added retrieving the tx/rx error counts and
flags, so "can status" can actually show you
errors that occurred.<br class="">
<br class="">
I've got no simple means to check if my changes
work and if they are more stable, I don't have a
cable for can2/3.<br class="">
<br class="">
Can you please pull & test?<br class="">
<br class="">
Regards,<br class="">
Michael<br class="">
<br class="">
<br class="">
<div class="moz-cite-prefix">Am 30.12.2017 um
10:19 schrieb Geir Øyvind Vælidalo:<br
class="">
</div>
<blockquote type="cite"
cite="mid:1AA896EE-296C-4862-8598-659605729CE1@validalo.net"
class="">
<meta http-equiv="Content-Type"
content="text/html; charset=utf-8" class="">
<font class="" face="Courier New">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 class=""><br class="">
<blockquote type="cite" class="">
<div class="">29. des. 2017 kl. 22:23
skrev Michael Balzer <<a
href="mailto:dexter@expeedo.de"
class="" moz-do-not-send="true">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 class="" wrap="">_______________________________________________
OvmsDev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.teslaclub.hk" moz-do-not-send="true">OvmsDev@lists.teslaclub.hk</a>
<a class="moz-txt-link-freetext" href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev" moz-do-not-send="true">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="" moz-do-not-send="true">OvmsDev@lists.teslaclub.hk</a><br
class="">
<a class="moz-txt-link-freetext"
href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev"
moz-do-not-send="true">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a><br
class="">
</div>
</blockquote>
</div>
<br class="">
</div>
<br class="">
<fieldset class="mimeAttachmentHeader"></fieldset>
<br class="">
<pre class="" wrap="">_______________________________________________
OvmsDev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.teslaclub.hk" moz-do-not-send="true">OvmsDev@lists.teslaclub.hk</a>
<a class="moz-txt-link-freetext" href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev" moz-do-not-send="true">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="" moz-do-not-send="true">OvmsDev@lists.teslaclub.hk</a><br
class="">
<a
href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev"
class="" moz-do-not-send="true">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a><br
class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
_______________________________________________<br class="">
OvmsDev mailing list<br class="">
<a href="mailto:OvmsDev@lists.teslaclub.hk" class=""
moz-do-not-send="true">OvmsDev@lists.teslaclub.hk</a><br
class="">
<a class="moz-txt-link-freetext" href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a><br
class="">
</div>
</blockquote>
</div>
<br class="">
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
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>
<pre class="moz-signature" cols="160">--
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
</pre>
</body>
</html>