Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
vcs:controller-disconnects [2026/10/26 18:23] – created cxie_go-ci.comvcs:controller-disconnects [2026/10/27 20:25] (current) – cxie_go-ci.com
Line 1: Line 1:
-====== Controller disconnects during long tests - check Windows power management ======+====== Controller Disconnects During Long Tests - Check Windows Power Management ======
  
-===== 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 often happens overnight or after the PC has been left alone for a while. EDM shows the front-end as disconnected, and the test stops or aborts. 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.
-  * EDM shows the front-end as disconnected, and the test stops or aborts. +
-  * 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 can be suspended, put into a low-power link state, or lose power when the PC goes to sleep. When that happens, the network link to the Spider is lost and EDM cannot reach the controller.+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 connection yet, see [[general:ip-connect|Connecting the Spider System to the PC]] first.
  
-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**, and open **Windows PowerShell**. You do not need to run it as administrator. +
-  - 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]::GetFolderPath('Desktop')) 'CI-Network-Power-Report.txt' +
-& { +
-  "== Computer ==" +
-  $cs = Get-CimInstance Win32_ComputerSystem; $os = Get-CimInstance Win32_OperatingSystem +
-  "$($cs.Manufacturer) $($cs.Model) | $($os.Caption) $($os.Version) | Last boot: $($os.LastBootUpTime)" +
-  "== Network adapters ==" +
-  $pm = @{}; Get-CimInstance -Namespace root\wmi -ClassName MSPower_DeviceEnable -ErrorAction SilentlyContinue | ForEach-Object { $pm[($_.InstanceName -replace '_0$','')] = $_.Enable } +
-  Get-NetAdapter -Physical | Sort-Object Name | Select-Object Name, InterfaceDescription, Status, LinkSpeed, DriverVersion, +
-    @{n='Bus';e={($_.PnPDeviceID -split '\\')[0]}}, +
-    @{n='AllowTurnOff';e={ if ($pm.ContainsKey($_.PnPDeviceID)) { $pm[$_.PnPDeviceID] } else { 'n/a' } }} | Format-Table -AutoSize +
-  Get-NetIPAddress -AddressFamily IPv4 | Where-Object InterfaceAlias -notmatch 'Loopback' | Sort-Object InterfaceAlias | Format-Table -AutoSize InterfaceAlias, IPAddress, PrefixLength +
-  "== Adapter power-saving properties ==" +
-  Get-NetAdapter -Physical | Get-NetAdapterAdvancedProperty | Where-Object DisplayName -match 'Energy|EEE|Green|Power|Idle|Sleep|Suspend' | Sort-Object Name | Format-Table -AutoSize Name, DisplayName, DisplayValue +
-  "== Power plan (0x0 = off/never; AC = plugged in, DC = battery) ==" +
-  powercfg /getactivescheme +
-  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='System'; ProviderName='Microsoft-Windows-Kernel-Power'; Id=42,107,506,507; StartTime=(Get-Date).AddDays(-7)} -ErrorAction SilentlyContinue +
-  if ($ev) { $ev | Select-Object -First 50 | Format-Table -AutoSize TimeCreated, Id, @{n='Event';e={($_.Message -split "`r?`n")[0]}} } else { 'None found' } +
-} *>&1 | Out-File -FilePath $out -Encoding utf8 -Width 250 +
-Write-Host "Report saved to $out" +
-</code> +
- +
-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**, and press **Enter**.   - Press **Windows + R**, type **ncpa.cpl**, and press **Enter**.
-  - Find the adapter that has the Spider subnet IP address (for example **172.0.0.x** or **169.254.x.x**). USB adapters usually have "USB" in the device name, for example **Realtek USB GbE Family Controller** or **ASIX AX88179 USB 3.0 to Gigabit Ethernet Adapter**. +  - 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 has an address in the Spider subnet (for example **172.0.0.x** or **169.254.x.x**). 
 +  - 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 "USB" in the device name, for example **Realtek USB GbE Family Controller** or **ASIX AX88179 USB 3.0 to Gigabit Ethernet Adapter**.
  
-===== Step 3: Turn off power saving on the adapter (Advanced tab) =====+Then change its power-saving options:
  
   - Right-click **Start** and click **Device Manager**.   - Right-click **Start** and click **Device Manager**.
   - Expand **Network adapters**.   - Expand **Network adapters**.
-  - Right-click the adapter from Step 2 and click **Properties**.+  - 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:pasted:20261027-193617.png}}
 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 turn off the adapter (Power Management tab) =====+===== Stop Windows from Turning Off the Adapter =====
  
-  - In **Device Manager**, open the adapter **Properties** again.+  - In **Device Manager**, right-click the adapter and click **Properties**.
   - 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, go to the next step.+Some PCs do not show the **Power Management** tab for some adapters. If the tab is not there, try the next section.
  
-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**, expand **Universal Serial Bus controllers**. +  - In **Device Manager**, click **View** > **Devices by connection**. 
-  - For each **USB Root Hub** and **Generic USB Hub**, open **Properties** and clear the same check box on the **Power Management** tab.+  - Expand the items until you find the adapter. 
 +  - Look at the items above the adapter in the tree, for example **Generic USB Hub**, **USB Root Hub**, and **USB eXtensible Host Controller**. 
 +  - 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:pasted:20261027-195344.png}} 
 + 
 +===== Turn Off USB Selective Suspend ===== 
 + 
 +Do this if the adapter is connected by USB.
  
   - Press **Windows + R**, type **powercfg.cpl**, and press **Enter**.   - Press **Windows + R**, type **powercfg.cpl**, and press **Enter**.
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:pasted:20261027-195517.png}}
  
-If **USB settings** is not in the list, run these commands in PowerShell instead:+===== Stop the PC from Sleeping =====
  
-<code powershell> +  - Click **Start** > **Settings** > **System** > **Power & battery** (on a desktop PC: **Power**). 
-powercfg /setacvalueindex SCHEME_CURRENT 2a737441-1930-4402-8d77-b2bebba308a3 48e6b7a6-50f5-4782-a5d4-53bb8f07e226 0 +  - Expand **Screen, sleep, & hibernate timeouts**. 
-powercfg /setdcvalueindex SCHEME_CURRENT 2a737441-1930-4402-8d77-b2bebba308a3 48e6b7a6-50f5-4782-a5d4-53bb8f07e226 0 +  - 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 in** to **Never**.
-</code> +
- +
-===== Step 6: Set sleep to Never ===== +
- +
-Windows 11: +
- +
-  - Click **Start** > **Settings** > **System** > **Power & battery**. +
-  - Expand **Screen, sleep, & hibernate timeouts** (on some versions: **Screen and sleep**). +
-  - Set the sleep setting for **Plugged in** to **Never**. +
- +
-Windows 10: +
- +
-  - Click **Start** > **Settings** > **System** > **Power & sleep**. +
-  - Under **Sleep**, set **When plugged in, PC goes to sleep after** to **Never**.+
  
 +{{controller-disconnects:pasted:20261027-194601.png}}
 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**, and press **Enter**. +
-  - 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 adapter show **Disabled** or **Off**. +
-    * **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. Tell us the date and time of the disconnect. If you can, also try a different USB-to-Ethernet adapter or the PC's built-in Ethernet port.+===== Still Disconnecting? Contact Support ===== 
 + 
 +If the Spider still disconnects after you try these steps, email Crystal Instruments support at **support@go-ci.com**. Include: 
 + 
 +  * The date and time of the disconnect. 
 +  * The device name of the adapter that connects to the Spider. 
 +  * The EDM log files (see [[general:edmlog|Sending the Tech Support Log File]]). 
 + 
 +If you can, also try a different USB-to-Ethernet adapter or the PC's built-in Ethernet port.