Closed zorce closed 2 years ago
This is solved for me now.. maybe a clarification in the example glue. My implemented isotp_user_send_can returned CAN_OK from my low level driver, = 1 and when received in isotp as return code for sending the first frame it didnt see it as OK. So after checking and return ISOTP_RET_OK back it worked fine! Maybe just add a note on that
/* required, this must send a single CAN message with the given arbitration
* ID (i.e. the CAN message ID) and data. The size will never be more than 8
* bytes. **Should return ISOTP_RET_OK if success***/
int isotp_user_send_can(const uint32_t arbitration_id,
const uint8_t* data, const uint8_t size) {
// ...
}
Good idea, add now.
Hi, Got the multi-frame receive to work just fine. but have some trouble with the multi-frame send.. Trying to send back a reply when I received a multi-frame message with a multi-frame response. The below handle_message parse the received payload and respond with a pointer to a 8 byte buffer. I CAN monitor the signals go out on CAN but never handles the flow control frame.
Send first frame 10 00 62 04 08 0A Receive Flow control 30 08 00 Then nothing.
Also running the isotp_poll separately to the below function call