RK开发板的USB连接(Ubuntu)

一、安装连接工具

复制代码
sudo apt-get install putty

二、启动putty工具

复制代码
sudo putty

三、连接usb,并查看相关的信息

复制代码
# 查看接入的是否有usb
ls /dev/tty*

显示如下:(含有usb接口: /dev/ttyUSB0

/dev/tty /dev/tty23 /dev/tty39 /dev/tty54 /dev/ttyS10 /dev/ttyS26

/dev/tty0 /dev/tty24 /dev/tty4 /dev/tty55 /dev/ttyS11 /dev/ttyS27

/dev/tty1 /dev/tty25 /dev/tty40 /dev/tty56 /dev/ttyS12 /dev/ttyS28

/dev/tty10 /dev/tty26 /dev/tty41 /dev/tty57 /dev/ttyS13 /dev/ttyS29

/dev/tty11 /dev/tty27 /dev/tty42 /dev/tty58 /dev/ttyS14 /dev/ttyS3

/dev/tty12 /dev/tty28 /dev/tty43 /dev/tty59 /dev/ttyS15 /dev/ttyS30

/dev/tty13 /dev/tty29 /dev/tty44 /dev/tty6 /dev/ttyS16 /dev/ttyS31

/dev/tty14 /dev/tty3 /dev/tty45 /dev/tty60 /dev/ttyS17 /dev/ttyS4

/dev/tty15 /dev/tty30 /dev/tty46 /dev/tty61 /dev/ttyS18 /dev/ttyS5

/dev/tty16 /dev/tty31 /dev/tty47 /dev/tty62 /dev/ttyS19 /dev/ttyS6

/dev/tty17 /dev/tty32 /dev/tty48 /dev/tty63 /dev/ttyS2 /dev/ttyS7

/dev/tty18 /dev/tty33 /dev/tty49 /dev/tty7 /dev/ttyS20 /dev/ttyS8

/dev/tty19 /dev/tty34 /dev/tty5 /dev/tty8 /dev/ttyS21 /dev/ttyS9

/dev/tty2 /dev/tty35 /dev/tty50 /dev/tty9 /dev/ttyS22 /dev/ttyUSB0

/dev/tty20 /dev/tty36 /dev/tty51 /dev/ttyprintk /dev/ttyS23

/dev/tty21 /dev/tty37 /dev/tty52 /dev/ttyS0 /dev/ttyS24

/dev/tty22 /dev/tty38 /dev/tty53 /dev/ttyS1 /dev/ttyS25

复制代码
# 查看串口的相关信息
sudo stty -F /dev/ttyUSB0 -a

可以看见:波特率为1500000

speed 1500000 baud; rows 0; columns 0; line = 0;

intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;

eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;

werase = ^W; lnext = ^V; discard = ^O; min = 1; time = 0;

-parenb -parodd -cmspar cs8 hupcl -cstopb cread clocal -crtscts

-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff

-iuclc -ixany -imaxbel -iutf8

-opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0

-isig -icanon iexten -echo -echoe echok -echonl -noflsh -xcase -tostop -echoprt

echoctl echoke -flusho -extproc

四、根据上面usb信息配置putty

使用串口通讯,填写设备号和波特率

将Flow control 的流量控制机制设为None

按下Open按键,即可进入开发板的shell界面

相关推荐
Zeku7 小时前
20251125 - 为什么Linux是非实时操作系统?
linux·服务器
sz66cm7 小时前
Linux基础 -- 进程运行状态 之 fatal_signal_pending函数
linux
Kyan.W7 小时前
shell好用的工具
linux·shell
n***84077 小时前
Redis基础——1、Linux下安装Redis(超详细)
linux·数据库·redis
apocelipes8 小时前
Linux的binfmt_misc机制
linux·c语言·c++·python·golang·linux编程·开发工具和环境
虾..8 小时前
Linux 进程控制
linux·运维·服务器
last demo8 小时前
pxe自动化安装系统实验
linux·运维·服务器·自动化
Zeku8 小时前
20251125 - Linux驱动开发Makefile文件介绍
linux·驱动开发·单片机
实心儿儿8 小时前
Linux —— 基础开发工具2
linux·运维·服务器
秋深枫叶红8 小时前
嵌入式第二十三篇——数据结构基本概念
linux·数据结构·学习·算法