Off-network file transmission method and device, equipment and storage medium
By using QR code technology to transfer files in an offline environment, the data transmission security problem between offline devices is solved, and the security and efficiency of file transfer are achieved.
Patent Information
- Application Number
- CN202410384234.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-01
- Publication Date
- 2025-10-14
AI Technical Summary
In the existing technology, sensitive data units use a completely disconnected network approach, which leads to production obstruction and increased costs, and lacks effective data transmission security methods.
Files are transferred in an offline environment by generating a preparation QR code and a transmission QR code, including opening a data receiving environment on the mobile terminal and cyclically generating a transmission QR code for file transfer until the file transfer end signal is received to stop the process.
It enables file transfer between disconnected devices, ensures data security, avoids information leakage, and reduces work obstacles and costs.
Smart Images

Figure CN120785874A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of data transmission, in particular to a network-disconnection file transmission method, device, equipment and storage medium. BACKGROUND
[0002] In order to avoid hacking and implanting Trojan horses or viruses, many enterprises that are very sensitive to data adopt the method of "complete network disconnection", that is, an independent local area network is formed in the unit, which is not connected with the outside world, and part of the business that needs to access the Internet is processed through another computer independent of the network.
[0003] This method not only brings great obstacles to normal production work, but also increases the corresponding work cost, so a data security transmission method is needed to solve the problem of data transmission security.
[0004] The above content is only used to assist in understanding the technical solutions of the present application, and does not represent the acknowledgement of the above content as prior art. SUMMARY
[0005] The main purpose of the present application is to provide a network-disconnection file transmission method, device, equipment and storage medium, aiming at the technical problem of improving the security of data transmission.
[0006] In order to achieve the above purpose, the present application provides a network-disconnection file transmission method, which comprises the following steps:
[0007] Generating a preparation two-dimensional code according to the to-be-transmitted file information, and sending the preparation two-dimensional code to the mobile terminal to start the data receiving environment of the mobile terminal;
[0008] Cyclically generating a transmission two-dimensional code according to the to-be-transmitted file information, and transmitting the transmission two-dimensional code to the mobile terminal to transmit the to-be-transmitted file information to the mobile terminal based on the transmission two-dimensional code;
[0009] If a file transmission end signal fed back by the mobile terminal is received, the process is stopped.
[0010] Optionally, before generating a preparation two-dimensional code according to the to-be-transmitted file information and sending the preparation two-dimensional code to the mobile terminal to start the data receiving environment of the mobile terminal, it further comprises:
[0011] Obtaining a file sending request, and approving the file sending request to output a corresponding approval result;
[0012] If the approval result is approval, start the file transmission process;
[0013] If the approval result is disapproval, ignore the file sending request.
[0014] Optionally, a preparation two-dimensional code is generated according to the file information to be transmitted, and the preparation two-dimensional code is sent to the mobile terminal to start a data receiving environment of the mobile terminal, and specifically includes:
[0015] The file information to be transmitted is acquired, and corresponding transmission task data is generated according to the file information to be transmitted;
[0016] The preparation two-dimensional code is generated according to the transmission task data;
[0017] The preparation two-dimensional code is sent to the mobile terminal to start a data receiving environment of the mobile terminal.
[0018] Optionally, after the preparation two-dimensional code is sent to the mobile terminal to start a data receiving environment of the mobile terminal, it further includes:
[0019] The mobile terminal starts a file receiving mode, and acquires the preparation two-dimensional code;
[0020] The preparation two-dimensional code is parsed, and a data receiving environment is initialized according to a parsing result.
[0021] Optionally, a transmission two-dimensional code is cyclically generated according to the file information to be transmitted, and the transmission two-dimensional code is transmitted to the mobile terminal to transmit the file information to be transmitted to the mobile terminal based on the transmission two-dimensional code, and specifically includes:
[0022] The transmission two-dimensional code is cyclically generated according to the file information to be transmitted and the transmission task data;
[0023] The transmission two-dimensional code is sequentially displayed with a time delay, so that the transmission two-dimensional code is transmitted to the mobile terminal.
[0024] Optionally, the transmission two-dimensional code is cyclically generated according to the file information to be transmitted and the transmission task data, and specifically includes:
[0025] The file information to be transmitted is segmented according to the transmission task data to obtain a set of file data segments to be transmitted;
[0026] The file data segments to be transmitted in the set of file data segments to be transmitted are sequentially read according to the transmission task data;
[0027] The corresponding transmission two-dimensional code is cyclically generated according to the file data segments to be transmitted.
[0028] Optionally, after the transmission two-dimensional code is sequentially displayed with a time delay so that the transmission two-dimensional code is transmitted to the mobile terminal, it further includes:
[0029] The mobile terminal continuously acquires the transmission two-dimensional codes and performs information recognition on the transmission two-dimensional codes one by one, and outputs corresponding two-dimensional code recognition results.
[0030] If the two-dimensional code recognition result is qualified, the mobile terminal performs information reading on the transmission two-dimensional code, and writes the obtained file data into a file.
[0031] If the two-dimensional code recognition result is unqualified, the mobile terminal performs information recognition on the transmission two-dimensional code again and outputs the corresponding two-dimensional code recognition result.
[0032] If the two-dimensional code recognition results corresponding to all the transmission two-dimensional codes are qualified, the mobile terminal stops the process.
[0033] In addition, to achieve the above-mentioned purpose, the application further provides a broken network file transmission device, which comprises:
[0034] A file preparation module: generating a preparation two-dimensional code according to the information of a file to be transmitted, and sending the preparation two-dimensional code to a mobile terminal to start a data receiving environment of the mobile terminal;
[0035] A file transmission module: generating a transmission two-dimensional code according to the information of the file to be transmitted, and transmitting the transmission two-dimensional code to the mobile terminal to transmit the information of the file to be transmitted to the mobile terminal based on the transmission two-dimensional code;
[0036] A transmission termination module: if a file transmission end signal fed back by the mobile terminal is received, the process is stopped.
[0037] In addition, to achieve the above-mentioned purpose, the application further provides a broken network file transmission device, which comprises a memory, a processor, and a broken network file transmission program stored in the memory and executable on the processor, wherein the broken network file transmission program is configured to implement the steps of the broken network file transmission method as described above.
[0038] In addition, to achieve the above-mentioned purpose, the application further provides a computer readable storage medium storing a computer program, wherein the storage medium stores a broken network file transmission program, and the broken network file transmission program implements the steps of the broken network file transmission method as described above when executed by a processor.
[0039] The application first generates a preparation two-dimensional code according to the to-be-transmitted file information, and sends the preparation two-dimensional code to a mobile terminal to open a data receiving environment of the mobile terminal; then generates a transmission two-dimensional code according to the to-be-transmitted file information, and transmits the transmission two-dimensional code to the mobile terminal to transmit the to-be-transmitted file information to the mobile terminal based on the transmission two-dimensional code; finally, if a file transmission end signal fed back by the mobile terminal is received, the process is stopped. The application first sends relevant file transmission information to the mobile terminal through the preparation two-dimensional code, so that the mobile terminal opens the data receiving environment, and then transmits file data to the mobile terminal through the cyclically generated transmission two-dimensional code, thereby completing the file transmission task, achieving the file transmission purpose between offline devices, and indirectly ensuring data security. BRIEF DESCRIPTION OF DRAWINGS
[0040] Figure 1 is a structure diagram of a file transmission device in an offline state of a hardware running environment related to the embodiment scheme of the application.
[0041] Figure 2 is a flowchart of a first embodiment of a file transmission method in an offline state of the application.
[0042] Figure 3 is a flowchart of a second embodiment of a file transmission method in an offline state of the application.
[0043] Figure 4 is a flowchart of a third embodiment of a file transmission method in an offline state of the application.
[0044] Figure 5 is a flowchart of a fourth embodiment of a file transmission method in an offline state of the application.
[0045] Figure 6 is a structure block diagram of a first embodiment of a file transmission device in an offline state of the application.
[0046] The implementation, functional features and advantages of the application will be further described with reference to the embodiments and the accompanying drawings. DETAILED DESCRIPTION
[0047] It should be understood that the specific embodiments described herein are only used to explain the application, and are not used to limit the application.
[0048] Reference Figure 1 , Figure 1 is a structure diagram of a file transmission device in an offline state of a hardware running environment related to the embodiment scheme of the application.
[0049] As Figure 1As shown, the off-network file transmission device can include a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to realize the connection communication between the components. The user interface 1003 can include a display, an input unit such as a keyboard, and can also include a standard wired interface, a wireless interface. The network interface 1004 can optionally include a standard wired interface, a wireless interface (such as a wireless fidelity (Wi-Fi) interface). The memory 1005 can be a high-speed random access memory (RAM), and can also be a stable non-volatile memory (NVM), such as a disk memory. The memory 1005 can also be a storage device independent of the aforementioned processor 1001.
[0050] Those skilled in the art can understand that Figure 1 The structure shown in the figure does not constitute a limitation on the off-network file transmission device, and can include more or fewer components than the figure, or combine certain components, or different component arrangements.
[0051] As Figure 1 As shown, the memory 1005 as a storage medium can include an operating system, a network communication module, a user interface module, and an off-network file transmission program.
[0052] In Figure 1 In the off-network file transmission device shown, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the off-network file transmission device can be arranged in the off-network file transmission device, and the off-network file transmission device calls the off-network file transmission program stored in the memory 1005 through the processor 1001, and executes the off-network file transmission method provided by the embodiment of the application.
[0053] The embodiment of the application provides an off-network file transmission method, which refers to Figure 2 , Figure 2 The flowchart of the first embodiment of the off-network file transmission method of the application is shown.
[0054] In this embodiment, the off-network file transmission method includes the following steps:
[0055] Step S10: generating a preparation two-dimensional code according to the to-be-transmitted file information, and sending the preparation two-dimensional code to the mobile terminal to start a data receiving environment of the mobile terminal;
[0056] It should be noted that, in the specific implementation, the process of generating the preparation two-dimensional code according to the to-be-transmitted file information is performed on the physical network interruption state server, and the generated preparation two-dimensional code is displayed through a display screen connected to the server, and then captured and acquired by the camera module of the mobile terminal, thereby realizing the transmission of the transmission task information.
[0057] It should be further noted that the preparation two-dimensional code is specifically a data carrier containing to-be-transmitted file format information, which can be parsed by the mobile terminal after being recognized by the mobile terminal, thereby enabling the mobile terminal to acquire relevant format information of the to-be-transmitted file, such as file name, total file size, file segment number, and file segment size.
[0058] It can be understood that, in the specific implementation, the process of generating the preparation two-dimensional code according to the to-be-transmitted file information further includes file preprocessing of the to-be-transmitted file, which includes first compressing the to-be-transmitted file data through a compression algorithm to obtain binary data of the to-be-transmitted file, and then asymmetrically encrypting the binary data of the to-be-transmitted file, thereby finally encoding the to-be-transmitted file information into Base64 data. The compression algorithm can be a GZip compression algorithm (a lossless compression algorithm), and the asymmetric encryption specifically includes generating a pair of unique public key and private key for each internal staff by the server, so that when data encryption is performed, the public key of the staff is used to encrypt the compressed data, and the encrypted binary data is returned.
[0059] Step S20: cyclically generating a transmission two-dimensional code according to the to-be-transmitted file information, and transmitting the transmission two-dimensional code to the mobile terminal to transmit the to-be-transmitted file information to the mobile terminal based on the transmission two-dimensional code;
[0060] It should be noted that, in the specific implementation, the to-be-transmitted file information is first split into multiple file information segments in the server according to a preset file segment size, and then the file information segments are converted into transmission two-dimensional codes in sequence, thereby transmitting the segmented to-be-transmitted file information segments to the mobile terminal in the form of transmission two-dimensional codes, thereby realizing the transmission of the file information.
[0061] It should be further noted that the transmission two-dimensional code is specifically a data carrier containing to-be-transmitted file content information, which can be parsed by the mobile terminal after being recognized by the mobile terminal, thereby enabling the mobile terminal to acquire relevant content information of the to-be-transmitted file, such as file segment number and corresponding file content data.
[0062] Step S30: if a file transmission end signal fed back by the mobile terminal is received, stopping the process.
[0063] It can be understood that in the specific implementation, the generated transmission two-dimensional code corresponding to each file segment is cyclically displayed, rather than displayed only once, that is, when the transmission two-dimensional code corresponding to the last file segment is displayed, the transmission two-dimensional code corresponding to the first file segment is displayed again, and if the mobile terminal completes the entire file receiving task, a feedback signal is sent, thereby indicating that the current file transmission task is completely finished, and the current continuous file transmission process, that is, the cyclic display of the transmission two-dimensional code, can be stopped.
[0064] In the embodiment, the preparation two-dimensional code is generated according to the to-be-transmitted file information, and the preparation two-dimensional code is sent to the mobile terminal to start the data receiving environment of the mobile terminal; the transmission two-dimensional code is cyclically generated according to the to-be-transmitted file information, and the transmission two-dimensional code is transmitted to the mobile terminal to transmit the to-be-transmitted file information to the mobile terminal based on the transmission two-dimensional code; and finally, if the file transmission end signal fed back by the mobile terminal is received, the process is stopped. In the embodiment, the related file transmission information is sent to the mobile terminal through the preparation two-dimensional code, so that the data receiving environment of the mobile terminal is started, the file data is transmitted to the mobile terminal through the cyclically generated transmission two-dimensional code, and the file transmission task is completed, thereby achieving the file transmission purpose between the offline devices and indirectly ensuring the data security.
[0065] Reference Figure 3 , Figure 3 FIG. 2 is a flowchart of a second embodiment of the offline file transmission method of the present application.
[0066] Based on the first embodiment, in the present embodiment, the step S10 further includes the following steps before the step S10:
[0067] Step S00: obtaining a file sending request, and approving the file sending request to output a corresponding approval result;
[0068] It should be noted that in the specific implementation, in consideration of information security, the file sending transmission needs to pass through an internal approval process of the user, and whether the subsequent file sending transmission operation needs to be performed is determined according to the final approval result.
[0069] Step S01: if the approval result is approval, starting a file transmission process;
[0070] It can be understood that if the user internally agrees to the file sending request, that is, the approval result is approval, the server will perform the subsequent file transmission task based on the to-be-transmitted file.
[0071] Step S02: if the approval result is disapproval, ignoring the file sending request.
[0072] It can be understood that if the user internally disagrees with the file sending request, that is, the approval result is not approved, the server will ignore the file sending task.
[0073] The embodiment receives the file sending request and performs corresponding file approval to obtain the corresponding file approval result, thereby realizing the response to the file sending instruction.
[0074] Reference Figure 4 , Figure 4 The flowchart of the third embodiment of the network interruption file transmission method of the application is shown.
[0075] Based on the first embodiment, in the embodiment, the specific process of step S10 includes:
[0076] Step S11: Obtain the to-be-transmitted file information, and generate corresponding transmission task data according to the to-be-transmitted file information;
[0077] It should be noted that in the specific implementation, the transmission task data is specifically generated based on the format information of the to-be-transmitted file, which specifically includes the size information of the to-be-transmitted file, the preset segmentation size information, the total number of file segments, and the file name.
[0078] It should be further noted that in the specific implementation, the preset segmentation size is set by the user according to the user's own needs, and the total number of file segments is calculated based on the total size of the file and the preset segmentation size, which can be expressed as: total size of file / preset segmentation size=file segment quantity, wherein if file size%segment size (remainder) is not equal to 0, then segment quantity+1.
[0079] Step S12: Generate a prepared two-dimensional code according to the transmission task data;
[0080] It can be understood that in the specific implementation, the prepared two-dimensional code can be specifically expressed as:
[0081]
[0082] That is, the prepared two-dimensional code can include file format information such as file name, total file size, file segment number, and file segment size, and these information can be generated in Base64 format through encryption coding, thereby avoiding information leakage.
[0083] Step S13: Send the prepared two-dimensional code to the mobile terminal to start the data receiving environment of the mobile terminal.
[0084] It should be noted that in the specific implementation, the specific process of sending the prepared two-dimensional code to the mobile terminal is that the server generates the prepared two-dimensional code in the form of an image on the display according to the file transmission related data of this time, and then the image is acquired by the camera module of the mobile terminal.
[0085] The embodiment generates corresponding transmission task data according to the file information to be transmitted, and then generates a preparation two-dimensional code, and finally sends the preparation two-dimensional code to the mobile terminal, so as to enable the mobile terminal to open a data receiving environment, thereby providing a basis for subsequent data transmission.
[0086] Further, after the preparation two-dimensional code is sent to the mobile terminal to open the data receiving environment of the mobile terminal, the method further includes: the mobile terminal opens a file receiving mode and acquires the preparation two-dimensional code; the preparation two-dimensional code is analyzed, and a data receiving environment is initialized according to an analysis result.
[0087] It should be noted that in the specific implementation, when the mobile terminal executes the current file transmission task, the mobile terminal opens a data receiving environment initialization process after acquiring the preparation two-dimensional code, and makes corresponding preparations for subsequent file information receiving.
[0088] It should be further noted that in the specific implementation, the data receiving environment initialization process of the mobile terminal can be that the two-dimensional code is acquired through a camera module first, and then the two-dimensional code is identified; if the two-dimensional code is a preparation two-dimensional code, specific information included in the preparation two-dimensional code is read, and the specific information included in the preparation two-dimensional code includes a file name to be transmitted, a file size to be transmitted, and a file segment number to be transmitted; if the two-dimensional code is not a preparation two-dimensional code, a subsequent two-dimensional code is acquired through the camera module again, and a subsequent judgment is made.
[0089] Reference Figure 5 , Figure 5 FIG. 4 is a flowchart of a fourth embodiment of a network disconnection file transmission method.
[0090] Based on the first embodiment, in the embodiment, the specific process of the step S20 includes:
[0091] Step S21: generating a transmission two-dimensional code according to the file information to be transmitted and the transmission task data;
[0092] It should be noted that in the specific implementation, the transmission two-dimensional code is generated by a server based on the current file to be transmitted and the current transmission task data, and the specific process includes data segmentation of the file to be transmitted based on a preset segment size, and data conversion of the obtained file data segments in a file segment order one by one, so as to generate a corresponding transmission two-dimensional code.
[0093] It should be further noted that in the specific implementation, the transmission two-dimensional code is generated in a loop according to the segment order, and the generation process is uninterrupted, and only when the current file transmission task is finally ended, the current process is stopped.
[0094] It can be understood that in the specific implementation, the transmission two-dimensional code can be represented as:
[0095] {
[0096] segmentno: segment number
[0097] segmentdata: segment data
[0098] }
[0099] And the transmission of the two-dimensional code in the cycle generation process needs to read the binary content in each file data segment, and the specific encoding format can be Json format, and then converted into Base64 string, and finally displayed in the form of two-dimensional code.
[0100] Step S22: delay display of the transmission two-dimensional code in sequence, so that the transmission two-dimensional code is transmitted to the mobile terminal.
[0101] It can be understood that in the specific implementation, since the mobile terminal needs a certain reaction time when reading the two-dimensional code, therefore, in the cycle display process of the transmission two-dimensional code, each transmission two-dimensional code has a certain delay display time, for example, each transmission two-dimensional code needs to be delayed for two seconds.
[0102] The embodiment generates corresponding transmission two-dimensional codes based on the transmission file information and the transmission task data, and then transmits them to the mobile terminal through delay display, and finally completes the file transmission task.
[0103] Further, according to the to-be-transmitted file information and the transmission task data, the transmission two-dimensional code is generated in a cycle, specifically including: segmenting the to-be-transmitted file information according to the transmission task data to obtain a set of to-be-transmitted file data segments; reading the to-be-transmitted file data segments in the set of to-be-transmitted file data segments in sequence according to the transmission task data; and generating corresponding transmission two-dimensional codes according to the to-be-transmitted file data segments.
[0104] Further, the transmission two-dimensional code is displayed in sequence, so that the transmission two-dimensional code is transmitted to the mobile terminal, and further includes: the mobile terminal continuously acquires the transmission two-dimensional code and identifies the transmission two-dimensional code one by one, and outputs corresponding two-dimensional code recognition results; if the two-dimensional code recognition result is qualified, the mobile terminal reads the transmission two-dimensional code and writes the read file data into the file; if the two-dimensional code recognition result is unqualified, the mobile terminal re-identifies the transmission two-dimensional code and outputs the corresponding two-dimensional code recognition result; if all the two-dimensional code recognition results corresponding to the transmission two-dimensional codes are qualified, the mobile terminal stops the process.
[0105] It can be understood that in the specific implementation, after the transmission two-dimensional code is transmitted to the mobile terminal, the mobile terminal further includes corresponding file restoration processing according to the received transmission two-dimensional code, which specifically includes converting the Base64 data into binary data of the transmission file, then using a private key to asymmetrically decrypt the binary data of the transmission file to obtain decrypted binary data; finally, using a decompression algorithm corresponding to the data compression process to decompress the decrypted binary data to obtain decompressed binary data, and then saving the decompressed binary data as a file, which is the target transmission file of the current file transmission task.
[0106] It should be noted that in the specific implementation, after the mobile terminal starts receiving the transmission two-dimensional code, the received transmission two-dimensional code will be sequentially identified, and a corresponding subsequent response will be made according to the identification result. The two-dimensional code identification result is qualified, which means that the current identified two-dimensional code is a transmission two-dimensional code and the file information contained in the transmission two-dimensional code has not been read. At this time, the mobile terminal needs to read the transmission two-dimensional code and write the read file segment data into the received file according to the file segment information of the transmission two-dimensional code; the two-dimensional code identification result is unqualified, which means that the current identified two-dimensional code is not a transmission two-dimensional code or the file information contained in the two-dimensional code has been read. At this time, the mobile terminal will ignore the two-dimensional code and continue to identify the subsequent two-dimensional code.
[0107] It should be further noted that in the specific implementation, only after the mobile terminal obtains all the contents of the file corresponding to the current transmission task, the current data transmission task will be indicated as completed, and then the current file transmission task will be ended.
[0108] In addition, the embodiment of the application also provides a computer readable storage medium storing a computer program, the storage medium stores a network disconnection file transmission program, and the network disconnection file transmission program is executed by a processor to realize the steps of the network disconnection file transmission method as described above.
[0109] Since the storage medium adopts all the technical solutions of the above-mentioned embodiments, it at least has all the beneficial effects brought by the technical solutions of the above-mentioned embodiments, which will not be repeated here.
[0110] Reference Figure 6 , Figure 6 is a structural block diagram of the first embodiment of the network disconnection file transmission device of the application.
[0111] As Figure 6 shown, the network disconnection file transmission device provided by the embodiment of the application comprises:
[0112] The file preparation module 10 generates a preparation two-dimensional code according to the to-be-transmitted file information, and sends the preparation two-dimensional code to the mobile terminal to start the data receiving environment of the mobile terminal;
[0113] The file transmission module 20: according to the to-be-transmitted file information, a transmission two-dimensional code is generated cyclically, and the transmission two-dimensional code is transmitted to the mobile terminal, so that the to-be-transmitted file information is transmitted to the mobile terminal based on the transmission two-dimensional code;
[0114] The transmission termination module 30: if the file transmission end signal fed back by the mobile terminal is received, the process is stopped.
[0115] In this embodiment, the to-be-transmitted file information is first generated to generate a preparation two-dimensional code, and the preparation two-dimensional code is sent to the mobile terminal to start the data receiving environment of the mobile terminal; then the to-be-transmitted file information is cyclically generated to generate a transmission two-dimensional code, and the transmission two-dimensional code is transmitted to the mobile terminal, so that the to-be-transmitted file information is transmitted to the mobile terminal based on the transmission two-dimensional code; finally, if the file transmission end signal fed back by the mobile terminal is received, the process is stopped. In this embodiment, the relevant file transmission information is sent to the mobile terminal through the preparation two-dimensional code, so that the mobile terminal starts the data receiving environment, and then the file data is transmitted to the mobile terminal through the cyclically generated transmission two-dimensional code, thereby completing the file transmission task, achieving the file transmission purpose between the offline devices, and indirectly ensuring the data security.
[0116] It should be understood that the above is only an example, and does not constitute any limitation on the technical solutions of the present application. In specific applications, those skilled in the art can set it up according to the needs, and the present application does not limit it.
[0117] It should be noted that the above-described workflow is only illustrative and does not limit the scope of protection of the present application. In actual application, those skilled in the art can select part or all of them to achieve the purpose of the embodiment scheme according to actual needs, which is not limited here.
[0118] In addition, technical details not described in detail in this embodiment can be referred to the offline file transmission method provided by any embodiment of the present application, which will not be described here.
[0119] In addition, it should be noted that in this paper, the terms "include", "contain" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or system including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or includes elements inherent to such process, method, article or system. Without more limitation, the element defined by the sentence "includes a" does not exclude the presence of another identical element in the process, method, article or system including the element.
[0120] The above-mentioned embodiment number of the present application is only for description, and does not represent the advantages and disadvantages of the embodiments.
[0121] Those skilled in the art can clearly understand the above-mentioned embodiment method can be realized by means of software and necessary general hardware platform, of course, also can be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application essentially or say the part of contribution to the prior art can be embodied in the form of software product, the computer software product is stored in a storage medium (such as read only memory (Read Only Memory, ROM) / RAM, disk, optical disk), including a number of instructions to make a terminal device (may be a mobile phone, computer, server, or network equipment, etc.) executes the method described in various embodiments of the present application.
[0122] The above is only the preferred embodiment of the present application, not therefore limit the patent scope of the present application, any equivalent structure or equivalent flow transformation made by using the content of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for transferring files offline, characterized in that: include: Generate a preparation QR code based on the information of the file to be transmitted, and send the preparation QR code to the mobile terminal to enable the data receiving environment of the mobile terminal; cyclically generating a transmission QR code according to the file information to be transmitted, and transmitting the transmission QR code to the mobile terminal, so as to transmit the file information to be transmitted to the mobile terminal based on the transmission QR code; If a file transfer completion signal fed back by the mobile terminal is received, the process is stopped.
2. The offline file transfer method according to claim 1, wherein: Before generating a preparation QR code according to the information of the file to be transmitted and sending the preparation QR code to the mobile terminal to enable the data receiving environment of the mobile terminal, the method further includes: Obtain a request for outgoing file transmission, and approve the request and output a corresponding approval result; If the approval result is approval, the file transfer process is started; If the approval result is disapproval, the file outgoing request is ignored.
3. The offline file transfer method according to claim 1, wherein: Generate a preparation QR code based on the information of the file to be transmitted, and send the preparation QR code to the mobile terminal to enable the data receiving environment of the mobile terminal, specifically including: Obtaining information about a file to be transferred, and generating corresponding transfer task data based on the information about the file to be transferred; generating the preparation QR code according to the transmission task data; The prepared QR code is sent to the mobile terminal to open the data receiving environment of the mobile terminal.
4. The offline file transfer method according to claim 3, characterized in that: After sending the prepared QR code to the mobile terminal to enable the data receiving environment of the mobile terminal, the method further includes: The mobile terminal starts a file receiving mode and obtains the preparation QR code; The prepared QR code is parsed, and a data receiving environment is initialized according to the parsing result.
5. The offline file transmission method according to any one of claims 1 to 4, characterized in that: cyclically generating a transmission QR code according to the file information to be transmitted, and transmitting the transmission QR code to the mobile terminal, so as to transmit the file information to be transmitted to the mobile terminal based on the transmission QR code, specifically comprising: Circularly generate a transmission QR code according to the file information to be transmitted and the transmission task data; The transmission QR codes are displayed in sequence with a delayed display so that the transmission QR codes are transmitted to the mobile terminal.
6. The offline file transmission method according to claim 5, characterized in that: According to the information of the file to be transmitted and the transmission task data, a transmission QR code is cyclically generated, specifically including: Segmenting the file information to be transmitted according to the transmission task data to obtain a set of file data segments to be transmitted; sequentially reading the to-be-transmitted file data segments in the to-be-transmitted file data segment set according to the transmission task data; The corresponding transmission QR code is cyclically generated according to the file data segment to be transmitted.
7. The offline file transmission method according to claim 6, characterized in that: The transmission QR code is displayed in sequence with a delayed display so that after the transmission QR code is transmitted to the mobile terminal, the method further includes: The mobile terminal continuously acquires the transmitted QR code and performs information recognition on the transmitted QR code one by one, and outputs corresponding QR code recognition results; If the QR code recognition result is qualified, the mobile terminal reads the information of the transmitted QR code and writes the read file data into the file; If the QR code recognition result is unqualified, the mobile terminal re-recognizes the information of the transmitted QR code and outputs the corresponding QR code recognition result; If the QR code recognition results corresponding to all transmitted QR codes are qualified, the mobile terminal stops the process.
8. A network-disconnected file transmission device, characterized in that: The off-network file transmission device comprises: File preparation module: generates a preparation QR code according to the information of the file to be transmitted, and sends the preparation QR code to the mobile terminal to open the data receiving environment of the mobile terminal; File transmission module: cyclically generates a transmission QR code according to the file information to be transmitted, and transmits the transmission QR code to the mobile terminal, so as to transmit the file information to be transmitted to the mobile terminal based on the transmission QR code; Transmission termination module: If a file transmission end signal fed back by the mobile terminal is received, the process is stopped.
9. A network-disconnected file transfer device, characterized in that: The off-network file transfer device includes: a memory, a processor, and an off-network file transfer program stored in the memory and executable on the processor, wherein the off-network file transfer program is configured to implement the off-network file transfer method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the offline file transmission method according to any one of claims 1 to 7 can be implemented.
Citation Information
Patent Citations
Method for safely dispensing electronic document
CN101110097A
Application method and device for outgoing document
CN108268789A
One-way cross-network file transmission method based on QR two-dimensional code
CN111832329A
Data transmission method, device and system between internal network and external network
CN111835804A
Heterogeneous network information transmission system based on image processing
CN111860730A