none
How to connect to a UCSI USB Connector Manager ? RRS feed

  • Question

  • Hi,

    I am trying to connect a usci usb connector manager to OS. I have no real EC(PPM) device and try to simulate one to communicate to UcmUCSI.sys (OPM) by a device driver:

    1. I enabled a usb type-c device in BIOS (ACPI DSDT), UcmUCSI.sys will hang to drive it.

    (It will show but hidden in device manager caused by device is not connected (Code:45)) 

    2. I create a device in DSDT to simulate a EC(PPM).

    3. IF _DSM() in type-C device has been called, it will notify my device by ACPI Notify.

    4. When my device get the notify event from ACPI, driver will try to verify the control command in Shared Memory and try to write response indicate message to the memory to simulate a EC device. 

    But it cann't overcome even the frist command "Reset". When type-c device set reset command to shared memory, my device set 0x08 to indicate UcmUCSI driver that device is ready, but the UcmUCSI driver didn't go further (After command of Reset, it may set "Notification Enable" cmd to shared memeory).

    My scope of the route is:
    USB Type-C device -> ACPI Notify -> My Device driver -> ACPI notify -> USB Type-C device 

    Is this route of process worked?
    (From now, it can not work... even only the first reset command) 

    Monday, November 2, 2015 7:21 AM

Answers

  • UcmUCSI.pdb file has the minimum ETW log in it. You'll get much of visibility what's happening in UcmUCSI.sys.

    "tracepdb ucmucsi.pdb" command will create a mof file which let you know the ETW provider GUID of it.


    moolwalk

    Wednesday, December 9, 2015 8:15 AM

All replies

  • UcmUCSI.pdb file has the minimum ETW log in it. You'll get much of visibility what's happening in UcmUCSI.sys.

    "tracepdb ucmucsi.pdb" command will create a mof file which let you know the ETW provider GUID of it.


    moolwalk

    Wednesday, December 9, 2015 8:15 AM
  • Thanks for replying.

    My development environment has windows 10 pro and win sdk 10, but I can not find PDB of ucmUcsi.sys.

    Where I can get the UcmUCSI.pdb file to monitor form the ETW ?


    • Edited by CC, Chen Monday, December 14, 2015 5:48 AM typo
    Monday, December 14, 2015 2:36 AM
  • configure logger viewer to use the Microsoft symbol server for the symbols path and it will be downloaded

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    Monday, December 14, 2015 7:19 AM
  • Hi Chien Chun,

    I am working on USCI software stack. I have some queries. 

    If you are ready to share some information on UCSI, Please kindly share your personal email.

    Thanks in Advance,

    Vidyasagar


    vidyasagar.seshadri@gmail.com


    Tuesday, March 29, 2016 9:36 AM
  • Hi,

    When i use the traceView to get the logs of "UCSI USB Connection Manager" when giving the "UcsiControl.exe Send 0 1"

    Caught the exception with code: 0x800700aa

    I got the logs like this :

    00000001 UcmUcsi 4092 3284 0 1 01\01\2098-01:38:21:810 [Device: 0x0000597624990BB8] Received IOCTL 0x12131004
    00000002 Unknown 4092 3284 0 2 00\00\   0-00:00:00:00 Unknown( 40): GUID=d8cb96ca-974f-3dd8-f680-1811ae26ecc1 (No Format Information found).
    00000003 Unknown 4092 3284 0 3 00\00\   0-00:00:00:00 Unknown( 81): GUID=d8cb96ca-974f-3dd8-f680-1811ae26ecc1 (No Format Information found).
    00000004 Unknown 4092 3284 0 4 00\00\   0-00:00:00:00 Unknown( 62): GUID=d8cb96ca-974f-3dd8-f680-1811ae26ecc1 (No Format Information found).
    00000005 Unknown 4092 3284 0 5 00\00\   0-00:00:00:00 Unknown( 82): GUID=d8cb96ca-974f-3dd8-f680-1811ae26ecc1 (No Format Information found).
    00000006 Unknown 4092 3284 0 6 00\00\   0-00:00:00:00 Unknown( 95): GUID=d8cb96ca-974f-3dd8-f680-1811ae26ecc1 (No Format Information found).
    00000007 Unknown 4092 3284 0 7 00\00\   0-00:00:00:00 Unknown( 41): GUID=d8cb96ca-974f-3dd8-f680-1811ae26ecc1 (No Format Information found).
    00000008 UcmUcsi 4092 3284 0 8 01\01\2098-01:38:23:114 [Device: 0x0000597624990BB8] Completed IOCTL_UCSI_SEND_COMMAND with 0x80000011(STATUS_DEVICE_BUSY) and information 0

    How i can verify that why it failed ?

    Pls help on this how to get logs and how to solve this error.

    Regards,

    Prabhakar V

    Wednesday, February 1, 2017 12:07 PM
  • Good news is that UcmUCSI is now added to WDK10 sample codes. The source code of UcmUCSI can be found here:

    https://github.com/Microsoft/Windows-driver-samples/tree/master/usb/UcmCxUcsi


    moolwalk

    Tuesday, August 8, 2017 6:34 AM