Skip to content
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

How to resolve the following error? scan0: ERROR while getting interface flags: No such device #127

Open
Prriyamvradha opened this issue Feb 13, 2019 · 5 comments

Comments

@Prriyamvradha
Copy link

Prriyamvradha commented Feb 13, 2019

I used the following commands in SocketCAN and I used the CANtact toolkit as a serial bus interface.ALL the commands work fine except the last command it throws the following error
scan0: ERROR while getting interface flags: No such device.
OS-Ubuntu 18.04.1

sudo modprobe can

sudo modprobe can_raw

sudo modprobe slcan

slcand -o -s6 -t hw -S 3000000 /dev/ttyACM0 slcan0

ifconfig slcan0 up

@hartkopp
Copy link
Member

Hm slcan0 is the standard name and you are renaming this to slcan0.
Can you test, if you get the same error when using can0 instead of slcan0 in the last two lines?

@Prriyamvradha
Copy link
Author

Hm slcan0 is the standard name and you are renaming this to slcan0.
Can you test, if you get the same error when using can0 instead of slcan0 in the last two lines?

Yes, I get the same error.

@hartkopp
Copy link
Member

I tried it on my own. You need to be root to run slcand.

Please try sudo slcand -o -s6 -t hw -S 3000000 /dev/ttyACM0 slcan0 and sudo ifconfig slcan0 up

@josemic
Copy link
Contributor

josemic commented Jun 30, 2020

@Prriyamvradha:
Is ithis solved? Can we close this issue?

@miimoza
Copy link

miimoza commented Mar 11, 2021

I get the same problem on Ubuntu 18.04 with Dongle usb to can Canable Pro:

sudo slcand -o -c -s1 /dev/ttyACM0 can2
sudo ifconfig can2 up

can2: ERROR while getting interface flags: No such device

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants