Thank you, tonton81! Yes, I am storing the callback value to a array in order to convert CAN values to other parameters for display.
I am not good at using millis() yet, so your example is very helpful.
So far, if ECU responds, my program can pick the response message using ISOTP callback properly. But at the moment I have difficulty to handle, for example disconnect the CAN line or, using wrong CANID (request or...
Since I have a couple of Teensy3.6, I tried the ISOTP plugin to Teensy3.6, too. ISOTP plugin works without any problem with a small CAN setting change.
Before doing a vehicle test, I started using ISOTP Plugin with Vehicle SPY ISO15765-2 multi frame function.
With modifying a short codes, SID$09 InfoType$02 VIN Read seems to be working properly. It is very nice.
I...
Instead of using MailBox, I started using FIFO and it seems to be working.
Therefore I started to handle with multi-frame messages. Since my vehicle does not support VIN (Vehicle Identification Number), Calibration ID...
Thank you, tonton81,
Since I could not do a good job with FIFO, I went back to mail box stuff anyway.
So far I can send and receive OBD CAN message with extended 29 bit CAN communication.
Nevertheless, my goal is not...
Thank you tonton81,
I am so stupid, I could not see the whole codes but stuck around CAN setting.
must correct basic logic coding part first before asking question.....
Meanwhile I am trying to figure out the FIFO and mailboxes behavior, but there is still a lot of things to understand.
Most of the reason why the software does not work properly may come from setup().
Current...
Things are going back and forth. Since engine coolant temperature changes slow, I used PID$0C engine speed.
I let Teensy4.0 transmit the SID$01 PID$0C request messages every 200ms but can receive only sometimes as you...
Thank you tonton81.
Instead of using setMBFilter(MB7, 0x18DAF111, EXT), but I try to use setFIFOFilter(0, 0x18DAF111,EXT).
Things are going forward and nicer.
Thank you tonton81!
anyway, with the following source code, Teensy4.0 can talk with my Honda FIT 2012 model year.
I have to enable FIFO and change MB1 to MB7. I did not check MB4 through MB7.
As you can see the...
My vehicle does not support UDS. So, UDS part of the source code cannot be tested and therefore I'm not sure whether it works or not.
Anyway I will debug ISO-15765-4 part (mode$01 or Service$01 CAN) with extended...
Thank you msadie,
I have updated the FlexCAN_T4 library with the latest one, and removed events() from the code.
But the symptom is the same.
I have updated the source code with the latest one.
The exact can port...
Thank you, Rezo.
My source code handling positive response was wrong.
I corrected positive response as you mentioned. 0x41 for mode$01 (service$01), and 0x62 for mode22.
However any response message from ECU...
I'm trying to talk with Honda fit via OBD protocol using Teensy4.0 + MCP2562.
I can talk with the vehicles which is using standard CAN such as 7E0, 7E8 type.
But I cannot send request messages and receive response...