Packaging and Control Method, Device, Equipment and Storage Medium for Separating Data
By generating separate data control files and automatically packaging and updates, the inefficiency problem in traditional separate data processing methods is solved, and efficient separate data processing and update are achieved.
Patent Information
- Application Number
- CN202210561234.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-20
- Publication Date
- 2025-06-13
- Estimated Expiration
- 2042-05-20
AI Technical Summary
The traditional separate data processing method requires the development of a large number of software versions to adapt to smart TVs with different functions, resulting in low processing efficiency.
By obtaining the input control file requirements information, generating separate data control files, determining the packaging information, packaging the preset separated data, obtaining the actual separated data packet, and updating the separate data control file and the actual separated data packet based on the updated information.
Automatic packaging and updates are realized, avoiding the need to develop different versions of software and improving the efficiency of separate data processing.
Smart Images

Figure CN115033269B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing, and in particular to a method, device, equipment and storage medium for packing and controlling separated data. Background Art
[0002] With the rapid development of science and technology, users' requirements for the use of smart TVs are also getting higher and higher. While hoping to meet the normal viewing needs, they also want to increase other functions of smart TVs by separating data, which also puts higher requirements on the accuracy and efficiency of separated data processing. The traditional method for processing separated data is to determine all the functions that the smart TV needs to adapt to, and configure a software version for this TV according to all the functions. Different software versions are used to configure smart TVs with different adapted functions. This method for processing separated data has great defects. There will be a problem that a large number of software versions need to be developed to implement function configuration due to different adapted functions of smart TVs. That is, this method for processing separated data will result in low processing efficiency of separated data due to too many developed software versions. Summary of the Invention
[0003] The main purpose of the present invention is to propose a method, device, equipment and storage medium for packing and controlling separated data, aiming to solve the technical problem of how to improve the processing efficiency of separated data.
[0004] To achieve the above object, the present invention provides a method for packing and controlling separated data, and the method for packing and controlling separated data includes the following steps:
[0005] Obtain the input control file requirement information, and generate a separated data control file according to the control file requirement information;
[0006] Determine the packing information according to the separated data control file, and pack the preset separated data according to the packing information to obtain an actual separated data packet;
[0007] Determine the update information according to the separated data control file and the actual separated data packet, and update the separated data control file and the actual separated data packet according to the update information.
[0008] Optionally, the step of generating a separated data control file according to the control file requirement information includes:
[0009] Determine the model information and the separated data version number in the control file requirement information, and write the model information and the separated data version number into a preset file to obtain a proposed separated data control file;
[0010] Determine all file paths and version information in the control file requirement information, determine the data type corresponding to the version information, and write the version information and the file path corresponding to the version information into the data control file to be separated to obtain the separated data control file.
[0011] Optionally, the step of determining the packaging information according to the separated data control file includes:
[0012] Determine all file paths in the separated data control file, store each of the file paths in a preset string array, and use the preset string array storing each of the file paths as the packaging information.
[0013] Optionally, the step of packaging preset separated data according to the packaging information to obtain an actual separated data packet includes:
[0014] Determine all file paths in the packaging information, and extract the preset separated data corresponding to each of the file paths;
[0015] Package each of the separated data into a preset separated data packet to obtain an actual separated data packet, and store each of the separated data separately in the actual separated data packet.
[0016] Optionally, the step of determining update information according to the separated data control file and the actual separated data packet includes:
[0017] Determine the data type in the separated data control file, and determine the first separated data under the file path in the data type;
[0018] Determine the second separated data corresponding to the data type in the actual separated data packet, and determine update information according to the first separated data and the second separated data.
[0019] Optionally, the step of determining update information according to the first separated data and the second separated data includes:
[0020] Detect whether the first separated data is the same as the second separated data;
[0021] If the first separated data is the same as the second separated data, no update information is generated;
[0022] If the first separated data is not the same as the second separated data, use the first separated data as the update information.
[0023] Optionally, the step of updating the separated data control file and the actual separated data packet according to the update information includes:
[0024] Trigger an update to the separation data version number in the separation data control file according to the update information, extract the first separation data in the update information, and package the first separation data into the actual separation data packet;
[0025] Determine the data type corresponding to the first separation data, and update the version information in the data type.
[0026] In addition, to achieve the above object, the present invention also provides a separation data packaging and control device, including:
[0027] A control module, configured to obtain input control file requirement information, and generate a separation data control file according to the control file requirement information;
[0028] A packaging module, configured to determine packaging information according to the separation data control file, and package preset separation data according to the packaging information to obtain an actual separation data packet;
[0029] An update module, configured to determine update information according to the separation data control file and the actual separation data packet, and update the separation data control file and the actual separation data packet according to the update information.
[0030] In addition, to achieve the above object, the present invention also provides a separation data packaging and control device, including: a memory, a processor, and a separation data packaging and control program stored on the memory and executable on the processor. When the separation data packaging and control program is executed by the processor, the steps of the above separation data packaging and control method are implemented.
[0031] In addition, to achieve the above object, the present invention also provides a separation data packaging and control storage medium, on which a separation data packaging and control program is stored. When the separation data packaging and control program is executed by a processor, the steps of the above separation data packaging and control method are implemented.
[0032] After the user inputs the corresponding control file requirement information according to different function configurations, and the controller obtains the input control file requirement information, it generates a separated data control file according to the control file requirement information, determines the packaging information of the path containing all data in the separated data control file according to a preset separated data tool, and packages the preset separated data according to the packaging information to obtain an actual separated data packet. The separated data in the actual separated data packet is the separated data required for the product. After obtaining the separated data packet, it will determine the update information according to the separated data under the separated data control file path and the separated data in the actual separated data packet, and update the relevant version numbers in the separated data control file and the separated data in the actual separated data packet according to the update information. The automatic packaging of the existing separated data through the separated data control file realizes the product function and automatically detects the update, thus avoiding the phenomenon in the prior art that a version software needs to be established for different functions to process the separated data. This processing method of separated data does not require developing different version software, thereby improving the R & D efficiency, and can directly perform automatic packaging and update on the existing separated data, thus improving the processing efficiency of the separated data. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 is a schematic structural diagram of a separated data packaging and control device for the hardware operating environment involved in the embodiment solution of the present invention;
[0034] Figure 2 is a schematic flowchart of the first embodiment of the separated data packaging and control method of the present invention;
[0035] Figure 3 is a schematic diagram of the device module for the separated data packaging and control of the present invention;
[0036] Figure 4 is a schematic structural diagram of a separated data control file in the separated data packaging and control of the present invention;
[0037] Figure 5 is a schematic flowchart of the separated data packaging process in the separated data packaging and control of the present invention;
[0038] Figure 6 is a schematic flowchart of the separated data version control process in the separated data packaging and control of the present invention.
[0039] The realization, functional features and advantages of the object of the present invention will be further described with reference to the embodiments and the accompanying drawings. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0040] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0041] Reference Figure 1 , Figure 1 is a schematic structural diagram of a device for packing and controlling separated data in a hardware operating environment related to the solution of an embodiment of the present invention.
[0042] As Figure 1 shown, the device for packing and controlling separated data may include: a processor 0003, such as a Central Processing Unit (CPU), a communication bus 0001, an acquisition interface 0002, a processing interface 0004, and a memory 0005. Among them, the communication bus 0001 is used to realize the connection and communication between these components. The acquisition interface 0002 may include an information collection device and an acquisition unit such as a computer. Optionally, the acquisition interface 0002 may further include a standard wired interface and a wireless interface. The processing interface 0004 may optionally include a standard wired interface and a wireless interface. The memory 0005 may be a high-speed Random Access Memory (RAM) or a stable Non-Volatile Memory (NVM), such as a disk memory. Optionally, the memory 0005 may also be a storage device independent of the aforementioned processor 0003.
[0043] Those skilled in the art can understand that Figure 1 the structure shown in
[0044] does not constitute a limitation on the device for packing and controlling separated data, and may include more or fewer components than those shown, or combine certain components, or have different component arrangements. Figure 1 shown, in the memory 0005 as a storage medium, there may be included an operating system, an acquisition interface module, a processing interface module, and a program for packing and controlling separated data.
[0045] In Figure 1 the device for packing and controlling separated data shown, the communication bus 0001 is mainly used to realize the connection and communication between components; the acquisition interface 0002 is mainly used to connect to a background server and perform data communication with the background server; the processing interface 0004 is mainly used to connect to a deployment end (user end) and perform data communication with the deployment end; the processor 0003 and the memory 0005 in the device for packing and controlling separated data of the present invention may be provided in the device for packing and controlling separated data. The device for packing and controlling separated data calls the program for packing and controlling separated data stored in the memory 0005 through the processor 0003 and executes the method for packing and controlling separated data provided by the embodiment of the present invention.
[0046] Based on the above hardware structure, an embodiment of the method for packing and controlling separated data of the present invention is proposed.
[0047] An embodiment of the present invention provides a method for packaging and controlling separated data. Referring to Figure 2 , Figure 2 is a schematic flowchart of the first embodiment of the method for packaging and controlling separated data of the present invention.
[0048] In this embodiment, the method for packaging and controlling separated data includes:
[0049] Step S10, obtaining input control file requirement information, and generating a separated data control file according to the control file requirement information;
[0050] With the continuous progress of technology, the functions of smart TVs are no longer limited to watching TV programs. With the continuous development of smart TV technology, the market demand for various functions is becoming more and more abundant. When a user selects a smart TV, they can choose different models according to their own functional requirements. At the same time, the whole machine manufacturers will also adapt different functions according to different product positions to enrich the selection range of various users. Under such circumstances, if the whole machine manufacturer releases a version of software only for each model when configuring each model, there will be problems such as too many software versions to manage and low R & D efficiency.
[0051] This application uses a common version of software for models with the same chip platform and small functional differences, separates data such as screen parameters, audio, picture quality, remote control configuration, and function configuration for different models in this version of software. On the premise of sharing a common version of software, differences are distinguished in the separated data, and different separated data are updated for different machines to achieve differentiation of different models. Furthermore, a method for controlling and packaging separated data is proposed, which can reduce manual operations and thus avoid mistakes caused by manual operations, making the control and packaging of separated data more convenient, efficient, and accurate.
[0052] In this embodiment, data separation tools such as SVN (Subversion, an open-source version control system) or Git (an open-source distributed version control system) are used to package and manage the separated data. When there are a large number of models, the volume of separated data will become larger and larger. Tools such as SVN or Git can indicate the functions of the uploaded files and query the upload records when uploading files. At the same time, since the responsible persons for different separated data such as screen parameters, audio, picture quality, remote control configuration, etc. are different, using such tools can more conveniently synchronize and update the separated data by different personnel, that is, it is possible to timely view the relevant upload information of various data and timely update various uploaded data. The data separation tool can be a version control software or system, etc. When the user inputs the control file requirement information, the data separation tool will generate a separated data control file according to the input control file requirement information, where the control file requirement information refers to the relevant information required to generate the separated data control file, and the separated data control file refers to the basis file for packaging and updating the separated data, which is an ini file in this application. Among them, the step of generating a separated data control file according to the control file requirement information includes:
[0053] Step C11, determining the model information and the separated data version number in the control file requirement information, and writing the model information and the separated data version number into a preset file to obtain a proposed separated data control file;
[0054] In this embodiment, when the separation data tool generates a separation data control file, it will provide the user with multiple optional configuration items. The separation data tool will detect data such as the path information, version information, and model information selected / input by the user (for example: model S1, the screen parameters are placed in the XXX path, the initial version number of the screen parameters is V20220318, and the separation data packet version number is V001). When the user selects to generate, the information will be written into the ini file, and different separation data (screen parameters, audio, picture quality, etc.) will be distinguished by sections, which is convenient for subsequent packaging and control. That is to say, by detecting the preset configuration items, when the user selects the configuration items, the corresponding requirement information will be generated, and all the requirement information will be summarized to obtain the input control file requirement information. The separation data tool determines the model information and the separation data version number in the control file requirement information, and writes the model information and the separation data version number into the preset file to obtain the quasi-separation data control file. The model information and the separation data version number respectively refer to the model of the product and the major version number corresponding to the separation data. The preset file refers to the ini file, but it can also be set by the user or for other reasons. The quasi-separation data control file refers to an ini file that only contains the model information and the separation data version number, which is only a limitation on the model and the major version (separation data version number). By determining the model information and the separation data version number in the input control file requirement information, the general performance and version of the product can be limited, and at the same time, it can also provide a basis for subsequent major version updates.
[0055] Step C12, determine all the file paths and version information in the control file requirement information, determine the data type corresponding to the version information, and write the version information and the file path corresponding to the version information into the quasi-separation data control file to obtain the separation data control file.
[0056] After obtaining the quasi-separation data control file that only contains the model information and the separation data version number, all the file paths and version information inside it will be determined, and the data type corresponding to each version information will be determined. According to the data type, the version information and the file path corresponding to the version information will be written into the quasi-separation data control file to obtain the separation data control file. Among them, the file path refers to the file path of the separation data, the version information refers to the version of the separation data under this file path, and the data type refers to the type of data corresponding to this separation data, which can be screen parameter data, audio data, picture quality data, etc. The separation data control file is an ini file that stores the file paths and version information of the data types separately in the quasi-separation data control file. The view of the finally obtained separation data control file can be Figure 4As shown, for example, when the data types corresponding to the file path E1 and the version information E2 are screen parameter data, the file path E1 and the version information E2 will be written below the screen parameter data in the ini file. By writing the file path and the version information into the separated data control file, a complete file is obtained, and subsequent separated data packaging and updating need to be based on this file.
[0057] Step S20: Determine the packaging information according to the separated data control file, and package the preset separated data according to the packaging information to obtain an actual separated data packet;
[0058] In this embodiment, after obtaining the separated data control file for packaging and updating, the separated data will be packaged according to the separated data control file to implement the product function. Packaging means copying the existing data into the product internally preset to achieve its function. First, the packaging information in the separated data control file will be determined, and the product will be functionally configured according to the packaging information. Among them, the step of determining the packaging information according to the separated data control file includes:
[0059] Step C21: Determine all the file paths in the separated data control file, store each of the file paths in a preset string array, and use the preset string array storing each of the file paths as the packaging information.
[0060] In this embodiment, to obtain the packaging information, all the file paths in the separated data control file will be extracted. The separated data tool will load the separated data control file, read the path, version and other information in the file and store it in a preset string array. The preset string array storing the path, version and other information is the required packaging information. Subsequently, the paths of each separated data will be obtained in the form of string array traversal, and each separated data (screen parameters, audio, picture quality, remote control configuration, etc.) will be copied from the stored path to the separated data packet of this model and stored separately in the separated data packet according to actual requirements. Among them, the preset string array refers to an array storing all the paths. The packaging information can provide a packaging basis for subsequent separated data packaging, and subsequent separated data can be accurately packaged according to the packaging information.
[0061] After obtaining the packaging information, the existing separated data will be packaged according to the packaging information, and an actual separated data packet will be obtained. The actual separated data packet refers to a data packet in which the existing separated data is stored in the internal separated data packet. Storing the existing separated data into the separated data packet through the packaging information realizes the process of functional configuration of the product, thus avoiding the phenomenon of needing to develop a new software version during functional configuration.
[0062] Step S30: Determine update information based on the separated data control file and the actual separated data packet, and update the separated data control file and the actual separated data packet according to the update information.
[0063] In this embodiment, after the product implementation configuration, the separated data in the separated data packet can also be updated according to the separated data control file. First, the controller detects the separated data in the separated data control file and the actual separated data packet to obtain update information, and updates the separated data control file and the actual separated data packet according to the update information. The update information refers to a newly uploaded or different separated data from before. Among them, the steps of updating the separated data control file and the actual separated data packet according to the update information include:
[0064] Step C31: Trigger an update to the separated data version number in the separated data control file according to the update information, extract the first separated data in the update information, and pack the first separated data into the actual separated data packet.
[0065] In this embodiment, when the controller detects that update information is generated, it will trigger an update instruction according to the update information, and update the separated data version number in the separated data control file according to the update instruction. The update of the version number can be a user-defined update method, such as a simple digital increment, or a custom update method by the system or existing rules. After updating the separated data version number, the first separated data in the update information will be extracted, and at the same time, the first separated data will be packed into the actual separated data packet. The first separated data refers to data with the same data type but different separated data. For example, separated data a and separated data b both belong to the data type of screen parameter data, but the data of separated data a and separated data b themselves is different. It should be noted that when the first separated data is packed into the actual separated data packet, it replaces the original separated data under the corresponding data type of the first separated data, rather than being replaced randomly, so that the separated data to be updated can be accurately updated.
[0066] Step C32: Determine the data type corresponding to the first separated data, and update the version information in the data type.
[0067] After updating the separated data packet and the separated data version number, the data type corresponding to the first separated data will also be determined, and the version information in the data type will be updated. The update method is similar to the update method of the separated data version number. That is to say, when updating the separated data, the version number under the corresponding data type of the separated data will be updated, and at the same time, the major version number will also be updated, which can ensure the accuracy of the separated data update, avoid cumbersome manual updates, and reduce the occurrence of human errors.
[0068] Furthermore, this embodiment also provides a related schematic diagram of a technology solution for packaging and controlling separated data. Refer to Figure 4 , Figure 4 which is a schematic diagram of the structure of the separated data control file in the packaging and control of separated data. In this embodiment, the separated data control file includes the corresponding model information and the version number of the separated data packet. Each section (component) includes the required data types, such as screen parameter data, picture quality data, etc. Under each data type, it includes the storage path of the separated data of that data type and the corresponding version number. Refer to Figure 5 , Figure 5 which is a schematic diagram of the separated data packaging process in the packaging and control of separated data. When it is necessary to package the separated data, the already generated separated data control file will be loaded, and the path information under each section in the file will be obtained. According to the path information, the corresponding separated data will be extracted, and the separated data in each section path will be copied to the separated data packet preset inside the product to achieve the function configuration of the product. Refer to Figure 6 , Figure 6 which is a schematic diagram of the separated data version control process in the packaging and control of separated data. When it is necessary to update some of the separated data preset inside the product, an update instruction will be issued or the product will automatically detect and update. When updating, the separated data control file will be loaded, and the path information set version information under each section in the file will be obtained, and all the files under the path information will be compared with all the corresponding files in the separated data packet. When the comparison result shows that the two separated data are the same, the update detection process will end; when the comparison result shows that the two separated data are different, the different separated data will be updated, the different files will be updated into the separated data packet, and the previous separated data will be replaced. At the same time, the version number of the separated data in the section and the major version number of the separated data will be updated, that is, the automatic update operation of the separated data is completed. By packaging and updating the separated data according to the separated data control file, it is possible to avoid developing a new software version when processing the separated data to achieve its function, and thus improve the processing efficiency of the separated data.
[0069] In this embodiment, when the user inputs the corresponding control file requirement information according to different function configurations, after the controller obtains the input control file requirement information, it generates a separated data control file according to the control file requirement information, determines the packaging information of the path containing all data in the separated data control file according to a preset separated data tool, and packages the preset separated data according to the packaging information to obtain an actual separated data packet. The separated data in the actual separated data packet is the separated data required by the product. After obtaining the separated data packet, the update information is determined according to the separated data under the separated data control file path and the separated data in the actual separated data packet, and the relevant version numbers in the separated data control file and the separated data in the actual separated data packet are updated according to the update information. The automatic packaging of the existing separated data through the separated data control file realizes the product function and automatically detects updates, thus avoiding the phenomenon in the prior art that a version software needs to be established for different functions to process the separated data. This processing method of separated data does not require the development of different version software, thereby improving the R & D efficiency. Moreover, it can directly perform automatic packaging and update on the existing separated data, thereby improving the processing efficiency of the separated data.
[0070] Further, based on the first embodiment of the method for packaging and controlling separated data of the present invention, a second embodiment of the method for packaging and controlling separated data of the present invention is proposed. The method for packaging and controlling separated data includes:
[0071] Furthermore, the step of packaging the preset separated data according to the packaging information to obtain an actual separated data packet includes:
[0072] Step a, determine all file paths in the packaging information, and extract the corresponding preset separated data under each file path;
[0073] Step b, package each separated data into a preset separated data packet to obtain an actual separated data packet, and store each separated data separately in the actual separated data packet.
[0074] In this embodiment, after obtaining the packaging information, the separated data will be packaged. First, all file paths in the packaging information will be determined. Subsequently, various preset separated data (screen parameters, audio, picture quality, remote control configuration, etc.) will be copied from the storage path to the preset separated data packet through all the file paths to obtain the actual separated data packet, and they will be separately stored in the separated data packet according to actual requirements. Among them, the preset separated data refers to the separated data uploaded by different module engineers to the separated data tool, and the internal separated data packet refers to the preset storage location of the separated data. After copying all the separated data, the user requirements will be obtained, and the separated data in the actual separated data packet will be separately stored according to the user requirements. Generally, it is separately stored according to different data types, or it can also be separately stored according to other rules. The advantage of separate storage is that it can accurately search for the separated data and improve the detection and update efficiency during subsequent separated data updates.
[0075] In this embodiment, by determining all the file paths in the packaging information and extracting the corresponding preset separated data under each file path; packaging each separated data into a preset separated data packet to obtain the actual separated data packet, and separately storing each separated data in the actual separated data packet. Obtaining the actual separated data packet through the packaging information and performing separate storage can ensure the efficiency of searching for the separated data, and the packaging information ensures the accuracy of packaging.
[0076] Further, the step of determining the update information according to the separated data control file and the actual separated data packet includes:
[0077] Step e, determining the data type in the separated data control file and determining the first separated data under the file path in the data type;
[0078] In this embodiment, when data separation update is required, the data separation tool loads the data separation control file, reads each section in the file (different data corresponding to the section, such as screen parameters, audio, picture quality, remote control configuration, etc.), obtains the original path and version number of the separated data corresponding to each section (such as the original path and version information of the screen parameters), and compares the separated data after being packed (inside the actual separated data packet) with the separated data under the original path through an algorithm. If the comparison is inconsistent, the version number of the separated data will be updated under the corresponding section of the data separation control file, and the separated data with inconsistent comparison will be updated into the separated data packet. At this time, if the separated data under a section has been updated, the overall version number of the separated data packet will be updated. This method eliminates the manual update operation process and is more accurate in the automatic update method. At the same time, the update of the entire version number can be more intuitively presented to the testers. That is to say, the controller will sequentially determine the data types in the data separation control file and extract the first separated data under the file path for all data types.
[0079] Step f, determine the second separated data corresponding to the data type in the actual separated data packet, and determine the update information according to the first separated data and the second separated data.
[0080] After obtaining the first separated data under the file path for all data types, the second separated data corresponding to the data type will be found in the actual separated data packet, and finally the update information will be determined according to the first separated data and the second separated data. Among them, the second separated data refers to the separated data in the separated data packet. For example, if the extracted first separated data is the screen parameter separated data a, the audio separated data b, and the picture quality separated data c, and the screen parameter, audio, and picture quality refer to the data types, and the extracted second separated data is the screen parameter separated data a, the audio separated data b, and the picture quality separated data d, the update information will be determined according to the picture quality separated data d and the picture quality separated data c.
[0081] In this embodiment, by sequentially determining the data types in the data separation control file and determining the first separated data under the file path of the data type; determining the second separated data corresponding to the data type in the actual separated data packet, and determining the update information according to the first separated data and the second separated data. Determining the update information through the first separated data and the second separated data can provide a basis for updating the separated data.
[0082] Further, the step of determining the update information according to the first separated data and the second separated data includes:
[0083] Step g, detect whether the first separated data is the same as the second separated data;
[0084] Step h, if the first separated data is the same as the second separated data, no update information is generated;
[0085] Step i, if the first separated data is different from the second separated data, the first separated data is used as the update information.
[0086] In this embodiment, after obtaining the first separated data and the second separated data, both will be detected. When the first separated data is the same as the second separated data, it is determined that the separated data does not need to be updated, and no update information is generated; when the first separated data is different from the second separated data, the first separated data is used as the update information. It should be noted that when the system detects and updates, there will be a phenomenon of not generating update information; when receiving an update instruction for updating, there will be no such phenomenon of not generating update information. That is to say, after the relevant module personnel upload new separated data, there will be no phenomenon of not generating update information when the system triggers the update instruction; when the system does not trigger the update instruction, there will be a phenomenon of not generating update information through detection. Among them, the relevant module personnel can view the submission records and relevant information of the new separated data through the separated data tool. For example, when the first separated data and the second separated data are the picture quality separated data c and the picture quality separated data d respectively, the picture quality separated data c will be used as the update information, and the picture quality separated data c will replace the picture quality separated data d in the actual separated data packet to obtain the updated actual separated data packet, thus completing the update of the separated data.
[0087] In this embodiment, by detecting whether the first separated data is the same as the second separated data, if they are the same, no update information is generated; if the first separated data is different from the second separated data, the first separated data is used as the update information. Through the first separated data and the second separated data, the existing separated data in the separated data packet can be updated in a timely and accurate manner.
[0088] The present invention also provides a schematic diagram of a device module for packing and controlling separated data. Referring to Figure 3 , the device for packing and controlling separated data includes:
[0089] A control module A01, configured to obtain input control file requirement information and generate a separated data control file according to the control file requirement information;
[0090] A packing module A02, configured to determine packing information according to the separated data control file, and pack preset separated data according to the packing information to obtain an actual separated data packet;
[0091] An update module A03, configured to determine update information according to the separated data control file and the actual separated data packet, and update the separated data control file and the actual separated data packet according to the update information.
[0092] Optionally, the control module A01 is further configured to:
[0093] Determine the model information and the separated data version number in the control file requirement information, and write the model information and the separated data version number into a preset file to obtain a proposed separated data control file;
[0094] Determine all file paths and version information in the control file requirement information, determine the data type corresponding to the version information, and write the version information and the file paths corresponding to the version information into the proposed separated data control file according to the data type to obtain a separated data control file.
[0095] Optionally, the packaging module A02 is further configured to:
[0096] Determine all file paths in the separated data control file, store each of the file paths into a preset string array, and use the preset string array storing each of the file paths as packaging information.
[0097] Optionally, the packaging module A02 is further configured to:
[0098] Determine all file paths in the packaging information, and extract the preset separated data corresponding to each of the file paths;
[0099] Package each of the separated data into a preset separated data packet to obtain an actual separated data packet, and store each of the separated data separately in the actual separated data packet.
[0100] Optionally, the update module A03 is further configured to:
[0101] Determine the data type in the separated data control file, and determine the first separated data under the file path in the data type;
[0102] Determine the second separated data corresponding to the data type in the actual separated data packet, and determine update information according to the first separated data and the second separated data.
[0103] Optionally, the update module A03 is further configured to:
[0104] Detect whether the first separated data is the same as the second separated data;
[0105] If the first separated data is the same as the second separated data, no update information is generated;
[0106] If the first separated data is different from the second separated data, the first separated data is used as update information.
[0107] Optionally, the update module A03 is further configured to:
[0108] Trigger an update of the separated data version number in the separated data control file according to the update information, extract the first separated data in the update information, and package the first separated data into the actual separated data packet;
[0109] Determine the data type corresponding to the first separated data, and update the version information in the data type.
[0110] The methods executed by the above program modules can refer to the various embodiments of the method for packaging and controlling separated data of the present invention, which will not be elaborated here.
[0111] The present invention further provides a device for packaging and controlling separated data.
[0112] The device of the present invention includes: a memory, a processor, and a program for packaging and controlling separated data stored on the memory and executable on the processor. When the program for packaging and controlling separated data is executed by the processor, the steps of the method for packaging and controlling separated data as described above are implemented.
[0113] The present invention further provides a storage medium.
[0114] A program for packaging and controlling separated data is stored on the storage medium of the present invention. When the program for packaging and controlling separated data is executed by the processor, the steps of the method for packaging and controlling separated data as described above are implemented.
[0115] Among them, the method implemented when the program for packaging and controlling separated data running on the processor is executed can refer to the various embodiments of the method for packaging and controlling separated data of the present invention, which will not be elaborated here.
[0116] It should be noted that, in this article, the term "comprising", "including" or any other variant thereof is intended to cover a non-exclusive inclusion, so that a process, method, article or system including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or system. Without further limitations, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article or system including the element.
[0117] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0118] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-described method of the embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is a better implementation. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art can be embodied in the form of a software product. This computer software product is stored in a storage medium as described above (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in various embodiments of the present invention.
[0119] The above are only the preferred embodiments of the present invention, and do not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the content of the specification and drawings of the present invention, or directly or indirectly applied in other related technical fields, shall be equally included in the patent protection scope of the present invention.
Claims
1. A method for packaging and controlling separated data, characterized in that, the method for packaging and controlling separated data includes the following steps: Obtain the input control file requirement information, and generate a separated data control file according to the control file requirement information. Among them, the step of generating a separated data control file according to the control file requirement information includes: Determine the model information and the separated data version number in the control file requirement information, and write the model information and the separated data version number into a preset file to obtain a proposed separated data control file; determine all the file paths and version information in the control file requirement information, and determine the data type corresponding to the version information, and write the version information and the file paths corresponding to the version information into the proposed separated data control file according to the data type to obtain a separated data control file; Determine the packaging information according to the separated data control file, and package the preset separated data according to the packaging information to obtain an actual separated data packet. Among them, the step of determining the packaging information according to the separated data control file includes: determine all the file paths in the separated data control file, store each of the file paths in a preset string array, and use the preset string array storing each of the file paths as the packaging information. The actual separated data packet refers to a data packet in which the existing separated data is stored in an internal separated data packet; Determine the update information according to the separated data control file and the actual separated data packet, and update the separated data control file and the actual separated data packet according to the update information.
2. The method for packaging and controlling separated data according to claim 1, characterized in that, the step of packaging the preset separated data according to the packaging information to obtain an actual separated data packet includes: Determine all the file paths in the packaging information, and extract the preset separated data corresponding to each of the file paths; Package each of the separated data into a preset separated data packet to obtain an actual separated data packet, and store each of the separated data separately in the actual separated data packet.
3. The method for packaging and controlling separated data according to claim 1, characterized in that, the step of determining the update information according to the separated data control file and the actual separated data packet includes: Determine the data type in the separated data control file, and determine the first separated data under the file path in the data type; Determine the second separated data corresponding to the data type in the actual separated data packet, and determine the update information according to the first separated data and the second separated data.
4. The method for packaging and controlling separated data according to claim 3, characterized in that, the step of determining the update information according to the first separated data and the second separated data includes: Detect whether the first separated data is the same as the second separated data; If the first separated data is the same as the second separated data, no update information is generated; If the first separated data is different from the second separated data, use the first separated data as the update information.
5. The method for packing and controlling separated data according to claim 1, wherein, the step of updating the separated data control file and the actual separated data packet according to the update information includes: Triggering an update of the separated data version number in the separated data control file according to the update information, extracting the first separated data in the update information, and packing the first separated data into the actual separated data packet; Determining the data type corresponding to the first separated data, and updating the version information in the data type.
6. A device for packing and controlling separated data, wherein, the device for packing and controlling separated data includes: A control module, configured to obtain input control file requirement information, and generate a separated data control file according to the control file requirement information. Among them, the step of generating a separated data control file according to the control file requirement information includes: Determining the model information and the separated data version number in the control file requirement information, and writing the model information and the separated data version number into a preset file to obtain a proposed separated data control file; determining all file paths and version information in the control file requirement information, and determining the data type corresponding to the version information, and writing the version information and the file path corresponding to the version information into the proposed separated data control file according to the data type to obtain a separated data control file; A packing module, configured to determine packing information according to the separated data control file, and pack preset separated data according to the packing information to obtain an actual separated data packet. Among them, the step of determining packing information according to the separated data control file includes: determining all file paths in the separated data control file, storing each of the file paths in a preset string array, and using the preset string array storing each of the file paths as the packing information. The actual separated data packet refers to a data packet obtained by storing existing separated data into an internal separated data packet; An update module, configured to determine update information according to the separated data control file and the actual separated data packet, and update the separated data control file and the actual separated data packet according to the update information.
7. A device for packing and controlling separated data, wherein, the device for packing and controlling separated data includes: a memory, a processor, and a separated data packing and control program stored on the memory and executable on the processor. When the separated data packing and control program is executed by the processor, it implements the steps of the method for packing and controlling separated data according to any one of claims 1 to 5.
8. A storage medium, wherein, a separated data packing and control program is stored on the storage medium. When the separated data packing and control program is executed by a processor, it implements the steps of the method for packing and controlling separated data according to any one of claims 1 to 5.
Citation Information
Patent Citations
Method and system for independence and upgrade of parameters of television display screen
CN103108243A
Multi-model software synchronous upgrading method and device and terminal equipment
CN109819286A