3.7.1 USB Descriptors Modification Procedure

Use the following procedure to configure USB descriptor parameters such as the VID, PID, power attributes, manufacturer name, product name, and serial number.

  1. Configure USB Parameters:
    • Send the CNFG_SetUSBParameters command through Endpoint 0x05 (OUT)
    • Read the response through Endpoint 0x85 (IN)

    The responses can be one of the following:

    • The command is accepted and executed successfully
    • The command is rejected because the device configuration is locked
    • The command is rejected because the parameters are invalid

    If the response is rejected because parameters are invalid, retry with valid parameters.

    If the response is rejected as “Configurations are locked”, try again after unlocking the configuration.

    If the response is accepted and successful, proceed to step 2.

  2. Configure the Manufacturer’s Name:
    • Send the CNFG_SetManufacturer command through Endpoint 0x05 (OUT)
    • Read the response through Endpoint 0x85 (IN)

    The responses can be one of the following:

    • The command is accepted and executed successfully
    • The command is rejected because the configurations are locked
    • The command is rejected because the parameters are invalid

    If the response is rejected because parameters are invalid, retry with valid parameters

    If the response is rejected as “Configurations are Locked”, try again after unlocking the configuration.

    If the response is accepted and successful, proceed to Step 3.

  3. Configure the Product Name:
    • Send the CNFG_SetProductName command through Endpoint 0x05 (OUT)
    • Read the response through Endpoint 0x85 (IN)

    The responses can be one of the following:

    • The command is accepted and executed successfully
    • The command is rejected because the configurations are locked
    • The command is rejected because the parameters are invalid

    If the response is rejected because parameters are invalid, retry with valid parameters

    If the response is rejected as “Configurations are Locked”, try again after unlocking the configuration.

    If the response is accepted and successful, proceed to Step 4.

  4. Configure the Serial Number:
    • Send the CNFG_SetSerialNumber command through Endpoint 0x05 (OUT)
    • Read the response through Endpoint 0x85 (IN)

    The responses can be one of the following:

    • The command is accepted and executed successfully
    • The command is rejected because the configurations are locked
    • The command is rejected because the parameters are invalid

    If the response is rejected because parameters are invalid, retry with valid parameters

    If the response is rejected as “Configurations are Locked”, try again after unlocking the configuration.

    If the response is accepted and successful, proceed to Step 5.

  5. Re-Enumerate the MCP2222 Device

    Send the MCP2222_SoftReset command through Endpoint 0x05 (OUT).

    This command re-enumerates the MCP2222 with the new USB descriptors.