Announcements

Register now for the most anticipated Asia Pacific Power Seminar 2022

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

USB EZ-PD™ Type-C Forum Discussions

Ivan_Lee
Level 5
100 sign-ins First like received 50 replies posted
Level 5

 

ezpd_dockupdatefw.exe has two input parameter.

-t : Specify the re-enumeration time out value in ms (Default = 60000)
-ct : Specify the connection time out value in ms (Default = 15000)

1. What different between -t and -ct parameter?

2. Can you explain this "-ct" parameter in detail?

0 Likes
1 Solution
PranavaYN
Moderator
Moderator 50 likes received First comment on KBA First question asked
Moderator

Hi,

-t that is the re-enumeration timeout is the time in ms that the dockupdatefw tool will wait to re-enumerate the device. The device will re-enumerate many times during the firmware upgrade process.

-ct or connection timeout is the time in ms the dockupdatefw tool will wait during initial connection phase. The dmc device has to be connected within this time else the updgrade will fail.

Best regards,
Pranava

View solution in original post

12 Replies
PranavaYN
Moderator
Moderator 50 likes received First comment on KBA First question asked
Moderator

Hi,

-t that is the re-enumeration timeout is the time in ms that the dockupdatefw tool will wait to re-enumerate the device. The device will re-enumerate many times during the firmware upgrade process.

-ct or connection timeout is the time in ms the dockupdatefw tool will wait during initial connection phase. The dmc device has to be connected within this time else the updgrade will fail.

Best regards,
Pranava
Ajeethkumar
Moderator
Moderator 100 replies posted 100 sign-ins 25 solutions authored
Moderator

Hi,


Thanks for posting on Infineon Developer Community!


"-t" is an option to provide a Re-enumeration timeout. Re-enumeration will happen once the DMC firmware is updated, Hub(to which the DMC is connected) firmware is updated, etc. Provide a large timeout value for this parameter to properly complete the firmware update before the timeout triggers. The Re-enumeration would depend on various factors like PC configurations, USB data transfer speed, etc. This timeout will trigger if no DMC device is found after this value.


"-ct" is an option to provide the timeout value for open device API. To communicate with the winusb device, Opendevice is the API to enable communication between the application and the winusb device. This timeout will trigger if there is an issue in opening the device after this value.


Thanks,
Ajeeth

Ivan_Lee
Level 5
100 sign-ins First like received 50 replies posted
Level 5

Hi, Ajeeth

Sorry i have another question about "-reset" parameter.

i try to use "-reset" parameter to reset Dock, but Dock is not reset. (nothing happen )

Ivan

0 Likes
Ajeethkumar
Moderator
Moderator 100 replies posted 100 sign-ins 25 solutions authored
Moderator

Hi Ivan,

Can you enable the verbose debug log option(-l v) and provide us the log to debug further?

Thanks,
Ajeeth

0 Likes
Ivan_Lee
Level 5
100 sign-ins First like received 50 replies posted
Level 5

ezpd_dockupdatefw.exe -vid 04B4 -pid 5220 -reset -l v

*******************************************************************************
* EZ-PD Dock Firmware Update Tool v1.3.1.31 *
*******************************************************************************

Opening handle to dock
Device vid (0x6c4) is not matching with the input value
Device pid (0xc702) is not matching with the input value
Device pid (0xc010) is not matching with the input value
Connecting to the DMC
Sending soft Reset to dock
Reset device Failed

0 Likes
Ajeethkumar
Moderator
Moderator 100 replies posted 100 sign-ins 25 solutions authored
Moderator

Hi,

Can you try with the next debug log options "-l debug", and "-l debug1"? Please share the logs.

Thanks,
Ajeeth

0 Likes
Ivan_Lee
Level 5
100 sign-ins First like received 50 replies posted
Level 5

ezpd_dockupdatefw.exe -vid 413c -pid 5220 -reset -l debug
*******************************************************************************
* EZ-PD Dock Firmware Update Tool v1.3.1.31 *
*******************************************************************************

Mon Jul 25 18:05:13 2022
Opening device with vid 0x413cand pid 0x5220
Opening handle to dock
Device vid (0x6c4) is not matching with the input value
Device pid (0xc702) is not matching with the input value
Mon Jul 25 18:05:13 2022
Closing the DMC device
Device pid (0xc010) is not matching with the input value
Mon Jul 25 18:05:13 2022
Closing the DMC device
Connecting to the DMC
Mon Jul 25 18:05:13 2022
Sending state machine reset command
Mon Jul 25 18:05:13 2022
Resetting device
Sending soft Reset to dock
Mon Jul 25 18:05:13 2022
Sending device reset command
Mon Jul 25 18:05:13 2022
WinUsb_ControlTransfer failed. Error: 31
Reset device Failed
Mon Jul 25 18:05:13 2022
Closing the DMC device

-----------------------------------------------------------------------

ezpd_dockupdatefw.exe -vid 413c -pid 5220 -reset -l debug1
*******************************************************************************
* EZ-PD Dock Firmware Update Tool v1.3.1.31 *
*******************************************************************************

Mon Jul 25 18:06:04 2022
Opening device with vid 0x413cand pid 0x5220
Opening handle to dock
Searching for all devices with DMC GUID
Retrieving the path of interface #0
Trying to create CyWinUsb object for interface #0
Opening device handle
initializing winusb
De-initializing winusb
Closing device handle
The interface is not vendor class. It is 0x11
Retrieving the path of interface #1
Trying to create CyWinUsb object for interface #1
Opening device handle
initializing winusb
Retrieving the path of interface #2
Trying to create CyWinUsb object for interface #2
Opening device handle
initializing winusb
De-initializing winusb
Closing device handle
The interface is not vendor class. It is 0x11
Retrieving the path of interface #3
Trying to create CyWinUsb object for interface #3
Opening device handle
initializing winusb
Retrieving the path of interface #4
Trying to create CyWinUsb object for interface #4
Opening device handle
initializing winusb
De-initializing winusb
Closing device handle
The interface is not vendor class. It is 0x11
Retrieving the path of interface #5
Trying to create CyWinUsb object for interface #5
Opening device handle
initializing winusb
Reading device descriptor
Setting timeout for pipe #1
Device vid (0x6c4) is not matching with the input value
Device pid (0xc702) is not matching with the input value
Mon Jul 25 18:06:04 2022
Closing the DMC device
De-initializing winusb
Closing device handle
Reading device descriptor
Setting timeout for pipe #1
Reading device descriptor
Setting timeout for pipe #1
Device pid (0xc010) is not matching with the input value
Mon Jul 25 18:06:04 2022
Closing the DMC device
De-initializing winusb
Closing device handle
Connecting to the DMC
Mon Jul 25 18:06:04 2022
Sending state machine reset command
Executing control transfer
Mon Jul 25 18:06:04 2022
Resetting device
Sending soft Reset to dock
Mon Jul 25 18:06:04 2022
Sending device reset command
Executing control transfer
Mon Jul 25 18:06:04 2022
WinUsb_ControlTransfer failed. Error: 31
Reset device Failed
Mon Jul 25 18:06:04 2022
Closing the DMC device
De-initializing winusb
Closing device handle

0 Likes
Ajeethkumar
Moderator
Moderator 100 replies posted 100 sign-ins 25 solutions authored
Moderator

Hi,

Windows control transfer to the device failed with Error code 31 i.e., the Reset command itself did not reach the device. 

Windows Error code 31 - A device attached to the system is not functioning.

Application was not able to communicate with the device after opening the handle. Can you reset the device/power cycle manually and then try this command again?

Thanks,
Ajeeth

0 Likes
Ivan_Lee
Level 5
100 sign-ins First like received 50 replies posted
Level 5

Hi, Ajeeth,

I try to power cycle before run command-line tool, but result is the same.

Can you help us to check whether Dock-SDK DMC FW support this "RESET" command?

BR

Ivan

0 Likes
Ajeethkumar
Moderator
Moderator 100 replies posted 100 sign-ins 25 solutions authored
Moderator

Ivan,

Can you please let me know which device you are using? Is it our reference design?

Thanks,
Ajeeth

0 Likes
Ivan_Lee
Level 5
100 sign-ins First like received 50 replies posted
Level 5

Dock SDK - Version 3.3, July 12, 2020

devices : CCG4 + DMC

0 Likes
Ajeethkumar
Moderator
Moderator 100 replies posted 100 sign-ins 25 solutions authored
Moderator

Hi Ivan,

Can you also please provide which reference design you are using? Is it your custom hardware design?

Thanks,
Ajeeth

0 Likes