PN531 on Mac OS X

2,3年前にもちょっといじっていたのだがFeliCaネタです。 PN531はNXPセミコンダクターズというところの製品でFeliCaにアクセスできるチ ップです。libusbを使ったソースがいくつかあるがちょっと調べてみようかと思 っています。

Full Speed device @ 5 (0x1D120000): ....   Composite device: "PN531"
    Device Descriptor   
        Descriptor Version Number:   0x0200
        Device Class:   0   (Composite)
        Device Subclass:   0
        Device Protocol:   0
        Device MaxPacketSize:   8
        Device VendorID/ProductID:   0x04CC/0x0531   (Philips Semiconductors)
        Device Version Number:   0x0100
        Number of Configurations:   1
        Manufacturer String:   1 "Philips"
        Product String:   2 "PN531"
        Serial Number String:   0 (none)
    Configuration Descriptor   
        Length (and contents):   32
            Raw Descriptor (hex)    0000: 09 02 20 00 01 01 00 80  32 09 04 00 00 02 FF FF  
            Raw Descriptor (hex)    0010: FF 00 07 05 04 02 40 00  04 07 05 84 02 40 00 04  
            Unknown Descriptor   0020: 
        Number of Interfaces:   1
        Configuration Value:   1
        Attributes:   0x80 (bus-powered)
        MaxPower:   100 ma
        Interface #0 - Vendor-specific   
            Alternate Setting   0
            Number of Endpoints   2
            Interface Class:   255   (Vendor-specific)
            Interface Subclass;   255   (Vendor-specific)
            Interface Protocol:   255
            Endpoint 0x04 - Bulk Output   
                Address:   0x04  (OUT)
                Attributes:   0x02  (Bulk no synchronization data endpoint)
                Max Packet Size:   64
                Polling Interval:   4 ms
            Endpoint 0x84 - Bulk Input   
                Address:   0x84  (IN)
                Attributes:   0x02  (Bulk no synchronization data endpoint)
                Max Packet Size:   64
                Polling Interval:   4 ms

libusbはinstall_name_toolを使ってパスを書き換えておけば、/usr/localに インストールする必要はないが、PN531はバルクパイプ二本の単純な構成なの でシリアルドライバにしても良いのかもしれない。

Copyright (C) 2010 Hiroki Mori All Rights Reserved.