nRF8002 Product Specification
4.3
State diagram
Figure 4. defines nRF8002’s different operating states and their behavior. For details on the configuration
parameters, see chapter 8 on page 33.
Legend:
”Timeout”
_=
_
GAP.SysStateBonding
=
GAP.SysActionConn
=
Non-configurable state (always italicized)
A pre-defined output action that can be configured
(always below the line)
A pre-defined input action that can be configured
(always above the line)
Wakeupsrc/WD Reset
--
Sleep
Starting from Reset vector
(PowerUp/ HW reset/ WD Reset/
Wakeup src)
GAP.SysActionBond _
GAP.SysStateBonding
”PowerUp/ HW Reset” _
GAP.SysStateBonding
GAP.SysActionConn
GAP.SysStateConnecting
GAP.SysActionMute _
Turn off Ongoing Alarm
GAP.SysActionConn
GAP.SysStateConnecting
Bonding
Connecting
Fast Adv.
Adv.interv: 30ms
Timeout: 180 sec
Connected
Bonding
Fast Adv.
AdvInt = GAP.AdvIntFast
AdvTimeout = GAP.AdvTimeout
timeout
--
Slow Adv.
AdvInt = GAP.AdvIntSlow
AdvTimeout:= ”infinite”
Timeout
_
GAP.SysStateSleep
Bonding Failed _
GAP.SysStateSleep
GAP.SysActionSleep_
GAP.SysStateSleep
GAP.SysActionSleep_
GAP.SysStateSleep
Get connected _
GAP.SysStateConn
Disconnect – Reason:Timeout
GAP.SysStateConnecting
Proximity.LinkLossxxAlert
GAP.SysActionSleep_
GAP.SysStateSleep
Bonding succeed _
GAP.SysStateConn
Connected
Disconnect –
Remote User Terminated
GAP.SysStateConnecting
Disconnect –
Other reason
GAP.SysStateConnecting
Init Alert Notification
(AlertNotification.CategoryMask)
GAP.SysActionBond
GAP.SysState-
Bonding
Receiving data on
ImediateAlert
locally
Receiving data on
LinkLossAlert
locally
GAP.SysActionSleep_
GAP.SysStateSleep
(Disconnect-Terminated By Local Host)
Rx - ImediateAlert (xx: 0,1,2) _
Proximity.LocImmediatexxAlert
Sending data to
ImediateAlert
remotely
Rx - LinkLossAlert(xx)
Save received Alert level
Receiving data on
AlertNotification
locally
Proximity.RemImmediatexxAlert
Tx ImediateAlert (xx: 0,1,2)
Rx - NewIncomingAlert(xx)
AlertNotification.Alertxx
Revision 1.1
Figure 4. State diagram
Page 11 of 46
GAP.SysActionMute _
Turn off Ongoing Alarm