LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-09-2014, 02:40 AM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Rep: Reputation: 76
The inner workings of USB.


Hi: I have a program which runs in a microcontroller which communicates with a PC compatible desktop computer via USB. I would like to know which of the data flow types it uses: bulk, interrupt or isochronous. Of course I have the sources. How could I do in order to know? If you need further information I'm ready to give it to you. NOTE: I forgot. Everything is implemented in software. The micro has no USB support builtin.

Last edited by stf92; 01-09-2014 at 02:41 AM.
 
Old 01-10-2014, 07:38 AM   #2
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 4,442

Original Poster
Rep: Reputation: 76
It was very easy, after all. I plugged the device into one of the machine's USB jacks and ran 'lsusb -v'.
Code:
     Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval               4
The answer is given under 'Transfer type'.
 
  


Reply



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
I would like to know more on the Inner Workings of Linux and its subsystems WysDieDeur Linux - General 10 07-28-2013 02:38 PM
LXer: The Mysterious Workings of Wikis: Who Owns What? LXer Syndicated Linux News 0 10-10-2012 08:21 PM
LXer: The inner workings of openSUSE LXer Syndicated Linux News 0 09-20-2012 11:30 PM
inner web workings ropeboardCEO Linux - General 3 12-26-2004 12:45 PM
Telnet workings... rickMah Linux - Networking 3 10-01-2003 12:58 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:52 PM.

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
Open Source Consulting | Domain Registration