WO2021147419A1 - Data transmission method, electronic device and storage medium - Google Patents

Data transmission method, electronic device and storage medium Download PDF

Info

Publication number
WO2021147419A1
WO2021147419A1 PCT/CN2020/124094 CN2020124094W WO2021147419A1 WO 2021147419 A1 WO2021147419 A1 WO 2021147419A1 CN 2020124094 W CN2020124094 W CN 2020124094W WO 2021147419 A1 WO2021147419 A1 WO 2021147419A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
electronic
electronic devices
vector
devices
Prior art date
Application number
PCT/CN2020/124094
Other languages
French (fr)
Chinese (zh)
Inventor
熊刘冬
丁宁
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2021147419A1 publication Critical patent/WO2021147419A1/en

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

Definitions

  • This application relates to the field of communications, and in particular to a data transmission method, electronic equipment, and storage medium.
  • touch screen can be used as an input device, the user only needs to perform corresponding touch actions on the display screen to achieve corresponding command operations, instead of cumbersome keys. Therefore, more and more electronic devices use touch screens, such as The touch screen controls the opening or closing of files, the switching of operation tasks, and so on. It can be seen that the application of touch screen makes the customer experience more intuitive and the operation is more convenient.
  • the embodiments of the present application provide a data transmission method, an electronic device, and a storage medium to simplify the electronic device to accurately find the shared electronic device and improve the user experience.
  • an embodiment of the present application provides a data transmission method, including: a first electronic device obtains user operation information, the operation information is used to indicate a target direction; the first electronic device uses the location information and target direction of the first electronic device And the location information of the N second electronic devices to determine N second electronic devices, where N is a positive integer; where each second electronic device satisfies the first condition: the angle between the first vector and the second vector Within the preset 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 point device faces the N second electronic devices One or more second electronic devices in the device send data.
  • the user can perform data sharing or screen projection operations by operating on the display screen of the first electronic device to point to the target direction, thereby simplifying the operation complexity of the user in the process of searching for the second electronic device.
  • users no longer need to search for the second electronic device only based on the device name of the second electronic device, and can search for the second electronic device based on the position information of the second electronic device relative to the first electronic device, which can simplify the user Operation.
  • the first vector is determined by using the location information of the first electronic device as the starting point and the location information of the second electronic device as the end point. In this way, the first vector can be determined by the position of the first electronic device and the position of the second electronic device in the earth coordinate system.
  • the operation information is a sliding track of the user on the first electronic device, and the sliding track is used to indicate the target direction.
  • the second vector satisfies one or more of the following: the second vector includes at least two points on the sliding trajectory; or; the number of points on the sliding trajectory that coincide with the second vector is less than the total number of points included in the sliding trajectory The proportion is greater than the preset proportion; or; the start point of the second vector is the start point of the sliding track, and the end point of the second vector is the end point of the sliding track. In this way, the flexibility of the scheme for determining the second vector can be improved.
  • 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: according to the first electronic device The location information of the device, the target direction and the location information of the N second electronic devices, N second electronic devices satisfying the first condition are determined from the searched M third electronic devices, where M is not less than The integer of the N; the identification information of the N second electronic devices is displayed on the display screen of the first electronic device.
  • M third electronic devices can be searched in advance, so that the rate of screening N second electronic devices can be increased.
  • displaying the identification information of the N second electronic devices on the display screen of the first electronic device includes: according to the weight of each second electronic device in the N second electronic devices, The identification information of the N second electronic devices is displayed on the display screen of the first electronic device; wherein, for a second electronic device of the N second electronic devices, the weight of the second electronic device is the same as that of the second electronic device.
  • the angle between the second vector corresponding to the electronic device and the first vector, and/or the distance between the second electronic device and the first electronic device is related. In this way, the identification information of the second electronic device can be displayed according to the weight of the second electronic device, so that the display manner of the displayed identification information of the second electronic device is more in line with user expectations.
  • the identification information of the N second electronic devices satisfies one or more of the following content: for one second electronic device of the N second electronic devices, the second electronic device The greater the weight of the second electronic device, the greater the identification information font of the second electronic device; for a second electronic device of the N second electronic devices, the greater the weight of the second electronic device, the greater the weight of the second electronic device The position of the identification information is closer to the top of the display screen of the first electronic device; for a second electronic device of the N second electronic devices, the greater the weight of the second electronic device, the greater the weight of the second electronic device, the display on the display screen of the first electronic device The larger the icon of the identification information of the second electronic device is; for one second electronic device among the N second electronic devices, the identification information of the second electronic device is similar to the first electronic device on the display screen of the first electronic device.
  • the relative position of the identification information of the electronic device matches the relative position of the second electronic device and the first electronic device in the earth coordinate system. In this way, the weight of the second electronic device can be displayed through the display on the display screen of the first electronic device, so that the user can more clearly determine the second electronic device with the largest weight.
  • the method further includes: if it is detected that the first electronic device is moving, maintaining that N is displayed on the display screen of the first electronic device.
  • the interface of the identification information of the second electronic device remains unchanged. In this way, the movement of the first electronic device caused by the user's misoperation can be prevented from affecting the display of the identification information of the N second electronic devices.
  • the method further includes: if the first electronic device is detected to move, when the first electronic device is detected on the display screen of the first electronic device in the form of a network topology
  • the first electronic device Update the location of the identification information of the N second electronic devices displayed on the display screen of the first electronic device, where 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 The relative position matches the relative position of the second electronic device and the moved first electronic device.
  • the method further includes: if it is detected that the first electronic device moves, 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 is determined, and one or more third electronic devices are determined; wherein, for one third electronic device among the one or more third electronic devices, the third electronic device The device satisfies the second condition; wherein, the second condition includes: the angle between the third vector and the fourth vector is within a preset angle range; the third vector includes the position information and the post-movement of the third electronic device The position information of the first electronic device; the direction of the fourth vector matches the target direction on the first electronic device after the movement. In this way, the identification information of the N second electronic devices can be updated in time.
  • the sending data to one or more second electronic devices among the N second electronic devices includes: receiving first signaling, where the first signaling includes instructions for indicating the target electronic device.
  • the instruction information of the device, the target electronic device is one or more second electronic devices among the N second electronic devices; and according to the first signaling, data is sent to the target electronic device.
  • the user can select the target electronic device by himself.
  • the sending data to one or more second electronic devices among the N second electronic devices includes: sending data to the second electronic device with the largest weight among the N second electronic devices Data; wherein, for a second electronic device of the N second electronic devices, the weight of the second electronic device is the 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 is related.
  • the sending data to one or more of the N second electronic devices includes: when there is one second electronic device in the N second electronic devices, the The system account logged in on the second electronic device is the same as the system account logged in on the first electronic device, and the data is sent to the second electronic device. In this way, it can be inferred that the second electronic device that best meets the user's expectations is the target electronic device, which can further enhance the user's experience of use.
  • the obtaining operation information of the user on the first electronic device includes: obtaining a sliding track performed by the user in the first preset area of the first electronic device through a first preset operation gesture;
  • the first preset area includes the display screen of the first electronic device and/or the frame of the first electronic device.
  • the acquiring operation information of the user on the first electronic device includes determining the target file, and acquiring the sliding track performed by the user in the second preset area through the second preset operation gesture.
  • the second preset area includes the interface where the target file is located and/or the border of the first electronic device.
  • the obtaining operation information of the user on the first electronic device includes obtaining operation information of the user operating the tool displayed on the display screen of the first electronic device, and determining according to the operation information After the user operates the tool, the target direction indicated by the tool.
  • the tool may be a pointer on the display screen of the first electronic device, and the user may indicate the target direction by turning the pointer.
  • the pointer is only an example, and the tool can also be other examples.
  • the acquiring the sliding track of the user on the first electronic device includes determining the target file, acquiring the sliding track of the user in the third preset area, and the second The three preset areas include the first interface and/or the frame of the first electronic device, and the first interface is an interface different from the interface where the target file is located.
  • 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: A second electronic device in the second electronic device, according to the preset distance range to which the distance between the second electronic device and the first electronic device belongs, and the correspondence between the preset distance range and the preset included angle range , Determine the preset angle range in the first condition corresponding to the second electronic device; wherein, the smaller the maximum distance value in the preset distance range is, the larger the preset angle range corresponds to the preset distance range.
  • the first electronic device determines 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 this way, it is possible to avoid missing electronic devices that are closer to the first electronic device.
  • the present application also provides an electronic device.
  • the electronic device may be any type of device at the sending end or at the receiving end that performs data transmission in a wireless manner.
  • communication chips for example, communication chips, terminal equipment.
  • the device on the sending end and the device on the receiving end are relative.
  • the electronic device can be used as the above-mentioned electronic device or a communication chip that can be used in the electronic device.
  • an electronic device including a transceiving unit and a processing unit, to execute any implementation manner of any communication method in the first aspect.
  • the transceiver unit is used to perform functions related to sending and receiving.
  • the transceiver unit includes a receiving unit and a sending unit.
  • the electronic device is a communication chip, and the transceiver unit may be an input/output circuit or port of the communication chip.
  • the transceiver unit can be a transmitter and a receiver, or the transceiver unit can be a transmitter and a receiver.
  • the electronic device further includes various modules that can be used to execute any one of the above-mentioned communication methods of the first aspect.
  • an electronic device which is the above-mentioned first electronic device.
  • the electronic device may be a terminal device. Including processor and memory.
  • the memory is used to store computer programs or instructions
  • the processor is used to call and run the computer programs or instructions from the memory, and when the processor executes the computer programs or instructions in the memory, it causes The electronic device executes any one of the implementation manners of any one of the communication methods of the first aspect described above.
  • processors there are one or more processors, and one or more memories.
  • the memory may be integrated with the processor, or the memory and the processor may be provided separately.
  • the transceiver may include a transmitter (transmitter) and a receiver (receiver).
  • an electronic device including a processor.
  • the processor is coupled with the memory, and can be used to execute any aspect of the first aspect and any method in any possible implementation manner of the first aspect.
  • the electronic device further includes a memory.
  • the electronic device further includes a communication interface, and the processor is coupled with the communication interface.
  • the electronic device is a terminal device.
  • the communication interface may be a transceiver, or an input/output interface.
  • the transceiver may be a transceiver circuit.
  • the input/output interface may be an input/output circuit.
  • the electronic device is a chip or a chip system.
  • the communication interface may be an input/output interface, interface circuit, output circuit, input circuit, pin or related circuit on the chip or chip system.
  • the processor can also be embodied as a processing circuit or a logic circuit.
  • a system in a fifth aspect, includes the above-mentioned first electronic device and the second electronic device.
  • a computer program product includes: a computer program (also called code, or instruction), which when the computer program is executed, causes the computer to execute any one of the above-mentioned first aspects. The method in the way.
  • a computer-readable storage medium stores a computer program (also called code, or instruction) when it runs on a computer, which causes the computer to execute any one of the above-mentioned first aspects.
  • a computer program also called code, or instruction
  • a processing device including: an input circuit, an output circuit, and a processing circuit.
  • the processing circuit is used for receiving a signal through the input circuit and transmitting a signal through the output circuit, so that the method in any one of the possible implementation manners of the first aspect is realized.
  • the above-mentioned processing device may be a chip
  • the input circuit may be an input pin
  • the output circuit may be an output pin
  • the processing circuit may be a transistor, a gate circuit, a flip-flop, and various logic circuits.
  • the input signal received by the input circuit may be received and input by, for example, but not limited to, a receiver
  • the signal output by the output circuit may be, for example, but not limited to, output to the transmitter and transmitted by the transmitter
  • the circuit can be the same circuit, which is used as an input circuit and an output circuit at different times.
  • the embodiments of the present application do not limit the specific implementation manners of the processor and various circuits.
  • FIG. 1 is a schematic diagram of a possible system architecture to which an embodiment of this application is applicable;
  • Figure 2 is a schematic diagram of the structure of an electronic device
  • FIG. 3 is a schematic flowchart of a data transmission method provided by an embodiment of this application.
  • FIG. 4 is a schematic diagram of a system architecture provided by an embodiment of the application.
  • FIG. 5 is a schematic diagram of another system architecture provided by an embodiment of the application.
  • FIG. 6 is a schematic diagram of another system architecture provided by an embodiment of the application.
  • FIG. 7 is a schematic diagram of another system architecture provided by an embodiment of the application.
  • FIG. 8 is a schematic diagram of a display interface of identification information of N second electronic devices according to an embodiment of the application.
  • FIG. 9 is a schematic diagram of another display interface of identification information of N second electronic devices according to an embodiment of the application.
  • FIG. 10 is a schematic diagram of another display interface of identification information of N second electronic devices provided by an embodiment of this application.
  • FIG. 11 is a schematic diagram of another display interface of identification information of N second electronic devices provided by an embodiment of this application.
  • FIG. 12 is a schematic diagram of another display interface of identification information of N second electronic devices provided by an embodiment of this application.
  • FIG. 13 is a schematic diagram of another display interface of identification information of N second electronic devices according to an embodiment of the application.
  • FIG. 14 is a schematic structural diagram of an electronic device provided by an embodiment of this application.
  • 15 is a schematic structural diagram of another electronic device provided by an embodiment of the application.
  • FIG. 16 is a schematic structural diagram of another electronic device provided by an embodiment of the application.
  • FIG. 1 is a schematic diagram of a possible system architecture to which an embodiment of this application is applicable.
  • the system architecture shown in FIG. 1 includes multiple electronic devices, as shown in FIG. 1, including electronic device 201, electronic device 202, electronic device 203, electronic device 204, electronic device 205, and electronic device 206.
  • the location of the electronic device in the embodiment of the present application may be arbitrary, for example, the electronic device 203 is located in the front left of the electronic device 201, the electronic device 204 is located in front of the electronic device 201, and so on.
  • the embodiments of the present application provide a solution that can determine the electronic device that needs to transmit data based on the location information of the electronic device and the target direction indicated by the user's operation information on the electronic device.
  • one electronic device can detect signals from other electronic devices.
  • the embodiments of the present application do not limit the number of electronic devices in the system architecture, and the system architecture to which the embodiments of the present application are applicable may include other devices in addition to electronic devices, such as network devices, core network devices, and wireless devices. Relay equipment and wireless backhaul equipment, etc., are not limited in this embodiment of the present application.
  • the electronic devices in the embodiments of the present application may include devices that provide users with voice and/or data connectivity, for example, may include a handheld device with a wireless connection function, or a processing device connected to a wireless modem.
  • the electronic device can communicate with the core network via a radio access network (RAN), and exchange voice and/or data with the RAN.
  • RAN radio access network
  • the electronic equipment may include user equipment (UE), wireless electronic equipment, mobile electronic equipment, device-to-device communication (device-to-device, D2D) electronic equipment, V2X electronic equipment, machine-to-machine/machine-type communication ( machine-to-machine/machine-type communications, M2M/MTC) electronic equipment, Internet of things (IoT) electronic equipment, subscriber unit (subscriber unit), subscriber station (subscriber station), mobile station (mobile station) , Remote station (remote station), access point (access point, AP), remote terminal (remote terminal), access terminal (access terminal), user terminal (user terminal), user agent (user agent), or user equipment (user device) and so on.
  • IoT Internet of things
  • a mobile phone or called a "cellular" phone
  • a computer with mobile electronic equipment, portable, pocket-sized, hand-held, mobile devices with built-in computers, and so on.
  • PCS personal communication service
  • SIP session initiation protocol
  • WLL wireless local loop
  • PDA personal digital assistants
  • restricted devices such as devices with low power consumption, or devices with limited storage capabilities, or devices with limited computing capabilities. Examples include barcodes, radio frequency identification (RFID), sensors, global positioning system (GPS), laser scanners and other information sensing equipment.
  • RFID radio frequency identification
  • GPS global positioning system
  • laser scanners and other information sensing equipment.
  • FIG. 2 exemplarily shows a schematic structural diagram of an electronic device.
  • the electronic device is a mobile phone as an example for illustration. It should be understood that the illustrated electronic device is only an example, and the electronic device may have more or fewer components than shown in FIG. 2, two or more components may be combined, or may have different components Configuration.
  • 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.
  • 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, and a battery 142 , Antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193 , Display screen 194, subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM subscriber identification module
  • 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 sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light Sensor 180L, bone conduction sensor 180M, etc.
  • antenna 1 and antenna 2 are used as examples, and optionally, other antennas may also be included.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait.
  • the different processing units may be independent devices or integrated in one or more processors.
  • the controller can be the nerve center and command center of the electronic device. The controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching instructions and executing instructions.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory, thereby avoiding repeated access, reducing the waiting time of the processor 110, and improving the efficiency of the system.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver ( universal asynchronous receiver/transmitter, UART interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface , And/or Universal Serial Bus (USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART mobile industry processor interface
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB Universal Serial Bus
  • the wireless communication function of the electronic device can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in an electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to electronic devices.
  • 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 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • 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.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications in electronic devices including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellite systems. (global navigation satellite system, GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • WLAN wireless local area networks
  • BT Bluetooth
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared technology
  • 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, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 may also receive a signal to be sent from the processor 110, perform frequency modulation, amplify, and convert it into electromagnetic waves to radiate through the antenna 2.
  • the antenna 1 of the electronic device is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include the global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband code Wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technology, etc.
  • the GNSS can include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi- Zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the electronic device realizes the display function through the GPU, the display screen 194, and the application processor.
  • the GPU is a microprocessor for image processing, connected to the display 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations and is used for graphics rendering.
  • the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, etc.
  • the display screen 194 includes a display panel.
  • the display panel can use liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • AMOLED flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
  • the display screen 194 may be an integrated flexible display screen, or a spliced display screen composed of 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 expand the storage capacity of the electronic device.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
  • the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required by at least one function, and the like.
  • the data storage area can store data (such as audio data, phone book, etc.) created during the use of the electronic device.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like.
  • the processor 110 executes various functional applications and data processing of the electronic device by running instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A may be provided on the display screen 194.
  • the capacitive pressure sensor may include at least two parallel plates with conductive materials.
  • the electronic device determines the strength of the pressure based on the change in capacitance.
  • a touch operation acts on the display screen 194, the electronic device detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device may also calculate the touched position based on the detection signal of the pressure sensor 180A.
  • touch operations that act on the same touch position but have different touch operation strengths may correspond to different operation instructions.
  • the gyro sensor 180B can be used to determine the movement posture of the electronic device. In some embodiments, the angular velocity of the electronic device around three axes (ie, x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyro sensor 180B can be used for image stabilization. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device can use the magnetic sensor 180D to detect the opening and closing of the flip holster.
  • the electronic device when the electronic device is a flip machine, the electronic device can detect the opening and closing of the flip according to the magnetic sensor 180D.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device in various directions (generally three axes). When the electronic device is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and apply to applications such as horizontal and vertical screen switching, pedometers, etc.
  • Distance sensor 180F used to measure distance.
  • Electronic equipment can measure distance through infrared or laser.
  • the electronic device may use the distance sensor 180F to measure the distance to achieve fast focusing.
  • 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.
  • Electronic devices use photodiodes 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 can determine that there is no object near the electronic device.
  • the electronic device can use the proximity light sensor 180G to detect that the user holds the electronic device close to the ear to talk, so as to automatically turn off the display screen to save power.
  • the proximity light sensor 180G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
  • the fingerprint sensor 180H is used to collect fingerprints. Electronic devices can use the collected fingerprint characteristics to unlock fingerprints, access application locks, take photos with fingerprints, and answer calls with fingerprints.
  • a fingerprint sensor may be arranged on the front of the electronic device (below the display screen 194), or a fingerprint sensor may be arranged on the back of the electronic device (below the rear camera).
  • 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.
  • the fingerprint sensor may be configured in the touch screen, may be a part of the touch screen, or may be configured in the touch screen in other ways.
  • the fingerprint sensor can also be implemented as a full panel fingerprint sensor. Therefore, the touch screen can be regarded as a panel that can collect fingerprints at any position.
  • the fingerprint sensor may process the collected fingerprint (for example, whether the fingerprint is verified) and send it to the processor 110, and the processor 110 will make corresponding processing according to the fingerprint processing result.
  • the fingerprint sensor may also send the collected fingerprint to the processor 110, so that the processor 110 can process the fingerprint (for example, fingerprint verification, etc.).
  • the user's operating information can be collected through a sensor, and the sensor can use any type of sensing technology, including but not limited to optical, capacitive, piezoelectric, or ultrasonic sensing technology.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
  • the touch sensor 180K is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • the visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the electronic device, which is different from the position of the display screen 194.
  • the button 190 includes a power-on button, a volume button, and so on.
  • the button 190 may be a mechanical button. It can also be a touch button.
  • the electronic device can receive key input, and generate key signal input related to user settings and function control of the electronic device.
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback.
  • touch operations applied to different applications can correspond to different vibration feedback effects.
  • Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminding, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the electronic device may also include a Bluetooth device, a positioning device, a flashlight, a micro-projection device, a near field communication (NFC) device, etc., which will not be repeated here.
  • a Bluetooth device a positioning device
  • a flashlight a micro-projection device
  • NFC near field communication
  • FIG. 3 exemplarily shows a schematic flowchart of a data transmission method provided by an embodiment of the present application. As shown in FIG. 3, the method includes:
  • Step 301 The first electronic device obtains user operation information on the first electronic device, where the operation information is used to indicate a target direction.
  • the processor in the first electronic device may obtain operation information of the user operating the tool displayed on the display screen of the first electronic device, and the processor may obtain the operation information according to the operation information.
  • the tool may be a pointer displayed on the display screen of the first electronic device, and the user may indicate the target direction by rotating the pointer.
  • the pointer is only an example, and the tool can also be other examples.
  • the operation information may be a sliding track of the user on the first electronic device, and 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 can slide the frame and/or display screen of the first electronic device. When sliding on the frame of the first electronic device, there can be four directions, namely left, right, up and down. When sliding on the display screen of the first electronic device, the direction can be a 360° direction in the display screen, and the degree of freedom is greater.
  • an area can also be preset on the first electronic device for when the user slides in the area, the operation of sharing the file to the second electronic device is initiated.
  • the preset area may be an area where the user's sliding track is sensed by the pressure sensor or fingerprint sensor in the first electronic device, such as the frame and/or display screen of the first electronic device mentioned above.
  • Step 302 Determine 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, where N is a positive integer.
  • the first electronic device may detect one or more signals of the second electronic device, which may be a Bluetooth signal or the like, and determine the position of the second electronic device according to the signal.
  • the processor in the first electronic device may use positioning technology, such as AoA/AoD and other technologies, and determine the location information of one or more second electronic devices based on the signals of one or more second electronic devices.
  • positioning technology such as AoA/AoD and other technologies
  • how to determine the location of the electronic device based on the AoA/AoD technology using attributes such as the strength of the transmitted signal of the electronic device is a well-known technology, and will not be described in detail here.
  • the second electronic device satisfies the first condition, and the first condition may include: the angle between the first vector and the second vector is within a preset angle range Within; the first vector is determined by the location information of the second electronic device and the location information of the first electronic device; the direction of the second vector is the same as the target direction.
  • the first vector includes two points, the location information of the second electronic device and the location information of the first electronic device.
  • the 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 the direction of the first vector starts from the first electronic device and points to the second electronic device.
  • the first vector and the second vector need to be placed in the same coordinate system to determine the 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 or an earth coordinate system. In the embodiments of the present application, only the earth coordinate system is taken as an example, and those skilled in the art will know that the earth coordinate system can also be replaced with other coordinate systems.
  • Step 303 The first electronic device sends data to one or more second electronic devices among the N second electronic devices.
  • the data sent by the first electronic device may be a specific file, such as a photo, text, video, audio, etc., in this way, the first electronic device may send the file to be shared to one or more second electronic devices , Of course, it can also project the file to be shared to one or more second electronic devices.
  • the data sent by the first electronic device may also be the content currently displayed on the display screen of the first electronic device. In this way, 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
  • the second electronic device of course, can also share the real-time content displayed on the display screen of the first electronic device with the first or multiple second electronic devices.
  • the first electronic device can determine the N number based on the position information of the first electronic device and the operation information or sliding track of the user on the first electronic device.
  • the second electronic device serves as the shared electronic device.
  • the user can swipe on the display screen of the first electronic device to perform data sharing or screen projection operations, thereby simplifying the operation complexity of the user in the process of searching for the shared second electronic device.
  • users no longer need to search for the second electronic device only based on the device name of the second electronic device, and can search for the second electronic device based on the position information of the second electronic device relative to the first electronic device, which can simplify the user Operation to improve user experience.
  • the two points can determine a vector.
  • the first vector in the embodiment of the present application is determined by the location information of the first electronic device and the location information of the second electronic device. It should be understood that in the foregoing step 302, in an optional implementation manner, the start point of the first vector includes the position of the first electronic device, and the end point of the first vector includes the position of the second electronic device.
  • the second vector can be determined according to the sliding trajectory.
  • 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 starting point of the second vector may be the starting position of the sliding track on the display screen, and the end point of the second vector may be the ending position of the sliding track on the display screen.
  • the second vector includes at least two points on the sliding track.
  • the choice of the two points is relatively free, for example, a point close to the starting point of the sliding track and a point close to the end point of the sliding track.
  • the start point of the second vector includes the start point of the sliding track
  • the end point of the second vector includes the end point of the sliding track
  • the proportion of points on the sliding track that coincide with the second vector on the sliding track is greater than a preset proportion.
  • the preset proportion may be preset, such as 80%.
  • Solution a4 the starting point area and/or the end point area of the sliding trajectory on the sliding trajectory can be removed, and a straight line with a direction closer to the remaining middle part of the sliding trajectory is used as the second vector.
  • the starting point area and/or the end point area of the sliding trajectory on the sliding trajectory can be removed, and a directional straight line closer to the remaining middle part of the sliding trajectory is used as the second vector, and
  • the straight line may include a preset proportion of points on the sliding trajectory.
  • the straight line may include 80% of the points on the sliding trajectory. It can also be said that the straight line coincides with 80% of the points on the sliding trajectory.
  • the user's sliding direction on the display screen of the first electronic device may be a curve, or the starting point of the user's sliding track and/or the end of the sliding track may have a small curved track, etc.
  • the processor in the first electronic device can analyze the user's sliding track on the display screen of the first electronic device to determine the sliding direction indicated by the sliding track, so as to determine the sliding direction indicated by the sliding track according to the sliding track indicated by the sliding track.
  • the sliding direction determines the direction of the second vector.
  • the tangent direction of the curve when the user finishes sliding and leaves the display screen may be used as the second vector.
  • the first electronic device screens out the electronic devices in the vicinity of the direction indicated by the sliding track.
  • the preset included angle range is ⁇ for understanding
  • the electronic devices inside are screened out.
  • FIG. 4 exemplarily shows a schematic diagram of a system architecture. As shown in FIG. 4, the user slides on the display screen of the first electronic device 201, and the second vector is determined according to the sliding track. As shown in FIG. 4, it is a direction. The direction of the slide to the front left is indicated. In FIG.
  • the location information of the second electronic device 203 and the location information of the first electronic device 201 form a first vector.
  • the angle between the first vector and the second vector is small and smaller than the preset angle range.
  • the preset angle range is ⁇ set as an example. . Therefore, it can be determined that the electronic device 203 is the second electronic device determined in step 302 above.
  • FIG. 4 is just an example of the second electronic device at the left front side as an example. 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.
  • the second vector refers to a downward sliding track on the display screen of the first electronic device 201.
  • a straight line segment with a direction, the first vector may be composed of the position information of the first electronic device 201 and the electronic device 206.
  • FIG. 5 exemplarily shows another schematic diagram of the system architecture. As shown in FIG. 5, there are two second electronic devices on the left front of the first electronic device. These are the electronic device 203 and the electronic device 213 respectively.
  • the angle between the first vector and the second vector composed of the position information of the electronic device 203 and the position information of the first electronic device 201 in the figure is smaller than the preset angle range.
  • the angle between the first vector and the 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 the preset angle range. Therefore, it can be determined that both the electronic device 203 and the electronic device 213 are second electronic devices.
  • the preset included angle range may be fixed, for example, the preset included angle range is always selectable to search for the second electronic device.
  • different preset angle ranges may be selected according to different distances from the first electronic device.
  • FIG. 6 exemplarily shows a schematic diagram of a system architecture.
  • the first electronic device 201 includes an electronic device 203 and an electronic device 214 on the left front side. The user slides to the front left of the user on the display screen of the first electronic device 201, and the second vector determined by the slide track is shown in FIG. 6.
  • the angle between the first vector and the second vector composed of 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.
  • the angle between the first vector and the second vector formed by the position information of the electronic device 214 and the position information of the first electronic device 201 will be too large. , Such as 35 degrees, it can be seen that 35 degrees is obviously greater than 20 degrees. In this case, it is possible that the user's real intention is to draw to the electronic device 214 and want to share the file with the electronic device 214.
  • an optional implementation manner is provided in the embodiment of the present application.
  • the second electronic device For the N second electronic devices, if the distance between the second electronic device and the first electronic device is closer, the second electronic device
  • the larger the preset angle range in the first condition corresponding to the electronic device that is to say, the preset angle range is inversely proportional to the distance between the first electronic device and the second electronic device, and the first electronic device and the second electronic device are inversely proportional to each other.
  • the processor may determine the preset angle range corresponding to the second electronic device according to this correspondence and the distance between the first electronic device and the second electronic device .
  • the electronic device 214 is closer to the first electronic device 201, and the preset angle range corresponding to the electronic device 214 can be selected as ⁇ 40 degrees.
  • the included angle between the first vector and the second vector formed by the electronic device 214 and the first electronic device 201 is -35 degrees, which belongs to the preset included angle range of ⁇ 40 degrees, and the electronic device 214 also belongs to the second electronic device. equipment.
  • the preset included angle range mentioned in the embodiment of the present application includes a value of the preset included angle with the largest absolute value.
  • the preset included angle range refers to the angle between the second vector and the second vector.
  • the absolute value of is smaller than a range of the value of the preset angle with the largest absolute value.
  • FIG. 7 exemplarily shows a possible implementation. As shown in FIG. 7, within different distances from the first electronic device 201, the preset included angle ranges are different, and the circle with the smallest diameter is located around the first electronic device.
  • the preset angle range corresponding to the electronic equipment in the device is ⁇ 40 degrees.
  • the preset included angle range corresponding to the electronic device located in a circle with the second largest diameter around the first electronic device is ⁇ 30 degrees.
  • the preset included angle range corresponding to the electronic device located in the circle with the largest diameter around the first electronic device is ⁇ 20 degrees.
  • an embodiment of the present application provides a solution for performing the above step 302.
  • the solution includes: for one second electronic device among the N second electronic devices, according to the second electronic device
  • the corresponding relationship between the preset distance range and the preset included angle range may be stored on the first electronic device, and the distance range in the corresponding relationship refers to the second electronic device and the first electronic device
  • the first electronic device can first determine the distance between a target electronic device and the first electronic device, and then find out from the corresponding relationship, the distance corresponds to the preset angle range, if the target electronic device
  • the included angle between the first vector and the second vector formed between the position information of the first electronic device and the position information of the first electronic device belongs to the detected preset included angle range, and the target electronic device belongs to a second electronic device.
  • 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 the N second electronic devices, from the searched M third electronic devices Determine N second electronic devices that meet the first condition, where M is an integer not less than N; and display identification information of the N second electronic devices on the display screen of the first electronic device.
  • the searched electronic devices around the first electronic device are referred to as M third electronic devices.
  • the processor in the first electronic device may also search for M third electronic devices around when it predicts that the user has shared files or screen projection operations. For example, if the user is in the first electronic device Select a photo or video on the display screen. In this case, the first electronic device can determine that the user wants to share the file, and then search for M third electronic devices around the first electronic device. In this way, when the user's After sliding the trajectory, N second electronic devices that meet the above-mentioned first condition can be directly selected from the M third electronic devices that have been searched. In this way, the efficiency of selecting N second electronic devices can be improved.
  • M is greater than N
  • the identification information of the remaining (M-N) third electronic devices other than the N second electronic devices among the M third electronic devices may also be displayed.
  • the identification information of the electronic device including the identification information of the N second electronic devices, and optionally, the identification information of the (MN) third electronic device displayed on the display screen of the first electronic device?
  • the following example introduces an example of how to display the identification information of N second electronic devices.
  • the identification information of the (M-N) third electronic devices may be separately placed in a distinction, for example, it may be at the back of the list of identification information. For another example, it may also be a location area close to the top of the first electronic device, and so on.
  • Solution b1 displaying the identification information of the N second electronic devices on the display screen of the first electronic device in the form of a list.
  • the identification information of the second electronic device is the device name
  • the N second electronic devices can be sorted according to the device name, for example, according to the first letter of the device name and so on.
  • 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 among the N second electronic devices. For example, for a second electronic device with a greater weight, the identification information of the second electronic device is ranked higher.
  • the weight of the second electronic device may be the same as that of the first electronic device.
  • the angle between the second vector and the first vector corresponding to the two electronic devices is related to the distance between the second electronic device and the first electronic device. For example, for example, the smaller the angle between the second vector corresponding to the second electronic device and the first vector, the greater the weight of the second electronic device. Or, the closer the distance between the second electronic device and the first electronic device, the greater the weight of the second electronic device.
  • a proportion coefficient for the angle between the second vector corresponding to the second electronic device and the first vector, and the distance between the second electronic device and the first electronic device for example, the second electronic device
  • the proportion coefficient corresponding to the angle between the second vector and the first vector corresponding to the device is 0.7
  • the proportion coefficient corresponding to the distance between the second electronic device and the first electronic device is 0.3
  • the result is the weight of the second electronic device.
  • FIG. 8 exemplarily shows a schematic diagram of a display interface of the identification information of N second electronic devices.
  • the identification information of the N second electronic devices are respectively "Zhang”, “Li”, and “Yang”. "Fan” and “Zhao”, in which "Zhang” is the identification information of the second electronic device with the highest weight, so the font of "Zhang” is obviously larger.
  • FIG. 9 exemplarily shows a schematic diagram of a display interface of the identification information of another N second electronic devices. As shown in FIG.
  • the N second electronic devices are electronic devices that can project a screen, and the N second electronic devices
  • the identification information of "TV1", “tv2” and “tv3” are respectively “TV1”, “tv2” and “tv3", where "TV1” is the identification information of the second electronic device with the highest weight, so the font of "TV1" is obviously larger.
  • Solution b4 for one second electronic device among 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 to the display screen of the first electronic device top.
  • "Zhang” is the identification information of the second electronic device with the highest weight, so the position of "Zhang” is closer to the top of the display screen of the first electronic device.
  • "TV1" is the identification information of the second electronic device with the highest weight, so the position of "TV1” is closer to the top of the display screen of the first electronic device.
  • Solution b5 for one second electronic device among the N second electronic devices, the greater the weight of the second electronic device, the icon of the identification information of the second electronic device is displayed on the display screen of the first electronic device Bigger.
  • “Zhang” is the identification information of the second electronic device with the highest weight, so the icon of "Zhang” is relatively large.
  • TV1 is the identification information of the second electronic device with the highest weight, so the icon of "TV1” is relatively large.
  • Solution b6 Display the identification information of N second electronic devices on the display screen of the first electronic device in the form of a network topology.
  • the first electronic device 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 matches the relative position of the second electronic device and the first electronic device in the earth 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.
  • the left side of the first electronic device 201 is the electronic device 214
  • the left side of the first electronic device 201 is the electronic device 214.
  • the electronic device 203 is far in the front.
  • the first electronic device may move.
  • the content displayed on the display screen of the first electronic device may change. Change, or not change.
  • the N second electronic devices may be displayed on the display screen of the first electronic device according to the weight of a certain second electronic device among the N second electronic devices.
  • N second electronic devices have been screened out according to the user's sliding track on the first electronic device, and the identification information of the N second electronic devices has been displayed. If the first electronic device is detected again Movement, 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 position of the head and tail of the first electronic device has changed In this case, the sliding trajectory will also change in the earth coordinate system. In this embodiment, the results of the N second electronic devices screened out before the first electronic device moves are still maintained.
  • the operation of searching for peripheral electronic devices is still in progress (not yet finished), and at this time, the first electronic device can continue to be located in the earth coordinate system before the movement or rotation of the first electronic device.
  • the second vector is based on the search. It can also be said that in this embodiment, the second vector does not change with the movement/rotation of the mobile phone, and the object at which the angle between the second vector and the first vector is judged is still the first electron. The second vector before the device moves or rotates.
  • 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 second electronic device in the N second electronic devices.
  • the first electronic device is detected to move, when N second electronic devices are displayed on the display screen of the first electronic device in the form of network topology
  • the display screen of the first electronic device is updated.
  • the positions of the identification information of the N second electronic devices where the relative position of the identification information of each second electronic device and the identification information of the first electronic device previously displayed on the display screen of the first electronic device is different from that of each second electronic device.
  • the relative positions of the electronic device and the moved first electronic device are matched.
  • N second electronic devices have been screened out according to the user's sliding track on the first electronic device, and the identification information of the N second electronic devices has been displayed. Movement, 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 position of the head and tail of the first electronic device has changed In this case, the sliding trajectory will also change in the earth coordinate system.
  • the filter selected before the movement of the first electronic device is still maintained.
  • the result of N second electronic devices It can also be understood that after the first electronic device moves or rotates, the operation of searching for peripheral electronic devices is still in progress (not yet finished), and then the first electronic device can continue to be located in the earth coordinate system before the movement or rotation of the first electronic device.
  • the second vector is based on the second vector for searching. It can also be said that in this embodiment, the second vector does not change with the movement/rotation of the mobile phone.
  • the second vector before the electronic device moves or rotates. However, on the display screen of the first electronic device, the relative position information of the second electronic device relative to the first electronic device needs to be updated. In this way, when the identification of the electronic device is displayed in the form of a network topology, after the first electronic device moves or rotates, the display position of the second electronic device on the display screen of the first device can be refreshed.
  • FIG. 13 exemplarily shows a schematic diagram of the display mode of the identification information of the second electronic device displayed on the display screen after the first electronic device is moved in FIG. 12.
  • the first electronic device moves a certain distance to the front
  • the relative positional relationship between the electronic device and the first electronic device is sufficient. For example, as shown in FIG.
  • the electronic device 214 when the first electronic device moves a certain distance directly in front of the first electronic device, the electronic device 214 correspondingly moves to the first electronic device. To the left and rear of 201, the electronic device 203 has moved a certain distance in the direction of the first electronic device.
  • 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 second electronic device in the N second electronic devices, Before sending data to one or more second electronic devices among the N second electronic devices, if it is detected that the first electronic device has moved, then according to the position information of the moved first electronic device and the sliding track, Determine one or more third electronic devices; wherein, for one third electronic device of the one or more third electronic devices, the third electronic device satisfies the second condition; wherein, the second condition includes: In the earth coordinate system, the angle between the third vector and the fourth vector is within the preset angle range; the third vector is determined by the position information of the third electronic device and the position information of the moved first electronic device ; The direction of the fourth vector matches the sliding direction indicated by the sliding track.
  • N second electronic devices have been screened out according to the user's sliding track on the first electronic device, and the identification information of the N second electronic devices has been displayed. 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 position of the head and tail of the first electronic device has changed.
  • the sliding trajectory will also change in the earth coordinate system, and it will also be updated to a new second vector in the earth coordinate system.
  • the new second vector is used to renew Screen the second electronic equipment that meets the requirements.
  • step 303 data can be sent to one or more of the N second electronic devices, or to the N second electronic devices. There are many ways, which are illustrated below.
  • the first electronic device receives the first signaling, the first signaling includes indication information for indicating the target electronic device, and the target electronic device is one or more second electronic devices among the N second electronic devices ; And according to the first signaling, send data to the target electronic device.
  • the identification information of N second electronic devices may be displayed on the first electronic display screen, and the user can select the identification information corresponding to one or more target electronic devices that need to send data on the display screen.
  • the first electronic device may also display a pre-selected second electronic device as the quasi-target electronic device on the display screen displaying the identification information of the N second electronic devices, and display for query Whether the user shares the file to the quasi-target electronic device, or asks the user whether to cast a screen to the quasi-target electronic device.
  • the user can click "Yes" in the prompt box, so that the processor in the first electronic device can use the quasi-target electronic device as the target electronic device and send data to the target electronic device after receiving the instruction to click "Yes".
  • the user can also click "No" in the prompt box, or re-select one or more second electronic devices as the target electronic devices.
  • the quasi-target electronic device may be determined according to the weight values of multiple second electronic devices, for example, the second electronic device with the largest weight is the quasi-target electronic device.
  • FIG. 10 exemplarily shows a schematic diagram of another display interface of the identification information of N second electronic devices on the basis of FIG. 10, as shown in FIG. 10, "Zhang” is the target electronic device, in the first electronic device "Share the photo with Zhang?" is displayed on the display screen. If the user clicks "Yes”, it will indicate that "Zhang” is the target second electronic device, and the first electronic device will share the photo with the first electronic device of "Zhang". Second electronic device, if the user clicks "No", the user can select another second electronic device as the target device to send data, for example, "Li” and “Yang” shown in Figure 10 can be used as the second electronic device selected by the user .
  • FIG. 11 exemplarily shows a schematic diagram of another display interface of the identification information of N second electronic devices on the basis of FIG. 11.
  • "TV1" is the quasi-target electronic device. "Projection to "TV1”?" is displayed on the display screen. If the user clicks "Yes”, the first electronic device projects its screen to the display screen of the second electronic device corresponding to TV1. If the user clicks "No", the user can select another second electronic device as the target device to send data. For example, both “tv2" and “tv3" shown in FIG. 11 can be used as the second electronic device selected by the user.
  • the first electronic device may send data to the second electronic device with the largest weight among the N second electronic devices.
  • the weight of the second electronic device may refer to the related description of the foregoing solution b2.
  • the first electronic device does not need to ask the user which second electronic device to send data to. It can also be said that the second electronic device with the largest weight is determined as the target electronic device and sends data to the target electronic device.
  • Method c3 When there is a second electronic device in the N second electronic devices, and the system account logged in on the second electronic device is the same as the system account logged in on the first electronic device, the first electronic device sends the information to the second electronic device. The device sends data. In this embodiment, there is no need to ask the user which second electronic device to send data to. When it is found that there is a system account logged in on the second electronic device that is the same as the system account logged in on the first electronic device, The second electronic device sends data. It can also be said that the second electronic device whose logged-in system account is the same as the logged-in system account on the first electronic device is determined as the target electronic device and sends data to the target electronic device.
  • Method c4 in the above methods c2 and c3, if the determined target electronic device is the second electronic device to be screened, the first electronic device may also ask the user whether to confirm the screen projection to the second electronic device.
  • the user may also be asked again whether to confirm sharing the data to the target electronic device.
  • the user may perform a sliding operation on the first electronic device in various implementation manners, which will be exemplified below.
  • the user selects the target file.
  • the target file can be a file page such as pictures, videos, and URLs. There can be one target file or multiple selected files.
  • Obtaining the sliding track of the user on the first electronic device may be to first determine the target file, and to acquire the sliding track performed by the user in a second preset area through a second preset operation gesture, the second preset area including the target file.
  • the interface and/or the frame of the first electronic device that is to say, in this embodiment, there is no need for page jumps, and the user can 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 sliding track in this case.
  • one or more 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.
  • the target file can also be projected to one or more second electronic devices among the N second electronic devices selected according to the sliding track.
  • Manner d2 acquiring the sliding track of the user on the first electronic device, or determining the target file first, acquiring the sliding track of the user in a third preset area, the third preset area including the first interface and/or The frame of the first electronic device, and the first interface is an interface different from the interface where the target file is located.
  • the interface currently displayed on the first electronic device will jump to the next interface, or in the current file selection interface Add a new layer of interface.
  • the user can click the "send” or “screencast” operation, or execute a preset action to start the "send” or “screencast” command, and then the page will jump to the next interface. Or add a layer of interface to the current file selection interface.
  • the first interface is the interface after the jump, and the user performs a sliding operation on the first interface. Since the first interface is a jumped interface or a newly added layer of interface, the user's sliding operation does not need to limit the specific number of fingers, and it can be the first display of any number of fingers on the display screen of the first electronic device.
  • the sliding on the first interface can also be the sliding of the palm on the first interface.
  • mode d3 after the user selects the target file, there is no need to jump to the interface, or the current interface jumps to the next interface, or an interface is added to the current file selection interface.
  • the user slides on the frame of the first electronic device. Sliding on the frame can be one finger or multiple fingers.
  • the user can click the "send” or “cast screen” operation, or execute a preset action to start the "send” or “cast screen” command. For example, acquiring a sliding track performed by a user in a first preset area of the first electronic device through a first preset operation gesture; the first preset area includes the display screen of the first electronic device and/or the first electronic device Border. Specifically, the user can slide the border of the first electronic device, that is, start the "cast screen” command. According to the sliding track of the user, the second electronic device is filtered out, and the content currently displayed on the display screen of the first electronic device is projected to the second electronic device.
  • a link asking whether to cast the screen to the second electronic device can be added. If the user clicks "Confirm", the first electronic device will recast the content currently displayed on the display screen to the On the display screen of the second electronic device.
  • FIG. 14 is a schematic structural diagram of an electronic device provided by an embodiment of this application.
  • the electronic device may be the above-mentioned first electronic device.
  • the first electronic device may be a terminal device, or a chip or circuit, such as a chip or circuit that can be provided in the terminal device.
  • the electronic device 1301 may further include a bus system, and the processor 1302, the memory 1304, and the transceiver 1303 may be connected through the bus system.
  • the aforementioned processor 1302 may be a chip.
  • the processor 1302 may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), or a system on chip (SoC). It can be a central processor unit (CPU), a network processor (NP), a digital signal processing circuit (digital signal processor, DSP), or a microcontroller (microcontroller). unit, MCU), and may also be a programmable logic device (PLD) or other integrated chips.
  • FPGA field programmable gate array
  • ASIC application specific integrated circuit
  • SoC system on chip
  • CPU central processor unit
  • NP network processor
  • DSP digital signal processing circuit
  • microcontroller microcontroller
  • unit, MCU and may also be a programmable logic device (PLD) or other integrated chips.
  • PLD programmable logic device
  • the steps of the foregoing method can be completed by an integrated logic circuit of hardware in the processor 1302 or instructions in the form of software.
  • the steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed and completed by a hardware processor, or executed and completed by a combination of hardware and software modules in the processor 1302.
  • the software module can be located in a mature storage medium in the field, such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, registers.
  • the storage medium is located in the memory 1304, and the processor 1302 reads the information in the memory 1304, and completes the steps of the foregoing method in combination with its hardware.
  • the processor 1302 in the embodiment of the present application may be an integrated circuit chip with signal processing capability.
  • the steps of the foregoing method embodiments can be completed by hardware integrated logic circuits in the processor or instructions in the form of software.
  • the above-mentioned processor 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 devices, discrete gates or transistor logic devices, discrete hardware components .
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA field programmable gate array
  • the methods, steps, and logical block diagrams disclosed in the embodiments of the present application can be implemented or executed.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a mature storage medium in the field, such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, registers.
  • the storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
  • the memory 1304 in the embodiment of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory.
  • the non-volatile memory can be read-only memory (ROM), programmable read-only memory (programmable ROM, PROM), erasable programmable read-only memory (erasable PROM, EPROM), and electrically available Erase programmable read-only memory (electrically EPROM, EEPROM) or flash memory.
  • the volatile memory may be random access memory (RAM), which is used as an external cache.
  • RAM random access memory
  • static random access memory static random access memory
  • dynamic RAM dynamic RAM
  • DRAM dynamic random access memory
  • synchronous dynamic random access memory synchronous DRAM, SDRAM
  • double data rate synchronous dynamic random access memory double data rate SDRAM, DDR SDRAM
  • enhanced synchronous dynamic random access memory enhanced SDRAM, ESDRAM
  • synchronous connection dynamic random access memory serial DRAM, SLDRAM
  • direct rambus RAM direct rambus RAM
  • the electronic device 1301 may include a processor 1302, a transceiver 1303, and a memory 1304.
  • the memory 1304 is used to store instructions, and the processor 1302 is used to execute the instructions stored in the memory 1304, so as to realize the operation of the first electronic device in any one or more of the corresponding methods shown in FIGS. 1 to 11 above.
  • the processor 1302 is configured to obtain operation information of the user on the first electronic device, and the operation information is used to indicate a target direction; according to the position information of the first electronic device, the target direction And the location information of the N second electronic devices to determine the N second electronic devices, where N is a positive integer; the transceiver 1303 is used to send one or more second electronic devices of the N second electronic devices Send data; where each second electronic device satisfies the first condition: the angle between the first vector and the second vector is within the preset angle range; the first vector is composed of the position information of the second electronic device and the first The position information of the electronic device is determined; the direction of the second vector is the same as the target direction.
  • processor 1302 is specifically configured to:
  • the location information of the first electronic device, the target direction, and the location information of the N second electronic devices determine N second electronic devices that meet the first condition from the searched M third electronic devices,
  • the M is an integer not less than the N;
  • the identification information of the N second electronic devices is displayed on the display screen of the first electronic device.
  • processor 1302 is specifically configured to:
  • the weight of the second electronic device is the angle between the second vector corresponding to the second electronic device and the first vector, and/or the first vector
  • the distance between the second electronic device and the first electronic device is related.
  • processor 1302 is further configured to:
  • the interface displaying the identification information of the N second electronic devices on the display screen of the first electronic device is maintained unchanged; or;
  • the movement of the first electronic device is detected, when the identification information of N second electronic devices is displayed on the display screen of the first electronic device in the form of network topology, according to the second electronic device among the N second electronic devices
  • the relative position between the first electronic device and the moved first electronic device is updated, and the position of the identification information of the N second electronic devices displayed on the display screen of the first electronic device is updated, wherein, on the display screen of the first electronic device
  • the relative position of the identification information of the second electronic device and the identification information of the first electronic device matches the relative position of the second electronic device and the moved first electronic device; or;
  • one or more third electronic devices are determined according to the position information of the moved first electronic device and the target direction on the first electronic device after the movement; wherein, For one third electronic device among the one or more third electronic devices, the third electronic device satisfies the second condition: the angle between the third vector and the fourth vector is within the preset angle range; the third vector is determined by The position information of the third electronic device is determined with the position information of the first electronic device after the movement; the direction of the fourth vector matches the target direction on the first electronic device after the movement.
  • the processor 1302 is further configured to perform: receiving first signaling through the transceiver 1303, the first signaling including indication information for indicating a target electronic device, the target electronic device The device is one or more second electronic devices among the N second electronic devices; and according to the first signaling, data is sent to the target electronic device.
  • the processor 1302 is further configured to: send data to the second electronic device with the largest weight among the N second electronic devices through the transceiver 1303; wherein, for the N second electronic devices, A second electronic device of the second electronic device, the weight of the second electronic device and the angle between the second vector corresponding to the second electronic device and the first vector, and/or the second electronic device and the first vector The distance of an electronic device is related.
  • the processor 1302 is further configured to execute: when there is a second electronic device in the N second electronic devices, the system account logged in on the second electronic device is the same as that of the first electronic device. If the system account logged in on the device is the same, data is sent to the second electronic device through the transceiver 1303.
  • the processor 1302 is specifically configured to: obtain a sliding track performed by a user in a first preset area of the first electronic device through a first preset operation gesture; the first preset The area includes the display screen of the first electronic device and/or the frame of the first electronic device.
  • the processor 1302 determines the target file, and obtains a sliding track performed by the user in a second preset area through a second preset operation gesture, and the second preset area includes the target file The interface and/or the frame of the first electronic device.
  • the processor 1302 determines the target file, and obtains the user's sliding track in a third preset area, where the third preset area includes the first interface and/or the first electronic device.
  • the frame of the device, the first interface is a different interface from the interface where the target file is located.
  • the processor 1302 obtains operation information of the user operating the tool displayed on the display screen of the first electronic device, and determines based on the operation information that the user operates the tool , The target direction indicated by the tool.
  • the processor 1302 is specifically configured to: for a second electronic device among the N second electronic devices: according to the communication between the second electronic device and the first electronic device The preset distance range to which the distance belongs, and the corresponding relationship between the preset distance range and the preset included angle range, determine the preset included angle range in the first condition corresponding to the second electronic device; wherein, the preset distance range The smaller the maximum distance value in the preset distance range, the larger the corresponding maximum included angle in the preset included angle range corresponding to the preset distance range; according to the position information of the first electronic device, the target direction and the position information of the N second electronic devices , And the determined preset angle range, determine N second electronic devices.
  • the operation information is a sliding track of the user on the first electronic device, and the sliding track is used to indicate the target direction;
  • the second vector satisfies one or more of the following:
  • the second vector includes at least two points on the sliding track; or;
  • the ratio of the number of points on the sliding trajectory that coincide with the second vector to the total number of points included in the sliding trajectory is greater than the preset ratio; or
  • the start point of the second vector is the start point of the sliding trajectory
  • the end point of the second vector is the end point of the sliding trajectory
  • the identification information of the N second electronic devices satisfies one or more of the following contents:
  • the larger the weight of the second electronic device the larger the identification information font of the second electronic device
  • 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 of the display screen of the first electronic device;
  • the greater the weight of the second electronic device the larger the icon that displays the identification information of the second electronic device on the display screen of the first electronic device;
  • 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 different from that of the second electronic device and the first electronic device.
  • the relative position of an electronic device is matched.
  • FIG. 15 is a schematic structural diagram of an electronic device provided by an embodiment of the application.
  • the electronic device 1401 may include a communication interface 1403, a processor 1402, and a memory 1404.
  • the communication interface 1403 is used to input and/or output information; the processor 1402 is used to execute computer programs or instructions so that the electronic device 1401 implements the method on the first electronic device side in the above-mentioned related solutions of FIGS. 1 to 14.
  • the communication interface 1403 can implement the solution implemented by the transceiver 1303 in FIG. 14, the processor 1402 can implement the solution implemented by the processor 1302 in FIG. 14, and the memory 1404 can implement the memory 1304 in FIG. The implemented scheme will not be repeated here.
  • FIG. 16 is a schematic diagram of an electronic device provided by an embodiment of the application.
  • the electronic device 1501 may be a first electronic device, and the electronic device 1501 may be a terminal device or It is a chip or circuit, such as a chip or circuit that can be installed in a terminal device.
  • the processing unit 1502 is used to obtain operation information of the user, and the operation information is used to indicate a target direction; according to the position information of the first electronic device, the target direction and the position information of the N second electronic devices, N second electronic devices are determined , N is a positive integer; the transceiver unit 1503 is used to send data to one or more second electronic devices among the N second electronic devices; wherein, each second electronic device satisfies the first condition: the first vector and the first vector The angle between the two vectors is within the preset 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.
  • processing unit 1502 is specifically configured to:
  • the location information of the first electronic device, the target direction, and the location information of the N second electronic devices determine N second electronic devices that meet the first condition from the searched M third electronic devices,
  • the M is an integer not less than the N;
  • the identification information of the N second electronic devices is displayed on the display screen of the first electronic device.
  • processing unit 1502 is specifically configured to:
  • the weight of the second electronic device is the angle between the second vector corresponding to the second electronic device and the first vector, and/or the first vector
  • the distance between the second electronic device and the first electronic device is related.
  • processing unit 1502 is further configured to:
  • the interface displaying the identification information of the N second electronic devices on the display screen of the first electronic device is maintained unchanged; or;
  • the movement of the first electronic device is detected, when the identification information of N second electronic devices is displayed on the display screen of the first electronic device in the form of network topology, according to the second electronic device among the N second electronic devices
  • the relative position between the first electronic device and the moved first electronic device is updated, and the position of the identification information of the N second electronic devices displayed on the display screen of the first electronic device is updated, wherein, on the display screen of the first electronic device
  • the relative position of the identification information of the second electronic device and the identification information of the first electronic device matches the relative position of the second electronic device and the moved first electronic device; or;
  • one or more third electronic devices are determined according to the position information of the moved first electronic device and the target direction on the first electronic device after the movement; wherein, For one third electronic device among the one or more third electronic devices, the third electronic device satisfies the second condition: the angle between the third vector and the fourth vector is within the preset angle range; the third vector is determined by The position information of the third electronic device is determined with the position information of the first electronic device after the movement; the direction of the fourth vector matches the target direction on the first electronic device after the movement.
  • the processing unit 1502 is further configured to perform: receiving first signaling through the transceiving unit 1503, the first signaling including indication information for indicating a target electronic device, the target electronic device The device is one or more second electronic devices among the N second electronic devices; and according to the first signaling, data is sent to the target electronic device.
  • the processing unit 1502 is further configured to perform: sending data to the second electronic device with the largest weight among the N second electronic devices through the transceiving unit 1503; wherein, for the N second electronic devices, A second electronic device of the second electronic device, the weight of the second electronic device and the angle between the second vector corresponding to the second electronic device and the first vector, and/or the second electronic device and the first vector The distance of an electronic device is related.
  • the processing unit 1502 is further configured to perform: when there is one second electronic device in the N second electronic devices, the system account logged in on the second electronic device is the same as that of the first electronic device. If the system account logged in on the device is the same, the data is sent to the second electronic device through the transceiver unit 1503.
  • the processing unit 1502 is specifically configured to: obtain the sliding track performed by the user in the first preset area of the first electronic device through the first preset operation gesture; the first preset The area includes the display screen of the first electronic device and/or the frame of the first electronic device.
  • the processing unit 1502 determines the target file, and obtains a sliding track performed by the user in a second preset area through a second preset operation gesture, and the second preset area includes the target file The interface and/or the frame of the first electronic device.
  • the processing unit 1502 determines the target file, and obtains the user's sliding track in a third preset area.
  • the third preset area includes the first interface and/or the first electronic device.
  • the frame of the device, the first interface is a different interface from the interface where the target file is located.
  • the processing unit 1502 obtains operation information of the user operating the tool displayed on the display screen of the first electronic device, and determines according to the operation information that the user operates the tool , The target direction indicated by the tool.
  • the processing unit 1502 is specifically configured to: for a second electronic device among the N second electronic devices: according to the relationship between the second electronic device and the first electronic device The preset distance range to which the distance belongs, and the corresponding relationship between the preset distance range and the preset included angle range, determine the preset included angle range in the first condition corresponding to the second electronic device; wherein, the preset distance range The smaller the maximum distance value in the preset distance range, the larger the corresponding maximum included angle in the preset included angle range corresponding to the preset distance range; according to the position information of the first electronic device, the target direction and the position information of the N second electronic devices , And the determined preset angle range, determine N second electronic devices.
  • the division of the units of the above electronic device is only a division of logical functions, and may be fully or partially integrated into one physical entity in actual implementation, or may be physically separated.
  • the transceiver unit 1503 may be implemented by the transceiver 1303 in FIG. 14 described above, and the processing unit 1502 may be implemented by the processor 1302 in FIG. 14 described above.
  • the present application also provides a computer program product.
  • the computer program product includes: computer program code, which when the computer program code runs on a computer, causes the computer to execute the steps shown in FIGS. 1 to 14 The method of any one of the embodiments is shown.
  • the present application also provides a computer-readable storage medium, the computer-readable medium stores program code, and when the program code runs on a computer, the computer executes FIGS. 1 to 14 The method of any one of the illustrated embodiments.
  • the present application also provides a system, which includes the aforementioned one or more first electronic devices and one or more second electronic devices.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instruction may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
  • the computer instruction may be transmitted from a website, a computer, a server, or a data center through a cable (For example, coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (for example, infrared, wireless, microwave, etc.) to transmit to another website, computer, server, or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center integrated with one or more available media.
  • the usable medium can be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a high-density digital video disc (digital video disc, DVD)), or a semiconductor medium (for example, a solid state disk (solid state disc, SSD)). ))Wait.
  • a magnetic medium for example, a floppy disk, a hard disk, and a magnetic tape
  • an optical medium for example, a high-density digital video disc (digital video disc, DVD)
  • a semiconductor medium for example, a solid state disk (solid state disc, SSD)
  • the first electronic device in the above device embodiments corresponds to the first electronic device in the method embodiment, and the corresponding module or unit executes the corresponding steps, for example, the communication unit (transceiver) executes the receiving or sending steps in the method embodiment In addition to sending and receiving, other steps can be executed by the processing unit (processor).
  • the processing unit processor
  • the functions of specific units refer to the corresponding method embodiments. Among them, there may be one or more processors.
  • component used in this specification are used to denote computer-related entities, hardware, firmware, a combination of hardware and software, software, or software in execution.
  • the component may be, but is not limited to, a process, a processor, an object, an executable file, an execution thread, a program, and/or a computer running on a processor.
  • the application running on the computing device and the computing device can be components.
  • One or more components may reside in processes and/or threads of execution, and components may be located on one computer and/or distributed between two or more computers.
  • these components can be executed from various computer readable media having various data structures stored thereon.
  • the component can be based on, for example, a signal having one or more data packets (e.g. data from two components interacting with another component in a local system, a distributed system, and/or a network, such as the Internet that interacts with other systems through a signal) Communicate through local and/or remote processes.
  • a signal having one or more data packets (e.g. data from two components interacting with another component in a local system, a distributed system, and/or a network, such as the Internet that interacts with other systems through a signal) Communicate through local and/or remote processes.
  • the disclosed system, device, and method can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the unit is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or may also be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • this function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of the present application essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disk and other media that can store program code .
  • U disk mobile hard disk
  • read-only memory read-only memory
  • RAM random access memory
  • magnetic disk or optical disk and other media that can store program code .

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)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Environmental & Geological Engineering (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 for simplifying the solution of finding a second electronic device. The method comprises: a first electronic device obtains operating information of a user on the first electronic device, the operating information being used for indicating the target direction; determine N second electronic devices according to position information of the first electronic device, the target direction, and position information of the N second electronic devices; send data to one or more of the N second electronic device. The determined each second electronic device satisfies the following conditions: an included angle between a first vector and a second vector constituted 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, and the direction of the second vector matches the target direction. In this way, data sharing or screen projection operation can be realized by means of the operation of a user for indicating the target direction on a display screen of the first electronic device, so that the user's operation complexity in searching for the second electronic device can be simplified.

Description

一种数据传输方法、电子设备及存储介质Data transmission method, electronic equipment and storage medium
相关申请的交叉引用Cross-references to related applications
本申请要求在2020年01月22日提交中国专利局、申请号为202010075671.X、申请名称为“一种数据传输方法、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office, the application number is 202010075671.X, and the application name is "a data transmission method, electronic equipment, and storage medium" on January 22, 2020. The entire content of the application is approved The reference is incorporated in this application.
技术领域Technical field
本申请涉及通信领域,尤其涉及一种数据传输方法、电子设备及存储介质。This application relates to the field of communications, and in particular to a data transmission method, electronic equipment, and storage medium.
背景技术Background technique
随着各种便携式电子设备的普及,例如手机、平板电脑、PDA等各种设备的功能日新月异。由于触摸屏可以作为一种输入装置,只需要用户在显示屏上进行相应的触摸动作即可实现相应的指令操作,代替了繁琐的按键,因此越来越多的电子设备采用了触摸屏,例如可通过触摸屏控制文件的打开或者关闭动作,操作任务的切换等等。可见,触摸屏的应用使得客户体验更加直观,而且操作也更加方便。With the popularization of various portable electronic devices, the functions of various devices such as mobile phones, tablet computers, and PDAs are changing with each passing day. Since the touch screen can be used as an input device, the user only needs to perform corresponding touch actions on the display screen to achieve corresponding command operations, instead of cumbersome keys. Therefore, more and more electronic devices use touch screens, such as The touch screen controls the opening or closing of files, the switching of operation tasks, and so on. It can be seen that the application of touch screen makes the customer experience more intuitive and the operation is more convenient.
目前当用户想要把一个文件分享给其它人时,通常通过无线信号搜索到周边的移动设备。这种方式下,可以搜到附近的移动设备的设备名,用户需要知道被分享的用户的电子设备的设备名,之后从搜到的附近的众多移动设备中选择出被分享的用户设备,继而将文件分享给该用户。可以看出,该方案中要找到被分享用户,需要准确的知道用户的设备的设备名,过程较为复杂,这给用户带来了使用不便。Currently, when users want to share a file with others, they usually search for nearby mobile devices through wireless signals. In this way, the device name of nearby mobile devices can be searched. The user needs to know the device name of the shared user’s electronic device, and then select the shared user device from the many nearby mobile devices found, and then Share the file with this user. It can be seen that in this solution, to find the shared user, it is necessary to accurately know the device name of the user's device, and the process is relatively complicated, which brings inconvenience to the user.
发明内容Summary of the invention
本申请实施例提供一种数据传输方法、电子设备及存储介质,用以简化电子设备准确找到被分享的电子设备,提高用户使用体验。The embodiments of the present application provide a data transmission method, an electronic device, and a storage medium to simplify the electronic device to accurately find the shared electronic device and improve the user experience.
第一方面,本申请实施例提供一种数据传输方法,包括:第一电子设备获取用户的操作信息,操作信息用于指示目标方向;第一电子设备根据第一电子设备的位置信息、目标方向和N个第二电子设备的位置信息,确定出N个第二电子设备,N为正整数;其中,每个第二电子设备满足第一条件:第一矢量和第二矢量之间的夹角在预设夹角范围内;第一矢量由第二电子设备的位置信息和第一电子设备的位置信息确定;第二矢量的方向与目标方向相同;第一点子设备向N个第二电子设备中的一个或多个第二电子设备发送数据。如此,用户在第一电子设备的显示屏上进行操作以指向目标方向即可实现分享数据或者投屏操作,从而简化了用户在搜寻第二电子设备的过程中的操作复杂性。应用该方案后,用户不必再仅能根据第二电子设备的设备名来搜寻第二电子设备,可以根据第二电子设备相对于第一电子设备的位置信息来找寻第二电子设备,可以简化用户的操作。In a first aspect, an embodiment of the present application provides a data transmission method, including: a first electronic device obtains user operation information, the operation information is used to indicate a target direction; the first electronic device uses the location information and target direction of the first electronic device And the location information of the N second electronic devices to determine N second electronic devices, where N is a positive integer; where each second electronic device satisfies the first condition: the angle between the first vector and the second vector Within the preset 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 point device faces the N second electronic devices One or more second electronic devices in the device send data. In this way, the user can perform data sharing or screen projection operations by operating on the display screen of the first electronic device to point to the target direction, thereby simplifying the operation complexity of the user in the process of searching for the second electronic device. After applying this solution, users no longer need to search for the second electronic device only based on the device name of the second electronic device, and can search for the second electronic device based on the position information of the second electronic device relative to the first electronic device, which can simplify the user Operation.
在一种可能地实施方式中,第一矢量由第一电子设备的位置信息作为起点,第二电子设备的位置信息作为终点确定的。如此,可以在地球坐标系中通过第一电子设备的位置和第二电子设备的位置来确定第一矢量。In a possible implementation manner, the first vector is determined by using the location information of the first electronic device as the starting point and the location information of the second electronic device as the end point. In this way, the first vector can be determined by the position of the first electronic device and the position of the second electronic device in the earth coordinate system.
在一种可能地实施方式中,该操作信息为该用户在该第一电子设备上的滑动轨迹,该滑动轨迹用于指示该目标方向。该第二矢量满足以下一项或多项:该第二矢量至少包括该滑动轨迹上的两个点;或者;滑动轨迹上与第二矢量重合的点的数量与滑动轨迹上包括的总点数的占比大于预设占比;或者;第二矢量的起点为滑动轨迹的起点,第二矢量的终点为滑动轨迹的终点。如此,可以提高确定出第二矢量的方案的灵活性。In a possible implementation manner, the operation information is a sliding track of the user on the first electronic device, and the sliding track is used to indicate the target direction. The second vector satisfies one or more of the following: the second vector includes at least two points on the sliding trajectory; or; the number of points on the sliding trajectory that coincide with the second vector is less than the total number of points included in the sliding trajectory The proportion is greater than the preset proportion; or; the start point of the second vector is the start point of the sliding track, and the end point of the second vector is the end point of the sliding track. In this way, the flexibility of the scheme for determining the second vector can be improved.
在一种可能地实施方式中,该根据该第一电子设备的位置信息、该目标方向和N个第二电子设备的位置信息,确定该N个第二电子设备,包括:根据该第一电子设备的位置信息、该目标方向和N个第二电子设备的位置信息,从搜索到的M个第三电子设备中确定出满足该第一条件的N个第二电子设备,该M为不小于该N的整数;在该第一电子设备的显示屏上显示该N个第二电子设备的标识信息。可选地,可以提前搜索M个第三电子设备,如此,可以提高筛选N个第二电子设备的速率。In a possible implementation manner, 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: according to the first electronic device The location information of the device, the target direction and the location information of the N second electronic devices, N second electronic devices satisfying the first condition are determined from the searched M third electronic devices, where M is not less than The integer of the N; the identification information of the N second electronic devices is displayed on the display screen of the first electronic device. Optionally, M third electronic devices can be searched in advance, so that the rate of screening N second electronic devices can be increased.
在一种可能地实施方式中,在该第一电子设备的显示屏上显示该N个第二电子设备的标识信息,包括:根据该N个第二电子设备中各个第二电子设备的权重,在该第一电子设备的显示屏上显示该N个第二电子设备的标识信息;其中,针对该N个第二电子设备的一个第二电子设备,该第二电子设备的权重跟该第二电子设备对应的该第二矢量与该第一矢量的夹角,和/或该第二电子设备与该第一电子设备的距离相关。如此可以根据第二电子设备的权重来展示第二电子设备的标识信息,从而使显示的第二电子设备的标识信息的显示方式更加符合用户预期。In a possible implementation manner, displaying the identification information of the N second electronic devices on the display screen of the first electronic device includes: according to the weight of each second electronic device in the N second electronic devices, The identification information of the N second electronic devices is displayed on the display screen of the first electronic device; wherein, for a second electronic device of the N second electronic devices, the weight of the second electronic device is the same as that of the second electronic device. The angle between the second vector corresponding to the electronic device and the first vector, and/or the distance between the second electronic device and the first electronic device is related. In this way, the identification information of the second electronic device can be displayed according to the weight of the second electronic device, so that the display manner of the displayed identification information of the second electronic device is more in line with user expectations.
在一种可能地实施方式中,该N个第二电子设备的标识信息满足以下内容中的一项或多项:针对该N个第二电子设备的一个第二电子设备,该第二电子设备的权重越大,则该第二电子设备的标识信息字体越大;针对该N个第二电子设备的一个第二电子设备,该第二电子设备的权重越大,则该第二电子设备的标识信息的位置越靠近第一电子设备显示屏的顶端;针对该N个第二电子设备的一个第二电子设备,该第二电子设备的权重越大,在第一电子设备显示屏上显示该第二电子设备的标识信息的图标越大;针对该N个第二电子设备中的一个第二电子设备,在该第一电子设备的显示屏上该第二电子设备的标识信息与该第一电子设备的标识信息的相对位置,与在地球坐标系中该第二电子设备与该第一电子设备的相对位置匹配。如此可以通过在第一电子设备的显示屏上的显示方式来展示第二电子设备的权重,从而使用户可以更加清楚的确定出权重最大的第二电子设备。In a possible implementation manner, the identification information of the N second electronic devices satisfies one or more of the following content: for one second electronic device of the N second electronic devices, the second electronic device The greater the weight of the second electronic device, the greater the identification information font of the second electronic device; for a second electronic device of the N second electronic devices, the greater the weight of the second electronic device, the greater the weight of the second electronic device The position of the identification information is closer to the top of the display screen of the first electronic device; for a second electronic device of the N second electronic devices, the greater the weight of the second electronic device, the greater the weight of the second electronic device, the display on the display screen of the first electronic device The larger the icon of the identification information of the second electronic device is; for one second electronic device among the N second electronic devices, the identification information of the second electronic device is similar to the first electronic device on the display screen of the first electronic device. The relative position of the identification information of the electronic device matches the relative position of the second electronic device and the first electronic device in the earth coordinate system. In this way, the weight of the second electronic device can be displayed through the display on the display screen of the first electronic device, so that the user can more clearly determine the second electronic device with the largest weight.
在一种可能地实施方式中,该根据该N个第二电子设备中第二电子设备的权重,在该第一电子设备的显示屏上显示该N个第二电子设备的标识信息之后,向该N个第二电子设备中的一个或多个第二电子设备发送数据之前,还包括:若检测到该第一电子设备发生移动,则维持该第一电子设备的显示屏上显示有该N个第二电子设备的标识信息的界面不变。如此,可以防止用户由于误操作造成的第一电子设备的移动而影响N个第二电子设备的标识信息的显示。In a possible 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 the second electronic device among the N second electronic devices, Before one or more second electronic devices of the N second electronic devices send data, the method further includes: if it is detected that the first electronic device is moving, maintaining that N is displayed on the display screen of the first electronic device. The interface of the identification information of the second electronic device remains unchanged. In this way, the movement of the first electronic device caused by the user's misoperation can be prevented from affecting the display of the identification information of the N second electronic devices.
在一种可能地实施方式中,该根据该N个第二电子设备中第二电子设备的权重,在该第一电子设备的显示屏上显示该N个第二电子设备的标识信息之后,向该N个第二电子设备中的一个或多个第二电子设备发送数据之前,还包括:若检测到该第一电子设备发生移动,当以网络拓扑形式在该第一电子设备的显示屏上显示该N个第二电子设备的标识信息的情况下,根据该N个第二电子设备中第二电子设备与移动后的该第一电子设备之间相对位置的变化,在该第一电子设备的显示屏上更新所显示该N个第二电子设备的标识信息的 位置,其中,在该第一电子设备的显示屏上该第二电子设备的标识信息与该第一电子设备的标识信息的相对位置,与该第二电子设备与移动后的该第一电子设备的相对位置匹配。如此,当以网络拓扑的形式展示电子设备的标识时,第一电子设备移动或旋转后,可以刷新这些第二电子设备在第一设备上的显示位置,可以与以下方案类型:该方案中,在地图App中,用户的手机旋转了,但是地图还是与铺在地上类似。In a possible 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 the second electronic device among the N second electronic devices, Before one or more of the N second electronic devices sends data, the method further includes: if the first electronic device is detected to move, when the first electronic device is detected on the display screen of the first electronic device in the form of a network topology In the case of displaying the identification information of the N second electronic devices, according to the change in the relative position between the second electronic device and the moved first electronic device in the N second electronic devices, the first electronic device Update the location of the identification information of the N second electronic devices displayed on the display screen of the first electronic device, where 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 The relative position matches the relative position of the second electronic device and the moved first electronic device. In this way, when the identification of the electronic device is displayed in the form of a network topology, after the first electronic device moves or rotates, the display position of the second electronic device on the first device can be refreshed, which can be in accordance with the following scheme types: In this scheme, In the Map App, the user's phone rotates, but the map is still similar to laying on the ground.
在一种可能地实施方式中,该根据该N个第二电子设备中第二电子设备的权重,在该第一电子设备的显示屏上显示该N个第二电子设备的标识信息之后,向该N个第二电子设备中的一个或多个第二电子设备发送数据之前,还包括:若检测到该第一电子设备发生移动,则根据移动后的该第一电子设备的位置信息,以及发生移动后的该第一电子设备上的该目标方向,确定出一个或多个第三电子设备;其中,针对该一个或多个第三电子设备中的一个第三电子设备,该第三电子设备满足第二条件;其中,该第二条件包括:第三矢量和第四矢量之间的夹角在预设夹角范围内;该第三矢量包括该第三电子设备的位置信息和移动后的该第一电子设备的位置信息;该第四矢量的方向与发生移动后的该第一电子设备上的该目标方向匹配。如此,可以及时更新N个第二电子设备的标识信息。In a possible 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 the second electronic device among the N second electronic devices, Before one or more second electronic devices of the N second electronic devices send data, the method further includes: if it is detected that the first electronic device moves, 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 is determined, and one or more third electronic devices are determined; wherein, for one third electronic device among the one or more third electronic devices, the third electronic device The device satisfies the second condition; wherein, the second condition includes: the angle between the third vector and the fourth vector is within a preset angle range; the third vector includes the position information and the post-movement of the third electronic device The position information of the first electronic device; the direction of the fourth vector matches the target direction on the first electronic device after the movement. In this way, the identification information of the N second electronic devices can be updated in time.
在一种可能地实施方式中,该向该N个第二电子设备中的一个或多个第二电子设备发送数据,包括:接收第一信令,该第一信令包括用于指示目标电子设备的指示信息,该目标电子设备为该N个第二电子设备中的一个或多个第二电子设备;并根据该第一信令,向该目标电子设备发送数据。如此,可以使用户自己选择目标电子设备。In a possible implementation manner, the sending data to one or more second electronic devices among the N second electronic devices includes: receiving first signaling, where the first signaling includes instructions for indicating the target electronic device. The instruction information of the device, the target electronic device is one or more second electronic devices among the N second electronic devices; and according to the first signaling, data is sent to the target electronic device. In this way, the user can select the target electronic device by himself.
在一种可能地实施方式中,该向该N个第二电子设备中的一个或多个第二电子设备发送数据,包括:向该N个第二电子设备中权重最大的第二电子设备发送数据;其中,针对该N个第二电子设备的一个第二电子设备,该第二电子设备的权重跟该第二电子设备对应的该第二矢量与该第一矢量的夹角,和/或该第二电子设备与该第一电子设备的距离相关。在一种可能地实施方式中,该向该N个第二电子设备中的一个或多个第二电子设备发送数据,包括:当该N个第二电子设备中存在一个第二电子设备,该第二电子设备上登录的系统账号与第一电子设备上登录的系统账号相同,则向该第二电子设备发送数据。如此,可以推测出最符合用户预期的第二电子设备为目标电子设备,可以进一步提升用户的使用感受。In a possible implementation manner, the sending data to one or more second electronic devices among the N second electronic devices includes: sending data to the second electronic device with the largest weight among the N second electronic devices Data; wherein, for a second electronic device of the N second electronic devices, the weight of the second electronic device is the 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 is related. In a possible implementation manner, the sending data to one or more of the N second electronic devices includes: when there is one second electronic device in the N second electronic devices, the The system account logged in on the second electronic device is the same as the system account logged in on the first electronic device, and the data is sent to the second electronic device. In this way, it can be inferred that the second electronic device that best meets the user's expectations is the target electronic device, which can further enhance the user's experience of use.
在一种可能地实施方式中,该获取用户在第一电子设备上的操作信息,包括:获取用户通过第一预设操作手势在该第一电子设备的第一预设区域进行的滑动轨迹;该第一预设区域包括该第一电子设备的显示屏和/或该第一电子设备的边框。In a possible implementation manner, the obtaining operation information of the user on the first electronic device includes: obtaining a sliding track performed by the user in the first preset area of the first electronic device through a first preset operation gesture; The first preset area includes the display screen of the first electronic device and/or the frame of the first electronic device.
在一种可能地实施方式中,该获取用户在第一电子设备上的操作信息,包括确定目标文件,并获取用户通过第二预设操作手势在第二预设区域进行的滑动轨迹,该第二预设区域包括该目标文件所在的界面和/或该第一电子设备的边框。In a possible implementation manner, the acquiring operation information of the user on the first electronic device includes determining the target file, and acquiring the sliding track performed by the user in the second preset area through the second preset operation gesture. The second preset area includes the interface where the target file is located and/or the 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 the tool displayed on the display screen of the first electronic device, and determining according to the operation information After the user operates the tool, the target direction indicated by the tool. The tool may be a pointer on the display screen of the first electronic device, and the user may indicate the target direction by turning the pointer. Of course, the pointer is only an example, and the tool can also be other examples.
为了提高方案的灵活性,在一种可能地实施方式中,该获取用户在第一电子设备上的滑动轨迹,包括确定该目标文件,获取用户在第三预设区域进行的滑动轨迹,该第三预设 区域包括第一界面和/或该第一电子设备的边框,该第一界面为与该目标文件所在界面不同的界面。In order to improve the flexibility of the solution, in a possible implementation manner, the acquiring the sliding track of the user on the first electronic device includes determining the target file, acquiring the sliding track of the user in the third preset area, and the second The three preset areas include the first interface and/or the frame of the first electronic device, and the first interface is an interface different from the interface where the target file is located.
在一种可能地实施方式中,针对该N个第二电子设备中的一个第二电子设备,该第二电子设备和该第一电子设备的距离越近,第二电子设备对应的第一条件中的预设夹角范围越大。在一种可能地实施方式中,该根据该第一电子设备的位置信息、该目标方向和N个第二电子设备的位置信息,确定该N个第二电子设备,包括:针对该N个第二电子设备中的一个第二电子设备,根据该第二电子设备与该第一电子设备之间的距离所属的预设距离范围,以及预设距离范围和预设夹角范围之间的对应关系,确定该第二电子设备对应的第一条件中的预设夹角范围;其中,预设距离范围中的最大距离值越小,该预设距离范围对应的预设夹角范围中对应的最大夹角越大;第一电子设备根据第一电子设备的位置信息、目标方向和N个第二电子设备的位置信息、以及确定的预设夹角范围,确定N个第二电子设备。如此,可以避免遗漏距离第一电子设备较近的电子设备。In a possible implementation manner, for a second electronic device among the N second electronic devices, the closer the distance between the second electronic device and the first electronic device, the first condition corresponding to the second electronic device The larger the preset angle range in. In a possible implementation manner, 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: A second electronic device in the second electronic device, according to the preset distance range to which the distance between the second electronic device and the first electronic device belongs, and the correspondence between the preset distance range and the preset included angle range , Determine the preset angle range in the first condition corresponding to the second electronic device; wherein, the smaller the maximum distance value in the preset distance range is, the larger the preset angle range corresponds to the preset distance range. The larger the included angle is; the first electronic device determines 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 this way, it is possible to avoid missing electronic devices that are closer to the first electronic device.
相应于第一方面任一种通信方法,本申请还提供了一种电子设备。电子设备可以是以无线方式进行数据传输的任意一种发送端的设备或接收端的设备。例如,通信芯片、终端设备。在通信过程中,发送端的设备和接收端的设备是相对的。在某些通信过程中,电子设备可以作为上述电子设备或可用于电子设备的通信芯片。Corresponding to any communication method of the first aspect, the present application also provides an electronic device. The electronic device may be any type of device at the sending end or at the receiving end that performs data transmission in a wireless manner. For example, communication chips, terminal equipment. In the communication process, the device on the sending end and the device on the receiving end are relative. In some communication processes, the electronic device can be used as the above-mentioned electronic device or a communication chip that can be used in the electronic device.
第二方面,提供了一种电子设备,包括收发单元和处理单元,以执行上述第一方面任一种通信方法中的任一种实施方式。收发单元用于执行与发送和接收相关的功能。可选地,收发单元包括接收单元和发送单元。在一种设计中,电子设备为通信芯片,收发单元可以为通信芯片的输入输出电路或者端口。In a second aspect, an electronic device is provided, including a transceiving unit and a processing unit, to execute any implementation manner of any communication method in the first aspect. The transceiver unit is used to perform functions related to sending and receiving. Optionally, the transceiver unit includes a receiving unit and a sending unit. In one design, the electronic device is a communication chip, and the transceiver unit may be an input/output circuit or port of the communication chip.
在另一种设计中,收发单元可以为发射器和接收器,或者收发单元为发射机和接收机。In another design, the transceiver unit can be a transmitter and a receiver, or the transceiver unit can be a transmitter and a receiver.
可选的,电子设备还包括可用于执行上述第一方面任一种通信方法中的任一种实施方式的各个模块。Optionally, the electronic device further includes various modules that can be used to execute any one of the above-mentioned communication methods of the first aspect.
第三方面,提供了一种电子设备,该电子设备上述第一电子设备。该电子设备可以为终端设备。包括处理器和存储器。可选的,还包括收发器,该存储器用于存储计算机程序或指令,该处理器用于从存储器中调用并运行该计算机程序或指令,当该处理器执行存储器中的计算机程序或指令时,使得该电子设备执行上述第一方面任一种通信方法中的任一种实施方式。In a third aspect, an electronic device is provided, which is the above-mentioned first electronic device. The electronic device may be a terminal device. Including processor and memory. Optionally, it also includes a transceiver, the memory is used to store computer programs or instructions, the processor is used to call and run the computer programs or instructions from the memory, and when the processor executes the computer programs or instructions in the memory, it causes The electronic device executes any one of the implementation manners of any one of the communication methods of the first aspect described above.
可选的,处理器为一个或多个,存储器为一个或多个。Optionally, there are one or more processors, and one or more memories.
可选的,存储器可以与处理器集成在一起,或者存储器与处理器分离设置。Optionally, the memory may be integrated with the processor, or the memory and the processor may be provided separately.
可选的,收发器中可以包括,发射机(发射器)和接收机(接收器)。Optionally, the transceiver may include a transmitter (transmitter) and a receiver (receiver).
第四方面,提供了一种电子设备,包括处理器。该处理器与存储器耦合,可用于执行第一方面任一方面,以及第一方面中任一种可能实现方式中的方法。可选地,该电子设备还包括存储器。可选地,该电子设备还包括通信接口,处理器与通信接口耦合。In a fourth aspect, an electronic device is provided, including a processor. The processor is coupled with the memory, and can be used to execute any aspect of the first aspect and any method in any possible implementation manner of the first aspect. Optionally, the electronic device further includes a memory. Optionally, the electronic device further includes a communication interface, and the processor is coupled with 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. Optionally, the transceiver may be a transceiver circuit. Optionally, the input/output interface may be an input/output circuit.
在又一种实现方式中,该电子设备为芯片或芯片系统。当该电子设备为芯片或芯片系统时,该通信接口可以是该芯片或芯片系统上的输入/输出接口、接口电路、输出电路、输入电路、管脚或相关电路等。该处理器也可以体现为处理电路或逻辑电路。In yet another implementation manner, the electronic device is a chip or a chip system. When the electronic device is a chip or a chip system, the communication interface may be an input/output interface, interface circuit, output circuit, input circuit, pin or related circuit on the chip or chip system. The processor can also be embodied as a processing circuit or a logic circuit.
第五方面,提供了一种系统,系统包括上述第一电子设备和第二电子设备。In a fifth aspect, a system is provided, and the system includes the above-mentioned first electronic device and the second electronic device.
第六方面,提供了一种计算机程序产品,计算机程序产品包括:计算机程序(也可以称为代码,或指令),当计算机程序被运行时,使得计算机执行上述第一方面中任一种可能实现方式中的方法。In a sixth aspect, a computer program product is provided. The computer program product includes: a computer program (also called code, or instruction), which when the computer program is executed, causes the computer to execute any one of the above-mentioned first aspects. The method in the way.
第七面,提供了一种计算机可读存储介质,计算机可读介质存储有计算机程序(也可以称为代码,或指令)当其在计算机上运行时,使得计算机执行上述第一方面中任一种可能实现方式中的方法。On the seventh aspect, a computer-readable storage medium is provided. The computer-readable medium stores a computer program (also called code, or instruction) when it runs on a computer, which causes the computer to execute any one of the above-mentioned first aspects. One of the possible implementation methods.
第八方面,提供了一种处理装置,包括:输入电路、输出电路和处理电路。该处理电路用于通过该输入电路接收信号,并通过该输出电路发射信号,使得该第一方面中任一种可能实现方式中的方法被实现。In an eighth aspect, a processing device is provided, including: an input circuit, an output circuit, and a processing circuit. The processing circuit is used for receiving a signal through the input circuit and transmitting a signal through the output circuit, so that the method in any one of the possible implementation manners of the first aspect is realized.
在具体实现过程中,上述处理装置可以为芯片,输入电路可以为输入管脚,输出电路可以为输出管脚,处理电路可以为晶体管、门电路、触发器和各种逻辑电路等。输入电路所接收的输入的信号可以是由例如但不限于接收器接收并输入的,输出电路所输出的信号可以是例如但不限于输出给发射器并由发射器发射的,且输入电路和输出电路可以是同一电路,该电路在不同的时刻分别用作输入电路和输出电路。本申请实施例对处理器及各种电路的具体实现方式不做限定。In a specific implementation process, the above-mentioned 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, and various logic circuits. The input signal received by the input circuit may be received and input by, for example, but not limited to, a receiver, and the signal output by the output circuit may be, for example, but not limited to, output to the transmitter and transmitted by the transmitter, and the input circuit and output The circuit can be the same circuit, which is used as an input circuit and an output circuit at different times. The embodiments of the present application do not limit the specific implementation manners of the processor and various circuits.
附图说明Description of the drawings
图1为本申请实施例适用的一种可能的系统架构示意图;FIG. 1 is a schematic diagram of a possible system architecture to which an embodiment of this application is applicable;
图2为一种电子设备的结构示意图;Figure 2 is a schematic diagram of the structure of an electronic device;
图3为本申请实施例提供一种数据传输方法的流程示意图;FIG. 3 is a schematic flowchart of a data transmission method provided by an embodiment of this application;
图4为本申请实施例提供的一种系统架构示意图;FIG. 4 is a schematic diagram of a system architecture provided by an embodiment of the application;
图5为本申请实施例提供的另一种系统架构示意图;FIG. 5 is a schematic diagram of another system architecture provided by an embodiment of the application;
图6为本申请实施例提供的另一种系统架构示意图;FIG. 6 is a schematic diagram of another system architecture provided by an embodiment of the application;
图7为本申请实施例提供的另一种系统架构示意图;FIG. 7 is a schematic diagram of another system architecture provided by an embodiment of the application;
图8为本申请实施例提供的一种N个第二电子设备的标识信息的展示界面示意图;FIG. 8 is a schematic diagram of a display interface of identification information of N second electronic devices according to an embodiment of the application;
图9为本申请实施例提供的另一种N个第二电子设备的标识信息的展示界面示意图;FIG. 9 is a schematic diagram of another display interface of identification information of N second electronic devices according to an embodiment of the application;
图10为本申请实施例提供的另一种N个第二电子设备的标识信息的展示界面示意图;10 is a schematic diagram of another display interface of identification information of N second electronic devices provided by an embodiment of this application;
图11为本申请实施例提供的另一种N个第二电子设备的标识信息的展示界面示意图;11 is a schematic diagram of another display interface of identification information of N second electronic devices provided by an embodiment of this application;
图12为本申请实施例提供的另一种N个第二电子设备的标识信息的展示界面示意图;12 is a schematic diagram of another display interface of identification information of N second electronic devices provided by an embodiment of this application;
图13为本申请实施例提供的另一种N个第二电子设备的标识信息的展示界面示意图;FIG. 13 is a schematic diagram of another display interface of identification information of N second electronic devices according to an embodiment of the application;
图14为本申请实施例提供的一种电子设备的结构示意图;FIG. 14 is a schematic structural diagram of an electronic device provided by an embodiment of this application;
图15为本申请实施例提供的另一种电子设备的结构示意图;15 is a schematic structural diagram of another electronic device provided by an embodiment of the application;
图16为本申请实施例提供的另一种电子设备的结构示意图。FIG. 16 is a schematic structural diagram of another electronic device provided by an embodiment of the application.
具体实施方式Detailed ways
图1为本申请实施例适用的一种可能的系统架构示意图。如图1所示的系统架构包括多个电子设备,如图1所示,包括电子设备201、电子设备202、电子设备203、电子设备204、电子设备205和电子设备206。本申请实施例中电子设备的位置可以是 随意的,比如电子设备203位于电子设备201的左前方,电子设备204位于电子设备201的前方等等。FIG. 1 is a schematic diagram of a possible system architecture to which an embodiment of this application is applicable. The system architecture shown in FIG. 1 includes multiple electronic devices, as shown in FIG. 1, including electronic device 201, electronic device 202, electronic device 203, electronic device 204, electronic device 205, and electronic device 206. The location of the electronic device in the embodiment of the present application may be arbitrary, for example, the electronic device 203 is located in the front left of the electronic device 201, the electronic device 204 is located in front of the electronic device 201, and so on.
本申请实施例提供一种方案,可以根据电子设备的位置信息和用户在电子设备的操作信息所指示的目标方向,确定出需要传输数据的电子设备。本申请实施例中一个电子设备可以检测到其它电子设备的信号。应理解,本申请实施例对系统架构中电子设备的数量不作限定,而且本申请实施例所适用的系统架构中除了包括电子设备以外,还可以包括其它设备,如网络设备、核心网设备、无线中继设备和无线回传设备等,对此本申请实施例也不作限定。The embodiments of the present application provide a solution that can determine the electronic device that needs to transmit data based on the location information of the electronic device and the target direction indicated by the user's operation information on the electronic device. In the embodiments of the present application, one electronic device can detect signals from other electronic devices. It should be understood that the embodiments of the present application do not limit the number of electronic devices in the system architecture, and the system architecture to which the embodiments of the present application are applicable may include other devices in addition to electronic devices, such as network devices, core network devices, and wireless devices. Relay equipment and wireless backhaul equipment, etc., are not limited in this embodiment of the present application.
本申请实施例的电子设备可以包括向用户提供语音和/或数据连通性的设备,例如可以包括具有无线连接功能的手持式设备、或连接到无线调制解调器的处理设备。该电子设备可以经无线接入网(radio access network,RAN)与核心网进行通信,与RAN交换语音和/或数据。该电子设备可以包括用户设备(user equipment,UE)、无线电子设备、移动电子设备、设备到设备通信(device-to-device,D2D)电子设备、V2X电子设备、机器到机器/机器类通信(machine-to-machine/machine-type communications,M2M/MTC)电子设备、物联网(internet of things,IoT)电子设备、订户单元(subscriber unit)、订户站(subscriber station),移动站(mobile station)、远程站(remote station)、接入点(access point,AP)、远程终端(remote terminal)、接入终端(access terminal)、用户终端(user terminal)、用户代理(user agent)、或用户装备(user device)等。例如,可以包括移动电话(或称为“蜂窝”电话),具有移动电子设备的计算机,便携式、袖珍式、手持式、计算机内置的移动装置等。例如,个人通信业务(personal communication service,PCS)电话、无绳电话、会话发起协议(session initiation protocol,SIP)话机、无线本地环路(wireless local loop,WLL)站、个人数字助理(personal digital assistant,PDA)、等设备。还包括受限设备,例如功耗较低的设备,或存储能力有限的设备,或计算能力有限的设备等。例如包括条码、射频识别(radio frequency identification,RFID)、传感器、全球定位系统(global positioning system,GPS)、激光扫描器等信息传感设备。The electronic devices in the embodiments of the present application may include devices that provide users with voice and/or data connectivity, for example, may include a handheld device with a wireless connection function, or a processing device connected to a wireless modem. The electronic device can communicate with the core network via a radio access network (RAN), and exchange voice and/or data with the RAN. The electronic equipment may include user equipment (UE), wireless electronic equipment, mobile electronic equipment, device-to-device communication (device-to-device, D2D) electronic equipment, V2X electronic equipment, machine-to-machine/machine-type communication ( machine-to-machine/machine-type communications, M2M/MTC) electronic equipment, Internet of things (IoT) electronic equipment, subscriber unit (subscriber unit), subscriber station (subscriber station), mobile station (mobile station) , Remote station (remote station), access point (access point, AP), remote terminal (remote terminal), access terminal (access terminal), user terminal (user terminal), user agent (user agent), or user equipment (user device) and so on. For example, it may include a mobile phone (or called a "cellular" phone), a computer with mobile electronic equipment, portable, pocket-sized, hand-held, mobile devices with built-in computers, and so on. For example, personal communication service (PCS) phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants, PDA), and other equipment. It also includes restricted devices, such as devices with low power consumption, or devices with limited storage capabilities, or devices with limited computing capabilities. Examples include barcodes, radio frequency identification (RFID), sensors, global positioning system (GPS), laser scanners and other information sensing equipment.
图2示例性示出了一种电子设备的结构示意图。图2中以电子设备为手机为例进行示意。应理解,图示电子设备仅是一个范例,并且电子设备可以具有比图2中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图2中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。Figure 2 exemplarily shows a schematic structural diagram of an electronic device. In FIG. 2, the electronic device is a mobile phone as an example for illustration. It should be understood that the illustrated electronic device is only an example, and the electronic device may have more or fewer components than shown in FIG. 2, two or more components may be combined, or may have different components Configuration. 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.
如图2所示,电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。图2中以天线1和天线2进行示例,可选地,还可以包括其他天线。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, and a battery 142 , Antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193 , Display screen 194, subscriber identification module (subscriber identification module, SIM) card interface 195, etc. 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 sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light Sensor 180L, bone conduction sensor 180M, etc. In FIG. 2, antenna 1 and antenna 2 are used as examples, and optionally, other antennas may also be included.
下面结合图2对电子设备的各个部件进行具体的介绍:The following is a detailed introduction to the various components of the electronic device with reference to Figure 2:
处理器110可以包括一个或多个处理单元,例如,处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。其中,控制器可以是电子设备的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。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), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait. Among them, the different processing units may be independent devices or integrated in one or more processors. Among them, the controller can be the nerve center and command center of the electronic device. The controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching instructions and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从该存储器中直接调用,从而可避免重复存取,可减少处理器110的等待时间,因而可提高系统的效率。A memory may also be provided in the processor 110 to store instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory, thereby avoiding repeated access, reducing the waiting time of the processor 110, and improving the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。比如,接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 110 may include one or more interfaces. For example, the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver ( universal asynchronous receiver/transmitter, UART interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface , And/or Universal Serial Bus (USB) interface, etc.
电子设备的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。电子设备中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in an electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example: Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna can be used in combination with a tuning switch.
移动通信模块150可以提供应用在电子设备上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to electronic devices. 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 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110. In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed 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 an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在电子设备上的包括无线局域网(wireless local area  networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide applications in electronic devices including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellite systems. (global navigation satellite system, GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (infrared, IR) and other wireless communication solutions. 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, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be sent from the processor 110, perform frequency modulation, amplify, and convert it into electromagnetic waves to radiate through the antenna 2.
在一些实施例中,电子设备的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备可以通过无线通信技术与网络以及其他设备通信。该无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。该GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include the global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband code Wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technology, etc. The GNSS can include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi- Zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
电子设备通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device realizes the display function through the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and is used for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在本申请实施例中,显示屏194可以是一个一体的柔性显示屏,也可以采用两个刚性屏以及位于两个刚性屏之间的一个柔性屏组成的拼接的显示屏。The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can use liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode). AMOLED, flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc. In the embodiment of the present application, the display screen 194 may be an integrated flexible display screen, or a spliced display screen composed of two rigid screens and a flexible screen located between the two rigid screens.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
内部存储器121可以用于存储计算机可执行程序代码,该可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备的各种功能应用以及数据处理。The internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions. The internal memory 121 may include a storage program area and a storage data area. Among them, the storage program area can store an operating system, an application program (such as a sound playback function, an image playback function, etc.) required by at least one function, and the like. The data storage area can store data (such as audio data, phone book, etc.) created during the use of the electronic device. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like. The processor 110 executes various functional applications and data processing of the electronic device by running instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例 中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备根据压力传感器180A检测该触摸操作强度。电子设备也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be provided on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors and so on. The capacitive pressure sensor may include at least two parallel plates with conductive materials. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device determines the strength of the pressure based on the change in capacitance. When a touch operation acts on the display screen 194, the electronic device detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device may also calculate the touched position based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch position but have different touch operation strengths may correspond to different operation instructions.
陀螺仪传感器180B可以用于确定电子设备的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B can be used to determine the movement posture of the electronic device. In some embodiments, the angular velocity of the electronic device around three axes (ie, x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyro sensor 180B can be used for image stabilization. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
气压传感器180C用于测量气压。在一些实施例中,电子设备通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
磁传感器180D包括霍尔传感器。电子设备可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备是翻盖机时,电子设备可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。The magnetic sensor 180D includes a Hall sensor. The electronic device can use the magnetic sensor 180D to detect the opening and closing of the flip holster. In some embodiments, when the electronic device is a flip machine, the electronic device can detect the opening and closing of the flip according to the magnetic sensor 180D. Furthermore, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, features such as automatic unlocking of the flip cover are set.
加速度传感器180E可检测电子设备在各个方向上(一般为三轴)加速度的大小。当电子设备静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device in various directions (generally three axes). When the electronic device is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and apply to applications such as horizontal and vertical screen switching, pedometers, etc.
距离传感器180F,用于测量距离。电子设备可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备可以利用距离传感器180F测距以实现快速对焦。Distance sensor 180F, used to measure distance. Electronic equipment can measure distance through infrared or laser. In some embodiments, when shooting a scene, the electronic device may use the distance sensor 180F to measure the distance to achieve fast focusing.
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备通过发光二极管向外发射红外光。电子设备使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备附近有物体。当检测到不充分的反射光时,电子设备可以确定电子设备附近没有物体。电子设备可以利用接近光传感器180G检测用户手持电子设备贴近耳朵通话,以便自动熄灭显示屏达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。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. Electronic devices use photodiodes 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 can determine that there is no object near the electronic device. The electronic device can use the proximity light sensor 180G to detect that the user holds the electronic device close to the ear to talk, so as to automatically turn off the display screen to save power. The proximity light sensor 180G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
指纹传感器180H用于采集指纹。电子设备可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。例如,可以在电子设备的正面(显示屏194的下方)配置指纹传感器,或者,在电子设备的背面(后置摄像头的下方)配置指纹传感器。另外,也可以通过在触摸屏中配置指纹传感器来实现指纹识别功能,即指纹传感器可以与触摸屏集成在一起来实现电子设备的指纹识别功能。在这种情况下,该指纹传感器可以配置在触摸屏中,可以是触摸屏的一部分,也可以是以其他方式配置在触摸屏中。另外,该指纹传感器还可以被实现为全面板指纹传感器,因此,可以把触摸屏看成是任何位置可都可以进行指纹采集的一个面板。在一些实施例中,该指纹传感器可以对采集到的指纹进行处理(例如指纹是否验证通过)发送给处理器110,由处理器110根据指纹处理结果做出相应的处理。在另一些实施例中,还指纹传感器还可以将采集到的指纹发送给处理器110,以便处理器110对该指纹进行处理(例如指纹验证等)。本申请实施例中可以通过传感器采集用户的操作信息,传感器可以采用任何类型的感测技术,包括但不限于光学式、电容式、 压电式或超声波传感技术等。The fingerprint sensor 180H is used to collect fingerprints. Electronic devices can use the collected fingerprint characteristics to unlock fingerprints, access application locks, take photos with fingerprints, and answer calls with fingerprints. For example, a fingerprint sensor may be arranged on the front of the electronic device (below the display screen 194), or a fingerprint sensor may be arranged on the back 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 configured in the touch screen, may be a part of the touch screen, or may be configured in the touch screen in other ways. In addition, the fingerprint sensor can also be implemented as a full panel fingerprint sensor. Therefore, the touch screen can be regarded as a panel that can collect fingerprints at any position. In some embodiments, the fingerprint sensor may process the collected fingerprint (for example, whether the fingerprint is verified) and send it to the processor 110, and the processor 110 will make corresponding processing according to the fingerprint processing result. In other embodiments, the fingerprint sensor may also send the collected fingerprint to the processor 110, so that the processor 110 can process the fingerprint (for example, fingerprint verification, etc.). In the embodiments of the present application, the user's operating information can be collected through a sensor, and the sensor can use any type of sensing technology, including but not limited to optical, capacitive, piezoelectric, or ultrasonic sensing technology.
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备的表面,与显示屏194所处的位置不同。Touch sensor 180K, also called "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”. The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. The visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device, which is different from the position of the display screen 194.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备可以接收按键输入,产生与电子设备的用户设置以及功能控制有关的键信号输入。The button 190 includes a power-on button, a volume button, and so on. The button 190 may be a mechanical button. It can also be a touch button. The electronic device can receive key input, and generate key signal input related to user settings and function control of the electronic device.
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 can generate vibration prompts. The motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as photographing, audio playback, etc.) can correspond to different vibration feedback effects. Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminding, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
尽管图2中未示出,电子设备还可以包括蓝牙装置、定位装置、闪光灯、微型投影装置、近场通信(near field communication,NFC)装置等,在此不予赘述。Although not shown in FIG. 2, the electronic device may also include a Bluetooth device, a positioning device, a flashlight, a micro-projection device, a near field communication (NFC) device, etc., which will not be repeated here.
下面结合图2所示的电子设备的架构,对本申请实施例方法进行详尽描述。图3示例性示出了本申请实施例提供一种数据传输方法的流程示意图,如图3所示,该方法包括:The method of the embodiment of the present application will be described in detail below in conjunction with the architecture of the electronic device shown in FIG. 2. FIG. 3 exemplarily shows a schematic flowchart of a data transmission method provided by an embodiment of the present application. As shown in FIG. 3, the method includes:
步骤301,第一电子设备获取用户在第一电子设备上的操作信息,该操作信息用于指示目标方向。Step 301: The first electronic device obtains user operation information on the first electronic device, where the operation information is used to indicate a target direction.
在步骤301中,一种可选地实施方式中,第一电子设备中的处理器可以获取用户对该第一电子设备的显示屏上展示的工具进行操作的操作信息,处理器根据该操作信息确定出该用户对该工具进行操作后,该工具所指示的目标方向。该工具可以是显示在第一电子设备的显示屏上的一个指针,用户可以通过转动指针的方式来指示目标方向。当然指针仅仅是一个示例,该工具也可以是其它示例。In step 301, in an optional implementation manner, the processor in the first electronic device may obtain operation information of the user operating the tool displayed on the display screen of the first electronic device, and the processor may obtain the operation information according to the operation information. Determine the target direction indicated by the tool after the user operates the tool. The tool may be a pointer displayed on the display screen of the first electronic device, and the user may indicate the target direction by rotating the pointer. Of course, the pointer is only an example, and the tool can also be other examples.
另一种可选地实施方式中,该操作信息可以为该用户在该第一电子设备上的滑动轨迹,该滑动轨迹用于指示目标方向。也可以说,目标方向即为滑动轨迹所指示的滑动方向。用户可以对第一电子设备的边框和/或显示屏进行滑动。当在第一电子设备的边框上滑动的时候,可以有四个方向,分别为左、右、上和下。若在第一电子设备的显示屏上滑动时,方向可以是显示屏内的360°方向,自由度更大。可选地,还可以在第一电子设备上预设一个区域,用于用户在该区域内滑动时,则启动分享文件至第二电子设备的操作。该预设的区域可以是被第一电子设备中的压力传感器或指纹传感器感应出用户的滑动轨迹的一个区域,比如上述提到的第一电子设备的边框和/或显示屏等等。In another optional implementation manner, the operation information may be a sliding track of the user on the first electronic device, and 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 can slide the frame and/or display screen of the first electronic device. When sliding on the frame of the first electronic device, there can be four directions, namely left, right, up and down. When sliding on the display screen of the first electronic device, the direction can be a 360° direction in the display screen, and the degree of freedom is greater. Optionally, an area can also be preset on the first electronic device for when the user slides in the area, the operation of sharing the file to the second electronic device is initiated. The preset area may be an area where the user's sliding track is sensed by the pressure sensor or fingerprint sensor in the first electronic device, such as the frame and/or display screen of the first electronic device mentioned above.
步骤302,根据该第一电子设备的位置信息、该目标方向和N个第二电子设备的位置信息,确定该N个第二电子设备,该N为正整数。Step 302: Determine 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, where N is a positive integer.
在步骤302中,第一电子设备可以检测到一个或多个第二电子设备的信号,该信号可以是蓝牙信号等,并根据信号确定第二电子设备的位置。具体地,可以由第一电子设备中的处理器采用定位技术,比如AoA/AoD等技术,并基于一个或多个第二电子设备的信号确定出一个或多个第二电子设备的位置信息。其中,如何基于AoA/AoD技术利用电子设备的发射信号强度等属性确定电子设备的位置属于公知技术,这里不再详细赘述。In step 302, the first electronic device may detect one or more signals of the second electronic device, which may be a Bluetooth signal or the like, and determine the position of the second electronic device according to the signal. Specifically, the processor in the first electronic device may use positioning technology, such as AoA/AoD and other technologies, and determine the location information of one or more second electronic devices based on the signals of one or more second electronic devices. Among them, how to determine the location of the electronic device based on the AoA/AoD technology using attributes such as the strength of the transmitted signal of the electronic device is a well-known technology, and will not be described in detail here.
针对N个第二电子设备中的任意一个第二电子设备,该第二电子设备满足第一条件, 第一条件可以包括:第一矢量和第二矢量之间的夹角在预设夹角范围内;该第一矢量由第二电子设备的位置信息和该第一电子设备的位置信息确定;该第二矢量的方向与该目标方向相同。For any one of the N second electronic devices, the second electronic device satisfies the first condition, and the first condition may include: the angle between the first vector and the second vector is within a preset angle range Within; the first vector is determined by the location information of the second electronic device and the location information of the first electronic device; the direction of the second vector is the same as the target direction.
一种可选地实施方式中,针对第一矢量,第一矢量包括第二电子设备的位置信息和该第一电子设备的位置信息这两个点。可选地,也可以由第二电子设备的位置信息和该第一电子设备的位置信息确定出第一矢量,第一矢量的方向从第一电子设备出发指向第二电子设备。In an optional implementation manner, for the first vector, the first vector includes two points, the location information of the second electronic device and the location information of the first electronic device. Optionally, the 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 the direction of the first vector starts from the first electronic device and points to the second electronic device.
在确定第一矢量和第二矢量之间的夹角时,需要将第一矢量和第二矢量放在同一个坐标系下,以确定第一矢量和第二矢量之间的夹角。也可以说,在一个选定的坐标系下,确定第一矢量和第二矢量之间的夹角。该选定的坐标系可以为用户自定义的坐标系,还可以是地球坐标系。本申请实施例中仅仅以地球坐标系为例进行示例,本领域技术人员可知,地球坐标系也可以替换为其它坐标系。When determining the angle between the first vector and the second vector, the first vector and the second vector need to be placed in the same coordinate system to determine the 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 or an earth coordinate system. In the embodiments of the present application, only the earth coordinate system is taken as an example, and those skilled in the art will know that the earth coordinate system can also be replaced with other coordinate systems.
步骤303,第一电子设备向该N个第二电子设备中的一个或多个第二电子设备发送数据。Step 303: The first electronic device sends data to one or more second electronic devices among the N second electronic devices.
在步骤303中,第一电子设备发送的数据可以是具体文件,比如照片、文本、视频、音频等等,如此,第一电子设备可以将需要分享的文件发送给一个或多个第二电子设备,当然也可以是将需要分享的文件投屏至一个或多个第二电子设备。第一电子设备发送的数据还可以是第一电子设备的显示屏上当前显示的内容,如此,第一电子设备可以将第一电子设备的显示屏上实时显示的内容投屏至一个或多个第二电子设备,当然也可以是将第一电子设备的显示屏上实时显示的内容分享给第一或多个第二电子设备。In step 303, the data sent by the first electronic device may be a specific file, such as a photo, text, video, audio, etc., in this way, the first electronic device may send the file to be shared to one or more second electronic devices , Of course, it can also project the file to be shared to one or more second electronic devices. The data sent by the first electronic device may also be the content currently displayed on the display screen of the first electronic device. In this way, 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 The second electronic device, of course, can also share the real-time content displayed on the display screen of the first electronic device with the first or multiple second electronic devices.
通过上述图3提供的方案,可以看出,本申请实施例中,第一电子设备可以通过第一电子设备的位置信息和用户在第一电子设备上的操作信息或滑动轨迹,确定出N个第二电子设备作为被分享的电子设备。如此,用户在第一电子设备的显示屏上滑动即可实现分享数据或者投屏操作,从而简化用户在搜寻被分享的第二电子设备的过程中的操作复杂性。应用该方案后,用户不必再仅能根据第二电子设备的设备名来搜寻第二电子设备,可以根据第二电子设备相对于第一电子设备的位置信息来找寻第二电子设备,可以简化用户的操作,改善用户感受。From the solution provided in FIG. 3 above, it can be seen that, in the embodiment of the present application, the first electronic device can determine the N number based on the position information of the first electronic device and the operation information or sliding track of the user on the first electronic device. The second electronic device serves as the shared electronic device. In this way, the user can swipe on the display screen of the first electronic device to perform data sharing or screen projection operations, thereby simplifying the operation complexity of the user in the process of searching for the shared second electronic device. After applying this solution, users no longer need to search for the second electronic device only based on the device name of the second electronic device, and can search for the second electronic device based on the position information of the second electronic device relative to the first electronic device, which can simplify the user Operation to improve user experience.
本申请实施例中,空间上的两个点,一个作为矢量的起点,一个作为矢量的终点,则该两个点可以确定一个矢量。本申请实施例中的第一矢量由第一电子设备的位置信息和第二电子设备的位置信息来确定。应理解,在上述步骤302中,一种可选地实施方式中,第一矢量的起点包括该第一电子设备的位置,该第一矢量的终点包括该第二电子设备的位置。In the embodiment of the present application, two points in space, one as the starting point of the vector and one as the end point of the vector, the two points can determine a vector. The first vector in the embodiment of the present application is determined by the location information of the first electronic device and the location information of the second electronic device. It should be understood that in the foregoing step 302, in an optional implementation manner, the start point of the first vector includes the position of the first electronic device, and the end point of the first vector includes the position of the second electronic device.
在上述步骤302中,第二矢量的确定方式有多种,该操作信息若为该用户在该第一电子设备上的显示屏上的滑动轨迹,该滑动轨迹用于指示该目标方向。这种情况下,第二矢量则可以根据滑动轨迹来确定。本申请实施例中第二矢量的方向与滑动轨迹所指示的滑动方向匹配,可以理解为第二矢量的方向为滑动轨迹所指示的方向。第二矢量的起点可以为滑动轨迹在显示屏上的起始位置,第二矢量的终点可以为滑动轨迹在显示屏上的终止位置。下面通过方案a1、方案a2、方案a3、方案a4和方案a5进行示例性介绍。In the above step 302, there are multiple ways to determine the second vector. 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 can be determined according to 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 starting point of the second vector may be the starting position of the sliding track on the display screen, and the end point of the second vector may be the ending position of the sliding track on the display screen. The following is an exemplary introduction through scheme a1, scheme a2, scheme a3, scheme a4, and scheme a5.
方案a1,该第二矢量至少包括该滑动轨迹上的两个点。该两个点的选择较为自由,比如可以是接近滑动轨迹的起点的一个点以及接近滑动轨迹的终点的一个点。Solution a1, the second vector includes at least two points on the sliding track. The choice of the two points is relatively free, for example, a point close to the starting point of the sliding track and a point close to the end point of the sliding track.
方案a2,该第二矢量的起点包括该滑动轨迹的起点,该第二矢量的终点包括该滑动轨 迹的终点。Solution a2, the start point of the second vector includes the start point of the sliding track, and the end point of the second vector includes the end point of the sliding track.
方案a3,该滑动轨迹上与该第二矢量重合的点在该滑动轨迹上的占比大于预设占比。预设占比可以是预设的,比如80%等。Solution a3, the proportion of points on the sliding track that coincide with the second vector on the sliding track is greater than a preset proportion. The preset proportion may be preset, such as 80%.
方案a4,可以将滑动轨迹上的滑动轨迹的起点区域和/或滑动轨迹的终点区域去掉,将与滑动轨迹剩余的中间部分较接近的一条带方向的直线作为第二矢量。Solution a4, the starting point area and/or the end point area of the sliding trajectory on the sliding trajectory can be removed, and a straight line with a direction closer to the remaining middle part of the sliding trajectory is used as the second vector.
进一步,在方案a4中,可以将滑动轨迹上的滑动轨迹的起点区域和/或滑动轨迹的终点区域去掉,将与滑动轨迹剩余的中间部分较接近的一条带方向的直线作为第二矢量,且该直线可以包括该滑动轨迹上预设占比的点,比如该直线可以包括该滑动轨迹上80%的点,也可以说,该直线与该滑动轨迹上80%的点都重合。Further, in solution a4, the starting point area and/or the end point area of the sliding trajectory on the sliding trajectory can be removed, and a directional straight line closer to the remaining middle part of the sliding trajectory is used as the second vector, and The straight line may include a preset proportion of points on the sliding trajectory. For example, the straight line may include 80% of the points on the sliding trajectory. It can also be said that the straight line coincides with 80% of the points on the sliding trajectory.
方案a5,由于用户人为操作的误差,因此用户在第一电子设备的显示屏上的滑动方向可能为曲线,或者用户的滑动轨迹的起点和/或滑动轨迹的终点带有一小段弯曲的轨迹等等,这种情况下,第一电子设备中的处理器可以对用户在第一电子设备的显示屏上的滑动轨迹进行分析,从而确定出滑动轨迹所指示的滑动方向,以便根据滑动轨迹所指示的滑动方向确定出第二矢量的方向。一种可能地实施方式中,可以将用户滑动结束离开显示屏时曲线的切线方向作为第二矢量。Solution a5, due to the error of the user's human operation, the user's sliding direction on the display screen of the first electronic device may be a curve, or the starting point of the user's sliding track and/or the end of the sliding track may have a small curved track, etc. In this case, the processor in the first electronic device can analyze the user's sliding track on the display screen of the first electronic device to determine the sliding direction indicated by the sliding track, so as to determine the sliding direction indicated by the sliding track according to the sliding track indicated by the sliding track. The sliding direction determines the direction of the second vector. In a possible implementation manner, the tangent direction of the curve when the user finishes sliding and leaves the display screen may be used as the second vector.
在上述步骤302中,可以理解为,第一电子设备将滑动轨迹所指示的方向的附近区域的电子设备筛选出来。预设夹角范围比如为±以理解,则在空间上,以第一电子设备的显示屏上的第二矢量为中心,将搜索到的空间上与第二矢量夹角在±角在±范围内的电子设备筛选出来。图4示例性示出了一种系统架构示意图,如图4所示,用户在第一电子设备201的显示屏上进行滑动,根据滑动轨迹确定出第二矢量如图4所示,为一个向左前方滑动的方向示意。在图4中,第二电子设备203的位置信息与第一电子设备201的位置信息组成了第一矢量。如图4所示,在地球坐标系中,第一矢量和第二矢量之间的夹角较小,小于预设夹角范围,在图4中以预设夹角范围为±设夹角举例。因此,可以确定电子设备203即为上述步骤302确定出的一个第二电子设备。In the above step 302, it can be understood that the first electronic device screens out the electronic devices in the vicinity of the direction indicated by the sliding track. For example, the preset included angle range is ± for understanding, then in space, take the second vector on the display screen of the first electronic device as the center, and set the searched space and the second vector at the angle of ± within the range of ± The electronic devices inside are screened out. FIG. 4 exemplarily shows a schematic diagram of a system architecture. As shown in FIG. 4, the user slides on the display screen of the first electronic device 201, and the second vector is determined according to the sliding track. As shown in FIG. 4, it is a direction. The direction of the slide to the front left is indicated. In FIG. 4, the location information of the second electronic device 203 and the location information of the first electronic device 201 form a first vector. As shown in Figure 4, in the earth coordinate system, the angle between the first vector and the second vector is small and smaller than the preset angle range. In Figure 4, the preset angle range is ± set as an example. . Therefore, it can be determined that the electronic device 203 is the second electronic device determined in step 302 above.
图4仅仅是以第二电子设备在左前方为例进行示例性说明,若第二电子设备位于第一电子设备的后方,例如图1所示的,电子设备206位于第一电子设备201的后方,则用户仅需要在第一电子设备的显示屏上采取一个向下的滑动轨迹即可,这种情况下,第二矢量是指在第一电子设备201的显示屏上的一个向下滑动的一段带方向的直线线段,第一矢量可以为第一电子设备201和电子设备206的位置信息组成的。可以看出,本申请实施例中,用户若要分享文件给位于自己后方的用户,或者要投屏至自己背后的显示屏,则不需要转身过去将第一电子设备朝向位于用户身后的第二电子设备即可实现该目的,可以提升用户体验。FIG. 4 is just an example of the second electronic device at the left front side as an example. 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 refers to a downward sliding track on the display screen of the first electronic device 201. A straight line segment with a direction, the first vector may be composed of the position information of the first electronic device 201 and the electronic device 206. It can be seen that in this embodiment of the application, if a user wants to share a file with a user behind him, or if he wants to cast a screen to the display screen behind him, he does not need to turn around and turn the first electronic device toward the second one behind the user. Electronic equipment can achieve this purpose and can improve user experience.
一种可选地实施方式中,选出的第二电子设备可能有一个或多个。图5示例性示出了另一种系统架构示意图,如图5所示,在第一电子设备的左前方有两个第二电子设备。分别为电子设备203和电子设备213,图中电子设备203的位置信息与第一电子设备201的位置信息组成的第一矢量与第二矢量之间的夹角小于预设夹角范围。电子设备213的位置信息与第一电子设备201的位置信息组成的第一矢量与第二矢量之间的夹角也小于预设夹角范围。因此,可以确定电子设备203和电子设备213都为第二电子设备。In an optional implementation manner, there may be one or more second electronic devices selected. FIG. 5 exemplarily shows another schematic diagram of the system architecture. As shown in FIG. 5, there are two second electronic devices on the left front of the first electronic device. These are the electronic device 203 and the electronic device 213 respectively. The angle between the first vector and the second vector composed of the position information of the electronic device 203 and the position information of the first electronic device 201 in the figure is smaller than the preset angle range. The angle between the first vector and the 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 the preset angle range. Therefore, it can be determined that both the electronic device 203 and the electronic device 213 are second electronic devices.
一种可选地实施方式中,预设夹角范围可以是固定的,比如始终是以预设夹角范围为±种可选来搜寻第二电子设备。另一种可选地实施方式中,可以根据相对于第一电子设备 的距离不同,而选择不同的预设夹角范围。举个例子,图6示例性示出了一种系统架构示意图,如图6所示,第一电子设备201左前方包括电子设备203和电子设备214。用户在第一电子设备201的显示屏上向自己的左前方滑动,滑动轨迹所确定的第二矢量如图6所示。第一电子设备201的位置信息和电子设备203的位置信息组成的第一矢量和第二矢量之间的夹角小于20度,所以电子设备203属于第二电子设备。但是由于电子设备214位于相对于电子设备201距离较近,因此,电子设备214的位置信息和第一电子设备201的位置信息构成的第一矢量与第二矢量之间的夹角就会偏大,比如是35度,可以看出,35度明显大于20度。这种情况下,可能用户真实意图是想要划向电子设备214,想将文件分享给电子设备214。为了防止漏掉电子设备214,本申请实施例中还提供一种可选地实施方式,针对该N个第二电子设备,若第二电子设备和该第一电子设备的距离越近,第二电子设备对应的第一条件中的预设夹角范围越大,也就是说预设夹角范围与第一电子设备和第二电子设备之间的距离成反比关系,第一电子设备和第二电子设备之间的距离越大,夹角范围越小,而第一电子设备和第二电子设备之间的距离越小,夹角范围越大。距离和预设夹角范围之间可以存在一个对应关系,处理器可以根据这个对应关系,以及第一电子设备和第二电子设备之间的距离确定该第二电子设备对应的预设夹角范围。举个例子,如图6所示,电子设备214距离第一电子设备201的距离较近,则电子设备214对应的预设夹角范围可以选定为±40度,这种情况下,可以看出,电子设备214和第一电子设备201组成的第一矢量与第二矢量之间的夹角-35度属于预设夹角范围为属于±40度的范围,电子设备214也属于第二电子设备。通过该实施方式,可以避免遗漏掉距离第一电子设备较近的电子设备。In an optional implementation manner, the preset included angle range may be fixed, for example, the preset included angle range is always selectable to search for the second electronic device. In another optional implementation manner, different preset angle ranges may be selected according to different distances from the first electronic device. For example, FIG. 6 exemplarily shows a schematic diagram of a system architecture. As shown in FIG. 6, the first electronic device 201 includes an electronic device 203 and an electronic device 214 on the left front side. The user slides to the front left of the user on the display screen of the first electronic device 201, and the second vector determined by the slide track is shown in FIG. 6. The angle between the first vector and the second vector composed of 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 relatively close to the electronic device 201, the angle between the first vector and the second vector formed by the position information of the electronic device 214 and the position information of the first electronic device 201 will be too large. , Such as 35 degrees, it can be seen that 35 degrees is obviously greater than 20 degrees. In this case, it is possible that the user's real intention is to draw to the electronic device 214 and want to share the file with the electronic device 214. In order to prevent the electronic device 214 from being missed, an optional implementation manner is provided in the embodiment of the present application. For the N second electronic devices, if the distance between the second electronic device and the first electronic device is closer, the second electronic device The larger the preset angle range in the first condition corresponding to the electronic device, that is to say, the preset angle range is inversely proportional to the distance between the first electronic device and the second electronic device, and the first electronic device and the second electronic device are inversely proportional to each other. The greater the distance between the electronic devices, the smaller the included angle range, and the smaller the distance between the first electronic device and the second electronic device, the larger the included angle range. There may be a correspondence between the distance and the preset angle range, and the processor may determine the preset angle range corresponding to the second electronic device according to this correspondence and the distance between the first electronic device and the second electronic device . For example, as shown in FIG. 6, the electronic device 214 is closer to the first electronic device 201, and the preset angle range corresponding to the electronic device 214 can be selected as ±40 degrees. In this case, you can see The included angle between the first vector and the second vector formed by the electronic device 214 and the first electronic device 201 is -35 degrees, which belongs to the preset included angle range of ±40 degrees, and the electronic device 214 also belongs to the second electronic device. equipment. Through this implementation manner, it is possible to avoid missing electronic devices that are closer to the first electronic device.
本申请实施例提到的预设夹角范围中包括一个绝对值最大的预设夹角的值,预设夹角范围是指以第二矢量为中心,与该第二矢量之间的夹角的绝对值小于该绝对值最大的预设夹角的值的一个范围。图7示例性示出了一种可能地实施方式,如图7所示,距离第一电子设备201的不同距离内,预设夹角范围不同,位于第一电子设备周围的直径最小的一个圆内的电子设备所对应的预设夹角范围为±40度。位于第一电子设备周围的直径第二大的一个圆内的电子设备所对应的预设夹角范围为±30度。位于第一电子设备周围的直径最大的一个圆内的电子设备所对应的预设夹角范围为±20度。The preset included angle range mentioned in the embodiment of the present application includes a value of the preset included angle with the largest absolute value. The preset included angle range refers to the angle between the second vector and the second vector. The absolute value of is smaller than a range of the value of the preset angle with the largest absolute value. FIG. 7 exemplarily shows a possible implementation. As shown in FIG. 7, within different distances from the first electronic device 201, the preset included angle ranges are different, and the circle with the smallest diameter is located around the first electronic device. The preset angle range corresponding to the electronic equipment in the device is ±40 degrees. The preset included angle range corresponding to the electronic device located in a circle with the second largest diameter around the first electronic device is ±30 degrees. The preset included angle range corresponding to the electronic device located in the circle with the largest diameter around the first electronic device is ±20 degrees.
基于图6和图7给出的示例,本申请实施例提供一种方案用于执行上述步骤302,该方案包括:针对该N个第二电子设备中的一个第二电子设备,根据该第二电子设备与该第一电子设备之间的距离所属的预设距离范围,以及预设距离范围和预设夹角范围之间的对应关系,确定该第二电子设备对应的第一条件中的预设夹角范围;其中,预设距离范围中的最大距离值越小,该预设距离范围对应的预设夹角范围中对应的最大夹角越大。也就是说,本申请实施例中可以在第一电子设备上存储预设距离范围与预设夹角范围之间的对应关系,该对应关系中距离范围是指第二电子设备与第一电子设备之间的距离,第一电子设备可以先确定一个目标电子设备与第一电子设备之间的距离,之后从该对应关系中查出,该距离对应的预设夹角范围,若该目标电子设备的位置信息与第一电子设备的位置信息之间组成的第一矢量与第二矢量之间的夹角属于该查出来的预设夹角范围,则该目标电子设备属于一个第二电子设备。Based on the examples given in FIG. 6 and FIG. 7, an embodiment of the present application provides a solution for performing the above step 302. The solution includes: for one second electronic device among the N second electronic devices, according to the second electronic device The preset distance range to which the distance between the electronic device and the first electronic device belongs, and the correspondence between the preset distance range and the preset included angle range, determine the preset distance in the first condition corresponding to the second electronic device Set the included angle range; wherein, the smaller the maximum distance value in the preset distance range, the larger the corresponding maximum included angle in the preset angle range corresponding to the preset distance range. That is, in the embodiment of the present application, the corresponding relationship between the preset distance range and the preset included angle range may be stored on the first electronic device, and the distance range in the corresponding relationship refers to the second electronic device and the first electronic device The first electronic device can first determine the distance between a target electronic device and the first electronic device, and then find out from the corresponding relationship, the distance corresponds to the preset angle range, if the target electronic device The included angle between the first vector and the second vector formed between the position information of the first electronic device and the position information of the first electronic device belongs to the detected preset included angle range, and the target electronic device belongs to a second electronic device.
在上述步骤302中,一种可选地实施方式中,根据该第一电子设备的位置信息、该滑动轨迹和N个第二电子设备的位置信息,从搜索到的M个第三电子设备中确定出满足该 第一条件的N个第二电子设备,该M为不小于该N的整数;在该第一电子设备的显示屏上显示该N个第二电子设备的标识信息。本申请实施例中将搜索到的第一电子设备周围的电子设备称为M个第三电子设备。可选地,可以在获取用户在第一电子设备上的滑动轨迹之后再去搜索第一电子设备周围的电子设备。可选地,也可以提前搜索M个第三电子设备,比如在上述步骤301之前去搜索第一电子设备周围的电子设备。再比如,第一电子设备中的处理器也可以在预判用户有分享文件或投屏操作时,再去搜索周围的M个第三电子设备,举个例子,比如用户在第一电子设备的显示屏上选中一个照片或者视频,这种情况下则第一电子设备可以判断用户有分享文件的期望,则去搜索第一电子设备周围的M个第三电子设备,如此,当获取到用户的滑动轨迹之后,可以直接从已经搜索到的M个第三电子设备中筛选出符合上述第一条件的N个第二电子设备。如此,可以提高选出N个第二电子设备的效率。In the above 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 the N second electronic devices, from the searched M third electronic devices Determine N second electronic devices that meet the first condition, where M is an integer not less than N; and display identification information of the N second electronic devices on the display screen of the first electronic device. In the embodiments of the present application, the searched electronic devices around the first electronic device are referred to as M third electronic devices. Optionally, it is possible to search for electronic devices around the first electronic device after acquiring the user's sliding track on the first electronic device. Optionally, it is also possible to search for M third electronic devices in advance, for example, to search for electronic devices around the first electronic device before step 301. For another example, the processor in the first electronic device may also search for M third electronic devices around when it predicts that the user has shared files or screen projection operations. For example, if the user is in the first electronic device Select a photo or video on the display screen. In this case, the first electronic device can determine that the user wants to share the file, and then search for M third electronic devices around the first electronic device. In this way, when the user's After sliding the trajectory, N second electronic devices that meet the above-mentioned first condition can be directly selected from the M third electronic devices that have been searched. In this way, the efficiency of selecting N second electronic devices can be improved.
一种可选地实施方式中,若M大于N,则在第一电子设备的显示屏上除了可以显示N个第二电子设备的标识信息之外。可选地,还可以将M个第三电子设备中除N个第二电子设备之外的,剩余的(M-N)个第三电子设备的标识信息显示出来。In an optional implementation manner, if M is greater than N, in addition to displaying the identification information of N second electronic devices on the display screen of the first electronic device. Optionally, the identification information of the remaining (M-N) third electronic devices other than the N second electronic devices among the M third electronic devices may also be displayed.
电子设备的标识信息(包括N个第二电子设备的标识信息,可选地,还可以包括(M-N)个第三电子设备的标识信息)在第一电子设备的显示屏上显示的方式有多种,下面通过以下方案进行示例性说明。以下示例介绍了N个第二电子设备的标识信息如何展示的示例。可选地,可以把(M-N)个第三电子设备的标识信息单独放在一个区别,比如可以是标识信息的列表靠后的位置。再比如,还可以是接近第一电子设备的顶端的位置区域等等。How many ways are the identification information of the electronic device (including the identification information of the N second electronic devices, and optionally, the identification information of the (MN) third electronic device) displayed on the display screen of the first electronic device? Kind of, exemplified below through the following scheme. The following example introduces an example of how to display the identification information of N second electronic devices. Optionally, the identification information of the (M-N) third electronic devices may be separately placed in a distinction, for example, it may be at the back of the list of identification information. For another example, it may also be a location area close to the top of the first electronic device, and so on.
方案b1,将N个第二电子设备的标识信息以列表的形式在第一电子设备的显示屏上展示出来。当第二电子设备的标识信息为设备名,则可选地,可以依据设备名对N个第二电子设备进行排序,比如依据设备名的首字母等等。Solution b1, displaying the identification information of the N second electronic devices on the display screen of the first electronic device in the form of a list. When the identification information of the second electronic device is the device name, optionally, the N second electronic devices can be sorted according to the device name, for example, according to the first letter of the device name and so on.
方案b2,将N个第二电子设备的标识信息以列表的形式展示出来。可以根据该N个第二电子设备中第二电子设备的权重,在该第一电子设备的显示屏上显示该N个第二电子设备的标识信息。举个例子,比如权重越大的第二电子设备,该第二电子设备的标识信息的排序越靠前。Solution b2, displaying the identification information of the N second electronic devices in the form of a list. 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 among the N second electronic devices. For example, for a second electronic device with a greater weight, the identification information of the second electronic device is ranked higher.
在方案b2以及下述方案b3、方案b4、方案b5和方案b6中,可选地,针对该N个第二电子设备中的一个第二电子设备,该第二电子设备的权重可以跟该第二电子设备对应的该第二矢量与该第一矢量的夹角,和/或该第二电子设备与该第一电子设备的距离相关。举个例子,比如第二电子设备对应的第二矢量与第一矢量的夹角越小的,该第二电子设备的权重越大。或者,第二电子设备与第一电子设备的距离越近的,该第二电子设备的权重越大。再或者,为该第二电子设备对应的该第二矢量与该第一矢量的夹角,以及该第二电子设备与该第一电子设备的距离分别设置一个占比系数,比如该第二电子设备对应的该第二矢量与该第一矢量的夹角对应的占比系数为0.7,该第二电子设备与该第一电子设备的距离对应的占比系数为0.3,针对一个第二电子设备,将该第二电子设备对应的该第二矢量与该第一矢量的夹角乘以0.7,并加上(0.3与该第二电子设备与该第一电子设备的距离的乘积),得到的结果即为该第二电子设备的权重。In scheme b2 and the following scheme b3, scheme b4, scheme b5, and scheme b6, optionally, for one second electronic device among the N second electronic devices, the weight of the second electronic device may be the same as that of the first electronic device. The angle between the second vector and the first vector corresponding to the two electronic devices is related to the distance between the second electronic device and the first electronic device. For example, for example, the smaller the angle between the second vector corresponding to the second electronic device and the first vector, the greater the weight of the second electronic device. Or, the closer the distance between the second electronic device and the first electronic device, the greater the weight of the second electronic device. Or alternatively, set a proportion coefficient for the angle between the second vector corresponding to the second electronic device and the first vector, and the distance between the second electronic device and the first electronic device, for example, the second electronic device The proportion coefficient corresponding to the angle between the second vector and the first vector corresponding to the device is 0.7, and the proportion coefficient corresponding to the distance between the second electronic device and the first electronic device is 0.3, for a second electronic device , Multiply the angle between the second vector corresponding to the second electronic device and the first vector by 0.7, and add (the product of 0.3 and the distance between the second electronic device and the first electronic device) to obtain The result is the weight of the second electronic device.
方案b3,针对N个第二电子设备的一个第二电子设备,该第二电子设备的权重越大,则该第二电子设备的标识信息字体越大。图8示例性示出了一种N个第二电子设备的标识信息的展示界面示意图,如图8所示,N个第二电子设备的标识信息分别为“张”“李”“杨” “范”“赵”,其中,“张”是权重最大的第二电子设备的标识信息,因此“张”的字体明显较大。图9示例性示出了另一种N个第二电子设备的标识信息的展示界面示意图,如图9所示,N个第二电子设备是可以投屏的电子设备,N个第二电子设备的标识信息分别为“TV1”“tv2”和“tv3”,其中,“TV1”是权重最大的第二电子设备的标识信息,因此“TV1”的字体明显较大。Solution b3, for one second electronic device of N second electronic devices, the larger the weight of the second electronic device, the larger the font of the identification information of the second electronic device. FIG. 8 exemplarily shows a schematic diagram of a display interface of the identification information of N second electronic devices. As shown in FIG. 8, the identification information of the N second electronic devices are respectively "Zhang", "Li", and "Yang". "Fan" and "Zhao", in which "Zhang" is the identification information of the second electronic device with the highest weight, so the font of "Zhang" is obviously larger. FIG. 9 exemplarily shows a schematic diagram of a display interface of the identification information of another N second electronic devices. As shown in FIG. 9, the N second electronic devices are electronic devices that can project a screen, and the N second electronic devices The identification information of "TV1", "tv2" and "tv3" are respectively "TV1", "tv2" and "tv3", where "TV1" is the identification information of the second electronic device with the highest weight, so the font of "TV1" is obviously larger.
方案b4,针对该N个第二电子设备中的一个第二电子设备,该第二电子设备的权重越大,则该第二电子设备的标识信息的位置越靠近第一电子设备的显示屏的顶端。如图8所示,“张”是权重最大的第二电子设备的标识信息,因此“张”的位置越靠近第一电子设备的显示屏的顶端。如图9所示,“TV1”是权重最大的第二电子设备的标识信息,因此“TV1”的位置越靠近第一电子设备的显示屏的顶端。Solution b4, for one second electronic device among 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 to the display screen of the first electronic device top. As shown in FIG. 8, "Zhang" is the identification information of the second electronic device with the highest weight, so the position of "Zhang" is closer to the top of the display screen of the first electronic device. As shown in FIG. 9, "TV1" is the identification information of the second electronic device with the highest weight, so the position of "TV1" is closer to the top of the display screen of the first electronic device.
方案b5,针对该N个第二电子设备中的一个第二电子设备,该第二电子设备的权重越大,则在第一电子设备的显示屏上显示该第二电子设备的标识信息的图标越大。如图8所示,“张”是权重最大的第二电子设备的标识信息,因此“张”的图标较大。如图9所示,TV1”是权重最大的第二电子设备的标识信息,因此“TV1”的图标较大。Solution b5, for one second electronic device among the N second electronic devices, the greater the weight of the second electronic device, the icon of the identification information of the second electronic device is displayed on the display screen of the first electronic device Bigger. As shown in FIG. 8, "Zhang" is the identification information of the second electronic device with the highest weight, so the icon of "Zhang" is relatively large. As shown in FIG. 9, TV1" is the identification information of the second electronic device with the highest weight, so the icon of "TV1" is relatively large.
方案b6,以网络拓扑的形式在该第一电子设备的显示屏上显示N个第二电子设备的标识信息,针对N个第二电子设备中的一个第二电子设备,在该第一电子设备的显示屏上该第二电子设备的标识信息与该第一电子设备的标识信息的相对位置,与在地球坐标系中该第二电子设备与该第一电子设备的相对位置匹配。图12示例性示出了一种以网络拓扑的形式展示图6所示的第二电子设备的标识信息的示意图,如图12所示,第一电子设备201的左侧为电子设备214,左前方较远处为电子设备203。Solution b6: Display the identification information of N second electronic devices on the display screen of the first electronic device in the form of a network topology. For one second electronic device among the N second electronic devices, the first electronic device 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 matches the relative position of the second electronic device and the first electronic device in the earth 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 the electronic device 214, and the left side of the first electronic device 201 is the electronic device 214. The electronic device 203 is far in the front.
针对上述步骤302,用户在第一电子设备的显示屏上滑动,并生成滑动轨迹之后,第一电子设备可能会发生移动,这种情况下第一电子设备的显示屏上所显示的内容可以发生变化,也可以不发生变化。具体来说,第一种可选地实施方式中,可以根据该N个第二电子设备中的某个第二电子设备的权重,在第一电子设备的显示屏上显示N个第二电子设备的标识信息之后,向N个第二电子设备中的一个或多个第二电子设备发送数据之前,若检测到第一电子设备发生移动,则维持第一电子设备的显示屏上显示有N个第二电子设备的标识信息的界面不变。也就是说,已经根据用户在第一电子设备上的滑动轨迹筛选出了N个第二电子设备,并显示了N个第二电子设备的标识信息了,若再检测到第一电子设备发生了移动,比如第一电子设备的位置信息发生了变动,或者第一电子设备的位置还是当前的位置,但是第一电子设备的朝向变了,比如第一电子设备的头部和尾部的位置发生了倒换,这种情况下,滑动轨迹在地球坐标系中也会发生改变,在该实施方式中,依然维持第一电子设备发生移动之前所筛选出的N个第二电子设备的结果。也可以理解为,第一电子设备移动或旋转之后,搜索周边电子设备这个操作还在进行(还没搜索完),这时可以继续以第一电子设备发生移动或旋转之前的位于地球坐标系中的第二矢量为准,进行搜索,也可以说,在该实施方式中,第二矢量不随着手机的移动/旋转而变化,判断第二矢量与第一矢量夹角的对象依然是第一电子设备移动或旋转之前的第二矢量。For the above step 302, after the user slides on the display screen of the first electronic device and generates a sliding track, the first electronic device may move. In this case, the content displayed on the display screen of the first electronic device may change. Change, or not change. Specifically, in the first optional implementation manner, the N second electronic devices may be displayed on the display screen of the first electronic device according to the weight of a certain second electronic device among the N second electronic devices After the identification information of the N second electronic devices, before sending data to one or more second electronic devices among the N second electronic devices, if the first electronic device is detected to move, the display of the first electronic device is maintained to display N The interface of the identification information of the second electronic device remains unchanged. In other words, N second electronic devices have been screened out according to the user's sliding track on the first electronic device, and the identification information of the N second electronic devices has been displayed. If the first electronic device is detected again Movement, 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 position of the head and tail of the first electronic device has changed In this case, the sliding trajectory will also change in the earth coordinate system. In this embodiment, the results of the N second electronic devices screened out before the first electronic device moves are still maintained. It can also be understood that after the first electronic device moves or rotates, the operation of searching for peripheral electronic devices is still in progress (not yet finished), and at this time, the first electronic device can continue to be located in the earth coordinate system before the movement or rotation of the first electronic device. The second vector is based on the search. It can also be said that in this embodiment, the second vector does not change with the movement/rotation of the mobile phone, and the object at which the angle between the second vector and the first vector is judged is still the first electron. The second vector before the device moves or rotates.
第二种可选地实施方式中,该根据N个第二电子设备中每个第二电子设备的权重,在该第一电子设备的显示屏上显示N个第二电子设备的标识信息之后,向N个第二电子设备中的一个或多个第二电子设备发送数据之前,若检测到第一电子设备发生移动,当以网络拓扑形式在第一电子设备的显示屏上显示N个第二电子设备的标识信息的情况下,根据N 个第二电子设备中每个第二电子设备与移动后的第一电子设备之间相对位置的变化,在第一电子设备的显示屏上更新所显示N个第二电子设备的标识信息的位置,其中,在第一电子设备的显示屏上之前显示的各个第二电子设备的标识信息与第一电子设备的标识信息的相对位置,与各个第二电子设备与移动后的第一电子设备的相对位置匹配。该实施方式中,已经根据用户在第一电子设备上的滑动轨迹筛选出了N个第二电子设备,并显示了N个第二电子设备的标识信息,若再检测到第一电子设备发生了移动,比如第一电子设备的位置信息发生了变动,或者第一电子设备的位置还是当前的位置,但是第一电子设备的朝向变了,比如第一电子设备的头部和尾部的位置发生了倒换(也可以称为第一电子设备发生了旋转),这种情况下,滑动轨迹在地球坐标系中也会发生改变,在该实施方式中,依然维持第一电子设备发生移动之前所筛选出的N个第二电子设备的结果。也可以理解为,第一电子设备移动或旋转之后,搜索周边电子设备这个操作还在进行(还没搜索完),这时可以继续以第一电子设备发生移动或旋转之前的位于地球坐标系中的第二矢量为准,进行搜索,也可以说,在该实施方式中,第二矢量不随着手机的移动/旋转而变化,判断第二矢量与第一矢量的夹角的对象依然是第一电子设备移动或旋转之前的第二矢量。但是,在第一电子设备的显示屏上,要更新第二电子设备相对于第一电子设备的相对位置信息。如此,当以网络拓扑的形式展示电子设备的标识时,第一电子设备移动或旋转后,可以刷新这些第二电子设备在第一设备上的显示屏上的显示位置。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 second electronic device in the N second electronic devices, Before sending data to one or more second electronic devices among N second electronic devices, if the first electronic device is detected to move, when N second electronic devices are displayed on the display screen of the first electronic device in the form of network topology In the case of the identification information of the electronic device, according to the change of the relative position between each second electronic device in the N second electronic devices and the moved first electronic device, the display screen of the first electronic device is updated. The positions of the identification information of the N second electronic devices, where the relative position of the identification information of each second electronic device and the identification information of the first electronic device previously displayed on the display screen of the first electronic device is different from that of each second electronic device. The relative positions of the electronic device and the moved first electronic device are matched. In this embodiment, N second electronic devices have been screened out according to the user's sliding track on the first electronic device, and the identification information of the N second electronic devices has been displayed. Movement, 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 position of the head and tail of the first electronic device has changed In this case, the sliding trajectory will also change in the earth coordinate system. In this embodiment, the filter selected before the movement of the first electronic device is still maintained. The result of N second electronic devices. It can also be understood that after the first electronic device moves or rotates, the operation of searching for peripheral electronic devices is still in progress (not yet finished), and then the first electronic device can continue to be located in the earth coordinate system before the movement or rotation of the first electronic device. The second vector is based on the second vector for searching. It can also be said that in this embodiment, the second vector does not change with the movement/rotation of the mobile phone. The second vector before the electronic device moves or rotates. However, on the display screen of the first electronic device, the relative position information of the second electronic device relative to the first electronic device needs to be updated. In this way, when the identification of the electronic device is displayed in the form of a network topology, after the first electronic device moves or rotates, the display position of the second electronic device on the display screen of the first device can be refreshed.
比如,在地图App中,用户的手机旋转了,但是地图还是与铺在地上类似。图13示例性示出了图12中第一电子设备移动后显示屏上展示的第二电子设备的标识信息的显示方式示意图,如图13所示,第一电子设备向正前方移动一定的距离,这种情况下,可以维持搜索到的在第一电子设备的显示屏上展示的N个第二电子设备的标识信息不变的情况下,仅仅更新第一电子设备显示屏上显示的第二电子设备与第一电子设备的相对位置关系即可,比如图13所示,当第一电子设备向第一电子设备的正前方移动一段距离时,电子设备214相对应的移动到了第一电子设备201的左后方,电子设备203相对应的向第一电子设备的方向移动了一定的距离。For example, in the Map App, the user's mobile phone is rotated, but the map is still similar to laying on the ground. FIG. 13 exemplarily shows a schematic diagram of the display mode of the identification information of the second electronic device displayed on the display screen after the first electronic device is moved in FIG. 12. As shown in FIG. 13, the first electronic device moves a certain distance to the front In this case, it is possible to maintain the searched identification information of the N second electronic devices displayed on the display screen of the first electronic device unchanged, and only update the second electronic device displayed on the display screen of the first electronic device. The relative positional relationship between the electronic device and the first electronic device is sufficient. For example, as shown in FIG. 13, when the first electronic device moves a certain distance directly in front of the first electronic device, the electronic device 214 correspondingly moves to the first electronic device. To the left and rear of 201, the electronic device 203 has moved a certain distance in the direction of the first electronic device.
第三种可选地实施方式中,该根据N个第二电子设备中每个第二电子设备的权重,在该第一电子设备的显示屏上显示N个第二电子设备的标识信息之后,向N个第二电子设备中的一个或多个第二电子设备发送数据之前,若检测到该第一电子设备发生移动,则根据移动后的第一电子设备的位置信息,以及该滑动轨迹,确定出一个或多个第三电子设备;其中,针对该一个或多个第三电子设备中的一个第三电子设备,该第三电子设备满足第二条件;其中,该第二条件包括:在地球坐标系上,第三矢量和第四矢量之间的夹角在预设夹角范围内;该第三矢量由该第三电子设备的位置信息和移动后的第一电子设备的位置信息确定;该第四矢量的方向与该滑动轨迹所指示的滑动方向匹配。也就是说,已经根据用户在第一电子设备上的滑动轨迹筛选出了N个第二电子设备,并显示了N个第二电子设备的标识信息,若再检测到第一电子设备发生了移动,比如第一电子设备的位置信息发生了变动,或者第一电子设备的位置还是当前的位置,但是第一电子设备的朝向变了,比如第一电子设备的头部和尾部的位置发生了倒换,这种情况下,滑动轨迹在地球坐标系中也会发生改变,则在地球坐标系中也会更新为一个新的第二矢量,在该实施方式中,则依据新的第二矢量来重新筛选符合要求的第二电子设备。In a third 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 second electronic device in the N second electronic devices, Before sending data to one or more second electronic devices among the N second electronic devices, if it is detected that the first electronic device has moved, then according to the position information of the moved first electronic device and the sliding track, Determine one or more third electronic devices; wherein, for one third electronic device of the one or more third electronic devices, the third electronic device satisfies the second condition; wherein, the second condition includes: In the earth coordinate system, the angle between the third vector and the fourth vector is within the preset angle range; the third vector is determined by the position information of the third electronic device and the position information of the moved first electronic device ; The direction of the fourth vector matches the sliding direction indicated by the sliding track. In other words, N second electronic devices have been screened out according to the user's sliding track on the first electronic device, and the identification information of the N second electronic devices has been displayed. 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 position of the head and tail of the first electronic device has changed In this case, the sliding trajectory will also change in the earth coordinate system, and it will also be updated to a new second vector in the earth coordinate system. In this embodiment, the new second vector is used to renew Screen the second electronic equipment that meets the requirements.
上述步骤303中,可以向N个第二电子设备中的一个或多个,或者向N个第二电子设 备发送数据。方式有多种,下面进行示例性说明。In the above step 303, data can be sent to one or more of the N second electronic devices, or to the N second electronic devices. There are many ways, which are illustrated below.
方式c1,第一电子设备接收第一信令,该第一信令包括用于指示目标电子设备的指示信息,该目标电子设备为N个第二电子设备中的一个或多个第二电子设备;并根据该第一信令,向目标电子设备发送数据。该实施方式中,可以在第一电子显示屏上展示N个第二电子设备的标识信息,让用户来在显示屏上选择需要发送数据的一个或多个目标电子设备分别对应的标识信息。Manner c1, the first electronic device receives the first signaling, the first signaling includes indication information for indicating the target electronic device, and the target electronic device is one or more second electronic devices among the N second electronic devices ; And according to the first signaling, send data to the target electronic device. In this embodiment, the identification information of N second electronic devices may be displayed on the first electronic display screen, and the user can select the identification information corresponding to one or more target electronic devices that need to send data on the display screen.
一种可选地实施方式中,第一电子设备在展示N个第二电子设备的标识信息的显示屏上还可以显示预选出的一个第二电子设备作为准目标电子设备,并显示用于询问用户是否将文件分享至准目标电子设备,或者询问用户是否投屏至准目标电子设备的提示框。用户可以在提示框中点击“是”,这样第一电子设备中的处理器接收到点击“是”的指令后便可以将准目标电子设备作为目标电子设备,并向目标电子设备发送数据。或者用户也可以在提示框中点击“否”,或者重新选择一个或多个第二电子设备作为目标电子设备。其中,准目标电子设备可以根据多个第二电子设备的权重值来确定,比如权重最大的第二电子设备为准目标电子设备。In an optional implementation manner, the first electronic device may also display a pre-selected second electronic device as the quasi-target electronic device on the display screen displaying the identification information of the N second electronic devices, and display for query Whether the user shares the file to the quasi-target electronic device, or asks the user whether to cast a screen to the quasi-target electronic device. The user can click "Yes" in the prompt box, so that the processor in the first electronic device can use the quasi-target electronic device as the target electronic device and send data to the target electronic device after receiving the instruction to click "Yes". Or the user can also click "No" in the prompt box, or re-select one or more second electronic devices as the target electronic devices. The quasi-target electronic device may be determined according to the weight values of multiple second electronic devices, for example, the second electronic device with the largest weight is the quasi-target electronic device.
图10在图8的基础上示例性示出了另一种N个第二电子设备的标识信息的展示界面示意图,如图10所示,“张”为准目标电子设备,在第一电子设备的显示屏上显示“将照片分享给“张”?”,若用户点击“是”,则指示“张”即为目标第二电子设备,则第一电子设备将照片分享给“张”的第二电子设备,若用户点击“否”,则用户可以选择其他第二电子设备作为目标设备进行发送数据,比如图10上所示的“李”“杨”都可以作为用户选择的第二电子设备。FIG. 10 exemplarily shows a schematic diagram of another display interface of the identification information of N second electronic devices on the basis of FIG. 10, as shown in FIG. 10, "Zhang" is the target electronic device, in the first electronic device "Share the photo with Zhang?" is displayed on the display screen. If the user clicks "Yes", it will indicate that "Zhang" is the target second electronic device, and the first electronic device will share the photo with the first electronic device of "Zhang". Second electronic device, if the user clicks "No", the user can select another second electronic device as the target device to send data, for example, "Li" and "Yang" shown in Figure 10 can be used as the second electronic device selected by the user .
图11在图9的基础上示例性示出了另一种N个第二电子设备的标识信息的展示界面示意图,如图11所示,“TV1”为准目标电子设备,在第一电子设备的显示屏上显示“投屏至“TV1”?”,若用户点击“是”,则第一电子设备将自己的屏幕投屏至TV1对应的第二电子设备的显示屏上显示。若用户点击“否”,则用户可以选择其他第二电子设备作为目标设备进行发送数据,比如图11上所示的“tv2”和“tv3”都可以作为用户选择的第二电子设备。FIG. 11 exemplarily shows a schematic diagram of another display interface of the identification information of N second electronic devices on the basis of FIG. 11. As shown in FIG. 11, "TV1" is the quasi-target electronic device. "Projection to "TV1"?" is displayed on the display screen. If the user clicks "Yes", the first electronic device projects its screen to the display screen of the second electronic device corresponding to TV1. If the user clicks "No", the user can select another second electronic device as the target device to send data. For example, both "tv2" and "tv3" shown in FIG. 11 can be used as the second electronic device selected by the user.
方式c2,第一电子设备可以向N个第二电子设备中权重最大的第二电子设备发送数据。其中,针对N个第二电子设备中的一个第二电子设备,该第二电子设备的权重可以参见前述方案b2的相关描述。该实施方式中,第一电子设备可以不必向用户询问应该向哪个第二电子设备发送数据,也可以说,将权重最大的第二电子设备确定为目标电子设备,并向目标电子设备发送数据。In way c2, the first electronic device may send data to the second electronic device with the largest weight among the N second electronic devices. For one second electronic device among the N second electronic devices, the weight of the second electronic device may refer to the related description of the foregoing solution b2. In this embodiment, the first electronic device does not need to ask the user which second electronic device to send data to. It can also be said that the second electronic device with the largest weight is determined as the target electronic device and sends data to the target electronic device.
方式c3,当N个第二电子设备中存在一个第二电子设备,该第二电子设备上登录的系统账号与第一电子设备上登录的系统账号相同,则第一电子设备向该第二电子设备发送数据。该实施方式中,可以不必向用户询问应该向哪个第二电子设备发送数据,可以在发现存在一个第二电子设备上登录的系统账号与第一电子设备上登录的系统账户相同的情况下,向该第二电子设备发送数据,也可以说,将登录的系统账号与第一电子设备上登录的系统账户相同的第二电子设备确定为目标电子设备,并向目标电子设备发送数据。Method c3: When there is a second electronic device in the N second electronic devices, and the system account logged in on the second electronic device is the same as the system account logged in on the first electronic device, the first electronic device sends the information to the second electronic device. The device sends data. In this embodiment, there is no need to ask the user which second electronic device to send data to. When it is found that there is a system account logged in on the second electronic device that is the same as the system account logged in on the first electronic device, The second electronic device sends data. It can also be said that the second electronic device whose logged-in system account is the same as the logged-in system account on the first electronic device is determined as the target electronic device and sends data to the target electronic device.
方式c4,在上述方式c2和c3中,若确定出的目标电子设备为要投屏的第二电子设备,第一电子设备还可以询问用户是否确认投屏至第二电子设备。可选地,在上述方式c2和c3中,若确定是将数据分享至目标电子设备,则也可以再次询问用户是否确认将数据分享 至目标电子设备。Method c4, in the above methods c2 and c3, if the determined target electronic device is the second electronic device to be screened, the first electronic device may also ask the user whether to confirm the screen projection to the second electronic device. Optionally, in the above methods c2 and c3, if it is determined that the data is shared to the target electronic device, the user may also be asked again whether to confirm sharing the data to the target electronic device.
针对上述步骤301,第一电子设备获取用户在第一电子设备上的滑动轨迹之前,用户在第一电子设备上进行滑动操作可以有多种实施方式,下面进行示例性介绍。Regarding the above step 301, before the first electronic device obtains the user's sliding track on the first electronic device, the user may perform a sliding operation on the first electronic device in various implementation manners, which will be exemplified below.
方式d1,用户选择出目标文件。该目标文件可以是图片、视频、网址等文件页面。目标文件可以是一个,或者是选择出的多个。获取用户在第一电子设备上的滑动轨迹,可以为先确定目标文件,并获取用户通过第二预设操作手势在第二预设区域进行的滑动轨迹,该第二预设区域包括该目标文件所在的界面和/或第一电子设备的边框。也就是说,该实施方式中,不需要页面跳转,用户可以通过三指、四指或五指在第一电子设备的显示屏上进行滑动,第一电子设备提取这种情况下的滑动轨迹。再根据滑动轨迹选择出的N个第二电子设备中的一个或多个设备,并将目标文件分享给选择出的一个或多个设备。当然,也可以是将目标文件投屏至根据滑动轨迹选择出的N个第二电子设备中的一个或多个第二电子设备。In mode d1, the user selects the target file. The target file can be a file page such as pictures, videos, and URLs. There can be one target file or multiple selected files. Obtaining the sliding track of the user on the first electronic device may be to first determine the target file, and to acquire the sliding track performed by the user in a second preset area through a second preset operation gesture, the second preset area including the target file The interface and/or the frame of the first electronic device. That is to say, in this embodiment, there is no need for page jumps, and the user can 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 sliding track in this case. Then one or more 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 can also be projected to one or more second electronic devices among the N second electronic devices selected according to the sliding track.
方式d2,获取用户在第一电子设备上的滑动轨迹,也可以为先确定该目标文件,获取用户在第三预设区域进行的滑动轨迹,该第三预设区域包括第一界面和/或该第一电子设备的边框,该第一界面为与该目标文件所在界面不同的界面。在这种方式下,用户在第一电子设备的显示屏上显示的当前界面中选择出目标文件之后,第一电子设备当前显示的界面会跳转至下一个界面,或者在当前的文件选择界面上添加一层新的界面。比如,用户可以在选择出目标文件之后,点击“发送”或者“投屏”的操作,或者执行预设的动作以启动“发送”或“投屏”命令,之后页面跳转至下一个界面,或者在当前的文件选择界面上添加一层界面。第一界面为该跳转后的界面,用户在第一界面上进行滑动的操作。由于第一界面是跳转后的界面或者是新添加的一层界面,因此,用户的滑动操作可以不用限制具体的手指数量,可以是任意数量的手指在第一电子设备的显示屏显示的第一界面上的滑动,也可以是手掌在第一界面上来滑动。Manner d2, acquiring the sliding track of the user on the first electronic device, or determining the target file first, acquiring the sliding track of the user in a third preset area, the third preset area including the first interface and/or The frame of the first electronic device, and the first interface is an interface different from the 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 will jump to the next interface, or in the current file selection interface Add a new layer of interface. For example, after selecting the target file, the user can click the "send" or "screencast" operation, or execute a preset action to start the "send" or "screencast" command, and then the page will jump to the next interface. Or add a layer of interface to the current file selection interface. The first interface is the interface after the jump, and the user performs a sliding operation on the first interface. Since the first interface is a jumped interface or a newly added layer of interface, the user's sliding operation does not need to limit the specific number of fingers, and it can be the first display of any number of fingers on the display screen of the first electronic device. The sliding on the first interface can also be the sliding of the palm on the first interface.
方式d3,用户选择出目标文件后,以不需要跳转界面,或者当前界面跳转至下一个界面,或者在当前的文件选择界面上添加一层界面。用户在第一电子设备的边框上进行滑动。在边框上滑动可以是一个手指也可以是多个手指。In mode d3, after the user selects the target file, there is no need to jump to the interface, or the current interface jumps to the next interface, or an interface is added to the current file selection interface. The user slides on the frame of the first electronic device. Sliding on the frame can be one finger or multiple fingers.
方式d4,用户可以点击“发送”或者“投屏”的操作,或者执行预设的动作以启动“发送”或“投屏”命令。比如,获取用户通过第一预设操作手势在第一电子设备的第一预设区域进行的滑动轨迹;该第一预设区域包括该第一电子设备的显示屏和/或该第一电子设备的边框。具体来说,用户可以滑动第一电子设备的边框,即启动“投屏”命令。根据用户滑动轨迹,筛选出第二电子设备,并将第一电子设备当前显示屏上显示的内容投屏至第二电子设备。可选地,可以在筛选出第二电子设备之后,增加询问是否投屏至第二电子设备的环节,若用户点击“确认”,则第一电子设备将当前显示屏显示的内容再投屏至第二电子设备的显示屏上。In mode d4, the user can click the "send" or "cast screen" operation, or execute a preset action to start the "send" or "cast screen" command. For example, acquiring a sliding track performed by a user in a first preset area of the first electronic device through a first preset operation gesture; the first preset area includes the display screen of the first electronic device and/or the first electronic device Border. Specifically, the user can slide the border of the first electronic device, that is, start the "cast screen" command. According to the sliding track of the user, the second electronic device is filtered out, and the content currently displayed on the display screen of the first electronic device is projected to the second electronic device. Optionally, after the second electronic device is screened out, a link asking whether to cast the screen to the second electronic device can be added. If the user clicks "Confirm", the first electronic device will recast the content currently displayed on the display screen to the On the display screen of the second electronic device.
根据前述方法,图14为本申请实施例提供的电子设备的结构示意图,如图14所示,该电子设备可以为上述第一电子设备。第一电子设备可以为终端设备,也可以为芯片或电路,比如可设置于终端设备的芯片或电路。According to the foregoing method, FIG. 14 is a schematic structural diagram of an electronic device provided by an embodiment of this application. As shown in FIG. 14, the electronic device may be the above-mentioned first electronic device. The first electronic device may be a terminal device, or a chip or circuit, such as a chip or circuit that can be provided in the terminal device.
进一步的,电子设备1301还可以进一步包括总线系统,处理器1302、存储器1304、收发器1303可以通过总线系统相连。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 through the bus system.
应理解,上述处理器1302可以是一个芯片。例如,该处理器1302可以是现场可编程 门阵列(field programmable gate array,FPGA),可以是专用集成芯片(application specific integrated circuit,ASIC),还可以是系统芯片(system on chip,SoC),还可以是中央处理器(central processor unit,CPU),还可以是网络处理器(network processor,NP),还可以是数字信号处理电路(digital signal processor,DSP),还可以是微控制器(micro controller unit,MCU),还可以是可编程控制器(programmable logic device,PLD)或其他集成芯片。It should be understood that the aforementioned 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), or a system on chip (SoC). It can be a central processor unit (CPU), a network processor (NP), a digital signal processing circuit (digital signal processor, DSP), or a microcontroller (microcontroller). unit, MCU), and may also be a programmable logic device (PLD) or other integrated chips.
在实现过程中,上述方法的各步骤可以通过处理器1302中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器1302中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器1304,处理器1302读取存储器1304中的信息,结合其硬件完成上述方法的步骤。In the implementation process, the steps of the foregoing method can be completed by an integrated logic circuit of hardware in the processor 1302 or instructions in the form of software. The steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed and completed by a hardware processor, or executed and completed by a combination of hardware and software modules in the processor 1302. The software module can be located in a mature storage medium in the field, such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, registers. The storage medium is located in the memory 1304, and the processor 1302 reads the information in the memory 1304, and completes the steps of the foregoing method in combination with its hardware.
应注意,本申请实施例中的处理器1302可以是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法实施例的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。It should be noted that the processor 1302 in the embodiment of the present application may be an integrated circuit chip with signal processing capability. In the implementation process, the steps of the foregoing method embodiments can be completed by hardware integrated logic circuits in the processor or instructions in the form of software. The above-mentioned processor 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 devices, discrete gates or transistor logic devices, discrete hardware components . The methods, steps, and logical block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field, such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, registers. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
可以理解,本申请实施例中的存储器1304可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic RAM,DRAM)、同步动态随机存取存储器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(direct rambus RAM,DR RAM)。应注意,本文描述的系统和方法的存储器旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 1304 in the embodiment of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. Among them, the non-volatile memory can be read-only memory (ROM), programmable read-only memory (programmable ROM, PROM), erasable programmable read-only memory (erasable PROM, EPROM), and electrically available Erase programmable read-only memory (electrically EPROM, EEPROM) or flash memory. The volatile memory may be random access memory (RAM), which is used as an external cache. By way of exemplary but not restrictive description, many forms of RAM are available, such as static random access memory (static RAM, SRAM), dynamic random access memory (dynamic RAM, DRAM), and synchronous dynamic random access memory (synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (synchlink DRAM, SLDRAM) ) And direct memory bus random access memory (direct rambus RAM, DR RAM). It should be noted that the memories of the systems and methods described herein are intended to include, but are not limited to, these and any other suitable types of memories.
电子设备1301可以包括处理器1302、收发器1303和存储器1304。该存储器1304用于存储指令,该处理器1302用于执行该存储器1304存储的指令,以实现如上图1至图11中所示的任一项或任多项对应的方法中第一电子设备的相关方案。The electronic device 1301 may include a processor 1302, a transceiver 1303, and a memory 1304. The memory 1304 is used to store instructions, and the processor 1302 is used to execute the instructions stored in the memory 1304, so as to realize the operation of the first electronic device in any one or more of the corresponding methods shown in FIGS. 1 to 11 above. Related programs.
在一种可选地实施方式中,处理器1302,用于获取用户在第一电子设备上的操作信息,该操作信息用于指示目标方向;根据该第一电子设备的位置信息、该目标方向和N个第二电子设备的位置信息,确定该N个第二电子设备,该N为正整数;收发器1303,用于向 该N个第二电子设备中的一个或多个第二电子设备发送数据;其中,每个第二电子设备满足第一条件:第一矢量和第二矢量之间的夹角在预设夹角范围内;第一矢量由第二电子设备的位置信息和第一电子设备的位置信息确定;第二矢量的方向与目标方向相同。In an optional implementation manner, the processor 1302 is configured to obtain operation information of the user on the first electronic device, and the operation information is used to indicate a target direction; according to the position information of the first electronic device, the target direction And the location information of the N second electronic devices to determine the N second electronic devices, where N is a positive integer; the transceiver 1303 is used to send one or more second electronic devices of the N second electronic devices Send data; where each second electronic device satisfies the first condition: the angle between the first vector and the second vector is within the preset angle range; the first vector is composed of the position information of the second electronic device and the first The position information of the electronic device is determined; the direction of the second vector is the same as the target direction.
在一种可选地实施方式中,该处理器1302,具体用于:In an optional implementation manner, the processor 1302 is specifically configured to:
根据该第一电子设备的位置信息、该目标方向和N个第二电子设备的位置信息,从搜索到的M个第三电子设备中确定出满足该第一条件的N个第二电子设备,该M为不小于该N的整数;According to the location information of the first electronic device, the target direction, and the location information of the N second electronic devices, determine N second electronic devices that meet the first condition from the searched M third electronic devices, The M is an integer not less than the N;
在该第一电子设备的显示屏上显示该N个第二电子设备的标识信息。The identification information of the N second electronic devices is displayed on the display screen of the first electronic device.
在一种可选地实施方式中,该处理器1302,具体用于:In an optional implementation manner, the processor 1302 is specifically configured to:
根据该N个第二电子设备中各个第二电子设备的权重,在该第一电子设备的显示屏上显示该N个第二电子设备的标识信息;Displaying the identification information of the N second electronic devices on the display screen of the first electronic device according to the weight of each second electronic device in the N second electronic devices;
其中,针对该N个第二电子设备的一个第二电子设备,该第二电子设备的权重跟该第二电子设备对应的该第二矢量与该第一矢量的夹角,和/或该第二电子设备与该第一电子设备的距离相关。For a second electronic device of the N second electronic devices, the weight of the second electronic device is the angle between the second vector corresponding to the second electronic device and the first vector, and/or the first vector The distance between the second electronic device and the first electronic device is related.
在一种可选地实施方式中,该处理器1302,还用于:In an optional implementation manner, the processor 1302 is further configured to:
若检测到第一电子设备发生移动,则维持第一电子设备的显示屏上显示有N个第二电子设备的标识信息的界面不变;或者;If the movement of the first electronic device is detected, the interface displaying the identification information of the N second electronic devices on the display screen of the first electronic device is maintained unchanged; or;
若检测到第一电子设备发生移动,当以网络拓扑形式在第一电子设备的显示屏上显示N个第二电子设备的标识信息的情况下,根据N个第二电子设备中第二电子设备与移动后的第一电子设备之间相对位置的变化,在第一电子设备的显示屏上更新所显示N个第二电子设备的标识信息的位置,其中,在第一电子设备的显示屏上第二电子设备的标识信息与第一电子设备的标识信息的相对位置,与第二电子设备与移动后的第一电子设备的相对位置匹配;或者;If the movement of the first electronic device is detected, when the identification information of N second electronic devices is displayed on the display screen of the first electronic device in the form of network topology, according to the second electronic device among the N second electronic devices The relative position between the first electronic device and the moved first electronic device is updated, and the position of the identification information of the N second electronic devices displayed on the display screen of the first electronic device is updated, wherein, on the display screen of the first electronic device The relative position of the identification information of the second electronic device and the identification information of the first electronic device matches the relative position of the second electronic device and the moved first electronic device; or;
若检测到第一电子设备发生移动,则根据移动后的第一电子设备的位置信息,以及发生移动后的第一电子设备上的目标方向,确定出一个或多个第三电子设备;其中,针对一个或多个第三电子设备中的一个第三电子设备,第三电子设备满足第二条件:第三矢量和第四矢量之间的夹角在预设夹角范围内;第三矢量由第三电子设备的位置信息和移动后的第一电子设备的位置信息确定;第四矢量的方向与发生移动后的第一电子设备上的目标方向匹配。If the movement of the first electronic device is detected, one or more third electronic devices are determined according to the position information of the moved first electronic device and the target direction on the first electronic device after the movement; wherein, For one third electronic device among the one or more third electronic devices, the third electronic device satisfies the second condition: the angle between the third vector and the fourth vector is within the preset angle range; the third vector is determined by The position information of the third electronic device is determined with the position information of the first electronic device after the movement; the direction of the fourth vector matches the target direction on the first electronic device after the movement.
在一种可选地实施方式中,该处理器1302,还用于执行:通过该收发器1303接收第一信令,该第一信令包括用于指示目标电子设备的指示信息,该目标电子设备为该N个第二电子设备中的一个或多个第二电子设备;并根据该第一信令,向该目标电子设备发送数据。In an optional implementation manner, the processor 1302 is further configured to perform: receiving first signaling through the transceiver 1303, the first signaling including indication information for indicating a target electronic device, the target electronic device The device is one or more second electronic devices among the N second electronic devices; and according to the first signaling, data is sent to the target electronic device.
在一种可选地实施方式中,该处理器1302,还用于执行:通过该收发器1303向该N个第二电子设备中权重最大的第二电子设备发送数据;其中,针对该N个第二电子设备的一个第二电子设备,该第二电子设备的权重跟该第二电子设备对应的该第二矢量与该第一矢量的夹角,和/或该第二电子设备与该第一电子设备的距离相关。In an optional implementation manner, the processor 1302 is further configured to: send data to the second electronic device with the largest weight among the N second electronic devices through the transceiver 1303; wherein, for the N second electronic devices, A second electronic device of the second electronic device, the weight of the second electronic device and the angle between the second vector corresponding to the second electronic device and the first vector, and/or the second electronic device and the first vector The distance of an electronic device is related.
在一种可选地实施方式中,该处理器1302,还用于执行:当该N个第二电子设备中存在一个第二电子设备,该第二电子设备上登录的系统账号与第一电子设备上登录的系统账号相同,则通过该收发器1303向该第二电子设备发送数据。In an optional implementation manner, the processor 1302 is further configured to execute: when there is a second electronic device in the N second electronic devices, the system account logged in on the second electronic device is the same as that of the first electronic device. If the system account logged in on the device is the same, data is sent to the second electronic device through the transceiver 1303.
在一种可选地实施方式中,该处理器1302,具体用于:获取用户通过第一预设操作手势在该第一电子设备的第一预设区域进行的滑动轨迹;该第一预设区域包括该第一电子设备的显示屏和/或该第一电子设备的边框。In an optional implementation manner, the processor 1302 is specifically configured to: obtain a sliding track performed by a user in a first preset area of the first electronic device through a first preset operation gesture; the first preset The area includes the display screen of the first electronic device and/or the frame of the first electronic device.
在一种可选地实施方式中,该处理器1302,确定目标文件,并获取用户通过第二预设操作手势在第二预设区域进行的滑动轨迹,该第二预设区域包括该目标文件所在的界面和/或该第一电子设备的边框。In an optional implementation manner, the processor 1302 determines the target file, and obtains a sliding track performed by the user in a second preset area through a second preset operation gesture, and the second preset area includes the target file The interface and/or the frame of the first electronic device.
在一种可选地实施方式中,该处理器1302,确定该目标文件,获取用户在第三预设区域进行的滑动轨迹,该第三预设区域包括第一界面和/或该第一电子设备的边框,该第一界面为与该目标文件所在界面不同的界面。In an optional implementation manner, the processor 1302 determines the target file, and obtains the user's sliding track in a third preset area, where the third preset area includes the first interface and/or the first electronic device. The frame of the device, the first interface is a different interface from the interface where the target file is located.
在一种可选地实施方式中,该处理器1302,获取用户对该第一电子设备显示屏上展示的工具进行操作的操作信息,并根据该操作信息确定出该用户对该工具进行操作后,该工具所指示的该目标方向。In an optional implementation manner, the processor 1302 obtains operation information of the user operating the tool displayed on the display screen of the first electronic device, and determines based on the operation information that the user operates the tool , The target direction indicated by the tool.
在一种可选地实施方式中,该处理器1302,具体用于:针对该N个第二电子设备中的一个第二电子设备:根据该第二电子设备与该第一电子设备之间的距离所属的预设距离范围,以及预设距离范围和预设夹角范围之间的对应关系,确定该第二电子设备对应的第一条件中的预设夹角范围;其中,预设距离范围中的最大距离值越小,该预设距离范围对应的预设夹角范围中对应的最大夹角越大;根据第一电子设备的位置信息、目标方向和N个第二电子设备的位置信息、以及确定的预设夹角范围,确定N个第二电子设备。In an optional implementation manner, the processor 1302 is specifically configured to: for a second electronic device among the N second electronic devices: according to the communication between the second electronic device and the first electronic device The preset distance range to which the distance belongs, and the corresponding relationship between the preset distance range and the preset included angle range, determine the preset included angle range in the first condition corresponding to the second electronic device; wherein, the preset distance range The smaller the maximum distance value in the preset distance range, the larger the corresponding maximum included angle in the preset included angle range corresponding to the preset distance range; according to the position information of the first electronic device, the target direction and the position information of the N second electronic devices , And the determined preset angle range, determine N second electronic devices.
在一种可选地实施方式中,操作信息为用户在第一电子设备上的滑动轨迹,滑动轨迹用于指示目标方向;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 to indicate the target direction;
第二矢量满足以下一项或多项:The second vector satisfies one or more of the following:
第二矢量至少包括滑动轨迹上的两个点;或者;The second vector includes at least two points on the sliding track; or;
滑动轨迹上与第二矢量重合的点的数量与滑动轨迹上包括的总点数的占比大于预设占比;或者;The ratio of the number of points on the sliding trajectory that coincide with the second vector to the total number of points included in the sliding trajectory is greater than the preset ratio; or;
第二矢量的起点为滑动轨迹的起点,第二矢量的终点为滑动轨迹的终点。The start point of the second vector is the start point of the sliding trajectory, and the end point of the second vector is the end point of the sliding trajectory.
在一种可选地实施方式中,N个第二电子设备的标识信息满足以下内容中的一项或多项:In an optional implementation manner, the identification information of the N second electronic devices satisfies one or more of the following contents:
针对N个第二电子设备的一个第二电子设备,该第二电子设备的权重越大,则该第二电子设备的标识信息字体越大;For one second electronic device among the N second electronic devices, the larger the weight of the second electronic device, the larger the identification information font of the second electronic device;
针对N个第二电子设备的一个第二电子设备,该第二电子设备的权重越大,则该第二电子设备的标识信息的位置越靠近第一电子设备的显示屏的顶端;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 of the display screen of the first electronic device;
针对N个第二电子设备的一个第二电子设备,该第二电子设备的权重越大,在第一电子设备的显示屏上显示该第二电子设备的标识信息的图标越大;For one second electronic device of the N second electronic devices, the greater the weight of the second electronic device, the larger the icon that displays the identification information of the second electronic device on the display screen of the first electronic device;
针对N个第二电子设备中的一个第二电子设备,在第一电子设备的显示屏上第二电子设备的标识信息与第一电子设备的标识信息的相对位置,与第二电子设备与第一电子设备的相对位置匹配。For one second electronic device among 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 different from that of the second electronic device and the first electronic device. The relative position of an electronic device is matched.
在一种可选地实施方式中,针对N个第二电子设备中的一个第二电子设备,第二电子设备和第一电子设备的距离越近,第二电子设备对应的第一条件中的预设夹角范围越大。In an optional implementation manner, for one second electronic device among the N second electronic devices, the closer the distance between the second electronic device and the first electronic device, the closer the second electronic device corresponds to the first condition in the The larger the preset angle range is.
该电子设备所涉及的与本申请实施例提供的技术方案相关的概念,解释和详细说明及其他步骤请参见前述方法或其他实施例中关于这些内容的描述,此处不做赘述。For the concepts related to the electronic device related to the technical solutions provided in the embodiments of the present application, for explanations, detailed descriptions, and other steps, please refer to the descriptions of these contents in the foregoing method or other embodiments, which are not repeated here.
根据前述方法,图15为本申请实施例提供的电子设备的结构示意图,如图15所示,电子设备1401可以包括通信接口1403、处理器1402和存储器1404。该通信接口1403,用于输入和/或输出信息;该处理器1402,用于执行计算机程序或指令,使得电子设备1401实现上述图1至图14的相关方案中第一电子设备侧的方法。本申请实施例中,通信接口1403可以实现上述图14的收发器1303所实现的方案,处理器1402可以实现上述图14的处理器1302所实现的方案,存储器1404可以实现上述图14的存储器1304所实现的方案,在此不再赘述。According to the foregoing method, FIG. 15 is a schematic structural diagram of an electronic device provided by an embodiment of the application. 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 is used to input and/or output information; the processor 1402 is used to execute computer programs or instructions so that the electronic device 1401 implements the method on the first electronic device side in the above-mentioned related solutions of FIGS. 1 to 14. In the embodiment of the present application, the communication interface 1403 can implement the solution implemented by the transceiver 1303 in FIG. 14, the processor 1402 can implement the solution implemented by the processor 1302 in FIG. 14, and the memory 1404 can implement the memory 1304 in FIG. The implemented scheme will not be repeated here.
基于以上实施例以及相同构思,图16为本申请实施例提供的电子设备的示意图,如图16所示,该电子设备1501可以为第一电子设备,该电子设备1501可以为终端设备,也可以为芯片或电路,比如可设置于终端设备的芯片或电路。Based on the above embodiments and the same concept, FIG. 16 is a schematic diagram of an electronic device provided by an embodiment of the application. 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 It is a chip or circuit, such as a chip or circuit that can be installed in a terminal device.
处理单元1502,用于获取用户的操作信息,操作信息用于指示目标方向;根据第一电子设备的位置信息、目标方向和N个第二电子设备的位置信息,确定出N个第二电子设备,N为正整数;收发单元1503,用于向N个第二电子设备中的一个或多个第二电子设备发送数据;其中,每个第二电子设备满足第一条件:第一矢量和第二矢量之间的夹角在预设夹角范围内;第一矢量由第二电子设备的位置信息和第一电子设备的位置信息确定;第二矢量的方向与目标方向相同。The processing unit 1502 is used to obtain operation information of the user, and the operation information is used to indicate a target direction; according to the position information of the first electronic device, the target direction and the position information of the N second electronic devices, N second electronic devices are determined , N is a positive integer; the transceiver unit 1503 is used to send data to one or more second electronic devices among the N second electronic devices; wherein, each second electronic device satisfies the first condition: the first vector and the first vector The angle between the two vectors is within the preset 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.
在一种可选地实施方式中,该处理单元1502,具体用于:In an optional implementation manner, the processing unit 1502 is specifically configured to:
根据该第一电子设备的位置信息、该目标方向和N个第二电子设备的位置信息,从搜索到的M个第三电子设备中确定出满足该第一条件的N个第二电子设备,该M为不小于该N的整数;According to the location information of the first electronic device, the target direction, and the location information of the N second electronic devices, determine N second electronic devices that meet the first condition from the searched M third electronic devices, The M is an integer not less than the N;
在该第一电子设备的显示屏上显示该N个第二电子设备的标识信息。The identification information of the N second electronic devices is displayed on the display screen of the first electronic device.
在一种可选地实施方式中,该处理单元1502,具体用于:In an optional implementation manner, the processing unit 1502 is specifically configured to:
根据该N个第二电子设备中各个第二电子设备的权重,在该第一电子设备的显示屏上显示该N个第二电子设备的标识信息;Displaying the identification information of the N second electronic devices on the display screen of the first electronic device according to the weight of each second electronic device in the N second electronic devices;
其中,针对该N个第二电子设备的一个第二电子设备,该第二电子设备的权重跟该第二电子设备对应的该第二矢量与该第一矢量的夹角,和/或该第二电子设备与该第一电子设备的距离相关。For a second electronic device of the N second electronic devices, the weight of the second electronic device is the angle between the second vector corresponding to the second electronic device and the first vector, and/or the first vector The distance between the second electronic device and the first electronic device is related.
在一种可选地实施方式中,该处理单元1502,还用于:In an optional implementation manner, the processing unit 1502 is further configured to:
若检测到第一电子设备发生移动,则维持第一电子设备的显示屏上显示有N个第二电子设备的标识信息的界面不变;或者;If the movement of the first electronic device is detected, the interface displaying the identification information of the N second electronic devices on the display screen of the first electronic device is maintained unchanged; or;
若检测到第一电子设备发生移动,当以网络拓扑形式在第一电子设备的显示屏上显示N个第二电子设备的标识信息的情况下,根据N个第二电子设备中第二电子设备与移动后的第一电子设备之间相对位置的变化,在第一电子设备的显示屏上更新所显示N个第二电子设备的标识信息的位置,其中,在第一电子设备的显示屏上第二电子设备的标识信息与第一电子设备的标识信息的相对位置,与第二电子设备与移动后的第一电子设备的相对位置匹配;或者;If the movement of the first electronic device is detected, when the identification information of N second electronic devices is displayed on the display screen of the first electronic device in the form of network topology, according to the second electronic device among the N second electronic devices The relative position between the first electronic device and the moved first electronic device is updated, and the position of the identification information of the N second electronic devices displayed on the display screen of the first electronic device is updated, wherein, on the display screen of the first electronic device The relative position of the identification information of the second electronic device and the identification information of the first electronic device matches the relative position of the second electronic device and the moved first electronic device; or;
若检测到第一电子设备发生移动,则根据移动后的第一电子设备的位置信息,以及发生移动后的第一电子设备上的目标方向,确定出一个或多个第三电子设备;其中,针对一个或多个第三电子设备中的一个第三电子设备,第三电子设备满足第二条件:第三矢量和第四矢量之间的夹角在预设夹角范围内;第三矢量由第三电子设备的位置信息和移动后的 第一电子设备的位置信息确定;第四矢量的方向与发生移动后的第一电子设备上的目标方向匹配。If the movement of the first electronic device is detected, one or more third electronic devices are determined according to the position information of the moved first electronic device and the target direction on the first electronic device after the movement; wherein, For one third electronic device among the one or more third electronic devices, the third electronic device satisfies the second condition: the angle between the third vector and the fourth vector is within the preset angle range; the third vector is determined by The position information of the third electronic device is determined with the position information of the first electronic device after the movement; the direction of the fourth vector matches the target direction on the first electronic device after the movement.
在一种可选地实施方式中,该处理单元1502,还用于执行:通过该收发单元1503接收第一信令,该第一信令包括用于指示目标电子设备的指示信息,该目标电子设备为该N个第二电子设备中的一个或多个第二电子设备;并根据该第一信令,向该目标电子设备发送数据。In an optional implementation manner, the processing unit 1502 is further configured to perform: receiving first signaling through the transceiving unit 1503, the first signaling including indication information for indicating a target electronic device, the target electronic device The device is one or more second electronic devices among the N second electronic devices; and according to the first signaling, data is sent to the target electronic device.
在一种可选地实施方式中,该处理单元1502,还用于执行:通过该收发单元1503向该N个第二电子设备中权重最大的第二电子设备发送数据;其中,针对该N个第二电子设备的一个第二电子设备,该第二电子设备的权重跟该第二电子设备对应的该第二矢量与该第一矢量的夹角,和/或该第二电子设备与该第一电子设备的距离相关。In an optional implementation manner, the processing unit 1502 is further configured to perform: sending data to the second electronic device with the largest weight among the N second electronic devices through the transceiving unit 1503; wherein, for the N second electronic devices, A second electronic device of the second electronic device, the weight of the second electronic device and the angle between the second vector corresponding to the second electronic device and the first vector, and/or the second electronic device and the first vector The distance of an electronic device is related.
在一种可选地实施方式中,该处理单元1502,还用于执行:当该N个第二电子设备中存在一个第二电子设备,该第二电子设备上登录的系统账号与第一电子设备上登录的系统账号相同,则通过该收发单元1503向该第二电子设备发送数据。In an optional implementation manner, the processing unit 1502 is further configured to perform: when there is one second electronic device in the N second electronic devices, the system account logged in on the second electronic device is the same as that of the first electronic device. If the system account logged in on the device is the same, the data is sent to the second electronic device through the transceiver unit 1503.
在一种可选地实施方式中,该处理单元1502,具体用于:获取用户通过第一预设操作手势在该第一电子设备的第一预设区域进行的滑动轨迹;该第一预设区域包括该第一电子设备的显示屏和/或该第一电子设备的边框。In an optional implementation manner, the processing unit 1502 is specifically configured to: obtain the sliding track performed by the user in the first preset area of the first electronic device through the first preset operation gesture; the first preset The area includes the display screen of the first electronic device and/or the frame of the first electronic device.
在一种可选地实施方式中,该处理单元1502,确定目标文件,并获取用户通过第二预设操作手势在第二预设区域进行的滑动轨迹,该第二预设区域包括该目标文件所在的界面和/或该第一电子设备的边框。In an optional implementation manner, the processing unit 1502 determines the target file, and obtains a sliding track performed by the user in a second preset area through a second preset operation gesture, and the second preset area includes the target file The interface and/or the frame of the first electronic device.
在一种可选地实施方式中,该处理单元1502,确定该目标文件,获取用户在第三预设区域进行的滑动轨迹,该第三预设区域包括第一界面和/或该第一电子设备的边框,该第一界面为与该目标文件所在界面不同的界面。In an optional implementation manner, the processing unit 1502 determines the target file, and obtains the user's sliding track in a third preset area. The third preset area includes the first interface and/or the first electronic device. The frame of the device, the first interface is a different interface from the interface where the target file is located.
在一种可选地实施方式中,该处理单元1502,获取用户对该第一电子设备显示屏上展示的工具进行操作的操作信息,并根据该操作信息确定出该用户对该工具进行操作后,该工具所指示的该目标方向。In an optional implementation manner, the processing unit 1502 obtains operation information of the user operating the tool displayed on the display screen of the first electronic device, and determines according to the operation information that the user operates the tool , The target direction indicated by the tool.
在一种可选地实施方式中,该处理单元1502,具体用于:针对该N个第二电子设备中的一个第二电子设备:根据该第二电子设备与该第一电子设备之间的距离所属的预设距离范围,以及预设距离范围和预设夹角范围之间的对应关系,确定该第二电子设备对应的第一条件中的预设夹角范围;其中,预设距离范围中的最大距离值越小,该预设距离范围对应的预设夹角范围中对应的最大夹角越大;根据第一电子设备的位置信息、目标方向和N个第二电子设备的位置信息、以及确定的预设夹角范围,确定N个第二电子设备。In an optional implementation manner, the processing unit 1502 is specifically configured to: for a second electronic device among the N second electronic devices: according to the relationship between the second electronic device and the first electronic device The preset distance range to which the distance belongs, and the corresponding relationship between the preset distance range and the preset included angle range, determine the preset included angle range in the first condition corresponding to the second electronic device; wherein, the preset distance range The smaller the maximum distance value in the preset distance range, the larger the corresponding maximum included angle in the preset included angle range corresponding to the preset distance range; according to the position information of the first electronic device, the target direction and the position information of the N second electronic devices , And the determined preset angle range, determine N second electronic devices.
该电子设备所涉及的与本申请实施例提供的技术方案相关的概念,解释和详细说明及其他步骤请参见前述方法或其他实施例中关于这些内容的描述,此处不做赘述。For the concepts related to the electronic device related to the technical solutions provided in the embodiments of the present application, for explanations, detailed descriptions, and other steps, please refer to the descriptions of these contents in the foregoing method or other embodiments, which are not repeated here.
可以理解的是,上述电子设备1501中各个单元的功能可以参考相应方法实施例的实现,此处不再赘述。It can be understood that the functions of each unit in the above-mentioned electronic device 1501 can be implemented with reference to the corresponding method embodiment, which will not be repeated here.
应理解,以上电子设备的单元的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。本申请实施例中,收发单元1503可以由上述图14的收发器1303实现,处理单元1502可以由上述图14的处理器1302实现。It should be understood that the division of the units of the above electronic device is only a division of logical functions, and may be fully or partially integrated into one physical entity in actual implementation, or may be physically separated. In the embodiment of the present application, the transceiver unit 1503 may be implemented by the transceiver 1303 in FIG. 14 described above, and the processing unit 1502 may be implemented by the processor 1302 in FIG. 14 described above.
根据本申请实施例提供的方法,本申请还提供一种计算机程序产品,该计算机程序产 品包括:计算机程序代码,当该计算机程序代码在计算机上运行时,使得该计算机执行图1至图14所示实施例中任意一个实施例的方法。According to the method provided in the embodiments of the present application, the present application also provides a computer program product. The computer program product includes: computer program code, which when the computer program code runs on a computer, causes the computer to execute the steps shown in FIGS. 1 to 14 The method of any one of the embodiments is shown.
根据本申请实施例提供的方法,本申请还提供一种计算机可读存储介质,该计算机可读介质存储有程序代码,当该程序代码在计算机上运行时,使得该计算机执行图1至图14所示实施例中任意一个实施例的方法。According to the method provided by the embodiments of the present application, the present application also provides a computer-readable storage medium, the computer-readable medium stores program code, and when the program code runs on a computer, the computer executes FIGS. 1 to 14 The method of any one of the illustrated embodiments.
根据本申请实施例提供的方法,本申请还提供一种系统,其包括前述的一个或多个第一电子设备以及一个或多个第二电子设备。According to the method provided in the embodiments of the present application, the present application also provides a system, which includes the aforementioned one or more first electronic devices and one or more second electronic devices.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。该计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行该计算机指令时,全部或部分地产生按照本申请实施例该的流程或功能。该计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。该计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,该计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。该计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。该可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,高密度数字视频光盘(digital video disc,DVD))、或者半导体介质(例如,固态硬盘(solid state disc,SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented by software, it can be implemented in the form of a computer program product in whole or in part. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instruction may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instruction may be transmitted from a website, a computer, a server, or a data center through a cable (For example, coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (for example, infrared, wireless, microwave, etc.) to transmit to another website, computer, server, or data center. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center integrated with one or more available media. The usable medium can be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a high-density digital video disc (digital video disc, DVD)), or a semiconductor medium (for example, a solid state disk (solid state disc, SSD)). ))Wait.
上述各个装置实施例中第一电子设备和方法实施例中的第一电子设备对应,由相应的模块或单元执行相应的步骤,例如通信单元(收发器)执行方法实施例中接收或发送的步骤,除发送、接收外的其它步骤可以由处理单元(处理器)执行。具体单元的功能可以参考相应的方法实施例。其中,处理器可以为一个或多个。The first electronic device in the above device embodiments corresponds to the first electronic device in the method embodiment, and the corresponding module or unit executes the corresponding steps, for example, the communication unit (transceiver) executes the receiving or sending steps in the method embodiment In addition to sending and receiving, other steps can be executed by the processing unit (processor). For the functions of specific units, refer to the corresponding method embodiments. Among them, there may be one or more processors.
在本说明书中使用的术语“部件”、“模块”、“系统”等用于表示计算机相关的实体、硬件、固件、硬件和软件的组合、软件、或执行中的软件。例如,部件可以是但不限于,在处理器上运行的进程、处理器、对象、可执行文件、执行线程、程序和/或计算机。通过图示,在计算设备上运行的应用和计算设备都可以是部件。一个或多个部件可驻留在进程和/或执行线程中,部件可位于一个计算机上和/或分布在两个或更多个计算机之间。此外,这些部件可从在上面存储有各种数据结构的各种计算机可读介质执行。部件可例如根据具有一个或多个数据分组(例如来自与本地系统、分布式系统和/或网络间的另一部件交互的二个部件的数据,例如通过信号与其它系统交互的互联网)的信号通过本地和/或远程进程来通信。The terms "component", "module", "system", etc. used in this specification are used to denote computer-related entities, hardware, firmware, a combination of hardware and software, software, or software in execution. For example, the component may be, but is not limited to, a process, a processor, an object, an executable file, an execution thread, a program, and/or a computer running on a processor. Through the illustration, both the application running on the computing device and the computing device can be components. One or more components may reside in processes and/or threads of execution, and components may be located on one computer and/or distributed between two or more computers. In addition, these components can be executed from various computer readable media having various data structures stored thereon. The component can be based on, for example, a signal having one or more data packets (e.g. data from two components interacting with another component in a local system, a distributed system, and/or a network, such as the Internet that interacts with other systems through a signal) Communicate through local and/or remote processes.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各种说明性逻辑块(illustrative logical block)和步骤(step),能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art may realize that the various illustrative logical blocks and steps described in the embodiments disclosed herein can be implemented by electronic hardware or a combination of computer software and electronic hardware. accomplish. Whether these functions are executed by hardware or software depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and conciseness of description, the specific working process of the system, device and unit described above can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,该单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device, and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the unit is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
该作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or may also be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
该功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。If this function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solution of the present application essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disk and other media that can store program code . The above are only specific implementations of this application, but the protection scope of this application is not limited to this. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in this application. Should be covered within the scope of protection of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims (24)

  1. 一种数据传输方法,其特征在于,应用于第一电子设备中,包括:A data transmission method, characterized in that it is applied to a first electronic device, and includes:
    第一电子设备获取用户的操作信息,所述操作信息用于指示目标方向;The first electronic device obtains user operation information, where the operation information is used to indicate a target direction;
    所述第一电子设备根据所述第一电子设备的位置信息、所述目标方向和N个第二电子设备的位置信息,确定出所述N个第二电子设备,所述N为正整数;其中,每个所述第二电子设备满足第一条件:第一矢量和第二矢量之间的夹角在预设夹角范围内;所述第一矢量由所述第二电子设备的位置信息和所述第一电子设备的位置信息确定;所述第二矢量的方向与所述目标方向相同;The first electronic device determines 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, where N is a positive integer; Wherein, each of the second electronic devices satisfies a first condition: the angle between the first vector and the second vector is within a preset 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;
    所述第一点子设备向所述N个第二电子设备中的一个或多个第二电子设备发送数据。The first point device sends data to one or more second electronic devices among the N second electronic devices.
  2. 如权利要求1所述的方法,其特征在于,所述第一矢量由所述第一电子设备的位置信息作为起点,所述第二电子设备的位置信息作为终点确定的。The method according to claim 1, wherein the first vector is determined by using the location information of the first electronic device as a starting point, and the location information of the second electronic device as an end point.
  3. 如权利要求1或2所述的方法,其特征在于,所述操作信息为所述用户在所述第一电子设备上的滑动轨迹,所述滑动轨迹用于指示所述目标方向;The method according to claim 1 or 2, wherein the operation information is a sliding track of the user on the first electronic device, and the sliding track is used to indicate the target direction;
    所述第二矢量满足以下一项或多项:The second vector satisfies one or more of the following:
    所述第二矢量至少包括所述滑动轨迹上的两个点;或者;The second vector includes at least two points on the sliding track; or;
    所述滑动轨迹上与所述第二矢量重合的点的数量与所述滑动轨迹上包括的总点数的占比大于预设占比;或者;The ratio of the number of points on the sliding track that coincides with the second vector 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 sliding track, and the end point of the second vector is the end point of the sliding track.
  4. 如权利要求3所述的方法,其特征在于,所述根据所述第一电子设备的位置信息、所述目标方向和N个第二电子设备的位置信息,确定所述N个第二电子设备,包括:The method of claim 3, wherein the determining the N second electronic devices is based on the location information of the first electronic device, the target direction, and the location information of the N second electronic devices ,include:
    根据所述第一电子设备的位置信息、所述目标方向和N个第二电子设备的位置信息,从搜索到的M个第三电子设备中确定出满足所述第一条件的N个第二电子设备,所述M为不小于所述N的整数;According to the location information of the first electronic device, the target direction and the location information of the N second electronic devices, N second electronic devices that satisfy the first condition are determined from the searched M third electronic devices. For electronic equipment, the M is an integer not less than the N;
    在所述第一电子设备的显示屏上显示所述N个第二电子设备的标识信息。Displaying the identification information of the N second electronic devices on the display screen of the first electronic device.
  5. 如权利要求4所述的方法,其特征在于,在所述第一电子设备的显示屏上显示所述N个第二电子设备的标识信息,包括:The method of claim 4, wherein displaying the identification information of the N second electronic devices on the display screen of the first electronic device comprises:
    根据所述N个第二电子设备中各个所述第二电子设备的权重,在所述第一电子设备的显示屏上显示所述N个第二电子设备的标识信息;Displaying the identification information of the N second electronic devices on the display screen of the first electronic device according to the weight of each of the N second electronic devices;
    其中,针对所述N个第二电子设备的一个第二电子设备,该第二电子设备的权重跟该第二电子设备对应的所述第二矢量与所述第一矢量的夹角,和/或该第二电子设备与所述第一电子设备的距离相关。Wherein, for one second electronic device of the N second electronic devices, the weight of the second electronic device is the 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 is related.
  6. 如权利要求5所述的方法,其特征在于,所述N个第二电子设备的标识信息满足以下内容中的一项或多项:The method according to claim 5, wherein the identification information of the N second electronic devices satisfies one or more of the following contents:
    针对所述N个第二电子设备的一个第二电子设备,该第二电子设备的权重越大,则该第二电子设备的标识信息字体越大;For one second electronic device of the N second electronic devices, the larger the weight of the second electronic device, the larger the identification information font of the second electronic device;
    针对所述N个第二电子设备的一个第二电子设备,该第二电子设备的权重越大,则该第二电子设备的标识信息的位置越靠近第一电子设备的显示屏的顶端;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 of the display screen of the first electronic device;
    针对所述N个第二电子设备的一个第二电子设备,该第二电子设备的权重越大,在第 一电子设备的显示屏上显示该第二电子设备的标识信息的图标越大;For one second electronic device of the N second electronic devices, the larger the weight of the second electronic device, the larger the icon that displays the identification information of the second electronic device on the display screen of the first electronic device;
    针对所述N个第二电子设备中的一个第二电子设备,在所述第一电子设备的显示屏上所述第二电子设备的标识信息与所述第一电子设备的标识信息的相对位置,与所述第二电子设备与所述第一电子设备的相对位置匹配。For one second electronic device among 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 , Which matches the relative position of the second electronic device and the first electronic device.
  7. 如权利要求5或6所述的方法,其特征在于,所述根据所述N个第二电子设备中第二电子设备的权重,在所述第一电子设备的显示屏上显示所述N个第二电子设备的标识信息之后,向所述N个第二电子设备中的一个或多个第二电子设备发送数据之前,还包括:The method according to claim 5 or 6, wherein the N second electronic devices are displayed on the display screen of the first electronic device according to the weight of the second electronic device. After the identification information of the second electronic device, before sending data to one or more of the N second electronic devices, the method further includes:
    若检测到所述第一电子设备发生移动,则维持所述第一电子设备的显示屏上显示有所述N个第二电子设备的标识信息的界面不变;或者;If the movement of the first electronic device is detected, maintaining the interface displaying the identification information of the N second electronic devices on the display screen of the first electronic device unchanged; or;
    若检测到所述第一电子设备发生移动,当以网络拓扑形式在所述第一电子设备的显示屏上显示所述N个第二电子设备的标识信息的情况下,根据所述N个第二电子设备中第二电子设备与移动后的所述第一电子设备之间相对位置的变化,在所述第一电子设备的显示屏上更新所显示所述N个第二电子设备的标识信息的位置,其中,在所述第一电子设备的显示屏上所述第二电子设备的标识信息与所述第一电子设备的标识信息的相对位置,与所述第二电子设备与移动后的所述第一电子设备的相对位置匹配;或者;If the movement of the first electronic device is detected, when the identification information of the N second electronic devices is displayed on the display screen of the first electronic device in the form of network topology, according to the Nth 2. The change of the relative position between the second electronic device and the moved first electronic device in the second electronic device, and the identification information of the N second electronic devices displayed on the display screen of the first electronic device is updated 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 the same as that of the second electronic device and the moved The relative position of the first electronic device matches; or;
    若检测到所述第一电子设备发生移动,则根据移动后的所述第一电子设备的位置信息,以及发生移动后的所述第一电子设备上的所述目标方向,确定出一个或多个第三电子设备;其中,针对所述一个或多个第三电子设备中的一个第三电子设备,所述第三电子设备满足第二条件:第三矢量和第四矢量之间的夹角在预设夹角范围内;所述第三矢量由所述第三电子设备的位置信息和移动后的所述第一电子设备的位置信息确定;所述第四矢量的方向与发生移动后的所述第一电子设备上的所述目标方向匹配。If the movement of the first electronic device is detected, then one or more are determined 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. A third electronic device; wherein, for one third electronic device of the one or more third electronic devices, the third electronic device satisfies the second condition: the angle between the third vector and the fourth vector Within the preset angle range; the third vector is determined by the position information of the third electronic device and the position information of the first electronic device after the movement; the direction of the fourth vector is different from the position information of the first electronic device after the movement The target direction on the first electronic device is matched.
  8. 如权利要求1-7任一项所述的方法,其特征在于,所述向所述N个第二电子设备中的一个或多个第二电子设备发送数据,包括:The method according to any one of claims 1-7, wherein the sending data to one or more second electronic devices among the N second electronic devices comprises:
    所述第一电子设备接收第一信令,所述第一信令包括用于指示目标电子设备的指示信息,所述目标电子设备为所述N个第二电子设备中的一个或多个第二电子设备;并根据所述第一信令,向所述目标电子设备发送数据;或者;The first electronic device receives first signaling, and the first signaling includes indication information for indicating a target electronic device, and the target electronic device is one or more of the N second electronic devices. Two electronic equipment; and send data to the target electronic equipment according to the first signaling; or;
    所述第一电子设备向所述N个第二电子设备中权重最大的第二电子设备发送数据;其中,针对所述N个第二电子设备的一个第二电子设备,该第二电子设备的权重跟该第二电子设备对应的所述第二矢量与所述第一矢量的夹角,和/或该第二电子设备与所述第一电子设备的距离相关;或者;The first electronic device sends data to the second electronic device with the largest weight among the N second electronic devices; wherein, for one second electronic device of the N second electronic devices, the second electronic device The weight is related to the 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; or;
    当所述N个第二电子设备中存在一个第二电子设备,该第二电子设备上登录的系统账号与第一电子设备上登录的系统账号相同,则所述第一电子设备向该第二电子设备发送数据。When there is a second electronic device in the N second electronic devices, and the system account logged in on the second electronic device is the same as the system account logged in on the first electronic device, the first electronic device The electronic device sends data.
  9. 如权利要求1-8任一项所述的方法,其特征在于,所述获取用户在第一电子设备上的操作信息,包括:8. The method according to any one of claims 1-8, wherein the obtaining operation information of the user on the first electronic device comprises:
    所述第一电子设备获取用户通过第一预设操作手势在所述第一电子设备的第一预设区域进行的滑动轨迹;所述第一预设区域包括所述第一电子设备的显示屏和/或所述第一电子设备的边框;或者;The first electronic device acquires a sliding track performed by a user in a first preset area of the first electronic device through a first preset operation gesture; the first preset area includes the display screen of the first electronic device And/or the frame of the first electronic device; or;
    所述第一电子设备确定目标文件,并获取用户通过第二预设操作手势在第二预设区域进行的滑动轨迹,所述第二预设区域包括所述目标文件所在的界面和/或所述第一电子设备 的边框;或者;The first electronic device determines the target file, and acquires the sliding track performed by the user through a second preset operation gesture in a second preset area, where the second preset area includes the interface and/or where the target file is located. The frame of the first electronic device; or;
    所述第一电子设备确定所述目标文件,获取用户在第三预设区域进行的滑动轨迹,所述第三预设区域包括第一界面和/或所述第一电子设备的边框,所述第一界面为与所述目标文件所在界面不同的界面;或者;The first electronic device determines the target file, and obtains a sliding track performed by the user in a third preset area, the third preset area including the first interface and/or the frame of the first electronic device, the The first interface is a different interface from the interface where the target file is located; or;
    所述第一电子设备获取用户对所述第一电子设备的显示屏上展示的工具进行操作的操作信息,并根据所述操作信息确定出所述用户对所述工具进行操作后,所述工具所指示的所述目标方向。The first electronic device acquires the operation information of the user operating the tool displayed on the display screen of the first electronic device, and determines according to the operation information that after the user operates the tool, the tool The indicated target direction.
  10. 如权利要求1-9任一项所述的方法,其特征在于,针对所述N个第二电子设备中的一个第二电子设备,所述第二电子设备和所述第一电子设备的距离越近,第二电子设备对应的第一条件中的预设夹角范围越大。The method according to any one of claims 1-9, wherein for one second electronic device among the N second electronic devices, the distance between the second electronic device and the first electronic device is The closer, the larger the preset angle range in the first condition corresponding to the second electronic device.
  11. 如权利要求1-10任一项所述的方法,其特征在于,所述根据所述第一电子设备的位置信息、所述目标方向和N个第二电子设备的位置信息,确定所述N个第二电子设备,包括:The method according to any one of claims 1-10, wherein the determining the N according to the location information of the first electronic device, the target direction and the location information of the N second electronic devices A second electronic device, including:
    所述第一电子设备针对所述N个第二电子设备中的一个第二电子设备,根据所述第二电子设备与所述第一电子设备之间的距离所属的预设距离范围,以及预设距离范围和预设夹角范围之间的对应关系,确定所述第二电子设备对应的第一条件中的预设夹角范围;The first electronic device is directed to one second electronic device among the N second electronic devices, according to the preset distance range to which the distance between the second electronic device and the first electronic device belongs, and the preset distance range Set the correspondence between the distance range and the preset angle range, and determine the preset angle range in the first condition corresponding to the second electronic device;
    其中,预设距离范围中的最大距离值越小,该预设距离范围对应的预设夹角范围中对应的最大夹角越大;Wherein, the smaller the maximum distance value in the preset distance range, the larger the corresponding maximum included angle in the preset angle range corresponding to the preset distance range;
    所述第一电子设备根据所述第一电子设备的位置信息、所述目标方向和N个第二电子设备的位置信息、以及确定的预设夹角范围,确定所述N个第二电子设备。The first electronic device determines 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, and the determined preset included angle range .
  12. 一种第一电子设备,其特征在于,包括:A first electronic device, characterized in that it comprises:
    处理器,用于获取用户的操作信息,所述操作信息用于指示目标方向;根据所述第一电子设备的位置信息、所述目标方向和N个第二电子设备的位置信息,确定出所述N个第二电子设备,所述N为正整数;The processor is configured to obtain user operation information, where the operation information is used to indicate a target direction; according to the position information of the first electronic device, the target direction, and the position information of N second electronic devices, determine the In the N second electronic devices, the N is a positive integer;
    收发器,用于向所述N个第二电子设备中的一个或多个第二电子设备发送数据;A transceiver, configured to send data to one or more second electronic devices among the N second electronic devices;
    其中,每个所述第二电子设备满足第一条件:第一矢量和第二矢量之间的夹角在预设夹角范围内;所述第一矢量由所述第二电子设备的位置信息和所述第一电子设备的位置信息确定;所述第二矢量的方向与所述目标方向相同。Wherein, each of the second electronic devices satisfies a first condition: the angle between the first vector and the second vector is within a preset angle range; the first vector is determined by the position information of the second electronic device And the location information of the first electronic device; the direction of the second vector is the same as the target direction.
  13. 如权利要求12所述的电子设备,其特征在于,所述第一矢量由所述第一电子设备的位置信息作为起点,所述第二电子设备的位置信息作为终点确定的。The electronic device of claim 12, wherein the first vector is determined by using the location information of the first electronic device as a starting point, and the location information of the second electronic device as an end point.
  14. 如权利要求12或13所述的电子设备,其特征在于,所述操作信息为所述用户在所述第一电子设备上的滑动轨迹,所述滑动轨迹用于指示所述目标方向;The electronic device according to claim 12 or 13, wherein the operation information is a sliding track of the user on the first electronic device, and the sliding track is used to indicate the target direction;
    所述第二矢量满足以下一项或多项:The second vector satisfies one or more of the following:
    所述第二矢量至少包括所述滑动轨迹上的两个点;或者;The second vector includes at least two points on the sliding track; or;
    所述滑动轨迹上与所述第二矢量重合的点的数量与所述滑动轨迹上包括的总点数的占比大于预设占比;或者;The ratio of the number of points on the sliding track that coincides with the second vector 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 sliding track, and the end point of the second vector is the end point of the sliding track.
  15. 如权利要求14所述的电子设备,其特征在于,所述处理器,具体用于:The electronic device according to claim 14, wherein the processor is specifically configured to:
    根据所述第一电子设备的位置信息、所述目标方向和N个第二电子设备的位置信息, 从搜索到的M个第三电子设备中确定出满足所述第一条件的N个第二电子设备,所述M为不小于所述N的整数;According to the location information of the first electronic device, the target direction and the location information of the N second electronic devices, N second electronic devices that satisfy the first condition are determined from the searched M third electronic devices. For electronic equipment, the M is an integer not less than the N;
    在所述第一电子设备的显示屏上显示所述N个第二电子设备的标识信息。Displaying the identification information of the N second electronic devices on the display screen of the first electronic device.
  16. 如权利要求15所述的电子设备,其特征在于,所述处理器,具体用于:The electronic device according to claim 15, wherein the processor is specifically configured to:
    根据所述N个第二电子设备中各个所述第二电子设备的权重,在所述第一电子设备的显示屏上显示所述N个第二电子设备的标识信息;Displaying the identification information of the N second electronic devices on the display screen of the first electronic device according to the weight of each of the N second electronic devices;
    其中,针对所述N个第二电子设备的一个第二电子设备,该第二电子设备的权重跟该第二电子设备对应的所述第二矢量与所述第一矢量的夹角,和/或该第二电子设备与所述第一电子设备的距离相关。Wherein, for one second electronic device of the N second electronic devices, the weight of the second electronic device is the 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 is related.
  17. 如权利要求16所述的电子设备,其特征在于,所述N个第二电子设备的标识信息满足以下内容中的一项或多项:The electronic device according to claim 16, wherein the identification information of the N second electronic devices satisfies one or more of the following contents:
    针对所述N个第二电子设备的一个第二电子设备,该第二电子设备的权重越大,则该第二电子设备的标识信息字体越大;For one second electronic device of the N second electronic devices, the larger the weight of the second electronic device, the larger the identification information font of the second electronic device;
    针对所述N个第二电子设备的一个第二电子设备,该第二电子设备的权重越大,则该第二电子设备的标识信息的位置越靠近第一电子设备的显示屏的顶端;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 of the display screen of the first electronic device;
    针对所述N个第二电子设备的一个第二电子设备,该第二电子设备的权重越大,在第一电子设备的显示屏上显示该第二电子设备的标识信息的图标越大;For one second electronic device of the N second electronic devices, the larger the weight of the second electronic device, the larger the icon that displays the identification information of the second electronic device on the display screen of the first electronic device;
    针对所述N个第二电子设备中的一个第二电子设备,在所述第一电子设备的显示屏上所述第二电子设备的标识信息与所述第一电子设备的标识信息的相对位置,与所述第二电子设备与所述第一电子设备的相对位置匹配。For one second electronic device among 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 , Which matches the relative position of the second electronic device and the first electronic device.
  18. 如权利要求16或17所述的电子设备,其特征在于,所述处理器,还用于:The electronic device according to claim 16 or 17, wherein the processor is further configured to:
    若检测到所述第一电子设备发生移动,则维持所述第一电子设备的显示屏上显示有所述N个第二电子设备的标识信息的界面不变;或者;If the movement of the first electronic device is detected, maintaining the interface displaying the identification information of the N second electronic devices on the display screen of the first electronic device unchanged; or;
    若检测到所述第一电子设备发生移动,当以网络拓扑形式在所述第一电子设备的显示屏上显示所述N个第二电子设备的标识信息的情况下,根据所述N个第二电子设备中第二电子设备与移动后的所述第一电子设备之间相对位置的变化,在所述第一电子设备的显示屏上更新所显示所述N个第二电子设备的标识信息的位置,其中,在所述第一电子设备的显示屏上所述第二电子设备的标识信息与所述第一电子设备的标识信息的相对位置,与所述第二电子设备与移动后的所述第一电子设备的相对位置匹配;或者;If the movement of the first electronic device is detected, when the identification information of the N second electronic devices is displayed on the display screen of the first electronic device in the form of network topology, according to the Nth 2. The change of the relative position between the second electronic device and the moved first electronic device in the second electronic device, and the identification information of the N second electronic devices displayed on the display screen of the first electronic device is updated 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 the same as that of the second electronic device and the moved The relative position of the first electronic device matches; or;
    若检测到所述第一电子设备发生移动,则根据移动后的所述第一电子设备的位置信息,以及发生移动后的所述第一电子设备上的所述目标方向,确定出一个或多个第三电子设备;其中,针对所述一个或多个第三电子设备中的一个第三电子设备,所述第三电子设备满足第二条件:第三矢量和第四矢量之间的夹角在预设夹角范围内;所述第三矢量由所述第三电子设备的位置信息和移动后的所述第一电子设备的位置信息确定;所述第四矢量的方向与发生移动后的所述第一电子设备上的所述目标方向匹配。If the movement of the first electronic device is detected, then one or more are determined 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. A third electronic device; wherein, for one third electronic device of the one or more third electronic devices, the third electronic device satisfies the second condition: the angle between the third vector and the fourth vector Within the preset angle range; the third vector is determined by the position information of the third electronic device and the position information of the first electronic device after the movement; the direction of the fourth vector is different from the position information of the first electronic device after the movement The target direction on the first electronic device is matched.
  19. 如权利要求12-18任一项所述的电子设备,其特征在于,所述处理器,还用于:The electronic device according to any one of claims 12-18, wherein the processor is further configured to:
    通过所述收发器接收第一信令,所述第一信令包括用于指示目标电子设备的指示信息,所述目标电子设备为所述N个第二电子设备中的一个或多个第二电子设备;并根据所述第一信令,向所述目标电子设备发送数据;或者;The first signaling is received through the transceiver, and the first signaling includes indication information for indicating a target electronic device, and the target electronic device is one or more second electronic devices among the N second electronic devices. Electronic device; and according to the first signaling, send data to the target electronic device; or;
    通过所述收发器向所述N个第二电子设备中权重最大的第二电子设备发送数据;其中, 针对所述N个第二电子设备的一个第二电子设备,该第二电子设备的权重跟该第二电子设备对应的所述第二矢量与所述第一矢量的夹角,和/或该第二电子设备与所述第一电子设备的距离相关;或者;Send data to the second electronic device with the largest weight among the N second electronic devices through the transceiver; wherein, for one second electronic device of the N second electronic devices, the weight of the second electronic device is The 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 is related; or;
    当所述N个第二电子设备中存在一个第二电子设备,该第二电子设备上登录的系统账号与第一电子设备上登录的系统账号相同,则通过所述收发器向该第二电子设备发送数据。When there is a second electronic device in the N second electronic devices, and the system account logged in on the second electronic device is the same as the system account logged in on the first electronic device, the second electronic device is sent to the second electronic device through the transceiver. The device sends data.
  20. 如权利要求12-19任一项所述的电子设备,其特征在于,所述处理器,具体用于:The electronic device according to any one of claims 12-19, wherein the processor is specifically configured to:
    获取用户通过第一预设操作手势在所述第一电子设备的第一预设区域进行的滑动轨迹;所述第一预设区域包括所述第一电子设备的显示屏和/或所述第一电子设备的边框;或者;Acquire the sliding track performed by the user in the first preset area of the first electronic device through the first preset operation gesture; the first preset area includes the display screen of the first electronic device and/or the second A frame of an electronic device; or;
    确定目标文件,并获取用户通过第二预设操作手势在第二预设区域进行的滑动轨迹,所述第二预设区域包括所述目标文件所在的界面和/或所述第一电子设备的边框;或者;Determine the target file, and obtain the sliding track of the user through the second preset operation gesture in the second preset area, where the second preset area includes the interface where the target file is located and/or the interface of the first electronic device Border; or
    确定所述目标文件,获取用户在第三预设区域进行的滑动轨迹,所述第三预设区域包括第一界面和/或所述第一电子设备的边框,所述第一界面为与所述目标文件所在界面不同的界面;或者;The target file is determined, and the sliding track performed by the user in a third preset area is obtained. The third preset area includes the first interface and/or the frame of the first electronic device. The interface different from the interface where the target file is located; or;
    获取用户对所述第一电子设备显示屏上展示的工具进行操作的操作信息,并根据所述操作信息确定出所述用户对所述工具进行操作后,所述工具所指示的所述目标方向。Obtain the operation information of the user operating the tool displayed on the display screen of the first electronic device, and determine according to the operation information that after the user operates the tool, the target direction indicated by the tool .
  21. 如权利要求12-20任一项所述的电子设备,其特征在于,针对所述N个第二电子设备中的一个第二电子设备,所述第二电子设备和所述第一电子设备的距离越近,第二电子设备对应的第一条件中的预设夹角范围越大。The electronic device according to any one of claims 12-20, wherein for one second electronic device among the N second electronic devices, the second electronic device and the first electronic device The closer the distance, the larger the preset angle range in the first condition corresponding to the second electronic device.
  22. 如权利要求12-21任一项所述的电子设备,其特征在于,所述处理器,具体用于:The electronic device according to any one of claims 12-21, wherein the processor is specifically configured to:
    针对所述N个第二电子设备中的一个第二电子设备,For one second electronic device among the N second electronic devices,
    根据所述第二电子设备与所述第一电子设备之间的距离所属的预设距离范围,以及预设距离范围和预设夹角范围之间的对应关系,确定所述第二电子设备对应的第一条件中的预设夹角范围;其中,预设距离范围中的最大距离值越小,该预设距离范围对应的预设夹角范围中对应的最大夹角越大;According to the preset distance range to which the distance between the second electronic device and the first electronic device belongs, and the correspondence between the preset distance range and the preset included angle range, it is determined that the second electronic device corresponds to The preset angle range in the first condition in the first condition; wherein, the smaller the maximum distance value in the preset distance range, the larger the corresponding maximum angle range in the preset angle range corresponding to the preset distance range;
    根据所述第一电子设备的位置信息、所述目标方向和N个第二电子设备的位置信息、以及确定的预设夹角范围,确定所述N个第二电子设备。The N second electronic devices are determined according to the location information of the first electronic device, the target direction, the location information of the N second electronic devices, and the determined preset included angle range.
  23. 一种电子设备,其特征在于,所述装置包括处理器和通信接口,An electronic device, characterized in that the device includes a processor and a communication interface,
    所述通信接口,用于输入和/或输出信息;The communication interface is used to input and/or output information;
    所述处理器,用于执行计算机程序或指令,使得权利要求1-11中任一项所述的方法被执行。The processor is configured to execute a computer program or instruction, so that the method according to any one of claims 1-11 is executed.
  24. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令在被计算机调用时,使所述计算机执行如权利要求1至11任一项所述的方法。A computer-readable storage medium, characterized in that the computer-readable storage medium stores computer-executable instructions, and when called by a computer, the computer-executable instructions cause the computer to execute any of claims 1 to 11 The method described in one item.
PCT/CN2020/124094 2020-01-22 2020-10-27 Data transmission method, electronic device and storage medium WO2021147419A1 (en)

Applications Claiming Priority (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
CN202010075671.X 2020-01-22

Publications (1)

Publication Number Publication Date
WO2021147419A1 true WO2021147419A1 (en) 2021-07-29

Family

ID=76991953

Family Applications (1)

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

Country Status (2)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115243085A (en) * 2022-06-28 2022-10-25 海信视像科技股份有限公司 Display device and device interconnection method

Families Citing this family (2)

* 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
CN116431038B (en) * 2023-06-13 2023-10-03 Tcl通讯科技(成都)有限公司 Connection on-off prompting method, device, medium and equipment for external storage equipment

Citations (5)

* 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
CN106533907A (en) * 2016-11-14 2017-03-22 北京小米移动软件有限公司 Information sending method and device
US20170118785A1 (en) * 2014-09-10 2017-04-27 Huawei Technologies Co., Ltd. Method for Establishing Wireless Communication Connection and Terminal Device
CN108377286A (en) * 2016-10-28 2018-08-07 中兴通讯股份有限公司 A kind of method and device of data transmission
US20180270617A1 (en) * 2015-07-24 2018-09-20 Zte Corporation Indication direction-based instruction transmission method and apparatus, smart device and storage medium

Family Cites Families (2)

* 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
CN110597473A (en) * 2019-07-30 2019-12-20 华为技术有限公司 Screen projection method and electronic equipment

Patent Citations (5)

* 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
US20170118785A1 (en) * 2014-09-10 2017-04-27 Huawei Technologies Co., Ltd. Method for Establishing Wireless Communication Connection and Terminal Device
US20180270617A1 (en) * 2015-07-24 2018-09-20 Zte Corporation Indication direction-based instruction transmission method and apparatus, smart device and storage medium
CN108377286A (en) * 2016-10-28 2018-08-07 中兴通讯股份有限公司 A kind of method and device of data transmission
CN106533907A (en) * 2016-11-14 2017-03-22 北京小米移动软件有限公司 Information sending method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115243085A (en) * 2022-06-28 2022-10-25 海信视像科技股份有限公司 Display device and device interconnection method

Also Published As

Publication number Publication date
CN113242349B (en) 2022-08-26
CN113242349A (en) 2021-08-10

Similar Documents

Publication Publication Date Title
WO2021147419A1 (en) Data transmission method, electronic device and storage medium
WO2020000448A1 (en) Flexible screen display method and terminal
WO2021104010A1 (en) Payment method and electronic device
WO2021052279A1 (en) Foldable screen display method and electronic device
WO2022042656A1 (en) Interface display method, and device
WO2021037146A1 (en) File sharing method and device for mobile terminal
WO2022228048A1 (en) Method for interaction between electronic devices and electronic device
WO2019100298A1 (en) Photographing method and terminal
WO2021190338A1 (en) Content transmission method, device and medium
WO2021197071A1 (en) Wireless communication system and method
WO2022062796A1 (en) Network control method, apparatus, and electronic device
CN114090102B (en) Method, device, electronic equipment and medium for starting application program
WO2019178816A1 (en) Method and device for setting supplementary service
WO2021197354A1 (en) Device positioning method and relevant apparatus
WO2022048453A1 (en) Unlocking method and electronic device
WO2022100219A1 (en) Data transfer method and related device
WO2021052015A1 (en) Touch screen control method and electronic device
WO2023179751A1 (en) Object searching method, system and electronic device
CN114384465A (en) Azimuth angle determination method and device
WO2023015962A1 (en) Virtual card switching method and electronic device
WO2022062902A1 (en) File transfer method and electronic device
WO2022152174A1 (en) Screen projection method and electronic device
US20230087282A1 (en) Dual wi-fi connection method and electronic device
CN115250428A (en) Positioning method and device
WO2022089523A1 (en) Data sharing method and related device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20915959

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20915959

Country of ref document: EP

Kind code of ref document: A1