CN113805825B - Method for data communication between devices, device and readable storage medium - Google Patents

Method for data communication between devices, device and readable storage medium Download PDF

Info

Publication number
CN113805825B
CN113805825B CN202110966346.7A CN202110966346A CN113805825B CN 113805825 B CN113805825 B CN 113805825B CN 202110966346 A CN202110966346 A CN 202110966346A CN 113805825 B CN113805825 B CN 113805825B
Authority
CN
China
Prior art keywords
display
window
display window
equipment
information
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202110966346.7A
Other languages
Chinese (zh)
Other versions
CN113805825A (en
Inventor
葛雄华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202110966346.7A priority Critical patent/CN113805825B/en
Priority to CN202211127899.4A priority patent/CN115708059A/en
Publication of CN113805825A publication Critical patent/CN113805825A/en
Priority to PCT/CN2022/090301 priority patent/WO2023020012A1/en
Application granted granted Critical
Publication of CN113805825B publication Critical patent/CN113805825B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)
  • Telephone Function (AREA)

Abstract

The application provides a data communication method between devices, a device, a storage medium and a program product, relating to the technical field of terminals. The method comprises the following steps: and detecting a first operation, and determining first device information of first devices corresponding to the first display window and second device information of second devices corresponding to the second display window, wherein the first operation comprises a scribing operation for moving the first display window to a display area of the second display window or starting from the first display window to the end of the second display window. And controlling data communication between the first device and the second device based on the first device information and the second device information so as to display window display data of the first device in the second device through the data communication. Therefore, the user can control the first device to perform data communication with the second device by performing the first operation on the target device, so that the window display data of the first device can be displayed in the second device, and the convenience of operation is improved.

Description

Method for data communication between devices, device and readable storage medium
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a method and device for data communication between devices, and a readable storage medium.
Background
With the rapid development of terminal technology, functions supported by electronic devices such as tablet computers and mobile phones are more and more abundant. For example, a plurality of electronic devices a may be connected to the same electronic device B, and the electronic device B may display window display data of each of the plurality of electronic devices a, for example, display screens of a plurality of mobile phones may be projected onto a tablet computer, so as to facilitate information sharing by a user.
In some scenarios, no communication connection is established between the plurality of electronic devices a, but there may be a need for data communication between the plurality of electronic devices a. For example, in a meeting scene, the mobile phone 1 and the mobile phone 2 are projected to a tablet computer, and the user of the mobile phone 2 wants to view the display screen of the mobile phone 1 on the mobile phone 2. In this case, how to perform data communication between the electronic devices a becomes an issue that needs to be solved urgently.
Disclosure of Invention
The application provides a method, a device, a storage medium and a program product for data communication between devices, which solve the problem of how to perform data communication between electronic devices connected to the same electronic device in the prior art.
In order to achieve the purpose, the technical scheme is as follows:
in a first aspect, a method for data communication between devices is provided, where a screen display area of a target device at least includes a first display window and a second display window, and window display data of different devices are displayed in the first display window and the second display window, respectively, and the method includes:
detecting a first operation, and determining first device information of a first device corresponding to the first display window and second device information of a second device corresponding to the second display window, wherein the first operation comprises a scribing operation of moving the first display window to a display area of the second display window or starting from the first display window to the end of the second display window;
and controlling data communication between the first device and the second device based on the first device information and the second device information, so that window display data of the first device is displayed in the second device through the data communication.
In the embodiment of the application, the screen display area of the target device at least comprises a first display window and a second display window, and window display data of different devices are respectively displayed in the first display window and the second display window. If the first operation is detected, it can be confirmed that the user wants to display the window display data of the first device in the first display window in the second device corresponding to the second display window. Therefore, first device information corresponding to the first display window and second device information corresponding to the second display window are determined, and the first device and the second device are controlled to carry out data communication based on the first device information and the second device information, so that window display data of the first device can be displayed in the second device through the data communication. Therefore, under the condition that the first equipment and the second equipment are both connected to the target equipment, a user can control the first equipment to be in data communication with the second equipment through first operation on the target equipment, so that window display data of the first equipment are displayed in the second equipment, and convenience of operation is improved.
As an example of the present application, the detecting a first operation includes:
releasing the first display window after the first display window is moved into the display area of the second display window, wherein the overlapping area of the first display window and the second display window is larger than an area threshold value; alternatively, the first and second liquid crystal display panels may be,
and detecting the scribing operation taking the first display window as a scribing starting point, wherein the scribing end point is positioned in the display area of the second display window, and the linear distance between the scribing starting point and the scribing end point is in a preset distance range.
Therefore, the user is supported to operate the first display window through different operation modes, so that direct or indirect data communication connection is established between the first equipment and the second equipment according to the operation of the user, and the window display data of the first equipment is displayed on the second equipment. The user operation mode is increased.
As an example of the present application, the controlling data communication between the first device and the second device based on the first device information and the second device information includes:
sending a first indication message carrying the first equipment information to the second equipment based on the second equipment information, and sending a second indication message to the first equipment based on the first equipment information;
the first indication message is used for indicating the second equipment to establish communication connection with the first equipment based on the first equipment information, and the second indication message is used for indicating the first equipment to send the window display data of the first equipment to the second equipment for display after the first equipment establishes communication connection with the second equipment.
That is, the target device detects the first operation and respectively instructs the first device and the second device to control the first device and the second device to establish a communication connection therebetween, so as to enable data communication between the devices. Therefore, through operation on the target device, communication direct connection is established for the first device and the second device, and the problems that a user A of the first device and a user B of the second device are in a meeting scene, the user B wants to synchronously check the display interface of the mobile phone of the user A on the mobile phone of the user B in the display process of the interface of the mobile phone of the user A, the distance between the positions of the user A and the position of the user B is far (the establishment of data communication connection is not influenced), the face-to-face operation is inconvenient, and the mobile phone is connected can be solved.
As an example of the present application, the controlling data communication between the first device and the second device based on the first device information and the second device information includes:
sending a third indication message carrying the second device information to the first device based on the first device information;
the third indication message is used for indicating the first equipment to establish communication connection with the second equipment based on the second equipment information, and sending the window display data of the first equipment to the second equipment for display after the communication connection with the second equipment is established.
In this way, the target device detects the first operation, and controls the first device and the second device to establish a communication connection by sending the third indication message to the first device, so that data communication can be realized between the devices.
As an example of the present application, the controlling data communication between the first device and the second device based on the first device information and the second device information includes:
and forwarding the window display data of the first equipment to the second equipment in real time based on the first equipment information and the second equipment information.
The window display data of the first device or the second device is forwarded through the target device, direct data connection between the first device and the second device is not needed to be established, only the first device and the second device are connected with the target device respectively, and interaction between the first device and the second device is reduced.
As an example of the present application, before controlling data communication between the first device and the second device based on the first device information and the second device information, the method further includes:
displaying a query window including query information indicating whether to confirm whether to display window display data of the first device in the second device based on the query window;
the controlling data communication between the first device and the second device based on the first device information and the second device information includes:
and executing the operation of controlling data communication between the first device and the second device based on the first device information and the second device information based on the inquiry window receiving confirmation instruction.
Therefore, the inquiry window is displayed on the first equipment to request the user of the first equipment to confirm whether to agree to control the first equipment to carry out data communication with the second equipment, so that the window display data of the first equipment is ensured to be displayed in the second equipment under the condition that the user of the first equipment agrees, and the user experience is improved.
As an example of the present application, after controlling data communication between the first device and the second device based on the first device information and the second device information, the method further includes:
and under the condition that the first equipment is determined to successfully send the window display data of the first equipment to the second equipment for display, overlapping and displaying the first display window in the second display window.
Therefore, the target device displays the first display window in the second display window in an overlapping mode, so that other users can conveniently continue to check the display picture of the first device and/or the display picture of the second device in the target device, and in addition, other users can know which two devices are in data communication with each other according to the overlapping display effect, and the display picture of which device is displayed on the screen of which device.
As an example of the present application, the method further comprises:
detecting the first operation, and acquiring a snapshot of the first display window to obtain a first snapshot;
performing transparency processing on the first snapshot to obtain a second snapshot;
and displaying the second snapshot at an original position of the first display window, wherein the original position refers to a display position of the first display window before the first operation is not executed.
In this way, by displaying the second snapshot at the original position of the first display window, it is possible to facilitate the user to intuitively know which display window is operated.
As an example of the present application, after the displaying the first display window in the second display window in an overlapping manner, the method further includes:
and detecting a second operation, and controlling the first device and the second device to terminate data communication, wherein the second operation comprises a line drawing operation which is released after the first display window is moved out of the display area of the second display window or starts from the first display window to end a specified area, and the specified area does not comprise the area where the first display window is located and the area where the second display window is located.
In this way, in the process of data communication between the first device and the second device, when the user wants to disconnect the data communication between the first device and the second device, a second operation may be performed based on the screen display area of the target device to drag the first display window corresponding to the first device out of the second display window corresponding to the second device. Accordingly, the target device controls the first device to terminate data communication with the second device after detecting the second operation. That is, the user may operate directly on the target device to control the first device to terminate data communication with the second device.
As an example of the present application, the controlling the first device to terminate data communication with the second device includes:
and sending a termination indication message to the first device, wherein the termination indication message is used for indicating termination of sending the window display data of the first device to the second device.
That is, the target device may control termination of data communication between the first device and the second device by instructing the first device.
As an example of the present application, after the controlling the first device to terminate data communication with the second device, the method further includes:
and under the condition that the first equipment and the second equipment are determined to terminate data communication, restoring the first display window to the original position for displaying, wherein the original position refers to the display position of the first display window before the first operation is not executed.
That is, in the case where the first device and the second device terminate data communication, the first display window is restored to the original display, and the display state before the first device and the second device do not perform data communication can be maintained. Therefore, if a plurality of display windows exist in the screen display area, after the display is restored according to the display mode, the user can conveniently and quickly position the position of the first display window from the plurality of display windows.
In a second aspect, a method for data communication between devices is provided, which is applied to a first device, where window display data of the first device is displayed in a first display window of a screen display area of a target device, the screen display area of the target device further includes a second display window, and window display data of a second device is displayed in the second display window, the method includes:
responding to a target indication message, establishing a direct or indirect data communication connection with the second equipment, and displaying window display data of the first equipment in the second equipment through the data communication;
the target indication message comprises an indication message sent by the target device after detecting a first operation, and/or the target device indicates an indication message sent by the second device after detecting the first operation, wherein the first operation comprises a line drawing operation of moving the first display window to a display area of the second display window or starting from the first display window to the end of the second display window.
As an example of the present application, the target indication message includes a second indication message and a request indication message of the second device, where the request indication message is used to establish a communication connection, and the second indication message is used to instruct the first device to send the window display data of the first device to the second device for display after establishing a communication connection with the second device.
Specifically, after detecting a first operation, a target device sends a second indication message to a first device, and sends a first indication message carrying first device information to a second device, where the first indication message is used to indicate that the second device establishes a communication connection with the first device based on the first device information. And the second equipment requests to establish communication connection with the first equipment after receiving the first indication message, and correspondingly, the first equipment establishes communication connection with the second equipment according to the request indication message of the second equipment. And then, according to the second indication message, sending the window display data of the first equipment to the second equipment for display.
As another example of the present application, the target indication message includes a third indication message carrying second device information, where the third indication message is used to indicate that the first device establishes a communication connection with the second device based on the second device information, and send the window display data of the first device to the second device for display after establishing the communication connection with the second device.
As another example of the present application, the target indication message includes a fourth indication message, and the fourth indication message is sent by the second device after receiving the indication of the target device, and is used for requesting to establish a communication connection with the first device and to send the window display data of the first device to the second device. For example, the target device sends the first device information to the second device after detecting the first operation and instructs the second device. Correspondingly, the second device sends a fourth indication message to the first device.
In this embodiment of the present application, establishing an indirect data communication connection between a first device and a second device means forwarding window display data of the first device to the second device through a target device.
In this embodiment, if the target device detects the first operation, it may be determined that the user wants to display window display data of the first device in the first display window in the second device corresponding to the second display window. To this end, the target device instructs the first device to establish a direct or indirect data communication connection with the second device, so that the first device displays the window display data of the first device in the second device through data communication. Therefore, under the condition that the first equipment and the second equipment are both connected to the target equipment, a user can control the first equipment to be in data communication with the second equipment through first operation on the target equipment, so that window display data of the first equipment are displayed in the second equipment, and convenience of operation is improved.
In a third aspect, a data communication apparatus configured in a target device is provided, where a screen display area of the target device at least includes a first display window and a second display window, and window display data of different devices are respectively displayed in the first display window and the second display window, and the apparatus includes:
the detection module is used for detecting a first operation and determining first device information of first devices corresponding to the first display window and second device information of second devices corresponding to the second display window, wherein the first operation comprises a scribing operation which moves the first display window to a display area of the second display window or starts from the first display window to the end of the second display window;
and the control module is used for controlling the data communication between the first equipment and the second equipment based on the first equipment information and the second equipment information so as to display the window display data of the first equipment in the second equipment through the data communication.
As an example of the present application, the detection module is configured to:
releasing after detecting that the first display window is moved into the display area of the second display window, wherein the overlapping area of the first display window and the second display window is larger than an area threshold value; alternatively, the first and second liquid crystal display panels may be,
and detecting the scribing operation taking the first display window as a scribing starting point, wherein a scribing end point is positioned in the display area of the second display window, and the linear distance between the scribing starting point and the scribing end point is in a preset distance range.
As an example of the present application, the control module is to:
sending a first indication message carrying the first equipment information to the second equipment based on the second equipment information, and sending a second indication message to the first equipment based on the first equipment information;
the first indication message is used for indicating the second equipment to establish communication connection with the first equipment based on the first equipment information, and the second indication message is used for indicating the first equipment to send the window display data of the first equipment to the second equipment for display after the first equipment establishes communication connection with the second equipment.
As an example of the present application, the control module is to:
sending a third indication message carrying the second equipment information to the first equipment based on the first equipment information;
the third indication message is used for indicating the first equipment to establish communication connection with the second equipment based on the second equipment information, and sending the window display data of the first equipment to the second equipment for display after the communication connection with the second equipment is established.
As an example of the present application, the control module is configured to:
and forwarding the window display data of the first equipment to the second equipment in real time based on the first equipment information and the second equipment information.
As an example of the present application, the control module is further configured to:
displaying a query window including query information indicating whether to confirm whether to display window display data of the first device in the second device based on the query window;
and executing the operation of controlling data communication between the first device and the second device based on the first device information and the second device information based on the inquiry window receiving confirmation instruction.
As an example of the present application, the control module is further configured to:
and under the condition that the first equipment is determined to successfully send the window display data of the first equipment to the second equipment for display, overlapping and displaying the first display window in the second display window.
As an example of the present application, the detection module is further configured to:
detecting the first operation, and acquiring a snapshot of the first display window to obtain a first snapshot;
performing transparency processing on the first snapshot to obtain a second snapshot;
and displaying the second snapshot at an original position of the first display window, wherein the original position refers to a display position of the first display window before the first operation is not executed.
As an example of the present application, the detection module is further configured to:
and detecting a second operation, and controlling the first device and the second device to terminate data communication, wherein the second operation comprises a line drawing operation which releases the first display window after moving the first display window out of the display area of the second display window or starts from the first display window to a specified area, and the specified area does not comprise the area where the first display window is located and the area where the second display window is located.
As an example of the present application, the control module is to:
and sending a termination indication message to the first device, wherein the termination indication message is used for indicating termination of sending the window display data of the first device to the second device.
As an example of the present application, the control module is further configured to:
and under the condition that the first equipment and the second equipment are determined to terminate data communication, restoring the first display window to the original position for displaying, wherein the original position refers to the display position of the first display window before the first operation is not executed.
In a fourth aspect, a data communication apparatus configured in a first device is provided, where window display data of the first device is displayed in a first display window of a screen display area of a target device, the screen display area of the target device further includes a second display window, and window display data of a second device is displayed in the second display window, the apparatus includes:
the response module is used for responding to the target indication message, establishing direct or indirect data communication connection with the second equipment, and displaying the window display data of the first equipment in the second equipment through the data communication;
the target indication message comprises an indication message sent by the target device after detecting a first operation, and/or the target device indicates an indication message sent by the second device after detecting the first operation, wherein the first operation comprises a line drawing operation of moving the first display window to a display area of the second display window or starting from the first display window to the end of the second display window.
In a fifth aspect, an electronic device is provided that includes a touch screen, a memory, one or more processors, a plurality of applications, and one or more programs; wherein the one or more programs are stored in the memory; the one or more processors, when executing the one or more programs, cause the electronic device to implement the method of any of the first aspects above, or the method of the second aspect above.
A sixth aspect provides a computer-readable storage medium having stored therein instructions, which, when run on a computer, cause the computer to perform the method of any of the above first aspects or to carry out the method of the above second aspect.
In a seventh aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of any of the above first aspects, or to carry out the method of the above second aspect.
The technical effects obtained by the second, third, fourth, fifth, sixth and seventh aspects are similar to the technical effects obtained by the corresponding technical means in the first or second aspect, and are not described herein again.
Drawings
Fig. 1 is a system architecture diagram of an electronic device 100 according to an embodiment of the present application;
fig. 2 is a schematic diagram of a software architecture of an electronic device according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of a screen display area of a target device according to an embodiment of the present disclosure;
fig. 4 is an operation diagram of a screen display area based on a target device according to an embodiment of the present application;
fig. 5 is a schematic interface display diagram of a second device according to an embodiment of the present disclosure;
fig. 6 is a schematic diagram of a screen display area of a target device according to an embodiment of the present disclosure;
fig. 7 is a schematic diagram of a screen display area of another target device according to an embodiment of the present application;
FIG. 8 is a diagram illustrating a screen display area of another target device according to an embodiment of the present disclosure;
FIG. 9 is a diagram illustrating a screen display area of another target device according to an embodiment of the present disclosure;
FIG. 10 is a diagram illustrating a screen display area of another target device according to an embodiment of the present application;
fig. 11 is an operation diagram of a screen display area based on a target device according to an embodiment of the present application;
fig. 12 is an operation diagram of a screen display area based on a target device according to an embodiment of the present application;
fig. 13 is an operation diagram of a screen display area based on a target device according to an embodiment of the present application;
FIG. 14 is a diagram illustrating a screen display area of another target device according to an embodiment of the present application;
FIG. 15 is a diagram illustrating a screen display area of another target device according to an embodiment of the present application;
fig. 16 is a schematic diagram of an internal structure of another target device provided in an embodiment of the present application;
fig. 17 is a flowchart illustrating a method for data communication between devices according to an embodiment of the present application;
FIG. 18 is a diagram illustrating an operation of a screen display area of a target device according to an embodiment of the present application;
fig. 19 is a schematic flowchart of a method for data communication between devices according to an embodiment of the present application;
fig. 20 is a flowchart illustrating a method for data communication between devices according to an embodiment of the present application;
fig. 21 is a flowchart illustrating a method for data communication between devices according to an embodiment of the present application;
fig. 22 is a schematic flowchart of a method for data communication between devices according to an embodiment of the present application;
fig. 23 is a flowchart illustrating a method for data communication between devices according to an embodiment of the present application;
fig. 24 is a flowchart illustrating a method for data communication between devices according to an embodiment of the present application;
fig. 25 is a schematic structural diagram of an apparatus for data communication between devices according to an embodiment of the present disclosure;
fig. 26 is a schematic structural diagram of an apparatus for data communication between devices according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
It should be understood that reference to "a plurality" in this application means two or more. In the description of the present application, "/" indicates an OR meaning, for example, A/B may indicate A or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, for the convenience of clearly describing the technical solutions of the present application, the words "first", "second", and the like are used to distinguish the same items or similar items having substantially the same functions and actions. Those skilled in the art will appreciate that the terms "first," "second," etc. do not denote any order or quantity, nor do the terms "first," "second," etc. denote any order or importance.
Before describing the data communication method between devices provided in the embodiments of the present application in detail, an execution subject related to the embodiments of the present application is described first. The method provided by the embodiment of the application can be executed by the electronic equipment. As one example of the present application, the electronic device may include, but is not limited to, a terminal device, a television, and the like. Illustratively, the terminal device may include, but is not limited to, a mobile phone, a tablet computer, an Augmented Reality (AR)/Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA).
Referring to fig. 1, fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identification Module (SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It is to be understood that the illustrated structure of the embodiment of the present invention does not specifically limit the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
The controller may be, among other things, a neural center and a command center of the electronic device 100. The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
The I2C interface is a bi-directional synchronous serial bus that includes a serial data line (SDA) and a Serial Clock Line (SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces, respectively. For example: the processor 110 may be coupled to the touch sensor 180K via an I2C interface, such that the processor 110 and the touch sensor 180K communicate via an I2C bus interface to implement the touch functionality of the electronic device 100.
The I2S interface may be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled to the audio module 170 via an I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may communicate audio signals to the wireless communication module 160 via the I2S interface, enabling answering of calls via a bluetooth headset.
The PCM interface may also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled by a PCM bus interface. In some embodiments, the audio module 170 may also transmit the audio signal to the wireless communication module 160 through the PCM interface, so as to implement the function of answering a call through the bluetooth headset. Both the I2S interface and the PCM interface may be used for audio communication.
The UART interface is a universal serial data bus used for asynchronous communications. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 with the wireless communication module 160. For example: the processor 110 communicates with a bluetooth module in the wireless communication module 160 through a UART interface to implement a bluetooth function. In some embodiments, the audio module 170 may transmit the audio signal to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a bluetooth headset.
The MIPI interface may be used to connect the processor 110 with peripheral devices such as the display screen 194, the camera 193, and the like. The MIPI interface includes a Camera Serial Interface (CSI), a Display Serial Interface (DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the capture functionality of electronic device 100. The processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the electronic device 100.
The GPIO interface may be configured by software. The GPIO interface may be configured as a control signal and may also be configured as a data signal. In some embodiments, a GPIO interface may be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface may also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, and the like.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transmit data between the electronic device 100 and a peripheral device. And the earphone can also be used for connecting an earphone and playing audio through the earphone. The interface may also be used to connect other electronic devices, such as AR devices and the like.
It should be understood that the connection relationship between the modules according to the embodiment of the present invention is only illustrative, and is not limited to the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device 100 through the power management module 141 while charging the battery 142.
The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may also be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional modules, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication applied to the electronic device 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150 and antenna 2 is coupled to wireless communication module 160 so that electronic device 100 can communicate with networks and other devices through wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
The electronic device 100 implements display functions via the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, with N being a positive integer greater than 1.
The electronic device 100 may implement a shooting function through the ISP, the camera 193, the video codec, the GPU, the display 194, the application processor, and the like.
The ISP is used to process the data fed back by the camera 193. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to be converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments, the electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to perform fourier transform or the like on the frequency bin energy.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. Applications such as intelligent recognition of the electronic device 100 can be realized through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the storage capability of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (such as audio data, phone book, etc.) created during use of the electronic device 100, and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like.
The electronic device 100 may implement audio functions via the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also called a "horn", is used to convert the audio electrical signal into an acoustic signal. The electronic apparatus 100 can listen to music through the speaker 170A or listen to a handsfree call.
The receiver 170B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. When the electronic apparatus 100 receives a call or voice information, it can receive voice by placing the receiver 170B close to the ear of the person.
The microphone 170C, also referred to as a "microphone," is used to convert sound signals into electrical signals. When making a call or sending voice information, the user can input a voice signal into the microphone 170C by uttering a voice signal by the mouth of the user near the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C to achieve a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may further include three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, perform directional recording, and so on.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be the USB interface 130, or may be a 3.5mm open mobile platform (OMTP) standard interface, a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used for sensing a pressure signal, and converting the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A can be of a variety of types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic apparatus 100 may also calculate the touched position from the detection signal of the pressure sensor 180A. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions.
The gyro sensor 180B may be used to determine the motion attitude of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., the x, y, and z axes) may be determined by gyroscope sensor 180B. The gyro sensor 180B may be used for photographing anti-shake.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, electronic device 100 calculates altitude, aiding in positioning and navigation, from barometric pressure values measured by barometric pressure sensor 180C.
The magnetic sensor 180D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip holster using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity may be detected when the electronic device 100 is stationary. The method can also be used for recognizing the posture of the electronic equipment 100, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 180F for measuring a distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, taking a picture of a scene, electronic device 100 may utilize range sensor 180F to range for fast focus.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light to the outside through the light emitting diode. The electronic device 100 detects infrared reflected light from a nearby object using a photodiode. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100.
The ambient light sensor 180L is used to sense the ambient light level. Electronic device 100 may adaptively adjust the brightness of display screen 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 may utilize the collected fingerprint characteristics to unlock a fingerprint, access an application lock, photograph a fingerprint, answer an incoming call with a fingerprint, and so on.
The temperature sensor 180J is used to detect temperature. In some embodiments, electronic device 100 implements a temperature processing strategy using the temperature detected by temperature sensor 180J.
The touch sensor 180K is also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type.
The bone conduction sensor 180M can acquire a vibration signal. In some embodiments, the bone conduction sensor 180M may acquire a vibration signal of the human vocal part vibrating the bone mass. The bone conduction sensor 180M may also contact the human body pulse to receive the blood pressure pulsation signal.
The keys 190 include a power-on key, a volume key, and the like. The keys 190 may be mechanical keys. Or may be touch keys. The electronic apparatus 100 may receive a key input, and generate a key signal input related to user setting and function control of the electronic apparatus 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration cues, as well as for touch vibration feedback. For example, touch operations applied to different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also respond to different vibration feedback effects for touch operations applied to different areas of the display screen 194. Different application scenes (such as time reminding, receiving information, alarm clock, game and the like) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
Indicator 192 may be an indicator light that may be used to indicate a state of charge, a change in charge, or a message, missed call, notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card can be brought into and out of contact with the electronic apparatus 100 by being inserted into the SIM card interface 195 or being pulled out of the SIM card interface 195. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support a Nano SIM card, a Micro SIM card, a SIM card, etc. The same SIM card interface 195 can be inserted with multiple cards at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as communication and data communication. In some embodiments, the electronic device 100 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
The software system of the electrical device 100 may employ a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present invention uses an Android system with a layered architecture as an example to exemplarily illustrate a software structure of the electrical device 100.
Fig. 2 is a block diagram of a software structure of the electrical device 100 according to the embodiment of the present application.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom.
The application layer may include a series of application packages.
As shown in fig. 2, the application package may include applications such as camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, etc.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 2, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and answered, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The phone manager is used to provide communication functions for the electrical apparatus 100. Such as management of call status (including on, off, etc.).
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a brief dwell, and does not require user interaction. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. Such as prompting for text messages in the status bar, sounding a prompt tone, vibrating an electrical device, flashing an indicator light, etc.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), Media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display system and provide a fusion of 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, and the like.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
Next, an application scenario related to the embodiment of the present application will be described.
Suppose that the mobile phone a and the mobile phone B are respectively projected onto the tablet computer C, the tablet computer C respectively displays a first display window and a second display window at different positions in a screen display area, wherein a display picture of the mobile phone a is displayed in the first display window, and a display picture of the mobile phone B is displayed in the second display window. For example, referring to fig. 3, fig. 3 is a schematic diagram illustrating an application scenario according to an exemplary embodiment, in which a screen display area of a tablet C is shown as an area 30 in fig. 3, a first display window is shown as 31 in fig. 3, a current display screen of a mobile phone a is displayed in 31, a second display window is shown as 32 in fig. 3, and a current display screen of a mobile phone B is displayed in 32.
In one embodiment, in order to distinguish which display window is used for displaying the display screen of the mobile phone a and which display window is used for displaying the display screen of the mobile phone B, the tablet pc C can distinguish and display the first display window and the second display window in a plurality of ways. For example, the tablet C may mark information related to the mobile phone a in the first display window and mark information related to the mobile phone B in the second display window, and the related information may include, but is not limited to, at least one of a model number of the mobile phone, a brand of the mobile phone, and address information of the mobile phone. For another example, the tablet pc C may set the first display window and the second display window to different sizes, respectively. For another example, the tablet pc C may further set the first display window and the second display window to have different shapes, respectively.
As an example of the present application, when a user using mobile phone B wants to view the display screen of mobile phone a on mobile phone B, an operation can be performed on the screen display area of tablet pc C. In one embodiment, referring to fig. 4, fig. 4 is a schematic diagram illustrating an operation according to an exemplary embodiment, a finger selects a first display window on a screen display area, and then drags the first display window into a second display window. In one embodiment, after the finger selects the first display window on the screen display area, the tablet pc C may display operation guidance information in the screen display area, for example, as shown in fig. 4, an indicator symbol such as an arrow for guiding the user operation is displayed.
In one embodiment, in response to the dragging operation of the first display window, if the tablet computer C detects that the first display window is dragged into the second display window and then released, the mobile phone a and the mobile phone B are controlled to perform data communication, so that the mobile phone a sends window display data corresponding to the current display screen to the mobile phone B for display. Correspondingly, the mobile phone B receives the window display data sent by the mobile phone A and then displays the display picture of the mobile phone A. As an example, the mobile phone B may display a target display window within the screen display area of the mobile phone B, and then display a display screen of the mobile phone a within the target display window based on the received window display data. The size of the target display window can be set according to actual requirements. For example, referring to fig. 5, the display effect in the mobile phone B may be as shown in fig. 5 (a), replacing the original display screen of the mobile phone B with the window display data of the mobile phone a; alternatively, as shown in fig. 5 (B), the display window of the mobile phone a may be reduced and only a part of the display window of the mobile phone B may be displayed. As another example, the mobile phone B may also close the initial display interface of the mobile phone B, and then switch to display the display screen of the mobile phone a, which is not limited in this embodiment of the present application.
As an example of the application, after the tablet computer C controls the mobile phone a to perform data communication with the mobile phone B, if it is determined that the mobile phone a successfully sends the window display data to the mobile phone B for display, for example, if the tablet computer C receives a notification that the data communication of the mobile phone a and/or the mobile phone B is successful, the tablet computer C displays the first display window in the second display window in an overlapping manner. In implementation, since there is a certain difference in size and/or shape between the first display window and the second display window, the size and/or shape of the first display window may be adjusted before the first display window is displayed in an overlapping manner on the second display window, so that the first display window can be displayed in the second display window in an overlapping manner.
In one embodiment, the effect of the tablet computer C displaying the first display window in an overlapping manner on the second display window is shown in fig. 6. That is, the tablet pc C superimposes the first display window on the second display window, and continues to display the first display window at the home position of the first display window, the home position being the display position of the first display window before being dragged.
In another embodiment, the effect of the tablet computer C displaying the first display window to the second display window in an overlapping manner is shown in fig. 7. That is, after the tablet computer C displays the first display window in an overlapping manner on the second display window, the tablet computer C may not continue to display the first display window at the original position of the first display window.
As an example of the present application, during the dragging process of the first display window, the tablet pc C may set a display prompt of the first display window at the home position of the first display window, and exemplarily, referring to fig. 8, the tablet pc C may display a semi-transparent snapshot of the first display window at the home position of the first display window. If the first display window is released after being dragged to the second display window is detected, the tablet computer C displays the first display window in the second display window in an overlapping manner, and deletes the semi-transparent snapshot, so that the final display effect can be as shown in fig. 7. In one case, if it is detected that the dragging degree of the first display window is not enough, that is, the first display window is released without being completely dragged into the second display window, the tablet pc C resiles the first display window at the position of the semi-transparent snapshot and deletes the semi-transparent snapshot.
As an example of the present application, before controlling the data communication between the mobile phone a and the mobile phone B, the tablet pc C may further display a query window to request the user to confirm whether to approve the data communication between the mobile phone a and the mobile phone B through the query window. In one example, referring to fig. 9, fig. 9 is a schematic diagram illustrating a display of a query window, which pops up if the tablet pc C releases after detecting that the first display window is dragged to the second display window, the query window including query information, which is "whether to establish a communication connection? In addition, the inquiry window further comprises a confirmation option and a cancellation option, the confirmation option is used for triggering the tablet computer C to control the data communication between the mobile phone a and the mobile phone B, and the cancellation option is used for triggering the tablet computer C to cancel the data communication between the mobile phone a and the mobile phone B. As shown in fig. 9, the confirm option is "yes" touch control, and the cancel option is "no" touch control. When the user agrees to display the display picture of the mobile phone A in the mobile phone B, a yes touch control can be triggered, and in response to the triggering operation of the yes touch control by the user, the tablet computer C controls data communication between the mobile phone A and the mobile phone B so as to display the display picture of the mobile phone A in the mobile phone B through the data communication; on the contrary, when the user does not agree to display the display picture of the mobile phone a in the mobile phone B, the no touch control can be triggered, and in response to the triggering operation of the no touch control by the user, the tablet computer C cancels the control of the data communication between the mobile phone a and the mobile phone B, that is, the display picture of the mobile phone a is not displayed in the mobile phone B.
In another example, referring to FIG. 10, FIG. 10 is a schematic illustration of a display of a query window, according to another exemplary embodiment. The tablet computer C displays the first display window in the second display window in an overlapping manner, and displays the semi-transparent snapshot of the first display window in the original position of the first display window, and in addition, the tablet computer C pops up the inquiry window. If the user agrees to display the display interface of the mobile phone A in the mobile phone B, a yes touch control can be triggered, the tablet computer C controls data communication between the mobile phone A and the mobile phone B in response to the triggering operation of the user on the yes touch control, and the tablet computer keeps overlapping and displaying the first display window in the second display window. If the user does not agree to display the display interface of the mobile phone A in the mobile phone B, the 'no' touch control can be triggered, and the tablet computer C does not control the mobile phone A to carry out data communication with the mobile phone B in response to the triggering operation of the user on the 'no' touch control. And the tablet computer restores the first display window to the original position for displaying, and the display picture of the mobile phone B is continuously displayed in the second display window.
By way of example and not limitation, based on the technical solution provided in fig. 10, after the first display window is displayed in the second display window in an overlapping manner, before communication is not established, a screen shot of the display screen of the mobile phone a at the current time is displayed in the first display window, that is, even if the display screen of the mobile phone a is dynamic, before connection is not established, the content displayed in the first display window may be a screen shot of the time when the first display window is dragged to the second display window.
By way of example and not limitation, based on the technical solution provided in fig. 10, after the first display window is displayed in the second display window in an overlapping manner, before communication is not established, the current display screen of the mobile phone a may also be displayed in the first display window that is superimposed on the second display window.
As an example of the present application, assuming that a third display window is also displayed on the tablet pc C, and a display screen of the mobile phone D is displayed in the third display window, when it is detected that the user drags the first display window into the second display window, the second display window may be highlighted. Illustratively, referring to fig. 11, the second display window is displayed in an enlarged manner to be distinguished from the third display window 33, so that the user can know that the first display window is currently located in the second display window according to the display effect.
Based on the technical solutions provided in fig. 6 or fig. 7, a process of controlling the mobile phone a and the mobile phone B to disconnect the data communication connection by the tablet computer C will be described next.
After the mobile phone A sends the window display data to the mobile phone B for display, the tablet computer C displays the first display window in the second display window in an overlapping mode. Then, if the user wants to disconnect the data communication between the mobile phone a and the mobile phone B, the first display window may be dragged out of the second display window. Illustratively, referring to fig. 12, fig. 12 is a schematic diagram of a screen display area according to an exemplary embodiment, in which a user may select a first display window and then drag the first display window out of a second display window. For example, referring to fig. 13, when it is detected that the user selects the first display window, the tablet pc C may display operation guidance information, such as an arrow or other indicator, in the screen display area, so as to instruct the user how to operate through the operation guidance information.
The user drags the first display window according to the operation guide information, for example, the first display window may be dragged toward the original position or other positions of the first display window. And responding to the dragging operation of the user on the first display window, and controlling the mobile phone A and the mobile phone B to terminate data communication by the tablet computer C. In this case, the mobile phone a does not send the window display data to the mobile phone B any more, and accordingly, the mobile phone B does not display the display screen of the mobile phone a any more. As one example, the mobile phone B displays the main interface, and as another example, the mobile phone B continues to display the display screen before the window display data sent by the mobile phone a is not received.
As an example of the application, after it is detected that the user drags the first display window out of the second display window, before the mobile phone a and the mobile phone B are controlled to terminate the data communication, a disconnection prompting window may be further displayed, where the disconnection prompting window is used to prompt the user to confirm whether to approve disconnection of the data communication between the mobile phone a and the mobile phone B. As an example, the disconnection prompting window includes a disconnection prompting message, and in addition, the disconnection prompting window further includes a confirmation option and a cancellation option, the confirmation option is used for triggering the tablet computer C to control the mobile phone a and the mobile phone B to terminate data communication, and the cancellation option is used for triggering the tablet computer C to cancel the control of the mobile phone a and the mobile phone B to terminate data communication.
Exemplarily, referring to fig. 14, fig. 14 is a schematic diagram illustrating a disconnection prompting window according to an exemplary embodiment, where disconnection prompting information included in the disconnection prompting window is "whether to disconnect communication? ", the confirm option is" yes "touch control, and the cancel option is" no "touch control. And if the user confirms that the display picture of the mobile phone A is not displayed in the mobile phone B any more, triggering a yes touch control, and responding to the triggering operation of the user on the yes touch control, and controlling the mobile phone A to be disconnected from the mobile phone B by the tablet computer C. If the user wants to continue to display the display picture of the mobile phone A in the mobile phone B, the 'no' touch control can be triggered, and the tablet computer C does not disconnect the data communication between the mobile phone A and the mobile phone B in response to the triggering operation of the user on the 'no' touch control.
As an example of the present application, after the tablet pc C controls the mobile phone a and the mobile phone B to terminate data communication, the first display window may be restored to the original position or the position where the user drag operation is stopped for displaying, for example, please refer to fig. 15, where fig. 15 is a schematic diagram of a screen display area of a tablet pc according to an exemplary embodiment.
It should be noted that, in the above description, the data communication between the mobile phone a and the mobile phone B is terminated by dragging the first display window from the second display window on the tablet pc C by the user as an example, in another embodiment, the second display window may also be dragged by the user to separate the second display window from the first display window, so that the tablet pc C controls the mobile phone a and the mobile phone B to terminate the data communication.
In addition, the above description is given by taking an example of disconnecting the data communication between the mobile phone a and the mobile phone B by triggering on the tablet pc C. In another embodiment, a trigger may also be uploaded on either handset a or handset B to disconnect the data communication between the two. For example, taking the trigger on the mobile phone B as an example, the mobile phone B may be provided with a communication disconnection option, and when the user does not want to continue displaying the display screen of the mobile phone a on the mobile phone B, the communication disconnection option may be triggered. And in response to the triggering operation of the user on the communication disconnection option, the mobile phone B no longer displays the display screen of the mobile phone A.
It should be noted that the display windows of the mobile phone a and the mobile phone B may be other large-screen devices, such as a personal computer PC and a conference screen, besides a tablet computer.
Next, an internal structure of an electronic device according to an embodiment of the present application will be described. By way of example, and not limitation, referring to fig. 16, fig. 16 is a schematic diagram illustrating an internal structure of an electronic device in accordance with an exemplary embodiment. The electronic equipment comprises a communication module, a control module, a storage module and a User Interface (UI) module.
As an example, the control module is configured to parse the connection establishment request after receiving the connection establishment request sent by the other electronic device, and parse data for establishing the communication connection from the connection establishment request, where the data may be device information of the other electronic device, and the device information may include, but is not limited to, device address information, device name, device ID, and the like. And then transmitting the analyzed data to a communication module.
The communication module is used for controlling the electronic device to establish a communication connection with other electronic devices, for example, taking the application scenario as an example, assuming that the electronic device is a tablet computer C, the other electronic devices include a mobile phone a and a mobile phone B, and the communication module is used for controlling the tablet computer C to establish a communication connection with the mobile phone a and controlling the tablet computer C to establish a communication connection with the mobile phone B.
The cache module is used for storing window display data received by the electronic equipment from other electronic equipment.
And the control module is also used for acquiring the window display data from the cache module and then submitting the window display data to the UI module.
And the UI module is used for generating a display window and displaying the acquired window display data through the display window, such as displaying display pictures of other electronic equipment in a screen display area of the electronic equipment. In one embodiment, when the cache module stores the window display data of the plurality of other electronic devices, the UI module displays the window display data of each of the other electronic devices through different display windows after acquiring the window display data of the plurality of other electronic devices.
As an example of the application, the control module is further configured to determine, after detecting a trigger operation of a user on any one of the display windows displayed by the UI module, an end position of the trigger operation, so as to determine, according to the end position, which two devices need to be controlled to perform data communication between each other. As an example, after detecting that the first display window is moved to the second display window and released, the control module notifies the first device corresponding to the first display window and the second device corresponding to the second display window to establish a communication connection, and notifies the first device to send window display data to the second device through the communication connection, so as to display a display screen of the first device in the second device. As another example, after detecting that the first display window is moved to the second display window and released, the control module forwards the window display data of the first device to the second device, so that the display screen of the first device can be displayed in the second device.
As an example of the application, after controlling the first device and the second device to implement data communication, the control module may further notify the UI module to display the first display window in the second display window in an overlapping manner by the UI module, so that a user can know which devices establish data communication and current display states between other electronic devices according to a screen display effect of the electronic devices.
In one embodiment, when it is detected that the user moves the first display window out of the second display window, the UI module controls the first display window to be displayed at the original position or the position where the movement is stopped, and continues to display the initial display screen in the second display window. In addition, the UI module notifies the control module when detecting a trigger operation of moving the first display window out of the second display window by the user.
After receiving the notification of the UI module, the control module controls the two devices performing data communication to disconnect from each other, for example, notifies the first device and the second device to disconnect from each other, at this time, the first device and the second device disconnect from each other, so that the first device does not send window display data to the second device any more. Or the electronic equipment stops forwarding the window display data of the first equipment to the second equipment. It will be appreciated that the second device then no longer displays the window display data of the first device.
In one embodiment, if the electronic device controls the first device to perform data communication with the second device by forwarding the window display data of the first device, in a possible implementation manner, the triggering of the disconnection is triggered by other electronic devices, such as a user on the first device or the second device. In this case, the control module receives a disconnection request from another electronic device, and it is understood that the disconnection request may be transmitted by the first device or may be transmitted by the second device. And then the control module does not forward the window display data of the first device to the second device any more, so that the data communication between the first device and the second device is disconnected.
The following describes a method flow of data communication between devices according to an embodiment of the present application in detail with reference to the accompanying drawings.
Referring to fig. 17, fig. 17 is a flowchart illustrating a method for data communication between devices according to an exemplary embodiment, where the method may be applied to a target device, a screen display area of the target device at least includes a first display window and a second display window, and window display data of different devices are respectively displayed in the first display window and the second display window. The target device may be the electronic device described above. The method may include some or all of the following:
step 1701: and detecting a first operation, and determining first device information of first devices corresponding to the first display window and second device information of second devices corresponding to the second display window, wherein the first operation comprises a line drawing operation of moving the first display window into the second display window or starting from the first display window to the end of the second display window.
The first device information and the second device information are both device information that can be used for data communication. As one example, the first device information may include, but is not limited to, one or more of a device ID, a device name, and device address information of the first device. The second device information may include, but is not limited to, one or more of a device ID, a device name, and device address information of the second device. Illustratively, the device address information may be internet protocol address (IP), Media Access Control (MAC) address information.
The first display window and the second display window are operable windows, for example, the first display window and the second display window are floating windows.
As an example of the present application, in a case where a first device and a second device respectively establish communication connection with a target device, the first device casts a screen into the target device, and the second device casts the screen into the target device. In this manner, the target device displays the window display data of the first device through the first display window and the window display data of the second device through the second display window. That is, the user may view the window display data of the first device and view the window display data of the second device simultaneously on the target device.
In one embodiment, the first display position of the first display window (i.e., the home position of the first display window) and the second display position of the second display window may be preset, for example, the first display position is located in a first designated area of the screen display area, the second display position is located in a second designated area of the screen display area, the first designated area and the second designated area may be set according to actual requirements, and there is no overlapping area between the first designated area and the second designated area. In another embodiment, the first display position of the first display window and the second display position of the second display window may also be randomly set.
It should be noted that the screen projection mode described in this embodiment of the present application may be a push screen projection or a mirror screen projection. Taking the first device as an example, the pushing and screen-casting by the first device means that the first device pushes resources in a streaming media manner, and in this screen-casting manner, after the first device finishes screen-casting, the user can continue to perform other operations on the first device. The first device mirror image screen projection means that the first device starts a mirror image, then the first device continuously records a screen, and sends screen recording data to the target device while recording the screen.
In addition, it should be noted that, the above is described by taking screen projection as an example, in another embodiment, the first device and the second device may also respectively display the window display data in the screen display area of the target device through other manners, for example, taking the first device as an example, the first device may send some fields, parameters, or contents to the target device, so that the target device displays the window display data of the first device based on the fields, parameters, or contents, which is not limited in this embodiment of the present application.
As an example of the present application, detecting a specific implementation of the first operation includes: and releasing the first display window after detecting that the first display window is moved into the display area of the second display window, wherein the overlapping area of the first display window and the second display window is larger than the area threshold.
The area threshold value may be set according to actual requirements, which is not limited in the embodiment of the present application.
By way of example and not limitation, moving the first display window into the second display window may include dragging the first display window into the second display window. That is, in this process, the first display window moves with the movement of the finger. In the process of displaying the first display window and the second display window, the target device detects a dragging end point of the first display window if the first display window is detected to be dragged, and determines an overlapping area of the first display window and the second display window if the dragging end point is located in a display area of the second display window. If the overlapping area is larger than the area threshold, it is determined that the first display window is dragged into the second display window and then released.
Alternatively, the drag operation on the first display window may be triggered by a finger. That is, the user may click on the first display window in the display screen, as shown in fig. 4, and the target device may display a moving direction guide effect map, such as a schematic picture including arrows and fingers. And then, the finger of the user slides in the display screen, the display window moves along with the finger, and the finger is released after sliding into the second display window, so that the first display window is dragged into the second display window.
Optionally, the dragging operation on the first display window may also be triggered by a gesture. Illustratively, as shown in fig. 18, the user may park the hand in a position parallel to the first display window and stay for a preset time period. If the target device detects the gesture of the user through a sensing device such as a camera, the first display window selected by the user is determined. The target device may then prompt the user that the first display window has been selected, such as by highlighting the first display window. After the user obtains the prompt of the target device, the user can slide the hand selecting the first display window to the direction of the second display window, and when the hand is in a position parallel to the second display window, the hand stays for the preset time length again. Correspondingly, after the target device detects the gesture of the user through the sensing device, it is determined that the user drags the first display window into the second display window. The preset duration can be set according to actual requirements.
As another example of the present application, detecting a specific implementation of the first operation includes: and detecting the scribing operation taking the first display window as a scribing starting point, wherein the scribing end point is positioned in the display area of the second display window, and the linear distance between the scribing starting point and the scribing end point is in a preset distance range.
The preset distance range can be set according to actual requirements, and the embodiment of the application does not limit the preset distance range.
By way of example and not limitation, the scribing operation may be triggered by a finger. For example, the finger starts to slide from the first display window, and the falling point of the finger is located in the second display window, and the first display window is in a static state during the operation process. When the line is drawn, the display window does not move along with the finger. Alternatively, the scribed trajectory of the finger may be a straight line or a curved line. For example, as shown in fig. 4, the finger performs a scribing operation in the direction of the arrow from the first display window. For the target device, after the scribing operation of the finger is detected, if the drop point of the finger is detected to be located in the second display window and released, the straight-line distance between the scribing start point and the scribing end point is determined, and if the distance is within the preset distance range, the scribing operation from the first display window to the second display window is determined to be detected.
By way of example and not limitation, the stroking operation may also be triggered by a gesture. The target device may detect a gesture of the user through the sensing device, for example, when it is detected that the user parks the hand at a position parallel to the first display window and stays at the position for a preset time period, a starting point of the line drawing may be determined, and the starting point of the line drawing may be a position in a first area of the display screen parallel to a plane where the current parking position of the hand is located. The target device may prompt the user that the starting point for the scribe line has been determined by highlighting the first display window, or the like. After the user obtains the prompt of the target device, the user can slide the hand selecting the first display window to the direction of the second display window, and when the hand is in a position parallel to the second display window, the hand stays for the preset time length again. Correspondingly, after the target device detects the gesture of the user through the sensing device, the end point of the line drawing is determined, and the end point of the line drawing can be a certain position in a second area parallel to the plane where the current hand parking position is located in the display screen. And then determining the distance between the scribing starting point and the scribing end point, and determining that the scribing operation from the first display window to the second display window is detected when the distance is within the preset distance range.
It should be noted that, the specific implementation of detecting the first operation is only an example, and in another embodiment, the specific implementation of detecting the first operation may further include: and detecting the scribing operation taking the first display window as a scribing starting point, wherein the scribing end point is positioned in the display area of the second display window.
And if the target device detects the first operation, determining first device information of first devices corresponding to the first display window, and determining second device information of second devices corresponding to the second display window. In this way, on the one hand, it is facilitated to determine which device the window display data of is to be displayed on which device and on the other hand to subsequently control the data communication between the first device and the second device.
Optionally, the target device detects the first operation, and obtains a snapshot of the first display window to obtain the first snapshot. And carrying out transparent processing on the first snapshot to obtain a second snapshot. The second snapshot is displayed at an original position of the first display window, the original position being a display position of the first display window before the first operation is not performed.
As an example, when performing the transparency processing on the first snapshot, the transparency processing may be performed according to a transparency threshold, and the transparency threshold may be set according to actual requirements. Such as translucency of the first snapshot, etc.
That is, when the target device detects the first operation, before the first operation is not ended, a snapshot of the first display window may be displayed in an original position of the first display window to identify an original display position of the first display window.
Optionally, in a case that the target device displays the second snapshot at the home position of the first display window, if the target device detects that the first display window is released after being dragged into the second display window, the first display window is redisplayed at the home position in a rebounding manner, and the target device deletes the second snapshot.
Optionally, the screen display area of the target device may further include a third display window in addition to the first display window and the second display window, where the third display window is used to display window display data of a third device. In one embodiment, the second display window may be closer to the third display window. After the target device detects the first operation, when the first display window is located in the second display window or when the end position of the scribing operation is detected to be located in the second display window, in order to distinguish the first display window from the third display window, the target device may further highlight the second display window, for example, enlarge the second display window, so as to indicate that the first display window is currently moved to the second display window or the end position of the scribing operation is located in the second display window, thereby facilitating a user to determine whether to release the first display window.
Of course, the above description is given by taking an example that the screen display area of the target device further includes a third display window, and in another embodiment, the screen display area of the target device may further include more display windows, which is not limited in this application.
By way of example and not limitation, the shape, size and other attributes of the first display window are not changed in the process of being moved.
Take the example that the first operation is a move operation. As an example of the present application, the first device displays a display screen of the first device in the target device, that is, the content displayed in the first display window is the same as the content currently displayed by the first device. In this case, the display of the first device may be dynamically changing, such as the PPT being played. As an example, while the first display window is being moved, the target device may continue to update the display screen in the first display window in real time according to the window display data sent by the first device, that is, the display screen in the first display window changes with the change of the display screen in the first device. As another example, when a moving operation on the first display window is detected, the target device may further obtain a screen capture of the display screen of the first device, and then, while the first display window is being moved, the screen capture is displayed in the first display window, that is, the display screen in the first display window may also be a screen capture at the time of being moved, rather than being updated in real time.
Step 1702: and controlling data communication between the first device and the second device based on the first device information and the second device information so as to display window display data of the first device on the second device through the data communication.
In one embodiment, a direct or indirect communication connection may be established between the first device and the second device based on the first device information and the second device information, so as to perform data communication through the communication connection, thereby controlling the first device to send the window display data of the first device to the second device for display, and further causing the window display data of the first device to be displayed on the second device.
In another embodiment, the target device may also forward the window display data of the first device to the second device in real time based on the first device information and the second device information, so that the window display data of the first device is displayed in the second device. That is, the target device may act as an intermediate forwarding device between the first device and the second device, thereby controlling the first device to perform data communication with the second device.
As an example of the present application, before controlling data communication between the first device and the second device based on the first device information and the second device information, the target device may further display a query window including query information for indicating whether to confirm whether to display window display data of the first device in the second device based on the query window. In this case, an operation of controlling data communication between the first device and the second device based on the first device information and the second device information is performed based on the inquiry window receiving confirmation instruction.
That is, if the target device detects the first operation, which indicates that the user may wish to display the window display data of the first device in the second device, the target device may display a query window and display query information in the query window, for example, please refer to fig. 9, which may be "whether a communication connection is established? ". When receiving the confirmation instruction, the user confirms to establish communication, and at the moment, the target device controls the first device to carry out data communication with the second device based on the first device information and the second device information. Of course, if the target device receives the cancel instruction based on the inquiry window, the execution of the operation of controlling the data communication between the first device and the second device based on the first device information and the second device information is cancelled. Therefore, the inquiry window requests the user to confirm whether the user agrees to control the first device to perform data communication with the second device or not, so that the window display data of the first device is displayed in the second device under the condition that the user agrees, and the user experience is improved.
The above description is made by taking an example in which a query window is displayed in a target device. As another example of the present application, the target device may further transmit query information to the first device before controlling data communication between the first device and the second device based on the first device information and the second device information. After receiving the query message, the first device may display a query window, which includes the query message. That is, the first device may display a query window so that the user of the first device can confirm whether or not the window display data of the first device is displayed in the second device. When the first device receives the confirmation instruction based on the inquiry window, a confirmation control instruction is sent to the target device. And after receiving the confirmation control instruction, the target device executes the operation of controlling the data communication between the first device and the second device based on the first device information and the second device information. Of course, if the first device receives the cancel instruction based on the inquiry window, a cancel control instruction is sent to the target device, so that the target device cancels the execution of the operation of controlling the data communication between the first device and the second device based on the first device information and the second device information.
Therefore, the inquiry window is displayed on the first equipment to request the user of the first equipment to confirm whether to agree to control the first equipment to carry out data communication with the second equipment, so that the window display data of the first equipment is ensured to be displayed in the second equipment under the condition that the user of the first equipment agrees, and the user experience is improved.
As yet another example of the present application, the target device may further transmit query information to the second device before controlling data communication between the first device and the second device based on the first device information and the second device information. After receiving the query message, the second device may display a query window, which includes the query message. That is, the query window may be displayed by the second device so as to confirm whether or not the window display data of the first device is displayed in the second device by the user of the second device. When the second device receives the confirmation instruction based on the inquiry window, a confirmation control instruction is sent to the target device. And after receiving the confirmation control instruction, the target device executes the operation of controlling the data communication between the first device and the second device based on the first device information and the second device information. Of course, if the second device receives the cancel instruction based on the inquiry window, a cancel control instruction is sent to the target device, so that the target device cancels the execution of the operation of controlling the data communication between the first device and the second device based on the first device information and the second device information.
Therefore, the inquiry window is displayed on the second equipment to request the user of the second equipment to confirm whether to agree to control the first equipment to carry out data communication with the second equipment, so that the window display data of the first equipment is ensured to be displayed in the second equipment under the condition that the user of the second equipment agrees, and the user experience is improved.
In the embodiment of the application, the screen display area of the target device at least comprises a first display window and a second display window, and window display data of different devices are respectively displayed in the first display window and the second display window. If the first operation is detected, it can be confirmed that the user wants to display the window display data of the first device in the first display window in the second device corresponding to the second display window. Therefore, first device information corresponding to the first display window and second device information corresponding to the second display window are determined, and the first device and the second device are controlled to carry out data communication based on the first device information and the second device information, so that window display data of the first device can be displayed in the second device through the data communication. Therefore, under the condition that the first equipment and the second equipment are both connected to the target equipment, a user can control the first equipment to be in data communication with the second equipment through first operation on the target equipment, so that window display data of the first equipment are displayed in the second equipment, and convenience of operation is improved.
In addition, the user can enable the first equipment and the second equipment to carry out data communication in a dragging mode, and can also enable the first equipment and the second equipment to carry out data communication in a line drawing operation mode, so that the user operation mode is increased, and the user experience effect is improved.
Next, taking the interaction among the first device, the second device, and the target device as an example, a flow of the method for data communication among devices provided in the embodiment of the present application is described. Referring to fig. 19, fig. 19 is a flow chart illustrating a method of data communication between devices according to an example embodiment. The method may include the following:
step 1901: the first device projects a display picture of the first device to the target device.
The first device casts a display screen of the first device to the target device based on the communication connection established with the target device, that is, before the display screen of the first device is cast to the target device, the communication connection is established between the first device and the target device. For example, referring to 2001 of fig. 20, the first device may send the first device information to the target device to request a communication connection to be established with the target device. Correspondingly, after the target device determines to establish communication connection with the first device, the device information of the target device is sent to the first device, so that communication connection with the first device is established.
In implementation, the first device casts a screen to the target device, and the window display data of the first device is sent to the target device, as shown in fig. 20. And after receiving the window display data of the first equipment, the target equipment displays the window display data of the first equipment through the first display window.
Step 1902: and the second equipment projects the display picture of the second equipment to the target equipment.
Similarly, the second device casts the display screen of the second device to the target device based on the communication connection established with the target device, that is, before the display screen of the second device is cast to the target device, the communication connection is established between the second device and the target device. For example, as indicated by 2002 in fig. 20, the second device sends second device information to the target device to request a communication connection to be established with the target device. Correspondingly, after the target device determines to establish communication connection with the second device, the device information of the target device is sent to the second device, so that communication connection is established with the second device.
In implementation, the second device casts a screen to the target device and sends the window display data of the second device to the target device, as shown at 2003 in fig. 20. And after receiving the window display data of the second equipment, the target equipment displays the window display data of the second equipment through the second display window.
It should be noted that, the above is described by taking a screen projection as an example, in another embodiment, the first device and the second device may also respectively display their window display data on the target device by other manners. That is, in the embodiment of the present application, the screen display area of the target device at least includes a first display window and a second display window, and window display data of different devices are respectively displayed in the first display window and the second display window.
It should be noted that, here, it is described by taking an example that the first device and the second device respectively establish communication connection with the target device, in an embodiment, there may be more devices that establish communication connection with the target device, as shown in fig. 20, there are n devices that establish communication connection with the target device, in this case, n display windows may be displayed in a screen display area of the target device, where n is an integer greater than or equal to 3.
It should be noted that, there is no sequential execution order between step 1901 and step 1902, and step 1901 may be executed before step 1902, or may be executed after step 1902, or may be executed in parallel with step 1902.
Based on the scenarios provided in step 1901 and step 1902, the data communication flow between the devices is described next.
Step 1903: and the target device detects the first operation and determines first device information of the first device corresponding to the first display window and second device information of the second device corresponding to the second display window.
The specific implementation of this step can be referred to as step 1701 in the embodiment shown in fig. 17, and will not be described in detail here.
Step 1904: and the target equipment sends a first indication message carrying the first equipment information to the second equipment based on the second equipment information, and sends a second indication message to the first equipment based on the first equipment information.
The first indication message is used for indicating the second equipment to establish communication connection with the first equipment based on the first equipment information, and the second indication message is used for indicating the first equipment to send window display data of the first equipment to the second equipment for display after the first equipment establishes communication connection with the second equipment.
In implementation, the target device generates a first indication message, where the first indication message carries first device information. Then, the target device determines a communication channel between the target device and the second device according to the second device information, and then sends the generated first indication message to the second device through the communication channel between the target device and the second device, that is, as shown in 2004 in fig. 20, the target device requests the second device to establish a communication connection with the first device. In addition, the target device generates a second indication message, determines a communication channel between the target device and the first device according to the first device information, and then sends the second indication message to the first device through the communication channel between the target device and the first device.
It should be noted that, there is no strict sequence between the target device sending the first indication message to the second device and sending the second indication message to the first device. In one embodiment, the target device may first send a first indication message to the second device and then send a second indication message to the first device. In another embodiment, the target device may also send the second indication message to the first device first, and then send the first indication message to the second device. In another embodiment, the target device may also send the first indication message to the second device and the second indication message to the first device at the same time. In another embodiment, the target device may further send the first indication message to the second device first, and send the second indication message to the first device in case of receiving the notification of successful establishment of communication. The communication establishment success notification is used to indicate that the first device and the second device have successfully established a communication connection, and the communication establishment success notification may be sent by the first device or the second device.
It should be noted that step 1904 is an exemplary implementation of controlling data communication between the first device and the second device based on the first device information and the second device information.
Step 1905: the second device requests establishment of a communication connection with the first device based on the first device information.
After receiving the first indication message sent by the target device, the second device parses the first indication message to obtain the first device information from the first indication message, and in addition, determines a purpose of the first indication message, for example, the purpose of the first indication message is to request to establish a direct communication connection with the first device based on the first device information. And then, the second equipment executes corresponding operation according to the first indication message.
Exemplarily, the first device information includes first MAC address information, the second device information includes second MAC address information, and the second device sends a connection establishment request to the first device based on the first MAC address information, where the connection establishment request may carry the second MAC address information.
Step 1906: the first device establishes a communication connection with the second device.
In one embodiment, after receiving the connection establishment request sent by the second device, the first device parses the connection establishment request, parses the second device information from the connection establishment request, and then establishes a communication connection with the second device based on the second device information, as shown in 2005 in fig. 20.
As an example of the application, the first device and the second device may establish a communication connection through bluetooth, wireless fidelity (WiFi), WLAN, a wireless network, and the like, which is not limited in this embodiment of the application.
In the above description, an example is described in which a communication connection is not established in advance between the first device and the second device. In another embodiment, when a communication connection is established between the first device and the second device, the following operations from step 1907 to step 1908 may be directly performed.
Step 1907: the first device sends the window display data of the first device to the second device.
As described above, since the target device sends the second indication message to the first device, where the second indication message is used to indicate that the first device sends the window display data of the first device to the second device after establishing a communication connection with the second device, the first device sends the window display data of the first device to the second device after successfully establishing a communication connection with the second device.
Step 1908: the second device displays a display screen of the first device based on the window display data of the first device.
Thus, the display screen of the first device can be displayed in the second device.
As an example of the present application, the second device may display the display screen of the first device through a target display window, for example, the target display window is a floating window. That is, at this time, the second device continues to display the display screen of the second device, and the display screen of the first device is displayed on the display screen of the second device through the target display window, so that the user can continue to view the display screen of the second device in the second device, and can also view the display screen of the first device in the second device. For example, assuming that the second device is playing the multimedia resource before displaying the display of the first device, the second device may display the display of the first device on the played multimedia resource through the target display window when displaying the display of the first device, so that the user may not only continue to view the played multimedia resource on the second device, but also view the display of the first device on the second device.
As another example of the present application, the second device may switch the display screen of the second device to the display screen of the first device. That is, the second device may no longer display the display screen of the second device, but display the display screen of the first device, and at this time, the user can only see the display screen of the first device in the second device. For example, if the second device is playing the multimedia resource before displaying the display screen of the first device, the second device may close the currently displayed multimedia resource and switch to display the display screen of the first device when displaying the display screen of the first device. Therefore, the display picture of the first device can be clearly displayed in the second device, and the user can conveniently view the display picture.
In one embodiment, a user may operate a display screen of a first device in a second device. In response to a trigger operation of a user on a display screen of the first device in the second device, the second device generates a screen operation instruction based on the trigger operation. The second equipment sends a picture operation instruction to the first equipment, and the first equipment responds to the picture operation instruction and executes corresponding operation. Illustratively, assuming that a video is being played in a display screen of a first device, when a user wants to pause the playing, a pause option may be triggered in the display screen of the first device in a second device, the second device sends a pause playing instruction to the first device in response to a user triggering operation on the pause option, and the first device pauses the playing of the video after receiving the pause playing instruction. Of course, the playing of the video is also paused in synchronization in the second device. Optionally, when the first display window is displayed in the target device, the target device also pauses the playing of the video in the first display window.
In the embodiment of the application, the target device detects the first operation, and obtains first device information corresponding to the first display window and second device information corresponding to the second display window. A first indication message is generated based on the first device information. And sending a first indication message to the second equipment based on the second equipment information, sending a second indication message to the first equipment based on the first equipment information, so that the second equipment establishes communication connection with the first equipment based on the first indication message, and sending window display data of the first equipment to the second equipment for display after the first equipment successfully establishes communication connection with the second equipment. In this way, the target device detects the first operation, and controls the first device and the second device to establish communication connection by respectively sending the second indication message to the first device and sending the first indication message to the second device, so that data communication can be performed between the devices.
According to the embodiment, the communication direct connection is established for the first equipment and the second equipment by operating on the target equipment, so that the problems that a user A of the first equipment and a user B of the second equipment are in a meeting scene, the user B wants to synchronously check the display interface of the mobile phone of the user A on the mobile phone of the user B in the display process of the interface of the mobile phone of the user A, the positions of the user A and the user B are far away (the data communication connection is not influenced), the operation is inconvenient to face, and the mobile phone is connected can be solved.
Referring to fig. 21, fig. 21 is a flowchart illustrating a method of data communication between devices according to another exemplary embodiment. Here, a description will be given of an example in which a plurality of devices interact with each other. The method may include the following:
please refer to steps 1901 to 1903 in the embodiment of fig. 19 from step 2101 to step 2103.
Step 2104: and the target equipment sends a third indication message carrying the second equipment information to the first equipment based on the first equipment information.
The third indication message is used for indicating the first equipment to establish communication connection with the second equipment based on the second equipment information, and sending the window display data of the first equipment to the second equipment for display after the communication connection with the second equipment is established.
The target device generates a third indication message based on the second device information and determines a communication channel between the target device and the first device based on the first device information. And then sending the third indication message to the first device through a communication channel between the target device and the first device.
It should be noted that step 2104 is another exemplary implementation manner of controlling data communication between the first device and the second device based on the first device information and the second device information.
Step 2105: the first device requests establishment of a communication connection with the second device based on the second device information.
And in addition, analyzing the purpose of the third indication message, such as the purpose of the third indication message, on one hand, indicating that the first equipment establishes communication connection with the second equipment, and on the other hand, indicating that the first equipment sends the window display data of the first equipment to the second equipment for display after the first equipment successfully establishes communication connection with the second equipment. Therefore, the first device first requests to establish a communication connection with the second device after parsing the third indication message. Illustratively, the first device may send a request to establish a connection to the second device based on the second device information. The connection establishing request carries first equipment information of the first equipment.
Step 2106: the second device establishes a communication connection with the first device.
After receiving the connection establishment request sent by the first equipment, the second equipment analyzes the connection establishment request, and analyzes the first equipment information from the connection establishment request. And then, the second equipment establishes communication connection with the first equipment based on the first equipment information.
Step 2107: the first device sends the window display data of the first device to the second device.
The specific implementation of which can be seen in step 1907 in the embodiment shown in fig. 19.
Step 2108: the second device displays the window display data of the first device.
The specific implementation of which can be seen in step 1908 in the embodiment shown in fig. 19.
In the embodiment of the application, the target device detects the first operation, and obtains first device information corresponding to the first display window and second device information corresponding to the second display window. Generating a third indication message based on the second device information. And sending a third indication message to the first equipment based on the first equipment information, so that the first equipment establishes communication connection with the second equipment based on the third indication message, and sending the window display data of the first equipment to the second equipment for display after the communication connection is successfully established with the second equipment. In this way, the target device detects the first operation, and controls the first device and the second device to establish a communication connection by sending the third indication message to the first device, so that data communication can be realized between the devices.
Referring to fig. 22, fig. 22 is a flow chart illustrating a method of data communication between devices according to another exemplary embodiment. Here, a description will be given of an example in which a plurality of devices interact with each other. The method may include the following:
please refer to steps 1901 to 1903 in the embodiment of fig. 19 from step 2201 to step 2203.
Step 2204: and the target equipment forwards the window display data of the first equipment to the second equipment in real time based on the first equipment information and the second equipment information.
In implementation, the target device obtains the window display data from the first device from the communication channel between the first device and the target device based on the first device information, determines the communication channel between the target device and the second device based on the second device information, and sends the obtained window display data of the first device to the second device through the communication channel between the target device and the second device.
That is, in the embodiment of the present application, the target device serves as an intermediate forwarding device between the first device and the second device, or it may be understood that the target device is a proxy of the first device, and is configured to forward the window display data of the first device to the second device in real time.
It should be noted that step 2204 is another exemplary implementation manner for controlling data communication between the first device and the second device based on the first device information and the second device information.
Step 2205: the second device displays the window display data of the first device.
The specific implementation of this step can be seen in step 1908 in the embodiment of fig. 19, which is not described in detail here.
In the embodiment of the application, the target device detects the first operation, and obtains first device information corresponding to the first display window and second device information corresponding to the second display window. And forwarding the window display data of the first equipment to the second equipment in real time based on the first equipment information and the second equipment information. In this manner, the target device performs data forwarding by detecting the first operation, so that data communication can be performed quickly between the devices. The window display data of the first device or the second device is forwarded through the target device, direct data connection between the first device and the second device does not need to be established, only the first device and the second device are connected with the target device respectively, but after the target device is disconnected from one of the first device and the second device, the window display data of the first device cannot be displayed on the second device.
It should be noted that the implementation manner described above for controlling data communication between the first device and the second device based on the first device information and the second device information is only exemplary. In another embodiment, this may be accomplished in other ways as well. For example, but not limited to, the following ways:
in one example, the target device may further send the first device information to the second device based on the second device information to instruct the second device to establish a communication connection with the first device based on the first device information, and instruct the second device to request the first device to send the window display data of the first device after successfully establishing the communication connection with the first device.
In one example, the target device may also send second device information to the first device based on the first device information, and send the first device information to the second device based on the second device information, such that a communication connection is established between the first device and the second device. In addition, the first device is instructed to send the window display data of the first device to the second device for display after the first device is successfully established with the second device, or the second device is instructed to request the first device to send the window display data of the first device for display after the second device is successfully established with the first device.
By way of example and not limitation, referring next to fig. 23, fig. 23 is a schematic flowchart of another method for data communication between devices according to an embodiment of the present application, where the method is described by taking an example of an interactive implementation of multiple devices, and the method includes:
steps 2301 to 2302 may refer to any one of the embodiments shown in fig. 17 to 22, and will not be repeated here.
Step 2303: and under the condition that the first equipment is determined to successfully transmit the window display data of the first equipment to the second equipment for display, overlapping and displaying the first display window in the second display window.
In one embodiment, after receiving the data communication success notification sent by the first device and/or the second device, the target device determines that the first device successfully sends the window display data of the first device to the second device for display. For example, the first device may send a data communication success notification to the target device after sending the window display data of the first device to the second device, and the second device may send a data communication success notification to the target device after receiving the window display data of the first device. As an example, after receiving a data communication success notification sent by any one of the first device and the second device, the target device determines that the first device successfully sends the window display data of the first device to the second device for display. As another example, after receiving the data communication success notification sent by the first device and receiving the data communication success notification sent by the second device, the target device determines that the first device successfully sends the window display data of the first device to the second device for display.
In one embodiment, in the case that it is determined that the first device successfully transmits the window display data of the first device to the second device for display, the target device may adjust the size and/or shape of the first display window, such as performing a reduction process on the first display window, and adjust the shape of the first display window to be the same as the shape of the second display window, so as to display the first display window in the second display window in an overlapping manner.
Therefore, the target device displays the first display window in the second display window in an overlapping mode, so that other users can conveniently continue to check the display picture of the first device and/or the display picture of the second device in the target device, and in addition, other users can know which two devices are in data communication with each other according to the overlapping display effect, and the display picture of which device is displayed on the screen of which device.
In one embodiment, in a case where it is determined that the first device has succeeded in transmitting the window display data of the first device to the second device for display, the first display window continues to be displayed at the original position of the first display window in addition to the first display window being displayed superimposed in the second display window, as shown in fig. 6. In this way, since the first display window may be subjected to the reduction processing when the first display window is displayed in the second display window in an overlapping manner, the content in the first display window may be reduced. The first display window is continuously displayed at the original position of the first display window, so that the user can continuously see a clear display screen of the first device.
In another embodiment, after determining that the first device successfully transmits the window display data of the first device to the second device for display, and after displaying the first display window in the second display window in an overlapping manner, the target device may delete the first display window at the original position of the first display window, that is, the first display window is not separately displayed in the screen display area of the target device, as shown in fig. 7, so that the display space of the screen display area may be saved.
As an example of the present application, the target device may further perform the following operation steps based on a superimposed display scheme of the display windows.
Step 2304: and the target equipment detects a second operation and controls the first equipment and the second equipment to terminate data communication, the second operation comprises a line drawing operation which releases the first display window after moving out of the second display window or starts from the first display window to a specified area, and the specified area does not comprise the area where the first display window is located and the area where the second display window is located.
As an example, the target device detecting the second operation means: and the target equipment detects that the first display window is dragged out of the second display window by the user and then releases the first display window. Specifically, the target device detects that the first display window is released after the user performs a drag operation on the first display window, and if an overlapping area between the first display window and the second display window is smaller than an area threshold, for example, the overlapping area between the first display window and the second display window is 0, it may be determined that the first display window is released after being dragged out of the second display window.
It should be noted that the dragging operation described herein may be triggered by a finger or a gesture, and the specific implementation may be as described above, and is not described repeatedly here.
As another example, the target device detecting the second operation refers to: and the target equipment detects that the user starts from the area where the first display window is located, and executes the scribing operation, wherein the scribing end point is located in the designated area. For example, the target device may determine that the second operation is detected when the target device detects that the user draws a line from the first display window in a direction of the home position of the first display window, the end point of the line is located in the original display area of the first display window or in an area other than the second display window, and the straight-line distance between the start point of the line and the end point of the line is greater than the distance threshold.
It should be noted that the scribing operation described herein may be triggered by a finger or a gesture, which may be specifically referred to above, and the description is not repeated here.
As an example of the present application, a specific implementation of controlling a first device to terminate data communication with a second device may include: and sending a termination indication message to the first device, wherein the termination indication message is used for indicating termination of sending the window display data of the first device to the second device.
In one embodiment, the target device may simply instruct the first device to terminate sending the window display data of the first device to the second device without disconnecting the communication connection with the second device. In another embodiment, the target device may further instruct the first device to terminate transmission of the window display data of the first device to the second device and disconnect the communication connection with the second device.
It should be noted that the above implementation manner of controlling the first device to terminate data communication with the second device is only exemplary. In another embodiment, the target device may further instruct the second device to disconnect the communication connection with the first device such that the first device terminates the data communication with the second device.
In another embodiment, if the target device is an intermediate forwarding device between the first device and the second device, the specific implementation of controlling the first device and the second device to terminate data communication is that the target device stops forwarding the window display data of the first device to the second device in real time, that is, the target device does not forward the window display data of the first device to the second device any more.
As an example of the present application, the target device may further perform the following operation after controlling the termination of the data communication between the first device and the second device.
Step 2305: and the target device restores the first display window to the original position for displaying under the condition that the first device and the second device are determined to terminate the data communication.
As an example of the present application, the target device receives a data communication end notification sent by the first device and/or the second device, and determines that the first device and the second device have terminated data communication. For example, the first device may send the data communication end notification to the target device after stopping sending the window display data of the first device to the second device, and the second device may send the data communication end notification to the target device after no longer displaying the window display data of the first device. As an example, after receiving a data communication end notification sent by any one of the first device and the second device, the target device determines that the first device and the second device have terminated data communication. As another example, the target device determines that the first device and the second device have terminated the data communication after receiving the data communication end notification transmitted by the first device and receiving the data communication end notification transmitted by the second device.
When the target device determines that the first device and the second device have terminated data communication, the target device no longer superimposes the first display window on the second display window, but restores the first display window to the original position for display, that is, the display interface of the target device is restored to the display state before data communication is not performed between the first device and the second device, for example, to the display effect shown in fig. 15.
It should be noted that, when it is determined that the first device successfully sends the window display data of the first device to the second device for display, the first display window is displayed in the second display window in an overlapping manner, so that other users can continue to view the display screen of the first device at the target device, and in addition, other users can know that the display screen of the first device is displayed in the second device, that is, other users can know the connection condition between the first device and the second device.
The above description is given by taking an example in which the target device restores the first display window to the original position to display when it is determined that the first device and the second device have terminated the data communication. In another embodiment, in the case where it is determined that the first device and the second device have terminated the data communication, the first display window may also be displayed at a position where the drag is stopped or a position where the scribe line ends.
For ease of understanding, as an example, the interaction flow between the target device, the first device, and the second device is briefly described next based on fig. 24.
2401: and the target equipment is released after detecting that the first display window is dragged to the second display window.
2402: the target device displays a query window.
2403: the target device requests, via the inquiry window, whether to grant the first device a data communication connection with the second device.
If the confirmation instruction is received based on the inquiry window, which indicates that the user agrees to establish the data communication connection between the first device and the second device, the process proceeds to step 2404 as follows. Otherwise, if the cancellation instruction is received based on the inquiry window, it indicates that the user does not agree with the first device and the second device to establish the data communication connection, and the data communication is cancelled at this moment.
2404: the target device controls the first device to perform data communication with the second device.
In one embodiment, the target device controls the first device to establish a communication connection with the second device to facilitate data communication over the communication connection.
2405: the first device establishes a communication connection with the second device.
2406: the first equipment sends the window display data of the first equipment to the second equipment for display.
2407: the first device and/or the second device feeds back to the target device.
The purpose of this feedback is to inform the target device that data communication has been achieved. For example, the first device or the second device sends a data communication success notification to the target device.
2408: the target device displays the first display window in the second display window.
In the implementation process, if the target device receives the cancel instruction based on the inquiry window, it indicates that the user does not agree to display the screen display data of the first device on the second device, and the target device cancels the data communication. In implementation, the target device restores the first display window to the original position for display, and the target device does not control the first device to perform data communication with the second device.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Corresponding to the data communication method between devices described in the above embodiments, fig. 25 is a block diagram of a data communication apparatus between devices provided in the embodiments of the present application, which is configured in the target device described above, and only the portions related to the embodiments of the present application are shown for convenience of description.
Referring to fig. 25, the apparatus includes:
a detecting module 2510, configured to detect a first operation, and determine first device information of a first device corresponding to the first display window and second device information of a second device corresponding to the second display window, where the first operation includes moving the first display window to a display area of the second display window or a line drawing operation starting from the first display window and ending at the second display window;
a control module 2520, configured to control data communication between the first device and the second device based on the first device information and the second device information, so that window display data of the first device is displayed in the second device through the data communication.
As an example of this application, the detection module 2510 is configured to:
releasing the first display window after the first display window is moved into the display area of the second display window, wherein the overlapping area of the first display window and the second display window is larger than an area threshold value; alternatively, the first and second electrodes may be,
and detecting the scribing operation taking the first display window as a scribing starting point, wherein the scribing end point is positioned in the display area of the second display window, and the linear distance between the scribing starting point and the scribing end point is in a preset distance range.
As an example of the present application, the control module 2520 is configured to:
sending a first indication message carrying the first equipment information to the second equipment based on the second equipment information, and sending a second indication message to the first equipment based on the first equipment information;
the first indication message is used for indicating the second equipment to establish communication connection with the first equipment based on the first equipment information, and the second indication message is used for indicating the first equipment to send the window display data of the first equipment to the second equipment for display after the first equipment establishes communication connection with the second equipment.
As an example of the present application, the control module 2520 is configured to:
sending a third indication message carrying the second device information to the first device based on the first device information;
the third indication message is used for indicating the first equipment to establish communication connection with the second equipment based on the second equipment information, and sending the window display data of the first equipment to the second equipment for display after the communication connection with the second equipment is established.
As an example of the present application, the control module 2520 is configured to:
and forwarding the window display data of the first equipment to the second equipment in real time based on the first equipment information and the second equipment information.
As an example of the present application, the control module 2520 is further configured to:
displaying a query window including query information indicating whether to confirm whether to display window display data of the first device in the second device based on the query window;
and executing the operation of controlling data communication between the first device and the second device based on the first device information and the second device information based on the inquiry window receiving confirmation instruction.
As an example of the present application, the control module 2520 is further configured to:
and under the condition that the first equipment is determined to successfully send the window display data of the first equipment to the second equipment for display, the first display window is displayed in the second display window in an overlapping mode.
As an example of this application, the detection module 2510 is further configured to:
detecting the first operation, and acquiring a snapshot of the first display window to obtain a first snapshot;
performing transparency processing on the first snapshot to obtain a second snapshot;
and displaying the second snapshot at an original position of the first display window, wherein the original position refers to a display position of the first display window before the first operation is not executed.
As an example of this application, the detection module 2510 is further configured to:
and detecting a second operation, and controlling the first device and the second device to terminate data communication, wherein the second operation comprises a line drawing operation which releases the first display window after moving the first display window out of the display area of the second display window or starts from the first display window to a specified area, and the specified area does not comprise the area where the first display window is located and the area where the second display window is located.
As an example of the present application, the control module 2520 is configured to:
and sending a termination indication message to the first device, wherein the termination indication message is used for indicating termination of sending the window display data of the first device to the second device.
As an example of the present application, the control module 2520 is further configured to:
and under the condition that the first equipment and the second equipment are determined to terminate data communication, restoring the first display window to the original position for displaying, wherein the original position refers to the display position of the first display window before the first operation is not executed.
In this embodiment, if the first operation is detected, it may be determined that the user wants to display the window display data of the first device in the first display window in the second device corresponding to the second display window. Therefore, first device information corresponding to the first display window and second device information corresponding to the second display window are determined, and the first device and the second device are controlled to carry out data communication based on the first device information and the second device information, so that window display data of the first device can be displayed in the second device through the data communication. Therefore, under the condition that the first equipment and the second equipment are both connected to the target equipment, a user can control the first equipment and the second equipment to carry out data communication through first operation on the target equipment, so that window display data of the first equipment are displayed in the second equipment, and convenience of operation is improved.
Fig. 26 is a block diagram of a data communication apparatus between devices according to an embodiment of the present application, and is configured in the first device, and only a part related to the embodiment of the present application is shown for convenience of description.
Referring to fig. 26, the apparatus includes:
a response module 2610, configured to establish a direct or indirect data communication connection with the second device in response to the target indication message, and display window display data of the first device in the second device through the data communication;
the target indication message comprises an indication message sent by the target device after detecting a first operation, and/or the indication message sent by the target device after detecting the first operation indicates the second device to send, wherein the first operation comprises a drawing operation of moving the first display window to a display area of the second display window or starting from the first display window to the end of the second display window.
In this embodiment of the application, if the target device detects the first operation, it may be determined that the user wants to display the window display data of the first device in the first display window in the second device corresponding to the second display window. To this end, the target device instructs the first device to establish a direct or indirect data communication connection with the second device, so that the first device displays the window display data of the first device in the second device through data communication. Therefore, under the condition that the first equipment and the second equipment are both connected to the target equipment, a user can control the first equipment to be in data communication with the second equipment through first operation on the target equipment, so that window display data of the first equipment are displayed in the second equipment, and convenience of operation is improved.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art would appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or means capable of carrying computer program code to an electronic device, such as a computer, a recording medium, computer memory, read-only memory (ROM), Random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In some jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and proprietary practices.
Finally, it should be noted that: the above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (14)

1. A data communication method between devices is applied to a target device, a screen display area of the target device at least comprises a first display window and a second display window, window display data of a first device is displayed in the first display window, and window display data of a second device is displayed in the second display window, and the method comprises the following steps:
detecting a first operation, and determining first device information of the first device corresponding to the first display window and second device information of the second device corresponding to the second display window, wherein the first operation comprises a scribing operation which moves the first display window to a display area of the second display window or starts from the first display window to the second display window;
and controlling data communication between the first device and the second device based on the first device information and the second device information, so that window display data of the first device is displayed in the second device through the data communication.
2. The method of claim 1, wherein detecting the first operation comprises:
releasing the first display window after the first display window is moved into the display area of the second display window, wherein the overlapping area of the first display window and the second display window is larger than an area threshold value; alternatively, the first and second electrodes may be,
and detecting the scribing operation taking the first display window as a scribing starting point, wherein the scribing end point is positioned in the display area of the second display window, and the linear distance between the scribing starting point and the scribing end point is in a preset distance range.
3. The method of claim 1, wherein the controlling data communication between the first device and the second device based on the first device information and the second device information comprises:
sending a first indication message carrying the first equipment information to the second equipment based on the second equipment information, and sending a second indication message to the first equipment based on the first equipment information;
the first indication message is used for indicating the second equipment to establish communication connection with the first equipment based on the first equipment information, and the second indication message is used for indicating the first equipment to send the window display data of the first equipment to the second equipment for display after the first equipment establishes communication connection with the second equipment.
4. The method of claim 1, wherein the controlling data communication between the first device and the second device based on the first device information and the second device information comprises:
sending a third indication message carrying the second device information to the first device based on the first device information;
the third indication message is used for indicating the first equipment to establish communication connection with the second equipment based on the second equipment information, and sending the window display data of the first equipment to the second equipment for display after the communication connection with the second equipment is established.
5. The method of claim 1, wherein the controlling data communication between the first device and the second device based on the first device information and the second device information comprises:
and forwarding the window display data of the first equipment to the second equipment in real time based on the first equipment information and the second equipment information.
6. The method according to any of claims 1-5, wherein prior to controlling data communication between the first device and the second device based on the first device information and the second device information, further comprising:
displaying a query window including query information indicating whether to confirm whether to display window display data of the first device in the second device based on the query window;
the controlling data communication between the first device and the second device based on the first device information and the second device information includes:
and executing the operation of controlling data communication between the first device and the second device based on the first device information and the second device information based on the inquiry window receiving confirmation instruction.
7. The method according to any one of claims 1-5, wherein after controlling data communication between the first device and the second device based on the first device information and the second device information, further comprising:
and under the condition that the first equipment is determined to successfully send the window display data of the first equipment to the second equipment for display, overlapping and displaying the first display window in the second display window.
8. The method of claim 7, further comprising:
detecting the first operation, and acquiring a snapshot of the first display window to obtain a first snapshot;
performing transparency processing on the first snapshot to obtain a second snapshot;
displaying the second snapshot at a home position of the first display window, the home position being a display position of the first display window before the first operation is not performed.
9. The method of claim 7, wherein after displaying the first display window in the second display window in an overlaid manner, further comprising:
and detecting a second operation, and controlling the first device and the second device to terminate data communication, wherein the second operation comprises a line drawing operation which releases the first display window after moving the first display window out of the display area of the second display window or starts from the first display window to a specified area, and the specified area does not comprise the area where the first display window is located and the area where the second display window is located.
10. The method of claim 9, wherein the controlling the first device to terminate data communication with the second device comprises:
and sending a termination indication message to the first device, wherein the termination indication message is used for indicating termination of sending the window display data of the first device to the second device.
11. The method of claim 9, wherein after the controlling the first device to terminate data communication with the second device, further comprising:
and under the condition that the first equipment and the second equipment are determined to terminate data communication, restoring the first display window to the original position for displaying, wherein the original position refers to the display position of the first display window before the first operation is not executed.
12. A data communication method between devices is applied to a first device, window display data of the first device is displayed in a first display window of a screen display area of a target device, a second display window is further included in the screen display area of the target device, and window display data of the second device is displayed in the second display window, and the method comprises the following steps:
responding to a target indication message, establishing a direct or indirect data communication connection with the second equipment, and displaying window display data of the first equipment in the second equipment through the data communication;
the target indication message comprises an indication message sent by the target device after detecting a first operation, and/or the target device indicates an indication message sent by the second device after detecting the first operation, wherein the first operation comprises a line drawing operation of moving the first display window to a display area of the second display window or starting from the first display window to the end of the second display window.
13. An electronic device comprising a touch screen, a memory, one or more processors, a plurality of applications, and one or more programs; wherein the one or more programs are stored in the memory; one or more processors, when executing the one or more programs, cause the electronic device to implement the method of any of claims 1-11 or the method of claim 12.
14. A computer-readable storage medium having instructions stored thereon, which, when run on a computer, cause the computer to perform the method of any one of claims 1-11 or perform the method of claim 12.
CN202110966346.7A 2021-08-20 2021-08-20 Method for data communication between devices, device and readable storage medium Active CN113805825B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN202110966346.7A CN113805825B (en) 2021-08-20 2021-08-20 Method for data communication between devices, device and readable storage medium
CN202211127899.4A CN115708059A (en) 2021-08-20 2021-08-20 Data communication method between devices, electronic device and readable storage medium
PCT/CN2022/090301 WO2023020012A1 (en) 2021-08-20 2022-04-29 Data communication method between devices, device, storage medium, and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110966346.7A CN113805825B (en) 2021-08-20 2021-08-20 Method for data communication between devices, device and readable storage medium

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202211127899.4A Division CN115708059A (en) 2021-08-20 2021-08-20 Data communication method between devices, electronic device and readable storage medium

Publications (2)

Publication Number Publication Date
CN113805825A CN113805825A (en) 2021-12-17
CN113805825B true CN113805825B (en) 2022-09-23

Family

ID=78893855

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202110966346.7A Active CN113805825B (en) 2021-08-20 2021-08-20 Method for data communication between devices, device and readable storage medium
CN202211127899.4A Pending CN115708059A (en) 2021-08-20 2021-08-20 Data communication method between devices, electronic device and readable storage medium

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202211127899.4A Pending CN115708059A (en) 2021-08-20 2021-08-20 Data communication method between devices, electronic device and readable storage medium

Country Status (2)

Country Link
CN (2) CN113805825B (en)
WO (1) WO2023020012A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113805825B (en) * 2021-08-20 2022-09-23 荣耀终端有限公司 Method for data communication between devices, device and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104331230A (en) * 2014-11-24 2015-02-04 联想(北京)有限公司 Information processing method and electronic equipment
CN105530153A (en) * 2015-12-11 2016-04-27 上海新时达电气股份有限公司 Slave device communication method in network, communication network, master device and slave device
CN110134321A (en) * 2013-10-23 2019-08-16 三星电子株式会社 Method and apparatus for sending data, and the method and apparatus for receiving data

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3628729B2 (en) * 1993-09-28 2005-03-16 エヌシーアール インターナショナル インコーポレイテッド Display method of video image on computer display and display method of multiple windows
CN102595239B (en) * 2012-02-24 2015-02-04 深圳创维-Rgb电子有限公司 Multi-screen interactive method, device and intelligent television for terminal system
CN108174268A (en) * 2017-12-27 2018-06-15 深圳Tcl数字技术有限公司 Data copying method, equipment, system and readable storage medium storing program for executing based on TV
CN111813363B (en) * 2020-07-15 2023-08-18 锐捷网络股份有限公司 Information sharing method, device, medium and equipment
CN113805825B (en) * 2021-08-20 2022-09-23 荣耀终端有限公司 Method for data communication between devices, device and readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110134321A (en) * 2013-10-23 2019-08-16 三星电子株式会社 Method and apparatus for sending data, and the method and apparatus for receiving data
CN104331230A (en) * 2014-11-24 2015-02-04 联想(北京)有限公司 Information processing method and electronic equipment
CN105530153A (en) * 2015-12-11 2016-04-27 上海新时达电气股份有限公司 Slave device communication method in network, communication network, master device and slave device

Also Published As

Publication number Publication date
CN113805825A (en) 2021-12-17
CN115708059A (en) 2023-02-21
WO2023020012A1 (en) 2023-02-23

Similar Documents

Publication Publication Date Title
WO2020253719A1 (en) Screen recording method and electronic device
US11669242B2 (en) Screenshot method and electronic device
CN113885759B (en) Notification message processing method, device, system and computer readable storage medium
CN113645351B (en) Application interface interaction method, electronic device and computer-readable storage medium
CN112399390B (en) Bluetooth connection method and related device
CN112231025A (en) UI component display method and electronic equipment
CN115017920A (en) Translation method and electronic equipment
CN112119641B (en) Method and device for realizing automatic translation through multiple TWS (time and frequency) earphones connected in forwarding mode
JP7173670B2 (en) VOICE CONTROL COMMAND GENERATION METHOD AND TERMINAL
US20230189366A1 (en) Bluetooth Communication Method, Terminal Device, and Computer-Readable Storage Medium
CN114125130B (en) Method for controlling communication service state, terminal device and readable storage medium
CN112383664B (en) Device control method, first terminal device, second terminal device and computer readable storage medium
CN114185503B (en) Multi-screen interaction system, method, device and medium
CN112068907A (en) Interface display method and electronic equipment
CN113746961A (en) Display control method, electronic device, and computer-readable storage medium
CN113141483B (en) Screen sharing method based on video call and mobile device
CN114115770A (en) Display control method and related device
CN115016697A (en) Screen projection method, computer device, readable storage medium, and program product
CN113805825B (en) Method for data communication between devices, device and readable storage medium
CN113438366B (en) Information notification interaction method, electronic device and storage medium
CN112532508B (en) Video communication method and video communication device
CN115268737A (en) Information processing method and device
CN113676902A (en) System and method for providing wireless internet access and electronic equipment
WO2024067037A1 (en) Service calling method and system, and electronic device
WO2024012346A1 (en) Task migration method, electronic device, and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant