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界面

相关推荐
辞旧 lekkk7 小时前
【Qt】信号和槽
linux·开发语言·数据库·qt·学习·mysql·萌新
liuhuizuikeai10 小时前
可视化门禁---Linux/Qt+SqLite篇
linux·运维·qt
初願致夕霞10 小时前
基于系统调用的Linux网络编程——UDP与TCP
linux·网络·c++·tcp/ip·udp
charlie11451419113 小时前
嵌入式Linux驱动开发——新 API 字符设备驱动完整教程 - 从设备结构体到应用测试
linux·运维·驱动开发
消失的旧时光-194313 小时前
C语言对象模型系列(四)《Linux 内核里的 container_of 到底是什么黑魔法?》—— 一篇讲透 Linux 内核的“对象模型”核心技巧
linux·c语言·算法
SWAGGY..14 小时前
Linux系统编程:(二)基础指令详解
linux·运维·服务器
kdxiaojie14 小时前
U-Boot分析【学习笔记】(3)
linux·笔记·学习
烛衔溟14 小时前
TypeScript 接口继承与混合类型
linux·ubuntu·typescript
蜡笔婧萱15 小时前
Linux--远程登录服务ssh
linux·服务器·ssh
伏加特遇上西柚15 小时前
Loki+Alloy+Grafana日志采集部署
java·linux·服务器·spring boot·grafana·prometheus