cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

New Contributor II

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
Reply
1 Solution
Employee

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
Reply
1 Reply
Employee

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
Reply