Not able to view can0 interface

This forum covers PCAN-Linux and Linux development issues concerning our products
Post Reply
santhosh
Posts: 1
Joined: Fri 20. Sep 2019, 14:51

Not able to view can0 interface

Post by santhosh » Thu 10. Oct 2019, 08:00

Hello,

Not able to view 'can0' interface in ubuntu 18.04.
uname -r
4.15.0-65-generic
I have loaded driver
sudo modprobe peak_usb

Code: Select all

//dmesg result
 136.098444] CAN device driver interface
[  136.102740] usbcore: registered new interface driver peak_usb

Code: Select all

//lsmod result
lsmod 
Module                  Size  Used by
peak_usb               40960  0
can_dev                28672  1 peak_usb
nls_utf8               16384  1
isofs                  45056  1
vboxvideo              36864  0
snd_intel8x0           40960  6
snd_ac97_codec        131072  1 snd_intel8x0
ac97_bus               16384  1 snd_ac97_codec
snd_pcm                98304  3 snd_intel8x0,snd_ac97_codec
crct10dif_pclmul       16384  0
crc32_pclmul           16384  0
ghash_clmulni_intel    16384  0
snd_seq_midi           16384  0
snd_seq_midi_event     16384  1 snd_seq_midi
snd_rawmidi            32768  1 snd_seq_midi
pcbc                   16384  0
joydev                 24576  0
aesni_intel           188416  0
aes_x86_64             20480  1 aesni_intel
crypto_simd            16384  1 aesni_intel
glue_helper            16384  1 aesni_intel
cryptd                 24576  3 crypto_simd,ghash_clmulni_intel,aesni_intel
snd_seq                65536  2 snd_seq_midi,snd_seq_midi_event
snd_seq_device         16384  3 snd_seq,snd_seq_midi,snd_rawmidi
snd_timer              32768  3 snd_seq,snd_pcm
intel_rapl_perf        16384  0
snd                    81920  17 snd_seq,snd_seq_device,snd_intel8x0,snd_timer,snd_ac97_codec,snd_pcm,snd_rawmidi
input_leds             16384  0
vboxguest             335872  5
soundcore              16384  1 snd
video                  45056  0
mac_hid                16384  0
serio_raw              16384  0
sch_fq_codel           20480  3
binfmt_misc            20480  1
vmwgfx                274432  4
ttm                   106496  2 vmwgfx,vboxvideo
drm_kms_helper        172032  2 vmwgfx,vboxvideo
drm                   401408  8 vmwgfx,drm_kms_helper,vboxvideo,ttm
fb_sys_fops            16384  1 drm_kms_helper
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
parport_pc             32768  0
ppdev                  20480  0
lp                     20480  0
parport                49152  3 parport_pc,lp,ppdev
ip_tables              28672  0
x_tables               40960  1 ip_tables
autofs4                40960  2
hid_generic            16384  0
usbhid                 53248  0
hid                   110592  2 usbhid,hid_generic
psmouse               151552  0
ahci                   40960  1
i2c_piix4              24576  0
e1000                 143360  0
libahci                32768  1 ahci
pata_acpi              16384  0
santhosh@santhosh-VirtualBox:~$
I plug-in peak-usd router all LED's showing green. Could you please help me on how to bring can0 interface

Thank you.

When I try to set bitrate for 'can0'
sudo ip link set can0 up type can bitrate 500000
Cannot find device "can0"
santhosh@santhosh-VirtualBox:~$ cat /sys/class/net/
enp0s3/ enp0s8/ lo/
Last edited by M.Gerber on Mon 14. Oct 2019, 18:15, edited 1 time in total.
Reason: Inserted [code] tags for improved readability

M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: Not able to view can0 interface

Post by M.Maidhof » Thu 10. Oct 2019, 11:05

Hi,

a PCAN-Router is not a PC CAN device. You need a PC CAN interface to get can0. Please provide serialnumber of your PCAN hardware to see what you are using, and how you connect it to your VM.

regards

Michael

Post Reply