1. discover peripherals 2. discover peripheral when the device is not connected