17.17. 访问串行设备

Windows 连接器提供串行设备映射,它允许用户访问连接到 Windows 客户端计算机上运行的 Sun Ray Client 或 Oracle Virtual Desktop Client 的外部串行设备。当启动 Windows 连接器时,您需要通过 uttsc 命令的 -r comport: 选项配置设备映射。

下面的示例将 $UTDEVROOT/dev/term/a 上挂载的串行设备映射到设备名称 SER_A

uttsc -r comport:SER_A=$UTDEVROOT/dev/term/a -i ip_addr

有关如何确定在桌面客户端上串行设备挂载在何处的详细信息,请参见第 15.4 节 “访问串行设备和 USB 打印机”

注意

USB 转串行适配器不能通过生成的设备节点进行访问。必须使用 Windows 会话中的 USB 重定向访问通过 USB 转串行适配器连接的串行设备。

映射串行设备后,可通过多种方法验证串行设备是否可用作映射设备,例如前面示例中的 SER_A。请参见表 17.11 “验证可用串行设备的 Windows 命令”(其中提供了部分建议命令的列表)以及后面的注意事项。

表 17.11. 验证可用串行设备的 Windows 命令

Windows 版本chgport /q

net use

mode

PuTTY

Windows XP

是,请参见注意事项

Windows Server 2003 R2

Windows 7、Windows 8、Windows Server 2008 R2、Windows Server 2012


以下是表 17.11 “验证可用串行设备的 Windows 命令”的一些注意事项。