-
Notifications
You must be signed in to change notification settings - Fork 85
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
Server mode receiving message generates bug (msg like "0x7DF 3E 80 ") #40
Comments
Hi matlam1989, thanks. There aren't enough details in your issue for me to understand what the problem is. Can you please show an example program, OR describe in more detail what you expected to happen and what actually happened? |
Please post a complete example code. Thank you. |
I use iar for arm 9.2,and define ISOTP_BYTE_ORDER_LITTLE_ENDIAN in the ide. |
more detail: void init()
} void loop() |
There is not enough information for me see where the problem is. Can you show the implementation of |
Please share a Minimum reproducible example. |
I use C++for development, and there are very few changes to the library files. IDE uses macro definitions such as:UDS_TP_ISOTP_C,ISOTP_BYTE_ORDER_LITTLE_ENDIAN. #include "elog.h" namespace udsCfg{ extern "C" uint32_t millis(); int send_can(const uint32_t arb_id, const uint8_t *data, const uint8_t size, void *ud); UDSServer_t srv; const UDSISOTpCConfig_t tp_cfg = int send_can(const uint32_t arb_id, const uint8_t *data, const uint8_t size, void *ud) //in other task deal canbus msg
} uint8_t fn(UDSServer_t *srv, UDSServerEvent_t ev, const void *arg)
} void init()
} void loop() } |
Is it possible to write a failing unit test that shows this bug? This would constitute a Minimum reproducible example. For example, something like this: https://github.com/driftregion/iso14229/blob/main/test/test_server_0x10_diag_sess_ctrl_functional_request.c When you send me only code snippets without a CAN log I cannot tell exactly where the issue is. I can only guess. This is not a good use of time. |
I get it , and test the program on my computer after work. Thanks |
1 similar comment
I get it , and test the program on my computer after work. Thanks |
In server mode , mcu just receive "0x7DF 3E 80 ",and debug msg always got like:
\tp\isotp_c.c 124)ack recv
\tp\isotp_c.c 31)The link is full. Copying 2 bytes
\tp\isotp_c.c 69)just got 2 bytes on func link
\server.c 901)len: 0
Even,I unplug the CAN analyzer,and The above debugging information has not stopped.
The text was updated successfully, but these errors were encountered: