All of lore.kernel.org
 help / color / mirror / Atom feed
* Can't start ESD CAN-USB/2
@ 2014-01-31 16:09 Francesco Giovannini
  2014-01-31 16:14 ` Marc Kleine-Budde
  0 siblings, 1 reply; 15+ messages in thread
From: Francesco Giovannini @ 2014-01-31 16:09 UTC (permalink / raw)
  To: linux-can

Hi guys!

I am running OpenSuse 12.2, kernel 3.4.63-2.44-desktop. I downloaded and 
installed libsocketcan v0.0.9 and canutils v4.0.6. I then compiled the 
esd_can2 module and modprobed it correctly. When i plug in my CAN-USB/2 
device i get the following from dmesg:

    [186823.262021] usb 1-10: new high-speed USB device number 22 using
    ehci_hcd
    [186823.826031] usb 1-10: device not accepting address 22, error -71
    [186823.877025] hub 1-0:1.0: unable to enumerate USB device on port 10
    [186827.879018] usb 1-10: new high-speed USB device number 24 using
    ehci_hcd
    [186827.995429] usb 1-10: New USB device found, idVendor=0ab4,
    idProduct=0010
    [186827.995432] usb 1-10: New USB device strings: Mfr=1, Product=2,
    SerialNumber=3
    [186827.995435] usb 1-10: Product: USB2292
    [186827.995438] usb 1-10: Manufacturer: esd electronic system design
    gmbh (www.esd-electronics.com)
    [186827.995440] usb 1-10: SerialNumber: GM001950
    [186827.997824] esd_usb2 1-10:1.0: can0: device can0 registered

The device appears to be correctly recognised and the can0 interface is 
ready to be used. I then set the bitrate and several other paramters with:

    # canconfig can0 bittiming  prop-seg 2 phase-seg1 12 phase-seg2 5
    sjw 1 brp 3 tq 50

    can0 bittiming:
         tq: 50, prop-seq: 2 phase-seq1: 12 phase-seq2: 5 sjw: 1, brp: 3
    can0 bitrate: 1000000, sample-point: 0.750

However when i try to start the interface with # ifconfig can0 up, I get 
the following error:

    SIOCSIFFLAGS: Invalid argument

If I look at the details for the can0 interface it seems that all the 
configuration parameters I sent earlier are not taken into account:

    # ip -d link show can0
    16: can0: <NOARP,ECHO> mtu 16 qdisc noop state DOWN mode DEFAULT qlen 10
         link/can
         can state STOPPED (berr-counter tx 0 rx 0) restart-ms 0
         bitrate 0 sample-point 0.000
         tq 0 prop-seg 0 phase-seg1 0 phase-seg2 0 sjw 0
         esd_usb2: tseg1 1..16 tseg2 1..8 sjw 1..4 brp 1..1024 brp-inc 1
         clock 60000000

Also, for reference sake, my kernel is compiled with 
CONFIG_CAN_CALC_BITTIMING=y. I am of course running all of these 
commands as root.

I must say this is a very weird behaviour. I have been struggling 
without being able to see the light and I really hope one of you guys 
might have a clue about what is going on.


Thanks a lot!
Francesco
-- 
*Francesco Giovannini*
Research Fellow
iCub Facility
*Istituto Italiano di Tecnologia*
Via Morego, 30 16163 Genova
/email:/ francesco.giovannini@iit.it <mailto://francesco.giovannini@iit.it>
www.iit.it <http://www.iit.it>

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Can't start ESD CAN-USB/2
  2014-01-31 16:09 Can't start ESD CAN-USB/2 Francesco Giovannini
@ 2014-01-31 16:14 ` Marc Kleine-Budde
  2014-01-31 17:04   ` Francesco Giovannini
  0 siblings, 1 reply; 15+ messages in thread
From: Marc Kleine-Budde @ 2014-01-31 16:14 UTC (permalink / raw)
  To: Francesco Giovannini, linux-can

[-- Attachment #1: Type: text/plain, Size: 1937 bytes --]

On 01/31/2014 05:09 PM, Francesco Giovannini wrote:
> Hi guys!
> 
> I am running OpenSuse 12.2, kernel 3.4.63-2.44-desktop. I downloaded and
> installed libsocketcan v0.0.9 and canutils v4.0.6. I then compiled the
> esd_can2 module and modprobed it correctly. When i plug in my CAN-USB/2
> device i get the following from dmesg:
> 
>    [186823.262021] usb 1-10: new high-speed USB device number 22 using
>    ehci_hcd
>    [186823.826031] usb 1-10: device not accepting address 22, error -71
>    [186823.877025] hub 1-0:1.0: unable to enumerate USB device on port 10
>    [186827.879018] usb 1-10: new high-speed USB device number 24 using
>    ehci_hcd
>    [186827.995429] usb 1-10: New USB device found, idVendor=0ab4,
>    idProduct=0010
>    [186827.995432] usb 1-10: New USB device strings: Mfr=1, Product=2,
>    SerialNumber=3
>    [186827.995435] usb 1-10: Product: USB2292
>    [186827.995438] usb 1-10: Manufacturer: esd electronic system design
>    gmbh (www.esd-electronics.com)
>    [186827.995440] usb 1-10: SerialNumber: GM001950
>    [186827.997824] esd_usb2 1-10:1.0: can0: device can0 registered
> 
> The device appears to be correctly recognised and the can0 interface is
> ready to be used. I then set the bitrate and several other paramters with:
> 
>    # canconfig can0 bittiming  prop-seg 2 phase-seg1 12 phase-seg2 5
>    sjw 1 brp 3 tq 50
> 
>    can0 bittiming:
>         tq: 50, prop-seq: 2 phase-seq1: 12 phase-seq2: 5 sjw: 1, brp: 3
>    can0 bitrate: 1000000, sample-point: 0.750

Try to set the bittiming with this command:

    canconfig can0 bitrate 1000000

Does this work?

Marc

-- 
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   |


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 242 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Can't start ESD CAN-USB/2
  2014-01-31 16:14 ` Marc Kleine-Budde
@ 2014-01-31 17:04   ` Francesco Giovannini
  2014-01-31 17:26     ` Marc Kleine-Budde
  0 siblings, 1 reply; 15+ messages in thread
From: Francesco Giovannini @ 2014-01-31 17:04 UTC (permalink / raw)
  To: Marc Kleine-Budde; +Cc: linux-can

Hi Mark,

I tried #canconfig can0 bitrate 1000000

    can0 bitrate: 1000000, sample-point: 0.750

I am however still unable to successfully start the can0 interface with 
# ifconfig can0 up. Same error shows up.


Francesco

On 31/01/14 17:14, Marc Kleine-Budde wrote:
> On 01/31/2014 05:09 PM, Francesco Giovannini wrote:
>> Hi guys!
>>
>> I am running OpenSuse 12.2, kernel 3.4.63-2.44-desktop. I downloaded and
>> installed libsocketcan v0.0.9 and canutils v4.0.6. I then compiled the
>> esd_can2 module and modprobed it correctly. When i plug in my CAN-USB/2
>> device i get the following from dmesg:
>>
>>     [186823.262021] usb 1-10: new high-speed USB device number 22 using
>>     ehci_hcd
>>     [186823.826031] usb 1-10: device not accepting address 22, error -71
>>     [186823.877025] hub 1-0:1.0: unable to enumerate USB device on port 10
>>     [186827.879018] usb 1-10: new high-speed USB device number 24 using
>>     ehci_hcd
>>     [186827.995429] usb 1-10: New USB device found, idVendor=0ab4,
>>     idProduct=0010
>>     [186827.995432] usb 1-10: New USB device strings: Mfr=1, Product=2,
>>     SerialNumber=3
>>     [186827.995435] usb 1-10: Product: USB2292
>>     [186827.995438] usb 1-10: Manufacturer: esd electronic system design
>>     gmbh (www.esd-electronics.com)
>>     [186827.995440] usb 1-10: SerialNumber: GM001950
>>     [186827.997824] esd_usb2 1-10:1.0: can0: device can0 registered
>>
>> The device appears to be correctly recognised and the can0 interface is
>> ready to be used. I then set the bitrate and several other paramters with:
>>
>>     # canconfig can0 bittiming  prop-seg 2 phase-seg1 12 phase-seg2 5
>>     sjw 1 brp 3 tq 50
>>
>>     can0 bittiming:
>>          tq: 50, prop-seq: 2 phase-seq1: 12 phase-seq2: 5 sjw: 1, brp: 3
>>     can0 bitrate: 1000000, sample-point: 0.750
> Try to set the bittiming with this command:
>
>      canconfig can0 bitrate 1000000
>
> Does this work?
>
> Marc
>

-- 
*Francesco Giovannini*
Research Fellow
iCub Facility
*Istituto Italiano di Tecnologia*
Via Morego, 30 16163 Genova
/email:/ francesco.giovannini@iit.it <mailto://francesco.giovannini@iit.it>
www.iit.it <http://www.iit.it>

iit-logo-icub

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Can't start ESD CAN-USB/2
  2014-01-31 17:04   ` Francesco Giovannini
@ 2014-01-31 17:26     ` Marc Kleine-Budde
  2014-01-31 17:27       ` Marc Kleine-Budde
  0 siblings, 1 reply; 15+ messages in thread
From: Marc Kleine-Budde @ 2014-01-31 17:26 UTC (permalink / raw)
  To: Francesco Giovannini; +Cc: linux-can

[-- Attachment #1: Type: text/plain, Size: 637 bytes --]

On 01/31/2014 06:04 PM, Francesco Giovannini wrote:
> I tried #canconfig can0 bitrate 1000000
> 
>    can0 bitrate: 1000000, sample-point: 0.750
> 
> I am however still unable to successfully start the can0 interface with
> # ifconfig can0 up. Same error shows up.

What's the outout of "canconfig can0" after "canconfig can0 bitrate 1000000"

Marc

-- 
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   |


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 242 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Can't start ESD CAN-USB/2
  2014-01-31 17:26     ` Marc Kleine-Budde
@ 2014-01-31 17:27       ` Marc Kleine-Budde
  2014-01-31 17:38         ` Francesco Giovannini
  0 siblings, 1 reply; 15+ messages in thread
From: Marc Kleine-Budde @ 2014-01-31 17:27 UTC (permalink / raw)
  To: Francesco Giovannini; +Cc: linux-can

[-- Attachment #1: Type: text/plain, Size: 838 bytes --]

On 01/31/2014 06:26 PM, Marc Kleine-Budde wrote:
> On 01/31/2014 06:04 PM, Francesco Giovannini wrote:
>> I tried #canconfig can0 bitrate 1000000
>>
>>    can0 bitrate: 1000000, sample-point: 0.750
>>
>> I am however still unable to successfully start the can0 interface with
>> # ifconfig can0 up. Same error shows up.
> 
> What's the outout of "canconfig can0" after "canconfig can0 bitrate 1000000"

Please try as root and send me the output:

    dmesg -c > /dev/null
    canconfig can0 bitrate 1000000
    canconfig can0
    dmesg

Marc

-- 
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   |


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 242 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* RE: Can't start ESD CAN-USB/2
  2014-01-31 17:27       ` Marc Kleine-Budde
@ 2014-01-31 17:38         ` Francesco Giovannini
  2014-01-31 17:43           ` Marc Kleine-Budde
  0 siblings, 1 reply; 15+ messages in thread
From: Francesco Giovannini @ 2014-01-31 17:38 UTC (permalink / raw)
  To: Marc Kleine-Budde; +Cc: linux-can

Here is the output:

oSuseBox-IIT:/home/fgiovannini # dmesg -c > /dev/null

oSuseBox-IIT:/home/fgiovannini # canconfig can0 bitrate 1000000
can0 bitrate: 1000000, sample-point: 0.750

oSuseBox-IIT:/home/fgiovannini # canconfig can0
can0 bitrate: 0, sample-point: 0.000
can0 bittiming:
	tq: 0, prop-seq: 0 phase-seq1: 0 phase-seq2: 0 sjw: 0, brp: 0
can0 state: STOPPED
can0 restart-ms: 0
can0 ctrlmode: loopback[OFF], listen-only[OFF], tripple-sampling[OFF],one-shot[OFF], berr-reporting[OFF]
can0 clock freq: 60000000
can0 bittiming-constants: name esd_usb2,
	tseg1-min: 1, tseg1-max: 16, tseg2-min: 1, tseg2-max: 8,
	sjw-max 4, brp-min: 1, brp-max: 1024, brp-inc: 1,

oSuseBox-IIT:/home/fgiovannini # dmesg
[ 1189.194292] esd_usb2 1-10:1.0: can0: setting BTR=0x804d0002
[ 1189.195338] usb 1-10: USB disconnect, device number 7
[ 1189.432021] usb 1-10: new high-speed USB device number 8 using ehci_hcd
[ 1189.547438] usb 1-10: New USB device found, idVendor=0ab4, idProduct=0010
[ 1189.547442] usb 1-10: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1189.547445] usb 1-10: Product: USB2292
[ 1189.547447] usb 1-10: Manufacturer: esd electronic system design gmbh (www.esd-electronics.com)
[ 1189.547450] usb 1-10: SerialNumber: GM001950
[ 1189.549832] esd_usb2 1-10:1.0: can0: device can0 registered


Weird. Looks like canconfig bitrate acts like it is unplugging and plugging the device. Is this normal?

--
Francesco Giovannini
Research Fellow
iCub Facility
Istituto Italiano di Tecnologia
Via Morego, 30 16163 Genova
email: francesco.giovannini@iit.it



________________________________________
From: Marc Kleine-Budde [mkl@pengutronix.de]
Sent: Friday, January 31, 2014 6:27 PM
To: Francesco Giovannini
Cc: linux-can@vger.kernel.org
Subject: Re: Can't start ESD CAN-USB/2

On 01/31/2014 06:26 PM, Marc Kleine-Budde wrote:
> On 01/31/2014 06:04 PM, Francesco Giovannini wrote:
>> I tried #canconfig can0 bitrate 1000000
>>
>>    can0 bitrate: 1000000, sample-point: 0.750
>>
>> I am however still unable to successfully start the can0 interface with
>> # ifconfig can0 up. Same error shows up.
>
> What's the outout of "canconfig can0" after "canconfig can0 bitrate 1000000"

Please try as root and send me the output:

    dmesg -c > /dev/null
    canconfig can0 bitrate 1000000
    canconfig can0
    dmesg

Marc

--
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   |


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Can't start ESD CAN-USB/2
  2014-01-31 17:38         ` Francesco Giovannini
@ 2014-01-31 17:43           ` Marc Kleine-Budde
       [not found]             ` <52EBE25E.40707@iit.it>
  0 siblings, 1 reply; 15+ messages in thread
From: Marc Kleine-Budde @ 2014-01-31 17:43 UTC (permalink / raw)
  To: Francesco Giovannini; +Cc: linux-can

[-- Attachment #1: Type: text/plain, Size: 2298 bytes --]

On 01/31/2014 06:38 PM, Francesco Giovannini wrote:
> Here is the output:
> 
> oSuseBox-IIT:/home/fgiovannini # dmesg -c > /dev/null
> 
> oSuseBox-IIT:/home/fgiovannini # canconfig can0 bitrate 1000000
> can0 bitrate: 1000000, sample-point: 0.750
> 
> oSuseBox-IIT:/home/fgiovannini # canconfig can0
> can0 bitrate: 0, sample-point: 0.000
> can0 bittiming:
> 	tq: 0, prop-seq: 0 phase-seq1: 0 phase-seq2: 0 sjw: 0, brp: 0
> can0 state: STOPPED
> can0 restart-ms: 0
> can0 ctrlmode: loopback[OFF], listen-only[OFF], tripple-sampling[OFF],one-shot[OFF], berr-reporting[OFF]
> can0 clock freq: 60000000
> can0 bittiming-constants: name esd_usb2,
> 	tseg1-min: 1, tseg1-max: 16, tseg2-min: 1, tseg2-max: 8,
> 	sjw-max 4, brp-min: 1, brp-max: 1024, brp-inc: 1,
> 
> oSuseBox-IIT:/home/fgiovannini # dmesg
> [ 1189.194292] esd_usb2 1-10:1.0: can0: setting BTR=0x804d0002
> [ 1189.195338] usb 1-10: USB disconnect, device number 7
> [ 1189.432021] usb 1-10: new high-speed USB device number 8 using ehci_hcd
> [ 1189.547438] usb 1-10: New USB device found, idVendor=0ab4, idProduct=0010
> [ 1189.547442] usb 1-10: New USB device strings: Mfr=1, Product=2, SerialNumber=3
> [ 1189.547445] usb 1-10: Product: USB2292
> [ 1189.547447] usb 1-10: Manufacturer: esd electronic system design gmbh (www.esd-electronics.com)
> [ 1189.547450] usb 1-10: SerialNumber: GM001950
> [ 1189.549832] esd_usb2 1-10:1.0: can0: device can0 registered
> 
> 
> Weird. Looks like canconfig bitrate acts like it is unplugging and plugging the device. Is this normal?

Correct analysis. This is not normal....From you original mail:

> I am running OpenSuse 12.2, kernel 3.4.63-2.44-desktop. I downloaded
> and installed libsocketcan v0.0.9 and canutils v4.0.6. I then
> compiled the esd_can2 module and modprobed it correctly. When i plug
> in my CAN-USB/2 device i get the following from dmesg:

Why do you have compiled the esc_can2 by yourself? It is part of the
kernel. Is it not activated on suse?

Marc
-- 
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   |


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 242 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Can't start ESD CAN-USB/2
       [not found]             ` <52EBE25E.40707@iit.it>
@ 2014-01-31 17:56               ` Marc Kleine-Budde
       [not found]                 ` <52EBF7C5.9050309@iit.it>
                                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Marc Kleine-Budde @ 2014-01-31 17:56 UTC (permalink / raw)
  To: Francesco Giovannini; +Cc: linux-can

[-- Attachment #1: Type: text/plain, Size: 792 bytes --]

On 01/31/2014 06:50 PM, Francesco Giovannini wrote:
> Yes I had to compile it myself because OpenSuse does not include it. I
> first added it to the kernel config as a module and then ran make
> M=./drivers/net/can/usb in the kernel source tree.

Please don't top post.

Have you used the kernel sources provided by suse? If not, try these.
Try a different USB port on the machine, if the CAN adapter has a USB
cable that is removable, swap it too. If it's still failing try a
different machine.

Marc

-- 
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   |


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 242 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Can't start ESD CAN-USB/2
       [not found]                 ` <52EBF7C5.9050309@iit.it>
@ 2014-02-01 12:21                   ` Marc Kleine-Budde
       [not found]                     ` <52ECEE3D.4000701@iit.it>
  0 siblings, 1 reply; 15+ messages in thread
From: Marc Kleine-Budde @ 2014-02-01 12:21 UTC (permalink / raw)
  To: Francesco Giovannini; +Cc: linux-can

[-- Attachment #1: Type: text/plain, Size: 1111 bytes --]

On 01/31/2014 08:21 PM, Francesco Giovannini wrote:
> Sorry my email client does that automatically.

It's all a matter where you position your cursor before starting to type :P

> I just re-build the kernel module without luck. I am getting the same
> weird behaviour. I also tried changing CAN-USB/2 device, cable and port.
> This too did not solve the problem.
> 
> Unfortunately I cannot try a different machine. I am bound to this
> OpenSuse machine because of hardware requirements.

If you have a different linux machine I suggest to test, just to make
sure the USB adapter works under linux. Although the kernel is quite new
can you try a newer one?

> Any chance you might have a last minute inspiration? ;)

Can you make a firmware update of the USB adapter? Does the adapter work
under windows?

Marc

-- 
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   |


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 242 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Can't start ESD CAN-USB/2
       [not found]                     ` <52ECEE3D.4000701@iit.it>
@ 2014-02-01 14:27                       ` Marc Kleine-Budde
       [not found]                         ` <5301FF2B.4020701@iit.it>
  0 siblings, 1 reply; 15+ messages in thread
From: Marc Kleine-Budde @ 2014-02-01 14:27 UTC (permalink / raw)
  To: Francesco Giovannini; +Cc: linux-can

[-- Attachment #1: Type: text/plain, Size: 1396 bytes --]

>>> Any chance you might have a last minute inspiration? ;)
>> Can you make a firmware update of the USB adapter? Does the adapter work
>> under windows?

> So yesterday I tried the same esd device on my Debian machine running
> Wheezy and kernel 3.2.0 (so an older kernel than the OpenSuse one) and
> everything worked fine. I was able to set the bitrate and dump data from
> the device. And yes the device works flawlessly under windows.

Okay, the device is working. Even under Linux :)

> With Suse I also tried switching esd devices and cables without any luck.

But the Suse is a different machine, so different USB
controller/hardware and different USB driver.

> Do you think this behaviour might be due caused by problems on the
> driver side or on the canutils side? As in: should I raise this issue
> with the ESD driver developers?

It's not the canutils, they just send the parameters into the kernel.
The kernel driver hasn't changed much. Feel free to contact the driver
developer Matthias Fuchs <matthias.fuchs@esd.eu>, keep the mailinglist
on Cc, if possible.

regards,
Marc

-- 
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   |


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 242 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Can't start ESD CAN-USB/2
       [not found]                         ` <5301FF2B.4020701@iit.it>
@ 2014-02-17 12:24                           ` Francesco Giovannini
  2014-02-17 13:14                             ` Matthias Fuchs
  0 siblings, 1 reply; 15+ messages in thread
From: Francesco Giovannini @ 2014-02-17 12:24 UTC (permalink / raw)
  To: matthias.fuchs; +Cc: Marc Kleine-Budde, support, linux-can


On 02/17/2014 08:29 AM, Matthias Fuchs wrote:
> Hi Francesco,
>
> I just saw your posting to the linux-can list about our CAN-USB/2.
>
> Did you solve your problems?
>
> Matthias
>

On 02/01/2014 03:27 PM, Marc Kleine-Budde wrote:
>>>> Any chance you might have a last minute inspiration? ;)
>>> Can you make a firmware update of the USB adapter? Does the adapter work
>>> under windows?
>> So yesterday I tried the same esd device on my Debian machine running
>> Wheezy and kernel 3.2.0 (so an older kernel than the OpenSuse one) and
>> everything worked fine. I was able to set the bitrate and dump data from
>> the device. And yes the device works flawlessly under windows.
> Okay, the device is working. Even under Linux :)
>
>> With Suse I also tried switching esd devices and cables without any luck.
> But the Suse is a different machine, so different USB
> controller/hardware and different USB driver.
>
>> Do you think this behaviour might be due caused by problems on the
>> driver side or on the canutils side? As in: should I raise this issue
>> with the ESD driver developers?
> It's not the canutils, they just send the parameters into the kernel.
> The kernel driver hasn't changed much. Feel free to contact the driver
> developer Matthias Fuchs<matthias.fuchs@esd.eu>, keep the mailinglist
> on Cc, if possible.
>
> regards,
> Marc
>

Hi Matthias,

I was told to keep the linux-can mailing list in the loop.

I did not solve the problem. I believe it might be due to a USB 
controller problem as Marc suggested. For information sake here are the 
output of dmesg, lsusb and lspci as I plug in the device:

    oSuseBox-IIT:/home/fgiovannini # dmesg | tail
    [ 1126.850018] usb 1-10: new high-speed USB device number 8 using
    ehci_hcd
    [ 1126.965630] usb 1-10: New USB device found, idVendor=0ab4,
    idProduct=0010
    [ 1126.965634] usb 1-10: New USB device strings: Mfr=1, Product=2,
    SerialNumber=3
    [ 1126.965637] usb 1-10: Product: USB2292
    [ 1126.965640] usb 1-10: Manufacturer: esd electronic system design
    gmbh (www.esd-electronics.com)
    [ 1126.965642] usb 1-10: SerialNumber: GM001950
    [ 1126.968027] esd_usb2 1-10:1.0: can0: device can0 registered


    oSuseBox-IIT:/home/fgiovannini # lsusb
    Bus 002 Device 002: ID 413c:3016 Dell Computer Corp. Optical
    5-Button Wheel Mouse
    Bus 001 Device 008: ID 0ab4:0010
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub


    oSuseBox-IIT:/home/fgiovannini # lspci
    00:00.0 Host bridge: NVIDIA Corporation MCP73 Host Bridge (rev a2)
    00:00.1 RAM memory: NVIDIA Corporation nForce 630i memory controller
    (rev a2)
    00:01.0 RAM memory: NVIDIA Corporation nForce 630i memory controller
    (rev a1)
    00:01.1 RAM memory: NVIDIA Corporation nForce 630i memory controller
    (rev a1)
    00:01.2 RAM memory: NVIDIA Corporation nForce 630i memory controller
    (rev a1)
    00:01.3 RAM memory: NVIDIA Corporation nForce 630i memory controller
    (rev a1)
    00:01.4 RAM memory: NVIDIA Corporation nForce 630i memory controller
    (rev a1)
    00:01.5 RAM memory: NVIDIA Corporation nForce 630i memory controller
    (rev a1)
    00:01.6 RAM memory: NVIDIA Corporation nForce 630i memory controller
    (rev a1)
    00:02.0 RAM memory: NVIDIA Corporation nForce 630i memory controller
    (rev a1)
    00:03.0 ISA bridge: NVIDIA Corporation MCP73 LPC Bridge (rev a2)
    00:03.1 SMBus: NVIDIA Corporation MCP73 SMBus (rev a1)
    00:03.2 RAM memory: NVIDIA Corporation MCP73 Memory Controller (rev a1)
    00:03.3 Co-processor: NVIDIA Corporation MCP73 Co-processor (rev a2)
    00:03.4 RAM memory: NVIDIA Corporation MCP73 Memory Controller (rev a1)
    00:04.0 USB controller: NVIDIA Corporation GeForce 7100/nForce 630i
    USB (rev a1)
    00:04.1 USB controller: NVIDIA Corporation MCP73 [nForce 630i] USB
    2.0 Controller (EHCI) (rev a1)
    00:08.0 IDE interface: NVIDIA Corporation MCP73 IDE (rev a1)
    00:09.0 Audio device: NVIDIA Corporation MCP73 High Definition Audio
    (rev a1)
    00:0a.0 PCI bridge: NVIDIA Corporation MCP73 PCI Express bridge (rev a1)
    00:0b.0 PCI bridge: NVIDIA Corporation MCP73 PCI Express bridge (rev a1)
    00:0c.0 PCI bridge: NVIDIA Corporation MCP73 PCI Express bridge (rev a1)
    00:0d.0 PCI bridge: NVIDIA Corporation MCP73 PCI Express bridge (rev a1)
    00:0e.0 SATA controller: NVIDIA Corporation GeForce 7100/nForce 630i
    SATA (rev a2)
    00:0f.0 Ethernet controller: NVIDIA Corporation MCP73 Ethernet (rev a2)
    02:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee
    ATI RV710 [Radeon HD 4350]
    02:00.1 Audio device: Advanced Micro Devices [AMD] nee ATI RV710/730
    HDMI Audio [Radeon HD 4000 series]


Francesco

-- 
*Francesco Giovannini*
Research Fellow
iCub Facility
*Istituto Italiano di Tecnologia*
Via Morego, 30 16163 Genova
/email:/ francesco.giovannini@iit.it <mailto://francesco.giovannini@iit.it>
/web:/ www.iit.it <http://www.iit.it>

iit-logo-icub

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Can't start ESD CAN-USB/2
  2014-02-17 12:24                           ` Francesco Giovannini
@ 2014-02-17 13:14                             ` Matthias Fuchs
  0 siblings, 0 replies; 15+ messages in thread
From: Matthias Fuchs @ 2014-02-17 13:14 UTC (permalink / raw)
  To: Francesco Giovannini; +Cc: Marc Kleine-Budde, esd - Support, linux-can

Hi Francesco,

I forwarded this issue to our support. We will try to reproduce
the issue here with your setup (Suse 12.2) and will come back to you
later.

We will keep the list on cc as far this has to do with linux-can.

Matthias

On 02/17/2014 01:24 PM, Francesco Giovannini wrote:
> 
> On 02/17/2014 08:29 AM, Matthias Fuchs wrote:
>> Hi Francesco,
>>
>> I just saw your posting to the linux-can list about our CAN-USB/2.
>>
>> Did you solve your problems?
>>
>> Matthias
>>
> 
> On 02/01/2014 03:27 PM, Marc Kleine-Budde wrote:
>>>>> Any chance you might have a last minute inspiration? ;)
>>>> Can you make a firmware update of the USB adapter? Does the adapter work
>>>> under windows?
>>> So yesterday I tried the same esd device on my Debian machine running
>>> Wheezy and kernel 3.2.0 (so an older kernel than the OpenSuse one) and
>>> everything worked fine. I was able to set the bitrate and dump data from
>>> the device. And yes the device works flawlessly under windows.
>> Okay, the device is working. Even under Linux :)
>>
>>> With Suse I also tried switching esd devices and cables without any luck.
>> But the Suse is a different machine, so different USB
>> controller/hardware and different USB driver.
>>
>>> Do you think this behaviour might be due caused by problems on the
>>> driver side or on the canutils side? As in: should I raise this issue
>>> with the ESD driver developers?
>> It's not the canutils, they just send the parameters into the kernel.
>> The kernel driver hasn't changed much. Feel free to contact the driver
>> developer Matthias Fuchs<matthias.fuchs@esd.eu>, keep the mailinglist
>> on Cc, if possible.
>>
>> regards,
>> Marc
>>
> 
> Hi Matthias,
> 
> I was told to keep the linux-can mailing list in the loop.
> 
> I did not solve the problem. I believe it might be due to a USB 
> controller problem as Marc suggested. For information sake here are the 
> output of dmesg, lsusb and lspci as I plug in the device:
> 
>     oSuseBox-IIT:/home/fgiovannini # dmesg | tail
>     [ 1126.850018] usb 1-10: new high-speed USB device number 8 using
>     ehci_hcd
>     [ 1126.965630] usb 1-10: New USB device found, idVendor=0ab4,
>     idProduct=0010
>     [ 1126.965634] usb 1-10: New USB device strings: Mfr=1, Product=2,
>     SerialNumber=3
>     [ 1126.965637] usb 1-10: Product: USB2292
>     [ 1126.965640] usb 1-10: Manufacturer: esd electronic system design
>     gmbh (www.esd-electronics.com)
>     [ 1126.965642] usb 1-10: SerialNumber: GM001950
>     [ 1126.968027] esd_usb2 1-10:1.0: can0: device can0 registered
> 
> 
>     oSuseBox-IIT:/home/fgiovannini # lsusb
>     Bus 002 Device 002: ID 413c:3016 Dell Computer Corp. Optical
>     5-Button Wheel Mouse
>     Bus 001 Device 008: ID 0ab4:0010
>     Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
>     Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> 
> 
>     oSuseBox-IIT:/home/fgiovannini # lspci
>     00:00.0 Host bridge: NVIDIA Corporation MCP73 Host Bridge (rev a2)
>     00:00.1 RAM memory: NVIDIA Corporation nForce 630i memory controller
>     (rev a2)
>     00:01.0 RAM memory: NVIDIA Corporation nForce 630i memory controller
>     (rev a1)
>     00:01.1 RAM memory: NVIDIA Corporation nForce 630i memory controller
>     (rev a1)
>     00:01.2 RAM memory: NVIDIA Corporation nForce 630i memory controller
>     (rev a1)
>     00:01.3 RAM memory: NVIDIA Corporation nForce 630i memory controller
>     (rev a1)
>     00:01.4 RAM memory: NVIDIA Corporation nForce 630i memory controller
>     (rev a1)
>     00:01.5 RAM memory: NVIDIA Corporation nForce 630i memory controller
>     (rev a1)
>     00:01.6 RAM memory: NVIDIA Corporation nForce 630i memory controller
>     (rev a1)
>     00:02.0 RAM memory: NVIDIA Corporation nForce 630i memory controller
>     (rev a1)
>     00:03.0 ISA bridge: NVIDIA Corporation MCP73 LPC Bridge (rev a2)
>     00:03.1 SMBus: NVIDIA Corporation MCP73 SMBus (rev a1)
>     00:03.2 RAM memory: NVIDIA Corporation MCP73 Memory Controller (rev a1)
>     00:03.3 Co-processor: NVIDIA Corporation MCP73 Co-processor (rev a2)
>     00:03.4 RAM memory: NVIDIA Corporation MCP73 Memory Controller (rev a1)
>     00:04.0 USB controller: NVIDIA Corporation GeForce 7100/nForce 630i
>     USB (rev a1)
>     00:04.1 USB controller: NVIDIA Corporation MCP73 [nForce 630i] USB
>     2.0 Controller (EHCI) (rev a1)
>     00:08.0 IDE interface: NVIDIA Corporation MCP73 IDE (rev a1)
>     00:09.0 Audio device: NVIDIA Corporation MCP73 High Definition Audio
>     (rev a1)
>     00:0a.0 PCI bridge: NVIDIA Corporation MCP73 PCI Express bridge (rev a1)
>     00:0b.0 PCI bridge: NVIDIA Corporation MCP73 PCI Express bridge (rev a1)
>     00:0c.0 PCI bridge: NVIDIA Corporation MCP73 PCI Express bridge (rev a1)
>     00:0d.0 PCI bridge: NVIDIA Corporation MCP73 PCI Express bridge (rev a1)
>     00:0e.0 SATA controller: NVIDIA Corporation GeForce 7100/nForce 630i
>     SATA (rev a2)
>     00:0f.0 Ethernet controller: NVIDIA Corporation MCP73 Ethernet (rev a2)
>     02:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee
>     ATI RV710 [Radeon HD 4350]
>     02:00.1 Audio device: Advanced Micro Devices [AMD] nee ATI RV710/730
>     HDMI Audio [Radeon HD 4000 series]
> 
> 
> Francesco
> 


-- 
------------------------------------------------------------------------
Dipl.-Ing. Matthias Fuchs
Head of System Design

esd electronic system design gmbh
Vahrenwalder Str. 207 - 30165 Hannover - GERMANY
Phone: +49-511-37298-0 - Fax: +49-511-37298-68
Please visit our homepage http://www.esd.eu
Quality Products - Made in Germany
-------------------------------------------------------------------------
Geschäftsführer: Klaus Detering
Amtsgericht Hannover HRB 51373 - VAT-ID DE 115672832
-------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Can't start ESD CAN-USB/2
  2014-01-31 17:56               ` Marc Kleine-Budde
       [not found]                 ` <52EBF7C5.9050309@iit.it>
@ 2014-02-17 13:30                 ` Matthias Fuchs
  2014-02-17 13:37                 ` Matthias Fuchs
  2 siblings, 0 replies; 15+ messages in thread
From: Matthias Fuchs @ 2014-02-17 13:30 UTC (permalink / raw)
  To: Marc Kleine-Budde, Francesco Giovannini; +Cc: linux-can

Hi Francesco,

On 01/31/2014 06:56 PM, Marc Kleine-Budde wrote:
> On 01/31/2014 06:50 PM, Francesco Giovannini wrote:
>> Yes I had to compile it myself because OpenSuse does not include it. I
>> first added it to the kernel config as a module and then ran make
>> M=./drivers/net/can/usb in the kernel source tree.
> 
> Please don't top post.
> 
> Have you used the kernel sources provided by suse? If not, try these.
> Try a different USB port on the machine, if the CAN adapter has a USB
> cable that is removable, swap it too. If it's still failing try a
> different machine.

Can you answer this question by Marc, please. Are you using a SuSE
provided kernel module or did you built it yourself? If so, how?

Are you using a 32 or 64 bit SuSE maschine?

Matthias


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: Can't start ESD CAN-USB/2
  2014-01-31 17:56               ` Marc Kleine-Budde
       [not found]                 ` <52EBF7C5.9050309@iit.it>
  2014-02-17 13:30                 ` Matthias Fuchs
@ 2014-02-17 13:37                 ` Matthias Fuchs
  2014-02-17 16:13                   ` Francesco Giovannini
  2 siblings, 1 reply; 15+ messages in thread
From: Matthias Fuchs @ 2014-02-17 13:37 UTC (permalink / raw)
  To: Marc Kleine-Budde, Francesco Giovannini; +Cc: linux-can

Hi Francesco,

On 01/31/2014 06:56 PM, Marc Kleine-Budde wrote:
> On 01/31/2014 06:50 PM, Francesco Giovannini wrote:
>> Yes I had to compile it myself because OpenSuse does not include it. I
>> first added it to the kernel config as a module and then ran make
>> M=./drivers/net/can/usb in the kernel source tree.
> 
> Please don't top post.
> 
> Have you used the kernel sources provided by suse? If not, try these.
> Try a different USB port on the machine, if the CAN adapter has a USB
> cable that is removable, swap it too. If it's still failing try a
> different machine.
> 
> Marc
> 
Can you answer Marc's question about the origin of the kernel module?
Did you built it yourself or are you using SuSE provided modules?
How did you built the module and from what sources?

Are you running on a 32 or 64 bit system?

Matthias

^ permalink raw reply	[flat|nested] 15+ messages in thread

* RE: Can't start ESD CAN-USB/2
  2014-02-17 13:37                 ` Matthias Fuchs
@ 2014-02-17 16:13                   ` Francesco Giovannini
  0 siblings, 0 replies; 15+ messages in thread
From: Francesco Giovannini @ 2014-02-17 16:13 UTC (permalink / raw)
  To: Matthias Fuchs, Marc Kleine-Budde; +Cc: linux-can

Hi Matthias,

I am running a 64bit system, using the "desktop" kernel package from 
OpenSuSe.
I used the linux-source package provided in OpenSuSe 12.2, copied the 
.config, added the module via menuconfig and then ran
     make M=./drivers/net/can/usb in the kernel source tree

to build the module.

Used packages:

     kernel-desktop
     kernel-desktop-devel
     kernel-default-devel
     kernel-devel
     kernel-source
     kernel-syms


Below are the output of uname and lsb_release:

     fgiovannini@oSuseBox-IIT:~> uname -a
     Linux oSuseBox-IIT 3.4.63-2.44-desktop #1 SMP PREEMPT Wed Oct 2 
11:18:32 UTC 2013 (d91a619) i686 i686 i386 GNU/Linux

     fgiovannini@oSuseBox-IIT:~> lsb_release
     LSB Version:    n/a
     fgiovannini@oSuseBox-IIT:~> lsb_release -a
     LSB Version:    n/a
     Distributor ID:    SUSE LINUX
     Description:    openSUSE 12.2 (i586)
     Release:    12.2
     Codename:    Mantis


Francesco
--
Francesco Giovannini
Research Fellow
iCub Facility
Istituto Italiano di Tecnologia
Via Morego, 30 16163 Genova
email: francesco.giovannini@iit.it
web: www.iit.it



________________________________________
From: Matthias Fuchs [matthias.fuchs@esd.eu]
Sent: Monday, February 17, 2014 2:37 PM
To: Marc Kleine-Budde; Francesco Giovannini
Cc: linux-can@vger.kernel.org
Subject: Re: Can't start ESD CAN-USB/2

Hi Francesco,

On 01/31/2014 06:56 PM, Marc Kleine-Budde wrote:
> On 01/31/2014 06:50 PM, Francesco Giovannini wrote:
>> Yes I had to compile it myself because OpenSuse does not include it. I
>> first added it to the kernel config as a module and then ran make
>> M=./drivers/net/can/usb in the kernel source tree.
>
> Please don't top post.
>
> Have you used the kernel sources provided by suse? If not, try these.
> Try a different USB port on the machine, if the CAN adapter has a USB
> cable that is removable, swap it too. If it's still failing try a
> different machine.
>
> Marc
>
Can you answer Marc's question about the origin of the kernel module?
Did you built it yourself or are you using SuSE provided modules?
How did you built the module and from what sources?

Are you running on a 32 or 64 bit system?

Matthias


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2014-02-17 16:13 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-31 16:09 Can't start ESD CAN-USB/2 Francesco Giovannini
2014-01-31 16:14 ` Marc Kleine-Budde
2014-01-31 17:04   ` Francesco Giovannini
2014-01-31 17:26     ` Marc Kleine-Budde
2014-01-31 17:27       ` Marc Kleine-Budde
2014-01-31 17:38         ` Francesco Giovannini
2014-01-31 17:43           ` Marc Kleine-Budde
     [not found]             ` <52EBE25E.40707@iit.it>
2014-01-31 17:56               ` Marc Kleine-Budde
     [not found]                 ` <52EBF7C5.9050309@iit.it>
2014-02-01 12:21                   ` Marc Kleine-Budde
     [not found]                     ` <52ECEE3D.4000701@iit.it>
2014-02-01 14:27                       ` Marc Kleine-Budde
     [not found]                         ` <5301FF2B.4020701@iit.it>
2014-02-17 12:24                           ` Francesco Giovannini
2014-02-17 13:14                             ` Matthias Fuchs
2014-02-17 13:30                 ` Matthias Fuchs
2014-02-17 13:37                 ` Matthias Fuchs
2014-02-17 16:13                   ` Francesco Giovannini

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.