Modificare il timeout USB NAK in Windows.

Franco Andreatti 0 Reputation points
2024-08-29T13:35:04.3433333+00:00

Il timeout USB NAK in Windows è impostato di default su 5000 ms. Come posso cambiarlo in 10.000 ms (10 sec)?

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,574 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. S.Sengupta 18,656 Reputation points MVP
    2024-08-30T00:20:00.21+00:00

    To do this, you need to edit Registry:

    Open the Registry Editor:

    Press Win R to open the Run dialog

    Type "regedit" and press Enter

    If brought about, allow the app to make adjustments to your tool

    Navigate to the subsequent key:

    HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlusbflags

    If the "usbflags" key would not exist, you may want to create it:

    Right-click at the "Control" folder

    Select New > Key

    Name it "usbflags"

    Inside the "usbflags" key, create a brand new DWORD (32-bit) Value:

    Right-click in the right pane

    Select New > DWORD (32-bit) Value

    Name it "DisableOneSec"

    Set the value:

    Double-click on on the new "DisableOneSec" price

    Change the "Base" to "Decimal"

    Enter "ten thousand" as the price (that is in milliseconds)

    Click OK

    0 comments No comments

  2. Yanhong Liu 9,455 Reputation points Microsoft Vendor
    2024-08-30T10:00:50.35+00:00

    Hello

    Thank you for posting in Q&A forum

    I've found the registry value about usbflags, but can't find any words relate with DisableOneSec

    USB Device Registry Entries - Windows drivers | Microsoft Learn

    In the words with below link, Nak timeout is not 5000 ms, it is just a response:

    If the endpoint is busy at the time the data packet arrives and is not able to receive data, the device can send a NAK packet. In that case, the host starts sending PING packets to the device. The device responds with NAK packets as long as the device is not ready to receive data. When the device is ready, it responds with an ACK packet. The host can then resume the OUT transfer.

    How to Send USB Bulk Transfer Requests - Windows drivers | Microsoft Learn

    because it is a response action, so i think here may don't have a way to change it

    Best regards

    Yanhong

    =====================================

    If the answer is helpful, please click "Accept answer" and upvote it


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.