本帖最后由 VisualEleven 于 2011-11-21 18:44:59 编辑

解决方案 »

  1.   

    psm代表给什么协议来建立l2cap连接。
    Protocol PSM Reference 
    ---------------------------
    SDP 0x0001 See Bluetooth Service Discovery Protocol (SDP), Bluetooth SIG. 
    //上面这个表示如果是SDP连接就把psm设为0x0001,后面以此类推。。
    RFCOMM 0x0003 See RFCOMM with TS 07.10, Bluetooth SIG. 
    TCS-BIN 0x0005 See Bluetooth Telephony Control Specification / TCS Binary, Bluetooth SIG. 
    TCS-BIN-CORDLESS 0x0007 See Bluetooth Telephony Control Specification / TCS Binary, Bluetooth SIG. 
    BNEP 0x000F See Bluetooth Network Encapsulation Protocal, Bluetooth SIG. 
    HID_Control 0x0011 See Human Interface Device , Bluetooth SIG. 
    HID_Interrupt 0x0013 See Human Interface Device, Bluetooth SIG. 
    UPnP 0x0015 See [ESDP] , Bluetooth SIG. 
    AVCTP 0x0017 See Audio/Video Control Transport Protocol , Bluetooth SIG. 
    AVDTP 0x0019 See Audio/Video Distribution Transport Protocol , Bluetooth SIG. 
    AVCTP_Browsing 0x001B See Audio/Video Remote Control Profile, Bluetooth SIG 
    UDI_C-Plane 0x001D See the Unrestricted Digital Information Profile [UDI], Bluetooth SIG
    ---------------------------
    参考自:http://blog.chinaunix.net/space.php?uid=22535114&do=blog&id=1773519
    上面是我的理解,具体可看参考