USB转串口驱动应用于macbook

分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow

也欢迎大家转载本篇文章。分享知识,造福人民,实现我们中华民族伟大复兴!

                USB转串口驱动应用于macbook


查到的资料支持 macbook的为 Prolific(PL2303) 和 keyspan


卸载驱动的方法:


rm -rf /System/Library/Extensions/XXXX.kext rm -rf /System/Library/Extensions.kextcache rm -rf /System/Library/Extensions.mkext kextcache -k /System/Library/Extensions
这些指令需要管理员权限,建议使用root用户或者sudo -s。其中XXXX.kext就是驱动的名字,比如这里的两种USB-Serial驱动分别是Prolific和FDTI打头的。


安装好驱动,怎么用呢?最简单的方法就是在终端程序里用


screen /dev/tty.usbserial 9600
注意这个设备文件对不同的驱动是不同的名字,自己注意就行了。9600是连接一般路由器Console口的速率。
嵌入式开发的话 波特率一般为115200


USB Serial with screen
Main article: GNU screen


The GNU screen program is included with Mac OS X, and can be used from the terminal command line to connect to the serial console. To do this, simply get to a shell prompt in the terminal and invoke screen as follows:
% screen /dev/tty.usbmodem00000001
You should find yourself at the U-boot serial console prompt. To get out, type control+a followed by control+backslash.


USB Serial with minicom
Possible Mac OS X .pkg download: Dr. Jeffrey T. Frey: Minicom download and info; at the bottom
PL2303 USB serial driver (untested): PL2303 USB to Serial Driver for Mac OS X
The minicom program from the MacPorts collection can be used to access the USB serial port /dev/cu.usbmodem00000001 (numbering may vary.)
First install the program (assuming you already have MacPorts installed):
sudo port install minicom
Then launch it in configuration mode (the -s flag):
sudo minicom -s
Under "Serial Port Setup", set the Device to "/dev/cu.usbmodem00000001" and set Bps to "115200 8N1". Under "Modem and Dialing", enter empty strings for "Init string", "Reset string", and "Hang-up string". Save the setup as default ("dfl") then Exit.
You should now be able to access the bootloader console. You should exit from Minicom before disconnecting the smartphone, or else you will get an error about unplugging a USB device while it is in use.


USB Serial with Terminal
The built in Mac Terminal application Terminal.app can be used to access the USB serial port /dev/tty.usbmodem00000001 (numbering may vary.)
An easy way to do this is to configure the terminal with Script Editor, as described in the short article, Use '(GNU) screen' as a serial terminal emulator(macosxhints.com). Then,
Press and hold Template:Aux and then press and hold POWER for 5 seconds
Press Template:Aux to select Set console to USB in the U-Boot menu, and POWER to execute it
Start the serial terminal application. You should see a U-Boot command line prompt, such as
In:    usbtty
Out:   usbtty
Err:   usbtty
DEVICE_CONFIGURED: 1
Enabling automatic fast charge
GTA01Bv4 #
When you boot Linux on the smartphone, or if the smartphone powers down, Mac OS X will show a USB Device Unplug Notice, "The USB device has been unplugged while an application was still active. This can result in loss of data." This error is probably harmless.


http://product.dangdang.com/product.aspx?product_id=400429261&ref=search-0-B
力特的这个都有MAC下面的驱动...


http://hi.baidu.com/sunnynatinc/blog/item/f727801eb9e4ed1241341794.html
minicom使用帮助


http://www.prolific.com.tw/US/ShowProduct.aspx?p_id=229&pcid=41
驱动下载网址


安装文档:
http://www.tuicool.com/articles/V3ABBz           

给我老师的人工智能教程打call!http://blog.csdn.net/jiangjunshow

这里写图片描述

猜你喜欢

转载自blog.csdn.net/ufryyfdf/article/details/84138547
今日推荐