-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
drivers: can: shell: sending CAN FD frames with non-even DLC <=> nbytes relationship sends garbage at frame data end #73309
Comments
henrikbrixandersen
added
bug
The issue is a bug, or the PR is fixing a bug
area: CAN
labels
May 26, 2024
henrikbrixandersen
added a commit
to henrikbrixandersen/zephyr
that referenced
this issue
May 26, 2024
Zerorise the CAN frame before filling in data to ensure all data bytes are initialized. Fixes: zephyrproject-rtos#73309 Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
henrikbrixandersen
added a commit
to henrikbrixandersen/zephyr
that referenced
this issue
May 26, 2024
Print the raw DLC when enqueuing a CAN frame for sending, not the corresponding number of bytes. Fixes: zephyrproject-rtos#73309 Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
henrikbrixandersen
added a commit
that referenced
this issue
May 27, 2024
Zerorise the CAN frame before filling in data to ensure all data bytes are initialized. Fixes: #73309 Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
henrikbrixandersen
added a commit
that referenced
this issue
May 27, 2024
Print the raw DLC when enqueuing a CAN frame for sending, not the corresponding number of bytes. Fixes: #73309 Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
henrikbrixandersen
added a commit
to vestas-wind-systems/zephyr
that referenced
this issue
May 27, 2024
Zerorise the CAN frame before filling in data to ensure all data bytes are initialized. Fixes: zephyrproject-rtos#73309 Signed-off-by: Henrik Brix Andersen <hebad@vestas.com> (cherry picked from commit fb4f67b)
henrikbrixandersen
added a commit
to vestas-wind-systems/zephyr
that referenced
this issue
May 27, 2024
Print the raw DLC when enqueuing a CAN frame for sending, not the corresponding number of bytes. Fixes: zephyrproject-rtos#73309 Signed-off-by: Henrik Brix Andersen <hebad@vestas.com> (cherry picked from commit 6a070ee)
henrikbrixandersen
added a commit
to vestas-wind-systems/zephyr
that referenced
this issue
May 27, 2024
Zerorise the CAN frame before filling in data to ensure all data bytes are initialized. Fixes: zephyrproject-rtos#73309 Signed-off-by: Henrik Brix Andersen <hebad@vestas.com> (cherry picked from commit fb4f67b)
henrikbrixandersen
added a commit
to vestas-wind-systems/zephyr
that referenced
this issue
May 27, 2024
Print the raw DLC when enqueuing a CAN frame for sending, not the corresponding number of bytes. Fixes: zephyrproject-rtos#73309 Signed-off-by: Henrik Brix Andersen <hebad@vestas.com> (cherry picked from commit 6a070ee)
crazyskady
pushed a commit
to crazyskady/zephyr
that referenced
this issue
Jun 6, 2024
Zerorise the CAN frame before filling in data to ensure all data bytes are initialized. Fixes: zephyrproject-rtos#73309 Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
crazyskady
pushed a commit
to crazyskady/zephyr
that referenced
this issue
Jun 6, 2024
Print the raw DLC when enqueuing a CAN frame for sending, not the corresponding number of bytes. Fixes: zephyrproject-rtos#73309 Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
karstenkoenig
pushed a commit
to karstenkoenig/zephyr
that referenced
this issue
Jun 19, 2024
…ding Zerorise the CAN frame before filling in data to ensure all data bytes are initialized. Fixes: zephyrproject-rtos#73309 Signed-off-by: Henrik Brix Andersen <hebad@vestas.com> (cherry picked from commit fb4f67b)
karstenkoenig
pushed a commit
to karstenkoenig/zephyr
that referenced
this issue
Jun 19, 2024
… not bytes Print the raw DLC when enqueuing a CAN frame for sending, not the corresponding number of bytes. Fixes: zephyrproject-rtos#73309 Signed-off-by: Henrik Brix Andersen <hebad@vestas.com> (cherry picked from commit 6a070ee)
masz-nordic
pushed a commit
to masz-nordic/zephyr
that referenced
this issue
Jul 12, 2024
…ding Zerorise the CAN frame before filling in data to ensure all data bytes are initialized. Fixes: zephyrproject-rtos#73309 Signed-off-by: Henrik Brix Andersen <hebad@vestas.com> (cherry picked from commit fb4f67b) (cherry picked from commit 921137f)
masz-nordic
pushed a commit
to masz-nordic/zephyr
that referenced
this issue
Jul 12, 2024
… not bytes Print the raw DLC when enqueuing a CAN frame for sending, not the corresponding number of bytes. Fixes: zephyrproject-rtos#73309 Signed-off-by: Henrik Brix Andersen <hebad@vestas.com> (cherry picked from commit 6a070ee) (cherry picked from commit 72dede5)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Sending CAN FD frames with non-even DLC <=> nbytes relationship using the Zephyr CAN shell sends garbage at frame data end.
To Reproduce
Steps to reproduce the behavior:
can send can0 -f 040 00 11 22 33 44 55 66 77 88 99
)9
meaning12
bytes to be transferred. This is due to CAN FD not supporting arbitrary frame data lengths.DLC
(e.g.enqueuing CAN frame #3 with standard (11-bit) CAN ID 0x040, RTR 0, CAN FD 1, BRS 0, DLC 12
)Expected behavior
Impact
Annoyance, confusion.
Logs and console output
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: