PAN1322Application Note 25 Revision 1.2, 2013-12-18Design GuideFigure 8. General state machine for a Host application as accessoryBelow is a short description of the states from the Host application state machine from above.1. Started, is after power on or a HW reset. To do this the host processor must be ableto Control GPIO’s for HW reset and Low Power Mode (LPM).2. Initialize, requires sending SPP-AT commands and parsing results. Furthermore,basic configuration, setting security, enabling Page and Inquiry Scan, setting localname etc.3. Not Connected, can be an idle state were it waits for an incoming connection or itwaits for the user of the Host application to make an input so that it connects toanother device. This state could also be very short if the host application isconfigured to directly try to and successfully connects to another device.4. Connected, requires that the host application is able to handle transmit and receiveof data to and from the remote device (e.g. a mobile phone). Disconnect, is anintermediate state where a disconnection has occurred on purpose or by unknownreasons.When being in the Not Connected or Connected state it is important to save power. The NotConnected state is most probably the normal state and LPM (Low Power Mode) should be used at alltimes as long as the host is not sending any commands to eUniStone nor receiving a wake-up fromStartedInitializeNotConnectedConnectedErrorConnection DisconnectionErrorDisconnect