如何测试特定时间段内无线连接的稳定性,或者测试较长时间内连接的稳定性?
答案1
最简单的解决方案可能就是启动 ping 并检查数据包丢失。
Win + R
按下并输入cmd
+ OK启动命令提示符- 输入命令开始 ping
ping -t 8.8.8.8
- (这将 ping Google DNS 服务器,直到您按下
Ctrl + C
取消)
- (这将 ping Google DNS 服务器,直到您按下
- 如果您失去与互联网的连接,您将收到错误消息。
要真正确定是 Wi-Fi 适配器出现故障,最好 ping 一下默认网关。(可能是 192.168.0.1 或 192.168.1.1)
答案2
回答原始问题
答案很简单。尝试另一台电脑、笔记本电脑等。如果您想检查 USB 适配器是否正常工作,请将其插入另一台设备。
现在,对于内部适配器,请尝试回滚到以前的版本。这并不一定意味着它与 Windows 10 不兼容,它可能意味着驱动程序崩溃。尝试不同的版本并检查其中是否有任何版本有效。
以前在一台全新的笔记本电脑上出现过这个问题,当我回滚驱动程序时,一切都正常。
编辑:您是否考虑过这是路由器的问题而不是适配器的问题?其他设备是否也会断开连接?
更新:有很多因素都可能导致这个问题。
- 如果问题仅出在您的 PC 上,请检查您的防火墙设置,可能有某些东西阻止了您的访问。尝试使用 Windows 故障排除。您会惊讶地发现这种方法非常有用,尽管有些人认为它毫无用处。
- 如果问题出在您的 WiFi 上,请在路由器的 WiFi 设置中尝试其他频道。
使用以太网电缆时是否遇到同样的问题?如果是,则说明路由器有问题。这甚至可能是 ISP 的问题。可能出现问题的地方有很多。
答案3
以下批处理文件将为您执行快速测试和重置:
@echo off
Rem Microsoft Windows 10 ping test to gateway.
Rem Run batch file from an administrative command prompt.
cls
:starting
Rem Send one ping to the gateway. Write the results to a file.
ping 192.168.1.1 -n 1 > pingtest.txt
Rem Search for unreachable in the file.
c:\windows\system32\findstr.exe "unreachable" pingtest.txt
Rem errorlevel 0 reset the adapter if 1 then wait 10 minutes and test again
if %errorlevel%==1 goto waiting
Rem unreachable was found reset the adapter.
Rem write the date and time the reset was done.
echo Reset date: %date% time: %time% >> resettimes.txt
Rem issue netsh interface show interface to find your adapter's name to reset
Rem my adapter is "wi-fi"
netsh interface set interface "wi-fi" disable
timeout /t 5
netsh interface set interface "wi-fi" enable
:waiting
echo "It is online waiting 10 minutes"
timeout /t 600
goto starting