USB Chain Connections

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I have two questions related with the USB connections on a pcb:



1- Is it possible to connect D+ line between 2 devices and 1 host? something like SPI fashion where MISO and MOSI lines are shared between all slaves? Or like I2C where every node listens to the bus and replies only when the given address is called? The same with the D-.



2- I'm designing an embedded application with 2 devices, one of the is a USB-device and the other one is a USB-OTG. When the communication is between them, I believe there is no problem, the OTG behaves as a host and the second one as a device.
However, my question comes when I need to connect them (both as devices) to an external PC, is it possible to share the signal lines to the external PC, so I will have 3 devices connected on the line: uC USB-device, USB-OTG programmed as device and the PC USB-host.










share|improve this question







New contributor




masm is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.























    up vote
    1
    down vote

    favorite












    I have two questions related with the USB connections on a pcb:



    1- Is it possible to connect D+ line between 2 devices and 1 host? something like SPI fashion where MISO and MOSI lines are shared between all slaves? Or like I2C where every node listens to the bus and replies only when the given address is called? The same with the D-.



    2- I'm designing an embedded application with 2 devices, one of the is a USB-device and the other one is a USB-OTG. When the communication is between them, I believe there is no problem, the OTG behaves as a host and the second one as a device.
    However, my question comes when I need to connect them (both as devices) to an external PC, is it possible to share the signal lines to the external PC, so I will have 3 devices connected on the line: uC USB-device, USB-OTG programmed as device and the PC USB-host.










    share|improve this question







    New contributor




    masm is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I have two questions related with the USB connections on a pcb:



      1- Is it possible to connect D+ line between 2 devices and 1 host? something like SPI fashion where MISO and MOSI lines are shared between all slaves? Or like I2C where every node listens to the bus and replies only when the given address is called? The same with the D-.



      2- I'm designing an embedded application with 2 devices, one of the is a USB-device and the other one is a USB-OTG. When the communication is between them, I believe there is no problem, the OTG behaves as a host and the second one as a device.
      However, my question comes when I need to connect them (both as devices) to an external PC, is it possible to share the signal lines to the external PC, so I will have 3 devices connected on the line: uC USB-device, USB-OTG programmed as device and the PC USB-host.










      share|improve this question







      New contributor




      masm is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      I have two questions related with the USB connections on a pcb:



      1- Is it possible to connect D+ line between 2 devices and 1 host? something like SPI fashion where MISO and MOSI lines are shared between all slaves? Or like I2C where every node listens to the bus and replies only when the given address is called? The same with the D-.



      2- I'm designing an embedded application with 2 devices, one of the is a USB-device and the other one is a USB-OTG. When the communication is between them, I believe there is no problem, the OTG behaves as a host and the second one as a device.
      However, my question comes when I need to connect them (both as devices) to an external PC, is it possible to share the signal lines to the external PC, so I will have 3 devices connected on the line: uC USB-device, USB-OTG programmed as device and the PC USB-host.







      usb






      share|improve this question







      New contributor




      masm is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      masm is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      masm is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 2 hours ago









      masm

      61




      61




      New contributor




      masm is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      masm is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      masm is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          4
          down vote













          No, it's not possible to do this for a whole load of reasons ranging from hardware termination and identification resistors on the D+/D- lines to protocol issues that could identify and handle multiple devices on a single port. Despite the misleading use of the word "Bus" in the name, USB is only capable of connecting a single host port to a single device port. Either of these ports may be an OTG port, but an additional pin in the cable/connector will take care of switching one end into host mode and one into device mode as required.



          The only way to connect multiple devices to a single host port is to use a USB Hub.






          share|improve this answer




















            Your Answer




            StackExchange.ifUsing("editor", function ()
            return StackExchange.using("mathjaxEditing", function ()
            StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
            StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["\$", "\$"]]);
            );
            );
            , "mathjax-editing");

            StackExchange.ifUsing("editor", function ()
            return StackExchange.using("schematics", function ()
            StackExchange.schematics.init();
            );
            , "cicuitlab");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "135"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );






            masm is a new contributor. Be nice, and check out our Code of Conduct.









             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2felectronics.stackexchange.com%2fquestions%2f398967%2fusb-chain-connections%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            4
            down vote













            No, it's not possible to do this for a whole load of reasons ranging from hardware termination and identification resistors on the D+/D- lines to protocol issues that could identify and handle multiple devices on a single port. Despite the misleading use of the word "Bus" in the name, USB is only capable of connecting a single host port to a single device port. Either of these ports may be an OTG port, but an additional pin in the cable/connector will take care of switching one end into host mode and one into device mode as required.



            The only way to connect multiple devices to a single host port is to use a USB Hub.






            share|improve this answer
























              up vote
              4
              down vote













              No, it's not possible to do this for a whole load of reasons ranging from hardware termination and identification resistors on the D+/D- lines to protocol issues that could identify and handle multiple devices on a single port. Despite the misleading use of the word "Bus" in the name, USB is only capable of connecting a single host port to a single device port. Either of these ports may be an OTG port, but an additional pin in the cable/connector will take care of switching one end into host mode and one into device mode as required.



              The only way to connect multiple devices to a single host port is to use a USB Hub.






              share|improve this answer






















                up vote
                4
                down vote










                up vote
                4
                down vote









                No, it's not possible to do this for a whole load of reasons ranging from hardware termination and identification resistors on the D+/D- lines to protocol issues that could identify and handle multiple devices on a single port. Despite the misleading use of the word "Bus" in the name, USB is only capable of connecting a single host port to a single device port. Either of these ports may be an OTG port, but an additional pin in the cable/connector will take care of switching one end into host mode and one into device mode as required.



                The only way to connect multiple devices to a single host port is to use a USB Hub.






                share|improve this answer












                No, it's not possible to do this for a whole load of reasons ranging from hardware termination and identification resistors on the D+/D- lines to protocol issues that could identify and handle multiple devices on a single port. Despite the misleading use of the word "Bus" in the name, USB is only capable of connecting a single host port to a single device port. Either of these ports may be an OTG port, but an additional pin in the cable/connector will take care of switching one end into host mode and one into device mode as required.



                The only way to connect multiple devices to a single host port is to use a USB Hub.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 57 mins ago









                Finbarr

                3,306723




                3,306723




















                    masm is a new contributor. Be nice, and check out our Code of Conduct.









                     

                    draft saved


                    draft discarded


















                    masm is a new contributor. Be nice, and check out our Code of Conduct.












                    masm is a new contributor. Be nice, and check out our Code of Conduct.











                    masm is a new contributor. Be nice, and check out our Code of Conduct.













                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2felectronics.stackexchange.com%2fquestions%2f398967%2fusb-chain-connections%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Comments

                    Popular posts from this blog

                    What does second last employer means? [closed]

                    List of Gilmore Girls characters

                    Confectionery