Upload
others
View
5
Download
0
Embed Size (px)
Citation preview
Smart Finder Development Guide
PCB boards:KF-4A/KF-Li
Authors: Jeffrey Peng, Charlie Xia
Ace Sensor Inc.
Every reasonable effort has been made to ensure the information and procedures detailed in this guide are complete and accurate at the time of printing. However, information contained in this guide is subject to change without notice.
© Copyright of Ace Sensor Inc. 2012. All rights reserved.
The copyright in this work is vested in Ace Sensor Inc. and the information contained herein is confidential. This work (either in whole or in part) must not be modified, reproduced, disclosed or disseminated to others or used for purposes other than that for which it is supplied, without the prior written permission of Ace Sensor Inc.. If this work (or any part of it) is provided to a party ("Other Party") under a contract between Ace Sensor Inc. and the Other Party, then the use of the work by the Other Party shall be governed by the provisions of the contract.
_______
Cha Versi1.0
1.1
1.2
Tab 1. A2. I3. C4. A5. F
5.1
5.2
6. T6.1
6.2
6.3
__________________
ange Histo
ion DatAug. 222012 Nov. 4t2012 Nov. 162013
le of Cont
Abstract ......Introduction ConfiguratioAccess ContFirmware Up1. Using th
2. Using th
Testing with1. Turning
2. Control
3. Notifica
_________________
ry
te A2nd Jeffrey
Charlith Jeffrey
Charli6th Jeffrey
tents
.....................................
on and Notifitrol ..............pgrade ........he On-Board
he Over-The
h 3rd Party Tog Off Access
the Immedi
ation from th
__________________
Author y Peng, ie Xia y Peng, ie Xia y Peng
....................
....................fication .................................................d Debugging
e-Air Downlo
ools ............. Control ......
ate Alert .....
he Smart Fin
_________________
Page 1
Creation of firmware deiOS 6 updat
iOS 7 updat
....................
....................
....................
....................
....................g Interface ...
oad ..............
....................
....................
....................
nder Tag .......
Ace Sen11 – 300Ottawa, Tel: 613
_________________
Descf the documenesign. te
te. Adding m
....................
....................
....................
....................
....................
....................
....................
....................
....................
....................
....................
nsor Inc. 0 Earl Grey Dr. SuiteOntario, K2T 1C1
3 3667799 Fax: 613 _________________
cription nt based on Sm
more examples
....................
....................
....................
....................
....................
....................
....................
....................
....................
....................
....................
e 383,
800-0726 __________________
mart Finder
s.
...................
...................
...................
...................
...................
...................
...................
...................
...................
................. 1
................. 1
__
2 2 3 5 6 6
7
9 9
11
12
_______
1 This usingaccesboard
2 SmarBLE objecPoweallowinput Mode
Mode
Both flash http://
__________________
1. Abstra
document isg the Ace Senss control, cods: KF-4A an
2. Introdu
rt Finder prosignal streng
ctives. Stander and Batter
ws Smart Fint device, hom
el KF-4A Color: BDimensioWeight: 2Battery: 2Estimated
el KF-Li Color: WDimensioWeight: 2Battery: LEstimatedhour of su
KF-4A and memory. T
/www.ti.com/
_________________
act
s written for nsor’s Smartonfiguration nd KF-Li).
uction
ducts are degth. Clear a
dard Bluetootry Service ar
nder productsme automatio
Black (other on: 52.7x32x23g/0.8oz 2xAAAA batd battery life
White (otheron: 58x36x1022g/0.8oz Li-ion batterid battery lifeun exposure
KF-Li are bTechnical det/general/docs
__________________
developers wt Finder prodand firmwa
signed for loaudible buzzeth Low Enerre supporteds be used as on, office sec
color also px10.2mm (Lx
tteries. : 2+ years (3
r color also p0mm. (LxW
ies with USB: one full chwill last 7 d
based on TI Ctails of TI CC/lit/getliteratu
_________________
Page 2
who want toducts. It covre upgrade m
ocating misper sound andrgy profiles:
d. In additionbasic proximcurity, enter
possible) xWxH)
3 uses per da
possible) xH)
B charging inharge: 6 mondays.
CC2541 BluC2541 can bure.tsp?generi
Ace Sen11 – 300Ottawa, Tel: 613
_________________
o develop innvers the progmethods for
placed objectd long batter Link Loss,
n, a tight accmity tag in arprise invent
ay)
nterface. nth with no e
uetooth Low be found at icPartNumbe
nsor Inc. 0 Earl Grey Dr. SuiteOntario, K2T 1C1
3 3667799 Fax: 613 _________________
novative appgramming asSmart Finde
ts via buzzerry life are theImmediate Aess control m
areas such asory tracking
exposure to s
Energy chip
er=cc2541&fi
e 383,
800-0726 __________________
plications pect on er (PCB
r sound and e design Alert, Tx mechanism external
g, etc. etc.
sunlight; one
p with 256K
ileType=pdf
__
e
Kb
_______
3 Smardiffer0xAC
Whenexperproxipleas The n Tabl
Servic
0xFFE0
0xACE
__________________
AceKF-http
3. Config
rt Finder tag rent use scenCE0. This co
auto or mauto adveaccess conconnectio
n configurinrience (respoimity tag, thee refer to Se
notification e
e 1: Configu
ce Charactristics
0
Service fobutton press events
0xFFE1
E0 Access Control
0xACE1
_________________
e Sensor pro-4A and KF-ps://itunes.ap
guration
is fully confnarios. The onfiguration
manual advertertising intervntrol: author
on interval g Smart Findonsiveness). e 0xACE0 seection 4 for h
event is defin
uration and
teAttribute
or
Notify
R/W
__________________
vides a free -Li. You canpple.com/app
andNot
figuration drconfiguratio
n parameters tising val rizing conne
der tag, you If the Smartervice does nhow to use se
ned in servic
d Notificatio
e Descriptio
Button preevent
AdvertisingInterval Control
uint8
_________________
Page 3
iOS app, Smn download ip/id5284606
tification
riven. This mon is done wi
controls
ction, passco
need to balat Finder tag not need to bervice 0xAC
ce 0xFFE0 w
on Private P
on Value
ess 1
2
0
g 0
1
2
3
4
5
Ace Sen11 – 300Ottawa, Tel: 613
_________________
mart Finder Ait from here:659
n
makes it possith a private
ode setting
ance battery is intended tbe used. For
CE0.
which notifie
Profile Defin
Meanin
Left key pres
Right key pr
Key lifted
Manual cont
645 ms
768 ms
961 ms
1065 ms
1294 ms
nsor Inc. 0 Earl Grey Dr. SuiteOntario, K2T 1C1
3 3667799 Fax: 613 _________________
App, which :
sible tailorinprofile in th
consumptioto be a standr a full acces
es button pre
nition.
ng
ssed
ressed Smarhas t
trol
The afor 30press200m
e 383,
800-0726 __________________
works with
ng for he service
on with user dard ss control,
esses.
Note
rt Finder tag onhis button
advertising wil0 seconds by sing the buttonms Interval
__
nly
l run
n,
_______
__________________
0xACE2
0xACE3
0xACE4
0xACE5
_________________
R
W
Notify
Write
__________________
Access Control
uint8
ConnectionInterval Control
uint8
AuthorizedRSSI notification
byte
Set passco
_________________
Page 4
>5
0
1
n 0
<20
0xF0~0xFF
d /
n 1
‐128~0
de uint8[5]
Ace Sen11 – 300Ottawa, Tel: 613
_________________
Set broadcainterval in 1incremental
Off
On
Disconnect
Connection interval in 1incremental
Set Keyfob sRSSI notificainterval in 1incrementalturns off theinterval
Authorized
Keyfob side
Under the condition ofconnection authorized, can be usednew passcodand turn theAccess Conton. All 0 indturning off AControl
When the AControl is onuntil you setcorrect passyou have nopermission tcharacteristthis service aproximity se
nsor Inc. 0 Earl Grey Dr. SuiteOntario, K2T 1C1
3 3667799 Fax: 613 _________________
sting 0ms l
Wheturnecorrereceiconnwill dunauconnsecon
00ms l
side ation 00ms l. 0xF0 e
Hold over authoconn
RSSI
f being this to set de e trol icates Access
Whecontrcorreauthoconn
ccess n, t the scode, o write to any ic of and ervices
Passcadveconfistoreand ppowe
e 383,
800-0726 __________________
n access contred on, if the ect passcode isved during ection, the keydisconnect the uthorized ection in 30 nds.
the button for3 seconds to orize current ection.
n the access rol is on, set thect passcode toorize current ection.
code and rtising intervalgurations are ed in flash mempersist during er loss.
__
ol is
s not
y fob
r
he o
l
mory
_______
4 To prsuppoexchaSmarconne The awork Initia
12
3
4
5
6
Regu
12
3
4 This
__________________
4. Access
revent unautort a passcodange during rt Finder tag,ection is disa
access controk flow that an
al Setup: Ap. The app c. The app d
second. OCharacter
. The app wcontrol. Paccess con
. The app w0x05 indiavailable,happens f
. If you needefault varecommen0xACE3.
. Once the will not re
ular Use: Ap. The app c. The app w
will receivauthorizat
. If you needefault varecommen0xACE3.
. The app a
access contr
_________________
sControl
thorized accede based accthe pairing p, the correct abled and dr
ol mechanismn iOS app sh
pp adds a Smconnects to thdisplays a meOnce the useristics 0xACwrites to ChaPlease note tntrol off.
writes 0x05 tcates a slow see table in
for 30 seconded to conservalue is 30ms,nded value i access contrespond to re
pp connectsconnects to thwrites to the ve a notification. ed to conservalue is 30ms,nded value i If there is n
and tag can t
rol process is
__________________
l
ess over BLEcess control mprocess. Whpasscode m
ropped.
m is providehould do to e
mart Findehe tag, turnsessage requeer has done sE4 with valuaracteristics that the passc
to Characterw broadcastinn Section 3. Ids when the ve battery, th, set by iOS.s 0x03 for a
rol is enabledquests from
to a pairedhe tag, turnspasscode se
ation in Char
ve battery, th, set by iOS.s 0x03 for a
no data transhen perform
s shown in S
_________________
Page 5
E, Smart Finmechanism.
hen a smartphust be sent w
ed by the servenable access
r tag: s on the Notiesting the usso, the app wue 0x01. 0xACE5 a 5code cannot
ristics 0xACEng interval. OIf the value ibutton is pre
he connectio. Without con interval of
d, the tag is bunpaired de
d Smart Finds on the Notiet previouslyracteristics 0
he connectio. Without con interval of
smission in 5m required int
Section 6.1 w
Ace Sen11 – 300Ottawa, Tel: 613
_________________
nder tag uses This privat
hone or tablewithin 30 sec
rvice 0xACEs control.
ify in Characser to press awill receive a
5 byte passcot be all zero,
E1 to turn onOther broadcis set to 0x00essed.
on interval shompromise uf 300ms to b
bond to the evices.
der tag ify in Charac
y to Characte0xACE4 with
on interval shompromise uf 300ms to b5 seconds, thnteraction.
with a 3rd par
nsor Inc. 0 Earl Grey Dr. SuiteOntario, K2T 1C1
3 3667799 Fax: 613 _________________
s a private prte profile alloet tries to coconds. Other
E0. The follo
cteristics 0xAand hold the a notification
ode. This turwhich indic
n auto broadcasting interv0, broadcasti
hould be extuser experienbe set in Cha
paired iOS d
cteristics 0xAeristics 0xACh value 0x01
hould be extuser experienbe set in Chahe connectio
rty tool.
e 383,
800-0726 __________________
rofile to ows passcod
onnect to the rwise the
owing is a
ACE4. button for 3
n in
rns on accescates turning
dcasting. vals are alsoing only
tended. The nce, the aracteristics
device and
ACE4. CE5. The app1 confirming
tended. The nce, the aracteristics n is closed.
__
de
s g
o
p g
_______
5
5
KF-4This rectan0.3-0
StandconneinterfTI’s CPleashttp:/shoul
__________________
5. Firmw
5.1. UsingInter
4A/KF-Li coconsists of 5ngle in the p
0.4mm. DistaR: Reset P2.1: CC2P2.2: CC2+ : VDD 3- : GND 0
dard 2mm toect to the debface can be uCC-debuggese find the de//www.ti.comld be remove
_________________
ware Upgr
gtheOn‐Brface
me with on-5 through-hopicture on theance between
2541 P2_1 2541 P2_2 3.3V 0V
ouch-pin conbugging inteused to reproer and Smartetails of the m/tool/cc-deed when usin
__________________
rade
BoardDeb
-board debugoles (shown ie right) in thn the pins is
nnection can erface. This ogram the firtRF™ Flash CC Debuggebugger Notng CC-debug
_________________
Page 6
bugging
gging interfain the red
he dimension2mm.
be used to debugging rmware usinProgrammeer here: te that battergger.
Ace Sen11 – 300Ottawa, Tel: 613
_________________
ace.
n of
ng er.
ries
nsor Inc. 0 Earl Grey Dr. SuiteOntario, K2T 1C1
3 3667799 Fax: 613 _________________
e 383,
800-0726 ____________________
_______
5
Step iOS dDrop
Step buttoindic Step 64bitiPhonthis p
__________________
5.2. Using
To upinstahttpsPleas
1: Upload thdevice. The fbox into TI
2: Set the Smn on the Smating it’s in
3: Perform ft device, i.e. ne 4S/5, iPadprocess.
_________________
gtheOver
pgrade the fill TI’s BLE ://itunes.appse follow the
he new firmwfollowing scBLE Multito
mart Finder mart Finder ta
OAD mode.
firmware upiPhone 5S, i
d 3/4/mini or
__________________
r‐The‐AirD
firmware usinMultitool on
ple.com/ca/ape steps below
ware, e.g. “Kcreenshots shool.
tag into OAag while putt.
pdate with TIiPad air and r iPod Touch
_________________
Page 7
Download
ng the BLE n your iOS dpp/ti-ble-mu
w to upgrade
KF4A-OADhows how to
AD mode. Reting the batte
I BLE MultiiPad mini 2
h 5th generat
Ace Sen11 – 300Ottawa, Tel: 613
_________________
d
wireless intedevice: ultitool/id580e you firmwa
.bin”, via emo upload the
emove a batery back on.
itool app. No. Please use tion. The fol
nsor Inc. 0 Earl Grey Dr. SuiteOntario, K2T 1C1
3 3667799 Fax: 613 _________________
erface, you’l
0494818 are.
mail or Dropnew firmwa
ttery. Press a. The LED w
ote: there’s aa 32bit devi
llowing scree
e 383,
800-0726 __________________
ll need to
pbox to your are from
and hold thewill stay lit,
a bug in iOSice, i.e. enshots show
__
e
w
_______
Step then Lsuccecorru
__________________
4: After theLED turns oessful. Possibupted firmwa
_________________
firmware upoff. If the LEble problemsare bin file.
__________________
pgrade compED stays on as: (a). You’r
_________________
Page 8
plete, the Small the time, re using a 64
Ace Sen11 – 300Ottawa, Tel: 613
_________________
mart Finder tthe firmwar
4 bit iOS dev
nsor Inc. 0 Earl Grey Dr. SuiteOntario, K2T 1C1
3 3667799 Fax: 613 _________________
tag will rebore upgrade isvice. (b). Yo
e 383,
800-0726 __________________
ot, beep ands not u have a
__
d
_______
6
6 If thedroppcontr
1
__________________
6. Testing
You cLightb
6.1. Turn
e access contped if a correrol, follow th
. Connect LCharacter
_________________
g with 3r
can test the Sblue iOS app
ningOffAc
trol has beenect passcodehe steps belo
Lightblue to ristic 0xACE
__________________
rd Party T
Smart Finderp. https://itu
ccessContr
n turned on ine is not receiow.
the Smart FE2 has value
_________________
Page 9
Tools
r tag with 3rd
unes.apple.co
rol
n the Smart ved within 3
Finder tag, to0x01, the ac
Ace Sen11 – 300Ottawa, Tel: 613
_________________
d party toolsom/app/ligh
Finder tag, t30 seconds. T
o inspect servccess contro
nsor Inc. 0 Earl Grey Dr. SuiteOntario, K2T 1C1
3 3667799 Fax: 613 _________________
s. Our favorhtblue/id5574
the connectiTo turn off t
vice 0xACEol is on.
e 383,
800-0726 __________________
ite tool is 428110
ion will be the access
E0, if
__
_______
2
__________________
. Press andsounded t0x0000000xACE2 h
_________________
hold the butto complete p00000 (10 zehas changed
__________________
tton on the Spairing. Wr
eros, i.e. 5 byd its value to
_________________
Page 10
Smart Finderrite to Characytes of 0x000x00. The a
Ace Sen11 – 300Ottawa, Tel: 613
_________________
r tag for 3 secteristic 0xA). Confirm taccess contro
nsor Inc. 0 Earl Grey Dr. SuiteOntario, K2T 1C1
3 3667799 Fax: 613 _________________
econd until aACE5 the vathat Charactol has been t
e 383,
800-0726 __________________
a beep is alue of teristic turn off.
__
_______
6 Follothe “ALED;
__________________
6.2. Cont
ow the steps Alert Level”; 0x00 turns
_________________
roltheIm
below to tur” to 0x01 turoff the alert
__________________
mmediateA
rn on the buzns on the but.
_________________
Page 11
Alert
zzer and LEDuzzer; 0x02 t
Ace Sen11 – 300Ottawa, Tel: 613
_________________
D on the Smturns on the b
nsor Inc. 0 Earl Grey Dr. SuiteOntario, K2T 1C1
3 3667799 Fax: 613 _________________
mart Finder tabuzzer and f
e 383,
800-0726 __________________
ag. Setting flashing the
__
_______
6 The sWhen0x02 Follo
__________________
6.3. Notif
service 0xFFn the button . When the b
owing the ste
_________________
ficationfro
FE0 provideson the Smar
button is lifte
eps below to
__________________
omtheSm
s the notificart Finder taged, Characte
receive noti
_________________
Page 12
martFinde
ation to show is pressed, C
eristic 0xFFE
ification from
Ace Sen11 – 300Ottawa, Tel: 613
_________________
erTag
w whether thCharacteristE1 shows va
m the Smart
nsor Inc. 0 Earl Grey Dr. SuiteOntario, K2T 1C1
3 3667799 Fax: 613 _________________
he button is ptic 0xFFE1 salue 0x00.
t Finder tag.
e 383,
800-0726 __________________
pressed. shows value
__