KR20170098100A - Electronic device and method for controlling output of audio informaton in the electronic device - Google Patents

Electronic device and method for controlling output of audio informaton in the electronic device Download PDF

Info

Publication number
KR20170098100A
KR20170098100A KR1020160020026A KR20160020026A KR20170098100A KR 20170098100 A KR20170098100 A KR 20170098100A KR 1020160020026 A KR1020160020026 A KR 1020160020026A KR 20160020026 A KR20160020026 A KR 20160020026A KR 20170098100 A KR20170098100 A KR 20170098100A
Authority
KR
South Korea
Prior art keywords
electronic device
external electronic
connector
audio
information
Prior art date
Application number
KR1020160020026A
Other languages
Korean (ko)
Inventor
이우광
최우성
김경훈
하치정
Original Assignee
삼성전자주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자주식회사 filed Critical 삼성전자주식회사
Priority to KR1020160020026A priority Critical patent/KR20170098100A/en
Publication of KR20170098100A publication Critical patent/KR20170098100A/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2499/00Aspects covered by H04R or H04S not otherwise provided for in their subgroups
    • H04R2499/10General applications

Abstract

According to various embodiments of the present invention, provided are an electronic device and a method for controlling output of audio information in the electronic device. The electronic device comprises: a speaker; a connector for communicating serial data with a first external electronic device functionally connected to the electronic device; and a processor. The processor is configured to receive state information indicating whether the first external electronic device is electrically coupled with a second external electronic device through the connector, if the state information satisfies a first specified condition, output audio associated with an application executed in the electronic device through the speaker, and if the state information satisfies a second specified condition, transmit the audio to the first external electronic device through the connector such that the audio is output through the second external electronic device.

Description

BACKGROUND OF THE INVENTION 1. Field of the Invention [0001] The present invention relates to a method for controlling the output of audio information in an electronic apparatus and an electronic apparatus,

Various embodiments of the present invention are directed to a method for controlling the output of audio information in an electronic device and an electronic device.

As electronic devices evolve in various forms, they can be connected to various types of external electronic devices to provide functions or information that can not be provided by electronic devices. In addition, the electronic device may perform some of its functions with external electronic devices, or may receive various information through another network.

The external electronic device may be in the form of an accessory device that can be connected to the electronic device in a wireless or wired manner and may provide information that can control some functions of the application executed in the electronic device.

When the electronic device is connected to the external electronic device, it can execute an application related to the external electronic device, display information about the executed application, or output it as audio information. In order to output the audio information, the electronic device is set to a terminal (for example, an aux terminal) to which the output path of the audio information is unconditionally connected to the earphone when the earphone is connected, .

However, since the output path of the audio information is set as the terminal for directly connecting the earphone, the electronic device can not recognize the accessory device such as the earphone connected to the external electronic device, There is a problem that it can not be output to an earphone connected to an external electronic device.

Furthermore, in recent years, external electronic devices connected to electronic devices have been implemented in a structure that is easy to use by being mounted on an electronic device, or they are implemented with a light weight. As a result, the external electronic device connected to the electronic device is implemented without including the configuration of the additional device which takes up a large volume. Therefore, when the external electronic device includes an audio information output device such as a speaker for outputting audio information, the external electronic device becomes bulky and is inconvenient to be mounted on an electronic device, There is a difficult problem.

Accordingly, various embodiments of the present invention seek to provide a method for controlling the output of audio information in a situation where an external electronic device is connected to the electronic device and the electronic device.

An electronic device according to any one of the various embodiments for solving the stated problem or other task comprises a speaker, a connector for communicating serial data with a first external electronic device functionally connected to the electronic device, . ≪ / RTI > Wherein the processor is configured to receive, via the connector, state information indicating whether the first external electronic device is electrically coupled to a second external electronic device, and wherein the state information satisfies a first specified condition Outputting audio associated with an application executed in the electronic device via the speaker, and when the status information satisfies a second specified condition, the sound is output through the second external electronic device And to transmit the sound to the first external electronic device via the connector.

The electronic device according to any one of the various embodiments may further include a connector for communicating serial data with a first external electronic device functionally coupled to the electronic device, Lt; / RTI > and a processor. Here, the processor may determine whether the connection jack is electrically coupled to the second external electronic device through the connector, and determine status information indicating whether the second external electronic device is connected to the connection jack To the first external electronic device, and, when the second external electronic device is connected, to the first external electronic device via the connector in accordance with the status information, audio, and to output the received sound to the second external electronic device, and if the second external electronic device is not connected, control is performed via the speaker of the first external electronic device based on the status information And may be set to output the sound.

A computer-readable medium having stored thereon a program for execution on a computer according to any one of the various embodiments, the program comprising instructions that, when executed by a processor, cause the processor to: Receiving status information indicating whether the first external electronic device is electrically coupled to a second external electronic device through a connector for communicating serial data with the external electronic device, Outputting an audio associated with an application executed in the electronic device via the speaker if the status information satisfies a first specified condition, and when the status information satisfies a second specified condition, The sound can be transmitted through the connector to the image so that the sound can be output through the electronic device. And may include instructions executable to transmit to the first external electronic device.

By determining whether an earphone is connected to an external electronic device according to a change in state of an external electronic device connected in the electronic device according to a method for controlling output of an audio signal in an electronic device and an electronic device according to various embodiments, The audio information can be outputted through the earphone of the external electronic device even when the earphone can not be used.

In addition, if it is confirmed that the earphone is not connected to the external electronic device to which the electronic device according to various embodiments is connected, the electronic device outputs audio information through the internal speaker so that a lightened external electronic device There is an effect that can be implemented.

1 is a diagram illustrating a network environment according to various embodiments of the present invention.
2A and 2B are diagrams showing an example of the configuration of an electronic device to which an external electronic device according to various embodiments of the present invention is connected.
3 is a diagram showing an example of the configuration of an external electronic device according to various embodiments of the present invention.
4 is a diagram showing an example of the configuration of an electronic device according to various embodiments of the present invention.
5 is a diagram showing an example of the configuration of an external electronic device according to various embodiments of the present invention.
6 is a diagram showing an example of an operation procedure of an electronic device connected to an external electronic device according to various embodiments of the present invention.
7 is a diagram showing an example of operation procedures of an electronic device according to various embodiments of the present invention.
8 is a diagram showing an example of an operation procedure of an external electronic device according to various embodiments of the present invention.
9 is a block diagram of an electronic device according to various embodiments.
10 is a block diagram of a program module in accordance with various embodiments.

Hereinafter, various embodiments of the present document will be described with reference to the accompanying drawings. It is to be understood that the embodiments and terminologies used herein are not intended to limit the invention to the particular embodiments described, but to include various modifications, equivalents, and / or alternatives of the embodiments. In connection with the description of the drawings, like reference numerals may be used for similar components. The singular expressions may include plural expressions unless the context clearly dictates otherwise. In this document, the expressions "A or B" or "at least one of A and / or B" and the like may include all possible combinations of the items listed together. Expressions such as " first, "" second," " first, "or" second, " But is not limited to those components. When it is mentioned that some (e.g., first) component is "(functionally or communicatively) connected" or "connected" to another (second) component, May be connected directly to the component, or may be connected through another component (e.g., a third component).

In this document, the term " configured to (or configured) to "as used herein is intended to encompass all types of hardware, software, , "" Made to "," can do ", or" designed to ". In some situations, the expression "a device configured to" may mean that the device can "do " with other devices or components. For example, a processor configured (or configured) to perform the phrases "A, B, and C" may be implemented by executing one or more software programs stored in a memory device or a dedicated processor (e.g., an embedded processor) , And a general purpose processor (e.g., a CPU or an application processor) capable of performing the corresponding operations.

Electronic devices in accordance with various embodiments of the present document may be used in various applications such as, for example, smart phones, tablet PCs, mobile phones, videophones, electronic book readers, desktop PCs, laptop PCs, netbook computers, workstations, a portable multimedia player, an MP3 player, a medical device, a camera, or a wearable device. Wearable devices may be of the type of accessories (eg, watches, rings, bracelets, braces, necklaces, glasses, contact lenses or head-mounted-devices (HMD) (E.g., a skin pad or tattoo), or a bio-implantable circuit. In some embodiments, the electronic device may be, for example, a television, a digital video disk (Such as Samsung HomeSync TM , Apple TV TM , or Google TV TM ), which are used in home appliances such as home appliances, audio, refrigerators, air conditioners, vacuum cleaners, ovens, microwave ovens, washing machines, air cleaners, set top boxes, home automation control panels, , A game console (e.g., Xbox TM , PlayStation TM ), an electronic dictionary, an electronic key, a camcorder, or an electronic photo frame.

In an alternative embodiment, the electronic device may be any of a variety of medical devices (e.g., various portable medical measurement devices such as a blood glucose meter, a heart rate meter, a blood pressure meter, or a body temperature meter), magnetic resonance angiography (MRA) A navigation system, a global navigation satellite system (GNSS), an event data recorder (EDR), a flight data recorder (FDR), an automobile infotainment device, a marine electronic equipment (For example, marine navigation systems, gyro compasses, etc.), avionics, security devices, head units for vehicles, industrial or domestic robots, drones, ATMs at financial institutions, of at least one of the following types of devices: a light bulb, a fire detector, a fire alarm, a thermostat, a streetlight, a toaster, a fitness device, a hot water tank, a heater, a boiler, . According to some embodiments, the electronic device may be a piece of furniture, a building / structure or part of an automobile, an electronic board, an electronic signature receiving device, a projector, or various measuring devices (e.g., Gas, or radio wave measuring instruments, etc.). In various embodiments, the electronic device is flexible or may be a combination of two or more of the various devices described above. The electronic device according to the embodiment of the present document is not limited to the above-described devices. In this document, the term user may refer to a person using an electronic device or a device using an electronic device (e.g., an artificial intelligence electronic device).

Referring to Figure 1, in various embodiments, an electronic device 101 in a network environment 100 is described. The electronic device 101 may include a bus 110, a processor 120, a memory 130, an input / output interface 150, a display 160, and a communication interface 170. In some embodiments, the electronic device 101 may omit at least one of the components or additionally include other components. The bus 110 may include circuitry to connect the components 110-170 to one another and to communicate communications (e.g., control messages or data) between the components. Processor 120 may include one or more of a central processing unit, an application processor, or a communications processor (CP). The processor 120 may perform computations or data processing related to, for example, control and / or communication of at least one other component of the electronic device 101.

Memory 130 may include volatile and / or non-volatile memory. Memory 130 may store instructions or data related to at least one other component of electronic device 101, for example. According to one embodiment, the memory 130 may store software and / or programs 140. The program 140 may include, for example, a kernel 141, a middleware 143, an application programming interface (API) 145, and / or an application program . At least some of the kernel 141, middleware 143, or API 145 may be referred to as an operating system. The kernel 141 may include system resources used to execute an operation or function implemented in other programs (e.g., middleware 143, API 145, or application program 147) (E.g., bus 110, processor 120, or memory 130). The kernel 141 also provides an interface to control or manage system resources by accessing individual components of the electronic device 101 in the middleware 143, API 145, or application program 147 .

The middleware 143 can perform an intermediary role such that the API 145 or the application program 147 can communicate with the kernel 141 to exchange data. In addition, the middleware 143 may process one or more task requests received from the application program 147 according to the priority order. For example, middleware 143 may use system resources (e.g., bus 110, processor 120, or memory 130, etc.) of electronic device 101 in at least one of application programs 147 Prioritize, and process the one or more task requests. The API 145 is an interface for the application 147 to control the functions provided by the kernel 141 or the middleware 143. The API 145 is an interface for controlling the functions provided by the application 141. For example, An interface or a function (e.g., a command). Output interface 150 may be configured to communicate commands or data entered from a user or other external device to another component (s) of the electronic device 101, or to another component (s) of the electronic device 101 ) To the user or other external device.

The display 160 may include a display such as, for example, a liquid crystal display (LCD), a light emitting diode (LED) display, an organic light emitting diode (OLED) display, or a microelectromechanical system (MEMS) display, or an electronic paper display . Display 160 may display various content (e.g., text, images, video, icons, and / or symbols, etc.) to a user, for example. Display 160 may include a touch screen and may receive a touch, gesture, proximity, or hovering input using, for example, an electronic pen or a portion of the user's body.

The communication interface 170 establishes communication between the electronic device 101 and an external device (e.g., the first external electronic device 102, the second external electronic device 104, or the server 106) . For example, communication interface 170 may be connected to network 162 via wireless or wired communication to communicate with an external device (e.g., second external electronic device 104 or server 106).

The wireless communication may include, for example, LTE, LTE-A (LTE Advance), code division multiple access (CDMA), wideband CDMA (WCDMA), universal mobile telecommunications system (UMTS), wireless broadband (WiBro) System for Mobile Communications), and the like. According to one embodiment, the wireless communication may be wireless communication, such as wireless fidelity (WiFi), Bluetooth, Bluetooth low power (BLE), Zigbee, NFC, Magnetic Secure Transmission, Frequency (RF), or body area network (BAN). According to one example, wireless communication may include GNSS. GNSS may be, for example, Global Positioning System (GPS), Global Navigation Satellite System (Glonass), Beidou Navigation Satellite System (Beidou) or Galileo, the European global satellite-based navigation system. Hereinafter, in this document, "GPS" can be used interchangeably with "GNSS ". The wired communication may include, for example, at least one of a universal serial bus (USB), a high definition multimedia interface (HDMI), a recommended standard 232 (RS-232), a power line communication or a plain old telephone service have. Network 162 may include at least one of a telecommunications network, e.g., a computer network (e.g., LAN or WAN), the Internet, or a telephone network.

Each of the first and second external electronic devices 102, 104 may be the same or a different kind of device as the electronic device 101. According to various embodiments, all or a portion of the operations performed in the electronic device 101 may be performed in one or more other electronic devices (e.g., electronic devices 102, 104, or server 106). According to the present invention, when electronic device 101 is to perform a function or service automatically or on demand, electronic device 101 may perform at least some functions associated therewith instead of, or in addition to, (E.g., electronic device 102, 104, or server 106) may request the other device (e.g., electronic device 102, 104, or server 106) Perform additional functions, and forward the results to the electronic device 101. The electronic device 101 may process the received results as is or additionally to provide the requested functionality or services. For example, Cloud computing, distributed computing, or client-server computing techniques can be used.

Hereinafter, an electronic device according to various embodiments of the present invention will be described with reference to the accompanying drawings.

2A and 2B are diagrams showing an example of the configuration of an electronic device to which an external electronic device according to various embodiments of the present invention is connected.

2A, according to various embodiments of the present invention, an electronic device 201 is shown coupled to a first external electronic device 202 (e.g., the external electronic device 102, 104 of FIG. 1) ). According to various embodiments, the first external electronic device 202 may be an accessory device (e.g., a gamepad) that includes a connector (e.g., a USB interface) for electrical connection. Here, the first external electronic device 202 may be electrically connected to a second external electronic device (not shown) (e.g., an earphone).

According to various embodiments, when the first external electronic device 202 is configured to be divided into a first part 202a and a second part 202b, the electronic device 201 may be configured to be adjacent to a first side of the housing A first area 211 and a second area 212 adjacent the second side of the housing may be coupled to the first part 202a and the second part 202b of the first external electronic device 202, respectively. The electronic device 201 may execute an associated application (e.g., a game application) as the external electronic device 202 is combined. Here, the first region 211 and the second region 212 may be regions located in different directions.

The electronic device 201 may also receive status information from the first external electronic device 202 when the first external electronic device 202 is mounted and electrically connected. Here, the status information includes information indicating whether the first external electronic device 202 is electrically connected to the second external electronic device (e.g., earphone) (not shown), the first external electronic device 202, The type of the first external electronic device 202, and the information related to the state change of the first external electronic device 202.

The electronic device 201 can control the output of audio information (sound) related to the executed application according to the received status information. According to various embodiments, the electronic device 201 may include a speaker (not shown) of the electronic device 201 when the status information received from the first external device 202 meets a first specified condition, It is possible to output the audio information through the < RTI ID = 0.0 > According to various embodiments, the electronic device 201 outputs the audio information via the second external electronic device when the status information received from the first external electronic device 202 satisfies a second specified condition To the first external electronic device (202).

2B, the electronic device 201 includes a connection jack (e.g., an ear jack) 213 that can be connected to a second external electronic device (e.g., an earphone) on the upper surface of the first area 211 of the housing, And the connector 214 may be configured on the lower surface of the second area 212 of the housing. The connector 214 may be connected to a first external electronic device 202 (e.g., the first external electronic device 202 of FIG. 2A). The connector 214 may include a USB interface for connection with the first external electronic device 202 (e.g., an external electronic device including a USB device). When the electronic device 201 is connected to the first external electronic device 202 and the first area 211 is inserted and mounted, the user can operate the electronic device 201 on the first area 211 It is possible to disable the connection jack 213 located in the connection terminal. Accordingly, the electronic device 201 may be unable to output audio information to the second external electronic device (e.g., earphone) through the connection jack 213. Accordingly, the electronic device 201 can establish an audio path to output audio information via a second external electronic device (e.g., earphone) or speaker 215 connected to the first external electronic device 202 connected thereto.

As described above, the first external electronic device 202 coupled to the electronic device 201 will be described in more detail.

3 is a diagram illustrating an exemplary configuration of a first external electronic device according to various embodiments of the present invention.

3, the first external electronic device 300 includes a portion of a housing of an electronic device (e.g., the same or similar to the electronic device 101 of FIG. 1 or the electronic device 201 of FIG. 2) The coupling groove 311 or 321 may be formed in one area of at least one part (e.g., at least one of the first part 310 or the second part 320) so that the area can be inserted and joined.

According to various embodiments, the external electronic device 300 may be divided into a first part 310 and a second part 320, as shown in FIGS. 3A and 3B, have. 3 (a), the first external electronic device 300 includes a connector (not shown) for electrically connecting to the electronic device in one area of the coupling groove 311 of the first part 310 313 may be configured. Here, the connector 313 of the first external electronic device 300 may include various types of USB interfaces (USB device class), for example. The first part 310 of the first external electronic device 300 may include, for example, an input device (e.g., button, key or touch panel) 315 configured on the top surface of the housing. The first part 310 of the first external electronic device 300 includes a connection jack 317 (e.g., an ear jack) configured to be electrically connected to a second external electronic device (e.g., earphone) . ≪ / RTI > 3B, the first external electronic device 300 may have a coupling groove 321 formed in one area of the second part 320, A button or a key-shaped input device 325 can be configured.

According to various embodiments, the first external electronic device 300 may include a first area 211 and a second area 212 of the electronic device 201 as shown in FIGS. 2A and 2B, May be mounted and connected to part 310 (e.g., first part 202b and second part 320 (e.g., second part 202a of Figure 2a) of Figure 2a. 310 insert the second area of the electronic device (e.g., the second area 212 of Figure 2A) in which the connector (e.g., connector 214 of Figure 2B) for the USB interface is located in the first coupling groove 311 The second part 320 may be connected to the first area of the electronic device where the terminal (e.g., the connection jack 213 of FIG. 2B) connected to the earphone is located in the second engagement groove 321 The electronic device 201 of FIG. 2A) may include a terminal for connecting the earphone located in the first area 211 (e.g., the first area 211 of the first area 211) The connection jack 213 of FIG. 2A) The first part 310 and the second part 320 may be wired or wirelessly connected to transmit and receive information (e.g., input information input by the input devices 315 or 325) can do.

According to various embodiments, when the housing of the first external electronic device 300 is comprised of one part, the first external electronic device 300 may include, for example, a first part 310 and a second part 310, And may include all or some of the components included in the memory 320. In this case, the first external electronic device 300 can insert the second area 212 of the electronic device 201 as shown in FIG. 2B into the coupling groove 311. At this time, the connector 313 configured in the coupling groove 311 can be electrically connected to the connector 214 of the electronic device 201 as shown in FIG. 2B. The first external electronic device 300 may insert a first area 211 of the electronic device 201 as shown in FIG. 2B into the coupling groove 311, (E.g., the connector 214 located in the second area of the electronic device (e.g., the second area 212 of Figure 2B).

Also, according to various embodiments, a connection jack 213 (e.g., an ear jack) and a connector 214 (e.g., a USB interface) may be connected to one side (e.g., the second region 212 of FIG. The first external electronic device 300 may be configured such that the side surfaces thereof are inserted and mounted.

The first external electronic device 300 may not include a speaker for outputting audio information for cost reduction and weight saving and may be connected to a connector (e. G., The electronic device 201 of Figs. 2A and 2B) , Converts the audio information, which is a digital audio signal received through the connector 214 of FIG. 2B, into an analog audio signal, and outputs the converted analog audio signal to the second external electronic device 330 connected to the connection jack 317 The connection jack 313 may be, for example, a 3.5-pie jack.

4 is a diagram showing an example of the configuration of an electronic device according to various embodiments of the present invention.

4, the electronic device 400 (which may be the same or similar to the electronic device 101 of FIG. 1 or the electronic device 201 of FIG. 2) may include a processor 410, a connector 420, And may include at least one of an audio module 430 connected to the speaker 431, a memory 440, an input device 450, or a display 460.

According to various embodiments of the present invention, the processor 410 (e.g., the same or similar to the processor 120 of FIG. 1) may execute information, programs, applications, or functions depending on the operation of the electronic device 400 And can display the processed information on the display 460 or control the audio module 430 to output audio information.

According to various embodiments of the present invention, the processor 410 may communicate with a first external electronic device (e. G., The electronic device 102 or 104 of FIG. 1, (The same or similar to the device 202 or the first external electronic device 300 of Figure 3) is connected to the first external electronic device 300 and receives status information from the first external electronic device, A state change of the device, a type of the device, or whether or not the second external electronic device (e.g., the earphone 330 of FIG. 3) is connected. Here, the status information may include information related to the ID information confirmed by the ID connection pin of the connector 420 or the information related to the first external electronic information received from the data connection pin (e.g., D + / D-) And may include information related to the state change of the apparatus. The ID information may be information indicating a resistance value confirmed by voltage or voltage applied to the ID connecting pin of the connector.

The processor 410 may determine whether the second external electronic device is connected to the first external electronic device according to the change in the identified resistance value. For example, the processor 410 may determine whether the second external device is connected to the second external electronic device based on the ID information (e.g., resistance value 121 k? Or GND) It is possible to confirm whether the external electronic device is connected. For example, when the resistance value of the resistance element connected to the ID connecting pin in the first external electronic device is changed, the voltage value applied to the ID connecting pin of the electronic device 400 may be changed by the changed resistance value. Accordingly, when the electronic device 400 receives a signal through the ID connection pin of the connector 420, it can recognize the current applied to the ID connection pin, the measured voltage value or the resistance value, Value of the first external electronic device.

According to various embodiments of the present invention, the processor 410 may execute the associated application when the first external electronic device is connected, and may execute the function of the executed application in accordance with the input information input from the first external electronic device Can be controlled.

According to various embodiments of the present invention, the processor 410 can confirm that the earphone can not be connected directly through the earphone terminal of the electronic device 400 as the first external electronic device is electrically connected. The processor 410 may be configured to transmit audio information related to an application executed based on status information received from the first external electronic device to an earphone or electronic device 400 connected to the first external electronic device to which the earphone is connected, To the speaker 431 of the speaker. According to various embodiments, the processor 410 determines whether a second external electronic device (e. G., Earphone) is electrically coupled to the first external electronic device based on the received status information . The processor 410 may control to output audio information associated with an application running on the electronic device 400 via the speaker if the second external electronic device is not connected to the first external electronic device. Also, when the second external electronic device is connected to the first external electronic device, the processor 410 transmits the audio information to the first external electronic device through the connector 420 so that the audio information is output through the second external electronic device. To be transmitted to the first external electronic device.

According to various embodiments of the present invention, the processor 410 may establish a first audio path if the second external electronic device is not connected to the first external electronic device, It is possible to control the speaker 431 of the speaker 400 to output audio information.

According to various embodiments of the present invention, the processor 410 may establish a second audio path when the second external electronic device (e.g., earphone) is connected to the first external electronic device, To the first external electronic device through the data connection pin (D + / D-) of the connector 420 through the first data bus (D + / D-). Wherein the transmitted audio information is transmitted via the second audio path to a digital audio signal and is converted by the first external electronic device into an analog audio signal to be transmitted to the second external electronic device Lt; / RTI >

According to various embodiments, the processor 410 may be a hardware module or a software module (e.g., an application program), including various sensors, a data measurement module, an input / output interface, an electronic device 400, (Function) or a software element (program) that includes at least one of a module or a communication module that manages the state or environment of the computer.

Also, according to various embodiments of the present invention, processor 410 of electronic device 400 may be at least a portion of a processor and may include, for example, one or more combinations of hardware, software, or firmware . In accordance with various embodiments, the processor 410 may omit at least some of the components, or may include connections to external electronic devices in addition to the components, execution of associated applications upon connection of external electronic devices, data transmission / Lt; RTI ID = 0.0 > and / or < / RTI >

Also, according to various embodiments of the present invention, at least a portion of the configuration of the processor 410 of the electronic device 400 includes at least one processor (not shown) comprising a central processing unit (CPU) / micro processing unit (MPU) And a memory (e.g., a register and / or a random access memory (RAM)) into which at least one memory loading data is loaded, and a portion of a bus for inputting / outputting at least one data to / from the processor and memory . In addition, the processor 410 may include a predetermined program routine or program data loaded into a memory from a predetermined recording medium to perform a function defined in the electronic device, Lt; / RTI >

According to various embodiments of the present invention, the connector 420 may electrically connect the electronic device 400 with the first external electronic device. The connector 420 may be a USB interface connector including a plurality of connection pins for serial data communication according to various USB types and may be electrically connected to a connector of the first external electronic device through a USB interface. Here, the plurality of connection pins may include an ID connection pin, a power connection pin (VBUS), a data connection pin (D + / D-), and a GND connection pin. In addition, .

According to various embodiments of the present invention, the connector 420 may be included in the communication unit (not shown) of the electronic device 400 or may be separately configured.

According to various embodiments of the present invention, the communication portion (e.g., communication interface 170 of FIG. 1) of the electronic device 400 may communicate with an external electronic device (e.g., (E. G., Electronic device 102 or 104 or server 106). According to various embodiments, the communication unit can transmit and receive data related to the operation being performed under the control of the processor 410 to and from the external electronic device. The communication unit may communicate with a network or through a device-to-device connection using a wireless communication or a wired communication through a communication interface. The wireless communication can be, for example, wireless fidelity, bluetooth, zigbee, z-wave, near field communication (NFC), global positioning system (GPS) ) Communication (e.g., LTE, LTE-A, CDMA, WCDMA, UMTS, WiBro or GSM). The wired communication may include, for example, a universal serial bus (USB), a high definition multimedia interface (HDMI), a recommended standard 232 (RS-232), a plain old telephone service (POTS), a universal asynchronous receiver transmitter (UART) (inter-integrated circuit), a serial peripheral interface (SPI), or a controller area network (CAN). In addition, the communication unit may include any other known or later-developed communication methods in addition to the communication methods described above.

According to various embodiments of the present invention, when at least one external electronic device (e.g., game pad) is coupled to one area of the housing of the electronic device 400 under the control of the processor 410, Recognize the engagement of the electronic device, obtain status information of the external electronic device, and transmit and receive data related to the executed application when the communication is connected.

According to various embodiments of the present invention, the audio module 430 (e.g., the input / output interface 150 of FIG. 1) of the electronic device 400 may output sound (audio information) An audio codec, a microphone (MIC), a receiver, an earphone output (EAR_L), or a speaker (431).

According to various embodiments, the audio module 430 of the electronic device 400 may determine that the second external electronic device is not connected to the first external electronic device based on the status information received by the processor 410 The digital audio information may be decoded by an audio codec to output the decoded audio information through the speaker 431. [

According to various embodiments of the present invention, the memory 440 of the electronic device 400 (e.g., the memory 130 of FIG. 1) includes programs necessary for functional operations according to various embodiments, Various data generated can be temporarily stored. The memory 440 may include a program area and a data area. The program area may store relevant information for driving the electronic device 400, such as an operating system (OS) that boots the electronic device 400. The data area may store data that is transmitted and / or received and generated data according to various embodiments. The memory 440 may be a flash memory, a hard disk, a memory of a multimedia card micro type (for example, SD or XD memory), a RAM (RAM) And at least one storage medium in a ROM (Read Only Memory). According to various embodiments, the memory 440 may store information for communication with external electronic devices and transmitted and / or received data.

According to various embodiments of the present invention, the input device 450 (for example, the input / output interface 150 of FIG. 1) of the electronic device 400 may include various information in the numeric and character information input from the user, Settings and the function control of the electronic device 400 to the processor 410. For example, In addition, the input device 450 may support a user input for executing a module or an application supporting a specific function. The input device 450 may include at least one of a key input means such as a keyboard or a keypad, a touch input means such as a touch sensor or a touch pad, a sound input means, a camera, or various sensors. You may. In addition, the input device 450 may include any type of input means that is currently under development or may be developed in the future. In addition, according to various embodiments of the present invention, the input device 450 may receive information input by the user through the touch panel or the camera of the display 460 from the user, .

According to various embodiments of the present invention, the input device 450 may communicate information related to the user's gesture received via the camera or various sensors to the processor 410. [ In addition, the input device 450 may pass an input signal to the processor 410 upon selection of at least one object (e.g., content) displayed on the screen.

Also, according to various embodiments of the present invention, the input device 450 may receive an input signal for performing a function from a user through a sound source input means, and may transmit the input signal to the processor 410. [

According to various embodiments of the present invention, the display 460 (e.g., a portion of the configuration or display 160 of the input / output interface 150 of FIG. 1) of the electronic device 400 is controlled by the processor 410 (E.g., at least one of text, images, or moving images).

According to various embodiments of the present invention, the display 460 can display input pads (e.g., buttons) that can input at least one of various characters, numbers, or symbols in the input window on the screen in various ways . In addition, the display 460 may display a service execution screen according to execution of various applications related to information transmission / reception. According to various embodiments, the display 460 can display information input from an external electronic device when a first external electronic device connected to the electronic device 400 is connected, And display related information indicating whether an external electronic device (e.g., earphone) is connected.

Also, according to various embodiments of the present invention, the display 460 of the electronic device 400 may correspond to the touch screen of the input device 450 when implemented in the form of a touch screen. When the display 460 is implemented together with the input device 450 in the form of a touch screen, the display 460 can display various information generated according to a user's touch operation.

Also, according to various embodiments, the display 460 of the electronic device 400 may include a liquid crystal display (LCD), a thin film transistor LCD (TFT-LCD), organic light emitting diodes (OLED) An active matrix organic LED (AMOLED), a flexible display, and a three-dimensional display (three-dimensional). Also, some of these displays may be of a transparent or light transmissive type so that they can be viewed through the outside. This can be configured as a transparent display including TOLED (Transparent OLED).

In addition, according to various embodiments of the present invention, the electronic device 400 may include another display (e.g., an extended display or a flexible display) mounted in addition to the display 450, an external And may further include a display unit of an electronic device (e.g., an external display device, a wearable device, or an external terminal device).

Further, according to various embodiments of the present invention, the electronic device 400 may further comprise means for outputting vibration or means for outputting an odor.

Thus, in various embodiments of the present invention, the major components of the electronic device 400 have been described through the electronic device 400 of FIG. However, in the various embodiments of the present invention, the components shown in FIG. 4 are not all essential components, and the electronic device 400 may be implemented by more components than the illustrated components. The electronic device 400 may be implemented by fewer components. In addition, the position of the main components of the electronic device 400 described above with reference to FIG. 4 may be changed according to various embodiments.

5 is a diagram showing an example of the configuration of an external electronic device according to various embodiments of the present invention.

Referring to FIG. 5, according to various embodiments of the present invention, an external electronic device (hereinafter referred to as a first external electronic device) (e.g., electronic device 102 or 104 of FIG. 1, 500 similar to or identical to the first external electronic device 202 of Figure 1 or the first external electronic device 300 of Figure 3) may include a processor 510, a connector 520, an audio module 530, a connection jack 540, Device 550, as shown in FIG.

In accordance with various embodiments of the present invention, the processor 510 may perform the overall control operation of the first external electronic device 500 and may be operable to receive information, programs, applications, or other information according to the operation of the first external electronic device 500 The information according to the execution of the function can be processed. The processor 510 also communicates the processed information to a connector 520 that performs serial communications to communicate with a connected electronic device (e.g., an electronic device (e.g., electronic device 101 of FIG. 1, electronic device 201 of FIG. 2 ) Or the electronic device 400 of FIG. 4).

Also, in accordance with various embodiments of the present invention, the processor 510 of the first external electronic device 500 may comprise one or a combination of, for example, hardware, software or firmware. According to various embodiments, the processor 510 may further include other components for omitting at least some of the components or performing image processing operations in addition to the components.

Also, according to various embodiments of the present invention, at least a portion of the configuration of processor 510 includes at least one processor that includes a central processing unit (CPU) / microprocessor (MPU) and at least one memory loading data (E.g., a register and / or a random access memory (RAM)) and a portion of a bus for inputting / outputting at least one data to / from the processor and memory. In addition, the processor 510 may include predetermined program routines or program data that are loaded into a memory from a predetermined recording medium to perform functions defined in the electronic device and are processed by the processor, Lt; / RTI >

According to various embodiments, the processor 510 may be coupled to a connector 540 and a connector 520, such as a resistor connected between the connector 540 and the connector 520, depending on whether a second external electronic device (e.g., earphone) 501 is connected to the connection jack 540. [ It can be controlled to change the resistance value of the device. The processor 510 receives the information indicating that the earphone 501 is connected from the connection jack 540 and outputs the audio information received from the electronic device to the earphone 501 To the audio module 530 for output.

According to various embodiments of the present invention, the connector 520 may electrically connect the first external electronic device to the electronic device. The connector 520 may be a USB interface including a plurality of connection pins for serial data communication according to various USB types, and may be electrically connected to a connector of an electronic device through a USB interface. Here, the plurality of connection pins may include an ID connection pin, a power connection pin (VBUS), a data connection pin (D + / D-), and a GND connection pin. In addition, . According to various embodiments of the present invention, the connector 520 may be included in the communication unit (not shown) of the external electronic device 500 or may be separately configured.

According to various embodiments of the present invention, the audio module 530 may output audio information and may include at least one of a digital-to-analog converter, a microphone (MIC), a receiver or an earphone output (EAR_L) As shown in FIG.

According to various embodiments, the audio module 530 of the electronic device includes a second external electronic device (e. G., Earphone) 501 coupled to the connection jack 540 for receiving audio information transmitted from the electronic device, As shown in Fig. According to various embodiments, the audio module 530 may include a resistance variable module that includes a resistance element or a resistance variable element whose resistance value may be changed by the processor 510. [

The specific configuration of the above-described electronic device and the external electronic device connected to the electronic device will be described with reference to the drawings. Here, an external electronic device is an apparatus connected to an electronic device, and will be referred to as a first external electronic device for convenience of explanation.

6 is a diagram showing an example of an operation procedure of an electronic device connected to an external electronic device according to various embodiments of the present invention.

6, the electronic device 601 (e.g., the electronic device 101 of FIG. 1, the electronic device 201 of FIG. 2, or the electronic device 400 of FIG. 4) 1 is connected to an external electronic device 602 (e.g., the same as or similar to the first external electronic device 202 of FIG. 2, the external electronic device 300 of FIG. 3 or the external electronic device 500 of FIG. 5) An audio recognition module 620, a processor 630 or an audio driver 640 and an audio module including a speaker 641, for example.

According to various embodiments of the present invention, the ID recognition module 620 (e.g., micro usb interface IC) may include a connector 610, an ID recognition driver (e.g., micro usb interface IC) driver, or a CCIC a configuration channel IC driver 632 and a first USB driver 633 and a connector 650 of the first external electronic device 602 is connected to the connector 610, (E.g., data received via the USB_ID or CC pin) received via the connection pin or the CC pin). The ID recognition module 620 can transmit the recognized status information to the ID recognition driver 632. When the serial communication is connected, the ID recognition module 620 transmits the status information to the USB control module 661 of the first external electronic device 602 through the data connection pin (E.g., input information or audio information) related to the executed application. Here, the status information may include at least one of the type of the external electronic device 602, the information related to the status change of the first external electronic device 602, or the ID information. Here, the ID information may be information that can be confirmed through an ID connection pin (e.g., a USB ID pin), and may indicate information on a voltage value or a resistance value measured by a current applied to the ID connection pin. The resistance value may be determined based on whether or not the first external electronic device 602 is connected to a second external electronic device (hereinafter referred to as an earphone 603, for example) Lt; / RTI > processors. Accordingly, the resistance value may indicate a change in the state of the first external electronic device 602. According to various embodiments, the ID recognition module 620 can recognize the ID information as state information via the ID connection pin (e.g., USB_ID pin) of the connector 610, and when the serial communication connection is established, The type of the first external electronic device 602 included in the data received through the first external electronic device 602 (D + / D-) or the information related to the state change of the first external electronic device 602 can be recognized as the status information.

According to various embodiments, the ID recognition module 620 may recognize state information using a variable resistance ID scheme or a digital ID scheme. In the variable resistance ID method, the ID recognition module 620 can recognize a change in the state of the first external electronic device by recognizing a variable resistance value using the current or voltage value identified at the ID connection pin. Here, the ID connection pin may correspond to an ID connection pin (e.g., USB_ID connection pin) of a USB A type or B type connector, for example. Also, in the digital ID method, the ID recognition module 620 performs serial data communication through the data connection pin (D + / D-) to receive data from the first external device 602 based on the data received from the first external device 602 The type and / or state change of the electronic device 602 can be recognized as the state information. For example, the digital ID scheme may be applied to a USB Type C connector, the ID connection pin may correspond to a CC connection pin of a USB Type C connector, and the ID recognition module 620 may correspond to a configuration channel integrated circuit ). ≪ / RTI >

According to various embodiments, the ID recognition module 620 includes a switch module that connects or disconnects signal lines between the connector 610 and an internal interface (e.g., a USB module, an HDML module, or an audio module) of the electronic device .

According to various embodiments, the ID recognition module 620 may be implemented as an independent chip, as shown in FIG. 6, but may be included in a part of the processor 630. FIG.

According to various embodiments, the ID recognition module 620 may obtain status information based on data by serial communication via a data connection pin, and may determine the details of the first external electronic device 602 included in the status information Information related to the type and state change can be recognized. The ID recognition module 620 can transmit the acquired state information to the ID recognition driver 632 of the processor 630. [

According to an embodiment of the present invention, the processor 630 (e.g., the processor 410 of FIG. 4) may comprise a hardware module or a software module. According to various embodiments, the processor 630 may include a USB control module 631 for controlling the functionality of an electronic device that acts as a USB host in hardware.

According to various embodiments of the present invention, the processor 630 may include a predetermined program routine or program data that is loaded into a memory and processed into a memory from a predetermined recording medium to perform a function defined in the electronic device, . ≪ / RTI > According to various embodiments, the processor 630 may include an ID recognition driver (e.g., MUIC driver) 632, a first USB driver (hereinafter, a USB audio class driver, for example) 633), a second USB driver (hereinafter, referred to as a USB HID class driver, for example) 634, or a framework 635 connected to each driver. Such software-contained components may be included in the recording medium. In accordance with various embodiments of the present invention, the processor 630 may include other software-like components for controlling the output of audio information associated with an application running in addition to the software components as described above. In accordance with various embodiments, various types of software components may be included to control the functionality of the application being executed upon connection with various types of external electronic devices. According to various embodiments of the present invention, the USB control module 631 is a module for controlling the function or serial communication according to the USB interface as the electronic device functions as a host, and may be configured in hardware . According to various embodiments, the USB control module 631 may be replaced with another control module depending on the type of interface for connection of the external electronic device. In addition, the processor 630 may be further configured to further include another control module depending on the type of the interface for connecting the external electronic device.

The USB control module 631 may be functionally connected to the ID recognition module 620, the USB audio class driver 633, and the USB HID class driver 634. [ The USB control module 631 can control operations related to the connection of the first external electronic device 602 and can control serial communication with the first external electronic device 602. [ The USB control module 631 may be enabled to be operated by the ID recognition module 620 as an external electronic device such as an external USB device 602 is connected to the connector 610 have. According to various embodiments, the USB control module 631 may receive data (e.g., input data) received via the data connection pin of the connector 610 when serial communication is established with the first external electronic device 602 ) May be received from the ID recognition module 620 and transferred to the USB HID class driver 634 of the electronic device 601. According to various embodiments, the USB control module 631 is coupled to the first external electronic device 602 to determine the status of the first external electronic device 602 based on the status information by the ID recognition driver 632 (For example, a state in which the earphone is connected), audio information is received from the USB audio class driver 633 via the USB audio output path set in the framework 635, and the transmitted audio information is transmitted to the connector 610 to the USB control module 661 of the external electronic device 602 via the data connection pin. The USB control module 661 of the first external electronic device 602 transmits the received audio information to the second USB driver (e.g., a USB audio gadget driver) 663 of the first external electronic device 602, And output audio information to the earphone 603, which is another external electronic device connected to the connection jack 680. [

According to various embodiments of the present invention, the ID aware driver (e.g., MUIC driver) 632 may be a program that acts as a part of the kernel for controlling the hardware configured ID aware module 620. The ID recognition driver 632 is connected to the framework 635 and can check the type or status change of the external electronic device 602 connected based on the status information (e.g., USB_ID or received data) Or may transmit information according to the confirmation result to the framework 635. [ The ID recognition driver 632 can confirm that the USB audio node is newly generated by checking the state change of the external electronic device 602 based on the transmitted state information.

According to various embodiments of the present invention, the ID recognition driver 632 may determine whether the earphone 603 is connected to the external electronic device 602 based on the status information. According to various embodiments, the ID recognition driver 632 may determine whether the received state information (e.g., ID information) satisfies the second specified condition or does not satisfy the first specified condition, The ID recognition driver 632 can recognize that the earphone 603 is connected to the external electronic device 602 based on the state information (e.g., ID information) transmitted from the ID recognition module 620. [ According to various embodiments, when the state information indicates a resistance value recognized based on the ID information of the connector 610, the ID recognition driver 632 compares the resistance value with a preset resistance value, , It can be confirmed that the earphone 603 is connected to the external electronic device 602 if the resistance value does not correspond to the set resistance value (e.g., smaller than the set resistance value).

According to various embodiments, the ID recognition driver 632 may determine whether the received state information satisfies the first specified condition or does not satisfy the second specified condition, and, depending on the determination result, (E.g., 12 k?), It can be recognized that the earphone 604 is not connected to the first external electronic device 602. According to various embodiments, when the state information indicates a recognized resistance value (e.g., 121 k?) Based on the ID information confirmed by the ID connection pin of the connector 610, the ID recognition driver 632 sets the resistance value It is possible to confirm that the earphone 603 is not connected to the external electronic device 602 when the resistance value corresponds to the set resistance value as a result of the comparison.

According to various embodiments of the present invention, a first USB driver (hereinafter referred to as USB audio class driver) 633 is connected to USB control module 631 and framework 635, The USB control module 631 may be a program that operates as a part of the kernel for controlling the USB control module 631. The USB audio class driver 633 determines that the state of the external electronic device (for example, the state where the earphone is connected) is determined based on the state information by the ID recognition driver 632 as the external electronic device 602 is connected (For example, ID information indicating GND) via the USB audio output path set by the framework 635. [0157] The USB audio class driver 633 can transmit audio information related to the executed application to the USB control module 631 according to the status information transmitted from the framework 635. [ The USB control module 631 can transmit audio information to the USB control module 661 of the external electronic device 602 via the data connection pin D + / D- of the connector 610 as described above .

According to various embodiments of the present invention, a second USB driver (hereinafter referred to as a USB HID class driver, for example) 634 is connected to USB control module 631 and framework 635, The USB control module 631 may be a program that operates as a part of the kernel for controlling the USB control module 631. According to various embodiments, the USB HID class driver 634 may provide data (e.g., input data) received via the data connection pin of the connector 610 when serial communication is established with the first external electronic device 602, data) from the ID recognition module 620 and transmits the input information or the control information according to the confirmation result to the framework 635 to provide the program or frame related to the confirmed data . In accordance with various embodiments, the USB HID class driver 634 may include a USB control module 631 to transmit information related to the executed application to an external electronic device when serial communication is established with the first external electronic device 602, . According to various embodiments, the USB HID class driver 634 may control various types of HID class devices and may be configured to provide a program or frame associated with data received from the various types of HID class devices, ) ≪ / RTI >

According to various embodiments of the present invention, the framework 635 (e.g., the same or similar to the API 143 of Figure 1) includes device drivers, i.e., the ID recognition driver 632, Driver 633 or the USB HID class driver 634 to load and execute a program for providing or requesting a frame to be requested. The framework 635 can receive a result of determining the state information and the state of the external electronic device 602 from the ID recognition driver 632 and set a path for outputting the audio information, You can broadcast an intent that is known by the component. Here, the intent may serve to transfer information for performing an operation between components of an application.

According to various embodiments, the framework 635 may be configured to change the audio output path to the USB audio output path when it is determined that the earphone 603 is connected to the external electronic device 602. [ In addition, according to various embodiments, when the framework 635 determines that the earphone 603 is not connected to the external electronic device 602, the framework 635 detects the corresponding intent information and outputs the audio output path to the USB audio output path The audio information can be transmitted to the audio driver 640 connected to output the audio information through the speaker 641 included in the electronic device 601. [

According to various embodiments, when the status information identified by the ID recognition driver 632 indicates, for example, ground (GND), the framework 635 may be configured to connect the earphone 603 to the external electronic device 602 The USB audio output path to set the USB audio output path to output the audio information to the earphone 603 via the external electronic device 602 via the connector 610, 633 can execute a command or a program for controlling the output of audio information.

According to various embodiments, if the state information recognized by the ID recognition driver 632 indicates a resistance value (e.g., 121 k?), The framework 635 may cause the external electronic device 602 to receive an earphone The audio driver 640 controls the audio output path to output the audio information to the speaker 641 without setting the USB audio output path, A command or a program for executing the program may be executed.

According to various embodiments of the present invention, the audio driver 640 is coupled to the speaker 641 and the framework 635 and includes a program that operates as part of the kernel for controlling a hardware configured speaker 641 Lt; / RTI > According to various embodiments, the audio driver 640 may include an audio codec (not shown) for signal processing of audio information. Although the audio driver 640 is described as being included in the audio module, the audio driver 640 may be included in the processor 630.

6, an external electronic device 602 (e.g., electronic device 102 or 103 of FIG. 1, electronic device 202 of FIG. 2, (Similar or similar to the electronic device 500 of FIG. 5) includes a connector 650 for connecting to the electronic device 601, a USB control module 661, a first USB driver (hereinafter referred to as a USB HID gadget driver, A processor 660, a digital-to-analog converter (DAC) module 670, and a second USB driver 662, An audio module or input device 690 including a connection jack 680 or a resistance variable module 681. [ According to various embodiments, the housing of the external electronic device 602 may be configured to be separated into at least two parts, in which case the USB HID gadget driver 663 is coupled to the second input device 691 of the second part It can be wired or wirelessly connected. According to various embodiments, the external electronic device 602 may serve as a USB device.

The USB control module 661 may be connected to a data connection pin (e.g., D + / D-) of the connector 650 to receive data related to an application executed in the electronic device 601. [ In accordance with various embodiments, the USB control module 661 may receive the audio information upon execution of the application, and may forward the received audio information to the USB audio gadget driver 662. Also, according to various embodiments, the USB control module 661 may send data (e.g., input information) received from the internal input device 690, the external input device 691, or the external HID device to the USB HD gadget driver 663 And transmits the data to the electronic device 601 via the data connection pin of the connector 650. [

The USB audio gadget driver 662 can be connected to the USB control module 661 and the DAC module 670 of the audio module and operates as a part of the kernel for controlling the USB control module 661 configured in hardware Lt; / RTI > According to various embodiments, the USB audio gadget driver 662 receives the audio information transmitted from the electronic device 601 through the USB control module 661, and transmits the transmitted audio information to the DAC module 670 .

The USB HD gadget driver 663 may be connected to the USB control module 661 and at least one input device 690 or 691 as an HID device and may be connected to the USB control module 661 It can be a program that runs as part of the kernel. The USB HD gadget driver 663 is connected to the USB control module 612 to transmit data (e.g., input information) received from an input device 690 or 691 or an external HID device to the electronic device 601 via the connector 650. [ (661). The USB HD gadget driver 663 transmits information (send / receive data) related to an application executed in the electronic device 601 via the serial communication with the electronic device 601 to the data connection The USB control module 661 can be controlled to transmit and receive data via the pin, and the data received through the serial communication can be confirmed and transmitted to the HID device associated with the confirmed data.

The DAC module 670 converts the audio information, which is a digital signal, into an analog signal, and converts the converted analog audio information to output audio information converted into an earphone 603, which is an external electronic device connected to the connection jack 680, (680).

The connection jack 680 may be connected to the DAC module 670 and a resistance variable module 681 including a resistance variable element. According to various embodiments, when the connection jack 680 is connected to the earphone 603, it senses the connection and can pass information to the processor 660 that the earphone 603 is connected, and the DAC module 670, < / RTI > Accordingly, the processor 660 recognizes that the earphone is connected, and can transmit a control signal (e.g., GND) for changing the resistance value to the resistance variable module 681. [

In addition, according to various implementations, if the connection jack 680 is not connected to the earphone 603, information indicating that the earphone 603 is not connected to the processor 660 may be transmitted. Accordingly, the processor 660 recognizes that the earphone is not connected, and can transmit a control signal (e.g., 121 k?) For changing the resistance value to the resistance variable module 681. [

The input device 690 may serve as an interface for inputting input information related to the executed application from a user, and may transmit the input information to the USB HID gadget driver 663.

(E.g., electronic device 101 of FIG. 1, electronic device 201 of FIG. 2, electronic device 400 of FIG. 4, or electronic device 601 of FIG. 6) according to any of the various embodiments of the present invention ) Similar or identical) may include a processor, a connector for communicating serial data with a speaker, a first external electronic device functionally coupled to the electronic device, and a processor. Wherein the processor receives via the connector state information indicating whether the first external electronic device is electrically coupled to a second external electronic device, Outputs audio associated with an application executed in the electronic device via the speaker, and when the status information satisfies a second specified condition, the sound through the second external electronic device And to transmit the sound to the first external electronic device through the connector so as to be output.

According to various embodiments of the present invention, the processor may be configured to receive an input for the application from the first external electronic device in association with the output of the sound through the connector.

According to various embodiments of the present invention, the first external electronic device includes a USB device class, and the status information may be a data type corresponding to the USB device class.

According to various embodiments of the present invention, the processor may change the audio output path through which the sound is output when the status information changes while the sound is being output.

According to various embodiments of the present invention, the first designated condition may comprise a condition indicating that the second external electronic device is connected to the first external electronic device.

According to various embodiments of the present invention, the second specified condition may include a condition indicating that the second external electronic device is not connected to the first external electronic device.

According to various embodiments of the present invention, the processor may change the audio output path for outputting the sound using the resistance value included in the status information and based on the ID information of the ID connection pin of the connector have.

According to various embodiments of the present invention, the processor may set a first audio output path for outputting the sound to the speaker if the second external electronic device is not connected to the first external electronic device.

According to various embodiments of the present invention, the processor is further configured to transmit the audio information to the first external electronic device via the connector when the second external electronic device is connected to the first external electronic device, And a second audio output path for outputting the sound to the external electronic device.

According to various embodiments of the present invention, the status information may include ID information of the ID connection pin of the connector or information related to a change in status of the first external electronic device received via the data connection pin. Here, the ID information may be information related to a resistance value for confirming a state change of the first external electronic device, which is information confirmed by the ID connection pin of the connector. According to various embodiments, the processor may determine whether the second external electronic device is connected to the first external electronic device according to the change in the resistance value.

(E.g., external electronic device 202 of FIG. 2, external electronic device 300 of FIG. 3, external electronic device 500 of FIG. 5 or FIG. 6) according to any of the various embodiments of the present invention 1 external electronic device 602) includes a connector for communicating serial data with a first external electronic device (e.g., electronic device 601 of FIG. 6) operatively connected to the electronic device, A connection jack for connection to the device, and a processor. Here, the processor determines whether or not the second external electronic device (e. G., Earphone) is electrically coupled to the connection jack through the connector, and determines whether the second external electronic device is connected To the first external electronic device, and when the second external electronic device is connected, executing from the first external electronic device via the connector in accordance with the status information, in the first external electronic device Wherein the controller is further configured to receive audio associated with the application and control the output of the received sound to the second external device if the second external device is not connected, And may be set to output the sound through a speaker of the apparatus.

According to various embodiments of the present invention, the electronic device further comprises an input for receiving an input to the application in association with an output of the sound, and an audio device for converting audio information received from the first external device to an analog signal And may further include a digital-to-analog converter.

According to various embodiments of the present invention, it is possible to control to change the resistance value of the resistance element connected to the ID connection pin of the connector depending on whether the second external electronic device is connected or not.

An operation procedure for controlling the output of audio information in the above-described electronic apparatus will be described in detail with reference to the accompanying drawings.

7 is a diagram showing an example of operation procedures of an electronic device according to various embodiments of the present invention.

According to various embodiments of the present invention, in an operation 701, an electronic device (e.g., electronic device 101 of FIG. 1, electronic device 210 of FIG. 2, or electronic device 601 of FIG. 6) Processors 120 and 410) can verify that an external electronic device (hereinafter referred to as a first external electronic device) is electrically connected to the connector.

In operation 703, when the first external electronic device is connected, the electronic device (e.g., processor 120, 410) recognizes that the first external electronic device is in the engaged state, Status information can be received. Further, the electronic device may perform a setting operation for serial communication with the first external electronic device, and may execute an associated application according to the connection of the first external electronic device. Here, the status information may be information related to a status change of the first external electronic device, and may be information indicating whether or not a second external electronic device (e.g., earphone) is electrically connected to the first external electronic device .

In operation 705, the electronic device (e.g., processor 120, 410) may verify that the received status information satisfies the first specified condition. Here, the first designated condition may be a condition for determining that the earphone is not connected to the first external electronic device.

If the state information received by the electronic device (e.g., processor 120, 410) as a result of the checking in step 705 satisfies the first specified condition, then in step 707, the electronic device ) Can determine that the audio information can not be output through the second external electronic device (e.g., earphone) connected to the first external electronic device, and output the audio information through the internal speaker. Here, the electronic device may change the current audio output path to a first audio output path so as to output audio information to the speaker.

If it is determined in step 705 that the status information received by the electronic device (e.g., the processor 120, 410) does not satisfy the first specified condition, or if the status information received by the electronic device satisfies the second specified condition The processor 120, 410) may transmit audio information to the first external electronic device to output audio information via a second external electronic device connected to the first external electronic device have. Here, the second designated condition may include a condition for determining that the earphone is not connected to the first external electronic device. In addition, the second specified condition may include a condition for the case that the first specified condition is not satisfied. According to various embodiments, the electronic device may include a second audio output path (e.g., a USB audio output path) for transmitting audio information to the first external electronic device via a connector performing USB serial communication, for example And may transmit the audio information to the first external electronic device through a set USB audio output path. Accordingly, the first external electronic device receiving the audio information can control to output the received audio information to the connected second external electronic device. For example, the audio information may be data of a USB audio class.

Also, in accordance with various embodiments of the present invention, the electronic device (e.g., processor 120, 410) may be coupled to an internal speaker or to an earphone connected to a first external electronic device, If the state is changed, the audio output path can be reset again to output the audio information through the set audio output path.

8 is a diagram showing an example of an operation procedure of an external electronic device according to various embodiments of the present invention.

Referring to FIG. 8, in accordance with various embodiments of the present invention, in operation 801, a first external electronic device (e.g., external electronic device 202 of FIG. 2, external electronic device 500 of FIG. The electronic device 602 of FIG. 6 (e.g., processor 510) may include an electronic device (the electronic device 201 of FIG. 2, the electronic device 400 of FIG. 4, Device 601) is fastened. Here, the first external electronic device may serve as a USB device (USB class).

In operation 803, the first external electronic device (e.g., processor 510) may send status information to the electronic device that can identify a state change (e.g., a GND or 12kΩ resistance value). Here, the first external electronic device may perform a setting operation related to serial communication for electrically connecting to the electronic device, and then transmit and receive data through a serial communication connection with the electronic device. According to various embodiments, the first external electronic device transmits information related to the state change or kind of the first external electronic device through the data connection pin of the connector or the ID information of the ID connection pin of the connector according to the USB interface type, Can be transmitted as information.

In operation 805, the first external electronic device (e.g., processor 510) may verify that a second external electronic device (e.g., earphone) is connected to a connection jack for connection to external devices.

In operation 805, if it is determined that the first external electronic device is connected to a second external electronic device in the connection jack, then in operation 807, the first external electronic device (e.g., processor 510) Audio information relating to the application to be executed can be received from the electronic device through the connector. Here, the electronic device can check whether the received status information satisfies a first specified condition, and if the received status information satisfies the first specified condition, it can be confirmed that the earphone is connected to the first external electronic device have. Accordingly, the electronic device can transmit the audio information to the first external electronic device via the newly set second audio output path (e.g. USB audio output path). Accordingly, the first external electronic device can receive the audio information through the USB audio output path, and output the received audio information through the connected second external electronic device (e.g., earphone). At this time, the first external electronic device (e.g., the processor 510) may convert the audio information received from the electronic device into an analog signal, and then output the changed audio information through the connected earphone.

If it is determined in step 805 that the earphone is not connected to the first external electronic device, the first external electronic device performs the operation 803 again to continue the status information indicating the state change of the first external electronic device And transmitted to the electronic device. Accordingly, the electronic device determines whether the received status information satisfies a first specified condition, and if the received status information satisfies a first specified condition, the second external electronic device is not connected to the first external device . Accordingly, the electronic device can output the audio information to the speaker through the newly set first audio output path (e.g., a path output to the speaker).

A method for controlling the output of audio information in an electronic device according to any one of the various embodiments of the present invention includes the steps of communicating serial data with a functionally connected first external electronic device, Wherein the first external electronic device receives status information indicating whether the first external electronic device is electrically coupled to the second external electronic device through the connector for the second external electronic device, Outputting an audio associated with an application executed in the electronic device through the speaker, and outputting the audio through the second external electronic device when the status information satisfies a second specified condition, And transmit sound to the first external electronic device via the connector.

According to various embodiments of the present invention, the method may receive an input for the application from the first external electronic device via the connector in association with an output of the sound.

According to various embodiments of the present invention, the first external electronic device includes a USB device class, and the status information may be a data type corresponding to the USB device class.

According to various embodiments of the present invention, the method may be configured to change the audio output path through which the sound is output when the status information changes while outputting the sound.

According to various embodiments of the present invention, the first designated condition may comprise a condition indicating that the second external electronic device is connected to the first external electronic device.

According to various embodiments of the present invention, the second specified condition may include a condition indicating that the second external electronic device is not connected to the first external electronic device.

According to various embodiments of the present invention, the method may include changing the audio output path for outputting the sound using the resistance value included in the status information and based on the ID information of the ID connection pin of the connector have.

According to various embodiments of the present invention, the method may set a first audio output path for outputting the sound to the speaker if the second external electronic device is not connected to the first external electronic device.

According to various embodiments of the present invention, the processor is further configured to transmit the audio information to the first external electronic device via the connector when the second external electronic device is connected to the first external electronic device, And a second audio output path for outputting the sound to the external electronic device.

According to various embodiments of the present invention, the status information may include ID information of the ID connection pin of the connector or information related to a change in status of the first external electronic device received via the data connection pin. Here, the ID information may be information related to a resistance value for confirming a state change of the first external electronic device, which is information confirmed by the ID connection pin of the connector. The processor may determine whether the second external electronic device is connected to the first external electronic device in accordance with the change in the resistance value.

A method for controlling the output of audio information in an electronic device (in the first external electronic device 602 of FIG. 6) according to any of the various embodiments of the present invention includes the steps of: And electrically connected to the second external electronic device (e.g., a phone) through a connector for communicating serial data with the first external electronic device, coupled with the second external electronic device, and transmits status information indicating whether the second external electronic device is connected to the first external electronic device, and when the second external electronic device is connected, Receiving an audio from an electronic device associated with an application running on the first external electronic device through the connector, The second group if the output to an external electronic device, said second external electronic device is not connected, it is possible to control to output the sound through the speaker of the first external electronic device based on the status information.

According to various embodiments of the present invention, the electronic device may receive an input for the application via an input device in association with an output of the sound, and may transmit the input information to the electronic device.

According to various embodiments of the present invention, the first external electronic device includes a USB device class, and the status information may be a data type corresponding to the USB device class.

According to various embodiments of the present invention, the method may change a resistance value included in the status information and applied to the ID connecting pin of the connector, depending on whether the second external electronic device is connected or not.

9 is a block diagram of an electronic device 901 according to various embodiments. The electronic device 901 may include all or part of the electronic device 101 shown in Fig. 1, for example. Electronic device 901 includes one or more processors (e.g., AP) 910, a communication module 920, a subscriber identity module 924, a memory 930, a sensor module 240, an input device 950, a display An interface 970, an audio module 980, a camera module 991, a power management module 995, a battery 996, an indicator 997, and a motor 998. The processor 910 may control a plurality of hardware or software components connected to the processor 910, for example, by driving an operating system or an application program, and may perform various data processing and operations. The processor 910 may be implemented with, for example, a system on chip (SoC). According to one embodiment, the processor 910 may further include a graphics processing unit (GPU) and / or an image signal processor. Processor 910 may include at least a portion (e.g., cellular module 921) of the components shown in FIG. Processor 910 may load instructions and / or data received from at least one of the other components (e.g., non-volatile memory) into volatile memory) and store the resulting data in non-volatile memory.

May have the same or similar configuration as communication module 920 (e.g., communication interface 170). The communication module 920 may include, for example, a cellular module 921, a WiFi module 923, a Bluetooth module 925, a GNSS module 927, an NFC module 928 and an RF module 929 have. The cellular module 921 can provide voice calls, video calls, text services, or Internet services, for example, over a communication network. According to one embodiment, the cellular module 921 may utilize a subscriber identity module (e.g., a SIM card) 924 to perform the identification and authentication of the electronic device 901 within the communication network. According to one embodiment, the cellular module 921 may perform at least some of the functions that the processor 910 may provide. According to one embodiment, the cellular module 921 may include a communications processor (CP). At least some (e.g., two or more) of the cellular module 921, the WiFi module 923, the Bluetooth module 925, the GNSS module 927, or the NFC module 928, according to some embodiments, (IC) or an IC package. The RF module 929 can, for example, send and receive communication signals (e.g., RF signals). RF module 929 may include, for example, a transceiver, a power amplifier module (PAM), a frequency filter, a low noise amplifier (LNA), or an antenna. According to another embodiment, at least one of the cellular module 921, the WiFi module 923, the Bluetooth module 925, the GNSS module 927, or the NFC module 928 transmits and receives an RF signal through a separate RF module . The subscriber identification module 924 may include, for example, a card or an embedded SIM containing a subscriber identity module, and may include unique identification information (e.g., ICCID) or subscriber information (e.g., IMSI (international mobile subscriber identity).

The memory 930 (e.g., memory 130) may include, for example, an internal memory 932 or an external memory 934. Volatile memory (e.g., a DRAM, an SRAM, or a SDRAM), a non-volatile memory (e.g., an OTPROM, a PROM, an EPROM, an EEPROM, a mask ROM, a flash ROM , A flash memory, a hard drive, or a solid state drive (SSD). The external memory 934 may be a flash drive, for example, a compact flash (CF) ), Micro-SD, Mini-SD, extreme digital (xD), multi-media card (MMC) or memory stick, etc. External memory 934 may be, Or may be physically connected.

The sensor module 940 may, for example, measure the physical quantity or sense the operating state of the electronic device 901 and convert the measured or sensed information into electrical signals. The sensor module 940 includes a gesture sensor 940A, a gyro sensor 940B, an air pressure sensor 940C, a magnetic sensor 940D, an acceleration sensor 940E, a grip sensor 940F, 940G, a color sensor 940H (e.g. an RGB (red, green, blue) sensor), a biosensor 940I, a temperature / humidity sensor 940J, an illuminance sensor 940K, Sensor 940M. ≪ / RTI > Additionally or alternatively, the sensor module 940 can be, for example, an e-nose sensor, an electromyograph (EMG) sensor, an electroencephalograph (EEG) sensor, an electrocardiogram An infrared (IR) sensor, an iris sensor, and / or a fingerprint sensor. The sensor module 940 may further include a control circuit for controlling at least one or more sensors belonging to the sensor module 940. In some embodiments, the electronic device 901 further includes a processor configured to control the sensor module 940, either as part of the processor 910 or separately, so that while the processor 910 is in a sleep state, The sensor module 940 can be controlled.

The input device 950 may include, for example, a touch panel 952, a (digital) pen sensor 954, a key 956, or an ultrasonic input device 958. As the touch panel 952, for example, at least one of an electrostatic type, a pressure sensitive type, an infrared type, and an ultrasonic type can be used. In addition, the touch panel 952 may further include a control circuit. The touch panel 952 may further include a tactile layer to provide a tactile response to the user. (Digital) pen sensor 954 may be part of, for example, a touch panel or may include a separate recognition sheet. Key 956 may include, for example, a physical button, an optical key, or a keypad. The ultrasonic input device 958 can sense the ultrasonic wave generated by the input tool through the microphone (e.g., the microphone 988) and confirm the data corresponding to the ultrasonic wave detected.

Display 960 (e.g., display 160) may include panel 962, hologram device 964, projector 966, and / or control circuitry for controlling them. The panel 962 can be implemented, for example, flexibly, transparently, or wearably. The panel 962 may be composed of a touch panel 952 and one or more modules. According to one embodiment, the panel 962 can include a pressure sensor (or force sensor) that can measure the intensity of the pressure on the user's touch. The pressure sensor may be integrated with the touch panel 952 or may be implemented by one or more sensors separate from the touch panel 952. The hologram device 964 can display stereoscopic images in the air using the interference of light. The projector 966 can display an image by projecting light onto a screen. The screen may be located, for example, inside or outside the electronic device 901. The interface 970 may include, for example, an HDMI 972, a USB 974, an optical interface 976, or a D-sub (D-subminiature) The interface 970 may be included, for example, in the communication interface 170 shown in FIG. Additionally or alternatively, the interface 970 may include, for example, a mobile high-definition link (MHL) interface, an SD card / MMC (multi-media card) interface, or an IrDA have.

The audio module 980 can, for example, bidirectionally convert sound and electrical signals. At least some components of the audio module 980 may be included, for example, in the input / output interface 145 shown in FIG. The audio module 980 may process sound information that is input or output through, for example, a speaker 982, a receiver 984, an earphone 986, a microphone 988, or the like. The camera module 991 is, for example, a device capable of capturing still images and moving images, and according to one embodiment, one or more image sensors (e.g., a front sensor or a rear sensor), a lens, an image signal processor (ISP) , Or flash (e.g., an LED or xenon lamp, etc.). The power management module 995 can manage the power of the electronic device 901, for example. According to one embodiment, the power management module 995 may include a power management integrated circuit (PMIC), a charging IC, or a battery or fuel gauge. The PMIC may have a wired and / or wireless charging scheme. The wireless charging scheme may include, for example, a magnetic resonance scheme, a magnetic induction scheme, or an electromagnetic wave scheme, and may further include an additional circuit for wireless charging, for example, a coil loop, a resonant circuit, have. The battery gauge can measure, for example, the remaining amount of the battery 996, the voltage during charging, the current, or the temperature. The battery 996 may include, for example, a rechargeable battery and / or a solar cell.

Indicator 997 may indicate a particular state of the electronic device 901, or a portion thereof (e.g., processor 910), e.g., a boot state, a message state, or a state of charge. The motor 998 can convert electrical signals to mechanical vibration, and can generate vibration, haptic effects, and the like. Electronic device 901 is, for example, DMB Mobile TV-enabled devices capable of handling media data in accordance with standards such as (digital multimedia broadcasting), DVB (digital video broadcasting), or MediaFLO (mediaFlo TM) (for example, : GPU). Each of the components described in this document may be composed of one or more components, and the name of the component may be changed according to the type of the electronic device. In various embodiments, an electronic device (e. G., Electronic device 901) may have some components omitted, further include additional components, or some of the components may be combined into one entity, The functions of the preceding components can be performed in the same manner.

10 is a block diagram of a program module in accordance with various embodiments. According to one embodiment, the program module 1010 (e.g., program 140) includes an operating system that controls resources associated with an electronic device (e.g., electronic device 101) and / E.g., an application program 147). The operating system may include, for example, Android TM , iOS TM , Windows TM , Symbian TM , Tizen TM , or Bada TM . 10, program module 1010 includes a kernel 1020 (e.g., kernel 141), middleware 1030 (e.g., middleware 143), API 1060 (e.g., API 145) ), And / or an application 1070 (e.g., an application program 147). At least a portion of the program module 1010 may be preloaded on an electronic device, 102 and 104, a server 106, and the like).

The kernel 1020 may include, for example, a system resource manager 1021 and / or a device driver 1023. The system resource manager 1021 can perform control, allocation, or recovery of system resources. According to one embodiment, the system resource manager 1021 may include a process manager, a memory manager, or a file system manager. The device driver 1023 may include, for example, a display driver, a camera driver, a Bluetooth driver, a shared memory driver, a USB driver, a keypad driver, a WiFi driver, an audio driver, or an inter-process communication . The middleware 1030 may provide various functions commonly required by the application 1070 or may be provided through the API 1060 so that the application 1070 may use limited system resources within the electronic device. The application 1070 can be provided. According to one embodiment, the middleware 1030 includes a runtime library 1035, an application manager 1041, a window manager 1042, a multimedia manager 1043, a resource manager 1044, a power manager 1045, a database manager 1046, a package manager 1047, a connectivity manager 1048, a notification manager 1049, a location manager 1050, a graphic manager 1051, or a security manager 1052.

The runtime library 1035 may include, for example, a library module used by the compiler to add new functionality via a programming language while the application 1070 is running. The runtime library 1035 can perform input / output management, memory management, or arithmetic function processing. The application manager 1041 can manage the life cycle of the application 1070, for example. The window manager 1042 can manage GUI resources used in the screen. The multimedia manager 1043 can recognize the format required for playing the media files and can perform encoding or decoding of the media file using a codec suitable for the format. The resource manager 1044 can manage the source code of the application 1070 or the space of the memory. The power manager 1045 can manage the capacity or power of the battery, for example, and can provide the power information necessary for the operation of the electronic device. According to one embodiment, the power manager 1045 can interface with a basic input / output system (BIOS). The database manager 1046 may create, retrieve, or modify the database to be used in the application 1070, for example. The package manager 1047 can manage installation or update of an application distributed in the form of a package file.

The connectivity manager 1048 may, for example, manage the wireless connection. The notification manager 1049 may provide an event to the user, for example, an arrival message, an appointment, a proximity notification, and the like. The location manager 1050 can manage the location information of the electronic device, for example. The graphic manager 1051 may manage, for example, a graphical effect to be presented to the user or a user interface associated therewith. Security manager 1052 may provide, for example, system security or user authentication. According to one embodiment, the middleware 1030 may include a telephony manager for managing the voice or video call functionality of the electronic device, or a middleware module capable of forming a combination of the functions of the above-described components . According to one embodiment, the middleware 1030 may provide a module specific to the type of operating system. Middleware 1030 may dynamically delete some existing components or add new ones. The API 1060 may be provided in a different configuration depending on the operating system, for example, as a set of API programming functions. For example, for Android or iOS, you can provide a single API set for each platform, and for Tizen, you can provide two or more API sets for each platform.

The application 1070 includes a home 1071, a dialer 1072, an SMS / MMS 1073, an instant message 1074, a browser 1075, a camera 1076, an alarm 1077, Contact 1078, voice dial 1079, email 1080, calendar 1081, media player 1082, album 1083, watch 1084, healthcare (e.g., measuring exercise or blood glucose) , Or environmental information (e.g., air pressure, humidity, or temperature information) application. According to one embodiment, the application 1070 may include an information exchange application that can support the exchange of information between the electronic device and the external electronic device. The information exchange application may include, for example, a notification relay application for communicating specific information to an external electronic device, or a device management application for managing an external electronic device. For example, the notification delivery application can transmit notification information generated in another application of the electronic device to the external electronic device, or receive notification information from the external electronic device and provide the notification information to the user. The device management application may, for example, control the turn-on / turn-off or brightness (or resolution) of an external electronic device in communication with the electronic device (e.g., the external electronic device itself Control), or install, delete, or update an application running on an external electronic device. According to one embodiment, the application 1070 may include an application (e.g., a healthcare application of a mobile medical device) designated according to the attributes of the external electronic device. According to one embodiment, the application 1070 may include an application received from an external electronic device. At least some of the program modules 1010 may be implemented (e.g., executed) in software, firmware, hardware (e.g., processor 210), or a combination of at least two of the same, Program, routine, instruction set or process.

As used herein, the term "module " includes units comprised of hardware, software, or firmware and may be used interchangeably with terms such as, for example, logic, logic blocks, components, or circuits. A "module" may be an integrally constructed component or a minimum unit or part thereof that performs one or more functions. "Module" may be implemented either mechanically or electronically, for example, by application-specific integrated circuit (ASIC) chips, field-programmable gate arrays (FPGAs) And may include programmable logic devices. At least some of the devices (e.g., modules or functions thereof) or methods (e.g., operations) according to various embodiments may be stored in a computer readable storage medium (e.g., memory 130) . ≪ / RTI > When the instruction is executed by a processor (e.g., processor 120), the processor may perform a function corresponding to the instruction. The computer-readable recording medium may be a hard disk, a floppy disk, a magnetic medium such as a magnetic tape, an optical recording medium such as a CD-ROM, a DVD, a magnetic-optical medium such as a floppy disk, The instructions may include code that is generated by the compiler or code that may be executed by the interpreter. Modules or program modules according to various embodiments may include at least one or more of the components described above Operations that are performed by modules, program modules, or other components, in accordance with various embodiments, may be performed in a sequential, parallel, iterative, or heuristic manner, or at least in part Some operations may be executed in a different order, omitted, or other operations may be added.

According to various embodiments, there is provided a computer-readable recording medium having recorded thereon a program for execution on a computer, the program causing the processor to execute the program on a computer readable recording medium having recorded thereon a program for execution on a computer Wherein the program is executable by the processor to cause the processor to communicate via a connector for communicating serial data with a first external electronic device functionally coupled to the electronic device, The method comprising: receiving status information indicating whether the status information is electrically coupled to an external electronic device, and when the status information satisfies a first specified condition, And outputs the audio information related to the status information The may include executable instructions to transmit two cases that satisfy the specified condition, the second sound so that the sound can be output through an external electronic device to the first external electronic device through the connector.

According to various embodiments of the invention, the processor may include instructions executable to receive an input for the application via the connector from the first external electronic device in association with the output of the sound.

According to various embodiments of the present invention, the processor changes the audio output path for outputting the sound by using the resistance value included in the status information and based on the ID information of the ID connection pin of the connector And may include executable instructions.

According to various embodiments of the present invention, the processor is configured to determine that the second external electronic device is connected to the first external electronic device if the status information meets a first specified condition, And to set a first audio output path for output.

According to various embodiments of the present invention, the processor determines that the second external electronic device is connected to the first external electronic device if the status information meets a second specified condition, 1 command to send the audio information to an external electronic device and to set a second audio output path for outputting the sound to the second external electronic device.

And the embodiments disclosed in this document are presented for the purpose of explanation and understanding of the disclosed technology and do not limit the scope of the technology described in this document. Accordingly, the scope of this document should be interpreted to include all modifications based on the technical idea of this document or various other embodiments.

100: Network environment 101: Electronic device
102, 104: Electronic device 106: Server
110: bus 120: processor
130: memory 141: kernel
143: Middleware 145: API
147: application 150: input / output interface
160: Display 170: Communication interface
162: network 201: electronic device
202: first external electronic device 400: electronic device
410: Processor 420: Connector
430: Audio module 431: Speaker
440: memory 450: input device
460: display 500: first external electronic device
501: earphone 510: processor
520: connector 530: audio module
540: connecting jack 550: input device

Claims (20)

In an electronic device,
speaker;
A connector for communicating serial data with a first external electronic device operatively connected to the electronic device; And
The processor comprising:
Via the connector, status information indicating whether the first external electronic device is coupled with a second external electronic device;
Output audio associated with an application running on the electronic device via the speaker if the status information meets a first specified condition; And
And to transmit the sound through the connector to the first external electronic device so that the sound can be output through the second external electronic device if the status information meets a second specified condition.
2. The apparatus of claim 1,
And receive an input for the application from the first external electronic device via the connector in association with the output of the sound.
The method according to claim 1,
The first external electronic device comprising a USB device class,
Wherein the status information is a data type corresponding to the USB device class.
2. The apparatus of claim 1,
And changes the audio output path through which the sound is output when the status information is changed while the sound is being output.
2. The method of claim 1,
The condition indicating that the second external electronic device is connected to the first external electronic device.
2. The method of claim 1,
The condition indicating that the second external electronic device is not connected to the first external electronic device.
2. The apparatus of claim 1,
And changing the audio output path for outputting the sound by using the resistance value included in the status information and based on the ID value of the ID connection pin of the connector.
2. The apparatus of claim 1,
And sets a first audio output path for outputting the sound to the speaker if the second external electronic device is not connected to the first external electronic device.
2. The apparatus of claim 1,
A second audio device for transmitting the audio information to the first external electronic device via the connector and outputting the audio to the second external electronic device when the second external electronic device is connected to the first external electronic device, An electronic device for setting an output path.
The method according to claim 1,
Wherein the status information includes ID information of an ID connection pin of the connector or information related to a status change of the first external electronic device received via a data connection pin.
11. The method of claim 10,
Wherein the ID information includes information related to a resistance value for identifying a change in the state of the first external electronic device as information confirmed at the ID connection pin of the connector,
And the processor is configured to determine whether the second external electronic device is connected to the first external electronic device in accordance with the change in the resistance value.
In an electronic device,
A connector for communicating serial data with a first external electronic device operatively connected to the electronic device;
A connection jack for connection with a second external electronic device; And
The processor comprising:
Determining via the connector whether the connection jack is electrically coupled to the second external electronic device;
Transmitting status information indicating whether the second external electronic device is connected to the first external electronic device;
Receive audio associated with an application running on the first external electronic device from the first external electronic device via the connector according to the status information if the second external electronic device is connected;
Control to output the received sound to the second external electronic device; And
And to output the sound through the speaker of the first external electronic device based on the status information if the second external electronic device is not connected.
13. The electronic device according to claim 12,
An input device for receiving an input to the application in association with an output of the sound; And
A digital to analog converter for converting the audio information received from the first external electronic device into an analog signal;
≪ / RTI >
13. The method of claim 12,
The electronic device includes a USB device class,
Wherein the status information is a data type corresponding to the USB device class.
13. The system of claim 12,
Is set to change the resistance value of the resistance element connected to the ID connecting pin of the connector depending on whether or not the second external electronic device is connected.
A computer-readable recording medium having recorded thereon a program for execution on a computer, the program comprising:
Via a connector for communicating serial data with a first external electronic device functionally coupled to the electronic device, whether the first external electronic device is electrically coupled to the second external electronic device Receiving status information indicating the status;
Output audio associated with an application running on the electronic device via the speaker if the status information meets a first specified condition; And
And transmit the sound to the first external electronic device via the connector such that the sound can be output via the second external electronic device if the status information satisfies a second specified condition , ≪ / RTI >
17. The system of claim 16,
And receive an input for the application from the first external electronic device in association with an output of the sound through the connector.
17. The system of claim 16,
And changing the audio output path for outputting the sound using the resistance value included in the status information and based on the ID information of the ID connection pin of the connector.
17. The system of claim 16,
Determining that the second external electronic device is connected to the first external electronic device and setting a first audio output path for outputting the sound to the speaker if the status information meets a first specified condition ≪ / RTI >
17. The system of claim 16,
If the status information meets a second specified condition, determines that the second external electronic device is connected to the first external electronic device and transmits the audio information to the first external electronic device via the connector, 2 < / RTI > instructions operable to set a second audio output path for outputting said sound to an external electronic device.
KR1020160020026A 2016-02-19 2016-02-19 Electronic device and method for controlling output of audio informaton in the electronic device KR20170098100A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020160020026A KR20170098100A (en) 2016-02-19 2016-02-19 Electronic device and method for controlling output of audio informaton in the electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020160020026A KR20170098100A (en) 2016-02-19 2016-02-19 Electronic device and method for controlling output of audio informaton in the electronic device

Publications (1)

Publication Number Publication Date
KR20170098100A true KR20170098100A (en) 2017-08-29

Family

ID=59760015

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020160020026A KR20170098100A (en) 2016-02-19 2016-02-19 Electronic device and method for controlling output of audio informaton in the electronic device

Country Status (1)

Country Link
KR (1) KR20170098100A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020204362A1 (en) * 2019-04-01 2020-10-08 Samsung Electronics Co., Ltd. Method and electronic device for transceiving audio signal
WO2021215707A1 (en) * 2020-04-20 2021-10-28 삼성전자 주식회사 Electronic device comprising connector and method for sensing disconnection

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020204362A1 (en) * 2019-04-01 2020-10-08 Samsung Electronics Co., Ltd. Method and electronic device for transceiving audio signal
US11144484B2 (en) 2019-04-01 2021-10-12 Samsung Electronics Co., Ltd. Method and electronic device for transceiving audio signal
WO2021215707A1 (en) * 2020-04-20 2021-10-28 삼성전자 주식회사 Electronic device comprising connector and method for sensing disconnection

Similar Documents

Publication Publication Date Title
US10380050B2 (en) Electronic device configured to communicate with an external electronic device using a USB connector
US10283920B2 (en) Interface device
US10038290B2 (en) Electrical device
US10963211B2 (en) Electronic device and method for controlling audio path thereof
US10366029B2 (en) Data transceiving method and device
KR20170046958A (en) Electronic apparatus and Method for executing function using speech recognition thereof
US10761498B2 (en) Electronic device and method for operating the same
KR20160092671A (en) Electronic device and method for managing power
KR20160114930A (en) Module recognition method and electronic device performing thereof
US20180260550A1 (en) Electronic device for performing authentication using multiple authentication means and method for operating the same
KR20160057788A (en) Wireless data input and output method and apparatus
KR20170056263A (en) Display control method, display panel, display device and electronic device for the same
KR102657535B1 (en) Electronic apparatus and operating method thereof
KR20180018196A (en) Electronic apparatus and operating method thereof
KR20160036927A (en) Method for reducing ghost touch and electronic device thereof
KR20170125652A (en) Electronic device and controlling method thereof
US20170192746A1 (en) Method for outputting sound and electronic device supporting the same
KR20170081500A (en) Electronic Device and Operating Method Thereof
KR20170098106A (en) Configuration setting method and device
KR20180002462A (en) Method for determing role of electronic device and electronic device thereof
KR20170127809A (en) Electronic device and method for providing information in the electronic device
KR20170109401A (en) Electronic device and controlling method thereof
KR20170137511A (en) Electronic device and cable and operation method thereof
KR20170086806A (en) Electronic device and method for recognizing touch input using the same
US20190278416A1 (en) Electronic device and touch input sensing method of electronic device