2015年12月1日火曜日

MacOS 10.10 YosemiteでUSBシリアルアダプタUSB-RSAQ5を利用する

MacOS 10.10 YosemiteでUSBシリアルアダプタUSB-RSAQ5を使おうとすると、
I/Oデータのサイトのドライバは以下のようにずいぶん古くインストールするにはためらわれるものでした。
USB-RSAQ5 MacOS用ソフトウェア
掲載日 2013/05/15
http://www.iodata.jp/lib/product/u/1921_mac.htm
検索エンジンで探してみると、解決策を書かれている方がいらっしゃいました。
[OSX 10.10] YosemiteでUSB-RSAQ5を利用する
http://miura-togoto.blogspot.jp/2014/10/osx-1010-yosemiteusb-rsaq5.html
さっそくこの通りにするとうまく動作しました。ただし、デフォルトでは任意のソフトウェアのインストールができないので設定変更が必要です。
設定のセキュリティとプライバシの中の一般タブで、ダウンロードしたアプリケーションの実行許可を「すべてのアプリケーションを許可」とします。

簡単に手順を引用します。
  1. prolificからPL2303のドライバをダウンロード(アカウントはguest/guest)
  2. zipを解いてpkgファイルをインストール
  3. 以下のように設定を追加(ボールド体部分)して有効化します

    $ sudo vi /System/Library/Extensions/ProlificUsbSerial.kext/Contents/Info.plist

    <key>IOKitPersonalities</key>
    <dict>
    <key>067B_2303</key>
        ・
        ・
    <key>idVendor</key>
    <integer>1659</integer>
    </dict>

    <key>04BB_0A0E</key>
    <dict>
      <key>CFBundleIdentifier</key>
      <string>com.prolific.driver.PL2303</string>
      <key>IOClass</key>
      <string>com_prolific_driver_PL2303</string>
      <key>IOProviderClass</key>
      <string>IOUSBInterface</string>
      <key>bConfigurationValue</key>
      <integer>1</integer>
      <key>bInterfaceNumber</key>
      <integer>0</integer>
      <key>idProduct</key>
      <integer>2574</integer>
      <key>idVendor</key>
      <integer>1211</integer>
    </dict>


    </dict>


    $ sudo touch /System/Library/Extensions
    $ cu -l /dev/cu.usbserial 9600  -s 9600
    ...