> For the complete documentation index, see [llms.txt](https://bananapi.gitbook.io/bpi-m1/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bananapi.gitbook.io/bpi-m1/zh/bpi-m1uartinterface.md).

# BPI-M1 UART interface

BPI-M1 have 4 UART port on board. Banana Pi M1 板卡上共有4个 UART接口

如何通过minicom接口控制您的UART接口。

1 通过ssh连接您的开发板，并且安装minicom软件：

````
sudo apt-get install minicom ```

![](uart.jpg)

2 choose serial port
````

minicom -s

```
![](uart 1.png)

  Uart port for BPI-M1

  ![](uart en.png)

now , we test UART2 ,setting as below:

![](uart 2.jpg)

save:

![](uart 3.png)

exit, minicom runing:

![](uart 4.jpg)

check Uart number:
```

dmesg | grep ttyS\*\`\`\`

so you can see UART0 is ttyS1

UART0 对应的驱动是/dev/ttyS1

3 您可以在Windows 上使用超级终端或putty软件收发串口数据，注意正确设置端口以及波特率。

![](/files/-M2HXC4WaJWGbl5asK9a)

4,测试发送"hello,pc":

在您的开发板上发送 ‘‘hello’,pc 就能在Windows上接受到 'hello, pc"

![](/files/-M2HXC4Ycqlmzjq9I0NK)

BPI-M1 上接收到 " hello Ok"

![](/files/-M2HXC4_v8L3r4NxJLnG)

5 您可以用同样方法测试 UART3(ttyS2) UART7(ttyS3)![](/files/-M2HXC4buNDYT0amdyaH)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://bananapi.gitbook.io/bpi-m1/zh/bpi-m1uartinterface.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
