PCAN-miniPCIe FD - IMX6 - kernel 4.9.124

This forum covers PCAN-Linux and Linux development issues concerning our products
M.Maidhof
Support
Support
Posts: 1753
Joined: Wed 22. Sep 2010, 14:00

Re: PCAN-miniPCIe FD - IMX6 - kernel 4.9.124

Post by M.Maidhof » Tue 24. Sep 2019, 12:25

Hi,

your cansend command looks ok. You can try to use "cangen can0" to generate random CAN frames on can0.

Please post the output of cat /proc/pcan again, to see if the write counter increases during your tests.

regards

Michael

pguillen
Posts: 11
Joined: Tue 17. Sep 2019, 12:21

Re: PCAN-miniPCIe FD - IMX6 - kernel 4.9.124

Post by pguillen » Wed 25. Sep 2019, 10:12

Hi Michael.

I have tested:

Code: Select all

cangen can0
cangen can1
cat /proc/pcan :

Code: Select all

*------------- PEAK-System CAN interfaces (http://www.peak-system.com) -------------
*------------- Release_20190802_n (8.9.0) Sep 25 2019 07:54:00 --------------
*------------------------- [mod] [pci] [pec] [net] --------------------------
*--------------------- 4 interfaces @ major 243 found -----------------------
*n -type- -ndev- --base-- irq --btr- --read-- --write- --irqs-- -errors- status
 0  pcifd   can0 eb061000 333 0x041c 00000000 00000322 00000000 00000000 0x0000
 1  pcifd   can1 eb062000 333 0x041c 00000000 0000025c 00000000 00000000 0x0000
 2  pcifd   can2 eb063000 333 0x001c 00000000 00000000 00000000 00000000 0x0000
 3  pcifd   can3 eb064000 333 0x001c 00000000 00000000 00000000 00000000 0x0000
Thank you.
Best regards

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

Re: PCAN-miniPCIe FD - IMX6 - kernel 4.9.124

Post by M.Maidhof » Wed 25. Sep 2019, 10:33

Hi,

looks ok, the write counters increasing.

regards

Michael.

pguillen
Posts: 11
Joined: Tue 17. Sep 2019, 12:21

Re: PCAN-miniPCIe FD - IMX6 - kernel 4.9.124

Post by pguillen » Wed 25. Sep 2019, 11:03

Hi
For another test, I have unsoldered fields that i said before.
This consists on testing the same driver on X86 platform with ubuntu-16.04.5-desktop-i386.

In this case, the driver is working. i can see the signals in the osciloscope and connect the ports to comunicate them.
The procedure to test is:
1. rmmod peak_pciefd
2. insmod pcan.ko
3. ip link set can0 type can bitrate 100000 #(I tested this lower speed than 1000000)
4. ip link set can0 up
5. cansend can0 01a#12345678

I have done the same test in IMX6 platform, but i can see the signals when I run cansend.

NOTE: The driver is compiled "make pci_only"

Thank you.
Best regards.

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

Re: PCAN-miniPCIe FD - IMX6 - kernel 4.9.124

Post by M.Maidhof » Wed 25. Sep 2019, 15:36

Hi,

so it is working now on your IMX6?
I have done the same test in IMX6 platform, but i can see the signals when I run cansend.
regards

Michael

pguillen
Posts: 11
Joined: Tue 17. Sep 2019, 12:21

Re: PCAN-miniPCIe FD - IMX6 - kernel 4.9.124

Post by pguillen » Wed 25. Sep 2019, 15:41

Hi.

No, it is not working on IMX6, only it is working on X86 paltform.

Best regards.

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

Re: PCAN-miniPCIe FD - IMX6 - kernel 4.9.124

Post by M.Maidhof » Wed 25. Sep 2019, 16:26

Hi,

in your last post you said it was working, maybe you miss the "not" in your statement (see the quote in my post)

please try to insmod the pcan driver with MSI on:

# insmod pcan.ko fdusemsi=1

Then retry your test please.

regards

Michael

pguillen
Posts: 11
Joined: Tue 17. Sep 2019, 12:21

Re: PCAN-miniPCIe FD - IMX6 - kernel 4.9.124

Post by pguillen » Wed 25. Sep 2019, 16:57

Hi.

Sorry Michael, it was my "not" mistake.

I have tested insmod pcan.ko fdusemsi=1, but it is the same, I can't see the signals.

Thank you.
Best regards
Last edited by pguillen on Wed 25. Sep 2019, 17:07, edited 1 time in total.

User avatar
S.Grosjean
Software Development
Software Development
Posts: 357
Joined: Wed 4. Jul 2012, 17:02

Re: PCAN-miniPCIe FD - IMX6 - kernel 4.9.124

Post by S.Grosjean » Wed 25. Sep 2019, 17:07

Hello,

Please, send us again the output of "cat /proc/pcan" (after insmod pcan.ko fdusemsi=1).

Thanks,
— Stéphane

pguillen
Posts: 11
Joined: Tue 17. Sep 2019, 12:21

Re: PCAN-miniPCIe FD - IMX6 - kernel 4.9.124

Post by pguillen » Wed 25. Sep 2019, 17:47

Hi Michael

I have tried again the same test with insmod pcan.ko fdusemsi=1. I don't know what was happenig in the first test.
Now it is working !!! I am going to test all ports and combination of them.

Please, could you explain me the parameter and what it was happening ?


This is the output of : cat /proc/pcan

Code: Select all

*------------- PEAK-System CAN interfaces (www.peak-system.com) -------------
*------------- Release_20190802_n (8.9.0) Sep 25 2019 14:54:24 --------------
*------------------------- [mod] [pci] [pec] [net] --------------------------
*--------------------- 4 interfaces @ major 243 found -----------------------
*n -type- -ndev- --base-- irq --btr- --read-- --write- --irqs-- -errors- status
 0  pcifd   can0 eb041000 305 0x041c 00000002 00000002 0006b102 00105335 0x000c
 1  pcifd   can1 eb042000 306 0x041c 00000002 00000002 00059f59 000b7040 0x000c
 2  pcifd   can2 eb043000 307 0x041c 00000002 00000002 00044462 0008f038 0x000c
 3  pcifd   can3 eb044000 308 0x041c 00000000 00000002 000687b3 0020a680 0x0000
Thank you so much.
Best regards.

Paul

Post Reply