check_qiaotong_connection
Diagnose QiaoTong connection problems by identifying whether the software is connected, needs a version upgrade, or must be started, then provides the recommended fix.
Instructions
Diagnose the connection to QiaoTong software (诊断桥通软件连接状态).
CALL THIS FIRST when any tool reports the backend is unavailable.
It distinguishes the three failure modes, which need different fixes:
(任一工具报后端不可用时先调用本工具,它区分三种需要不同处置的状态)
- connected (已连接): ready to model.
- version_mismatch (版本不匹配): the QiaoTong API version and the
installed qtmodel differ. qtmodel pins an exact version, so the
user must upgrade QiaoTong (or install a matching qtmodel).
(桥通与 qtmodel 版本必须精确一致,需升级桥通软件)
- software_not_running (软件未启动): start QiaoTong and wait for the
main window, then retry. (启动桥通并等待主界面加载)
Returns the status, a human-readable message, the recommended action,
and the client/server versions involved.
IMPORTANT: when connecting through a port forward (e.g. an SSH tunnel to
QiaoTong on another machine), the URL host must be `localhost`, not
`127.0.0.1`. Windows HTTP.sys validates the Host header and rejects the
bare IP with "400 Invalid Hostname" even though the port is reachable.
(经端口转发访问时必须用 localhost;Windows HTTP.sys 会以
400 Invalid Hostname 拒绝 127.0.0.1 的 Host 头)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||