CROSS-REFERENCE TO RELATED APPLICATION

This application is based on and claims priority under 35 U.S.C. § 119 to Korean Patent Application No. 10-2019-0038713, filed on Apr. 2, 2019, in the Korean Intellectual Property Office, the disclosure of which is incorporated by reference herein its entirety.

BACKGROUND

1. Field

The disclosure relates to a method for removing dust using a speaker and an electronic device supporting the same.

2. Description of Related Art

Various mobile electronic devices, such as a smartphone, a tablet PC, and a laptop PC, have been released. The electronic device may perform various functions of voice call, video call, message transmission, video playback, or music playback. The electronic device may include a speaker or a receiver for a call for outputting sounds generated in a process of executing the above functions. The electronic device may include an opening (or a hole) for outputting the sounds to an outside of a housing, and the sounds generated by the speaker or the receiver may be emitted to the outside through the opening.

Depending on an environment (e.g. a desert region and a factory area) in which a user uses the electronic device, a foreign substance (e.g., soil, dust, sand, moisture) may be attached to an opening for outputting the sound. When the foreign substance is attached to the opening, the output of the sound may be interrupted by the foreign substance and it may be inconvenient for the user.

An electronic device according to the prior art prevents inflow of a foreign substance (e.g., soil, dust, sand, and moisture) by installing a mesh net in an opening for sound output. When the foreign substance (e.g., the soil, the dust, the sand, and the moisture) is adsorbed on the mesh net, the sound output may be disturbed. When a user discharges the foreign substance (e.g., the soil, the dust, the sand, and the moisture) by shaking the electronic device, it is inconvenient for the user and the foreign substance is not discharged efficiently.

The above information is presented as background information only to assist with an understanding of the disclosure. No determination has been made, and no assertion is made, as to whether any of the above might be applicable as prior art with regard to the disclosure.

SUMMARY

Embodiments of the disclosure may provide an electronic device that outputs an acoustic signal of a low frequency having a specific waveform to discharge the foreign substance (e.g., the soil, the dust, the sand, and the moisture) to outside of the electronic device or to separate the foreign substance (e.g., the soil, the dust, the sand, and the moisture) from the mesh net.

Embodiments of the disclosure address at least the above-mentioned problems and/or disadvantages and provide at least the advantages described below. Accordingly, an example embodiment of the disclosure provides an electronic device including: a housing surrounding an exterior of the electronic device, the housing including at least one opening, a sensor module including at least one sensor, a sound output device comprising sound output circuitry configured to output an acoustic signal through the at least one opening, a memory, and a processor electrically connected to the sensor module and the sound output device, wherein the processor may be configured to: determine whether the electronic device is in a state where a foreign substance has entered the at least one opening, determine whether the electronic device is in a first disposition state using the sensor module based at least on determining that the electronic device is in the state where the foreign substance has entered the at least one opening of the electronic device, and control the electronic device to output a specified acoustic signal having a specified frequency band and a specified waveform through the sound output device based on the electronic device being in the first disposition state.

Other aspects, advantages, and salient features of the disclosure will become apparent to those skilled in the art from the following detailed description, which, taken in conjunction with the annexed drawings, discloses various example embodiments of the disclosure.

