A configuration file generation method, device and equipment
By automatically generating configuration files and using data in vehicle remote diagnosis log files, the problems of network delay and high manual editing costs in vehicle remote diagnosis are solved, and efficient and automated configuration file generation is achieved.
Patent Information
- Application Number
- CN202310006545.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-04
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2043-01-04
AI Technical Summary
In the existing technology, network delay in vehicle remote diagnosis causes response timeout, leading to diagnosis failure, and requires manual analysis of bus data to edit configuration files, which is costly and inefficient. It is especially difficult to quickly generate configurations for new models and high-end and low-end optional equipment. document.
By obtaining the vehicle remote diagnosis log file, pre-processing to obtain the vehicle identification code and target data, parsing and generating the configuration file according to the preset data processing rules, and merging it with the historical configuration file to automatically generate the configuration file without manual participation.
It improves the efficiency of configuration file generation, reduces costs, realizes automatic configuration file generation for different models, and avoids the complexity and delay of manual analysis.
Smart Images

Figure CN116346888B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a configuration file generation method, device and equipment. Background Art
[0002] In the remote diagnosis of vehicles, usually Figure 1 The architecture diagram shown. The remote diagnosis of the vehicle has a very high requirement for latency. If it times out, it is likely to cause a diagnosis failure. However, in remote diagnosis, network latency is unreliable and it is difficult to ensure that the network latency always meets the requirement, especially when the user uses wireless networks such as wifi or 4G. It is even more unreliable. In order to solve the problem of response timeout and diagnosis failure caused by remote diagnosis network latency, the existing practice is to use all UDS (Unified diagnostic services) service codes to support the negative response code 0x78. As shown in the figure, when the B end receives the diagnostic request of the diagnostic device, it will return a 0x7F SID 0X78 response, allowing the diagnostic device to wait for a longer period of time. In addition, when the B end and the C end receive the first frame, they will not wait for the response from the remote vehicle or diagnostic device, but will return a flow control frame to avoid network latency and timeout. However, the receiving ID and sending ID of different ECUs (Electronic Control Units) are different, and the flow control frames are also different. However, the B-end device and the C-end device do not know these data. Therefore, the existing technology is that technical engineers analyze the bus data on the vehicle, edit corresponding configuration files for different models and store them on the cloud platform, and download the configuration files before the B-end and C-end handshake successfully and start diagnosis, so that during the diagnosis process, according to the definition of the configuration file, the flow control and 0x7F SID 0X78 are returned.
[0003] However, the prior art requires manual analysis of the bus data on the vehicle and editing of the configuration file, so the company needs to invest a lot of manpower and financial resources to find vehicles of the corresponding model, collect and analyze the bus data, and then generate the configuration file; secondly, it is difficult to edit the configuration file for some new models in the first time, which makes it impossible to substitute it back. In addition, if the corresponding model is not found for analysis, the configuration file cannot be edited; and for the same model, there are high-end and low-end, as well as some optional equipment. If the person editing the configuration file misses some bus identifiers or there are conflicts between some bus identifiers, it will cause the remote diagnosis to time out, resulting in diagnosis failure.
[0004] In summary, how to realize automatic generation of configuration files without human intervention to improve the generation efficiency of configuration files and reduce costs is a problem that needs to be solved at present. Summary of the invention
[0005] In view of this, the purpose of the present invention is to provide a configuration file generation method, device and equipment, which can realize automatic generation of configuration files without human intervention, so as to improve the generation efficiency of configuration files and reduce costs. The specific scheme is as follows:
[0006] In a first aspect, the present application discloses a configuration file generation method, comprising:
[0007] Obtaining a log file generated in vehicle remote diagnosis, and preprocessing the log file to obtain a corresponding vehicle identification code and target data;
[0008] The target data is parsed according to a preset data processing rule to obtain current configuration information, and a current configuration file is generated based on the vehicle identification code and the current configuration information.
[0009] Optionally, the preprocessing of the log file to obtain the corresponding vehicle identification code and target data includes:
[0010] Read each log information in the log file, and if a vehicle identification code is recorded in the log information, extract the vehicle identification code;
[0011] If the log information records the sending and receiving process of bus data, it is determined whether the bus data is target data based on a preset diagnostic protocol; the target data is any one or more of the first frame, flow control frame and continuous frame data;
[0012] If it is the target data, the target data is extracted and stored in a data list corresponding to the bus channel number recorded in the target data.
[0013] Optionally, parsing the target data according to a preset data processing rule to obtain current configuration information includes:
[0014] Based on the first frame record, the target data in each of the data lists is processed into blocks to obtain a plurality of data blocks; wherein each of the data blocks includes a first frame record, a plurality of flow control frame records and a plurality of continuous frame records;
[0015] Each of the data lists is traversed in ascending order of the bus channel number, and each of the data blocks in the data list is parsed according to a preset data processing rule to obtain current configuration information, and the current configuration information is stored in the configuration list based on a preset merging rule.
[0016] Optionally, parsing each of the data blocks in the data list according to a preset data processing rule to obtain current configuration information includes:
[0017] Read the first frame record in each of the data blocks in the data list, parse the first frame to obtain the total number of consecutive frames, and store the corresponding bus identifier according to the data direction of the first frame record; the data direction includes the vehicle sending direction and the diagnostic device sending direction;
[0018] Read the next data frame record according to the order of sending and receiving the data frames, and determine whether it is a flow control frame record. If so, if the data direction of the flow control frame record is inconsistent with the data direction of the first frame record, parse the flow control frame to obtain the number of consecutive frames to be received, and store the corresponding bus identifier and flow control frame according to the data sending direction of the flow control frame;
[0019] Reading a corresponding number of data frame records according to the sending and receiving order and based on the number of continuous frames to be received, and determining whether they are continuous frame records, and if so, storing the continuous frames when the data direction and bus identifier of the continuous frame records are consistent with the data direction and bus identifier of the first frame record;
[0020] Determine whether the number of consecutive frames to be received is consistent with the total number of consecutive frames. If not, jump again to the step of reading the next data frame record according to the order of sending and receiving data frames until the sum of the number of consecutive frames to be received is consistent with the total number of consecutive frames to obtain the current configuration information.
[0021] Optionally, after parsing each of the data blocks in the data list according to a preset data processing rule to obtain current configuration information, the method further includes:
[0022] The data block corresponding to the bus identifier is deleted from the data list.
[0023] Optionally, after generating a current configuration file based on the vehicle identification code and the current configuration information, the method further includes:
[0024] A historical configuration file is obtained, and the current configuration file and the historical configuration file are merged according to a preset merging rule to obtain a target configuration file.
[0025] Optionally, merging the current configuration file and the historical configuration file according to a preset merging rule to obtain a target configuration file includes:
[0026] Parsing the vehicle identification code of the current configuration file to obtain a vehicle brand, a vehicle model, and a vehicle year, and obtaining first combination information based on the vehicle brand and the vehicle model, and obtaining second combination information based on the vehicle brand, the vehicle model, and the vehicle year;
[0027] Determine whether there are historical configuration files corresponding to the vehicle brand, the first combination information, and the second combination information in the cloud platform; if none of them exist, use the current configuration file as the target configuration file;
[0028] If so, determine whether there is an empty configuration item in the historical configuration file and whether there is target configuration information matching the empty configuration item in the current configuration file; if so, add the target configuration information to the empty configuration item to obtain the target configuration file;
[0029] If not, the minimum frame interval of the flow control frame and the number of consecutive frames to be received in the current configuration file and the historical configuration file are determined respectively, and the configuration file corresponding to the smaller value of the minimum frame interval and the number of consecutive frames to be received being zero is used as the target configuration file.
[0030] Optionally, the configuration file generation method further includes:
[0031] Obtaining a configuration file acquisition request carrying a target vehicle identification code sent by a transmission device of a product terminal through a cloud platform, and parsing the target vehicle identification code to obtain a target vehicle brand, target vehicle model, and target vehicle year;
[0032] Determine whether there is a configuration file in the cloud platform that matches the target vehicle brand, the target vehicle model, and the target vehicle year, and if so, send the configuration file to each transmission device;
[0033] If not, determining whether there is a configuration file matching both the target vehicle brand and the target vehicle model in the cloud platform, and if so, sending the configuration file to each transmission device;
[0034] If not, determine whether there is a configuration file matching the target vehicle brand in the cloud platform. If so, send the configuration file to each transmission device. If not, reply to each transmission device with an error code indicating that the configuration file does not exist.
[0035] In a second aspect, the present application discloses a configuration file generating device, comprising:
[0036] A preprocessing module, used to obtain a log file generated in vehicle remote diagnosis, and preprocess the log file to obtain a corresponding vehicle identification code and target data;
[0037] The file generation module is used to parse the target data according to a preset data processing rule to obtain current configuration information, and generate a current configuration file based on the vehicle identification code and the current configuration information.
[0038] In a third aspect, the present application discloses an electronic device, comprising:
[0039] Memory, used to store computer programs;
[0040] The processor is used to execute the computer program to implement the steps of the configuration file generating method disclosed above.
[0041] It can be seen that the present application obtains the log file generated in the remote diagnosis of the vehicle, and pre-processes the log file to obtain the corresponding vehicle identification code and target data; the target data is parsed according to the preset data processing rules to obtain the current configuration information, and the current configuration file is generated based on the vehicle identification code and the current configuration information. It can be seen that the present application first obtains the log file generated in the process of remote diagnosis of the vehicle, and then pre-processes the log file to obtain the required vehicle identification code and target data. In this process, the filtering of other irrelevant data is completed, and then the target data is parsed according to the preset data processing rules to obtain the current configuration information, and then the current configuration file is generated based on the current configuration information and the vehicle identification code. By adopting a solution of automatically generating configuration files using existing log files, the present application does not require human participation, thereby improving the efficiency of configuration file generation and reducing costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0043] Figure 1 A remote diagnosis architecture diagram disclosed in this application;
[0044] Figure 2 A flow chart of a configuration file generation method disclosed in this application;
[0045] Figure 3 A flowchart of a specific configuration file generation method disclosed in this application;
[0046] Figure 4 A flow chart of a configuration file matching method disclosed in this application;
[0047] Figure 5This is a flow chart of another specific configuration file generation method disclosed in this application;
[0048] Figure 6 A schematic diagram of the structure of a configuration file generating device disclosed in this application;
[0049] Figure 7 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION
[0050] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0051] However, the prior art requires manual analysis of the bus data on the vehicle and editing of the configuration file, so the company needs to invest a lot of manpower and financial resources to find vehicles of the corresponding model, collect bus data and analyze it, and then generate the configuration file; secondly, it is difficult to edit the configuration file in the first time for some new models, which makes it impossible to substitute it back. In addition, if the corresponding model is not found for analysis, the configuration file cannot be edited; and for the same model, there are high-end and low-end, as well as some optional equipment. If the person editing the configuration file misses some bus identifiers or there are conflicts between some bus identifiers, it will cause the remote diagnosis to time out, resulting in diagnosis failure. To this end, the embodiment of the present application discloses a configuration file generation method, device and equipment, which can realize the automatic generation of configuration files without manual participation, so as to improve the generation efficiency of configuration files and reduce costs.
[0052] See also Figure 1 As shown, the embodiment of the present application discloses a configuration file generation method, the method comprising:
[0053] Step S11: obtaining a log file generated in vehicle remote diagnosis, and preprocessing the log file to obtain a corresponding vehicle identification code and target data.
[0054] In this embodiment, the log file generated in the vehicle remote diagnosis is first obtained, and then the log file is preprocessed to obtain the required vehicle identification number (VIN code) and target data, and the filtering operation of other irrelevant data is completed in this process. That is, the purpose of preprocessing is to obtain the vehicle identification code corresponding to the log file and extract the required target data, and discard and filter out the remaining data. It can be understood that in the process of vehicle remote diagnosis, the data sent and received are usually saved in log files and uploaded to the cloud platform. In a specific embodiment, after the cloud platform obtains the log file, it can choose to batch process the log file in a period when the business is not busy, such as late at night, according to the processing capacity of the server; in another specific embodiment, the cloud platform can regularly import the obtained log files in batches to other servers for parsing. In this way, the burden on the server will not be increased due to the need to parse and process data, which will affect the existing business. That is to say, this embodiment does not need to process or parse the log file immediately after obtaining the uploaded log file, but processes it when the server is idle or imports the log file to other servers for processing, avoiding affecting the existing business and adding burden to the server.
[0055] It should be pointed out that companies operating remote diagnosis usually have a large number of users, and the vehicles that each user repairs include a wide variety of models, and each model will generate a lot of diagnostic data when remote diagnosis fails. These data will be saved in log files, so the cloud platform stores a large number of log files. Therefore, through the technical solution of this application, companies do not need to invest manpower and material resources to find vehicles of different models to obtain data on various vehicles, which greatly reduces the investment cost for companies.
[0056] Step S12: parsing the target data according to a preset data processing rule to obtain current configuration information, and generating a current configuration file based on the vehicle identification code and the current configuration information.
[0057] In this embodiment, the target data is parsed according to the preset data processing rules to obtain the current configuration information, and then the current configuration file is generated based on the vehicle identification code and the current configuration information. Specifically, the current configuration file is named after the vehicle identification code. It is understandable that a large amount of vehicle model information is also stored in a large amount of log files, so the vehicle model information covered by the extracted target data is relatively wide, and the generated configuration information also covers a wide range. In this way, the present application realizes a solution for automatically generating configuration information using existing log files, and through multiple iterations of log files, the data of the obtained configuration information is also more comprehensive and complete, and this process does not require human participation, which not only reduces the investment cost of the enterprise but also improves the efficiency of generating configuration files.
[0058] It can be seen that the present application obtains the log file generated in the remote diagnosis of the vehicle, and pre-processes the log file to obtain the corresponding vehicle identification code and target data; the target data is parsed according to the preset data processing rules to obtain the current configuration information, and the current configuration file is generated based on the vehicle identification code and the current configuration information. It can be seen that the present application first obtains the log file generated in the process of remote diagnosis of the vehicle, and then pre-processes the log file to obtain the required vehicle identification code and target data. In this process, the filtering of other irrelevant data is completed, and then the target data is parsed according to the preset data processing rules to obtain the current configuration information, and then the current configuration file is generated based on the current configuration information and the vehicle identification code. By adopting a solution of automatically generating configuration files using existing log files, the present application does not require human participation, thereby improving the efficiency of configuration file generation and reducing costs.
[0059] See also Figure 2 As shown, the embodiment of the present application discloses a specific configuration file generation method. Compared with the previous embodiment, this embodiment further explains and optimizes the technical solution. Specifically, it includes:
[0060] Step S21: obtaining a log file generated in vehicle remote diagnosis, and reading each log information in the log file. If a vehicle identification code is recorded in the log information, extracting the vehicle identification code.
[0061] In this embodiment, after the log file generated in the vehicle remote diagnosis is obtained, the log file is opened, and a line of log information in the log file is read each time. If the log information records a vehicle identification code, the corresponding vehicle identification code is extracted.
[0062] Step S22: If the log information records the sending and receiving process of bus data, determine whether the bus data is target data based on the preset diagnostic protocol; if it is the target data, extract the target data and store the target data in a data list corresponding to the bus channel number recorded in the target data.
[0063] In this embodiment, if the log information records the receiving and sending process of bus data, it is determined whether the bus data is the target data based on the preset diagnostic protocol, and the preset diagnostic protocol is specifically the ISO15765 protocol, and the target data is any one or more of the first frame, flow control frame and continuous frame data; that is, it is determined whether it is the first frame, flow control frame or continuous frame data according to the ISO15765 protocol standard. If so, the target data is extracted. In addition, the bus channel number is recorded in the target data, so the target data is stored in the data list corresponding to the bus channel number recorded in the target data. It can be understood that the purpose of data preprocessing is to obtain the corresponding vehicle identification code and save all the first frames, flow control frames or continuous frames sent and received by the same bus together to facilitate subsequent processing. It should be pointed out that if the vehicle identification code is empty, it means that the log file is invalid. In addition, information such as bus identification, bus data, bus channel number and data direction can also be recorded, that is, the data direction is sent by the vehicle or by the diagnostic device.
[0064] Step S23: parsing the target data according to a preset data processing rule to obtain current configuration information, and generating a current configuration file based on the vehicle identification code and the current configuration information.
[0065] Step S24: Acquire a historical configuration file, and merge the current configuration file and the historical configuration file according to a preset merging rule to obtain a target configuration file.
[0066] In this embodiment, the existing historical configuration files on the cloud platform are obtained, and the current configuration files and the historical configuration files are merged according to the preset merging rules to obtain the final target configuration file. It should be noted that if there is no historical configuration file on the cloud platform, the generated current configuration file is the final target configuration file required. If there is a historical configuration file, the current configuration file and the historical configuration file are merged according to the preset merging rules to obtain the final target configuration file required.
[0067] Specifically, the above-mentioned merging the current configuration file and the historical configuration file according to the preset merging rule to obtain the target configuration file includes: parsing the vehicle identification code of the current configuration file to obtain the vehicle brand, vehicle model and vehicle year, and obtaining the first combination information based on the vehicle brand and the vehicle model, and obtaining the second combination information based on the vehicle brand, the vehicle model and the vehicle year; judging whether there are historical configuration files corresponding to the vehicle brand, the first combination information and the second combination information in the cloud platform, if none of them exist, taking the current configuration file as the target configuration file; if yes, judging whether there is an empty configuration item in the historical configuration file and whether there is target configuration information matching the empty configuration item in the current configuration file, if yes, adding the target configuration information to the empty configuration item to obtain the target configuration file; if no, respectively determining the minimum frame interval of the flow control frame and the number of continuous frames to be received in the current configuration file and the historical configuration file, and taking the configuration file corresponding to the smaller value of the minimum frame interval and the number of continuous frames to be received being zero as the target configuration file.
[0068] That is, in this embodiment, the vehicle identification code of the current configuration file is first parsed to obtain the vehicle brand, vehicle model and vehicle year, and then the vehicle brand and vehicle model are combined to obtain the first combination information, and the vehicle brand, vehicle model and vehicle year are combined to obtain the second combination information, so as to realize the hierarchical management of the configuration file. Then, it is determined whether there are historical configuration files corresponding to the vehicle brand, the first combination information and the second combination information in the cloud platform, that is, whether there are configuration files corresponding to the vehicle brand, the corresponding vehicle brand_vehicle model, and the corresponding vehicle brand_vehicle model_vehicle year in the cloud platform. If none of them exist, it means that the cloud platform does not store the configuration files corresponding to the above vehicle brands, and then the current configuration file is directly used as the target configuration file. If there is a historical configuration file corresponding to the vehicle brand, the first combination information and the second combination information or corresponding to one of them on the cloud platform, it is determined whether there is an empty configuration item in the historical configuration file and whether there is target configuration information matching the empty configuration item in the current configuration file. If so, the target configuration information is added to the empty configuration item, and then merged with other non-empty configuration items in the historical configuration file to obtain the target configuration file. If there is no empty configuration item in the historical configuration file, the minimum frame interval of the flow control frame and the number of continuous frames to be received in the current configuration file and the historical configuration file are determined. The number of continuous frames to be received refers to the number of continuous frames to be received at one time set in the flow control frame, and then the configuration file corresponding to the smaller value of the minimum frame interval and the number of continuous frames to be received being zero is used as the target configuration file. Specifically, the configuration file corresponding to the flow control frame with the smaller minimum frame interval is used first. If the minimum frame intervals of the two configuration files are the same, the configuration file corresponding to the flow control frame with the number of continuous frames to be received being zero is used first. The value of the number of continuous frames to be received being zero indicates that there is no limit on its number. If the number of continuous frames to be received is not zero, the configuration file corresponding to the flow control frame with a larger number of continuous frames to be received is used as the target configuration file.
[0069] For a more specific processing procedure of the above step S23, reference may be made to the corresponding contents disclosed in the above embodiments, which will not be described in detail here.
[0070] Furthermore, the generated target configuration file will be stored in the cloud platform so that after receiving the configuration file acquisition request, the cloud platform will send the configuration file matching the request to the transmission device. Figure 4 As shown, this embodiment may further include:
[0071] Step S31: obtaining a configuration file acquisition request carrying a target vehicle identification code sent by a transmission device of a product terminal through a cloud platform, and parsing the target vehicle identification code to obtain a target vehicle brand, a target vehicle model and a target vehicle year.
[0072] In this embodiment, the product terminal specifically refers to Figure 1 The corresponding transmission device is the C-end. After the cloud platform obtains the configuration file acquisition request carrying the target vehicle identification code sent by the C-end, it parses the target vehicle identification code to obtain the target vehicle brand, target vehicle model and target vehicle year.
[0073] Step S32: Determine whether there is a configuration file in the cloud platform that matches the target vehicle brand, the target vehicle model, and the target vehicle year. If so, send the configuration file to each transmission device.
[0074] In this embodiment, the cloud platform determines whether there is a configuration file matching the target vehicle brand, target vehicle model and target vehicle year stored locally. If so, the corresponding configuration file is sent to each transmission device, namely, end B and end C. That is, firstly, matching is performed according to the second combination information mentioned above, namely, vehicle brand_vehicle model_vehicle year. If there is a configuration file matching all three in the cloud platform, the configuration file is sent to end B and end C.
[0075] Step S33: If not, determine whether there is a configuration file matching both the target vehicle brand and the target vehicle model in the cloud platform; if so, send the configuration file to each transmission device.
[0076] In this embodiment, if there is no configuration file in the cloud platform that matches the target vehicle brand, target vehicle model and target vehicle year, the search scope is further expanded, that is, matching is performed in the form of the first combination of information mentioned above, that is, vehicle brand_vehicle model, to find out whether there is a configuration file in the cloud platform that matches the target vehicle brand and target vehicle model. If so, the corresponding configuration file is sent to the B-end and the C-end.
[0077] Step S34: If not, determine whether there is a configuration file matching the target vehicle brand in the cloud platform. If so, send the configuration file to each transmission device. If not, reply to each transmission device with an error code indicating that the configuration file does not exist.
[0078] In this embodiment, if there is no configuration file matching both the target vehicle brand and the target vehicle model in the cloud platform, the search scope is further expanded, that is, to find out whether there is a configuration file matching the target vehicle brand in the cloud platform. If so, the corresponding configuration file is sent to the B end and the C end. If not, an error code indicating that the configuration file does not exist is replied to the B end and the C end.
[0079] It can be seen that in the embodiment of the present application, the obtained log file needs to be preprocessed first. The purpose of the data preprocessing is to obtain the corresponding vehicle identification code and save all the first frames, flow control frames or continuous frames sent and received by the same bus together to facilitate subsequent processing. Then the target data obtained after preprocessing is parsed to automatically generate the current configuration file, and the current configuration file needs to be merged with the existing historical configuration files in the cloud platform to obtain the merged target configuration file. In the merging process, the vehicle identification code is first parsed to obtain the vehicle brand, vehicle model and vehicle year, and then these three types of information are combined to achieve hierarchical management of the configuration file. If there is no historical configuration file matching the above combined information in the cloud platform, the current configuration file is directly used as the final target configuration file. If there is a matching historical configuration file, it needs to be merged to obtain the final target configuration file. In addition, the final target configuration file will be stored in the cloud platform, so that after the cloud platform obtains the configuration file acquisition request, the configuration file matching the request will be sent to the transmission device. In the matching process, the scope needs to be gradually expanded according to the hierarchical management rules of the configuration file mentioned above. Once the corresponding configuration file is matched, the configuration file is sent to each transmission device.
[0080] See also Figure 5 As shown, the embodiment of the present application discloses a specific configuration file generation method. Compared with the previous embodiment, this embodiment further explains and optimizes the technical solution. Specifically, it includes:
[0081] Step S41: Obtain a log file generated in vehicle remote diagnosis, pre-process the log file to obtain a corresponding vehicle identification code and target data, and store the target data in a data list corresponding to the bus channel number recorded in the target data.
[0082] Step S42: Based on the first frame record, the target data in each of the data lists is processed into blocks to obtain a plurality of data blocks; wherein each of the data blocks includes a first frame record, a plurality of flow control frame records and a plurality of continuous frame records.
[0083] In this embodiment, after data preprocessing is performed on the log file, data block processing is performed on the target data stored in the data list. Specifically, data block processing is performed on the target data based on the first frame record to obtain a plurality of data blocks, each of which includes a first frame record, a plurality of flow control frame records, and a plurality of continuous frame records. That is, all data between a first frame and the next first frame is taken as a data block.
[0084] Step S43: traverse each of the data lists in ascending order of the bus channel numbers, and parse each of the data blocks in the data lists according to a preset data processing rule to obtain current configuration information.
[0085] In this embodiment, each data list is traversed in the order of the bus channel number from small to large until all data lists are traversed, and each data block in each data list is parsed according to the preset data processing rules to obtain the current configuration information. For example, the data list is recorded as list_n, n represents the bus channel number, and it is assumed that the value of n is 1 to 5. First, the data list list_1 is traversed, each data block in list_1 is obtained and parsed in turn to obtain the corresponding current configuration information. After all data blocks in list_1 are processed, list_2 is traversed, and after all data blocks in list_2 are processed, list_3 is traversed, and so on, until list_5 is traversed, it means that all data lists have been traversed and the total current configuration information has been obtained.
[0086] Furthermore, the above-mentioned parsing of each of the data blocks in the data list according to the preset data processing rules to obtain the current configuration information includes: reading the first frame record in each of the data blocks in the data list, parsing the first frame to obtain the total number of consecutive frames, and storing the corresponding bus identifier according to the data direction of the first frame record; the data direction includes the vehicle sending direction and the diagnostic equipment sending direction; reading the next data frame record according to the sending and receiving order of the data frame, and determining whether it is a flow control frame record. If so, then when the data direction of the flow control frame record is inconsistent with the data direction of the first frame record, parsing the flow control frame to obtain the to-be-received continuous frame. The number of consecutive frames to be received is stored in the data transmission direction of the flow control frame, and the corresponding bus identifier and flow control frame are stored; a corresponding number of data frame records are read according to the receiving and sending order and based on the number of consecutive frames to be received, and it is determined whether they are consecutive frame records. If so, the consecutive frames are stored when the data direction and bus identifier of the consecutive frame records are consistent with the data direction and bus identifier of the first frame record; it is determined whether the number of consecutive frames to be received is consistent with the total number of consecutive frames. If not, it is jumped to the step of reading the next data frame record according to the receiving and sending order of the data frames until the sum of the consecutive frames to be received is consistent with the total number of consecutive frames to obtain the current configuration information.
[0087] It can be understood that, from the foregoing content, each data block includes a first frame record, several flow control frame records and several continuous frame records, and the order of sending and receiving data frames is the order of first frame, flow control frame, continuous frame, flow control frame, continuous frame... Take a specific data block as an example:
[0088] 000007e8 102362f194000000CAN_C 1 / / First frame
[0089] 000007e0 300100ffffffffff CAN_B 1 / / Flow control frame
[0090] 000007e8 21000000000000000CAN_C 1 / / Continuous frame
[0091] 000007e0 300100ffffffffff CAN_B 1
[0092] 000007e8 2200000000000000CAN_C 1
[0093] 000007e0 300100ffffffffff CAN_B 1
[0094] 000007e8 2300000000000000CAN_C 1
[0095] 000007e0 300100ffffffffff CAN_B 1
[0096] 000007e8 2400000000000000CAN_C 1
[0097] 000007e0 300100ffffffffff CAN_B 1
[0098] 000007e8 2500000000000000CAN_C 1
[0099] Among them, 000007e8 and 000007e0 represent the bus identifier (i.e., can id); the frame starting with 1 is the first frame, such as 102362f194000000; the frame starting with 2 is a continuous frame, such as 2100000000000000; the frame starting with 3 is a flow control frame, such as 300100ffffffffff; the frames starting with 21, 22, 23, 24, and 25 are continuous frames, and the positions 1, 2, 3, 4, and 5 are the frame numbers of the continuous frames.
[0100] When parsing the data block, first read the first frame record, and parse the first frame to obtain the total number of consecutive frames, and store the corresponding bus identifier according to the data direction of the first frame record. If it is sent by the vehicle, it is saved as CAN_B_ID, otherwise it is saved as CAN_C_ID. Read the next data frame record according to the order of sending and receiving the data frame, and determine whether it is a flow control frame record. If so, if the data direction of the flow control frame record is inconsistent with the data direction of the first frame record, parse the flow control frame to obtain the number of consecutive frames to be received at one time (ie BS). If BS is 0, set BS to the total number of consecutive frames, and store the corresponding bus identifier and flow control frame according to the data sending direction of the flow control frame. If it is sent by the vehicle, it is saved as CAN_B_ID, CAN_B_FC, otherwise it is saved as CAN_C_ID, CAN_C_FC. If it is not a flow control frame record, or the data direction of the flow control frame record is consistent with the data direction of the first frame record, the current parsing fails. An example of each item in the configuration file is as follows:
[0101] <CAN_LEN> 2< / CAN_LEN>
[0102] <CAN_C_ID> 0x07e8< / CAN_C_ID>
[0103] <CAN_C_FC> 300100ffffffffff< / CAN_C_FC>
[0104] <CAN_B_ID> 0x07e0< / CAN_B_ID>
[0105] <CAN_B_FC> 300100ffffffffff< / CAN_B_FC>
[0106] Read the corresponding number of data frame records according to the order of sending and receiving and based on the number of continuous frames to be received, and determine whether it is a continuous frame record. If so, store the continuous frame when the data direction and bus identifier of the continuous frame record are consistent with the data direction and bus identifier of the first frame record. In this process, after each continuous frame record is processed, BS decreases by 1. When it decreases to 0, it means that all continuous frames corresponding to the previous flow control frame have been received. If one of the data frame records is not a continuous frame record, or the frame sequence number of the continuous frame is not continuous, and the data direction and bus identifier of the continuous frame record are inconsistent with the data direction and bus identifier of the first frame record, the current parsing fails.
[0107] Then determine whether the number of consecutive frames to be received is consistent with the total number of consecutive frames. If not, jump again to the step of reading the next data frame record according to the order of sending and receiving data frames. The next data frame record should be a new flow control frame until the sum of the number of consecutive frames to be received is consistent with the total number of consecutive frames to obtain the current configuration information.
[0108] Furthermore, after parsing each data block in the data list according to the preset data processing rule to obtain the current configuration information, the method further includes: deleting the data block corresponding to the bus identifier in the data list, that is, deleting the database corresponding to the bus identifier that has been parsed from the data list to save storage space.
[0109] Step S44: storing the current configuration information into a configuration list based on a preset merging rule, and generating a current configuration file based on the vehicle identification code and the current configuration information.
[0110] In this embodiment, the current configuration information is stored in the configuration list based on the preset merging rules, wherein the preset merging rules are merged with the configuration files mentioned above. First, check whether there is data in the list that is identical to both CAN_B_ID and CAN_C_ID. If not, add it directly to the configuration list. If it exists, merge it with the historical configuration information already in the configuration list. Specifically, if the CAN_B_FC or CAN_C_FC in the list is empty and the current configuration information matches the empty configuration item, add the current configuration information directly to the empty configuration item. If there is already a corresponding CAN_B_FC or CAN_C_FC in the list, parse STmin (minimum frame interval) and BS, and give priority to the flow control frame with a small STmin. If STmin is the same, give priority to the flow control frame with a BS of 0. If neither BS is 0, give priority to the flow control frame corresponding to the BS with a large value.
[0111] Step S45: Acquire a historical configuration file, and merge the current configuration file and the historical configuration file according to a preset merging rule to obtain a target configuration file.
[0112] For more specific processing procedures of the above steps S41 and S45, reference may be made to the corresponding contents disclosed in the above embodiments, which will not be described in detail here.
[0113] It can be seen that in the embodiment of the present application, each data list needs to be traversed in ascending order of the bus channel number, and each data block in the data list needs to be parsed to obtain the current configuration information. Since each data includes a first frame record, several flow control frame records and several continuous frame records, each data frame in the data block is parsed in turn according to the order of sending and receiving the data frames, until all data blocks in the data list are parsed, the total current configuration information is obtained, and then the current configuration information is stored in the configuration list according to the preset merging rules.
[0114] See also Figure 6 As shown, the embodiment of the present application discloses a configuration file generating device, the device comprising:
[0115] A preprocessing module 11 is used to obtain a log file generated in vehicle remote diagnosis and preprocess the log file to obtain a corresponding vehicle identification code and target data;
[0116] The file generation module 12 is used to parse the target data according to a preset data processing rule to obtain current configuration information, and generate a current configuration file based on the vehicle identification code and the current configuration information.
[0117] It can be seen that the present application obtains the log file generated in the remote diagnosis of the vehicle, and pre-processes the log file to obtain the corresponding vehicle identification code and target data; the target data is parsed according to the preset data processing rules to obtain the current configuration information, and the current configuration file is generated based on the vehicle identification code and the current configuration information. It can be seen that the present application first obtains the log file generated in the process of remote diagnosis of the vehicle, and then pre-processes the log file to obtain the required vehicle identification code and target data. In this process, the filtering of other irrelevant data is completed, and then the target data is parsed according to the preset data processing rules to obtain the current configuration information, and then the current configuration file is generated based on the current configuration information and the vehicle identification code. By adopting a solution of automatically generating configuration files using existing log files, the present application does not require human participation, thereby improving the efficiency of configuration file generation and reducing costs.
[0118] In some specific embodiments, the preprocessing module 11 may specifically include:
[0119] A vehicle identification code extraction unit, used to read each log information in the log file, and if a vehicle identification code is recorded in the log information, extract the vehicle identification code;
[0120] A target data judgment unit, used for judging whether the bus data is target data based on a preset diagnostic protocol if the log information records the sending and receiving process of the bus data; the target data is any one or more of the first frame, flow control frame and continuous frame data;
[0121] The target data extraction unit is used to extract the target data if it is the target data, and store the target data in a data list corresponding to the bus channel number recorded in the target data.
[0122] In some specific embodiments, the file generation module 12 may specifically include:
[0123] A data block unit, used for performing data block processing on the target data in each of the data lists based on the first frame record to obtain a plurality of data blocks; wherein each of the data blocks includes a first frame record, a plurality of flow control frame records and a plurality of continuous frame records;
[0124] A configuration information acquisition unit is used to traverse each of the data lists in the order of the bus channel number from small to large, and parse each of the data blocks in the data list according to the preset data processing rules to obtain the current configuration information, and store the current configuration information into the configuration list based on the preset merging rules.
[0125] In some specific embodiments, the configuration information acquisition unit may specifically include:
[0126] A first frame parsing unit, used for reading the first frame record in each of the data blocks in the data list, parsing the first frame to obtain the total number of consecutive frames, and storing the corresponding bus identifier according to the data direction of the first frame record; the data direction includes the vehicle sending direction and the diagnostic device sending direction;
[0127] A flow control frame parsing unit, configured to read the next data frame record according to the order of sending and receiving the data frames, and determine whether it is a flow control frame record, and if so, parse the flow control frame to obtain the number of consecutive frames to be received when the data direction of the flow control frame record is inconsistent with the data direction of the first frame record, and store the corresponding bus identifier and flow control frame according to the data sending direction of the flow control frame;
[0128] a continuous frame storage unit, configured to read a corresponding number of data frame records according to the sending and receiving sequence and based on the number of continuous frames to be received, and determine whether they are continuous frame records, and if so, store the continuous frames if the data direction and bus identifier of the continuous frame records are consistent with the data direction and bus identifier of the first frame record;
[0129] The continuous frame number judgment unit is used to judge whether the number of continuous frames to be received is consistent with the total number of continuous frames. If not, it jumps back to the step of reading the next data frame record according to the order of sending and receiving data frames until the sum of the number of continuous frames to be received is consistent with the total number of continuous frames to obtain the current configuration information.
[0130] In some specific embodiments, after the file generation module 12, the following may also be included:
[0131] A data deleting unit is used to delete the data block corresponding to the bus identifier in the data list.
[0132] In some specific embodiments, after the file generation module 12, the following may also be included:
[0133] The file merging unit is used to obtain a historical configuration file, and merge the current configuration file and the historical configuration file according to a preset merging rule to obtain a target configuration file.
[0134] In some specific embodiments, the file merging unit may specifically include:
[0135] a vehicle identification code parsing unit, configured to parse the vehicle identification code of the current configuration file to obtain a vehicle brand, a vehicle model and a vehicle year, and obtain first combination information based on the vehicle brand and the vehicle model, and obtain second combination information based on the vehicle brand, the vehicle model and the vehicle year;
[0136] a configuration file determination unit, configured to determine whether there are historical configuration files corresponding to the vehicle brand, the first combination information, and the second combination information in the cloud platform, and if none of them exist, use the current configuration file as a target configuration file;
[0137] a configuration information adding unit, configured to determine whether there is an empty configuration item in the historical configuration file and whether there is target configuration information matching the empty configuration item in the current configuration file, and if so, add the target configuration information to the empty configuration item to obtain a target configuration file;
[0138] The configuration file determination unit is used to determine the minimum frame interval of the flow control frame and the number of consecutive frames to be received in the current configuration file and the historical configuration file respectively if not, and use the configuration file corresponding to the smaller value of the minimum frame interval and the number of consecutive frames to be received being zero as the target configuration file.
[0139] In some specific embodiments, the configuration file generating device may further include:
[0140] A vehicle information acquisition unit, used to acquire a configuration file acquisition request carrying a target vehicle identification code sent by a transmission device of a product terminal through a cloud platform, and parse the target vehicle identification code to acquire a target vehicle brand, a target vehicle model and a target vehicle year;
[0141] A first matching unit, configured to determine whether there is a configuration file in the cloud platform that matches the target vehicle brand, the target vehicle model, and the target vehicle year, and if so, send the configuration file to each transmission device;
[0142] A second matching unit is used to determine whether there is a configuration file matching both the target vehicle brand and the target vehicle model in the cloud platform, and if yes, send the configuration file to each transmission device;
[0143] The third matching unit is used to determine whether there is a configuration file matching the target vehicle brand in the cloud platform, and if so, send the configuration file to each transmission device; if not, reply to each transmission device with an error code indicating that the configuration file does not exist.
[0144] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Specifically, it may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, and the computer program is loaded and executed by the processor 21 to implement the relevant steps in the configuration file generation method performed by the electronic device disclosed in any of the aforementioned embodiments.
[0145] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0146] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 can be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0147] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon include an operating system 221, a computer program 222 and data 223, etc. The storage method can be temporary storage or permanent storage.
[0148] Among them, the operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, so as to realize the operation and processing of the massive data 223 in the memory 22 by the processor 21, which can be Windows, Unix, Linux, etc. In addition to including a computer program that can be used to complete the configuration file generation method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks. In addition to data received by the electronic device and transmitted from an external device, the data 223 can also include data collected by its own input and output interface 25, etc.
[0149] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0150] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0151] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0152] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0153] The above is a detailed introduction to a configuration file generation method, device and equipment provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A configuration file generation method, characterized in that: include: Obtaining a log file generated in vehicle remote diagnosis, and preprocessing the log file to obtain a corresponding vehicle identification code and target data; Parsing the target data according to a preset data processing rule to obtain current configuration information, and generating a current configuration file based on the vehicle identification code and the current configuration information; Wherein, after generating the current configuration file based on the vehicle identification code and the current configuration information, the method further includes: Acquire a historical configuration file, and merge the current configuration file and the historical configuration file according to a preset merging rule to obtain a target configuration file; The merging of the current configuration file and the historical configuration file according to a preset merging rule to obtain a target configuration file includes: Parsing the vehicle identification code of the current configuration file to obtain a vehicle brand, a vehicle model, and a vehicle year, and obtaining first combination information based on the vehicle brand and the vehicle model, and obtaining second combination information based on the vehicle brand, the vehicle model, and the vehicle year; Determine whether there are historical configuration files corresponding to the vehicle brand, the first combination information, and the second combination information in the cloud platform; if none of them exist, use the current configuration file as the target configuration file; If so, determine whether there is an empty configuration item in the historical configuration file and whether there is target configuration information matching the empty configuration item in the current configuration file; if so, add the target configuration information to the empty configuration item to obtain the target configuration file; If not, the minimum frame interval of the flow control frame and the number of consecutive frames to be received in the current configuration file and the historical configuration file are determined respectively, and the configuration file corresponding to the smaller value of the minimum frame interval and the number of consecutive frames to be received being zero is used as the target configuration file.
2. The configuration file generation method according to claim 1, characterized in that: The preprocessing of the log file to obtain the corresponding vehicle identification code and target data includes: Read each log information in the log file, and if a vehicle identification code is recorded in the log information, extract the vehicle identification code; If the log information records the sending and receiving process of bus data, it is determined whether the bus data is target data based on a preset diagnostic protocol; the target data is any one or more of the first frame, flow control frame and continuous frame data; If it is the target data, the target data is extracted and stored in a data list corresponding to the bus channel number recorded in the target data.
3. The configuration file generation method according to claim 2, characterized in that: The parsing of the target data according to the preset data processing rules to obtain the current configuration information includes: Based on the first frame record, the target data in each of the data lists is processed into blocks to obtain a plurality of data blocks; wherein each of the data blocks includes a first frame record, a plurality of flow control frame records and a plurality of continuous frame records; Each of the data lists is traversed in ascending order of the bus channel number, and each of the data blocks in the data list is parsed according to a preset data processing rule to obtain current configuration information, and the current configuration information is stored in the configuration list based on a preset merging rule.
4. The configuration file generation method according to claim 3, characterized in that: The step of parsing each of the data blocks in the data list according to the preset data processing rule to obtain the current configuration information includes: Read the first frame record in each of the data blocks in the data list, parse the first frame to obtain the total number of consecutive frames, and store the corresponding bus identifier according to the data direction of the first frame record; the data direction includes the vehicle sending direction and the diagnostic device sending direction; Read the next data frame record according to the order of sending and receiving the data frames, and determine whether it is a flow control frame record. If so, if the data direction of the flow control frame record is inconsistent with the data direction of the first frame record, parse the flow control frame to obtain the number of consecutive frames to be received, and store the corresponding bus identifier and flow control frame according to the data sending direction of the flow control frame; Reading a corresponding number of data frame records according to the sending and receiving order and based on the number of continuous frames to be received, and determining whether they are continuous frame records, and if so, storing the continuous frames when the data direction and bus identifier of the continuous frame records are consistent with the data direction and bus identifier of the first frame record; Determine whether the number of consecutive frames to be received is consistent with the total number of consecutive frames. If not, jump again to the step of reading the next data frame record according to the order of sending and receiving data frames until the sum of the number of consecutive frames to be received is consistent with the total number of consecutive frames to obtain the current configuration information.
5. The configuration file generation method according to claim 4, characterized in that: After parsing each of the data blocks in the data list according to the preset data processing rule to obtain the current configuration information, the method further includes: The data block corresponding to the bus identifier is deleted from the data list.
6. The configuration file generation method according to claim 1, characterized in that: Also includes: Obtaining a configuration file acquisition request carrying a target vehicle identification code sent by a transmission device of a product terminal through a cloud platform, and parsing the target vehicle identification code to obtain a target vehicle brand, target vehicle model, and target vehicle year; Determine whether there is a configuration file in the cloud platform that matches the target vehicle brand, the target vehicle model, and the target vehicle year, and if so, send the configuration file to each transmission device; If not, determining whether there is a configuration file matching both the target vehicle brand and the target vehicle model in the cloud platform, and if so, sending the configuration file to each transmission device; If not, determine whether there is a configuration file matching the target vehicle brand in the cloud platform. If so, send the configuration file to each transmission device. If not, reply to each transmission device with an error code indicating that the configuration file does not exist.
7. A configuration file generating device, characterized in that: include: A preprocessing module, used to obtain a log file generated in vehicle remote diagnosis, and preprocess the log file to obtain a corresponding vehicle identification code and target data; A file generation module, used to parse the target data according to a preset data processing rule to obtain current configuration information, and generate a current configuration file based on the vehicle identification code and the current configuration information; Wherein, the configuration file generating device further includes: A file merging unit, used to obtain a historical configuration file, and merge the current configuration file and the historical configuration file according to a preset merging rule to obtain a target configuration file; Wherein, the file merging unit includes: a vehicle identification code parsing unit, configured to parse the vehicle identification code of the current configuration file to obtain a vehicle brand, a vehicle model and a vehicle year, and obtain first combination information based on the vehicle brand and the vehicle model, and obtain second combination information based on the vehicle brand, the vehicle model and the vehicle year; a configuration file determination unit, configured to determine whether there are historical configuration files corresponding to the vehicle brand, the first combination information, and the second combination information in the cloud platform, and if none of them exist, use the current configuration file as a target configuration file; a configuration information adding unit, configured to determine whether there is an empty configuration item in the historical configuration file and whether there is target configuration information matching the empty configuration item in the current configuration file, and if so, add the target configuration information to the empty configuration item to obtain a target configuration file; The configuration file determination unit is used to determine the minimum frame interval of the flow control frame and the number of consecutive frames to be received in the current configuration file and the historical configuration file respectively if not, and use the configuration file corresponding to the smaller value of the minimum frame interval and the number of consecutive frames to be received being zero as the target configuration file.
8. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the steps of the configuration file generating method according to any one of claims 1 to 6.
