KR20220015846A - Electronic apparatus for sharing file and file sharing method thereof - Google Patents

Electronic apparatus for sharing file and file sharing method thereof Download PDF

Info

Publication number
KR20220015846A
KR20220015846A KR1020200096410A KR20200096410A KR20220015846A KR 20220015846 A KR20220015846 A KR 20220015846A KR 1020200096410 A KR1020200096410 A KR 1020200096410A KR 20200096410 A KR20200096410 A KR 20200096410A KR 20220015846 A KR20220015846 A KR 20220015846A
Authority
KR
South Korea
Prior art keywords
file
electronic device
messaging application
transmitted
external electronic
Prior art date
Application number
KR1020200096410A
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 KR1020200096410A priority Critical patent/KR20220015846A/en
Priority to PCT/KR2021/006586 priority patent/WO2022025403A1/en
Publication of KR20220015846A publication Critical patent/KR20220015846A/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/08Annexed information, e.g. attachments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/06Message adaptation to terminal or network requirements
    • H04L51/066Format adaptation, e.g. format conversion or compression
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • H04L67/2823
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention provides an apparatus and a method capable of transmitting an original even when the original cannot be transmitted to another device due to various constraints. An electronic device according to an embodiment may include a communication circuit and a processor operably connected to the communication circuit. The processor may be configured to: receive a user command for providing at least one file to an external electronic device by using a messaging application; in response to the user command, determine whether the at least one file can be transmitted to the external electronic device by using the messaging application; in response to determining that the at least one file cannot be transmitted to the external electronic device by using the messaging application, generate link information for downloading the at least one file; transmit the link information to the external electronic device through the communication circuit by using the messaging application; and upload the at least one file to an external server accessible by using the link information.

Description

파일을 공유하는 전자 장치 및 그 파일 공유 방법 {ELECTRONIC APPARATUS FOR SHARING FILE AND FILE SHARING METHOD THEREOF}ELECTRONIC APPARATUS FOR SHARING FILE AND FILE SHARING METHOD THEREOF

본 문서에서 개시되는 다양한 실시예들은 전자 장치가 다른 전자 장치와 파일을 공유하는 방법 및 그 장치에 관한 것이다.Various embodiments disclosed in this document relate to a method and apparatus for an electronic device to share a file with another electronic device.

통신 기술의 발전에 의해 전자 장치는 다양한 데이터 통신 기능을 수행할 수 있다. 또한, 전자 장치는 다양한 어플리케이션 프로그램을 이용하여 다양한 서비스를 제공할 수 있다. 전자 장치는 네트워크 기반의 서비스를 제공할 수 있다. 예를 들어, 전자 장치는 단문 메시지 서비스 (short message service, SMS), 멀티미디어 메시징 서비스 (multimedia messaging service, MMS), 리치 통신 스위트(rich communication suite, RCS), 기기간 (device to device, D2D) 데이터 통신, 멀티미디어 서비스, 또는 동영상 서비스를 제공할 수 있다.With the development of communication technology, electronic devices may perform various data communication functions. In addition, the electronic device may provide various services using various application programs. The electronic device may provide a network-based service. For example, the electronic device includes a short message service (SMS), a multimedia messaging service (MMS), a rich communication suite (RCS), and device to device (D2D) data communication. , a multimedia service, or a video service may be provided.

전자 장치는 네트워크를 통해 다른 전자 장치에 파일을 전송하거나, 웹서버(예: 클라우드 서버)에 원하는 파일을 업로드할 수 있다. 그러나, 전송하려는 파일의 크기(예: 용량, 개수)가 큰 경우(예: 대용량 파일), 전자 장치는 원래 파일의 크기나 해상도를 조절(예: trim, resizing)하는 동작을 수행한 후 파일을 전송하거나, 파일의 크기로 인해 파일을 전송하지 못할 수도 있다. 예를 들어, 전자 장치에서 대용량 파일을 전송할 경우 파일 전송에 문제점이 있다.The electronic device may transmit a file to another electronic device through a network or upload a desired file to a web server (eg, a cloud server). However, when the size (eg, capacity, number) of the file to be transferred is large (eg, large file), the electronic device performs an operation of adjusting (eg, trim, resizing) the size or resolution of the original file and then saves the file. Or, it may not be possible to transfer the file due to the size of the file. For example, when a large file is transmitted in an electronic device, there is a problem in file transmission.

본 문서에서 이루고자 하는 기술적 과제는 이상에서 언급한 기술적 과제로 제한되지 않으며, 언급되지 않은 또 다른 기술적 과제들은 아래의 기재로부터 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.The technical problems to be achieved in this document are not limited to the technical problems mentioned above, and other technical problems not mentioned can be clearly understood by those of ordinary skill in the art to which the present invention belongs from the description below. There will be.

다양한 실시 예들에 따른 전자 장치는, 외부 장치와 통신을 수행하는 통신 회로; 및 상기 통신 회로와 작동적으로 연결된 프로세서를 포함할 수 있으며, 상기 프로세서는, 적어도 하나의 파일을 메시징 어플리케이션을 이용하여 외부 전자 장치로 제공하도록 하는 사용자 명령을 수신하고, 상기 사용자 명령에 응답하여, 상기 메시징 어플리케이션을 이용하여 상기 적어도 하나의 파일을 상기 외부 전자 장치로 전송할 수 있는지 여부를 판단하며, 상기 메시징 어플리케이션을 이용하여 상기 적어도 하나의 파일을 상기 외부 전자 장치로 전송할 수 없는 것으로 판단되는 것에 응답하여, 상기 적어도 하나의 파일을 다운로드하기 위한 링크 정보를 생성하며, 상기 통신 회로를 통해서 상기 메시징 어플리케이션을 이용하여 상기 링크 정보를 상기 외부 전자 장치로 전송하고, 상기 링크 정보를 이용하여 접속 가능한 외부 서버로 상기 적어도 하나의 파일을 업로드하도록 구성될 수 있다.According to various embodiments of the present disclosure, an electronic device may include a communication circuit configured to communicate with an external device; and a processor operatively coupled to the communication circuitry, wherein the processor receives a user command to provide at least one file to an external electronic device using a messaging application, and in response to the user command, It is determined whether the at least one file can be transmitted to the external electronic device using the messaging application, and responds to the determination that the at least one file cannot be transmitted to the external electronic device using the messaging application to generate link information for downloading the at least one file, transmit the link information to the external electronic device using the messaging application through the communication circuit, and an external server accessible using the link information to upload the at least one file.

다양한 실시 예들에 따른 전자 장치의 동작 방법은, 적어도 하나의 파일을 메시징 어플리케이션을 이용하여 외부 전자 장치로 제공하도록 하는 사용자 명령을 수신하는 동작, 상기 사용자 명령에 응답하여, 상기 메시징 어플리케이션을 이용하여 상기 적어도 하나의 파일을 상기 외부 전자 장치로 전송할 수 있는지 여부를 판단하는 동작, 상기 메시징 어플리케이션을 이용하여 상기 적어도 하나의 파일을 상기 외부 전자 장치로 전송할 수 없는 것으로 판단되는 것에 응답하여, 상기 적어도 하나의 파일을 다운로드하기 위한 링크 정보를 생성하는 동작, 상기 메시징 어플리케이션을 이용하여 상기 링크 정보를 상기 외부 전자 장치로 전송하는 동작 및 상기 링크 정보를 이용하여 접속 가능한 외부 서버로 상기 적어도 하나의 파일을 업로드하는 동작을 포함할 수 있다.The method of operating an electronic device according to various embodiments of the present disclosure includes receiving a user command for providing at least one file to an external electronic device using a messaging application, and in response to the user command, using the messaging application determining whether the at least one file can be transmitted to the external electronic device; in response to determining that the at least one file cannot be transmitted to the external electronic device using the messaging application, the at least one generating link information for downloading a file, transmitting the link information to the external electronic device using the messaging application, and uploading the at least one file to an external server accessible using the link information It can include actions.

본 문서에서 개시되는 다양한 실시 예들에 따른 전자 장치 및 이의 동작 방법은, 다양한 제약 조건들로 인하여 다른 장치로 원본을 전송할 수 없었던 경우에도 원본을 전송할 수 있는 장치 및 방법을 제공할 수 있다.An electronic device and an operating method thereof according to various embodiments disclosed in this document may provide an apparatus and method capable of transmitting an original even when the original cannot be transmitted to another device due to various constraints.

본 문서에서 개시되는 다양한 실시 예들에 따르면, 고화질의 이미지나 동영상을 단절 없이(seamlessly) 다른 장치와 공유할 수 있는 전자 장치 및 이의 동작 방법을 제공할 수 있다.According to various embodiments disclosed in this document, it is possible to provide an electronic device capable of seamlessly sharing a high-quality image or video with other devices, and an operating method thereof.

본 개시에서 얻을 수 있는 효과는 이상에서 언급한 효과들로 제한되지 않으며, 언급하지 않은 또 다른 효과들은 아래의 기재로부터 본 개시가 속하는 기술 분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.Effects obtainable in the present disclosure are not limited to the above-mentioned effects, and other effects not mentioned may be clearly understood by those of ordinary skill in the art to which the present disclosure belongs from the description below. will be.

도 1은, 다양한 실시 예들에 따른 네트워크 환경 내의 전자 장치의 블록도이다.
도 2는, 다양한 실시 예들에 따른 전자 장치와 외부 전자 장치의 블록도이다.
도 3은, 다양한 실시 예들에 따른 전자 장치의 파일 공유 프로세스를 도시한 흐름도이다.
도 4는, 다양한 실시예들에 따른 전자 장치의 메시징 어플리케이션이 링크 정보를 이용하여 파일을 공유하기 위한 구조를 도시한 도면이다.
도 5는, 다양한 실시예들에 따라 전자 장치로부터 외부 전자 장치로 링크 정보를 이용하여 파일이 공유되는 과정의 일례를 도시한 도면이다.
도 6은, 다양한 실시예들에 따른 전자 장치가 메시징 어플리케이션에서 작성되는 메시지에 파일을 첨부하여 전송하는 프로세스를 도시한 흐름도이다.
도 7은, 다양한 실시예들에 따른 전자 장치가 원본 전송이 불가능한 것으로 판단된 경우에 표시하는 알림 메시지의 예시를 도시한 도면이다.
도 8은, 다양한 실시예들에 따른 전자 장치가 메시징 어플리케이션을 이용하여 파일을 공유하기 위해 표시하는 사용자 인터페이스의 예시를 도시한 도면이다.
도 9는, 다양한 실시예들에 따른 전자 장치가 링크 공유 모드를 선택하여 파일을 공유하는 프로세스를 도시한 흐름도이다.
도 10은, 다양한 실시예들에 따른 전자 장치가 파일을 선택하고 링크 공유 모드를 선택하기 위해 표시하는 사용자 인터페이스의 예시를 도시한 도면이다.
도 11은, 다양한 실시예들에 따른 전자 장치가 컨텐츠 목록 어플리케이션에서 파일을 선택하고 공유하는 프로세스를 도시한 흐름도이다.
도 12는, 다양한 실시예들에 따른 전자 장치가 컨텐츠 목록 어플리케이션에서 파일을 선택하고 메시징 어플리케이션을 이용한 공유 기능을 선택하기 위해 표시하는 사용자 인터페이스의 예시를 도시한 도면이다.
도 13은, 다양한 실시예들에 따른 전자 장치가 선택된 파일에 기초하여 컨텐츠 공유 기능 목록을 구성하여 제공하는 프로세스를 도시한 흐름도이다.
도 14는, 다양한 실시예들에 따른 전자 장치가 메시징 어플리케이션에 설정된 컨텐츠 공유 한도에 기초하여 파일을 공유하는 프로세스를 도시한 흐름도이다.
도 15는, 다양한 실시예들에 따른 전자 장치가 메시징 어플리케이션에 설정된 컨텐츠 공유 한도에 기초하여 파일을 공유하기 위해 표시하는 사용자 인터페이스들의 예시를 도시한 도면이다.
도 16은, 다양한 실시예들에 따른 전자 장치가 기기간 통신에 기초한 파일 전송이 실패한 경우에 링크 전송 기능을 이용하여 파일을 공유하는 프로세스를 도시한 흐름도이다.
도 17은 다양한 실시예들에 따른 전자 장치가 기기간 통신에 기초한 파일 전송이 실패한 경우에 표시하는 사용자 인터페이스의 예시를 도시한 도면이다.
1 is a block diagram of an electronic device in a network environment according to various embodiments of the present disclosure;
2 is a block diagram of an electronic device and an external electronic device according to various embodiments of the present disclosure.
3 is a flowchart illustrating a file sharing process of an electronic device according to various embodiments of the present disclosure.
4 is a diagram illustrating a structure for a messaging application of an electronic device to share a file using link information according to various embodiments of the present disclosure.
5 is a diagram illustrating an example of a process of sharing a file using link information from an electronic device to an external electronic device according to various embodiments of the present disclosure;
6 is a flowchart illustrating a process in which an electronic device attaches and transmits a file to a message created in a messaging application, according to various embodiments of the present disclosure;
7 is a diagram illustrating an example of a notification message displayed when an electronic device determines that original transmission is impossible, according to various embodiments of the present disclosure;
8 is a diagram illustrating an example of a user interface displayed by an electronic device to share a file using a messaging application according to various embodiments of the present disclosure;
9 is a flowchart illustrating a process in which an electronic device selects a link sharing mode to share a file, according to various embodiments of the present disclosure;
10 is a diagram illustrating an example of a user interface displayed by an electronic device to select a file and select a link sharing mode, according to various embodiments of the present disclosure;
11 is a flowchart illustrating a process in which an electronic device selects and shares a file in a content list application according to various embodiments of the present disclosure;
12 is a diagram illustrating an example of a user interface displayed by an electronic device to select a file in a content list application and a sharing function using a messaging application, according to various embodiments of the present disclosure;
13 is a flowchart illustrating a process in which an electronic device configures and provides a content sharing function list based on a selected file according to various embodiments of the present disclosure.
14 is a flowchart illustrating a process in which an electronic device shares a file based on a content sharing limit set in a messaging application, according to various embodiments of the present disclosure;
15 is a diagram illustrating examples of user interfaces displayed by an electronic device to share a file based on a content sharing limit set in a messaging application, according to various embodiments of the present disclosure;
16 is a flowchart illustrating a process in which an electronic device shares a file using a link transmission function when file transmission based on device-to-device communication fails, according to various embodiments of the present disclosure;
17 is a diagram illustrating an example of a user interface displayed by an electronic device when file transmission based on device-to-device communication fails, according to various embodiments of the present disclosure;

도 1은, 다양한 실시예들에 따른, 네트워크 환경(100) 내의 전자 장치(101)의 블록도이다. 도 1을 참조하면, 네트워크 환경(100)에서 전자 장치(101)는 제 1 네트워크(198)(예: 근거리 무선 통신 네트워크)를 통하여 전자 장치(102)와 통신하거나, 또는 제 2 네트워크(199)(예: 원거리 무선 통신 네트워크)를 통하여 전자 장치(104) 또는 서버(108)와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 서버(108)를 통하여 전자 장치(104)와 통신할 수 있다. 일실시예에 따르면, 전자 장치(101)는 프로세서(120), 메모리(130), 입력 모듈(150), 음향 출력 모듈(155), 디스플레이 모듈(160), 오디오 모듈(170), 센서 모듈(176), 인터페이스(177), 연결 단자(178), 햅틱 모듈(179), 카메라 모듈(180), 전력 관리 모듈(188), 배터리(189), 통신 모듈(190), 가입자 식별 모듈(196), 또는 안테나 모듈(197)을 포함할 수 있다. 어떤 실시예에서는, 전자 장치(101)에는, 이 구성요소들 중 적어도 하나(예: 연결 단자(178))가 생략되거나, 하나 이상의 다른 구성요소가 추가될 수 있다. 어떤 실시예에서는, 이 구성요소들 중 일부들(예: 센서 모듈(176), 카메라 모듈(180), 또는 안테나 모듈(197))은 하나의 구성요소(예: 디스플레이 모듈(160))로 통합될 수 있다.1 is a block diagram of an electronic device 101 in a network environment 100 according to various embodiments. Referring to FIG. 1 , in a network environment 100 , an electronic device 101 communicates with an electronic device 102 through a first network 198 (eg, a short-range wireless communication network) or a second network 199 . It may communicate with the electronic device 104 or the server 108 through (eg, a long-distance wireless communication network). According to an embodiment, the electronic device 101 may communicate with the electronic device 104 through the server 108 . According to an embodiment, the electronic device 101 includes a processor 120 , a memory 130 , an input module 150 , a sound output module 155 , a display module 160 , an audio module 170 , and a sensor module ( 176), interface 177, connection terminal 178, haptic module 179, camera module 180, power management module 188, battery 189, communication module 190, subscriber identification module 196 , or an antenna module 197 may be included. In some embodiments, at least one of these components (eg, the connection terminal 178 ) may be omitted or one or more other components may be added to the electronic device 101 . In some embodiments, some of these components (eg, sensor module 176 , camera module 180 , or antenna module 197 ) are integrated into one component (eg, display module 160 ). can be

프로세서(120)는, 예를 들면, 소프트웨어(예: 프로그램(140))를 실행하여 프로세서(120)에 연결된 전자 장치(101)의 적어도 하나의 다른 구성요소(예: 하드웨어 또는 소프트웨어 구성요소)를 제어할 수 있고, 다양한 데이터 처리 또는 연산을 수행할 수 있다. 일실시예에 따르면, 데이터 처리 또는 연산의 적어도 일부로서, 프로세서(120)는 다른 구성요소(예: 센서 모듈(176) 또는 통신 모듈(190))로부터 수신된 명령 또는 데이터를 휘발성 메모리(132)에 저장하고, 휘발성 메모리(132)에 저장된 명령 또는 데이터를 처리하고, 결과 데이터를 비휘발성 메모리(134)에 저장할 수 있다. 일실시예에 따르면, 프로세서(120)는 메인 프로세서(121)(예: 중앙 처리 장치 또는 어플리케이션 프로세서) 또는 이와는 독립적으로 또는 함께 운영 가능한 보조 프로세서(123)(예: 그래픽 처리 장치, 신경망 처리 장치(NPU: neural processing unit), 이미지 시그널 프로세서, 센서 허브 프로세서, 또는 커뮤니케이션 프로세서)를 포함할 수 있다. 예를 들어, 전자 장치(101)가 메인 프로세서(121) 및 보조 프로세서(123)를 포함하는 경우, 보조 프로세서(123)는 메인 프로세서(121)보다 저전력을 사용하거나, 지정된 기능에 특화되도록 설정될 수 있다. 보조 프로세서(123)는 메인 프로세서(121)와 별개로, 또는 그 일부로서 구현될 수 있다.The processor 120, for example, executes software (eg, a program 140) to execute at least one other component (eg, a hardware or software component) of the electronic device 101 connected to the processor 120 . It can control and perform various data processing or operations. According to one embodiment, as at least part of data processing or operation, the processor 120 converts commands or data received from other components (eg, the sensor module 176 or the communication module 190 ) to the volatile memory 132 . may be stored in the volatile memory 132 , and may process commands or data stored in the volatile memory 132 , and store the result data in the non-volatile memory 134 . According to an embodiment, the processor 120 is the main processor 121 (eg, a central processing unit or an application processor) or a secondary processor 123 (eg, a graphic processing unit, a neural network processing unit) a neural processing unit (NPU), an image signal processor, a sensor hub processor, or a communication processor). For example, when the electronic device 101 includes the main processor 121 and the sub-processor 123 , the sub-processor 123 may use less power than the main processor 121 or may be set to be specialized for a specified function. can The auxiliary processor 123 may be implemented separately from or as a part of the main processor 121 .

보조 프로세서(123)는, 예를 들면, 메인 프로세서(121)가 인액티브(예: 슬립) 상태에 있는 동안 메인 프로세서(121)를 대신하여, 또는 메인 프로세서(121)가 액티브(예: 어플리케이션 실행) 상태에 있는 동안 메인 프로세서(121)와 함께, 전자 장치(101)의 구성요소들 중 적어도 하나의 구성요소(예: 디스플레이 모듈(160), 센서 모듈(176), 또는 통신 모듈(190))와 관련된 기능 또는 상태들의 적어도 일부를 제어할 수 있다. 일실시예에 따르면, 보조 프로세서(123)(예: 이미지 시그널 프로세서 또는 커뮤니케이션 프로세서)는 기능적으로 관련 있는 다른 구성요소(예: 카메라 모듈(180) 또는 통신 모듈(190))의 일부로서 구현될 수 있다. 일실시예에 따르면, 보조 프로세서(123)(예: 신경망 처리 장치)는 인공지능 모델의 처리에 특화된 하드웨어 구조를 포함할 수 있다. 인공지능 모델은 기계 학습을 통해 생성될 수 있다. 이러한 학습은, 예를 들어, 인공지능이 수행되는 전자 장치(101) 자체에서 수행될 수 있고, 별도의 서버(예: 서버(108))를 통해 수행될 수도 있다. 학습 알고리즘은, 예를 들어, 지도형 학습(supervised learning), 비지도형 학습(unsupervised learning), 준지도형 학습(semi-supervised learning) 또는 강화 학습(reinforcement learning)을 포함할 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은, 복수의 인공 신경망 레이어들을 포함할 수 있다. 인공 신경망은 심층 신경망(DNN: deep neural network), CNN(convolutional neural network), RNN(recurrent neural network), RBM(restricted boltzmann machine), DBN(deep belief network), BRDNN(bidirectional recurrent deep neural network), 심층 Q-네트워크(deep Q-networks) 또는 상기 중 둘 이상의 조합 중 하나일 수 있으나, 전술한 예에 한정되지 않는다. 인공지능 모델은 하드웨어 구조 이외에, 추가적으로 또는 대체적으로, 소프트웨어 구조를 포함할 수 있다. The auxiliary processor 123 is, for example, on behalf of the main processor 121 while the main processor 121 is in an inactive (eg, sleep) state, or the main processor 121 is active (eg, executing an application). ), together with the main processor 121, at least one of the components of the electronic device 101 (eg, the display module 160, the sensor module 176, or the communication module 190) It is possible to control at least some of the related functions or states. According to an embodiment, the co-processor 123 (eg, an image signal processor or a communication processor) may be implemented as part of another functionally related component (eg, the camera module 180 or the communication module 190). there is. According to an embodiment, the auxiliary processor 123 (eg, a neural network processing device) may include a hardware structure specialized for processing an artificial intelligence model. Artificial intelligence models can be created through machine learning. Such learning may be performed, for example, in the electronic device 101 itself on which artificial intelligence is performed, or may be performed through a separate server (eg, the server 108). The learning algorithm may include, for example, supervised learning, unsupervised learning, semi-supervised learning, or reinforcement learning, but in the above example not limited The artificial intelligence model may include a plurality of artificial neural network layers. Artificial neural networks include deep neural networks (DNNs), convolutional neural networks (CNNs), recurrent neural networks (RNNs), restricted boltzmann machines (RBMs), deep belief networks (DBNs), bidirectional recurrent deep neural networks (BRDNNs), It may be one of deep Q-networks or a combination of two or more of the above, but is not limited to the above example. The artificial intelligence model may include, in addition to, or alternatively, a software structure in addition to the hardware structure.

메모리(130)는, 전자 장치(101)의 적어도 하나의 구성요소(예: 프로세서(120) 또는 센서 모듈(176))에 의해 사용되는 다양한 데이터를 저장할 수 있다. 데이터는, 예를 들어, 소프트웨어(예: 프로그램(140)) 및, 이와 관련된 명령에 대한 입력 데이터 또는 출력 데이터를 포함할 수 있다. 메모리(130)는, 휘발성 메모리(132) 또는 비휘발성 메모리(134)를 포함할 수 있다. The memory 130 may store various data used by at least one component of the electronic device 101 (eg, the processor 120 or the sensor module 176 ). The data may include, for example, input data or output data for software (eg, the program 140 ) and instructions related thereto. The memory 130 may include a volatile memory 132 or a non-volatile memory 134 .

프로그램(140)은 메모리(130)에 소프트웨어로서 저장될 수 있으며, 예를 들면, 운영 체제(142), 미들 웨어(144) 또는 어플리케이션(146)을 포함할 수 있다. The program 140 may be stored as software in the memory 130 , and may include, for example, an operating system 142 , middleware 144 , or an application 146 .

입력 모듈(150)은, 전자 장치(101)의 구성요소(예: 프로세서(120))에 사용될 명령 또는 데이터를 전자 장치(101)의 외부(예: 사용자)로부터 수신할 수 있다. 입력 모듈(150)은, 예를 들면, 마이크, 마우스, 키보드, 키(예: 버튼), 또는 디지털 펜(예: 스타일러스 펜)을 포함할 수 있다. The input module 150 may receive a command or data to be used in a component (eg, the processor 120 ) of the electronic device 101 from the outside (eg, a user) of the electronic device 101 . The input module 150 may include, for example, a microphone, a mouse, a keyboard, a key (eg, a button), or a digital pen (eg, a stylus pen).

음향 출력 모듈(155)은 음향 신호를 전자 장치(101)의 외부로 출력할 수 있다. 음향 출력 모듈(155)은, 예를 들면, 스피커 또는 리시버를 포함할 수 있다. 스피커는 멀티미디어 재생 또는 녹음 재생과 같이 일반적인 용도로 사용될 수 있다. 리시버는 착신 전화를 수신하기 위해 사용될 수 있다. 일실시예에 따르면, 리시버는 스피커와 별개로, 또는 그 일부로서 구현될 수 있다.The sound output module 155 may output a sound signal to the outside of the electronic device 101 . The sound output module 155 may include, for example, a speaker or a receiver. The speaker can be used for general purposes such as multimedia playback or recording playback. The receiver may be used to receive an incoming call. According to one embodiment, the receiver may be implemented separately from or as part of the speaker.

디스플레이 모듈(160)은 전자 장치(101)의 외부(예: 사용자)로 정보를 시각적으로 제공할 수 있다. 디스플레이 모듈(160)은, 예를 들면, 디스플레이, 홀로그램 장치, 또는 프로젝터 및 해당 장치를 제어하기 위한 제어 회로를 포함할 수 있다. 일실시예에 따르면, 디스플레이 모듈(160)은 터치를 감지하도록 설정된 터치 센서, 또는 상기 터치에 의해 발생되는 힘의 세기를 측정하도록 설정된 압력 센서를 포함할 수 있다. The display module 160 may visually provide information to the outside (eg, a user) of the electronic device 101 . The display module 160 may include, for example, a control circuit for controlling a display, a hologram device, or a projector and a corresponding device. According to an embodiment, the display module 160 may include a touch sensor configured to sense a touch or a pressure sensor configured to measure the intensity of a force generated by the touch.

오디오 모듈(170)은 소리를 전기 신호로 변환시키거나, 반대로 전기 신호를 소리로 변환시킬 수 있다. 일실시예에 따르면, 오디오 모듈(170)은, 입력 모듈(150)을 통해 소리를 획득하거나, 음향 출력 모듈(155), 또는 전자 장치(101)와 직접 또는 무선으로 연결된 외부 전자 장치(예: 전자 장치(102))(예: 스피커 또는 헤드폰)를 통해 소리를 출력할 수 있다.The audio module 170 may convert a sound into an electric signal or, conversely, convert an electric signal into a sound. According to an embodiment, the audio module 170 acquires a sound through the input module 150 , or an external electronic device (eg, a sound output module 155 ) connected directly or wirelessly with the electronic device 101 . A sound may be output through the electronic device 102 (eg, a speaker or headphones).

센서 모듈(176)은 전자 장치(101)의 작동 상태(예: 전력 또는 온도), 또는 외부의 환경 상태(예: 사용자 상태)를 감지하고, 감지된 상태에 대응하는 전기 신호 또는 데이터 값을 생성할 수 있다. 일실시예에 따르면, 센서 모듈(176)은, 예를 들면, 제스처 센서, 자이로 센서, 기압 센서, 마그네틱 센서, 가속도 센서, 그립 센서, 근접 센서, 컬러 센서, IR(infrared) 센서, 생체 센서, 온도 센서, 습도 센서, 또는 조도 센서를 포함할 수 있다. The sensor module 176 detects an operating state (eg, power or temperature) of the electronic device 101 or an external environmental state (eg, user state), and generates an electrical signal or data value corresponding to the sensed state. can do. According to an embodiment, the sensor module 176 may include, for example, a gesture sensor, a gyro sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a grip sensor, a proximity sensor, a color sensor, an IR (infrared) sensor, a biometric sensor, It may include a temperature sensor, a humidity sensor, or an illuminance sensor.

인터페이스(177)는 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 직접 또는 무선으로 연결되기 위해 사용될 수 있는 하나 이상의 지정된 프로토콜들을 지원할 수 있다. 일실시예에 따르면, 인터페이스(177)는, 예를 들면, HDMI(high definition multimedia interface), USB(universal serial bus) 인터페이스, SD카드 인터페이스, 또는 오디오 인터페이스를 포함할 수 있다.The interface 177 may support one or more designated protocols that may be used by the electronic device 101 to directly or wirelessly connect with an external electronic device (eg, the electronic device 102 ). According to an embodiment, the interface 177 may include, for example, a high definition multimedia interface (HDMI), a universal serial bus (USB) interface, an SD card interface, or an audio interface.

연결 단자(178)는, 그를 통해서 전자 장치(101)가 외부 전자 장치(예: 전자 장치(102))와 물리적으로 연결될 수 있는 커넥터를 포함할 수 있다. 일실시예에 따르면, 연결 단자(178)는, 예를 들면, HDMI 커넥터, USB 커넥터, SD 카드 커넥터, 또는 오디오 커넥터(예: 헤드폰 커넥터)를 포함할 수 있다.The connection terminal 178 may include a connector through which the electronic device 101 can be physically connected to an external electronic device (eg, the electronic device 102 ). According to an embodiment, the connection terminal 178 may include, for example, an HDMI connector, a USB connector, an SD card connector, or an audio connector (eg, a headphone connector).

햅틱 모듈(179)은 전기적 신호를 사용자가 촉각 또는 운동 감각을 통해서 인지할 수 있는 기계적인 자극(예: 진동 또는 움직임) 또는 전기적인 자극으로 변환할 수 있다. 일실시예에 따르면, 햅틱 모듈(179)은, 예를 들면, 모터, 압전 소자, 또는 전기 자극 장치를 포함할 수 있다.The haptic module 179 may convert an electrical signal into a mechanical stimulus (eg, vibration or movement) or an electrical stimulus that the user can perceive through tactile or kinesthetic sense. According to an embodiment, the haptic module 179 may include, for example, a motor, a piezoelectric element, or an electrical stimulation device.

카메라 모듈(180)은 정지 영상 및 동영상을 촬영할 수 있다. 일실시예에 따르면, 카메라 모듈(180)은 하나 이상의 렌즈들, 이미지 센서들, 이미지 시그널 프로세서들, 또는 플래시들을 포함할 수 있다.The camera module 180 may capture still images and moving images. According to an embodiment, the camera module 180 may include one or more lenses, image sensors, image signal processors, or flashes.

전력 관리 모듈(188)은 전자 장치(101)에 공급되는 전력을 관리할 수 있다. 일실시예에 따르면, 전력 관리 모듈(188)은, 예를 들면, PMIC(power management integrated circuit)의 적어도 일부로서 구현될 수 있다.The power management module 188 may manage power supplied to the electronic device 101 . According to an embodiment, the power management module 188 may be implemented as, for example, at least a part of a power management integrated circuit (PMIC).

배터리(189)는 전자 장치(101)의 적어도 하나의 구성요소에 전력을 공급할 수 있다. 일실시예에 따르면, 배터리(189)는, 예를 들면, 재충전 불가능한 1차 전지, 재충전 가능한 2차 전지 또는 연료 전지를 포함할 수 있다.The battery 189 may supply power to at least one component of the electronic device 101 . According to one embodiment, battery 189 may include, for example, a non-rechargeable primary cell, a rechargeable secondary cell, or a fuel cell.

통신 모듈(190)은 전자 장치(101)와 외부 전자 장치(예: 전자 장치(102), 전자 장치(104), 또는 서버(108)) 간의 직접(예: 유선) 통신 채널 또는 무선 통신 채널의 수립, 및 수립된 통신 채널을 통한 통신 수행을 지원할 수 있다. 통신 모듈(190)은 프로세서(120)(예: 어플리케이션 프로세서)와 독립적으로 운영되고, 직접(예: 유선) 통신 또는 무선 통신을 지원하는 하나 이상의 커뮤니케이션 프로세서를 포함할 수 있다. 일실시예에 따르면, 통신 모듈(190)은 무선 통신 모듈(192)(예: 셀룰러 통신 모듈, 근거리 무선 통신 모듈, 또는 GNSS(global navigation satellite system) 통신 모듈) 또는 유선 통신 모듈(194)(예: LAN(local area network) 통신 모듈, 또는 전력선 통신 모듈)을 포함할 수 있다. 이들 통신 모듈 중 해당하는 통신 모듈은 제 1 네트워크(198)(예: 블루투스, WiFi(wireless fidelity) direct 또는 IrDA(infrared data association)와 같은 근거리 통신 네트워크) 또는 제 2 네트워크(199)(예: 레거시 셀룰러 네트워크, 5G 네트워크, 차세대 통신 네트워크, 인터넷, 또는 컴퓨터 네트워크(예: LAN 또는 WAN)와 같은 원거리 통신 네트워크)를 통하여 외부의 전자 장치(104)와 통신할 수 있다. 이런 여러 종류의 통신 모듈들은 하나의 구성요소(예: 단일 칩)로 통합되거나, 또는 서로 별도의 복수의 구성요소들(예: 복수 칩들)로 구현될 수 있다. 무선 통신 모듈(192)은 가입자 식별 모듈(196)에 저장된 가입자 정보(예: 국제 모바일 가입자 식별자(IMSI))를 이용하여 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크 내에서 전자 장치(101)를 확인 또는 인증할 수 있다. The communication module 190 is a direct (eg, wired) communication channel or a wireless communication channel between the electronic device 101 and an external electronic device (eg, the electronic device 102, the electronic device 104, or the server 108). It can support establishment and communication performance through the established communication channel. The communication module 190 may include one or more communication processors that operate independently of the processor 120 (eg, an application processor) and support direct (eg, wired) communication or wireless communication. According to one embodiment, the communication module 190 is a wireless communication module 192 (eg, a cellular communication module, a short-range wireless communication module, or a global navigation satellite system (GNSS) communication module) or a wired communication module 194 (eg, : It may include a LAN (local area network) communication module, or a power line communication module). A corresponding communication module among these communication modules is a first network 198 (eg, a short-range communication network such as Bluetooth, wireless fidelity (WiFi) direct, or infrared data association (IrDA)) or a second network 199 (eg, legacy It may communicate with the external electronic device 104 through a cellular network, a 5G network, a next-generation communication network, the Internet, or a computer network (eg, a telecommunication network such as a LAN or a WAN). These various types of communication modules may be integrated into one component (eg, a single chip) or may be implemented as a plurality of components (eg, multiple chips) separate from each other. The wireless communication module 192 uses the subscriber information (eg, International Mobile Subscriber Identifier (IMSI)) stored in the subscriber identification module 196 within a communication network such as the first network 198 or the second network 199 . The electronic device 101 may be identified or authenticated.

무선 통신 모듈(192)은 4G 네트워크 이후의 5G 네트워크 및 차세대 통신 기술, 예를 들어, NR 접속 기술(new radio access technology)을 지원할 수 있다. NR 접속 기술은 고용량 데이터의 고속 전송(eMBB(enhanced mobile broadband)), 단말 전력 최소화와 다수 단말의 접속(mMTC(massive machine type communications)), 또는 고신뢰도와 저지연(URLLC(ultra-reliable and low-latency communications))을 지원할 수 있다. 무선 통신 모듈(192)은, 예를 들어, 높은 데이터 전송률 달성을 위해, 고주파 대역(예: mmWave 대역)을 지원할 수 있다. 무선 통신 모듈(192)은 고주파 대역에서의 성능 확보를 위한 다양한 기술들, 예를 들어, 빔포밍(beamforming), 거대 배열 다중 입출력(massive MIMO(multiple-input and multiple-output)), 전차원 다중입출력(FD-MIMO: full dimensional MIMO), 어레이 안테나(array antenna), 아날로그 빔형성(analog beam-forming), 또는 대규모 안테나(large scale antenna)와 같은 기술들을 지원할 수 있다. 무선 통신 모듈(192)은 전자 장치(101), 외부 전자 장치(예: 전자 장치(104)) 또는 네트워크 시스템(예: 제 2 네트워크(199))에 규정되는 다양한 요구사항을 지원할 수 있다. 일실시예에 따르면, 무선 통신 모듈(192)은 eMBB 실현을 위한 Peak data rate(예: 20Gbps 이상), mMTC 실현을 위한 손실 Coverage(예: 164dB 이하), 또는 URLLC 실현을 위한 U-plane latency(예: 다운링크(DL) 및 업링크(UL) 각각 0.5ms 이하, 또는 라운드 트립 1ms 이하)를 지원할 수 있다.The wireless communication module 192 may support a 5G network after a 4G network and a next-generation communication technology, for example, a new radio access technology (NR). NR access technology includes high-speed transmission of high-capacity data (eMBB (enhanced mobile broadband)), minimization of terminal power and access to multiple terminals (mMTC (massive machine type communications)), or high reliability and low latency (URLLC (ultra-reliable and low-latency) -latency communications)). The wireless communication module 192 may support a high frequency band (eg, mmWave band) to achieve a high data rate, for example. The wireless communication module 192 includes various technologies for securing performance in a high-frequency band, for example, beamforming, massive multiple-input and multiple-output (MIMO), all-dimensional multiplexing. It may support technologies such as full dimensional MIMO (FD-MIMO), an array antenna, analog beam-forming, or a large scale antenna. The wireless communication module 192 may support various requirements specified in the electronic device 101 , an external electronic device (eg, the electronic device 104 ), or a network system (eg, the second network 199 ). According to an embodiment, the wireless communication module 192 may include a peak data rate (eg, 20 Gbps or more) for realizing eMBB, loss coverage (eg, 164 dB or less) for realizing mMTC, or U-plane latency for realizing URLLC ( Example: downlink (DL) and uplink (UL) each 0.5 ms or less, or round trip 1 ms or less).

안테나 모듈(197)은 신호 또는 전력을 외부(예: 외부의 전자 장치)로 송신하거나 외부로부터 수신할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 서브스트레이트(예: PCB) 위에 형성된 도전체 또는 도전성 패턴으로 이루어진 방사체를 포함하는 안테나를 포함할 수 있다. 일실시예에 따르면, 안테나 모듈(197)은 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다. 이런 경우, 제 1 네트워크(198) 또는 제 2 네트워크(199)와 같은 통신 네트워크에서 사용되는 통신 방식에 적합한 적어도 하나의 안테나가, 예를 들면, 통신 모듈(190)에 의하여 상기 복수의 안테나들로부터 선택될 수 있다. 신호 또는 전력은 상기 선택된 적어도 하나의 안테나를 통하여 통신 모듈(190)과 외부의 전자 장치 간에 송신되거나 수신될 수 있다. 어떤 실시예에 따르면, 방사체 이외에 다른 부품(예: RFIC(radio frequency integrated circuit))이 추가로 안테나 모듈(197)의 일부로 형성될 수 있다. The antenna module 197 may transmit or receive a signal or power to the outside (eg, an external electronic device). According to an embodiment, the antenna module 197 may include an antenna including a conductor formed on a substrate (eg, a PCB) or a radiator formed of a conductive pattern. According to an embodiment, the antenna module 197 may include a plurality of antennas (eg, an array antenna). In this case, at least one antenna suitable for a communication method used in a communication network such as the first network 198 or the second network 199 is connected from the plurality of antennas by, for example, the communication module 190 . can be selected. A signal or power may be transmitted or received between the communication module 190 and an external electronic device through the selected at least one antenna. According to some embodiments, other components (eg, a radio frequency integrated circuit (RFIC)) other than the radiator may be additionally formed as a part of the antenna module 197 .

다양한 실시예에 따르면, 안테나 모듈(197)은 mmWave 안테나 모듈을 형성할 수 있다. 일실시예에 따르면, mmWave 안테나 모듈은 인쇄 회로 기판, 상기 인쇄 회로 기판의 제 1 면(예: 아래 면)에 또는 그에 인접하여 배치되고 지정된 고주파 대역(예: mmWave 대역)을 지원할 수 있는 RFIC, 및 상기 인쇄 회로 기판의 제 2 면(예: 윗 면 또는 측 면)에 또는 그에 인접하여 배치되고 상기 지정된 고주파 대역의 신호를 송신 또는 수신할 수 있는 복수의 안테나들(예: 어레이 안테나)을 포함할 수 있다.According to various embodiments, the antenna module 197 may form a mmWave antenna module. According to one embodiment, the mmWave antenna module comprises a printed circuit board, an RFIC disposed on or adjacent to a first side (eg, bottom side) of the printed circuit board and capable of supporting a designated high frequency band (eg, mmWave band); and a plurality of antennas (eg, an array antenna) disposed on or adjacent to a second side (eg, top or side) of the printed circuit board and capable of transmitting or receiving signals of the designated high frequency band. can do.

상기 구성요소들 중 적어도 일부는 주변 기기들간 통신 방식(예: 버스, GPIO(general purpose input and output), SPI(serial peripheral interface), 또는 MIPI(mobile industry processor interface))을 통해 서로 연결되고 신호(예: 명령 또는 데이터)를 상호간에 교환할 수 있다.At least some of the components are connected to each other through a communication method between peripheral devices (eg, a bus, general purpose input and output (GPIO), serial peripheral interface (SPI), or mobile industry processor interface (MIPI)) and a signal ( eg commands or data) can be exchanged with each other.

일실시예에 따르면, 명령 또는 데이터는 제 2 네트워크(199)에 연결된 서버(108)를 통해서 전자 장치(101)와 외부의 전자 장치(104)간에 송신 또는 수신될 수 있다. 외부의 전자 장치(102, 또는 104) 각각은 전자 장치(101)와 동일한 또는 다른 종류의 장치일 수 있다. 일실시예에 따르면, 전자 장치(101)에서 실행되는 동작들의 전부 또는 일부는 외부의 전자 장치들(102, 104, 또는 108) 중 하나 이상의 외부의 전자 장치들에서 실행될 수 있다. 예를 들면, 전자 장치(101)가 어떤 기능이나 서비스를 자동으로, 또는 사용자 또는 다른 장치로부터의 요청에 반응하여 수행해야 할 경우에, 전자 장치(101)는 기능 또는 서비스를 자체적으로 실행시키는 대신에 또는 추가적으로, 하나 이상의 외부의 전자 장치들에게 그 기능 또는 그 서비스의 적어도 일부를 수행하라고 요청할 수 있다. 상기 요청을 수신한 하나 이상의 외부의 전자 장치들은 요청된 기능 또는 서비스의 적어도 일부, 또는 상기 요청과 관련된 추가 기능 또는 서비스를 실행하고, 그 실행의 결과를 전자 장치(101)로 전달할 수 있다. 전자 장치(101)는 상기 결과를, 그대로 또는 추가적으로 처리하여, 상기 요청에 대한 응답의 적어도 일부로서 제공할 수 있다. 이를 위하여, 예를 들면, 클라우드 컴퓨팅, 분산 컴퓨팅, 모바일 에지 컴퓨팅(MEC: mobile edge computing), 또는 클라이언트-서버 컴퓨팅 기술이 이용될 수 있다. 전자 장치(101)는, 예를 들어, 분산 컴퓨팅 또는 모바일 에지 컴퓨팅을 이용하여 초저지연 서비스를 제공할 수 있다. 다른 실시예에 있어서, 외부의 전자 장치(104)는 IoT(internet of things) 기기를 포함할 수 있다. 서버(108)는 기계 학습 및/또는 신경망을 이용한 지능형 서버일 수 있다. 일실시예에 따르면, 외부의 전자 장치(104) 또는 서버(108)는 제 2 네트워크(199) 내에 포함될 수 있다. 전자 장치(101)는 5G 통신 기술 및 IoT 관련 기술을 기반으로 지능형 서비스(예: 스마트 홈, 스마트 시티, 스마트 카, 또는 헬스 케어)에 적용될 수 있다. According to an embodiment, the command or data may be transmitted or received between the electronic device 101 and the external electronic device 104 through the server 108 connected to the second network 199 . Each of the external electronic devices 102 or 104 may be the same as or different from the electronic device 101 . According to an embodiment, all or a part of operations executed in the electronic device 101 may be executed in one or more external electronic devices 102 , 104 , or 108 . For example, when the electronic device 101 is to perform a function or service automatically or in response to a request from a user or other device, the electronic device 101 may perform the function or service itself instead of executing the function or service itself. Alternatively or additionally, one or more external electronic devices may be requested to perform at least a part of the function or the service. One or more external electronic devices that have received the request may execute at least a part of the requested function or service, or an additional function or service related to the request, and transmit a result of the execution to the electronic device 101 . The electronic device 101 may process the result as it is or additionally and provide it as at least a part of a response to the request. For this, for example, cloud computing, distributed computing, mobile edge computing (MEC), or client-server computing technology may be used. The electronic device 101 may provide an ultra-low latency service using, for example, distributed computing or mobile edge computing. In another embodiment, the external electronic device 104 may include an Internet of things (IoT) device. Server 108 may be an intelligent server using machine learning and/or neural networks. According to an embodiment, the external electronic device 104 or the server 108 may be included in the second network 199 . The electronic device 101 may be applied to an intelligent service (eg, smart home, smart city, smart car, or health care) based on 5G communication technology and IoT-related technology.

도 2는, 다양한 실시 예들에 따른 전자 장치(101)(예: 도 1의 전자 장치(101))와 외부 전자 장치(210)(예: 전자 장치(102) 또는 전자 장치(104))의 블록도이다.2 is a block diagram of an electronic device 101 (eg, the electronic device 101 of FIG. 1 ) and an external electronic device 210 (eg, the electronic device 102 or the electronic device 104) according to various embodiments of the present disclosure. It is also

다양한 실시 예들에 따른 전자 장치(101)는 디스플레이(201), 프로세서(203) 및 통신 회로(205)를 포함할 수 있다. 프로세서(203)는 디스플레이(201) 및 통신 회로(205)와 작동적으로 연결될 수 있다. 다만, 일부 구성요소는 생략될 수도 있다. 예를 들어, 디스플레이(201)는 전자 장치(101)에 포함되지 않고 전자 장치(101)와 유선 또는 무선으로 연결 가능한 외부 디스플레이로 대체될 수도 있다. 또한, 외부 전자 장치(210)도 디스플레이(211), 프로세서(213) 및 통신 회로(215)를 포함할 수 있다.The electronic device 101 according to various embodiments may include a display 201 , a processor 203 , and a communication circuit 205 . The processor 203 may be operatively coupled to the display 201 and the communication circuitry 205 . However, some components may be omitted. For example, the display 201 may be replaced with an external display that is not included in the electronic device 101 and can be connected to the electronic device 101 by wire or wirelessly. Also, the external electronic device 210 may include a display 211 , a processor 213 , and a communication circuit 215 .

전자 장치(101)는 네트워크(예: 도 1의 제1 네트워크(198) 또는 제2 네트워크 (199))를 통해서 외부 전자 장치(210)로 데이터를 전송하거나 외부 전자 장치(210)로부터 데이터를 수신할 수 있다. 또는, 전자 장치(101)는 외부 전자 장치(210)에 직접 데이터를 전송하거나 외부 전자 장치로부터(210) 데이터를 수신할 수 있다.The electronic device 101 transmits data to or receives data from the external electronic device 210 through a network (eg, the first network 198 or the second network 199 of FIG. 1 ). can do. Alternatively, the electronic device 101 may directly transmit data to the external electronic device 210 or may receive data 210 from the external electronic device.

예를 들면, 프로세서(203)는 사용자 입력에 기초하여 선택된 파일을 첨부한 메시지를 생성하고, 통신 회로(205)를 제어하여 RCS (Rich Communication Suite) 또는 MMS (Multimedia Messaging Service) 중 적어도 하나를 통해서 파일이 첨부된 메시지를 외부 전자 장치(210)로 전송할 수 있다. 또는, 다른 예를 들면, 프로세서(203)는 제3자 (3rd party)가 제공하는 인스턴트 메신저(instant messenger) 어플리케이션을 실행하고, 인스턴트 메시지 어플리케이션에서 지원하는 파일 공유 기능을 이용하여 인스턴트 메시지 서비스 제공 서버를 통해서 외부 전자 장치(210)로 파일을 전송할 수 있다. 그러나, 메시지에 파일을 첨부하여 전송하는 경우 메시지 전송망(예: RCS 또는 MMS)의 규격에서 정의된 파일의 크기나 파일 포맷에 제한이 있다. 또는, 인스턴트 메시지 어플리케이션에 제공하는 파일 공유 기능에 제한(예를 들어, 1회에 전송 가능한 파일의 수량)이 설정되어 있을 수 있다. 따라서, 사용자가 메시지 전송망이나 메시징 어플리케이션에서 정의된 제한을 초과하는 파일을 전송하고자 하는 경우 파일 첨부나 전송이 거부될 수 있으므로, 사용자가 파일 공유 서비스에 대한 단절 없이 파일을 전송할 수 있도록 하기 위한 방법 및 장치가 제공되어야 한다.For example, the processor 203 generates a message to which a selected file is attached based on a user input, and controls the communication circuit 205 through at least one of RCS (Rich Communication Suite) or MMS (Multimedia Messaging Service). A message to which a file is attached may be transmitted to the external electronic device 210 . Alternatively, as another example, the processor 203 executes an instant messenger application provided by a third party, and uses a file sharing function supported by the instant message application to provide an instant message service server The file may be transmitted to the external electronic device 210 through . However, when sending a message with a file attached, there is a limit to the file size or file format defined in the standard of the message transmission network (eg RCS or MMS). Alternatively, a limit (eg, the number of files that can be transmitted at one time) may be set in the file sharing function provided to the instant message application. Therefore, when a user attempts to transmit a file that exceeds the limit defined in the message transmission network or messaging application, attachment or transmission of the file may be rejected. A device must be provided.

도 3은, 다양한 실시 예들에 따른 전자 장치의 파일 공유 프로세스를 도시한 흐름도(300)이다.3 is a flowchart 300 illustrating a file sharing process of an electronic device according to various embodiments of the present disclosure.

동작 S310에서, 전자 장치의 프로세서는 메시징 어플리케이션을 이용하여 파일을 제공하도록 하는 사용자 명령을 수신할 수 있다. 메시징 어플리케이션은, 예를 들면, 전자 장치 제공 시에 미리 설치되어 있는 어플리케이션일 수 있다. 사용자 명령은 공유의 대상이 되는 파일을 선택하고 파일을 수신할 외부 전자 장치를 식별할 수 있는 정보를 입력하는 사용자 입력에 대응되는 인스트럭션들(instructions)을 포함할 수 있다. 예를 들면, 사용자 명령은 메시징 어플리케이션에서 메시지를 작성하기 위하여 수신자 전화번호를 입력하고 파일 첨부 메뉴를 통해서 파일을 선택하는 터치 입력에 상응할 수 있다. 다른 예를 들면, 사용자 명령은 인스턴트 메신저 어플리케이션의 파일 공유 기능을 선택하고 파일 공유 기능을 이용하여 파일을 선택하는 사용자 입력에 상응하는 것일 수 있다.In operation S310, the processor of the electronic device may receive a user command to provide a file using a messaging application. The messaging application may be, for example, an application pre-installed when the electronic device is provided. The user command may include instructions corresponding to a user input of selecting a file to be shared and inputting information for identifying an external electronic device that will receive the file. For example, the user command may correspond to a touch input of entering a recipient's phone number and selecting a file via a file attachment menu to compose a message in a messaging application. As another example, the user command may correspond to a user input of selecting a file sharing function of the instant messenger application and selecting a file using the file sharing function.

동작 S320에서, 전자 장치의 프로세서는 동작 S310에 의해 선택된 적어도 하나의 파일의 전송이 가능한지 여부를 판단할 수 있다. 예를 들어, 전자 장치의 프로세서는 선택된 파일의 크기가 전송 가능한 범위에 포함되는지 여부를 판단할 수 있다. 다른 예를 들면, 전자 장치의 프로세서는 선택된 파일이 전송 가능한 파일 포맷인지 여부를 판단할 수 있다. 다양한 실시 예에 따르면, 동작 S320에서 전자 장치의 프로세서는 전자 장치의 원본 파일을 그대로 전송할 수 있는지 여부를 판단할 수 있다. 즉, 동작 S320에서 전자 장치의 프로세서는 파일의 원본 형태를 변환하여 전송하여야 하는 경우는 파일 전송이 불가능한 것으로 판단할 수 있다. 예를 들면, 전자 장치의 프로세서는 메시지에 적어도 하나의 파일을 첨부하여 전송할 때, 적어도 하나의 파일에 대한 크기 변환(resize) 동작이 수행되는 경우에는 파일 전송이 불가능한 것으로 판단할 수 있다. 다른 예를 들면, 전자 장치의 프로세서는 동영상 파일을 전송할 때 동영상 파일을 분할하여 전송하는 트림(trim) 동작이 수행되는 경우에는 파일 전송이 불가능한 것으로 판단할 수 있다.In operation S320, the processor of the electronic device may determine whether transmission of the at least one file selected in operation S310 is possible. For example, the processor of the electronic device may determine whether the size of the selected file is included in the transmittable range. As another example, the processor of the electronic device may determine whether the selected file is a transmittable file format. According to various embodiments, in operation S320, the processor of the electronic device may determine whether the original file of the electronic device can be transmitted as it is. That is, when the processor of the electronic device needs to convert and transmit the original form of the file in operation S320, it may be determined that the file transmission is impossible. For example, the processor of the electronic device may determine that the file transmission is impossible when a resizing operation is performed on the at least one file when transmitting at least one file as an attachment to the message. As another example, the processor of the electronic device may determine that the file transmission is impossible when a trim operation of dividing and transmitting the moving picture file is performed when transmitting the moving picture file.

동작 S320에서 파일 전송이 가능한 것으로 판단된 경우, 전자 장치의 프로세서는 동작 S335에서 메시지에 적어도 하나의 파일을 첨부하고, 메시지 또는 파일을 전송하도록 하는 사용자 입력에 응답하여 적어도 하나의 파일이 첨부된 메시지를 외부 전자 장치로 전송할 수 있다.If it is determined in operation S320 that file transmission is possible, the processor of the electronic device attaches at least one file to the message in operation S335, and in response to a user input to transmit the message or file, the message to which the at least one file is attached may be transmitted to an external electronic device.

동작 S320에서 파일 전송이 불가능한 것으로 판단된 경우, 전자 장치의 프로세서는 동작 S330에서 링크 정보를 생성할 수 있다. 링크 정보는 공유의 대상인 적어도 하나의 파일에 접근하여 다운로드 할 수 있는 위치를 나타내는 정보를 포함할 수 있다. 예를 들면, 링크 정보는 서버에 적어도 하나의 파일이 업로드된 주소를 나타내는 URL(uniform resource locator)를 포함할 수 있다. 다양한 실시 예에 따르면, 전자 장치는 전자 장치가 로그인한 클라우드 시스템 내의 링크 공유 서버에 링크 정보를 요청하고, 링크 공유 서버로부터 링크 정보를 수신할 수 있다. 다만, 이에 한정되지 아니한다. 예를 들어, 다른 실시예에 따르면, 전자 장치는 적어도 하나의 파일이 업로드될 위치를 지정하는 링크 정보를 생성하고, 생성된 링크 정보를 링크 공유 정보로 전송할 수도 있다. 다양한 실시 예에 따르면, 전자 장치는 생성된 링크 정보에 지정될 미리보기 컨텐츠를 외부 서버로 전송할 수 있다. 예를 들어, 전자 장치는 적어도 하나의 파일에 대한 적어도 하나의 썸네일(thumbnail) 이미지를 외부 서버로 전송할 수 있다. 다양한 실시 예에 따르면, 전자 장치는 링크 정보를 생성하는 링크 공유 서버와 파일이 업로드되는 파일 서버 각각에 미리보기 컨텐츠를 업데이트할 수 있다.If it is determined in operation S320 that file transmission is impossible, the processor of the electronic device may generate link information in operation S330. The link information may include information indicating a location where at least one file to be shared can be accessed and downloaded. For example, the link information may include a uniform resource locator (URL) indicating an address where at least one file is uploaded to the server. According to various embodiments of the present disclosure, the electronic device may request link information from a link sharing server in a cloud system to which the electronic device has logged in, and may receive link information from the link sharing server. However, the present invention is not limited thereto. For example, according to another embodiment, the electronic device may generate link information that designates a location where at least one file is to be uploaded, and transmit the generated link information as link sharing information. According to various embodiments, the electronic device may transmit preview content to be specified in the generated link information to an external server. For example, the electronic device may transmit at least one thumbnail image of at least one file to an external server. According to various embodiments of the present disclosure, the electronic device may update the preview content to a link sharing server that generates link information and a file server to which a file is uploaded, respectively.

동작 S340에서, 전자 장치의 프로세서는 링크 정보를 포함하는 메시지를 통신 회로를 통해서 외부 전자 장치로 전송할 수 있다. 또한, 동작 S350에서, 전자 장치의 프로세서는 메시지를 수신한 외부 전자 장치가 링크 정보를 통해서 적어도 하나의 파일을 다운로드할 수 있도록 외부 서버에 공유의 대상이 되는 적어도 하나의 파일을 업로드할 수 있다.In operation S340, the processor of the electronic device may transmit a message including link information to the external electronic device through the communication circuit. Also, in operation S350, the processor of the electronic device may upload at least one file to be shared to an external server so that the external electronic device receiving the message can download the at least one file through link information.

도 4는, 다양한 실시예들에 따른 전자 장치(400)(예: 도 1의 전자 장치(101), 도 2의 전자 장치(201))의 메시징 어플리케이션(403)이 링크 정보를 이용하여 파일을 공유하기 위한 구조를 도시한 도면이다.4 illustrates a messaging application 403 of an electronic device 400 (eg, the electronic device 101 of FIG. 1 and the electronic device 201 of FIG. 2 ) according to various embodiments of the present disclosure, using link information to transmit a file. It is a diagram showing a structure for sharing.

다양한 실시예들에 따른 전자 장치(400)는 메시징 어플리케이션(403)을 실행할 수 있다. 메시징 어플리케이션(403)는 메시지를 작성하고, 작성된 메시지를 메시지 전송망을 통해서 전송하는 어플리케이션을 포함할 수 있다. 작성된 메시지는, 예를 들면, SMS(short message service), MMS(multimedia message service), 또는 RCS(rich communication suite) 규격에 부합하도록 작성된 메시지일 수 있다. The electronic device 400 according to various embodiments may execute a messaging application 403 . The messaging application 403 may include an application that creates a message and transmits the created message through a message transmission network. The written message may be, for example, a message written to conform to a short message service (SMS), multimedia message service (MMS), or rich communication suite (RCS) standard.

전자 장치(400)는 메시징 어플리케이션(403)에 의해서 작성되는 메시지에 적어도 하나의 파일을 첨부하도록 하는 사용자 입력에 응답하여 적어도 하나의 파일이 메시지를 전송하기 위한 규격에 부합하는지 여부를 판단할 수 있다. 예를 들어, 전자 장치(400)는 적어도 하나의 파일의 크기가 규격에 정의된 크기 이하인지 여부를 판단할 수 있다. 다른 예를 들면, 전자 장치(400)는 적어도 하나의 파일의 포맷이 규격에 정의된 포맷에 포함되어 있는지 여부를 판단할 수 있다. 메시징 어플리케이션(403)은 링크 공유 어플리케이션(401)에 링크 정보를 요청하고, 링크 공유 어플리케이션(401)으로부터 링크 정보를 수신하기 위한 링크 공유 SDK(software development kit)(405)를 포함할 수 있다. 다양한 실시예들에 따르면, 메시징 어플리케이션(403)은 적어도 하나의 파일이 메시지를 전송하기 위한 규격에 부합하지 않는 것으로 판단된 경우, 링크 공유 SDK(405)를 통해서 링크 공유 어플리케이션(401)에 링크 정보를 요청할 수 있다. 링크 공유 어플리케이션(401)는 링크 정보의 요청에 응답하여, 전자 장치(400)가 로그인한 시스템(410) 내의 링크 공유 서버(411)로 링크 정보에 대한 요청을 전송할 수 있다. 시스템(410)은, 예를 들면 클라우드(cloud) 서비스를 제공하는 시스템일 수 있다. 링크 공유 서버(411)는 링크 정보에 대한 요청에 응답하여 링크 정보를 생성하고, 생성된 링크 정보를 전자 장치(400)로 전송할 수 있다.The electronic device 400 may determine whether the at least one file meets a standard for transmitting the message in response to a user input for attaching the at least one file to the message created by the messaging application 403 . . For example, the electronic device 400 may determine whether the size of at least one file is equal to or less than a size defined in a standard. As another example, the electronic device 400 may determine whether the format of at least one file is included in the format defined in the standard. The messaging application 403 may include a link sharing software development kit (SDK) 405 for requesting link information from the link sharing application 401 and receiving link information from the link sharing application 401 . According to various embodiments, when it is determined that at least one file does not meet the standard for transmitting a message, the messaging application 403 provides link information to the link sharing application 401 through the link sharing SDK 405 . can request In response to the request for link information, the link sharing application 401 may transmit a request for link information to the link sharing server 411 in the system 410 to which the electronic device 400 has logged in. The system 410 may be, for example, a system that provides a cloud service. The link sharing server 411 may generate link information in response to a request for link information, and transmit the generated link information to the electronic device 400 .

링크 공유 어플리케이션(401)은 링크 공유 서버(411)로부터 수신한 링크 정보를 링크 공유 SDK(405)를 통해서 메시징 어플리케이션(403)으로 전달할 수 있다. 메시징 어플리케이션(403)은 수신한 링크 정보를 메시지에 삽입하고, 링크 정보를 포함하는 메시지를 전송할 수 있다. 또한, 링크 공유 어플리케이션(401)는 메시지에 첨부하고자 하는 적어도 하나의 파일을 링크 정보를 이용하여 다운로드할 수 있도록 파일 서버(413)에 업로드할 수 있다.The link sharing application 401 may transmit the link information received from the link sharing server 411 to the messaging application 403 through the link sharing SDK 405 . The messaging application 403 may insert the received link information into a message and transmit a message including the link information. In addition, the link sharing application 401 may upload at least one file to be attached to the message to the file server 413 so that it can be downloaded using link information.

도 5는, 다양한 실시예들에 따라 전자 장치(예: 도 1의 전자 장치(101), 도 2의 전자 장치(101), 도 4의 전자 장치(400))로부터 외부 전자 장치(533)(예: 도 1의 전자 장치(102), 전자 장치(104), 도 2의 외부 전자 장치(201))로 링크 정보를 이용하여 파일이 공유되는 과정의 일례를 도시한 도면이다.5 illustrates an external electronic device 533 (eg, the electronic device 101 of FIG. 1 , the electronic device 101 of FIG. 2 , and the electronic device 400 of FIG. 4 ) according to various embodiments. Example: A diagram illustrating an example of a process of sharing a file using link information to the electronic device 102, the electronic device 104 of FIG. 1, and the external electronic device 201 of FIG. 2).

다양한 실시예들에 따른 전자 장치는 클라우드 시스템(511)에 등록된 사용자 계정(513)을 이용하여 로그인한 장치일 수 있다. 전자 장치는 적어도 하나의 파일을 선택하고 메시지에 첨부하기 위한 화면을 포함하는 사용자 인터페이스(501)를 디스플레이에 표시할 수 있다. 전자 장치는 사용자 인터페이스(501)를 통해서 선택된 적어도 하나의 파일의 원본을 메시지에 첨부하여 전송할 수 없는 것으로 판단한 경우, 링크 공유 어플리케이션을 실행할 수 있다(507). 링크 공유 어플리케이션은 API(application programming interface) 게이트웨이(509)를 통해서 링크 공유 서버(527)에 링크 정보의 생성을 요청할 수 있다. 링크 공유 서버(527)는 링크 정보를 생성(517)하고, 생성된 링크 정보를 링크 공유 데이터베이스(528)에 저장할 수 있다. 예를 들어, 링크 공유 서버(527)는 URL을 생성하여 링크 공유 데이터베이스(528)에 저장할 수 있다. 또한, 링크 공유 어플리케이션은 파일 서버(525)에 적어도 하나의 파일을 업로드할 수 있다(519). 파일 서버(525)는 스토리지 정책(storage policy)(515)에 기반하여 파일 스토리지(526)에 적어도 하나의 파일을 저장할 수 있다. 링크 공유 서버(527)는 적어도 하나의 파일을 다운로드 할 수 있도록 파일 맵핑(mapping)(521)을 수행할 수 있다. 예를 들어, 링크 공유 서버(527)는 생성된 URL과 업로드된 적어도 하나의 파일의 컨텐트에 대한 해시 정보에 기초하여 파일 맵핑을 수행할 수 있다. 링크 공유 서버(527)는 파일 맵핑의 결과에 기초하여 파일을 다운로드 할 수 있는 링크 정보를 파일 서버(525)로 전달할 수 있다(523). 다양한 실시 예에 따르면, 링크 공유 어플리케이션(507)은 적어도 하나의 파일에 대한 미리보기 컨텐츠를 파일 서버(525) 또는 링크 공유 서버(527) 중 적어도 하나에 업데이트할 수 있다.The electronic device according to various embodiments may be a device logged in using a user account 513 registered in the cloud system 511 . The electronic device may display the user interface 501 including a screen for selecting at least one file and attaching it to a message on the display. When it is determined that the original of the at least one file selected through the user interface 501 cannot be transmitted by attaching it to the message, the electronic device may execute the link sharing application (507). The link sharing application may request generation of link information from the link sharing server 527 through an application programming interface (API) gateway 509 . The link sharing server 527 may generate link information 517 , and store the generated link information in the link sharing database 528 . For example, the link sharing server 527 may generate a URL and store it in the link sharing database 528 . Also, the link sharing application may upload at least one file to the file server 525 ( 519 ). The file server 525 may store at least one file in the file storage 526 based on a storage policy 515 . The link sharing server 527 may perform file mapping 521 to download at least one file. For example, the link sharing server 527 may perform file mapping based on the generated URL and hash information on the content of at least one uploaded file. The link sharing server 527 may transmit link information for downloading a file to the file server 525 based on the result of the file mapping ( 523 ). According to various embodiments, the link sharing application 507 may update preview contents of at least one file to at least one of the file server 525 and the link sharing server 527 .

링크 공유 서버(527)로부터 링크 정보를 수신한 전자 장치는 적어도 하나의 파일에 대한 미리보기 컨텐츠와 링크 정보를 포함하는 메시지 미리보기(505)를 포함하는 화면(503)을 표시할 수 있다. 전자 장치는 메시징 어플리케이션을 이용하여 링크 정보를 포함하는 메시지를 외부 전자 장치(533)로 전송할 수 있다(529). 링크 정보를 포함하는 외부 전자 장치(533)는 링크 정보를 이용하여 링크 공유 웹 서버(541)로부터 미리보기 이미지를 획득할 수 있다(531). 외부 전자 장치(533)는 미리 보기 이미지를 포함하는 수신된 메시지를 표시하는 화면(535)을 표시할 수 있다. 링크 공유 웹 서버(541)는 웹 기반으로 링크 정보를 통해서 연결될 수 있는 서버로서, 다양한 실시 예에 따르면 링크 공유 서버(527)에 포함된 구성요소로 이해될 수도 있다.The electronic device receiving the link information from the link sharing server 527 may display a screen 503 including preview content for at least one file and a message preview 505 including link information. The electronic device may transmit a message including link information to the external electronic device 533 using a messaging application ( 529 ). The external electronic device 533 including the link information may obtain a preview image from the link sharing web server 541 by using the link information ( 531 ). The external electronic device 533 may display a screen 535 displaying a received message including a preview image. The link sharing web server 541 is a web-based server that can be connected through link information, and may be understood as a component included in the link sharing server 527 according to various embodiments.

외부 전자 장치(533)는 링크 정보에 기초하여 링크 공유 웹 서버(541)에 접속할 수 있다. 예를 들어, 외부 전자 장치(533)는 수신된 메시지에 포함된 링크 정보를 선택하는 사용자 입력을 수신할 수 있다. 외부 전자 장치(533)는 링크 정보를 선택하는 사용자 입력에 응답하여, 링크 정보를 이용하여 파일 서버(525)로부터 적어도 하나의 파일을 획득할 수 있다(543). 외부 전자 장치(533)는 획득한 파일의 내용을 표시할 수 있다(539). 파일 스토리지(526)에 저장된 파일 및 링크 공유 데이터베이스(528)에 저장된 링크 정보는 지정된 기간(예: 2일)이 경과하면 삭제될 수 있다(546).The external electronic device 533 may access the link sharing web server 541 based on the link information. For example, the external electronic device 533 may receive a user input for selecting link information included in the received message. The external electronic device 533 may obtain at least one file from the file server 525 by using the link information in response to a user input for selecting link information ( 543 ). The external electronic device 533 may display the content of the acquired file ( 539 ). The file stored in the file storage 526 and the link information stored in the link sharing database 528 may be deleted after a specified period (eg, 2 days) elapses ( 546 ).

도 6은, 다양한 실시예들에 따른 전자 장치(예: 도 1의 전자 장치(101), 도 2의 전자 장치(101), 도 4의 전자 장치(400))가 메시징 어플리케이션(예: 도 4의 메시징 어플리케이션(403))에서 작성되는 메시지에 파일을 첨부하여 전송하는 프로세스를 도시한 흐름도(600)이다.6 illustrates a messaging application (eg, FIG. 4 ) of an electronic device (eg, the electronic device 101 of FIG. 1 , the electronic device 101 of FIG. 2 , and the electronic device 400 of FIG. 4 ) according to various embodiments of the present disclosure; It is a flowchart 600 illustrating a process of attaching a file to a message created by the messaging application 403 of the .

메시징 어플리케이션을 이용하여 전송될 메시지에 적어도 하나의 파일을 첨부하도록 하는 사용자 입력에 응답하여, 동작 S611에서 전자 장치는 RCS에 기초하여 메시지를 전송할 수 있는지 여부를 판단할 수 있다. 예를 들어, 전자 장치는 메시지를 수신할 수신자를 식별할 수 있는 정보(예: 전화번호 또는 사용자 계정)를 입력 받을 수 있고, 입력 받은 정보에 기초하여 식별되는 수신자의 외부 전자 장치가 RCS 메시지를 수신할 수 있는지 여부를 판단할 수 있다.In response to a user input for attaching at least one file to a message to be transmitted using a messaging application, in operation S611, the electronic device may determine whether the message can be transmitted based on the RCS. For example, the electronic device may receive information (eg, a phone number or user account) for identifying a recipient who will receive the message, and an external electronic device of the identified recipient based on the received information transmits the RCS message. It can be determined whether or not it can be received.

외부 전자 장치로 RCS 메시지를 전송할 수 있는 것으로 판단된 경우, 동작 S613에서 전자 장치는 선택된 파일의 포맷이 RCS 규격에서 지원하는 파일 포맷인지 여부를 판단할 수 있다. 예를 들어, 선택된 파일의 포맷이 APK 파일 포맷인 경우 전자 장치는 RCS 메시지를 통해서 전송될 수 없는 파일 포맷인 것으로 판단할 수 있다. 선택된 파일의 포맷이 RCS 규격에서 지원하는 파일 포맷에 포함되지 않은 경우 전자 장치는 동작 S619를 수행할 수 있다. 선택된 파일의 포맷이 RCS 규격에서 지원하는 파일 포맷에 포함된 경우, 동작 S615에서 전자 장치는 선택된 파일의 원본을 전송할 수 있는 지 여부를 판단할 수 있다. 예를 들면, 전자 장치는 선택된 파일의 크기가 지정된 값(예: 20 MB, 100MB) 이하인 경우 원본을 전송할 수 있는 것으로 판단하고, 지정된 값을 초과하는 경우에는 원본을 전송할 수 없는 것으로 판단할 수 있다. 동작 S615에서 선택된 파일의 원본을 전송할 수 없는 것으로 판단된 경우, 전자 장치는 동작 S619를 수행할 수 있다. 동작 S615에서 선택된 적어도 하나의 파일의 원본을 전송할 수 있는 것으로 판단된 경우, RCS 기반으로 전송될 메시지에 선택된 적어도 하나의 파일을 첨부할 수 있다.If it is determined that the RCS message can be transmitted to the external electronic device, in operation S613, the electronic device may determine whether the format of the selected file is a file format supported by the RCS standard. For example, when the format of the selected file is the APK file format, the electronic device may determine that it is a file format that cannot be transmitted through the RCS message. When the format of the selected file is not included in the file format supported by the RCS standard, the electronic device may perform operation S619. When the format of the selected file is included in the file format supported by the RCS standard, the electronic device may determine whether the original of the selected file can be transmitted in operation S615. For example, if the size of the selected file is less than or equal to a specified value (eg, 20 MB, 100 MB), the electronic device may determine that the original can be transmitted, and if the size of the selected file exceeds the specified value, it may determine that the original cannot be transmitted. . If it is determined in operation S615 that the original of the selected file cannot be transmitted, the electronic device may perform operation S619. If it is determined in operation S615 that the original of the at least one selected file can be transmitted, the at least one selected file may be attached to the message to be transmitted based on the RCS.

동작 S619에서, 전자 장치는 링크 전송 기능에 기초하여 선택된 적어도 하나의 파일을 전송할 수 있는지 여부를 판단할 수 있다. 다양한 실시 예에 따르면, 링크 전송 기능에 기초한 파일 전송에 대한 제한이 없을 수도 있으나, 과도한 부하 발생을 방지하기 위하여 파일 전송에 관한 용량(capability) 제한이 지정될 수 있다. 예를 들어, 링크 전송 기능에 기초하여 전송되는 파일에 대한 파일 용량(예: 한 파일 당 3GB 이하, 하루 최대 5GB 이하) 또는 파일 수량(예: 일 회 전송에 파일 500개 이하) 중 적어도 하나에 대한 용량 제한이 설정되어 있을 수 있다. 동작 S619에서 전자 장치는 선택된 적어도 하나의 파일이 용량 제한 범위 이내인지 여부를 판단할 수 있다. 선택된 적어도 하나의 파일의 용량이 링크 전송 기능에 기초하여 전송될 수 있는 것으로 판단된 경우, 동작 S621에서 전자 장치는 링크 정보를 생성하여 메시지에 링크 정보를 삽입할 수 있다. 전자 장치는 링크 정보를 이용하여 적어도 하나의 파일을 다운로드 할 수 있도록 적어도 하나의 파일을 서버에 업로드할 수 있다.In operation S619, the electronic device may determine whether at least one selected file can be transmitted based on the link transmission function. According to various embodiments, there may be no restriction on file transmission based on the link transmission function, but in order to prevent excessive load generation, a capacity restriction on file transmission may be specified. For example, based on the link transfer function, at least one of the file capacity for the files being transferred (e.g. no more than 3 GB per file, up to 5 GB per day) or the quantity of files (e.g. no more than 500 files per transfer). Capacity limits may be set for In operation S619, the electronic device may determine whether the selected at least one file is within a capacity limit range. When it is determined that the capacity of the selected at least one file can be transmitted based on the link transmission function, in operation S621, the electronic device may generate link information and insert the link information into the message. The electronic device may upload at least one file to the server so that the at least one file can be downloaded using the link information.

다양한 실시 예들에 따르면, 동작 S619에서 선택된 적어도 하나의 파일이 링크 공유 기능을 통해서 전송할 수 없는 것으로 판단될 경우(예: 용량 제한 범위를 초과하는 것으로 판단될 경우), 링크 전송 기능이 아닌 다른 기능으로 선택된 적어도 하나의 파일을 전송하기 위한 프로세스를 실행할 수 있다. 예를 들어, 선택된 적어도 하나의 파일을 전송하는 경우 당일 사용가능한 용량을 초과하는 것으로 판단되는 경우, 전자 장치는 링크 전송 기능의 용량이 초과되었음을 안내하고 파일을 전송하기 위한 다른 프로세스를 제안하는 알림 메시지를 표시할 수 있다. 다른 프로세스는, 예를 들면, 적어도 하나의 파일의 크기를 변경(resize)하여 전송하는 프로세스이거나, 나누어서(trim) 전송하는 프로세스일 수 있다. 제안된 다른 프로세스에 동의하는 사용자 입력에 응답하여, 전자 장치는 다른 프로세스를 수행하여 선택된 적어도 하나의 파일을 전송할 수 있다.According to various embodiments, when it is determined that at least one file selected in operation S619 cannot be transmitted through the link sharing function (eg, when it is determined that the capacity limit is exceeded), a function other than the link transmission function is used. A process for transferring the selected at least one file may be executed. For example, if it is determined that the available capacity on the day is exceeded when transmitting at least one selected file, the electronic device informs that the capacity of the link transmission function has been exceeded and a notification message suggesting another process for transmitting the file can be displayed. The other process may be, for example, a process of changing the size of at least one file and transmitting it, or a process of transmitting it by trimming it. In response to a user input for agreeing to another proposed process, the electronic device may transmit the selected at least one file by performing another process.

동작 S611에서 RCS에 기반하여 메시지를 외부 전자 장치로 전송할 수 없는 것으로 판단된 경우, 동작 S631에서 전자 장치는 선택된 적어도 하나의 파일의 포맷이 MMS에서 지원하는 파일 포맷인지 여부를 판단할 수 있다. 예를 들어, 전자 장치는 적어도 하나의 파일 포맷이 멀티미디어 파일인 경우 MMS에 기반하여 적어도 하나의 파일을 전송할 수 있는 것으로 판단할 수 있다. 선택된 적어도 하나의 파일의 포맷이 MMS에서 지원하는 파일 포맷이 아닌 것으로 판단되는 경우, 전자 장치는 동작 S637을 수행할 수 있다. 선택된 적어도 하나의 파일의 포맷이 MMS에서 지원하는 파일 포맷인 것으로 판단된 경우, 동작 S633에서 선택된 적어도 하나의 파일의 원본을 전송할 수 있는지 여부를 판단할 수 있다. 예를 들어, 전자 장치는 적어도 하나의 파일의 용량이 지정된 값(예: 300KB, 1.2MB) 이하인 경우 원본을 전송할 수 있는 것으로 판단할 수 있다. 적어도 하나의 파일의 원본을 전송할 수 있는 것으로 판단된 경우, 전자 장치는 동작 S635에서 MMS 기반으로 전송될 메시지에 적어도 하나의 파일을 첨부할 수 있다. 적어도 하나의 파일의 원본을 전송할 수 없는 것으로 판단된 경우, 전자 장치는 동작 S637을 수행할 수 있다.If it is determined in operation S611 that the message cannot be transmitted to the external electronic device based on the RCS, in operation S631, the electronic device may determine whether the format of the at least one selected file is a file format supported by the MMS. For example, when the at least one file format is a multimedia file, the electronic device may determine that the at least one file can be transmitted based on the MMS. When it is determined that the format of the at least one selected file is not a file format supported by MMS, the electronic device may perform operation S637. When it is determined that the format of the at least one selected file is a file format supported by the MMS, it may be determined whether the original of the at least one selected file can be transmitted in operation S633. For example, when the capacity of at least one file is less than or equal to a specified value (eg, 300 KB, 1.2 MB), the electronic device may determine that the original can be transmitted. When it is determined that the original of the at least one file can be transmitted, the electronic device may attach the at least one file to a message to be transmitted based on MMS in operation S635. When it is determined that the original of at least one file cannot be transmitted, the electronic device may perform operation S637.

동작 S637에서 전자 장치는 링크 전송 기능에 기초하여 선택된 적어도 하나의 파일을 전송할 수 있는지 여부를 판단할 수 있다. 예를 들어, 동작 S637에서 전자 장치는 선택된 적어도 하나의 파일이 용량 제한 범위 이내인지 여부를 판단할 수 있다. 선택된 적어도 하나의 파일의 용량이 링크 전송 기능에 기초하여 전송될 수 있는 것으로 판단된 경우, 동작 S639서 전자 장치는 링크 정보를 생성하여 메시지에 링크 정보를 삽입할 수 있다. 전자 장치는 링크 정보를 이용하여 적어도 하나의 파일을 다운로드 할 수 있도록 적어도 하나의 파일을 서버에 업로드할 수 있다.In operation S637, the electronic device may determine whether at least one selected file can be transmitted based on the link transmission function. For example, in operation S637, the electronic device may determine whether the selected at least one file is within a capacity limit range. When it is determined that the capacity of the selected at least one file can be transmitted based on the link transmission function, in operation S639, the electronic device may generate link information and insert the link information into the message. The electronic device may upload at least one file to the server so that the at least one file can be downloaded using the link information.

다양한 실시 예들에 따르면, 동작 S637에서 선택된 적어도 하나의 파일이 링크 공유 기능을 통해서 전송할 수 없는 것으로 판단될 경우(예: 용량 제한 범위를 초과하는 것으로 판단될 경우), 링크 전송 기능이 아닌 다른 기능으로 선택된 적어도 하나의 파일을 전송하기 위한 프로세스를 실행할 수 있다. 예를 들어, 선택된 적어도 하나의 파일을 전송하는 경우 당일 사용가능한 용량을 초과하는 것으로 판단되는 경우, 전자 장치는 링크 전송 기능의 용량이 초과되었음을 안내하고 파일을 전송하기 위한 다른 프로세스를 제안하는 알림 메시지를 표시할 수 있다. 다른 프로세스는, 예를 들면, 적어도 하나의 파일의 크기를 변경(resize)하여 전송하는 프로세스이거나, 나누어서(trim) 전송하는 프로세스일 수 있다. 제안된 다른 프로세스에 동의하는 사용자 입력에 응답하여, 전자 장치는 다른 프로세스를 수행하여 선택된 적어도 하나의 파일을 전송할 수 있다.According to various embodiments, when it is determined that the at least one file selected in operation S637 cannot be transmitted through the link sharing function (eg, it is determined that the capacity limit is exceeded), a function other than the link transmission function is used. A process for transferring the selected at least one file may be executed. For example, if it is determined that the available capacity on the day is exceeded when transmitting at least one selected file, the electronic device informs that the capacity of the link transmission function has been exceeded and a notification message suggesting another process for transmitting the file can be displayed. The other process may be, for example, a process of changing the size of at least one file and transmitting it, or a process of transmitting it by trimming it. In response to a user input for agreeing to another proposed process, the electronic device may transmit the selected at least one file by performing another process.

동작 S641에서, 전자 장치는 동작 S617, 동작 S621, 동작 S635, 또는 동작 S639 에서 링크 정보가 삽입된 메시지 또는 적어도 하나의 파일이 첨부된 메시지를 전송할 수 있다. 예를 들어, 메시지를 전송하도록 하기 위한 사용자 입력의 수신에 응답하여, 전자 장치는 메시징 어플리케이션에서 작성 중인 메시지가 동작 S621 또는 동작 S629에서 링크 정보가 삽입된 상태인 경우, SMS 기반으로 메시지를 외부 전자 장치로 전송할 수 있다. 다른 예를 들면, 메시지를 전송하도록 하기 위한 사용자 입력의 수신에 응답하여, 전자 장치는 메시징 어플리케이션에서 작성 중인 메시지가 동작 S617에서 적어도 하나의 파일이 첨부된 상태인 경우, RCS 기반으로 메시지를 외부 전자 장치로 전송할 수 있다. 다른 예를 들면, 메시지를 전송하도록 하기 위한 사용자 입력의 수신에 응답하여, 전자 장치는 메시징 어플리케이션에서 작성 중인 메시지가 동작 S635에서 적어도 하나의 파일이 첨부된 상태인 경우, MMS 기반으로 메시지를 외부 전자 장치로 전송할 수 있다.In operation S641, the electronic device may transmit a message to which link information is inserted or a message to which at least one file is attached in operation S617, operation S621, operation S635, or operation S639. For example, in response to receiving a user input for transmitting a message, the electronic device transmits the message based on SMS to an external electronic device when the message being written in the messaging application has link information inserted in operation S621 or operation S629. can be sent to the device. As another example, in response to receiving a user input for transmitting a message, the electronic device transmits the message to an external electronic device based on RCS when at least one file is attached to the message being written in the messaging application in operation S617. can be sent to the device. As another example, in response to receiving a user input for transmitting a message, the electronic device transmits the message to an external electronic device based on MMS when at least one file is attached to the message being written in the messaging application in operation S635. can be sent to the device.

도 7은, 다양한 실시예들에 따른 전자 장치(예: 도 1의 전자 장치(101), 도 2의 전자 장치(101), 도 4의 전자 장치(400))가 원본 전송이 불가능한 것으로 판단된 경우에 표시하는 알림 메시지(700)의 예시를 도시한 도면이다.FIG. 7 illustrates a case in which an electronic device (eg, the electronic device 101 of FIG. 1 , the electronic device 101 of FIG. 2 , and the electronic device 400 of FIG. 4 ) according to various embodiments is determined to be unable to transmit an original It is a diagram illustrating an example of a notification message 700 displayed in this case.

전자 장치는 공유될 적어도 하나의 파일이 메시징 서비스를 이용하여 원본을 전송할 수 있는지 여부를 판단할 수 있다(예: 도 6의 동작 S615, 동작 S633). 예를 들어, 전자 장치는 선택된 메시지 전송망에 기반하여 적어도 하나의 파일의 크기 변환(resize)을 하지 않고 파일을 전송할 수 있는지 여부를 판단할 수 있다. 선택된 메시지 전송망에 기반하여 적어도 하나의 파일이 첨부된 메시지를 전송하기 위해서는 적어도 하나의 파일 크기를 축소시켜야 하는 경우 링크 공유 기능을 이용하여 적어도 하나의 파일을 공유할 것인지를 확인 받기 위한 알림 메시지(700)를 디스플레이 상에 표시할 수 있다. The electronic device may determine whether the original at least one file to be shared can be transmitted using a messaging service (eg, operations S615 and S633 of FIG. 6 ). For example, the electronic device may determine whether a file can be transmitted without resizing the at least one file based on the selected message transmission network. When the size of at least one file needs to be reduced in order to transmit a message to which at least one file is attached based on the selected message transmission network, a notification message 700 for receiving confirmation whether to share at least one file using the link sharing function ) can be displayed on the display.

전자 장치는 알림 메시지(700)에 대한 사용자 입력에 기초하여 적어도 하나의 파일을 공유하기 위한 방법을 결정할 수 있다. 예를 들면, 취소 버튼(710)을 선택하는 사용자 입력이 입력된 경우, 전자 장치는 적어도 하나의 파일의 크기를 축소하여 메시지에 첨부할 수 있다. 반대로, 링크 공유 기능을 사용하기 위한 사용 버튼(720)을 선택하는 사용자 입력이 입력된 경우, 전자 장치는 링크 정보를 생성하여 메시지에 삽입하고, 적어도 하나의 파일을 외부 서버로 전송할 수 있다.The electronic device may determine a method for sharing at least one file based on a user input for the notification message 700 . For example, when a user input for selecting the cancel button 710 is input, the electronic device may reduce the size of at least one file and attach it to the message. Conversely, when a user input for selecting the use button 720 for using the link sharing function is input, the electronic device may generate link information, insert it into the message, and transmit at least one file to an external server.

도 8은, 다양한 실시예들에 따른 전자 장치(예: 도 1의 전자 장치(101), 도 2의 전자 장치(101), 도 4의 전자 장치(400))가 메시징 어플리케이션을 이용하여 파일을 공유하기 위해 표시하는 사용자 인터페이스의 예시를 도시한 도면이다.8 illustrates an electronic device (eg, the electronic device 101 of FIG. 1 , the electronic device 101 of FIG. 2 , and the electronic device 400 of FIG. 4 ) according to various embodiments of the present disclosure, using a messaging application to send a file. It is a diagram illustrating an example of a user interface displayed for sharing.

전자 장치는 메시지를 작성하는 화면에서 선택된 적어도 하나의 파일을 메시지에 첨부하는 동작(예: 도 6의 동작 S627 또는 동작 S635)이 수행된 경우, 메시지에 첨부된 파일을 나타내는 정보가 표시된 화면을 표시할 수 있다.When an operation (eg, operation S627 or operation S635 of FIG. 6 ) of attaching at least one file selected on the screen for composing a message to the message is performed, the electronic device displays a screen on which information indicating the file attached to the message is displayed can do.

예를 들면, 첨부된 파일이 미리보기 이미지를 가지는 파일인 경우, 전자 장치는 미리보기 이미지(811)를 포함하는 화면(810)을 표시할 수 있다. 또는, 첨부된 파일이 미리보기 이미지를 가지지 않는 파일인 경우 전자 장치는 파일 정보(예: 파일명)을 나타내는 시각적 객체(821)를 포함하는 화면(820)을 디스플레이할 수 있다.For example, when the attached file is a file having a preview image, the electronic device may display the screen 810 including the preview image 811 . Alternatively, when the attached file is a file without a preview image, the electronic device may display a screen 820 including a visual object 821 indicating file information (eg, a file name).

도 9는, 다양한 실시예들에 따른 전자 장치(예: 도 1의 전자 장치(101), 도 2의 전자 장치(101), 도 4의 전자 장치(400))가 링크 공유 모드를 선택하여 파일을 공유하는 프로세스를 도시한 흐름도(900)이다.9 illustrates an electronic device (eg, the electronic device 101 of FIG. 1 , the electronic device 101 of FIG. 2 , and the electronic device 400 of FIG. 4 ) according to various embodiments of the present disclosure selects a link sharing mode and selects a file is a flowchart 900 illustrating a process for sharing

동작 S910에서, 전자 장치는 적어도 하나의 파일을 링크 공유 모드로 공유하기 위한 사용자 입력을 수신할 수 있다. 예를 들어, 전자 장치는 링크 공유 기능에 기반하여 이미지 또는 동영상 파일을 다른 장치와 공유하기 위한 버튼을 선택하는 사용자 입력을 수신할 수 있다.In operation S910, the electronic device may receive a user input for sharing at least one file in a link sharing mode. For example, the electronic device may receive a user input for selecting a button for sharing an image or video file with another device based on a link sharing function.

동작 S920에서, 전자 장치는 전송할 파일을 선택하는 사용자 입력을 수신할 수 있다. 예를 들면, 전자 장치는 전자 장치에 저장된 사진이나 동영상 파일의 목록을 표시하는 갤러리 어플리케이션을 실행하여 적어도 하나의 이미지 또는 동영상 파일을 선택하는 사용자 입력을 수신할 수 있다.In operation S920, the electronic device may receive a user input for selecting a file to be transmitted. For example, the electronic device may receive a user input for selecting at least one image or video file by executing a gallery application that displays a list of photo or video files stored in the electronic device.

도 9에서 동작 S920이 동작 S910 이후에 수행되는 것으로 도시되어 있으나, 본 문서에서 제시된 흐름도의 동작 순서는 달성하고자 하는 목적이 변경되지 않는 범위에서 변경될 수 있다. 예를 들면, 동작 S910이 동작 S920 이후에 수행될 수도 있다.Although operation S920 is illustrated as being performed after operation S910 in FIG. 9 , the operation sequence of the flowchart presented in this document may be changed within a range that does not change the purpose to be achieved. For example, operation S910 may be performed after operation S920.

동작 S930에서, 전자 장치는 선택된 적어도 하나의 파일을 링크 전송 기능에 기반하여 공유할 수 있는지 여부를 판단할 수 있다. 선택된 적어도 하나의 파일을 링크 전송 기능에 기반하여 공유할 수 있는 것으로 판단된 경우, 전자 장치는 동작 S940에서 적어도 하나의 파일을 수신하기 위한 링크 정보를 포함하는 메시지를 외부 전자 장치로 전송할 수 있다.In operation S930, the electronic device may determine whether at least one selected file can be shared based on a link transmission function. When it is determined that the selected at least one file can be shared based on the link transmission function, the electronic device may transmit a message including link information for receiving the at least one file to the external electronic device in operation S940.

도 10은, 다양한 실시예들에 따른 전자 장치(예: 도 1의 전자 장치(101), 도 2의 전자 장치(101), 도 4의 전자 장치(400))가 파일을 선택하고 링크 공유 모드를 선택하기 위해 표시하는 사용자 인터페이스의 예시를 도시한 도면이다.10 illustrates an electronic device (eg, the electronic device 101 of FIG. 1 , the electronic device 101 of FIG. 2 , and the electronic device 400 of FIG. 4 ) according to various embodiments selects a file and performs a link sharing mode It is a diagram illustrating an example of a user interface displayed to select .

전자 장치는 적어도 하나의 파일을 선택하기 위한 파일 목록(1010)과 링크 공유 버튼(1020)을 포함하는 화면(1000)을 표시할 수 있다. 예를 들어, 전자 장치는 파일 목록(1010)에서 적어도 하나의 파일이 선택된 상태에서, 링크 공유 버튼(1020)을 선택하는 사용자 입력이 입력되면 선택된 파일을 외부 서버로 업로드하고, 업로드한 파일을 다운로드하기 위한 링크 정보를 포함하는 메시지를 외부 전자 장치로 전송할 수 있다.The electronic device may display a screen 1000 including a file list 1010 for selecting at least one file and a link sharing button 1020 . For example, when at least one file is selected from the file list 1010 and a user input for selecting the link sharing button 1020 is inputted, the electronic device uploads the selected file to an external server and downloads the uploaded file. may transmit a message including link information to the external electronic device.

도 11은, 다양한 실시예들에 따른 전자 장치(예: 도 1의 전자 장치(101), 도 2의 전자 장치(101), 도 4의 전자 장치(400))가 컨텐츠 목록 어플리케이션에서 파일을 선택하고 공유하는 프로세스를 도시한 흐름도(1100)이다.11 illustrates an electronic device (eg, the electronic device 101 of FIG. 1 , the electronic device 101 of FIG. 2 , and the electronic device 400 of FIG. 4 ) according to various embodiments selects a file from a content list application and is a flowchart 1100 illustrating a process for sharing.

동작 S1110에서, 전자 장치는 컨텐츠 목록 어플리케이션에서 사용자 입력에 기초하여 파일을 선택할 수 있다. 컨텐츠 목록 어플리케이션은 전자 장치에 저장된 파일들의 목록을 사용자에게 제공하여 주는 어플리케이션을 의미할 수 있다. 예를 들어, 컨텐츠 목록 어플리케이션은 이미지 및 동영상 목록을 표시하는 갤러리 어플리케이션이나 파일 목록을 표시하는 탐색기 어플리케이션일 수 있다.In operation S1110, the electronic device may select a file based on a user input in the content list application. The content list application may refer to an application that provides a list of files stored in the electronic device to the user. For example, the content list application may be a gallery application that displays a list of images and videos or a explorer application that displays a list of files.

동작 S1120에서, 전자 장치는 선택된 적어도 하나의 파일을 외부 전자 장치로 전송하기 위한 적어도 하나의 컨텐츠 공유 기능을 포함하는 컨텐츠 공유 기능 목록을 표시할 수 있다. 컨텐츠 공유 기능은, 예를 들면, 메시지 전송 기능(메시징 어플리케이션을 이용한 공유 기능), 메일 전송 기능, 또는 기기간(device to device, D2D) 통신 기능 중 적어도 하나를 포함할 수 있다.In operation S1120, the electronic device may display a content sharing function list including at least one content sharing function for transmitting at least one selected file to an external electronic device. The content sharing function may include, for example, at least one of a message transmission function (a sharing function using a messaging application), a mail transmission function, and a device to device (D2D) communication function.

동작 S1130에서, 전자 장치는 컨텐츠 공유 기능 목록 중에서 메시징 어플리케이션을 이용한 공유 기능을 선택하는 사용자 입력을 수신할 수 있다. 예를 들어, 메시징 어플리케이션을 이용한 공유 기능에 연관된 아이콘을 선택하는 사용자 입력을 수신할 수 있다.In operation S1130, the electronic device may receive a user input for selecting a sharing function using a messaging application from the list of contents sharing functions. For example, a user input for selecting an icon related to a sharing function using a messaging application may be received.

메시징 어플리케이션을 이용한 공유 기능을 선택하는 사용자 입력에 응답하여, 전자 장치는 도 6의 동작 S611을 수행할 수 있다.In response to a user input of selecting a sharing function using a messaging application, the electronic device may perform operation S611 of FIG. 6 .

도 12는, 다양한 실시예들에 따른 전자 장치(예: 도 1의 전자 장치(101), 도 2의 전자 장치(101), 도 4의 전자 장치(400))가 컨텐츠 목록 어플리케이션에서 파일을 선택하고 메시징 어플리케이션을 이용한 공유 기능을 선택하기 위해 표시하는 사용자 인터페이스의 예시를 도시한 도면이다.12 illustrates an electronic device (eg, the electronic device 101 of FIG. 1 , the electronic device 101 of FIG. 2 , and the electronic device 400 of FIG. 4 ) according to various embodiments selects a file from a content list application and a diagram illustrating an example of a user interface displayed to select a sharing function using a messaging application.

전자 장치는 화면(1210)을 표시할 수 있다. 화면(1210)은 컨텐츠 목록 어플리케이션의 일 예로 이미지 목록(1211)을 표시하는 갤러리 어플리케이션의 실행화면이다. 컨텐츠 목록 어플리케이션의 화면(1210)은 이미지 목록(1211)과 공유 기능 버튼(1212)을 포함할 수 있다. 다양한 실시 예에 따르면, 도 11의 동작 S1110에서 이미지 목록(1211) 중에서 적어도 하나의 이미지를 선택하는 사용자 입력을 수신하고, 공유 기능 버튼(1212)을 선택하는 사용자 입력을 수신할 수 있다.The electronic device may display the screen 1210 . The screen 1210 is an execution screen of a gallery application that displays an image list 1211 as an example of a content list application. The screen 1210 of the content list application may include an image list 1211 and a share function button 1212 . According to various embodiments, in operation S1110 of FIG. 11 , a user input for selecting at least one image from the image list 1211 may be received, and a user input for selecting the share function button 1212 may be received.

공유 기능 버튼(1212)을 선택하는 사용자 입력에 응답하여, 전자 장치는 메시징 어플리케이션을 이용한 공유 기능에 연관된 아이콘(1221)을 포함하는 컨텐츠 공유 기능 목록(1220)을 표시할 수 있다.In response to a user input of selecting the sharing function button 1212 , the electronic device may display a content sharing function list 1220 including an icon 1221 related to a sharing function using a messaging application.

도 13은, 다양한 실시예들에 따른 전자 장치(예: 도 1의 전자 장치(101), 도 2의 전자 장치(101), 도 4의 전자 장치(400))가 선택된 파일에 기초하여 컨텐츠 공유 기능 목록을 구성하여 제공하는 프로세스를 도시한 흐름도(1300)이다.13 illustrates content sharing based on a file selected by an electronic device (eg, the electronic device 101 of FIG. 1 , the electronic device 101 of FIG. 2 , and the electronic device 400 of FIG. 4 ) according to various embodiments of the present disclosure; It is a flowchart 1300 illustrating a process for configuring and providing a function list.

동작 S1310에서, 전자 장치는 컨텐츠 목록 어플리케이션에서 사용자 입력에 기초하여 파일을 선택할 수 있다. 전자 장치는 적어도 하나의 파일이 선택된 상태에서 공유 기능 버튼(예: 도 12의 공유 기능 버튼(1212))을 선택하는 사용자 입력에 응답하여, 동작 S1320에서 메시징 어플리케이션을 이용한 공유 기능을 이용하여 선택된 적어도 하나의 파일을 메시징 어플리케이션을 이용한 공유 기능을 이용하여 전송 가능한지 여부를 판단할 수 있다. 예를 들면, 전자 장치는 동작 S611, S613, S615, S631, 및 S633을 수행함으로써 메시지에 적어도 하나의 파일의 원본을 첨부하여 전송할 수 있는지 여부를 판단할 수 있다.In operation S1310, the electronic device may select a file based on a user input in the content list application. In response to a user input of selecting a share function button (eg, the share function button 1212 of FIG. 12 ) in a state in which at least one file is selected, the electronic device selects at least one selected using a sharing function using a messaging application in operation S1320 It can be determined whether one file can be transmitted using a sharing function using a messaging application. For example, by performing operations S611, S613, S615, S631, and S633, the electronic device may determine whether the message can be transmitted by attaching the original of at least one file.

메시지에 적어도 하나의 파일의 원본을 첨부하여 전송할 수 있는 것으로 결정되는 경우, 전자 장치는 동작 S1330에서 메시징 어플리케이션을 이용한 공유 기능에 연관된 제1 공유 기능 항목(예: 아이콘, 버튼)을 포함하는 컨텐츠 공유 기능 목록을 표시할 수 있다. 메시지에 적어도 하나의 파일의 원본을 첨부하여 전송할 수 없는 것으로 결정되는 경우, 전자 장치는 동작 S1340에서 링크 정보를 이용한 공유 기능에 연관된 제2 공유 기능 항목(예: 아이콘, 버튼)을 포함하는 컨텐츠 공유 기능 목록을 표시할 수 있다. 즉, 다양한 실시 예에 따르면, 전자 장치는 선택된 적어도 하나의 파일에 기초하여 구성된 컨텐츠 공유 기능 목록을 표시할 수 있다.When it is determined that the message can be transmitted by attaching the original file of at least one file, the electronic device shares content including the first sharing function item (eg, icon, button) related to the sharing function using the messaging application in operation S1330 A list of functions can be displayed. When it is determined that the message cannot be transmitted by attaching the original file of at least one file, the electronic device shares content including a second sharing function item (eg, icon, button) related to a sharing function using link information in operation S1340 A list of functions can be displayed. That is, according to various embodiments, the electronic device may display a list of content sharing functions configured based on at least one selected file.

도 14는, 다양한 실시예들에 따른 전자 장치(예: 도 1의 전자 장치(101), 도 2의 전자 장치(101), 도 4의 전자 장치(400))가 메시징 어플리케이션에 설정된 컨텐츠 공유 한도에 기초하여 파일을 공유하는 프로세스를 도시한 흐름도(1400)이다.14 illustrates a content sharing limit set by an electronic device (eg, the electronic device 101 of FIG. 1 , the electronic device 101 of FIG. 2 , and the electronic device 400 of FIG. 4 ) according to various embodiments of the present disclosure; is a flowchart 1400 illustrating a process for sharing a file based on

동작 S1410에서, 전자 장치는 컨텐츠 목록 어플리케이션에서 사용자 입력에 기초하여 적어도 하나의 파일을 선택할 수 있다. 전자 장치는 메시징 어플리케이션을 이용하여 선택된 적어도 하나의 파일을 공유하는 동작을 실행하도록 하는 사용자 입력을 수신할 수 있다. 선택된 적어도 하나의 파일을 공유하는 동작을 실행하도록 하는 사용자 입력에 응답하여, 전자 장치는 동작 S1420에서 선택된 적어도 하나의 파일이 메시징 어플리케이션에 설정된 컨텐츠 공유 한도 이내인지 여부를 판단할 수 있다. 예를 들어, 메시징 어플리케이션이 일 회에 30개 이하의 파일만 전송할 수 있도록 컨텐츠 공유 한도가 설정된 경우, 전자 장치는 선택된 적어도 하나의 파일의 수량이 30개 이하인지 여부를 판단할 수 있다.In operation S1410, the electronic device may select at least one file based on a user input in the content list application. The electronic device may receive a user input for executing an operation of sharing at least one selected file using a messaging application. In response to a user input for executing an operation of sharing the at least one selected file, the electronic device may determine whether the at least one file selected in operation S1420 is within a content sharing limit set in the messaging application. For example, when the content sharing limit is set so that the messaging application can transmit only 30 or less files at a time, the electronic device may determine whether the number of at least one selected file is 30 or less.

선택된 적어도 하나의 파일이 메시징 어플리케이션에 설정된 컨텐츠 공유 한도 이내인 경우, 동작 S1430에서 전자 장치는 메시징 어플리케이션의 파일 공유 기능에 기초하여 선택된 적어도 하나의 파일을 외부 전자 장치로 전송할 수 있다. 선택된 적어도 하나의 파일이 메시징 어플리케이션에 설정된 컨텐츠 공유 한도를 초과하는 경우, 동작 S1440에서 전자 장치는 선택된 적어도 하나의 파일을 링크 공유 기능에 기반하여 공유할 수 있는지 여부를 판단할 수 있다. 선택된 적어도 하나의 파일을 링크 공유 기능에 기반하여 공유할 수 있는 것으로 판단되는 경우, 전자 장치는 동작 S1450에서 메시징 어플리케이션을 통해서 적어도 하나의 파일을 다운로드하기 위한 링크 정보를 포함하는 메시지를 외부 전자 장치로 전송할 수 있다.If the selected at least one file is within the content sharing limit set in the messaging application, the electronic device may transmit the selected at least one file to the external electronic device based on the file sharing function of the messaging application in operation S1430. When the at least one selected file exceeds the content sharing limit set in the messaging application, in operation S1440, the electronic device may determine whether the selected at least one file can be shared based on a link sharing function. When it is determined that the selected at least one file can be shared based on the link sharing function, the electronic device sends a message including link information for downloading the at least one file through the messaging application to the external electronic device in operation S1450 can be transmitted

도 15는, 다양한 실시예들에 따른 전자 장치(예: 도 1의 전자 장치(101), 도 2의 전자 장치(101), 도 4의 전자 장치(400))가 메시징 어플리케이션에 설정된 컨텐츠 공유 한도에 기초하여 파일을 공유하기 위해 표시하는 사용자 인터페이스들의 예시를 도시한 도면이다.15 illustrates a content sharing limit set by an electronic device (eg, the electronic device 101 of FIG. 1 , the electronic device 101 of FIG. 2 , and the electronic device 400 of FIG. 4 ) according to various embodiments of the present disclosure; It is a diagram illustrating an example of user interfaces displayed to share files based on .

도 14의 동작 S1410에서, 전자 장치는 컨텐츠 목록 어플리케이션 실행 화면(1510)에 대한 사용자 입력에 기초하여 적어도 하나의 파일을 선택할 수 있다. 컨텐츠 목록 어플리케이션 실행 화면(1510)은 선택된 파일의 수량을 표시하는 지시자(1511) 및 공유 기능 버튼(1513)을 포함할 수 있다. 예를 들어, 전자 장치는 33개의 파일들이 선택된 상태에서 공유 기능 버튼(1513)을 선택하는 사용자 입력을 수신할 수 있다.In operation S1410 of FIG. 14 , the electronic device may select at least one file based on a user input to the content list application execution screen 1510 . The content list application execution screen 1510 may include an indicator 1511 indicating the quantity of the selected file and a share function button 1513 . For example, the electronic device may receive a user input for selecting the share function button 1513 while 33 files are selected.

공유 기능 버튼(1513)을 선택하는 사용자 입력에 응답하여, 전자 장치는 컨텐츠 공유 기능 목록을 포함하는 화면(1520)을 디스플레이에 표시할 수 있다. 전자 장치는 컨텐츠 공유 기능 목록을 포함하는 화면(1520)에서 메시징 어플리케이션을 이용한 공유 기능에 연관된 공유 기능 항목(1521)을 선택하는 사용자 입력을 수신할 수 있다. 전자 장치는 공유 기능 항목(1521)을 선택하는 사용자 입력에 응답하여 선택된 적어도 하나의 파일이 메시징 어플리케이션에 설정된 컨텐츠 공유 한도 이내인지 여부를 판단할 수 있다(예: 도 14의 S1420). 예를 들어, 메시징 어플리케이션이 일 회에 30개 이하의 파일만 전송할 수 있도록 컨텐츠 공유 한도가 설정된 경우, 전자 장치는 선택된 적어도 하나의 파일의 수량이 30개 이하인지 여부를 판단할 수 있다.In response to a user input of selecting the share function button 1513 , the electronic device may display a screen 1520 including a list of content sharing functions on the display. The electronic device may receive a user input for selecting a sharing function item 1521 related to a sharing function using a messaging application on a screen 1520 including a list of content sharing functions. The electronic device may determine whether the selected at least one file is within the content sharing limit set in the messaging application in response to a user input for selecting the sharing function item 1521 (eg, S1420 of FIG. 14 ). For example, when the content sharing limit is set so that the messaging application can transmit only 30 or less files at a time, the electronic device may determine whether the number of at least one selected file is 30 or less.

다양한 실시 예에 따르면, 선택된 적어도 하나의 파일이 메시징 어플리케이션에 설정된 컨텐츠 공유 한도를 초과하는 경우, 전자 장치는 링크 공유로 파일을 전송할 것인지를 확인 받기 위한 알림 메시지(1530)를 표시할 수 있다. 알림 메시지(1530)의 확인 버튼(1531)을 선택하는 사용자 입력에 응답하여, 전자 장치는 링크 공유 기능에 기초하여 제공되는 링크 정보를 외부 전자 장치로 전송하기 위한 어플리케이션을 선택하기 위한 어플리케이션 목록(1540)을 표시할 수 있다. 전자 장치는 어플리케이션 목록(1540) 중에서 선택된 어플리케이션을 이용하여 링크 정보를 전송할 수 있다.According to various embodiments, when the selected at least one file exceeds the content sharing limit set in the messaging application, the electronic device may display a notification message 1530 for confirming whether to transmit the file through link sharing. In response to a user input of selecting the confirmation button 1531 of the notification message 1530, the electronic device uses an application list 1540 for selecting an application for transmitting link information provided based on a link sharing function to an external electronic device. ) can be displayed. The electronic device may transmit link information by using an application selected from the application list 1540 .

도 16은, 다양한 실시예들에 따른 전자 장치(예: 도 1의 전자 장치(101), 도 2의 전자 장치(101), 도 4의 전자 장치(400))가 기기간 통신에 기초한 파일 전송이 실패한 경우에 링크 전송 기능을 이용하여 파일을 공유하는 프로세스를 도시한 흐름도(1600)이다.16 illustrates an electronic device (eg, the electronic device 101 of FIG. 1 , the electronic device 101 of FIG. 2 , and the electronic device 400 of FIG. 4 ) performing file transmission based on device-to-device communication according to various embodiments of the present disclosure. A flowchart 1600 illustrating a process of sharing a file using a link transfer function in case of failure.

전자 장치는 파일을 전송할 주변 기기를 검색하는 동작 S1610을 수행할 수 있다. 예를 들어, 전자 장치는 기기간(D2D) 통신(예: Wi-Fi Direct)을 통해서 파일을 전송하기 위한 어플리케이션을 실행하고, 실행된 어플리케이션을 이용하여 주변 기기를 검색할 수 있다. 전자 장치는 주변의 기기가 검색된 경우, 검색된 기기들에 대한 기기 목록을 표시하는 동작 S1620을 수행할 수 있다. 예를 들어, 전자 장치는 전자 장치에 로그인한 계정에 등록된 기기 중 주변에 위치한 기기, 전자 장치의 연락처 데이터베이스에 저장된 기기, 또는 지정된 거리 내에 위치한 것으로 판단되는 기기에 대한 정보(예: 기기명(device name))를 포함하는 기기 목록을 표시할 수 있다.The electronic device may perform operation S1610 of searching for a peripheral device to which a file is to be transmitted. For example, the electronic device may execute an application for transmitting a file through device-to-device (D2D) communication (eg, Wi-Fi Direct) and search for a peripheral device using the executed application. When nearby devices are found, the electronic device may perform operation S1620 of displaying a device list for the found devices. For example, the electronic device includes information about a device that is located nearby, a device stored in a contact database of the electronic device, or a device determined to be located within a specified distance among devices registered to an account logged into the electronic device (eg, device name). You can display a list of devices including name)).

전자 장치는 기기 목록 중에서 외부 전자 장치에 대한 항목을 선택하는 동작 S1630을 수행할 수 있다. 예를 들어, 전자 장치는 전자 장치의 터치스크린을 통해서 외부 전자 장치에 대한 항목(예: 아이콘)이 표시된 위치에 대한 터치 입력을 수신할 수 있다. 외부 전자 장치에 대한 항목이 선택되면, 전자 장치는 외부 전자 장치로 기기간 통신을 통해서 적어도 하나의 파일의 전송을 시도하는 동작 S1640을 수행할 수 있다. 전자 장치는 동작 S1640에서 외부 전자 장치로 파일이 전송되었는지 여부를 판단하는 동작 S1650을 수행할 수 있다.The electronic device may perform operation S1630 of selecting an item for the external electronic device from the device list. For example, the electronic device may receive a touch input for a location where an item (eg, an icon) for an external electronic device is displayed through the touch screen of the electronic device. When an item for the external electronic device is selected, the electronic device may perform operation S1640 of attempting to transmit at least one file to the external electronic device through device-to-device communication. In operation S1640, the electronic device may perform operation S1650 of determining whether a file has been transmitted to the external electronic device.

동작 S1650에서 파일이 정상적으로 전송되지 않은 것으로 판단된 경우, 전자 장치는 파일 전송이 실패하였음을 나타내는 항목을 표시하는 동작 S1660을 수행할 수 있다. 예를 들어, 전자 장치는 외부 전자 장치를 나타내는 아이콘 주변에 "전송 실패"와 같은 텍스트를 표시할 수 있다. 다양한 실시 예에 따르면, 전자 장치는 외부 전자 장치가 연락처 데이터베이스에 등록된 장치이거나 사용자 계정에 대해 등록된 장치인지 여부를 판단하고, 판단 결과에 기초하여 기기 목록을 표시할 수 있다. 연락처 데이터베이스는 전자 장치에 로컬로 구성된 데이터베이스일 수도 있으며, 전자 장치 외부(예를 들어, 클라우드 서비스)에 구성된 데이터베이스일 수도 있다. 다양한 실시 예에 따르면, 전자 장치는 외부 전자 장치의 식별 정보(예: 전화번호, 기기 고유 식별 번호, 기기 이름, 사용자 계정)에 기초하여 외부 전자 장치가 연락처 데이터베이스에 등록되어 있는지 여부를 판단할 수 있다.If it is determined in operation S1650 that the file has not been transmitted normally, the electronic device may perform operation S1660 of displaying an item indicating that the file transmission has failed. For example, the electronic device may display text such as “transmission failure” around an icon representing the external electronic device. According to various embodiments of the present disclosure, the electronic device may determine whether the external electronic device is a device registered in a contact database or a device registered for a user account, and may display a device list based on the determination result. The contact database may be a database configured locally in the electronic device or a database configured outside the electronic device (eg, a cloud service). According to various embodiments of the present disclosure, the electronic device may determine whether the external electronic device is registered in the contact database based on identification information (eg, a phone number, a device unique identification number, a device name, and a user account) of the external electronic device. there is.

전자 장치는 파일 전송이 실패하였음을 나타내는 항목을 포함하는 기기 목록 내에서 외부 전자 장치에 대한 항목을 선택하는 동작 S1670을 수행할 수 있다. 예를 들어, 전자 장치는 전자 장치의 터치스크린을 통해서 외부 전자 장치에 대한 항목(예: 아이콘)이 표시된 위치에 대한 터치 입력을 수신할 수 있다. 외부 전자 장치에 대한 항목이 선택되면, 전자 장치는 링크 공유 기능에 기반한 적어도 하나의 파일의 전송을 시도하기 위하여, 전자 장치는 선택된 적어도 하나의 파일을 링크 공유 기능에 기반하여 외부 전자 장치로 제공할 수 있는지 여부를 판단하는 동작 1680을 수행할 수 있다. 적어도 하나의 파일이 링크 공유 기능에 기반하여 외부 전자 장치로 제공될 수 있는 것으로 판단된 경우, 전자 장치는 링크 정보를 포함하는 메시지를 전송하는 동작 S1690을 수행할 수 있다.The electronic device may perform operation S1670 of selecting an item for the external electronic device from the device list including the item indicating that the file transfer has failed. For example, the electronic device may receive a touch input for a location where an item (eg, an icon) for an external electronic device is displayed through the touch screen of the electronic device. When an item for the external electronic device is selected, the electronic device provides the selected at least one file to the external electronic device based on the link sharing function in order to transmit the at least one file based on the link sharing function. Operation 1680 of determining whether or not it is possible may be performed. When it is determined that at least one file can be provided to the external electronic device based on the link sharing function, the electronic device may perform operation S1690 of transmitting a message including link information.

도 17은 다양한 실시예들에 따른 전자 장치(예: 도 1의 전자 장치(101), 도 2의 전자 장치(101), 도 4의 전자 장치(400))가 기기간 통신에 기초한 파일 전송이 실패한 경우에 표시하는 사용자 인터페이스의 예시를 도시한 도면이다.17 is a diagram illustrating a case in which file transmission based on device-to-device communication fails in an electronic device (eg, the electronic device 101 of FIG. 1 , the electronic device 101 of FIG. 2 , and the electronic device 400 of FIG. 4 ) according to various embodiments of the present disclosure; It is a diagram showing an example of a user interface displayed in a case.

도 16의 동작 S1660에서, 전자 장치는 외부 전자 장치에 대한 항목(1710)을 포함하는 기기 목록(1700)을 디스플레이에 표시할 수 있다. 외부 전자 장치에 대한 항목(1710)은 그 외부 전자 장치에 대해 파일 전송이 실패한 이력이 있는 경우 실패한 파일 전송에 대한 이력이 있음을 나타내는 지시자를 포함하여 표시될 수 있다. 사용자는 기기 목록(1700) 중에서 실패한 파일 전송에 대한 이력이 있음이 표시된 항목(1710)을 선택하여 전자 장치가 실패한 파일을 링크 공유 기능에 기초하여 전송하도록 전자 장치를 제어할 수 있다.In operation S1660 of FIG. 16 , the electronic device may display the device list 1700 including the item 1710 for the external electronic device on the display. The item 1710 for the external electronic device may be displayed including an indicator indicating that there is a history of unsuccessful file transfer when there is a history of file transfer failure with respect to the external electronic device. The user may select an item 1710 indicating that there is a history of failed file transmission from the device list 1700 and control the electronic device to transmit the failed file based on the link sharing function.

다양한 실시 예들에 따른 전자 장치는 외부 장치와 통신을 수행하는 통신 회로 및 상기 통신 회로와 작동적으로 연결된 프로세서를 포함할 수 있다. 상기 프로세서는, 적어도 하나의 파일을 메시징 어플리케이션을 이용하여 외부 전자 장치로 제공하도록 하는 사용자 명령을 수신하고, 상기 사용자 명령에 응답하여, 상기 메시징 어플리케이션을 이용하여 상기 적어도 하나의 파일을 상기 외부 전자 장치로 전송할 수 있는지 여부를 판단하며, 상기 메시징 어플리케이션을 이용하여 상기 적어도 하나의 파일을 상기 외부 전자 장치로 전송할 수 없는 것으로 판단되는 것에 응답하여, 상기 적어도 하나의 파일을 다운로드하기 위한 링크 정보를 생성하며, 상기 통신 회로를 통해서 상기 메시징 어플리케이션을 이용하여 상기 링크 정보를 상기 외부 전자 장치로 전송하고, 상기 링크 정보를 이용하여 접속 가능한 외부 서버로 상기 적어도 하나의 파일을 업로드하도록 구성될 수 있다.An electronic device according to various embodiments may include a communication circuit that communicates with an external device and a processor operatively connected to the communication circuit. The processor receives a user command to provide at least one file to the external electronic device using a messaging application, and in response to the user command, transmits the at least one file to the external electronic device using the messaging application to determine whether to transmit the at least one file, and in response to determining that the at least one file cannot be transmitted to the external electronic device using the messaging application, generate link information for downloading the at least one file, , transmit the link information to the external electronic device using the messaging application through the communication circuit, and upload the at least one file to an external server connectable using the link information.

다양한 실시 예들에 따르면, 상기 프로세서는, 상기 메시징 어플리케이션이 메시지를 전송하기 위해 이용 가능한 메시지 전송망을 통해서 상기 적어도 하나의 파일을 전송할 수 없는 경우, 상기 메시징 어플리케이션을 이용하여 상기 적어도 하나의 파일을 상기 외부 전자 장치로 전송할 수 없는 것으로 판단할 수 있다.According to various embodiments of the present disclosure, when the at least one file cannot be transmitted through a message transmission network that the messaging application can use to transmit a message, the processor transmits the at least one file to the external using the messaging application. It may be determined that transmission to the electronic device is not possible.

다양한 실시 예들에 따르면, 상기 프로세서는, 상기 적어도 하나의 파일의 파일 포맷이 상기 메시지 전송망이 지원하는 파일 포맷인지 여부 및 상기 적어도 하나의 파일의 크기가 상기 메시지 전송망에서 정의된 값 이하인지 여부에 기초하여 상기 적어도 하나의 파일을 상기 외부 전자 장치로 전송할 수 있는지 여부를 판단할 수 있다.According to various embodiments, the processor is, based on whether the file format of the at least one file is a file format supported by the message transmission network and whether the size of the at least one file is less than or equal to a value defined by the message transmission network to determine whether the at least one file can be transmitted to the external electronic device.

다양한 실시 예들에 따르면, 상기 전송망은 RCS (Rich Communication Suite) 또는 MMS (Multimedia Messaging Service) 중 적어도 하나를 포함할 수 있다.According to various embodiments, the transport network may include at least one of Rich Communication Suite (RCS) and Multimedia Messaging Service (MMS).

다양한 실시 예들에 따르면, 상기 프로세서는, 상기 메시징 어플리케이션이 상기 적어도 하나의 파일의 크기를 변경하여 전송하는 경우, 동영상 파일을 분할하여 전송하는 경우 또는 상기 적어도 하나의 파일의 수량이 지정된 값을 초과하는 경우에, 상기 메시징 어플리케이션을 이용하여 상기 적어도 하나의 파일을 상기 외부 전자 장치로 전송할 수 없는 것으로 판단하도록 구성될 수 있다.According to various embodiments, when the messaging application changes the size of the at least one file and transmits it, when the video file is divided and transmitted, or the quantity of the at least one file exceeds a specified value In this case, it may be configured to determine that the at least one file cannot be transmitted to the external electronic device using the messaging application.

다양한 실시 예들에 따르면, 상기 사용자 명령은, 상기 메시징 어플리케이션이 실행된 상태에서 상기 적어도 하나의 파일을 전송될 메시지에 첨부하도록 하는 사용자 입력에 대응될 수 있다.According to various embodiments, the user command may correspond to a user input for attaching the at least one file to a message to be transmitted while the messaging application is running.

다양한 실시 예들에 따르면, 상기 전자 장치는 상기 프로세서와 작동적으로 연결된 디스플레이를 더 포함할 수 있다. 상기 프로세서는, 컨텐츠 목록 어플리케이션을 통해서 상기 적어도 하나의 파일을 선택하는 사용자 입력을 수신하고, 상기 적어도 하나의 파일을 전송하도록 하는 사용자 입력에 응답하여 상기 전자 장치가 제공하는 컨텐츠 공유 기능 목록을 표시하도록 상기 디스플레이를 제어하고, 상기 컨텐츠 공유 기능 목록 중에서 상기 메시징 어플리케이션을 이용하여 상기 적어도 하나의 파일을 전송하는 공유 기능을 선택하는 사용자 입력을 상기 사용자 명령으로서 수신할 수 있다.According to various embodiments, the electronic device may further include a display operatively connected to the processor. The processor receives a user input for selecting the at least one file through a content list application, and displays a list of content sharing functions provided by the electronic device in response to a user input for transmitting the at least one file A user input for controlling the display and selecting a sharing function for transmitting the at least one file using the messaging application from the list of contents sharing functions may be received as the user command.

다양한 실시 예들에 따르면, 상기 전자 장치는 상기 프로세서와 작동적으로 연결된 디스플레이를 더 포함할 수 있다. 상기 프로세서는, 컨텐츠 목록 어플리케이션을 통해서 상기 적어도 하나의 파일을 선택하는 사용자 입력을 수신하고, 상기 적어도 하나의 파일을 전송하도록 하는 사용자 입력에 응답하여 상기 메시징 어플리케이션을 이용하여 상기 적어도 하나의 파일을 상기 외부 전자 장치로 전송할 수 있는지 여부를 판단하며, 상기 적어도 하나의 파일을 상기 메시징 어플리케이션을 이용하여 전송할 수 있는 것으로 판단된 경우 상기 메시징 어플리케이션을 이용한 컨텐츠 공유 기능에 연관된 제1 공유 기능 항목을 포함하는 컨텐츠 공유 기능 목록을 상기 디스플레이를 통해서 표시하고, 상기 적어도 하나의 파일을 상기 메시징 어플리케이션을 이용하여 전송할 수 없는 것으로 판단된 경우 상기 링크 정보를 이용한 컨텐츠 공유 기능에 연관된 제1 공유 기능 항목을 포함하는 컨텐츠 공유 기능 목록을 상기 디스플레이를 통해서 표시하도록 구성될 수 있다.According to various embodiments, the electronic device may further include a display operatively connected to the processor. The processor receives a user input for selecting the at least one file through a content list application, and transmits the at least one file using the messaging application in response to the user input for transmitting the at least one file. It is determined whether the file can be transmitted to an external electronic device, and when it is determined that the at least one file can be transmitted using the messaging application, content including a first sharing function item related to a content sharing function using the messaging application A list of sharing functions is displayed through the display, and when it is determined that the at least one file cannot be transmitted using the messaging application, content sharing including a first sharing function item related to the content sharing function using the link information It may be configured to display a list of functions through the display.

다양한 실시 예들에 따르면, 상기 메시징 어플리케이션에 설정된 컨텐츠 공유 한도에 기초하여 상기 적어도 하나의 파일을 상기 외부 전자 장치로 전송할 수 있는지 여부를 판단할 수 있다.According to various embodiments, it may be determined whether the at least one file can be transmitted to the external electronic device based on the content sharing limit set in the messaging application.

다양한 실시 예들에 따른 전자 장치의 동작 방법은, 적어도 하나의 파일을 메시징 어플리케이션을 이용하여 외부 전자 장치로 제공하도록 하는 사용자 명령을 수신하는 동작, 상기 사용자 명령에 응답하여, 상기 메시징 어플리케이션을 이용하여 상기 적어도 하나의 파일을 상기 외부 전자 장치로 전송할 수 있는지 여부를 판단하는 동작, 상기 메시징 어플리케이션을 이용하여 상기 적어도 하나의 파일을 상기 외부 전자 장치로 전송할 수 없는 것으로 판단되는 것에 응답하여, 상기 적어도 하나의 파일을 다운로드하기 위한 링크 정보를 생성하는 동작, 상기 메시징 어플리케이션을 이용하여 상기 링크 정보를 상기 외부 전자 장치로 전송하는 동작 및 상기 링크 정보를 이용하여 접속 가능한 외부 서버로 상기 적어도 하나의 파일을 업로드하는 동작을 포함할 수 있다.The method of operating an electronic device according to various embodiments of the present disclosure includes receiving a user command for providing at least one file to an external electronic device using a messaging application, and in response to the user command, using the messaging application determining whether the at least one file can be transmitted to the external electronic device; in response to determining that the at least one file cannot be transmitted to the external electronic device using the messaging application, the at least one generating link information for downloading a file, transmitting the link information to the external electronic device using the messaging application, and uploading the at least one file to an external server accessible using the link information It can include actions.

다양한 실시 예들에 따르면, 상기 메시징 어플리케이션을 이용하여 상기 적어도 하나의 파일을 상기 외부 전자 장치로 전송할 수 있는지 여부를 판단하는 동작은, 상기 메시징 어플리케이션이 메시지를 전송하기 위해 이용 가능한 메시지 전송망을 통해서 상기 적어도 하나의 파일을 전송할 수 없는 경우, 상기 메시징 어플리케이션을 이용하여 상기 적어도 하나의 파일을 상기 외부 전자 장치로 전송할 수 없는 것으로 판단하는 동작을 포함할 수 있다.According to various embodiments, the determining whether the at least one file can be transmitted to the external electronic device by using the messaging application may include: If one file cannot be transmitted, determining that the at least one file cannot be transmitted to the external electronic device using the messaging application.

다양한 실시 예들에 따르면, 상기 메시징 어플리케이션을 이용하여 상기 적어도 하나의 파일을 상기 외부 전자 장치로 전송할 수 있는지 여부를 판단하는 동작은, 상기 적어도 하나의 파일의 파일 포맷이 상기 메시지 전송망이 지원하는 파일 포맷인지 여부 및 상기 적어도 하나의 파일의 크기가 상기 메시지 전송망에서 정의된 값 이하인지 여부에 기초하여 상기 메시지 전송망을 통해서 상기 적어도 하나의 파일을 전송할 수 있는지 여부를 판단하는 동작을 포함할 수 있다.According to various embodiments of the present disclosure, the determining whether the at least one file can be transmitted to the external electronic device using the messaging application may include a file format of the at least one file supported by the message transmission network. and determining whether the at least one file can be transmitted through the message transmission network based on whether or not the at least one file is smaller than or equal to a value defined in the message transmission network.

다양한 실시 예들에 따르면, 상기 전송망은 RCS (Rich Communication Services) 또는 MMS 중 적어도 하나를 포함할 수 있다.According to various embodiments, the transport network may include at least one of Rich Communication Services (RCS) and MMS.

다양한 실시 예들에 따르면, 상기 메시징 어플리케이션을 이용하여 상기 적어도 하나의 파일을 상기 외부 전자 장치로 전송할 수 있는지 여부를 판단하는 동작은, 상기 메시징 어플리케이션이 상기 적어도 하나의 파일의 크기를 변경하여 전송하는 경우, 동영상 파일을 분할하여 전송하는 경우 또는 상기 적어도 하나의 파일의 수량이 지정된 값을 초과하는 경우에, 상기 메시징 어플리케이션을 이용하여 상기 적어도 하나의 파일을 상기 외부 전자 장치로 전송할 수 없는 것으로 판단하는 동작을 포함할 수 있다.According to various embodiments, the determining whether the at least one file can be transmitted to the external electronic device by using the messaging application may include when the messaging application changes the size of the at least one file and transmits it. , an operation of determining that the at least one file cannot be transmitted to the external electronic device using the messaging application when the moving picture file is divided and transmitted or when the quantity of the at least one file exceeds a specified value may include

다양한 실시 예들에 따르면, 상기 사용자 명령은, 상기 메시징 어플리케이션이 실행된 상태에서 상기 적어도 하나의 파일을 전송될 메시지에 첨부하도록 하는 사용자 입력에 대응될 수 있다.According to various embodiments of the present disclosure, the user command may correspond to a user input for attaching the at least one file to a message to be transmitted while the messaging application is running.

다양한 실시 예들에 따르면, 상기 사용자 명령을 수신하는 동작은, 컨텐츠 목록 어플리케이션을 통해서 상기 적어도 하나의 파일을 선택하는 사용자 입력을 수신하는 동작, 상기 적어도 하나의 파일을 전송하도록 하는 사용자 입력에 응답하여 상기 전자 장치가 제공하는 컨텐츠 공유 기능 목록을 표시하도록 상기 전자 장치의 디스플레이를 제어하는 동작 및 상기 컨텐츠 공유 기능 목록 중에서 상기 메시징 어플리케이션을 이용하여 상기 적어도 하나의 파일을 전송하는 공유 기능을 선택하는 사용자 입력을 수신하는 동작을 포함할 수 있다.According to various embodiments, the receiving of the user command may include receiving a user input for selecting the at least one file through a content list application, and responding to a user input for transmitting the at least one file. Controlling the display of the electronic device to display a list of content sharing functions provided by the electronic device and receiving a user input for selecting a sharing function for transmitting the at least one file using the messaging application from the list of content sharing functions It may include an operation of receiving.

다양한 실시 예들에 따르면, 상기 사용자 명령을 수신하는 동작은, 컨텐츠 목록 어플리케이션을 통해서 상기 적어도 하나의 파일을 선택하는 사용자 입력을 수신하는 동작, 상기 적어도 하나의 파일을 전송하도록 하는 사용자 입력에 응답하여 상기 메시징 어플리케이션을 이용하여 상기 적어도 하나의 파일을 상기 외부 전자 장치로 전송할 수 있는지 여부를 판단하는 동작 및 상기 적어도 하나의 파일을 상기 메시징 어플리케이션을 이용하여 전송할 수 있는 것으로 판단된 경우 상기 메시징 어플리케이션을 이용한 컨텐츠 공유 기능 항목을 포함하는 컨텐츠 공유 기능 목록을 상기 디스플레이를 통해서 표시하고, 상기 적어도 하나의 파일을 상기 메시징 어플리케이션을 이용하여 전송할 수 없는 것으로 판단된 경우 상기 링크 정보를 이용한 컨텐츠 공유 기능 항목을 포함하는 컨텐츠 공유 기능 목록을 디스플레이를 통해서 표시하는 동작을 포함할 수 있다.According to various embodiments, the receiving of the user command may include receiving a user input for selecting the at least one file through a content list application, and responding to a user input for transmitting the at least one file. An operation of determining whether the at least one file can be transmitted to the external electronic device using a messaging application, and content using the messaging application when it is determined that the at least one file can be transmitted using the messaging application A content sharing function list including a sharing function item is displayed through the display, and when it is determined that the at least one file cannot be transmitted using the messaging application, the content including the content sharing function item using the link information It may include an operation of displaying a list of shared functions through a display.

다양한 실시 예들에 따르면, 상기 메시징 어플리케이션을 이용하여 상기 적어도 하나의 파일을 상기 외부 전자 장치로 전송할 수 있는지 여부를 판단하는 동작은, 상기 메시징 어플리케이션에 설정된 컨텐츠 공유 한도에 기초하여 상기 적어도 하나의 파일을 상기 외부 전자 장치로 전송할 수 있는지 여부를 판단하는 동작을 포함할 수 있다.According to various embodiments, the determining whether the at least one file can be transmitted to the external electronic device using the messaging application may include: sharing the at least one file based on a content sharing limit set in the messaging application It may include an operation of determining whether transmission to the external electronic device is possible.

다른 실시 예들에 따른 전자 장치는, 디스플레이, 외부 장치와 통신을 수행하는 통신 회로 및 상기 디스플레이 및 상기 통신 회로와 작동적으로 연결된 프로세서를 포함할 수 있다. 상기 프로세서는, 상기 통신 회로를 이용하여 외부 전자 장치로 기기간 통신 (Device to Device, D2D)을 통한 적어도 하나의 파일의 전송을 시도하고, 상기 기기간 통신을 통한 상기 적어도 하나의 파일에 대한 전송이 실패한 경우, 상기 외부 전자 장치에 대한 상기 적어도 하나의 파일의 전송이 실패하였음을 나타내는 항목을 포함하는 기기 목록을 표시하도록 상기 디스플레이를 제어하며, 상기 외부 전자 장치에 대한 항목이 선택된 경우, 상기 적어도 하나의 파일을 다운로드하기 위한 링크 정보를 생성하며, 상기 통신 회로를 통해서 메시징 어플리케이션을 이용하여 상기 링크 정보를 포함하는 메시지를 상기 외부 전자 장치로 전송하도록 구성될 수 있다.An electronic device according to other embodiments may include a display, a communication circuit for communicating with an external device, and a processor operatively connected to the display and the communication circuit. The processor attempts to transmit at least one file through device-to-device (D2D) communication to an external electronic device using the communication circuit, and the transmission of the at least one file through device-to-device communication fails. In this case, the display is controlled to display a device list including an item indicating that transmission of the at least one file to the external electronic device has failed, and when the item for the external electronic device is selected, the at least one and generate link information for downloading a file, and transmit a message including the link information to the external electronic device using a messaging application through the communication circuit.

다양한 실시 예들에 따르면, 상기 프로세서는, 상기 외부 전자 장치의 식별 정보를 이용하여 상기 외부 전자 장치가 연락처 데이터베이스에 등록된 장치인지 여부를 판단하고, 상기 외부 전자 장치가 연락처 데이터베이스에 등록된 장치인 경우에 상기 기기 목록에 상기 외부 전자 장치에 대한 항목을 포함하여 상기 디스플레이를 통해서 출력하도록 구성될 수 있다.According to various embodiments of the present disclosure, the processor determines whether the external electronic device is a device registered in a contact database by using the identification information of the external electronic device, and when the external electronic device is a device registered in the contact database, may be configured to include an item for the external electronic device in the device list and output it through the display.

본 문서에 개시된 다양한 실시예들에 따른 전자 장치는 다양한 형태의 장치가 될 수 있다. 전자 장치는, 예를 들면, 휴대용 통신 장치(예: 스마트폰), 컴퓨터 장치, 휴대용 멀티미디어 장치, 휴대용 의료 기기, 카메라, 웨어러블 장치, 또는 가전 장치를 포함할 수 있다. 본 문서의 실시예에 따른 전자 장치는 전술한 기기들에 한정되지 않는다.The electronic device according to various embodiments disclosed in this document may have various types of devices. The electronic device may include, for example, a portable communication device (eg, a smart phone), a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a home appliance device. The electronic device according to the embodiment of the present document is not limited to the above-described devices.

본 문서의 다양한 실시예들 및 이에 사용된 용어들은 본 문서에 기재된 기술적 특징들을 특정한 실시예들로 한정하려는 것이 아니며, 해당 실시예의 다양한 변경, 균등물, 또는 대체물을 포함하는 것으로 이해되어야 한다. 도면의 설명과 관련하여, 유사한 또는 관련된 구성요소에 대해서는 유사한 참조 부호가 사용될 수 있다. 아이템에 대응하는 명사의 단수 형은 관련된 문맥상 명백하게 다르게 지시하지 않는 한, 상기 아이템 한 개 또는 복수 개를 포함할 수 있다. 본 문서에서, "A 또는 B", "A 및 B 중 적어도 하나", "A 또는 B 중 적어도 하나", "A, B 또는 C", "A, B 및 C 중 적어도 하나", 및 "A, B, 또는 C 중 적어도 하나"와 같은 문구들 각각은 그 문구들 중 해당하는 문구에 함께 나열된 항목들 중 어느 하나, 또는 그들의 모든 가능한 조합을 포함할 수 있다. "제 1", "제 2", 또는 "첫째" 또는 "둘째"와 같은 용어들은 단순히 해당 구성요소를 다른 해당 구성요소와 구분하기 위해 사용될 수 있으며, 해당 구성요소들을 다른 측면(예: 중요성 또는 순서)에서 한정하지 않는다. 어떤(예: 제 1) 구성요소가 다른(예: 제 2) 구성요소에, "기능적으로" 또는 "통신적으로"라는 용어와 함께 또는 이런 용어 없이, "커플드" 또는 "커넥티드"라고 언급된 경우, 그것은 상기 어떤 구성요소가 상기 다른 구성요소에 직접적으로(예: 유선으로), 무선으로, 또는 제 3 구성요소를 통하여 연결될 수 있다는 것을 의미한다.The various embodiments of this document and terms used therein are not intended to limit the technical features described in this document to specific embodiments, but it should be understood to include various modifications, equivalents, or substitutions of the embodiments. In connection with the description of the drawings, like reference numerals may be used for similar or related components. The singular form of the noun corresponding to the item may include one or more of the item, unless the relevant context clearly dictates otherwise. As used herein, "A or B", "at least one of A and B", "at least one of A or B", "A, B or C", "at least one of A, B and C", and "A , B, or C" each may include any one of the items listed together in the corresponding one of the phrases, or all possible combinations thereof. Terms such as "first", "second", or "first" or "second" may be used simply to distinguish the element from other elements in question, and may refer to elements in other aspects (e.g., importance or order) is not limited. It is said that one (eg, first) component is "coupled" or "connected" to another (eg, second) component, with or without the terms "functionally" or "communicatively". When referenced, it means that one component can be connected to the other component directly (eg by wire), wirelessly, or through a third component.

본 문서의 다양한 실시예들에서 사용된 용어 "모듈"은 하드웨어, 소프트웨어 또는 펌웨어로 구현된 유닛을 포함할 수 있으며, 예를 들면, 로직, 논리 블록, 부품, 또는 회로와 같은 용어와 상호 호환적으로 사용될 수 있다. 모듈은, 일체로 구성된 부품 또는 하나 또는 그 이상의 기능을 수행하는, 상기 부품의 최소 단위 또는 그 일부가 될 수 있다. 예를 들면, 일실시예에 따르면, 모듈은 ASIC(application-specific integrated circuit)의 형태로 구현될 수 있다. The term “module” used in various embodiments of this document may include a unit implemented in hardware, software, or firmware, and is interchangeable with terms such as, for example, logic, logic block, component, or circuit. can be used as A module may be an integrally formed part or a minimum unit or a part of the part that performs one or more functions. For example, according to an embodiment, the module may be implemented in the form of an application-specific integrated circuit (ASIC).

본 문서의 다양한 실시예들은 기기(machine)(예: 전자 장치(101)) 의해 읽을 수 있는 저장 매체(storage medium)(예: 내장 메모리(136) 또는 외장 메모리(138))에 저장된 하나 이상의 명령어들을 포함하는 소프트웨어(예: 프로그램(140))로서 구현될 수 있다. 예를 들면, 기기(예: 전자 장치(101))의 프로세서(예: 프로세서(120))는, 저장 매체로부터 저장된 하나 이상의 명령어들 중 적어도 하나의 명령을 호출하고, 그것을 실행할 수 있다. 이것은 기기가 상기 호출된 적어도 하나의 명령어에 따라 적어도 하나의 기능을 수행하도록 운영되는 것을 가능하게 한다. 상기 하나 이상의 명령어들은 컴파일러에 의해 생성된 코드 또는 인터프리터에 의해 실행될 수 있는 코드를 포함할 수 있다. 기기로 읽을 수 있는 저장 매체는, 비일시적(non-transitory) 저장 매체의 형태로 제공될 수 있다. 여기서, ‘비일시적’은 저장 매체가 실재(tangible)하는 장치이고, 신호(signal)(예: 전자기파)를 포함하지 않는다는 것을 의미할 뿐이며, 이 용어는 데이터가 저장 매체에 반영구적으로 저장되는 경우와 임시적으로 저장되는 경우를 구분하지 않는다.According to various embodiments of the present document, one or more instructions stored in a storage medium (eg, internal memory 136 or external memory 138) readable by a machine (eg, electronic device 101) may be implemented as software (eg, the program 140) including For example, the processor (eg, the processor 120 ) of the device (eg, the electronic device 101 ) may call at least one command among one or more commands stored from a storage medium and execute it. This makes it possible for the device to be operated to perform at least one function according to the called at least one command. The one or more instructions may include code generated by a compiler or code executable by an interpreter. The device-readable storage medium may be provided in the form of a non-transitory storage medium. Here, 'non-transitory' only means that the storage medium is a tangible device and does not contain a signal (eg, electromagnetic wave), and this term refers to the case where data is semi-permanently stored in the storage medium and It does not distinguish between temporary storage cases.

일실시예에 따르면, 본 문서에 개시된 다양한 실시예들에 따른 방법은 컴퓨터 프로그램 제품(computer program product)에 포함되어 제공될 수 있다. 컴퓨터 프로그램 제품은 상품으로서 판매자 및 구매자 간에 거래될 수 있다. 컴퓨터 프로그램 제품은 기기로 읽을 수 있는 저장 매체(예: compact disc read only memory(CD-ROM))의 형태로 배포되거나, 또는 어플리케이션 스토어(예: 플레이 스토어TM)를 통해 또는 두 개의 사용자 장치들(예: 스마트 폰들) 간에 직접, 온라인으로 배포(예: 다운로드 또는 업로드)될 수 있다. 온라인 배포의 경우에, 컴퓨터 프로그램 제품의 적어도 일부는 제조사의 서버, 어플리케이션 스토어의 서버, 또는 중계 서버의 메모리와 같은 기기로 읽을 수 있는 저장 매체에 적어도 일시 저장되거나, 임시적으로 생성될 수 있다.According to one embodiment, the method according to various embodiments disclosed in this document may be provided as included in a computer program product. Computer program products may be traded between sellers and buyers as commodities. The computer program product is distributed in the form of a machine-readable storage medium (eg compact disc read only memory (CD-ROM)), or through an application store (eg Play Store™) or on two user devices ( It can be distributed (eg downloaded or uploaded) directly between smartphones (eg: smartphones) and online. In the case of online distribution, at least a part of the computer program product may be temporarily stored or temporarily created in a machine-readable storage medium such as a memory of a server of a manufacturer, a server of an application store, or a relay server.

다양한 실시예들에 따르면, 상기 기술한 구성요소들의 각각의 구성요소(예: 모듈 또는 프로그램)는 단수 또는 복수의 개체를 포함할 수 있으며, 복수의 개체 중 일부는 다른 구성요소에 분리 배치될 수도 있다. 다양한 실시예들에 따르면, 전술한 해당 구성요소들 중 하나 이상의 구성요소들 또는 동작들이 생략되거나, 또는 하나 이상의 다른 구성요소들 또는 동작들이 추가될 수 있다. 대체적으로 또는 추가적으로, 복수의 구성요소들(예: 모듈 또는 프로그램)은 하나의 구성요소로 통합될 수 있다. 이런 경우, 통합된 구성요소는 상기 복수의 구성요소들 각각의 구성요소의 하나 이상의 기능들을 상기 통합 이전에 상기 복수의 구성요소들 중 해당 구성요소에 의해 수행되는 것과 동일 또는 유사하게 수행할 수 있다. 다양한 실시예들에 따르면, 모듈, 프로그램 또는 다른 구성요소에 의해 수행되는 동작들은 순차적으로, 병렬적으로, 반복적으로, 또는 휴리스틱하게 실행되거나, 상기 동작들 중 하나 이상이 다른 순서로 실행되거나, 생략되거나, 또는 하나 이상의 다른 동작들이 추가될 수 있다. According to various embodiments, each component (eg, module or program) of the above-described components may include a singular or a plurality of entities, and some of the plurality of entities may be separately disposed in other components. there is. According to various embodiments, one or more components or operations among the above-described corresponding components may be omitted, or one or more other components or operations may be added. Alternatively or additionally, a plurality of components (eg, a module or a program) may be integrated into one component. In this case, the integrated component may perform one or more functions of each component of the plurality of components identically or similarly to those performed by the corresponding component among the plurality of components prior to the integration. . According to various embodiments, operations performed by a module, program, or other component are executed sequentially, in parallel, repeatedly, or heuristically, or one or more of the operations are executed in a different order, or omitted. or one or more other operations may be added.

Claims (20)

전자 장치에 있어서,
외부 장치와 통신을 수행하는 통신 회로; 및
상기 통신 회로와 작동적으로 연결된 프로세서를 포함하며,
상기 프로세서는,
적어도 하나의 파일을 메시징 어플리케이션을 이용하여 외부 전자 장치로 제공하도록 하는 사용자 명령을 수신하고,
상기 사용자 명령에 응답하여, 상기 메시징 어플리케이션을 이용하여 상기 적어도 하나의 파일을 상기 외부 전자 장치로 전송할 수 있는지 여부를 판단하며,
상기 메시징 어플리케이션을 이용하여 상기 적어도 하나의 파일을 상기 외부 전자 장치로 전송할 수 없는 것으로 판단되는 것에 응답하여, 상기 적어도 하나의 파일을 다운로드하기 위한 링크 정보를 생성하며,
상기 통신 회로를 통해서 상기 메시징 어플리케이션을 이용하여 상기 링크 정보를 상기 외부 전자 장치로 전송하고, 상기 링크 정보를 이용하여 접속 가능한 외부 서버로 상기 적어도 하나의 파일을 업로드하도록 구성된, 전자 장치.
In an electronic device,
a communication circuit for performing communication with an external device; and
a processor operatively coupled to the communication circuitry;
The processor is
receiving a user command to provide at least one file to an external electronic device using a messaging application;
determining whether the at least one file can be transmitted to the external electronic device using the messaging application in response to the user command;
In response to determining that the at least one file cannot be transmitted to the external electronic device using the messaging application, link information for downloading the at least one file is generated,
and transmit the link information to the external electronic device using the messaging application through the communication circuit, and upload the at least one file to an external server connectable using the link information.
청구항 1에 있어서,
상기 프로세서는,
상기 메시징 어플리케이션이 메시지를 전송하기 위해 이용 가능한 메시지 전송망을 통해서 상기 적어도 하나의 파일을 전송할 수 없는 경우, 상기 메시징 어플리케이션을 이용하여 상기 적어도 하나의 파일을 상기 외부 전자 장치로 전송할 수 없는 것으로 판단하는, 전자 장치.
The method according to claim 1,
The processor is
determining that the at least one file cannot be transmitted to the external electronic device using the messaging application when the messaging application cannot transmit the at least one file through a message transmission network available for transmitting a message; electronic device.
청구항 2에 있어서,
상기 프로세서는,
상기 적어도 하나의 파일의 파일 포맷이 상기 메시지 전송망이 지원하는 파일 포맷인지 여부 및 상기 적어도 하나의 파일의 크기가 상기 메시지 전송망에서 정의된 값 이하인지 여부에 기초하여 상기 적어도 하나의 파일을 상기 외부 전자 장치로 전송할 수 있는지 여부를 판단하는, 전자 장치.
3. The method according to claim 2,
The processor is
The at least one file is transferred to the external electronic device based on whether the file format of the at least one file is a file format supported by the message transmission network and whether the size of the at least one file is less than or equal to a value defined by the message transmission network. An electronic device that determines whether it can transmit to the device.
청구항 2에 있어서,
상기 전송망은 RCS (Rich Communication Suite) 또는 MMS (Multimedia Messaging Service) 중 적어도 하나를 포함하는, 전자 장치.
3. The method according to claim 2,
The transport network includes at least one of Rich Communication Suite (RCS) and Multimedia Messaging Service (MMS), the electronic device.
청구항 1에 있어서,
상기 프로세서는,
상기 메시징 어플리케이션이 상기 적어도 하나의 파일의 크기를 변경하여 전송하는 경우, 동영상 파일을 분할하여 전송하는 경우 또는 상기 적어도 하나의 파일의 수량이 지정된 값을 초과하는 경우에, 상기 메시징 어플리케이션을 이용하여 상기 적어도 하나의 파일을 상기 외부 전자 장치로 전송할 수 없는 것으로 판단하도록 구성된, 전자 장치.
The method according to claim 1,
The processor is
When the messaging application changes the size of the at least one file and transmits it, when the video file is divided and transmitted, or when the quantity of the at least one file exceeds a specified value, the messaging application is used to and determine that at least one file cannot be transmitted to the external electronic device.
청구항 1에 있어서,
상기 사용자 명령은, 상기 메시징 어플리케이션이 실행된 상태에서 상기 적어도 하나의 파일을 전송될 메시지에 첨부하도록 하는 사용자 입력에 대응되는 것인, 전자 장치.
The method according to claim 1,
The user command corresponds to a user input for attaching the at least one file to a message to be transmitted while the messaging application is running.
청구항 1에 있어서,
상기 전자 장치는 상기 프로세서와 작동적으로 연결된 디스플레이를 더 포함하고,
상기 프로세서는,
컨텐츠 목록 어플리케이션을 통해서 상기 적어도 하나의 파일을 선택하는 사용자 입력을 수신하고,
상기 적어도 하나의 파일을 전송하도록 하는 사용자 입력에 응답하여 상기 전자 장치가 제공하는 컨텐츠 공유 기능 목록을 표시하도록 상기 디스플레이를 제어하고,
상기 컨텐츠 공유 기능 목록 중에서 상기 메시징 어플리케이션을 이용하여 상기 적어도 하나의 파일을 전송하는 공유 기능을 선택하는 사용자 입력을 상기 사용자 명령으로서 수신하는, 전자 장치.
The method according to claim 1,
the electronic device further comprising a display operatively coupled to the processor;
The processor is
Receiving a user input for selecting the at least one file through the content list application,
controlling the display to display a list of content sharing functions provided by the electronic device in response to a user input for transmitting the at least one file;
and receiving a user input for selecting a sharing function for transmitting the at least one file using the messaging application from the list of contents sharing functions as the user command.
청구항 1에 있어서,
상기 전자 장치는 상기 프로세서와 작동적으로 연결된 디스플레이를 더 포함하고,
상기 프로세서는,
컨텐츠 목록 어플리케이션을 통해서 상기 적어도 하나의 파일을 선택하는 사용자 입력을 수신하고,
상기 적어도 하나의 파일을 전송하도록 하는 사용자 입력에 응답하여 상기 메시징 어플리케이션을 이용하여 상기 적어도 하나의 파일을 상기 외부 전자 장치로 전송할 수 있는지 여부를 판단하며,
상기 적어도 하나의 파일을 상기 메시징 어플리케이션을 이용하여 전송할 수 있는 것으로 판단된 경우 상기 메시징 어플리케이션을 이용한 컨텐츠 공유 기능에 연관된 제1 공유 기능 항목을 포함하는 컨텐츠 공유 기능 목록을 상기 디스플레이를 통해서 표시하고,
상기 적어도 하나의 파일을 상기 메시징 어플리케이션을 이용하여 전송할 수 없는 것으로 판단된 경우 상기 링크 정보를 이용한 컨텐츠 공유 기능에 연관된 제1 공유 기능 항목을 포함하는 컨텐츠 공유 기능 목록을 상기 디스플레이를 통해서 표시하도록 구성되는, 전자 장치.
The method according to claim 1,
the electronic device further comprising a display operatively coupled to the processor;
The processor is
Receiving a user input for selecting the at least one file through the content list application,
determining whether the at least one file can be transmitted to the external electronic device using the messaging application in response to a user input for transmitting the at least one file;
When it is determined that the at least one file can be transmitted using the messaging application, a content sharing function list including a first sharing function item related to a content sharing function using the messaging application is displayed through the display,
When it is determined that the at least one file cannot be transmitted using the messaging application, a content sharing function list including a first sharing function item related to the content sharing function using the link information is displayed through the display , electronic devices.
청구항 1에 있어서,
상기 메시징 어플리케이션에 설정된 컨텐츠 공유 한도에 기초하여 상기 적어도 하나의 파일을 상기 외부 전자 장치로 전송할 수 있는지 여부를 판단하는, 전자 장치.
The method according to claim 1,
and determining whether the at least one file can be transmitted to the external electronic device based on a content sharing limit set in the messaging application.
전자 장치의 동작 방법에 있어서,
적어도 하나의 파일을 메시징 어플리케이션을 이용하여 외부 전자 장치로 제공하도록 하는 사용자 명령을 수신하는 동작;
상기 사용자 명령에 응답하여, 상기 메시징 어플리케이션을 이용하여 상기 적어도 하나의 파일을 상기 외부 전자 장치로 전송할 수 있는지 여부를 판단하는 동작;
상기 메시징 어플리케이션을 이용하여 상기 적어도 하나의 파일을 상기 외부 전자 장치로 전송할 수 없는 것으로 판단되는 것에 응답하여, 상기 적어도 하나의 파일을 다운로드하기 위한 링크 정보를 생성하는 동작;
상기 메시징 어플리케이션을 이용하여 상기 링크 정보를 상기 외부 전자 장치로 전송하는 동작; 및
상기 링크 정보를 이용하여 접속 가능한 외부 서버로 상기 적어도 하나의 파일을 업로드하는 동작을 포함하는, 방법.
A method of operating an electronic device, comprising:
receiving a user command to provide at least one file to an external electronic device using a messaging application;
determining whether the at least one file can be transmitted to the external electronic device using the messaging application in response to the user command;
generating link information for downloading the at least one file in response to determining that the at least one file cannot be transmitted to the external electronic device using the messaging application;
transmitting the link information to the external electronic device using the messaging application; and
and uploading the at least one file to an external server accessible by using the link information.
청구항 10에 있어서,
상기 메시징 어플리케이션을 이용하여 상기 적어도 하나의 파일을 상기 외부 전자 장치로 전송할 수 있는지 여부를 판단하는 동작은,
상기 메시징 어플리케이션이 메시지를 전송하기 위해 이용 가능한 메시지 전송망을 통해서 상기 적어도 하나의 파일을 전송할 수 없는 경우, 상기 메시징 어플리케이션을 이용하여 상기 적어도 하나의 파일을 상기 외부 전자 장치로 전송할 수 없는 것으로 판단하는 동작을 포함하는, 방법.
11. The method of claim 10,
The operation of determining whether the at least one file can be transmitted to the external electronic device using the messaging application includes:
Determining that the at least one file cannot be transmitted to the external electronic device using the messaging application when the messaging application cannot transmit the at least one file through a message transmission network available for transmitting a message A method comprising
청구항 11에 있어서,
상기 메시징 어플리케이션을 이용하여 상기 적어도 하나의 파일을 상기 외부 전자 장치로 전송할 수 있는지 여부를 판단하는 동작은,
상기 적어도 하나의 파일의 파일 포맷이 상기 메시지 전송망이 지원하는 파일 포맷인지 여부 및 상기 적어도 하나의 파일의 크기가 상기 메시지 전송망에서 정의된 값 이하인지 여부에 기초하여 상기 메시지 전송망을 통해서 상기 적어도 하나의 파일을 전송할 수 있는지 여부를 판단하는 동작을 포함하는, 방법.
12. The method of claim 11,
The operation of determining whether the at least one file can be transmitted to the external electronic device using the messaging application includes:
Based on whether the file format of the at least one file is a file format supported by the message transmission network and whether the size of the at least one file is less than or equal to a value defined in the message transmission network, the at least one and determining whether the file can be transferred.
청구항 11에 있어서,
상기 전송망은 RCS (Rich Communication Services) 또는 MMS 중 적어도 하나를 포함하는, 방법.
12. The method of claim 11,
The transport network includes at least one of Rich Communication Services (RCS) or MMS.
청구항 10에 있어서,
상기 메시징 어플리케이션을 이용하여 상기 적어도 하나의 파일을 상기 외부 전자 장치로 전송할 수 있는지 여부를 판단하는 동작은,
상기 메시징 어플리케이션이 상기 적어도 하나의 파일의 크기를 변경하여 전송하는 경우, 동영상 파일을 분할하여 전송하는 경우 또는 상기 적어도 하나의 파일의 수량이 지정된 값을 초과하는 경우에, 상기 메시징 어플리케이션을 이용하여 상기 적어도 하나의 파일을 상기 외부 전자 장치로 전송할 수 없는 것으로 판단하는 동작을 포함하는, 방법.
11. The method of claim 10,
The operation of determining whether the at least one file can be transmitted to the external electronic device using the messaging application includes:
When the messaging application changes the size of the at least one file and transmits it, when the video file is divided and transmitted, or when the quantity of the at least one file exceeds a specified value, the messaging application is used to and determining that the at least one file cannot be transmitted to the external electronic device.
청구항 10에 있어서,
상기 사용자 명령은, 상기 메시징 어플리케이션이 실행된 상태에서 상기 적어도 하나의 파일을 전송될 메시지에 첨부하도록 하는 사용자 입력에 대응되는 것인, 방법.
11. The method of claim 10,
The method of claim 1, wherein the user command corresponds to a user input for attaching the at least one file to a message to be transmitted while the messaging application is running.
청구항 10에 있어서,
상기 사용자 명령을 수신하는 동작은,
컨텐츠 목록 어플리케이션을 통해서 상기 적어도 하나의 파일을 선택하는 사용자 입력을 수신하는 동작,
상기 적어도 하나의 파일을 전송하도록 하는 사용자 입력에 응답하여 상기 전자 장치가 제공하는 컨텐츠 공유 기능 목록을 표시하도록 상기 전자 장치의 디스플레이를 제어하는 동작, 및
상기 컨텐츠 공유 기능 목록 중에서 상기 메시징 어플리케이션을 이용하여 상기 적어도 하나의 파일을 전송하는 공유 기능을 선택하는 사용자 입력을 수신하는 동작을 포함하는, 방법.
11. The method of claim 10,
The operation of receiving the user command is,
Receiving a user input for selecting the at least one file through a content list application;
controlling a display of the electronic device to display a list of content sharing functions provided by the electronic device in response to a user input for transmitting the at least one file; and
and receiving a user input for selecting a sharing function for transmitting the at least one file using the messaging application from the list of contents sharing functions.
청구항 10에 있어서,
상기 사용자 명령을 수신하는 동작은,
컨텐츠 목록 어플리케이션을 통해서 상기 적어도 하나의 파일을 선택하는 사용자 입력을 수신하는 동작,
상기 적어도 하나의 파일을 전송하도록 하는 사용자 입력에 응답하여 상기 메시징 어플리케이션을 이용하여 상기 적어도 하나의 파일을 상기 외부 전자 장치로 전송할 수 있는지 여부를 판단하는 동작, 및
상기 적어도 하나의 파일을 상기 메시징 어플리케이션을 이용하여 전송할 수 있는 것으로 판단된 경우 상기 메시징 어플리케이션을 이용한 컨텐츠 공유 기능 항목을 포함하는 컨텐츠 공유 기능 목록을 상기 디스플레이를 통해서 표시하고, 상기 적어도 하나의 파일을 상기 메시징 어플리케이션을 이용하여 전송할 수 없는 것으로 판단된 경우 상기 링크 정보를 이용한 컨텐츠 공유 기능 항목을 포함하는 컨텐츠 공유 기능 목록을 디스플레이를 통해서 표시하는 동작을 포함하는, 방법.
11. The method of claim 10,
The operation of receiving the user command is,
Receiving a user input for selecting the at least one file through a content list application;
determining whether the at least one file can be transmitted to the external electronic device using the messaging application in response to a user input for transmitting the at least one file; and
When it is determined that the at least one file can be transmitted using the messaging application, a content sharing function list including a content sharing function item using the messaging application is displayed on the display, and the at least one file is displayed on the display. and displaying a content sharing function list including a content sharing function item using the link information through a display when it is determined that transmission cannot be performed using the messaging application.
청구항 10에 있어서,
상기 메시징 어플리케이션을 이용하여 상기 적어도 하나의 파일을 상기 외부 전자 장치로 전송할 수 있는지 여부를 판단하는 동작은,
상기 메시징 어플리케이션에 설정된 컨텐츠 공유 한도에 기초하여 상기 적어도 하나의 파일을 상기 외부 전자 장치로 전송할 수 있는지 여부를 판단하는 동작을 포함하는, 방법.
11. The method of claim 10,
The operation of determining whether the at least one file can be transmitted to the external electronic device using the messaging application includes:
and determining whether the at least one file can be transmitted to the external electronic device based on a content sharing limit set in the messaging application.
전자 장치에 있어서,
디스플레이;
외부 장치와 통신을 수행하는 통신 회로; 및
상기 디스플레이 및 상기 통신 회로와 작동적으로 연결된 프로세서를 포함하며,
상기 프로세서는,
상기 통신 회로를 이용하여 외부 전자 장치로 기기간 통신 (Device to Device, D2D)을 통한 적어도 하나의 파일의 전송을 시도하고,
상기 기기간 통신을 통한 상기 적어도 하나의 파일에 대한 전송이 실패한 경우, 상기 외부 전자 장치에 대한 상기 적어도 하나의 파일의 전송이 실패하였음을 나타내는 항목을 포함하는 기기 목록을 표시하도록 상기 디스플레이를 제어하며,
상기 외부 전자 장치에 대한 항목이 선택된 경우, 상기 적어도 하나의 파일을 다운로드하기 위한 링크 정보를 생성하며, 상기 통신 회로를 통해서 메시징 어플리케이션을 이용하여 상기 링크 정보를 포함하는 메시지를 상기 외부 전자 장치로 전송하도록 구성된, 전자 장치.
In an electronic device,
display;
a communication circuit for performing communication with an external device; and
a processor operatively coupled with the display and the communication circuitry;
The processor is
Attempts to transmit at least one file through device-to-device (D2D) communication to an external electronic device using the communication circuit,
When the transmission of the at least one file through the device-to-device communication fails, the display is controlled to display a device list including an item indicating that transmission of the at least one file to the external electronic device has failed,
When an item for the external electronic device is selected, link information for downloading the at least one file is generated, and a message including the link information is transmitted to the external electronic device using a messaging application through the communication circuit. An electronic device configured to do so.
청구항 19에 있어서,
상기 프로세서는,
상기 외부 전자 장치의 식별 정보를 이용하여 상기 외부 전자 장치가 연락처 데이터베이스에 등록된 장치인지 여부를 판단하고,
상기 외부 전자 장치가 연락처 데이터베이스에 등록된 장치인 경우에 상기 기기 목록에 상기 외부 전자 장치에 대한 항목을 포함하여 상기 디스플레이를 통해서 출력하도록 구성된, 전자 장치.
20. The method of claim 19,
The processor is
determining whether the external electronic device is a device registered in a contact database using the identification information of the external electronic device;
and an item for the external electronic device included in the device list and output through the display when the external electronic device is a device registered in a contact database.
KR1020200096410A 2020-07-31 2020-07-31 Electronic apparatus for sharing file and file sharing method thereof KR20220015846A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020200096410A KR20220015846A (en) 2020-07-31 2020-07-31 Electronic apparatus for sharing file and file sharing method thereof
PCT/KR2021/006586 WO2022025403A1 (en) 2020-07-31 2021-05-27 Electronic device for sharing file and file sharing method therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020200096410A KR20220015846A (en) 2020-07-31 2020-07-31 Electronic apparatus for sharing file and file sharing method thereof

Publications (1)

Publication Number Publication Date
KR20220015846A true KR20220015846A (en) 2022-02-08

Family

ID=80036506

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020200096410A KR20220015846A (en) 2020-07-31 2020-07-31 Electronic apparatus for sharing file and file sharing method thereof

Country Status (2)

Country Link
KR (1) KR20220015846A (en)
WO (1) WO2022025403A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100435501B1 (en) * 2001-08-29 2004-06-10 주식회사 지구넷 Method and system for transferring large quantity data
KR20020077321A (en) * 2002-09-13 2002-10-11 주식회사 에이전트리더 How to ensure reliable delivery of large files attached to emails
KR20040015784A (en) * 2004-02-02 2004-02-19 장중혁 File Transfer System with Instant Messenger including file transfer function, and File Tranfer Method by the system
KR20090048795A (en) * 2007-11-12 2009-05-15 삼성전자주식회사 File transmission system and file management method thereof
WO2012070865A2 (en) * 2010-11-26 2012-05-31 주식회사 프로덕트에셋컨설팅 Information-sharing system and method

Also Published As

Publication number Publication date
WO2022025403A1 (en) 2022-02-03

Similar Documents

Publication Publication Date Title
US20230161673A1 (en) Method for restoring backup data and electronic device therefor
KR20220057719A (en) Electronic device using carrier network and method for operating thereof
KR20220015846A (en) Electronic apparatus for sharing file and file sharing method thereof
KR20230023176A (en) Electronic device for interworking with wearable device and operating method thereof
US20230007088A1 (en) Network connection method and electronic device supporting same
KR20230037304A (en) Electronic device for providing seamless user experience and operating method thereof
KR20230014479A (en) Method of displaying integrated screen and electronic device supporting the same
KR20230051018A (en) Electronic device and method for generating additional information of file in the electronic device
KR20240052572A (en) Method of providing shared folder and electronic device therefor
KR20220015815A (en) Electronic device providing data movement service and method thereof
KR20240068495A (en) Method for setting device and electronic device supporting the same
KR20220043741A (en) Electronic device for synchronizing call waiting operation in network environment and method thereof
KR20220130914A (en) electronic device and method for receiving email of the same
KR20240014409A (en) Method for performing operation related to notification and electronic device supporting the same
KR20230019632A (en) Method and apparatus for applying theme to a pluarity of electronic device
KR20220138981A (en) An electronic device providing customized group service and control method thereof
KR20230046172A (en) Method and electronic device for utilizing data of external electronic device
KR20240050220A (en) Electronic device for sharing screen with external device and method for controlling the same
KR20230154724A (en) Split screenshot creation method and electronic device thereof
KR20240047866A (en) Wearable device, method, and non-transitory computer readable storage medium sharing file
KR20230011795A (en) Electronic device displaying widget and method for controlling the same
KR20220109093A (en) Electronic device and method for controlling thereof
KR20220135383A (en) Electronic device and method of operation thereof
KR20220102090A (en) Electronic device including a camera and method of operating the same
KR20240039547A (en) Apparatus and method for providing customized software