ѡ ֻ | ʵ԰

йз

 һ
 ע

QQ¼

ֻһٿʼ

ɨһɨ΢

йз ҳ

ֵ̽͹ν

2016-6-16 23:12| : ˷| 鿴: 1027| : 0

ժҪ: ͹Bluetooth® low energytechnology׼ݽרעΪ豸ṩɿЧҵ͹ĵ·ӡг͵Ĺģ㳬2014ףĹ淶4.2汾 ...

͹Bluetooth® low energytechnology׼ݽרעΪ豸ṩɿЧҵ͹ĵ·ӡг͵Ĺģ㳬

2014ףĹ淶4.2汾ʽڸð汾Уµ˽ƣ⣬ð汾˵͹豸ݴٶɿԡڵ͹ӣ豸֮ݴٶȿɽ4.12.5ݴٶܹʹĻʲٵܺģЧʡľ͵͹豸֮ӽϸĽ⡣ϣܰƳдԵIJƷͽ

ڵ͹ӵĹУ豸dzɶԳֵģmasterslavemasterϣslaveӣmasterҪConnectionRequestCONNECT_REQmasterԳ֮ΪӷͬʱslaveǿӵIJҾнCONNECT_REQslaveԳ֮Ϊͼ1CONNECT_REQ֡ṹ

УInitAӷߵ豸ַΪ6ֽڣAdvAǹ㲥ߵ豸ַΪ6ֽڡInitAAdvA֮⣬֡ʽΪҪIJLLDataһְӽҪʹõIJ

Ϊ˸õCONNECT_REQǿճҵƵһӣĺ塣ǺܶӦöй飬ڿʼµĹ֮ǰҪ͹ǩһͶͬCONNECT_REQһmasterͶֻͬ辭ԱslaveȷϣͬͿʼЧ͹ҲͽˡǾͶͬеĸзͼ2ʾ

1ַAAAccess Address

ݺͬĵһΪԱһ˾ڲΨһʶ룬ڹţԱڹ˾ڲʹһţԱ뿪˾֮ΨһʶԶʧЧʹһԱٴμ뵽ҹ˾/¹ҲɵĹŲͬƵģ͹豸֮ǰmaster豸ɽַһַһ4ֽڵӽ֮masterslaveʹһַͨţӶϿ֮󣬽ַԶʧЧ

 

2CRCInitCRCʼֵ

ͬĵڶCRCInitǹԱڹ˾ڲһԿͨԿԱԷʹ˾ڲԴڵ͹豸masterslaveʹCRCIinit֤ݰԡ

 

3WinSizeWinOffset

ͬĵй淶˹Ա״˾ʱԼÿιʱWinSizeWinOffsetڵ͹УҲƵĶ塣WinOffsetCONNECT_REQ֮һͨŴڵƫͼ3ʾslave豸յCONNECT_REQ֮slave豸ҪռһЩʱ䡢LLDataһЩصãˣWinOffesetΪslave豸дֲṩʱ䣬transmitWindowOffset= WinOffset1.25 msWinSize豸ÿοշĴʱ䣬masterslaveǶѭWinSizeĶ壬ʱtransmitWindowSize=WinSize1.25 ms

ˣCONNECT_REQ֮󣬵һmaster͵slave֡dz֮Ϊêͼ3ʾΪ֮е¼һʱΪ׼Ա仯ӺɫͼǿԿһ֡ʱ̲ڣ1.25ms+transmitWindowOffsetͬʱҲڣ1.25 ms + transmitWindowOffset +  transmitWindowSize

4Interval, Latency & Timeout

һ£ǵĹʱdz壬һܹ졣ڵ͹ӻƵУDz˸Թڵ͹ӵĵԹƣҪ˽⣬IntervalLantencyTimeout

ӽ֮masterslave֮ݽǿԳ֮Ϊ¼¼ķڣconnIntervalIntervalconnInterval= Interval1.25 ms, connIntervalȡֵΧ7.5 ms4 s֮䡣ˣȷê֮masterslaveconnIntervalȷʱݵĽͼ4ʾ

ǣڵ͹͹ĵҪرǵģʵʵӦõУҪÿconnInterval¼˲LantancyЧļ¼IJconnSlaveLatency= LatencyconnSlaveLatency slave豸ԺԶٸ¼䲻ҪЩԵ¼masterݰҲζslave豸Ҫÿ¼ʱ̶ѲƵջԿЧslave豸ĹġҲǵ͹ܹʵ͹ԵһҪԭ

TimeoutӳʱijȣconnSupervisionTimeout= Timeout10 msȡֵΧ100 ms32 s֮䡣masterslaveյһ֮֡ȴconnSupervisionTimeoutʱûһ֡ΪѾϿҪǿǣconnSupervisionTimeout1 + connSlaveLatency connInterval 2slave豸ʹLantency״̬ҲᱻΪӳʱϿ

 

5ChM & Hop

Ƕ֪ʹõƵӽ֮masterslave豸ҪijֻԤ趨ŵͼϡԤ趨ƵȽƵŵͼ׾ChMÿĿHopHopһȡֵΧ516֮䡣ĹʽṩƵĹʽ

fn+1 =fn+ Hopmod37

УmodΪȡ

͹37ŵŵΪ0-36ʽУfnΪǰŵfn+1Ϊһŵ1ΪHop= 13ʱƵͼ

ChMΪŵͼ׵λ룬Ϊ5ֽڣ40ء37ŵֻе37λЧλijһ1ζһŵã0򲻿áƵ㹫ʽԼChMƵΪӦġfn+1ŵChMбΪãfn+1Ϊһŵfn+1ŵChMбΪãһŵҪӳŵϽͨšˣϻƱ֤˵͹кܺõĿ

 

ڵ͹ӵļϸڣǾô࣬ϣܹʹ߶ڵ͹һȫֱ۵˽⡣

 

ԭߣ̫Ŀο


ʻ



·

ղ

ط

Archiver|С| ( ICP14052215-1

GMT+8, 2018-1-17 03:26 , Processed in 0.062501 second(s), 18 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

ض