当前位置:七道奇文章资讯系统安全Linux安全
日期:2012-05-05 23:05:00  来源:本站整理

Ubuntu 10.10中Usb转串口的利用办法[Linux安全]

赞助商链接



  本文“Ubuntu 10.10中Usb转串口的利用办法[Linux安全]”是由七道奇为您精心收集,来源于网络转载,文章版权归文章作者所有,本站不对其观点以及内容做任何评价,请读者自行判断,以下是其具体内容:

  首先,Ubuntu 10.10安装minicom:sudo apt-get install minicom

  在安装好minicom之后对minicom举行配置,在此,需求注意的一点是在Linux环境下不准要装Usb转串口的驱动,在此,利用lsmod号令

  linuxidc.com@Ubuntu:~$ lsmod

  Module Size Used by

  pl2303 13696 0

  usbserial 39507 1 pl2303

  binfmt_misc 7984 1

  可见,linux可以自动辨认2303设备

  之后在终端中输入dmesg | grep usb号令

  linuxidc.com@Ubuntu:~$ dmesg | grep usb

  [ 0.497563] usbcore: registered new interface driver usbfs

  [ 0.497574] usbcore: registered new interface driver hub

  [ 0.497601] usbcore: registered new device driver usb

  [ 1.001716] usb 2-3: new high speed USB device using ehci_hcd and address 2

  [ 18.178144] input: USB 2.0 Camera as /devices/pci0000:00/0000:00:1d.7/usb2/2-3/2-3:1.0/input/input5

  [ 18.178198] usbcore: registered new interface driver uvcvideo

  [ 64.090038] usb 6-1: new full speed USB device using uhci_hcd and address 2

  [ 64.328761] usbcore: registered new interface driver usbserial

  [ 64.328807] usbcore: registered new interface driver usbserial_generic

  [ 64.328810] usbserial: USB Serial Driver core

  [ 64.362942] usb 6-1: pl2303 converter now attached to ttyUSB0

  [ 64.362970] usbcore: registered new interface driver pl2303

  注意上面加红的地方,他指明了设备号为:ttyUSB0

  之后,便可以举行mimicom的配置了

  在终端中输入:minicom -s,挑选

  +-----[configuration]------+

  | Filenames and paths |

  | File transfer protocols |

  | Serial port setup |

  | Modem and dialing |

  | Screen and keyboard |

  | Save setup as dfl |

  | Save setup as.. |

  | Exit |

  | Exit from Minicom |

  +--------------------------+

  配置成以下方法:

  +-----------------------------------------------------------------------+

  | A - Serial Device : /dev/ttyUSB0 |

  | B - Lockfile Location : /var/lock |

  | C - Callin Program : |

  | D - Callout Program : |

  | E - Bps/Par/Bits : 115200 8N1 |

  | F - Hardware Flow Control : No |

  | G - Software Flow Control : No |

  | |

  | Change which setting? |

  +--------------------------------------------------------------------

  完成后煺出,煺出后进入 Modem and dialing 配置成以下方法:

  (塬因:我们利用的是串口,而不Modem)

  +--------------------[Modem and dialing parameter setup]---------------------+

  | |

  | A - Init string ......... |

  | B - Reset string ........ |

  | C - Dialing prefix #1.... ATDT |

  | D - Dialing suffix #1.... ^M |

  | E - Dialing prefix #2.... ATDP |

  | F - Dialing suffix #2.... ^M |

  | G - Dialing prefix #3.... ATX1DT |

  | H - Dialing suffix #3.... ;X4D^M |

  | I - Connect string ...... CONNECT |

  | J - No connect strings .. NO CARRIER BUSY |

  | NO DIALTONE VOICE |

  | K - Hang-up string ...... |

  | L - Dial cancel string .. ^M |

  | |

  | M - Dial time ........... 45 Q - Auto bps detect ..... No |

  | N - Delay before redial . 2 R - Modem has DCD line .. Yes |

  | O - Number of tries ..... 10 S - Status line shows ... DTE speed |

  | P - DTR drop time (0=no). 1 T - Multi-line untag .... No |

  | |

  | Change which setting? (Return or Esc to exit) |

  +----------------------------------------------------------------------------+   以上是“Ubuntu 10.10中Usb转串口的利用办法[Linux安全]”的内容,如果你对以上该文章内容感兴趣,你可以看看七道奇为您推荐以下文章:

  • ubuntu下无法利用无线网络的办理办法
  • 三步搞定windows与ubuntu之间文件同享
  • Ubuntu和windows文件同享问题详解
  • 在 Ubuntu 12.04 Server 上安装 Rails 环境
  • ubuntu 12.04 安装 Nginx+PHP5 (PHP-FPM) +MySQL主机详解
  • Linux(ubuntu)下配置android环境
  • Ubuntu 10.04上搭建Ruby on Rails环境
  • Ubuntu 10.10中关闭按钮位置的改变
  • Ubuntu下检测CPU温度的工具
  • Ubuntu Server增添关机用户
  • Ubuntu 11.04安装火狐5
  • ubuntu 10.04下搭建samba文件服务器
  • 本文地址: 与您的QQ/BBS好友分享!
    • 好的评价 如果您觉得此文章好,就请您
        0%(0)
    • 差的评价 如果您觉得此文章差,就请您
        0%(0)

    文章评论评论内容只代表网友观点,与本站立场无关!

       评论摘要(共 0 条,得分 0 分,平均 0 分) 查看完整评论
    Copyright © 2020-2022 www.xiamiku.com. All Rights Reserved .