KR20150085246A - Apparatus and Method for controlling a connection with a accessory device in electronic device - Google Patents

Apparatus and Method for controlling a connection with a accessory device in electronic device Download PDF

Info

Publication number
KR20150085246A
KR20150085246A KR1020140004922A KR20140004922A KR20150085246A KR 20150085246 A KR20150085246 A KR 20150085246A KR 1020140004922 A KR1020140004922 A KR 1020140004922A KR 20140004922 A KR20140004922 A KR 20140004922A KR 20150085246 A KR20150085246 A KR 20150085246A
Authority
KR
South Korea
Prior art keywords
electronic device
module
accessory device
sensor
communication
Prior art date
Application number
KR1020140004922A
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 KR1020140004922A priority Critical patent/KR20150085246A/en
Publication of KR20150085246A publication Critical patent/KR20150085246A/en

Links

Images

Classifications

    • 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/14Handling requests for interconnection or transfer
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs

Abstract

According to various embodiments of the present invention, the present invention relates to a method for controlling a connection between an electronic device and an accessory device which includes: an operation to recognize a direction the electronic device is placed to the accessory device based on sensor information; and an operation to control a communication with the accessory device at a first mode or a second mode in accordance with the direction the accessory device and the electronic device are headed.

Description

액세서리 장치와의 연결 제어 방법 및 장치{Apparatus and Method for controlling a connection with a accessory device in electronic device}[0001] The present invention relates to a method and apparatus for controlling a connection with an accessory device,

본 발명은 액세서리 장치와 전자 장치의 통신 연결을 제어할 수 있는 액세서리 장치와의 연결 모드 제어 방법 및 장치에 관한 것이다. The present invention relates to a connection mode control method and apparatus for an accessory device and an accessory device capable of controlling the communication connection of the electronic device.

최근 통신 기술의 발달로, 전자 장치는 영상 촬영, 멀티미디어 재생, 게임, 방송 수신, 등의 다양한 사용자 기능을 통합적으로 지원하는 형태로 구현되고 있다. 최근 전자 장치 업체들은 전자 장치의 기능을 최대한 활용하기 위해 다양한 기능성 액세서리 장치들을 제안하고 있다. 전자 장치와 액세서리 장치는 통신 기능을 탑재하여 양방향 통신 연결을 수행할 수 있도록 지원하고 있다. 특히, 전자 장치와 액세서리 장치는 낮은 소비 전력과, 저렴한 비용에 양방향 통신을 구현하기 위해 다양한 근거리 무선 통신 기술들을 지원하고 있다. Background Art [0002] With the recent development of communication technologies, electronic devices are being implemented in a form that supports various user functions such as image capturing, multimedia playback, games, broadcast reception, and the like in an integrated manner. Recently, electronic device manufacturers have proposed various functional accessory devices to make full use of the functions of electronic devices. Electronic devices and accessory devices are equipped with communication functions to enable two-way communication connection. In particular, electronic devices and accessory devices support a variety of short-range wireless communication technologies to achieve bi-directional communication at low power consumption and low cost.

전자 장치는 액세서리 장치와의 통신 연결을 위해 탐색, 인증 등의 연결 과정을 수행해야 한다. 이 과정에서, 전자 장치는 사용자의 입력이 요구된다. 예컨대, 전자 장치는 사용자의 입력에 응답하여 통신 모듈을 구동하여 액세서리 장치와의 통신 연결을 위한 동작을 수행하고 있다. 즉, 전자 장치의 사용자는 전자 장치와 액세서리 장치와의 통신 연결을 위해 전자 장치 또는 액세서리 장치를 조작해야 하는 번거로움이 존재한다. The electronic device must perform a connection process such as search, authentication, etc. for communication connection with the accessory device. In this process, the electronic device requires a user input. For example, an electronic device is operating an operation for communicating with an accessory device by driving a communication module in response to a user's input. That is, the user of the electronic device has to operate the electronic device or the accessory device for communication connection between the electronic device and the accessory device.

본 발명의 다양한 실시예는 전자 장치가 액세서리 장치에 거치되는 거치 방향을 판단하고, 거치 방향에 따라 액세서리 장치와의 통신 연결을 제어할 수 있는 액세서리 장치와의 연결 제어 방법 및 장치를 제공하는 데 그 목적이 있다. Various embodiments of the present invention provide a method and apparatus for controlling a connection with an accessory device capable of determining a mounting direction in which an electronic device is mounted on an accessory device and controlling the communication connection with the accessory device in accordance with the mounting direction, There is a purpose.

본 발명의 다양한 실시예의 액세서리 장치와의 연결 제어 방법 및 장치에 따르면, 전자 장치에서 액세서리 장치와의 연결 제어 방법에 있어서, 센서 정보를 기반으로 액세서리 장치에 전자 장치가 거치되는 거치 방향을 판단하는 동작; 및 상기 액세서리 장치와 전자 장치의 거치 방향에 따라 액세서리 장치와의 통신 동작을 제1 모드 또는 제2 모드로 제어하는 동작을 포함할 수 있다. According to a method and an apparatus for controlling connection with an accessory device of various embodiments of the present invention, there is provided a method of controlling connection with an accessory device in an electronic device, comprising the steps of: determining an orientation in which an electronic device is mounted on an accessory device ; And controlling the communication operation of the accessory device with the accessory device in the first mode or the second mode according to the mounting direction of the accessory device and the electronic device.

본 발명의 다양한 실시예에 전자 장치는, 액세서리 장치와 무선 연결되는 통신 모듈; 전자 장치의 자세 정보를 수집하는 센서 모듈; 상기 센서 모듈을 통해 수집되는 센서 정보를 기반으로 전자 장치가 상기 액세서리 장치에 거치되는 거치 방향을 판단하고, 상기 전자 장치의 거치 방향에 따라 액세서리 장치와의 통신 동작을 제1 모드 또는 제2 모드로 제어하는 프로세서를 포함할 수 있다. An electronic device in various embodiments of the present invention includes a communication module wirelessly connected to an accessory device; A sensor module for collecting attitude information of the electronic device; Wherein the control unit determines the direction in which the electronic device is mounted on the accessory device based on the sensor information collected through the sensor module and controls the communication operation with the accessory device according to the mounting direction of the electronic device in the first mode or the second mode And a processor for controlling the processor.

본 발명의 다양한 실시예에 따른 액세서리 장치와의 연결 제어 방법 및 장치에 따르면, 액세서리 장치에 거치되는 전자 장치의 거치 방향을 판단하여 거치 방향에 따라 액세서리 장치와 연결 동작의 온/오프를 제어할 수 있다. 이에 따라, 사용자는 액세서리 장치와의 연결을 위해 불필요한 입력 없이, 간단하게 전자 장치의 거치 상태를 변경해줌으로써, 액세서리 장치와의 연결하거나 연결을 해제할 수 있다. According to the method and apparatus for controlling connection with the accessory device according to various embodiments of the present invention, it is possible to determine the mounting direction of the electronic device to be mounted on the accessory device and to control the accessory device and the connection operation on / have. Thereby, the user can connect or disconnect the accessory device by simply changing the mounting state of the electronic device without unnecessary input for connection with the accessory device.

도 1은 다양한 실시예에 따른 전자 장치를 포함하는 네트워크 환경을 도시한다.
도 2는 다양한 실시예에 따른 전자 장치의 장치 연결 제어 모듈의 블록도를 도시한다.
도 3은 본 발명의 다양한 실시예에 따른 전자 장치에서 액세서리 장치와의 연결 제어 방법을 도시한 흐름도이다.
도 4는 본 발명의 다양한 실시예에 따른 전자 장치에서 액세서리 장치와의 연결 제어 방법을 도시한 흐름도이다.
도 5 및 도 6은 본 발명의 다양한 실시예에 따라 전자 장치와 액세서리 장치와의 거치 방향을 설명하기 위한 예시도이다.
도 7은 다양한 실시예들에 따른 전자 장치의 블록도를 도시한다.
1 illustrates a network environment including an electronic device according to various embodiments.
Figure 2 shows a block diagram of a device connection control module of an electronic device according to various embodiments.
3 is a flow chart illustrating a method of controlling connection with an accessory device in an electronic device according to various embodiments of the present invention.
4 is a flowchart illustrating a method of controlling connection with an accessory device in an electronic device according to various embodiments of the present invention.
5 and 6 are illustrations for explaining the mounting direction of an electronic device and an accessory device according to various embodiments of the present invention.
7 shows a block diagram of an electronic device according to various embodiments.

이하, 첨부된 도면을 참조하여 본 발명(present disclosure)를 설명한다. 본 발명은 다양한 변경을 가할 수 있고 여러 가지 실시예를 가질 수 있는 바, 특정 실시예들이 도면에 예시되고 관련된 상세한 설명이 기재되어 있다. 그러나, 이는 본 발명을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 발명의 사상 및 기술 범위에 포함되는 모든 변경 및/또는 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 구성요소에 대해서는 유사한 참조 부호가 사용되었다.The present disclosure will now be described with reference to the accompanying drawings. While the invention is susceptible to various modifications and alternative forms, specific embodiments thereof are shown by way of example in the drawings and will herein be described in detail. It is to be understood, however, that the invention is not to be limited to the specific embodiments, but includes all changes and / or equivalents and alternatives falling within the spirit and scope of the invention. In connection with the description of the drawings, like reference numerals have been used for like elements.

본 발명 가운데 사용될 수 있는“포함한다” 또는 “포함할 수 있다” 등의 표현은 발명된 해당 기능, 동작 또는 구성요소 등의 존재를 가리키며, 추가적인 하나 이상의 기능, 동작 또는 구성요소 등을 제한하지 않는다. 또한, 본 발명에서, "포함하다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다. The word " comprises " or " comprising may " used in the present specification refers to the existence of a corresponding function, operation, or element, etc., and does not limit one or more additional functions, operations, . Also, in the present invention, the terms such as "comprises" or "having ", and the like, are used to specify that there is a feature, a number, a step, an operation, an element, a component, But do not preclude the presence or addition of other features, numbers, steps, operations, components, parts, or combinations thereof.

본 발명에서 “또는” 등의 표현은 함께 나열된 단어들의 어떠한, 그리고 모든 조합을 포함한다. 예를 들어, “A 또는 B”는, A를 포함할 수도, B를 포함할 수도, 또는 A 와 B 모두를 포함할 수도 있다.The " or " in the present invention includes any and all combinations of words listed together. For example, " A or B " may comprise A, comprise B, or both A and B.

본 발명 가운데 “제 1,”“제2,”“첫째,”또는“둘째,”등의 표현들이 본 발명의 다양한 구성요소들을 수식할 수 있지만, 해당 구성요소들을 한정하지 않는다. 예를 들어, 상기 표현들은 해당 구성요소들의 순서 및/또는 중요도 등을 한정하지 않는다. 상기 표현들은 한 구성요소를 다른 구성요소와 구분 짓기 위해 사용될 수 있다. 예를 들어, 제1 사용자 기기와 제 2 사용자 기기는 모두 사용자 기기이며, 서로 다른 사용자 기기를 나타낸다. 예를 들어, 본 발명의 권리 범위를 벗어나지 않으면서 제1 구성요소는 제2 구성요소로 명명될 수 있고, 유사하게 제2 구성요소도 제1 구성요소로 명명될 수 있다.The terms "first," "second," "first," or "second," and the like in the present invention can modify various elements of the present invention, but do not limit the constituent elements. For example, the representations do not limit the order and / or importance of the components. The representations may be used to distinguish one component from another. For example, both the first user equipment and the second user equipment are user equipment and represent different user equipment. For example, without departing from the scope of the present invention, the first component may be referred to as a second component, and similarly, the second component may also be referred to as a first component.

어떤 구성요소가 다른 구성요소에 "연결되어" 있다거나 "접속되어" 있다고 언급된 때에는, 그 다른 구성요소에 직접적으로 연결되어 있거나 또는 접속되어 있을 수도 있지만, 중간에 다른 구성요소가 존재할 수도 있다고 이해되어야 할 것이다. 반면에, 어떤 구성요소가 다른 구성요소에 "직접 연결되어" 있다거나 "직접 접속되어" 있다고 언급된 때에는, 중간에 다른 구성요소가 존재하지 않는 것으로 이해될 수 있어야 할 것이다. It is to be understood that when an element is referred to as being "connected" or "connected" to another element, it may be directly connected or connected to the other element, . On the other hand, when an element is referred to as being "directly connected" or "directly connected" to another element, it should be understood that there are no other elements in between.

본 발명에서 사용한 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 본 발명을 한정하려는 의도가 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The singular expressions include plural expressions unless the context clearly dictates otherwise.

다르게 정의되지 않는 한, 기술적이거나 과학적인 용어를 포함해서 여기서 사용되는 모든 용어들은 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자에 의해 일반적으로 이해되는 것과 동일한 의미를 가지고 있다. 일반적으로 사용되는 사전에 정의되어 있는 것과 같은 용어들은 관련 기술의 문맥 상 가지는 의미와 일치하는 의미를 가지는 것으로 해석되어야 하며, 본 발명에서 명백하게 정의하지 않는 한, 이상적이거나 과도하게 형식적인 의미로 해석되지 않는다.Unless defined otherwise, all terms used herein, including technical or scientific terms, have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. Terms such as those defined in commonly used dictionaries are to be interpreted as having a meaning consistent with the meaning in the context of the relevant art and are to be interpreted as ideal or overly formal in the sense of the present invention Do not.

본 발명의 다양한 실시예에 따른 전자 장치는, 통신 기능이 포함된 장치일 수 있다. 예를 들면, 전자 장치는 스마트 폰(smartphone), 태블릿 PC(tablet personal computer), 이동 전화기(mobile phone), 화상전화기, 전자북 리더기(e-book reader), 데스크탑 PC(desktop personal computer), 랩탑 PC(laptop personal computer), 넷북 컴퓨터(netbook computer), PDA(personal digital assistant), PMP(portable multimedia player), MP3 플레이어, 모바일 의료기기, 카메라(camera), 또는 웨어러블 장치(wearable device)(예: 전자 안경과 같은 head-mounted-device(HMD), 전자 의복, 전자 팔찌, 전자 목걸이, 전자 앱세서리(appcessory), 전자 문신, 또는 스마트 와치(smartwatch))중 적어도 하나를 포함할 수 있다. An electronic device according to various embodiments of the present invention may be a device including a communication function. For example, the electronic device can be a smartphone, a tablet personal computer, a mobile phone, a videophone, an e-book reader, a desktop personal computer, a laptop Such as a laptop personal computer (PC), a netbook computer, a personal digital assistant (PDA), a portable multimedia player (PMP), an MP3 player, a mobile medical device, a camera, or a wearable device Such as a head-mounted-device (HMD) such as electronic glasses, an electronic garment, an electronic bracelet, an electronic necklace, an electronic app apparel, an electronic tattoo, or a smartwatch.

어떤 실시예들에 따르면, 전자 장치는 통신 기능을 갖춘 스마트 가전 제품(smart home appliance)일 수 있다. 스마트 가전 제품은, 예를 들자면, 전자 장치는 텔레비전, DVD(digital video disk) 플레이어, 오디오, 냉장고, 에어컨, 청소기, 오븐, 전자레인지, 세탁기, 공기 청정기, 셋톱 박스(set-top box), TV 박스(예를 들면, 삼성 HomeSyncTM, 애플TVTM, 또는 구글 TVTM), 게임 콘솔(game consoles), 전자 사전, 전자 키, 캠코더(camcorder), 또는 전자 액자 중 적어도 하나를 포함할 수 있다.According to some embodiments, the electronic device may be a smart home appliance with communication capabilities. [0003] Smart household appliances, such as electronic devices, are widely used in the fields of television, digital video disk (DVD) player, audio, refrigerator, air conditioner, vacuum cleaner, oven, microwave oven, washing machine, air cleaner, set- And may include at least one of a box (e.g., Samsung HomeSyncTM, Apple TVTM, or Google TVTM), game consoles, an electronic dictionary, an electronic key, a camcorder, or an electronic frame.

어떤 실시예들에 따르면, 전자 장치는 각종 의료기기(예: MRA(magnetic resonance angiography), MRI(magnetic resonance imaging), CT(computed tomography), 촬영기, 초음파기 등), 네비게이션(navigation) 장치, GPS 수신기(global positioning system receiver), EDR(event data recorder), FDR(flight data recorder), 자동차 인포테인먼트(infotainment) 장치, 선박용 전자 장비(예: 선박용 항법 장치 및 자이로 콤파스 등), 항공 전자기기(avionics), 보안 기기, 차량용 헤드 유닛, 산업용 또는 가정용 로봇, 금융 기관의 ATM(automatic teller? machine) 또는 상점의 POS(point of sales) 중 적어도 하나를 포함할 수 있다. According to some embodiments, the electronic device may be a variety of medical devices (e.g., magnetic resonance angiography (MRA), magnetic resonance imaging (MRI), computed tomography (CT) (global positioning system receiver), EDR (event data recorder), flight data recorder (FDR), automotive infotainment device, marine electronic equipment (eg marine navigation device and gyro compass), avionics, A security device, a head unit for a vehicle, an industrial or home robot, an ATM (automatic teller machine) of a financial institution, or a point of sale (POS) of a shop.

어떤 실시예들에 따르면, 전자 장치는 통신 기능을 포함한 가구(furniture) 또는 건물/구조물의 일부, 전자 보드(electronic board), 전자 사인 입력장치(electronic signature receiving device), 프로젝터(projector), 또는 각종 계측기기(예: 수도, 전기, 가스, 또는 전파 계측 기기 등) 중 적어도 하나를 포함할 수 있다. 본 발명에 따른 전자 장치는 전술한 다양한 장치들 중 하나 또는 그 이상의 조합일 수 있다. 또한, 본 개세에 따른 전자 장치는 플렉서블 장치일 수 있다. 또한, 본 발명에 따른 전자 장치는 전술한 기기들에 한정되지 않음은 당업자에게 자명하다.According to some embodiments, the electronic device may be a piece of furniture or a structure / structure including a communication function, an electronic board, an electronic signature receiving device, a projector, (E.g., water, electricity, gas, or radio wave measuring instruments, etc.). An electronic device according to the present invention may be one or more of the various devices described above. Further, the electronic device according to the present expansion may be a flexible device. It should also be apparent to those skilled in the art that the electronic device according to the present invention is not limited to the above-described devices.

이하, 첨부된 도면을 참조하여 다양한 실시예에 따른 전자 장치에 대해서 살펴본다. 다양한 실시예에서 이용되는 사용자라는 용어는 전자 장치를 사용하는 사람 또는 전자 장치를 사용하는 장치(예: 인공지능 전자 장치)를 지칭할 수 있다. Hereinafter, an electronic device according to various embodiments will be described with reference to the accompanying drawings. The term user as used in various embodiments may refer to a person using an electronic device or a device using an electronic device (e.g., an artificial intelligence electronic device).

도 1은 다양한 실시예에 따른 전자 장치 101를 포함하는 네트워크 환경 100을 도시한다. 1 illustrates a network environment 100 including an electronic device 101 according to various embodiments.

도 1을 참조하면, 다양한 실시예에 따른 네트워크 환경 100은 전자 장치101,104, 네트워크162, 서버106 및 액세서리 장치108를 포함할 수 있다. 1, a network environment 100 according to various embodiments may include electronic devices 101 and 104, a network 162, a server 106, and an accessory device 108.

전자 장치101는 버스 110, 프로세서 120, 메모리 130, 입출력 인터페이스 140, 디스플레이 150, 통신 인터페이스 160, 장치 연결 제어 모듈 170, 및 센서 모듈 190을 포함할 수 있다. The electronic device 101 may include a bus 110, a processor 120, a memory 130, an input / output interface 140, a display 150, a communication interface 160, a device connection control module 170, and a sensor module 190.

상기 버스 110는 전술한 구성요소들을 서로 연결하고, 전술한 구성요소들 간의 통신(예: 제어 메시지)을 전달하는 회로일 수 있다.The bus 110 may be a circuit that interconnects the components described above and communicates (e.g., control messages) between the components described above.

상기 프로세서 120는, 예를 들면, 상기 버스 110를 통해 전술한 다른 구성요소들(예: 상기 메모리 130, 상기 입출력 인터페이스 140, 상기 디스플레이 150, 상기 통신 인터페이스 160, 또는 상기 장치 연결 제어 모듈 170 등)로부터 명령을 수신하여, 수신된 명령을 해독하고, 해독된 명령에 따른 연산이나 데이터 처리를 실행할 수 있다. The processor 120 may communicate with other components (e.g., the memory 130, the input / output interface 140, the display 150, the communication interface 160, or the device connection control module 170) via the bus 110, And decrypts the received command and can execute an operation or data processing according to the decrypted command.

상기 메모리 130는, 상기 프로세서 120 또는 다른 구성요소들(예: 상기 입출력 인터페이스 140, 상기 디스플레이 150, 상기 통신 인터페이스 160, 또는 상기 장치 연결 제어 모듈 170 등)로부터 수신되거나 상기 프로세서 120 또는 다른 구성요소들에 의해 생성된 명령 또는 데이터를 저장할 수 있다. 상기 메모리 130는, 예를 들면, 커널 131, 미들웨어 132, 어플리케이션 프로그래밍 인터페이스(API: application programming interface) 133 또는 어플리케이션 134 등의 프로그래밍 모듈들을 포함할 수 있다. 전술한 각각의 프로그래밍 모듈들은 소프트웨어, 펌웨어, 하드웨어 또는 이들 중 적어도 둘 이상의 조합으로 구성될 수 있다.The memory 130 may receive or be coupled to the processor 120 or other components (e.g., the input / output interface 140, the display 150, the communication interface 160, or the device connection control module 170) Lt; RTI ID = 0.0 > and / or < / RTI > The memory 130 may include, for example, a kernel 131, a middleware 132, an application programming interface (API) 133, or an application 134. Each of the above-described programming modules may be composed of software, firmware, hardware, or a combination of at least two of them.

상기 커널 131은 나머지 다른 프로그래밍 모듈들, 예를 들면, 상기 미들웨어 132, 상기 API 133 또는 상기 어플리케이션 134에 구현된 동작 또는 기능을 실행하는 데 사용되는 시스템 리소스들(예: 상기 버스 110, 상기 프로세서 120 또는 상기 메모리 130 등)을 제어 또는 관리할 수 있다. 또한, 상기 커널 131은 상기 미들웨어 132, 상기 API 133 또는 상기 어플리케이션 134에서 상기 전자 장치 101의 개별 구성요소에 접근하여 제어 또는 관리할 수 있는 인터페이스를 제공할 수 있다. The kernel 131 may include system resources (e.g., the bus 110, the processor 120, etc.) used to execute the operations or functions implemented in the other programming modules, e.g., the middleware 132, the API 133, Or the memory 130 and the like). In addition, the kernel 131 may provide an interface for accessing and controlling or managing individual components of the electronic device 101 in the middleware 132, the API 133, or the application 134.

상기 미들웨어 132는 상기 API 133 또는 상기 어플리케이션 134이 상기 커널 131과 통신하여 데이터를 주고받을 수 있도록 중개 역할을 수행할 수 있다. 또한, 상기 미들웨어 132는 상기 어플리케이션 134로부터 수신된 작업 요청들과 관련하여, 예를 들면, 상기 어플리케이션 134 중 적어도 하나의 어플리케이션에 상기 전자 장치 101의 시스템 리소스(예: 상기 버스 110, 상기 프로세서 120 또는 상기 메모리 130 등)를 사용할 수 있는 우선 순위를 배정하는 등의 방법을 이용하여 작업 요청에 대한 제어(예: 스케쥴링 또는 로드 밸런싱)을 수행할 수 있다.The middleware 132 can act as an intermediary for the API 133 or the application 134 to communicate with the kernel 131 to exchange data. In addition, the middleware 132 may be configured to communicate with at least one of the applications 134, for example, system resources of the electronic device 101 (e.g., the bus 110, the processor 120, or the like) (E.g., scheduling or load balancing) of a work request using a method of assigning a priority that can be used to the job (e.g., the memory 130).

상기 API 133는 상기 어플리케이션 134이 상기 커널 131 또는 상기 미들웨어 132에서 제공되는 기능을 제어하기 위한 인터페이스로, 예를 들면, 파일 제어, 창 제어, 화상 처리 또는 문자 제어 등을 위한 적어도 하나의 인터페이스 또는 함수(예: 명령어)를 포함할 수 있다. The API 133 is an interface for the application 134 to control the functions provided by the kernel 131 or the middleware 132 and includes at least one interface or function for file control, window control, image processing, (E.g., commands).

다양한 실시예에 따르면, 상기 어플리케이션 134는 SMS/MMS 어플리케이션, 이메일 어플리케이션, 달력 어플리케이션, 알람 어플리케이션, 건강 관리(health care) 어플리케이션(예: 운동량 또는 혈당 등을 측정하는 어플리케이션) 또는 환경 정보 어플리케이션(예: 기압, 습도 또는 온도 정보 등을 제공하는 어플리케이션) 등을 포함할 수 있다. 추가적으로 또는 대체적으로, 상기 어플리케이션 134은 상기 전자 장치 101와 외부 전자 장치(예: 전자 장치 104 또는 액세서리 장치 108) 사이의 정보 교환과 관련된 어플리케이션일 수 있다. 상기 정보 교환과 관련된 어플리케이션은, 예를 들어, 상기 외부 전자 장치에 특정 정보를 전달하기 위한 알림 전달(notification relay) 어플리케이션, 또는 상기 외부 전자 장치를 관리하기 위한 장치 관리(device management) 어플리케이션을 포함할 수 있다. According to various embodiments, the application 134 may be an SMS / MMS application, an email application, a calendar application, an alarm application, a health care application (e.g., an application that measures momentum or blood glucose) Pressure, humidity, or temperature information, etc.), and the like. Additionally or alternatively, the application 134 may be an application related to the exchange of information between the electronic device 101 and an external electronic device (e.g., electronic device 104 or accessory device 108). The application associated with the information exchange may include, for example, a notification relay application for communicating specific information to the external electronic device, or a device management application for managing the external electronic device .

예를 들면, 상기 알림 전달 어플리케이션은 상기 전자 장치 101 의 다른 어플리케이션(예: SMS/MMS 어플리케이션, 이메일 어플리케이션, 건강 관리 어플리케이션 또는 환경 정보 어플리케이션 등)에서 발생한 알림 정보를 외부 전자 장치(예: 전자 장치 104 또는 액세서리 장치 108)로 전달하는 기능을 포함할 수 있다. 추가적으로 또는 대체적으로, 상기 알림 전달 어플리케이션은, 예를 들면, 외부 전자 장치(예: 전자 장치 104 또는 액세서리 장치 108)로부터 알림 정보를 수신하여 사용자에게 제공할 수 있다. 상기 장치 관리 어플리케이션은, 예를 들면, 상기 전자 장치 101와 통신하는 외부 전자 장치(예: 전자 장치 104 또는 액세서리 장치 108)의 적어도 일부에 대한 기능(예: 외부 전자 장치 자체(또는, 일부 구성 부품)의 턴 온/턴 오프 또는 디스플레이의 밝기(또는, 해상도) 조절), 상기 외부 전자 장치에서 동작하는 어플리케이션 또는 상기 외부 전자 장치에서 제공되는 서비스(예: 통화 서비스 또는 메시지 서비스)를 관리(예: 설치, 삭제 또는 업데이트)할 수 있다. For example, the notification delivery application may send notification information generated by another application (e.g., SMS / MMS application, email application, healthcare application, or environment information application) of the electronic device 101 to an external electronic device Or accessory device 108). Additionally or alternatively, the notification delivery application may receive notification information from, for example, an external electronic device (e.g., electronic device 104 or accessory device 108) and provide it to the user. The device management application may be used to provide functions (e.g., external electronic devices themselves (or some component (s)) for at least a portion of an external electronic device (e.g., electronic device 104 or accessory device 108) (E.g., a call service or a message service) provided by the external electronic device or an application running on the external electronic device (e.g., controlling the turn-on / turn- Installation, deletion, or update).

다양한 실시예에 따르면, 상기 어플리케이션 134은 상기 외부 전자 장치(예: 전자 장치 104 또는 액세서리 장치 108)의 속성(예: 전자 장치의 종류)에 따라 지정된 어플리케이션을 포함할 수 있다. 예를 들어, 외부 전자 장치가 MP3 플레이어인 경우, 상기 어플리케이션 134은 음악 재생과 관련된 어플리케이션을 포함할 수 있다. 유사하게, 외부 전자 장치가 모바일 의료기기인 경우, 상기 어플리케이션 134은 건강 관리와 관련된 어플리케이션을 포함할 수 있다. 한 실시예에 따르면, 상기 어플리케이션 134은 전자 장치 101에 지정된 어플리케이션 또는 외부 전자 장치(예: 서버 106, 전자 장치104 또는 액세서리 장치 108)로부터 수신된 어플리케이션 중 적어도 하나를 포함할 수 있다.According to various embodiments, the application 134 may include an application that is designated according to attributes (e.g., the type of electronic device) of the external electronic device (e.g., electronic device 104 or accessory device 108). For example, if the external electronic device is an MP3 player, the application 134 may include an application related to music playback. Similarly, if the external electronic device is a mobile medical device, the application 134 may include applications related to health care. According to one embodiment, the application 134 may include at least one of an application specified in the electronic device 101 or an application received from an external electronic device (e.g., server 106, electronic device 104, or accessory device 108).

상기 입출력 인터페이스 140은, 입출력 장치(예: 센서, 키보드 또는 터치 스크린)를 통하여 사용자로부터 입력된 명령 또는 데이터를, 예를 들면, 상기 버스 110를 통해 상기 프로세서 120, 상기 메모리 130, 상기 통신 인터페이스 160, 또는 상기 장치 연결 제어 모듈 170에 전달할 수 있다. The input / output interface 140 connects commands or data input from a user via an input / output device (e.g., a sensor, a keyboard or a touch screen) to the processor 120, the memory 130, the communication interface 160 , Or to the device connection control module 170.

예를 들면, 상기 입출력 인터페이스 140은 터치 스크린을 통하여 입력된 사용자의 터치에 대한 데이터를 상기 프로세서 120로 제공할 수 있다. 또한, 상기 입출력 인터페이스 140은, 예를 들면, 상기 버스 110을 통해 상기 프로세서 120, 상기 메모리 130, 상기 통신 인터페이스 160, 또는 상기 장치 연결 제어 모듈 170로부터 수신된 명령 또는 데이터를 상기 입출력 장치(예: 스피커 또는 디스플레이)를 통하여 출력할 수 있다. 예를 들면, 상기 입출력 인터페이스 140은 상기 프로세서 120를 통하여 처리된 음성 데이터를 스피커를 통하여 사용자에게 출력할 수 있다. For example, the input / output interface 140 may provide the processor 120 with data on the user's touch input through the touch screen. The input / output interface 140 may transmit commands or data received from the processor 120, the memory 130, the communication interface 160, or the device connection control module 170 via the bus 110 to the input / output device (e.g., Speaker or display). For example, the input / output interface 140 can output voice data processed through the processor 120 to a user through a speaker.

상기 디스플레이 150은 사용자에게 각종 정보(예: 멀티미디어 데이터 또는 텍스트 데이터 등)을 표시할 수 있다.The display 150 may display various information (e.g., multimedia data or text data) to the user.

상기 통신 인터페이스 160은 상기 전자 장치 101와 외부 장치(예: 전자 장치 104 또는 서버 106) 간의 통신을 연결할 수 있다. 예를 들면, 상기 통신 인터페이스 160은 무선 통신 또는 유선 통신을 통해서 네트워크 162에 연결되어 상기 외부 장치와 통신할 수 있다. 상기 무선 통신은, 예를 들어, Wifi(wireless fidelity), BT(Bluetooth), NFC(near field communication), GPS(global positioning system) 또는 cellular 통신(예: LTE, LTE-A, CDMA, WCDMA, UMTS, WiBro 또는 GSM 등) 중 적어도 하나를 포함할 수 있다. 상기 유선 통신은, 예를 들어, USB(universal serial bus), HDMI(high definition multimedia interface), RS-232(recommended standard 232) 또는 POTS(plain old telephone service) 중 적어도 하나를 포함할 수 있다.The communication interface 160 can connect the communication between the electronic device 101 and an external device (e.g., the electronic device 104 or the server 106). For example, the communication interface 160 may be connected to the network 162 via wireless communication or wired communication to communicate with the external device. The wireless communication may include, for example, wireless fidelity, Bluetooth, near field communication (NFC), global positioning system (GPS) , WiBro or GSM, etc.). The wired communication may include at least one of, for example, a universal serial bus (USB), a high definition multimedia interface (HDMI), a recommended standard 232 (RS-232) or a plain old telephone service (POTS).

상기 장치 연결 제어 모듈 170은 센서를 통해 수집되는 센서 정보를 기반으로 상기 전자 장치 101의 상태(status)를 판단하고, 상기 전자 장치 101의 상태에 따라 상기 액세서리 장치 108와의 거치 방향을 결정할 수 있다. 상기 장치 연결 제어 모듈 170은 상기 액세서리 장치 108와의 거치 방향에 따라 통신 인터페이스 160를 제어하여 상기 액세서리 장치 108와 연결 여부를 변경할 수 있다. 상기 장치 연결 제어 모듈 170은 상기 프로세서 120를 이용하여 또는 이와는 독립적으로, 상기 액세서리 장치 108와 연결을 제어할 수 있다. 후술하는 도 2를 통하여 상기 전자 장치 101 의 상기 장치 연결 제어 모듈 170에 대한 추가적인 정보가 제공된다. The device connection control module 170 may determine the status of the electronic device 101 based on the sensor information collected through the sensor and determine the mounting direction with the accessory device 108 according to the state of the electronic device 101. [ The device connection control module 170 may control the communication interface 160 according to the mounting direction with the accessory device 108 to change whether the accessory device 108 is connected or not. The device connection control module 170 may control the connection with the accessory device 108 using the processor 120 or independently thereof. Additional information about the device connection control module 170 of the electronic device 101 is provided through FIG.

상기 센서 모듈 190은 상기 전자 장치 101의 상태(status)를 감지하고, 감지된 정보를 전기 신호로 변환하고, 이를 상기 장치 연결 제어 모듈 170로 전달할 수 있다. The sensor module 190 senses the status of the electronic device 101, converts the sensed information into an electric signal, and transmits the electric signal to the device connection control module 170.

한 실시예에 따르면, 상기 네트워크 162는 통신 네트워크(telecommunications network)일 수 있다. 상기 통신 네트워크 는 컴퓨터 네트워크(computer network), 인터넷(internet), 사물 인터넷(internet of things) 또는 전화망(telephone network) 중 적어도 하나를 포함할 수 있다. According to one embodiment, the network 162 may be a telecommunications network. The communication network may include at least one of a computer network, an internet, an internet of things, or a telephone network.

한 실시예에 따르면, 상기 전자 장치 101와 외부 장치(예, 전자 장치 104, 서버 106 또는 액세서리 장치 108) 간의 통신을 위한 프로토콜(예: transport layer protocol, data link layer protocol 또는 physical layer protocol))은 어플리케이션 134, 어플리케이션 프로그래밍 인터페이스 133, 상기 미들웨어 132, 커널 131 또는 통신 인터페이스 160 중 적어도 하나에서 지원될 수 있다.According to one embodiment, a protocol (e.g., transport layer protocol, data link layer protocol or physical layer protocol) for communication between the electronic device 101 and an external device (e.g., electronic device 104, server 106 or accessory device 108) Application 134, application programming interface 133, middleware 132, kernel 131, or communication interface 160.

한 실시예에 따른 네트워크 환경 100에서 상기 액세서리 장치 108는 상기 전자 장치 101의 통신 주소 정보에 기반하여 통신(예, BT) 연결될 수 있다. In a network environment 100 according to one embodiment, the accessory device 108 may be communicated (e.g., BT) based on the communication address information of the electronic device 101.

상기 액세서리 장치 108는 상기 전자 장치 101의 구성 요소들(예: 상기 입출력 인터페이스 140, 또는 상기 통신 인터페이스 160 등)과 동일한 구성요소들을 전부 또는 일부 포함할 수 있다. The accessory device 108 may include all or some of the same components as the components of the electronic device 101 (e.g., the input / output interface 140, or the communication interface 160).

이하, 본 발명의 다양한 실시예에서 액세서리 장치 108는 키보드 장치인 것으로 설명하기로 한다. Hereinafter, in various embodiments of the present invention, the accessory device 108 will be described as being a keyboard device.

한 실시예에 따른 키보드 장치는 전자 장치 101를 가로, 세로, 앞, 및 뒤 중 어느 하나의 방향으로 거치시킬 수 있는 구조일 수 있으나, 이에 한정하는 것은 아니다. The keyboard device according to one embodiment may be a structure capable of mounting the electronic device 101 in any one of the horizontal, vertical, front, and rear directions, but is not limited thereto.

한 실시예에 따른 키보드 장치는, 적어도 두 개 이상의 위치에 서로 다른 자석 값을 갖는 자석 부재를 포함하는 구조일 수 있으나, 이에 한정하는 것은 아니다. The keyboard device according to one embodiment may be a structure including a magnet member having different magnet values at at least two positions, but is not limited thereto.

한 실시예에 다른 키보드 장치는, 커버형 키보드 및 거치 케이스를 포함하며, 커버형 키보드 및 거치 케이스는 대칭형의 자석 부재를 이용해 결합되는 구조일 수 있으나, 이에 한정하는 것은 아니다. In one embodiment, the other keyboard device includes a cover-type keyboard and a mount case, and the cover-type keyboard and the mount case may be structured to be coupled using a symmetrical magnet member, but the present invention is not limited thereto.

도 2는 다양한 실시예에 따른 전자 장치(예, 전자 장치 101)의 장치 연결 제어 모듈의 블록도 200를 도시한다. 2 shows a block diagram 200 of a device connection control module of an electronic device (e.g., electronic device 101) according to various embodiments.

도 2를 참조하면, 상기 전자 장치 101의 상기 장치 연결 제어 모듈 170은 센서 정보 수집 모듈 210, 상태 판단 모듈 220, 및 연결 모드 변경 모듈 230을 포함할 수 있다, Referring to FIG. 2, the device connection control module 170 of the electronic device 101 may include a sensor information collection module 210, a status determination module 220, and a connection mode change module 230.

상기 센서 정보 수집 모듈 210은 상기 센서 모듈 190을 통해 센서 정보를 수집할 수 있다. 한 실시예에 따르면, 상기 센서 정보 수집 모듈 210은 미리 설정된 주기 단위로 상기 센서 모듈 190을 웨이크업 하여 센서 정보를 수집할 수 있다. The sensor information collection module 210 may collect sensor information through the sensor module 190. According to one embodiment, the sensor information collection module 210 may collect sensor information by waking up the sensor module 190 in a predetermined cycle.

상기 상태 판단 모듈 220은 센서 정보에 기반하여 상기 전자 장치 101의 상태(status)를 판단하고, 상기 액세서리 장치 108에 거치되는 거치 방향을 판단할 수 있다. 상기 전자 장치 101의 상태는 장치의 자세, 움직임, 기울기, 동작 등을 포함할 수 있다. The status determination module 220 may determine the status of the electronic device 101 based on the sensor information and determine the mounting direction of the accessory device 108. The state of the electronic device 101 may include an attitude, a movement, a tilt, an operation, and the like of the apparatus.

한 실시예에 따르면, 상기 상태 판단 모듈 220은 디스플레이 화면이 상측으로 배치된 자세인지 여부, 상기 전자 장치 101가 지면과 기 정의된 각도 범위 이내의 수직 상태로 배치된 자세인지 여부, 홈 버튼이 기 정의된 위치에 배치되는지 여부, 상기 전자 장치 101의 기울기값이 기 정의된 범위 이내인지 여부, 상기 전자 장치 101의 정면(예, 디스플레이 화면을 기준)에 생체 반응이 있는지 여부, 및 상기 액세서리 장치 108를 통해 수신되는 자석값이 기 정의된 값에 대응되는지 여부 중 적어도 하나의 동작을 수행하여 상기 전자 장치 101의 상태를 판단할 수 있다. According to one embodiment, the status determination module 220 may determine whether the display screen is positioned on the upper side, whether the electronic device 101 is positioned vertically within a predetermined angle range with the ground, Whether the tilt value of the electronic device 101 is within a predefined range, whether there is a biological response to the front of the electronic device 101 (e.g., based on the display screen), and whether the accessory device 108 Or whether or not the magnet value received through the antenna 101 corresponds to a predefined value.

상기 연결 모드 변경 모듈 230은, 상기 상태 판단 모듈 220을 통해 상기 전자 장치 101가 상기 액세서리 장치 108에 거치된 거치 방향이 결정되면, 거치 방향에 따라 통신 모듈의 온/ 오프를 제어할 수 있다. The connection mode change module 230 can control on / off of the communication module according to the mounting direction when the mounting direction in which the electronic device 101 is mounted on the accessory device 108 is determined through the status determination module 220.

본 발명의 다양한 실시예에 따른 상기 전자 장치 101는, 상기 액세서리 장치 108와 무선 연결되는 통신 인테페이스(예, 통신 모듈)160; 상기 전자 장치 101의 자세 정보를 수집하는 센서 모듈 190; 상기 센서 모듈 190을 통해 수집되는 센서 정보를 기반으로 상기 전자 장치 101가 상기 액세서리 장치 108에 거치되는 거치 방향을 판단하고, 상기 전자 장치 101의 거치 방향에 따라 상기 액세서리 장치 108와의 통신 연결 동작의 온/오프를 제어하는 프로세서 120(상기 장치 연결 제어 모듈 170을 포함) 를 포함할 수 있다. The electronic device 101 according to various embodiments of the present invention includes a communication interface (e.g., communication module) 160 wirelessly connected to the accessory device 108; A sensor module 190 for collecting attitude information of the electronic device 101; The controller 101 determines the direction in which the electronic device 101 is mounted on the accessory device 108 based on the sensor information collected through the sensor module 190 and determines whether the communication connection operation with the accessory device 108 And a processor 120 (including the device connection control module 170) for controlling the ON / OFF.

상기 프로세서 120는, 상기 전자 장치101 의 디스플레이 화면이 제1 방향으로 거치된 경우 상기 통신 인터페이스 160을 턴 온하여 상기 액세서리 장치108 와 통신 연결하고, 상기 제1 방향과 반대되는 제2 방향으로 거치된 경우 상기 통신 인터페이스 160를 턴 오프하도록 제어할 수 있다. When the display screen of the electronic device 101 is mounted in the first direction, the processor 120 turns on the communication interface 160 and communicates with the accessory device 108. In the second direction opposite to the first direction, The communication interface 160 may be turned off.

상기 센서 모듈 190은, 중력 센서, 지자기 센서, 근접 센서, 적외선 센서, 마그네틱 센서, 자이로 센서 또는 생체 센서 중 적어도 하나를 포함할 수 있다. The sensor module 190 may include at least one of a gravity sensor, a geomagnetic sensor, a proximity sensor, an infrared sensor, a magnetic sensor, a gyro sensor, or a biosensor.

상기 액세서리 장치108 는 상기 전자 장치101 를 가로, 세로, 앞 및 뒤 중 어느 하나의 방향으로 거치될 수 있는 구조이고, 상기 제1 방향 및 제2 방향은 앞 및 뒤 방향 중 적어도 하나일 수 있다. The accessory device 108 is structured such that the electronic device 101 can be mounted in any one of a horizontal direction, a vertical direction, a front direction and a rear direction, and the first direction and the second direction may be at least one of a front direction and a rear direction.

상기 액세서리 장치 108는, 적어도 두 개 이상의 위치에 서로 다른 자석 값을 갖는 자석 부재를 포함하며, 상기 프로세서 120는, 상기 액세서리 장치로부터 센싱되는 두 개 이상의 자석 값에 따라 상기 전자 장치 101의 거치 상태를 판단할 수 있다. The accessory device 108 includes a magnet member having a different magnet value in at least two positions and the processor 120 is configured to determine a mounting state of the electronic device 101 according to two or more magnet values sensed from the accessory device It can be judged.

도 3은 본 발명의 다양한 실시예에 따른 전자 장치(도 1의 전자 장치 100)에서 액세서리 장치와의 연결 제어 방법을 설명하기 위한 흐름도이다. 3 is a flow chart illustrating a method of controlling connection with an accessory device in an electronic device (electronic device 100 of FIG. 1) according to various embodiments of the present invention.

도 3을 참조하면, 단계 310에서 도 1의 전자 장치 101는 대기 모드로 운용될 수 있다. 여기서, 대기 모드는 센서 모듈로부터 일정한 시간 단위로 센서 신호를 수신하기 위한 모드를 의미한다. Referring to FIG. 3, in step 310, the electronic device 101 of FIG. 1 may be operated in a standby mode. Here, the standby mode means a mode for receiving a sensor signal from the sensor module at a predetermined time interval.

한 실시예에 따르면, 전자 장치 101는 상기 센서 모듈190 로 부터 센서 신호의 수신을 대기하기 위해, 메인 프로세서 및 서브 프로세서를 포함할 수 있다. 이 경우, 메인 프로세서가 액티브 모드 또는 슬립 모드인 경우에도 서브 프로세서는 상기 센서 모듈 190로부터 센서 신호를 수신하고, 센서 신호를 이용하여 상기 전자 장치 101의 상태 예컨대, 장치의 자세, 움직임, 기울기, 동작 등을 검출할 수 있다. According to one embodiment, the electronic device 101 may include a main processor and a sub-processor to await receipt of a sensor signal from the sensor module 190. In this case, even when the main processor is in the active mode or the sleep mode, the sub-processor receives the sensor signal from the sensor module 190 and uses the sensor signal to detect the state of the electronic device 101, Can be detected.

단계 320에서, 상기 전자 장치 101는 센서 정보들을 기반으로 상기 전자 장치 101가 상기 액세서리 장치 108에 거치된 거치 방향을 판단할 수 있다. In step 320, the electronic device 101 can determine the mounting direction in which the electronic device 101 is mounted on the accessory device 108 based on sensor information.

한 실시예에 따르면, 상기 전자 장치 101는 디스플레이 화면이 상측으로 배치된 자세(예, 지면과 수평 시 화면이 위를 향하게 놓여져 있는 경우)인지를 판단하고, 이후 상기 전자 장치 101는 화면이 상측으로 배치된 자세에서 홈 버튼의 배치 위치를 판단하여 상기 전자 장치 101의 거치 방향을 판단할 수 있다. 예를 들면, 상기 전자 장치 101는 기준방향(예; 안테나 방향)을 설정하고, 기준 방향을 기준으로 상기 전자 장치 101의 홈 버튼의 확인할 수 있다. 예컨대, 사용자가 상기 전자 장치 101의 정면(예, 디스플레이 화면이 보이는 상태)을 바라보는 거치 상태에는 홈 버튼의 위치가 제1 측에 위치되나, 사용자가 상기 전자 장치 101의 후면을 바라보는 거치 상태에는 홈 버튼의 위치가 제2 측에 위치되므로, 홈 버튼의 위치에 따라 상기 전자 장치 101의 거치 방향을 판단할 수 있다. According to one embodiment, the electronic device 101 determines whether the display screen is oriented upward (for example, when the screen is horizontally and horizontally oriented), and then the electronic device 101 displays a screen It is possible to determine the placement direction of the electronic device 101 by determining the placement position of the home button in the arranged posture. For example, the electronic device 101 may set a reference direction (e.g., antenna direction) and identify the home button of the electronic device 101 based on the reference direction. For example, when the user looks at the front of the electronic device 101 (e.g., the state where the display screen is visible), the position of the home button is located on the first side, but when the user looks at the rear side of the electronic device 101 Since the position of the home button is located on the second side, the mounting direction of the electronic device 101 can be determined according to the position of the home button.

한 실시예에 따르면, 상기 전자 장치 101는 상기 액세서리 장치 108에서 적어도 두 개의 서로 다른 값을 가지는 자석값이 센싱되는 경우, 서로 다른 값을 가지는 자석값에 따라 상기 전자 장치 101의 거치 방향을 판단할 수 있다. 예를 들면, 상기 액세서리 장치 108의 제1 위치에 'A' 의 자석값을 갖는 제1 자석 부재가 구비되고, 제2 위치에 'A' 와는 다른 'B'의 자석값을 갖는 제2 자석 부재를 구비할 수 있다. 이 경우, 상기 전자 장치 101는 상기 액세서리 장치 108에 정면을 바라보고 거치되는지는 경우, 위치에 따라 A-B의 자석값으로 센싱되는 반면에, 후면을 바라보고 거치되는 경우, B-A의 자석값으로 센싱될 수 있다. 상기 전자 장치 101는 A-B값으로 센싱되는 경우는 제1 방향으로 거치되는 경우로 판단하고, B-A 값으로 센싱되는 경우는 제2 방향으로 거치되는 경우로 판단할 수 있다. According to one embodiment, when the magnet value of at least two different values is sensed in the accessory device 108, the electronic device 101 determines the mounting direction of the electronic device 101 according to magnet values having different values . For example, a first magnet member having a magnet value of 'A' is provided at a first position of the accessory device 108, and a second magnet member having a magnet value of 'B' . In this case, when the electronic device 101 is viewed and mounted on the accessory device 108, it is sensed by the magnet value of AB according to the position, while when it is viewed from the rear face, it is sensed as the magnet value of BA . The electronic device 101 may determine that it is stationed in the first direction when it is sensed at the A-B value, and may determine that it is stationed in the second direction when it is sensed at the B-A value.

단계 330에서 상기 전자 장치 101는 상기 전자 장치 101의 거치 방향이 상기 액세서리 장치 108와 바라보는 제1 방향인지를 판단한다. 제1 방향은 사용자가 디스플레이 화면을 바라볼 수 있는 상태로 거치된 경우의 방향을 의미하며, 키보드와 같은 상기 액세서리 장치 108가 디스플레이 화면에 놓여져 있는 상태일 수 있다. At step 330, the electronic device 101 determines whether the mounting direction of the electronic device 101 is the first direction facing the accessory device 108 . The first direction is a direction when the user is placed in a state where the user can see the display screen, and the accessory device 108 such as a keyboard may be placed on the display screen.

단계 340에서 상기 전자 장치 101는 제1 방향으로 거치된 경우, 통신 모드를 변경하여 키보드 모드로 운용한다. 단계 350에서 상기 전자 장치 101는 키보드 모드로 운용 시 상기 액세서리 장치 108와 통신 연결을 위해 통신 모듈을 턴 온 하고, 상기 액세서리 장치 108와의 연결 동작을 수행할 수 있다. In step 340, when the electronic device 101 is mounted in the first direction, the communication mode is changed to operate in the keyboard mode. In operation 350, the electronic device 101 may turn on the communication module for communication connection with the accessory device 108 when operating in the keyboard mode, and may perform a connection operation with the accessory device 108.

한 실시예에 따르면, 상기 전자 장치 101는 상기 액세서리 장치 108와 근거리 통신 연결을 수행할 수 있다. 근거리 통신은 블루투스 통신일 수 있으나, 이에 한정하는 것은 아니다. 이를 위해 상기 전자 장치 101는 상기 액세서리 장치 108를 검색 (inquiry)하고, 검색된 상기 액세서리 장치 108와 연결 요청(page)하고 페어링 과정을 수행하여 상기 액세서리 장치 108와 연결될 수 있다. 여기서, 여기서, 페어링은 마스터와 슬레이브 간의 상호 보안에 관한 정보를 확인하는 과정으로, 연결 장치 간 핀 코드(PIN code) 정보가 동일할 경우, 페어링 연결될 수 있다. According to one embodiment, the electronic device 101 may perform a short-range communication connection with the accessory device 108. The short-range communication may be, but is not limited to, Bluetooth communication. To this end, the electronic device 101 can be connected to the accessory device 108 by inquiring the accessory device 108, performing a page-pairing process with the accessed accessory device 108, and performing a pairing process. Here, the pairing is a process of confirming information about the mutual security between the master and the slave, and can be connected by pairing when the PIN code information between the connected devices is the same.

한편, 단계 360에서 상기 전자 장치 101의 거치 방향이 제1 방향과 반대되는 제2 방향인지를 판단하고, 단계 370에서 상기 전자 장치 101는 거치 방향이 제2 방향인 경우, 타블렛 모드로 운용한다. 예컨대, 제2 방향은 사용자가 상기 전자 장치 101의 후면을 바라보고 있는 상태로 거치된 경우의 방향을 의미한다. In step 360, it is determined whether the mounting direction of the electronic device 101 is the second direction opposite to the first direction. In step 370, the electronic device 101 operates in the tablet mode when the mounting direction is the second direction. For example, the second direction refers to the direction in which the user is stationary while looking at the rear surface of the electronic device 101. [

도 4는 본 발명의 다양한 실시예에 따른 상기 전자 장치 101에서 상기 액세서리 장치 108와의 연결 제어 방법을 도시한 흐름도이다. 4 is a flowchart showing a method of controlling connection with the accessory device 108 in the electronic device 101 according to various embodiments of the present invention.

도 4를 참조하면, 한 실시예에 따른 도 1의 상기 전자 장치 101는 단계 410에서 대기 모드로 운용될 수 있다. 상기 전자 장치 101는 대기 모드로 운용 시 센서 모듈을 통해 상기 전자 장치 101의 상태와 관련된 센서 정보를 수집할 수 있다. Referring to FIG. 4, the electronic device 101 of FIG. 1 according to one embodiment may be operated in a standby mode at step 410. The electronic device 101 may collect sensor information related to the state of the electronic device 101 through a sensor module when operating in a standby mode.

단계 420에서 상기 전자 장치 101는 디스플레이의 화면이 위를 향하고 있는 상측 방향으로 놓여져 있는지 여부를 결정한다. In step 420, the electronic device 101 determines whether the screen of the display is placed in the upward direction facing upward.

한편, 사용자는 상기 전자 장치 101를 디스플레이의 화면이 위를 향하게 놓거나, 상기 전자 장치 101를 뒤집어 디스플레이의 화면을 아래를 향하게 놓을 수 있다. 이러한 경우, 상기 전자 장치 101는 단말의 자세, 위치에 따라 센서 모듈로부터 수신되는 정보가 다를 수 있다. 예를 들면, 자이로 센서를 사용하는 경우, x축 값과 y축 값 및 z축 값은 롤(Roll), 피치(pich), 요(yaw) 값에 따라 결정되며, 상기 전자 장치 101의 자세, 위치에 따라 자이로 센서 값들이 서로 다를 수 있으며, 센서 값들을 통해 상기 전자 장치 101의 자세, 위치, 움직임들의 상태를 확인할 수 있다. On the other hand, the user can place the electronic device 101 on the screen with the screen facing up, or turn the electronic device 101 upside down so that the screen of the display faces downward. In this case, the information received from the sensor module may differ depending on the position and position of the terminal. For example, when a gyro sensor is used, the x-axis value, the y-axis value, and the z-axis value are determined according to the roll, pitch, and yaw values, The gyro sensor values may be different from each other depending on the position, and the state of the posture, position, and movements of the electronic device 101 can be confirmed through the sensor values.

한 실시예에서, 상기 전자 장치 101는 z축 센서 값을 기반으로 디스플레이 화면이 상측 방향인지 하측 방향인지를 판단할 수 있다. 예를 들면, 상기 전자 장치 101는 상기 전자 장치 101가 지면과 수평인 상태에서 z축이 (+)인 경우에는 디스플레이의 화면이 위를 향하고 있다고 판단하고, z축이 (-)인 경우에는 디스플레이의 화면이 엎어져 아래를 향하고 있다고 판단할 수 있다. In one embodiment, the electronic device 101 may determine whether the display screen is upward or downward based on the z-axis sensor value. For example, the electronic device 101 determines that the screen of the display is oriented upward when the electronic device 101 is horizontally aligned with the ground, and when the z-axis is negative (-), It can be judged that the screen of the screen is turned upside down.

상기 전자 장치 101는 디스플레이 화면이 상측 방향으로 놓여져 있다고 판단되면, 사용자가 상기 전자 장치 101를 사용할 의사가 있음으로 간주하여 단계 430진행하고, 디스플레이의 화면이 하측 방향으로 뒤집어 놓여져 있다고 판단되면, 사용자가 상기 전자 장치 101를 사용할 의사가 없음으로 간주하고 단계 410으로 복귀할 수 있다 If it is determined that the user wants to use the electronic device 101, the electronic device 101 proceeds to step 430. If it is determined that the screen of the display device is turned upside down, It is regarded that there is no intention to use the electronic device 101, and the process may return to step 410

단계 430에서 상기 전자 장치 101는 디스플레이 화면이 상측 방향으로 놓여져 있다고 판단되면, 홈 버튼의 위치가 제1 방향에 위치하는지를 판단한다. 여기서, 제1 방향은 좌우 방향 중 적어도 하나일 수 있다.If it is determined in step 430 that the display screen is located on the upper side, the electronic device 101 determines whether the position of the home button is located in the first direction. Here, the first direction may be at least one of the left and right directions.

한 실시예에 따르면, 상기 전자 장치 101는 기준 방향을 설정한 후, 기준 방향의 배치 위치에 따라 상기 전자 장치 101의 홈 버튼의 위치를 판단할 수 있다. 예를 들면, 세로 모드 시의 안테나 방향을 기준 방향으로 설정한 경우, 단말의 자세가 가로 모드로 변경되면, 센서 정보를 기반으로 안테나의 X 축이 (+) 방향일 경우에는 홈 버튼의 방향은 (-)이고, 안테나의 X축이 (-)방향일 경우에는 홈 버튼의 방향은 (+)일 수 있다. 상기 전자 장치 101는 단말의 자세에 따른 기준값을 정의하고, 수집된 센서 정보와 매칭시켜 홈 버튼의 위치를 판단할 수 있다. According to one embodiment, after setting the reference direction, the electronic device 101 can determine the position of the home button of the electronic device 101 according to the position of the reference direction. For example, when the orientation of the antenna in the vertical mode is set as the reference direction, and the orientation of the terminal is changed to the landscape mode, when the X axis of the antenna is the (+) direction based on the sensor information, (-) and the direction of the home button is (+) when the X-axis of the antenna is in the negative direction. The electronic device 101 may define a reference value according to the attitude of the terminal, and may determine the position of the home button by matching with the collected sensor information.

상기 전자 장치 101는 홈 버튼이 제1 방향에 위치한 경우, 단계 440로 진입하여 단말의 움직임이 있는지를 결정한다. 한 실시예에서 상기 전자 장치 101는 센서 모듈을 통해 입력된 센서값이 X축, Y축, Z축에 대한 분산이 (0,0,0)에 가깝고, 이러한 상태가 기 정의된 시간 유지될 경우, 상기 전자 장치 101의 움직임이 없는 것으로 판단할 수 있다. 한편, 상기 전자 장치 101는 상기 전자 장치 101의 움직임이 있는 것으로 판단되면, 상기 액세서리 장치 108에 거치되지 않은 상태로 판단하고, 단계 410로 복귀하여 대기 모드로 진행한다. If the home button is located in the first direction, the electronic device 101 proceeds to step 440 and determines whether there is movement of the terminal. In one embodiment, the electronic device 101 is configured such that when the sensor value inputted through the sensor module is close to (0, 0, 0) for the X axis, Y axis, and Z axis, , It can be determined that there is no movement of the electronic device 101. On the other hand, if it is determined that there is movement of the electronic device 101, the electronic device 101 determines that the accessory device 108 is not stationary, and returns to step 410 to proceed to the standby mode.

단계 445에서 상기 전자 장치 101는 단말의 움직임이 없다고 판단되면, 상기 전자 장치 101가 지면과 이루는 각도가 기 설정된 범위 이내에 포함되는지를 판단한다. 예컨대, 상기 전자 장치 101는 상기 액세서리 장치 108에 거치될 경우, 지면과 일정 각도를 이루면서 거치될 수 있다. 예를 들면, 기 설정된 범위는 디스플레이 화면이 정면을 바라본 상태에서 지면과 90도 각도 내지 180도 이하의 범위로 설정될 수 있으나, 이에 한정하는 것은 아니다. 상기 전자 장치 101는 상기 전자 장치 101의 거치 각도가 기 설정된 범위에 포함되는 경우, 키보드를 통해 타이핑 입력하거나, 화면을 바라보기 위한 최적화된 각도로 거치된 상태일 수 있다. If it is determined in step 445 that there is no movement of the terminal, the electronic device 101 determines whether the angle between the electronic device 101 and the ground is within a predetermined range. For example, when the electronic device 101 is mounted on the accessory device 108, it may be mounted at an angle with the ground. For example, the predetermined range may be set in a range of 90 degrees to 180 degrees with the ground in a state where the display screen is viewed from the front, but the present invention is not limited thereto. The electronic device 101 may be in a state of being typed at a keyboard or in an optimized angle for viewing a screen when the mounting angle of the electronic device 101 is included in a predetermined range.

단계 450에서 상기 전자 장치 101는 지면과 이루는 각도가 기 설정된 범위 이내인 경우, 상기 전자 장치 101의 디스플레이 화면은 상기 액세서리 장치 108의 키보드와 마주보게 거치된 상태인 경우로 간주하고, 키패드 모드로 운용한다. 단계 445에서 상기 전자 장치 101는 키패드 모드로 운용하기 위해, 상기 액세서리 장치 108와 통신 연결을 수행한다. 이후, 상기 전자 장치 101는 상기 액세서리 장치 108와 데이터 송수신을 통해 상기 액세서리 장치 108로부터 수신되는 입력신호에 응답하여 상기 전자 장치 101를 제어할 수 있다. 이후, 상기 전자 장치 101는 단계 490으로 진행하여 단말의 거치 상태가 변경되는지를 판단한다. In step 450, when the angle between the electronic device 101 and the ground is within a predetermined range, the display screen of the electronic device 101 is regarded as being in a state of being opposed to the keyboard of the accessory device 108, do. In step 445, the electronic device 101 performs a communication connection with the accessory device 108 for operation in a keypad mode. Thereafter, the electronic device 101 can control the electronic device 101 in response to an input signal received from the accessory device 108 through data transmission / reception with the accessory device 108. Thereafter, the electronic device 101 proceeds to step 490 to determine whether the stationary state of the terminal is changed.

한편, 단계 460에서 상기 전자 장치 101는 지면과의 각도가 기 설정된 범위를 벗어난 경우, 상기 전자 장치 101는 사용자가 화면을 통해 정보를 확인할 수 없는 경우로 간주하고, 상기 액세서리 장치 108와 통신 연결을 대기할 수 있다. 예를 들면, 통신 연결 대기는 상기 전자 장치 101와 데이터 간의 연결 링크는 설정되었으나, 데이터의 송수신이 이루어지지 않은 상태를 의미할 수 있다. 연결 대기 상태의 상기 전자 장치 101는 445 단계로 복귀하여 지면과의 각도가 기 설정된 범위 이내로 진입하는지를 판단할 수 있다. On the other hand, if it is determined in step 460 that the angle of the electronic device 101 with respect to the ground is out of a predetermined range, the electronic device 101 regards the case where the user can not confirm the information on the screen, You can wait. For example, the communication connection wait may mean that a connection link is established between the electronic device 101 and the data, but no data is transmitted or received. The electronic device 101 in the connection wait state returns to step 445 and determines whether the angle with the ground falls within a predetermined range.

한편, 단계 430에서 홈 버튼이 제1 방향에 위치하지 않는 경우, 단계 470으로 진행하여 홈 버튼이 제2 방향에 위치하는 지를 판단한다. 여기서, 제2방향은 좌우 방향 중 제1 방향과 다른 방향일 수 있다. 단계 475에서 상기 전자 장치 101는 홈 버튼이 제2 방향에 위치된 경우, 키보드를 사용할 의사가 없음으로 간주하고, 타블렛 모드로 운용한다. 타블렛 모드로 운용 시 상기 전자 장치 101는 통신 모듈을 턴 오프(turn off) 상태로 유지할 수 있다. On the other hand, if the home button is not located in the first direction in step 430, the process proceeds to step 470 to determine whether the home button is located in the second direction. Here, the second direction may be a direction different from the first direction of the left and right direction. In step 475, when the home button is located in the second direction, the electronic device 101 assumes that the user does not intend to use the keyboard, and operates in the tablet mode. When operating in the tablet mode, the electronic device 101 can maintain the communication module in a turn off state.

한 실시예에서, 상기 전자 장치 101는 상기 액세서리 장치 108와 통신 연결되어 통신 모듈이 턴 온 상태이면, 통신 모듈을 턴 오프하여 상기 액세서리 장치 108와의 통신 연결을 해제할 수 있다. In one embodiment, the electronic device 101 is communicatively coupled with the accessory device 108 to turn off the communication module and turn off the communication connection with the accessory device 108 if the communication module is turned on.

단계 480에서 상기 전자 장치 101는 홈 버튼의 위치가 제1 방향 또는 제2 방향에 위치하지 않은 경우(예, 홈 버턴의 위치가 상측 또는 하측에 배치)이면, 상기 전자 장치 101가 세로 모드의 상태로 거치된 것으로 결정하고, 단계 490으로 진행하여 상기 전자 장치 101의 거치 상태가 변경되는지를 판단한다. 단계 490에서 상기 전자 장치 101는 상기 전자 장치 101의 거치 상태가 변경되면, 단계 410로 복귀한다. If the position of the home button is not located in the first direction or the second direction (e.g., the position of the home button is located on the upper side or the lower side) in step 480, the electronic device 101 is in the state of the vertical mode And proceeds to step 490 to determine whether the mounting state of the electronic device 101 is changed. In step 490, the electronic device 101 returns to step 410 when the mounting state of the electronic device 101 is changed.

한 실시예에 따르면, 상기 액세서리 장치 108가 가로, 세로, 앞 및 뒤 중 어느 하나의 방향으로 거치될 수 있는 구조인 경우, 단계 480 은 생략될 수 있다. According to one embodiment, step 480 may be omitted if the accessory device 108 is of a structure that can be mounted in either the horizontal, vertical, front, or rear direction.

다양한 실시예에 따른 상기 전자 장치 101에서 상기 액세서리 장치 108와의 연결 제어 방법에 있어서, 센서 정보를 기반으로 상기 액세서리 장치 108에 상기 전자 장치 101가 거치되는 거치 방향을 판단하는 동작; 및 상기 액세서리 장치 108와 상기 전자 장치 101의 거치 방향에 따라 상기 액세서리 장치 108와의 통신 연결 온/오프를 제어하는 동작을 포함할 수 있다. A method of controlling a connection with the accessory device (108) in the electronic device (101) according to various embodiments, the method comprising: determining a loading direction in which the electronic device (101) is mounted on the accessory device (108) based on sensor information; And controlling the communication connection ON / OFF between the accessory device 108 and the accessory device 108 in accordance with the mounting direction of the electronic device 101. [

상기 통신 연결 온/오프를 제어하는 동작은, 상기 전자 장치 101의 디스플레이 화면이 제1 방향으로 거치된 경우 상기 전자 장치 101의 통신 모듈을 턴 온하여 상기 액세서리 장치 108와 통신 연결하고, 상기 제1 방향과 반대되는 제2 방향으로 거치된 경우 상기 전자 장치 101의 통신 모듈을 턴 오프하도록 제어할 수 있다. The operation of controlling the communication connection on / off may be such that when the display screen of the electronic device 101 is mounted in the first direction, the communication module of the electronic device 101 is turned on to communicate with the accessory device 108, The communication module of the electronic device 101 can be controlled to be turned off.

상기 거치 방향을 판단하는 동작은; 센서 모듈로부터 미리 설정된 주기 단위로 센서 신호를 수신하는 동작을 더 포함할 수 있다. The operation of determining the mounting direction includes: And receiving the sensor signal from the sensor module in a predetermined cycle unit.

상기 센서 정보는, 중력 센서 정보, 지자기 센서 정보, 근접 센서 정보, 적외선 센서 정보, 마그네틱 센서 정보, 자이로 센서 정보 또는 생체 센서 정보 중 적어도 하나를 포함할 수 있다. The sensor information may include at least one of gravity sensor information, geomagnetic sensor information, proximity sensor information, infrared sensor information, magnetic sensor information, gyro sensor information, and biometric sensor information.

도 5 및 도 6은 본 발명의 다양한 실시예에 따라 상기 전자 장치 101의 상기 액세서리 장치 108와의 거치 방향을 설명하기 위한 예시도이다. 5 and 6 are illustrations for explaining the mounting direction of the electronic device 101 with the accessory device 108 according to various embodiments of the present invention.

도 5를 참조하면, 한 실시예에 따른 전자 장치 101는 상기 액세서리 장치 108 예컨대, 키보드 장치 510될 수 있다. 여기서, 전자 장치 101는 상기 액세서리 장치 108와 물리적으로 연결될 수 있으며, 무선 통신을 통해 연결될 수도 있다.Referring to FIG. 5, an electronic device 101 according to one embodiment may be the accessory device 108, for example, a keyboard device 510. Here, the electronic device 101 may be physically connected to the accessory device 108, or may be connected via wireless communication.

키보드 장치 510는 전자 장치 101를 거치시킬 수 있는 거치 부재를 포함할 수 있다. 거치 부재는 키보드 장치 510와 일체로 구성되거나, 별도의 장치로 구성될 수도 있다. 전자 장치 101는 키보드 장치 510의 거치 부재를 통해 거치될 수 있다. The keyboard device 510 may include a mounting member capable of mounting the electronic device 101. The mounting member may be integrally formed with the keyboard device 510 or may be a separate device. The electronic device 101 may be mounted via a mounting member of the keyboard device 510.

본 발명의 실시예에 따른 전자 장치 101는 키보드 장치 510에 거치되는 거치 방향에 따라 키보드 장치 510와 통신 연결하거나, 통신 연결을 해제할 수 있다. 도 5 및 도 6에 도시된 키보드 장치는 본 발명의 구성을 설명하기 위해 도시된 예시일 뿐이며, 상기 전자 장치 101를 거치할 수 있는 키보드 장치일 경우, 본 발명의 모든 구성이 적용 가능하다. The electronic device 101 according to the embodiment of the present invention can communicate with the keyboard device 510 or release the communication connection according to the mounting direction of the keyboard device 510. [ The keyboard device shown in Figs. 5 and 6 is only an example shown for explaining the configuration of the present invention, and in the case of a keyboard device capable of mounting the electronic device 101, all the configurations of the present invention are applicable.

도 5에 도시된 바와 같이, 한 실시예에 따른 키보드 장치 510는 커버형 키보드 장치와 상기 전자 장치 101를 거치시키기 위한 거치 케이스로 구성될 수 있다. 도 5에 도시된 바와 같이, 커버형 키보드 장치 510는 키보드가 배치된 제1 면508과, 키보드가 배치되지 않은 제2 면 502및 제1 면과 제2 면 사이의 중앙 부분에 거치 케이스와 결합을 위한 탈착 부재를 포함할 수 있다, 거치 케이스는 상기 전자 장치 101를 고정시키는 구성이며, 거치 케이스의 일측에 커버형 키보드 장치의 결합을 위한 고정 부재를 포함할 수 있다. 여기서, 커버형 키보드 장치의 탈착 부재와, 거치 케이스의 고정 부재는 마그네틱(magnetic) 접촉을 통해 물리적으로 연결될 수 있다. As shown in FIG. 5, the keyboard device 510 according to one embodiment may be configured as a cover-type keyboard device and a mounting case for mounting the electronic device 101. 5, the cover-type keyboard device 510 includes a first surface 508 on which a keyboard is disposed, a second surface 502 on which the keyboard is not disposed, and a second surface 502 on which a keyboard is disposed, The mounting case may be configured to fix the electronic device 101 and may include a fixing member for engaging the cover-type keyboard device on one side of the mounting case. Here, the detachment member of the cover-type keyboard device and the fixing member of the mounting case can be physically connected through magnetic contact.

도 5에 도시된 바와 같이, 전자 장치 101는 키보드 장치 510의 디스플레이 화면이 제1 면 508을 바라보는 제1 방향으로 키보드 장치에 거치될 수 있다. 예를 들면, 전자 장치 101는 센서 모듈을 통해 센서 정보를 수집하여 거치 방향을 판단할 수 있다. 전자 장치 101는 제1 방향으로 키보드 장치 510에 거치된 경우, 키보드를 사용할 의사가 있다고 간주하고, 키보드 장치 510와의 근거리 통신(예, BT)을 연결하여 키보드 모드로 운용할 수 있다. As shown in FIG. 5, the electronic device 101 may be mounted on the keyboard device in a first direction in which the display screen of the keyboard device 510 faces the first side 508. For example, the electronic device 101 can collect the sensor information through the sensor module and determine the mounting direction. When the electronic device 101 is mounted on the keyboard device 510 in the first direction, it is considered that the user intends to use the keyboard and can operate in a keyboard mode by connecting a short distance communication (e.g., BT) with the keyboard device 510. [

반면에, 전자 장치 101는 도 6에 도시된 바와 같이, 전자 장치 101의 디스플레이 화면이 제1 방향과 반대의 제2 방향으로 키보드 장치 510에 거치될 수 있다. 도 601은 제2 방향으로 거치된 전자 장치 101의 정면도이며, 602는 제2 방향으로 거치된 전자 장치 101의 후면도이다. 예컨대, 도 6의 전자 장치 101는 키보드가 구비된 제1 면508과 전자 장치의 후면이 마주보고 있으므로, 도 5의 전자 장치101의 거치 상태와 반대의 방향으로 거치된 상태이다. 전자 장치 101는 도 6에 도시된 바와 같이, 전자 장치101의 화면이 제2 방향으로 키보드 장치510에 거치될 경우, 키보드를 사용할 의사가 없다고 간주하고, 타블렛 모드로 운용할 수 있다. On the other hand, the electronic device 101 can be mounted on the keyboard device 510 in a second direction opposite to the first direction, as shown in Fig. 601 is a front view of the electronic device 101 mounted in the second direction and 602 is a rear view of the electronic device 101 mounted in the second direction. For example, the electronic device 101 of FIG. 6 is mounted in a direction opposite to the mounting state of the electronic device 101 of FIG. 5 because the first surface 508 provided with the keyboard faces the rear surface of the electronic device. 6, when the screen of the electronic device 101 is placed on the keyboard device 510 in the second direction, the electronic device 101 can assume that the user does not intend to use the keyboard, and can operate in the tablet mode.

이와 같이, 본 발명의 다양한 실시예에 따른 상기 전자 장치 101는 악세서리 장치의 거치 방향에 따라 상기 액세서리 장치 108와의 연결 상태를 제어함으로써, 상기 액세서리 장치 108와의 연결을 위해 요구되는 사용자의 입력을 생략할 수 있다. 사용자는 상기 액세서리 장치 108의 거치 방향을 변경해줌으로써, 간편하게 상기 액세서리 장치 108와의 연결을 조작할 수 있다. Thus, the electronic device 101 according to various embodiments of the present invention controls the connection state with the accessory device 108 according to the orientation of the accessory device, thereby omitting the user's input required for connection with the accessory device 108 . The user can manipulate the connection with the accessory device 108 simply by changing the mounting direction of the accessory device 108. [

도 7은 다양한 실시예들에 따른 전자 장치 701의 블록도 700를 도시한다. 상기 전자 장치 701는, 예를 들면, 도 1에 도시된 전자 장치 101의 전체 또는 일부를 구성할 수 있다. 도 7을 참조하면, 상기 전자 장치 701는 하나 이상의 어플리케이션 프로세서(AP: application processor) 710, 통신 모듈 720, SIM(subscriber identification module) 카드 724, 메모리 730, 센서 모듈 740, 입력 장치 750, 디스플레이 760, 인터페이스 770, 오디오 모듈 770, 카메라 모듈 791, 전력관리 모듈 795, 배터리 796, 인디케이터 797 및 모터 798 를 포함할 수 있다. FIG. 7 illustrates a block diagram 700 of an electronic device 701 in accordance with various embodiments. The electronic device 701 can constitute all or part of the electronic device 101 shown in Fig. 1, for example. 7, the electronic device 701 includes at least one application processor (AP) 710, a communication module 720, a subscriber identification module (SIM) card 724, a memory 730, a sensor module 740, an input device 750, a display 760, An interface 770, an audio module 770, a camera module 791, a power management module 795, a battery 796, an indicator 797, and a motor 798.

상기 AP 710는 운영체제 또는 응용 프로그램을 구동하여 상기 AP 710에 연결된 다수의 하드웨어 또는 소프트웨어 구성요소들을 제어할 수 있고, 멀티미디어 데이터를 포함한 각종 데이터 처리 및 연산을 수행할 수 있다. 상기 AP 710는, 예를 들면, SoC(system on chip) 로 구현될 수 있다. 한 실시예에 따르면, 상기 AP 710는 GPU(graphic processing unit, 미도시)를 더 포함할 수 있다.The AP 710 may control a plurality of hardware or software components connected to the AP 710 by operating an operating system or an application program, and may perform various data processing and operations including multimedia data. The AP 710 may be implemented with, for example, a system on chip (SoC). According to one embodiment, the AP 710 may further include a graphics processing unit (GPU) (not shown).

상기 통신 모듈 720(예: 상기 통신 인터페이스 160)은 상기 전자 장치 701(예: 상기 전자 장치 101)와 네트워크를 통해 연결된 다른 전자 장치들(예: 전자 장치 104 또는 서버 106) 간의 통신에서 데이터 송수신을 수행할 수 있다. 한 실시예에 따르면, 상기 통신 모듈 720은 셀룰러 모듈 721, Wifi 모듈 723, BT 모듈 725, GPS 모듈 727, NFC 모듈 728 및 RF(radio frequency) 모듈 729를 포함할 수 있다.The communication module 720 (e.g., the communication interface 160) can send and receive data in communication between the electronic device 701 (e.g., the electronic device 101) and other electronic devices (e.g., electronic device 104 or server 106) Can be performed. According to one embodiment, the communication module 720 may include a cellular module 721, a Wifi module 723, a BT module 725, a GPS module 727, an NFC module 728, and a radio frequency (RF) module 729.

상기 셀룰러 모듈 721은 통신망(예: LTE, LTE-A, CDMA, WCDMA, UMTS, WiBro 또는 GSM 등)을 통해서 음성 통화, 영상 통화, 문자 서비스 또는 인터넷 서비스 등을 제공할 수 있다. 또한, 상기 셀룰러 모듈 721은, 예를 들면, 가입자 식별 모듈(예: SIM 카드 724)을 이용하여 통신 네트워크 내에서 전자 장치의 구별 및 인증을 수행할 수 있다. 한 실시예에 따르면, 상기 셀룰러 모듈 721은 상기 AP 710가 제공할 수 있는 기능 중 적어도 일부 기능을 수행할 수 있다. 예를 들면, 상기 셀룰러 모듈 721은 멀티 미디어 제어 기능의 적어도 일부를 수행할 수 있다. The cellular module 721 may provide voice calls, video calls, text services, or Internet services over a communication network (e.g., LTE, LTE-A, CDMA, WCDMA, UMTS, WiBro or GSM). In addition, the cellular module 721 can perform identification and authentication of electronic devices within the communication network, for example, using a subscriber identity module (e.g., a SIM card 724). According to one embodiment, the cellular module 721 may perform at least some of the functions that the AP 710 may provide. For example, the cellular module 721 may perform at least a portion of the multimedia control functions.

한 실시예에 따르면, 상기 셀룰러 모듈 721은 커뮤니케이션 프로세서(CP: communication processor)를 포함할 수 있다. 또한, 상기 셀룰러 모듈 721은, 예를 들면, SoC로 구현될 수 있다. 도 7에서는 상기 셀룰러 모듈 721(예: 커뮤니케이션 프로세서), 상기 메모리 730 또는 상기 전력관리 모듈 795 등의 구성요소들이 상기 AP 710와 별개의 구성요소로 도시되어 있으나, 한 실시예에 따르면, 상기 AP 710가 전술한 구성요소들의 적어도 일부(예: 셀룰러 모듈 721)를 포함하도록 구현될 수 있다.According to one embodiment, the cellular module 721 may include a communication processor (CP). In addition, the cellular module 721 may be implemented with, for example, SoC. In FIG. 7, components such as the cellular module 721 (e.g., a communication processor), the memory 730, or the power management module 795 are illustrated as separate components from the AP 710. However, according to one embodiment, May include at least a portion of the aforementioned components (e.g., cellular module 721).

한 실시예에 따르면, 상기 AP 710 또는 상기 셀룰러 모듈 721(예: 커뮤니케이션 프로세서)은 각각에 연결된 비휘발성 메모리 또는 다른 구성요소 중 적어도 하나로부터 수신한 명령 또는 데이터를 휘발성 메모리에 로드(load)하여 처리할 수 있다. 또한, 상기 AP 710 또는 상기 셀룰러 모듈 721은 다른 구성요소 중 적어도 하나로부터 수신하거나 다른 구성요소 중 적어도 하나에 의해 생성된 데이터를 비휘발성 메모리에 저장(store)할 수 있다.According to one embodiment, the AP 710 or the cellular module 721 (e.g., a communications processor) loads a command or data received from at least one of non-volatile memory or other components connected to each, into a volatile memory for processing can do. In addition, the AP 710 or the cellular module 721 may receive data from at least one of the other components, or may store data generated by at least one of the other components in the non-volatile memory.

상기 Wifi 모듈 723, 상기 BT 모듈 725, 상기 GPS 모듈 727 또는 상기 NFC 모듈 728 각각은, 예를 들면, 해당하는 모듈을 통해서 송수신되는 데이터를 처리하기 위한 프로세서를 포함할 수 있다. 도 7에서는 셀룰러 모듈 721, Wifi 모듈 723, BT 모듈 725, GPS 모듈 727 또는 NFC 모듈 728이 각각 별개의 블록으로 도시되었으나, 한 실시예에 따르면, 셀룰러 모듈 721, Wifi 모듈 723, BT 모듈 725, GPS 모듈 727 또는 NFC 모듈 728 중 적어도 일부(예: 두 개 이상)는 하나의 integrated chip(IC) 또는 IC 패키지 내에 포함될 수 있다. 예를 들면, 셀룰러 모듈 721, Wifi 모듈 723, BT 모듈 725, GPS 모듈 727 또는 NFC 모듈 728 각각에 대응하는 프로세서들 중 적어도 일부(예: 셀룰러 모듈 721에 대응하는 커뮤니케이션 프로세서 및 Wifi 모듈 723에 대응하는 Wifi 프로세서)는 하나의 SoC로 구현될 수 있다. Each of the Wifi module 723, the BT module 725, the GPS module 727, and the NFC module 728 may include a processor for processing data transmitted and received through a corresponding module, for example. Although the cellular module 721, the Wifi module 723, the BT module 725, the GPS module 727, or the NFC module 728 are shown as separate blocks in FIG. 7, the cellular module 721, the Wifi module 723, the BT module 725, At least some (e.g., two or more) of the modules 727 or NFC modules 728 may be included in one integrated chip (IC) or IC package. For example, at least some of the processors corresponding to the cellular module 721, the Wifi module 723, the BT module 725, the GPS module 727 or the NFC module 728, respectively (e.g., the communication processor corresponding to the cellular module 721 and the Wifi processor) can be implemented in a single SoC.

상기 RF 모듈 729는 데이터의 송수신, 예를 들면, RF 신호의 송수신을 할 수 있다. 상기 RF 모듈 729는, 도시되지는 않았으나, 예를 들면, 트랜시버(transceiver), PAM(power amp module), 주파수 필터(frequency filter) 또는 LNA(low noise amplifier) 등을 포함할 수 있다. 또한, 상기 RF 모듈 729는 무선 통신에서 자유 공간상의 전자파를 송수신하기 위한 부품, 예를 들면, 도체 또는 도선 등을 더 포함할 수 있다. 도 7에서는 셀룰러 모듈 721, Wifi 모듈 723, BT 모듈 725, GPS 모듈 727 및 NFC 모듈 728이 하나의 RF 모듈 729을 서로 공유하는 것으로 도시되어 있으나, 한 실시예에 따르면, 셀룰러 모듈 721, Wifi 모듈 723, BT 모듈 725, GPS 모듈 727 또는 NFC 모듈 728 중 적어도 하나는 별개의 RF 모듈을 통하여 RF 신호의 송수신을 수행할 수 있다. The RF module 729 can transmit and receive data, for example, transmit and receive RF signals. The RF module 729 may include, for example, a transceiver, a power amplifier module (PAM), a frequency filter, or a low noise amplifier (LNA). In addition, the RF module 729 may further include a component for transmitting and receiving electromagnetic waves in a free space in a wireless communication, for example, a conductor or a conductor. 7, the cellular module 721, the Wifi module 723, the BT module 725, the GPS module 727, and the NFC module 728 are shown sharing one RF module 729. However, according to one embodiment, the cellular module 721, the Wifi module 723 , The BT module 725, the GPS module 727, or the NFC module 728 can transmit and receive RF signals through separate RF modules.

상기 SIM 카드 724는 가입자 식별 모듈을 포함하는 카드일 수 있으며, 전자 장치의 특정 위치에 형성된 슬롯에 삽입될 수 있다. 상기 SIM 카드 724는 고유한 식별 정보(예: ICCID(integrated circuit card identifier)) 또는 가입자 정보(예: IMSI(international mobile subscriber identity))를 포함할 수 있다. The SIM card 724 may be a card including a subscriber identity module and may be inserted into a slot formed in a specific location of the electronic device. The SIM card 724 may include unique identification information (e.g., ICCID) or subscriber information (e.g., international mobile subscriber identity (IMSI)).

상기 메모리 730(예: 상기 메모리 130)는 내장 메모리 732 또는 외장 메모리 734를 포함할 수 있다. 상기 내장 메모리 732는, 예를 들면, 휘발성 메모리(예를 들면, DRAM(dynamic RAM), SRAM(static RAM), SDRAM(synchronous dynamic RAM) 등) 또는 비휘발성 메모리(non-volatile Memory, 예를 들면, OTPROM(one time programmable ROM), PROM(programmable ROM), EPROM(erasable and programmable ROM), EEPROM(electrically erasable and programmable ROM), mask ROM, flash ROM, NAND flash memory, NOR flash memory 등) 중 적어도 하나를 포함할 수 있다. The memory 730 (e.g., the memory 130) may include an internal memory 732 or an external memory 734. The built-in memory 732 may be a memory such as a volatile memory (for example, a dynamic RAM, an SRAM, a synchronous dynamic RAM (SDRAM), or the like) or a non-volatile memory , At least one of an OTPROM (one time programmable ROM), a PROM (programmable ROM), an EPROM (erasable and programmable ROM), an EEPROM (electrically erasable and programmable ROM), a mask ROM, a flash ROM, a NAND flash memory, . ≪ / RTI >

한 실시예에 따르면, 상기 내장 메모리 732는 Solid State Drive (SSD)일 수 있다. 상기 외장 메모리 734는 flash drive, 예를 들면, CF(compact flash), SD(secure digital), Micro-SD(micro secure digital), Mini-SD(mini secure digital), xD(extreme digital) 또는 Memory Stick 등을 더 포함할 수 있다. 상기 외장 메모리 734는 다양한 인터페이스를 통하여 상기 전자 장치 701과 기능적으로 연결될 수 있다. 한 실시예에 따르면, 상기 전자 장치 701는 하드 드라이브와 같은 저장 장치(또는 저장 매체)를 더 포함할 수 있다.According to one embodiment, the internal memory 732 may be a solid state drive (SSD). The external memory 734 may be a flash drive, for example, a compact flash (CF), a secure digital (SD), a micro secure digital (SD), a mini secure digital (SD), an extreme digital And the like. The external memory 734 may be functionally connected to the electronic device 701 through various interfaces. According to one embodiment, the electronic device 701 may further include a storage device (or storage medium) such as a hard drive.

상기 센서 모듈 740은 물리량을 계측하거나 전자 장치 701의 작동 상태를 감지하여, 계측 또는 감지된 정보를 전기 신호로 변환할 수 있다. 상기 센서 모듈 740은, 예를 들면, 제스처 센서 740A, 자이로 센서 740B, 기압 센서 740C, 마그네틱 센서 740D, 가속도 센서 740E, 그립 센서 740F, 근접 센서 740G, color 센서 740H(예: RGB(red, green, blue) 센서), 생체 센서 740I, 온/습도 센서 740J, 조도 센서 740K 또는 UV(ultra violet) 센서 740M 중의 적어도 하나를 포함할 수 있다. 추가적으로 또는 대체적으로, 상기 센서 모듈 740은, 예를 들면, 후각 센서(E-nose sensor, 미도시), EMG 센서(electromyography sensor, 미도시), EEG 센서(electroencephalogram sensor, 미도시), ECG 센서(electrocardiogram sensor, 미도시), IR(infra red) 센서(미도시), 홍채 센서(미도시) 또는 지문 센서(미도시) 등을 포함할 수 있다. 상기 센서 모듈 740은 그 안에 속한 적어도 하나 이상의 센서들을 제어하기 위한 제어 회로를 더 포함할 수 있다.The sensor module 740 may measure a physical quantity or sense an operation state of the electronic device 701, and convert the measured or sensed information into an electrical signal. The sensor module 740 includes a gyro sensor 740A, a gyro sensor 740B, an air pressure sensor 740C, a magnetic sensor 740D, an acceleration sensor 740E, a grip sensor 740F, a proximity sensor 740G, a color sensor 740H blue sensor), a living body sensor 740I, a temperature / humidity sensor 740J, an illuminance sensor 740K, or an ultraviolet (UV) sensor 740M. Additionally or alternatively, the sensor module 740 may include, for example, an E-nose sensor (not shown), an EMG sensor (not shown), an EEG sensor (not shown) an electrocardiogram sensor (not shown), an infra red sensor (not shown), an iris sensor (not shown), or a fingerprint sensor (not shown). The sensor module 740 may further include a control circuit for controlling at least one sensor included in the sensor module 740.

상기 입력 장치 750은 터치 패널(touch panel) 752, (디지털) 펜 센서(pen sensor) 754, 키(key) 756 또는 초음파(ultrasonic) 입력 장치 758를 포함할 수 있다. 상기 터치 패널 752은, 예를 들면, 정전식, 감압식, 적외선 방식 또는 초음파 방식 중 적어도 하나의 방식으로 터치 입력을 인식할 수 있다. 또한, 상기 터치 패널 752은 제어 회로를 더 포함할 수도 있다. 정전식의 경우, 물리적 접촉 또는 근접 인식이 가능하다. 상기 터치 패널 752은 택타일 레이어(tactile layer)를 더 포함할 수도 있다. 이 경우, 상기 터치 패널 752은 사용자에게 촉각 반응을 제공할 수 있다. The input device 750 may include a touch panel 752, a (digital) pen sensor 754, a key 756, or an ultrasonic input device 758. The touch panel 752 can recognize a touch input by at least one of an electrostatic type, a pressure sensitive type, an infrared type, and an ultrasonic type, for example. The touch panel 752 may further include a control circuit. In electrostatic mode, physical contact or proximity recognition is possible. The touch panel 752 may further include a tactile layer. In this case, the touch panel 752 may provide a tactile response to the user.

상기 (디지털) 펜 센서 754는, 예를 들면, 사용자의 터치 입력을 받는 것과 동일 또는 유사한 방법 또는 별도의 인식용 쉬트(sheet)를 이용하여 구현될 수 있다. 상기 키 756는, 예를 들면, 물리적인 버튼, 광학식 키 또는 키패드를 포함할 수 있다. 상기 초음파(ultrasonic) 입력 장치 758는 초음파 신호를 발생하는 입력 도구를 통해, 전자 장치 701에서 마이크(예: 마이크 788)로 음파를 감지하여 데이터를 확인할 수 있는 장치로서, 무선 인식이 가능하다. 한 실시예에 따르면, 상기 전자 장치 701는 상기 통신 모듈 720를 이용하여 이와 연결된 외부 장치(예: 컴퓨터 또는 서버)로부터 사용자 입력을 수신할 수도 있다. The (digital) pen sensor 754 can be implemented using the same or similar method as receiving the touch input of the user, or using a separate recognition sheet, for example. The key 756 may include, for example, a physical button, an optical key or a keypad. The ultrasonic input device 758 is a device that can confirm data by sensing a sound wave from an electronic device 701 to a microphone (e.g., a microphone 788) through an input tool for generating an ultrasonic signal. According to one embodiment, the electronic device 701 may receive user input from an external device (e.g., a computer or a server) connected thereto using the communication module 720.

상기 디스플레이 760(예: 상기 디스플레이 150)은 패널 762, 홀로그램 장치 764 또는 프로젝터 766을 포함할 수 있다. 상기 패널 762은, 예를 들면, LCD(liquid-crystal display) 또는 AM-OLED(active-matrix organic light-emitting diode) 등일 수 있다. 상기 패널 762은, 예를 들면, 유연하게(flexible), 투명하게(transparent) 또는 착용할 수 있게(wearable) 구현될 수 있다. 상기 패널 762은 상기 터치 패널 752과 하나의 모듈로 구성될 수도 있다. 상기 홀로그램 장치 764은 빛의 간섭을 이용하여 입체 영상을 허공에 보여줄 수 있다. 상기 프로젝터 766는 스크린에 빛을 투사하여 영상을 표시할 수 있다. 상기 스크린은, 예를 들면, 상기 전자 장치 701의 내부 또는 외부에 위치할 수 있다. 한 실시예에 따르면, 상기 디스플레이 760은 상기 패널 762, 상기 홀로그램 장치 764, 또는 프로젝터 766를 제어하기 위한 제어 회로를 더 포함할 수 있다. The display 760 (e.g., the display 150) may include a panel 762, a hologram device 764, or a projector 766. The panel 762 may be, for example, a liquid crystal display (LCD) or an active matrix organic light-emitting diode (AM-OLED). The panel 762 can be embodied, for example, flexible, transparent or wearable. The panel 762 may be formed of one module with the touch panel 752. The hologram device 764 can display a stereoscopic image in the air using interference of light. The projector 766 can display an image by projecting light onto a screen. The screen may, for example, be located inside or outside the electronic device 701. According to one embodiment, the display 760 may further include control circuitry for controlling the panel 762, the hologram device 764, or the projector 766.

상기 인터페이스 770는, 예를 들면, HDMI(high-definition multimedia interface) 772, USB(universal serial bus) 774, 광 인터페이스(optical interface) 776 또는 D-sub(D-subminiature) 778를 포함할 수 있다. 상기 인터페이스 770는, 예를 들면, 도 1에 도시된 통신 인터페이스 160에 포함될 수 있다. 추가적으로 또는 대체적으로, 상기 인터페이스 770는, 예를 들면, MHL(mobile high-definition link) 인터페이스, SD(secure Digital) 카드/MMC(multi-media card) 인터페이스 또는 IrDA(infrared data association) 규격 인터페이스를 포함할 수 있다. The interface 770 may include, for example, a high-definition multimedia interface (HDMI) 772, a universal serial bus (USB) 774, an optical interface 776, or a D-sub (D-subminiature) 778. The interface 770 may, for example, be included in the communication interface 160 shown in FIG. Additionally or alternatively, the interface 770 may include, for example, a mobile high-definition link (MHL) interface, a secure digital (SD) card / multi-media card (MMC) interface, or an infrared data association can do.

상기 오디오 모듈 780은 소리(sound)와 전기신호를 쌍방향으로 변환시킬 수 있다. 상기 오디오 모듈 780의 적어도 일부 구성요소는, 예를 들면, 도 1 에 도시된 입출력 인터페이스 140에 포함될 수 있다. 상기 오디오 모듈 780은, 예를 들면, 스피커 782, 리시버 784, 이어폰 786 또는 마이크 788 등을 통해 입력 또는 출력되는 소리 정보를 처리할 수 있다. The audio module 780 may convert both sound and electrical signals in both directions. At least some of the components of the audio module 780 may be included, for example, in the input / output interface 140 shown in FIG. The audio module 780 may process sound information input or output through, for example, a speaker 782, a receiver 784, an earphone 786, a microphone 788, or the like.

상기 카메라 모듈 791은 정지 영상 및 동영상을 촬영할 수 있는 장치로서, 한 실시예에 따르면, 하나 이상의 이미지 센서(예: 전면 센서 또는 후면 센서), 렌즈(미도시), ISP(image signal processor, 미도시) 또는 플래쉬 (flash, 미도시)(예: LED 또는 xenon lamp)를 포함할 수 있다.The camera module 791 can capture still images and moving images. The camera module 791 may include one or more image sensors (e.g., a front sensor or a rear sensor), a lens (not shown), an image signal processor ) Or a flash (not shown), such as an LED or xenon lamp.

상기 전력 관리 모듈 795은 상기 전자 장치 701의 전력을 관리할 수 있다. 도시하지는 않았으나, 상기 전력 관리 모듈 795은, 예를 들면, PMIC(power management integrated circuit), 충전 IC(charger integrated circuit) 또는 배터리 또는 연료 게이지(battery or fuel gauge)를 포함할 수 있다. The power management module 795 can manage the power of the electronic device 701. Although not shown, the power management module 795 may include, for example, a power management integrated circuit (PMIC), a charger integrated circuit (PMIC), or a battery or fuel gauge.

상기 PMIC는, 예를 들면, 집적회로 또는 SoC 반도체 내에 탑재될 수 있다. 충전 방식은 유선과 무선으로 구분될 수 있다. 상기 충전 IC는 배터리를 충전시킬 수 있으며, 충전기로부터의 과전압 또는 과전류 유입을 방지할 수 있다. 한 실시예에 따르면, 상기 충전 IC는 유선 충전 방식 또는 무선 충전 방식 중 적어도 하나를 위한 충전 IC를 포함할 수 있다. 무선 충전 방식으로는, 예를 들면, 자기공명 방식, 자기유도 방식 또는 전자기파 방식 등이 있으며, 무선 충전을 위한 부가적인 회로, 예를 들면, 코일 루프, 공진 회로 또는 정류기 등의 회로가 추가될 수 있다. The PMIC can be mounted, for example, in an integrated circuit or a SoC semiconductor. The charging method can be classified into wired and wireless. The charging IC can charge the battery, and can prevent an overvoltage or an overcurrent from the charger. According to one embodiment, the charging IC may comprise a charging IC for at least one of a wired charging scheme or a wireless charging scheme. The wireless charging system may be, for example, a magnetic resonance system, a magnetic induction system or an electromagnetic wave system, and additional circuits for wireless charging may be added, such as a coil loop, a resonant circuit or a rectifier have.

상기 배터리 게이지는, 예를 들면, 상기 배터리 796의 잔량, 충전 중 전압, 전류 또는 온도를 측정할 수 있다. 상기 배터리 796는 전기를 저장 또는 생성할 수 있고, 그 저장 또는 생성된 전기를 이용하여 상기 전자 장치 701에 전원을 공급할 수 있다. 상기 배터리 796는, 예를 들면, 충전식 전지(rechargeable battery) 또는 태양 전지(solar battery)를 포함할 수 있다. The battery gauge can measure, for example, the remaining amount of the battery 796, the voltage during charging, the current or the temperature. The battery 796 may store or generate electricity and supply power to the electronic device 701 using the stored or generated electricity. The battery 796 may include, for example, a rechargeable battery or a solar battery.

상기 인디케이터 797는 상기 전자 장치 701 혹은 그 일부(예: 상기 AP 710)의 특정 상태, 예를 들면, 부팅 상태, 메시지 상태 또는 충전 상태 등을 표시할 수 있다. 상기 모터 798는 전기적 신호를 기계적 진동으로 변환할 수 있다. 도시되지는 않았으나, 상기 전자 장치 701는 모바일 TV 지원을 위한 처리 장치(예: GPU)를 포함할 수 있다. 상기 모바일 TV지원을 위한 처리 장치는, 예를 들면, DMB(digital multimedia broadcasting), DVB(digital video broadcasting) 또는 미디어플로우(media flow) 등의 규격에 따른 미디어 데이터를 처리할 수 있다. The indicator 797 may indicate a specific state of the electronic device 701 or a portion thereof (e.g., the AP 710), for example, a boot state, a message state, or a charged state. The motor 798 can convert an electrical signal into a mechanical vibration. Although not shown, the electronic device 701 may include a processing unit (e.g., a GPU) for mobile TV support. The processing device for supporting the mobile TV can process media data conforming to standards such as digital multimedia broadcasting (DMB), digital video broadcasting (DVB), or media flow.

본 발명에 따른 전자 장치의 전술한 구성요소들 각각은 하나 또는 그 이상의 부품(component)으로 구성될 수 있으며, 해당 구성 요소의 명칭은 전자 장치의 종류에 따라서 달라질 수 있다. 본 발명에 따른 상기 전자 장치 101는 전술한 구성요소 중 적어도 하나를 포함하여 구성될 수 있으며, 일부 구성요소가 생략되거나 또는 추가적인 다른 구성요소를 더 포함할 수 있다. 또한, 본 발명에 따른 전자 장치의 구성 요소들 중 일부가 결합되어 하나의 개체(entity)로 구성됨으로써, 결합되기 이전의 해당 구성 요소들의 기능을 동일하게 수행할 수 있다.Each of the above-described components of the electronic device according to the present invention 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. The electronic device 101 according to the present invention may be configured to include at least one of the above-described components, and some of the components may be omitted or further include other additional components. In addition, some of the components of the electronic device according to the present invention may be combined and configured as an entity, so that the functions of the components before being combined can be performed in the same manner.

본 발명에 사용된 용어 "모듈"은, 예를 들어, 하드웨어, 소프트웨어 또는 펌웨어(firmware) 중 하나 또는 둘 이상의 조합을 포함하는 단위(unit)를 의미할 수 있다. "모듈"은 예를 들어, 유닛(unit), 로직(logic), 논리 블록(logical block), 부품(component) 또는 회로(circuit) 등의 용어와 바꾸어 사용(interchangeably use)될 수 있다. "모듈"은, 일체로 구성된 부품의 최소 단위 또는 그 일부가 될 수 있다. "모듈"은 하나 또는 그 이상의 기능을 수행하는 최소 단위 또는 그 일부가 될 수도 있다. "모듈"은 기계적으로 또는 전자적으로 구현될 수 있다. 예를 들면, 본 발명에 따른 "모듈"은, 알려졌거나 앞으로 개발될, 어떤 동작들을 수행하는 ASIC(application-specific integrated circuit) 칩, FPGAs(field-programmable gate arrays) 또는 프로그램 가능 논리 장치(programmable-logic device) 중 적어도 하나를 포함할 수 있다. The term "module" as used in the present invention may mean a unit including, for example, one or a combination of hardware, software, or firmware. A "module" may be interchangeably used with terms such as, for example, unit, logic, logical block, component or circuit. A "module" may be a minimum unit or a portion of an integrally constructed component. A "module" may be a minimum unit or a portion thereof that performs one or more functions. "Modules" may be implemented either mechanically or electronically. For example, a "module" in accordance with the present invention may be implemented as an application-specific integrated circuit (ASIC) chip, field-programmable gate arrays (FPGAs) or programmable logic arrays logic device).

다양한 실시예에 따르면, 본 발명에 따른 장치(예: 모듈들 또는 그 기능들) 또는 방법(예: 동작들)의 적어도 일부는, 예컨대, 프로그래밍 모듈의 형태로 컴퓨터로 읽을 수 있는 저장매체(computer-readable storage media)에 저장된 명령어로 구현될 수 있다. 상기 명령어는, 하나 이상의 프로세서 (예: 상기 프로세서 210)에 의해 실행될 경우, 상기 하나 이상의 프로세서가 상기 명령어에 해당하는 기능을 수행할 수 있다. 컴퓨터로 읽을 수 있는 저장매체는, 예를 들면, 상기 메모리 220가 될 수 있다. 상기 프로그래밍 모듈의 적어도 일부는, 예를 들면, 상기 프로세서210에 의해 구현(implement)(예: 실행)될 수 있다. 상기 프로그래밍 모듈 의 적어도 일부는 하나 이상의 기능을 수행하기 위한, 예를 들면, 모듈, 프로그램, 루틴, 명령어 세트 (sets of instructions) 또는 프로세스 등을 포함할 수 있다.According to various embodiments, at least a portion of a device (e.g., modules or functions thereof) or a method (e.g., operations) according to the present invention may be stored in a computer readable storage medium -readable storage media). The instructions, when executed by one or more processors (e.g., the processor 210), may cause the one or more processors to perform functions corresponding to the instructions. The computer readable storage medium may be, for example, the memory 220. At least some of the programming modules may be implemented (e.g., executed) by, for example, the processor 210. At least some of the programming modules may include, for example, modules, programs, routines, sets of instructions or processes, etc. to perform one or more functions.

상기 컴퓨터로 판독 가능한 기록 매체에는 하드디스크, 플로피디스크 및 자기 테이프와 같은 마그네틱 매체(Magnetic Media)와, CD-ROM(Compact Disc Read Only Memory), DVD(Digital Versatile Disc)와 같은 광기록 매체(Optical Media)와, 플롭티컬 디스크(Floptical Disk)와 같은 자기-광 매체(Magneto-Optical Media)와, 그리고 ROM(Read Only Memory), RAM(Random Access Memory), 플래시 메모리 등과 같은 프로그램 명령(예: 프로그래밍 모듈)을 저장하고 수행하도록 특별히 구성된 하드웨어 장치가 포함될 수 있다. 또한, 프로그램 명령에는 컴파일러에 의해 만들어지는 것과 같은 기계어 코드뿐만 아니라 인터프리터 등을 사용해서 컴퓨터에 의해서 실행될 수 있는 고급 언어 코드를 포함할 수 있다. 상술한 하드웨어 장치는 본 발명의 동작을 수행하기 위해 하나 이상의 소프트웨어 모듈로서 작동하도록 구성될 수 있으며, 그 역도 마찬가지다.The computer-readable recording medium includes a magnetic medium such as a hard disk, a floppy disk and a magnetic tape, an optical recording medium such as a CD-ROM (Compact Disc Read Only Memory), a DVD (Digital Versatile Disc) A magneto-optical medium such as a floppy disk, and a program command such as a read only memory (ROM), a random access memory (RAM), a flash memory, Module) that is configured to store and perform the functions described herein. The program instructions may also include machine language code such as those generated by a compiler, as well as high-level language code that may be executed by a computer using an interpreter or the like. The hardware devices described above may be configured to operate as one or more software modules to perform the operations of the present invention, and vice versa.

본 발명에 따른 모듈 또는 프로그래밍 모듈은 전술한 구성요소들 중 적어도 하나 이상을 포함하거나, 일부가 생략되거나, 또는 추가적인 다른 구성요소를 더 포함할 수 있다. 본 발명에 따른 모듈, 프로그래밍 모듈 또는 다른 구성요소에 의해 수행되는 동작들은 순차적, 병렬적, 반복적 또는 휴리스틱(heuristic)한 방법으로 실행될 수 있다. 또한, 일부 동작은 다른 순서로 실행되거나, 생략되거나, 또는 다른 동작이 추가될 수 있다.A module or a programming module according to the present invention may include at least one or more of the above-described components, some of which may be omitted, or may further include other additional components. Operations performed by modules, programming modules, or other components in accordance with the present invention may be performed in a sequential, parallel, iterative, or heuristic manner. Also, some operations may be performed in a different order, omitted, or other operations may be added.

다양한 실시예에 따르면, 명령들을 저장하고 있는 저장 매체에 있어서, 상기 명령들은 적어도 하나의 프로세서에 의하여 실행될 때에 상기 적어도 하나의 프로세서로 하여금 적어도 하나의 동작을 수행하도록 설정된 것으로서, 상기 적어도 하나의 동작은, 전자 장치에서 센서 정보를 기반으로 액세서리 장치에 전자 장치가 거치되는 거치 방향을 판단하는 동작; 및 상기 액세서리 장치와 전자 장치의 거치 방향에 따라 액세서리 장치와의 통신 연결 온/오프를 제어하는 동작을 포함할 수 있다. 그리고 본 명세서와 도면에 발명된 본 발명의 실시 예들은 본 발명의 기술 내용을 쉽게 설명하고 본 발명의 이해를 돕기 위해 특정 예를 제시한 것일 뿐이며, 본 발명의 범위를 한정하고자 하는 것은 아니다. 따라서 본 발명의 범위는 여기에 발명된 실시 예들 이외에도 본 발명의 기술적 사상을 바탕으로 도출되는 모든 변경 또는 변형된 형태가 본 발명의 범위에 포함되는 것으로 해석되어야 한다.According to various embodiments, there is provided a storage medium storing instructions which, when executed by at least one processor, cause the at least one processor to be configured to perform at least one operation, Determining an orientation in which the electronic device is mounted on the accessory device based on the sensor information in the electronic device; And controlling the communication connection on / off between the accessory device and the accessory device according to the mounting direction of the accessory device and the electronic device. It is to be understood that both the foregoing general description and the following detailed description of the present invention are exemplary and explanatory and are intended to provide further explanation of the invention as claimed. Therefore, the scope of the present invention should be construed as being included in the scope of the present invention without departing from the scope of the present invention.

101: 전자 장치
108: 액세서리 장치
170: 장치 연결 제어 모듈
101: Electronic device
108: Accessory device
170: Device connection control module

Claims (11)

전자 장치에서 액세서리 장치와의 연결 제어 방법에 있어서,
센서 정보를 기반으로 액세서리 장치에 전자 장치가 거치되는 거치 방향을 판단하는 동작; 및
상기 액세서리 장치와 전자 장치의 거치 방향에 따라 액세서리 장치와의 통신을 제1 모드 또는 제2 모드로 제어하는 동작을 포함하는 액세서리 장치와의 연결 제어 방법.
A method of controlling connection from an electronic device to an accessory device,
Determining an orientation in which the electronic device is mounted on the accessory device based on the sensor information; And
And controlling the communication with the accessory device in a first mode or a second mode according to a mounting direction of the accessory device and the electronic device.
제1항에 있어서,
상기 제어하는 동작은,
상기 전자 장치의 디스플레이 화면이 제1 방향으로 거치된 경우 상기 전자 장치의 통신 모듈을 턴 온하여 액세서리 장치와 통신 연결하고, 상기 제1 방향과 반대되는 제2 방향으로 거치된 경우 상기 전자 장치의 통신 모듈을 턴 오프하도록 제어하는 액세서리 장치와의 연결 제어 방법.
The method according to claim 1,
The control operation may include:
When the display screen of the electronic device is mounted in the first direction, the communication module of the electronic device is turned on and communicatively connected to the accessory device, and when the electronic device is mounted in the second direction opposite to the first direction, And controlling access to the accessory device controlling the module to turn off.
제1항에 있어서,
상기 제1 모드는 상기 액세서리 장치와 전자 장치와 통신 연결되는 통신 모드 또는 상기 액세서리 장치와 전자 장치와 통신 연결을 해제하는 통신 해제 모드 중 하나이고, 제2 모드는 통신 모드 또는 통신 해제 모드 중 다른 하나인 액세서리 장치와의 연결 제어 방법.
The method according to claim 1,
Wherein the first mode is one of a communication mode in which the accessory device is communicatively coupled to the electronic device or a communication release mode in which the accessory device and the electronic device are disconnected from communication with each other and the second mode is one of communication mode A method for controlling connection with an accessory device.
제1항에 있어서,
상기 거치 방향을 판단하는 동작은;
센서 모듈로부터 미리 설정된 주기 단위로 센서 신호를 수신하는 동작을 더 포함하는 액세서리 장치와의 연결 제어 방법.
The method according to claim 1,
The operation of determining the mounting direction includes:
Further comprising receiving the sensor signal from the sensor module in a predetermined cycle unit.
제1항에 있어서,
상기 센서 정보는,
중력 센서 정보, 지자기 센서 정보, 근접 센서 정보, 적외선 센서 정보, 마그네틱 센서 정보, 자이로 센서 정보 또는 생체 센서 정보 중 적어도 하나를 포함하는 액세서리 장치와의 연결 제어 방법.
The method according to claim 1,
The sensor information includes:
Wherein the accessory device includes at least one of gravity sensor information, geomagnetic sensor information, proximity sensor information, infrared sensor information, magnetic sensor information, gyro sensor information, or biometric sensor information.
전자 장치에 있어서,
액세서리 장치와 무선 연결되는 통신 모듈;
전자 장치의 자세 정보를 수집하는 센서 모듈; 및
상기 센서 모듈을 통해 수집되는 센서 정보를 기반으로 전자 장치가 상기 액세서리 장치에 거치되는 거치 방향을 판단하고, 상기 전자 장치의 거치 방향에 따라 액세서리 장치와의 통신을 제1 모드 또는 제2 모드로 제어하는 프로세서를 포함하는 전자 장치.
In an electronic device,
A communication module wirelessly connected to the accessory device;
A sensor module for collecting attitude information of the electronic device; And
Wherein the control unit controls the communication with the accessory device in the first mode or the second mode according to the mounting direction of the electronic device based on the sensor information collected through the sensor module, Wherein the processor is further configured to:
제6항에 있어서,
상기 프로세서는,
상기 전자 장치의 디스플레이 화면이 제1 방향으로 거치된 경우 상기 통신 모듈을 턴 온하여 액세서리 장치와 통신 연결하고, 상기 제1 방향과 반대되는 제2 방향으로 거치된 경우 상기 통신 모듈을 턴 오프하도록 제어하는 전자 장치.
The method according to claim 6,
The processor comprising:
When the display screen of the electronic device is mounted in the first direction, the communication module is turned on and communicatively connected to the accessory device, and when the display module is mounted in the second direction opposite to the first direction, Lt; / RTI >
제6항에 있어서,
상기 제1 모드는 상기 액세서리 장치와 전자 장치와 통신 연결되는 통신 모드 또는 상기 액세서리 장치와 전자 장치와 통신 연결을 해제하는 통신 해제 모드 중 하나이고, 제2 모드는 통신 모드 또는 통신 해제 모드 중 다른 하나인 전자 장치.
The method according to claim 6,
Wherein the first mode is one of a communication mode in which the accessory device is communicatively coupled to the electronic device or a communication release mode in which the accessory device and the electronic device are disconnected from communication with each other and the second mode is one of communication mode / RTI >
제 6항에 있어서,
상기 센서 모듈은,
중력 센서, 지자기 센서, 근접 센서, 적외선 센서, 마그네틱 센서, 자이로 센서 또는 생체 센서 중 적어도 하나를 포함하는 전자 장치
The method according to claim 6,
The sensor module includes:
An electronic device including at least one of a gravity sensor, a geomagnetic sensor, a proximity sensor, an infrared sensor, a magnetic sensor, a gyro sensor,
제 6항에 있어서,
상기 액세서리 장치는 상기 전자 장치를 가로, 세로, 앞 및 뒤 중 어느 하나의 방향으로 거치될 수 있는 구조이고,
상기 제1 방향 및 제2 방향은 앞 및 뒤 방향 중 적어도 하나인 전자 장치.
The method according to claim 6,
Wherein the accessory device is structured such that the electronic device can be mounted in any one of a horizontal, vertical, front and rear direction,
Wherein the first direction and the second direction are at least one of a front direction and a back direction.
제6항에 있어서,
상기 액세서리 장치는,
적어도 두 개 이상의 위치에 서로 다른 자석 값을 갖는 자석 부재를 포함하며,
상기 프로세서는,
상기 액세서리 장치로부터 센싱되는 두 개 이상의 자석 값에 따라 상기 전자 장치의 거치 상태를 판단하는 전자 장치.
The method according to claim 6,
Said accessory device comprising:
A magnet member having different magnet values in at least two positions,
The processor comprising:
And judges the mounting state of the electronic device according to two or more magnet values sensed from the accessory device.
KR1020140004922A 2014-01-15 2014-01-15 Apparatus and Method for controlling a connection with a accessory device in electronic device KR20150085246A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020140004922A KR20150085246A (en) 2014-01-15 2014-01-15 Apparatus and Method for controlling a connection with a accessory device in electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020140004922A KR20150085246A (en) 2014-01-15 2014-01-15 Apparatus and Method for controlling a connection with a accessory device in electronic device

Publications (1)

Publication Number Publication Date
KR20150085246A true KR20150085246A (en) 2015-07-23

Family

ID=53875301

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020140004922A KR20150085246A (en) 2014-01-15 2014-01-15 Apparatus and Method for controlling a connection with a accessory device in electronic device

Country Status (1)

Country Link
KR (1) KR20150085246A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10379625B2 (en) 2017-02-07 2019-08-13 Samsung Electronics Co., Ltd. Method for displaying screen in electronic device and electronic device thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10379625B2 (en) 2017-02-07 2019-08-13 Samsung Electronics Co., Ltd. Method for displaying screen in electronic device and electronic device thereof

Similar Documents

Publication Publication Date Title
KR102348219B1 (en) Detachable Apparatus and Operating Method Thereof
KR102279036B1 (en) Wireless data input and output method and apparatus
KR102175103B1 (en) Low power driving method and electric device performing thereof
KR20160026467A (en) Electronic device, controlling method thereof and recording medium
KR20160046426A (en) Electronic device
KR20150055851A (en) Method and apparatus for connecting communication of electronic devices
KR20150106719A (en) Method for informing shooting location of electronic device and electronic device implementing the same
KR20150098827A (en) Electronic apparatus and power saving method thereof
KR20160111211A (en) Method for communicating data and electronic device there
KR20150117962A (en) Method for Controlling Antenna Radiation Power and Electrical Device Supporting the Same
KR20150135837A (en) Electronic Apparatus and Method for Management of Display
KR20160012574A (en) Electronic apparatus and payment method thereof
KR20150125464A (en) Method for displaying message and electronic device
KR20150128443A (en) Apparatus for charging wearable device
KR20160001438A (en) Apparatas and method for preventing malfunction in an electronic device
KR20160049632A (en) Electrical Device for Sensing Lens and Operating Method
KR20150128299A (en) Sensor module and device therewith
KR20170141006A (en) A method for connecting a subscriber identity module in an electronic device and the electronic device thereof
KR20150026775A (en) Method for controlling short range wireless communication and Apparatus applying the same
US10438525B2 (en) Method of controlling display of electronic device and electronic device thereof
US20160344925A1 (en) Electronic device and method of operating camera of the same
KR20150086150A (en) User interface controlling method and apparatus
KR20150136792A (en) Apparatas and method for including a multi subscriber identity module in an electronic device
KR20150073244A (en) Discovering and controlling method and apparatus of controllee in a smart home system
KR20150135895A (en) Method for processing image and electronic device thereof

Legal Events

Date Code Title Description
E902 Notification of reason for refusal
E902 Notification of reason for refusal
E601 Decision to refuse application