CN113242349B - Data transmission method, electronic equipment and storage medium - Google Patents

Data transmission method, electronic equipment and storage medium Download PDF

Info

Publication number
CN113242349B
CN113242349B CN202010075671.XA CN202010075671A CN113242349B CN 113242349 B CN113242349 B CN 113242349B CN 202010075671 A CN202010075671 A CN 202010075671A CN 113242349 B CN113242349 B CN 113242349B
Authority
CN
China
Prior art keywords
electronic device
electronic
vector
electronic devices
devices
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
CN202010075671.XA
Other languages
Chinese (zh)
Other versions
CN113242349A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202010075671.XA priority Critical patent/CN113242349B/en
Priority to PCT/CN2020/124094 priority patent/WO2021147419A1/en
Publication of CN113242349A publication Critical patent/CN113242349A/en
Application granted granted Critical
Publication of CN113242349B publication Critical patent/CN113242349B/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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction 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/0488Interaction 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/222Monitoring or handling of messages using geographical location information, e.g. messages transmitted or received in proximity of a certain spot or area
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72457User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Human Computer Interaction (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A data transmission method, an electronic device and a storage medium are used for simplifying a scheme of finding a second electronic device. The method comprises the steps that first electronic equipment obtains operation information of a user on the first electronic equipment, wherein the operation information is used for indicating a target direction; and determining the N second electronic devices according to the position information of the first electronic device, the target direction and the position information of the N second electronic devices, and sending data to one or more second electronic devices in the N second electronic devices. Each determined second electronic device meets the condition that an included angle between a first vector and a second vector formed by the position information of the second electronic device and the position information of the first electronic device is within a preset included angle range; the direction of the second vector matches the target direction. Therefore, the user can share data or screen projection operation by performing operation for indicating the target direction on the display screen of the first electronic device, so that the operation complexity of the user in the process of searching the second electronic device can be simplified.

Description

Data transmission method, electronic equipment and storage medium
Technical Field
The present application relates to the field of communications, and in particular, to a data transmission method, an electronic device, and a storage medium.
Background
With the popularization of various portable electronic devices, the functions of various devices such as mobile phones, tablet computers, PDAs, and the like are changing day by day. Because the touch screen can be used as an input device, corresponding instruction operation can be realized only by a user performing corresponding touch action on the display screen, and complicated keys are replaced, so that more and more electronic devices adopt the touch screen, for example, the opening or closing action of a file, the switching of operation tasks and the like can be controlled through the touch screen. Therefore, the application of the touch screen enables the customer experience to be more visual and the operation to be more convenient.
Currently, when a user wants to share a file to other people, the mobile devices in the periphery are generally searched through wireless signals. In this way, the device names of the nearby mobile devices may be searched, and the user needs to know the device name of the electronic device of the shared user, and then the shared user device is selected from the searched nearby mobile devices, and then the file is shared to the user. It can be seen that, in the scheme, to find the shared user, the device name of the device of the user needs to be accurately known, and the process is complex, which brings inconvenience to the user.
Disclosure of Invention
The embodiment of the application provides a data transmission method, electronic equipment and a storage medium, which are used for simplifying the fact that the electronic equipment accurately finds the shared electronic equipment and improving the user experience.
In a first aspect, an embodiment of the present application provides a data transmission method, including: the method comprises the steps that first electronic equipment obtains operation information of a user, wherein the operation information is used for indicating a target direction; the first electronic equipment determines N second electronic equipment according to the position information of the first electronic equipment, the target direction and the position information of the N second electronic equipment, wherein N is a positive integer; wherein each second electronic device satisfies a first condition: the included angle between the first vector and the second vector is within a preset included angle range; the first vector is determined by the position information of the second electronic device and the position information of the first electronic device; the direction of the second vector is the same as the target direction; the first electronic device transmits data to one or more of the N second electronic devices. Therefore, the user can share data or project a screen by operating on the display screen of the first electronic device to point to the target direction, and operation complexity of the user in the process of searching for the second electronic device is simplified. After the scheme is applied, the user does not need to search the second electronic device according to the device name of the second electronic device any more, the user can search the second electronic device according to the position information of the second electronic device relative to the first electronic device, and the operation of the user can be simplified.
In a possible embodiment, the first vector is determined with the position information of the first electronic device as a starting point and the position information of the second electronic device as an ending point. In this way, the first vector may be determined by the position of the first electronic device and the position of the second electronic device in the terrestrial coordinate system.
In a possible embodiment, the operation information is a sliding track of the user on the first electronic device, and the sliding track is used for indicating the target direction. The second vector satisfies one or more of: the second vector comprises at least two points on the sliding track; or; the ratio of the number of points coincident with the second vector on the sliding track to the total number of points included on the sliding track is greater than a preset ratio; or; the start point of the second vector is the start point of the slide trajectory, and the end point of the second vector is the end point of the slide trajectory. In this way, the flexibility of the scheme for determining the second vector may be increased.
In one possible embodiment, the determining N second electronic devices according to the location information of the first electronic device, the target direction and the location information of the N second electronic devices includes: determining N second electronic devices meeting the first condition from M searched third electronic devices according to the position information of the first electronic device, the target direction and the position information of the N second electronic devices, wherein M is an integer not less than N; and displaying the identification information of the N second electronic devices on the display screen of the first electronic device. Optionally, M third electronic devices may be searched in advance, and thus, the rate of screening the N second electronic devices may be increased.
In one possible embodiment, displaying the identification information of the N second electronic devices on the display screen of the first electronic device includes: displaying the identification information of the N second electronic devices on a display screen of the first electronic device according to the weight of each second electronic device in the N second electronic devices; wherein, for a second electronic device of the N second electronic devices, the weight of the second electronic device is related to an angle between the second vector corresponding to the second electronic device and the first vector, and/or a distance between the second electronic device and the first electronic device. Therefore, the identification information of the second electronic equipment can be displayed according to the weight of the second electronic equipment, so that the display mode of the displayed identification information of the second electronic equipment is more in line with the expectation of a user.
In one possible embodiment, the identification information of the N second electronic devices satisfies one or more of the following: for a second electronic device of the N second electronic devices, the larger the weight of the second electronic device is, the larger the identification information font of the second electronic device is; for one second electronic device of the N second electronic devices, the greater the weight of the second electronic device, the closer the position of the identification information of the second electronic device is to the top end of the display screen of the first electronic device; for one second electronic device of the N second electronic devices, the greater the weight of the second electronic device, the greater the icon displaying the identification information of the second electronic device on the display screen of the first electronic device; for one of the N second electronic devices, a relative position of the identification information of the second electronic device and the identification information of the first electronic device on the display screen of the first electronic device matches a relative position of the second electronic device and the first electronic device in a terrestrial coordinate system. In this way, the weight of the second electronic device can be displayed in a display mode on the display screen of the first electronic device, so that the user can determine the second electronic device with the largest weight more clearly.
In one possible implementation manner, before sending data to one or more of the N second electronic devices after displaying the identification information of the N second electronic devices on the display screen of the first electronic device according to the weight of the second electronic device of the N second electronic devices, the method further includes: and if the first electronic equipment is detected to move, maintaining the interface on the display screen of the first electronic equipment, wherein the interface is displayed with the identification information of the N second electronic equipment, unchanged. Therefore, the display of the identification information of the N second electronic devices can be prevented from being influenced by the movement of the first electronic device caused by misoperation of the user.
In one possible implementation manner, before sending data to one or more of the N second electronic devices after displaying the identification information of the N second electronic devices on the display screen of the first electronic device according to the weight of the second electronic device of the N second electronic devices, the method further includes: if the first electronic device is detected to move, under the condition that the identification information of the N second electronic devices is displayed on the display screen of the first electronic device in a network topology form, updating the positions of the identification information of the N second electronic devices on the display screen of the first electronic device according to the change of the relative positions between the second electronic device in the N second electronic devices and the moved first electronic device, wherein the relative positions of the identification information of the second electronic device and the identification information of the first electronic device on the display screen of the first electronic device are matched with the relative positions of the second electronic device and the moved first electronic device. In this way, when the identifier of the electronic device is presented in the form of a network topology, the display position of the second electronic devices on the first device can be refreshed after the first electronic device moves or rotates, which may be similar to the following scheme types: in this scheme, in the map App, the user's mobile phone is rotated, but the map is still similar to being laid on the ground.
In one possible implementation manner, before sending data to one or more of the N second electronic devices after displaying the identification information of the N second electronic devices on the display screen of the first electronic device according to the weight of the second electronic device of the N second electronic devices, the method further includes: if the first electronic device is detected to move, determining one or more third electronic devices according to the position information of the first electronic device after the movement and the target direction on the first electronic device after the movement; wherein for a third electronic device of the one or more third electronic devices, the third electronic device satisfies a second condition; wherein the second condition comprises: an included angle between the third vector and the fourth vector is within a preset included angle range; the third vector comprises the position information of the third electronic equipment and the position information of the first electronic equipment after movement; the direction of the fourth vector is matched with the target direction on the first electronic equipment after the movement. Therefore, the identification information of the N second electronic devices can be updated in time.
In one possible embodiment, the sending data to one or more of the N second electronic devices includes: receiving first signaling, wherein the first signaling comprises indication information for indicating a target electronic device, and the target electronic device is one or more second electronic devices in the N second electronic devices; and sending data to the target electronic device according to the first signaling. Thus, the user can select the target electronic device by himself.
In one possible embodiment, the sending data to one or more of the N second electronic devices includes: transmitting data to the second electronic device with the largest weight in the N second electronic devices; and aiming at one second electronic device of the N second electronic devices, the weight of the second electronic device is related to the included angle between the second vector corresponding to the second electronic device and the first vector, and/or the distance between the second electronic device and the first electronic device. In one possible implementation, the sending data to one or more of the N second electronic devices comprises: and when one second electronic device exists in the N second electronic devices and the system account number logged in the second electronic device is the same as the system account number logged in the first electronic device, sending data to the second electronic device. Thus, the second electronic device which best meets the user expectation can be estimated as the target electronic device, and the use feeling of the user can be further improved.
In one possible embodiment, the obtaining operation information of the user on the first electronic device includes: acquiring a sliding track of a user in a first preset area of the first electronic device through a first preset operation gesture; the first preset area comprises a display screen of the first electronic device and/or a frame of the first electronic device.
In a possible implementation manner, the obtaining of the operation information of the user on the first electronic device includes determining a target file, and obtaining a sliding track performed by the user through a second preset operation gesture in a second preset area, where the second preset area includes an interface where the target file is located and/or a border of the first electronic device.
In a possible implementation manner, the obtaining operation information of the user on the first electronic device includes obtaining operation information of the user operating a tool displayed on a display screen of the first electronic device, and determining, according to the operation information, the target direction indicated by the tool after the user operates the tool. The tool may be a pointer on the display of the first electronic device, and the user may indicate the target direction by turning the pointer. Of course, a pointer is just one example, and the tool may be other examples.
In order to improve flexibility of the solution, in a possible implementation manner, the obtaining of the sliding track of the user on the first electronic device includes determining the target file, and obtaining the sliding track of the user in a third preset area, where the third preset area includes a first interface and/or a border of the first electronic device, and the first interface is an interface different from an interface where the target file is located.
In a possible implementation manner, for one of the N second electronic devices, the closer the second electronic device is to the first electronic device, the larger the preset included angle range in the first condition corresponding to the second electronic device is. In one possible embodiment, the determining N second electronic devices according to the location information of the first electronic device, the target direction and the location information of the N second electronic devices includes: for one second electronic device of the N second electronic devices, determining a preset included angle range in a first condition corresponding to the second electronic device according to a preset distance range to which a distance between the second electronic device and the first electronic device belongs and a corresponding relationship between the preset distance range and the preset included angle range; the smaller the maximum distance value in the preset distance range is, the larger the corresponding maximum included angle in the preset included angle range corresponding to the preset distance range is; and the first electronic equipment determines the N second electronic equipment according to the position information of the first electronic equipment, the target direction, the position information of the N second electronic equipment and the determined preset included angle range. Therefore, the electronic equipment which is close to the first electronic equipment can be prevented from being omitted.
The application also provides an electronic device corresponding to any one of the communication methods of the first aspect. The electronic device may be any one of a device at a transmitting end or a device at a receiving end that performs data transmission in a wireless manner. Such as communication chips, terminal equipment. During communication, the device on the transmitting side and the device on the receiving side are opposite. In some communication processes, the electronic device may serve as the electronic device or a communication chip for the electronic device.
In a second aspect, an electronic device is provided, which includes a transceiver unit and a processing unit to perform any one of the embodiments of the communication method of the first aspect. The transceiving unit is used to perform functions related to transmission and reception. Optionally, the transceiver unit includes a receiving unit and a transmitting unit. In one design, the electronic device is a communication chip, and the transceiver unit may be an input-output circuit or a port of the communication chip.
In another design, the transceiver unit may be a transmitter and a receiver, or the transceiver unit may be a transmitter and a receiver.
Optionally, the electronic device further includes various modules operable to perform any of the embodiments of the communication method of the first aspect.
In a third aspect, an electronic device is provided, where the electronic device is the first electronic device. The electronic device may be a terminal device. Including a processor and a memory. Optionally, the communication device further comprises a transceiver, the memory is used for storing a computer program or instructions, and the processor is used for calling and running the computer program or instructions from the memory, and when the processor executes the computer program or instructions in the memory, the electronic device is caused to execute any implementation mode of any communication method of the first aspect.
Optionally, the number of the processors is one or more, and the number of the memories is one or more.
Alternatively, the memory may be integrated with the processor, or may be provided separately from the processor.
Optionally, the transceiver may include a transmitter (transmitter) and a receiver (receiver).
In a fourth aspect, an electronic device is provided that includes a processor. The processor is coupled to the memory and is operable to perform the method of any of the first aspects, and any possible implementation of the first aspects. Optionally, the electronic device further comprises a memory. Optionally, the electronic device further comprises a communication interface, the processor being coupled to the communication interface.
In one implementation, the electronic device is a terminal device. When the electronic device is a terminal device, the communication interface may be a transceiver, or an input/output interface. Alternatively, the transceiver may be a transmit-receive circuit. Alternatively, the input/output interface may be an input/output circuit.
In yet another implementation, the electronic device is a chip or a system of chips. When the electronic device is a chip or a system of chips, the communication interface may be an input/output interface, an interface circuit, an output circuit, an input circuit, a pin or related circuit, etc. on the chip or the system of chips. The processor may also be embodied as a processing circuit or a logic circuit.
In a fifth aspect, a system is provided, which includes the first electronic device and the second electronic device.
In a sixth aspect, there is provided a computer program product comprising: computer program (also called code, or instructions), which when executed, causes a computer to perform the method of any of the possible implementations of the first aspect.
In a seventh aspect, a computer-readable storage medium is provided, which stores a computer program (which may also be referred to as code or instructions) that, when executed on a computer, causes the computer to perform the method in any one of the possible implementations of the first aspect.
In an eighth aspect, there is provided a processing apparatus comprising: input circuit, output circuit and processing circuit. The processing circuitry is configured to receive signals via the input circuitry and to transmit signals via the output circuitry such that the method of any one of the possible implementations of the first aspect is implemented.
In a specific implementation process, the processing device may be a chip, the input circuit may be an input pin, the output circuit may be an output pin, and the processing circuit may be a transistor, a gate circuit, a flip-flop, various logic circuits, and the like. The input signal received by the input circuit may be received and input by, for example and without limitation, a receiver, the signal output by the output circuit may be output to and transmitted by a transmitter, for example and without limitation, and the input circuit and the output circuit may be the same circuit that functions as the input circuit and the output circuit, respectively, at different times. The embodiment of the present application does not limit the specific implementation manner of the processor and various circuits.
Drawings
FIG. 1 is a schematic diagram of a possible system architecture suitable for use in embodiments of the present application;
FIG. 2 is a schematic diagram of an electronic device;
fig. 3 is a schematic flowchart of a data transmission method according to an embodiment of the present application;
FIG. 4 is a system architecture diagram according to an embodiment of the present application;
FIG. 5 is a schematic diagram of another system architecture according to an embodiment of the present application;
FIG. 6 is a schematic diagram of another system architecture provided in the embodiments of the present application;
FIG. 7 is a schematic diagram of another system architecture provided in the embodiments of the present application;
fig. 8 is a schematic view of a display interface of identification information of N second electronic devices according to an embodiment of the present application;
fig. 9 is a schematic view of another display interface of the identification information of the N second electronic devices according to the embodiment of the present application;
fig. 10 is a schematic view of a display interface of identification information of N second electronic devices according to an embodiment of the present application;
fig. 11 is a schematic view of another display interface of the identification information of the N second electronic devices according to the embodiment of the present application;
fig. 12 is a schematic view of a display interface of identification information of N second electronic devices according to an embodiment of the present application;
fig. 13 is a schematic view of another display interface of the identification information of the N second electronic devices according to the embodiment of the present application;
fig. 14 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 15 is a schematic structural diagram of another electronic device provided in an embodiment of the present application;
fig. 16 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
Detailed Description
Fig. 1 is a schematic diagram of a possible system architecture applicable to the embodiment of the present application. The system architecture shown in fig. 1 includes a plurality of electronic devices, including, as shown in fig. 1, an electronic device 201, an electronic device 202, an electronic device 203, an electronic device 204, an electronic device 205, and an electronic device 206. The position of the electronic device in the embodiment of the present application may be arbitrary, such as the electronic device 203 located at the front left of the electronic device 201, the electronic device 204 located at the front of the electronic device 201, and so on.
The embodiment of the application provides a scheme, which can determine the electronic equipment needing to transmit data according to the position information of the electronic equipment and the target direction indicated by the operation information of the user on the electronic equipment. In the embodiment of the application, one electronic device can detect signals of other electronic devices. It should be understood that, the embodiment of the present application does not limit the number of the electronic devices in the system architecture, and the system architecture to which the embodiment of the present application is applied may include other devices besides the electronic devices, such as a network device, a core network device, a wireless relay device, a wireless backhaul device, and the like, and the embodiment of the present application is not limited thereto.
The electronic devices of embodiments of the present application may include devices that provide voice and/or data connectivity to a user, and may include, for example, handheld devices having wireless connection capabilities or processing devices connected to wireless modems. The electronic device may communicate with a core network via a Radio Access Network (RAN), exchanging voice and/or data with the RAN. The electronic device may include a User Equipment (UE), a wireless electronic device, a mobile electronic device, a device-to-device communication (D2D) electronic device, a V2X electronic device, a machine-to-machine/machine-type communication (M2M/MTC) electronic device, an internet of things (IoT) electronic device, a subscriber unit (subscriber unit), a subscriber station (subscriber state), a mobile station (mobile state), a remote station (remote state), an Access Point (AP), a remote terminal (remote terminal), an access terminal (access terminal), a user terminal (user terminal), a user agent (user agent), or a user equipment (user device), and the like. For example, mobile telephones (or so-called "cellular" telephones), computers with mobile electronic devices, portable, pocket, hand-held, computer-included mobile devices, and the like may be included. For example, Personal Communication Service (PCS) phones, cordless phones, Session Initiation Protocol (SIP) phones, Wireless Local Loop (WLL) stations, Personal Digital Assistants (PDAs), and the like. Also included are constrained devices, such as devices that consume less power, or devices that have limited storage capabilities, or devices that have limited computing capabilities, etc. Examples of information sensing devices include bar codes, Radio Frequency Identification (RFID), sensors, Global Positioning Systems (GPS), laser scanners, and the like.
Fig. 2 schematically shows a structure of an electronic device. Fig. 2 illustrates an electronic device as a mobile phone. It should be understood that the illustrated electronic device is merely one example, and an electronic device may have more or fewer components than shown in fig. 2, may combine two or more components, or may have a different configuration of components. The various components shown in fig. 2 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
As shown in fig. 2, 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 button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identity 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. The antenna 1 and the antenna 2 are illustrated in fig. 2, and optionally, other antennas may be further included.
The following describes each component of the electronic device in detail with reference to fig. 2:
the processor 110 may include one or more processing units, for example, 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), among others. The different processing units may be separate devices or may be integrated into one or more processors. The controller can be a neural center and a command center of the electronic device. 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 reuse the instruction or data, it can be called directly from the memory, so that repeated accesses can be avoided, the latency of the processor 110 can be reduced, and the efficiency of the system can be improved.
In some embodiments, processor 110 may include one or more interfaces. For example, 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, a bus/Universal Serial Bus (USB) interface, and/or the like.
The wireless communication function of the electronic device may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, the baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in an electronic device 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. 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 electronic devices, including Wireless Local Area Networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), Global Navigation Satellite Systems (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 via the antenna 2 to radiate the electromagnetic waves.
In some embodiments, antenna 1 of the electronic device is coupled to the mobile communication module 150 and antenna 2 is coupled to the wireless communication module 160 so that the electronic device can communicate with the network 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 (code division multiple access, CDMA), Wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), Long Term Evolution (LTE), 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 implements the display function through the GPU, the display screen 194, and the application processor, etc. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an 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 this embodiment, the display screen 194 may be an integrated flexible display screen, or may be a spliced display screen formed by two rigid screens and a flexible screen located between the two rigid screens.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device. 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 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 data storage area can store data (such as audio data, phone book and the like) created in the using process of the electronic equipment. 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 processor 110 executes various functional applications of the electronic device and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The pressure sensor 180A is used for sensing a pressure signal, and can convert 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 wide variety, 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 electronics determine the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus detects the intensity of the touch operation based on the pressure sensor 180A. The electronic device may also calculate the position of the touch from the detection signal of the pressure sensor 180A. In some embodiments, the touch operations that are applied to the same touch position but have different touch operation intensities may correspond to different operation instructions.
The gyro sensor 180B may be used to determine the motion pose of the electronic device. In some embodiments, the angular velocity of the electronic device about three axes (i.e., x, y, and z axes) may be determined by the gyroscope sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. The gyroscope sensor 180B may also be used for navigation, somatosensory gaming scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 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 may detect the opening and closing of the flip holster using the magnetic sensor 180D. In some embodiments, when the electronic device is a flip, the electronic device may detect the opening and closing of the flip according to the magnetic sensor 180D. And then according to the opening and closing state of the leather sheath or the opening and closing state of the flip cover, the automatic unlocking of the flip cover is set.
The acceleration sensor 180E can detect the magnitude of acceleration of the electronic device in various directions (typically three axes). When the electronic device is stationary, the magnitude and direction of gravity can be detected. The method can also be used for identifying the posture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and the like.
A distance sensor 180F for measuring a distance. The electronic device may measure distance by infrared or laser. In some embodiments, taking a picture of a scene, the electronic device may utilize the distance sensor 180F to range to achieve 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 emits infrared light to the outside through the light emitting diode. The electronic device uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device. When insufficient reflected light is detected, the electronic device may determine that there are no objects near the electronic device. The electronic device can utilize the proximity light sensor 180G to detect that the user holds the electronic device to talk near the ear, so that the display screen is automatically extinguished to achieve the purpose of saving power. The proximity light sensor 180G may also be used in a holster mode, a pocket mode automatically unlocking and locking the screen.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic equipment can utilize the collected fingerprint characteristics to realize fingerprint unlocking, access to an application lock, fingerprint photographing, fingerprint incoming call answering and the like. For example, the fingerprint sensor may be disposed on the front side of the electronic device (below the display screen 194), or on the back side of the electronic device (below the rear camera). In addition, the fingerprint recognition function can also be realized by configuring a fingerprint sensor in the touch screen, that is, the fingerprint sensor can be integrated with the touch screen to realize the fingerprint recognition function of the electronic device. In this case, the fingerprint sensor may be disposed in the touch screen, may be a part of the touch screen, or may be otherwise disposed in the touch screen. In addition, the fingerprint sensor can also be implemented as a full panel fingerprint sensor, and thus, the touch screen can be regarded as a panel which can perform fingerprint collection at any position. In some embodiments, the fingerprint sensor may process the acquired fingerprint (e.g., whether the fingerprint is verified) and send the processed fingerprint to the processor 110, and the processor 110 performs corresponding processing according to the processing result of the fingerprint. In other embodiments, the fingerprint sensor may also send the captured fingerprint to the processor 110 for processing (e.g., fingerprint verification, etc.) of the fingerprint by the processor 110. In the embodiment of the present application, the operation information of the user may be collected by a sensor, and the sensor may employ any type of sensing technology, including but not limited to optical, capacitive, piezoelectric, or ultrasonic sensing technologies.
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 acting thereon or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided via the display screen 194. In other embodiments, the touch sensor 180K may be disposed on a surface of the electronic device at a different position than the display screen 194.
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 device may receive a key input, and generate a key signal input related to user settings and function control of the electronic device.
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 in response to 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.
Although not shown in fig. 2, the electronic device may further include a bluetooth device, a positioning device, a flash lamp, a micro-projection device, a Near Field Communication (NFC) device, and the like, which are not described in detail herein.
The method of the embodiment of the present application is described in detail below with reference to the architecture of the electronic device shown in fig. 2. Fig. 3 exemplarily shows a flow chart of a data transmission method provided by the embodiment of the present application, and as shown in fig. 3, the method includes:
in step 301, a first electronic device acquires operation information of a user on the first electronic device, where the operation information is used to indicate a target direction.
In step 301, in an optional implementation manner, a processor in the first electronic device may obtain operation information of a user operating a tool displayed on a display screen of the first electronic device, and the processor determines, according to the operation information, a target direction indicated by the tool after the user operates the tool. The tool may be a pointer displayed on a display screen of the first electronic device, and the user may indicate the target direction by turning the pointer. Of course, a pointer is just one example, and the tool may be other examples.
In another alternative embodiment, the operation information may be a sliding track of the user on the first electronic device, where the sliding track is used to indicate a target direction. It can also be said that the target direction is the sliding direction indicated by the sliding track. The user may slide the bezel and/or the display screen of the first electronic device. When sliding on the frame of the first electronic device, there may be four directions, left, right, up and down, respectively. If the first electronic device slides on the display screen of the first electronic device, the direction may be a 360 ° direction within the display screen, and the degree of freedom is greater. Optionally, an area may be preset on the first electronic device, and when the user slides in the area, the operation of sharing the file to the second electronic device is started. The preset area may be an area in which a sliding track of the user is sensed by a pressure sensor or a fingerprint sensor in the first electronic device, such as the aforementioned bezel and/or display screen of the first electronic device.
Step 302, determining N second electronic devices according to the location information of the first electronic device, the target direction, and location information of the N second electronic devices, where N is a positive integer.
In step 302, the first electronic device may detect one or more signals of the second electronic device, which may be bluetooth signals or the like, and determine the location of the second electronic device based on the signals. In particular, a positioning technique, such as AoA/AoD, may be employed by a processor in a first electronic device and determine location information for one or more second electronic devices based on signals of the one or more second electronic devices. It is a known technology to determine the position of an electronic device by using attributes such as the strength of a transmission signal of the electronic device based on the AoA/AoD technology, and details are not described here.
For any one of the N second electronic devices, the second electronic device satisfying a first condition, the first condition may include: the included angle between the first vector and the second vector is within a preset included angle range; the first vector is determined by the position information of the second electronic device and the position information of the first electronic device; the direction of the second vector is the same as the target direction.
In an optional embodiment, for the first vector, the first vector includes two points of the position information of the second electronic device and the position information of the first electronic device. Optionally, a first vector may also be determined from the location information of the second electronic device and the location information of the first electronic device, and a direction of the first vector points from the first electronic device to the second electronic device.
When the included angle between the first vector and the second vector is determined, the first vector and the second vector need to be placed in the same coordinate system to determine the included angle between the first vector and the second vector. It can also be said that the angle between the first vector and the second vector is determined in a selected coordinate system. The selected coordinate system can be a user-defined coordinate system and can also be an earth coordinate system. In the embodiment of the present application, only the earth coordinate system is taken as an example, and those skilled in the art will appreciate that the earth coordinate system may be replaced by other coordinate systems.
Step 303, the first electronic device sends data to one or more of the N second electronic devices.
In step 303, the data sent by the first electronic device may be a specific file, such as a photo, a text, a video, an audio, and so on, so that the first electronic device may send the file to be shared to one or more second electronic devices, and certainly, may also screen-cast the file to be shared to one or more second electronic devices. The data sent by the first electronic device may also be content currently displayed on the display screen of the first electronic device, so that the first electronic device may project the content displayed in real time on the display screen of the first electronic device to one or more second electronic devices, or certainly share the content displayed in real time on the display screen of the first electronic device to the one or more second electronic devices.
Through the scheme provided by the above fig. 3, it can be seen that, in the embodiment of the application, the first electronic device may determine, as the shared electronic device, the N second electronic devices according to the position information of the first electronic device and the operation information or the sliding track of the user on the first electronic device. Therefore, the user can realize data sharing or screen projection operation by sliding on the display screen of the first electronic device, so that the operation complexity of the user in the process of searching for the shared second electronic device is simplified. After the scheme is applied, the user does not need to search the second electronic equipment according to the equipment name of the second electronic equipment any more, and can search the second electronic equipment according to the position information of the second electronic equipment relative to the first electronic equipment, so that the operation of the user can be simplified, and the user experience can be improved.
In the embodiment of the present application, two points in space, one as the starting point of the vector and one as the ending point of the vector, may determine one vector. The first vector in the embodiment of the present application is determined by the position information of the first electronic device and the position information of the second electronic device. It should be appreciated that in step 302, in an alternative implementation, the start point of the first vector includes the location of the first electronic device and the end point of the first vector includes the location of the second electronic device.
In step 302, there are various ways to determine the second vector, and if the operation information is a sliding track of the user on the display screen of the first electronic device, the sliding track is used to indicate the target direction. In this case, the second vector may then be determined from the sliding trajectory. In the embodiment of the present application, the direction of the second vector matches the sliding direction indicated by the sliding track, and it can be understood that the direction of the second vector is the direction indicated by the sliding track. The start point of the second vector may be a start position of the sliding trajectory on the display screen, and the end point of the second vector may be an end position of the sliding trajectory on the display screen. The following is exemplified by scheme a1, scheme a2, scheme a3, scheme a4 and scheme a 5.
Scheme a1, the second vector comprising at least two points on the sliding trajectory. The two points are freely selected, and may be, for example, a point close to the start point of the slide trajectory and a point close to the end point of the slide trajectory.
Scenario a2, the start point of the second vector comprising the start point of the sliding trajectory and the end point of the second vector comprising the end point of the sliding trajectory.
And a proposal a3, wherein the occupation ratio of the point on the sliding track coincident with the second vector on the sliding track is larger than the preset occupation ratio. The preset proportion may be preset, such as 80%, etc.
In the case of the option a4, the start point region of the slide trajectory and/or the end point region of the slide trajectory on the slide trajectory may be removed, and a straight line in one tape direction closer to the remaining middle portion of the slide trajectory may be used as the second vector.
Further, in the configuration a4, the area of the start point of the sliding track on the sliding track and/or the area of the end point of the sliding track may be removed, and a straight line in the belt direction closer to the remaining middle portion of the sliding track may be used as the second vector, and the straight line may include a predetermined percentage of points on the sliding track, for example, the straight line may include 80% of points on the sliding track, or the straight line may coincide with 80% of points on the sliding track.
In the case that the sliding direction of the user on the display screen of the first electronic device may be a curve due to an error caused by a human operation of the user, or the starting point of the sliding track and/or the ending point of the sliding track of the user may have a small curved track, etc., according to the scheme a5, the processor in the first electronic device may analyze the sliding track of the user on the display screen of the first electronic device to determine the sliding direction indicated by the sliding track, so as to determine the direction of the second vector according to the sliding direction indicated by the sliding track. In one possible embodiment, the tangential direction of the curve when the user has finished sliding off the display screen may be taken as the second vector.
In step 302, it is understood that the first electronic device screens out the electronic devices in the vicinity of the direction indicated by the sliding track. If the preset included angle range is plus or minus, for example, then in space, taking the second vector on the display screen of the first electronic device as a center, and screening out the electronic devices with the included angles between the searched space and the second vector within the plus or minus range. Fig. 4 exemplarily shows a system architecture diagram, as shown in fig. 4, a user slides on a display screen of the first electronic device 201, and determines a second vector according to a sliding track, as shown in fig. 4, as a direction schematic of sliding to the left and front. In fig. 4, the position information of the second electronic device 203 and the position information of the first electronic device 201 constitute a first vector. As shown in fig. 4, in the global coordinate system, an included angle between the first vector and the second vector is smaller than a preset included angle range, which is exemplified by the preset included angle range being ± preset included angle in fig. 4. Thus, the electronic device 203 may be determined to be a second electronic device determined in step 302.
Fig. 4 is only an example that the second electronic device is located at the front left, and if the second electronic device is located behind the first electronic device, for example, as shown in fig. 1, the electronic device 206 is located behind the first electronic device 201, the user only needs to take a downward sliding track on the display screen of the first electronic device, in this case, the second vector is a straight line segment in a belt direction that slides downward on the display screen of the first electronic device 201, and the first vector may be composed of the position information of the first electronic device 201 and the position information of the electronic device 206. It can be seen that, in the embodiment of the application, if a user wants to share a file for a user behind the user or wants to cast a screen to a display screen behind the user, the user does not need to turn around to move a first electronic device toward a second electronic device behind the user, so that the purpose can be achieved, and the user experience can be improved.
In an alternative embodiment, one or more of the selected second electronic devices may be present. Fig. 5 illustrates another system architecture diagram, and as shown in fig. 5, there are two second electronic devices in front left of the first electronic device. The angle between a first vector and a second vector formed by the position information of the electronic device 203 and the position information of the first electronic device 201 in the figure is smaller than a preset angle range, and the angle is the electronic device 203 and the electronic device 213 respectively. An included angle between a first vector and a second vector formed by the position information of the electronic device 213 and the position information of the first electronic device 201 is also smaller than a preset included angle range. Thus, it can be determined that both the electronic device 203 and the electronic device 213 are the second electronic device.
In an alternative embodiment, the predetermined angle range may be fixed, for example, the second electronic device is always searched within ± 20 degrees of the predetermined angle range. In another alternative embodiment, different preset included angle ranges may be selected according to different distances from the first electronic device. For example, fig. 6 illustrates a system architecture diagram, as shown in fig. 6, the left front of the first electronic device 201 includes an electronic device 203 and an electronic device 214. The user slides to the left front of the user on the display screen of the first electronic device 201, and a second vector determined by the sliding track is shown in fig. 6. The angle between the first vector and the second vector formed by the position information of the first electronic device 201 and the position information of the electronic device 203 is less than 20 degrees, so the electronic device 203 belongs to the second electronic device. However, since the electronic device 214 is located at a short distance from the electronic device 201, an included angle between a first vector and a second vector formed by the position information of the electronic device 214 and the position information of the first electronic device 201 is large, for example, 35 degrees, and it can be seen that 35 degrees is significantly larger than 20 degrees. In this case, it may be that the user's true intent is to scratch to the electronic device 214 and want to share files to the electronic device 214. In order to prevent the electronic device 214 from being missed, an optional implementation manner is further provided in this embodiment of the present application, and for the N second electronic devices, if the distance between the second electronic device and the first electronic device is shorter, a preset included angle range in the first condition corresponding to the second electronic device is larger, that is, the preset included angle range is in an inverse relationship with the distance between the first electronic device and the second electronic device, the larger the distance between the first electronic device and the second electronic device is, the smaller the included angle range is, and the smaller the distance between the first electronic device and the second electronic device is, the larger the included angle range is. A corresponding relationship may exist between the distance and the preset included angle range, and the processor may determine the preset included angle range corresponding to the second electronic device according to the corresponding relationship and the distance between the first electronic device and the second electronic device. For example, as shown in fig. 6, when the electronic device 214 is closer to the first electronic device 201, the preset included angle range corresponding to the electronic device 214 may be selected to be ± 40 degrees, in this case, it can be seen that an included angle of-35 degrees between a first vector and a second vector formed by the electronic device 214 and the first electronic device 201 belongs to a range belonging to ± 40 degrees, and the electronic device 214 also belongs to the second electronic device. By the embodiment, missing of the electronic equipment closer to the first electronic equipment can be avoided.
The preset included angle range mentioned in the embodiment of the present application includes a value of a preset included angle with a maximum absolute value, and the preset included angle range refers to a range in which the absolute value of an included angle between the second vector and the second vector is smaller than the value of the preset included angle with the maximum absolute value, with the second vector as a center. Fig. 7 illustrates an exemplary embodiment, as shown in fig. 7, the preset included angle ranges are different within different distances from the first electronic device 201, and the preset included angle range corresponding to the electronic device located in the circle with the smallest diameter around the first electronic device is ± 40 degrees. The preset included angle range corresponding to the electronic equipment located in the circle with the second largest diameter around the first electronic equipment is +/-30 degrees. The preset included angle range corresponding to the electronic equipment located in the circle with the largest diameter around the first electronic equipment is +/-20 degrees.
Based on the examples given in fig. 6 and fig. 7, an embodiment of the present application provides a scheme for performing the step 302 described above, where the scheme includes: for one second electronic device of the N second electronic devices, determining a preset included angle range in a first condition corresponding to the second electronic device according to a preset distance range to which a distance between the second electronic device and the first electronic device belongs and a corresponding relationship between the preset distance range and the preset included angle range; the smaller the maximum distance value in the preset distance range is, the larger the corresponding maximum included angle in the preset included angle range corresponding to the preset distance range is. That is to say, in this embodiment of the application, a corresponding relationship between a preset distance range and a preset included angle range may be stored on a first electronic device, where the distance range in the corresponding relationship refers to a distance between a second electronic device and the first electronic device, the first electronic device may first determine a distance between a target electronic device and the first electronic device, and then find out a preset included angle range corresponding to the distance from the corresponding relationship, and if an included angle between a first vector and a second vector, which is formed between location information of the target electronic device and location information of the first electronic device, belongs to the found preset included angle range, the target electronic device belongs to the second electronic device.
In step 302, in an optional implementation manner, according to the position information of the first electronic device, the sliding track, and the position information of N second electronic devices, N second electronic devices that satisfy the first condition are determined from M third electronic devices that are searched, where M is an integer not less than N; and displaying the identification information of the N second electronic devices on the display screen of the first electronic device. In the embodiment of the present application, the electronic devices around the searched first electronic device are referred to as M third electronic devices. Alternatively, the electronic devices around the first electronic device may be searched after the sliding track of the user on the first electronic device is acquired. Alternatively, M third electronic devices may be searched in advance, for example, electronic devices around the first electronic device may be searched before step 301. For another example, when it is determined that the user has a shared file or a screen-casting operation, the processor in the first electronic device may search for M third electronic devices around the user, for example, when the user selects one photo or video on the display screen of the first electronic device, in this case, the first electronic device may determine that the user has an expectation of sharing the file, and search for the M third electronic devices around the first electronic device, so that after the sliding track of the user is obtained, the N second electronic devices meeting the first condition may be directly screened from the M third electronic devices that have been searched. Therefore, the efficiency of selecting the N second electronic devices can be improved.
In an optional implementation manner, if M is greater than N, the display screen of the first electronic device may display identification information of N second electronic devices in addition. Optionally, the identification information of the remaining (M-N) third electronic devices, except the N second electronic devices, of the M third electronic devices may also be displayed.
There are various ways in which the identification information of the electronic device (including the identification information of the N second electronic devices, and optionally, the identification information of the (M-N) third electronic devices) is displayed on the display screen of the first electronic device, and the following scheme is used for exemplary explanation. The following example introduces an example of how the identification information of the N second electronic devices is presented. Alternatively, the identification information of the (M-N) third electronic devices may be individually placed in a different place, such as a place that may be the back of the list of identification information. As another example, a location area near the top of the first electronic device, and the like may also be possible.
And b1, displaying the identification information of the N second electronic devices on the display screen of the first electronic device in a list form. When the identification information of the second electronic device is the device name, optionally, the N second electronic devices may be sorted according to the device name, such as according to the initial letter of the device name, and so on.
And b2, displaying the identification information of the N second electronic devices in a list form. The identification information of the N second electronic devices may be displayed on the display screen of the first electronic device according to the weight of the second electronic device of the N second electronic devices. For example, the higher the weight of the second electronic device, the higher the ranking of the identification information of the second electronic device.
In the scheme b2 and the following scheme b3, scheme b4, scheme b5, and scheme b6, optionally, for one of the N second electronic devices, the weight of the second electronic device may be related to an angle between the second vector corresponding to the second electronic device and the first vector, and/or a distance between the second electronic device and the first electronic device. For example, the smaller the angle between the first vector and the second vector corresponding to the second electronic device is, the greater the weight of the second electronic device is. Or, the closer the second electronic device is to the first electronic device, the higher the weight of the second electronic device is. Or setting a duty ratio coefficient for an included angle between the second vector corresponding to the second electronic device and the first vector and a distance between the second electronic device and the first electronic device, for example, the duty ratio coefficient corresponding to the included angle between the second vector corresponding to the second electronic device and the first vector is 0.7, the duty ratio coefficient corresponding to the distance between the second electronic device and the first electronic device is 0.3, for a second electronic device, multiplying the included angle between the second vector corresponding to the second electronic device and the first vector by 0.7, and adding (the product of 0.3 and the distance between the second electronic device and the first electronic device), where the obtained result is the weight of the second electronic device.
Scheme b3, for one of the N second electronic devices, the larger the weight of the second electronic device is, the larger the identification information font of the second electronic device is. Fig. 8 exemplarily shows a schematic view of a presentation interface of identification information of N second electronic devices, and as shown in fig. 8, the identification information of the N second electronic devices are "piece", "li", "yang", "far" and "zhao", respectively, where the "piece" is the identification information of the second electronic device with the highest weight, and thus the font of the "piece" is significantly larger. Fig. 9 is a schematic view of another presentation interface for the identification information of N second electronic devices, where, as shown in fig. 9, the N second electronic devices are electronic devices that can be used for screen projection, and the identification information of the N second electronic devices are "TV 1", "TV 2" and "TV 3", respectively, where "TV 1" is the identification information of the second electronic device with the largest weight, and thus the font of "TV 1" is significantly larger.
And b4, for one of the N second electronic devices, the greater the weight of the second electronic device, the closer the position of the identification information of the second electronic device is to the top end of the display screen of the first electronic device. As shown in fig. 8, "sheet" is identification information of the second electronic device with the largest weight, and thus the closer the position of "sheet" is to the top of the display screen of the first electronic device. As shown in fig. 9, "TV 1" is identification information of the second electronic device having the largest weight, and thus the closer the position of "TV 1" is to the top of the display screen of the first electronic device.
Scheme b5, for one of the N second electronic devices, the larger the weight of the second electronic device is, the larger the icon displaying the identification information of the second electronic device on the display screen of the first electronic device is. As shown in fig. 8, "sheet" is identification information of the second electronic device having the largest weight, and therefore the icon of "sheet" is large. As shown in fig. 9, the TV1 "is the identification information of the second electronic device having the largest weight, and thus the icon of the" TV1 "is large.
And b6, displaying the identification information of the N second electronic devices on the display screen of the first electronic device in the form of network topology, wherein for one of the N second electronic devices, the relative position of the identification information of the second electronic device and the identification information of the first electronic device on the display screen of the first electronic device matches the relative position of the second electronic device and the first electronic device in the terrestrial coordinate system. Fig. 12 exemplarily shows a schematic diagram showing the identification information of the second electronic device shown in fig. 6 in the form of a network topology, as shown in fig. 12, the left side of the first electronic device 201 is an electronic device 214, and the far left front side is an electronic device 203.
With respect to the step 302, after the user slides on the display screen of the first electronic device and generates the sliding track, the first electronic device may move, in which case the content displayed on the display screen of the first electronic device may or may not change. Specifically, in the first optional implementation manner, after the identification information of the N second electronic devices is displayed on the display screen of the first electronic device according to the weight of one of the N second electronic devices, before data is sent to one or more second electronic devices of the N second electronic devices, if it is detected that the first electronic device moves, the interface on the display screen of the first electronic device, on which the identification information of the N second electronic devices is displayed, may be maintained unchanged. That is to say, N second electronic devices have been screened out according to the sliding track of the user on the first electronic device, and identification information of the N second electronic devices is displayed, and if it is detected that the first electronic device has moved, for example, the position information of the first electronic device has changed, or the position of the first electronic device is still the current position, but the orientation of the first electronic device has changed, for example, the positions of the head and the tail of the first electronic device have been switched, in this case, the sliding track also changes in the terrestrial coordinate system, and in this embodiment, the results of the N second electronic devices screened out before the first electronic device has moved are still maintained. It can also be understood that, after the first electronic device moves or rotates, the operation of searching for the peripheral electronic devices is still performed (the search is not completed), and then the search may be continued based on the second vector located in the terrestrial coordinate system before the first electronic device moves or rotates, or in this embodiment, the second vector does not change with the movement/rotation of the mobile phone, and it is determined that the object included between the second vector and the first vector is still the second vector before the first electronic device moves or rotates.
In a second optional implementation manner, after the identification information of the N second electronic devices is displayed on the display screen of the first electronic device according to the weight of each of the N second electronic devices, before data is sent to one or more second electronic devices of the N second electronic devices, if it is detected that the first electronic device moves, when the identification information of the N second electronic devices is displayed on the display screen of the first electronic device in a network topology form, the positions of the displayed identification information of the N second electronic devices are updated on the display screen of the first electronic device according to a change in the relative position between each of the N second electronic devices and the moved first electronic device, where the relative position between the identification information of each second electronic device previously displayed on the display screen of the first electronic device and the identification information of the first electronic device, and matching the relative positions of the second electronic devices and the moved first electronic device. In this embodiment, N second electronic devices have been screened according to the sliding trajectory of the user on the first electronic device, and the identification information of the N second electronic devices is displayed, and if it is detected that the first electronic device has moved, for example, the position information of the first electronic device has changed, or the position of the first electronic device is still the current position, but the orientation of the first electronic device has changed, for example, the positions of the head and the tail of the first electronic device have been switched (which may also be referred to as that the first electronic device has rotated), in this case, the sliding trajectory also changes in the terrestrial coordinate system, and in this embodiment, the results of the N second electronic devices screened before the first electronic device has moved are still maintained. It can also be understood that, after the first electronic device moves or rotates, the operation of searching for the peripheral electronic devices is still performed (the search is not completed), and then the search may be continued based on the second vector located in the terrestrial coordinate system before the first electronic device moves or rotates, or in this embodiment, the second vector does not change with the movement/rotation of the mobile phone, and the object of determining the angle between the second vector and the first vector is still the second vector before the first electronic device moves or rotates. However, on the display screen of the first electronic device, the relative position information of the second electronic device with respect to the first electronic device is to be updated. In this way, when the identity of the electronic devices is presented in the form of a network topology, the display positions of these second electronic devices on the display screen on the first device can be refreshed after the first electronic device moves or rotates.
For example, in the map App, the user's phone is rotated, but the map is still similar to being laid on the ground. Fig. 13 exemplarily shows a schematic diagram of a display manner of the identification information of the second electronic device shown on the display screen after the first electronic device in fig. 12 moves, as shown in fig. 13, the first electronic device moves a certain distance to the front, in this case, under the condition that the searched identification information of the N second electronic devices shown on the display screen of the first electronic device is maintained, only the relative position relationship between the second electronic device shown on the display screen of the first electronic device and the first electronic device is updated, for example, as shown in fig. 13, when the first electronic device moves a certain distance to the front of the first electronic device, the electronic device 214 correspondingly moves to the left back of the first electronic device 201, and the electronic device 203 correspondingly moves a certain distance to the direction of the first electronic device.
In a third optional implementation manner, after displaying, according to the weight of each of the N second electronic devices, identification information of the N second electronic devices on a display screen of the first electronic device, and before sending data to one or more second electronic devices of the N second electronic devices, if it is detected that the first electronic device moves, determining one or more third electronic devices according to the position information of the moved first electronic device and the sliding track; wherein for a third electronic device of the one or more third electronic devices, the third electronic device satisfies a second condition; wherein the second condition comprises: on the earth coordinate system, an included angle between the third vector and the fourth vector is within a preset included angle range; the third vector is determined by the position information of the third electronic device and the moved position information of the first electronic device; the direction of the fourth vector matches the sliding direction indicated by the sliding trajectory. That is, N second electronic devices have been screened out according to the sliding track of the user on the first electronic device, and identification information of the N second electronic devices is displayed, and if it is detected that the first electronic device has moved, for example, the position information of the first electronic device has changed, or the position of the first electronic device is still the current position, but the orientation of the first electronic device has changed, for example, the positions of the head and the tail of the first electronic device have been switched, in this case, the sliding track also changes in the terrestrial coordinate system, and then the sliding track is updated to a new second vector in the terrestrial coordinate system, and in this embodiment, the second electronic devices meeting the requirements are re-screened according to the new second vector.
In step 303, data may be sent to one or more of the N second electronic devices, or to the N second electronic devices. There are various ways, which are exemplified below.
Mode c1, the first electronic device receives a first signaling, where the first signaling includes indication information for indicating a target electronic device, where the target electronic device is one or more of the N second electronic devices; and sending data to the target electronic device according to the first signaling. In this embodiment, the identification information of the N second electronic devices may be displayed on the first electronic display screen, so that the user may select, on the display screen, the identification information corresponding to each of the one or more target electronic devices that need to send data.
In an optional implementation manner, the first electronic device may further display, on a display screen displaying identification information of the N second electronic devices, a preselected one of the second electronic devices as a quasi-target electronic device, and display a prompt box for inquiring whether the user shares a file with the quasi-target electronic device, or inquiring whether the user screens the quasi-target electronic device. The user may click "yes" in the prompt box, so that the processor in the first electronic device may take the quasi-target electronic device as the target electronic device and send data to the target electronic device after receiving the instruction of clicking "yes". Or the user may click "no" in the prompt box or reselect one or more second electronic devices as the target electronic devices. The quasi-target electronic device may be determined according to weight values of a plurality of second electronic devices, for example, the second electronic device with the largest weight is the quasi-target electronic device.
Fig. 10 is a schematic view of a presentation interface illustrating identification information of N second electronic devices, as shown in fig. 10, "sheet" is a quasi-target electronic device, and "share photos with" sheet "is displayed on a display screen of a first electronic device? If the user clicks "yes", it is indicated that "one" is the target second electronic device, the first electronic device shares the photo with the "one" second electronic device, and if the user clicks "no", the user may select another second electronic device as the target device to send data, for example, "lie" and "young" shown in fig. 10 may all be the second electronic devices selected by the user.
Fig. 11 is a schematic view of a presentation interface illustrating identification information of N second electronic devices on the basis of fig. 9, where "TV 1" is a quasi-target electronic device, and "screen shot to" TV1 "is displayed on the display screen of the first electronic device, as shown in fig. 11? If the user clicks "yes", the first electronic device casts the screen of the first electronic device to the display screen of the second electronic device corresponding to the TV1 for display. If the user clicks "no", the user may select another second electronic device as the target device to transmit data, for example, "tv 2" and "tv 3" shown in fig. 11 may both be the second electronic device selected by the user.
In the manner c2, the first electronic device may transmit data to the second electronic device with the highest weight among the N second electronic devices. Wherein, for one second electronic device of the N second electronic devices, the weight of the second electronic device may refer to the related description of the foregoing scheme b 2. In this embodiment, the first electronic device may not ask the user to which second electronic device the data should be transmitted, and may determine the second electronic device with the largest weight as the target electronic device and transmit the data to the target electronic device.
In the mode c3, when one second electronic device exists in the N second electronic devices, and the system account registered on the second electronic device is the same as the system account registered on the first electronic device, the first electronic device sends data to the second electronic device. In this embodiment, it is not necessary to ask the user which second electronic device the data should be transmitted to, and the data may be transmitted to one second electronic device when it is found that the system account registered in the second electronic device is the same as the system account registered in the first electronic device, or the second electronic device having the registered system account which is the same as the system account registered in the first electronic device may be determined as the target electronic device, and the data may be transmitted to the target electronic device.
In the mode c4, in the modes c2 and c3, if the determined target electronic device is the second electronic device to be projected, the first electronic device may further query the user whether to confirm that the second electronic device is projected. Alternatively, in the above modes c2 and c3, if it is determined that the data is shared with the target electronic device, the user may be asked again whether to confirm that the data is shared with the target electronic device.
With respect to the step 301, before the first electronic device acquires the sliding track of the user on the first electronic device, there may be a plurality of embodiments of the sliding operation performed by the user on the first electronic device, which is described as an example below.
Mode d1, the user selects the target file. The target file can be a file page such as a picture, a video, a website and the like. The target file may be one or a selected plurality. The method includes the steps of obtaining a sliding track of a user on first electronic equipment, namely determining a target file, and obtaining a sliding track of the user in a second preset area through a second preset operation gesture, wherein the second preset area comprises an interface where the target file is located and/or a frame of the first electronic equipment. That is, in this embodiment, without page jumping, the user may slide on the display screen of the first electronic device with three fingers, four fingers, or five fingers, and the first electronic device extracts the slide trajectory in this case. And one or more devices of the N second electronic devices are selected according to the sliding track, and the target file is shared with the selected one or more devices. Of course, the target file may be projected to one or more second electronic devices of the N second electronic devices selected according to the sliding track.
In the manner d2, the sliding track of the user on the first electronic device may be obtained, or the target file may be determined first, and the sliding track of the user in a third preset area is obtained, where the third preset area includes a first interface and/or a border of the first electronic device, and the first interface is an interface different from an interface where the target file is located. In this way, after the user selects the target file in the current interface displayed on the display screen of the first electronic device, the interface currently displayed on the first electronic device jumps to the next interface, or a new interface is added to the current file selection interface. For example, after selecting a target file, the user may click on "send" or "screen-out" operation, or perform a preset action to initiate a "send" or "screen-out" command, and then the page jumps to the next interface, or add a layer of interface on the current file selection interface. The first interface is the interface after the jump, and the user performs sliding operation on the first interface. Because the first interface is the interface after the jump or the newly added one-layer interface, the sliding operation of the user may be the sliding of any number of fingers on the first interface displayed on the display screen of the first electronic device or the sliding of the palm on the first interface without limiting the specific number of fingers.
In the mode d3, after the user selects the target file, the interface is skipped without the need, or the current interface jumps to the next interface, or a layer of interface is added on the current file selection interface. The user slides on the frame of the first electronic device. The sliding on the frame can be one finger or a plurality of fingers.
Mode d4, the user can click on the "send" or "screen shot" operation, or perform a preset action to initiate a "send" or "screen shot" command. For example, a sliding track of a user in a first preset area of first electronic equipment through a first preset operation gesture is obtained; the first preset area comprises a display screen of the first electronic device and/or a frame of the first electronic device. Specifically, the user may slide the bezel of the first electronic device, i.e., initiate a "screen-cast" command. And screening out the second electronic equipment according to the sliding track of the user, and projecting the content displayed on the current display screen of the first electronic equipment to the second electronic equipment. Optionally, after the second electronic device is screened out, a link of inquiring whether to screen on the second electronic device may be added, and if the user clicks "confirm", the first electronic device may screen the content displayed on the current display screen on the display screen of the second electronic device again.
According to the foregoing method, fig. 14 is a schematic structural diagram of an electronic device provided in the embodiment of the present application, and as shown in fig. 14, the electronic device may be the first electronic device described above. The first electronic device may be a terminal device, or may be a chip or a circuit, such as a chip or a circuit that may be provided to the terminal device.
Further, the electronic device 1301 may further include a bus system, and the processor 1302, the memory 1304, and the transceiver 1303 may be connected via the bus system.
It should be understood that the processor 1302 may be a chip. For example, the processor 1302 may be a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), a system on chip (SoC), a Central Processing Unit (CPU), a Network Processor (NP), a Digital Signal Processor (DSP), a Microcontroller (MCU), a Programmable Logic Device (PLD), or other integrated chips.
In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 1302. The steps of a method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor 1302. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 1304, and the processor 1302 reads the information in the memory 1304 and performs the steps of the above method in combination with hardware thereof.
It should be noted that the processor 1302 in the embodiment of the present application may be an integrated circuit chip having signal processing capability. In implementation, the steps of the above method embodiments may be performed by integrated logic circuits of hardware in a processor or by instructions in the form of software. The processor described above may be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
It will be appreciated that the memory 1304 in the subject embodiment can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. The non-volatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an electrically Erasable EPROM (EEPROM), or a flash memory. Volatile memory can be Random Access Memory (RAM), which acts as external cache memory. By way of example, and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), dynamic random access memory (dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), SLDRAM (synchronous DRAM), and direct rambus RAM (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
The electronic device 1301 may include a processor 1302, a transceiver 1303, and a memory 1304. The memory 1304 is configured to store instructions, and the processor 1302 is configured to execute the instructions stored by the memory 1304 to implement any one or more of the corresponding methods shown in fig. 1 to 11.
In an alternative embodiment, the processor 1302 is configured to obtain operation information of a user on a first electronic device, where the operation information is used to indicate a target direction; determining N second electronic devices according to the position information of the first electronic device, the target direction and the position information of the N second electronic devices, wherein N is a positive integer; a transceiver 1303, configured to transmit data to one or more of the N second electronic devices; wherein each second electronic device satisfies a first condition: the included angle between the first vector and the second vector is within a preset included angle range; the first vector is determined by the position information of the second electronic equipment and the position information of the first electronic equipment; the direction of the second vector is the same as the target direction.
In an optional implementation manner, the processor 1302 is specifically configured to:
determining N second electronic devices meeting the first condition from M searched third electronic devices according to the position information of the first electronic device, the target direction and the position information of the N second electronic devices, wherein M is an integer not less than N;
and displaying the identification information of the N second electronic devices on the display screen of the first electronic device.
In an optional implementation manner, the processor 1302 is specifically configured to:
displaying the identification information of the N second electronic devices on a display screen of the first electronic device according to the weight of each second electronic device in the N second electronic devices;
wherein, for a second electronic device of the N second electronic devices, the weight of the second electronic device is related to an angle between the second vector corresponding to the second electronic device and the first vector, and/or a distance between the second electronic device and the first electronic device.
In an alternative embodiment, the processor 1302 is further configured to:
if the first electronic equipment is detected to move, maintaining an interface on a display screen of the first electronic equipment, wherein the interface is displayed with the identification information of the N second electronic equipment, unchanged; or;
if the first electronic device is detected to move, under the condition that the identification information of N second electronic devices is displayed on the display screen of the first electronic device in a network topology form, updating the positions of the identification information of the N second electronic devices on the display screen of the first electronic device according to the change of the relative position between the second electronic device in the N second electronic devices and the moved first electronic device, wherein the relative position between the identification information of the second electronic device and the identification information of the first electronic device on the display screen of the first electronic device is matched with the relative position between the second electronic device and the moved first electronic device; or;
if the first electronic equipment is detected to move, determining one or more third electronic equipment according to the position information of the first electronic equipment after moving and the target direction on the first electronic equipment after moving; wherein, for one of the one or more third electronic devices, the third electronic device satisfies a second condition: an included angle between the third vector and the fourth vector is within a preset included angle range; the third vector is determined by the position information of the third electronic equipment and the moved position information of the first electronic equipment; the direction of the fourth vector is matched with the target direction on the first electronic equipment after the movement occurs.
In an optional implementation manner, the processor 1302 is further configured to perform: receiving, by the transceiver 1303, first signaling including indication information indicating a target electronic device, where the target electronic device is one or more of the N second electronic devices; and sending data to the target electronic device according to the first signaling.
In an alternative embodiment, the processor 1302 is further configured to: transmitting data to the second electronic device with the largest weight among the N second electronic devices through the transceiver 1303; wherein, for a second electronic device of the N second electronic devices, the weight of the second electronic device is related to an angle between the second vector corresponding to the second electronic device and the first vector, and/or a distance between the second electronic device and the first electronic device.
In an alternative embodiment, the processor 1302 is further configured to: when one second electronic device exists in the N second electronic devices, and the system account registered on the second electronic device is the same as the system account registered on the first electronic device, data is transmitted to the second electronic device through the transceiver 1303.
In an optional implementation manner, the processor 1302 is specifically configured to: acquiring a sliding track of a user in a first preset area of the first electronic device through a first preset operation gesture; the first preset area comprises a display screen of the first electronic device and/or a frame of the first electronic device.
In an optional implementation manner, the processor 1302 determines the target file, and obtains a sliding track performed by the user through a second preset operation gesture in a second preset area, where the second preset area includes an interface where the target file is located and/or a frame of the first electronic device.
In an optional implementation manner, the processor 1302 determines the target file, and obtains a sliding track performed by a user in a third preset area, where the third preset area includes a first interface and/or a border of the first electronic device, and the first interface is an interface different from an interface where the target file is located.
In an optional implementation manner, the processor 1302 obtains operation information of a user operating a tool displayed on the display screen of the first electronic device, and determines, according to the operation information, the target direction indicated by the tool after the user operates the tool.
In an optional implementation manner, the processor 1302 is specifically configured to: for one of the N second electronic devices: determining a preset included angle range in a first condition corresponding to the second electronic device according to a preset distance range to which the distance between the second electronic device and the first electronic device belongs and a corresponding relationship between the preset distance range and the preset included angle range; the smaller the maximum distance value in the preset distance range is, the larger the corresponding maximum included angle in the preset included angle range corresponding to the preset distance range is; and determining the N second electronic devices according to the position information of the first electronic device, the target direction, the position information of the N second electronic devices and the determined preset included angle range.
In an optional implementation manner, the operation information is a sliding track of the user on the first electronic device, and the sliding track is used for indicating a target direction;
the second vector satisfies one or more of:
the second vector comprises at least two points on the sliding track; or;
the ratio of the number of points coincident with the second vector on the sliding track to the total number of points included on the sliding track is greater than a preset ratio; or;
the start point of the second vector is the start point of the slide trajectory, and the end point of the second vector is the end point of the slide trajectory.
In an optional implementation, the identification information of the N second electronic devices satisfies one or more of the following:
for one second electronic device of the N second electronic devices, the larger the weight of the second electronic device is, the larger the identification information font of the second electronic device is;
for one second electronic device of the N second electronic devices, the greater the weight of the second electronic device, the closer the position of the identification information of the second electronic device is to the top end of the display screen of the first electronic device;
for one second electronic device of the N second electronic devices, the larger the weight of the second electronic device is, the larger an icon displaying the identification information of the second electronic device on the display screen of the first electronic device is;
for one of the N second electronic devices, the relative position of the identification information of the second electronic device and the identification information of the first electronic device on the display screen of the first electronic device is matched with the relative position of the second electronic device and the first electronic device.
In an optional implementation manner, for one of the N second electronic devices, the closer the second electronic device is to the first electronic device, the larger the preset included angle range in the first condition corresponding to the second electronic device is.
For the concepts, explanations, details and other steps related to the technical solutions provided in the embodiments of the present application related to the electronic device, please refer to the descriptions of the foregoing methods or other embodiments, which are not repeated herein.
Fig. 15 is a schematic structural diagram of an electronic device according to the foregoing method, where as shown in fig. 15, the electronic device 1401 may include a communication interface 1403, a processor 1402, and a memory 1404. The communication interface 1403, which is used for inputting and/or outputting information; the processor 1402 is configured to execute a computer program or instructions, so that the electronic device 1401 implements the method on the first electronic device side in the related schemes in fig. 1 to fig. 14. In this embodiment of the application, the communication interface 1403 may implement the scheme implemented by the transceiver 1303 in fig. 14, the processor 1402 may implement the scheme implemented by the processor 1302 in fig. 14, and the memory 1404 may implement the scheme implemented by the memory 1304 in fig. 14, which is not described herein again.
Based on the foregoing embodiments and the same concept, fig. 16 is a schematic diagram of an electronic device provided in an embodiment of the present application, and as shown in fig. 16, the electronic device 1501 may be a first electronic device, and the electronic device 1501 may be a terminal device, or may be a chip or a circuit, for example, a chip or a circuit that may be disposed on the terminal device.
A processing unit 1502 for acquiring operation information of a user, the operation information being used to indicate a target direction; determining N second electronic devices according to the position information of the first electronic device, the target direction and the position information of the N second electronic devices, wherein N is a positive integer; a transceiving unit 1503, configured to transmit data to one or more of the N second electronic devices; wherein each second electronic device satisfies a first condition: the included angle between the first vector and the second vector is within a preset included angle range; the first vector is determined by the position information of the second electronic device and the position information of the first electronic device; the direction of the second vector is the same as the target direction.
In an optional implementation manner, the processing unit 1502 is specifically configured to:
determining N second electronic devices meeting the first condition from M searched third electronic devices according to the position information of the first electronic device, the target direction and the position information of the N second electronic devices, wherein M is an integer not less than N;
and displaying the identification information of the N second electronic devices on the display screen of the first electronic device.
In an optional implementation manner, the processing unit 1502 is specifically configured to:
displaying the identification information of the N second electronic devices on a display screen of the first electronic device according to the weight of each second electronic device in the N second electronic devices;
wherein, for a second electronic device of the N second electronic devices, the weight of the second electronic device is related to an angle between the second vector corresponding to the second electronic device and the first vector, and/or a distance between the second electronic device and the first electronic device.
In an optional implementation, the processing unit 1502 is further configured to:
if the first electronic equipment is detected to move, maintaining an interface on a display screen of the first electronic equipment, wherein the interface is displayed with the identification information of the N second electronic equipment, unchanged; or;
if the first electronic device is detected to move, under the condition that the identification information of N second electronic devices is displayed on the display screen of the first electronic device in a network topology form, updating the positions of the identification information of the N second electronic devices on the display screen of the first electronic device according to the change of the relative position between the second electronic device in the N second electronic devices and the moved first electronic device, wherein the relative position between the identification information of the second electronic device and the identification information of the first electronic device on the display screen of the first electronic device is matched with the relative position between the second electronic device and the moved first electronic device; or;
if the first electronic equipment is detected to move, determining one or more third electronic equipment according to the position information of the first electronic equipment after moving and the target direction on the first electronic equipment after moving; wherein, for one of the one or more third electronic devices, the third electronic device satisfies a second condition: an included angle between the third vector and the fourth vector is within a preset included angle range; the third vector is determined by the position information of the third electronic equipment and the moved position information of the first electronic equipment; the direction of the fourth vector is matched with the target direction on the first electronic equipment after the movement occurs.
In an optional implementation, the processing unit 1502 is further configured to perform: receiving, by the transceiving unit 1503, first signaling, where the first signaling includes indication information used to indicate a target electronic device, where the target electronic device is one or more of the N second electronic devices; and sending data to the target electronic device according to the first signaling.
In an optional implementation, the processing unit 1502 is further configured to perform: transmitting data to the second electronic device with the highest weight among the N second electronic devices through the transceiving unit 1503; wherein, for a second electronic device of the N second electronic devices, the weight of the second electronic device is related to an angle between the second vector corresponding to the second electronic device and the first vector, and/or a distance between the second electronic device and the first electronic device.
In an optional implementation, the processing unit 1502 is further configured to perform: when there is a second electronic device in the N second electronic devices and the system account number logged in the second electronic device is the same as the system account number logged in the first electronic device, data is sent to the second electronic device through the transceiver unit 1503.
In an optional implementation manner, the processing unit 1502 is specifically configured to: acquiring a sliding track of a user in a first preset area of the first electronic equipment through a first preset operation gesture; the first preset area comprises a display screen of the first electronic device and/or a frame of the first electronic device.
In an optional implementation manner, the processing unit 1502 determines a target file and obtains a sliding track performed by a user in a second preset area through a second preset operation gesture, where the second preset area includes an interface where the target file is located and/or a border of the first electronic device.
In an optional implementation manner, the processing unit 1502 determines the object file, and obtains a sliding track performed by a user in a third preset area, where the third preset area includes a first interface and/or a border of the first electronic device, and the first interface is an interface different from an interface where the object file is located.
In an optional implementation manner, the processing unit 1502 obtains operation information of a user operating a tool displayed on the display screen of the first electronic device, and determines, according to the operation information, the target direction indicated by the tool after the user operates the tool.
In an optional implementation manner, the processing unit 1502 is specifically configured to: for one of the N second electronic devices: determining a preset included angle range in a first condition corresponding to the second electronic device according to a preset distance range to which the distance between the second electronic device and the first electronic device belongs and a corresponding relationship between the preset distance range and the preset included angle range; the smaller the maximum distance value in the preset distance range is, the larger the corresponding maximum included angle in the preset included angle range corresponding to the preset distance range is; and determining the N second electronic devices according to the position information of the first electronic device, the target direction, the position information of the N second electronic devices and the determined preset included angle range.
For the concepts, explanations, and detailed descriptions and other steps related to the technical solutions provided in the embodiments of the present application related to the electronic device, reference is made to the foregoing methods or descriptions related to these contents in other embodiments, which are not described herein again.
It is to be understood that the functions of the units in the electronic device 1501 can refer to the implementation of the corresponding method embodiments, and are not described herein again.
It should be understood that the above division of the units of the electronic device is only a division of logical functions, and the actual implementation may be wholly or partially integrated into one physical entity or may be physically separated. In this embodiment of the application, the transceiver unit 1503 may be implemented by the transceiver 1303 in fig. 14, and the processing unit 1502 may be implemented by the processor 1302 in fig. 14.
According to the method provided by the embodiment of the present application, the present application further provides a computer program product, which includes: computer program code which, when run on a computer, causes the computer to perform the method of any one of the embodiments shown in figures 1 to 14.
According to the method provided by the embodiment of the present application, the present application further provides a computer-readable storage medium storing program code, which when run on a computer, causes the computer to execute the method of any one of the embodiments shown in fig. 1 to 14.
According to the method provided by the embodiment of the present application, the present application further provides a system, which includes the aforementioned one or more first electronic devices and one or more second electronic devices.
In the above embodiments, all or part of the implementation may be realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The processes or functions described in accordance with the embodiments of the present application occur in whole or in part when the computer instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more of the available media. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a Digital Video Disk (DVD)), or a semiconductor medium (e.g., a Solid State Disk (SSD)), among others.
The first electronic device in the above-mentioned apparatus embodiments corresponds to the first electronic device in the method embodiments, and the corresponding module or unit executes the corresponding steps, for example, the communication unit (transceiver) executes the step of receiving or transmitting in the method embodiments, and other steps besides transmitting and receiving may be executed by the processing unit (processor). The functions of the specific elements may be referred to in the respective method embodiments. The number of the processors can be one or more.
As used in this specification, the terms "component," "module," "system," and the like are intended to refer to a computer-related entity, either hardware, firmware, a combination of hardware and software, or software in execution. For example, a component may be, but is not limited to being, a process running on a processor, an object, an executable, a thread of execution, a program, and/or a computer. By way of illustration, both an application running on a computing device and the computing device can be a component. One or more components can reside within a process and/or thread of execution and a component may be localized on one computer and/or distributed between two or more computers. In addition, these components can execute from various computer readable media having various data structures stored thereon. The components may communicate by way of local and/or remote processes such as in accordance with a signal having one or more data packets (e.g., data from two components interacting with one another over a local system, distributed system, and/or network, such as the internet with other systems by way of the signal).
Those of ordinary skill in the art will appreciate that the various illustrative logical blocks and steps (step) 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.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the unit is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or 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.
This functionality, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a portable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, an optical disk, or other various media capable of storing program codes. The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall 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 (18)

1. A data transmission method is applied to first electronic equipment and comprises the following steps:
the method comprises the steps that first electronic equipment obtains operation information of a user, wherein the operation information is used for indicating a target direction;
the first electronic device determines N second electronic devices according to the position information of the first electronic device, the target direction and the position information of the N second electronic devices, wherein N is a positive integer; wherein each of the second electronic devices satisfies a first condition: the included angle between the first vector and the second vector is within a preset included angle range; the first vector is determined by the position information of the second electronic device and the position information of the first electronic device; the direction of the second vector is the same as the target direction;
displaying identification information of the N second electronic devices on a display screen of the first electronic device according to the weight of each second electronic device in the N second electronic devices; wherein, for a second electronic device of the N second electronic devices, the weight of the second electronic device is related to an included angle between the second vector corresponding to the second electronic device and the first vector, and/or a distance between the second electronic device and the first electronic device;
the first electronic device sends data to one or more of the N second electronic devices;
wherein the identification information of the N second electronic devices meets one or more of the following:
for one second electronic device of the N second electronic devices, the larger the weight of the second electronic device is, the larger the identification information font of the second electronic device is;
for one second electronic device of the N second electronic devices, the greater the weight of the second electronic device, the closer the position of the identification information of the second electronic device is to the top end of the display screen of the first electronic device;
for one second electronic device of the N second electronic devices, the larger the weight of the second electronic device is, the larger an icon displaying the identification information of the second electronic device on the display screen of the first electronic device is;
wherein, the determining the N second electronic devices according to the location information of the first electronic device, the target direction, and the location information of the N second electronic devices includes:
the first electronic device determines a preset included angle range in a first condition corresponding to the second electronic device according to a preset distance range to which the distance between the second electronic device and the first electronic device belongs and a corresponding relation between the preset distance range and a preset included angle range, aiming at one second electronic device in the N second electronic devices;
the smaller the maximum distance value in the preset distance range is, the larger the corresponding maximum included angle in the preset included angle range corresponding to the preset distance range is;
and the first electronic equipment determines the N second electronic equipment according to the position information of the first electronic equipment, the target direction, the position information of the N second electronic equipment and the determined preset included angle range.
2. The method of claim 1, wherein the first vector is determined with location information of the first electronic device as a starting point and location information of the second electronic device as an ending point.
3. The method of claim 1 or 2, wherein the operation information is a sliding track of the user on the first electronic device, the sliding track being used for indicating the target direction;
the second vector satisfies one or more of:
the second vector includes at least two points on the sliding trajectory; or;
the ratio of the number of points on the sliding track, which are overlapped with the second vector, to the total number of points included on the sliding track is greater than a preset ratio; or;
the starting point of the second vector is the starting point of the sliding track, and the end point of the second vector is the end point of the sliding track.
4. The method of claim 3, wherein the determining the N second electronic devices based on the location information of the first electronic device, the target direction, and location information of the N second electronic devices comprises:
and determining N second electronic devices meeting the first condition from M searched third electronic devices according to the position information of the first electronic device, the target direction and the position information of the N second electronic devices, wherein M is an integer not less than N.
5. The method of claim 1 or 2, wherein, after displaying the identification information of the N second electronic devices on the display screen of the first electronic device according to the weights of the second electronic devices of the N second electronic devices, before transmitting data to one or more of the N second electronic devices, further comprising:
if the first electronic device is detected to move, maintaining an interface on a display screen of the first electronic device, wherein the interface is displayed with the identification information of the N second electronic devices; or;
if the first electronic device is detected to move, under the condition that the identification information of the N second electronic devices is displayed on the display screen of the first electronic device in a network topology form, updating the positions of the identification information of the N second electronic devices on the display screen of the first electronic device according to the change of the relative positions between the second electronic device in the N second electronic devices and the moved first electronic device, wherein the relative positions of the identification information of the second electronic device and the identification information of the first electronic device on the display screen of the first electronic device are matched with the relative positions of the second electronic device and the moved first electronic device; or;
if the first electronic device is detected to move, determining one or more third electronic devices according to the position information of the first electronic device after the movement and the target direction on the first electronic device after the movement; wherein for a third electronic device of the one or more third electronic devices, the third electronic device satisfies a second condition: an included angle between the third vector and the fourth vector is within a preset included angle range; the third vector is determined by the position information of the third electronic device and the moved position information of the first electronic device; the direction of the fourth vector is matched with the target direction on the first electronic equipment after the movement occurs.
6. The method of claim 1 or 2, wherein said sending data to one or more of the N second electronic devices comprises:
the first electronic device receives first signaling, wherein the first signaling comprises indication information used for indicating a target electronic device, and the target electronic device is one or more second electronic devices in the N second electronic devices; sending data to the target electronic equipment according to the first signaling; or;
the first electronic device sends data to the second electronic device with the largest weight in the N second electronic devices; wherein, for a second electronic device of the N second electronic devices, the weight of the second electronic device is related to an angle between the second vector corresponding to the second electronic device and the first vector, and/or a distance between the second electronic device and the first electronic device; or;
and when one second electronic device exists in the N second electronic devices and the system account number logged in the second electronic device is the same as the system account number logged in the first electronic device, the first electronic device sends data to the second electronic device.
7. The method of claim 1 or 2, wherein the obtaining operation information of the user on the first electronic device comprises:
the first electronic equipment acquires a sliding track of a user in a first preset area of the first electronic equipment through a first preset operation gesture; the first preset area comprises a display screen of the first electronic equipment and/or a frame of the first electronic equipment; or;
the first electronic equipment determines a target file and acquires a sliding track of a user in a second preset area through a second preset operation gesture, wherein the second preset area comprises an interface where the target file is located and/or a frame of the first electronic equipment; or;
the first electronic device determines the target file and acquires a sliding track of a user in a third preset area, wherein the third preset area comprises a first interface and/or a frame of the first electronic device, and the first interface is an interface different from an interface where the target file is located; or;
the first electronic equipment acquires operation information of a user for operating a tool displayed on a display screen of the first electronic equipment, and determines the target direction indicated by the tool after the user operates the tool according to the operation information.
8. The method according to claim 1 or 2, wherein for one of the N second electronic devices, the closer the second electronic device is to the first electronic device, the larger the preset included angle range in the first condition corresponding to the second electronic device is.
9. A first electronic device, comprising:
the processor is used for acquiring operation information of a user, and the operation information is used for indicating a target direction; determining N second electronic devices according to the position information of the first electronic device, the target direction and the position information of N second electronic devices, wherein N is a positive integer; wherein each of the second electronic devices satisfies a first condition: the included angle between the first vector and the second vector is within a preset included angle range; the first vector is determined by the position information of the second electronic device and the position information of the first electronic device; the direction of the second vector is the same as the target direction; displaying identification information of the N second electronic devices on a display screen of the first electronic device according to the weight of each second electronic device in the N second electronic devices; wherein, for one of the N second electronic devices, the weight of the second electronic device is related to an angle between the second vector corresponding to the second electronic device and the first vector, and/or a distance between the second electronic device and the first electronic device;
a transceiver to: transmitting data to one or more of the N second electronic devices;
wherein the identification information of the N second electronic devices meets one or more of the following:
for one second electronic device of the N second electronic devices, the larger the weight of the second electronic device is, the larger the identification information font of the second electronic device is;
for one second electronic device of the N second electronic devices, the greater the weight of the second electronic device is, the closer the position of the identification information of the second electronic device is to the top end of the display screen of the first electronic device;
for one second electronic device of the N second electronic devices, the larger the weight of the second electronic device is, the larger an icon displaying the identification information of the second electronic device on the display screen of the first electronic device is;
wherein the processor is specifically configured to:
for one of the N second electronic devices,
determining a preset included angle range in a first condition corresponding to the second electronic device according to a preset distance range to which the distance between the second electronic device and the first electronic device belongs and a corresponding relation between the preset distance range and the preset included angle range; the smaller the maximum distance value in the preset distance range is, the larger the corresponding maximum included angle in the preset included angle range corresponding to the preset distance range is;
and determining the N second electronic devices according to the position information of the first electronic device, the target direction, the position information of the N second electronic devices and the determined preset included angle range.
10. The electronic device of claim 9, wherein the first vector is determined with location information of the first electronic device as a starting point and location information of the second electronic device as an ending point.
11. The electronic device according to claim 9 or 10, wherein the operation information is a sliding track of the user on the first electronic device, the sliding track being used for indicating the target direction;
the second vector satisfies one or more of:
the second vector includes at least two points on the sliding trajectory; or;
the ratio of the number of points on the sliding track, which are overlapped with the second vector, to the total number of points included on the sliding track is greater than a preset ratio; or;
the starting point of the second vector is the starting point of the sliding track, and the end point of the second vector is the end point of the sliding track.
12. The electronic device of claim 11, wherein the processor is specifically configured to:
and determining N second electronic devices meeting the first condition from M searched third electronic devices according to the position information of the first electronic device, the target direction and the position information of the N second electronic devices, wherein M is an integer not less than N.
13. The electronic device of claim 9 or 10, wherein the processor is further configured to:
if the first electronic equipment is detected to move, maintaining an interface on a display screen of the first electronic equipment, wherein the interface is displayed with the identification information of the N second electronic equipment, unchanged; or;
if the first electronic device is detected to move, under the condition that the identification information of the N second electronic devices is displayed on the display screen of the first electronic device in a network topology form, updating the positions of the identification information of the N second electronic devices on the display screen of the first electronic device according to the change of the relative positions between the second electronic device in the N second electronic devices and the moved first electronic device, wherein the relative positions of the identification information of the second electronic device and the identification information of the first electronic device on the display screen of the first electronic device are matched with the relative positions of the second electronic device and the moved first electronic device; or;
if the first electronic equipment is detected to move, determining one or more third electronic equipment according to the position information of the first electronic equipment after moving and the target direction on the first electronic equipment after moving; wherein for a third electronic device of the one or more third electronic devices, the third electronic device satisfies a second condition: an included angle between the third vector and the fourth vector is within a preset included angle range; the third vector is determined by the position information of the third electronic device and the moved position information of the first electronic device; the direction of the fourth vector is matched with the target direction on the first electronic equipment after the movement occurs.
14. The electronic device of claim 9 or 10, wherein the processor is further configured to:
receiving, by the transceiver, first signaling including indication information for indicating a target electronic device, the target electronic device being one or more of the N second electronic devices; sending data to the target electronic equipment according to the first signaling; or;
transmitting data to a second electronic device with the largest weight among the N second electronic devices through the transceiver; wherein, for a second electronic device of the N second electronic devices, the weight of the second electronic device is related to an angle between the second vector corresponding to the second electronic device and the first vector, and/or a distance between the second electronic device and the first electronic device; or;
and when one second electronic device exists in the N second electronic devices and the system account number logged in on the second electronic device is the same as the system account number logged in on the first electronic device, transmitting data to the second electronic device through the transceiver.
15. The electronic device of claim 9 or 10, wherein the processor is specifically configured to:
acquiring a sliding track of a user in a first preset area of the first electronic device through a first preset operation gesture; the first preset area comprises a display screen of the first electronic equipment and/or a frame of the first electronic equipment; or;
determining a target file, and acquiring a sliding track of a user in a second preset area through a second preset operation gesture, wherein the second preset area comprises an interface where the target file is located and/or a frame of the first electronic device; or;
determining the target file, and acquiring a sliding track of a user in a third preset area, wherein the third preset area comprises a first interface and/or a frame of the first electronic device, and the first interface is an interface different from the interface where the target file is located; or;
acquiring operation information of a user for operating the tool displayed on the display screen of the first electronic device, and determining the target direction indicated by the tool after the user operates the tool according to the operation information.
16. The electronic device according to claim 9 or 10, wherein for one of the N second electronic devices, the closer the second electronic device is to the first electronic device, the larger the preset included angle range in the first condition corresponding to the second electronic device is.
17. An electronic device, comprising a processor and a communication interface;
the communication interface is used for inputting and/or outputting information;
the processor for executing a computer program or instructions to cause the method of any of claims 1-8 to be performed.
18. A computer-readable storage medium having stored thereon computer-executable instructions which, when invoked by a computer, cause the computer to perform the method of any one of claims 1 to 8.
CN202010075671.XA 2020-01-22 2020-01-22 Data transmission method, electronic equipment and storage medium Active CN113242349B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010075671.XA CN113242349B (en) 2020-01-22 2020-01-22 Data transmission method, electronic equipment and storage medium
PCT/CN2020/124094 WO2021147419A1 (en) 2020-01-22 2020-10-27 Data transmission method, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010075671.XA CN113242349B (en) 2020-01-22 2020-01-22 Data transmission method, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113242349A CN113242349A (en) 2021-08-10
CN113242349B true CN113242349B (en) 2022-08-26

Family

ID=76991953

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010075671.XA Active CN113242349B (en) 2020-01-22 2020-01-22 Data transmission method, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN113242349B (en)
WO (1) WO2021147419A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113702905A (en) * 2021-08-27 2021-11-26 Oppo广东移动通信有限公司 Method and device for determining position information, control equipment and storage medium
CN115243085A (en) * 2022-06-28 2022-10-25 海信视像科技股份有限公司 Display device and device interconnection method
CN116431038B (en) * 2023-06-13 2023-10-03 Tcl通讯科技(成都)有限公司 Connection on-off prompting method, device, medium and equipment for external storage equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106533907A (en) * 2016-11-14 2017-03-22 北京小米移动软件有限公司 Information sending method and device
CN106603609A (en) * 2015-10-16 2017-04-26 中兴通讯股份有限公司 File sending and transmission method and device
CN110597473A (en) * 2019-07-30 2019-12-20 华为技术有限公司 Screen projection method and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104601439A (en) * 2014-08-11 2015-05-06 腾讯科技(深圳)有限公司 File transfer method, position determination method, relative device, apparatus and system
CN105472768B (en) * 2014-09-10 2019-10-01 华为技术有限公司 Wirelessly communicate establishment of connection method and terminal device
CN106713598B (en) * 2015-07-24 2020-02-21 中兴通讯股份有限公司 Instruction transmission method and device based on indication direction and intelligent equipment
CN108377286B (en) * 2016-10-28 2020-12-29 中兴通讯股份有限公司 Data transmission method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106603609A (en) * 2015-10-16 2017-04-26 中兴通讯股份有限公司 File sending and transmission method and device
CN106533907A (en) * 2016-11-14 2017-03-22 北京小米移动软件有限公司 Information sending method and device
CN110597473A (en) * 2019-07-30 2019-12-20 华为技术有限公司 Screen projection method and electronic equipment

Also Published As

Publication number Publication date
CN113242349A (en) 2021-08-10
WO2021147419A1 (en) 2021-07-29

Similar Documents

Publication Publication Date Title
CN112437190B (en) Data sharing method, graphical user interface, related device and system
CN113242349B (en) Data transmission method, electronic equipment and storage medium
CN111124503B (en) Automatic activation method of NFC application and terminal
CN112837058A (en) Payment method and electronic equipment
WO2021190338A1 (en) Content transmission method, device and medium
CN110557740A (en) Electronic equipment control method and electronic equipment
CN111371849A (en) Data processing method and electronic equipment
WO2022247571A1 (en) Method for switching virtual card, and electronic device
CN112445762A (en) File sharing method and equipment for mobile terminal
WO2021197071A1 (en) Wireless communication system and method
CN114510174A (en) Interface display method and electronic equipment
CN114090102B (en) Method, device, electronic equipment and medium for starting application program
CN112969089B (en) HTTP request transmission method and equipment
WO2021197354A1 (en) Device positioning method and relevant apparatus
CN114257671A (en) Image display method and electronic equipment
CN114201738B (en) Unlocking method and electronic equipment
WO2023179751A9 (en) Object searching method, system and electronic device
WO2023015962A1 (en) Virtual card switching method and electronic device
WO2022062902A1 (en) File transfer method and electronic device
CN114531742B (en) Dual Wi-Fi connection method and electronic equipment
CN115250428A (en) Positioning method and device
CN116806013A (en) Message transmission method and corresponding terminal
CN112956240A (en) Antenna switching method and device
CN114531435B (en) Data sharing method and related device
WO2023116511A1 (en) Content sharing method and terminal device

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