ѡ ֻ | ʵ԰

йз

 һ
 ע

QQ¼

ֻһٿʼ

ɨһɨ΢

йз ҳ

4.2Ĺ淶й˽ļϸ

2015-11-11 22:57| : ˷| 鿴: 1746| : 0

ժҪ: ժҪµ(Bluetooth®)4.2Ĺ淶У֧һµԣͨԵظı豸ַ豸ʹ˽豸ڿͻͨƵԼݷ ...

ժҪµ(Bluetooth®)4.2Ĺ淶У֧һµԣͨԵظı豸ַ豸ʹ˽豸ڿͻͨƵԼݷķʽȡһ˽ԲGAPGeneric Access Profileķ̵̹ãӽ֮豸ٵԱһ豸˿ɱַĸ豸ʹߵ˽ܹõܺõıĽΪҽ4.2Ĺ淶й˽ļϸڡ

ǵճʹõͨ豸УMACַMACַΨһԵص㣬ͨͨŵУMACַΪ豸áMACַ豸䲢Ҵ洢豸С統豸ͬMACַôͻͨŵ⣬豸ڷMACַʱ򶼷dzСģȷַΨһԡϣȡ豸MACַҲdzļ򵥣ǴֻƽԣԷdz򵥵ڡ豸Ľҵ豸MACַЩ豸˵·ǵMACַʹӡ豸ı档ͬʱǻͨķʽȡ豸MACַ

ǿһ£ÿ˹ͨУ̳Ǻڲ۲͵ʱֻ԰㸶ѡ㵥͵ֻ뵽ȵ㵱нлʵʱͿܻһϵеĹ̵㲥MACַǰᵽMACַͨŵеΨһԣֻʹߣôⲿֻMACַijһǶʹͨŹ̵е֤˾ʹһֿܣһЩжͨһЩͨ豸ԻȡֻݽʱMACַҼ¼MACֵַڡʱصλãôپͿԱأͼʾ

ʹҲ⡣4.2Ĺ淶УһֽҪ˽ķҪִ豸ĵַ˵𡣺ͨżƣ豸Ҳ豸ַĺĹ淶УͨΪBD_ADDR(Bluetooth Device Address)BD_ADDR豸ӺԵĹ̵豸ʶá豸ʹùеַPublic Device AddressҲʹַ(Random Device Address)ʹùеַַǵĵַȶ48أҲ6ֽڡ

еַĹɰ֣һǹ˾ʶ루Company IDҪͨIEEEעѻã˾ʶ볤Ϊ24أ48豸ַĸ24أһǹ˾루Company Assigned ID䳤ҲΪ24أ48豸ַĵ24bitͼʾ

˹еַ豸Ҳʹַصַаַ֣̬Static Device Address˽еַPrivateDevice Addressھַ̬ͱĵ⡪ʹ4.2˽ϵصһ˽еַ˽еַĶ嵱Уְࣺɽ˽еַNon-resolvable Private AddressͿɽ˽еַ(ResolvablePrivate Address RPA)νɽ˽еַ豸ַԵı仯ַ޷豸ǿΪһɽ˽еַԱû˽Ϊϱ仯豸ַʹκ豸޷ͨ¼豸ַķʽûи٣ıʽҲζſε豸Ҳ޷豸ʵݣؽܿɽ˽еַͼʾֻ豸ַڲϵı仯˼豸ַȡҲ޷豸ʵݣǾijֽԿ

ɽ˽еַζ豸ַBD_ADDRԵIJϱ仯Աû˽٣ͬʱǿɽģ豸Pair Deviceͨ˽еַ豸ʵݡˣҪ˽ɽ˽еַβģ

豸ֱ豸A豸B豸AB֮豸ͨԵķʽԵݽԿIRKIdentity Resolving Key, IRK豸AݽԿIRK-A豸BݽԿIRK-B豸B˿ɽ˽еַƣô豸BҪԵIJɽ˽еַͼǿɽַĽṹпɽַĸطֱΪ01Ϊɽַıʶ

豸BҪַʱڲһprandprand豸BҪùϣhash㷨ɿɽַһ֣hashprand͹ϣhashֱռ24أ㹫ʽΪ

ϣhash = ah(IRK-B, prand)

кah4.2Ĺ淶3H2.2.2½ϸܣ˴׸豸BprandͻprandɵĹϣhash֮ͨλķʽͿɿɽַRPA


RPA= hash|| prand

ô豸AνRPAأ豸Aյһ豸ַBD_ADDRַĵַʶһɽַ豸AȽַΪprand͹ϣhash֮ǰ豸BʱȡIRK-BͨahһعϣlocalHash

localHash = ah(IRK-B, prand)

ɵıعϣlocalHashֵõĹϣhashȣ˵ַ豸BĿɽַȣʧܡ豸Aȡ豸IRKַнͼһַͼ

ˣڿɽַĽǿΪһٵĹ̡κ豸յһɽַʱ򣬶䱾洢IRKɽַйϣȶԣַֹʵݿɽеIRK޷ַнôʧܡ

ͨķ豸ͨÿɽַķʽ豸˽б豸ʹߵ˽б˿ɽַ֮豸ĵַԲϱ仯ģԼʹͨʽȡ豸ĵַҲ޷ͨ豸ֵַʱ͵ַ豸и١ֻЩԹݽԿIRKĿ豸ܶԿɽַн

ԭߣ̫Ŀο


ʻ



·

ղ
һƪ͹ϣһƪֵ̽͹ν

ط

Archiver|С| ( ICP14052215-1

GMT+8, 2018-9-22 12:01 , Processed in 0.078126 second(s), 18 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

ض