WO2022062902A1 - 一种文件传输方法和电子设备 - Google Patents

一种文件传输方法和电子设备 Download PDF

Info

Publication number
WO2022062902A1
WO2022062902A1 PCT/CN2021/117200 CN2021117200W WO2022062902A1 WO 2022062902 A1 WO2022062902 A1 WO 2022062902A1 CN 2021117200 W CN2021117200 W CN 2021117200W WO 2022062902 A1 WO2022062902 A1 WO 2022062902A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
azimuth
target
azimuth angle
image
Prior art date
Application number
PCT/CN2021/117200
Other languages
English (en)
French (fr)
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 WO2022062902A1 publication Critical patent/WO2022062902A1/zh

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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • 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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Definitions

  • the present application relates to the field of electronic technology, and in particular, to a file transmission method and electronic device.
  • terminal devices such as smart phones, tablet computers and other portable terminal devices.
  • These terminal devices provide people with various services such as file storage and file preview.
  • Device file transfer has become a common operation in people's daily life.
  • the present application discloses a file transmission method, an electronic device and a computer-readable storage medium. It can effectively reduce user operations and improve the efficiency of file transfer across devices.
  • an embodiment of the present application provides a file transmission method, which is applied to a first device.
  • the method includes: acquiring, by the first device, a first image; if the first image includes a target device and the target file displayed on the screen of the target device, the first device searches for a third device that satisfies the preset orientation condition from the second device connected to the first device by short-range communication; the first device Send a screen information query request to the third device, where the screen information query request is used to instruct the third device to feed back the current screen shot; the first device receives the screen shot fed back by the third device, and sends the screen shot back to the third device.
  • the first image is matched with the screenshot, and if there is a matching screenshot, the third device corresponding to the matching screenshot is determined as the target device;
  • the target device sends a file transfer request, where the file transfer request is used to instruct the target device to send the target file to the first device.
  • the first device searches for a third device that satisfies a preset orientation condition from a second device connected to the first device by short-range communication, thereby narrowing the scope of searching for the target device, and then Through the screenshots fed back by the third device, the target device is further determined from the third device and the transfer of the target file is completed, so that the user does not need to manually select the target device to transfer the file to complete the cross-device file transfer.
  • Transmission reduces user operations, improves the efficiency of file transmission across devices, and has high practicability and ease of use.
  • target file includes but is not limited to files such as documents, audio, video, audio and video, and web pages, and the file type of the target file is not specifically limited in this embodiment of the present application.
  • the target file is in the open or playing state, and when there are two or more files displayed on the screen of the target device, the target file may be displayed on the screen of the target device. All files can also be files running in the foreground of the target device, or files located according to the current cursor position, which are not specifically limited here.
  • the screen information query request is further used to instruct the third device to feed back the currently displayed first file information, and after the first device determines the target device, It also includes: the first device receives the currently displayed first file information fed back by the target device, and matches the first file information with the file information extracted from the first image, if the matching is successful, Then, a file transfer request is generated, and the file transfer request includes the information of the successfully matched first file.
  • the file information includes but is not limited to file type, file name, and file path.
  • the first device matches the file information extracted from the first image with the first file information, and determines whether there is a file that matches the information from the first image.
  • the first file information that matches the extracted file information for example, the file information with the same file type and file name is determined as the matching file information, if there is a first file information that matches the file information extracted from the first image.
  • File information that is, after successful matching, a file transfer request is generated, and the generated file transfer request includes the first file information that is successfully matched, and is used to instruct the target device to send the target file to the first device.
  • the name of the target file is the same as the first file.
  • the file names in the file information are the same.
  • the first device generates a first file including a successful matching after the file information extracted from the first image matches the first file information by receiving the currently displayed first file information fed back by the third device.
  • a file transfer request for file information after the first device determines the target device, sends the file transfer request to the target device, so that the target device can quickly find the file corresponding to the file name from the file path provided by the first file information As the target file, the efficiency of file transfer is improved.
  • the first device will start with the In the second device connected by the short-range communication of the first device, searching for a third device that satisfies the preset orientation condition includes: if the first image contains the target device and the target file displayed on the screen of the target device , the first device sends an azimuth query request to the second device, and the azimuth query request is used to instruct the second device to feed back the current first azimuth angle, and the first azimuth angle is the second azimuth angle.
  • the distance azimuth angle between the device and the first device wherein the first azimuth angle is determined according to the signal strength of the short-range communication between the second device and the first device; the first device receives the The first azimuth angle fed back by the second device is used, and according to the first azimuth angle, a third device that satisfies the preset azimuth condition is searched from the second device.
  • the first device determines whether the first image contains the target device and the target file displayed on the screen of the target device, if the first image contains the target device and For the target file displayed on the screen of the target device, the first device sends an orientation query request to the second device. After receiving the orientation query request sent by the first device, the second device feeds back its current position to the first device.
  • the first azimuth angle enables the first device to search for a third device that satisfies the preset azimuth condition from the second device according to the first azimuth angle, effectively narrowing the scope of searching for the target device, and improving the search efficiency and accuracy of the target device.
  • the first device receives a first azimuth angle fed back by the second device, and according to the first azimuth angle, searches from the second device for a predetermined azimuth angle
  • a third device for setting azimuth conditions comprising: the first device obtains a second azimuth angle, and matches the second azimuth angle with the first azimuth angle, if there is a matching first azimuth angle, then The second device corresponding to the matched first azimuth is determined as a third device that satisfies a preset azimuth condition, and the second azimuth is the visual azimuth between the first device and the target device.
  • the second azimuth angle is a visual azimuth angle between the first device and the target device determined based on the first image.
  • acquiring the second azimuth by the first device includes: the first device determines, based on a trained deep neural network, the position information of the target device in the first image, and determines the location information of the target device in the first image according to the The position information calculates the second azimuth.
  • the deep neural network model is obtained by training images containing equipment as training samples.
  • acquiring the second azimuth angle by the first device includes: acquiring, by the first device, a third image, where the third image is a double image captured by the first device when capturing the first image.
  • the first device determines the depth information of the target device based on the binocular vision positioning method, and calculates the second azimuth angle according to the depth information.
  • the third image is a binocular image obtained by using any two cameras in the electronic device, that is, the third image includes a left image and a right image, the left image is relative to the image seen by the human left eye, and the right image is equivalent to The image seen by the human right eye. Based on the binocular images, information related to the real-world environment, especially the depth information of the target device, can be extracted.
  • the first device when the first device acquires the third image, the first device performs binocular targeting and correction on the acquired third image, and then performs binocular matching to acquire the depth information of the target device, so that the first device Accurate second azimuth can be obtained.
  • the first device acquires a second azimuth angle, and matches the second azimuth angle with the first azimuth angle, for example, there is a matching first azimuth angle angle, then determining the second device corresponding to the matched first azimuth angle as the third device that satisfies the preset azimuth condition, including: the first device calculating the second azimuth angle and the first azimuth angle If the calculated similarity is less than the first threshold, the first device determines that the first azimuth corresponding to the similarity less than the first threshold matches the second azimuth, and matches the The second device corresponding to the matched first azimuth angle is determined as the third device that satisfies the preset azimuth condition.
  • the first device acquires a second azimuth angle, and matches the second azimuth angle with the first azimuth angle, for example, there is a matching first azimuth angle angle, then determining the second device corresponding to the matched first azimuth angle as the third device that satisfies the preset azimuth condition, including: the first device calculating the second azimuth angle and the first azimuth angle If the calculated angle difference is less than the second threshold, the first device determines that the first azimuth corresponding to the angle difference less than the second threshold matches the second azimuth, and matches the The second device corresponding to the matched first azimuth angle is determined as the third device that satisfies the preset azimuth condition.
  • an embodiment of the present application provides another file transmission method, which is applied to a second device.
  • the method includes: when the second device receives a screen information query request sent by a first device connected to it by short-range communication After that, the current screenshot is acquired, and the current screenshot is fed back to the first device, and the screen information query request is used to instruct the second device to feed back the current screenshot; when the second device After receiving the file transfer request sent by the first device, send the target file to the first device, where the file transfer request is used to instruct the second device to send the target file to the first device.
  • the second device after receiving the screen information query request sent by the first device connected to it by short-range communication, the second device obtains the current screen shot and feeds it back to the first device, so that the first device can use the screen shot according to the screen.
  • the screenshot determines the target device from the second device, and after receiving the file transfer request sent by the first device, the target device searches for the target file and sends the target file to the first device.
  • the purpose of fast transfer of target files between devices improves the efficiency of transferring files across devices.
  • the second device before the second device receives the screen information query request sent by the first device connected to the short-range communication, the second device further includes: when the second device receives the After the azimuth query request sent by the first device, the first azimuth angle is determined according to the signal strength of the short-range communication between the second device and the first device, and the first azimuth angle is fed back to the first device, In order for the first device to determine whether the second device is a device that satisfies the preset azimuth condition according to the first azimuth angle, after determining that the second device is a device that satisfies the preset azimuth condition, to the The second device sends a screen information query request, wherein the first azimuth is a distance azimuth between the second device and the first device.
  • the second device after receiving the azimuth query request sent by the first device, determines the first azimuth angle according to the signal strength of the short-range communication between the second device and the first device, and feeds back the determined azimuth angle to the first device.
  • the first azimuth angle so that the first device can determine the azimuth of the second device according to the first azimuth angle, and search for the second device that satisfies the preset azimuth condition, thereby reducing the scope of finding the target device from the second device, and improving the target
  • the search efficiency and accuracy rate of the device are improved, so as to achieve the purpose of improving the efficiency of file transmission.
  • the second device after receiving the azimuth query request sent by the first device, the second device obtains the signal strength of its short-range communication connection with the first device, calculates the distance between the two according to the obtained signal strength, and calculates the distance between the two according to the obtained signal strength. The calculated distance calculates the first azimuth.
  • the signal strength of the short-range communication connection includes, but is not limited to, the signal strength of a Bluetooth signal, a WIFI signal, and a wireless access point signal.
  • the embodiment of the present application realizes the positioning of the second device based on the signal strength of the close proximity and the same connection, so that the first device can determine the third device that satisfies the preset orientation condition from the second device, which reduces the time required to determine the target device in the next step.
  • the range of equipment improves the judgment efficiency.
  • the second device after receiving the location query request sent by the first device, performs short-range communication between the second device and the first device according to the signal strength, and determining the first azimuth angle, including: the second device broadcasts its own Bluetooth signal after receiving the azimuth query request sent by the first device; the second device communicates with the first device through the Bluetooth signal A device establishes a Bluetooth connection, and calculates the first azimuth angle according to the Bluetooth signal strength.
  • the second device after receiving the location query request sent by the first device, performs short-range communication between the second device and the first device according to a signal strength, and determining the first azimuth angle, including: when the second device detects the azimuth query request sent by the first device, broadcasting its own WIFI signal; the second device communicates with the first device through the WIFI signal A device establishes a WIFI connection, and calculates the first azimuth angle according to the WIFI signal strength.
  • the second device receives the file transfer request sent by the first device, and sends the target file to the first device, including: the second device determining the current Whether the account information is consistent with the account information of the first device, if so, the second device sends the target file to the first device; otherwise, the second device generates a file to send a confirmation request and feedback To the first device, the file sending confirmation request is used to instruct the first device to determine whether to transmit the target file.
  • the second device before the second device sends the target file to the first device, it further includes: acquiring current node information of the target file and generating file node information, where the node information includes but is not limited to the file page number, cursor position, and file progress bar.
  • the second device sends the file node information and the target file to the first device at the same time, so that when the first device opens the target file, the continuous display of the file can be realized according to the file node information.
  • the second device before the second device sends the target file to the first device, it is judged whether the target file is a preset file type such as a video file or an audio file, and if the target file is a preset file type, the current node information of the target file is obtained. And generate the file node information including the file name and the playback position, and send the file node information to the first device, so that the first device continues to play the target file corresponding to the file name from the playback position according to the file node information, such as the name is XXX videos.
  • the second device by sending the file node information to the first device, the second device enables the first device to continuously display the file according to the received file node information, thereby improving the user experience.
  • the present application provides a file transmission device, applied to a first device, comprising: an image acquisition unit for acquiring a first image; a device search unit for if the first image contains a target device and the target file displayed on the screen of the target device, search for a third device that satisfies the preset orientation condition from the second device connected to the first device by short-range communication; the screen information query request sending unit, is used to send a screen information query request to the third device, where the screen information query request is used to instruct the third device to feed back the current screen shot; a device confirmation unit is used to receive the screen shot fed back by the third device , and match the first image with the screenshot, if there is a matching screenshot, determine the third device corresponding to the matching screenshot as the target device; the file transfer request sending unit , which is used to send a file transfer request to the target device, where the file transfer request is used to instruct the target device to send the target file to the first device.
  • the present application provides a file transmission device, applied to a second device, comprising: a screen shot feedback unit, configured to obtain a screen information query request sent by a first device connected to its short-range communication the current screen shot, and the current screen shot is fed back to the first device, and the screen information query request is used to instruct the second device to feed back the current screen shot; the target file sending unit is used for when all the After the second device receives the file transfer request sent by the first device, it sends the target file to the first device, and the file transfer request is used to instruct the second device to send the file transfer request to the first device.
  • Target file is used for when all the After the second device receives the file transfer request sent by the first device, it sends the target file to the first device, and the file transfer request is used to instruct the second device to send the file transfer request to the first device.
  • the present application provides an electronic device, comprising: a processor and a memory, the processor and the memory are coupled, and the memory is used to store a computer program (also referred to as an instruction or a code), when all the When the processor executes the computer program, the above-mentioned electronic device is caused to execute the method provided by the first aspect or any possible implementation manner of the first aspect.
  • a computer program also referred to as an instruction or a code
  • the present application provides an electronic device, comprising: a processor and a memory, the processor and the memory are coupled, and the memory is used to store a computer program (also referred to as an instruction or a code), when all the When the processor executes the computer program, the above electronic device is caused to execute the method provided by the second aspect or any possible implementation manner of the second aspect.
  • a computer program also referred to as an instruction or a code
  • the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed on an electronic device, the above-mentioned electronic device is made to execute the first aspect,
  • an embodiment of the present application provides a chip, including a processor, and when the processor reads and executes a computer program stored in a memory, any one of the first aspect, the second aspect, and the first aspect is implemented.
  • a chip including a processor, and when the processor reads and executes a computer program stored in a memory, any one of the first aspect, the second aspect, and the first aspect is implemented.
  • an embodiment of the present application provides a chip system, including a memory and a processor, when the chip system is running, the above-mentioned electronic device is made to perform any possible implementation of the first aspect, the second aspect, and the first aspect manner or the method provided by any possible implementation manner of the second aspect. provided method.
  • the above chip system may be a single chip, or a chip module composed of multiple chips.
  • the above-mentioned file transmission device in the third aspect, the file transmission device in the fourth aspect, the electronic device in the fifth aspect, the electronic device in the sixth aspect, the computer storage medium in the seventh aspect or Eighth aspect are all configured to execute the method provided by the first aspect, any possible implementation manner of the first aspect, the second aspect, or any possible implementation manner of the second aspect. Therefore, for the beneficial effects that can be achieved, reference may be made to the beneficial effects in the corresponding method, which will not be repeated here.
  • FIG. 1 is a schematic diagram of a hardware structure of an electronic device 100 provided by an embodiment of the present application
  • FIG. 2 is a schematic diagram of a software structure of an electronic device 100 according to an embodiment of the present application
  • FIG. 3 is a schematic flowchart of a file transmission method provided by an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of another file transmission method provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a file transmission scenario provided by an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a file transmission device provided by an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of another file transmission apparatus provided by an embodiment of the present application.
  • the electronic devices involved in the embodiments of the present application may be mobile phones, tablet computers, desktops, laptops, notebook computers, ultra-mobile personal computers (UMPCs), handheld computers, netbooks, personal digital assistants (personal digital assistants) digital assistant, PDA), wearable electronic devices, virtual reality devices, etc.
  • UMPCs ultra-mobile personal computers
  • PDA personal digital assistants
  • wearable electronic devices virtual reality devices, etc.
  • This application does not limit the specific types of electronic devices.
  • FIG. 1 is a schematic structural diagram of an electronic device 100 provided by an embodiment of the present application.
  • 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 charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195 and so on.
  • 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 light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), 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. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processor
  • graphics processor graphics processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the controller may be the nerve center and command center of the electronic device 100 .
  • the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing 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 transmitter) 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 (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transceiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may contain multiple sets of I2C buses.
  • the processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flash, the camera 193 and the like through different I2C bus interfaces.
  • the processor 110 may couple the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate with each other through the I2C bus interface, so as to realize the touch function of the electronic device 100 .
  • the I2S interface can be used for audio communication.
  • the processor 110 may contain multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communications, sampling, quantizing and encoding analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is typically used to connect the processor 110 with the wireless communication module 160 .
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
  • MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc.
  • the processor 110 communicates with the camera 193 through a CSI interface to implement the photographing function of the electronic device 100.
  • the processor 110 communicates with the display screen 194 through the DSI interface to implement the display function of the electronic device 100 .
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like.
  • the GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones.
  • the interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection manners in the embodiments, or a combination of multiple interface connection manners.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100 . While the charging management module 140 charges the battery 142 , it can also supply power to the electronic device through the power management module 141 .
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140 and supplies power to the processor 110 , the internal memory 121 , the external memory, the display screen 194 , the camera 193 , and the wireless communication module 160 .
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 may provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through 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 may be provided in the same device as at least part of the modules of the processor 110 .
  • 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. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low frequency baseband signal is processed by the baseband processor and passed to the application processor.
  • the application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared technology (IR).
  • 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 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
  • the antenna 1 of the electronic device 100 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 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband 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 may include global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou navigation satellite system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
  • global positioning system global positioning system, GPS
  • global navigation satellite system global navigation satellite system, GLONASS
  • Beidou navigation satellite system beidou navigation satellite system, BDS
  • quasi-zenith satellite system quadsi -zenith satellite system, QZSS
  • SBAS satellite based augmentation systems
  • the electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • Display screen 194 is used to display images, videos, and the like.
  • Display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light).
  • LED diode AMOLED
  • flexible light-emitting diode flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
  • the electronic device 100 may include one or N display screens 194 , where N is a positive integer greater than one.
  • the display screen 194 in FIG. 1 can be bent.
  • the display screen 194 can be bent means that the display screen can be bent to any angle at any position, and can be maintained at the angle.
  • the display screen 194 can be folded in half from the middle, left and right, or can be folded in half from the middle.
  • a display screen that can be bent is referred to as a foldable display screen.
  • the foldable display screen may be one screen, or may be a display screen formed by piecing together multiple screens, which is not limited herein.
  • the electronic device 100 can determine whether the foldable display screen is in a folded state or in an unfolded state through one or more of a gravity sensor, an acceleration sensor and a gyroscope, and can also determine whether the foldable display screen is in a folded state or in an unfolded state. Whether it is in portrait display or landscape display.
  • the electronic device 100 can also detect the bending angle of the foldable display screen through a gravity sensor, an acceleration sensor and a gyroscope, and then the electronic device 100 can determine the foldable display according to the bending angle. Whether the screen is folded or unfolded.
  • the electronic device 100 may also determine the orientation of the foldable display screen in the folded state through one or more of a gravity sensor, an acceleration sensor and a gyroscope, and then determine a display area for displaying the interface content output by the system. For example, when the first screen area of the foldable display screen faces upward relative to the ground, the electronic device 100 may display the interface content output by the display system on the first screen area. When the second screen area of the foldable display screen faces upward relative to the ground, the electronic device 100 may display the interface content output by the display system on the second screen area.
  • the electronic device 100 may further include an angle sensor (not shown in FIG. 1 ).
  • the angle sensor may be disposed at the bending portion of the foldable display screen.
  • the electronic device 100 can measure the angle formed by the two ends of the bending part in the middle of the foldable display screen through an angle sensor (not shown in FIG. 1 ) arranged on the bending part of the foldable display screen, and when the angle is greater than When the angle is equal to or equal to the first angle, the electronic device 100 can recognize that the foldable display screen enters the unfolded state through the angle sensor. When the included angle is less than or equal to the first angle, the electronic device 100 can recognize through the angle sensor that the foldable display screen enters the folded state.
  • the electronic device 100 can also identify whether the foldable display screen is in a folded state through a physical switch disposed at the bending portion of the foldable display screen. For example, when the electronic device receives a user's folding operation on the foldable display screen, the physical switch provided on the electronic device is triggered to open, and the electronic device 100 may determine that the foldable display screen is in a folded state. When the electronic device 100 receives the user's unfolding operation on the foldable display screen, the physical switch provided on the electronic device is triggered to close, and the electronic device can determine that the foldable display screen is in the unfolded state.
  • a physical switch disposed at the bending portion of the foldable display screen. For example, when the electronic device receives a user's folding operation on the foldable display screen, the physical switch provided on the electronic device is triggered to open, and the electronic device 100 may determine that the foldable display screen is in a folded state. When the electronic device 100 receives the user's unfolding operation on the foldable display screen, the physical switch provided on the
  • the foldable display screen can display content in a full screen, or a partial area (such as the first screen area or the second screen area) Display content, or display content in two or more partial areas.
  • the interface content may occupy part of the display area of the foldable display screen.
  • the display screen 194 is a special-shaped cutting screen (Notch screen)
  • the special-shaped cutting screen The middle part of the screen displays the interface content, and when one or both edges of the screen are partially black, the foldable display screen can also be regarded as displaying the interface content in full screen.
  • the electronic device 100 may implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
  • the ISP is used to process the data fed back by the camera 193 .
  • the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin tone.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193 .
  • Camera 193 is used to capture still images or video.
  • the object is projected through the lens to generate an optical image onto the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
  • a digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy and so on.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs.
  • the electronic device 100 can play or record videos of various encoding formats, such as: Moving Picture Experts Group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
  • MPEG Moving Picture Experts Group
  • MPEG2 moving picture experts group
  • MPEG3 MPEG4
  • MPEG4 Moving Picture Experts Group
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • Applications such as intelligent cognition of the electronic device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100 .
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc in external memory card.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by executing the instructions stored in the internal memory 121.
  • 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 required for at least one function (such as a sound playback function, an image playback function, etc.), and the like.
  • the storage data area may store data (such as audio data, phone book, etc.) created during the use of the electronic device 100 and the like.
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
  • the electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
  • the audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
  • Speaker 170A also referred to as a "speaker" is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also referred to as "earpiece" is used to convert audio electrical signals into sound signals.
  • the voice can be answered by placing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through a human mouth, and input the sound signal into the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which can implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may further be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
  • the earphone jack 170D is used to connect wired earphones.
  • the earphone interface 170D may be the USB interface 130, or may be a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals.
  • the pressure sensor 180A may be provided on the display screen 194 .
  • the capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
  • the electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the motion attitude of the electronic device 100 .
  • the angular velocity of electronic device 100 about three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the shaking angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse motion to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenarios.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 can detect the opening and closing of the flip holster using the magnetic sensor 180D.
  • the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D. Further, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, characteristics 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 100 in various directions (generally three axes).
  • the magnitude and direction of gravity can be detected when the electronic device 100 is stationary. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • the electronic device 100 can measure the distance through infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the light emitting diodes may be infrared light emitting diodes.
  • the electronic device 100 emits infrared light to the outside through the light emitting diode.
  • Electronic device 100 uses 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 100 . When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100 .
  • the electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
  • Proximity light sensor 180G can also be used in holster mode, pocket mode automatically unlocks and locks the screen.
  • the ambient light sensor 180L is used to sense ambient light brightness.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket, so as to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, accessing application locks, taking pictures with fingerprints, answering incoming calls with fingerprints, and the like.
  • the temperature sensor 180J is used to detect the temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 caused by the low temperature.
  • the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to touch operations may be provided through display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the location where the display screen 194 is located.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the pulse of the human body and receive the blood pressure beating signal.
  • the bone conduction sensor 180M can also be disposed in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibration bone block obtained by the bone conduction sensor 180M, so as to realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the function of heart rate detection.
  • the keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key.
  • the electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100 .
  • Motor 191 can generate vibrating cues.
  • the motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback.
  • touch operations acting on different applications can correspond to different vibration feedback effects.
  • the motor 191 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 194 .
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, which can be used to indicate charging status, battery change, and can also be used to indicate messages, missed calls, notifications, and the like.
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be contacted and separated from the electronic device 100 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195 .
  • the electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card and so on. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 is also compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication.
  • the electronic device 100 employs an eSIM, ie: an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiment of the present invention takes an Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 as an example.
  • FIG. 2 is a block diagram of the software structure of the electronic device 100 according to the embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces.
  • the Android system is divided into four layers, which are, from top to bottom, an application layer, an application framework layer, an Android runtime (Android runtime) and a system library, and a kernel layer.
  • the application layer can include a series of application packages.
  • the application package can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and so on.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer may include window managers, content providers, view systems, telephony managers, resource managers, notification managers, and the like.
  • a window manager is used to manage window programs.
  • the window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, take screenshots, etc.
  • Content providers are used to store and retrieve data and make these data accessible to applications.
  • the data may include video, images, audio, calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. View systems can be used to build applications.
  • a display interface can consist of one or more views.
  • the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
  • the phone manager is used to provide the communication function of the electronic device 100 .
  • the management of call status including connecting, hanging up, etc.).
  • the resource manager provides various resources for the application, such as localization strings, icons, pictures, layout files, video files and so on.
  • the notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages, and can disappear automatically after a brief pause without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also display notifications in the status bar at the top of the system in the form of graphs or scroll bar text, such as notifications of applications running in the background, and notifications on the screen in the form of dialog windows. For example, text information is prompted in the status bar, a prompt sound is issued, the electronic device vibrates, and the indicator light flashes.
  • Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
  • the core library consists of two parts: one is the function functions that the java language needs to call, and the other is the core library of Android.
  • the application layer and the application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, safety and exception management, and garbage collection.
  • a system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
  • surface manager surface manager
  • media library Media Libraries
  • 3D graphics processing library eg: OpenGL ES
  • 2D graphics engine eg: SGL
  • the Surface Manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
  • 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display drivers, camera drivers, audio drivers, and sensor drivers.
  • a corresponding hardware interrupt is sent to the kernel layer.
  • the kernel layer processes touch operations into raw input events (including touch coordinates, timestamps of touch operations, etc.). Raw input events are stored at the kernel layer.
  • the application framework layer obtains the original input event from the kernel layer, and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation, and the control corresponding to the click operation is the control of the camera application icon, for example, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer.
  • the camera 193 captures still images or video.
  • a communication connection with device A is displayed on the desktop of device A, such as A list of names of a series of devices connected to Bluetooth and WIFI. Users can select device B that receives files from the list of names to complete one-to-one file transfer.
  • the user needs to perform more steps, especially when there are many devices connected to the device A, the user needs to find the device that receives the file from the usual list of names B.
  • a user when a user needs to share a document displayed on the current screen of device A to device B, he first needs to click the share icon displayed on the current screen of device A, and then select the airdrop function icon. At this time, a list of names of a series of devices connected to device A via Bluetooth or WIFI will be displayed on the screen of device A, and the user needs to find and select device B to be shared from the list of names. After the user selects the device B to be shared, the device B will receive the document transmitted by the device A, and can choose a way to open the document. In the process of the user sharing the file of device A to device B, the user needs to perform multiple operations to transfer the file from device A to device B, which is inefficient and has poor user experience. In particular, when there are multiple devices around device A, and the multiple devices are connected to device A in communication, the user needs to find the name of device B from a long list of names, which takes more time and greatly reduces the user experience. user experience.
  • the technical solutions provided in the embodiments of the present application can be applied to various communication systems, for example, a new radio (NR) communication system using the fifth generation (5th generation, 5G) communication technology, a future evolution system, or a variety of communication fusions system, etc.
  • the technical solutions provided in this application can be applied to various application scenarios, such as machine to machine (M2M), macro-micro communication, enhanced mobile broadband (eMBB), ultra-reliable and ultra-low latency Communication (ultra-reliable & low latency communication, uRLLC) and massive IoT communication (massive machine type communication, mMTC) and other scenarios.
  • M2M machine to machine
  • eMBB enhanced mobile broadband
  • uRLLC ultra-reliable and ultra-low latency Communication
  • massive IoT communication massive machine type communication
  • These scenarios may include but are not limited to: a communication scenario between a communication device and a communication device, a communication scenario between a network device and a network device, a communication scenario between a network device and a communication device, and the like.
  • the following description is given by taking an example of application in a communication scenario between the first device and the second device.
  • the first device in the embodiment of the present application is a receiving device by default, that is, a device that receives files sent by other devices
  • the second device is a sending device by default, that is, a device that transmits its own files to other devices.
  • a distributed collaboration service runs on the first device for command distribution, file reception, identity authentication, and communication services. For example, it is responsible for processing image recognition and processing from the camera's visual recognition mode.
  • the client communicates, inquires about the current active task of the second device, receives the file transmitted by the second device, and distributes the execution command to each application program, wherein the application program is used to open the received file, and can also perform operations on the received file.
  • a distributed collaborative client running on the second device, which is used for command processing, file transfer, identity authentication, and providing communication services. Its identity authentication and communication services are used to establish a trusted connection between the first device and the second device client.
  • the short-range communication between the first device and the second device can be directly connected through Bluetooth BT/WIFI, or indirectly connected through a wireless access point.
  • a file transmission method provided by an embodiment of the present application includes the following steps:
  • a first device acquires a first image.
  • the first image is an image captured by the user using the first device, and the image includes the device and the file displayed on the screen of the device.
  • the first image is an image including the target device and the target file displayed on the screen of the target device.
  • target file includes but is not limited to files such as documents, audio, video, audio and video, and web pages, and the file type of the target file is not specifically limited in this embodiment of the present application.
  • the target file is in the open or playing state, and when there are two or more files displayed on the screen of the target device, the target file may be displayed on the screen of the target device. All files may also be files running in the foreground of the target device, such as files located according to the current cursor position, which are not specifically limited here.
  • the user who holds the first device wants to share the target file displayed on the current screen of the target device on the screen of the current device, namely the first device, that is, to share the target file displayed on the current screen of the target device to the first device.
  • the user can use the first device to photograph the target device to obtain the first image.
  • the user can click the file transfer icon in the first device.
  • the first device After detecting the click operation on the file transfer icon, the first device will start the camera visual recognition mode, instructing the user to use The camera of the first device captures an image including the target device, that is, the first image.
  • the first device from the second device connected to the first device by short-range communication, Finds a third device that meets preset orientation conditions.
  • the first device in the camera visual recognition mode, after the first device captures the first image, it will recognize whether the first image contains the target device and the target file displayed on the screen of the target device, that is, recognizes the first image. Whether an image contains the device and the file displayed on the device's screen.
  • the first device after the first device starts the camera visual recognition mode and the first device has captured the first image through the camera, the first device will recognize and extract the image features of the first image, and determine the first image according to the extracted image features. Whether an image contains the target device and the target file displayed on the screen of the target device is to determine whether the first image contains the device and the file displayed on the screen of the device.
  • the second device is one or more devices connected to the first device by short-range communication; the third device is any one or more devices in the second device that meet the preset orientation conditions; the target device is the first device any one of the three devices.
  • the first device when it is determined that the first image contains the target device and the target file displayed on the screen of the target device, the first device sends an orientation query request to the second device, where the orientation query request is used to instruct the second device to feedback The current first azimuth.
  • the first azimuth angle is specifically the distance azimuth angle between the second device and the first device.
  • the first device After receiving the first azimuth angle fed back by the second device, the first device searches for a third device that satisfies the preset azimuth condition from the second device according to the first azimuth angle.
  • the first device when the first device sends an orientation query request to the second device, it simultaneously scans the devices within a preset range and the third
  • the wireless signal broadcast by the wireless device of the second device enables the first device and the second device to establish a short-range communication connection through the wireless signal, such as a Bluetooth signal, a WIFI signal, and the like.
  • the first device when it sends an orientation query request, it scans the Bluetooth signal or WIFI signal broadcast by the second device within a preset range, so as to establish a close proximity with the device surrounding the first device, that is, the second device through the Bluetooth signal or the WIFI signal. Distance communication connection.
  • the second device broadcasts a Bluetooth signal or a WIFI signal when detecting the location query request sent by the first device, so that the first device can scan the Bluetooth signal or WIFI signal broadcast by the second device, so that the establishment of the relationship between the two from a short-range communication connection.
  • the first device searches for a third device that satisfies the preset azimuth condition according to the first azimuth angle fed back by the second device.
  • the mobile phone antenna array receives the Bluetooth signal or WIFI signal broadcast by the second device, and according to the received Bluetooth signal or WIFI signal The intensity of the first azimuth is calculated.
  • the Bluetooth module or the WIFI module of the first device may be in a working state all the time, or may be activated when the first device sends an orientation query request.
  • the Bluetooth module or the WIFI module of the second device may be in a working state all the time, or it may be activated when the location query request sent by the first device is detected. This embodiment of the present application does not specifically limit the activation timing of the Bluetooth module or the WIFI module. .
  • the first azimuth angle of the second device may be used to locate the second device.
  • the orientation between the second device and the first device is to narrow the device range of the second device that needs to be searched, so that the first device can search from the second device connected to the first device by short-range communication to meet the preset requirements.
  • the third device with the azimuth condition and then find the final target device from the third device with a smaller range.
  • the first device when receiving the first azimuth angle fed back by the second device, the first device will acquire the second azimuth angle, and match the second azimuth angle with the first azimuth angle to determine whether there is a The first azimuth angle that matches the second azimuth angle, if there is a matching first azimuth angle, the first device determines the second device corresponding to the matching first azimuth angle as the third azimuth that satisfies the preset azimuth condition. equipment.
  • the second azimuth angle is the visual azimuth angle between the first device and the target device, and the second azimuth angle can be determined by using the first image.
  • the first device obtains the position information of the target device in the first image through the first image, and according to the obtained position information of the target device in the first image Calculate the second azimuth.
  • the first device searches for a third device that satisfies a preset orientation condition from a second device connected to the first device through short-range communication
  • the first device inputs the acquired first image into the deep neural network model
  • the position information of the target device in the first image is input through the deep neural network model, and the visual azimuth between the first device and the target device is calculated according to the position information output by the deep neural network model, that is, the second azimuth. Horn.
  • the first device acquires a third image
  • the third image is a binocular image captured by the first device when capturing the first image
  • the first device acquires depth information of the target device, and calculate the second azimuth angle according to the acquired depth information of the target device.
  • the third image is a binocular image obtained by using any two cameras in the electronic device, that is, the third image includes a left image and a right image, the left image is relative to the image seen by the human left eye, and the right image is equivalent to The image seen by the human right eye. Based on the binocular images, information related to the real-world environment, especially the depth information of the target device, can be extracted.
  • the first device when the first device acquires the third image, the first device performs binocular targeting and correction on the acquired third image, and then performs binocular matching to acquire the depth information of the target device, so that the first device Accurate second azimuth can be obtained.
  • the first device when the first device acquires the third image, the first device also performs binocular targeting and correction on the acquired third image, and then performs binocular matching to acquire the depth information of the target device, so that the The first device can obtain the precise second azimuth angle.
  • the first azimuth angle fed back by the second device to the first device is related to the number of second devices. If there is only one second device, the first azimuth angle fed back is also one. If there are two or more devices, the first azimuth angle that is fed back is also two or more.
  • the target device is any one of the second devices.
  • the first device matches the first azimuth angle with the second azimuth angle to determine whether there is a difference between the first azimuth angle and the second azimuth angle.
  • the matched first azimuth angle is determined, so as to determine whether the second device corresponding to the matched first azimuth angle is determined as the third device that satisfies the preset azimuth condition.
  • the first device when the first device matches the second azimuth with the first azimuth, the first device calculates the similarity between the first azimuth and the second azimuth; if the calculated similarity is less than the first threshold, then it is determined that the first azimuth corresponding to the similarity less than the first threshold matches the second azimuth, and the second device corresponding to the matching first azimuth is determined as the first azimuth that satisfies the preset azimuth condition.
  • the first device calculates the similarity between the first azimuth and the second azimuth; if the calculated similarity is less than the first threshold, then it is determined that the first azimuth corresponding to the similarity less than the first threshold matches the second azimuth, and the second device corresponding to the matching first azimuth is determined as the first azimuth that satisfies the preset azimuth condition.
  • calculating the similarity between the first azimuth and the second azimuth may be calculating the ratio of the absolute value of the difference between the first azimuth and the second azimuth to the second azimuth, if the calculated ratio is less than the first threshold, then it is determined that the calculated ratio is smaller than the first threshold and the first azimuth corresponding to the first azimuth matches the second azimuth, and the second device corresponding to the matched first azimuth is determined as the first azimuth that satisfies the preset azimuth condition.
  • the first device when the first device matches the second azimuth with the first azimuth, the first device calculates the similarity between the first azimuth and the second azimuth; if the calculated If the similarity is within the preset threshold range, it is determined that the first azimuth angle corresponding to the similarity within the preset threshold range matches the second azimuth angle, and the second device corresponding to the matched first azimuth angle is determined as satisfying A third device with preset orientation conditions.
  • calculating the similarity between the first azimuth angle and the second azimuth angle may be calculating the ratio of the first azimuth angle and the second azimuth angle. If the calculated ratio is within the preset threshold range, it is determined that the calculated value is obtained. The first azimuth angle corresponding to the ratio within the preset threshold range matches the second azimuth angle.
  • the first device when the first device matches the second azimuth with the first azimuth, the first device calculates the angle difference between the first azimuth and the second azimuth; if the calculated If the angle difference is smaller than the second threshold, it is determined that the first azimuth angle corresponding to the angle difference smaller than the second threshold matches the second azimuth angle.
  • the angle difference referred to here is the absolute value of the difference obtained by subtracting the first azimuth angle and the second azimuth angle.
  • the first device calculates and obtains the position information according to the determined position information.
  • the third azimuth at the same time, the first device will acquire the third image, and determine the depth information of the target device based on the binocular vision positioning method, and calculate the fourth azimuth according to the determined depth information.
  • the average or mean square value of the angles is used as the second azimuth.
  • the deep neural network model is obtained by training images containing equipment as training samples.
  • the first device determines whether the first image contains the target device and the target file displayed on the screen of the target device, if the first image contains the target device and For the target file displayed on the screen of the target device, the first device sends an orientation query request to the second device. After receiving the orientation query request sent by the first device, the second device feeds back its current position to the first device.
  • the first azimuth angle enables the first device to search for a third device that satisfies the preset azimuth condition from the second device according to the first azimuth angle, effectively narrowing the scope of searching for the target device, and improving the search efficiency and accuracy of the target device.
  • the first device sends a screen information query request to the third device, where the screen information query request is used to instruct the third device to feed back the current screen shot.
  • the first device after finding a third device that satisfies the preset orientation condition, that is, after narrowing the search range of the target device, the first device sends a screen information query request to the third device, so that the third device can search for the third device.
  • the current screenshot is fed back to the first device, so that it is convenient for the first device to determine the final target device through the screenshot fed back by the third device.
  • the third device does not necessarily have a screen, for example, when the third device is a Bluetooth speaker or a Bluetooth headset, it cannot feed back its current screen shot to the first device. Whether the third device of the feedback screenshot is the target device.
  • the first device receives the screenshot fed back by the third device, and matches the first image with the screenshot, and if there is a matching screenshot, then matches the matching screenshot
  • the corresponding third device is determined as the target device.
  • the first device after receiving the screenshot fed back by the third device, the first device matches the first image with the screenshot, and if there is a screenshot matching the first image, it is determined to match the first image
  • the screenshot corresponding to the third device is the target device.
  • the first image obtained by the first device includes the target device and the target file displayed on the screen of the target device, and also includes the surrounding environment of the device.
  • the device can further improve the efficiency and accuracy of image matching, so as to achieve the purpose of improving the efficiency of file transmission.
  • the first device determines the target device from the third device, it also needs to determine the relevant information of the target file displayed on the screen of the target device, which requires the third device to display the information on its screen.
  • the relevant information of the target file is fed back to the first device, so that the first device can generate a corresponding file transfer request, so that the target device can find the target file according to the file transfer request.
  • the screen information query request is further used to instruct the third device to feed back the currently displayed first file information, the first device receives the currently displayed first file information fed back by the target device, and sends the first file information back to the first device.
  • the file information is matched with the file information extracted from the first image, and if the matching is successful, a file transfer request is generated, and the file transfer request includes the successfully matched first file information.
  • the file information involved in the embodiments of the present application includes but is not limited to file type, file name, file path, and file status.
  • the first file information is the related information of the file displayed on the screen of the third device, including but not limited to the related information of the file running in the foreground.
  • the file status in the above includes the operation status and display status of the file.
  • the operation status can specifically be determined according to the position of the cursor pointer whether the current file is in the operation status or the non-operation status
  • the display status can be determined according to the window status of the file. Whether the file is in a display state or a non-display state, for example, when the file's window state is minimized, it can be determined whether the file is currently in a non-display state, and when the file's window state is not minimized, it can be determined that the file is currently in a display state.
  • the first device matches the file information extracted from the first image with the first file information, and judges whether there is a
  • the first file information that matches the file information extracted from the first image for example, the file information with the same file type and file name is determined as the matching file information, if there is file information that matches the file information extracted from the first image.
  • the matched first file information that is, after the matching is successful, a file transfer request is generated, and the generated file transfer request includes the successfully matched first file information, which is used to instruct the target device to send the target file to the first device.
  • the name is the same as the file name in the first file information.
  • the first device generates a file including the successfully matched first file information after the file information extracted from the first image matches the first file information by receiving the first file information fed back by the third device.
  • File transfer request After the first device determines the target device, it sends the file transfer request to the target device, so that the target device can quickly find the file corresponding to the file name from the file path provided by the first file information as the target file. , improving the query efficiency and accuracy of the target file, thereby improving the efficiency and accuracy of file transmission, and making the user experience better.
  • the first device sends a file transfer request to the target device, where the file transfer request is used to instruct the target device to send the target file to the first device.
  • the first device displays the file transfer confirmation information on the screen of the first device, and after receiving the file transfer confirmation request input by the user, sends the file to the target device
  • the transmission request after receiving the file transmission request sent by the first device, the target device sends the target file to the first device.
  • the first device may directly send a file transfer request to the target device without the user's confirmation.
  • the target device when sending the target file to the first device, the target device also sends node information of the target file. After receiving the target file and the node information of the target file, the first device, according to the node information of the target file, The target file of the corresponding node is continuously displayed on the screen of the first device.
  • the first device searches for a third device that satisfies the preset orientation condition from the second device connected to the first device by short-range communication, thereby narrowing the device range for finding the target device, Then, through the screenshots fed back by the third device, the target device is further determined from the third device and the transfer of the target file is completed, so that the user does not need to manually select the target device of the file to be transferred and the target to be transferred. It reduces the user's operation steps, improves the efficiency of transferring files across devices, and has high practicability and ease of use.
  • FIG. 4 another file transmission method provided by an embodiment of the present application is applied to a second device, and the method includes the following steps:
  • the second device receives a screen information query request sent by a first device connected to it by short-range communication, where the screen information query request is used to instruct the second device to feed back a current screen shot.
  • the second device Before the second device receives the screen information query request sent by the first device connected to it by short-range communication, the second device receives the orientation query request sent by the first device, according to the relationship between the second device and the first device.
  • the signal strength of short-range communication determine the first azimuth angle, and feed back the first azimuth angle to the first device, so that the first device can determine whether the second device is a A device that satisfies the preset orientation condition, after determining that the second device is a device that satisfies the preset orientation condition, sends a screen information query request to the second device, wherein the first azimuth is the second device. Azimuth of the distance from the first device.
  • the second device when the second device receives an orientation query request sent by the first device connected to its short-range communication connection, the second device calculates the distance between the two according to the signal strength of the short-range communication connection, and calculates the distance according to the calculated distance.
  • the first azimuth angle is calculated, that is, the first azimuth angle is determined according to the signal strength of the short-range communication between the second device and the first device.
  • the signal strength of the short-range communication connection includes, but is not limited to, a Bluetooth signal, a WIFI signal, and a wireless access point signal.
  • the second device after receiving the azimuth query request sent by the first device, determines the first azimuth angle according to the signal strength of the short-range communication between the second device and the first device, and feeds back the determined azimuth angle to the first device.
  • the first azimuth angle so that the first device can determine the azimuth of the second device according to the first azimuth angle, and search for the second device that satisfies the preset azimuth condition, thereby reducing the scope of finding the target device from the second device, and improving the target
  • the search efficiency and accuracy of the device so as to achieve the purpose of improving the efficiency of file transmission
  • the second device obtains the Bluetooth signal strength or WIFI signal strength of the short-range communication connection between the second device and the first device when receiving the orientation query request sent by the first device, and according to the obtained Bluetooth signal strength or WIFI signal strength
  • the signal strength or WIFI signal strength calculates the distance between the second device and the first device, and calculates the first azimuth angle according to the calculated distance.
  • the second device broadcasts its own Bluetooth signal when detecting the location query request sent by the first device, and establishes a Bluetooth connection with the first device through the Bluetooth signal. After a device establishes a Bluetooth connection, the distance between the two is calculated according to the Bluetooth signal strength, and the first azimuth is calculated according to the calculated distance.
  • the second device broadcasts its own WIFI signal when detecting the location query request sent by the first device, and establishes a WIFI connection with the first device through the WIFI signal, and the second device and the first device After the device establishes the WIFI connection, the distance between the two is calculated according to the WIFI signal strength, and the first azimuth is calculated according to the calculated distance.
  • the second device acquires a current screenshot, and feeds back the current screenshot to the first device.
  • the first device after the second device is connected to the first device by short-range communication, the first device will search for a third device that satisfies the preset orientation condition from the second device, so as to narrow the search range of the target device. After finding the third device that satisfies the preset orientation condition in the second device, the first device sends a screen information query request to the third device that satisfies the preset orientation condition, and the third device receives the screen information query sent by the first device. After the request is made, its current screen shot is obtained and fed back to the first device, so that the first device can determine a target device according to the screen shot, and send a file transfer request to the target device.
  • the third device after receiving the screen information query request sent by the first device, the third device that satisfies the preset orientation condition will simultaneously acquire the first file information, and feed back the first file information to the third device. a device, so that the first device determines whether there is first file information that matches the file information extracted from the first image, so as to generate a corresponding file transfer request, that is, the generated file transfer request contains the matching first file information. A file information, so that the target device can transfer the target file after receiving the file transfer request.
  • the second device After receiving the file transfer request sent by the first device, the second device sends the target file to the first device, where the file transfer request is used to instruct the second device to send the first device to the first device.
  • the device sends the target file.
  • the first device after receiving the screenshot fed back by the second device, the first device matches the first image with the screenshot to determine whether there is a screenshot matching the first image, and if there is a screenshot matching the first image
  • the matching screenshot the first device determines the second device corresponding to the matching screenshot as the target device, and sends a file transfer request to the target device, and the second device as the target device receives the first device.
  • the target file is sent to the first device according to the file transfer request.
  • the file transfer request includes user information of the first device, and the user information includes but is not limited to user account information such as account information of the device logged in by the user, account information of the file server logged in by the user, and the like.
  • the second device when receiving the file transfer request sent by the first device, determines whether the current account information is consistent with the account information of the first device, and if so, the second device sends the file to the first device The target file corresponding to the transmission request; otherwise, the second device generates a file to send a confirmation request and feeds it back to the first device.
  • the file sending confirmation request is used to instruct the first device to determine whether to transmit the target file.
  • the second device before sending the target file to the first device, the second device obtains current node information of the target file and generates file node information, where the node information includes but is not limited to the file page number, cursor position, and file progress bar.
  • the second device sends the file node information and the target file to the first device at the same time, so that when the first device opens the target file, the continuous display of the file can be realized according to the file node information.
  • the second device before sending the target file to the first device, determines whether the target file is a preset file type such as a video file or an audio file, and if the target file is a preset file type, obtains the current and generate the file node information including the file name and the playback position, and send the file node information to the first device, so that the first device continues to play the target file corresponding to the file name from the playback position according to the file node information, For example, the video with the file name of ABC in the target file, the playback progress is 00:30:21, the first device will start the application program that can play this preset file type, and the playback progress starts from 00:30:21 with the name of ABC's video.
  • a preset file type such as a video file or an audio file
  • the first device when the first device does not have an application for playing the preset file type installed, the first device will generate application installation prompt information to prompt the user to install the application corresponding to the preset file type.
  • the first device when the first device continuously plays the target file corresponding to the file name from the playback position according to the file node information, it can use any application program in the first device that can play audio and video files, or it can use the same application as the first device.
  • the same application program that plays the target file in the two devices performs continuous file playback, which is not specifically limited here.
  • the second device after receiving the screen information query request sent by the first device connected to it by short-range communication, the second device obtains the current screen shot and feeds it back to the first device, so that the first device can use the screen shot according to the screen.
  • the screenshot determines the target device from the second device, and after receiving the file transfer request sent by the first device, the target device searches for the target file and sends the target file to the first device. The purpose of the fast transfer of target files between, improves the efficiency of file transfer.
  • an open document file is displayed on the screen of device A.
  • the image of device A captured is displayed on the screen of device B.
  • the image contains device A and the document file displayed on the screen of device A.
  • device B confirms that the captured image contains device A and the document file displayed on the screen of the device it enters the file transfer state, establishes a short-range communication connection with N peripheral devices (including device A) of device B, and based on the The NFC positioning determines the azimuth of the peripherals of device B.
  • device B can reduce the range of peripheral devices to two devices in the left range, and then match the screenshots fed back by the two devices in the left range with the images captured by device B to determine the final transmission.
  • the target device of the file is device A.
  • FIG. 6 it is a schematic structural diagram of a file transmission apparatus provided by an embodiment of the present application.
  • the file transmission apparatus is applied to a first device and includes an image acquisition unit 201 , a device search unit 202 , and a screen information query request sending unit 203 , the device confirmation unit 204, the file transfer request sending unit 205, the details are as follows:
  • an image acquisition unit 201 configured to acquire a first image
  • the device searching unit 202 is configured to, if the first image contains a target device and a target file displayed on the screen of the target device, from the second device connected to the first device by short-range communication, Find the third device that meets the preset orientation condition;
  • a screen information query request sending unit 203 configured to send a screen information query request to the third device, where the screen information query request is used to instruct the third device to feed back the current screen shot;
  • a device confirmation unit 204 configured to receive the screen shot fed back by the third device, and match the first image with the screen shot, and if there is a matching screen shot, then match the matched screen shot The corresponding third device is determined as the target device;
  • the file transfer request sending unit 205 is configured to send a file transfer request to the target device, where the file transfer request is used to instruct the target device to send the target file to the first device.
  • the file transfer apparatus further includes a file transfer request generating unit, configured to receive the first file information fed back by the third device, and compare the file information extracted from the first image with the first file information. The file information is matched, and if there is matching first file information, a file transfer request is generated, and the file transfer request includes the matched first file information.
  • a file transfer request generating unit configured to receive the first file information fed back by the third device, and compare the file information extracted from the first image with the first file information. The file information is matched, and if there is matching first file information, a file transfer request is generated, and the file transfer request includes the matched first file information.
  • the device search unit 202 includes:
  • an orientation query request sending subunit configured to send an orientation query request to the second device if the first image contains a target device and a target file displayed on the screen of the target device, the orientation query The request is used to instruct the second device to feed back a current first azimuth angle, where the first azimuth angle is the distance azimuth angle between the second device and the first device, wherein the first azimuth angle is Determined according to the signal strength of the short-range communication between the second device and the first device;
  • a device search subunit configured to receive a first azimuth angle fed back by the second device, and search for a third device that satisfies a preset azimuth condition from the second device according to the first azimuth angle.
  • the device searches for subunits, and is specifically used for:
  • the first device obtains a second azimuth angle, and matches the second azimuth angle with the first azimuth angle, and if there is a matching first azimuth angle, then matches the matching first azimuth angle
  • the corresponding second device is determined to be a third device that satisfies a preset orientation condition, and the second azimuth is a visual azimuth between the first device and the target device.
  • the device searches for subunits, and is specifically also used for:
  • the first device calculates the similarity between the second azimuth and the first azimuth
  • the first device determines that the first azimuth corresponding to the similarity less than the first threshold matches the second azimuth, and matches the matched first azimuth with the second azimuth.
  • the second device corresponding to an azimuth angle is determined as the third device that satisfies the preset azimuth condition.
  • the device searches for subunits, and is specifically also used for:
  • the second device is determined to be the third device that satisfies the preset orientation condition.
  • the device searching unit 202 further includes:
  • the second azimuth angle calculation subunit is configured to determine the position information of the target device in the first image based on the trained deep neural network model, and calculate the second azimuth angle according to the position information.
  • the second azimuth angle calculation subunit is further used for:
  • the third image is a binocular image captured by the first device when capturing the first image
  • the depth information of the target device is determined based on the binocular vision positioning method, and the second azimuth angle is calculated according to the depth information.
  • FIG. 7 it is a schematic structural diagram of a file transmission apparatus provided by an embodiment of the present application.
  • the file transmission apparatus is applied to a second device, and includes a screen information query request receiving unit 301, a screen capture feedback unit 302, and a target file sending unit.
  • Unit 303 is as follows:
  • a screen information query request receiving unit 301 configured to receive a screen information query request sent by a first device connected to a second device by short-range communication, where the screen information query request is used to instruct the second device to feed back a current screen shot;
  • Screen shot feedback unit 302 used for the second device to obtain a current screen shot, and to feed back the current screen shot to the first device;
  • a target file sending unit 303 configured to send a target file to the first device after the second device receives a file transfer request sent by the first device, where the file transfer request is used to instruct the second device The device sends the target file to the first device.
  • the file transmission device further includes a first azimuth angle feedback unit for:
  • Receive an azimuth query request sent by the first device determine a first azimuth angle according to the signal strength of the short-range communication between the second device and the first device, and feed back the first azimuth to the first device angle, so that the first device can determine whether the second device is a device that satisfies the preset azimuth condition according to the first azimuth angle, and after determining that the second device is a device that meets the preset azimuth
  • the second device sends a screen information query request, wherein the first azimuth is a distance azimuth between the second device and the first device.
  • the first azimuth feedback unit includes:
  • a Bluetooth signal broadcasting subunit configured to broadcast its own Bluetooth signal when detecting the orientation query request sent by the first device
  • the first calculation subunit is configured to establish a Bluetooth connection with the first device through the Bluetooth signal, and calculate the first azimuth angle according to the strength of the Bluetooth signal.
  • the first azimuth feedback unit further includes:
  • the WIFI signal broadcasting subunit is used to broadcast its own WIFI signal when detecting the orientation query request sent by the first device;
  • the second calculation subunit is configured to establish a WIFI connection with the first device through the WIFI signal, and calculate the first azimuth angle according to the strength of the WIFI signal.
  • the target file sending unit 303 includes:
  • a target file sending subunit configured to determine whether the current account information is consistent with the account information of the first device, and if they are consistent, the second device sends the target file to the first device;
  • a file sending confirmation request generating subunit for otherwise, the second device generates a file sending confirmation request and feeds it back to the first device, and the file sending confirmation request is used to instruct the first device to determine whether to transmit the Target file.
  • An embodiment of the present application further provides an electronic device, the electronic device includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, the processor executing The computer program implements the steps in any of the foregoing method embodiments.
  • Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps in the foregoing method embodiments can be implemented.
  • the embodiments of the present application provide a computer program product, when the computer program product runs on a terminal device, so that the terminal device can implement the steps in the foregoing method embodiments when executed.
  • the disclosed apparatus and method may be implemented in other manners.
  • the system embodiments described above are only illustrative.
  • the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be Incorporation may either be integrated into another system, or some features may be omitted, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium.
  • all or part of the processes in the methods of the above embodiments can be implemented by a computer program to instruct the relevant hardware.
  • the computer program can be stored in a computer-readable storage medium, and the computer program When executed by the processor, the steps of the above-mentioned various method embodiments may be implemented.
  • the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form, and the like.
  • the computer-readable storage medium may include at least: any entity or device capable of carrying the computer program code to the terminal device, recording medium, computer memory, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory) Access Memory, RAM), electrical carrier signals, telecommunication signals, and software distribution media.
  • computer-readable storage media may not be electrical carrier signals and telecommunications signals.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

本申请涉及电子技术领域,提供了一种文件传输方法和电子设备,该方法包括:第一设备获取第一图像;若第一图像中包含有目标设备以及在目标设备的屏幕上显示的目标文件,则第一设备从与其近距离通信连接的第二设备中,查找满足预设方位条件的第三设备;第一设备向第三设备发送屏幕信息查询请求,屏幕信息查询请求用于指示第三设备反馈当前的屏幕截图;第一设备接收第三设备反馈的屏幕截图,并将第一图像与屏幕截图进行匹配,若存在相匹配的屏幕截图,则将相匹配的屏幕截图对应的第三设备确定为目标设备;第一设备向目标设备发送文件传输请求,文件传输请求用于指示目标设备向第一设备发送目标文件。通过本申请,可有效提高跨设备文件传输的效率。

Description

一种文件传输方法和电子设备
本申请要求于2020年09月24日提交国家知识产权局、申请号为202011018822.4、申请名称为“一种文件传输方法和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及电子技术领域,尤其涉及一种文件传输方法和电子设备。
背景技术
随着通信技术的发展和人们生活水平的提高,人们通常拥有多个终端设备,比如智能手机、平板电脑等便携式终端设备,这些终端设备为人们提供如文件存储、文件预览等多样的服务,跨设备文件传输已成为人们日常生活中较为常见的操作。
然而,现有的跨设备文件传输中存在一些问题,例如,当用户拥有多个终端设备时,需要用户从包含多个终端设备的列表中选择目标设备以完成文件的传输,操作效率较低。
发明内容
本申请公开了一种文件传输方法、电子设备和计算机可读存储介质。可以有效减少用户的操作,提高跨设备文件传输的效率。
第一方面,本申请实施例提供一种文件传输方法,应用于第一设备中,该方法包括:所述第一设备获取第一图像;若所述第一图像中包含有目标设备以及在所述目标设备的屏幕上显示的目标文件,则所述第一设备从与所述第一设备近距离通信连接的第二设备中,查找满足预设方位条件的第三设备;所述第一设备向所述第三设备发送屏幕信息查询请求,所述屏幕信息查询请求用于指示所述第三设备反馈当前的屏幕截图;所述第一设备接收所述第三设备反馈的屏幕截图,并将所述第一图像与所述屏幕截图进行匹配,若存在相匹配的屏幕截图,则将所述相匹配的屏幕截图对应的第三设备确定为所述目标设备;所述第一设备向所述目标设备发送文件传输请求,所述文件传输请求用于指示所述目标设备向所述第一设备发送所述目标文件。
在本申请实施例中,所述第一设备通过从与所述第一设备近距离通信连接的第二设备中,查找满足预设方位条件的第三设备,缩小了查找目标设备的范围,再通过所述第三设备所反馈的屏幕截图,从所述第三设备中进一步确定目标设备以及完成目标文件的传输,使得用户不需要手动选择所需要传输文件的目标设备即可完成跨设备文件的传输,减少了用户的操作,提高了跨设备文件传输的效率,具有较高的实用性和易用性。
需要说明的是,目标文件包括但不限于文档、音频、视频、音视频、网页等文件,本申请实施例中对目标文件的文件类型不做具体限定。
还需要说明的是,本申请实施例中目标文件处于打开或播放状态,当在目标设备的屏幕上显示的文件为两个或两个以上时,目标文件可以是在目标设备的屏幕上显示的全部文件,也可以是在目标设备的前台运行的文件,或者根据当前光标所在位置定位到的文件,这里不做具体限定。
在第一方面的第一种可能实现方式中,所述屏幕信息查询请求还用于指示所述第三设备反馈当前显示的第一文件信息,所述第一设备在确定所述目标设备之后,还包括:所述第一设备接收所述目标设备反馈当前显示的第一文件信息,并将所述第一文件信息与从所述第一图像中提取到的文件信息进行匹配,若匹配成功,则生成文件传输请求,所述文件传输请求包括所述匹配成功的第一文件信息。
示例性的,文件信息包括但不限于文件类型、文件名称、文件路径。所述第一设备在接收到第三设备 反馈的当前显示的第一文件信息后,将从第一图像中提取到的文件信息与第一文件信息进行匹配,判断是否存在与从第一图像中提取到的文件信息相匹配的第一文件信息,比如将文件类型与文件名称均相同的文件信息确定为相匹配的文件信息,如果存在与从第一图像中提取的文件信息相匹配的第一文件信息,即匹配成功后,生成文件传输请求,所生成的文件传输请求包括所述匹配成功的第一文件信息,用于指示目标设备向第一设备发送目标文件,目标文件的名称与第一文件信息中的文件名称相同。
本申请实施例中,第一设备通过接收第三设备反馈的当前显示的第一文件信息,在从第一图像中提取到的文件信息与第一文件信息匹配后,生成包括匹配成功的第一文件信息的文件传输请求,在第一设备确定目标设备后,向目标设备发送该文件传输请求,以便于目标设备能够快速地从该第一文件信息提供的文件路径中去查找文件名称对应的文件作为目标文件,提高了文件传输的效率。
在第一方面的第二种可能实现方式中,所述若所述第一图像中包含有目标设备以及在所述目标设备的屏幕上显示的目标文件,则所述第一设备从与所述第一设备近距离通信连接的第二设备中,查找满足预设方位条件的第三设备,包括:若所述第一图像中包含有目标设备以及在所述目标设备的屏幕上显示的目标文件,则所述第一设备向所述第二设备发送方位查询请求,所述方位查询请求用于指示所述第二设备反馈当前的第一方位角,所述第一方位角为所述第二设备与所述第一设备之间的距离方位角,其中所述第一方位角是根据所述第二设备与所述第一设备近距离通信的信号强度确定的;所述第一设备接收所述第二设备反馈的第一方位角,并根据所述第一方位角,从所述第二设备中查找满足预设方位条件的第三设备。
本申请实施例中,第一设备在获取第一图像后,判断第一图像中是否包含有目标设备以及在所述目标设备的屏幕上显示的目标文件,如果第一图像中包含有目标设备以及在所述目标设备的屏幕上显示的目标文件,第一设备则向第二设备发送方位查询请求,第二设备在接收到第一设备发送的方位查询请求后,向第一设备反馈其当前的第一方位角,使得第一设备能够根据第一方位角从第二设备中查找满足预设方位条件的第三设备,有效地缩小查找目标设备的范围,提高目标设备的查找效率和准确率。
在第一方面的第三种可能实现方式中,所述第一设备接收所述第二设备反馈的第一方位角,并根据所述第一方位角,从所述第二设备中查找满足预设方位条件的第三设备,包括:所述第一设备获取第二方位角,并将所述第二方位角与所述第一方位角进行匹配,如存在相匹配的第一方位角,则将所述相匹配的第一方位角对应的第二设备确定为满足预设方位条件的第三设备,所述第二方位角为所述第一设备与所述目标设备的视觉方位角。
本申请实施例中,第二方位角为基于第一图像确定的第一设备与目标设备之间的视觉方位角。
示例性的,所述第一设备获取第二方位角中,包括:所述第一设备基于训练后深度神经网络,确定所述目标设备在所述第一图像中的位置信息,并根据所述位置信息计算所述第二方位角。
需要说明的是,所述深度神经网络模型是通过包含设备的图像作为训练样本训练得到的。
示例性的,所述第一设备获取第二方位角中,包括:所述第一设备获取第三图像,所述第三图像为所述第一设备在拍摄所述第一图像时拍摄的双目图像;所述第一设备基于双目视觉定位方法确定所述目标设备的深度信息,并根据所述深度信息计算所述第二方位角。
本申请实施例中,第三图像为使用电子设备中的任意两个摄像头拍摄得到的双目图像,即第三图像包含左图像和右图像,左图像相对人左眼看到的图像,右图像相当于人右眼看到的图像。基于双目图像可以提取到与真实世界环境有关的信息,尤其是目标设备的深度信息。
需要说明的是,在第一设备获取第三图像时,第一设备对获取到的第三图像进行双目标定与矫正,再进行双目匹配以获取目标设备的深度信息,从而使得第一设备能够获取到精确的第二方位角。
在第一方面的第三种可能实现方式中,所述第一设备获取第二方位角,并将所述第二方位角与所述第 一方位角进行匹配,如存在相匹配的第一方位角,则将所述相匹配的第一方位角对应的第二设备确定为满足预设方位条件的第三设备,包括:所述第一设备计算所述第二方位角与所述第一方位角的相似度;若计算得到的相似度小于第一阈值,则所述第一设备确定所述相似度小于第一阈值对应的第一方位角与所述第二方位角相匹配,并将所述相匹配的第一方位角对应的第二设备确定为满足预设方位条件的第三设备。
在第一方面的第三种可能实现方式中,所述第一设备获取第二方位角,并将所述第二方位角与所述第一方位角进行匹配,如存在相匹配的第一方位角,则将所述相匹配的第一方位角对应的第二设备确定为满足预设方位条件的第三设备,包括:所述第一设备计算所述第二方位角与所述第一方位角的角度差;若计算得到的角度差小于第二阈值,则所述第一设备确定所述角度差小于第二阈值对应的第一方位角与所述第二方位角相匹配,并将所述相匹配的第一方位角对应的第二设备确定为满足预设方位条件的第三设备。
第二方面,本申请实施例提供另一种文件传输方法,应用于第二设备中,该方法包括:所述第二设备在接收到与其近距离通信连接的第一设备发送的屏幕信息查询请求后,获取当前的屏幕截图,并将所述当前的屏幕截图反馈给所述第一设备,所述屏幕信息查询请求用于指示所述第二设备反馈当前的屏幕截图;当所述第二设备接收到所述第一设备发送的文件传输请求后,向所述第一设备发送目标文件,所述文件传输请求用于指示所述第二设备向所述第一设备发送所述目标文件。
本申请实施例中,第二设备通过在接收到与其近距离通信连接的第一设备发送的屏幕信息查询请求后,获取当前的屏幕截图并反馈给第一设备,使得第一设备能够根据该屏幕截图从第二设备中确定目标设备,并在接收到第一设备发送的文件传输请求后,目标设备查找目标文件并将目标文件发送给第一设备,实现了在第一设备和第二设备之间的快速传输目标文件的目的,提高了跨设备传输文件的效率。
在第二方面的第一种可能实现方式中,所述第二设备在接收与其近距离通信连接的第一设备发送的屏幕信息查询请求之前,还包括:所述第二设备在接收到所述第一设备发送的方位查询请求后,根据所述第二设备与所述第一设备近距离通信的信号强度,确定第一方位角,并向所述第一设备反馈所述第一方位角,以便于所述第一设备根据所述第一方位角确定所述第二设备是否为满足预设方位条件的设备,在确定所述第二设备为满足预设方位条件的设备后,向所述第二设备发送屏幕信息查询请求,其中所述第一方位角为所述第二设备与所述第一设备之间的距离方位角。
本申请实施例中,第二设备在接收到第一设备发送的方位查询请求后,根据第二设备与第一设备近距离通信的信号强度确定第一方位角,并向第一设备反馈所确定的第一方位角,使得第一设备能够根据第一方位角确定第二设备的方位,查找满足预设方位条件的第二设备,从而缩小从第二设备中查找目标设备的范围,提高了目标设备的查找效率和准确率,从而实现了提高文件传输的效率的目的。
示例性的,第二设备在接收到第一设备发送的方位查询请求后,获取其与第一设备近距离通信连接的信号强度,根据所获取的信号强度计算两者之间的距离,并根据计算得到的距离计算第一方位角。
需要说明的是,近距离通信连接的信号强度包括但不限于蓝牙信号、WIFI信号、无线接入点信号的信号强度。
本申请实施例基于近距离同连接的信号强度实现对第二设备的定位,从而使得第一设备能够从第二设备中确定满足预设方位条件的第三设备,缩小了下一步判断目标设备的设备范围,提高了判断效率。
在第二方面的第二种可能实现方式中,所述第二设备在接收到所述第一设备发送的方位查询请求后,根据所述第二设备与所述第一设备近距离通信的信号强度,确定第一方位角,包括:所述第二设备在接收到所述第一设备发送的方位查询请求后,广播自身的蓝牙信号;所述第二设备通过所述蓝牙信号与所述第一设备建立蓝牙连接,并根据蓝牙信号强度计算所述第一方位角。
在第二方面的第三种可能实现方式中,所述第二设备在接收到所述第一设备发送的方位查询请求后, 根据所述第二设备与所述第一设备近距离通信的信号强度,确定第一方位角,包括:所述第二设备在检测到所述第一设备发送的方位查询请求时,广播自身的WIFI信号;所述第二设备通过所述WIFI信号与所述第一设备建立WIFI连接,并根据WIFI信号强度计算所述第一方位角。
在第二方面的第四种可能实现方式中,所述第二设备接收所述第一设备发送的文件传输请求,并向所述第一设备发送目标文件,包括:所述第二设备确定当前账号信息与所述第一设备的账号信息是否一致,若一致,则所述第二设备则向所述第一设备发送所述目标文件;否则,所述第二设备生成文件发送确认请求并反馈给所述第一设备,所述文件发送确认请求用于指示所述第一设备确定是否传输所述目标文件。
示例性的,第二设备向第一设备发送目标文件之前,还包括:获取目标文件当前的节点信息并生成文件节点信息,该节点信息包括但不限于文件页码、光标位置、文件进度条等。第二设备将文件节点信息和目标文件同时发送给第一设备,使得第一设备在打开目标文件时,能够根据文件节点信息实现文件的接续显示。
示例性的,第二设备向第一设备发送目标文件之前,判断目标文件是否为预设文件类型例如视频文件、音频文件,若目标文件为预设文件类型,则获取该目标文件当前的节点信息并生成包含有文件名称以及播放位置的文件节点信息,并将该文件节点信息发送给第一设备,使得第一设备根据该文件节点信息从播放位置接续播放文件名称对应的目标文件,比如名称为XXX的视频。
本申请实施例中,第二设备通过向第一设备发送文件节点信息,使得第一设备能够根据接收到的文件节点信息实现文件的接续显示,提高了用户的使用体验。
第三方面,本申请提供了一种文件传输装置,应用于第一设备,包括:图像获取单元,用于获取第一图像;设备查找单元,用于若所述第一图像中包含有目标设备以及在所述目标设备的屏幕上显示的目标文件,则从与所述第一设备近距离通信连接的第二设备中,查找满足预设方位条件的第三设备;屏幕信息查询请求发送单元,用于向所述第三设备发送屏幕信息查询请求,所述屏幕信息查询请求用于指示所述第三设备反馈当前的屏幕截图;设备确认单元,用于接收所述第三设备反馈的屏幕截图,并将所述第一图像与所述屏幕截图进行匹配,若存在相匹配的屏幕截图,则将所述相匹配的屏幕截图对应的第三设备确定为所述目标设备;文件传输请求发送单元,用于向所述目标设备发送文件传输请求,所述文件传输请求用于指示所述目标设备向所述第一设备发送所述目标文件。
第四方面,本申请提供了一种文件传输装置,应用于第二设备,包括:屏幕截图反馈单元,用于在接收到与其近距离通信连接的第一设备发送的屏幕信息查询请求后,获取当前的屏幕截图,并将所述当前的屏幕截图反馈给所述第一设备,所述屏幕信息查询请求用于指示所述第二设备反馈当前的屏幕截图;目标文件发送单元,用于当所述第二设备接收到所述第一设备发送的文件传输请求后,向所述第一设备发送目标文件,所述文件传输请求用于指示所述第二设备向所述第一设备发送所述目标文件。
第五方面,本申请提供了一种电子设备,包括:处理器和存储器,所述处理器和所述存储器耦合,所述存储器用于存储计算机程序(也可称为指令或代码),当所述处理器执行所述计算机程序时,使得上述电子设备执行如第一方面或者第一方面任一种可能的实施方式提供的方法。
第六方面,本申请提供了一种电子设备,包括:处理器和存储器,所述处理器和所述存储器耦合,所述存储器用于存储计算机程序(也可称为指令或代码),当所述处理器执行所述计算机程序时,使得上述电子设备执行如第二方面或者第二方面任一种可能的实施方式提供的方法。
第七方面,本申请提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,当所述计算机程序在电子设备上运行时,使得上述电子设备执行如第一方面、第二方面、第一方面任一种可能的实施方式或者第二方面任一种可能的实施方式提供的方法。
第八方面,本申请实施例提供一种芯片,包括处理器,当所述处理器读取并执行存储器中存储的计算机程序时,实现如第一方面、第二方面、第一方面任一种可能的实施方式或者第二方面任一种可能的实施方式提供的方法。
第九方面,本申请实施例提供一种芯片系统,包括存储器和处理器,当上述芯片系统运行时,使得上述电子设备执行如第一方面、第二方面、第一方面任一种可能的实施方式或者第二方面任一种可能的实施方式提供的方法。提供的方法。上述芯片系统可以为单个芯片,或者多个芯片组成的芯片模组。
可以理解地,上述提供的第三方面上述的文件传输装置,第四方面上述的文件传输装置,第五方面上述的电子设备、第六方面上述的电子设备,第七方面上述的计算机存储介质或者第八方面上述的芯片均用于执行第一方面、第一方面任一种可能的实施方式、第二方面或者第二方面任一种可能的实施方式提供的方法。因此,其所能达到的有益效果可参考对应方法中的有益效果,此处不再赘述。
附图说明
下面对本申请实施例用到的附图进行介绍。
图1是本申请实施例提供的电子设备100的硬件结构示意图;
图2是本申请实施例的电子设备100的软件结构示意图;
图3是本申请实施例提供的一种文件传输方法的流程示意图;
图4是本申请实施例提供的另一种文件传输方法的流程示意图;
图5是本申请实施例提供的一种文件传输的场景示意图;
图6是本申请实施例提供的一种文件传输装置的结构示意图;
图7是本申请实施例提供的另一种文件传输装置的结构示意图。
具体实施方式
下面结合本申请实施例中的附图对本申请实施例进行描述。本申请实施例的实施方式部分使用的术语仅用于对本申请的具体实施例进行解释,而非旨在限定本申请。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
本申请实施例中涉及的电子设备可以是手机、平板电脑、桌面型、膝上型、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、手持计算机、上网本、个人数字助理(personal digital assistant,PDA)、可穿戴电子设备、虚拟现实设备等。本申请对电子设备的具体类型不作限定。
请参阅图1,图1是本申请实施例提供的一种电子设备100的结构示意图。
电子设备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等。
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器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)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施 例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用所述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(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转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(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)。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏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)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
在一些实施例中,当显示面板采用OLED、AMOLED、FLED等材料时,所述图1中的显示屏194可以被弯折。这里,所述显示屏194可以被弯折是指显示屏可以在任意部位弯折到任意角度,并可以在该角度保持。例如,显示屏194可以从中部左右对折,也可以从中部上下对折。本申请实施例中,将可以被弯折的显示屏称为可折叠显示屏。其中,该可折叠显示屏可以是一块屏幕,也可以是多块屏幕拼凑在一起组合成的显示屏,在此不作限定。
在一些实施例中,该电子设备100可以通过重力传感器、加速度传感器和陀螺仪中的一个或多个,可以判断该可折叠显示屏处于折叠形态还是处于展开形态,还可以判断该可折叠显示屏处于竖屏显示状态还是处于横屏显示状态。该电子设备100还可以通过重力传感器、加速度触感器和陀螺仪,检测该可折叠显示屏的弯折的夹角,然后,电子设备100可以根据该弯折的夹角,判断出该可折叠显示屏处于折叠形态还是处于展开形态。电子设备100还可与通过重力传感器、加速度传感器和陀螺仪中的一个或多个,判断折叠形态下,该可折叠显示屏的朝向,进而确定出显示系统所输出界面内容的显示区域。例如,当该可折叠显示屏的第一屏幕区域相对于地面朝向上方时,电子设备100可以将显示系统输出的界面内容,显示在第一屏幕区域上。当该可折叠显示屏的第二屏幕区域相对于地面朝向上方时,电子设备100可以将显示系统输出的界面内容,显示在第二屏幕区域上。
在一些实施例中,该电子设备100还可以包括角度传感器(图1中未示出)该角度传感器可以设置在该可折叠显示屏的弯折部位处。电子设备100可以通过设置在该可折叠显示屏的弯折部位的角度传感器(图1中未示出),测量该可折叠显示屏中间弯折部位两端所成夹角,当该夹角大于或等于第一角度时,电子设备100可以通过角度传感器识别出该可折叠显示屏进入展开状态。当该夹角小于或等于第一角度时,电子设备100可以通过角度传感器识别出该可折叠显示屏进入折叠形态。
在其他一些实施例中,电子设备100也可以通过设置在该可折叠显示屏的弯折部位的物理开关,识别出该可折叠显示屏是否处于折叠形态。例如,当电子设备接收到用户对该可折叠显示屏的折叠操作,该设置在该电子设备上的物理开关被触发打开,电子设备100可以确定该可折叠显示屏处于折叠形态。当电子设备100接收到用户对该可折叠显示屏展开操作,该设置在该电子设备上的物理开关被触发关闭,电子设备可以确定该可折叠显示屏处于展开形态。所述示例仅仅用于解释本申请,不应构成限定。
下文以可折叠显示屏为两折叠显示屏为例,当可折叠显示屏处于展开形态时,该可折叠显示屏可全屏显示内容,也可部分区域(例如第一屏幕区域或第二屏幕区域)显示内容,也可两个或两个以上部分区域显示内容。在一种可能的实现方式中,可折叠显示屏全屏显示界面内容时,该界面内容可以占用该可折叠显示屏的部分显示区域,例如显示屏194为异形切割屏(Notch屏)时,异形切割屏的中间部分显示该界面内容,一侧或两侧边缘部分黑屏时,也可以看作该可折叠显示屏全屏显示该界面内容。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通 过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一 些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通 知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本发明实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。
图2是本申请实施例的电子设备100的软件结构框图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。
应用程序层可以包括一系列应用程序包。
如图2所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及 垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
下面结合捕获拍照场景,示例性说明电子设备100软件以及硬件的工作流程。
当触摸传感器180K接收到触摸操作,相应的硬件中断被发给内核层。内核层将触摸操作加工成原始输入事件(包括触摸坐标,触摸操作的时间戳等信息)。原始输入事件被存储在内核层。应用程序框架层从内核层获取原始输入事件,识别该输入事件所对应的控件。以该触摸操作是触摸单击操作,该单击操作所对应的控件为相机应用图标的控件为例,相机应用调用应用框架层的接口,启动相机应用,进而通过调用内核层启动摄像头驱动,通过摄像头193捕获静态图像或视频。
当前,一些设备在多个设备之间分享文件时,用户点击发送文件的设备A的击桌面图标中的隔空投送(Airdrop)功能图标后,在设备A的桌面上显示与设备A通信连接比如蓝牙、WIFI连接的一系列设备的名称列表,用户可以从该名称列表中选择接收文件的设备B,即可完成一对一的文件传输。然而,使用该方法完成跨设备之间的文件传输时,用户需要操作的步骤较多,尤其是当与设备A通信连接的设备较多时,用户就需要从常常的名称列表中找到接收文件的设备B。
比如,在一个具体的应用场景中,用户需要将设备A当前屏幕上显示的文档分享给设备B时,首先需要点击设备A当前屏幕上显示的分享图标,再选择隔空投送功能图标。这时,在设备A的屏幕上将显示与设备A蓝牙连接或WIFI连接的一系列设备的名称列表,用户需要从该名称列表中查找并选择要分享的设备B。在用户选择要分享的设备B后,设备B将接收到设备A传输的文档,并可以选择打开该文档的方式。在用户将设备A的文件分享到设备B的过程中,用户需要进行多次操作才能实现将文件从设备A传输到设备B,效率较低,用户体验较差。尤其是,当设备A周边存在多个设备,该多个设备与设备A通信连接时,用户需要从一长串的名称列表中找到设备B的名称,需要花费更多的时间,大大降低了用户的使用体验。
为了解决上述技术问题,本申请实施例提供如下技术方案,其具体内容可参见下文。
本申请实施例提供的技术方案可以应用于各种通信系统,例如,采用第五代(5th generation,5G)通信技术的新空口(new radio,NR)通信系统,未来演进系统或者多种通信融合系统等等。本申请提供的技术方案可以应用于多种应用场景,例如,机器对机器(machine to machine,M2M)、宏微通信、增强型移动互联网(enhanced mobile broadband,eMBB)、超高可靠超低时延通信(ultra-reliable & low latency communication,uRLLC)以及海量物联网通信(massive machine type communication,mMTC)等场景。这些场景可以包括但不限于:通信设备与通信设备之间的通信场景,网络设备与网络设备之间的通信场景,网络设备与通信设备之间的通信场景等。下文中均是以应用于第一设备和第二设备之间的通信场景中为例进行说明的。
首先,本申请实施例中的第一设备默认为接收设备,即接收其他设备发送文件的设备,第二设备默认为发送设备,也即向其他设备传输自身文件的设备。在第一设备上运行有分布式协同服务,用于进行命令 分发、文件接收、身份鉴权以及提供通信服务等,比如负责处理来自于相机视觉识别模式中的图像识别与处理,与第二设备客户端进行通信,查询第二设备当前活跃任务,接收第二设备传输的文件,并将执行命令分发给各应用程序,其中应用程序用于打开接收到的文件,还可以对接收到的文件进行接续显示;在第二设备上运行有分布式协同客户端,用于进行命令处理、文件传输、身份鉴权以及提供通信服务等,比如负责监测当前的活跃任务,在命令发起后进行文件传输,其身份鉴权以及通信服务,用于建立第一设备与第二设备客户端之间的可信任连接。第一设备与第二设备之间的近距离通信可以通过蓝牙BT/WIFI直接连接,也可以通过无线接入点间接连接。
下面结合说明书附图,对本申请实施例所提供的技术方案进行具体介绍。
如图3所示,为本申请实施例提供的一种文件传输方法,该方法包括以下步骤:
S101、第一设备获取第一图像。
本申请实施例中,第一图像为用户使用第一设备拍摄的图像,在该图像上包含有设备以及在该设备的屏幕上显示的文件。一般来说,当用户使用第一设备拍摄目标设备以及在目标设备的屏幕上显示的目标文件时,第一图像为包含有目标设备以及在目标设备的屏幕上显示的目标文件的图像。
需要说明的是,目标文件包括但不限于文档、音频、视频、音视频、网页等文件,本申请实施例中对目标文件的文件类型不做具体限定。
还需要说明的是,本申请实施例中目标文件处于打开或播放状态,当在目标设备的屏幕上显示的文件为两个或两个以上时,目标文件可以是在目标设备的屏幕上显示的全部文件,也可以是在目标设备的前台运行的文件,例如根据当前光标所在位置定位到的文件,这里不做具体限定。
本申请实施例中,持有第一设备的用户想要在当前设备即第一设备的屏幕上分享目标设备当前屏幕上显示的目标文件,即将目标设备当前屏幕上显示的目标文件分享到第一设备进行显示时,用户可以使用第一设备拍摄目标设备以得到第一图像。
具体的,在一个实际的应用场景中,用户可以点击第一设备中的文件传输图标,第一设备在检测到对这一文件传输图标的点击操作后,将启动相机视觉识别模式,指示用户使用第一设备的摄像头拍摄包含目标设备的图像,即第一图像。
S102、若所述第一图像中包含有目标设备以及在所述目标设备的屏幕上显示的目标文件,则所述第一设备从与所述第一设备近距离通信连接的第二设备中,查找满足预设方位条件的第三设备。
本申请实施例中,在相机视觉识别模式中,第一设备在拍摄第一图像后,将识别第一图像中是否包含有目标设备以及在目标设备的屏幕上显示的目标文件,也即识别第一图像中是否包含有设备以及在该设备的屏幕上显示的文件。
示例性的,第一设备在启动相机视觉识别模式,且第一设备已通过摄像头拍摄第一图像后,第一设备将识别并提取第一图像的图像特征,根据所提取到的图像特征判断第一图像是否包含有目标设备以及在目标设备的屏幕上显示的目标文件,即判断第一图像中是否包含有设备以及在设备的屏幕上显示的文件。
需要说明的是,第二设备为与第一设备近距离通信连接的一个或多个设备;第三设备为第二设备中的任意一个或多个满足预设方位条件的设备;目标设备为第三设备中的任意一个设备。
本申请实施例在确定第一图像包含有目标设备以及在目标设备的屏幕上显示的目标文件时,第一设备则向第二设备发送方位查询请求,该方位查询请求用于指示第二设备反馈当前的第一方位角。其中,第一方位角具体为第二设备与第一设备之间的距离方位角。第一设备在接收到第二设备反馈的第一方位角后,根据第一方位角从第二设备中查找满足预设方位条件的第三设备。
在一些具体的实施例中,第一设备在向第二设备发送方位查询请求时,同时通过自身的无线设备比如 蓝牙模块、WIFI模块、无线接入点AP等扫描预设范围内的设备及第二设备的无线设备广播的无线信号,使得第一设备与第二设备能够通过该无线信号比如蓝牙信号、WIFI信号等建立近距离通信连接。
示例性的,第一设备在发送方位查询请求时,扫描预设范围内第二设备广播的蓝牙信号或WIFI信号,以通过蓝牙信号或WIFI信号与第一设备周边的设备即第二设备建立近距离通信连接。而第二设备则在检测到第一设备发送的方位查询请求时,广播蓝牙信号或WIFI信号,以便于第一设备能够扫描到第二设备广播的蓝牙信号或WIFI信号,使得两者之间建立起近距离通信连接。在第一设备与第二设备建立近距离通信连接后,第一设备根据第二设备反馈的第一方位角,查找满足预设方位条件的第三设备。
在一个具体的应用场景中,第一设备为手机时,在第一设备发送方位查询请求时,手机天线阵列接收第二设备广播的蓝牙信号或WIFI信号,并根据接收到的蓝牙信号或WIFI信号的强度计算第一方位角。
需要说明的是,第一设备的蓝牙模块或WIFI模块可以一直处于工作状态,也可以是在第一设备发送方位查询请求时启动。第二设备的蓝牙模块或WIFI模块可以是一直处于工作状态,也可以是在检测到第一设备发送的方位查询请求时启动,本申请实施例对于蓝牙模块或WIFI模块的启动时机不做具体限定。
本申请实施例中,当目标设备周边存在较多其他设备时,为了提高文件传输的效率,减少用户的操作,可以通过对第二设备的定位比如通过第二设备的第一方位角来定位第二设备与第一设备之间的方位,以缩小所需要查找的第二设备的设备范围,从而使得第一设备能够从与第一设备近距离通信连接的第二设备中,查找到满足预设方位条件的第三设备,再从范围更小的第三设备中查找到最终的目标设备。
在本申请的一些实施例中,第一设备在接收第二设备反馈的第一方位角时,将获取第二方位角,并将该第二方位角与第一方位角进行匹配,确定是否存在与第二方位角相匹配的第一方位角,若存在相匹配的第一方位角,第一设备则将相匹配的第一方位角对应的第二设备确定为满足预设方位条件的第三设备。
需要说明的是,第二方位角为第一设备与目标设备之间的视觉方位角,可以通过第一图像确定第二方位角。
例如,在一个具体的实施例中,基于深度神经网络,第一设备通过第一图像,获取目标设备在第一图像中的位置信息,并根据所获取的目标设备在第一图像中的位置信息计算第二方位角。
具体的,在第一设备从与第一设备近距离通信连接的第二设备中,查找满足预设方位条件的第三设备时,第一设备将获取到的第一图像输入到深度神经网络模型中进行识别与定位,经过深度神经网络模型输入目标设备在第一图像中的位置信息,并根据深度神经网络模型输出的位置信息计算第一设备与目标设备之间的视觉方位角即第二方位角。
又例如,在另一个具体的实施例中,第一设备获取第三图像,第三图像为第一设备在拍摄第一图像时拍摄的双目图像,基于双目视觉定位方法,第一设备获取目标设备的深度信息,并根据所获取的目标设备的深度信息计算第二方位角。
需要说明的是,目前多数电子设备上设有至少两个摄像头,当使用电子设备中的任意两个摄像头拍摄图像时,可以获取到双目图像,基于这一双目图像可以提取到与真实世界环境有关的信息,尤其是目标实物的深度信息,当使用第一设备的任意两个摄像头拍摄图像时,可以在摄像机校准不精确的情况下正常还原观测点的深度,将人为误差降到最低,基于双目视觉定位方法,可以获取到准确的目标设备的深度信息,从而使得根据该深度信息计算得到的第二方位角更为精准。
本申请实施例中,第三图像为使用电子设备中的任意两个摄像头拍摄得到的双目图像,即第三图像包含左图像和右图像,左图像相对人左眼看到的图像,右图像相当于人右眼看到的图像。基于双目图像可以提取到与真实世界环境有关的信息,尤其是目标设备的深度信息。
需要说明的是,在第一设备获取第三图像时,第一设备对获取到的第三图像进行双目标定与矫正,再 进行双目匹配以获取目标设备的深度信息,从而使得第一设备能够获取到精确的第二方位角。
还需要说明的是,在第一设备获取第三图像时,第一设备还对所获取到的第三图像进行双目标定与矫正,再进行双目匹配以获取目标设备的深度信息,从而使得第一设备能够获取到精确的第二方位角。
在本申请实施例中,第二设备向第一设备反馈的第一方位角与第二设备的数量相关,如果第二设备仅有一个,那么所反馈的第一方位角也就是一个,如果第二设备有两个或两个以上,那么所反馈的第一方位角也就是两个或两个以上。目标设备为第二设备中任意一个设备,第一设备在接收到第二设备反馈的第一方位角后,将第一方位角与第二方位角进行匹配,以判断是否存在与第二方位角相匹配的第一方位角,从而确定是否将相匹配的第一方位角对应的第二设备确定为满足预设方位条件的第三设备。
例如,在一个具体的实施例中,第一设备将第二方位角与第一方位角进行匹配时,第一设备计算第一方位角与第二方位角的相似度;若计算得到的相似度小于第一阈值,则确定相似度小于第一阈值对应的第一方位角与第二方位角相匹配,并将相匹配的第一方位角对应的第二设备确定为满足预设方位条件的第三设备。
需要说明的是,计算第一方位角与第二方位角的相似度,可以是计算第一方位角与第二方位角的差的绝对值与第二方位角的比值,若计算得到的比值小于第一阈值,则确定计算得到的比值小于第一阈值对应的第一方位角与第二方位角匹配,并将相匹配的第一方位角对应的第二设备确定为满足预设方位条件的第三设备。
又例如,在另一个具体的实施例中,第一设备将第二方位角与第一方位角进行匹配时,第一设备计算第一方位角与第二方位角的相似度;若计算得到的相似度在预设阈值范围内,则确定相似度在预设阈值范围内对应的第一方位角与第二方位角相匹配,并将相匹配的第一方位角对应的第二设备确定为满足预设方位条件的第三设备。
需要说明的是,计算第一方位角与第二方位角的相似度,可以是计算第一方位角与第二方位角的比值,若计算得到的比值在预设阈值范围内,则确定计算得到的比值在预设阈值范围内对应的第一方位角与第二方位角匹配。
又例如,在另一个具体的实施例中,第一设备将第二方位角与第一方位角进行匹配时,第一设备计算第一方位角与第二方位角的角度差;若计算得到的角度差小于第二阈值,则确定角度差小于第二阈值对应的第一方位角与第二方位角相匹配。这里所指的角度差为第一方位角与第二方位角相减后得到的差的绝对值。
本申请实施例中,为了得到更为准确的第二方位角,第一设备在基于训练后的深度神经网络模型确定目标设备在第一图像中的位置信息后,根据所确定的位置信息计算得到第三方位角;同时第一设备将获取第三图像,并基于双目视觉定位方法确定目标设备的深度信息,根据确定的深度信息计算得到第四方位角,将第三方位角和第四方位角的平均值或均方值作为第二方位角。
需要说明的是,所述深度神经网络模型是通过包含设备的图像作为训练样本训练得到的。
本申请实施例中,第一设备在获取第一图像后,判断第一图像中是否包含有目标设备以及在所述目标设备的屏幕上显示的目标文件,如果第一图像中包含有目标设备以及在所述目标设备的屏幕上显示的目标文件,第一设备则向第二设备发送方位查询请求,第二设备在接收到第一设备发送的方位查询请求后,向第一设备反馈其当前的第一方位角,使得第一设备能够根据第一方位角从第二设备中查找满足预设方位条件的第三设备,有效地缩小查找目标设备的范围,提高目标设备的查找效率和准确率。
S103、所述第一设备向所述第三设备发送屏幕信息查询请求,所述屏幕信息查询请求用于指示所述第三设备反馈当前的屏幕截图。
本申请实施例中,第一设备在查找到满足预设方位条件的第三设备后,也即将目标设备的查找范围缩小后,向第三设备发送屏幕信息查询请求,以便于第三设备将其当前的屏幕截图反馈给第一设备,从而方便第一设备通过第三设备所反馈的屏幕截图,确定最终的目标设备。
需要说明的,由于第三设备并不一定具有屏幕,比如当第三设备为蓝牙音箱、蓝牙耳机时,就无法向第一设备反馈其当前的屏幕截图,这时,第一设备仅需要判断已反馈屏幕截图的第三设备是否为目标设备。
S104、所述第一设备接收所述第三设备反馈的屏幕截图,并将所述第一图像与所述屏幕截图进行匹配,若存在相匹配的屏幕截图,则将所述相匹配的屏幕截图对应的第三设备确定为所述目标设备。
本申请实施例中,第一设备在接收到第三设备反馈的屏幕截图,将第一图像与屏幕截图进行匹配,如果存在与第一图像相匹配的屏幕截图,则确定与第一图像相匹配的屏幕截图对应的第三设备为目标设备。
需要说明的是,第一设备获取到的第一图像,除了包含目标设备以及在目标设备的屏幕上显示的目标文件之外,还包括设备的周边环境,为了提高设备匹配的准确,需要对第一图像进行图像分割,以得到干扰较少的图像,比如分割得到包含较少甚至不包含设备的周边环境的目标图像,再将目标图像与第三设备反馈的屏幕截图进行匹配以确定最终的目标设备,可以进一步提高图像匹配的效率以及准确率,从而实现提高文件传输效率的目的。
还需要说明的是,第一设备在从第三设备中确定目标设备时,还需要确定在目标设备的屏幕上显示的目标文件的相关信息,这就需要第三设备将在其屏幕上显示的目标文件的相关信息反馈给到第一设备,以便于第一设备生成相应的文件传输请求,从而使得目标设备能够根据该文件传输请求查找到目标文件。
具体的,屏幕信息查询请求还用于指示所述第三设备反馈当前显示的第一文件信息,所述第一设备接收所述目标设备反馈当前显示的第一文件信息,并将所述第一文件信息与从所述第一图像中提取到的文件信息进行匹配,若匹配成功,则生成文件传输请求,所述文件传输请求包括所述匹配成功的第一文件信息。
需要说明的是,本申请实施例中涉及到的文件信息包括但不限于文件类型、文件名称、文件路径、文件状态。其中第一文件信息为在第三设备的屏幕上显示的文件的相关信息,包括但不限于前台运行的文件的相关信息。
还需要说明的是,上文中的文件状态包括文件的操作状态和展示状态,操作状态具体可以根据光标指针的位置确定当前文件是处于操作状态还是非操作状态,展示状态可以根据文件的窗口状态确定文件是处于展示状态还是非展示状态,比如文件的窗口状态为最小化时,即可以确定文件当前是处于非展示状态,文件的窗口状态不为最小化时,即可以确定文件当前处于展示状态。
示例性的,所述第一设备在接收到第三设备反馈的当前显示的第一文件信息后,将从第一图像中提取到的文件信息与第一文件信息进行匹配,判断是否存在与从第一图像中提取到的文件信息相匹配的第一文件信息,比如将文件类型与文件名称均相同的文件信息确定为相匹配的文件信息,如果存在与从第一图像中提取的文件信息相匹配的第一文件信息,即匹配成功后,生成文件传输请求,所生成的文件传输请求包括所述匹配成功的第一文件信息,用于指示目标设备向第一设备发送目标文件,目标文件的名称与第一文件信息中的文件名称相同。
本申请实施例中,第一设备通过接收第三设备反馈的第一文件信息,在从第一图像中提取到的文件信息与第一文件信息匹配后,生成包括匹配成功的第一文件信息的文件传输请求,在第一设备确定目标设备后,向目标设备发送该文件传输请求,以便于目标设备能够快速地从该第一文件信息提供的文件路径中去查找文件名称对应的文件作为目标文件,提高了目标文件的查询效率和准确率,从而提高了文件传输的效率和准确率,使得用户体验更好。
S105、所述第一设备向所述目标设备发送文件传输请求,所述文件传输请求用于指示所述目标设备向 所述第一设备发送所述目标文件。
本申请实施例中,第一设备在从第三设备中确定目标设备后,在第一设备的屏幕上显示文件传输确认信息,在接收到用户输入的文件传输确认请求后,向目标设备发送文件传输请求,目标设备在接收到第一设备发送的文件传输请求后,向第一设备发送目标文件。
需要说明的是,为了进一步减少用户的操作,第一设备在从第三设备中确定目标设备后,可以直接向目标设备发送文件传输请求,而不需要用户的确认。
在一些实施例中,目标设备在向第一设备发送目标文件的同时,还发送目标文件的节点信息,第一设备在接收到目标文件以及目标文件的节点信息后,根据目标文件的节点信息,在第一设备的屏幕上接续显示相应节点的目标文件。
本申请实施例中,通过所述第一设备通过从与所述第一设备近距离通信连接的第二设备中,查找满足预设方位条件的第三设备,缩小了查找目标设备的设备范围,再通过所述第三设备所反馈的屏幕截图,从所述第三设备中进一步确定目标设备以及完成目标文件的传输,使得用户不需要手动选择所需要传输文件的目标设备以及所需要传输的目标文件,减少了用户的操作步骤,并提高了跨设备传输文件的效率,具有较高的实用性和易用性。
如图4所示,为本申请实施例提供的另一种文件传输方法,应用于第二设备,该方法包括以下步骤:
S201、第二设备接收与其近距离通信连接的第一设备发送的屏幕信息查询请求,所述屏幕信息查询请求用于指示所述第二设备反馈当前的屏幕截图。
本申请实施例中,第一设备向与其近距离通信连接的第一设备发送屏幕信息查询请求的步骤可以参见上文中的相关描述,这里不再赘述。
在第二设备在接收与其近距离通信连接的第一设备发送的屏幕信息查询请求之前,第二设备接收所述第一设备发送的方位查询请求,根据所述第二设备与所述第一设备近距离通信的信号强度,确定第一方位角,并向所述第一设备反馈所述第一方位角,以便于所述第一设备根据所述第一方位角确定所述第二设备是否为满足预设方位条件的设备,在确定所述第二设备为满足预设方位条件的设备后,向所述第二设备发送屏幕信息查询请求,其中所述第一方位角为所述第二设备与所述第一设备之间的距离方位角。
本申请实施例中,第二设备在接收到与其近距离通信连接的第一设备发送的方位查询请求时,根据近距离通信连接的信号强度计算两者之间的距离,并根据计算得到的距离计算第一方位角,也即第一方位角为根据所述第二设备与所述第一设备近距离通信的信号强度确定的。
需要说明的是,近距离通信连接的信号强度包括但不限于蓝牙信号、WIFI信号、无线接入点信号。
本申请实施例中,第二设备在接收到第一设备发送的方位查询请求后,根据第二设备与第一设备近距离通信的信号强度确定第一方位角,并向第一设备反馈所确定的第一方位角,使得第一设备能够根据第一方位角确定第二设备的方位,查找满足预设方位条件的第二设备,从而缩小从第二设备中查找目标设备的范围,提高了目标设备的查找效率和准确率,从而实现了提高文件传输的效率的目的
在一些具体的实施例中,第二设备在接收到第一设备发送的方位查询请求时,获取第二设备与第一设备近距离通信连接的蓝牙信号强度或WIFI信号强度,根据所获取的蓝牙信号强度或WIFI信号强度计算第二设备与第一设备之间的距离,并根据计算得到的距离计算第一方位角。
在另一些具体的实施例中,第二设备在检测到第一设备发送的方位查询请求时,广播自身的蓝牙信号,并通过该蓝牙信号与第一设备建立蓝牙连接,在第二设备与第一设备建立蓝牙连接后,根据蓝牙信号强度计算两者之间的距离,并根据计算得到的距离计算第一方位角。
在另一些具体实施例中,第二设备在检测到第一设备发送的方位查询请求时,广播自身的WIFI信号, 并通过该WIFI信号与第一设备建立WIFI连接,在第二设备与第一设备建立WIFI连接后,根据WIFI信号强度计算两者之间的距离,并根据计算得到的距离计算第一方位角。
S202、所述第二设备获取当前的屏幕截图,并将所述当前的屏幕截图反馈给所述第一设备。
本申请实施例中,在第二设备与第一设备近距离通信连接后,第一设备将从第二设备中查找满足预设方位条件的第三设备,以缩小目标设备的查找范围,在从第二设备中查找到满足预设方位条件的第三设备后,第一设备向满足预设方位条件的第三设备发送屏幕信息查询请求,第三设备在接收到第一设备发送的屏幕信息查询请求后,获取其当前的屏幕截图并反馈给第一设备,以便于第一设备根据所述屏幕截图确定目标设备,并向所述目标设备发送文件传输请求。
在一些具体的实施例中,满足预设方位条件的第三设备在接收到第一设备发送的屏幕信息查询请求后,将同时获取第一文件信息,并将所述第一文件信息反馈给第一设备,以便第一设备判断是否存在与从第一图像中提取的文件信息相匹配的第一文件信息,从而生成相应的文件传输请求,即所生成的文件传输请求中包含有相匹配的第一文件信息,从而使得目标设备在接收到该文件传输请求后,能够传输目标文件。
S203、当所述第二设备接收到所述第一设备发送的文件传输请求后,向所述第一设备发送目标文件,所述文件传输请求用于指示所述第二设备向所述第一设备发送所述目标文件。
本申请实施例中,第一设备在接收第二设备反馈的屏幕截图后,将第一图像与该屏幕截图进行匹配,判断是否存在与第一图像相匹配的屏幕截图,如果存在与第一图像相匹配的屏幕截图,第一设备将相匹配的屏幕截图对应的第二设备确定为目标设备,并向该目标设备发送文件传输请求,而作为目标设备的第二设备在接收到第一设备发送的文件传输请求后,根据该文件传输请求向第一设备发送目标文件。
示例性的,文件传输请求中包含有第一设备的用户信息,该用户信息包括但不限用户的账号信息比如用户登录的设备的账号信息,用户登录的文件服务器的账号信息等。
在一些实施例中,第二设备在接收到第一设备发送的文件传输请求时,判断当前的账号信息与第一设备的账号信息是否一致,若一致,第二设备则向第一设备发送文件传输请求对应的目标文件;否则,第二设备生成文件发送确认请求并反馈给第一设备。该文件发送确认请求用于指示第一设备确定是否传输目标文件。
在另一些实施例中,第二设备向第一设备发送目标文件之前,获取目标文件当前的节点信息并生成文件节点信息,该节点信息包括但不限于文件页码、光标位置、文件进度条等。第二设备将文件节点信息和目标文件同时发送给第一设备,使得第一设备在打开目标文件时,能够根据文件节点信息实现文件的接续显示。
在另一些实施例中,第二设备向第一设备发送目标文件之前,判断目标文件是否为预设文件类型例如视频文件、音频文件,若目标文件为预设文件类型,则获取该目标文件当前的节点信息并生成包含有文件名称以及播放位置的文件节点信息,并将该文件节点信息发送给第一设备,使得第一设备根据该文件节点信息从播放位置接续播放文件名称对应的目标文件,比如目标文件中的文件名称为ABC的视频,播放进度为00:30:21,第一设备将启动可以播放这一预设文件类型的应用程序,从播放进度00:30:21开始播放名称为ABC的视频。
需要说明的是,当第一设备中没有安装有播放预设文件类型的应用程序,第一设备将生成应用程序安装提示信息,以提示用户安装预设文件类型对应的应用程序。
还需要说明的是,第一设备在根据文件节点信息从播放位置接续播放文件名称对应的目标文件时,可以使用第一设备中的任一可以播放音视频文件的应用程序,也可以使用与第二设备中播放目标文件的同样的应用程序进行文件接续播放,这里不做具体限定。
本申请实施例中,第二设备通过在接收到与其近距离通信连接的第一设备发送的屏幕信息查询请求后,获取当前的屏幕截图并反馈给第一设备,使得第一设备能够根据该屏幕截图从第二设备中确定目标设备,并在接收到第一设备发送的文件传输请求后,目标设备查找目标文件并将目标文件发送给第一设备,实现了在第一设备和第二设备之间的快速传输目标文件的目的,提高了文件传输的效率。
下面结合图5进行举例说明,如图5所示,设备A的屏幕上显示有打开的文档文件,当用户使用设备B拍摄设备A时,在设备B的屏幕上显示拍摄的设备A的图像,该图像上包含有设备A以及在设备A的屏幕上显示的文档文件。设备B在确认拍摄的图像中包含有设备A以及在设备的屏幕上显示的文档文件时,进入文件传输状态,与设备B的N个周边设备(包括设备A)建立近距离通信连接,并基于近距离通信定位确定设备B的周边设备的方位角。设备B根据确定的方位角可以将周边设备的范围缩小到左侧范围内的两个设备,再根据左侧范围内的两个设备反馈回来的屏幕截图与设备B拍摄的图像进行匹配确定最终传输文件的目标设备即设备A。
如图6所示,为本申请实施例提供的一种文件传输装置的结构示意图,该文件传输装置应用于第一设备,包括图像获取单元201,设备查找单元202,屏幕信息查询请求发送单元203,设备确认单元204,文件传输请求发送单元205,具体如下:
图像获取单元201,用于获取第一图像;
设备查找单元202,用于若所述第一图像中包含有目标设备以及在所述目标设备的屏幕上显示的目标文件,则从与所述第一设备近距离通信连接的第二设备中,查找满足预设方位条件的第三设备;
屏幕信息查询请求发送单元203,用于向所述第三设备发送屏幕信息查询请求,所述屏幕信息查询请求用于指示所述第三设备反馈当前的屏幕截图;
设备确认单元204,用于接收所述第三设备反馈的屏幕截图,并将所述第一图像与所述屏幕截图进行匹配,若存在相匹配的屏幕截图,则将所述相匹配的屏幕截图对应的第三设备确定为所述目标设备;
文件传输请求发送单元205,用于向所述目标设备发送文件传输请求,所述文件传输请求用于指示所述目标设备向所述第一设备发送所述目标文件。
示例性的,该文件传输装置还包括文件传输请求生成单元,用于接收所述第三设备反馈的第一文件信息,并将从所述第一图像中提取到的文件信息与所述第一文件信息进行匹配,若存在相匹配的第一文件信息,则生成文件传输请求,所述文件传输请求包括所述相匹配的第一文件信息。
其中,所述设备查找单元202,包括:
方位查询请求发送子单元,用于若所述第一图像中包含有目标设备以及在所述目标设备的屏幕上显示的目标文件,则向所述第二设备发送方位查询请求,所述方位查询请求用于指示所述第二设备反馈当前的第一方位角,所述第一方位角为所述第二设备与所述第一设备之间的距离方位角,其中所述第一方位角是根据所述第二设备与所述第一设备近距离通信的信号强度确定的;
设备查找子单元,用于接收所述第二设备反馈的第一方位角,并根据所述第一方位角,从所述第二设备中查找满足预设方位条件的第三设备。
所述设备查找子单元,具体用于:
所述第一设备获取第二方位角,并将所述第二方位角与所述第一方位角进行匹配,如存在相匹配的第一方位角,则将所述相匹配的第一方位角对应的第二设备确定为满足预设方位条件的第三设备,所述第二方位角为所述第一设备与所述目标设备的视觉方位角。
所述设备查找子单元,具体还用于:
所述第一设备计算所述第二方位角与所述第一方位角的相似度;
若计算得到的相似度小于第一阈值,则所述第一设备确定所述相似度小于第一阈值对应的第一方位角与所述第二方位角相匹配,并将所述相匹配的第一方位角对应的第二设备确定为满足预设方位条件的第三设备。
所述设备查找子单元,具体还用于:
计算所述第二方位角与所述第一方位角的角度差;
若计算得到的角度差小于第二阈值,则确定所述角度差小于第二阈值对应的第一方位角与所述第二方位角相匹配,并将所述相匹配的第一方位角对应的第二设备确定为满足预设方位条件的第三设备。
所述设备查找单元202,还包括:
第二方位角计算子单元,用于基于训练后的深度神经网络模型确定所述目标设备在所述第一图像中的位置信息,并根据所述位置信息计算所述第二方位角。
所述第二方位角计算子单元,具体还用于:
获取第三图像,所述第三图像为所述第一设备在拍摄所述第一图像时拍摄的双目图像;
基于双目视觉定位方法确定所述目标设备的深度信息,并根据所述深度信息计算所述第二方位角。
如图7所示,为本申请实施例提供的一种文件传输装置的结构示意图,该文件传输装置应用于第二设备,包括屏幕信息查询请求接收单元301,屏幕截图反馈单元302,目标文件发送单元303,具体如下:
屏幕信息查询请求接收单元301,用于接收与第二设备近距离通信连接的第一设备发送的屏幕信息查询请求,所述屏幕信息查询请求用于指示所述第二设备反馈当前的屏幕截图;
屏幕截图反馈单元302,用于所述第二设备获取当前的屏幕截图,并将所述当前的屏幕截图反馈给所述第一设备;
目标文件发送单元303,用于当所述第二设备接收到所述第一设备发送的文件传输请求后,向所述第一设备发送目标文件,所述文件传输请求用于指示所述第二设备向所述第一设备发送所述目标文件。
该文件传输装置还包括第一方位角反馈单元,用于:
接收所述第一设备发送的方位查询请求,根据所述第二设备与所述第一设备近距离通信的信号强度,确定第一方位角,并向所述第一设备反馈所述第一方位角,以便于所述第一设备根据所述第一方位角确定所述第二设备是否为满足预设方位条件的设备,在确定所述第二设备为满足预设方位条件的设备后,向所述第二设备发送屏幕信息查询请求,其中所述第一方位角为所述第二设备与所述第一设备之间的距离方位角。
其中,所述第一方位角反馈单元,包括:
蓝牙信号广播子单元,用于在检测到所述第一设备发送的方位查询请求时,广播自身的蓝牙信号;
第一计算子单元,用于通过所述蓝牙信号与所述第一设备建立蓝牙连接,并根据蓝牙信号强度计算所述第一方位角。
所述第一方位角反馈单元,还包括:
WIFI信号广播子单元,用于在检测到所述第一设备发送的方位查询请求时,广播自身的WIFI信号;
第二计算子单元,用于通过所述WIFI信号与所述第一设备建立WIFI连接,并根据WIFI信号强度计算所述第一方位角。
所述目标文件发送单元303,包括:
目标文件发送子单元,用于确定当前账号信息与所述第一设备的账号信息是否一致,若一致,则所述第二设备则向所述第一设备发送所述目标文件;
文件发送确认请求生成子单元,用于否则,所述第二设备生成文件发送确认请求并反馈给所述第一设 备,所述文件发送确认请求用于指示所述第一设备确定是否传输所述目标文件。
本申请一实施例还提供一种电子设备,该电子设备包括:至少一个处理器、存储器以及存储在所述存储器中并可在所述至少一个处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述任意各个方法实施例中的步骤。
本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现可实现上述各个方法实施例中的步骤。
本申请实施例提供了一种计算机程序产品,当计算机程序产品在终端设备上运行时,使得终端设备执行时实现可实现上述各个方法实施例中的步骤。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的系统实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读存储介质至少可以包括:能够将计算机程序代码携带到终端设备的任何实体或装置、记录介质、计算机存储器、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读存储介质不可以是电载波信号和电信信号。
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。

Claims (13)

  1. 一种文件传输方法,应用于第一设备,其特征在于,所述文件传输方法包括:
    所述第一设备获取第一图像;
    若所述第一图像中包含有目标设备以及在所述目标设备的屏幕上显示的目标文件,则所述第一设备从与所述第一设备近距离通信连接的第二设备中,查找满足预设方位条件的第三设备;
    所述第一设备向所述第三设备发送屏幕信息查询请求,所述屏幕信息查询请求用于指示所述第三设备反馈当前的屏幕截图;
    所述第一设备接收所述第三设备反馈的屏幕截图,并将所述第一图像与所述屏幕截图进行匹配,若存在相匹配的屏幕截图,则将所述相匹配的屏幕截图对应的第三设备确定为所述目标设备;
    所述第一设备向所述目标设备发送文件传输请求,所述文件传输请求用于指示所述目标设备向所述第一设备发送所述目标文件。
  2. 如权利要求1所述的文件传输方法,其特征在于,所述屏幕信息查询请求还用于指示所述第三设备反馈当前显示的第一文件信息;所述第一设备在确定所述目标设备之后,还包括:
    所述第一设备接收所述目标设备反馈当前显示的第一文件信息,并将所述第一文件信息与从所述第一图像中提取到的文件信息进行匹配,若匹配成功,则生成文件传输请求,所述文件传输请求包括所述匹配成功的第一文件信息。
  3. 如权利要求1或2所述的文件传输方法,其特征在于,所述若所述第一图像中包含有目标设备以及在所述目标设备的屏幕上显示的目标文件,则所述第一设备从与所述第一设备近距离通信连接的第二设备中,查找满足预设方位条件的第三设备,包括:
    若所述第一图像中包含有目标设备以及在所述目标设备的屏幕上显示的目标文件,则所述第一设备向所述第二设备发送方位查询请求,所述方位查询请求用于指示所述第二设备反馈当前的第一方位角,所述第一方位角为所述第二设备与所述第一设备之间的距离方位角,其中所述第一方位角是根据所述第二设备与所述第一设备近距离通信的信号强度确定的;
    所述第一设备接收所述第二设备反馈的第一方位角,并根据所述第一方位角,从所述第二设备中查找满足预设方位条件的第三设备。
  4. 如权利要求3所述的文件传输方法,其特征在于,所述第一设备接收所述第二设备反馈的第一方位角,并根据所述第一方位角,从所述第二设备中查找满足预设方位条件的第三设备,包括:
    所述第一设备获取第二方位角,并将所述第二方位角与所述第一方位角进行匹配,如存在相匹配的第一方位角,则将所述相匹配的第一方位角对应的第二设备确定为满足预设方位条件的第三设备,所述第二方位角为所述第一设备与所述目标设备的视觉方位角。
  5. 如权利要求4所述的文件传输方法,其特征在于,所述第一设备获取第二方位角,并将所述第二方位角与所述第一方位角进行匹配,如存在相匹配的第一方位角,则将所述相匹配的第一方位角对应的第二设备确定为满足预设方位条件的第三设备,包括:
    所述第一设备计算所述第二方位角与所述第一方位角的相似度;
    若计算得到的相似度小于第一阈值,则所述第一设备确定所述相似度小于第一阈值对应的第一方位角与所述第二方位角相匹配,并将所述相匹配的第一方位角对应的第二设备确定为满足预设方位条件的第三设备。
  6. 如权利要求4所述的文件传输方法,其特征在于,所述第一设备获取第二方位角,并将所述第二方位角与所述第一方位角进行匹配,如存在相匹配的第一方位角,则将所述相匹配的第一方位角对应的第二 设备确定为满足预设方位条件的第三设备,包括:
    所述第一设备计算所述第二方位角与所述第一方位角的角度差;
    若计算得到的角度差小于第二阈值,则所述第一设备确定所述角度差小于第二阈值对应的第一方位角与所述第二方位角相匹配,并将所述相匹配的第一方位角对应的第二设备确定为满足预设方位条件的第三设备。
  7. 如权利要求4所述的文件传输方法,其特征在于,所述第一设备获取第二方位角,包括:
    所述第一设备基于训练后的深度神经网络模型确定所述目标设备在所述第一图像中的位置信息,并根据所述位置信息计算所述第二方位角。
  8. 如权利要求4所述的文件传输方法,其特征在于,所述第一设备获取第二方位角,包括:
    所述第一设备获取第三图像,所述第三图像为所述第一设备在拍摄所述第一图像时拍摄的双目图像;
    所述第一设备基于双目视觉定位方法确定所述目标设备的深度信息,并根据所述深度信息计算所述第二方位角。
  9. 一种文件传输方法,应用于第二设备,其特征在于,所述文件传输方法包括:
    所述第二设备接收与其近距离通信连接的第一设备发送的屏幕信息查询请求,所述屏幕信息查询请求用于指示所述第二设备反馈当前的屏幕截图;
    所述第二设备获取当前的屏幕截图,并将所述当前的屏幕截图反馈给所述第一设备;
    当所述第二设备接收到所述第一设备发送的文件传输请求后,向所述第一设备发送目标文件,所述文件传输请求用于指示所述第二设备向所述第一设备发送所述目标文件。
  10. 如权利要求9所述的文件传输方法,其特征在于,在所述第二设备接收与其近距离通信连接的第一设备发送的屏幕信息查询请求之前,还包括:
    所述第二设备接收所述第一设备发送的方位查询请求,根据所述第二设备与所述第一设备近距离通信的信号强度,确定第一方位角,并向所述第一设备反馈所述第一方位角,以便于所述第一设备根据所述第一方位角确定所述第二设备是否为满足预设方位条件的设备,在确定所述第二设备为满足预设方位条件的设备后,向所述第二设备发送屏幕信息查询请求,其中所述第一方位角为所述第二设备与所述第一设备之间的距离方位角。
  11. 一种电子设备,其特征在于,包括:处理器和存储器,所述处理器和所述存储器耦合,所述存储器用于存储计算机程序,当所述处理器执行所述计算机程序时,使得电子设备执行如权利要求1至8中任一项所述的文件传输方法。
  12. 一种电子设备,其特征在于,包括:处理器和存储器,所述处理器和所述存储器耦合,所述存储器用于存储计算机程序,当所述处理器执行所述计算机程序时,使得电子设备执行如权利要求9或10所述的文件传输方法。
  13. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,当所述计算机程序在电子设备上运行时,使得电子设备执行如权利要求1至8和/或9至10任一项所述的文件传输方法。
PCT/CN2021/117200 2020-09-24 2021-09-08 一种文件传输方法和电子设备 WO2022062902A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011018822.4 2020-09-24
CN202011018822.4A CN114338642B (zh) 2020-09-24 2020-09-24 一种文件传输方法和电子设备

Publications (1)

Publication Number Publication Date
WO2022062902A1 true WO2022062902A1 (zh) 2022-03-31

Family

ID=80844902

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/117200 WO2022062902A1 (zh) 2020-09-24 2021-09-08 一种文件传输方法和电子设备

Country Status (2)

Country Link
CN (1) CN114338642B (zh)
WO (1) WO2022062902A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115562570A (zh) * 2022-04-27 2023-01-03 荣耀终端有限公司 数据迁移方法、系统及电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685707A (zh) * 2012-09-21 2014-03-26 中国移动通信集团公司 一种文件传输方法、系统和设备
JP2015167318A (ja) * 2014-03-04 2015-09-24 アルパイン株式会社 通信システムおよび電子装置、ペアリング方法、ペアリングプログラム
CN105491088A (zh) * 2014-09-17 2016-04-13 中兴通讯股份有限公司 一种文件传输方法及装置
CN105578229A (zh) * 2015-12-15 2016-05-11 小米科技有限责任公司 电子设备控制方法和装置
CN111432331A (zh) * 2020-03-30 2020-07-17 华为技术有限公司 一种无线连接方法、装置和终端设备

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103259827A (zh) * 2012-02-21 2013-08-21 海尔集团公司 应用于多屏共享的近距离方位定位、文件传输方法及系统
US9886461B1 (en) * 2014-07-11 2018-02-06 Google Llc Indexing mobile onscreen content
CN106817677A (zh) * 2017-01-19 2017-06-09 北京邮电大学 一种基于多传感器的室内目标信息识别方法、装置及系统
CN110536479A (zh) * 2019-08-28 2019-12-03 维沃移动通信有限公司 对象传输方法和电子设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685707A (zh) * 2012-09-21 2014-03-26 中国移动通信集团公司 一种文件传输方法、系统和设备
JP2015167318A (ja) * 2014-03-04 2015-09-24 アルパイン株式会社 通信システムおよび電子装置、ペアリング方法、ペアリングプログラム
CN105491088A (zh) * 2014-09-17 2016-04-13 中兴通讯股份有限公司 一种文件传输方法及装置
CN105578229A (zh) * 2015-12-15 2016-05-11 小米科技有限责任公司 电子设备控制方法和装置
CN111432331A (zh) * 2020-03-30 2020-07-17 华为技术有限公司 一种无线连接方法、装置和终端设备

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115562570A (zh) * 2022-04-27 2023-01-03 荣耀终端有限公司 数据迁移方法、系统及电子设备
CN115562570B (zh) * 2022-04-27 2023-09-12 荣耀终端有限公司 数据迁移方法、系统及电子设备

Also Published As

Publication number Publication date
CN114338642B (zh) 2023-04-07
CN114338642A (zh) 2022-04-12

Similar Documents

Publication Publication Date Title
WO2020259452A1 (zh) 一种移动终端的全屏显示方法及设备
CN113645351B (zh) 应用界面交互方法、电子设备和计算机可读存储介质
WO2020000448A1 (zh) 一种柔性屏幕的显示方法及终端
WO2021000807A1 (zh) 一种应用程序中等待场景的处理方法和装置
WO2020134869A1 (zh) 电子设备的操作方法和电子设备
WO2021036770A1 (zh) 一种分屏处理方法及终端设备
WO2022127787A1 (zh) 一种图像显示的方法及电子设备
CN116360725B (zh) 显示交互系统、显示方法及设备
WO2021159746A1 (zh) 文件共享方法、系统及相关设备
WO2022033320A1 (zh) 蓝牙通信方法、终端设备及计算机可读存储介质
WO2021218429A1 (zh) 应用窗口的管理方法、终端设备及计算机可读存储介质
WO2022001258A1 (zh) 多屏显示方法、装置、终端设备及存储介质
CN112130788A (zh) 一种内容分享方法及其装置
WO2022143180A1 (zh) 协同显示方法、终端设备及计算机可读存储介质
WO2022022466A1 (zh) 一种确定文件存储位置的方法、装置及终端
EP4293997A1 (en) Display method, electronic device, and system
WO2022170856A1 (zh) 建立连接的方法与电子设备
WO2022206763A1 (zh) 一种显示方法、电子设备和系统
WO2022062902A1 (zh) 一种文件传输方法和电子设备
CN115022982B (zh) 多屏协同无感接入方法、电子设备及存储介质
WO2022152174A1 (zh) 一种投屏的方法和电子设备
WO2022095820A1 (zh) 一种文本输入的方法、电子设备和系统
WO2021254294A1 (zh) 一种切换音频输出通道的方法、装置和电子设备
WO2021129453A1 (zh) 一种截屏方法及相关设备
WO2020233581A1 (zh) 一种测量高度的方法和电子设备

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21871274

Country of ref document: EP

Kind code of ref document: A1