5 Replies Latest reply on Jan 9, 2020 8:37 PM by JHch_4126036

    USB detect solution

    JHch_4126036

      Sometimes the PC(personal computer) can't detect USB device.

      Then, unplug usb cable and plug it  for porper operation.

      There is no other way than this.

       

      I want to use auto  Power On/Off device or disconnect USB.

      If I use 2 Port Hub between PC and USB device, is there a way for USB HUB to recognized whether PC detect USB device.

      If possible, please rerecommand device and tell me the relevant register.

        • 1. Re: USB detect solution
          SananyaM_56

          Hi,

           

          -Please let us know what Cypress USB device you are using?

          -If you use a hub between PC and the device, the hub can enable the ports but will not know if the PC can detect the device. Hence if there is any power cycle needed on the device for proper detection, it will have to be done even with the hub connected.

           

          Best Regards,

          Sananya

          1 of 1 people found this helpful
          • 2. Re: USB detect solution
            JHch_4126036

            -Please let us know what Cypress USB device you are using?

            ==> No, I don't use cypress USB device.

                    It's not a product I made, but a commercial product I bought.

                 

            -If you use a hub between PC and the device, the hub can enable the ports but will not know if the PC can detect the device.

            ==> Yes, I got it.

                    I need to find another way.

                    Thanks.

            • 3. Re: USB detect solution
              JHch_4126036

              Hi,

              Is there a way to read the status, if I use the USB device of cypress.

              What register is valid ,if I use USB device such as CYUSB3064?

               

              Best Regards,

               

              Choi

              • 4. Re: USB detect solution
                RashiV_61

                Hello Choi,

                 

                If you are using CYUSB3064 device you can use following APIs

                 

                1) CyU3PConnectState ( CyBool_t connect, CyBool_t ssEnable )

                     - Enable / disable the USB connection.This function is used to enable or disable the USB PHYs on the FX3 device and to control the connection to the USB host in that manner. Re-enumeration can be achieved by disabling and then enabling the USB connection.

                 

                2) CyBool_t CyU3PGetConnectState ( void )

                Check whether the FX3 device is currently connected to a host.This function checks whether the the FX3 device is connected to a USB host. This depends on the detection of a valid Vbus input to the device.

                 

                For detailed information about the API's you can refer to FX3 API Guide in the SDK 1.3.4

                 

                Please let me know if any queries on this.

                 

                Regards,

                Rashi

                1 of 1 people found this helpful
                • 5. Re: USB detect solution
                  JHch_4126036

                  Hi Rashi,

                   

                  Thanks for your recommandaton.

                   

                  Best Regards,

                   

                  Choi