Timeout: Failed to connect to the device Failed downloading.

本文介绍了解决WinCE开发环境下,通过USB连接时出现的下载程序失败问题。主要原因是PC与开发板间的网络未正常建立,解决方法是安装并配置Microsoft Loopback Adapter。

USB  Microsoft  ActiveSync


在linux下开发习惯了,现在由于项目需要,转Wince下开发。第一次使用这个平台,第一个问题就是把HelloWorld程序下载到开发板跑起来。linux下第一次跑HelloWorld也是费了一番周折。wince下也不例外。

 

 

按照开发板说明说,以及网上的其他资料,安装所必须的一些软件应该是没有问题的。

 

但是编译HelloWorld然后下载到开发板,通常都会出问题:

Timeout: Failed to connect  to the device Failed downloading.

 

 

这个问题主要是开发板和PC的网络没通,没通的原因是使用USB连接网络,需要PC安装虚拟回环适配器

 

Microsoft Loopback Adapter这个东西。

 

一下把解决问题的方法翻译出来:

1.打开“控制面板”,选择“添加硬件”,然后选择“Next”。
 
2.选择“Yes”,我已经连接了硬件,然后选择“Next”。
 
3.从 “安装硬件” 列表中选择“安装新的硬件设备”,然后选择“Next”。
 
4.选择“从列表中选择 ”,然后选择“Next”。
 
5.从 硬件类型 列表中选择“网卡”,然后选择“Next”。
 
6.从 Manufacturer 列表中选择“Microsoft”。
 
7.从 网卡 列表中选择“Microsoft Loopback Adapter”,然后选择“Next”。
 
8.选择“Next”,然后选择“Finish”。

 

9.开发板的连接(不是指的那个USB连接)要设置为DHCP方式获取IP。

 

 

设置好之后,你会发现虚拟网卡的链接是断开的。但是其实这个时候就已经可以下载程序到开发板了。

GM: Constructor GM: Wed Oct 29 14:12:41 2025 RSTD.Transmit("/Settings") [14:12:41] [14:12:41] ### Running Startup script: "C:\ti\mmwave_studio_02_01_01_00\mmWaveStudio\Scripts\Startup.lua" ### [14:12:41] RSTD.SetAndTransmit ("/Settings/Scripter/Display DateTime" , "1") [14:12:41] RSTD.SetAndTransmit ("/Settings/Scripter/DateTime Format" , "HH:mm:ss") [14:12:41] Scripter ignored: Attempt to UnBuild() again or before Build. [14:12:41] RSTD.SetVar ("/Settings/Clients/Client 0/Dll" , "C:\\ti\\mmwave_studio_02_01_01_00\\mmWaveStudio\\Clients\\\\LabClient.dll") [14:12:41] RSTD.SetVar ("/Settings/Clients/Client 0/Use" , "TRUE") [14:12:41] RSTD.SetVar ("/Settings/Clients/Client 1/Use" , "FALSE") [14:12:41] RSTD.SetVar ("/Settings/Clients/Client 2/Use" , "FALSE") [14:12:41] RSTD.SetVar ("/Settings/Clients/Client 3/Use" , "FALSE") [14:12:41] RSTD.SetVar ("/Settings/Clients/Client 4/Use" , "FALSE") [14:12:41] RSTD.SetVar ("/Settings/AL Client/AL Dll" , "C:\\ti\\mmwave_studio_02_01_01_00\\mmWaveStudio\\RunTime\\SAL.dll") [14:12:41] RSTD.SetVar ("/Settings/Clients/Client 0/GuiDll" , "") [14:12:41] RSTD.SetVar ("/Settings/AutoUpdate/Enabled" , "TRUE") [14:12:41] RSTD.SetVar ("/Settings/AutoUpdate/Interval" , "1") [14:12:41] RSTD.SetVar ("/Settings/Monitors/UpdateDisplay" , "TRUE") [14:12:41] RSTD.SetVar ("/Settings/Monitors/OneClickStart" , "TRUE") [14:12:41] RSTD.SetVar ("/Settings/Automation/Automation Mode" , "false") [14:12:41] RSTD.Transmit("/") [14:12:41] RSTD.SaveSettings(): Settings saved to "C:\Users\86155\AppData\Roaming\RSTD\config.xml" [14:12:42] RSTD.Build() [14:12:42] RSTD.SaveSettings(): Settings saved to "C:\Users\86155\AppData\Roaming\RSTD\config.xml" [14:12:42] RSTD.Transmit("/") [14:12:42] RSTD.AL_Build() [14:12:42] RSTD.AL_LoadXml() [14:12:42] RSTD.Transmit("/") [14:12:42] RSTD.AL_Init() [14:12:42] RSTD.Clients_Build() [14:12:42] GM: Init [14:12:42] GM: Loaded 'C:\ti\mmwave_studio_02_01_01_00\mmWaveStudio\Clients\\LabClient.dll' [14:12:42] GM: 1 Guest (s) init [14:12:42] GM: 1 Module(s) init [14:12:42] GM: 2 Tab (s) init [14:12:42] RSTD.Client_LoadXml() [14:12:42] [RadarAPI]: ar1.selectRadarMode(0) [14:12:42] [RadarAPI]: Status: Passed [14:12:42] Matlab Runtime Engine is installed [14:12:42] [RadarAPI]: Starting Matlab Engine.. [14:13:07] [RadarAPI]: Matlab Engine Started! [14:13:09] [RadarAPI]: ar1.selectCascadeMode(0) [14:13:09] [RadarAPI]: Status: Passed [14:13:09] [RadarAPI]: ar1.LoadSettings('C:\Users\86155\AppData\Roaming\RSTD\ar1gui.ini') [14:13:10] TESTING = false [14:13:10] RstdNet: Port 2777: Listening.. [14:13:10] [14:13:10] ***Script completed successfully.*** [14:13:27] [RadarAPI]: Opening Gpio Control Port() [14:13:27] [RadarAPI]: Status: Passed [14:13:28] [RadarAPI]: Opening Board Control Port() [14:13:28] [RadarAPI]: Status: Passed [14:13:29] [RadarAPI]: ar1.FullReset() [14:13:29] [RadarAPI]: Status: Passed [14:13:30] [RadarAPI]: Closing Board Control Port() [14:13:30] [RadarAPI]: Status: Passed [14:13:30] [RadarAPI]: Closing Gpio Control Port() [14:13:30] [RadarAPI]: Status: Passed [14:13:30] [RadarAPI]: ar1.SOPControl(2) [14:13:30] [RadarAPI]: Status: Passed [14:13:37] [RadarAPI]: ar1.Connect(4,115200,1000) [14:13:38] [RadarAPI]: ar1.Calling_IsConnected() [14:13:39] [RadarAPI]: ar1.SelectChipVersion("IWR6843") [14:13:39] [RadarAPI]: Status: Passed [14:13:39] [RadarAPI]: ar1.frequencyBandSelection("60G") [14:13:39] [RadarAPI]: ar1.SelectChipVersion("IWR6843") [14:13:39] [RadarAPI]: Status: Passed [14:13:40] Device Status : IWR6843/QM/SOP:2/ES:2 [14:13:40] [RadarAPI]: ar1.SaveSettings('C:\Users\86155\AppData\Roaming\RSTD\ar1gui.ini') [14:13:47] [RadarAPI]: ar1.DownloadBSSFw("C:\\ti\\mmwave_studio_02_01_01_00\\rf_eval_firmware\\radarss\\xwr68xx_radarss.bin") [14:13:47] [RadarAPI]: Downloading BSS ROM RPRC Binary.. [14:14:35] [RadarAPI]: ar1.GetBSSFwVersion() [14:14:35] [RadarAPI]: BSSFwVersion:(06.02.01.05 (09/03/20)) [14:14:40] [RadarAPI]: ar1.DownloadMSSFw("C:\\ti\\mmwave_studio_02_01_01_00\\rf_eval_firmware\\masterss\\xwr68xx_masterss.bin") [14:14:40] [RadarAPI]: Downloading MSS RPRC Binary.. [14:14:59] [RadarAPI]: ar1.GetMSSFwVersion() [14:14:59] [RadarAPI]: MSSFwVersion:(02.00.00.03 (27/08/19)) [14:15:33] [RadarAPI]: ar1.PowerOn(0, 1000, 0, 0) [14:15:33] Status: Failed, Error Type: RESP TIMEOUT [14:15:37] MSS Power Up async event was not received!
最新发布
10-30
Obtaining file:///home/aaeon/xk_ws/mmseg/mmdeploy-main Running command python setup.py egg_info A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.6 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 35, in <module> File "/home/aaeon/xk_ws/mmseg/mmdeploy-main/setup.py", line 8, in <module> import torch File "/home/aaeon/anaconda3/envs/py3.10/lib/python3.10/site-packages/torch/__init__.py", line 1382, in <module> from .functional import * # noqa: F403 File "/home/aaeon/anaconda3/envs/py3.10/lib/python3.10/site-packages/torch/functional.py", line 7, in <module> import torch.nn.functional as F File "/home/aaeon/anaconda3/envs/py3.10/lib/python3.10/site-packages/torch/nn/__init__.py", line 1, in <module> from .modules import * # noqa: F403 File "/home/aaeon/anaconda3/envs/py3.10/lib/python3.10/site-packages/torch/nn/modules/__init__.py", line 35, in <module> from .transformer import TransformerEncoder, TransformerDecoder, \ File "/home/aaeon/anaconda3/envs/py3.10/lib/python3.10/site-packages/torch/nn/modules/transformer.py", line 20, in <module> device: torch.device = torch.device(torch._C._get_default_device()), # torch.device('cpu'), /home/aaeon/anaconda3/envs/py3.10/lib/python3.10/site-packages/torch/nn/modules/transformer.py:20: UserWarning: Failed to initialize NumPy: _ARRAY_API not found (Triggered internally at /tmp/pytorch/torch/csrc/utils/tensor_numpy.cpp:84.) device: torch.device = torch.device(torch._C._get_default_device()), # torch.device('cpu'), /home/aaeon/anaconda3/envs/py3.10/lib/python3.10/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer. warnings.warn( WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. (read timeout=15)")': /packages/23/3a/5b92bfff9c1cc1179a493684d0e6a893ee7cd69c4f1977813000ea76c5d7/cython-3.1.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl WARNING: Connection timed out while downloading. error: incomplete-download × Download failed because not enough bytes were received (0 bytes/3.2 MB) ╰─> URL: https://files.pythonhosted.org/packages/23/3a/5b92bfff9c1cc1179a493684d0e6a893ee7cd69c4f1977813000ea76c5d7/cython-3.1.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl note: This is an issue with network connectivity, not pip. hint: Consider using --resume-retries to enable download resumption. Traceback (most recent call last): File "/home/aaeon/anaconda3/envs/py3.10/lib/python3.10/site-packages/setuptools/installer.py", line 82, in fetch_build_egg subprocess.check_call(cmd) File "/home/aaeon/anaconda3/envs/py3.10/lib/python3.10/subprocess.py", line 369, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['/home/aaeon/anaconda3/envs/py3.10/bin/python3.10', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmp1wjeie4e', '--quiet', 'cython']' returned non-zero exit status 1. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 35, in <module> File "/home/aaeon/xk_ws/mmseg/mmdeploy-main/setup.py", line 184, in <module> setup( File "/home/aaeon/anaconda3/envs/py3.10/lib/python3.10/site-packages/setuptools/__init__.py", line 154, in setup _install_setup_requires(attrs) File "/home/aaeon/anaconda3/envs/py3.10/lib/python3.10/site-packages/setuptools/__init__.py", line 148, in _install_setup_requires dist.fetch_build_eggs(dist.setup_requires) File "/home/aaeon/anaconda3/envs/py3.10/lib/python3.10/site-packages/setuptools/dist.py", line 812, in fetch_build_eggs resolved_dists = pkg_resources.working_set.resolve( File "/home/aaeon/anaconda3/envs/py3.10/lib/python3.10/site-packages/pkg_resources/__init__.py", line 771, in resolve dist = best[req.key] = env.best_match( File "/home/aaeon/anaconda3/envs/py3.10/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1056, in best_match return self.obtain(req, installer) File "/home/aaeon/anaconda3/envs/py3.10/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1068, in obtain return installer(requirement) File "/home/aaeon/anaconda3/envs/py3.10/lib/python3.10/site-packages/setuptools/dist.py", line 883, in fetch_build_egg return fetch_build_egg(self, req) File "/home/aaeon/anaconda3/envs/py3.10/lib/python3.10/site-packages/setuptools/installer.py", line 84, in fetch_build_egg raise DistutilsError(str(e)) from e distutils.errors.DistutilsError: Command '['/home/aaeon/anaconda3/envs/py3.10/bin/python3.10', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmp1wjeie4e', '--quiet', 'cython']' returned non-zero exit status 1. error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. full command: /home/aaeon/anaconda3/envs/py3.10/bin/python3.10 -c ' exec(compile('"'"''"'"''"'"' # This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py # # - It imports setuptools before invoking setup.py, to enable projects that directly # import from `distutils.core` to work with newer packaging standards. # - It provides a clear error message when setuptools is not installed. # - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so # setuptools doesn'"'"'t think the script is `-c`. This avoids the following warning: # manifest_maker: standard file '"'"'-c'"'"' not found". # - It generates a shim setup.py, for handling setup.cfg-only projects. import os, sys, tokenize, traceback try: import setuptools except ImportError: print( "ERROR: Can not execute `setup.py` since setuptools failed to import in " "the build environment with exception:", file=sys.stderr, ) traceback.print_exc() sys.exit(1) __file__ = %r sys.argv[0] = __file__ if os.path.exists(__file__): filename = __file__ with tokenize.open(__file__) as f: setup_py_code = f.read() else: filename = "<auto-generated setuptools caller>" setup_py_code = "from setuptools import setup; setup()" exec(compile(setup_py_code, filename, "exec")) '"'"''"'"''"'"' % ('"'"'/home/aaeon/xk_ws/mmseg/mmdeploy-main/setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' egg_info --egg-base /tmp/pip-pip-egg-info-qwudrxft cwd: /home/aaeon/xk_ws/mmseg/mmdeploy-main/ Preparing metadata (setup.py) ... error error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details. (py3.10) aaeon@aaeon-desktop:~/xk_ws/mmseg/mmdeploy-main$ pip install -e . Obtaining file:///home/aaeon/xk_ws/mmseg/mmdeploy-main Preparing metadata (setup.py) ... error error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [67 lines of output] A module that was compiled using NumPy 1.x cannot be run in NumPy 2.2.6 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 35, in <module> File "/home/aaeon/xk_ws/mmseg/mmdeploy-main/setup.py", line 8, in <module> import torch File "/home/aaeon/anaconda3/envs/py3.10/lib/python3.10/site-packages/torch/__init__.py", line 1382, in <module> from .functional import * # noqa: F403 File "/home/aaeon/anaconda3/envs/py3.10/lib/python3.10/site-packages/torch/functional.py", line 7, in <module> import torch.nn.functional as F File "/home/aaeon/anaconda3/envs/py3.10/lib/python3.10/site-packages/torch/nn/__init__.py", line 1, in <module> from .modules import * # noqa: F403 File "/home/aaeon/anaconda3/envs/py3.10/lib/python3.10/site-packages/torch/nn/modules/__init__.py", line 35, in <module> from .transformer import TransformerEncoder, TransformerDecoder, \ File "/home/aaeon/anaconda3/envs/py3.10/lib/python3.10/site-packages/torch/nn/modules/transformer.py", line 20, in <module> device: torch.device = torch.device(torch._C._get_default_device()), # torch.device('cpu'), /home/aaeon/anaconda3/envs/py3.10/lib/python3.10/site-packages/torch/nn/modules/transformer.py:20: UserWarning: Failed to initialize NumPy: _ARRAY_API not found (Triggered internally at /tmp/pytorch/torch/csrc/utils/tensor_numpy.cpp:84.) device: torch.device = torch.device(torch._C._get_default_device()), # torch.device('cpu'), /home/aaeon/anaconda3/envs/py3.10/lib/python3.10/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer. warnings.warn( WARNING: Connection timed out while downloading. error: incomplete-download × Download failed because not enough bytes were received (0 bytes/3.2 MB) ╰─> URL: https://files.pythonhosted.org/packages/23/3a/5b92bfff9c1cc1179a493684d0e6a893ee7cd69c4f1977813000ea76c5d7/cython-3.1.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl note: This is an issue with network connectivity, not pip. hint: Consider using --resume-retries to enable download resumption. Traceback (most recent call last): File "/home/aaeon/anaconda3/envs/py3.10/lib/python3.10/site-packages/setuptools/installer.py", line 82, in fetch_build_egg subprocess.check_call(cmd) File "/home/aaeon/anaconda3/envs/py3.10/lib/python3.10/subprocess.py", line 369, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['/home/aaeon/anaconda3/envs/py3.10/bin/python3.10', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpmuq3o4i0', '--quiet', 'cython']' returned non-zero exit status 1. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "<string>", line 2, in <module> File "<pip-setuptools-caller>", line 35, in <module> File "/home/aaeon/xk_ws/mmseg/mmdeploy-main/setup.py", line 184, in <module> setup( File "/home/aaeon/anaconda3/envs/py3.10/lib/python3.10/site-packages/setuptools/__init__.py", line 154, in setup _install_setup_requires(attrs) File "/home/aaeon/anaconda3/envs/py3.10/lib/python3.10/site-packages/setuptools/__init__.py", line 148, in _install_setup_requires dist.fetch_build_eggs(dist.setup_requires) File "/home/aaeon/anaconda3/envs/py3.10/lib/python3.10/site-packages/setuptools/dist.py", line 812, in fetch_build_eggs resolved_dists = pkg_resources.working_set.resolve( File "/home/aaeon/anaconda3/envs/py3.10/lib/python3.10/site-packages/pkg_resources/__init__.py", line 771, in resolve dist = best[req.key] = env.best_match( File "/home/aaeon/anaconda3/envs/py3.10/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1056, in best_match return self.obtain(req, installer) File "/home/aaeon/anaconda3/envs/py3.10/lib/python3.10/site-packages/pkg_resources/__init__.py", line 1068, in obtain return installer(requirement) File "/home/aaeon/anaconda3/envs/py3.10/lib/python3.10/site-packages/setuptools/dist.py", line 883, in fetch_build_egg return fetch_build_egg(self, req) File "/home/aaeon/anaconda3/envs/py3.10/lib/python3.10/site-packages/setuptools/installer.py", line 84, in fetch_build_egg raise DistutilsError(str(e)) from e distutils.errors.DistutilsError: Command '['/home/aaeon/anaconda3/envs/py3.10/bin/python3.10', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpmuq3o4i0', '--quiet', 'cython']' returned non-zero exit status 1. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details.
06-28
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值