You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notice the <FD>! It is a can fd capable interface that supports fd mode on linux.
During fiddling around, i noticed, that setting to fd mode alone does not work(as seen above). When setting to fd mode, it also wants a dbitrate and bitrate at the same time. With knowing that, lets move back to rcan:
sudo ./target/debug/rcan can0 iface bitrate 500000 fd on
error: unexpected argument 'fd' found
Usage: rcan iface bitrate <bitrate>
No. It does not work. rcan only supports one parameter at a time. And so does the netlink api of socketcan-rs. Looking at CanInterface I do not see a way to set multiple parameters at the same time.
So my questions are:
Am I missing something or am I doing something wrong?
Is there a way using public socketcan-rs api for doing what I need?
If not, how can we best resolve this?
I do see InterfaceCanParams as part of InterfaceDetails as a candidate that would allow setting all fields as needed, but it is not ideal. It has much more fields, even fields, that can only be query'd and there is also no set_details or the like on CanInterface. That needs to be implemented then.
What do you think?
Thanks,
Lars
The text was updated successfully, but these errors were encountered:
I have the same problem with my PCAN-USB FD adapter. This seems to be happening on some devices. I have a working solution here #66, which should fix the issues.
I tried setting a can interface to can fd mode using socketcan-rs and set_ctrlmodes. I have something like this:
It fails with
Error response received from netlink: Operation not supported (os error 95)
.Hmm, lets try official
rcan
program?Ok, at least the provided example/reference program has the same problem. What else can I do?
Is ip-utils also wrong or is it just me?
After fiddling around with different parameter combinations I got this to work:
It answers with silence, but it worked:
Notice the
<FD>
! It is a can fd capable interface that supports fd mode on linux.During fiddling around, i noticed, that setting to fd mode alone does not work(as seen above). When setting to fd mode, it also wants a
dbitrate
andbitrate
at the same time. With knowing that, lets move back torcan
:No. It does not work.
rcan
only supports one parameter at a time. And so does the netlink api of socketcan-rs. Looking at CanInterface I do not see a way to set multiple parameters at the same time.So my questions are:
I do see InterfaceCanParams as part of InterfaceDetails as a candidate that would allow setting all fields as needed, but it is not ideal. It has much more fields, even fields, that can only be query'd and there is also no
set_details
or the like onCanInterface
. That needs to be implemented then.What do you think?
Thanks,
Lars
The text was updated successfully, but these errors were encountered: