none
Windows CE USB Settings via .reg file? RRS feed

  • Question

  • I need to set USB settings after cold reboot. I can do this with USBConfig in  Control Panel but how can I do this with a reg file?

    I need to set following:

    Bottom I/O Mode = USB Mode

    USB Port Mode = USB Client Mode

    USB Client Mode = Mass Storage - Storage Card

    Any help will be greatly appreciated

    Wednesday, October 3, 2018 2:22 PM

Answers

  • This sounds like a question for the board / BSP manufacturer (because USBConfig in control panel is not a standard feature).

    Anyway, to set USB Mass Storage as default function in the registry, do this:

    [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
       "DefaultClientDriver"=- ; erase previous default
       "DefaultClientDriver"="Mass_Storage_Class"

    To configure the Mass Storage Class, modify this to match the device name of your Storage Card:

    ; Setup Mass Storage
    [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\Mass_Storage_Class]
       "idVendor"=dword:045E
       "Manufacturer"="Microsoft"
       "idProduct"=dword:ffff
       "Product"="Mass Storage Device"
       "SerialNumber"="0000-0000-0000-0000"
       "DeviceName"="USDHC1"
    

    In my case the device name of the Storage Card is USDHC1. Yours will most likely differ.


    Good luck,

    Michel Verhagen, eMVP
    Check out my blog: https://guruce.com/blog

    GuruCE
    Microsoft Embedded Partner
    NXP Proven Partner
    https://guruce.com
    Consultancy, training and development services.

    Interested in WEC on i.MX6?
    Get the only 100% stable and best performing i.MX6 BSP for WEC7 and WEC2013 here: https://guruce.com/imx6

    • Marked as answer by GeorgiBonchev Thursday, October 4, 2018 10:42 AM
    Thursday, October 4, 2018 8:08 AM
    Moderator

All replies