• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Microcontrollers » Stellaris® ARM® Microcontrollers » Stellaris® ARM® LM3S Microcontrollers Forum » Controlling of USB devices by USB HOST through multiple USB HUBs
Share
Stellaris® ARM® Microcontrollers
  • Forum
Options
  • Subscribe via RSS
Helpful Stellaris® LM4F Series Links
  • LM4F Series
  • Stellaris PinMux Utility
  • Stellaris® LM4F120 LaunchPad
  • LM4F MCU Applications
  • LM4F MCU Video
  • ARM Cortex-M4F Whitepaper
  • Stellaris MCU Brochure
  • LM4F232 Eval Kit
  • Forums

    Controlling of USB devices by USB HOST through multiple USB HUBs

    This question is not answered
    kaleswara Rao
    Posted by kaleswara Rao
    on Dec 19 2011 03:28 AM
    Prodigy145 points

    Hi,

    I am using LM3s374 9 as USB HOST controller and TUSB2046B as USB HUB controller.... Now i am going to controller 30 USB Devices by USB Host through multiple HUBs...

    Query :

    1 . How can i address individual devices which are connected in multi HUB mechanism.

    2 . How can i pass data to a perticular device through this multiple HUBs...

     

    Can anybody answer the above mentioned question...

    Pls find the attached file.

    4353.USB_HUB_Cascading_mechanism.xlsx

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • TI Peggy
      Posted by TI Peggy
      on Dec 20 2011 16:40 PM
      Expert3425 points

      There is a set of registers in the USB Host module on the LM3S3749 that stores this information.  Each endpoint contains the following 8-bit registers for recording the target device's addressing information.

      USB Transmit Functional Address Endpoint n
      USB Transmit Hub Address Endpoint n
      USB Transmit Hub Port Endpoint n
      USB Receive Functional Address Endpoint n
      USB Receive Hub Address Endpoint n
      USB Receive Hub Port Endpoint n

      You should also be aware of an existing errata on Stellaris devices:

      Hope this helps,

      Peggy

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • kaleswara Rao
      Posted by kaleswara Rao
      on Dec 20 2011 23:23 PM
      Prodigy145 points

      Hi Peggy,

      ThanQQQ.. for u r valueble  information ...

      But by using those registers(what u have mentioned in last post),we can only accomdate the  information of one HUB and connected device to the corresponding HUB ..

      But my Query is how can i accomidate multiple HUBs and connected devices to corresponding HUBs...Please see the below figure ..

       

       With this above mentioned mechanism how can i Adress the individual device...

      - Kali

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • TI Peggy
      Posted by TI Peggy
      on Dec 21 2011 16:56 PM
      Expert3425 points

      Kali,

      The Stellaris LM3S3749 supports four endpoints.  However, in your configuration, it appears that you may only be using one configurable endpoint (with the addition of endpoint 0 for control transactions between devices).  In either case, you would write the device address of the desired device to the Functional Address Endpoint n register, the hub address of the desired device to the Hub Address Endpoint n, and the hub port of the desired device to the Hub Port Endpoint n register. At this point, the Stellaris device would send data packets over this endpoint to the desired device.  Section 16.2.2.1 of the datasheet explains this in more detail.  In the case of your particular setup, each hub and device will have its own unique address.

      I found this link which might explain the addressing process more clearly: http://www.lvr.com/usbcenum.htm.

      Hope this helps,

      Peggy

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • kaleswara Rao
      Posted by kaleswara Rao
      on Dec 21 2011 22:23 PM
      Prodigy145 points

       

      Hi Peggy,

      ThanQQ.. for u r valueble information and immidiate rpls

      I understood what u have explained in u r last reply... But problem is how can i accomadate the addresses of remaining HUBs and and Devices (which are connected to down streams ports of main HUB(Tier 2))...

      And u mentioned one more point ,Each device HUB and Device will have its own unique address.. But as per my knowledge HOST its self will set the address for perticular HUBs and devices ...But at the time of enumaration how host can detect these many devices (HUBs or Devices) and how it will going to assign the address...

      Is there any special mechanism exists for above mentioned query...Pls let me know...

      And one more doubt is shall i use functions which available in TI website for USB HOST and USB Device enumaration and data transfer operations...If it possible can u give me the steps for firware development.. In host and Device point of view..

      And guide me the Interrupt handling process in both cases like HOST mode Device mode... There is know ISR routine available in given USB Stack...How can i put the given interrupt handling functions in vector table..

       

      Mean while i will go through the link which u have given

       

      -Kali

       

       

       

       

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • TI Peggy
      Posted by TI Peggy
      on Dec 22 2011 10:41 AM
      Expert3425 points

      Kali,

      Although we do not have specific hub examples, it might be usefult to look through some of the USB host examples in the StellarisWare software package.  StellarisWare can be downloaded from here: www.ti.com/sw-lm3s.  Once you've installed StellarisWare, the USB Library User's Guide can be found in C:\StellarisWare\docs\SW-USBL-UG-xxxx.pdf.  Also, the examples are located in the board-specific folders located in C:\StellarisWare\boards.

      Hope this helps,

      Peggy

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • kaleswara Rao
      Posted by kaleswara Rao
      on Dec 22 2011 21:39 PM
      Prodigy145 points

      Hi peggy,

      ThanQQQ...

      I already having those codes..

      My doubt was, shall i use functions which available in TI website for USB HOST and USB Device enumaration and data transfer operations...If it possible can u give me the steps for firware development.. In host and Device point of view..

      And guide me the Interrupt handling process in both cases like HOST mode Device mode... There is know ISR routine available in given USB Stack...How can i put the given interrupt handling functions in vector table..

       

      Pls give guidence for the above points....

      -Kali

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Roberto Romano
      Posted by Roberto Romano
      on Dec 25 2011 03:01 AM
      Mastermind6840 points

      Stellaris Peggy

      ...

      StellarisWare can be downloaded from here: www.ti.com/sw-lm3s.

      Hi Peggy, many thanks for all precious information I was seeking for and you posted, I just try'd link but point to a wrong location, link name is correct location and all information was there.

       The book chapter link http://www.lvr.com/usbcenum.htm was just found for this post? If not, please can you post some title of book about this topic? The one in link appear to be M$ centric I see another same series on Linux embedded named "USB Embedded Host", I need interface a mass storage and keyboard, which one can better address topic on  Stellaris library?

      Merry Christmas.

       Roberto

       Regards

       Roberto


       Please login & click    Verify Answer    if this post answered your question.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    TI E2E™ Community
    • Support Forums
    • Blogs
    • Videos
    • Groups
    • Site Support & Feedback
    • Settings
    TI E2E™ Community Groups
    • TI University Program
    • Make the Switch
    • Microcontroller Projects
    • Motor Drive & Control
    Other Communities
    • Deyisupport
    • Designsomething.org
    • beagleboard.org
    • TI on Element 14
    • TI on TechXchangeSM
    Other Technical & Support Resources
    • WEBENCH® Design Center
    • Product Information Centers
    • Technical Documents
    • TI Design Network
    • TI Technical Articles
    • TI Training

    All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

    Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

    Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
    TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

    TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
    embedded processors, along with software, tools and the industry’s largest sales/support staff.

    © Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
    Trademarks | Privacy Policy | Terms of Use