Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| vcs:controller-disconnects [2026/10/26 18:23] – created cxie_go-ci.com | vcs:controller-disconnects [2026/10/27 20:25] (current) – cxie_go-ci.com | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Controller | + | ====== Controller |
| - | ===== Symptoms ===== | + | If the Spider disconnects during long tests, Windows power settings are a likely cause. This page shows how to change them. |
| - | * The Spider connection drops during a long test, often overnight or after the PC has been left alone for a while. | + | The disconnect |
| - | * EDM shows the front-end as disconnected, | + | |
| - | * The connection comes back after you reconnect the cable, restart EDM, or wake the PC. | + | |
| - | * It happens most often when the Spider is connected through a USB-to-Ethernet adapter, a USB-C dongle, or a docking station. | + | |
| - | ===== Cause ===== | + | Windows saves power by turning off devices it thinks are idle. A USB-to-Ethernet adapter can be suspended, or lose power when the PC goes to sleep. Some adapter power-saving features can also drop the link. Energy-Efficient Ethernet normally keeps the link up, but with some adapters and drivers it can cause disconnects. |
| - | Windows saves power by turning off devices it thinks are idle. A USB-to-Ethernet adapter | + | You can usually fix this yourself with the steps below. Do not make these changes while a test is running. If you have not set up the network |
| - | These are Windows and adapter driver settings. The fix is to turn off power saving for the adapter that connects to the Spider, and for the PC while tests are running. | + | ===== Turn Off Power Saving on the Adapter ===== |
| - | ===== Step 1: Collect a diagnostic report ===== | + | First find the adapter that connects to the Spider: |
| - | + | ||
| - | If you contact Crystal Instruments support about this problem, run this first and send us the report. | + | |
| - | + | ||
| - | - Click **Start**, type **PowerShell**, | + | |
| - | - Copy the whole block below, paste it into the PowerShell window, and press **Enter**. | + | |
| - | - A file named **CI-Network-Power-Report.txt** is saved to your Desktop. | + | |
| - | - Attach this file to your email to support. | + | |
| - | + | ||
| - | <code powershell> | + | |
| - | $out = Join-Path ([Environment]:: | + | |
| - | & { | + | |
| - | "== Computer ==" | + | |
| - | $cs = Get-CimInstance Win32_ComputerSystem; | + | |
| - | " | + | |
| - | "== Network adapters ==" | + | |
| - | $pm = @{}; Get-CimInstance -Namespace root\wmi -ClassName MSPower_DeviceEnable -ErrorAction SilentlyContinue | ForEach-Object { $pm[($_.InstanceName -replace ' | + | |
| - | Get-NetAdapter -Physical | Sort-Object Name | Select-Object Name, InterfaceDescription, | + | |
| - | @{n=' | + | |
| - | @{n=' | + | |
| - | Get-NetIPAddress -AddressFamily IPv4 | Where-Object InterfaceAlias -notmatch ' | + | |
| - | "== Adapter power-saving properties ==" | + | |
| - | Get-NetAdapter -Physical | Get-NetAdapterAdvancedProperty | Where-Object DisplayName -match ' | + | |
| - | "== Power plan (0x0 = off/never; AC = plugged in, DC = battery) ==" | + | |
| - | powercfg / | + | |
| - | powercfg /query SCHEME_CURRENT 2a737441-1930-4402-8d77-b2bebba308a3 48e6b7a6-50f5-4782-a5d4-53bb8f07e226 | Select-String 'Power Setting GUID|Current' | + | |
| - | powercfg /query SCHEME_CURRENT SUB_SLEEP STANDBYIDLE | Select-String 'Power Setting GUID|Current' | + | |
| - | powercfg /a | + | |
| - | "== Sleep/wake events, last 7 days ==" | + | |
| - | $ev = Get-WinEvent -FilterHashtable @{LogName=' | + | |
| - | if ($ev) { $ev | Select-Object -First 50 | Format-Table -AutoSize TimeCreated, | + | |
| - | } *>&1 | Out-File -FilePath $out -Encoding utf8 -Width 250 | + | |
| - | Write-Host " | + | |
| - | </ | + | |
| - | + | ||
| - | The script only reads settings. It does not change anything on the PC. | + | |
| - | + | ||
| - | ===== Step 2: Find the adapter that connects to the Spider | + | |
| - Press **Windows + R**, type **ncpa.cpl**, | - Press **Windows + R**, type **ncpa.cpl**, | ||
| - | - Find the adapter that has the Spider subnet | + | - Right-click an Ethernet adapter and click **Status**. |
| - | - Write down the device name. You need it in the next steps. | + | - Click **Details** and look at **IPv4 Address**. The adapter that connects to the Spider |
| + | - If it is not the right adapter, close the windows and check the next Ethernet adapter. | ||
| + | - Write down the device name. It is shown under the adapter name in **Network Connections**. USB adapters usually have " | ||
| - | ===== Step 3: Turn off power saving | + | Then change its power-saving |
| - Right-click **Start** and click **Device Manager**. | - Right-click **Start** and click **Device Manager**. | ||
| - Expand **Network adapters**. | - Expand **Network adapters**. | ||
| - | - Right-click the adapter | + | - Right-click the adapter and click **Properties**. |
| - Click the **Advanced** tab. | - Click the **Advanced** tab. | ||
| - | - For each property in the table below that is in the list, select it and set **Value** to **Disabled** (or **Off**). | + | - For each property in the table below that is in the list, select it and set **Value** to **OFF**. |
| - Click **OK**. | - Click **OK**. | ||
| ^ Property (names vary by driver) ^ Set to ^ | ^ Property (names vary by driver) ^ Set to ^ | ||
| - | | **Energy-Efficient Ethernet** / **EEE** | Disabled | + | | **Energy-Efficient Ethernet** / **EEE** | OFF | |
| - | | **Advanced EEE** | Disabled | + | | **Advanced EEE** | OFF | |
| - | | **Green Ethernet** | Disabled | + | | **Green Ethernet** | OFF | |
| - | | **Idle Power Saving** | Disabled | + | | **Idle Power Saving** | OFF | |
| - | | **Selective Suspend** | Disabled | + | | **Selective Suspend** | OFF | |
| - | | **Power Saving Mode** | Disabled | + | | **Power Saving Mode** | OFF | |
| + | | **System Idle Power Saver** | OFF | | ||
| + | | **Ultra Low Power Mode** | OFF | | ||
| + | {{controller-disconnects: | ||
| Not every adapter has all of these properties. Change the ones that are there and leave the others. | Not every adapter has all of these properties. Change the ones that are there and leave the others. | ||
| The adapter may disconnect for a few seconds when you click **OK**. This is normal. | The adapter may disconnect for a few seconds when you click **OK**. This is normal. | ||
| - | ===== Step 4: Do not let Windows | + | ===== Stop Windows |
| - | - In **Device Manager**, | + | - In **Device Manager**, |
| - Click the **Power Management** tab. | - Click the **Power Management** tab. | ||
| - Clear the **Allow the computer to turn off this device to save power** check box. | - Clear the **Allow the computer to turn off this device to save power** check box. | ||
| - Click **OK**. | - Click **OK**. | ||
| - | Some PCs do not show the **Power Management** tab for some adapters. If the tab is not there, | + | Some PCs do not show the **Power Management** tab for some adapters. If the tab is not there, |
| - | If the adapter is in a USB-C dock or hub, also do this for the hub: | + | If the adapter is connected by USB (for example a USB dongle, or a USB-C dock or hub), also do this for the USB devices between the adapter and the PC: |
| - | - In **Device Manager**, | + | - In **Device Manager**, |
| - | - For each **USB Root Hub** and **Generic | + | - Expand the items until you find the adapter. |
| + | - Look at the items above the adapter in the tree, for example **Generic USB Hub**, | ||
| + | - For each of these items that has a **Power Management** tab, open **Properties** and clear the same check box. | ||
| + | - Click **View** > **Devices by type** to go back to the normal view. | ||
| - | ===== Step 5: Turn off USB selective suspend | + | You do not need to change USB hubs that the adapter is not connected to. |
| + | {{controller-disconnects: | ||
| + | |||
| + | ===== Turn Off USB Selective Suspend | ||
| + | |||
| + | Do this if the adapter is connected by USB. | ||
| - Press **Windows + R**, type **powercfg.cpl**, | - Press **Windows + R**, type **powercfg.cpl**, | ||
| Line 98: | Line 70: | ||
| - Click **Change advanced power settings**. | - Click **Change advanced power settings**. | ||
| - Expand **USB settings** > **USB selective suspend setting**. | - Expand **USB settings** > **USB selective suspend setting**. | ||
| - | - Set **Plugged in** to **Disabled**. On a laptop, also set **On battery** to **Disabled**. | + | - Set **Plugged in** to **Disabled**. |
| - Click **OK**. | - Click **OK**. | ||
| + | {{controller-disconnects: | ||
| - | If **USB settings** is not in the list, run these commands in PowerShell instead: | + | ===== Stop the PC from Sleeping ===== |
| - | <code powershell> | + | |
| - | powercfg / | + | - Expand **Screen, sleep, & hibernate timeouts**. |
| - | powercfg / | + | - Under **Plugged in**, set the sleep setting (on a desktop PC: **Make my device sleep after**) to **Never**. |
| - | powercfg /setactive SCHEME_CURRENT | + | - If there is a hibernate setting, set it for **Plugged |
| - | </ | + | |
| - | + | ||
| - | ===== Step 6: Set sleep to Never ===== | + | |
| - | + | ||
| - | Windows 11: | + | |
| - | + | ||
| - | | + | |
| - | - Expand **Screen, sleep, & hibernate timeouts** | + | |
| - | - Set the sleep setting for **Plugged in** to **Never**. | + | |
| - | + | ||
| - | Windows 10: | + | |
| - | + | ||
| - | - Click **Start** > **Settings** > **System** > **Power & sleep**. | + | |
| - | - Under **Sleep**, set **When plugged | + | |
| + | {{controller-disconnects: | ||
| The screen can still turn off. Only sleep must be **Never**. | The screen can still turn off. Only sleep must be **Never**. | ||
| - | On a laptop that runs with the lid closed, also set the lid action: | + | ===== Check That the Fix Worked |
| - | + | ||
| - | - Press **Windows + R**, type **powercfg.cpl**, | + | |
| - | - Click **Choose what closing the lid does**. | + | |
| - | - Set **When I close the lid** > **Plugged in** to **Do nothing**. | + | |
| - | - Click **Save changes**. | + | |
| - | + | ||
| - | ===== Step 7: Check that the fix worked | + | |
| - Restart the PC. | - Restart the PC. | ||
| - | - Run the diagnostic block from Step 1 again and open the new report. Check that: | + | - Run a test under the same conditions as the test that failed: the same adapter, dock, and USB port, and the same test length. |
| - | * The Spider adapter shows **AllowTurnOff** as **False** or **n/a**. | + | |
| - | * The power-saving properties of the Spider | + | |
| - | * **USB selective suspend setting** shows **Current AC Power Setting Index: 0x00000000**. | + | |
| - | * **Sleep after** shows **Current AC Power Setting Index: 0x00000000** (never). | + | |
| - | - Run a test that is as long as the one that failed before, or leave a test running overnight. | + | |
| - Do not use the PC for other work during this test. | - Do not use the PC for other work during this test. | ||
| - Confirm that the test finished without a disconnect. | - Confirm that the test finished without a disconnect. | ||
| - | If the Spider still disconnects, run the diagnostic block again right after the disconnect and send the report to Crystal Instruments support. | + | ===== Still Disconnecting? |
| + | |||
| + | If the Spider still disconnects after you try these steps, email Crystal Instruments support | ||
| + | |||
| + | * The date and time of the disconnect. | ||
| + | * The device name of the adapter that connects to the Spider. | ||
| + | * The EDM log files (see [[general: | ||
| + | |||
| + | If you can, also try a different USB-to-Ethernet adapter or the PC's built-in Ethernet port. | ||