CN113115287A - Data transmission method and device - Google Patents
Data transmission method and device Download PDFInfo
- Publication number
- CN113115287A CN113115287A CN202110339149.2A CN202110339149A CN113115287A CN 113115287 A CN113115287 A CN 113115287A CN 202110339149 A CN202110339149 A CN 202110339149A CN 113115287 A CN113115287 A CN 113115287A
- Authority
- CN
- China
- Prior art keywords
- input
- target
- electronic device
- display
- data
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/017—Gesture based interaction, e.g. based on a set of recognized hand gestures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04812—Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04883—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application discloses a data transmission method and device, and belongs to the technical field of communication. The method comprises the following steps: receiving a to-be-transmitted instruction sent by second electronic equipment, wherein the to-be-transmitted instruction is an instruction sent by the second electronic equipment in response to a first input received by the second electronic equipment, and the first input is used for displaying an object aiming at a target displayed by the second electronic equipment; receiving a second input; in response to the second input, receiving target data transmitted by the second electronic equipment under the condition that the second input is determined to be associated with the first input, wherein the target data is data of a target display object; and displaying the target display object. According to the data transmission method, the first electronic device can conveniently and quickly display the new display object, and time is saved.
Description
Technical Field
The present application belongs to the field of communication technologies, and in particular, to a data transmission method and apparatus.
Background
With the development of communication technology, electronic devices such as mobile phones, tablet computers, and intelligent wearable devices (such as watches and glasses) are becoming more and more popular and becoming indispensable tools in people's daily life. At present, electronic equipment generally needs a user to input complicated operations to display an uninstalled or stored display object (such as a file or an application), search for a needed display object in a network database, and download the searched display object to the electronic equipment for installation or storage and display under an instruction.
For example, when the electronic device needs to display (an icon of) an application program, the user needs to search the application program in the application library first, instruct to download the installation package data of the application program searched in the application library, and install and display the application program after the electronic device downloads the installation package data.
Therefore, the problem of complex operation exists when the electronic equipment realizes the display of the display object which is not installed or stored.
Disclosure of Invention
The embodiment of the application aims to provide a data transmission method and a data transmission device, so as to solve the problem that the operation is complicated when the conventional electronic equipment realizes the display of an unmounted or stored display object.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a data transmission method, which is applied to a first electronic device, and includes:
receiving a to-be-transmitted instruction sent by second electronic equipment, wherein the to-be-transmitted instruction is an instruction sent by the second electronic equipment in response to a first input received by the second electronic equipment, and the first input is used for displaying a target object displayed by the second electronic equipment;
receiving a second input;
receiving target data transmitted by the second electronic equipment in response to the second input under the condition that the second input is determined to be associated with the first input, wherein the target data is data of the target display object;
and displaying the target display object.
In a second aspect, an embodiment of the present application provides a data transmission apparatus, which is applied to a first electronic device, and includes:
the instruction receiving module is used for receiving an instruction to be transmitted, which is sent by second electronic equipment, wherein the instruction to be transmitted is an instruction sent by the second electronic equipment in response to a first input received by the second electronic equipment, and the first input is used for displaying an object aiming at a target displayed by the second electronic equipment;
an input module for receiving a second input;
a target data receiving module, configured to receive, in response to the second input, target data transmitted by the second electronic device if it is determined that the second input is associated with the first input, where the target data is data of the target display object;
and the display module is used for displaying the target display object.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In this embodiment of the application, when a to-be-transmitted instruction sent by second electronic equipment after receiving a first input is received, if a second input associated with the first input is received, the first electronic equipment may receive target data transmitted by the second electronic equipment, where the target data is data of a target display object displayed by the second electronic equipment to which the first input is directed, and the first electronic equipment displays the target display object based on the target data. Therefore, according to the data transmission method, the display object in the second electronic equipment can be displayed in the first electronic equipment by inputting the associated second input and first input in the first electronic equipment and the second electronic equipment respectively, so that the first electronic equipment can conveniently and quickly display a new display object.
Drawings
Fig. 1 is a schematic flowchart of a data transmission method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a watch Bluetooth connection provided in an embodiment of the present application;
fig. 3 is an operation diagram for a watch provided in an embodiment of the present application;
FIG. 4 is a schematic diagram of a watch data transmission provided by an embodiment of the present application;
fig. 5 is a schematic structural diagram of a data transmission apparatus according to an embodiment of the present application;
fig. 6 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present disclosure;
fig. 7 is a second schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The data transmission method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, a schematic flow chart of a data transmission method provided in an embodiment of the present application is applied to a first electronic device, and as shown in fig. 1, the data transmission method includes the following steps:
102, receiving a second input;
103, responding to a second input, and receiving target data transmitted by a second electronic device under the condition that the second input is determined to be associated with the first input, wherein the target data is data of a target display object;
and 104, displaying the target display object.
Based on this, when receiving a command to be transmitted sent by the second electronic device after receiving the first input, if receiving a second input associated with the first input, the first electronic device may receive target data transmitted by the second electronic device, where the target data is data of a target display object displayed by the second electronic device to which the first input is directed, and the first electronic device displays the target display object based on the target data. Therefore, according to the data transmission method, the display object in the second electronic equipment can be displayed in the first electronic equipment by inputting the associated second input and first input in the first electronic equipment and the second electronic equipment respectively, so that the first electronic equipment can conveniently and quickly display a new display object.
In step 101, when the second electronic device receives a first input of the target display object displayed by the second electronic device, the second electronic device may send a transmission waiting instruction to the first electronic device in response to the first input, and the first electronic device may receive the transmission waiting instruction sent by the second electronic device.
In this application embodiment, the first electronic device and the second electronic device have data mutual transmission capability, and the implementation manner includes that the first electronic device and the second electronic device are in the same local area network, connected via bluetooth, or move data, and the first electronic device and the second electronic device may be any one of a smart phone, a smart watch, a tablet computer, a smart wearable device, and the like.
For example, as shown in fig. 2, a smart watch a (i.e., a first electronic device) and a smart watch B (i.e., a second electronic device) may be in communication connection via bluetooth, that is, in a case where the watch a searches for the watch B, the watch a initiates a bluetooth connection request to the watch B, the watch B verifies the received bluetooth connection request initiated by the watch a, and when the verification passes, the watch B agrees to the bluetooth connection of the watch a, so that the bluetooth connection between the watch a and the watch B is successful.
The data inter-transmission capability can be opened by default between the first electronic device and the second electronic device under the condition that the first electronic device and the second electronic device are in communication connection.
Alternatively, before the step 101, the method may further include: under the condition of a third input received by a second electronic device, if the third input is received, a data mutual transmission mode is started in response to the third input, wherein in the data mutual transmission mode, the first electronic device and the second electronic device have the capability of mutual data transmission.
For example, in the case that the bluetooth connection between the watch a and the watch B shown in fig. 2 is successful, if the watch a and the watch B respectively receive the third input, both the watch a and the watch B enter the data mutual transmission mode, so that the data mutual transmission capability is enabled between the watch a and the watch B.
It should be noted that, the first electronic device and the second electronic device may receive the third input non-sequentially, and the third input may be any input for instructing the first electronic device and the second electronic device to enter a data interchange mode, and may be at least one of a voice input, an air gesture input, a touch input, and the like, for example, the third input may be a pressing input performed on a physical key 31 of the watch shown in fig. 3 for a time period exceeding 10s, and the like.
In this embodiment of the application, the instruction to be transmitted is an instruction sent by the second electronic device in response to the first input when receiving the first input for the displayed target display object, and the instruction to be transmitted is used to indicate that the second electronic device has entered a state of waiting for sending data of the target display object.
The first input may be any input for instructing transmission of data to a display object displayed on the second electronic device, and may be at least one of a voice input, a gesture input, a touch input, and the like.
For example, the first input may be a voice input whose voice content is "to send application a"; or, the number of clicks completed on the application icon of the application a may be N times, where N is a positive integer; or, the user may input that the degree of pressing or the time on the application icon of the application a exceeds a preset threshold, and the like.
In addition, the target display object may be a display object displayed by the second electronic device, and the display object may be at least one of a file (such as a picture, audio, video, and document), a desktop background, and an application icon of an application program.
Specifically, the first input may also be an input for a display interface of the second electronic device, and in this case, the target display object may include all display objects in the display interface of the second electronic device.
For example, in a case where the watch B shown in fig. 2 receives an input (i.e., a first input) of a long press exceeding 5s input by the user on the dial thereof, if a desktop background (a dial theme may also be used) and at least one application icon are displayed in the display interface of the dial of the watch B, the watch B determines the desktop background and the at least one application icon displayed in the display interface of the dial as the target display object.
It should be noted that the target display object is at least one display object for which the first input is directed, and the at least one display object may be an object selected by one or more operations. Specifically, the first input is a sliding input, and the target object includes at least one display object within a closed sliding trajectory of the second input.
For example, in the case where the watch B shown in fig. 2 displays application icons of a plurality of applications, the first input may be a circle drawn on the dial of the watch B (i.e., a slide input), and the application icon of at least one application that is within the circle may be determined as the target display object.
In step 102, if the first electronic device receives the instruction to be transmitted sent by the second electronic device, and the user needs to display the target display object to which the first input is directed on the first electronic device, the user may input the second input on the first electronic device, and the first electronic device receives the second input.
The second input may be any input received when the first electronic device receives the instruction to be transmitted, and the second input may be at least one of a voice input, an air gesture input, a touch input, and the like. For example, the user may complete an input on the second electronic device M clicks, M being a positive integer, and so on.
The second input and the first input may be the same input or different inputs, and are not limited herein.
In the step 103, in the case that the first electronic device receives the second input, the first electronic device may determine whether the second input is associated with the first input in response to the second input, and receive the target data transmitted by the second electronic device in the case that the second input is determined to be associated with the first input.
The determining, by the first electronic device, whether the second input is associated with the first input may be that the first electronic device acquires input information of the first input based on the instruction to be transmitted, and determines whether the second input is associated with the first input according to the input information of the second input and the acquired input information of the first input.
It should be noted that, the first electronic device obtains the input information of the first input based on the instruction to be transmitted, where the instruction to be transmitted carries the input information of the first input.
In this embodiment of the application, the determining whether the second input is associated with the first input according to the input information of the second input and the acquired input information of the first input may be that the first electronic device compares the input information of the second input with the input information of the first input, and determines that the second input is associated with the first input when determining that an association relationship is preset between the two, and otherwise, does not associate.
For example, assuming that the first electronic device has preset a relationship between a voice content "a" and a voice content "B", if the second input is a voice input with a voice content "a" and the first input is a voice input with a voice content "B", the first electronic device determines that the second input is associated with the first input.
Or, the determining, according to the input information of the second input and the acquired input information of the first input, whether the second input is associated with the first input may be performed, or the matching may be performed on the input information of the second input and the input information of the first input, the similarity between the two is calculated, and the second input and the first input are determined to be associated when the similarity is greater than or equal to a preset similarity threshold, and otherwise, the second input and the first input are not associated.
For example, in the case where the second input and the first input are both voice inputs, the first electronic device may acquire the voice feature of the second input (i.e., the input information of the second input) and the voice feature of the first input (i.e., the input information of the first input), and determine that the second input is associated with the first input when the similarity between the voice feature of the second input and the voice feature of the first input is greater than or equal to 80% (i.e., a preset similarity threshold).
The preset similarity threshold may be set by a user according to actual needs, and is not limited herein.
In addition, since the second input and the first input may both be sliding inputs, the first electronic device may also determine whether the second input is associated with the first input according to the similarity between the sliding track of the second input and the sliding track of the first input. Specifically, before the step 103, the method may further include:
acquiring a first sliding track of the second input and a second sliding track of the first input;
determining that the second input is associated with the first input if the first sliding trajectory and the second sliding trajectory match.
Based on this, the first electronic device determines that the second input is associated with the first input when the sliding track of the second input matches the sliding track of the first input, so that the possibility that the display object of the second electronic device is transmitted to the first electronic device for display due to the user misoperation can be reduced.
The first electronic device may determine that the first sliding track matches the second sliding track according to the shape, length, size, and the like of the sliding track.
For example, in a case where a sliding input (i.e., a first input) for drawing a circle on a dial of a watch B (i.e., a second electronic device) is received, the watch B is in a display interface state of the dial to be transmitted, and at this time, if the watch a (i.e., the first electronic device) receives a sliding input (i.e., a second input) for drawing a circle on the dial, the watch a may calculate similarity of shapes of two circles according to the circle drawn by the sliding input received by the watch a and the circle drawn by the sliding input on the watch B, and if the shapes of the two circles are the same, the watch a receives data of all display objects in the display interface of the dial transmitted by the watch B.
In addition, the first electronic device may receive the target data transmitted by the second electronic device when it is determined that the second input is associated with the first input, and the first electronic device may transmit a confirmation instruction to the second electronic device when it is determined that the second input is associated with the second income, and the second electronic device may transmit the target data in response to the confirmation instruction when it receives the confirmation instruction; alternatively, in a case that it is determined that the second input is associated with the second income, the first electronic device may start the data transmission interface to receive the target data transmitted by the second electronic device, which is not described herein again.
In step 104, when the first electronic device receives the target data, the first electronic device may display the target display object on its display screen based on the target data.
The first electronic device may display the target display object in any display area of the display screen, for example, in a case that the target display object is an application icon of an application program, the first electronic device may display the application icon in any blank icon display position in the current display interface, and the like.
Alternatively, the first electronic device may display the target display object, or may display the target display object in a preset display area, where the preset display area may be specified by a system, for example, the display area of the last icon position may be always used as the preset display area, and the like; alternatively, the preset display area may be set in the implementation process of data transmission.
Specifically, the second input is an input to a target display area of the first electronic device;
the displaying the target display object may include:
displaying the target display object in the target display area.
Based on this, first electronic equipment can confirm the target display area according to the second input to show the target display area in the target display area, thereby can not only promote the display quality that first electronic equipment shows the target display area, can also be that the operation is more convenient and time-saving.
The second input may also be an input for selecting the target display area, for example, the second input may be a voice input whose voice content includes coordinates of four pixel points, and the first electronic device determines the target display area with the four pixel points as vertices; alternatively, the second input may be a press input, the first electronic device may use a pressing point of the press input as a center point, and determine the size of the selected area according to a pressing force degree or a pressing time length, so as to form the target display area, and so on.
Specifically, the second input and the first input are both sliding inputs, and the target display object includes at least one display object in a closed sliding track of the second input;
the displaying the target display object in the target display area may include:
displaying the at least one display object within a display area that is within the closed sliding trajectory of the first input.
Based on this, the first electronic device can determine the display area for displaying the at least one display object selected by the first input through the sliding track of the sliding input, so that the operation of selecting the display area is more convenient and time-saving.
For example, as shown in fig. 4, in a case where watch B receives circle input 1 (i.e., a first input) of the user on its display screen, application icon 42 of watch B within circle 41 (i.e., a dashed area on watch B) drawn by circle input 1 is determined as the target display object, i.e., application icon 42 enters a state to be transmitted; in the case where watch a receives circling input 2 (i.e., the second input) on its display screen, watch a determines the display area within circle 43 drawn by circling input 2 (i.e., the dotted area on watch a) as the target display area, and in the case where circle 41 drawn by circling input 1 and circle 43 drawn by circling input 2 coincide, watch a displays application icon 42 within the display area within circle 43.
As described above, the target display object may be an application icon of an application program, and in the case where the target display object is an application icon of an application program, the target data may be icon data that is only an application icon so that the first electronic device displays the application icon.
Or, the target display object is an application icon, and the target data is installation package data of an application corresponding to the application icon;
before the displaying the target display object, the method may include:
and installing the application program corresponding to the application program icon in the first electronic equipment based on the installation package data.
Based on this, the first electronic device can directly acquire the installation package data of the application program to be installed from the second electronic device, install the application program through the acquired installation package data and display the corresponding application icon, so that the operation of installing the new application program by the first electronic device is more convenient and time-saving.
In addition, as described above, the first input may be an input to a display interface of a second electronic device, that is, the target display object includes all display objects in the display interface of the second electronic device, and in this case, the receiving target data transmitted by the second electronic device may include:
receiving display interface data transmitted by the second electronic device, wherein the display interface data comprises data of all display objects displayed in a display interface of the second electronic device;
the displaying the target display object may include:
and displaying all display objects displayed in the display interface of the second electronic equipment.
Therefore, all display objects in the display interface of the second electronic equipment can be displayed in the first electronic equipment through one-time operation, and therefore the operation of displaying new display objects by the first electronic equipment is more convenient and time-saving.
For example, in a case where watch B shown in fig. 2 receives an input (i.e., a first input) of a long press input by a user on its dial for more than 5s, and watch a also receives an input of a long press input by a user on its dial for more than 5s, watch B may transmit data of a desktop background on a display interface of its dial and data of all application icons to watch a, and watch a displays the display interface of watch B through the received data, that is, the display interface of watch a includes the desktop background and all application icons in the display interface of the dial of watch B.
Referring to fig. 5, an embodiment of the present application provides a data transmission apparatus applied to a first electronic device, and as shown in fig. 5, the data transmission apparatus 500 includes:
the instruction receiving module 501 is configured to receive an instruction to be transmitted, which is sent by a second electronic device, where the instruction to be transmitted is an instruction sent by the second electronic device in response to a first input received by the second electronic device, and the first input is used for displaying an object displayed by the second electronic device;
an input module 502 for receiving a second input;
a target data receiving module 503, configured to receive, in response to the second input, target data transmitted by the second electronic device if it is determined that the second input is associated with the first input, where the target data is data of the target display object;
a display module 504, configured to display the target display object.
Based on this, when receiving a command to be transmitted sent by the second electronic device after receiving the first input, if receiving a second input associated with the first input, the first electronic device may receive target data transmitted by the second electronic device, where the target data is data of a target display object displayed by the second electronic device to which the first input is directed, and the first electronic device displays the target display object based on the target data. Therefore, according to the data transmission method, the display object in the second electronic equipment can be displayed in the first electronic equipment by inputting the associated second input and first input in the first electronic equipment and the second electronic equipment respectively, so that the first electronic equipment can conveniently and quickly display a new display object.
Optionally, the second input is an input for a target display area of the first electronic device;
the display module 504 is specifically configured to:
displaying the target display object in the target display area.
Based on this, first electronic equipment can confirm the target display area according to the second input to show the target display area in the target display area, thereby can not only promote the display quality that first electronic equipment shows the target display area, can also be that the operation is more convenient and time-saving.
Optionally, the first input is an input to a display interface of the second electronic device;
the target data receiving module 503 is specifically configured to:
receiving display interface data transmitted by the second electronic device, wherein the display interface data comprises data of all display objects displayed in a display interface of the second electronic device;
the display module 504 is specifically configured to:
and displaying all display objects displayed in the display interface of the second electronic equipment.
Therefore, all display objects in the display interface of the second electronic equipment can be displayed in the first electronic equipment through one-time operation, and therefore the operation of displaying new display objects by the first electronic equipment is more convenient and time-saving.
Optionally, the second input and the first input are both sliding inputs, and the target display object includes at least one display object within a closed sliding trajectory of the second input;
the display module 504 is specifically configured to:
displaying the at least one display object within a display area that is within the closed sliding trajectory of the first input.
Based on this, the first electronic device can determine the display area for displaying the at least one display object selected by the first input through the sliding track of the sliding input, so that the operation of selecting the display area is more convenient and time-saving.
Optionally, the apparatus 500 further includes:
a track obtaining module, configured to obtain a first sliding track of the second input and a second sliding track of the first input;
an association determination module to determine that the second input is associated with the first input if the first sliding trajectory and the second sliding trajectory match.
Based on this, the first electronic device determines that the second input is associated with the first input when the sliding track of the second input matches the sliding track of the first input, so that the possibility that the display object of the second electronic device is transmitted to the first electronic device for display due to the user misoperation can be reduced.
Optionally, the target display object is an application icon, and the target data is installation package data of an application corresponding to the application icon;
the apparatus 500, further comprising:
and the application program installation module is used for installing the application program corresponding to the application program icon in the first electronic equipment based on the installation package data.
Based on this, the first electronic device can directly acquire the installation package data of the application program to be installed from the second electronic device, install the application program through the acquired installation package data and display the corresponding application icon, so that the operation of installing the new application program by the first electronic device is more convenient and time-saving.
The data transmission device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The data transmission device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The data transmission device provided in the embodiment of the present application can implement each process implemented in the method embodiment of fig. 1, and is not described here again to avoid repetition.
Optionally, as shown in fig. 6, an electronic device 600 is further provided in this embodiment of the present application, where the electronic device 600 includes a processor 601, a memory 602, and a program or an instruction stored in the memory 602 and capable of being executed on the processor 601, and when the program or the instruction is executed by the processor 601, the process of the data transmission method embodiment is implemented, and the same technical effect can be achieved, and is not described herein again to avoid repetition.
It should be noted that the first electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710. In addition, the first electronic device according to the embodiment of the present application is the electronic device 700 described above.
Those skilled in the art will appreciate that the electronic device 700 may also include a power supply (e.g., a battery) for powering the various components, and the power supply may be logically coupled to the processor 710 via a power management system, such that the functions of managing charging, discharging, and power consumption may be performed via the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The radio frequency unit 701 is configured to:
receiving a to-be-transmitted instruction sent by second electronic equipment, wherein the to-be-transmitted instruction is an instruction sent by the second electronic equipment in response to a first input received by the second electronic equipment, and the first input is used for displaying a target object displayed by the second electronic equipment;
a user input unit 707 for:
receiving a second input;
a radio frequency unit 701 configured to:
receiving target data transmitted by the second electronic equipment under the condition that the second input is determined to be associated with the first input, wherein the target data is data of the target display object;
a display unit 706 for:
and displaying the target display object.
Based on this, when receiving a command to be transmitted sent by the second electronic device after receiving the first input, if receiving a second input associated with the first input, the first electronic device may receive target data transmitted by the second electronic device, where the target data is data of a target display object displayed by the second electronic device to which the first input is directed, and the first electronic device displays the target display object based on the target data. Therefore, according to the data transmission method, the display object in the second electronic equipment can be displayed in the first electronic equipment by inputting the associated second input and first input in the first electronic equipment and the second electronic equipment respectively, so that the first electronic equipment can conveniently and quickly display a new display object.
Optionally, the second input is an input for a target display area of the first electronic device;
the display unit 706 is specifically configured to:
displaying the target display object in the target display area.
Based on this, first electronic equipment can confirm the target display area according to the second input to show the target display area in the target display area, thereby can not only promote the display quality that first electronic equipment shows the target display area, can also be that the operation is more convenient and time-saving.
Optionally, the second input and the first input are both sliding inputs, and the target display object includes at least one display object within a closed sliding trajectory of the second input;
the display unit 706 is specifically configured to:
displaying the at least one display object within a display area that is within the closed sliding trajectory of the first input.
Based on this, the first electronic device can determine the display area for displaying the at least one display object selected by the first input through the sliding track of the sliding input, so that the operation of selecting the display area is more convenient and time-saving.
Optionally, the first input is an input to a display interface of the second electronic device;
the radio frequency unit 701 is specifically configured to:
receiving display interface data transmitted by the second electronic device, wherein the display interface data comprises data of all display objects displayed in a display interface of the second electronic device;
the display unit 706 is specifically configured to:
and displaying all display objects displayed in the display interface of the second electronic equipment.
Therefore, all display objects in the display interface of the second electronic equipment can be displayed in the first electronic equipment through one-time operation, and therefore the operation of displaying new display objects by the first electronic equipment is more convenient and time-saving.
Optionally, the processor 710 is further configured to:
acquiring a first sliding track of the second input and a second sliding track of the first input;
determining that the second input is associated with the first input if the first sliding trajectory and the second sliding trajectory match.
Based on this, the first electronic device determines that the second input is associated with the first input when the sliding track of the second input matches the sliding track of the first input, so that the possibility that the display object of the second electronic device is transmitted to the first electronic device for display due to the user misoperation can be reduced.
Optionally, the target display object is an application icon, and the target data is installation package data of an application corresponding to the application icon;
and installing the application program corresponding to the application program icon in the first electronic equipment based on the installation package data.
Based on this, the first electronic device can directly acquire the installation package data of the application program to be installed from the second electronic device, install the application program through the acquired installation package data and display the corresponding application icon, so that the operation of installing the new application program by the first electronic device is more convenient and time-saving.
It should be understood that in the embodiment of the present application, the input Unit 704 may include a Graphics Processing Unit (GPU) 7041 and a microphone 7042, and the Graphics Processing Unit 7041 processes image data of still pictures or videos obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071 is also referred to as a touch screen. The touch panel 7071 may include two parts of a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. Memory 709 may be used to store software programs as well as various data, including but not limited to applications and operating systems. Processor 710 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 710.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the data transmission method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the data transmission method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the data transmission method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (12)
1. A data transmission method is applied to first electronic equipment, and is characterized by comprising the following steps:
receiving a to-be-transmitted instruction sent by second electronic equipment, wherein the to-be-transmitted instruction is an instruction sent by the second electronic equipment in response to a first input received by the second electronic equipment, and the first input is used for displaying a target object displayed by the second electronic equipment;
receiving a second input;
receiving target data transmitted by the second electronic equipment in response to the second input under the condition that the second input is determined to be associated with the first input, wherein the target data is data of the target display object;
and displaying the target display object.
2. The method of claim 1, wherein the second input is an input to a target display area of the first electronic device;
the displaying the target display object comprises:
displaying the target display object in the target display area.
3. The method of claim 2, wherein the second input and the first input are both sliding inputs, and the target display object comprises at least one display object within a closed sliding trajectory of the second input;
the displaying the target display object in the target display area comprises:
displaying the at least one display object within a display area that is within the closed sliding trajectory of the first input.
4. The method of claim 1, wherein the first input is an input to a display interface of the second electronic device;
the receiving of the target data transmitted by the second electronic device includes:
receiving display interface data transmitted by the second electronic device, wherein the display interface data comprises data of all display objects displayed in a display interface of the second electronic device;
the displaying the target display object comprises:
and displaying all display objects displayed in the display interface of the second electronic equipment.
5. The method according to claim 1, wherein the target display object is an application icon, and the target data is installation package data of an application corresponding to the application icon;
before the displaying the target display object, the method further comprises:
and installing the application program corresponding to the application program icon in the first electronic equipment based on the installation package data.
6. A data transmission device applied to a first electronic device, comprising:
the instruction receiving module is used for receiving an instruction to be transmitted, which is sent by second electronic equipment, wherein the instruction to be transmitted is an instruction sent by the second electronic equipment in response to a first input received by the second electronic equipment, and the first input is used for displaying an object aiming at a target displayed by the second electronic equipment;
an input module for receiving a second input;
a target data receiving module, configured to receive, in response to the second input, target data transmitted by the second electronic device if it is determined that the second input is associated with the first input, where the target data is data of the target display object;
and the display module is used for displaying the target display object.
7. The apparatus of claim 6, wherein the second input is an input to a target display area of the first electronic device;
the display module is specifically configured to:
displaying the target display object in the target display area.
8. The apparatus of claim 7, wherein the second input and the first input are both sliding inputs, and the target display object comprises at least one display object within a closed sliding trajectory of the second input;
the display module is specifically configured to:
displaying the at least one display object within a display area that is within the closed sliding trajectory of the first input.
9. The apparatus of claim 6, wherein the first input is an input to a display interface of the second electronic device;
the target data receiving module is specifically configured to:
receiving display interface data transmitted by the second electronic device, wherein the display interface data comprises data of all display objects displayed in a display interface of the second electronic device;
the display module is specifically configured to:
and displaying all display objects displayed in the display interface of the second electronic equipment.
10. The apparatus according to claim 6, wherein the target display object is an application icon, and the target data is installation package data of an application corresponding to the application icon;
the device, still include:
and the application program installation module is used for installing the application program corresponding to the application program icon in the first electronic equipment based on the installation package data.
11. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the data transmission method according to any one of claims 1 to 5.
12. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the data transmission method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110339149.2A CN113115287B (en) | 2021-03-30 | 2021-03-30 | Data transmission method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110339149.2A CN113115287B (en) | 2021-03-30 | 2021-03-30 | Data transmission method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113115287A true CN113115287A (en) | 2021-07-13 |
CN113115287B CN113115287B (en) | 2023-04-28 |
Family
ID=76712672
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110339149.2A Active CN113115287B (en) | 2021-03-30 | 2021-03-30 | Data transmission method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113115287B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102904618A (en) * | 2011-07-26 | 2013-01-30 | 联想(北京)有限公司 | Method and device for processing communication between apparatuses |
CN104426589A (en) * | 2013-09-02 | 2015-03-18 | 联想(北京)有限公司 | Data transmission method and electronic device |
EP3011438A1 (en) * | 2013-06-18 | 2016-04-27 | Microsoft Technology Licensing, LLC | Methods and systems for electronic ink projection |
CN110046015A (en) * | 2019-04-08 | 2019-07-23 | 维沃移动通信有限公司 | Using sharing method and terminal |
CN111026562A (en) * | 2019-11-18 | 2020-04-17 | 维沃移动通信(杭州)有限公司 | Message sending method and electronic equipment |
-
2021
- 2021-03-30 CN CN202110339149.2A patent/CN113115287B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102904618A (en) * | 2011-07-26 | 2013-01-30 | 联想(北京)有限公司 | Method and device for processing communication between apparatuses |
EP3011438A1 (en) * | 2013-06-18 | 2016-04-27 | Microsoft Technology Licensing, LLC | Methods and systems for electronic ink projection |
CN104426589A (en) * | 2013-09-02 | 2015-03-18 | 联想(北京)有限公司 | Data transmission method and electronic device |
CN110046015A (en) * | 2019-04-08 | 2019-07-23 | 维沃移动通信有限公司 | Using sharing method and terminal |
CN111026562A (en) * | 2019-11-18 | 2020-04-17 | 维沃移动通信(杭州)有限公司 | Message sending method and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN113115287B (en) | 2023-04-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP4220388A1 (en) | Interface display method and apparatus, and electronic device | |
CN111669737A (en) | Bluetooth device connection method and device and electronic device | |
CN112416200A (en) | Display method, display device, electronic equipment and readable storage medium | |
CN113794795B (en) | Information sharing method and device, electronic equipment and readable storage medium | |
CN112083854A (en) | Application program running method and device | |
CN112486444A (en) | Screen projection method, device, equipment and readable storage medium | |
CN111813299A (en) | Information sharing method, information sharing device and electronic equipment | |
CN112269522A (en) | Image processing method, image processing device, electronic equipment and readable storage medium | |
CN111813305A (en) | Application program starting method and device | |
CN112764611B (en) | Application program control method and device and electronic equipment | |
CN113836089A (en) | Application program display method and device, electronic equipment and readable storage medium | |
CN112399010B (en) | Page display method and device and electronic equipment | |
CN112558833B (en) | Application running method and device and electronic equipment | |
CN114217754A (en) | Screen projection control method and device, electronic equipment and storage medium | |
CN112698762B (en) | Icon display method and device and electronic equipment | |
CN111857465B (en) | Application icon sorting method and device and electronic equipment | |
CN112286615A (en) | Information display method and device of application program | |
CN112486387A (en) | Application program control method and device | |
EP4398558A1 (en) | Display method and apparatus | |
CN113115287B (en) | Data transmission method and device | |
CN111813741B (en) | File sharing method and electronic equipment | |
CN112905837A (en) | Video file processing method and device and electronic equipment | |
CN112596645A (en) | Application identifier hiding method and device and electronic equipment | |
CN112765508A (en) | Information display method and device and electronic equipment | |
CN111694498A (en) | Interface display method and device and electronic equipment |
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 |