--- title: "How to: Use Serial with Edge IO" slug: "how-to-use-serial-with-edge-io" updated: 2022-12-20T21:14:27Z published: 2022-12-20T21:14:27Z canonical: "support.tulip.co/how-to-use-serial-with-edge-io" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.tulip.co/llms.txt > Use this file to discover all available pages before exploring further. # 如何。在Edge IO中使用串口 ## 如何。在Edge IO中使用串口 *关于在Edge IO上使用串行的设置指南* 在这篇文章中,你将了解在Edge IO上使用串行的技术细节。 Edge IO支持通过USB、RS-232或RS-485的串行连接。本文将介绍每种连接的硬件连接和软件标识符。 要了解如何将这些串行数据与Tulip通信,请看我们的其他支持文章。 **[关于通用串行驱动程序的](https://support.tulip.co/docs/how-to-use-the-generic-serial-driver-on-io-gateway)指南 **关于[用串行设置Node-RED](https://support.tulip.co/docs/how-to-use-serial-with-node-red-1)的指南 ## 使用USB连接 要通过USB使用串口,你需要一个能通过USB连接的串口设备,或一个串口到USB的适配器(例如,RS232到USB的适配器电缆,或RS485到USB的适配器)。 Edge IO有六个USB端口;你可以把你的USB电缆插入任何一个USB端口。 在插入USB时,标识符将按照插入的顺序分配。 - 第一个插入的USB端口。`/dev/ttyUSB0` - 第二个插入的USB端口。`/dev/ttyUSB1` - 第3个插入的USB端口。`/dev/ttyUSB2` #### **`...`** ## 使用RS-232/RS-485连接 Edge IO也有RS-232和RS-485端口。 串行设备的标识符。 - RS-232:`/dev/ttyS1` - RS-485:`/dev/ttyS2` *注意:RS-232使用一个标准的DB9连接器,支持RTS/CTS,但不支持DCD/DTR/DSR。RS-485是半双工。* #### 边缘IO端口示意图。 ![](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/How%20to%3A%20Use%20Serial%20with%20Edge%20IO_456206497.png) ![How to: Use Serial with Edge IO](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/How%20to%3A%20Use%20Serial%20with%20Edge%20IO_458551354.png) *见上面的RS-232和RS-485引脚图。*