Fast Charge + USB serial communication

Announcements

Live Webinar: USB-C adoption. Simple & Cost-efficient solutions | April 18th @9am or 5pm CEST. Register now !

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

cross mob
ThLa_3669246
Level 1
Level 1
First like received

Hello,

I'm using a CY4531 CCG3 EVK.

I would like to acheive  serial communication between a tablet and a usb serial device (FTDI), while fast charging the tablet.

I'm using the default notebook example charged with EZ-PD utility.

the tablet is plugged on the USB-C port and the serial device on the USB 3 type  B port (J2).

At this time with the default  notebook example, I can either :

fast charge the tablet (CY4531 EVK is powered externally )

or

have the USB serial communication enabled (EVK is powered by the tablet)

I would like to fast charge the tablet while the USB serial communication is enabled.

I know this is possible because there is a commercial product doing such (LAVASynC 1U_OEM).

I guess that the notebook example does not enable this feature.

I would really appreciate some hints on how to acheive this .

Best,

Thomas.

0 Likes
1 Solution

Please try this code and let me know. Add it at the same place.

if((dpm_get_info(port)->contract_exist) && (dpm_get_info(port)->cur_port_type != PRT_TYPE_UFP))

{

    dpm_pd_command (port, DPM_CMD_SEND_DR_SWAP, NULL, NULL);

}

Regards,

Rajath

View solution in original post

0 Likes
16 Replies