File association analysis method, device, equipment and storage medium

CN116303261BActive Publication Date: 2026-10-13AN XIN XING (BEI JING) KE JI YOU XIAN GONG SI
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111502393.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-08
Publication Date
2026-10-13
Estimated Expiration
2041-12-08

AI Technical Summary

Technical Problem

[0004]本发明的主要目的在于提出一种文件关联分析方法、装置、设备及存储介质,旨在解决现有技术中对车机系统的文件进行关联分析时,需要耗费较多的时间,分析效率较低的技术问题

Benefits of technology

[0064]本发明提出的文件关联分析方法中,根据扫描参数确定文件扩展名信息和字符串信息;根据所述文件扩展名信息和所述字符串信息从车机系统的固件中选取待扫描文件;对所述待扫描文件进行关键词匹配,并根据匹配结果确定与目标文件相关联的关联文件;根据所述目标文件和所述关联文件生成文件关联界面,并对所述文件关联界面进行展示。本方案可先根据文件扩展名信息和字符串信息选取待扫描文件,然后根据关键词匹配的方式确定关联文件,将目标文件和关联文件的相关信息进行展示,从而可减少文件关联分析耗费的时间,提高了文件关联分析的效率。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116303261B_ABST
    Figure CN116303261B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of Internet of Vehicles, and discloses a file association analysis method, device and equipment and a storage medium, the method comprises the following steps: determining file extension name information and string information according to scanning parameters; selecting a to-be-scanned file from firmware of a vehicle machine system according to the file extension name information and the string information; performing keyword matching on the to-be-scanned file, and determining an associated file associated with a target file according to a matching result; generating a file association interface according to the target file and the associated file, and displaying the file association interface. According to the scheme, the to-be-scanned file can be selected according to the file extension name information and the string information, then the associated file is determined according to the keyword matching mode, and the relevant information of the target file and the associated file is displayed, so that the time consumed by file association analysis can be reduced, and the efficiency of file association analysis is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of vehicle networking technology, and in particular to a file association analysis method, apparatus, device, and storage medium. Background Technology

[0002] With the increasing application of vehicle-to-everything (V2X) technology in the automotive field, there may be multiple files in the vehicle's infotainment system. In some cases, it is necessary to analyze the relationships between these files. However, the existing analysis methods for analyzing the relationships between files in the vehicle's infotainment system are time-consuming and inefficient.

[0003] The above content is only used to help understand the technical solution of the present invention and does not represent an admission that the above content is prior art. Summary of the Invention

[0004] The main objective of this invention is to propose a file association analysis method, apparatus, device, and storage medium, aiming to solve the technical problem that the existing technology requires a lot of time and has low analysis efficiency when performing file association analysis on vehicle infotainment systems.

[0005] To achieve the above objectives, the present invention provides a file association analysis method, the file association analysis method comprising:

[0006] Determine file extension information and string information based on scan parameters;

[0007] The file to be scanned is selected from the firmware of the vehicle system based on the file extension information and the string information;

[0008] The document to be scanned is subjected to keyword matching, and associated documents related to the target document are determined based on the matching results;

[0009] A file association interface is generated based on the target file and the associated file, and then the file association interface is displayed.

[0010] Optionally, the step of performing keyword matching on the file to be scanned and determining associated files related to the target file based on the matching results includes:

[0011] Generate a list of files to be scanned based on the files to be scanned;

[0012] The files to be scanned in the list of files to be scanned are traversed, and the file to be scanned that is traversed is taken as the current file;

[0013] Perform keyword matching on the current file, and determine whether the current file is associated with the target file based on the matching results;

[0014] When the current file is associated with the target file, the current file is treated as an associated file with the target file.

[0015] Optionally, the step of performing keyword matching on the current file and determining whether the current file is associated with the target file based on the matching result includes:

[0016] Get the keyword list corresponding to the current file;

[0017] Detect whether the keywords in the keyword list are in Chinese;

[0018] Based on the detection results, a target matching strategy is determined, and keyword matching is performed on the current file according to the target matching strategy;

[0019] The keyword list is updated based on the matching results to obtain the updated keyword list;

[0020] Based on the updated keyword list and the target file list corresponding to the target file, determine whether the current file is associated with the target file.

[0021] Optionally, the step of determining a target matching strategy based on the detection results and performing keyword matching on the current file according to the target matching strategy includes:

[0022] When the detection result indicates that the keyword is not in Chinese, the first preset matching strategy will be used as the target matching strategy.

[0023] The visible strings in the current file are obtained according to the target matching strategy;

[0024] The current file is matched for keywords based on the keyword list and the visible strings.

[0025] Optionally, the step of performing keyword matching on the current file based on the keyword list and the visible string includes:

[0026] The keywords in the keyword list are traversed, and the traversed keywords are compared with the visible strings to perform keyword matching on the current file.

[0027] Optionally, the step of determining a target matching strategy based on the detection results and performing keyword matching on the current file according to the target matching strategy includes:

[0028] When the detection result indicates that the keyword is in Chinese, the second preset matching strategy will be used as the target matching strategy.

[0029] The keywords in the keyword list are traversed according to the target matching strategy;

[0030] The keywords encountered are converted according to a preset format to obtain the keywords to be matched.

[0031] The current file is matched with keywords based on the keywords to be matched.

[0032] Optionally, determining whether the current file is associated with the target file based on the updated keyword list and the target file list corresponding to the target file includes:

[0033] The first keyword is determined based on the updated keyword list, and the second keyword is determined based on the target file list corresponding to the target file.

[0034] Compare the first keyword with the second keyword;

[0035] Based on the comparison results, determine whether the current file is associated with the target file.

[0036] Optionally, the step of generating a file association interface based on the target file and the associated files, and displaying the file association interface, includes:

[0037] Obtain the target file information corresponding to the target file, and obtain the associated file information corresponding to the associated file;

[0038] The associated file information is filtered to obtain filtered associated file information;

[0039] A file association interface is generated based on the target file information and the filtered associated file information, and then the file association interface is displayed.

[0040] Optionally, filtering the associated file information to obtain filtered associated file information includes:

[0041] The associated file information is matched with a preset file path to detect whether there is any information related to the preset file path in the associated file information;

[0042] If the associated file information contains information related to the preset file path, then the associated file information is filtered by file path to obtain filtered associated file information.

[0043] Optionally, filtering the associated file information to obtain filtered associated file information includes:

[0044] The associated file information is matched with a preset file name to detect whether there is any information related to the preset file name in the associated file information;

[0045] If the associated file information contains information related to the preset file name, then the associated file information is filtered by file name to obtain filtered associated file information.

[0046] Optionally, filtering the associated file information to obtain filtered associated file information includes:

[0047] The associated file information is matched with a preset symbol to detect whether there is information related to the preset symbol in the associated file information;

[0048] If the associated file information contains information related to the preset symbol, then the associated file information is filtered to obtain filtered associated file information.

[0049] Optionally, selecting the file to be scanned from the vehicle system firmware based on the file extension information and the string information includes:

[0050] Candidate files are selected from the vehicle infotainment system firmware based on the file extension information;

[0051] The files to be scanned are selected from the candidate files based on the string information.

[0052] Furthermore, to achieve the above objectives, the present invention also proposes a file association analysis device, the file association analysis device comprising:

[0053] The parameter information module is used to determine file extension information and string information based on the scan parameters;

[0054] The file selection module is used to select files to be scanned from the firmware of the vehicle system based on the file extension information and the string information.

[0055] The keyword matching module is used to perform keyword matching on the file to be scanned and determine the associated files related to the target file based on the matching results;

[0056] The file display module is used to generate a file association interface based on the target file and the associated files, and to display the file association interface.

[0057] Optionally, the keyword matching module is further configured to generate a list of files to be scanned based on the files to be scanned; traverse the files to be scanned in the list of files to be scanned, and take the traversed files as the current files; perform keyword matching on the current files, and determine whether the current files are associated with the target files based on the matching results; when the current files are associated with the target files, the current files are designated as associated files with the target files.

[0058] Optionally, the keyword matching module is further configured to: obtain a keyword list corresponding to the current file; detect whether the keywords in the keyword list are Chinese; determine a target matching strategy based on the detection result, and perform keyword matching on the current file according to the target matching strategy; update the keyword list according to the matching result to obtain an updated keyword list; and determine whether the current file is associated with the target file based on the updated keyword list and the target file list corresponding to the target file.

[0059] Optionally, the keyword matching module is further configured to: when the detection result indicates that the keyword is not Chinese, use the first preset matching strategy as the target matching strategy; obtain visible strings in the current file according to the target matching strategy; and perform keyword matching on the current file according to the keyword list and the visible strings.

[0060] Optionally, the keyword matching module is further configured to traverse the keywords in the keyword list and compare the traversed keywords with the visible string to perform keyword matching on the current file.

[0061] Optionally, the keyword matching module is further configured to: when the detection result indicates that the keyword is in Chinese, use the second preset matching strategy as the target matching strategy; traverse the keywords in the keyword list according to the target matching strategy; convert the traversed keywords according to a preset format to obtain the keyword to be matched; and perform keyword matching on the current file according to the keyword to be matched.

[0062] Furthermore, to achieve the above objectives, the present invention also proposes a file association analysis device, which includes: a memory, a processor, and a file association analysis program stored in the memory and executable on the processor. When the file association analysis program is executed by the processor, it implements the file association analysis method described above.

[0063] In addition, to achieve the above objectives, the present invention also proposes a storage medium storing a file association analysis program, which, when executed by a processor, implements the file association analysis method as described above.

[0064] The file association analysis method proposed in this invention determines file extension information and string information based on scanning parameters; selects files to be scanned from the vehicle system firmware based on the file extension information and string information; performs keyword matching on the files to be scanned and determines associated files based on the matching results; generates and displays a file association interface based on the target file and the associated files. This solution first selects files to be scanned based on file extension information and string information, then determines associated files based on keyword matching, and displays the relevant information of the target file and associated files, thereby reducing the time spent on file association analysis and improving its efficiency. Attached Figure Description

[0065] Figure 1 This is a schematic diagram of the file association analysis device structure of the hardware operating environment involved in the embodiments of the present invention;

[0066] Figure 2 This is a flowchart illustrating the first embodiment of the document association analysis method of the present invention;

[0067] Figure 3 This is a flowchart illustrating the second embodiment of the document association analysis method of the present invention;

[0068] Figure 4 This is a flowchart illustrating the third embodiment of the document association analysis method of the present invention;

[0069] Figure 5 This is a schematic diagram of the functional modules of the first embodiment of the document association analysis device of the present invention.

[0070] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0071] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

[0072] Reference Figure 1 , Figure 1 This is a schematic diagram of the file association analysis device structure of the hardware operating environment involved in the embodiments of the present invention.

[0073] like Figure 1As shown, the file association analysis device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen and input units such as buttons; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1005 may be high-speed random access memory (RAM) or non-volatile memory, such as a disk drive. The memory 1005 may also optionally be a storage device independent of the aforementioned processor 1001.

[0074] Those skilled in the art will understand that Figure 1 The device structure shown does not constitute a limitation on the document association analysis device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0075] like Figure 1 As shown, the memory 1005, which serves as a storage medium, may include an operating system, a network communication module, a user interface module, and a file association analysis program.

[0076] exist Figure 1 In the file association analysis device shown, the network interface 1004 is mainly used to connect to the external network and communicate with other network devices; the user interface 1003 is mainly used to connect to the user equipment and communicate with the user equipment; the device of the present invention calls the file association analysis program stored in the memory 1005 through the processor 1001 and executes the file association analysis method provided in the embodiment of the present invention.

[0077] Based on the above hardware structure, an embodiment of the document association analysis method of the present invention is proposed.

[0078] Reference Figure 2 , Figure 2 This is a flowchart illustrating the first embodiment of the document association analysis method of the present invention.

[0079] In the first embodiment, the file association analysis method includes:

[0080] Step S10: Determine file extension information and string information based on the scanning parameters.

[0081] It should be noted that the execution subject of this embodiment can be a file association analysis device, which can be a computer device or other devices that can achieve the same or similar functions. This embodiment does not limit this; in this embodiment, a computer device is used as an example for explanation.

[0082] It should be noted that "vehicle infotainment system" is a shorthand for in-vehicle equipment installed in automobiles, and "vehicle infotainment system" refers to a system composed of these vehicle infotainment systems. In this embodiment, the automobile includes, but is not limited to, gasoline-powered vehicles, new energy vehicles, and hybrid vehicles; this embodiment does not impose any restrictions on these types of vehicles.

[0083] It should be understood that file extension information and string information can be configured in the scan parameters according to actual scanning needs. Therefore, when the computer device receives a scan instruction, it can determine the corresponding scan parameters based on the scan instruction, and then determine the file extension information and string information based on the scan parameters. Specifically, in this embodiment, the file extension information can be a file extension whitelist. The file extension whitelist records the file extensions that need to be scanned; that is, only files whose file extensions belong to the file extension whitelist are scanned. The string information in this embodiment may include string-related rule information, such as registration codes, character encodings, threads, case sensitivity, and whether they contain Chinese characters. This embodiment does not impose restrictions on these; files that conform to the relevant rules can be filtered out based on the string information.

[0084] Step S20: Select the file to be scanned from the firmware of the vehicle system according to the file extension information and the string information.

[0085] It should be understood that in order to accurately select the file to be scanned from the firmware of the vehicle system, the file extension information and string information can be combined for file selection. Therefore, after obtaining the file extension information and string information, the file to be scanned can be selected based on the file extension information and string information.

[0086] Understandably, when selecting files based on both file extension information and string information, one approach is to first select candidate files from the firmware based on the file extension information, and then select the file to be scanned from the candidate files based on the string information. Alternatively, one can first select candidate files from the firmware based on the string information, and then select the file to be scanned from the candidate files based on the file extension information. Another approach is to select files simultaneously based on both file extension information and string information, selecting a first candidate file corresponding to the file extension information and a second candidate file corresponding to the string information from the firmware, and then using the file that exists in both the first and second candidate files as the file to be scanned.

[0087] In the specific implementation, in order to achieve better file selection results, we will explain the method of first selecting based on file extension information and then selecting based on string information. In this case, candidate files can be selected from the vehicle system firmware based on file extension information, and then the file to be scanned can be selected from the candidate files based on string information.

[0088] Step S30: Perform keyword matching on the file to be scanned, and determine the associated files related to the target file based on the matching results.

[0089] It should be noted that the target file in this embodiment refers to the source file of the file association analysis. Matching associated files with the target file means searching for related files that are associated with the target file, centered on the target file. The target file can be determined by the user when entering the scan command, and the computer device can determine the corresponding target file based on the scan command.

[0090] Understandably, after identifying the file to be scanned using the above method, keyword matching can be performed on the file to be scanned, and the keyword list corresponding to the file to be scanned can be updated based on the matching results. The keywords are used as indexes to determine the associated files related to the target file.

[0091] Step S40: Generate a file association interface based on the target file and the associated file, and display the file association interface.

[0092] It should be understood that after identifying the associated files related to the target file, the target file information and the associated file information can be obtained. A file association interface is generated based on the target file information and the associated file information, and the file association interface is visualized. Users can easily and quickly identify the files associated with the target file based on the displayed file association interface, thereby improving the user experience.

[0093] Furthermore, since there may be some duplicate associated files, after identifying the associated files, a check can be performed to determine if duplicate associated files exist. If no duplicate associated files exist, the step of obtaining the associated file information corresponding to the original file is directly executed. If duplicate associated files exist, the associated files can first be deduplicated to obtain processed associated files, and then the step of obtaining the associated file information corresponding to the processed associated files can be executed. For example, if there are two duplicate files in the associated files, one of the files can be filtered out, thereby avoiding duplicate files in the associated files.

[0094] Furthermore, since there may be some interfering information in the associated file information, the associated file information can be filtered to remove this interference, resulting in filtered associated file information. Then, a file association interface is generated based on the target file information and the filtered associated file information, and the file association interface is displayed. The filtering rules in this solution include, but are not limited to, file path filtering, filename filtering, and symbol filtering. One or more of these filtering rules can be used to filter the associated file information; this embodiment does not impose any restrictions on this.

[0095] In this embodiment, file extension information and string information are determined based on scanning parameters; files to be scanned are selected from the vehicle system firmware based on the file extension information and the string information; keyword matching is performed on the files to be scanned, and associated files are determined based on the matching results; a file association interface is generated based on the target file and the associated files, and the file association interface is displayed. This solution can first select files to be scanned based on file extension information and string information, then determine associated files based on keyword matching, and display the relevant information of the target file and associated files, thereby reducing the time spent on file association analysis and improving the efficiency of file association analysis.

[0096] In one embodiment, such as Figure 3 As shown, based on the first embodiment, a second embodiment of the document association analysis method of the present invention is proposed. Step S30 includes:

[0097] Step S301: Generate a list of files to be scanned based on the files to be scanned.

[0098] It should be understood that the file information corresponding to the file to be scanned can be obtained, and then this file information can be added to the list to generate the list of files to be scanned. That is, the list of files to be scanned contains the file information corresponding to all the files to be scanned.

[0099] Step S302: Iterate through the files to be scanned in the list of files to be scanned, and take the traversed file as the current file.

[0100] Understandably, the associated files can be determined based on keyword matching. Since the number of files to be scanned may be large, in order to improve the accuracy and efficiency of keyword matching, the files to be scanned in the list can be traversed, and the traversed file can be used as the current file. Then, subsequent keyword matching and association analysis operations can be performed until all files to be scanned have been traversed and processed.

[0101] Step S303: Perform keyword matching on the current file and determine whether the current file is associated with the target file based on the matching results.

[0102] It should be understood that files can have corresponding keyword lists. Therefore, the keyword list corresponding to the current file can be obtained, and keyword matching can be performed on the current file based on the keyword list. However, since the keywords in the keyword list may be in Chinese or not, different matching strategies can be set for these two cases to achieve better keyword matching results. For example, a first preset matching strategy can be set for keywords that are not in Chinese, and a second preset matching strategy can be set for keywords that are in Chinese.

[0103] Understandably, the system can detect whether the keywords in the keyword list are in Chinese, determine the corresponding target matching strategy based on the detection results, perform keyword matching on the current file according to the target matching strategy, and update the keyword list based on the matching results to obtain the updated keyword list.

[0104] Understandably, when the detection result indicates that the keyword is not Chinese, the first preset matching strategy can be used as the target matching strategy. Based on the target matching strategy, all visible strings in the current file are retrieved. The keywords in the keyword list are then traversed, and each traversed keyword is compared with a visible string to perform keyword matching on the current file. In the specific implementation, keywords can be compared with visible strings. If the keyword list does not contain a keyword corresponding to a visible string, the keyword corresponding to that visible string can be added to the keyword list of the current file to update the keyword list, resulting in an updated keyword list.

[0105] Understandably, when the detection result indicates that the keyword is in Chinese, the second preset matching strategy is used as the target matching strategy. The keywords in the keyword list are traversed according to the target matching strategy, and the traversed keywords are converted according to the preset format to obtain the keyword to be matched. The current file is then matched based on the keyword to be matched.

[0106] In the specific implementation, the preset format can be set to Hex format. In addition, other formats can be set according to the actual situation, and this embodiment does not limit this. The keyword list can be traversed, the Chinese keywords in the keyword list can be converted into the corresponding encoded Hex format, the Hex format keywords can be matched with the current file, the offset address can be returned, and the result can be added to the keyword list of the current file to update the keyword list and obtain the updated keyword list.

[0107] Understandably, to determine the associated files related to the target file, a first keyword can be determined based on the updated keyword list, and a second keyword can be determined based on the target file's corresponding target file list. The first keyword and the second keyword are compared, and the comparison result determines whether the current file is associated with the target file. For example, if there is a preset number of identical keywords in the first and second keywords, it can be determined that the current file is associated with the target file. The preset number can be 1 or other values, and can be set according to real-time conditions. This embodiment does not impose any restrictions on this.

[0108] Step S304: When the current file is associated with the target file, the current file is designated as an associated file associated with the target file.

[0109] It is understandable that if the current file is associated with the target file, the current file can be used as an associated file of the target file. After repeatedly going through the above traversal operation, all associated files in the vehicle system firmware that are associated with the target file can be finally determined.

[0110] In this embodiment, a list of files to be scanned is generated based on the files to be scanned; the files in the list are traversed, and each traversed file is designated as the current file; keyword matching is performed on the current file, and the matching results are used to determine whether the current file is associated with the target file; if the current file is associated with the target file, it is designated as an associated file of the target file. Thus, by using traversal and keyword matching to determine whether the current file is associated with the target file, all associated files of the target file are identified, improving the accuracy of file association analysis.

[0111] In one embodiment, such as Figure 4 As shown, a third embodiment of the document association analysis method of the present invention is proposed based on the first embodiment or the second embodiment. In this embodiment, the description is based on the first embodiment. Step S40 includes:

[0112] Step S401: Obtain the target file information corresponding to the target file, and obtain the associated file information corresponding to the associated file.

[0113] It should be understood that, in order to facilitate the display of the relationships between files and provide users with a more intuitive effect, after identifying the associated files related to the target file, the target file information corresponding to the target file and the associated file information corresponding to the associated files can be obtained separately.

[0114] Step S402: Filter the associated file information to obtain filtered associated file information.

[0115] In one embodiment, a file association interface corresponding to the target file can be directly generated based on the target file information and associated file information. In another embodiment, since the associated file information may contain irrelevant interference information, the associated file information can be filtered first to obtain filtered associated file information, and then a file association interface corresponding to the target file can be generated based on the target file information and the filtered associated file information.

[0116] It should be noted that the filtering rules in this solution include, but are not limited to, file path filtering, file name filtering, and symbol filtering. One or more of the above filtering rules can be used to filter the associated file information. This embodiment does not impose any restrictions on this.

[0117] Understandably, for file path filtering, a preset file path to be filtered can be set in advance. The associated file information is matched with the preset file path, and it is checked whether there is information related to the preset file path in the associated file information. If there is information related to the preset file path in the associated file information, the file path is filtered to obtain the filtered associated file information. This will filter out the associated file information corresponding to the associated file under the preset file path and obtain the filtered associated file information.

[0118] Understandably, for filename filtering, a preset filename to be filtered can be set in advance. The associated file information is matched with the preset filename, and it is checked whether there is information related to the preset filename in the associated file information. If there is information related to the preset filename in the associated file information, the filename of the associated file information is filtered to obtain the filtered associated file information. This will filter out the associated file information corresponding to the preset filename and obtain the filtered associated file information.

[0119] Understandably, for symbol filtering, preset symbols to be filtered can be set in advance. The associated file information is matched with the preset symbols, and it is detected whether there is information related to the preset symbols in the associated file information. If there is information related to the preset symbols in the associated file information, the associated file information is filtered to obtain the filtered associated file information. This way, the associated file information corresponding to the associated file containing the preset symbols can be filtered out, and the filtered associated file information can be obtained.

[0120] It should be understood that when multiple filtering rules need to be used simultaneously, the associated file information can be filtered sequentially through these filtering rules. For example, if the filtering rules include filename filtering and symbol filtering, the associated file information can be filtered by filename first, and then by symbol filtering. After the above multiple filtering processes, the filtered associated file information can be obtained.

[0121] Step S403: Generate a file association interface based on the target file information and the filtered associated file information, and display the file association interface.

[0122] Understandably, in order to facilitate users' viewing of file association analysis results and improve user experience, a file association interface can be generated based on the target file information and the filtered associated file information, and the file association interface can be visualized so that users can intuitively understand the associated files related to the target file.

[0123] In this embodiment, target file information corresponding to the target file is obtained, and associated file information corresponding to the associated file is obtained; the associated file information is filtered to obtain filtered associated file information; a file association interface is generated based on the target file information and the filtered associated file information, and the file association interface is displayed. This allows for a visual display of the target file information and the filtered associated file information, facilitating users' viewing of the file association analysis results and improving the user experience.

[0124] Furthermore, embodiments of the present invention also propose a storage medium storing a file association analysis program, wherein when the file association analysis program is executed by a processor, it implements the steps of the file association analysis method described above.

[0125] Since this storage medium adopts all the technical solutions of all the above embodiments, it has at least all the beneficial effects brought about by the technical solutions of the above embodiments, which will not be repeated here.

[0126] In addition, refer to Figure 5 The present invention also proposes a file association analysis device, the file association analysis device comprising:

[0127] The parameter information module 10 is used to determine file extension information and string information based on the scan parameters.

[0128] It should be noted that "vehicle infotainment system" is a shorthand for in-vehicle equipment installed in automobiles, and "vehicle infotainment system" refers to a system composed of these vehicle infotainment systems. In this embodiment, the automobile includes, but is not limited to, gasoline-powered vehicles, new energy vehicles, and hybrid vehicles; this embodiment does not impose any restrictions on these types of vehicles.

[0129] It should be understood that file extension information and string information can be configured in the scan parameters according to actual scanning needs. Therefore, when the computer device receives a scan instruction, it can determine the corresponding scan parameters based on the scan instruction, and then determine the file extension information and string information based on the scan parameters. Specifically, in this embodiment, the file extension information can be a file extension whitelist. The file extension whitelist records the file extensions that need to be scanned; that is, only files whose file extensions belong to the file extension whitelist are scanned. The string information in this embodiment may include string-related rule information, such as registration codes, character encodings, threads, case sensitivity, and whether they contain Chinese characters. This embodiment does not impose restrictions on these; files that conform to the relevant rules can be filtered out based on the string information.

[0130] The file selection module 20 is used to select files to be scanned from the firmware of the vehicle system based on the file extension information and the string information.

[0131] It should be understood that in order to accurately select the file to be scanned from the firmware of the vehicle system, the file extension information and string information can be combined for file selection. Therefore, after obtaining the file extension information and string information, the file to be scanned can be selected based on the file extension information and string information.

[0132] Understandably, when selecting files based on both file extension information and string information, one approach is to first select candidate files from the firmware based on the file extension information, and then select the file to be scanned from the candidate files based on the string information. Alternatively, one can first select candidate files from the firmware based on the string information, and then select the file to be scanned from the candidate files based on the file extension information. Another approach is to select files simultaneously based on both file extension information and string information, selecting a first candidate file corresponding to the file extension information and a second candidate file corresponding to the string information from the firmware, and then using the file that exists in both the first and second candidate files as the file to be scanned.

[0133] In the specific implementation, in order to achieve better file selection results, we will explain the method of first selecting based on file extension information and then selecting based on string information. In this case, candidate files can be selected from the vehicle system firmware based on file extension information, and then the file to be scanned can be selected from the candidate files based on string information.

[0134] The keyword matching module 30 is used to perform keyword matching on the file to be scanned and determine the associated files related to the target file based on the matching results.

[0135] It should be noted that the target file in this embodiment refers to the source file of the file association analysis. Matching associated files with the target file means searching for related files that are associated with the target file, centered on the target file. The target file can be determined by the user when entering the scan command, and the computer device can determine the corresponding target file based on the scan command.

[0136] Understandably, after identifying the file to be scanned using the above method, keyword matching can be performed on the file to be scanned, and the keyword list corresponding to the file to be scanned can be updated based on the matching results. The keywords are used as indexes to determine the associated files related to the target file.

[0137] The file display module 40 is used to generate a file association interface based on the target file and the associated files, and to display the file association interface.

[0138] It should be understood that after identifying the associated files related to the target file, the target file information and the associated file information can be obtained. A file association interface is generated based on the target file information and the associated file information, and the file association interface is visualized. Users can easily and quickly identify the files associated with the target file based on the displayed file association interface, thereby improving the user experience.

[0139] Furthermore, since there may be some duplicate associated files, after identifying the associated files, a check can be performed to determine if duplicate associated files exist. If no duplicate associated files exist, the step of obtaining the associated file information corresponding to the original file is directly executed. If duplicate associated files exist, the associated files can first be deduplicated to obtain processed associated files, and then the step of obtaining the associated file information corresponding to the processed associated files can be executed. For example, if there are two duplicate files in the associated files, one of the files can be filtered out, thereby avoiding duplicate files in the associated files.

[0140] Furthermore, since there may be some interfering information in the associated file information, the associated file information can be filtered to remove this interference, resulting in filtered associated file information. Then, a file association interface is generated based on the target file information and the filtered associated file information, and the file association interface is displayed. The filtering rules in this solution include, but are not limited to, file path filtering, filename filtering, and symbol filtering. One or more of these filtering rules can be used to filter the associated file information; this embodiment does not impose any restrictions on this.

[0141] In this embodiment, file extension information and string information are determined based on scanning parameters; files to be scanned are selected from the vehicle system firmware based on the file extension information and the string information; keyword matching is performed on the files to be scanned, and associated files are determined based on the matching results; a file association interface is generated based on the target file and the associated files, and the file association interface is displayed. This solution can first select files to be scanned based on file extension information and string information, then determine associated files based on keyword matching, and display the relevant information of the target file and associated files, thereby reducing the time spent on file association analysis and improving the efficiency of file association analysis.

[0142] In one embodiment, the keyword matching module 30 is further configured to generate a list of files to be scanned based on the files to be scanned; traverse the files to be scanned in the list of files to be scanned, and take the traversed files as the current files; perform keyword matching on the current files, and determine whether the current files are associated with the target files based on the matching results; when the current files are associated with the target files, the current files are designated as associated files associated with the target files.

[0143] In one embodiment, the keyword matching module 30 is further configured to: when the detection result indicates that the keyword is not Chinese, use a first preset matching strategy as the target matching strategy; obtain visible strings in the current file according to the target matching strategy; and perform keyword matching on the current file according to the keyword list and the visible strings.

[0144] In one embodiment, the keyword matching module 30 is further configured to traverse the keywords in the keyword list and compare the traversed keywords with the visible string to perform keyword matching on the current file.

[0145] In one embodiment, the keyword matching module 30 is further configured to: when the detection result indicates that the keyword is in Chinese, use a second preset matching strategy as the target matching strategy; traverse the keywords in the keyword list according to the target matching strategy; convert the traversed keywords according to a preset format to obtain the keyword to be matched; and perform keyword matching on the current file according to the keyword to be matched.

[0146] In one embodiment, the keyword matching module 30 is further configured to determine a first keyword based on the updated keyword list, and determine a second keyword based on the target file list corresponding to the target file; compare the first keyword with the second keyword; and determine whether the current file is associated with the target file based on the comparison result.

[0147] In one embodiment, the file display module 40 is further configured to obtain target file information corresponding to the target file and obtain associated file information corresponding to the associated file; filter the associated file information to obtain filtered associated file information; generate a file association interface based on the target file information and the filtered associated file information, and display the file association interface.

[0148] In one embodiment, the file display module 40 is further configured to match the associated file information with a preset file path, detect whether there is information related to the preset file path in the associated file information; if there is information related to the preset file path in the associated file information, then the associated file information is filtered by file path to obtain filtered associated file information.

[0149] In one embodiment, the file display module 40 is further configured to match the associated file information with a preset file name, detect whether there is information related to the preset file name in the associated file information; if there is information related to the preset file name in the associated file information, then the file name is filtered in the associated file information to obtain filtered associated file information.

[0150] In one embodiment, the file display module 40 is further configured to match the associated file information with a preset symbol, detect whether there is information related to the preset symbol in the associated file information; if there is information related to the preset symbol in the associated file information, then the associated file information is symbol filtered to obtain filtered associated file information.

[0151] In one embodiment, the file selection module 20 is further configured to select candidate files from the firmware of the vehicle system based on the file extension information; and to filter out the files to be scanned from the candidate files based on the string information.

[0152] Other embodiments or specific implementation methods of the document association analysis device described in this invention can refer to the above-described method embodiments, and will not be repeated here.

[0153] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0154] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0155] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This estimation machine software product is stored in an estimation machine readable storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a smart device (which may be a mobile phone, estimation machine, file association analysis device, or network file association analysis device, etc.) to execute the methods described in the various embodiments of the present invention.

[0156] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.

Claims

1. A document association analysis method, characterized in that, The file association analysis method includes: Determine file extension information and string information based on scan parameters; The file to be scanned is selected from the firmware of the vehicle system based on the file extension information and the string information; The document to be scanned is subjected to keyword matching, and associated documents related to the target document are determined based on the matching results; A file association interface is generated based on the target file and the associated files, and the file association interface is displayed. The step of performing keyword matching on the file to be scanned and determining the associated files related to the target file based on the matching results includes: Generate a list of files to be scanned based on the files to be scanned; The files to be scanned in the list of files to be scanned are traversed, and the file to be scanned that is traversed is taken as the current file; The current file is matched for keywords based on the keyword list and visible strings corresponding to the current file. Get the keyword list corresponding to the current file; Detect whether the keywords in the keyword list are in Chinese; Based on the detection results, a target matching strategy is determined, and keyword matching is performed on the current file according to the target matching strategy; The keyword list is updated based on the matching results to obtain the updated keyword list; Based on the updated keyword list and the target file list corresponding to the target file, determine whether the current file is associated with the target file; When the current file is associated with the target file, the current file is treated as an associated file with the target file.

2. The document association analysis method as described in claim 1, characterized in that, The step of determining a target matching strategy based on the detection results and performing keyword matching on the current file according to the target matching strategy includes: When the detection result indicates that the keyword is not in Chinese, the first preset matching strategy will be used as the target matching strategy. The visible strings in the current file are obtained according to the target matching strategy; The current file is matched for keywords based on the keyword list and the visible strings.

3. The document association analysis method as described in claim 2, characterized in that, The step of performing keyword matching on the current file based on the keyword list and the visible string includes: The keywords in the keyword list are traversed, and the traversed keywords are compared with the visible strings to perform keyword matching on the current file.

4. The document association analysis method as described in claim 1, characterized in that, The step of determining a target matching strategy based on the detection results and performing keyword matching on the current file according to the target matching strategy includes: When the detection result indicates that the keyword is in Chinese, the second preset matching strategy will be used as the target matching strategy. The keywords in the keyword list are traversed according to the target matching strategy; The keywords encountered are converted according to a preset format to obtain the keywords to be matched. The current file is matched with keywords based on the keywords to be matched.

5. The document association analysis method as described in claim 1, characterized in that, The step of determining whether the current file is associated with the target file based on the updated keyword list and the target file list corresponding to the target file includes: The first keyword is determined based on the updated keyword list, and the second keyword is determined based on the target file list corresponding to the target file. Compare the first keyword with the second keyword; Based on the comparison results, determine whether the current file is associated with the target file.

6. The document association analysis method according to any one of claims 1 to 5, characterized in that, The step of generating a file association interface based on the target file and the associated files, and displaying the file association interface, includes: Obtain the target file information corresponding to the target file, and obtain the associated file information corresponding to the associated file; The associated file information is filtered to obtain filtered associated file information; A file association interface is generated based on the target file information and the filtered associated file information, and then the file association interface is displayed.

7. The document association analysis method as described in claim 6, characterized in that, The step of filtering the associated file information to obtain filtered associated file information includes: The associated file information is matched with a preset file path to detect whether there is any information related to the preset file path in the associated file information; If the associated file information contains information related to the preset file path, then the associated file information is filtered by file path to obtain filtered associated file information.

8. The document association analysis method as described in claim 6, characterized in that, The step of filtering the associated file information to obtain filtered associated file information includes: The associated file information is matched with a preset file name to detect whether there is any information related to the preset file name in the associated file information; If the associated file information contains information related to the preset file name, then the associated file information is filtered by file name to obtain filtered associated file information.

9. The document association analysis method as described in claim 6, characterized in that, The step of filtering the associated file information to obtain filtered associated file information includes: The associated file information is matched with a preset symbol to detect whether there is information related to the preset symbol in the associated file information; If the associated file information contains information related to the preset symbol, then the associated file information is filtered to obtain filtered associated file information.

10. The document association analysis method as described in any one of claims 1 to 5, characterized in that, The step of selecting the file to be scanned from the vehicle system firmware based on the file extension information and the string information includes: Candidate files are selected from the vehicle infotainment system firmware based on the file extension information; The files to be scanned are selected from the candidate files based on the string information.

11. A document association analysis device, characterized in that, The document association analysis device includes: The parameter information module is used to determine file extension information and string information based on the scan parameters; The file selection module is used to select files to be scanned from the firmware of the vehicle system based on the file extension information and the string information. The keyword matching module is used to perform keyword matching on the file to be scanned and determine the associated files related to the target file based on the matching results; The file display module is used to generate a file association interface based on the target file and the associated files, and to display the file association interface. The keyword matching module is further configured to: generate a list of files to be scanned based on the files to be scanned; traverse the files to be scanned in the list and use the traversed files as the current files; perform keyword matching on the current files based on the keyword list and visible strings corresponding to the current files; perform keyword matching on the current files and determine whether the current files are associated with the target files based on the matching results; and when the current files are associated with the target files, use the current files as associated files associated with the target files. The keyword matching module is further configured to: obtain a keyword list corresponding to the current file; detect whether the keywords in the keyword list are Chinese; determine a target matching strategy based on the detection result, and perform keyword matching on the current file according to the target matching strategy; update the keyword list based on the matching result to obtain an updated keyword list; and determine whether the current file is associated with the target file based on the updated keyword list and the target file list corresponding to the target file.

12. The document association analysis device as described in claim 11, characterized in that, The keyword matching module is further configured to: when the detection result indicates that the keyword is not Chinese, use the first preset matching strategy as the target matching strategy; obtain visible strings in the current file according to the target matching strategy; and perform keyword matching on the current file according to the keyword list and the visible strings.

13. The document association analysis device as described in claim 12, characterized in that, The keyword matching module is further configured to iterate through the keywords in the keyword list and compare the iterated keywords with the visible strings to perform keyword matching on the current file.

14. The document association analysis device as described in claim 11, characterized in that, The keyword matching module is further configured to: when the detection result indicates that the keyword is in Chinese, use the second preset matching strategy as the target matching strategy; traverse the keywords in the keyword list according to the target matching strategy; convert the traversed keywords according to a preset format to obtain the keyword to be matched; and perform keyword matching on the current file according to the keyword to be matched.

15. A document association analysis device, characterized in that, The file association analysis device includes: a memory, a processor, and a file association analysis program stored in the memory and executable on the processor. When the file association analysis program is executed by the processor, it implements the file association analysis method as described in any one of claims 1 to 10.

16. A storage medium, characterized in that, The storage medium stores a file association analysis program, which, when executed by a processor, implements the file association analysis method as described in any one of claims 1 to 10.

Citation Information

Patent Citations

  • File retrieval method and apparatus and terminal

    CN105574062A

  • File searching method, device and equipment and computer readable storage medium

    CN110018982A