Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
vcs:controller-disconnects [2026/10/26 20:54] – 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.
  
-A likely cause is Windows power management. 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. When the link is lost, 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. You can usually fix the problem yourself with one of the solutions below. Do not make these changes while a test is running. +===== Turn Off Power Saving on the Adapter =====
- +
-If you have not set up the network connection yet, see [[general:ip-connect|Connecting the Spider System to the PC]] first. +
- +
-===== Solution: Change the settings with a PowerShell script ===== +
- +
-This is the fastest fix. The script makes the same changes as the manual solutions below, on the adapter that connects to the Spider: +
- +
-  * Turns off Energy-Efficient Ethernet, Green Ethernet, and the other standard power-saving properties. +
-  * Clears **Allow the computer to turn off this device to save power** for the adapter, and for the USB hubs it is connected through. +
-  * When the PC is plugged in: turns off USB selective suspend, sets sleep and hibernate to **Never**, and sets closing the lid to **Do nothing**. +
- +
-Close EDM and do not run a test while you run the script. +
- +
-  - Find the name of the adapter that connects to the Spider (see the first part of the next solution). Use the name in **Network Connections**, for example **Ethernet 2**, not the device name. +
-  - Click **Start** and type **PowerShell**. Right-click **Windows PowerShell**, click **Run as administrator**, and click **Yes**. +
-  - Type this line, with your adapter name between the quotes, and press **Enter**: ''%%$name = 'Ethernet 2'%%'' +
-  - Copy the block below, paste it into the PowerShell window, and press **Enter**. +
-  - If PowerShell shows red error text, change that setting with the manual steps below. +
-  - Restart the PC. +
- +
-<code powershell> +
-Get-NetAdapterAdvancedProperty -Name $name | Where-Object RegistryKeyword -match '^\*?(EEE|AdvancedEEE|EnableGreenEthernet|GreenEthernet|SelectiveSuspend|PowerSavingMode|SipsEnabled|ULPMode)$' | Set-NetAdapterAdvancedProperty -RegistryValue 0 -NoRestart +
-$ids = @(); $id = (Get-NetAdapter -Name $name).PnPDeviceID +
-while ($id -and ($ids.Count -eq 0 -or $id -like 'USB\*')) { $ids += $id; $id = (Get-PnpDeviceProperty -InstanceId $id -KeyName DEVPKEY_Device_Parent).Data } +
-Get-CimInstance -Namespace root\wmi -ClassName MSPower_DeviceEnable | Where-Object { ($_.InstanceName -replace '_0$') -in $ids } | Set-CimInstance -Property @{ Enable = $false } +
-powercfg /setacvalueindex SCHEME_CURRENT 2a737441-1930-4402-8d77-b2bebba308a3 48e6b7a6-50f5-4782-a5d4-53bb8f07e226 0 +
-powercfg /setacvalueindex SCHEME_CURRENT SUB_SLEEP STANDBYIDLE 0 +
-powercfg /setacvalueindex SCHEME_CURRENT SUB_SLEEP HIBERNATEIDLE 0 +
-powercfg /setacvalueindex SCHEME_CURRENT SUB_BUTTONS LIDACTION 0 +
-powercfg /setactive SCHEME_CURRENT +
-</code> +
- +
-If your company does not allow PowerShell scripts, or you want to change the settings yourself, use the manual solutions below. You can also use them to undo any change the script made. +
- +
-===== Solution: Turn off power saving in the adapter settings =====+
  
 First find the adapter that connects to the Spider: First find the adapter that connects to the Spider:
Line 63: Line 25:
   - Right-click the adapter 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** | Disabled | +| **System Idle Power Saver** | OFF | 
-| **Ultra Low Power Mode** | Disabled | +| **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.
  
-===== Solution: Stop Windows from turning off the adapter =====+===== Stop Windows from Turning Off the Adapter =====
  
   - In **Device Manager**, right-click the adapter and click **Properties**.   - In **Device Manager**, right-click the adapter and click **Properties**.
Line 87: Line 49:
   - Click **OK**.   - Click **OK**.
  
-Some PCs do not show the **Power Management** tab for some adapters. If the tab is not there, try the next solution.+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 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: 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:
Line 98: Line 60:
  
 You do not need to change USB hubs that the adapter is not connected to. You do not need to change USB hubs that the adapter is not connected to.
 +{{controller-disconnects:pasted:20261027-195344.png}}
  
-===== Solution: Turn off USB selective suspend =====+===== Turn Off USB Selective Suspend =====
  
 Do this if the adapter is connected by USB. Do this if the adapter is connected by USB.
Line 109: Line 72:
   - Set **Plugged in** 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, use the PowerShell script above. It changes this setting directly. +===== Stop the PC from Sleeping =====
- +
-===== Solution: Stop the PC from sleeping =====+
  
   - Click **Start** > **Settings** > **System** > **Power & battery** (on a desktop PC: **Power**).   - Click **Start** > **Settings** > **System** > **Power & battery** (on a desktop PC: **Power**).
Line 119: Line 81:
   - If there is a hibernate setting, set it for **Plugged in** to **Never**.   - If there is a hibernate setting, set it for **Plugged in** to **Never**.
  
-If there is no hibernate setting in **Settings**, check it in Control Panel:+{{controller-disconnects:pasted:20261027-194601.png}} 
 +The screen can still turn off. Only sleep must be **Never**.
  
-  - Press **Windows + R**, type **powercfg.cpl**, and press **Enter**. +===== Check That the Fix Worked =====
-  - Next to the selected power plan, click **Change plan settings**. +
-  - Click **Change advanced power settings**. +
-  - Expand **Sleep** > **Hibernate after**. +
-  - Set **Plugged in** to **Never** (or **0**). +
-  - Click **OK**. +
- +
-The screen can still turn off. Only sleep and hibernate must be **Never**. +
- +
-On a laptop that runs with the lid closed, also set the lid action: +
- +
-  - 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**. +
- +
-Keep a laptop plugged in during long tests. These settings apply only when it is plugged in. +
- +
-If a setting is missing, cannot be changed, or changes back by itself, it may be set by your company IT policy. Contact your IT department. +
- +
-===== Check that the fix worked =====+
  
   - Restart the PC.   - Restart the PC.
-  - Run a test under the same conditions as the test that failed: the same adapter, dock, and USB port, the same test length, and the same lid position.+  - Run a test under the same conditions as the test that failed: the same adapter, dock, and USB port, and the same test length.
   - 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.
  
-One test without a disconnect is a good sign, but it does not prove that the problem is fixed. If the disconnects did not happen every time before, repeat the test a few times. +===== Still Disconnecting? Contact Support =====
- +
-If you want to check the settings, run the diagnostic report below and open it. Check that: +
- +
-  * The Spider adapter shows **AllowTurnOff** as **False**. **n/a** means that the report could not check this setting. It does not mean that the setting is correct. +
-  * The power-saving properties of the Spider adapter show **Disabled** or **Off**. +
-  * In the power plan section, the **AC** (plugged in) value of **Sleep after** and **Hibernate after** is **0x00000000**. On English Windows, this line is **Current AC Power Setting Index**. +
-  * If the adapter is connected by USB: the **AC** value of **USB selective suspend setting** is also **0x00000000**. +
-  * On a laptop that runs with the lid closed: the **AC** value of **Lid close action** is **0x00000000** (do nothing). +
- +
-If a section of the report shows an error or is empty, that setting could not be checked.+
  
-===== Still disconnecting? Send a diagnostic report =====+If the Spider still disconnects after you try these steps, email Crystal Instruments support at **support@go-ci.com**. Include:
  
-If the Spider still disconnects after you try these solutions, collect a diagnostic report and send it to Crystal Instruments support at **support@go-ci.com**. If you can, also send the EDM log files (see [[general:edmlog|Sending the Tech Support Log File]]).+  * 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. If you can, also try a different USB-to-Ethernet adapter or the PC's built-in Ethernet port.