WO2022253042A1 - 文件传输方法及装置 - Google Patents

文件传输方法及装置 Download PDF

Info

Publication number
WO2022253042A1
WO2022253042A1 PCT/CN2022/094611 CN2022094611W WO2022253042A1 WO 2022253042 A1 WO2022253042 A1 WO 2022253042A1 CN 2022094611 W CN2022094611 W CN 2022094611W WO 2022253042 A1 WO2022253042 A1 WO 2022253042A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
lifi
target file
optical signal
input
Prior art date
Application number
PCT/CN2022/094611
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 WO2022253042A1 publication Critical patent/WO2022253042A1/zh

Links

Images

Classifications

    • 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
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/11Arrangements specific to free-space transmission, i.e. transmission through air or vacuum
    • H04B10/114Indoor or close-range type systems
    • H04B10/116Visible light communication
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present application belongs to the technical field of communications, and in particular relates to a file transmission method and device.
  • the purpose of the embodiments of the present application is to provide a file transfer method and device, which can solve the problem that the existing file transfer method is limited by network signals and the file transfer effect is poor.
  • the embodiment of the present application provides a file transfer method, which is applied to the first electronic device, and the method includes:
  • the target file is transferred to the second electronic device based on the LiFi connection.
  • the embodiment of the present application provides a file transmission device, the device includes:
  • a sending module configured to send a first optical signal in response to the input of the selected target file
  • a connection establishment module configured to establish a LiFi connection with the second electronic device in response to a second optical signal sent by the second electronic device, the second optical signal being generated by the second electronic device in response to the first optical signal;
  • the transmission module is used for transmitting the target file to the second electronic device based on the LiFi connection.
  • the embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor.
  • the program or instruction is executed by the processor, the The steps of the method of the first aspect.
  • the embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method in the first aspect are implemented.
  • the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the method in the first aspect.
  • the first electronic device may send a first optical signal in response to the selected target file, and may establish and the LiFi connection between the second electronic device, and transfer the target file to the second electronic device based on the LiFi connection.
  • the file is transferred through the LiFi connection, and the file transfer process is not limited by the network signal, which effectively improves the reliability of the file transfer process.
  • FIG. 1 is a schematic flow diagram of a file transfer method provided in an embodiment of the present application
  • FIG. 2 is a schematic flowchart of a specific application example of the file transfer method provided by the embodiment of the present application;
  • FIG. 3 is a schematic structural diagram of a file transmission device provided in an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the file transfer method provided in the embodiment of the present application can be applied to the first electronic device, and the first electronic device can perform visible light wireless communication (Light Fidelity, LiFi).
  • visible light wireless communication Light Fidelity, LiFi
  • Visible light wireless communication can also be called LiFi technology. Based on LiFi technology, visible light spectrum can be used for wireless data transmission.
  • the file transfer method provided by the embodiment of the present application includes:
  • Step 101 sending a first optical signal in response to the input of the selected target file
  • Step 102 establishing a LiFi connection with the second electronic device in response to a second optical signal sent by the second electronic device, where the second optical signal is generated by the second electronic device in response to the first optical signal;
  • Step 103 transmitting the target file to the second electronic device based on the LiFi connection.
  • the target file may be a type of file such as a video, a picture, or a document, which is not specifically limited here.
  • a file selection interface when a file selection interface is displayed on the first electronic device, the user may select a file to be transferred in the file selection interface.
  • a gallery interface may be displayed on the first electronic device, and the user may select a picture thumbnail in the gallery interface.
  • information of multiple documents may be displayed on the document management interface in the first electronic device, and the user may select a document in the document management interface.
  • the above gallery interface displaying thumbnails, or the document management interface displaying document information can be considered as file selection interfaces.
  • the picture or document selected by the user can be considered as the above-mentioned target file.
  • the first electronic device may send a first light signal in response to the selection input.
  • the first electronic device may send a first light signal in response to an input of selecting a target file.
  • the first electronic device may be a type of device such as a mobile terminal, a personal computer, or a wearable device.
  • the first electronic device may respond to the selection input.
  • Light-emitting units such as a display screen, a light-emitting diode (Light Emitting Diode, LED) breathing light, or an LED supplementary light are turned on and off according to a preset frequency, so as to realize the transmission of the first light signal.
  • the first light signal may be a blinking light signal.
  • the second optical signal hereinafter and the optical signal used to transmit the target file may both be blinking optical signals.
  • the first electronic device may include a first display screen, and the first display screen may be an LED display screen.
  • the sending of the first light signal can be realized by controlling all or part of the LED modules in the LED display screen to turn on and off according to a preset frequency.
  • the first display screen may also be an organic light-emitting diode (Organic Light-Emitting Diode, OLED) display screen or other types of display screens.
  • OLED Organic Light-Emitting Diode
  • the location is not specifically limited, as long as the transmission of optical signals can be realized.
  • the first optical signal sent by the first electronic device can be received by the second electronic device.
  • the second electronic device may be a mobile terminal or a personal computer integrated with a LiFi signal receiver, which is not specifically limited here.
  • the second electronic device may have a structure similar to that of the first electronic device, that is, the second electronic device may include a light emitting unit that can be turned on and off according to a preset frequency.
  • the second electronic device may also include a LiFi signal receiver for receiving LiFi signals. In this way, the second electronic device can not only receive the first light signal, but also send the second light signal through the light emitting unit in response to the first light signal.
  • the second electronic device may include a second display screen, and the LiFi signal receiver of the second electronic device may be disposed on the side of the second electronic device where the second display screen is (hereinafter referred to as the front).
  • the second electronic device faces the first electronic device, on the one hand, it can receive the first light signal through the LiFi signal receiver; on the other hand, it can flash through the second display screen, thereby sending the second light signal.
  • the second electronic device is not limited to the structure in the above examples.
  • the second electronic device may have a LiFi signal receiver and a LiFi signal transmitter, and it only needs to be able to send and receive LiFi signals without including the second display screen.
  • the second electronic device may include a second display screen, but instead of sending LiFi signals by controlling the second display screen to blink, LiFi signals may be sent through LED breathing lights or LED fill lights.
  • the second electronic device can realize the receiving and sending of the LiFi signal, and the specific receiving and sending manner may not be specifically limited here.
  • the first electronic device may receive a second optical signal sent by the second electronic device, thereby establishing a LiFi connection with the second electronic device.
  • the above-mentioned first optical signal may be broadcast information for requesting establishment of a LiFi connection.
  • the second electronic device may send a second optical signal in response to the first optical signal, so as to agree to establish a LiFi connection with the first electronic device.
  • the first electronic device may establish a LiFi connection with the second electronic device.
  • the first electronic device and the second electronic device can transmit files through the LiFi connection.
  • the first electronic device may transmit the aforementioned target file to the second electronic device based on the LiFi connection.
  • the first electronic device transmitting the target file to the second electronic device based on the LiFi connection it may also be through the on-off change of the light-emitting units such as the first display screen, LED breathing light or LED supplementary light,
  • the above-mentioned target file is transmitted by further flashing light signals with a preset frequency.
  • the process of transmitting the target file based on the LiFi connection since the transmission of the target file can be maintained through the flashing light signal sent by the first electronic device, the process can not be affected by factors such as network signals, which can effectively ensure the reliability of the file transmission process sex.
  • the first electronic device sends the first optical signal in response to the selected target file, and when receiving the second optical signal sent by the second electronic device in response to the first optical signal , establish a LiFi connection with the second electronic device, and based on the LiFi connection, the first electronic device can transmit the aforementioned target file to the second electronic device.
  • the file is transferred through the LiFi connection, and the file transfer process is not limited by the network signal, which effectively improves the reliability of the file transfer process.
  • the above-mentioned target file can be pre-selected by the user in advance. After the first electronic device establishes a LiFi connection with the second electronic device, the user does not need to further input the selection of the target file on the first display screen, effectively avoiding If the user blocks the light signal for a long time, the LiFi connection will be interrupted, thus effectively improving the stability and reliability of the LiFi connection.
  • the first electronic device includes a first display screen and a LiFi chip
  • sending the first optical signal may specifically include:
  • the LiFi chip In response to the input of selecting the target file, the LiFi chip is used to control the first display screen to send the first light signal.
  • the LiFi chip can be electrically connected to the first display screen, and can control the first display screen to turn on and off at a preset frequency to send optical signals, thereby realizing wireless data transmission between the first electronic device and other electronic devices .
  • the first electronic device can control the first display screen to send the first light signal through the LiFi chip.
  • the first light signal obtained by turning on and off the first display screen according to a preset frequency may be a relatively high-speed flickering light signal.
  • the flickering of the first light signal is relatively difficult to be perceived by human eyes, therefore, the first light signal may be sent without affecting the user's vision or slightly affecting the user's vision.
  • the flashing light signal used for the transfer of the target file may not affect the user's normal use of the first display screen.
  • the LiFi chip can be electrically connected to all or part of the LED modules in the LED display.
  • the LiFi chip can control the LED module connected to the point to flash through the electrical signal, so as to send the first light signal.
  • the LiFi chip in addition to controlling the first display screen to turn on and off to obtain the light signal, it can also be used to process the received light signal.
  • the received second optical signal can be processed by the LiFi chip.
  • the LiFi chip determines that the second light signal was generated by the second electronic device in response to the first light signal
  • the first electronic device may establish a LiFi connection with the second electronic device.
  • the first electronic device sends an optical signal by controlling the first display screen to be turned on and off as an example for illustration.
  • the second electronic device when the second electronic device receives the first light signal, it may prompt the user through the second display screen or the sound and light prompting device in response to the first light signal. In the case of receiving an input indicating that the LiFi connection is agreed to be established, the second optical signal is further sent.
  • the second electronic device may also directly send the second optical signal after receiving the first optical signal, so that the first electronic device can obtain information about devices that can currently establish a LiFi connection with it.
  • the first optical signal may be the identity information broadcast by the first electronic device and the status information indicating that it can perform LiFi connection.
  • the information exchanged for LiFi communication is carried by optical signals, therefore, in order for the first electronic device to obtain the information of the device capable of LiFi communication with it.
  • the second electronic device may send a second light signal to the first electronic device in response to the first light signal, so as to notify the first electronic device that LiFi communication can be performed with it.
  • the process in which the second electronic device accepts the user's input to agree to transfer the target file it may also be performed in a subsequent interaction process.
  • the interaction process can be described in detail in the following examples of implementation manners.
  • the first electronic device determines the target file to be transferred and establishes a LiFi connection with the second electronic device, it can transfer the target file.
  • the transfer process of the target file may require a long transfer time, and the relative position between the first electronic device and the second electronic device may change a lot, which may lead to poor stability of the transfer process.
  • the above step 103 transfers the target file to the second electronic device, including:
  • the target file is transferred to the second electronic device based on the LiFi connection.
  • the above-mentioned first electronic device includes a first display screen
  • the second electronic device includes a second display screen.
  • the first electronic device and the second electronic device may be LiFi connections established when the display screens are arranged opposite to each other and the screens are turned on.
  • the first electronic device sends a light signal by controlling the blinking of the first display screen, and can receive the light signal sent by the second electronic device through the LiFi signal receiver arranged on the front.
  • the second electronic device can also implement the process of sending and receiving optical signals as shown by the first electronic device.
  • the first electronic device and the second electronic device When the first electronic device and the second electronic device are in a state where the display screens are arranged opposite to each other, light signal interaction can be performed between the two.
  • the light signal may be generated when the display screen is in a bright screen state. Therefore, from a visual point of view, the LiFi connection between the first electronic device and the second electronic device may be established when the display screen is on.
  • the above-mentioned first input may correspond to the user's tapping operation on the back cover of the first electronic device, or a shaking operation on the first electronic device.
  • the user can double-click the back shell of the first electronic device, and the first electronic device can detect the first input of the double-click on the back shell through the acceleration sensor, and Sending the target file to the second electronic device may begin in response to the first input.
  • the user can shake the first electronic device.
  • LiFi connection is usually based on visible light wireless communication. Shaking the first electronic device within a certain range can ensure that the emitted light signal can be continuously received by the second electronic device.
  • the first electronic device may detect the shaking input of the user through the acceleration sensor, and in response to the shaking input, start to send the target file to the second electronic device.
  • the user may place the second electronic device on a table or other place and hold the first electronic device in the process of sending the target file to the second electronic device through the first electronic device.
  • the first input is made to the first electronic device to transfer the target file, so that the user does not need to The posture of holding the first electronic device is excessively adjusted.
  • the attitude and positional relationship between the first electronic device and the second electronic device can be determined according to the installation position of the LiFi signal transceiver on the second electronic device.
  • the above-mentioned first input may also be an input on the first display screen or the like.
  • the first electronic device may display corresponding operation controls on the first display screen, such as an icon control named "Start Transmission".
  • the target file can be transmitted to the second electronic device through the LiFi connection.
  • a corresponding operation control may also be displayed on the second display screen, for example, the name is "Agree to Receive”. icon controls etc.
  • the second electronic device starts to receive and store the above-mentioned target file.
  • the second electronic device may also display an icon control named "refusal to receive". In the case of receiving an input to the icon control of "deny to receive", the second electronic device may not receive the above-mentioned target file.
  • the user can avoid blocking the light signal by the user's finger and other positions as much as possible when operating the first display screen or the second display screen.
  • the LiFi signal receiver can be arranged at the upper position of the first display screen.
  • the LiFi signal receiver can be avoided to be blocked.
  • the short-term blocking of the optical signal can be considered to a certain extent as a decrease in the intensity of the optical signal caused by poor communication status.
  • Temporary occlusion may not affect the overall transmission of the target file.
  • the user's operations on the first display screen or the second display screen may not affect or less affect the reliability of the transfer process of the above-mentioned target file.
  • the above step 103 before transmitting the target file to the second electronic device based on the LiFi connection, the file transfer method may also include:
  • Transferring target files to the second electronic device based on the LiFi connection comprising:
  • the target file is transmitted to the second electronic device based on the LiFi connection.
  • the target file may have corresponding encryption information, and the encryption information may be used to reflect the encryption status or encryption level of the target file.
  • the encryption status may refer to whether the target file is an encrypted file.
  • the encryption information of the target file may be preset or manually set by the user, which is not specifically limited here.
  • the encryption information of the target file may be automatically determined for the target file according to preset rules.
  • the target file may be a picture type file, and when the first electronic device recognizes the target file as a certificate picture based on the picture recognition model, it may indicate the encrypted information of the target file as "encrypted file”. And when the target file is recognized as a landscape picture, the encryption information of the target file may be indicated as "unencrypted file”.
  • the encryption information of the target file may be manually set by the user.
  • the target file may be a document type file. Users can manually set the encryption level of the target file.
  • the encryption level can be set as "Top Secret”, “Confidential” and “Normal” according to the degree of importance.
  • the above are only some examples of the encrypted information of the target file.
  • the content indicated by the encrypted information, or the specific determination method can be set according to needs.
  • the first electronic device can transmit the target file through the optical signals of the first preset frequency and the second preset frequency.
  • the optical signal frequency may refer to the frequency of the optical signal, specifically, it may refer to the flickering frequency of the optical signal, or refer to the light emitting unit that the user sends the optical signal, such as the first display screen on-off frequency.
  • a preset corresponding relationship may be established between the encrypted information of the target file and the optical signal frequency used for LiFi connection of the first electronic device.
  • encrypted information includes "encrypted files” or "unencrypted files”. Two optical signals with preset frequencies are transmitted.
  • the first electronic device may obtain the optical signal frequency used for connecting the encrypted information of the target file with LiFi.
  • the first electronic device transmits the target file to the second electronic device based on the LiFi connection.
  • this embodiment can restrict the transmission process of the target file through the frequency of the optical signal, that is, when the frequency of the optical signal matches the encrypted information of the target file, the transmission of the target file can ensure the security of the target file transmission to a certain extent sex.
  • the above optical signal frequency may also be the frequency of light.
  • different colors of light can have different frequencies.
  • light signals of different colors can be used.
  • the file transmission method may include:
  • the frequency of the optical signal used by the LiFi connection is changed.
  • the second input may be a tap or shake input corresponding to the user on the first electronic device; or, it may also be voice, gesture and other types of input; or, it may also be a click, Types of input such as sliding may not be specifically limited here.
  • the specific operation mode of the second input can be distinguished from the operation mode of the above-mentioned first input.
  • the first input may be an input of double-clicking the back shell
  • the second input may be an input of clicking the back shell, etc.
  • the user can tap the back shell of the first electronic device to make the first electronic device change the frequency of the optical signal used for the LiFi connection, so as to realize the corresponding encryption
  • the destination file of the information to be transferred when the target file fails to be transmitted normally, the user can tap the back shell of the first electronic device to make the first electronic device change the frequency of the optical signal used for the LiFi connection, so as to realize the corresponding encryption
  • the destination file of the information to be transferred when the target file fails to be transmitted normally, the user can tap the back shell of the first electronic device to make the first electronic device change the frequency of the optical signal used for the LiFi connection, so as to realize the corresponding encryption
  • the destination file of the information to be transferred when the target file fails to be transmitted normally, the user can tap the back shell of the first electronic device to make the first electronic device change the frequency of the optical signal used for the LiFi connection, so as to realize the corresponding encryption
  • the destination file of the information to be transferred when the target file fails to be transmitted normally, the user can tap the back shell of the first
  • the operation mode of the second input may be a corresponding relationship between the operation mode of the second input and the frequency of the optical signal. For example, when the user shakes the first electronic device in a left and right direction, the first electronic device may determine the optical signal frequency used for LiFi connection as the first preset frequency in response to the shaking operation. And when the user taps the back case three times continuously, the first electronic device may determine the frequency of the optical signal used for the LiFi connection as the second preset frequency in response to the operation of the three taps.
  • the second electronic device may also be a second input in response to a certain preset operation mode, for example, switching the frequency of the optical signal in response to a single tap on the back cover of the operation mode. In other words, every time the user taps the back shell, the optical signal frequency can be switched in a specific order.
  • changing the optical signal frequency used by the LiFi connection may specifically include:
  • the optical signal frequency used for the LiFi connection is replaced.
  • the above-mentioned second input may be the user's touch input to the fingerprint identification module in the first electronic device, or an approaching action in front of the camera with the function of collecting palmprint information or iris information, and the like.
  • the flashing light information is temporarily blocked, and the LiFi connection can still be maintained. Therefore, for the first electronic device whose camera for iris information collection is located on the front, the user can still turn the first electronic device to his face, so that the first electronic device can collect iris information.
  • the biometric information of the user may be pre-stored in the first electronic device, that is, the aforementioned preset biometric information.
  • the biometric information obtained by the first electronic device in response to the second input matches the preset biometric information, the frequency of the optical signal used for the LiFi connection can be changed.
  • switching the optical signal frequency for LiFi communication based on biometric information can effectively prevent encrypted files or files with higher encryption levels from being obtained by illegal users, and improve the security of target files.
  • the file transfer method may further include:
  • the color of the light signal used by the LiFi connection is changed, and the color of the light signal matches the frequency of the light signal used by the LiFi connection.
  • the first electronic device sends a light signal through the first display screen to transmit the target file.
  • the first electronic device may implement the LiFi connection by using optical signals of two frequencies, the first preset frequency and the second preset frequency.
  • the color of the first display screen may be displayed as red.
  • the color of the first display screen can be displayed as blue.
  • the first electronic device when it adopts a light signal frequency for LiFi connection, it can make the first display screen emit light of matching color.
  • the user can intuitively know the transition of the frequency of the optical signal adopted by the first electronic device, so as to prevent the user from performing redundant operations on the first electronic device.
  • the change of the displayed color of the first display screen above is only an exemplary description.
  • the display colors corresponding to the optical signal frequencies used by different LiFi connections can be set according to actual needs.
  • the first electronic device can not only send light signals through the first display screen, but also use light emitting units such as LED breathing lights to send light signals.
  • the frequency of the optical signal used for the LiFi connection changes, the color of the optical signal of the light emitting unit such as the LED breathing lamp can also be switched.
  • mobile phone A (corresponding to the first electronic device) may perform LiFi communication with mobile phone B (corresponding to the second electronic device).
  • the file transfer method may include steps 201 to 207.
  • Step 201 on the file interface of mobile phone A, select the file to be transferred;
  • the mobile phone A when it displays a file interface, it can receive the user's selection input, and can determine the target file to be transferred in response to the user's selection input.
  • Step 202 determine whether mobile phone A and mobile phone B are facing each other with bright screens, if yes, execute step 203, if not, do not trigger file transfer;
  • the bright screens of mobile phone A and mobile phone B face each other, which can be considered as a visual representation of establishing a LiFi connection.
  • the flickering frequency of the light signal used in the LiFi connection is often difficult to detect by human eyes.
  • LiFi technology usually uses visible light wireless communication. Therefore, when mobile phone A and mobile phone B are facing each other with bright screens, the two can achieve a reliable LiFi connection.
  • Step 203 mobile phone B establishes a connection with mobile phone A by identifying the spectral signal of a specific frequency emitted by the screen of mobile phone A;
  • the process of establishing a LiFi connection between mobile phone A and mobile phone B may be that mobile phone A sends the first optical signal when receiving the selection input of the target file.
  • mobile phone B may send a second optical signal in response to the first optical signal to indicate that it agrees to establish a LiFi connection with mobile phone A.
  • the first electronic device may establish a LiFi connection with the second electronic device corresponding to the second optical signal.
  • Step 204 mobile phone A uses the acceleration sensor to determine whether to double-click the back; if so, then execute step 205; if not, then do not trigger file transfer;
  • This step can be regarded as a process of judging whether mobile phone A has received the above-mentioned first input.
  • Step 205 mobile phone A starts file transfer
  • mobile phone A starts to send the target file to mobile phone B based on the LiFi connection.
  • Step 206 mobile phone B pops up an acceptance prompt box
  • the prompt box may display a prompt text of "Accept the file from A?”, and display two operation controls whose names are “reject” and “accept” respectively.
  • Step 207 determine whether the mobile phone B has received it, if yes, transmit the target file until the target file is successfully transmitted; if not, the file transmission fails.
  • the above step 204 may specifically include:
  • Mobile phone A uses the acceleration sensor to sense whether the back is tapped. If it is tapped once, the light color of the screen will change, and another frequency light signal will be changed to an encrypted transmission mode. Only under this color light can the encrypted file be transmitted. Otherwise encrypted files cannot be transferred.
  • an interactive mode of fast file transfer can be realized between electronic devices based on the LiFi technology.
  • the application of LiFi technology is convenient and fast, which shortens the operation path for users to transfer files and greatly increases the convenience of file transfers.
  • Starting the transfer of the target file through a simple tap gesture can avoid blocking the visible light used in LiFi communication.
  • the tap gesture is similar to the action of dumping.
  • the device is dumped to another electronic device, which helps to improve the user's operating experience.
  • the different colors of the screen light can be used to provide a relatively intuitive encrypted file transmission method while ensuring security.
  • the file transfer method provided in the embodiment of the present application may be executed by a file transfer device, or a control module in the file transfer device for executing the file transfer method.
  • the file transmission device provided in the embodiment of the present application is described by taking the file transmission device executing the file transmission method as an example.
  • the embodiment of the present application also provides a file transfer device 300, including:
  • a sending module 301 configured to send a first optical signal in response to the input of the selected target file
  • a connection establishment module 302 configured to establish a LiFi connection with the second electronic device in response to a second optical signal sent by the second electronic device, the second optical signal being generated by the second electronic device in response to the first optical signal;
  • a transmission module 303 configured to transmit the target file to the second electronic device based on the LiFi connection.
  • the transmission module 303 may include:
  • a receiving unit configured to receive a first input
  • the transmission unit is configured to transmit the target file to the second electronic device based on the LiFi connection in response to the first input.
  • the file transfer device 300 may also include:
  • An acquisition module configured to acquire the encrypted information of the target file and the optical signal frequency used by the LiFi connection;
  • the transmission module 303 can be specifically used for:
  • the target file is transmitted to the second electronic device based on the LiFi connection.
  • the file transfer device 300 may also include:
  • a receiving module configured to receive a second input
  • the replacement module is used for changing the optical signal frequency adopted by the LiFi connection in response to the second input.
  • the above replacement module may include:
  • an acquisition unit configured to acquire biometric information in response to the second input
  • the first replacement unit is configured to replace the optical signal frequency used in the LiFi connection when the biometric information matches the preset biometric information.
  • the file transfer device 300 may also include:
  • the second replacement unit is configured to replace the color of the light signal used in the LiFi connection in response to the second input, where the color of the light signal matches the frequency of the light signal used in the LiFi connection.
  • the file transfer device 300 may also include a first display screen and a LiFi chip;
  • the sending module 301 can be specifically used for:
  • the LiFi chip In response to the input of selecting the target file, the LiFi chip is used to control the first display screen to send the first light signal.
  • the file transfer device provided in the embodiment of the present application sends the first optical signal in response to the selected target file, receives the second optical signal sent by the second electronic device, establishes a LiFi connection with the second electronic device, and transfers to the second electronic device based on the LiFi connection.
  • the second electronic device transmits the target file.
  • the file transmission is performed based on the LiFi connection, and the file transmission process is not limited by the network signal, which effectively improves the reliability of the file transmission process.
  • the file transfer device can establish a LiFi connection with the second electronic device to transfer the target file when the user selects the target file, which can effectively avoid blocking the optical signal due to the operation of the user selecting the target file, and improve the reliability of the LiFi connection.
  • the optical signal frequency used in the LiFi connection can be changed to transmit target files with different encryption information, which helps to improve the security of the target files.
  • the file transmission device in the embodiment of the present application may be a device, or a component, an integrated circuit, or a chip in a terminal.
  • the device may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant).
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • Network Attached Storage NAS
  • personal computer personal computer, PC
  • television television
  • teller machine or self-service machine etc.
  • the file transfer device in this embodiment of the present application may be a device with an operating system.
  • the operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.
  • the file transfer device provided by the embodiment of the present application can realize various processes realized by the method embodiments in FIG. 1 to FIG. 2 , and details are not repeated here to avoid repetition.
  • the embodiment of the present application also provides an electronic device configured to execute the various processes of the above file transfer method embodiment, and can achieve the same technical effect, and to avoid repetition, details are not repeated here.
  • the embodiment of the present application also provides an electronic device 400, including a processor 401, a memory 402, and a program or instruction stored in the memory 402 and operable on the processor 401.
  • the program when the instruction is executed by the processor 401, each process of the above-mentioned embodiment of the file transfer method can be realized, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
  • the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 5 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, and a processor 510, etc. part.
  • the electronic device 500 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 510 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions.
  • a power supply such as a battery
  • the structure of the electronic device shown in FIG. 5 does not constitute a limitation to the electronic device.
  • the electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange different components, and details will not be repeated here. .
  • the processor 510 is configured to send the first optical signal in response to the input of the selected target file
  • the processor 510 is configured to establish a LiFi connection with the second electronic device in response to a second optical signal sent by the second electronic device, where the second optical signal is generated by the second electronic device in response to the first optical signal;
  • the radio frequency unit 501 is further configured to transmit the target file to the second electronic device based on the LiFi connection.
  • the electronic device 500 provided in the embodiment of the present application can send a first optical signal in response to the selected target file, and can establish a connection with the second optical signal sent by the second electronic device in response to the first optical signal.
  • the file transmission is performed based on the LiFi connection, and the file transmission process is not limited by the network signal, which effectively improves the reliability of the file transmission process.
  • the user input unit 507 may be configured to receive a first input
  • the radio frequency unit 501 may be specifically configured to transmit the target file to the second electronic device based on the LiFi connection in response to the first input.
  • the processor 510 may be used to obtain the encrypted information of the target file and the optical signal frequency used by the LiFi connection;
  • the radio frequency unit 501 may be specifically configured to transmit the target file to the second electronic device based on the LiFi connection when the encrypted information matches the frequency of the optical signal.
  • the user input unit 507 may be used to receive a second input
  • the processor 510 may be configured to change the optical signal frequency used by the LiFi connection in response to the second input.
  • the processor 510 may be configured to acquire biometric information in response to the second input;
  • the optical signal frequency used for the LiFi connection is replaced.
  • the processor 510 may be configured to change the color of the light signal used for the LiFi connection in response to the second input, where the color of the light signal matches the frequency of the light signal used for the LiFi connection.
  • the electronic device 500 may further include a LiFi chip, and the LiFi chip may control the display unit 506 to send the first light signal.
  • the input unit 504 may include a graphics processor (Graphics Processing Unit, GPU) 5041 and a microphone 5042, and the graphics processor 5041 is used for the image capture device (such as the image data of the still picture or video obtained by the camera) for processing.
  • the display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 507 includes a touch panel 5071 and other input devices 5072 .
  • the touch panel 5071 is also called a touch screen.
  • the touch panel 5071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 5072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
  • Memory 509 may be used to store software programs as well as various data, including but not limited to application programs and operating systems.
  • the processor 510 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, and the modem processor mainly processes wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 510 .
  • the embodiment of the present application also provides a readable storage medium.
  • the readable storage medium stores programs or instructions.
  • the program or instructions are executed by the processor, the various processes of the above-mentioned file transmission method embodiments can be achieved, and the same To avoid repetition, the technical effects will not be repeated here.
  • the processor is the processor in the electronic device described in the above embodiments.
  • the readable storage medium includes a computer readable storage medium, such as a non-transitory computer such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, etc. readable storage media.
  • a computer readable storage medium such as a non-transitory computer such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, etc. readable storage media.
  • the embodiment of the present application also provides a computer program product, the computer program product can be executed by a processor to implement the various processes of the above-mentioned file transfer method embodiment, and can achieve the same technical effect. To avoid repetition, details will not be repeated here .
  • the embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the above-mentioned file transfer method embodiment
  • the chip includes a processor and a communication interface
  • the communication interface is coupled to the processor
  • the processor is used to run programs or instructions to implement the above-mentioned file transfer method embodiment
  • chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
  • the term “comprising”, “comprising” or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase “comprising a " does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
  • the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Optical Communication System (AREA)

Abstract

本申请公开了一种文件传输方法及装置,属于通信技术领域。其中,文件传输方法,应用于第一电子设备,方法包括:响应于选择的目标文件的输入,发送第一光信号;响应于第二电子设备发送的第二光信号,建立与第二电子设备的LiFi连接,第二光信号为第二电子设备响应于第一光信号生成;基于LiFi连接向第二电子设备传输目标文件。

Description

文件传输方法及装置
相关申请的交叉引用
本申请要求享有于2021年5月31日提交的名称为“文件传输方法及装置”的中国专利申请202110601054.3的优先权,该申请的全部内容通过引用并入本文中。
技术领域
本申请属于通信技术领域,具体涉及一种文件传输方法及装置。
背景技术
随着通信技术的发展,越来越多的用户使用电子设备来分享图片、视频等类型的文件。现有技术中,用户通常会使用在线软件来进行文件的传输,然而这种传输方式往往受到网络信号的限制,文件传输效果较差。
发明内容
本申请实施例的目的是提供一种文件传输方法及装置,能够解决现有文件传输方式受到网络信号的限制,文件传输效果较差的问题。
第一方面,本申请实施例提供了一种文件传输方法,应用于第一电子设备,方法包括:
响应于选择的目标文件的输入,发送第一光信号;
响应于第二电子设备发送的第二光信号,建立与第二电子设备的LiFi连接,第二光信号为第二电子设备响应于第一光信号生成;
基于LiFi连接向第二电子设备传输目标文件。
第二方面,本申请实施例提供了一种文件传输装置,装置包括:
发送模块,用于响应于选择的目标文件的输入,发送第一光信号;
连接建立模块,用于响应于第二电子设备发送的第二光信号,建立与 第二电子设备的LiFi连接,第二光信号为第二电子设备响应于第一光信号生成;
传输模块,用于基于LiFi连接向第二电子设备传输目标文件。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在存储器上并可在处理器上运行的程序或指令,程序或指令被处理器执行时实现如第一方面的方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,可读存储介质上存储程序或指令,程序或指令被处理器执行时实现如第一方面的方法的步骤。
第五方面,本申请实施例提供了一种芯片,芯片包括处理器和通信接口,通信接口和处理器耦合,处理器用于运行程序或指令,实现如第一方面的方法。
在本申请实施例中,第一电子设备可以响应于选择的目标文件,发送第一光信号,在接收到第二电子设备响应该第一光信号发送的第二光信号的情况下,可以建立与第二电子设备之间的LiFi连接,并基于LiFi连接向第二电子设备传输目标文件。本申请实施例通过LiFi连接进行文件的传输,文件传输过程可以不受网络信号的限制,有效提升文件传输过程的可靠性。
附图说明
图1是本申请实施例提供的文件传输方法的流程示意图;
图2是本申请实施例提供的文件传输方法在一个具体应用例中的流程示意图;
图3是本申请实施例提供的文件传输装置的结构示意图;
图4是本申请实施例提供的电子设备的结构示意图;
图5是实现本申请实施例的电子设备的硬件结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全 部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的文件传输方法及装置进行详细地说明。
本申请实施例提供的文件传输方法可以应用于第一电子设备中,该第一电子设备可以进行可见光无线通信(Light Fidelity,LiFi)。
可见光无线通信又可以称为LiFi技术,基于LiFi技术可以利用可见光波谱进行数据的无线传输。
如图1所示,本申请实施例提供的文件传输方法包括:
步骤101,响应于选择的目标文件的输入,发送第一光信号;
步骤102,响应于第二电子设备发送的第二光信号,建立与第二电子设备的LiFi连接,第二光信号为第二电子设备响应于第一光信号生成;
步骤103,基于LiFi连接向第二电子设备传输目标文件。
本实施例中,目标文件可以是视频、图片或者文档等类型的文件,此处不作具体限定。
结合一些应用场景,在第一电子设备中显示有文件选择界面的情况下,用户可以在文件选择界面中选择需要传输的文件。
例如,第一电子设备中可以显示图库界面,用户可以对图库界面中的图片缩略图进行选择。再例如,第一电子设备中的文档管理界面中,可以显示有多个文档的信息,用户可以对文件管理界面中的文档进行选择。
以上显示有缩略图的图库界面,或显示有文档信息的文档管理界面,均可以认为是文件选择界面。而用户选择的图片或文档,则可以认为是上 述的目标文件。
在接收到用户在对目标文件的选择输入的情况下,第一电子设备可以响应于该选择输入,发送第一光信号。换而言之,步骤101中,第一电子设备可以响应于选择目标文件的输入,发送第一光信号。
比如,第一电子设备可以是例如移动终端、个人电脑或者可穿戴设备等类型的设备,在接收到用户对上述目标文件的选择输入的情况下,第一电子设备可以响应于该选择输入,控制显示屏、发光二极管(Light Emitting Diode,LED)呼吸灯或者LED补光灯等发光单元按照预设频率亮灭,从而实现第一光信号的发送。
换而言之,第一光信号可以是闪烁光信号。类似地,下文中的第二光信号以及用于传输目标文件的光信号,均可以是闪烁光信号。
举例来说,第一电子设备可以包括第一显示屏,且第一显示屏可以是LED显示屏。通过控制LED显示屏中的全部或部分LED模块按照预设频率进行亮灭变化,即可实现第一光信号的发送。
当然,这里仅仅是对第一显示屏的一些举例说明,在实际应用中,第一显示屏也可以是有机发光二极管(Organic Light-Emitting Diode,OLED)显示屏或者其他类型的显示屏等,此处不作具体限定,能够实现光信号的发送即可。
第一电子设备发送的第一光信号可以被第二电子设备接收。比如,第二电子设备可以是集成有LiFi信号接收器的移动终端或者个人电脑等,此处不作具体限定。
举例来说,第二电子设备可以是与第一电子设备类似的构造,即第二电子设备可以包括能够按照预设频率亮灭的发光单元。与此同时,第二电子设备中也可以包括用于LiFi信号接收的LiFi信号接收器。如此,第二电子设备不仅可以接收第一光信号,还可以响应于第一光信号,通过发光单元发送第二光信号。
再例如,第二电子设备可以包括第二显示屏,第二电子设备的LiFi信号接收器可以设置在第二电子设备的第二显示屏所在一面(以下简称正面)。第二电子设备在正面朝向第一电子设备的情况下,一方面,可以通 过LiFi信号接收器接收第一光信号;另一方面,可以通过第二显示屏进行闪烁,从而发送第二光信号。
当然,在实际应用中,第二电子设备并不局限于以上举例中的结构。比如说,第二电子设备可以具有LiFi信号接收器与LiFi信号发送器,能够发送和接收LiFi信号即可,而无需包括第二显示屏。
或者,第二电子设备可以包括第二显示屏,但可以无需通过控制第二显示屏闪烁来发送LiFi信号等,而是通过LED呼吸灯或者LED补光灯来发送LiFi信号。
总的来说,第二电子设备能够实现LiFi信号的接收与发送即可,对于具体的接收与发送方式,此处可以不作具体限定。
在步骤102中,第一电子设备可以接收第二电子设备发送的第二光信号,从而与第二电子设备建立LiFi连接。
举例来说,上述的第一光信号可以是广播的用于请求建立LiFi连接的信息。第二电子设备在接收到第一光信号的情况下,可以响应于该第一光信号,发送第二光信号,以同意与第一电子设备建立LiFi连接。
第一电子设备在接收到第二光信号后,可以建立与第二电子设备的LiFi连接。
在此基础上,第一电子设备与第二电子设备可以通过LiFi连接进行文件的传输。具体来说,本实施例中,第一电子设备可以基于LiFi连接向第二电子设备传输上述的目标文件。
容易理解的是,第一电子设备基于LiFi连接向第二电子设备传输目标文件的过程中,也可以是通过例如第一显示屏、LED呼吸灯或者LED补光灯等发光单元的亮灭变化,以进一步通过预设频率的闪烁光信号来传输上述的目标文件的。
在基于LiFi连接传输目标文件的过程中,由于通过第一电子设备发出的闪烁光信号即可维持目标文件的传输,该过程可以不受到网络信号等因素的影响,可以有效保证文件传输过程的可靠性。
本申请实施例提供的文件传输方法,第一电子设备响应于选择的目标文件,发送第一光信号,并在接收到第二电子设备响应于第一光信号发送 的第二光信号的情况下,建立与第二电子设备之间的LiFi连接,基于LiFi连接,第一电子设备可以将上述的目标文件传输至第二电子设备。本申请实施例通过LiFi连接进行文件的传输,文件传输过程可以不受网络信号的限制,有效提升文件传输过程的可靠性。
另外,上述目标文件可以是预先用户预先选择的,在第一电子设备与第二电子设备建立了LiFi连接后,用户可以无需进一步在第一显示屏上进行有关目标文件选择的输入,有效避免因用户过长时间遮挡光信号导致LiFi连接中断,从而有效提高LiFi连接的稳定性与可靠性。
在一个实施方式中,第一电子设备包括第一显示屏与LiFi芯片;
相应地,响应于选择目标文件的输入,发送第一光信号,可具体包括:
响应于选择目标文件的输入,通过LiFi芯片控制第一显示屏发送第一光信号。
本实施方式中,LiFi芯片可以与第一显示屏电连接,并可以控制第一显示屏按预设频率亮灭以发送光信号,进而实现第一电子设备与其他电子设备之间的数据无线传输。
具体来说,第一电子设备可以通过LiFi芯片控制第一显示屏发送第一光信号。
第一显示屏按照预设频率亮灭得到的第一光信号可以是比较高速的闪烁光信号。一般来说,第一光信号的闪烁比较难以被人眼所察觉,因此,第一光信号可以是在不影响用户或者较少影响用户视觉的情况下发送的。
类似的,在进行目标文件的传输的过程中,用于目标文件传输的闪烁光信号,也可以不影响用户对第一显示屏的正常使用。
在一个示例中,LiFi芯片可以电连接LED显示屏中的全部或部分LED模块。LiFi芯片通过电信号,可以控制与其点连接的LED模块进行闪烁,从而发送第一光信号。
此外,容易理解的是,对于LiFi芯片来说,除了可以控制第一显示屏进行亮灭以得到光信号外,还可以用于对接收的光信号进行处理。
比如,接收到的第二光信号,可以由LiFi芯片进行处理的。在LiFi芯片确定第二光信号是第二电子设备响应于第一光信号生成的情况下,第一 电子设备可以建立与第二电子设备的LiFi连接。
为了简化描述,在下文实施例中,将主要以第一电子设备通过控制第一显示屏亮灭以发送光信号为例进行说明。
在一个示例中,上述第二电子设备在接收到第一光信号的情况下,可以响应于该第一光信号,通过第二显示屏或者声光提示装置对用户进行提示。在接收到指示同意建立LiFi连接的输入的情况下,再进一步发送第二光信号。
在另一个示例中,第二电子设备也可以在接收到第一光信号的情况下,直接发送第二光信号,以使得第一电子设备能够获得当前能够与其建立LiFi连接的设备的信息。
换而言之,此时第一光信号可以是第一电子设备广播的自身身份信息及其可进行LiFi连接的状态信息。而一般来说,为了LiFi通信交互的信息是通过光信号进行承载的,因此,为使得第一电子设备获取能够与其进行LiFi通信的设备的信息。第二电子设备可以在接收到第一光信号后,响应于该第一光信号,向第一电子设备发送第二光信号,以通知第一电子设备可与其进行LiFi通信。
而至于第二电子设备接收用户的输入以同意进行目标文件传输的过程,也可以是在后续的交互过程中进行的。该交互过程中可以在下文实施方式的举例中进行详细说明。
一般来说,第一电子设备在确定了待传输的目标文件,并在于第二电子设备建立了LiFi连接的情况下,即可对目标文件进行传输。
而在一些应用场景中,目标文件的传输过程可能所需传输时间较长,较多地变化第一电子设备与第二电子设备之间的相对位置,可能导致传输过程的稳定性较差。
为便于用户在处于合适的操作状态下通过LiFi连接传输目标文件,保证目标文件传输过程的稳定性,在一个实施方式中,上述步骤103,基于LiFi连接向第二电子设备传输目标文件,包括:
接收第一输入;
响应于第一输入,基于LiFi连接向第二电子设备传输目标文件。
结合一个应用场景的举例,上述第一电子设备包括第一显示屏,第二电子设备包括第二显示屏。第一电子设备与第二电子设备可以是在显示屏相对布置,且处于亮屏的状态下建立的LiFi连接。
具体地,在该应用场景的举例中,第一电子设备通过控制第一显示屏闪烁来发送光信号,并可以通过设置于正面的LiFi信号接收器来接收第二电子设备发送的光信号。第二电子设备也可以实现如第一电子设备所示的光信号的收发过程。
当第一电子设备与第二电子设备处于显示屏相对布置的状态时,两者之间可以进行光信号的交互。而光信号可以是显示屏处于亮屏状态下生成的。因此,从可视的角度来说,第一电子设备与第二电子设备可以是在显示屏亮屏的状态下建立的LiFi连接。
此时,为了简化用户的输入操作,上述第一输入可以对应的是用户对第一电子设备的背壳的敲击操作,或者是对第一电子设备的摇晃操作等。
比如,在第一电子设备与第二电子设备亮屏相对的情况下,用户可以双击第一电子设备的背壳,第一电子设备可以通过加速度传感器检测到该双击背壳的第一输入,并可以响应于该第一输入,开始向第二电子设备发送目标文件。
或者,用户可以摇晃第一电子设备,LiFi连接通常是基于可见光的无线通信,第一电子设备在一定范围内的晃动,可以保证发出的光信号能够被第二电子设备持续接收。
而第一电子设备可以通过加速度传感器检测到用户的摇晃输入,并响应于该摇晃输入,开始向第二电子设备发送目标文件。
可见,以上第一输入对应的操作过程,用户可以无需将手指或者其他操作部件伸入到第一电子设备与第二电子设备之间,比较造成用于LiFi通信的可见光的遮挡,保证LiFi连接的稳定性。
此外,结合另一些应用场景,用户在通过第一电子设备向第二电子设备发送目标文件的过程中,可以将第二电子设备放置在桌子等位置,并手持第一电子设备。在各个电子设备相对位置稳定,且用户处于对电子设备比较合适的操作姿势的情况下,再对第一电子设备进行第一输入以传输目 标文件,能够使得在目标文件的传输过程中,用户无需过多调整手持第一电子设备的姿势。
当然,以上第一电子设备与第二电子设备之间维持LiFi连接时,对应的姿态与位置关系仅仅是一些举例说明。在实际应用中,可以根据第二电子设备上LiFi信号收发器的安装位置,来确定第一电子设备与第二电子设备之间的姿态与位置关系等。
此外,上述的第一输入也可以是在第一显示屏上的输入等。例如,第一电子设备在与第二电子设备建立LiFi连接的情况下,可以在第一显示屏中显示相应的操作控件,例如名称为“开始传输”的图标控件等。在接收到用户对操作控件的点击输入等方式的第一输入的情况下,可以LiFi连接向第二电子设备传输目标文件。
在一个实施方式中,当第一电子设备开始向第二电子设备传输目标文件时,在第二电子设备一端,也可以在第二显示屏上显示相应的操作控件,例如名称为“同意接收”的图标控件等。在接收到对“同意接收”的图标控件的输入的情况下,第二电子设备开始接收并存储上述的目标文件。
当然,第二电子设备上也可以显示名称为“拒绝接收”的图标控件。在接收到对“拒绝接收”的图标控件的输入的情况下,第二电子设备可以不接收上述的目标文件。
在一些应用场景中,通过对LiFi信号接收器的安装位置的合理设置,可以使得用户在操作第一显示屏或者第二显示屏时,尽可能地避免用户手指等位置对光信号造成遮挡。
比如,LiFi信号接收器可以设置在第一显示屏的上方位置,一般情况下,用户对上述的图标控件的操作时,可以避免对LiFi信号接收器形成遮挡。
当然,一般来说,第一电子设备与第二电子设备在建立有LiFi连接的情况下,对光信号短暂的遮挡,在一定程度上可以认为是通信状态不佳造成的光信号的强度降低,短暂的遮挡,可以并不影响目标文件的整体的传输。
换而言之,在一般情况下,用户在第一显示屏或者第二显示屏上的操 作,可以不影响或者较少影响上述目标文件的传输过程的可靠性。
为了提高目标文件传输的安全性,在一个实施方式中,上述步骤103,基于LiFi连接向第二电子设备传输目标文件之前,文件传输方法还可以包括:
获取目标文件的加密信息以及LiFi连接所采用的光信号频率;
基于LiFi连接向第二电子设备传输目标文件,包括:
在加密信息与光信号频率匹配的情况下,基于LiFi连接向第二电子设备传输目标文件。
本实施方式中,目标文件可以具有对应的加密信息,该加密信息可以用于体现目标文件的加密状态或者加密等级等。例如,加密状态可以是指目标文件是否为加密文件。
目标文件的加密信息,可以是预设的,也可以是用户手动设置的,此处不作具体限定。
在一个示例中,目标文件的加密信息可以是根据预设规则自动为目标文件确定的。比如,目标文件可以是图片类型的文件,当第一电子设备基于图片识别模型,将目标文件识别为证件图片时,可以将目标文件的加密信息指示为“加密文件”。而当目标文件识别为风景图片时,可以将目标文件的加密信息指示为“未加密文件”。
在一个示例中,目标文件的加密信息可以是用户手动设置的。例如,目标文件可以是文档类型的文件。用户可以手动设置目标文件的加密等级。加密等级根据重要程度可以设置为“绝密”、“保密”以及“普通”等。
当然,以上仅仅是对目标文件的加密信息的一些举例说明,在实际应用中,加密信息所指示的内容,或者具体的确定方式,可以根据需要进行设定。
第一电子设备用于传输目标文件所采用的光信号的频率可以存在多种。这些频率可以是预设的。
举例来说,第一电子设备可以通过第一预设频率与第二预设频率的光信号进行目标文件的传输。
容易理解的是,本实施方式中,光信号频率可以是指光信号的频率, 具体来说,可以是指光信号的闪烁频率,或者是指用户发送光信号的发光单元,例如第一显示屏的亮灭频率。
此外,本实施方式中,可以在目标文件的加密信息与第一电子设备LiFi连接所采用的光信号频率之间建立预设的对应关系。
比如,加密信息包括“加密文件”或“未加密文件”,上述预设的对应关系,可以是指“未加密文件”通过第一预设频率的光信号进行传输,而“加密文件”通过第二预设频率的光信号进行传输。
本实施方式中,第一电子设备在传输目标文件之前,可以获取目标文件的加密信息与LiFi连接所采用的光信号频率。当目标文件的加密信息与该光信号频率匹配的情况下,第一电子设备基于LiFi连接向第二电子设备传输目标文件。
可见,本实施方式可以通过光信号频率对目标文件的传输过程进行限制,即在光信号频率与目标文件的加密信息匹配的情况下,传输目标文件,可以在一定程度上保证目标文件传输的安全性。
当然,在一些可行的实施方式中,上述的光信号频率也可以是光的频率。比如,不同颜色的光可以具有不同的频率。而在传输具体不同的加密信息的目标文件时,可以采用不同颜色的光信号。
为使得第一电子设备能够对具有不同加密信息的目标文件进行传输,在一个实施方式中,上述基于LiFi连接向第二电子设备传输目标文件之前,文件传输方法可以包括:
接收第二输入;
响应于第二输入,更换LiFi连接所采用的光信号频率。
本实施方式中,第二输入可以是对应用户对第一电子设备的敲击或者摇晃输入;或者,也可以是语音、手势等类型输入;或者,还可以是在第一显示屏上的点击、滑动等类型的输入,此处可以不作具体限定。
一般来说,第二输入的具体操作方式,可以与上述第一输入的操作方式进行区别。例如,第一输入可以是双击背壳的输入,第二输入可以是单击背壳的输入等。
结合一个应用场景,在目标文件未能正常传输的情况下,用户可以敲 击一下第一电子设备的背壳,使得第一电子设备更换LiFi连接所采用的光信号频率,以便实现对具有相应加密信息的目标文件进行传输。
在一个示例中,第二输入的操作方式与光信号频率之间可以存在对应关系。例如,当用户按照左右方向摇晃第一电子设备时,第一电子设备可以响应于该摇晃操作,将LiFi连接所采用的光信号频率确定为第一预设频率。而当用户连续敲击三次背壳时,第一电子设备可以响应于三次敲击的操作,将LiFi连接所采用的光信号频率确定为第二预设频率。
在另一个示例中,第二电子设备也可以是响应于某一预设操作方式的第二输入,例如,响应于单次敲击背壳的操作方式,进行光信号频率的切换。也就是说,用户可以每敲击背壳一次,光信号频率即可按照特定的顺序切换一次。
通过以上示例可见,通过设置触发光信号频率切换的第二输入对应的具体操作方式,可以满足用户多样化的操作习惯。与此同时,第二输入对应的具体操作方式本身也可以作为一种触发光信号频率的解锁方式,通过对第二输入的设置,同样可以提高目标文件传输的安全性。
可选地,为了进一步提升目标文件传输的安全性,上述响应于第二输入,更换LiFi连接所采用的光信号频率,可以具体包括:
响应于第二输入,获取生物识别信息;
在生物识别信息与预设生物识别信息匹配的情况下,更换LiFi连接所采用的光信号频率。
举例来说,上述的第二输入,可以是用户对第一电子设备中的指纹识别模块的触摸输入,或者是在具有掌纹信息或者虹膜信息采集功能的摄像头前方的靠近动作等等。
如上文所示的,LiFi通信过程中,闪烁光信息短暂的遮挡,依然可以维持LiFi连接。因此,对于用于虹膜信息采集的摄像头位于正面的第一电子设备,用户依然可以在将第一电子设备转向自身脸部,使得第一电子设备能够采集虹膜信息。
容易理解的是,第一电子设备中可以预存有用户的生物识别信息,即上述的预设生物识别信息。当第一电子设备响应于第二输入获得的生物识 别信息与预设生物识别信息匹配时,可以更换LiFi连接所采用的光信号频率。
可见,本实施例中,基于生物识别信息进行用于LiFi通信的光信号频率的切换,可以有效避免加密文件或者加密等级较高文件被非法用户获取,提高目标文件的安全性。
如上文所示的,上述光信号的闪烁频率较高,通常难以被用户肉眼所识别。因此,为便于用户能够获知第一电子设备采用的光信号频率的更换,在一个实施方式中,接收第二输入之后,文件传输方法还可以包括:
响应于第二输入,更换LiFi连接所采用的光信号颜色,光信号颜色与LiFi连接所采用的光信号频率相匹配。
举例来说,第一电子设备通过第一显示屏发出光信号进行目标文件的传输。同时,第一电子设备可以采用第一预设频率与第二预设频率这两种频率的光信号实现LiFi连接。
当第一电子设备采用第一预设频率的光信号情况下,可以使得第一显示屏的颜色显示为红色。而在接收到第二输入,以使得第二电子设备采用第二预设频率的光信号情况下,可以使得第一显示屏的颜色显示为蓝色。
换而言之,第一电子设备在采用一种光信号频率进行LiFi连接时,能够使得第一显示屏发出匹配颜色的光线。
如此,可以使得用户能够直观地获知到第一电子设备所采用的光信号的频率的转变,避免用户对第一电子设备进行多余的操作。
当然,以上第一显示屏的显示颜色的变化,仅仅是一种示例性的说明。在实际应用中,不同LiFi连接所采用的光信号频率对应的显示颜色,可以根据实际需要进行设定。
而进一步可选地,上述的光信号频率与显示颜色可以并无固定的对应关系,能够通过颜色的变化,提示采用的光信号频率的变化即可。
此外,如上文所示的,在LiFi连接过程中,第一电子设备不仅仅可以是通过第一显示屏发送光信号,还可以是采用LED呼吸灯等类型的发光单元发送光信号。相应地,当LiFi连接所采用光信号频率发送改变时,也可以是切换LED呼吸灯等发光单元的光信号颜色。
以下结合一个具体应用例对本申请实施例提供的文件传输方法进行说明。
如图2所示,该具体应用例中,可以是手机A(对应第一电子设备)与手机B(对应第二电子设备)进行LiFi通信。相应地,文件传输方法可以包括步骤201~步骤207。
步骤201,手机A的文件界面,选中要传输的文件;
具体来说,手机A在显示有文件界面的情况下,可以接收用户的选择输入,响应于用户的选择输入,可以确定出待传输的目标文件。
步骤202,判断手机A与手机B是否亮屏相对,若是,执行步骤203,若否,则不触发文件传输;
本步骤中,手机A与手机B亮屏相对,可以认为是建立LiFi连接的可视表现形式。
具体来说,LiFi连接所采用的光信号的闪烁频率往往是难以被人眼所察觉的。而LiFi技术通常采用的是可见光无线通信,因此,在手机A与手机B亮屏相对的情况下,两者能够实现可靠的LiFi连接。
步骤203,手机B通过识别手机A屏幕发出的特定频率的光谱信号来与手机A建立连接;
如上文所示的,手机A与手机B建立LiFi连接的过程,可以是手机A在接收到对目标文件的选择输入的情况下,及发送第一光信号。手机B在接收到第一光信号的情况下,可以响应于第一光信号,发送第二光信号,以指示同意与手机A建立LiFi连接。第一电子设备在接收到第二光信号的情况下,可以相应第二光信号,建立与第二电子设备的LiFi连接。
步骤204,手机A利用加速度传感器来判断是否双击背面;若是,则执行步骤205;若否,则不触发文件传输;
本步骤可以认为是判断手机A是否接收到上述的第一输入的过程。
步骤205,手机A开始文件传输;
即手机A开始基于LiFi连接向手机B发送目标文件。
步骤206,手机B弹出接受提示框;
举例来说,该提示框中可以显示“是否接收来自A的文件?”的提示 文字,并显示有名称分别为“拒绝”和“接受”的两个操作控件。
步骤207,判断手机B是否接收,若是,则传输目标文件,直至目标文件传输成功;若否,则文件传输失败。
判断实际B是否接收,即判断用户具体是对“拒绝”和“接受”的两个操作控件中的哪一操作控件的输入。若用户点击“拒绝”,则文件传输失败。若用户点击“接受”,则传输目标文件,直至目标文件传输成功。
为了提供文件传输的安全性,在以上具体应用例的基础上,上述的步骤204可以具体包括:
手机A通过加速度传感器来感受是否敲击背面,若敲击一次则屏幕光颜色改变,转变另一频率光信号,则变为加密传输方式,只要在此颜色光下,才可以传输加密的文件,否则加密文件不可传输。
基于以上具体应用例可见,本申请实施例中,可以LiFi技术为基础,在电子设备之间实现快速传输文件的交互方式。应用了LiFi技术的方便快捷速度快,缩短了用户传文件的操作路径,大大增加了文件传输的便捷性。通过简单的敲击手势开始目标文件的传输,可以避免对LiFi通信中使用的可见光进行遮挡,同时,该敲击手势与倾倒的动作比较类似,这种交互操作可以近似于将目标文件从一个电子设备倾倒至另一个电子设备,有助于提升用户的操作体验。此外,可以利用屏幕光的颜色不同,在保证安全性的同时,提供了一种比较直观的加密文件传输方式。
需要说明的是,本申请实施例提供的文件传输方法,执行主体可以为文件传输装置,或者该文件传输装置中的用于执行文件传输的方法的控制模块。本申请实施例中以文件传输装置执行文件传输方法为例,说明本申请实施例提供的文件传输装置。
如图3所示,本申请实施例还提供了一种文件传输装置300,包括:
发送模块301,用于响应于选择的目标文件的输入发送第一光信号;
连接建立模块302,用于响应于第二电子设备发送的第二光信号,建立与第二电子设备的LiFi连接,第二光信号为第二电子设备响应于第一光信号生成;
传输模块303,用于基于LiFi连接向第二电子设备传输目标文件。
可选地,传输模块303,可以包括:
接收单元,用于接收第一输入;
传输单元,用于响应于第一输入,基于LiFi连接向第二电子设备传输目标文件。
可选地,文件传输装置300还可以包括:
获取模块,用于获取目标文件的加密信息以及LiFi连接所采用的光信号频率;
相应地,传输模块303,可具体用于:
在加密信息与光信号频率匹配的情况下,基于LiFi连接向第二电子设备传输目标文件。
可选地,文件传输装置300还可以包括:
接收模块,用于接收第二输入;
更换模块,用于响应于第二输入,更换LiFi连接所采用的光信号频率。
可选地,上述更换模块,可以包括:
获取单元,用于响应于第二输入,获取生物识别信息;
第一更换单元,用于在生物识别信息与预设生物识别信息匹配的情况下,更换LiFi连接所采用的光信号频率。
可选地,文件传输装置300还可以包括:
第二更换单元,用于响应于第二输入,更换LiFi连接所采用的光信号颜色,光信号颜色与LiFi连接所采用的光信号频率相匹配。
可选地,文件传输装置300还可以包括第一显示屏与LiFi芯片;
相应地,发送模块301,可具体用于:
响应于选择目标文件的输入,通过LiFi芯片控制第一显示屏发送第一光信号。
本申请实施例提供的文件传输装置,响应于选择的目标文件,发送第一光信号,接收第二电子设备发送的第二光信号,来与第二电子设备建立LiFi连接,基于LiFi连接向第二电子设备传输目标文件。本申请实施例基于LiFi连接进行文件的传输,文件传输过程可以不受网络信号的限制,有效提升文件传输过程的可靠性。文件传输装置可以在用户选择目标文件的 情况下,再与第二电子设备建立LiFi连接以传输目标文件,可以有效避免因用户选择目标文件的操作对光信号造成遮挡,提高LiFi连接的可靠性。本申请实施例还可以更换LiFi连接所采用的光信号频率,来进行具有不同加密信息的目标文件的传输,有助于提高目标文件的安全性。
本申请实施例中的文件传输装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的文件传输装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为iOS操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的文件传输装置能够实现图1至图2的方法实施例实现的各个过程,为避免重复,这里不再赘述。
本申请实施例还提供一种电子设备,被配置成用于执行上述文件传输方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
可选地,如图4所示,本申请实施例还提供一种电子设备400,包括处理器401,存储器402,存储在存储器402上并可在处理器401上运行的程序或指令,该程序或指令被处理器401执行时实现上述文件传输方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,本申请实施例中的电子设备包括上述的移动电子设备和非移动电子设备。
图5为实现本申请实施例的一种电子设备的硬件结构示意图。
该电子设备500包括但不限于:射频单元501、网络模块502、音频输 出单元503、输入单元504、传感器505、显示单元506、用户输入单元507、接口单元508、存储器509、以及处理器510等部件。
本领域技术人员可以理解,电子设备500还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器510逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图5中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,处理器510,用于响应于选择的目标文件的输入,发送第一光信号;
处理器510,用于响应于第二电子设备发送的第二光信号,建立与第二电子设备的LiFi连接,第二光信号为第二电子设备响应于第一光信号生成;
射频单元501,还用于基于LiFi连接向第二电子设备传输目标文件。
本申请实施例提供的电子设备500,可以响应于选择的目标文件,发送第一光信号,在接收到第二电子设备响应该第一光信号发送的第二光信号的情况下,可以建立与第二电子设备之间的LiFi连接,并基于LiFi连接向第二电子设备传输目标文件。本申请实施例基于LiFi连接进行文件的传输,文件传输过程可以不受网络信号的限制,有效提升文件传输过程的可靠性。
可选地,用户输入单元507,可以用于接收第一输入;
射频单元501,可具体用于响应于第一输入,基于LiFi连接向第二电子设备传输目标文件。
可选地,处理器510,可以用于获取目标文件的加密信息以及LiFi连接所采用的光信号频率;
相应地,射频单元501,可具体用于在加密信息与光信号频率匹配的情况下,基于LiFi连接向第二电子设备传输目标文件。
可选地,用户输入单元507,可以用于接收第二输入;
处理器510,可以用于响应于第二输入,更换LiFi连接所采用的光信 号频率。
可选地,处理器510,可以用于响应于第二输入,获取生物识别信息;
在生物识别信息与预设生物识别信息匹配的情况下,更换LiFi连接所采用的光信号频率。
可选地,处理器510,可以用于响应于第二输入,更换LiFi连接所采用的光信号颜色,光信号颜色与LiFi连接所采用的光信号频率相匹配。
可选地,电子设备500还可以包括LiFi芯片,LiFi芯片可以控制显示单元506发送第一光信号。
应理解的是,本申请实施例中,输入单元504可以包括图形处理器(Graphics Processing Unit,GPU)5041和麦克风5042,图形处理器5041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元506可包括显示面板5061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板5061。用户输入单元507包括触控面板5071以及其他输入设备5072。触控面板5071,也称为触摸屏。触控面板5071可包括触摸检测装置和触摸控制器两个部分。其他输入设备5072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器509可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器510可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器510中。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述文件传输方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等的非暂态计算机可读存储介质。
本申请实施例还提供一种计算机程序产品,所述计算机程序产品可被 处理器执行以实现上述文件传输方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述文件传输方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制 性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (17)

  1. 一种文件传输方法,应用于第一电子设备,所述方法包括:
    响应于选择目标文件的输入,发送第一光信号;
    响应于第二电子设备发送的第二光信号,建立与所述第二电子设备的可见光无线通信LiFi连接,所述第二光信号为所述第二电子设备响应于所述第一光信号生成;
    基于所述LiFi连接向所述第二电子设备传输所述目标文件。
  2. 根据权利要求1所述的方法,其中,所述基于所述LiFi连接向所述第二电子设备传输所述目标文件,包括:
    接收第一输入;
    响应于所述第一输入,基于所述LiFi连接向所述第二电子设备传输所述目标文件。
  3. 根据权利要求1所述的方法,其中,所述基于所述LiFi连接向所述第二电子设备传输所述目标文件之前,所述方法还包括:
    获取所述目标文件的加密信息以及所述LiFi连接所采用的光信号频率;
    所述基于所述LiFi连接向所述第二电子设备传输所述目标文件,包括:
    在所述加密信息与所述光信号频率匹配的情况下,基于所述LiFi连接向所述第二电子设备传输所述目标文件。
  4. 根据权利要求3所述的方法,其中,所述基于所述LiFi连接向所述第二电子设备传输所述目标文件之前,所述方法包括:
    接收第二输入;
    响应于所述第二输入,更换所述LiFi连接所采用的光信号频率。
  5. 根据权利要求4所述的方法,其中,所述接收第二输入之后,所述方法还包括:
    响应于所述第二输入,更换所述LiFi连接所采用的光信号颜色,所述光信号颜色与所述LiFi连接所采用的光信号频率相匹配。
  6. 根据权利要求1所述的方法,其中,所述第一电子设备包括第一显示屏与LiFi芯片;
    所述响应于选择目标文件的输入,发送第一光信号,包括:
    响应于选择目标文件的输入,通过所述LiFi芯片控制所述第一显示屏发送第一光信号。
  7. 一种文件传输装置,所述装置包括:
    发送模块,用于响应于选择的目标文件的输入,发送第一光信号;
    连接建立模块,用于响应于第二电子设备发送的第二光信号,建立与所述第二电子设备的LiFi连接,所述第二光信号为所述第二电子设备响应于所述第一光信号生成;
    传输模块,用于基于所述LiFi连接向所述第二电子设备传输所述目标文件。
  8. 根据权利要求7所述的装置,其中,所述传输模块,包括:
    接收单元,用于接收第一输入;
    传输单元,用于响应于所述第一输入,基于所述LiFi连接向所述第二电子设备传输所述目标文件。
  9. 根据权利要求7所述的装置,还包括:
    获取模块,用于获取所述目标文件的加密信息以及所述LiFi连接所采用的光信号频率;
    所述传输模块,具体用于:
    在所述加密信息与所述光信号频率匹配的情况下,基于所述LiFi连接向所述第二电子设备传输所述目标文件。
  10. 根据权利要求9所述的装置,还包括:
    接收模块,用于接收第二输入;
    更换模块,用于响应于所述第二输入,更换所述LiFi连接所采用的光信号频率。
  11. 根据权利要求10所述的装置,还包括:
    第二更换单元,用于响应于所述第二输入,更换所述LiFi连接所采用的光信号颜色,所述光信号颜色与所述LiFi连接所采用的光信号频率相匹配。
  12. 根据权利要求7所述的装置,还包括第一显示屏与LiFi芯片;
    所述发送模块,具体用于:
    响应于选择目标文件的输入,通过所述LiFi芯片控制所述第一显示屏发送第一光信号。
  13. 一种电子设备,其特征在于,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-6任一项所述的文件传输方法的步骤。
  14. 一种电子设备,被配置成用于执行如权利要求1-6任一项所述的文件传输方法的步骤。
  15. 一种可读存储介质,其特征在于,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-6任一项所述的文件传输方法的步骤。
  16. 一种计算机程序产品,所述计算机程序产品可被处理器执行以实现如权利要求1-6任一项所述的文件传输方法的步骤。
  17. 一种芯片,所述芯片包括处理器和通信接口,提供的通信接口和提供的处理器耦合,提供的处理器用于运行程序或指令,实现如权利要求1-6任一项所述的文件传输方法的步骤。
PCT/CN2022/094611 2021-05-31 2022-05-24 文件传输方法及装置 WO2022253042A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110601054.3 2021-05-31
CN202110601054.3A CN113364845B (zh) 2021-05-31 2021-05-31 文件传输方法及装置

Publications (1)

Publication Number Publication Date
WO2022253042A1 true WO2022253042A1 (zh) 2022-12-08

Family

ID=77530368

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/094611 WO2022253042A1 (zh) 2021-05-31 2022-05-24 文件传输方法及装置

Country Status (2)

Country Link
CN (1) CN113364845B (zh)
WO (1) WO2022253042A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113364845B (zh) * 2021-05-31 2023-08-18 维沃移动通信有限公司 文件传输方法及装置

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150201443A1 (en) * 2014-01-10 2015-07-16 Qualcomm Incorporated Point and share using ir triggered p2p
US20170251365A1 (en) * 2014-09-08 2017-08-31 Purelifi Limited Cyber security
CN107682083A (zh) * 2017-11-01 2018-02-09 珠海市魅族科技有限公司 一种短距离文件传输方法及装置
WO2021047925A1 (en) * 2019-09-13 2021-03-18 Signify Holding B.V. Systems and methods for enabling high-speed wireless file transfer
CN112822277A (zh) * 2021-01-12 2021-05-18 湖北大学 文件传输方法、装置及系统
CN113364845A (zh) * 2021-05-31 2021-09-07 维沃移动通信有限公司 文件传输方法及装置

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102857269A (zh) * 2011-06-28 2013-01-02 德信智能手机技术(北京)有限公司 移动电话之间的数据传输方法和移动电话
CN103188368B (zh) * 2011-12-27 2017-01-18 宇龙计算机通信科技(深圳)有限公司 数据传输的方法及其通信终端
CN105101056A (zh) * 2015-07-08 2015-11-25 广东欧珀移动通信有限公司 一种文件传输的方法及移动终端
CN109450539B (zh) * 2018-12-24 2020-07-14 厦门天马微电子有限公司 移动终端和移动终端的lifi信号收发方法
CN112152710B (zh) * 2019-06-28 2022-03-22 Oppo广东移动通信有限公司 数据传输方法、装置、电子设备及存储介质
CN112291003B (zh) * 2019-07-22 2022-03-22 Oppo广东移动通信有限公司 移动终端的光保真LiFi通信控制方法、装置、终端及介质
CN110851040B (zh) * 2019-10-28 2021-07-20 维沃移动通信有限公司 一种信息处理方法及电子设备
CN112399556B (zh) * 2020-11-11 2023-06-09 Oppo广东移动通信有限公司 网络连接方法、终端及计算机存储介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150201443A1 (en) * 2014-01-10 2015-07-16 Qualcomm Incorporated Point and share using ir triggered p2p
US20170251365A1 (en) * 2014-09-08 2017-08-31 Purelifi Limited Cyber security
CN107682083A (zh) * 2017-11-01 2018-02-09 珠海市魅族科技有限公司 一种短距离文件传输方法及装置
WO2021047925A1 (en) * 2019-09-13 2021-03-18 Signify Holding B.V. Systems and methods for enabling high-speed wireless file transfer
CN112822277A (zh) * 2021-01-12 2021-05-18 湖北大学 文件传输方法、装置及系统
CN113364845A (zh) * 2021-05-31 2021-09-07 维沃移动通信有限公司 文件传输方法及装置

Also Published As

Publication number Publication date
CN113364845B (zh) 2023-08-18
CN113364845A (zh) 2021-09-07

Similar Documents

Publication Publication Date Title
US11257459B2 (en) Method and apparatus for controlling an electronic device
WO2017185711A1 (zh) 控制智能设备的方法、装置、系统和存储介质
US20200371668A1 (en) Application icon display method, terminal and computer readable storage medium
CN107102891B (zh) 一种基于双系统的应用的管理方法及移动终端
US20180035296A1 (en) Screen unlocking method and apparatus, and storage medium
US9424418B2 (en) Information processing device and method for switching password input mode
MX2013000363A (es) Acceso de camara de cierre superior.
WO2020238778A1 (zh) 一种基于用户身份识别的显示方法及电子设备
US20180008161A1 (en) Method for recognizing iris based on user intention and electronic device for the same
KR102362042B1 (ko) 전자 장치의 제어 방법 및 장치
CN109407917A (zh) 一种设置应用程序状态的方法和装置
US10083286B2 (en) Method and system for secured transfer of application data between electronic devices on simultaneous touch
EP4060586A1 (en) Voice payment method and electronic device
WO2022253042A1 (zh) 文件传输方法及装置
WO2023045885A1 (zh) 同步方法和装置
WO2019114712A1 (zh) 数据加密或解密的方法、装置和终端设备
CN109246298B (zh) 一种提示信息的方法和移动终端
CN114201738B (zh) 解锁方法及电子设备
WO2023186011A1 (zh) 图像显示方法、装置及电子设备
CN111694892B (zh) 资源转移方法、装置、终端、服务器及存储介质
WO2023030238A1 (zh) 安全输入方法和装置
CN112291133B (zh) 跨端发送文件的方法、装置、设备及介质
CN110892372A (zh) 一种控制屏幕的方法和终端
CN113689206A (zh) 资源转移方法、装置、系统、电子设备及存储介质
WO2018119648A1 (zh) 电子装置及输入控制方法

Legal Events

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

Ref document number: 22815089

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22815089

Country of ref document: EP

Kind code of ref document: A1