Windows 10: Issue with RTS control via usbser.sys

Discus and support Issue with RTS control via usbser.sys in Windows 10 Drivers and Hardware to solve the problem; I am trying to control RTS signal on my USB-UART device on Windows 10 and found that the usbser.sys driver does not generate any USB... Discussion in 'Windows 10 Drivers and Hardware' started by Marian___, Sep 16, 2020.

  1. Marian___ Win User

    Issue with RTS control via usbser.sys



    I am trying to control RTS signal on my USB-UART device on Windows 10 and found that the usbser.sys driver does not generate any USB SET_CONTROL_LINE_STATE requests for EscapeCommFunctionhndl, SETRTS or EscapeCommFunctionhndl, CLRRTS calls as expected. As results, RST signal is being unchanged on UART device.





    My example is based on https://docs.microsoft.com/en-us/windows/win32/devio/configuring-a-communications-resource as following:





    <code>


    #include <windows.h>


    #include <tchar.h>


    #include <stdio.h>





    int _tmainint argc, TCHAR* argv[]


    {


    DCB dcb;


    HANDLE hCom;


    BOOL fSuccess;


    TCHAR *pcCommPort = TCHAR*TEXT"COM9";





    // Open a handle to the specified com port.


    hCom = CreateFilepcCommPort,


    GENERIC_READ GENERIC_WRITE,


    0, // must be opened with exclusive-access


    NULL, // default security attributes


    OPEN_EXISTING, // must use OPEN_EXISTING


    0, // not overlapped I/O


    NULL; // hTemplate must be NULL for comm devices





    if hCom == INVALID_HANDLE_VALUE


    {


    // Handle the error.


    printf"CreateFile failed with error %d.\n", GetLastError;


    return 1;


    }





    // Initialize the DCB structure.


    SecureZeroMemory&dcb, sizeofDCB;


    dcb.DCBlength = sizeofDCB;





    // Build on the current configuration by first retrieving all current


    // settings.





    fSuccess = GetCommStatehCom, &dcb;





    if !fSuccess


    {


    // Handle the error.


    printf"GetCommState failed with error %d.\n", GetLastError;


    return 2;


    }





    // Fill in some DCB values and set the com state:


    // 115,200 bps, 8 data bits, no parity, and 1 stop bit.


    dcb.BaudRate = CBR_115200; // baud rate


    dcb.ByteSize = 8; // data size, xmit and rcv


    dcb.Parity = NOPARITY; // parity bit


    dcb.StopBits = ONESTOPBIT; // stop bit


    dcb.fDtrControl = DTR_CONTROL_DISABLE;


    dcb.fRtsControl = RTS_CONTROL_HANDSHAKE;





    fSuccess = SetCommStatehCom, &dcb;





    if !fSuccess


    {


    // Handle the error.


    printf"SetCommState failed with error %d.\n", GetLastError;


    return 3;


    }





    // Set RTS


    fSuccess = EscapeCommFunctionhCom, SETRTS; // SET_CONTROL_LINE_STATE request is expected here on the USB bus, but nothing happens.





    if !fSuccess


    {


    // Handle the error.


    printf"GetCommState failed with error %d.\n", GetLastError;


    return 2;


    }





    _tprintfTEXT"RTS is set\n";





    Sleep1000; // Sleep for one second





    // Clear RTS





    fSuccess = EscapeCommFunctionhCom, CLRRTS; // SET_CONTROL_LINE_STATE request is expected here on the USB bus, but nothing happens.





    if !fSuccess


    {


    // Handle the error.


    printf"GetCommState failed with error %d.\n", GetLastError;


    return 2;


    }





    _tprintfTEXT"RTS is clear\n";





    Sleep1000; // Sleep for one second





    _tprintfTEXT"Serial port %s successfully reconfigured.\n", pcCommPort;





    return 0;


    }





    </code>





    Expected Result: After EscapeCommFunctionhndl, SETRTS or EscapeCommFunctionhndl, CLRRTS calls on the USB bus, SET_CONTROL_LINE_STATE request appears which reflects the RTS change.





    Actual Result: After EscapeCommFunctionhndl, SETRTS or EscapeCommFunctionhndl, CLRRTS calls, no SET_CONTROL_LINE_STATE request appears on the USB bus at all. As results, RST signal is being unchanged on UART device. Note: that RST can be changed if enforce the updating DTR signal right after that.


    A similar question was asked several years ago, but there was not answered:
    https://answers.microsoft.com/en-us/windows/forum/all/virtual-serial-port-usbsersys-is-not-sending/a086cbf6-2d0a-4c46-88fd-73865bc185f5


    Could you please clarify whether this is an expected behavior of usbser.sys?





    Thanks,


    Marian


    :)
     
    Marian___, Sep 16, 2020
    #1
  2. Pegadroid Win User

    RT/LT button xbox 360 controller PC windows 10


    when tested in game control settings (windows) RT button have step Acceleration
    but when test in game Dirt 3, when driving, RT button not have step Acceleration, when I hit the half or full result is the same

    what is wrong with my controller settings?
    or not work on windows 10?


    Issue with RTS control via usbser.sys [​IMG]
     
    Pegadroid, Sep 16, 2020
    #2
  3. Johan45 Win User
    AMD FX OC'ers Club

    That's what the auto setting will do since you're over the 1333 mark it jumps to the next step which isn't listed or officially supported I assume by that ram.

    At this point though I would suggest dropping the multi one step or .5 so that we can get something stable and possibly take the heat issue out of the picture for now.
     
    Johan45, Sep 16, 2020
    #3
  4. Issue with RTS control via usbser.sys

    DRIVER_IRQL_NOT_LESS_OR_EQUAL (igdkmd64.sys)

    Hi Nezar,

    Thank you for posting on Microsoft Communities.

    I will be glad to help you with the issue you have with the computer. I understand the frustration when things don't work the way it should.

    What is the make and model of your computer?

    File igdkmd64.sys is the Intel Graphics Kernel Mode Driver for Microsoft Windows 8.

    I would suggest you to follow the steps provided below:



    Step 1:

    Uninstall the Device from Device Manager

    • Open Device Manager
    • Expand the Display Adapter section.
    • Find the Display card Driver.
    • Right click Display card Driver and select
      Uninstall.
    • Select the check box delete the driver software for this device.
    • Reboot the computer after uninstall process has finished.

    Step 2:

    Uninstall the Device Drivers from Program List in Control Panel

    • Click on start, select Control Panel
    • Now click on Programs and select Programs and Features.
    • Find the Display card Driver.
    • Right click Display card Driver and select
      Uninstall.
    • Reboot the computer after the uninstall process has finished.
    Hope this helps and do let us know if you need any assistance.
     
    Ruth Buruga, Sep 16, 2020
    #4
Thema:

Issue with RTS control via usbser.sys

Loading...
  1. Issue with RTS control via usbser.sys - Similar Threads - Issue RTS control

  2. rtwlane6.sys Bluescreen issue

    in Windows 10 Gaming
    rtwlane6.sys Bluescreen issue: Hello, so I have been having this same issue for a long time, it even went to the point that I had to factory restart my laptop, I use a Lenovo Yoga7 2-1 and the issue comes with the connection, I go to a college so u have to frequently move to different classes, now in all...
  3. rtwlane6.sys Bluescreen issue

    in Windows 10 Software and Apps
    rtwlane6.sys Bluescreen issue: Hello, so I have been having this same issue for a long time, it even went to the point that I had to factory restart my laptop, I use a Lenovo Yoga7 2-1 and the issue comes with the connection, I go to a college so u have to frequently move to different classes, now in all...
  4. controller not connecting via bluetooth

    in Windows 10 Gaming
    controller not connecting via bluetooth: I bought a new computer recently, and I am having trouble getting my controller to connect to my computer. I have looked and tried many different suggestions I have found but nothing works. I have tried two different x box one pro controllers to connect via Bluetooth on my...
  5. controller not connecting via bluetooth

    in Windows 10 Software and Apps
    controller not connecting via bluetooth: I bought a new computer recently, and I am having trouble getting my controller to connect to my computer. I have looked and tried many different suggestions I have found but nothing works. I have tried two different x box one pro controllers to connect via Bluetooth on my...
  6. dxgmms2.sys BSOD issues

    in Windows 10 Gaming
    dxgmms2.sys BSOD issues: I'm getting BSOD almost every time woke up from sleep mode. I've tried these:update Intel Graphic driversrestore recently installed drivers and patchesDISM toolssfc /scannowThese are my minidump files. Could someone analyze them and provide specific fixes please. Many...
  7. dxgmms2.sys BSOD issues

    in Windows 10 Software and Apps
    dxgmms2.sys BSOD issues: I'm getting BSOD almost every time woke up from sleep mode. I've tried these:update Intel Graphic driversrestore recently installed drivers and patchesDISM toolssfc /scannowThese are my minidump files. Could someone analyze them and provide specific fixes please. Many...
  8. USBSER.SYS does not handle RTS signal correctly

    in Windows 10 Drivers and Hardware
    USBSER.SYS does not handle RTS signal correctly: https://answers.microsoft.com/en-us/windows/forum/all/issue-with-rts-control-via-usbsersys/4d3a43a0-cccf-49d1-9b22-b7123a512724 https://answers.microsoft.com/en-us/windows/forum/all/virtual-serial-port-usbsersys-is-not-sending/a086cbf6-2d0a-4c46-88fd-73865bc185f5 So yeah...
  9. via audio panel control

    in Windows 10 BSOD Crashes and Debugging
    via audio panel control: How I can get the Via audio control to adjust and change speakers configuration https://answers.microsoft.com/en-us/windows/forum/all/via-audio-panel-control/1d0fbc0e-5ee4-47b3-868c-1ca28897d82b
  10. OMEN HP - 15-dc0850nd Control Sys

    in Windows 10 Drivers and Hardware
    OMEN HP - 15-dc0850nd Control Sys: Hello, I just bought an hp omen 15-dc and im trying to change the keyboard color. I found out that i need to install the HP OMEN CONTROL to achieve it put i keep getting the Dll problem i tried all the solutions in the forum but non of them worked for me i could really use...