Android手机与M61板子串口通信

[复制链接]
查看496 | 回复10 | 2024-4-14 16:28:14 | 显示全部楼层 |阅读模式

Android手机通过otg线与M61板子串口通信

CH34XUARTDemo

https://www.wch.cn/download/CH341SER_ANDROID_ZIP.html

解压安装里面的CH34XUARTDemo.apk

扫描设备 image.png image.png

TCPUART+Termux+socat+minicom

https://play.google.com/store/apps/details?id=com.hardcodedjoy.tcpuart

https://github.com/termux/termux-app/releases

首先安装tcpuart和termux

termux换源https://mirrors.tuna.tsinghua.edu.cn/help/termux/

打开termux,执行

termux-setup-storage
pkg upgrade
pkg install socat minicom

TCPUART连接串口并开启数据转发 image.png image.png

socat创建虚拟串口

socat -dd pty,raw,echo=0,waitslave,b2000000 tcp:localhost:8080

记录虚拟串口路径 image.png

新建session image.png

minicom连接虚拟串口

minicom -b2000000 -D/dev/pts/1

连接成功后,重启板子,查看输出 image.png

回复

使用道具 举报

hdydy | 2024-4-14 16:35:36 | 显示全部楼层
TCPUART

TCPUART transparent Bridge_1.3.5_Apkpure.apk.zip

224.59 KB, 下载次数: 0

回复

使用道具 举报

hdydy | 2024-4-14 16:41:44 | 显示全部楼层
ctrl a x可以退出minicom
回复 支持 反对

使用道具 举报

1084504793 | 2024-4-15 08:10:45 | 显示全部楼层
回复

使用道具 举报

1055173307 | 2024-4-15 08:24:17 | 显示全部楼层
回复

使用道具 举报

WT_0213 | 2024-4-15 09:13:20 | 显示全部楼层
厉害
回复

使用道具 举报

干簧管 | 2024-4-15 09:51:46 | 显示全部楼层
这个厉害
回复

使用道具 举报

1055173307 | 2024-4-16 17:50:04 | 显示全部楼层
回复

使用道具 举报

timo | 2024-4-17 15:03:19 | 显示全部楼层
这也可以?
回复

使用道具 举报

King6688 | 2024-4-26 22:52:29 | 显示全部楼层
还能这么玩?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则