-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Solved : Handling RX Data #4
Comments
It looks like you're using ST's HAL: https://www.disca.upv.es/aperles/arm_cortex_m3/llibre/st/STM32F439xx_User_Manual/group__can__exported__functions__group3.html#gaf25698a35af7f78d01b036fcb80d81f3
Try this: static enum Iso14229CANRxStatus mockClientCANRxPoll(uint32_t *arb_id, uint8_t *data, uint8_t *dlc) {
if (HAL_OK == HAL_CAN_GetRxMessage(&hcan1, CAN_RX_FIFO0, &rxHeader, TxData)) {
*arb_id = rxHeader.ExtId;
*dlc = rxHeader.DLC;
memmove(data,TxData,*dlc);
return kCANRxSome;
}
else {
return kCANRxNone;
}
} |
Yes I am using ST's HAL. Thanks for response. But whenever I want to debug code, mockClientCANRxPoll function is not triggered.
Here is my configuration. |
That configuration looks fine. The callback function You can try implementing a sequence like the one here: Lines 111 to 124 in 27cc02e
|
I do not know how it is possible but, In my
Function, I can see the response message correctly, But,
In this function HAL_CAN_GetRxMessage function can not get anything from bus. Because of this, I can not run sequences. |
You can try either:
|
When I disable Interrupts, TX and RX functions triggered. Thanks. |
Hello. Thanks for the library.
I have a question about handling responses. Im currently sending uds data and it looks OK. But, How can I handle the response? I mean,
How can I use the mockClientCANRxPoll function?
I modified mockClientSendCAN with HAL library for sending data. But I can not manage mockClientCANRxPoll.
Sorry for my bad English. Have a good day.
Edit1:
I tried something like this but It does not work
The text was updated successfully, but these errors were encountered: