File display method, device, electronic device and storage medium

By generating files under the first operating system and sending them to the monitoring module of the second operating system, seamless access to files generated by the Android operating system under the Windows operating system is achieved, solving the problem of poor user experience and simplifying file operations. process.

CN114416654BActive Publication Date: 2024-10-29BEIJING HITEVISION AIXUE EDUCATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111501003.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-09
Publication Date
2024-10-29
Estimated Expiration
2041-12-09

AI Technical Summary

Technical Problem

When using the Windows operating system, users need to manually move or copy files under the Android system, resulting in a poor user experience.

Method used

By generating files under the first operating system and sending storage instructions to the monitoring module, the monitoring module receives and parses the files, and sends them to the monitoring module of the second operating system, realizing seamless access to files under the second operating system and simplifying user operations. .

Benefits of technology

Files generated by the first operating system can be accessed under the second operating system without the user having to manually move files, which improves the user experience and simplifies the operation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114416654B_ABST
    Figure CN114416654B_ABST
Patent Text Reader

Abstract

The present application provides a file display method, device, electronic device and storage medium. The method is applied to an electronic device, which has a first operating system and a second operating system, by generating a file in response to a file generation instruction under the first operating system and sending a storage instruction to a first monitoring module; the first monitoring module receives the storage instruction and obtains the file; the first monitoring module sends the file to the second monitoring module of the second operating system; the second monitoring module receives and parses the file and stores the file; under the second operating system, responds to the file access instruction to display the file. It enables users to seamlessly access files generated by the first operating system under the second operating system without moving files between the first operating system and the second operating system, thereby simplifying user operations and improving user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic equipment, and in particular to a file display method, device, electronic equipment and storage medium. Background Art

[0002] Electronic devices (such as large touch screens) are large-size display devices that can replace projectors in teaching or meetings. There are usually two operating systems, such as Android and Windows. Due to performance considerations, Android systems are mostly hardware-related settings, such as the brightness, touch and volume of the hardware itself. Windows operating system is the main usage scenario for users.

[0003] Currently, in usage scenarios, when accessing files under the Android system under the Windows operating system, the user is required to manually move or copy the files under the Android system to the Windows operating system, resulting in a poor user experience. Summary of the invention

[0004] In view of this, the purpose of the present application is to provide a file display method, device, electronic device and storage medium.

[0005] Based on the above purpose, an embodiment of the present application provides a file display method, which is applied to an electronic device, and the method includes:

[0006] Under the first operating system, generating a file in response to the file generation instruction and sending a storage instruction to the first monitoring module;

[0007] The first monitoring module receives the storage instruction and obtains the file;

[0008] The first monitoring module sends the file to a second monitoring module of the second operating system;

[0009] The second monitoring module receives and parses the file and stores the file;

[0010] Under the second operating system, the file is displayed in response to an access file instruction.

[0011] In some embodiments, before generating a file in response to a file generation instruction under the first operating system, the process further includes: establishing a long connection between the first monitoring module and the second monitoring module based on a transmission control protocol.

[0012] In some embodiments, the transmission control protocol includes folder name, file name and file content data.

[0013] In some embodiments, the second monitoring module parsing the file and storing the file specifically includes:

[0014] The second monitoring module parses the file according to the transmission control protocol to obtain the folder name, file name and file content data of the file;

[0015] The second monitoring module creates a folder and stores the file content data in the folder.

[0016] In some embodiments, after the second monitoring module creates a folder and stores the file content data in the folder, it further includes: the second monitoring module names the folder according to the folder name.

[0017] In some embodiments, after the second monitoring module names the folder according to the folder name, the second monitoring module further includes:

[0018] The second monitoring module names the file content data according to the file name.

[0019] In some embodiments, before the second monitoring module receives and parses the file, the method further includes: establishing a virtual disk in the second operating system, the virtual disk being used to store the file sent by the first monitoring module;

[0020] The storing the file specifically includes: storing the file in the virtual disk.

[0021] In some embodiments, the first operating system is an Android operating system; and the second operating system is a Windows operating system.

[0022] The present application also provides a document display device, including:

[0023] File generation module: used for generating a file in response to a file generation instruction under a first operating system and sending a storage instruction to a first monitoring module of the first operating system;

[0024] A first monitoring module: used to receive the storage instruction and obtain the file; and

[0025] Sending the file to a second monitoring module of a second operating system;

[0026] The second monitoring module is used to receive and parse the file, and store the file content data of the file according to the file name and folder name of the file;

[0027] Display module: used for displaying the file in response to the file access instruction under the second operating system.

[0028] An embodiment of the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any of the methods described above when executing the program.

[0029] An embodiment of the present application also provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable a computer to execute any of the methods described above.

[0030] From the above description, it can be seen that the file display method, device, electronic device and storage medium provided by the present application generate files and send storage instructions to the first monitoring module in response to the file generation instruction under the first operating system; the first monitoring module receives the storage instruction and obtains the file; the first monitoring module sends the file to the second monitoring module of the second operating system; the second monitoring module receives and parses the file and stores the file; under the second operating system, responds to the file access instruction to display the file. It enables users to access files generated by the first operating system in the second operating system without moving files between the first operating system and the second operating system, thereby simplifying user operations and improving user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0032] Figure 1 This is a schematic diagram of the overall process of the file display method of an embodiment of the present application;

[0033] Figure 2 A schematic diagram of a flow chart of a second monitoring module processing a received file according to an embodiment of the present application;

[0034] Figure 3 A detailed flowchart of the file display method of an embodiment of the present application;

[0035] Figure 4 A schematic diagram of the structure of a document display device according to an embodiment of the present application;

[0036] Figure 5 A schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0037] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0038] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be the usual meanings understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not represent any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing in front of the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0039] OPS (Open Pluggable Specification) is a standardized digital signage interface specification jointly developed by Intel and display manufacturers. The internal components of OPS are a mini PC with X86 architecture, using Intel Core processor, equipped with memory, hard disk, multiple input and output interfaces and Windows operating interface. OPS computer or OPS module is an open pluggable computer module, which is also a microcomputer that can be plugged in and out. It is mainly connected to the main control of the electronic device through a cable. It usually runs the Windows operating system, making the overall layout of the electronic device beautiful.

[0040] When an electronic device (such as a touch device) is running, the Android operating system and the Windows operating system run independently, and the files in each system are independent of each other. Therefore, files in any system only exist in that system, and the other system cannot view files saved in the current system.

[0041] Some methods of viewing files in one system (such as Windows system) in another system (such as Android system) mainly use third-party devices such as USB flash drives to copy files in one system to another system; or require users to manually click options or buttons, or use preset gestures to drag files to transfer files from one system to another system. However, these methods have the problem of requiring manual operation by users, resulting in poor user experience.

[0042] Based on this, an embodiment of the present application provides a file display method, which allows files generated by the current system to be viewed in another system without the user having to manually move the files, and can solve the problem of poor user experience to a certain extent.

[0043] See also Figure 1 The file display method provided in the embodiment of the present application is applied to an electronic device, and the method includes:

[0044] S100, in a first operating system, generating a file in response to a file generation instruction and sending a storage instruction to a first monitoring module of the first operating system;

[0045] S200, the first monitoring module receives the storage instruction and obtains the file;

[0046] S300, the first monitoring module sends the file to the second monitoring module of the second operating system;

[0047] S400, the second monitoring module receives and parses the file, and stores the file;

[0048] S500: Under the second operating system, respond to an access file instruction to display the file.

[0049] Before step S100, step S600 is also included, in which a first monitoring module is established in the first operating system, a second monitoring module is established in the second operating system, and a connection between the first monitoring module and the second monitoring module is established. The first operating system may be an Android operating system, and the second operating system may be a Windows operating system. Correspondingly, the main function of the first monitoring module in the first operating system may be to send the file generated in the first operating system to the second monitoring module in the second operating system. The main function of the second monitoring module in the second operating system may be to receive and save the data sent by the first monitoring module.

[0050] In some embodiments, a long connection can be established between the first monitoring module and the second monitoring module through a transmission control (TCP, Transmission Control Protocol) protocol communication mode to achieve two-way communication. That is, the connection between the first monitoring module and the second monitoring module is established based on the transmission control protocol. The connection between the first monitoring module and the second monitoring module is established through the transmission control protocol, so that the first monitoring module and the second monitoring module can communicate reliably in two directions, thereby making the communication of files between the first system and the second system complete and reliable.

[0051] In some embodiments, the transmission control protocol includes folder name, file name, and file content data.

[0052] In the application scenario, the structure of the transmission control protocol can be as follows.

[0053]

[0054] It should be noted that establishing a long connection between the first monitoring module and the second monitoring module based on the transmission control protocol can be implemented through a conventional three-way handshake. This application does not involve improvements to the conventional three-way handshake, and the specific implementation content will not be repeated here.

[0055] In some embodiments, in step S100, an access file may be generated by an application in the first operating system. The electronic device may be a touch device. The application may be, for example, a smart compass of the touch device. The presentation of the application may be similar to dots on a smartphone screen, and may be presented on the desktop of the touch device. In an application scenario, a screenshot file may be generated by a compass on the desktop of the touch device.

[0056] In some embodiments, a storage instruction may be sent to the first monitoring module by an application in the first operating system. The application may send the storage instruction to the first monitoring module by a communication method between processes. The communication method between processes may be, for example, a conventional UDP network, etc. This application does not involve improvements to a specific UDP network, and the specific implementation content will not be repeated here.

[0057] In some embodiments, in step S200, after receiving the storage instruction, the first monitoring module parses the storage instruction and reads the file name and folder name therein, thereby obtaining the file and the file content data.

[0058] In some embodiments, in step S300, the first monitoring module sending the file to the second monitoring module of the second operating system may specifically include: the first monitoring module sending the file to the second monitoring module of the second operating system in the structure of a transmission control protocol.

[0059] In some embodiments, Figure 2 As shown, in step S400, the second monitoring module receives and parses the file, and storing the file specifically includes:

[0060] S410, the second monitoring module receives the file;

[0061] S420, the second monitoring module parses the file according to the transmission control protocol to obtain file content data, file name and folder name of the file;

[0062] S430: The second monitoring module creates a folder and stores the file content data in the folder.

[0063] In some embodiments, after step S410, the method may further include: the second monitoring module names the folder according to the folder name, that is, names the created folder according to the folder name obtained by parsing.

[0064] In some embodiments, after the second monitoring module names the folder according to the folder name, the second monitoring module further includes:

[0065] The second monitoring module names the file content data according to the file name.

[0066] In some embodiments, before step S410, it may also include establishing a virtual disk in the second operating system, which points to a specific location of the disk in the second operating system and has a specific virtual disk letter name, for example: C:\ProgramData\HiClass\AndroidData. The virtual disk can be understood as a disk virtualized from the memory in an electronic device. The virtual disk can be used to store files sent by the first monitoring module in the first operating system. By creating the virtual disk, the files in the first operating system sent by the first monitoring module can be fixedly stored in a set folder, which can facilitate users to quickly and conveniently access files in the first system when the user accesses the files of the first system under the second system.

[0067] Correspondingly, the storing of the file specifically includes: storing the file in the virtual disk. That is, the step S430 specifically includes: the second monitoring module creates a folder in the virtual disk and stores the file content data in the folder; the second monitoring module names the folder according to the folder name; the second monitoring module names the file content data according to the file name.

[0068] Correspondingly, in the step S500, under the second operating system, displaying the file in response to the file access instruction may specifically include: responding to the file access instruction, accessing the virtual disk, displaying a folder with the folder name in the virtual disk, and displaying the file with the file name therein.

[0069] See also Figure 3, the file display method of the embodiment of the present application, by establishing a first monitoring module and a second monitoring module in the Android operating system and the Windows operating system that are independently run in the electronic device, respectively, and the first monitoring module and the second monitoring module establish a long connection based on the transmission control protocol. The files generated under the Windows operating system can be transmitted to the second monitoring module in the structure of folder name, file name and file content data through the first monitoring module, and the second monitoring module stores the file content data in a pre-established virtual disk, and creates a folder and file name with a corresponding name in the virtual disk, so that the file can be directly displayed under the second operating system, so that the user can directly access the file in the virtual disk without switching back and forth between the Android operating system and the Windows operating system, simplifying the operation of displaying files, and enabling users to access files generated by the Android operating system without feeling under the Windows operating system, thereby improving the user experience.

[0070] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.

[0071] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0072] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a document display device.

[0073] refer to Figure 4 , the document display device comprises:

[0074] The file generation module 610 is used to generate a file in response to the file generation instruction under the first operating system and send a storage instruction to the first monitoring module 620;

[0075] The first monitoring module 620 is used to receive the storage instruction and obtain the file; and

[0076] Sending the file to a second monitoring module 630 of a second operating system;

[0077] The second monitoring module 630 is used to receive and parse the file, and store the file;

[0078] Display module 640: used for displaying the file in response to the file access instruction under the second operating system.

[0079] In some embodiments, the first monitoring module 620 and the second monitoring module 630 establish a long connection based on the transmission control protocol.

[0080] In some embodiments, the transmission control protocol includes folder name, file name and file content data.

[0081] In some embodiments, the second monitoring module 630 is specifically used to:

[0082] Parse the file according to the transmission control protocol to obtain the folder name, file name and file content data of the file;

[0083] Create a folder and store the file content data in the folder.

[0084] In some embodiments, the second monitoring module 630 is further used to: create a folder, store the file content data in the folder, and then name the folder according to the folder name.

[0085] In some embodiments, the second monitoring module 630 is further used to: after naming the folder according to the folder name, name the file content data according to the file name.

[0086] In some embodiments, a virtual disk creation module is further included: used to create a virtual disk in the second operating system, and the virtual disk is used to store files sent by the first monitoring module 620.

[0087] For the convenience of description, the above device is described in terms of functions divided into various modules. Of course, when implementing the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.

[0088] The device of the above embodiment is used to implement the corresponding file access method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.

[0089] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the file access method described in any of the above embodiments is implemented.

[0090] Figure 5 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 710, a memory 720, an input / output interface 730, a communication interface 740, and a bus 750. The processor 710, the memory 720, the input / output interface 730, and the communication interface 740 are connected to each other in communication within the device through the bus 750.

[0091] The processor 710 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.

[0092] The memory 720 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 720 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 720 and are called and executed by the processor 710.

[0093] The input / output interface 730 is used to connect the input / output module to realize information input and output. The input / output module can be configured as a component in the device (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.

[0094] The communication interface 740 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).

[0095] The bus 750 comprises a pathway that transmits information between the various components of the device (eg, the processor 710 , the memory 720 , the input / output interface 730 , and the communication interface 740 ).

[0096] It should be noted that, although the above device only shows the processor 710, the memory 720, the input / output interface 730, the communication interface 740 and the bus 750, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.

[0097] The electronic device of the above embodiment is used to implement the corresponding file display method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.

[0098] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the file display method described in any of the above embodiments.

[0099] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0100] The computer instructions stored in the storage medium of the above embodiments are used to enable the computer to execute the file display method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0101] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.

[0102] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform to be implemented in the embodiments of the present application (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered to be illustrative rather than restrictive.

[0103] Although the present application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.

[0104] The embodiments of the present disclosure are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present disclosure should be included in the scope of protection of the present disclosure.

Claims

1. A file display method, characterized in that: Applied to an electronic device, the electronic device has a first operating system and a second operating system, the method includes: Under the first operating system, generating a file in response to the file generation instruction and sending a storage instruction to the first monitoring module; The first monitoring module receives the storage instruction and obtains the file; The first monitoring module sends the file to a second monitoring module of the second operating system; The second monitoring module receives and parses the file and stores the file; Under the second operating system, displaying the file in response to an access file instruction; The step of generating a file in response to the file generation instruction under the first operating system also includes: establishing a long connection between the first monitoring module and the second monitoring module based on the transmission control protocol; Before the second monitoring module receives and parses the file, the method further includes: establishing a virtual disk in the second operating system, the virtual disk being used to store the file sent by the first monitoring module; The storing the file specifically includes: storing the file in the virtual disk.

2. The document display method according to claim 1, characterized in that: The transmission control protocol includes folder name, file name and file content data.

3. The document display method according to claim 2, characterized in that: The second monitoring module parses the file, and storing the file specifically includes: The second monitoring module parses the file according to the transmission control protocol to obtain the folder name, file name and file content data of the file; The second monitoring module creates a folder and stores the file content data in the folder.

4. The document display method according to claim 3, characterized in that: After the second monitoring module creates a folder and stores the file content data in the folder, the method further includes: the second monitoring module names the folder according to the folder name.

5. The document display method according to claim 4, characterized in that: After the second monitoring module names the folder according to the folder name, the second monitoring module further includes: The second monitoring module names the file content data according to the file name.

6. A document display device, characterized in that: Applied to an electronic device, the electronic device has a first operating system and a second operating system, and the device includes: A file generation module: used for generating a file in response to a file generation instruction and sending a storage instruction to the first monitoring module under the first operating system; A first monitoring module: used to receive the storage instruction and obtain the file; and Sending the file to a second monitoring module of a second operating system; The second monitoring module is used to receive and parse the file and store the file; A display module: used for displaying the file in response to the file access instruction under the second operating system; A virtual disk creation module: used for creating a virtual disk in the second operating system, wherein the virtual disk is used for storing files sent by the first monitoring module; The first monitoring module and the second monitoring module establish a long connection based on the transmission control protocol.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 5 when executing the program.

8. A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause a computer to execute the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Method and device for realizing file sharing among multiple clients based on split-screen display

    CN113407134A