找回密码
 立即注册

使用微信账号登录

只需一步,快速开始

查看: 5456|回复: 8

[BC5系列] bc5 使用BlueSuite 2.5.0 pstool源碼的問題求助大俠

[复制链接]

暂无签到数据

发表于 2013-11-14 19:03:53 | 显示全部楼层 |阅读模式

马上注册,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册  

×
小弟因為有些需要所以需要修改裡面的程序 但是對藍牙的編程只是個小毛頭  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 0:
        0 Inquiry
        1 Inquiry Cancel
        2 Periodic Inquiry Mode
        3 Exit Periodic Inquiry Mode
        4 Create Connection
        5 Disconnect
        6 Add SCO Connection
        7 Cancel Create Connection

Byte 1:
        0 Accept Connection Request
        1 Reject Connection Request
        2 Link Key Request Reply
        3 Link Key Request Negative Reply
        4 PIN Code Request Reply
        5 PIN Code Request Negative Reply
        6 Change Connection Packet Type
        7 Authentication Request

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 8:
        0 Read Page Scan Activity
        1 Write Page Scan Activity
        2 Read Inquiry Scan Activity
        3 Write Inquiry Scan Activity
        4 Read Authentication Enable
        5 Write Authentication Enable
        6 Read Encryption Mode
        7 Write Encryption Mode

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 13:
        0 Read Page Scan Type
        1 Write Page Scan Type
        2 Read Channel Classification Mode
        3 Write Channel Classification Mode
        4 <reserved> Read Anonymity Mode
        5 <reserved> Write Anonymity Mode
        6 <reserved> Read Alias Authentication Enable
        7 <reserved> Write Alias Authentication Enable

Byte 14:
        0 <reserved> Read Anonymous Address Change Parameters
        1 <reserved> Write Anonymous Address Change Parameters
        2 <reserved> Reset Fixed Address Attempts Counter
        3 Read Local Version Information
        4 <reserved> Read Local Supported Commands
        5 Read Local Supported Features
        6 Read Local Extended Features
        7 Read Buffer Size

Byte 15:
        0 Read Country Code [deprecated]
        1 Read BD ADDR
        2 Read Failed Contact Count
        3 Reset Failed Contact Count
        4 Get Link Quality
        5 Read RSSI
        6 Read AFH Channel Map
        7 Read BD Clock

Byte 16:
        0 Read Loopback Mode
        1 Write Loopback Mode
        2 Enable Device Under Test Mode
        3 Setup Synchronous Connection
        4 Accept Synchronous Connection
        5 Reject Synchronous Connection
        6 <reserved>
        7 <reserved>

Byte 17:
        0 Read Extended Inquiry Response
        1 Write Extended Inquiry Response
        2 Refresh Encryption Key
        3 <reserved>
        4 Sniff Subrating
        5 Read Simple Pairing Mode
        6 Write Simple Pairing Mode
        7 Read Local OOB Data

Byte 18:
        0 Read Inquiry Response Transmit Power
        1 Write Inquiry Response Transmit Power
        2 Read Default Erroneous Data Reporting
        3 Write Default Erroneous Data Reporting
        4 <reserved>
        5 <reserved>
        6 <reserved>
        7 IO Capability Response

Byte 19:
        0 User Confirmation Request Reply Command
        1 User Confirmation Request Negative Reply Command
        2 User PassKey Request Reply Command
        3 User PassKey Request Negative Reply Command
        4 Remote OOB Data Request Reply Command
        5 Write Simple Pairing Debug Mode
        6 Enhanced Flush
        7 Remote OOB Data Request Negative Reply Command  

Byte 20:
        0 <reserved>
        1 <reserved>
        2 Send Keypress Notification Command
        3 IO Capability Request Negative Reply Command
        4 Read Encryption Key Size
        5 <reserved>
        6 <reserved>
        7 <reserved>

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>
楼主热帖
积分商城 - 让您的金币更有价值!||官方Q群 - 让您的沟通更加及时!
连续签到天数:1天
签到总天数:7天
签到总奖励:26金币
发表于 2013-11-15 08:45:57 | 显示全部楼层
很高深,没看明白。
积分商城 - 让您的金币更有价值!||官方Q群 - 让您的沟通更加及时!
回复 支持 反对

使用道具 举报

连续签到天数:2天
签到总天数:2320天
签到总奖励:64381金币
发表于 2013-11-15 08:55:16 | 显示全部楼层
不知道 怎么弄哟
积分商城 - 让您的金币更有价值!||官方Q群 - 让您的沟通更加及时!
回复 支持 反对

使用道具 举报

连续签到天数:9天
签到总天数:3200天
签到总奖励:113813金币
发表于 2013-11-15 08:55:59 | 显示全部楼层
嘿嘿,我好像有点明白了
直接写呗
积分商城 - 让您的金币更有价值!||官方Q群 - 让您的沟通更加及时!
回复 支持 反对

使用道具 举报

暂无签到数据

 楼主| 发表于 2013-11-15 10:26:53 | 显示全部楼层
但是不明白的地方是他的原始組合是 11組 總共44字 但是他的說明只有28字可以編程 每個字可有0到7的選擇 原始的設定還有f的字 真的是搞不懂了
积分商城 - 让您的金币更有价值!||官方Q群 - 让您的沟通更加及时!
回复 支持 反对

使用道具 举报

连续签到天数:1天
签到总天数:77天
签到总奖励:989金币
发表于 2013-11-15 10:35:45 | 显示全部楼层
举例来说
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喽
积分商城 - 让您的金币更有价值!||官方Q群 - 让您的沟通更加及时!
回复 支持 反对

使用道具 举报

暂无签到数据

发表于 2013-11-15 12:10:17 | 显示全部楼层
洋码太多,没明白!
积分商城 - 让您的金币更有价值!||官方Q群 - 让您的沟通更加及时!
回复 支持 反对

使用道具 举报

连续签到天数:1天
签到总天数:141天
签到总奖励:840金币
发表于 2013-11-15 16:05:36 | 显示全部楼层
参观学习。
积分商城 - 让您的金币更有价值!||官方Q群 - 让您的沟通更加及时!
回复 支持 反对

使用道具 举报

暂无签到数据

发表于 2014-7-29 05:12:42 | 显示全部楼层
顶!
(虽然有且仅有一个字,却深刻表达回复人的深深的祝福与刻骨的情感,可谓言简意赅,一字千金,字字扣人心弦,催人泪下,足于见作者扎实的文字功底和信手拈来的写作技巧及惨绝人寰的创新能力。实在佩服佩服!加上以感叹号收尾,点睛之笔,妙笔生花,意境深远,照应前文,升华主题,把作者的感情表达得淋漓尽致,给人无限感动和惆怅,有浑然天成之感,实乃回复中之极品,祝福中之绝笔。)
2014-07-29
李勇
积分商城 - 让您的金币更有价值!||官方Q群 - 让您的沟通更加及时!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册  

本版积分规则

小黑屋|手机版|我爱蓝牙网 - 52Bluetooth

GMT+8, 2024-5-6 14:47 , Processed in 0.243568 second(s), 24 queries , Gzip On, MemCached On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表