小弟因為有些需要所以需要修改裡面的程序 但是對藍牙的編程只是個小毛頭 dfu的寫入方式對我來講太困難 pstool對我來講覺得比較方便點 但是有些選項是需要源碼輸入的 軟件裡雖然有說明但是有看沒沒懂不知道要怎輸入自己所需要的功能源碼 原始值是ffff 03ff fffe ffff ffff ffff 0ff3 ffe8 f73f ff83 000c 求各位大神大俠幫忙 非常感謝
This PSKey holds a large bitfield (in little-endian format) that
describes which HCI commands are supported by the host controller.
The Host finds out this information by trying the command. The Host
Controller then returns with "Unknown HCI Command", but some
Hosts might prefer to try this command first.
The result returned by this command does not change after the Host
Controller has booted. Sometimes it is not possible for the Host
Controller to perform some operations (eg. insufficient resources or
not having a link of the correct type). This command still implies
that the commands are available; if the Host tries such a command the
Host Controller should return a different status message than "Unknown
HCI Command".
Byte 2:
0 Set Connection Encryption
1 Change Connection Link Key
2 Master Link Key
3 Remote Name Request
4 Cancel Remote Name Request
5 Read Remote Supported Features
6 Read Remote Extended Features
7 Read Remote Version Information
Byte 3:
0 Read Clock Offset
1 Read LMP Handle
2 <reserved> Exchange Fixed Info
3 <reserved> Exchange Alias Info
4 <reserved> Private Pairing Request Reply
5 <reserved> Private Pairing Request Negative Reply
6 <reserved> Generated Alias
7 <reserved> Alias Address Request Reply
Byte 4:
0 <reserved> Alias Address Request Negative Reply
1 Hold Mode
2 Sniff Mode
3 Exit Sniff Mode
4 Park Mode
5 Exit Park Mode
6 QoS Setup
7 Role Discovery
Byte 5:
0 Switch Role
1 Read Link Policy Settings
2 Write Link Policy Settings
3 Read Default Link Policy Settings
4 Write Default Link Policy Settings
5 Flow Specification
6 Set Event Mark
7 Reset
Byte 6:
0 Set Event Filter
1 Flush
2 Read PIN Type
3 Write PIN Type
4 Create New Unit Key
5 Read Stored Link Key
6 Write Stored Link Key
7 Delete Stored Link Key
Byte 7:
0 Write Local Name
1 Read Local Name
2 Read Connection Accept Timeout
3 Write Connection Accept Timeout
4 Read Page Timeout
5 Write Page Timeout
6 Read Scan Enable
7 Write Scan Enable
Byte 9:
0 Read Class Of Device
1 Write Class Of Device
2 Read Voice Setting
3 Write Voice Setting
4 Read Automatic Flush Timeout
5 Write Automatic Flush Timeout
6 Read Num Broadcast Retransmissions
7 Write Num Broadcast Retransmissions
Byte 10:
0 Read Hold Mode Activity
1 Write Hold Mode Activity
2 Read Transmit Power Level
3 Read SCO Flow Control Enable
4 Write SCO Flow Control Enable
5 Set Host Controller To Host Flow Control
6 Host Buffer Size
7 Host Number Of Completed Packets
Byte 11:
0 Read Link Supervision Timeout
1 Write Link Supervision Timeout
2 Read Number of Supported IAC
3 Read Current IAC LAP
4 Write Current IAC LAP
5 Read Page Scan Period Mode
6 Write Page Scan Period Mode
7 Read Page Scan Mode
Byte 12:
0 Write Page Scan Mode
1 Set AFH Channel Classification
2 <reserved> (Read Extended Data Mode)
3 <reserved> (Write Extended Data Mode)
4 Read Inquiry Scan Type
5 Write Inquiry Scan Type
6 Read Inquiry Mode
7 Write Inquiry Mode
Byte 21:
0 Create Physical Link
1 Accept Physical Link
2 Disconnect Physical Link
3 Create Logical Link
4 Accept Logical Link
5 Disconnect Logical Link
6 Logical Link Cancel
7 Flow Spec Modify
Byte 22:
0 Read Logical Link Accept Timeout
1 Write Logical Link Accept Timeout
2 Set Event Mask Page 2
3 Read Location Data
4 Write Location Data
5 Read Local AMP Info
6 Read Local AMP_ASSOC
7 Write Remote AMP_ASSOC
Byte 23:
0 Read Flow Control Mode
1 Write Flow Control Mode
2 Read Data Block Size
3 <reserved>
4 <reserved>
5 Enable AMP Receiver Reports
6 AMP Test End
7 AMP Test Command
Byte 24:
0 Read Enhanced Transmit Power Level Command
1 <reserved>
2 Read Best Effort Flush Timeout
3 Write Best Effort Flush Timeout
4 Short Range Mode
5 Read LE Host Support
6 Write LE Host Support
7 <reserved>
Byte 25:
0 LE Set Event Mask
1 LE Read Buffer Size
2 LE Read Local Supported Features
3 <reserved>
4 LE Set Random Address
5 LE Set Advertising Parameters
6 LE Read Advertising Channel TX Power
7 LE Set Advertising Data
Byte 26:
0 LE Set Scan Response Data
1 LE Set Advertise Enable
2 LE Set Scan Parameters
3 LE Set Scan Enable
4 LE Create Connection
5 LE Create Connection Cancel
6 LE Read White List Size
7 LE Clear White List
Byte 27:
0 LE Add Device To White List
1 LE Remove Device From White List
2 LE Connection Update
3 LE Set Host Channel Classification
4 LE Read Channel Map
5 LE Read Remote Used Features
6 LE Encrypt
7 LE Rand
Byte 28:
0 LE Start Encryption
1 LE Long Term Key Requested Reply
2 LE Long Term Key Requested Negative Reply
3 LE Read Supported States
4 LE Receiver Test
5 LE Transmitter Test
6 LE Test End
7 <reserved>
举例来说
Byte 25:
0 LE Set Event Mask
1 LE Read Buffer Size
2 LE Read Local Supported Features
3 <reserved>
4 LE Set Random Address
5 LE Set Advertising Parameters
6 LE Read Advertising Channel TX Power
7 LE Set Advertising Data
第25个字节的 bit 0~7都代表的含义,这不是很清楚吗? bit7 为1 表示支持设置BLE 的设置advertising数据的feature 如果为0xf,那就是 bit0~7都为1喽