The device is a P2P GO by automatic connection, with fast connection after each reset or disconnection. The device stores the parameters of the last connection.
At least one profile should be configured in the system.
- HARD RESET ONLY – Launch Group (as GO) with previous persistent network parameters stored in fast-connect, set WPS method and set timer.
- PEER DISCONNECT – Set WPS method and set timer.
- WPS timer expired with no peers connected – Tear down group, go back and perform a profile P2P find with stored network. Examine the results and initiate a negotiation request with the policy parameters (negotiate with intent = 15 results as GO).
- Configure P2P global parameters.
- Configure P2P profile policy with SL_P2P_ROLE_GROUP_OWNER (intent 15), and with SL_P2P_NEG_INITIATOR_RAND_BACKOFF (negotiation initiator don't care). SL_P2P_POLICY(SL_P2P_ROLE_GO, SL_P2P_NEG_INITIATOR_RAND_BACKOFF)
- Configure P2P profile policy connection with auto-start and fast connection. SL_CONNECTION_POLICY(true, true, false, false)
- Configure P2P profile according to the willing parameters of the remote device such as name, MAC address, and so forth.
- If the peer parameters are unknown, operate a discover P2P operation, find P2P peers, and then configure profiles.