Page 2 of 3
Re: PCAN-miniPCIe FD - IMX6 - kernel 4.9.124
Posted: Tue 24. Sep 2019, 12:25
by M.Maidhof
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
Re: PCAN-miniPCIe FD - IMX6 - kernel 4.9.124
Posted: Wed 25. Sep 2019, 10:12
by pguillen
Hi Michael.
I have tested:
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
Re: PCAN-miniPCIe FD - IMX6 - kernel 4.9.124
Posted: Wed 25. Sep 2019, 10:33
by M.Maidhof
Hi,
looks ok, the write counters increasing.
regards
Michael.
Re: PCAN-miniPCIe FD - IMX6 - kernel 4.9.124
Posted: Wed 25. Sep 2019, 11:03
by pguillen
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.
Re: PCAN-miniPCIe FD - IMX6 - kernel 4.9.124
Posted: Wed 25. Sep 2019, 15:36
by M.Maidhof
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
Re: PCAN-miniPCIe FD - IMX6 - kernel 4.9.124
Posted: Wed 25. Sep 2019, 15:41
by pguillen
Hi.
No, it is not working on IMX6, only it is working on X86 paltform.
Best regards.
Re: PCAN-miniPCIe FD - IMX6 - kernel 4.9.124
Posted: Wed 25. Sep 2019, 16:26
by M.Maidhof
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
Re: PCAN-miniPCIe FD - IMX6 - kernel 4.9.124
Posted: Wed 25. Sep 2019, 16:57
by pguillen
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
Re: PCAN-miniPCIe FD - IMX6 - kernel 4.9.124
Posted: Wed 25. Sep 2019, 17:07
by S.Grosjean
Hello,
Please, send us again the output of "cat /proc/pcan" (after insmod pcan.ko fdusemsi=1).
Thanks,
Re: PCAN-miniPCIe FD - IMX6 - kernel 4.9.124
Posted: Wed 25. Sep 2019, 17:47
by pguillen
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