<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Can anybody help me understanding can polling?<div><br></div><div>I use the following code in 3.0.12 and older version.</div><div><br></div><div>i send every 60s when the car is on a following code:</div><div><br></div><div><div>CAN_frame_t frame;</div><div> memset(&frame,0,sizeof(frame));</div><div> frame.origin = m_can1;</div><div> frame.FIR.U = 0;</div><div> frame.FIR.B.DLC = 3;</div><div> frame.FIR.B.FF = CAN_frame_std;</div><div> frame.MsgID = 0x761;</div><div> frame.data.u8[0] = 0x02;</div><div> frame.data.u8[1] = 0x21;</div><div> frame.data.u8[2] = 0x01;</div><div> m_can1->Write(&frame);</div><div><br></div><div>At IncomingFrameCan1 i catch the response message at 0x762 and send a flow control message (this values from can logging during genuine diagnostic use on car)</div><div><br></div><div><div>if (d[0] == 16)</div><div> {</div><div> // Request CAC...</div><div> CAN_frame_t frame;</div><div> memset(&frame,0,sizeof(frame));</div><div> frame.origin = m_can1;</div><div> frame.FIR.U = 0;</div><div> frame.FIR.B.DLC = 3;</div><div> frame.FIR.B.FF = CAN_frame_std;</div><div> frame.MsgID = 0x761;</div><div> frame.data.u8[0] = 0x30;</div><div> frame.data.u8[1] = 0x08;</div><div> frame.data.u8[2] = 0x0A;</div><div> m_can1->Write(&frame);</div></div><div>}</div><div><br></div><div>And with this is get some data (CAC)</div><div><br></div><div>But if i use polling with the following values</div><div><br></div><div><div>static const OvmsVehicle::poll_pid_t vehicle_mitsubishi_polls[] =</div><div> {</div><div> { 0x761, 0x762, VEHICLE_POLL_TYPE_OBDIIGROUP, 0x02, <span style="white-space:pre-wrap"> </span>{ 0, 10, 10 } }, <span style="white-space:pre-wrap"> </span>// cac</div><div> { 0, 0, 0, 0, { 0, 0, 0 } }</div><div> };</div></div><div><br></div><div>i get the following in void OvmsVehicleMitsubishi::IncomingPollReply....</div><div><pre id="m_3976426210844643916gmail-output" style="box-sizing:border-box;overflow:auto;font-family:Monaco,Menlo,Consolas,"QuickType Mono","Lucida Console","Roboto Mono","Ubuntu Mono","DejaVu Sans Mono","Droid Sans Mono",monospace;font-size:13px;padding:9.5px;margin-top:0px;margin-bottom:10px;line-height:1.42857143;color:rgb(0,34,0);word-break:break-all;word-wrap:break-word;background-color:rgb(245,245,245);border:1px solid rgb(204,204,204);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;height:723px"><div style="box-sizing:border-box;font-size:11.3100004196167px;color:green">I (178194) v-mitsubishi: 762 TYPE:21 PID:02 7 01 7e 01 7e 01 7f 01 00
</div><div style="box-sizing:border-box;font-size:11.3100004196167px;color:green">I (178224) v-mitsubishi: 762 TYPE:21 PID:02 7 7e 01 7e 01 7e 01 7e 00
</div><div style="box-sizing:border-box;font-size:11.3100004196167px;color:green">I (178284) v-mitsubishi: 762 TYPE:21 PID:02 7 01 7e 01 7e 01 7e 01 00
</div><div style="box-sizing:border-box;font-size:11.3100004196167px;color:green">I (178284) v-mitsubishi: 762 TYPE:21 PID:02 7 7e 01 7e 01 7e 01 7e 00
</div><div style="box-sizing:border-box;font-size:11.3100004196167px;color:green">I (178314) v-mitsubishi: 762 TYPE:21 PID:02 7 01 7e 01 7e 01 7e 01 00
</div><div style="box-sizing:border-box;font-size:11.3100004196167px;color:green">I (178344) v-mitsubishi: 762 TYPE:21 PID:02 7 7e 01 7e 01 7e 01 7e 00
</div><div style="box-sizing:border-box;font-size:11.3100004196167px;color:green">I (178374) v-mitsubishi: 762 TYPE:21 PID:02 7 01 7e 01 7e 01 7e 01 00
</div><div style="box-sizing:border-box;font-size:11.3100004196167px;color:green">I (178404) v-mitsubishi: 762 TYPE:21 PID:02 7 7e 01 7e 01 7e 01 7e 00
</div><div style="box-sizing:border-box;font-size:11.3100004196167px;color:green">I (178434) v-mitsubishi: 762 TYPE:21 PID:02 7 01 7e 01 7e 01 7e 01 00
</div><div style="box-sizing:border-box;font-size:11.3100004196167px;color:green">I (178464) v-mitsubishi: 762 TYPE:21 PID:02 7 7e 01 7e 01 7e 01 7e 00
</div><div style="box-sizing:border-box;font-size:11.3100004196167px;color:green">I (178494) v-mitsubishi: 762 TYPE:21 PID:02 7 01 7e 01 7e 00 00 00 00</div></pre></div><div>i run a can logging with this session and i only see the same data (incomping poll reply) only the d[0] is changed. </div><div><br></div><div>What do i do wrong?</div><div dir="ltr"><br></div></div></div></div></div></div></div></div></div>