LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-15-2015, 05:50 AM   #1
awadhesh_emb
LQ Newbie
 
Registered: Mar 2012
Location: mumbai
Posts: 3

Rep: Reputation: Disabled
usb bulk transfer error: reset by peer


Hi,
I am working on usb device driver. Frequently I am getting problem in usb_bulk_msg during sending data from host to device, its returning -104 i.e. reset by peer.

I am using embedded linux_3.14 on Renesas RZA1H board.

Please let me know what is the issue.

Thanks
 
Old 05-15-2015, 01:22 PM   #2
eino
LQ Newbie
 
Registered: Jul 2013
Location: Delaware, USA
Distribution: antix, and Debian
Posts: 8

Rep: Reputation: Disabled
Quote:
Originally Posted by awadhesh_emb View Post
Hi,
I am working on usb device driver. Frequently I am getting problem in usb_bulk_msg during sending data from host to device, its returning -104 i.e. reset by peer.

I am using embedded linux_3.14 on Renesas RZA1H board.

Please let me know what is the issue.

Thanks
The usb driver your working on may be in conflict with the usb driver loaded by the kernel.
This will happen unless your building a kernel patch, for the new driver.
 
Old 05-19-2015, 02:44 AM   #3
awadhesh_emb
LQ Newbie
 
Registered: Mar 2012
Location: mumbai
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hi,
Thanks for your reply. I compile the usb driver on same kernel which I have loaded to the target. What may be other conflicts.
Please tell me in details because I am new for usb driver.
 
Old 05-19-2015, 06:37 AM   #4
eino
LQ Newbie
 
Registered: Jul 2013
Location: Delaware, USA
Distribution: antix, and Debian
Posts: 8

Rep: Reputation: Disabled
You can see the supported devices (by modalias) and their associated modules with

Code:
less /lib/modules/`uname -r`/modules.alias
If you grep for the usb-storage device driver, you'll see it has some specific devices it supports by vendor and device ID, and will also attempt to support any device with the right (storage) class, no matter the vendor/device.

You can influence this using userspace mechanisms on your OS (/etc/modprobe.d/ on Debian and friends. You can blacklist modules, or you can specify modules to be loaded by modalias, just like the modules.alias file (and using the same syntax).
Code:
depmod -a
will then regenerate the module loader's patterns.

If the driver has no support for your device, it should ignore it.

This is the theory in the general case.

In practice, and in the case of USB, I see your device appears to have two interfaces, of which storage is one. The kernel will attach to the storage interface of the overall device. If the other interface has the right class, the usbnet driver could attach to it. Yes, you can have multiple drivers attached to the same physical device, because a USB device exports multiple interfaces e.g. my Logitech G15 keyboard exports two because it has a keyboard device and an LCD screen, each of which is handled by a separate drivers.

The fact that the second interface of your USB device isn't detected is indicative of lack of support in the kernel. Whatever the case, you can list the device interfaces/endpoints in excruciating detail using
Code:
lsusb -v | less
, then scroll down to your particular device.

You can limit the output by device:vendor ID or USB path if you're so inclined.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
during usb bulk transfer, connection is reset by peer awadhesh_emb Linux - Kernel 1 05-15-2015 04:00 PM
ERROR reading from socket: Connection reset by peer sweetytweety Linux - Newbie 3 05-16-2008 06:21 AM
welcome response error + connection reset by peer rnj Linux - Software 0 10-20-2004 11:04 AM
Network error: Connection reset by peer jeffpoulsen Linux - Networking 0 10-09-2003 07:31 PM
Network Error: Connection Reset by Peer Bob Welch Linux - Networking 3 12-09-2002 02:07 PM


All times are GMT -5. The time now is 06:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration