How dose PSoC 3 to get USB-Host's information via USB?

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

cross mob
shlu_1817156
Level 3
Level 3
10 replies posted 5 replies posted 5 questions asked

Hi,

I am a software engineer.

We'vd designed a product that uses the CY8CKIT-033A development board.

As the same as the CY8CKIT-033A KIT, our products determine the type of USB-HOST by detecting the VBUS voltage.

As VBUS=5V,runs the PC/Mac/Android devices' firmware. Runs the Apple's firmwarewhile VBUS=3.3V.

In general, Apple devices provide 3.3V to the accessory via the Lightning interface.

The Android device supplies 5V to the accessory via the Type-C interface.

However, Apple's latest iPad Pro has been changed to use the Type-C interface.

If our accessories still use the output voltage to judge the USB-HOST type, the right firmwarecannot be run.

my question is, How dose PSoC 3 to get USB-Host's information via USB?

Is there any APIs for this purpose?

BR.

Shide Lu

0 Likes
1 Solution
himam_31
Employee
Employee
50 likes received 25 likes received 10 likes received

Hello,

You will not be able to detect the host by firmware. One thing you can do is to use the interface specific pins and check if there is a connection on those pins. Otherwise as you mentioned you can measure the voltage in firmware and take actions.

Please have a look at this forum post where the voltage is measured: Why not use supply voltage [5V0] as trigger to start bootloader ?

Thanks,

Hima

View solution in original post

0 Likes
1 Reply
himam_31
Employee
Employee
50 likes received 25 likes received 10 likes received

Hello,

You will not be able to detect the host by firmware. One thing you can do is to use the interface specific pins and check if there is a connection on those pins. Otherwise as you mentioned you can measure the voltage in firmware and take actions.

Please have a look at this forum post where the voltage is measured: Why not use supply voltage [5V0] as trigger to start bootloader ?

Thanks,

Hima

0 Likes