author |
daisy.skye的博客_CSDN博客-嵌入式,Qt,Linux领域博主 |
linux ttyS 串口 |
# ls ttyS ttyS0 ttLyS1 # ls -l ttyS0 crw------- 1 scooper root 253, 0 Jan 1 00:20 ttyS0 # ls -l ttyS1 crw-rw---- 1 scooper dialout 253, 1 Jan 1 00:03 ttyS1 |
stty |
# stty -F /dev/ttyS0 -a speed 115200 baud;stty: /dev/ttyS0 line = 0; intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = ; eol2 = ; swtch = ; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0; -parenb -parodd 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 # stty -F /dev/ttyS1 -a speed 9600 baud;stty: /dev/ttyS1 line = 0; intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = ; eol2 = ; swtch = ; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0; -parenb -parodd 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 |
路径 |
/ax-release-sdk/device/a1000/a1000-emmc/configs/sys_config.fex |
sys_config.fex配置usart |
;uart configuration ;uart_type --- 2 (2 wire), 4 (4 wire), 8 (8 wire, full function) ;---------------------------------------------------------------------------------- [uart0] uart_used = 1 uart_port = 0 uart_type = 2 uart_tx = port:PB09<2><1> uart_rx = port:PB10<2><1> [uart1] uart_used = 1 uart_port = 1 uart_type = 2 uart_tx = port:PG06<2><1> uart_rx = port:PG07<2><1> ;uart_rts = port:PG08<2><1> ;uart_cts = port:PG09<2><1> |
Linux下ttySx串口分析理解
前人种树,后人乘凉;创造不易,请勿迁移~
猜你喜欢
转载自blog.csdn.net/qq_40715266/article/details/131284743
今日推荐
周排行