CN115633340A - File transmission method, terminal, electronic device and storage medium - Google Patents
File transmission method, terminal, electronic device and storage medium Download PDFInfo
- Publication number
- CN115633340A CN115633340A CN202211241834.2A CN202211241834A CN115633340A CN 115633340 A CN115633340 A CN 115633340A CN 202211241834 A CN202211241834 A CN 202211241834A CN 115633340 A CN115633340 A CN 115633340A
- Authority
- CN
- China
- Prior art keywords
- terminal
- target
- wifi
- target file
- file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 96
- 230000005540 biological transmission Effects 0.000 title claims abstract description 71
- 238000007667 floating Methods 0.000 claims description 144
- 230000015654 memory Effects 0.000 claims description 54
- 230000006870 function Effects 0.000 claims description 33
- 230000008569 process Effects 0.000 claims description 30
- 238000004590 computer program Methods 0.000 claims description 7
- 238000012423 maintenance Methods 0.000 claims description 2
- 238000004891 communication Methods 0.000 description 16
- 238000012545 processing Methods 0.000 description 13
- 238000007726 management method Methods 0.000 description 10
- 230000005236 sound signal Effects 0.000 description 8
- 238000010295 mobile communication Methods 0.000 description 6
- 239000000725 suspension Substances 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 5
- 238000013500 data storage Methods 0.000 description 4
- 230000001413 cellular effect Effects 0.000 description 3
- 238000013528 artificial neural network Methods 0.000 description 2
- 230000003416 augmentation Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000010561 standard procedure Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/40—Security arrangements using identity modules
- H04W12/48—Security arrangements using identity modules using secure binding, e.g. securely binding identity modules to devices, services or applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/60—Context-dependent security
- H04W12/66—Trust-dependent, e.g. using trust scores or trust relationships
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the application provides a file transmission method, a terminal, an electronic device and a storage medium, which can simplify the operation flow of transmitting a plurality of files and effectively improve the efficiency of transmitting the plurality of files between the terminals. The file transmission method comprises the following steps: acquiring equipment information of a second terminal through NFC; establishing a trust relationship with a second terminal based on the equipment information of the second terminal, wherein the trust relationship comprises a binding relationship between the first terminal and the second terminal, a Bluetooth connection and a WIFI connection are established between the first terminal and the second terminal, and the binding relationship is maintained through the Bluetooth connection; and when the binding relation is determined to be in an effective state, and sending instructions for the target files are sequentially detected, and the target files are sequentially sent to the second terminal based on the WIFI.
Description
[ technical field ] A method for producing a semiconductor device
The embodiment of the application relates to the technical field of communication, in particular to a file transmission method, a terminal, an electronic device and a storage medium.
[ background of the invention ]
At present, with the development of mobile terminals, the functions of the mobile terminals are more and more perfect, and users can not only utilize the terminals to realize communication, but also establish a connection relationship between the terminals to transmit cross-screen files, and share files such as documents, pictures, videos and the like between the terminals.
However, in the prior art, when a terminal performs cross-screen file transmission, a sending terminal needs to search again and bind receiving terminal equipment every time a file is sent, and when the sending terminal needs to transmit a plurality of files to the receiving terminal, the operation is complex, so that the transmission efficiency is low, and the user experience is influenced.
[ summary of the invention ]
The embodiment of the application provides a file transmission method, a terminal, an electronic device and a storage medium, which can simplify the operation flow of transmitting a plurality of files and effectively improve the efficiency of transmitting the plurality of files between the terminals.
In a first aspect, an embodiment of the present application provides a file transmission method, which is applied to a first terminal, and the method includes:
acquiring equipment information of a second terminal through NFC;
establishing a trust relationship with the second terminal based on the device information of the second terminal, wherein the trust relationship comprises a binding relationship between the first terminal and the second terminal, the first terminal and the second terminal establish Bluetooth connection and WIFI connection, and the binding relationship is maintained through the Bluetooth connection;
and when the binding relation is determined to be in an effective state and sending instructions for a plurality of target files are sequentially detected, the plurality of target files are sequentially sent to the second terminal based on the WIFI.
In the embodiment of the application, the first terminal can acquire the device information of the second terminal through NFC, and a trust relationship is established between the device information of the second terminal and the second terminal, wherein the trust relationship comprises that the first terminal and the second terminal establish a binding relationship, the first terminal and the second terminal establish Bluetooth connection and WIFI connection, and the binding relationship is maintained through the Bluetooth connection, so that when multiple files are transmitted between the first terminal and the second terminal, only a plurality of target files are sequentially selected on the first terminal and are sequentially transmitted to the second terminal through WIFI, the first terminal does not need to search again and bind the second terminal when the files are transmitted once, the operation flow of transmitting the multiple files between the terminals is simplified, and the efficiency of transmitting the multiple files between the terminals is effectively improved.
Optionally, before acquiring the device information of the second terminal through NFC, the method further includes:
when the file transmission function is detected to be started, starting a first floating window;
and displaying first target information through the first floating window, wherein the first target information is used for prompting a standard operation step of establishing the trust relationship between the first terminal and any terminal.
In the embodiment of the application, when the first terminal detects that the file transmission function is started, the first floating window of the first terminal is started, is located on the uppermost layer of the first terminal interface and cannot be covered by other applications or operations, the first floating window can display first target information and is used for prompting standard operation steps required to be carried out when the first terminal establishes the trust relationship with any terminal, and a user can operate based on the standard operation steps to enable the first terminal to establish the trust relationship with any terminal and improve user experience.
Optionally, after establishing the trust relationship with the second terminal based on the device information of the second terminal, the method further includes:
and displaying second target information through the first floating window, wherein the second target information is used for prompting the first terminal and the second terminal to establish the trust relationship.
In the embodiment of the application, after the trust relationship between the first terminal and the second terminal is established, the first floating window on the first terminal can display the second target information for prompting a user that the trust relationship between the first terminal and the second terminal is established, and based on the first floating window, the first terminal can visually display the establishment state of the trust relationship between the first terminal and the second terminal to the user, so that the user experience is improved.
Optionally, when it is determined that the binding relationship is in an effective state and sending instructions for a plurality of target files are sequentially detected, sequentially sending the plurality of target files to the second terminal based on the WIFI includes:
and aiming at any target file, when the binding relation is determined to be in the effective state and the target file is detected to be moved into the first floating window, sending the target file to the second terminal based on the WIFI.
In the embodiment of the application, when the first terminal sends the plurality of target files to the second terminal, any one of the plurality of target files is moved to the first suspension window first and then sent to the second terminal through WIFI, namely the first suspension window is used as an operation area for file transmission, the target files can be selected through simple gesture instructions and sent to the second terminal, the operation flow of file transmission is simplified, and the user experience is improved.
Optionally, the target file has attribute information, where the attribute information at least includes a file name and a file type of the target file, and when it is determined that the binding relationship is in the valid state and it is detected that the target file is moved into the target floating window, sending the target file to the second terminal based on the WIFI includes:
when the binding relation is determined to be in the effective state and the target file is detected to be moved into the first floating window, sending the attribute information to the second terminal based on the WIFI;
and when an instruction that the second terminal agrees to receive the target file is received, the target file is sent to the second terminal based on the WIFI.
In the embodiment of the application, any target file to be sent to the second terminal by the first terminal has attribute information, the attribute information at least comprises a file name and a file type of the target file, when the first terminal detects that the target file is moved into the first suspension window, the attribute of the target file can be sent to the second terminal through WIFI, so that a user of the second terminal can judge whether the target file is received or not based on the attribute information, if the target file is received, the first terminal can receive an instruction which is sent by the second terminal and agrees to receive the target file, then the target file is sent to the second terminal through WIFI, so that the second terminal receives the target file, transmission of the target file is completed, and user experience is improved.
Optionally, the method further includes:
and in the process of sending the target file to the second terminal based on the WIFI, displaying the sent sending progress of the target file in the first floating window.
In the embodiment of the application, when the first terminal sends the target file to the second terminal through WIFI, the sending progress of the target file sent can be displayed in the first suspension window, the sending progress of the file is visually displayed to a user, the user can know the current file transmission progress in real time, and the user experience is improved.
Optionally, the attribute information further includes a total number of bytes corresponding to the target file, and displaying the sent sending progress of the target file in the first floating window includes:
determining the actual number of bytes to which the target file has been currently sent;
calculating a percentage between the actual number of bytes and the total number of bytes;
displaying the percentage within the first floating window.
In the embodiment of the application, the attribute information corresponding to any one target file further includes the total byte number of the target file, when the first terminal sends the target file to the second terminal through WIFI, the actual byte number of the target file which is sent currently can be determined in real time, the percentage between the actual byte number which is sent currently and the total byte number of the target file is calculated, the calculated percentage can be displayed in real time in the first floating window to represent the current sending progress of the target file, a user can know the current file transmission progress in real time, and the user experience is improved.
Optionally, the method further includes:
in the process of sending the target file to the second terminal based on the WIFI, if the clicking operation aiming at the first floating window is detected, the remaining part of the target file is stopped to be sent to the second terminal based on the WIFI; or
Receiving a cancel instruction sent by the second terminal, wherein the cancel instruction is used for enabling the first terminal to stop sending the rest part of the target file to the second terminal based on the WIFI;
and responding to the canceling instruction, and stopping sending the rest part of the target file to the second terminal based on the WIFI.
In the embodiment of the application, in the process of sending the target file to the second terminal based on the WIFI, if the transmission of the target file needs to be stopped, the click operation can be performed in the first floating window based on the preset operation, when the first terminal detects the click operation on the first floating window, the sending of the remaining part of the target file to the second terminal based on the WIFI can be stopped, or when the transmission of the target file is stopped by the second terminal, the first terminal can receive the cancel instruction sent by the second terminal, respond to the cancel instruction, and stop sending the remaining part of the target file to the second terminal based on the WIFI.
Optionally, after stopping sending the remaining part of the target file to the second terminal based on the WIFI, the method further includes:
and displaying third target information through the first floating window, wherein the third target information is used for indicating that the transmission process of the target file is cancelled.
In the embodiment of the application, after the first terminal stops sending the remaining part of the target file to the second terminal based on the WIFI, the third target information can be displayed in the first floating window, and the user can know that the transmission process of the target file is cancelled based on the third target information, so that the user experience is improved.
In a second aspect, an embodiment of the present application provides a file transmission method, which is applied to a second terminal, and the method includes:
acquiring equipment information of a first terminal through NFC;
establishing a trust relationship with the first terminal based on the equipment information of the first terminal, wherein the trust relationship comprises a binding relationship between the second terminal and the first terminal, the second terminal establishes a Bluetooth connection and a WIFI connection with the first terminal, and the binding relationship is maintained through the Bluetooth connection;
and when the binding relation is determined to be in an effective state, sequentially receiving a plurality of target files sent by the first terminal based on the WIFI.
In the embodiment of the application, the second terminal can acquire the device information of the first terminal through NFC, and a trust relationship is established between the device information of the first terminal and the first terminal, wherein the trust relationship comprises that the second terminal establishes a binding relationship with the first terminal, the second terminal establishes Bluetooth connection with the first terminal and WIFI connection, and the binding relationship is maintained through Bluetooth connection, so that when multiple files are transmitted between the first terminal and the second terminal, only a plurality of target files are sequentially selected on the first terminal and are sequentially transmitted to the second terminal through WIFI, the first terminal does not need to search again and bind the second terminal when the files are transmitted once, the operation flow of transmitting the multiple files between the terminals is simplified, and the efficiency of transmitting the multiple files between the terminals is effectively improved.
Optionally, before acquiring the device information of the first terminal through NFC, the method includes:
when the file transmission function is detected to be started, starting a second floating window;
and displaying fourth target information through the second floating window, wherein the fourth target information is used for prompting a standard operation step of establishing the trust relationship between the second terminal and any terminal.
In the embodiment of the application, when the second terminal detects that the file transmission function is started, the second floating window of the second terminal is started, is located on the uppermost layer of the interface of the second terminal and cannot be covered by other applications or operations, the second floating window can display fourth target information and is used for prompting standard operation steps required to be carried out when the second terminal establishes the trust relationship with any terminal, and a user can operate based on the standard operation steps to enable the second terminal to establish the trust relationship with any terminal and improve user experience.
Optionally, after establishing a trust relationship with the first terminal based on the device information of the first terminal, the method further includes:
and displaying fifth target information through the second floating window, wherein the fifth target information is used for prompting the second terminal to establish the trust relationship with the first terminal.
In the embodiment of the application, after the trust relationship between the second terminal and the first terminal is established, the second floating window on the second terminal displays the fifth target information for prompting a user that the trust relationship between the second terminal and the first terminal is established.
Optionally, each target file in the multiple target files has attribute information, where the attribute information at least includes a file name and a file type of a corresponding target file, and when it is determined that the binding relationship is in an effective state, sequentially receiving, based on the WIFI, the multiple target files sent by the first terminal includes:
for any target file, when the binding relation is determined to be in the effective state, receiving the attribute information corresponding to the target file sent by the first terminal based on the WIFI;
displaying the attribute information in the second floating window;
when a preset operation aiming at the attribute information is detected, sending an instruction of agreeing to receive the target file to the first terminal based on the WIFI, wherein the preset operation is to move the attribute information out of the second floating window;
and receiving the target file sent by the first terminal based on the WIFI.
In the embodiment of the application, any target file to be sent to the second terminal by the first terminal has attribute information, the attribute information at least comprises a file name and a file type of the target file, and for any target file, when the binding relationship is determined to be in an effective state, the second terminal receives the attribute information corresponding to the target file sent by the first terminal based on the WIFI, when the preset operation aiming at the attribute information is detected, the attribute information is moved out of the second floating window, then an instruction for agreeing to receive the target file is sent to the first terminal through the WIFI, and the target file sent by the first terminal is received based on the WIFI until the file transmission is completed, that is, a user of the second terminal can check what the target file to be received is formally before receiving the target file, and then selects whether to receive the target file, so that the user of the second terminal is prevented from receiving useless target files, and the use experience of the user is improved.
Optionally, the method further includes:
in the process of receiving the target file sent by the first terminal based on the WIFI, displaying the received receiving progress of the target file in the second floating window.
In the embodiment of the application, when the second terminal receives the target file sent by the first terminal through the WIFI, the receiving progress of the target file received can be displayed in the second suspension window, the receiving progress of the file is visually displayed for a user, the user can know the current file transmission progress in real time, and the user experience is improved.
Optionally, the attribute information further includes a total number of bytes corresponding to the target file, and displaying the received receiving progress of the target file in the second floating window includes:
determining the actual number of bytes currently received by the target file;
calculating a percentage between the actual number of bytes and the total number of bytes;
displaying the percentage within the second floating window.
In the embodiment of the application, the attribute information corresponding to any one target file further includes the total byte number of the target file, when the second terminal receives the target file sent by the first terminal through the WIFI, the actual byte number currently received by the target file can be determined in real time, the percentage between the actual byte number currently received and the total byte number of the target file is calculated, the calculated percentage can be displayed in real time in the second floating window, so that the current receiving progress of the target file is represented, a user can know the current file transmission progress more accurately, and the user experience is improved.
Optionally, the method further includes:
and in the process of receiving the target file sent by the first terminal based on the WIFI, if other files are detected to be moved into the second floating window, refusing to send the other files to the first terminal based on the WIFI.
In this embodiment of the application, after the first terminal and the second terminal establish the trust relationship, the first terminal and the second terminal may send files to each other, but the files cannot be used as sending terminals to send target files to each other at the same time, that is, for the first terminal and the second terminal, only the first terminal can send a target file to the second terminal or the second terminal can send a target file to the first terminal at the same time, so that after attribute information corresponding to any target file is displayed in the second floating window, it is indicated that the first terminal is ready to send the target file to the second terminal through WIFI, at this time, if the second terminal detects that another file is moved into the second floating window, the second terminal cannot send the another file to the first terminal through WIFI, so as to ensure the ordering of file transmission between the first terminal and the second terminal.
Optionally, the method further includes:
in the process of receiving the target file sent by the first terminal based on the WIFI, if a click operation for the second floating window is detected, a cancel instruction is sent to the first terminal, and the cancel instruction is used for enabling the first terminal to stop sending the rest part of the target file to the second terminal based on the WIFI.
In the embodiment of the application, when the second terminal receives the target file sent by the first terminal based on the WIFI, if the second terminal needs to stop receiving the target file, the second terminal can perform a click operation in the second floating window, and when the second terminal detects the click operation on the second floating window, a cancel instruction can be sent to the first terminal, so that the first terminal stops sending the remaining part of the target file to the second terminal based on the WIFI.
Optionally, after detecting a click operation on the second floating window, the method further includes:
and displaying sixth target information through the second floating window, wherein the sixth target information is used for indicating that the transmission process of the target file is cancelled.
In the embodiment of the application, after the second terminal detects the click operation on the second floating window, and when the first terminal stops sending the remaining part of the target file to the second terminal based on the WIFI, sixth target information can be displayed in the second floating window, a user can know that the transmission process of the target file is cancelled based on the sixth target information, and the user experience is improved.
In a third aspect, an embodiment of the present application provides a first terminal, where the first terminal includes:
an acquisition unit configured to acquire device information of a second terminal through NFC;
the establishing unit is used for establishing a trust relationship with the second terminal based on the equipment information of the second terminal, wherein the trust relationship comprises the establishment of a binding relationship between the first terminal and the second terminal, the first terminal and the second terminal establish Bluetooth connection and WIFI connection, and the binding relationship is maintained through Bluetooth connection;
and the sending unit is used for sequentially sending the target files to the second terminal based on the WIFI when the binding relationship is determined to be in an effective state and sending instructions for the target files are sequentially detected.
Optionally, the first terminal further includes:
the starting unit is used for starting the first floating window when the file transmission function is detected to be started;
and the display unit is used for displaying first target information through the first floating window, and the first target information is used for prompting a standard operation step of establishing the trust relationship between the first terminal and any terminal.
Optionally, the display unit is further configured to:
and displaying second target information through the first floating window, wherein the second target information is used for prompting the first terminal and the second terminal to establish the trust relationship.
Optionally, the sending unit includes:
and the sending subunit is configured to, for any one of the target files, send the target file to the second terminal based on the WIFI when it is determined that the binding relationship is in the valid state and it is detected that the target file is moved into the first floating window.
Optionally, the target file has attribute information, the attribute information at least includes a file name and a file type of the target file, and the sending subunit is specifically configured to:
when the binding relation is determined to be in the effective state and the target file is detected to be moved into the first floating window, sending the attribute information to the second terminal based on the WIFI;
and when an instruction that the second terminal agrees to receive the target file is received, the target file is sent to the second terminal based on the WIFI.
Optionally, the display unit is further configured to:
and in the process of sending the target file to the second terminal based on the WIFI, displaying the sending progress of the target file in the first floating window.
Optionally, the attribute information further includes a total number of bytes corresponding to the target file, and the display unit is specifically configured to:
determining the actual number of bytes to which the target file has been currently sent;
calculating a percentage between the actual number of bytes and the total number of bytes;
displaying the percentage within the first floating window.
Optionally, the first terminal further includes:
a stopping unit, configured to, in a process of sending the target file to the second terminal based on the WIFI, stop sending the remaining portion of the target file to the second terminal based on the WIFI if a click operation for the first floating window is detected; or
A receiving unit, configured to receive a cancel instruction sent by the second terminal, where the cancel instruction is used to cause the first terminal to stop sending the remaining part of the target file to the second terminal based on the WIFI;
the stopping unit is further configured to stop sending the remaining part of the target file to the second terminal based on the WIFI in response to the cancelling instruction.
Optionally, the display unit is further configured to:
and displaying third target information through the first floating window, wherein the third target information is used for indicating that the transmission process of the target file is cancelled.
In a fourth aspect, an embodiment of the present application provides a second terminal, where the second terminal includes:
an acquisition unit configured to acquire device information of a first terminal through NFC;
the establishing unit is used for establishing a trust relationship with the first terminal based on the equipment information of the first terminal, wherein the trust relationship comprises the establishment of a binding relationship between the second terminal and the first terminal, the second terminal establishes Bluetooth connection and WIFI connection with the first terminal, and the binding relationship is maintained through Bluetooth connection;
and the receiving unit is used for sequentially receiving the plurality of target files sent by the first terminal based on the WIFI when the binding relationship is determined to be in an effective state.
Optionally, the second terminal further includes:
the opening unit is used for opening the second floating window when the file transmission function is detected to be opened;
and the display unit is used for displaying third target information through the second floating window, and the third target information is used for prompting a standard operation step of establishing the trust relationship between the second terminal and any terminal.
Optionally, the display unit is further configured to:
and displaying fourth target information through the second floating window, wherein the fourth target information is used for prompting the second terminal to establish the trust relationship with the first terminal.
Optionally, each of the plurality of target files has attribute information, where the attribute information at least includes a file name and a file type of the corresponding target file, and the receiving unit is specifically configured to:
for any target file, when the binding relation is determined to be in the effective state, receiving the attribute information corresponding to the target file sent by the first terminal based on the WIFI;
displaying the attribute information in the second floating window;
when a preset operation aiming at the attribute information is detected, sending an instruction of agreeing to receive the target file to the first terminal based on the WIFI, wherein the preset operation is to move the attribute information out of the second floating window;
and receiving the target file sent by the first terminal based on the WIFI.
Optionally, the display unit is further configured to:
and in the process of receiving the target file sent by the first terminal based on the WIFI, displaying the received receiving progress of the target file in the second floating window.
Optionally, the attribute information further includes a total number of bytes corresponding to the target file, and the display unit is specifically configured to:
determining the actual byte number currently received by the target file;
calculating a percentage between the actual number of bytes and the total number of bytes;
displaying the percentage within the second floating window.
Optionally, the second terminal further includes:
and the rejecting unit is used for rejecting to send other files to the first terminal based on the WIFI if other files are detected to be moved into the second floating window in the process of receiving the target file sent by the first terminal based on the WIFI.
Optionally, the second terminal further includes:
a sending unit, configured to send, to the first terminal, a cancel instruction if a second preset operation for the second floating window is detected in a process of receiving the target file sent by the first terminal based on the WIFI, where the cancel instruction is used to enable the first terminal to stop sending the remaining part of the target file to the second terminal based on the WIFI.
Optionally, the display unit is further configured to:
and displaying sixth target information through the second floating window, wherein the sixth target information is used for indicating that the transmission process of the target file is cancelled.
In a fifth aspect, an embodiment of the present application provides an electronic device, which includes at least one processor and a memory connected to the at least one processor, and the at least one processor is configured to implement the steps of the method according to any one of the first aspect or the second aspect when executing a computer program stored in the memory.
In a sixth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method according to any one of the first aspect or the second aspect.
It should be understood that the third to sixth aspects of the embodiment of the present invention are consistent with the technical solutions of the first to second aspects of the embodiment of the present invention, and the beneficial effects obtained by the aspects and the corresponding possible implementation manners are similar and will not be described again.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present specification, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a file transmission method according to an embodiment of the present application;
fig. 2 is a schematic view of a first floating window provided in an embodiment of the present application;
FIG. 3 is a schematic view of a second floating window provided in an embodiment of the present application;
FIG. 4 is a schematic view of a first and a second floating window according to an embodiment of the present disclosure;
FIG. 5 is a schematic view of a first floating window according to an embodiment of the present disclosure;
FIG. 6 is a schematic view of a second floating window provided in accordance with an embodiment of the present application;
FIG. 7 is a schematic view of a second floating window provided in accordance with an embodiment of the present application;
FIG. 8 is a schematic view of a first floating window and a second floating window provided in accordance with an embodiment of the present application;
FIG. 9 is a schematic view of a first floating window and a second floating window provided in accordance with an embodiment of the present application;
FIG. 10 is a schematic view of a first floating window provided in accordance with an embodiment of the present application;
FIG. 11 is a schematic view of a second floating window according to an embodiment of the present application;
fig. 12 is a schematic flowchart of a file transmission method according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of a first terminal according to an embodiment of the present application;
fig. 14 is a schematic structural diagram of a second terminal according to an embodiment of the present application;
fig. 15 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 16 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
[ detailed description ] embodiments
For better understanding of the technical solutions in the present specification, the following detailed description of the embodiments of the present application is provided with reference to the accompanying drawings.
It should be understood that the described embodiments are only a few embodiments of the present specification, and not all embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification without any inventive step are within the scope of the present specification.
The terminology used in the embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the specification. As used in the examples of this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
With the development of communication technology, the operation of transmitting files across screens is realized among terminals, so that the files such as documents, pictures, videos and the like can be transmitted among the terminals, and the files can be conveniently shared among different terminals.
The inventor of the application discovers that when cross-screen file transmission is to be achieved, the sending terminal serves as a main device to initiate connection with the receiving terminal, the sending terminal sends the selected files to the receiving terminal after the connection is successful, when a plurality of files are sent, the sending terminal needs to search again and bind the receiving terminal every time the files are sent, operation is complex, and file transmission efficiency is low.
In view of this, an embodiment of the present application provides a file transmission method, in which a first terminal may obtain device information of a second terminal through NFC, and a trust relationship is established between the device information of the second terminal and the second terminal, where the trust relationship includes that the first terminal establishes a binding relationship with the second terminal, the first terminal establishes a bluetooth connection with the second terminal and establishes a bluetooth connection with a WIFI connection, and the binding relationship is maintained through the bluetooth connection, so that when multiple files are transmitted between the first terminal and the second terminal, only multiple target files are sequentially selected on the first terminal and are sequentially sent to the second terminal through the WIFI, and it is not necessary to re-search and bind the second terminal by the first terminal every time a file is sent, an operation flow of transmitting multiple files between terminals is simplified, and efficiency of transmitting multiple files between terminals is effectively improved.
The technical solutions provided by the embodiments of the present application are described below with reference to the accompanying drawings. Referring to fig. 1, a file transmission method provided in an embodiment of the present application is applied to a first terminal, and a flow of the method is described as follows:
step 101: and acquiring the equipment information of the second terminal through NFC.
The first terminal may be considered as a sender of a file, the second terminal may be considered as a receiver of the file, and when the first terminal needs to send a certain file to the second terminal, the first terminal needs to know device information of the second terminal, so as to establish a connection with the second terminal.
As a possible implementation manner, both the first terminal and the second terminal may start an NFC function, and then the first terminal may acquire the device information of the second terminal through Near Field Communication (NFC), and meanwhile, the second terminal may also consider that the device information of the first terminal is acquired through NFC.
Step 102: and establishing a trust relationship with the second terminal based on the equipment information of the second terminal, wherein the trust relationship comprises a binding relationship established between the first terminal and the second terminal, a Bluetooth connection and a WIFI connection established between the first terminal and the second terminal, and the binding relationship is maintained through the Bluetooth connection.
In the embodiment of the application, after the first terminal and the second terminal mutually acquire the device information of the other side, the first terminal and the second terminal can be bound, and the binding relationship is maintained, so that the situation that the file needs to be bound again every time the file is sent to the second terminal in the subsequent process that the first terminal sends the file to the second terminal is avoided, the file sending process is simplified, and the file sending efficiency is improved.
As a possible implementation manner, the first terminal establishes a trust relationship with the second terminal through the device information of the second terminal acquired by the NFC, where the trust relationship may include that the first terminal establishes a binding relationship with the second terminal, on this basis, the first terminal establishes a bluetooth connection and a WIFI connection with the second terminal, and maintains the binding relationship through the bluetooth connection, that is, the first terminal and the second terminal are in a bluetooth connection state, and the binding relationship between the first terminal and the second terminal may be maintained.
Step 103: and when the binding relation is determined to be in an effective state, and sending instructions for the target files are sequentially detected, and the target files are sequentially sent to the second terminal based on the WIFI.
In the embodiment of the application, after the first terminal and the second terminal establish the trust relationship, the first terminal can send a series of files to the second terminal without repeatedly binding with the second terminal.
As a possible implementation manner, when the binding relationship between the first terminal and the second terminal is in an effective state, if the first terminal detects sending instructions of a plurality of target files in sequence, the first terminal may send the plurality of target files to the second terminal in sequence based on WIFI, and it should be understood that file transmission based on WIFI is a faster file transmission manner, and efficiency of file transmission between terminals can be improved.
The following describes in detail how the first terminal transmits any one of the object files to the second terminal.
Firstly, a user of a first terminal can open a file transmission function of the first terminal, and it should be understood that when the file transmission function is opened, a bluetooth switch and a WIFI switch are also opened at the same time, and when the first terminal detects that the file transmission function of the first terminal is opened, please refer to fig. 2, the first terminal can open a first floating window, and first target information is displayed in the first floating window, and the first target information is used for prompting a standard operation step of establishing a trust relationship between the first terminal and any terminal. For example, a standard operation procedure may be that two terminals make contact. Similarly, the user of the second terminal may open the file transfer function of the second terminal, and when the second terminal detects that the file transfer function of the second terminal is opened, please refer to fig. 3, the second terminal may open a second floating window, and second target information may be displayed in the second floating window, where the second target information is used to prompt a standard operation step of establishing a trust relationship between the second terminal and any terminal. For example, a standard operation step may be that two terminals make contact.
Referring to fig. 4, after the first terminal contacts the second terminal, a trust relationship is established between the first terminal and the second terminal, and the first floating window on the first terminal displays second target information for prompting a user of the first terminal that the trust relationship between the first terminal and the second terminal is established. For example, the second target information may be an established trust relationship, and the file is moved to this location for transmission. Similarly, after the second terminal is in contact with the first terminal, a trust relationship is established between the second terminal and the first terminal, and a second floating window on the second terminal displays fifth target information for prompting a user of the second terminal that the trust relationship between the second terminal and the first terminal is established. For example, the fifth target information may be an established trust relationship, and move to where the file is transferred. It should be understood that the trust relationship established between the first terminal and the second terminal includes that the first terminal establishes a binding relationship with the second terminal, the first terminal establishes a bluetooth connection with the second terminal, and a WIFI connection, and the binding relationship is maintained through the bluetooth connection, that is, the binding relationship between the first terminal and the second terminal can be maintained when the first terminal and the second terminal are in a bluetooth connection state, so that the first terminal and the second terminal do not need to be in a contact state all the time when transmitting a file.
Then, please refer to fig. 5, when the binding relationship between the first terminal and the second terminal is in an effective state, the user may select the target file in the first terminal, and move the target file into the first floating window, and when the first terminal detects that the target file is moved into the first floating window, send the target file to the second terminal based on WIFI, and at this time, the second terminal may receive the target file based on WIFI, thereby completing the transmission of the target file from the first terminal to the second terminal.
In some embodiments, in order to prevent a user of the second terminal from receiving a file that is not needed by the user, when the first terminal determines that the binding relationship between the first terminal and the second terminal is in an effective state and detects that the target file is moved into the first floating window, the attribute information of the target file may be sent to the second terminal based on WIFI. It should be understood that the attribute information may be considered to carry the file name, the file type, and the like of the target file. Referring to fig. 6, the second terminal may display the attribute information received based on the WIFI in the second floating window, and then it may be determined that the user of the second terminal may determine according to the attribute information displayed in the second floating window, and whether the target file to be currently sent to the second terminal by the first terminal is a file required by the user of the second terminal. If the user of the second terminal determines that the target file corresponding to the attribute information is a file required by the user, a preset operation may be performed on the attribute information displayed in the second floating window, for example, please refer to fig. 7, where the preset operation may be a moving operation of moving the attribute information out of the second floating window, and at this time, the second terminal is triggered to send an instruction for agreeing to receive the target file corresponding to the attribute information to the first terminal. After the first terminal receives the instruction, the user who knows the second terminal can agree that the second terminal receives the target file, and the target file can be sent to the second terminal based on WIFI. At the moment, the second terminal can receive the target file based on WIFI, and therefore transmission of the target file from the first terminal to the second terminal is completed.
It should be understood that the first terminal and the second terminal may transmit files to each other, but for example, to ensure that the transceiving process is performed smoothly, it may be considered that any one of the first terminal and the second terminal may be in only one state at the same time, that is, only in a state of receiving a file or only in a state of transmitting a file at the same time. In the above embodiment, when the second terminal receives the target file based on WIFI, if it is detected that another file is moved to the second floating window, that is, the user of the second terminal wants to send another file to the first terminal through the second terminal, at this time, the second terminal may refuse to send the another file to the first terminal based on WIFI.
Further, in the transmission process of the target file, in order to enable the user to know whether the transmission process is normally performed, the first terminal may display the transmission progress of the target file in the first floating window, and the second terminal may display the reception progress of the target file in the second floating window.
For example, the sending progress and the receiving progress of the target file are both displayed by percentages, and the attribute information of the target file includes the total byte number of the target file. The first terminal determines the actual number of bytes of the target file which is sent currently, then calculates the percentage between the actual number of bytes and the total number of bytes, and displays the percentage representing the sending progress in the first suspension window; the second terminal determines the actual number of bytes currently received by the target file, calculates the percentage between the actual number of bytes and the total number of bytes, and displays the percentage representing the receiving progress in the second floating window.
For example, referring to fig. 8, the total number of bytes corresponding to the target file is 100, the first terminal determines that the actual number of bytes currently sent by the target file is 30, and then calculates the percentage between the actual number of bytes 30 and the total number of bytes 100, and the obtained result is 30%, and then 30% is displayed in the first floating window; the second terminal determines that the actual byte number currently received by the target file is 30, then calculates the percentage between the actual byte number 30 and the total byte number 100, and the obtained result is 30%, and then displays 30% in the second floating window.
Referring to fig. 9, after the transmission of the target file is completed, the first floating window will display that the transmission is completed, and the second floating window will display that the reception is completed, at this time, the next target file can be transmitted between the first terminal and the second terminal, and the transmission operation is the same as that of the target file, and is not described herein again.
Further, in the process of sending the target file from the first terminal to the second terminal, if the user of the first terminal needs to stop the first terminal from sending the target file to the second terminal, the user may perform a click operation in the first floating window, and after the first terminal detects the click operation on the first floating window, the user stops sending the remaining part of the target file to the second terminal based on the WIFI, at this time, please refer to fig. 10, the first floating window may display third target information for indicating to the user of the first terminal that the transmission process of the target file is cancelled. And the first terminal also sends a cancel instruction to the second terminal based on the WIFI, and the cancel instruction is used for indicating the second terminal that the first terminal stops sending the rest part of the target file based on the WIFI. After receiving the cancel instruction, the second terminal may respond to the cancel instruction, and display sixth target information in the second floating window, so as to indicate to a user of the second terminal that the transmission process of the target file is cancelled.
Similarly, in the process that the second terminal receives the target file from the first terminal based on the WIFI, if the user of the second terminal needs to stop the second terminal from receiving the target file sent by the first terminal, a click operation may be performed in the second floating window, if the second terminal detects the click operation on the second floating window, a cancel instruction is sent to the first terminal, where the cancel instruction is used to stop the first terminal from sending the remaining portion of the target file to the second terminal based on the WIFI, at this time, please refer to fig. 11, the second floating window may display sixth target information for indicating to the user of the second terminal that the transmission process of the target file is cancelled, and at the same time, after the first terminal receives the cancel instruction, the first terminal may display third target information in the first floating window in response to the cancel instruction, and be used to indicate to the user of the first terminal that the transmission process of the target file is cancelled.
Referring to fig. 12, based on the same inventive concept, an embodiment of the present application provides a file transmission method, which is applied to a second terminal, and a flow of the method is described as follows:
step 201: and acquiring the equipment information of the first terminal through NFC.
Step 202: and establishing a trust relationship with the first terminal based on the equipment information of the first terminal, wherein the trust relationship comprises the establishment of a binding relationship between the second terminal and the first terminal, the establishment of Bluetooth connection and WIFI connection between the second terminal and the first terminal, and the maintenance of the binding relationship through Bluetooth connection.
Step 203: and when the binding relationship is determined to be in an effective state, sequentially receiving a plurality of target files sent by the first terminal based on the WIFI.
The specific implementation of steps 201 to 203 may refer to the specific content of the first terminal side, and will not be described herein.
Referring to fig. 13, based on the same inventive concept, an embodiment of the present application provides a first terminal, including: an acquiring unit 301, a establishing unit 302 and a sending unit 303.
An acquiring unit 301 configured to acquire device information of a second terminal through NFC;
the establishing unit 302 is configured to establish a trust relationship with the second terminal based on the device information of the second terminal, where the trust relationship includes that the first terminal establishes a binding relationship with the second terminal, the first terminal establishes a bluetooth connection and a WIFI connection with the second terminal, and the binding relationship is maintained through the bluetooth connection;
and the sending unit 303 is configured to, when it is determined that the binding relationship is in an effective state, sequentially detect sending instructions for the plurality of target files, and sequentially send the plurality of target files to the second terminal based on the WIFI.
Optionally, the first terminal further includes:
the starting unit is used for starting the first floating window when the file transmission function is detected to be started;
and the display unit is used for displaying first target information through the first floating window, and the first target information is used for prompting a standard operation step of establishing a trust relationship between the first terminal and any terminal.
Optionally, the display unit is further configured to:
and displaying second target information through the first floating window, wherein the second target information is used for prompting the first terminal to establish a trust relationship with the second terminal.
Optionally, the sending unit 303 includes:
and the sending subunit is used for sending the target file to the second terminal based on the WIFI when the binding relation is determined to be in an effective state and the target file is detected to be moved into the first floating window.
Optionally, the target file has attribute information, the attribute information at least includes a file name and a file type of the target file, and the sending subunit is specifically configured to:
when the binding relation is determined to be in an effective state and the target file is detected to be moved into the first floating window, sending the attribute information to the second terminal based on the WIFI;
and when an instruction that the second terminal agrees to receive the target file is received, the target file is sent to the second terminal based on the WIFI.
Optionally, the display unit is further configured to:
and in the process of sending the target file to the second terminal based on the WIFI, displaying the sent sending progress of the target file in the first floating window.
Optionally, the attribute information further includes a total number of bytes corresponding to the target file, and the display unit is specifically configured to:
determining the actual number of bytes to which the target file has been currently sent;
calculating the percentage between the actual number of bytes and the total number of bytes;
the percentage is displayed within the first floating window.
Optionally, the first terminal further includes:
the stopping unit is used for stopping sending the rest part of the target file to the second terminal based on the WIFI if the dot product operation aiming at the first floating window is detected in the process of sending the target file to the second terminal based on the WIFI; or
The receiving unit is used for receiving a cancelling instruction sent by the second terminal, and the cancelling instruction is used for enabling the first terminal to stop sending the rest part of the target file to the second terminal based on WIFI;
and the stopping unit is also used for responding to the canceling instruction and stopping transmitting the rest part of the target file to the second terminal based on the WIFI.
Optionally, the display unit is further configured to:
and displaying third target information through the first floating window, wherein the third target information is used for indicating that the transmission process of the target file is cancelled.
Referring to fig. 14, based on the same inventive concept, an embodiment of the present application provides a second terminal, including: an obtaining unit 401, a creating unit 402 and a receiving unit 403.
An obtaining unit 401, configured to obtain device information of a first terminal through NFC;
an establishing unit 402, configured to establish a trust relationship with a first terminal based on device information of the first terminal, where the trust relationship includes that a second terminal establishes a binding relationship with the first terminal, the second terminal establishes a bluetooth connection and a WIFI connection with the first terminal, and the binding relationship is maintained through the bluetooth connection;
a receiving unit 403, configured to sequentially receive, based on WIFI, multiple target files sent by the first terminal when it is determined that the binding relationship is in an effective state.
Optionally, the second terminal further includes:
the opening unit is used for opening the second floating window when the file transmission function is detected to be opened;
and the display unit is used for displaying third target information through the second floating window, and the third target information is used for prompting a standard operation step of establishing a trust relationship between the second terminal and any terminal.
Optionally, the display unit is further configured to:
and displaying fourth target information through the second floating window, wherein the fourth target information is used for prompting the second terminal to establish a trust relationship with the first terminal.
Optionally, each of the multiple target files has attribute information, where the attribute information at least includes a file name and a file type of a corresponding target file, and the receiving unit 403 is specifically configured to:
for any target file, receiving attribute information corresponding to the target file sent by a first terminal based on WIFI when the binding relation is determined to be in an effective state;
displaying the attribute information in a second floating window;
when preset operation aiming at the attribute information is detected, sending an instruction of agreeing to receive the target file to the first terminal based on WIFI, wherein the preset operation is to move the attribute information out of the second floating window;
and receiving the target file sent by the first terminal based on WIFI.
Optionally, the display unit is further configured to:
and in the process of sending the target file to the second terminal based on the WIFI, displaying the received receiving progress of the target file in the second floating window.
Optionally, the attribute information further includes a total number of bytes corresponding to the target file, and the display unit is specifically configured to:
determining the actual byte number currently received by the target file;
calculating the percentage between the actual byte number and the total byte number;
for displaying the percentage in the second floating window.
Optionally, the second terminal further includes:
and the detection unit is used for refusing to send other files to the first terminal based on the WIFI if other files are detected to be moved into the second floating window in the process of receiving the target file sent by the first terminal based on the WIFI.
Optionally, the second terminal further includes:
and the sending unit is used for sending a cancelling instruction to the first terminal if a second preset operation aiming at the second floating window is detected in the process of receiving the target file sent by the first terminal based on the WIFI, wherein the cancelling instruction is used for enabling the first terminal to stop sending the rest part of the target file to the second terminal based on the WIFI.
Optionally, the display unit is further configured to:
and displaying sixth target information through the second floating window, wherein the sixth target information is used for indicating that the transmission process of the target file is cancelled.
Referring to fig. 15, based on the same inventive concept, an embodiment of the present application further provides an electronic device 100, where the electronic device 100 may include at least one processor, and the at least one processor is configured to execute a computer program stored in a memory, so as to implement the steps of the file transmission method provided in the embodiment of the present application and shown in fig. 1.
Optionally, the processor 110 may be specifically a central processing unit, a specific ASIC, and may be one or more integrated circuits for controlling the execution of the program.
Optionally, the electronic device 100 may further comprise a memory connected to the at least one processor, the memory may comprise ROM, RAM and disk memory. The memory is used for storing data required by the processor during operation, that is, storing instructions executable by the at least one processor, and the at least one processor executes the method shown in fig. 1 by executing the instructions stored in the memory. Wherein, the number of the memories is one or more.
The physical devices corresponding to the obtaining unit 301, the establishing unit 302, and the sending unit 303 may be the aforementioned processors. The electronic device may be configured to perform the method provided by the embodiment shown in fig. 1. Therefore, regarding the functions that can be realized by the functional modules in the electronic device, reference may be made to the corresponding description in the embodiment shown in fig. 1, which is not repeated herein.
The electronic device 100 may be an intelligent electronic device such as a smart phone and a tablet computer, and the embodiment does not limit the form of the electronic device.
For example, fig. 15 illustrates a schematic structure of the electronic device 100 by taking a smart phone as an example, as shown in fig. 15, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identity Module (SIM) card interface 195, and the like.
It is to be understood that the illustrated structure of the embodiment of the present application does not specifically limit the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The controller can generate an operation control signal according to the instruction operation code and the time sequence signal to finish the control of instruction fetching and instruction execution.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
The charging management module 140 is configured to receive charging input from a charger.
The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150 and antenna 2 is coupled to wireless communication module 160 so that electronic device 100 can communicate with networks and other devices through wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), general Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
The electronic device 100 implements display functions via the GPU, the display screen 194, and the application processor.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel.
The ISP is used to process the data fed back by the camera 193.
The camera 193 is used to capture still images or video.
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to perform fourier transform or the like on the frequency bin energy.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The internal memory 121 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (such as audio data, phone book, etc.) created during use of the electronic device 100, and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The electronic device 100 may implement audio functions via the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal.
The speaker 170A, also called a "horn", is used to convert the audio electrical signal into an acoustic signal.
The receiver 170B, also called "earpiece", is used to convert the electrical audio signal into a sound signal.
The microphone 170C, also referred to as a "microphone," is used to convert sound signals into electrical signals.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be the USB interface 130, or may be a 3.5mm open mobile electronic device platform (OMTP) standard interface, a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The keys 190 include a power-on key, a volume key, and the like.
The motor 191 may generate a vibration cue.
Indicator 192 may be an indicator light that may be used to indicate a state of charge, a change in charge, or a message, missed call, notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card can be brought into and out of contact with the electronic apparatus 100 by being inserted into the SIM card interface 195 or being pulled out of the SIM card interface 195. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support a Nano SIM card, a Micro SIM card, a SIM card, etc. The same SIM card interface 195 can be inserted with multiple cards at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as communication and data communication. In some embodiments, the electronic device 100 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores computer instructions, and when the computer instructions are executed on a computer, the computer is caused to execute the method as described in fig. 1.
Referring to fig. 16, based on the same inventive concept, an embodiment of the present application further provides an electronic device 200, where the electronic device 200 may include at least one processor, and the at least one processor is configured to execute a computer program stored in a memory, so as to implement the steps of the file transmission method shown in fig. 12 provided by the embodiment of the present application.
Alternatively, the processor 210 may be a central processing unit, a specific ASIC, and may be one or more integrated circuits for controlling the execution of programs.
Optionally, the electronic device 200 may further comprise a memory connected to the at least one processor, the memory may comprise ROM, RAM and disk memory. The memory is used for storing data required by the processor during operation, that is, storing instructions executable by the at least one processor, and the at least one processor executes the method shown in fig. 12 by executing the instructions stored in the memory. Wherein the number of the memories is one or more.
The physical devices corresponding to the obtaining unit 401, the establishing unit 402, and the receiving unit 403 may be the aforementioned processors. The electronic device may be configured to perform the method provided by the embodiment shown in fig. 12. Therefore, regarding the functions that can be realized by the functional modules in the electronic device, reference may be made to the corresponding description in the embodiment shown in fig. 12, and details are not repeated.
The electronic device 200 may be an intelligent electronic device such as a smart phone or a tablet computer, and the form of the electronic device is not limited in this embodiment.
For example, fig. 16 illustrates a schematic structural diagram of the electronic device 200 by taking a smart phone as an example, as shown in fig. 16, the electronic device 200 may include a processor 210, an external memory interface 220, an internal memory 221, a Universal Serial Bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, a sensor module 280, a button 290, a motor 291, an indicator 292, a camera 293, a display screen 294, a Subscriber Identity Module (SIM) interface 295, and the like.
It is to be understood that the illustrated structure of the embodiment of the present application does not specifically limit the electronic device 200. In other embodiments of the present application, the electronic device 200 may include more or fewer components than shown, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The controller can generate an operation control signal according to the instruction operation code and the time sequence signal to finish the control of instruction fetching and instruction execution.
A memory may also be provided in processor 210 for storing instructions and data. In some embodiments, the memory in processor 210 is a cache memory. The memory may hold instructions or data that have just been used or recycled by processor 210. If the processor 210 needs to use the instruction or data again, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 210, thereby increasing the efficiency of the system.
In some embodiments, processor 210 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
The charge management module 240 is configured to receive a charging input from a charger.
The power management module 241 is used to connect the battery 242, the charging management module 240 and the processor 210.
In some embodiments, antenna 1 of electronic device 200 is coupled to mobile communication module 250 and antenna 2 is coupled to wireless communication module 260, such that electronic device 200 may communicate with networks and other devices via wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), general Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
The electronic device 200 implements display functions via the GPU, the display screen 294, and the application processor.
The display screen 294 is used to display images, video, and the like. The display screen 294 includes a display panel.
The ISP is used to process the data fed back by the camera 293.
The camera 293 is used to capture still images or video.
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the electronic device 200 selects a frequency bin, the digital signal processor is used to perform fourier transform or the like on the frequency bin energy.
Video codecs are used to compress or decompress digital video. The electronic device 200 may support one or more video codecs. In this way, the electronic device 200 may play or record video in a variety of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The external memory interface 220 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device 200. The external memory card communicates with the processor 210 through the external memory interface 220 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
Internal memory 221 may be used to store computer-executable program code, including instructions. The internal memory 221 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (e.g., audio data, phone book, etc.) created during use of the electronic device 200, and the like. In addition, the internal memory 221 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like. The processor 210 executes various functional applications of the electronic device 200 and data processing by executing instructions stored in the internal memory 221 and/or instructions stored in a memory provided in the processor.
Electronic device 200 may implement audio functions via audio module 270, speaker 270A, receiver 270B, microphone 270C, headphone interface 270D, and an application processor, among other things. Such as music playing, recording, etc.
The speaker 270A, also called a "horn", is used to convert an audio electrical signal into an acoustic signal.
The receiver 270B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal.
The microphone 270C, also referred to as a "microphone," is used to convert acoustic signals into electrical signals.
The headphone interface 270D is used to connect wired headphones. The headset interface 270D may be the USB interface 230, or may be an open mobile electronic device platform (OMTP) standard interface of 3.5mm, or a Cellular Telecommunications Industry Association (CTIA) standard interface.
The keys 290 include a power-on key, a volume key, etc.
The motor 291 may generate a vibration cue.
Indicator 292 may be an indicator light that may be used to indicate a state of charge, a change in charge, or may be used to indicate a message, missed call, notification, etc.
The SIM card interface 295 is used to connect a SIM card. The SIM card can be attached to and detached from the electronic apparatus 200 by being inserted into the SIM card interface 295 or being pulled out from the SIM card interface 295. The electronic device 200 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 295 may support a Nano SIM card, a Micro SIM card, a SIM card, etc. Multiple cards can be inserted into the same SIM card interface 295 at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 295 may also be compatible with different types of SIM cards. The SIM card interface 295 may also be compatible with external memory cards. The electronic device 200 interacts with the network through the SIM card to implement functions such as communication and data communication. In some embodiments, the electronic device 200 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the electronic device 200 and cannot be separated from the electronic device 200.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores computer instructions, and when the computer instructions are executed on a computer, the computer is caused to execute the method as described in fig. 12.
The above description is only a preferred embodiment of the present disclosure, and should not be taken as limiting the present disclosure, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.
Claims (22)
1. A file transmission method is applied to a first terminal, and comprises the following steps:
acquiring equipment information of a second terminal through NFC;
establishing a trust relationship with the second terminal based on the device information of the second terminal, wherein the trust relationship comprises a binding relationship between the first terminal and the second terminal, the first terminal and the second terminal establish a Bluetooth connection and a WIFI connection, and the binding relationship is maintained through the Bluetooth connection;
and when the binding relation is determined to be in an effective state and sending instructions for a plurality of target files are sequentially detected, the plurality of target files are sequentially sent to the second terminal based on the WIFI.
2. The method of claim 1, wherein before acquiring the device information of the second terminal through NFC, the method further comprises:
when the file transmission function is detected to be started, starting a first floating window;
and displaying first target information through the first floating window, wherein the first target information is used for prompting a standard operation step of establishing the trust relationship between the first terminal and any terminal.
3. The method of claim 2, wherein after establishing the trust relationship with the second terminal based on the device information of the second terminal, the method further comprises:
and displaying second target information through the first floating window, wherein the second target information is used for prompting the first terminal and the second terminal to establish the trust relationship.
4. The method according to claim 2 or 3, wherein when it is determined that the binding relationship is in a valid state and a sending instruction for a plurality of target files is sequentially detected, sequentially sending the plurality of target files to the second terminal based on the WIFI comprises:
and for any target file, when the binding relation is determined to be in the effective state and the target file is detected to be moved into the first floating window, sending the target file to the second terminal based on the WIFI.
5. The method of claim 4, wherein the target file has attribute information, the attribute information at least includes a file name and a file type of the target file, and when it is determined that the binding relationship is in the valid state and it is detected that the target file is moved into the target floating window, sending the target file to the second terminal based on the WIFI comprises:
when the binding relation is determined to be in the effective state and the target file is detected to be moved into the first floating window, sending the attribute information to the second terminal based on the WIFI;
and when an instruction that the second terminal agrees to receive the target file is received, the target file is sent to the second terminal based on the WIFI.
6. The method of claim 5, further comprising:
and in the process of sending the target file to the second terminal based on the WIFI, displaying the sent sending progress of the target file in the first floating window.
7. The method of claim 6, wherein the attribute information further includes a total number of bytes corresponding to the target file, and wherein displaying the sent sending progress of the target file in the first floating window comprises:
determining the actual number of bytes to which the target file has been currently sent;
calculating a percentage between the actual number of bytes and the total number of bytes;
displaying the percentage within the first floating window.
8. The method of claim 5, further comprising:
in the process of sending the target file to the second terminal based on the WIFI, if the clicking operation aiming at the first floating window is detected, the remaining part of the target file is stopped to be sent to the second terminal based on the WIFI; or,
receiving a cancel instruction sent by the second terminal, wherein the cancel instruction is used for enabling the first terminal to stop sending the rest part of the target file to the second terminal based on the WIFI;
and responding to the canceling instruction, and stopping sending the rest part of the target file to the second terminal based on the WIFI.
9. The method of claim 8, wherein after ceasing to transmit a remaining portion of the target file to the second terminal based on the WIFI, the method further comprises:
and displaying third target information through the first floating window, wherein the third target information is used for indicating that the transmission process of the target file is cancelled.
10. A file transmission method is applied to a second terminal, and comprises the following steps:
acquiring equipment information of a first terminal through NFC;
establishing a trust relationship with the first terminal based on the equipment information of the first terminal, wherein the trust relationship comprises a binding relationship between the second terminal and the first terminal, the second terminal establishes a Bluetooth connection and a WIFI connection with the first terminal, and the binding relationship is maintained through the Bluetooth connection;
and when the binding relationship is determined to be in an effective state, sequentially receiving a plurality of target files sent by the first terminal based on the WIFI.
11. The method of claim 10, wherein before acquiring the device information of the first terminal through NFC, the method comprises:
when the file transmission function is detected to be started, starting a second floating window;
and displaying fourth target information through the second floating window, wherein the fourth target information is used for prompting a standard operation step of establishing the trust relationship between the second terminal and any terminal.
12. The method of claim 11, wherein after establishing the trust relationship with the first terminal based on the device information of the first terminal, the method further comprises:
and displaying fifth target information through the second floating window, wherein the fifth target information is used for prompting the second terminal to establish the trust relationship with the first terminal.
13. The method according to claim 11 or 12, wherein each of the plurality of target files has attribute information, the attribute information at least includes a file name and a file type of the corresponding target file, and when it is determined that the binding relationship is in a valid state, sequentially receiving the plurality of target files transmitted by the first terminal based on the WIFI includes:
for any target file, when the binding relation is determined to be in the effective state, receiving the attribute information corresponding to the target file sent by the first terminal based on the WIFI;
displaying the attribute information in the second floating window;
when a preset operation aiming at the attribute information is detected, sending an instruction of agreeing to receive the target file to the first terminal based on the WIFI, wherein the preset operation is to move the attribute information out of the second floating window;
and receiving the target file sent by the first terminal based on the WIFI.
14. The method of claim 13, further comprising:
and in the process of receiving the target file sent by the first terminal based on the WIFI, displaying the received receiving progress of the target file in the second floating window.
15. The method of claim 14, wherein the attribute information further includes a total number of bytes corresponding to the target file, and wherein displaying the received progress of receipt of the target file in the second floating window comprises:
determining the actual byte number currently received by the target file;
calculating a percentage between the actual number of bytes and the total number of bytes;
displaying the percentage within the second floating window.
16. The method of claim 13, further comprising:
and in the process of receiving the target file sent by the first terminal based on the WIFI, if other files are detected to be moved into the second floating window, refusing to send the other files to the first terminal based on the WIFI.
17. The method of claim 13, further comprising:
in the process of receiving the target file sent by the first terminal based on the WIFI, if a click operation for the second floating window is detected, a cancel instruction is sent to the first terminal, and the cancel instruction is used for enabling the first terminal to stop sending the rest part of the target file to the second terminal based on the WIFI.
18. The method of claim 17, wherein after detecting the click operation on the second floating window, the method further comprises:
and displaying sixth target information through the second floating window, wherein the sixth target information is used for indicating that the transmission process of the target file is cancelled.
19. A first terminal, characterized in that the first terminal comprises:
an acquisition unit configured to acquire device information of a second terminal through NFC;
the establishing unit is used for establishing a trust relationship with the second terminal based on the equipment information of the second terminal, wherein the trust relationship comprises a binding relationship between the first terminal and the second terminal, the first terminal and the second terminal establish Bluetooth connection and WIFI connection, and the binding relationship is maintained through the Bluetooth connection;
and the sending unit is used for sequentially sending the target files to the second terminal based on the WIFI when the binding relationship is determined to be in an effective state and sending instructions for the target files are sequentially detected.
20. A second terminal, characterized in that the second terminal comprises:
an acquisition unit configured to acquire device information of a first terminal through NFC;
the establishing unit is used for establishing a trust relationship with the first terminal based on the equipment information of the first terminal, wherein the trust relationship comprises the establishment of a binding relationship between the second terminal and the first terminal, the establishment of Bluetooth connection and WIFI connection between the second terminal and the first terminal, and the maintenance of the binding relationship through the Bluetooth connection;
and the receiving unit is used for sequentially receiving the plurality of target files sent by the first terminal based on the WIFI when the binding relationship is determined to be in an effective state.
21. An electronic device, characterized in that the electronic device comprises at least one processor and a memory connected to the at least one processor, the at least one processor being configured to implement the steps of the method according to any of claims 1-9 or 10-18 when executing a computer program stored in the memory.
22. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1-9 or 10-18.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211241834.2A CN115633340A (en) | 2022-10-11 | 2022-10-11 | File transmission method, terminal, electronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211241834.2A CN115633340A (en) | 2022-10-11 | 2022-10-11 | File transmission method, terminal, electronic device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115633340A true CN115633340A (en) | 2023-01-20 |
Family
ID=84904476
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211241834.2A Pending CN115633340A (en) | 2022-10-11 | 2022-10-11 | File transmission method, terminal, electronic device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115633340A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116668999A (en) * | 2023-07-24 | 2023-08-29 | 中国电信股份有限公司 | Service transmission method, device, computer equipment, readable storage medium and product |
-
2022
- 2022-10-11 CN CN202211241834.2A patent/CN115633340A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116668999A (en) * | 2023-07-24 | 2023-08-29 | 中国电信股份有限公司 | Service transmission method, device, computer equipment, readable storage medium and product |
CN116668999B (en) * | 2023-07-24 | 2023-11-07 | 中国电信股份有限公司 | Service transmission method, device, computer equipment, readable storage medium and product |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110225563B (en) | Network registration method and equipment | |
WO2021180083A1 (en) | Bluetooth communication system and wireless communication system | |
CN113382363B (en) | Method and device for sending messages based on different networks | |
WO2022033296A1 (en) | Bluetooth communication method, wearable device, and system | |
CN113126948B (en) | Audio playing method and related equipment | |
EP4228374A1 (en) | Service processing method and apparatus in terminal device supporting double cards | |
CN112335294B (en) | Emergency call method and user terminal | |
CN111093110B (en) | HTTP request transmission method and equipment | |
CN115633340A (en) | File transmission method, terminal, electronic device and storage medium | |
WO2024037025A1 (en) | Wireless communication circuit, bluetooth communication switching method, and electronic device | |
WO2023046160A1 (en) | Network access registration method and apparatus, device, and storage medium | |
CN115103304B (en) | Position information calling method and device | |
CN115482821A (en) | Voice control method and device, electronic equipment and storage medium | |
CN113837338A (en) | Detection method, terminal, user identification card, electronic equipment and storage medium | |
CN112399628B (en) | Random access method, electronic equipment and network equipment | |
CN113407076A (en) | Method for starting application and electronic equipment | |
CN114765768A (en) | Network selection method and equipment | |
CN114449492B (en) | Data transmission method and terminal equipment | |
CN114020286A (en) | Application program installation method, terminal, electronic device and storage medium | |
CN115733921B (en) | TWS earphone decoupling sharing method, TWS earphone decoupling sharing device, TWS earphone decoupling sharing equipment, storage medium and program product | |
CN112840680A (en) | Position information processing method and related device | |
CN115643633A (en) | Timing advance adjusting method and device, electronic equipment and storage medium | |
CN118400814A (en) | Interference processing method, device, chip module, electronic equipment and storage medium | |
CN115065651A (en) | Management method and device of conversation message, electronic equipment and storage medium | |
CN114240722A (en) | Image simulation data generation method, electronic device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |