This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] SIMPLELINK-WIFI-TOOLBOX:logger 无法在 Linux 和 macOS 上启动(版本:2.3.3、错误:无此类文件或目录:'--conf_file ')

Guru**** 2343770 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/wi-fi-group/wifi/f/wi-fi-forum/1509635/simplelink-wifi-toolbox-logger-cannot-be-launched-on-linux-and-macos-version-2-3-3-error-no-such-file-or-directory---conf_file

部件号:SIMPLELINK-WIFI-TOOLBOX

工具/软件:

通过 Web 界面启动 Logger 时、我在 Linux (Ubuntu 24.04.2)和 macOS 上收到以下错误:

2025-05-05 20:33:04,675: Logger Version : 2.1.5
2025-05-05 20:33:18,017: Starting wLogger with command :
 --conf_file /home/ezra/docs/work/gw3/ti/simplelink_wifi_toolbox_lin_2_3_3/wlogger/tmp/wlogger_config.json --auto_start
2025-05-05 20:33:18,018: Exception on /logger/api/start [POST]
Traceback (most recent call last):
  File "flask/app.py", line 1513, in full_dispatch_request
  File "flask/app.py", line 1499, in dispatch_request
  File "flask_restful/__init__.py", line 467, in wrapper
  File "flask/views.py", line 83, in view
  File "flask_restful/__init__.py", line 582, in dispatch_request
  File "wlogger/restapi.py", line 430, in post
  File "subprocess.py", line 971, in __init__
  File "subprocess.py", line 1863, in _execute_child
FileNotFoundError: [Errno 2] No such file or directory: '--conf_file'

命令字符串似乎缺少可执行文件的路径、正如我们在 Windows 中看到的那样:

2025-05-05 17:04:01,032: Logger Version : 2.1.5
2025-05-05 17:04:22,108: Starting wLogger with command :
 C:\Users\vagrant\Desktop\simplelink_wifi_toolbox_win_2_3_3\wlogger\bin\wlogger.exe --conf_file C:\Users\vagrant\Desktop\simplelink_wifi_toolbox_win_2_3_3\wlogger\tmp\wlogger_config.json --auto_start

然后,当尝试手动运行 wlogger (另一个二进制文件)时(在 Linux 或 macOS 上),我们再次看到同样的问题:

$ simplelink_wifi_toolbox_lin_2_3_3/wlogger/bin/wlogger --conf_file /home/ezra/docs/work/gw3/ti/simplelink_wifi_toolbox_lin_2_3_3/wlogger/tmp/wlogger_config.json --auto_start
STDOut and STDErr will logged into /tmp/_MEIHIWj6K/wlogger.log

(...)

Starting logger CC3351 with command:
 --com_port /dev/ttyUSB0 --log_dir /home/ezra/docs/work/gw3/ti/logs/2025_05_05_21_21_08/CC3351 --bin_file /home/ezra/docs/work/gw3/ti/simplelink_wifi_toolbox_lin_2_3_3/radio-tool/binaries/CC3351/logger.bin --baud_rate 3000000 --max_log_size 12 --stream_id CC3351 --max_bytes_per_packet 200

Exception in thread Thread-5 (start_logger):
Traceback (most recent call last):
  File "threading.py", line 1016, in _bootstrap_inner
  File "threading.py", line 953, in run
  File "wlogger.py", line 564, in start_logger
  File "subprocess.py", line 971, in __init__
  File "subprocess.py", line 1863, in _execute_child
FileNotFoundError: [Errno 2] No such file or directory: '--com_port'

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、以斯拉、

    感谢您指出这一点。 我将对其进行进一步调查、并在内部报告错误。