大网数据广告活动
服务器运维问答

USB to USB console

· 52CE 我爱测

I have a server to which I would like to have a console connection. Normally this would be done using RS232 port, or using USB to RS232 converter. But to me it seems like it must be possible to connect the two USB ports directly,…

问题原文

原帖链接 · Mats · CC BY-SA 3.0

I have a server to which I would like to have a console connection. Normally this would be done using RS232 port, or using USB to RS232 converter.

But to me it seems like it must be possible to connect the two USB ports directly, given that one of the ports can be made to act like a device. If the port is an OTG (On-the-go), this should be possible as far as I understand.

So my question is, given the above, would it be possible to directly connect two computers, using a single USB cable, for console access?

已采纳解答

原帖链接 · peterh · CC BY-SA 3.0

The link-level protocol of the USB is a very different one as the RS232. It uses 2 data wires, it is packet-based, it is master-slave and it can connect many nodes on a single wire (RS232 is bidirectional). The abbreviation of "universal serial bus" is a little bit misleading: it is designed to be so universal as the RS232 was, but it is not a stream protocol.

To have a direct stream connection between two machines, some type of data stream should exist over the link-level USB protocol.

The result is that in essence you have an usb-to-serial converter, which acts as an intermediary layer between the USB and a bidirectional data stream. It shouldn't be rs232, and also it shouldn't do a physical conversion.

You can buy a simple usb link cable to interconnect two machines. As two usb slaves can't be connected directly, they also need some intermediary usb master. This works mostly by giving an usb-ethernet interface to the machines connected with them, but giving an usb-serial interface would be possible too, and these devices may exist.

Next to the RS232, the Apple has developed a hardware-extended solution named lightning for that, although I would suggest more the RS232 direction on practical reasons.

However, there is a much smaller diversity in the machines bioses of most PC architectures. If you want a console redirection with them, you have only a physical RS232 connector on the mainboard for the task. Most BIOSes/EFIs won't even use an usb-to-rs232 connector, only the physical rs232 port on the motherboard.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-08-11)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。