USB detect solution

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
JHch_4126036
Level 1
Level 1

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.

0 Likes
1 Solution
Sananya_14
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

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

View solution in original post

5 Replies
Sananya_14
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

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

-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.

0 Likes

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

0 Likes

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

Regards,
Rashi

Hi Rashi,

Thanks for your recommandaton.

Best Regards,

Choi

0 Likes