* [Xenomai] Compatibility of PCAN PCI Express Four Channel @ 2015-02-08 1:23 Zhe Su 2015-02-08 17:42 ` Gilles Chanteperdrix 0 siblings, 1 reply; 11+ messages in thread From: Zhe Su @ 2015-02-08 1:23 UTC (permalink / raw) To: xenomai Dear all, I am running xenomai 2.6.3 on Ubuntu 12.04, and I would like use a four-channel PCI express CAN board manufactured by PEAK system. The exact model name and number are PCAN-PCI Express Four Channel galvanic isolated IPEH-003040. I am wondering if xenomai 2.6.3 rtcan driver will be compatible with this board? Your advice and help will be highly appreciated! -- Zhe Su (Harry Su), Ph.D. student Research Assistant Medical Device Development Facility Department of Biomedical Engineering University of Southern California ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Xenomai] Compatibility of PCAN PCI Express Four Channel 2015-02-08 1:23 [Xenomai] Compatibility of PCAN PCI Express Four Channel Zhe Su @ 2015-02-08 17:42 ` Gilles Chanteperdrix 2015-02-12 9:29 ` Konrad Banachowicz 2015-02-20 0:05 ` Zhe Su 0 siblings, 2 replies; 11+ messages in thread From: Gilles Chanteperdrix @ 2015-02-08 17:42 UTC (permalink / raw) To: Zhe Su; +Cc: xenomai On Sat, Feb 07, 2015 at 05:23:33PM -0800, Zhe Su wrote: > Dear all, > > I am running xenomai 2.6.3 on Ubuntu 12.04, and I would like use a > four-channel PCI express CAN board manufactured by PEAK system. The exact > model name and number are PCAN-PCI Express Four Channel galvanic isolated > IPEH-003040. I am wondering if xenomai 2.6.3 rtcan driver will be > compatible with this board? To check whether your board is compatible, get its ids with lspci. Then look at: https://git.xenomai.org/xenomai-jro.git/tree/kernel/drivers/can/sja1000/rtcan_peak_pci.c#n73 To see if the pci ids of your card are supported. If they are not, you may be able to get the driver working for your board by adding you board's ids to the peak_pci_tbl array, if the board is compatible with the driver. -- Gilles. ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Xenomai] Compatibility of PCAN PCI Express Four Channel 2015-02-08 17:42 ` Gilles Chanteperdrix @ 2015-02-12 9:29 ` Konrad Banachowicz 2015-02-20 0:05 ` Zhe Su 1 sibling, 0 replies; 11+ messages in thread From: Konrad Banachowicz @ 2015-02-12 9:29 UTC (permalink / raw) To: Gilles Chanteperdrix; +Cc: xenomai The driver is not working properly with for channel card (only two interfaces are visible). Long time ago i made a patch for that : http://www.xenomai.org/pipermail/xenomai/2013-December/029695.html ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Xenomai] Compatibility of PCAN PCI Express Four Channel 2015-02-08 17:42 ` Gilles Chanteperdrix 2015-02-12 9:29 ` Konrad Banachowicz @ 2015-02-20 0:05 ` Zhe Su 2015-02-20 5:22 ` Gilles Chanteperdrix 1 sibling, 1 reply; 11+ messages in thread From: Zhe Su @ 2015-02-20 0:05 UTC (permalink / raw) To: Gilles Chanteperdrix, konradb3; +Cc: xenomai Dear Gilles and Konrad, Thanks for your reply. As you suggested, I confirmed the ids of four-channel PCI express CAN board is in the rtcan_peak_pci.c file. I just got my new four-channel PCI express CAN board yesterday; however, none of the channel is working on my xenomai. It did recognize there is a PEAK-System Device plugged in the PCI express slot, but it is not working with the can driver. Here are the results of the comparison between a two-channel PEAK-System PCI CAN board and a four-channel PEAK-System PCI express CAN board. lspci -nn 02:00.0 Network controller [0280]: PEAK-System Technik GmbH PCAN-PCI CAN-Bus controller [001c:0001] (rev 02) 22:00.0 Network controller [0280]: PEAK-System Technik GmbH Device [001c:0003] (rev 02) lspci -v 02:00.0 Network controller: PEAK-System Technik GmbH PCAN-PCI CAN-Bus controller (rev 02) Subsystem: PEAK-System Technik GmbH 2 Channel CAN Bus SJC1000 (Optically Isolated) Flags: medium devsel, IRQ 28 Memory at f3ee0000 (32-bit, non-prefetchable) [size=64K] Memory at f3ef0000 (32-bit, non-prefetchable) [size=64K] Kernel driver in use: PEAK-PCI-CAN Kernel modules: xeno_can_peak_pci 22:00.0 Network controller: PEAK-System Technik GmbH Device 0003 (rev 02) Subsystem: PEAK-System Technik GmbH Device 0014 Flags: bus master, fast devsel, latency 0, IRQ 11 Memory at dffe0000 (32-bit, non-prefetchable) [size=64K] Memory at dfff0000 (32-bit, non-prefetchable) [size=64K] Expansion ROM at <unassigned> Capabilities: <access denied> Any help will be highly appreciated. Thanks, Harry On Sun, Feb 8, 2015 at 9:42 AM, Gilles Chanteperdrix < gilles.chanteperdrix@xenomai.org> wrote: > On Sat, Feb 07, 2015 at 05:23:33PM -0800, Zhe Su wrote: > > Dear all, > > > > I am running xenomai 2.6.3 on Ubuntu 12.04, and I would like use a > > four-channel PCI express CAN board manufactured by PEAK system. The exact > > model name and number are PCAN-PCI Express Four Channel galvanic isolated > > IPEH-003040. I am wondering if xenomai 2.6.3 rtcan driver will be > > compatible with this board? > > To check whether your board is compatible, get its ids with lspci. > > Then look at: > > https://git.xenomai.org/xenomai-jro.git/tree/kernel/drivers/can/sja1000/rtcan_peak_pci.c#n73 > > To see if the pci ids of your card are supported. If they are not, > you may be able to get the driver working for your board by adding > you board's ids to the peak_pci_tbl array, if the board is > compatible with the driver. > > -- > Gilles. > -- Zhe Su (Harry Su), Ph.D. student Research Assistant Medical Device Development Facility Department of Biomedical Engineering University of Southern California ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Xenomai] Compatibility of PCAN PCI Express Four Channel 2015-02-20 0:05 ` Zhe Su @ 2015-02-20 5:22 ` Gilles Chanteperdrix 2015-02-20 6:26 ` Zhe Su 0 siblings, 1 reply; 11+ messages in thread From: Gilles Chanteperdrix @ 2015-02-20 5:22 UTC (permalink / raw) To: Zhe Su; +Cc: xenomai On Thu, Feb 19, 2015 at 04:05:22PM -0800, Zhe Su wrote: > Dear Gilles and Konrad, > > Thanks for your reply. As you suggested, I confirmed the ids of > four-channel PCI express CAN board is in the rtcan_peak_pci.c file. I just > got my new four-channel PCI express CAN board yesterday; however, none of > the channel is working on my xenomai. It did recognize there is a > PEAK-System Device plugged in the PCI express slot, but it is not working > with the can driver. Here are the results of the comparison between a > two-channel PEAK-System PCI CAN board and a four-channel PEAK-System PCI > express CAN board. > > lspci -nn > 02:00.0 Network controller [0280]: PEAK-System Technik GmbH PCAN-PCI > CAN-Bus controller [001c:0001] (rev 02) > 22:00.0 Network controller [0280]: PEAK-System Technik GmbH Device > [001c:0003] (rev 02) > > lspci -v > > 02:00.0 Network controller: PEAK-System Technik GmbH PCAN-PCI CAN-Bus > controller (rev 02) > Subsystem: PEAK-System Technik GmbH 2 Channel CAN Bus SJC1000 > (Optically Isolated) > Flags: medium devsel, IRQ 28 > Memory at f3ee0000 (32-bit, non-prefetchable) [size=64K] > Memory at f3ef0000 (32-bit, non-prefetchable) [size=64K] > Kernel driver in use: PEAK-PCI-CAN > Kernel modules: xeno_can_peak_pci > > 22:00.0 Network controller: PEAK-System Technik GmbH Device 0003 (rev 02) > Subsystem: PEAK-System Technik GmbH Device 0014 > Flags: bus master, fast devsel, latency 0, IRQ 11 > Memory at dffe0000 (32-bit, non-prefetchable) [size=64K] > Memory at dfff0000 (32-bit, non-prefetchable) [size=64K] > Expansion ROM at <unassigned> > Capabilities: <access denied> > > Any help will be highly appreciated. Neither of these two commands is showing the pci ids. Try lspci -n -- Gilles. ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Xenomai] Compatibility of PCAN PCI Express Four Channel 2015-02-20 5:22 ` Gilles Chanteperdrix @ 2015-02-20 6:26 ` Zhe Su 2015-02-20 6:29 ` Gilles Chanteperdrix 0 siblings, 1 reply; 11+ messages in thread From: Zhe Su @ 2015-02-20 6:26 UTC (permalink / raw) To: Gilles Chanteperdrix; +Cc: xenomai Dear Gilles, Thanks for your prompt reply. In my last email, it already included the pci ids, shown in the bold letters: lspci -nn 02:00.0 Network controller [0280]: PEAK-System Technik GmbH PCAN-PCI CAN-Bus controller *[001c:0001]* (rev 02) 22:00.0 Network controller [0280]: PEAK-System Technik GmbH Device *[001c:0003]* (rev 02) 001c is the manufacturer id, and 0001 and 0003 is the 2-channel PCI and 4-channel PCI express, respectively. Harry On Thu, Feb 19, 2015 at 9:22 PM, Gilles Chanteperdrix < gilles.chanteperdrix@xenomai.org> wrote: > On Thu, Feb 19, 2015 at 04:05:22PM -0800, Zhe Su wrote: > > Dear Gilles and Konrad, > > > > Thanks for your reply. As you suggested, I confirmed the ids of > > four-channel PCI express CAN board is in the rtcan_peak_pci.c file. I > just > > got my new four-channel PCI express CAN board yesterday; however, none of > > the channel is working on my xenomai. It did recognize there is a > > PEAK-System Device plugged in the PCI express slot, but it is not working > > with the can driver. Here are the results of the comparison between a > > two-channel PEAK-System PCI CAN board and a four-channel PEAK-System PCI > > express CAN board. > > > > lspci -nn > > 02:00.0 Network controller [0280]: PEAK-System Technik GmbH PCAN-PCI > > CAN-Bus controller [001c:0001] (rev 02) > > 22:00.0 Network controller [0280]: PEAK-System Technik GmbH Device > > [001c:0003] (rev 02) > > > > lspci -v > > > > 02:00.0 Network controller: PEAK-System Technik GmbH PCAN-PCI CAN-Bus > > controller (rev 02) > > Subsystem: PEAK-System Technik GmbH 2 Channel CAN Bus SJC1000 > > (Optically Isolated) > > Flags: medium devsel, IRQ 28 > > Memory at f3ee0000 (32-bit, non-prefetchable) [size=64K] > > Memory at f3ef0000 (32-bit, non-prefetchable) [size=64K] > > Kernel driver in use: PEAK-PCI-CAN > > Kernel modules: xeno_can_peak_pci > > > > 22:00.0 Network controller: PEAK-System Technik GmbH Device 0003 (rev 02) > > Subsystem: PEAK-System Technik GmbH Device 0014 > > Flags: bus master, fast devsel, latency 0, IRQ 11 > > Memory at dffe0000 (32-bit, non-prefetchable) [size=64K] > > Memory at dfff0000 (32-bit, non-prefetchable) [size=64K] > > Expansion ROM at <unassigned> > > Capabilities: <access denied> > > > > Any help will be highly appreciated. > > Neither of these two commands is showing the pci ids. > > Try lspci -n > > -- > Gilles. > -- Zhe Su (Harry Su), Ph.D. student Research Assistant Medical Device Development Facility Department of Biomedical Engineering University of Southern California ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Xenomai] Compatibility of PCAN PCI Express Four Channel 2015-02-20 6:26 ` Zhe Su @ 2015-02-20 6:29 ` Gilles Chanteperdrix [not found] ` <4E57A2CE-DBB7-49DD-B0A3-78312F35C9DA@gmail.com> 0 siblings, 1 reply; 11+ messages in thread From: Gilles Chanteperdrix @ 2015-02-20 6:29 UTC (permalink / raw) To: Zhe Su; +Cc: xenomai On Thu, Feb 19, 2015 at 10:26:44PM -0800, Zhe Su wrote: > Dear Gilles, > > Thanks for your prompt reply. In my last email, it already included the pci > ids, shown in the bold letters: > > lspci -nn > 02:00.0 Network controller [0280]: PEAK-System Technik GmbH PCAN-PCI > CAN-Bus controller *[001c:0001]* (rev 02) > 22:00.0 Network controller [0280]: PEAK-System Technik GmbH Device > *[001c:0003]* (rev 02) > > 001c is the manufacturer id, and 0001 and 0003 is the 2-channel PCI > and 4-channel > PCI express, respectively. Indeed. Anyway, what is the problem exactly ? "It does not work" does not give much details. -- Gilles. ^ permalink raw reply [flat|nested] 11+ messages in thread
[parent not found: <4E57A2CE-DBB7-49DD-B0A3-78312F35C9DA@gmail.com>]
* Re: [Xenomai] Compatibility of PCAN PCI Express Four Channel [not found] ` <4E57A2CE-DBB7-49DD-B0A3-78312F35C9DA@gmail.com> @ 2015-02-20 6:42 ` Gilles Chanteperdrix [not found] ` <CAAg8yo2tTFE_SoAUEJN9bxJJDSQ0jHmwpQKcya9T2KXyTkvPYg@mail.gmail.com> 0 siblings, 1 reply; 11+ messages in thread From: Gilles Chanteperdrix @ 2015-02-20 6:42 UTC (permalink / raw) To: Zhe Su; +Cc: xenomai@xenomai.org On Thu, Feb 19, 2015 at 10:41:15PM -0800, Zhe Su wrote: > Hi Gilles, > > According to the PCI Ids in the link you sent me, both of my PCI can boards should be supported by xenomai drivers. I am wondering have you seen similar problems and how do I figure out what is the problem? > > Konrad said only two channels of his 4-channel PCI express card worked, but none of the channels on my board works. Please be more specific. What command do you run, what is the result that makes you think that the drier is not working ? -- Gilles. ^ permalink raw reply [flat|nested] 11+ messages in thread
[parent not found: <CAAg8yo2tTFE_SoAUEJN9bxJJDSQ0jHmwpQKcya9T2KXyTkvPYg@mail.gmail.com>]
* Re: [Xenomai] Compatibility of PCAN PCI Express Four Channel [not found] ` <CAAg8yo2tTFE_SoAUEJN9bxJJDSQ0jHmwpQKcya9T2KXyTkvPYg@mail.gmail.com> @ 2015-02-20 18:57 ` Gilles Chanteperdrix 2015-02-20 19:09 ` Konrad Banachowicz 0 siblings, 1 reply; 11+ messages in thread From: Gilles Chanteperdrix @ 2015-02-20 18:57 UTC (permalink / raw) To: Zhe Su; +Cc: xenomai@xenomai.org On Fri, Feb 20, 2015 at 05:33:15AM -0800, Zhe Su wrote: > Sorry about that. If I used command cat /proc/rtcan/devices on my 2-channel > PCI express board, I got following results Name___________ _Baudrate > State___ TX_Counter RX_Counter ____Errors > > rtcan0 100000 active 0 0 0 > rtcan1 100000 active 0 0 0 > > When I used the same command on the 4-channel PCI express board, I got > nothing like above results. > > Also when I used command lspci -v. The results didn't show any Kernel > driver in use and kernel modules. As shown in the results of between > 2-channel board vs 4-channel board. > > *2- channel: * > 02:00.0 Network controller: PEAK-System Technik GmbH PCAN-PCI CAN-Bus > controller (rev 02) > Subsystem: PEAK-System Technik GmbH 2 Channel CAN Bus SJC1000 > (Optically Isolated) > Flags: medium devsel, IRQ 28 > Memory at f3ee0000 (32-bit, non-prefetchable) [size=64K] > Memory at f3ef0000 (32-bit, non-prefetchable) [size=64K] > Kernel driver in use: PEAK-PCI-CAN > Kernel modules: xeno_can_peak_pci > > *4-channel: * > 22:00.0 Network controller: PEAK-System Technik GmbH Device 0003 (rev 02) > Subsystem: PEAK-System Technik GmbH Device 0014 > Flags: bus master, fast devsel, latency 0, IRQ 11 > Memory at dffe0000 (32-bit, non-prefetchable) [size=64K] > Memory at dfff0000 (32-bit, non-prefetchable) [size=64K] > Expansion ROM at <unassigned> > Capabilities: <access denied> Well, it would seem the driver does not match your board. Is the matching done only on vendor id/product id, or are the other ids used in the driver table ? -- Gilles. ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Xenomai] Compatibility of PCAN PCI Express Four Channel 2015-02-20 18:57 ` Gilles Chanteperdrix @ 2015-02-20 19:09 ` Konrad Banachowicz 2015-02-20 22:58 ` Gilles Chanteperdrix 0 siblings, 1 reply; 11+ messages in thread From: Konrad Banachowicz @ 2015-02-20 19:09 UTC (permalink / raw) To: Gilles Chanteperdrix; +Cc: Zhe Su, xenomai@xenomai.org As I wrote earlier the 4 channel card is not supported in mainline(xenomai) driver. The patch i mentioned add the support. It should work with latest xenomai 2.6.x . ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [Xenomai] Compatibility of PCAN PCI Express Four Channel 2015-02-20 19:09 ` Konrad Banachowicz @ 2015-02-20 22:58 ` Gilles Chanteperdrix 0 siblings, 0 replies; 11+ messages in thread From: Gilles Chanteperdrix @ 2015-02-20 22:58 UTC (permalink / raw) To: Konrad Banachowicz; +Cc: Zhe Su, xenomai@xenomai.org On Fri, Feb 20, 2015 at 08:09:51PM +0100, Konrad Banachowicz wrote: > As I wrote earlier the 4 channel card is not supported in > mainline(xenomai) driver. > The patch i mentioned add the support. It should work with latest > xenomai 2.6.x . Sorry, I just assumed Zhe Su had applied the patch. -- Gilles. ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2015-02-20 22:58 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-08 1:23 [Xenomai] Compatibility of PCAN PCI Express Four Channel Zhe Su
2015-02-08 17:42 ` Gilles Chanteperdrix
2015-02-12 9:29 ` Konrad Banachowicz
2015-02-20 0:05 ` Zhe Su
2015-02-20 5:22 ` Gilles Chanteperdrix
2015-02-20 6:26 ` Zhe Su
2015-02-20 6:29 ` Gilles Chanteperdrix
[not found] ` <4E57A2CE-DBB7-49DD-B0A3-78312F35C9DA@gmail.com>
2015-02-20 6:42 ` Gilles Chanteperdrix
[not found] ` <CAAg8yo2tTFE_SoAUEJN9bxJJDSQ0jHmwpQKcya9T2KXyTkvPYg@mail.gmail.com>
2015-02-20 18:57 ` Gilles Chanteperdrix
2015-02-20 19:09 ` Konrad Banachowicz
2015-02-20 22:58 ` Gilles Chanteperdrix
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.