» 您尚未登录:请 登录 | 注册 | 标签 | 帮助 | 小黑屋 |


发新话题
打印

[心得] Using Serial Port on MAC OSX Lion (在苹果电脑上用串口)

原文连接
http://beterhans.blogspot.com/20 ... n-mac-osx-lion.html

I have to use Serial Port during my work time but there are no serial port on nowadays computers.
MAC don't have serial port ether.

So you have to buy a USB to Serial Port adapter.
I got one from ZTEK and tried the driver from there web site. Unfortunately the osx driver from ztek is out of date. it doesn't work on mac osx lion.

you need to dig more deep to the chipset level. all you need is the driver for the chipset inside the adapter!
Usually it's PL-2303 from Prolific.

to make sure you have a PL-2030 based USB to Serial adapter. you will need to
1. plug the adapter into your mac
2. click the Apple logo at the upper left corner. select About this mac => more info => System Report
you should see something like this.
make sure your PID / VID (Product ID / Vender ID) are the same as the one in this picture


if the Product ID: and Vendor ID: are correct. now go to this web page and download the Latest OSX Lion driver
http://www.prolific.com.tw/eng/downloads.asp?ID=31

md_PL2303_MacOSX10.6_dmg_v1.4.0.zip2011/5/131.4.01438 KBPL-2303 (H, HX, X chip version) Mac OS X Universal Binary Driver v1.4.0 (DMG file format), Prolific Edition
For Mac OS X 10.7 Lion and 10.6 Snow Leopard (32-bit and 64-bit kernel)Added Driver Installation Manual

install the pkg and restart your system.
after you restart your system. open a terminal
$ cd /dev/
& ls tty.*


If there is a "tty.usbserial" file that means the installation was successful

Now you can use a screen command to access the COM port
$ screen /dev/tty.usbserial 9600
to exit
type Control - A then Control - \

or get a app called CoolTerm as a GUI.
If you are rich you can buy the Classic App named SecreCRT. it have a MAC build!

==================================
如今能在笔记本上找到串口已经非常不容易了。但是某些使用 或者 工作离不开串口。
所以我门一般会买一个 USB 转串口线。

我拿到的是 ZTEK ZE398. 去他们的网站可以下到 MAC 的驱动,不过那驱动太老了。 至少在 Lion 下是无法使用的。
现在你需要忽落 ZTEK 这个牌子,直接去下载 ZE398 里面芯片的厂商哪里下载 驱动。
点击左上角的苹果标志,关于这台MAC 更多信息 ,系统报告 你应该看到上面英文文章里第一张图。 浏览 USB 部分找到你的 USB 转串口
里面应该有 Vendor ID 和 Product ID: 我不知道 中文翻译成了什么 但是意思是 供应商 ID 和 产品 ID: 如果 ID 和 图上的一样那么你的 USB 转串口线就是 PL-2303 芯片的。
去 PL-2303 的厂商哪里下载 最新版本的 MAC 驱动.
http://www.prolific.com.tw/eng/downloads.asp?ID=31

md_PL2303_MacOSX10.6_dmg_v1.4.0.zip2011/5/131.4.01438 KBPL-2303 (H, HX, X chip version) Mac OS X Universal Binary Driver v1.4.0 (DMG file format), Prolific Edition
For Mac OS X 10.7 Lion and 10.6 Snow Leopard (32-bit and 64-bit kernel)Added Driver Installation Manual
安装完成后会提示你重启。
重启后去命令行里
进入 /dev 目录 ls tty.* 你应该看到英文文章里的第而张图。 如果有那个被红色圈起来的地方就说明装好了

你可以使用
screen /dev/tty.usbserial 9600 来连接你的串口设备
Ctrl A 然后 Ctrl \ 退出

或者 Google 一个叫 Coolterm 的 APP 来使用串口
当然如果你有米或者 公司包销的话 可以去买 SecureCRT 的 MAC 版本.


TOP

发新话题
     
官方公众号及微博