Kvaser socketCAN support
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hello Christopher,
the Kvaser Leaf USB driver has been contributed by Olivier Sobrie (see CC).
See log messages of the driver in the Linux Mainline repository:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/log/drivers/net/can/usb/kvaser_usb.c
The initial support was added at 2012-11-27 and emerged in Linux 3.8.
Regards,
Oliver
ps. feel free to ask this kind of questions on the linux-can mailing list which I added in CC. Tnx
Quoted 114 lines · On 17.04.2014 03:31, Smith, Christopher - 0999 - MITLL wrote:
Hi, I was just looking to get confirmation and a few points for getting the initial install figured out.
I have a kvaser leaf device that I'd like to use with socketCAN. Is this in fact supported?
I noticed the general process for setting up socketCAN documented on wikipedia
<http://en.wikipedia.org/wiki/SocketCAN>. When I issue the following command:ip link add dev vcan0 type vcan
What do I replace vcan0 with? I’ve tried can0 with no luck. Is there a way to check which devices are registered? I’m not entirely sure that when I plugged in the USB device the proper drivers were recognized. I may need some of the lower level drivers distributed by Kvaser.
Thank you,
Chris
-----Original Message-----
From: Kvaser Support [mailto:[email protected]]
Sent: Monday, April 14, 2014 3:24 PM
To: Smith, Christopher - 0999 - MITLL
Subject: Re: (Case 14217) Linux driver supportDid the response below answer your questions?
Or do you need more information?
Best regards,
Troy
Signature · 5 lines
Kvaser Support [email protected] <mailto:[email protected]> --------------------------------------------------------------------------------Original Message-----
From: "Kvaser Support" <[email protected] <mailto:[email protected]>>
Reply-To: "Kvaser Support" <[email protected] <mailto:[email protected]>>
Date: Mon, 31 Mar 2014 22:29:00 +02:00
To: "Smith, Christopher - 0999 - MITLL" <[email protected] <mailto:[email protected]>>
Subject: Re: (Case 14217) Linux driver support
Quoted 1 line
To our knowledge, support for the Leaf family was added to socketcan by
Oliver Harkopp in 2012.
Quoted 3 lines
I tried to perform a google search to determine which version of Linux this
has been included in without good results.
Quoted 3 lines
I hope the socketcan community can point you to the version that includes
this patch.
Quoted 15 lines
Best regards,
Troy
--
Kvaser Support
[email protected] <mailto:[email protected]>
---------------------------------------------------------------------------
Re: (Case 14359) Kvaser socketCAN support
Thanks for the information Oliver.
Is there a good location for us to point to that would list the current hardware supported by Socketcan and the version of Linux needed for that support? A site that is kept up to date?
I am looking for something that we could put in a FAQ on our website that point people using socketcan in the correct direction.
Best regards,
Troy
Signature · 3 lines
Kvaser Support [email protected] ---------------------------------------------------------------------------
-----Original Message-----
From: "Oliver Hartkopp" <[email protected]>
Reply-To: "Oliver Hartkopp" <[email protected]>
Date: Mon, 21 Apr 2014 19:48:44 +0200
To: "Smith, Christopher - 0999 - MITLL" <[email protected]>
Cc: "Kvaser Support ([email protected])" <[email protected]>, "[email protected]" <[email protected]>, "Olivier Sobrie" <[email protected]>
Subject: Re: Kvaser socketCAN support
Quoted 51 lines
Hello Christopher,
the Kvaser Leaf USB driver has been contributed by Olivier Sobrie (see CC).
See log messages of the driver in the Linux Mainline repository:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/log/drivers/net/can/usb/kvaser_usb.cThe initial support was added at 2012-11-27 and emerged in Linux 3.8.
Regards,
Oliverps. feel free to ask this kind of questions on the linux-can mailing list which I added in CC. Tnx
Quoted 35 lines · On 17.04.2014 03:31, Smith, Christopher - 0999 - MITLL wrote:
Hi, I was just looking to get confirmation and a few points for getting the initial install figured out.
I have a kvaser leaf device that I'd like to use with socketCAN. Is this in fact supported?
I noticed the general process for setting up socketCAN documented on wikipedia
<http://en.wikipedia.org/wiki/SocketCAN>. When I issue the following command:ip link add dev vcan0 type vcan
What do I replace vcan0 with? I’ve tried can0 with no luck. Is there a way to check which devices are registered? I’m not entirely sure that when I plugged in the USB device the proper drivers were recognized. I may need some of the lower level drivers distributed by Kvaser.
Thank you,
Chris
Re: (Case 14359) Kvaser socketCAN support
Quoted 5 lines · Kvaser Support
Thanks for the information Oliver.
Is there a good location for us to point to that would list the current hardware supported by Socketcan and the version of Linux needed for that support? A site that is kept up to date?
I am looking for something that we could put in a FAQ on our website that point people using socketcan in the correct direction.
The wiki could definitely get more care, but from time to time we update it.
Regards,
Yegor
Quoted 67 lines
---------------------------------------------------------------------------
-----Original Message-----
From: "Oliver Hartkopp" <[email protected]>
Reply-To: "Oliver Hartkopp" <[email protected]>
Date: Mon, 21 Apr 2014 19:48:44 +0200
To: "Smith, Christopher - 0999 - MITLL" <[email protected]>
Cc: "Kvaser Support ([email protected])" <[email protected]>, "[email protected]" <[email protected]>, "Olivier Sobrie" <[email protected]>
Subject: Re: Kvaser socketCAN supportQuoted 9 lines
Hello Christopher,
the Kvaser Leaf USB driver has been contributed by Olivier Sobrie (see CC).
See log messages of the driver in the Linux Mainline repository:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/log/drivers/net/can/usb/kvaser_usb.cThe initial support was added at 2012-11-27 and emerged in Linux 3.8.
Quoted 42 lines
Regards,
Oliverps. feel free to ask this kind of questions on the linux-can mailing list which I added in CC. Tnx
Quoted 35 lines · On 17.04.2014 03:31, Smith, Christopher - 0999 - MITLL wrote:
Hi, I was just looking to get confirmation and a few points for getting the initial install figured out.
I have a kvaser leaf device that I'd like to use with socketCAN. Is this in fact supported?
I noticed the general process for setting up socketCAN documented on wikipedia
<http://en.wikipedia.org/wiki/SocketCAN>. When I issue the following command:ip link add dev vcan0 type vcan
What do I replace vcan0 with? I’ve tried can0 with no luck. Is there a way to check which devices are registered? I’m not entirely sure that when I plugged in the USB device the proper drivers were recognized. I may need some of the lower level drivers distributed by Kvaser.
Thank you,
Chris
--
To unsubscribe from this list: send the line "unsubscribe linux-can" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: (Case 14359) Kvaser socketCAN support
Looking at the provided web page and associated links, I do not see:
- a list of vendor supported/tested CAN hardware
- the Linux distribution where this support was included.
These are two basic questions that we get concerning socketcan.
Best regards,
Troy
Signature · 3 lines
Kvaser Support [email protected] ---------------------------------------------------------------------------
-----Original Message-----
From: "Yegor Yefremov" <[email protected]>
Reply-To: "Yegor Yefremov" <[email protected]>
Date: Tue, 22 Apr 2014 07:54:31 +0200
To: "Kvaser Support" <[email protected]>
Cc: "Oliver Hartkopp" <[email protected]>, "[email protected]" <[email protected]>, "Olivier Sobrie" <[email protected]>
Subject: Re: (Case 14359) Kvaser socketCAN support
Quoted 19 lines · Kvaser Support
Quoted 5 lines
Thanks for the information Oliver.
Is there a good location for us to point to that would list the current hardware supported by Socketcan and the version of Linux needed for that support? A site that is kept up to date?
I am looking for something that we could put in a FAQ on our website that point people using socketcan in the correct direction.
The wiki could definitely get more care, but from time to time we update it.
Regards,
YegorQuoted 5 lines
---------------------------------------------------------------------------
Re: (Case 14359) Kvaser socketCAN support
Hi Troy,
What about this link
(http://elinux.org/CAN_Bus#SocketCAN_Supported_Controllers)?
Linux distribution table i.e. Linux kernel version where not bad. I've also thought about a list of Linux distors, that maintain can-utils, libsocketcan etc.
Yegor
Quoted 43 lines · Kvaser Support
Looking at the provided web page and associated links, I do not see:
- a list of vendor supported/tested CAN hardware
- the Linux distribution where this support was included.These are two basic questions that we get concerning socketcan.
Best regards,
Troy
--
Kvaser Support
[email protected]
--------------------------------------------------------------------------------Original Message-----
From: "Yegor Yefremov" <[email protected]>
Reply-To: "Yegor Yefremov" <[email protected]>
Date: Tue, 22 Apr 2014 07:54:31 +0200
To: "Kvaser Support" <[email protected]>
Cc: "Oliver Hartkopp" <[email protected]>, "[email protected]" <[email protected]>, "Olivier Sobrie" <[email protected]>
Subject: Re: (Case 14359) Kvaser socketCAN supportQuoted 19 lines · Kvaser Support
Quoted 5 lines
Thanks for the information Oliver.
Is there a good location for us to point to that would list the current hardware supported by Socketcan and the version of Linux needed for that support? A site that is kept up to date?
I am looking for something that we could put in a FAQ on our website that point people using socketcan in the correct direction.
The wiki could definitely get more care, but from time to time we update it.
Regards,
YegorQuoted 5 lines
---------------------------------------------------------------------------
Re: (Case 14359) Kvaser socketCAN support
The provided link covers chips and mentions ESD CAN Cards. But I do not see any mention of Kvaser in the list. So, on quick glance I thought it was a list of supported chips.
Most people who purchase will be looking for product level names. They rarely look in depth at the chip or clock used in the product. They just want the card to work and are trying to confirm that a particular product works with socketcan.
Best regards,
Troy
Signature · 3 lines
Kvaser Support [email protected] ---------------------------------------------------------------------------
-----Original Message-----
From: "Yegor Yefremov" <[email protected]>
Reply-To: "Yegor Yefremov" <[email protected]>
Date: Wed, 23 Apr 2014 09:48:45 +0200
To: "Kvaser Support" <[email protected]>
Cc: "Oliver Hartkopp" <[email protected]>, "[email protected]" <[email protected]>, "Olivier Sobrie" <[email protected]>
Subject: Re: (Case 14359) Kvaser socketCAN support
Quoted 29 lines
Hi Troy,
What about this link
(http://elinux.org/CAN_Bus#SocketCAN_Supported_Controllers)?Linux distribution table i.e. Linux kernel version where not bad. I've also thought about a list of Linux distors, that maintain can-utils, libsocketcan etc.
Yegor
Quoted 17 lines · Kvaser Support
Looking at the provided web page and associated links, I do not see:
- a list of vendor supported/tested CAN hardware
- the Linux distribution where this support was included.These are two basic questions that we get concerning socketcan.
Best regards,
Troy
--
Kvaser Support
[email protected]
---------------------------------------------------------------------------
Re: (Case 14359) Kvaser socketCAN support
What about making a table with following columns:
1. driver module name
2. supported devices
3. kernel version, where all these devices are supported
*alternative variant*
1. device name
2. related driver module name
3. kernel version
*another alternative*
the central wiki page shows all modules as a list, each element of the list opens a new page with following table:
1. device name (perhaps with a product link)
2. kernel version
Marc, Oliver what do you think?
Yegor
Quoted 51 lines · Kvaser Support
The provided link covers chips and mentions ESD CAN Cards. But I do not see any mention of Kvaser in the list. So, on quick glance I thought it was a list of supported chips.
Most people who purchase will be looking for product level names. They rarely look in depth at the chip or clock used in the product. They just want the card to work and are trying to confirm that a particular product works with socketcan.
Best regards,
Troy
--
Kvaser Support
[email protected]
--------------------------------------------------------------------------------Original Message-----
From: "Yegor Yefremov" <[email protected]>
Reply-To: "Yegor Yefremov" <[email protected]>
Date: Wed, 23 Apr 2014 09:48:45 +0200
To: "Kvaser Support" <[email protected]>
Cc: "Oliver Hartkopp" <[email protected]>, "[email protected]" <[email protected]>, "Olivier Sobrie" <[email protected]>
Subject: Re: (Case 14359) Kvaser socketCAN supportQuoted 29 lines
Hi Troy,
What about this link
(http://elinux.org/CAN_Bus#SocketCAN_Supported_Controllers)?Linux distribution table i.e. Linux kernel version where not bad. I've also thought about a list of Linux distors, that maintain can-utils, libsocketcan etc.
Yegor
Quoted 17 lines · Kvaser Support
Looking at the provided web page and associated links, I do not see:
- a list of vendor supported/tested CAN hardware
- the Linux distribution where this support was included.These are two basic questions that we get concerning socketcan.
Best regards,
Troy
--
Kvaser Support
[email protected]
---------------------------------------------------------------------------
Marc Kleine-Budde
maintainerRe: (Case 14359) Kvaser socketCAN support
Quoted 11 lines · Yegor Yefremov
What about making a table with following columns:
1. driver module name
2. supported devices
3. kernel version, where all these devices are supported*alternative variant*
1. device name
2. related driver module name
3. kernel version
^^^ I think this is the most useful variant.
Quoted 11 lines
*another alternative*
the central wiki page shows all modules as a list, each element of the list opens a new page with following table:
1. device name (perhaps with a product link)
2. kernel versionMarc, Oliver what do you think?
Yegor
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
Re: (Case 14359) Kvaser socketCAN support
Quoted 7 lines · Marc Kleine-Budde
Quoted 6 lines · Yegor Yefremov
What about making a table with following columns:
1. driver module name
2. supported devices
3. kernel version, where all these devices are supported
Quoted 7 lines
Quoted 5 lines
*alternative variant*
1. device name
2. related driver module name
3. kernel version^^^ I think this is the most useful variant.
Yep!
If possible I would like to add the Vendor too:
1. Vendor (with URL to the Vendor)
2. device name (with URL to the Product if possible)
3. related driver module name
4. Kconfig option: CONFIG_CAN CONFIG_CAN_DEV CONFIG_SJA1000 CONFIG_EMS_PCMCIA
5. since kernel version (or "out-of-tree")
6. Remarks
Point 4. might probably be too much ...
As elinux.org uses the same Wiki system, i would suggest to
have a sorted table to be able to sort by Vendor / device name / Kernel version
See:
http://en.wikipedia.org/wiki/Help:Table#Sorting_and_collapsing
Btw. the DE example looks better
http://de.wikipedia.org/wiki/Hilfe:Tabellen#Sortierbare_Tabelle
Regards,
Oliver
ps. My account creation at elinux.org still waits for approval ...
Marc Kleine-Budde
maintainerRe: (Case 14359) Kvaser socketCAN support
Quoted 18 lines · Oliver Hartkopp
Quoted 7 lines · Marc Kleine-Budde
Quoted 6 lines · Yegor Yefremov
What about making a table with following columns:
1. driver module name
2. supported devices
3. kernel version, where all these devices are supportedQuoted 7 lines
Quoted 5 lines
*alternative variant*
1. device name
2. related driver module name
3. kernel version^^^ I think this is the most useful variant.
Quoted 8 lines
Yep!
If possible I would like to add the Vendor too:
1. Vendor (with URL to the Vendor)
2. device name (with URL to the Product if possible)
3. related driver module name
4.Kconfigoption:CONFIG_CANCONFIG_CAN_DEVCONFIG_SJA1000CONFIG_EMS_PCMCIA
Please only the Kconfig option of the device (CONFIG_EMS_PCMCIA), maybe CONFIG_SJA1000, but not more.
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
Re: (Case 14359) Kvaser socketCAN support
Quoted 23 lines · Marc Kleine-Budde
Quoted 22 lines · Oliver Hartkopp
Quoted 7 lines · Marc Kleine-Budde
Quoted 6 lines · Yegor Yefremov
What about making a table with following columns:
1. driver module name
2. supported devices
3. kernel version, where all these devices are supportedQuoted 7 lines
Quoted 5 lines
*alternative variant*
1. device name
2. related driver module name
3. kernel version^^^ I think this is the most useful variant.
Yep!
If possible I would like to add the Vendor too:
Quoted 7 lines
Quoted 4 lines
1. Vendor (with URL to the Vendor)
2. device name (with URL to the Product if possible)
3. related driver module name
4.Kconfigoption:CONFIG_CANCONFIG_CAN_DEVCONFIG_SJA1000CONFIG_EMS_PCMCIAPlease only the
Kconfigoption of the device (CONFIG_EMS_PCMCIA), maybeCONFIG_SJA1000, but not more.
Have created a table and the first entry. Our wiki seems to have problems with sorted lists.
Yegor
Re: (Case 14359) Kvaser socketCAN support
Quoted 3 lines · Yegor Yefremov
Have created a table and the first entry. Our wiki seems to have problems with sorted lists.
Got my wiki account :-)
I extended the table outline a bit and added some more examples. Please take a look if it looks sane or if it should be tuned again.
http://elinux.org/CAN_Bus#SocketCAN_Supported_Controllers
Best regards,
Oliver
Re: (Case 14359) Kvaser socketCAN support
Quoted 6 lines · Oliver Hartkopp
Quoted 3 lines · Yegor Yefremov
Have created a table and the first entry. Our wiki seems to have problems with sorted lists.
Quoted 6 lines
Got my wiki account :-)
I extended the table outline a bit and added some more examples. Please take a look if it looks sane or if it should be tuned again.
Looks sane to me. Thanks.
Yegor
Re: (Case 14359) Kvaser socketCAN support
Looks great!
Just missing Kvaser from the list. Do you need anything from me to add Kvaser to the table? Web page links?
Best regards,
Troy
Signature · 3 lines
Kvaser Support [email protected] ---------------------------------------------------------------------------
-----Original Message-----
From: "Yegor Yefremov" <[email protected]>
Reply-To: "Yegor Yefremov" <[email protected]>
Date: Thu, 24 Apr 2014 21:29:53 +0200
To: "Oliver Hartkopp" <[email protected]>
Cc: "Marc Kleine-Budde" <[email protected]>, "Kvaser Support" <[email protected]>, "[email protected]" <[email protected]>, "Olivier Sobrie" <[email protected]>
Subject: Re: (Case 14359) Kvaser socketCAN support
Quoted 17 lines · Oliver Hartkopp
Quoted 6 lines · Yegor Yefremov
Quoted 4 lines
Have created a table and the first entry. Our wiki seems to have problems with sorted lists.
Quoted 6 lines
Got my wiki account :-)
I extended the table outline a bit and added some more examples. Please take a look if it looks sane or if it should be tuned again.
Looks sane to me. Thanks.
Yegor
SocketCAN Supported Controllers information updates
Hello Troy,
I just added the USB based drivers for Kvaser and PEAK.
This is a pretty boring and laborious work ... e.g. to retrieve the information from product websites (URLs) or the Linux version.
Please check if
http://elinux.org/CAN_Bus#SocketCAN_Supported_Controllers
looks ok from the Kvaser side.
When not all of you want to have a wiki account, you may send the wiki code lines for integration into the wiki on this list, so that Yegor or me can just copy/paste the line into the wiki.
E.g. for the Kvaser USB this was:
|[http://www.kvaser.com/ Kvaser] || [http://www.kvaser.com/products-services/our-products/ Leaf] || kvaser_usb || (unknown) || CONFIG_CAN_KVASER_USB || 3.8 || supports USB Leaf / Memorator / Blackbird / R (see detailed USB device IDs in kvaser_usb.c)
Best regards,
Oliver
Quoted 8 lines · Kvaser Support
Looks great!
Just missing Kvaser from the list. Do you need anything from me to add Kvaser to the table? Web page links?
Best regards,
Troy
Re: (Case 14383) SocketCAN Supported Controllers information updates
Looks good. Thanks for updating this information. I will let you know when we have our FAQ page up so you can comment.
Best regards,
Troy
Signature · 3 lines
Kvaser Support [email protected] ---------------------------------------------------------------------------
-----Original Message-----
From: "Oliver Hartkopp" <[email protected]>
Reply-To: "Oliver Hartkopp" <[email protected]>
Date: Fri, 25 Apr 2014 22:38:08 +0200
To: "Kvaser Support" <[email protected]>
Cc: "Yegor Yefremov" <[email protected]>, "Marc Kleine-Budde" <[email protected]>, "[email protected]" <[email protected]>, "Olivier Sobrie" <[email protected]>
Subject: SocketCAN Supported Controllers information updates
Quoted 33 lines
Hello Troy,
I just added the USB based drivers for Kvaser and PEAK.
This is a pretty boring and laborious work ... e.g. to retrieve the information from product websites (URLs) or the Linux version.
Please check if
http://elinux.org/CAN_Bus#SocketCAN_Supported_Controllers
looks ok from the Kvaser side.
When not all of you want to have a wiki account, you may send the wiki code lines for integration into the wiki on this list, so that Yegor or me can just copy/paste the line into the wiki.
E.g. for the Kvaser USB this was:
|[http://www.kvaser.com/ Kvaser] || [http://www.kvaser.com/products-services/our-products/ Leaf] ||
kvaser_usb|| (unknown) ||CONFIG_CAN_KVASER_USB|| 3.8 || supports USB Leaf / Memorator / Blackbird / R (see detailed USB device IDs inkvaser_usb.c)Best regards,
OliverQuoted 8 lines · Kvaser Support
Looks great!
Just missing Kvaser from the list. Do you need anything from me to add Kvaser to the table? Web page links?
Best regards,
Troy
elinux wiki
In reply to Oliver HartkoppHey,
Quoted 5 lines · Oliver Hartkopp
Quoted 3 lines · Yegor Yefremov
Have created a table and the first entry. Our wiki seems to have problems with sorted lists.
I like the idea of a wiki to put this kind of information into. I appreciated the wireless pages some time ago when things evolved very quick.
Quoted 4 lines
Got my wiki account :-)
I extended the table outline a bit and added some more examples.
I just added Softing driver, without deep investigations yet.
Quoted 3 lines
Please take a look if it looks sane or if it should be tuned again.
Maybe 1 hint: an extra column to put firmware links. This may be as important as module name or CONFIG option.
Kind regards,
Kurt
A message that is not in the archive (sent off-list or not yet received): [email protected]
Christopher,
Quoted 6 lines · On 30.04.2014 19:41, Smith, Christopher - 0999 - MITLL wrote:
Oliver,
After digging around a bit more it seems like I'm having the same problem that was mentioned here:
What exactly do you refer to from this thread?
Quoted 2 lines
can0 never comes up
???
Does can0 apprear in dmesg or in /proc/net/dev
??
Pls post the dmesg output of the relevant lines here. And the lsusb output.
Quoted 3 lines
even though dmesg seems to indicate that other initialization has gone smoothly. Is this a problem where one type of kvaser hardware is working but perhaps another variant does not?
I'm still not the right person to ask these kind of questions - that's why I tried to forward your request to Olivier (not Oliver) last time (see below in this mail).
The only I know about the Kvaser driver and it's supported hardware is what you can determine yourself from the Kvasers Kconfig section or the driver itself:
Regards,
Oliver
If so
Quoted 156 lines
maybe more information about what was working well would allow me to use similar hardware.
Thanks,
Chris
-----Original Message-----
From: Oliver Hartkopp [mailto:[email protected]]
Sent: Monday, April 21, 2014 1:49 PM
To: Smith, Christopher - 0999 - MITLL
Cc: Kvaser Support ([email protected]); [email protected]; Olivier Sobrie
Subject: Re: Kvaser socketCAN supportHello Christopher,
the Kvaser Leaf USB driver has been contributed by Olivier Sobrie (see CC).
See log messages of the driver in the Linux Mainline repository:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/log/drivers/net/can/usb/kvaser_usb.cThe initial support was added at 2012-11-27 and emerged in Linux 3.8.
Regards,
Oliverps. feel free to ask this kind of questions on the linux-can mailing list which I added in CC. Tnx
Quoted 5 lines · On 17.04.2014 03:31, Smith, Christopher - 0999 - MITLL wrote:
Hi, I was just looking to get confirmation and a few points for getting the initial install figured out.
Quoted 7 lines
I have a kvaser leaf device that I'd like to use with socketCAN. Is this in fact supported?
I noticed the general process for setting up socketCAN documented on wikipedia <http://en.wikipedia.org/wiki/SocketCAN>. When I issue the
following command:
Quoted 11 lines
ip link add dev vcan0 type vcan
What do I replace vcan0 with? I've tried can0 with no luck. Is there a way to check which devices are registered? I'm not entirely sure that when I plugged in the USB device the proper drivers were recognized. I may need some of the lower level drivers distributed by
Kvaser.
Quoted 98 lines
Thank you,
Chris
-----Original Message-----
From: Kvaser Support [mailto:[email protected]]
Sent: Monday, April 14, 2014 3:24 PM
To: Smith, Christopher - 0999 - MITLL
Subject: Re: (Case 14217) Linux driver supportDid the response below answer your questions?
Or do you need more information?
Best regards,
Troy
--
Kvaser Support
[email protected] <mailto:[email protected]>
----------------------------------------------------------------------
----------Original Message-----
From: "Kvaser Support" <[email protected]
<mailto:[email protected]>>Reply-To: "Kvaser Support" <[email protected]
<mailto:[email protected]>>Date: Mon, 31 Mar 2014 22:29:00 +02:00
To: "Smith, Christopher - 0999 - MITLL" <[email protected] <mailto:[email protected]>>
Subject: Re: (Case 14217) Linux driver support
Quoted 2 lines
To our knowledge, support for the Leaf family was added to socketcan by
Oliver Harkopp in 2012.
Quoted 4 lines
I tried to perform a google search to determine which version of Linux this
has been included in without good results.
Quoted 4 lines
I hope the socketcan community can point you to the version that includes
this patch.
Quoted 16 lines
Best regards,
Troy
--
Kvaser Support
[email protected] <mailto:[email protected]>
----------------------------------------------------------------------
-----
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 9 lines · On 01.05.2014 16:31, Adams, Shawn - 0999 - MITLL wrote:
On boot, with the kvaser device attached we see a vcan0
Please find the output of lsusb and dmesg as well as the contents of/proc/net/devroot@localhost:~# cat /proc/net/dev Inter-| Receive | Transmit face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed vcan0: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 lo: 3432 40 0 0 0 0 0 0 3432 40 0 0 0 0 0 0 eth0: 0 0 0 0 0 0 0 0 1646 11 0 0 0 0 0 0
Ok - you have a vcan0 (which is implemented by the virtual CAN 'vcan' driver). Nothing like "can0" we would expect from a *real* CAN interface :-(
Quoted 3 lines
root@localhost:~# lsusb Bus 001 Device 002: ID 0bfd:0017 Kvaser AB
Looks like a
#define USB_LEAF_PRO_LIN_PRODUCT_ID 17
Quoted 3 lines
root@localhost:~# dmesg |grep -i can [ 4.231784] CAN device driver interface [ 5.233369] kvaser_usb 1-1:1.0: Cannot get software infos, error -110
Ugh!
The driver fails to retrieve the firmware information. Therefore no 'can0' is created by the driver.
The return code '-110' is a timeout, seelinux/include/uapi/asm-generic/errno.h:
#define ETIMEDOUT 110 /* Connection timed out */
So it looks like an USB communication problem - or the hardware does not know about the firmware information command.
Besides trying another PC with a different USB host adapter the only guys that might help in this situation are Olivier or Troy - I put them in CC.
Regards,
Oliver
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi Chris,
Quoted 2 lines · On 01.05.2014 19:46, Smith, Christopher - 0999 - MITLL wrote:
Oliver, thank you for taking a look at this. I'm guessing that other testing you did used that same USB command and did not have any problem?
Just to make it clear:
I did no testing with Kvaser USB hardware as I do not have any of it here. Don't mix me up with Olivier Sobrie (who wrote the Kvaser USB driver).
Regards,
Oliver (Hartkopp)
Quoted 66 lines
If
so perhaps it's an issue of firmware on our device or perhaps a slightly different version of hardware. The device is the Kvaser Memorator with firmware 2.2.600.Thanks,
Chris
-----Original Message-----
From: Oliver Hartkopp [mailto:[email protected]]
Sent: Thursday, May 01, 2014 12:24 PM
To: Adams, Shawn - 0999 - MITLL
Cc: Smith, Christopher - 0999 - MITLL; [email protected]; Olivier Sobrie; Kvaser Support ([email protected])
Subject: Re: Kvaser socketCAN supportQuoted 5 lines · On 01.05.2014 16:31, Adams, Shawn - 0999 - MITLL wrote:
On boot, with the kvaser device attached we see a vcan0 Please find the output of lsusb and dmesg as well as the contents of
/proc/net/devroot@localhost:~# cat /proc/net/dev Inter-| Receive |Transmit
Quoted 1 line
face |bytes packets errs drop fifo frame compressed multicast|bytes
packets errs drop fifo colls carrier compressed
Quoted 1 line
vcan0: 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0
Quoted 1 line
lo: 3432 40 0 0 0 0 0 0 3432
40 0 0 0 0 0 0 > eth0: 0 0 0 0 0 0 0 0 1646 11 0 0 0 0 0 0Ok - you have a vcan0 (which is implemented by the virtual CAN 'vcan' driver).
Nothing like "can0" we would expect from a *real* CAN interface :-(Quoted 3 lines
root@localhost:~# lsusb Bus 001 Device 002: ID 0bfd:0017 Kvaser ABLooks like a
#defineUSB_LEAF_PRO_LIN_PRODUCT_ID17Quoted 3 lines
root@localhost:~# dmesg |grep -i can [ 4.231784] CAN device driver interface [ 5.233369] kvaser_usb 1-1:1.0: Cannot get software infos, error -110Ugh!
The driver fails to retrieve the firmware information. Therefore no 'can0' is created by the driver.The return code '-110' is a timeout, see
linux/include/uapi/asm-generic/errno.h:#define ETIMEDOUT 110 /* Connection timed out */
So it looks like an USB communication problem - or the hardware does not know about the firmware information command.
Besides trying another PC with a different USB host adapter the only guys that might help in this situation are Olivier or Troy - I put them in CC.
Regards,
Oliver
A message that is not in the archive (sent off-list or not yet received): 53628879.751e8c0a.6be4.ffffc061SMTPIN_ADDED_MISSING@mx.google.com
Hi Christopher,
Quoted 5 lines · On Thu, May 01, 2014 at 01:46:25PM -0400, Smith, Christopher - 0999 - MITLL…
Oliver, thank you for taking a look at this. I'm guessing that other testing you did used that same USB command and did not have any problem? If so perhaps it's an issue of firmware on our device or perhaps a slightly different version of hardware. The device is the Kvaser Memorator with firmware 2.2.600.
I just plugged a Kvaser Memorator Professionnal and don't see any probe error. My device is running firmware v2.0.50.
Quoted 9 lines
Quoted 2 lines
root@localhost:~# lsusb Bus 001 Device 002: ID 0bfd:0017 Kvaser ABLooks like a
#defineUSB_LEAF_PRO_LIN_PRODUCT_ID17Quoted 3 lines
root@localhost:~# dmesg |grep -i can [ 4.231784] CAN device driver interface [ 5.233369] kvaser_usb 1-1:1.0: Cannot get software infos, error -110
A probe problem has been fixed for this hardware. See the following commit
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=a90f13b24fb40d02d11496cce6a10ae8d4b319b2
This problem is present in version 3.8.
The patch has been included in linux 3.12 and backported in stable branches of v3.10 and v3.11. So please upgrade :-)
Let us know if it solves your problem.
Kind regards,
Signature · 1 line
Olivier
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hello Christopher,
Quoted 9 lines · On Fri, May 02, 2014 at 10:19:02AM -0400, Smith, Christopher - 0999 - MITLL…
Sorry for the mix up to the Olivers. I should have paid closer attention! The only thing I can figure at this point is something about the new firmware breaks the driver. We've tried on a few machines and get the same error. I also upgraded to device firmware 3.2.302 and see the same thing. I'm not sure how to downgrade the firmware as kvaser doesn't post those binaries.
As for the kernel version, we're running 3.12.0 so I believe you're saying that does include the fix?
Yes this version includes the fix.
Is it possible for you to take a wireshark capture on the usb bus when the probing of the device is made by the kvaser_usb driver? Can you also check if the device is correclty probed by the Kvaser leaf driver, i.e. the one you can find on the kvaser website?
Thanks,
Signature · 1 line
Olivier
Re: (Case 14420) Kvaser socketCAN support
Hi guys,
Some, but not all, versions of older firmware are available on the download page of the website, just click the Older versions link on the specific download. If you need another version than available, just let me know and I'll post it.
Best regards
Jerry Thorsén
Kvaser Support
[email protected]
---------------------------------------------------------------------------
-----Original Message-----
From: "Olivier Sobrie" <[email protected]>
Reply-To: "Olivier Sobrie" <[email protected]>
Date: Sat, 3 May 2014 15:18:16 +0200
To: "Smith, Christopher - 0999 - MITLL" <[email protected]>
Cc: "Oliver Hartkopp" <[email protected]>, "Adams, Shawn - 0999 - MITLL" <[email protected]>, "[email protected]" <[email protected]>, "Kvaser Support ([email protected])" <[email protected]>
Subject: Re: Kvaser socketCAN support
Quoted 24 lines
Hello Christopher,
Quoted 9 lines · On Fri, May 02, 2014 at 10:19:02AM -0400, Smith, Christopher - 0999 - MITLL…
Sorry for the mix up to the Olivers. I should have paid closer attention! The only thing I can figure at this point is something about the new firmware breaks the driver. We've tried on a few machines and get the same error. I also upgraded to device firmware 3.2.302 and see the same thing. I'm not sure how to downgrade the firmware as kvaser doesn't post those binaries.
As for the kernel version, we're running 3.12.0 so I believe you're saying that does include the fix?
Yes this version includes the fix.
Is it possible for you to take a wireshark capture on the usb bus when the probing of the device is made by the
kvaser_usbdriver? Can you also check if the device is correclty probed by the Kvaser leaf driver, i.e. the one you can find on the kvaser website?Thanks,
Signature · 1 line
Olivier
Re: (Case 14420) Kvaser socketCAN support
Hi Jerry,
Quoted 3 lines · Kvaser Support
Hi guys,
Some, but not all, versions of older firmware are available on the download page of the website, just click the Older versions link on the specific download. If you need another version than available, just let me know and I'll post it.
Ok thanks.
I assume it is still not possible to upgrade the firmware from a Linux machine?
Kr,
Olivier
Re: (Case 14420) Kvaser socketCAN support
Correct. You will need to use a Windows machine to perform the firmware upgrade.
Best regards,
Troy
Signature · 3 lines
Kvaser Support [email protected] ---------------------------------------------------------------------------
-----Original Message-----
From: "Olivier Sobrie" <[email protected]>
Reply-To: "Olivier Sobrie" <[email protected]>
Date: Sun, 4 May 2014 22:14:58 +0200
To: "Kvaser Support" <[email protected]>
Cc: "Oliver Hartkopp" <[email protected]>, "Adams, Shawn - 0999 - MITLL" <[email protected]>, "[email protected]" <[email protected]>, "Smith, Christopher - 0999 - MITLL" <[email protected]>
Subject: Re: (Case 14420) Kvaser socketCAN support
Quoted 14 lines
Hi Jerry,
Quoted 3 lines · Kvaser Support
Hi guys,
Some, but not all, versions of older firmware are available on the download page of the website, just click the Older versions link on the specific download. If you need another version than available, just let me know and I'll post it.
Ok thanks.
I assume it is still not possible to upgrade the firmware from a Linux machine?Kr,
Olivier
Hello Christopher,
Quoted 9 lines · On 2 May 2014 16:19, Smith, Christopher - 0999 - MITLL…
Sorry for the mix up to the Olivers. I should have paid closer attention! The only thing I can figure at this point is something about the new firmware breaks the driver. We've tried on a few machines and get the same error. I also upgraded to device firmware 3.2.302 and see the same thing. I'm not sure how to downgrade the firmware as kvaser doesn't post those binaries.
As for the kernel version, we're running 3.12.0 so I believe you're saying that does include the fix?
I found a Windows PC and upgraded the firmware of my kvaser Memorator Professional. I just did a test with firmware 3.2.302 on linux v3.13. and didn't see any problem in the probe function...
[554511.827130] usb 2-2: new high-speed USB device number 8 using ehci-pci [554511.942497] usb 2-2: New USB device found, idVendor=0bfd, idProduct=0017 [554511.942502] usb 2-2: New USB device strings: Mfr=0, Product=2, SerialNumber=0 [554511.942505] usb 2-2: Product: Kvaser Memorator Professional [554511.947739] kvaser_usb 2-2:1.0: Firmware version: 3.2.302 [554511.954752] kvaser_usb 2-2:1.0 can0: device registered [554511.971808] kvaser_usb 2-2:1.0 can1: device registered
Let me know if you still have an issue.
If so, try to take a wireshark capture.
Kind regards,
Signature · 1 line
Olivier