Embedded system warehouse file push-pull management method
Through the embedded system warehouse file push-pull management method based on FTP service and Redis database, the problem of file management in embedded systems is solved, and the flexible file management and high-performance transmission is realized, which meets the embedded platform Scalable requirements.
Patent Information
- Application Number
- CN202411038218.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-11-08
AI Technical Summary
In embedded systems, there is a lack of unified file management methods, traditional file management methods have single functions and do not support dynamic migration of warehouses, making it difficult to meet the scalability and processing capabilities of embedded platforms in the face of task functions.
Adopt the remote file transmission method based on FTP service, combined with Redis embedded database management method, to realize the push-pull operation and version management of information processing back-end warehouse files, support file entry, update, out-of-warehouse and deletion, and use configuration file analysis and calibration. The combination of verification, version control, file information index, FTP service and warehouse management modules enables flexible file management and high-performance transmission.
It improves the flexible file management capabilities in multi-embedded terminal connection scenarios, improves the high-performance transmission capabilities of embedded system files, and meets the scalable needs of the embedded platform's task-oriented functions.
Smart Images

Figure CN118916066A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information processing, and in particular to a push-pull management method for warehouse files in an embedded system. Background Art
[0002] Faced with the challenges brought by the ever-changing operating environment of embedded platforms, embedded platforms are required to be expandable in task-oriented functions and continuously improve their processing capabilities in order to meet and respond to new application requirements in a timely manner.
[0003] In the embedded system hardware and software environment, various application programs, function libraries, configuration files are scattered, and there is a lack of unified file management methods to support the information processing backend. Traditional file management methods are implemented using the TCP / IP protocol, with a single file management function, and do not support dynamic migration of warehouses, lacking a flexible warehouse file management method. Summary of the invention
[0004] In order to solve the existing technical problems, the present invention provides an embedded system warehouse file push-pull management method.
[0005] The specific contents of the present invention are as follows: a method for pushing and pulling files in a warehouse of an embedded system, wherein the application warehouse comprises a configuration file parsing module, a verification module, a version control module, a file information indexing module, an FTP service module and a warehouse management module; the configuration file parsing module parses the configuration file described by the application resource, and transfers the result to the verification module, the verification module verifies the result from the configuration file parsing module, and determines whether the configuration file information is consistent with the user input; the version control module performs version management on the application resource file; the file information indexing module processes the query indexing request; the FTP service module controls the command line control software according to the user operation, and the warehouse management module performs the in-and-out warehouse management on the application resource file.
[0006] Furthermore, the configuration file parsing module implements the configuration file parsing function, is responsible for reading the configuration file of the application resource description, parsing the description information in the configuration file, and transferring the description information to the verification module to determine whether the configuration file information is consistent with the user input.
[0007] Furthermore, the verification module implements configuration file verification and application resource file verification, verifies the configuration file content from the configuration file parsing module to ensure that it is consistent with the user input, and is responsible for file integrity verification of the summary information of the application resource file. The configuration file parsing process includes: the user inputs the information required for storage, determines whether the configuration file path passed by the user exists, ends parsing if it does not exist, reads the configuration file if it exists, verifies whether the configuration file content is consistent with the user input, and stores it in the file container if it is consistent, and stores it in the file container after updating the configuration file according to the user input if it is inconsistent.
[0008] Furthermore, the version control module implements version management of application resource files, performs version management on application resource files pushed by users, forms a file information index and writes it into a database, and provides it to the file information index module for query and use. The version control process includes: the version control module (3) reads the remote database, determines whether the file container is a new resource, if not, obtains the file information in the file container, and if so, obtains the file information in the file container after the version archive updates the file container, then performs data conversion, and writes it into the database (8).
[0009] Furthermore, the file information indexing module implements the application resource file information indexing, processes the query indexing request, queries the database, and determines whether the file exists in the warehouse management module.
[0010] Furthermore, the FTP service module implements the sending and receiving of application resource files. For application resource files pushed by users, the local files of the command line control software are pushed into the warehouse management module. For application resource files pulled by users, the corresponding files in the warehouse management module are pulled to the local command line control software or deleted from the warehouse management module.
[0011] Furthermore, the warehouse management module implements the application resource file warehouse management, and is responsible for the warehouse management of the application resource files pushed by the FTP service module and the warehouse management of the application resource files pulled by the FTP service module.
[0012] Furthermore, the command line control software implements query control, warehouse operation and result display, connects users and application warehouses, responds to user push and pull requests, and operates the application warehouse to enter and exit application resource files.
[0013] Furthermore, the database implements data storage and is responsible for storing file information index information.
[0014] Furthermore, it also includes a system integration framework, which includes application deployment, operation and status reporting, and is responsible for responding to and executing user control commands, deploying and running user applications, and collecting and monitoring the software and hardware status of the system.
[0015] The present invention adopts a remote file transmission method based on FTP service and an embedded database management method based on Redis to realize push-pull operation and version management of files in the information processing backend warehouse, wherein the push operation supports the storage and update of files, and the pull operation supports the storage and deletion of files, thereby improving the flexible file management capability in the multi-embedded terminal connection scenario and the high-performance file transmission capability of the embedded system, thus meeting the task-oriented function scalability requirements of the embedded platform. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The specific implementation of the present invention will be further explained below in conjunction with the accompanying drawings.
[0017] Figure 1 A push-pull management framework for the invented embedded system repository files;
[0018] Figure 2 It is the configuration file parsing process of the present invention;
[0019] Figure 3 is the version control process of the present invention;
[0020] Figure 4 It is the warehousing processing flow of the present invention. DETAILED DESCRIPTION
[0021] Combination Figure 1-Figure 4 The present invention provides an embedded system warehouse file push-pull management framework, wherein the application warehouse includes six modules: configuration file parsing, verification, version control, file information indexing, FTP service and warehouse management:
[0022] The configuration file parsing module 1 mainly includes the configuration file parsing function, which is responsible for reading the configuration file describing the application resources, parsing the description information in the configuration file, and transferring the description information to the verification module 2 to determine whether the configuration file information is consistent with the user input.
[0023] Verification module 2 mainly includes configuration file verification and application resource file (application, function library and configuration file) verification functions. It is responsible for verifying the configuration file content from configuration file parsing module 1 to ensure that it is consistent with the user input, and is responsible for file integrity verification of the summary information of the application resource file.
[0024] The configuration file parsing process includes: the user inputs the information required for storage, determines whether the configuration file path passed by the user exists, and ends the parsing if it does not exist. If it does exist, reads the configuration file and verifies whether the configuration file content is consistent with the user input. If they are consistent, store them in the file container. If they are inconsistent, update the configuration file according to the user input and then store it in the file container, and end the parsing.
[0025] The version control module 3 mainly includes the application resource file version management function, and is responsible for version management of the application resource files pushed by the user (warehousing, updating), forming a file information index and writing it into the database 8, and providing the file information index module 4 for query and use.
[0026] The version control process includes: the version control module reads the remote database and determines whether the file container is a new resource. If not, it obtains the file information in the file container. If so, it archives the file container and then obtains the file information in the file container, then performs data conversion and writes it to the database.
[0027] The file information indexing module 4 mainly includes the application resource file information indexing function, and is responsible for processing the query indexing request, querying the database 8, and determining whether the file exists in the warehouse management module 6.
[0028] The FTP service module 5 mainly includes the sending and receiving functions of application resource files. It is responsible for the application resource files pushed by the user (warehouse entry, update), pushing the local files of the command line control software 7 into the warehouse management module 6, and is responsible for the application resource files pulled by the user (warehouse exit, deletion), pulling the corresponding files in the warehouse management module 6 to the local command line control software 7 or deleting them from the warehouse management module 6.
[0029] The warehouse management module 6 mainly includes the application resource file warehouse management function, and is responsible for the warehouse management of the application resource files pushed by the FTP service module 5 and the warehouse management of the application resource files pulled by the FTP service module 5.
[0030] The process of warehouse entry management includes: the warehouse management module connects to the remote FTP warehouse through the FTP service module, the warehouse management module reads the application resource file index information in the database, and determines whether the local file is complete through the verification module. If not, it continues to perform local file verification. If so, the application resource file is pushed to the remote warehouse through the FTP service module. After the verification is completed, the FTP connection is closed, otherwise the local file verification is continued. The outbound management is to manage the application resource files pulled by the FTP service module 5.
[0031] The command line control software 7 mainly includes functions such as query control, warehouse operation and result display. It is responsible for connecting users and application warehouses, responding to user push and pull requests, and operating the application warehouse to store and retrieve application resource files.
[0032] The database 8 mainly includes data storage functions and is responsible for storing file information index and other information.
[0033] The system integration framework 9 mainly includes functions such as application deployment and status reporting. It is responsible for responding to and executing user control commands, deploying and running user applications, and collecting and monitoring the status of system software and hardware.
[0034] In order to further illustrate the specific implementation of the present invention, an example of push-pull management of warehouse files in an embedded system is given:
[0035] In the example, the component file description information is defined as shown in Table 1:
[0036] Table 1 Component file description information
[0037] Serial number File attributes Property name Data Types 1 sCmpName Component Name string 2 sLocalPath Local Path string 3 sRemotePath Remote Path string 4 ePlatForm Component operating platform enum 5 sFileName file name string 6 eType File Type enum
[0038] The defined version management description information is shown in Table 2:
[0039] Table 2 Version management description information
[0040] Serial number Version properties Property name Data Types 1 sStoreID Warehouse ID string 2 sProjName Project Name string 3 sDeployPath Description file path string 4 sAppName Application Name string 5 sVersion Version string
[0041] The following takes the push operation as an example. The user performs warehouse management operations through the command line control software in the embedded system mixed with X86, Feiteng and Shenwei, executes the application resource file storage command, and inputs the resource storage warehouse name, warehouse ID and configuration file path information through the command line; the application warehouse configuration file parsing module determines whether the configuration file exists. If so, it parses the configuration file content. If it is consistent with the user input, the application resource file index information is written to the file container. The configuration file parsing process is as follows: Figure 2 As shown; the application warehouse version control module reads the remote database information, determines whether the application resource file in the file container is a new resource, and if so, updates the application resource file version information and writes it into the database. The version control process is as follows Figure 3 As shown in the figure, the warehouse management module connects to the remote FTP warehouse through the FTP service module. The warehouse management module reads the application resource file index information in the database and determines whether the local file is complete through the verification module. If so, the application resource file is pushed to the remote warehouse through the FTP service module. The warehousing process is as follows: Figure 4 shown.
[0042] The embedded system warehouse file push-pull management method of the present invention supports embedded system remote file transmission push-pull operations, wherein the push operation supports the storage and update of files, and the pull operation supports the retrieval and deletion of files; adopts a Redis-based embedded database management method to support efficient indexing of file information and improve the flexible management capability of embedded system files; supports flexible file management capabilities in multi-terminal connection scenarios of embedded platforms such as X86, Feiteng and Shenwei, improves the high-performance transmission capability of embedded system files, and meets the task-oriented function expandability requirements of embedded platforms; supports reliable and cross-platform efficient transmission of files in multi-connection scenarios.
[0043] Many specific details are described in the above description to facilitate a full understanding of the present invention. However, the above description is only a preferred embodiment of the present invention. The present invention can be implemented in many other ways different from those described herein, so the present invention is not limited to the specific implementation disclosed above. At the same time, any person familiar with the art can make many possible changes and modifications to the technical solution of the present invention using the methods and technical contents disclosed above without departing from the scope of the technical solution of the present invention, or modify it into an equivalent embodiment of equivalent changes. Any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention without departing from the content of the technical solution of the present invention still falls within the scope of protection of the technical solution of the present invention.
Claims
1. A push-pull management method for embedded system warehouse files, characterized by: The application warehouse comprises a configuration file parsing module (1), a verification module (2), a version control module (3), a file information indexing module (4), an FTP service module (5) and a warehouse management module (6); the configuration file parsing module (1) parses the configuration file of the application resource description and transfers the result to the verification module (2); the verification module (2) verifies the result from the configuration file parsing module (1) to determine whether the configuration file information is consistent with the user input; the version control module (3) performs version management on the application resource file; the file information indexing module (4) processes the query indexing request; the FTP service module (5) controls the command line control software (7) according to the user operation; the warehouse management module (6) performs the in and out warehouse management of the application resource file.
2. The embedded system warehouse file push-pull management method according to claim 1, characterized in that: The configuration file parsing module (1) implements the configuration file parsing function, is responsible for reading the configuration file describing the application resources, parsing the description information in the configuration file, and transferring the description information to the verification module (2) to determine whether the configuration file information is consistent with the user input.
3. The embedded system warehouse file push-pull management method according to claim 1 is characterized in that: The verification module (2) implements configuration file verification and application resource file verification, verifies the configuration file content from the configuration file parsing module (1), ensures that it is consistent with the user input, and is responsible for file integrity verification of the summary information of the application resource file; the configuration file parsing process includes: the user inputs the information required for storage, determines whether the configuration file path input by the user exists, if not, terminates the parsing, if exists, reads the configuration file, verifies whether the configuration file content is consistent with the user input, if consistent, stores it in the file container, if inconsistent, updates the configuration file according to the user input and then stores it in the file container.
4. The embedded system warehouse file push-pull management method according to claim 1, characterized in that: The version control module (3) implements version management of application resource files, performs version management on application resource files pushed by users, forms a file information index and writes it into a database (8), and provides it to the file information index module (4) for query and use; the version control process includes: the version control module (3) reads the remote database, determines whether the file container is a new resource, if not, obtains the file information in the file container, and if so, obtains the file information in the file container after the version archive updates the file container, then performs data conversion, and writes it into the database (8).
5. The embedded system warehouse file push-pull management method according to claim 1, characterized in that: The file information indexing module (4) implements the application resource file information indexing, processes the query indexing request, queries the database (8), and determines whether the file exists in the warehouse management module (6).
6. The embedded system warehouse file push-pull management method according to claim 1, characterized in that: The FTP service module (5) implements the sending and receiving of application resource files. For application resource files pushed by users, the local files of the command line control software (7) are pushed into the warehouse management module (6). For application resource files pulled by users, the corresponding files in the warehouse management module (6) are pulled to the local command line control software (7) or deleted from the warehouse management module (6).
7. The embedded system warehouse file push-pull management method according to claim 1, characterized in that: The warehouse management module (6) implements the warehouse management of the application resource files, and is responsible for the warehouse management of the application resource files pushed by the FTP service module (5), and the warehouse management of the application resource files pulled by the FTP service module (5).
8. The embedded system warehouse file push-pull management method according to claim 1, characterized in that: The command line control software (7) realizes query control, warehouse operation and result display, connects users and application warehouses, responds to user push and pull requests, and operates the application warehouse to store and retrieve application resource files.
9. The embedded system warehouse file push-pull management method according to claim 1, characterized in that: The database (8) implements data storage and is responsible for storing file information index information.
10. The embedded system warehouse file push-pull management method according to claim 1, characterized in that: It also includes a system integration framework (9), which includes application deployment, operation and status reporting, and is responsible for responding to and executing user control commands, deploying and operating user applications, and collecting and monitoring the software and hardware status of the system.
