Access control method, device, electronic device and storage medium for fault code library

By receiving the fault code library access request of the user device, judging the access frequency based on its identification information and taking corresponding measures, the problem of malicious access to the fault code library is solved and the stability and security of the service are achieved.

CN113806131BActive Publication Date: 2024-09-10LAUNCH SOFTWARE DEV
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing technologies are difficult to effectively prevent malicious access to fault code libraries, causing service stability to be affected.

Method used

By receiving the fault code library access request of the user equipment, the access frequency information is determined based on the identification information of the user equipment, and whether there is abnormal access is determined. If there is abnormal access, corresponding measures are taken, such as denying access or requiring identity verification.

Benefits of technology

It effectively prevents excessively frequent abnormal access, ensures the stability and security of the fault code library, and avoids the impact of malicious access on services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113806131B
    Figure CN113806131B
Patent Text Reader

Abstract

The present application is applicable to the field of automotive electronic technology, and provides a method, device, electronic device and storage medium for controlling access to a fault code library, the method comprising: receiving a fault code library access request sent by a user device, the fault code library access request carrying identification information of the user device; determining the fault code library access frequency information of the user device according to the identification information; determining whether the fault code library access request of the user device is abnormal based on the fault code library access frequency information of the user device; when the fault code library access request of the user device is abnormal, responding to the abnormal access request to the user device. By determining the access frequency information according to the user device identification in the fault code library access request sent by the user device, and determining whether the fault code library access request is abnormal through the access frequency information, it is possible to discover and avoid excessively frequent abnormal access, thereby solving the problem of malicious access to the fault code library.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of automotive electronic technology, and in particular, relates to an access control method, device, electronic device and storage medium for a fault code library. Background Art

[0002] At present, the fault code library is placed in the server. The user device needs to access the server to obtain the corresponding fault information of the fault code. In order to provide a stable fault code information service, it is necessary to prevent malicious access to the fault code library. Summary of the invention

[0003] The embodiments of the present application provide a method, device, electronic device and storage medium for controlling access to a fault code library, which can solve the problem of malicious access to the fault code library.

[0004] In a first aspect, an embodiment of the present application provides an access control method for a fault code library, comprising:

[0005] Receiving a fault code library access request sent by a user device, wherein the fault code library access request carries identification information of the user device;

[0006] Determine the fault code library access frequency information of the user device according to the identification information;

[0007] Based on the fault code library access frequency information of the user device, determining whether there is an abnormality in the fault code library access request of the user device;

[0008] When the fault code library access request of the user device is abnormal, an abnormal access request response is made to the user device.

[0009] Based on the first aspect of the embodiment of the present application, in a first possible implementation manner, the making a response to the abnormal access request of the user equipment includes:

[0010] Deny the user device access to the fault code library.

[0011] Based on the first aspect of the embodiment of the present application, in a second possible implementation manner, the fault code library access frequency information includes: a sending time interval between the fault code library access request currently sent by the user equipment and the last sent fault code library access request;

[0012] The determining, based on the fault code library access frequency information of the user device, whether the fault code library access request of the user device is abnormal includes:

[0013] Get the detection mode corresponding to the fault code library access request sent last time;

[0014] Determine the corresponding detection duration according to the detection mode;

[0015] If the sending time interval between the fault code library access request currently sent by the user device and the fault code library access request sent last time is less than the detection duration corresponding to the detection mode, it is determined that there is an abnormality in the fault code library access request of the user device.

[0016] Based on the first aspect of the embodiment of the present application, in a third possible implementation, the detection mode includes: a single ECU detection mode and a full vehicle detection mode.

[0017] Based on the first aspect of the embodiment of the present application, in a fourth possible implementation manner, determining the corresponding detection duration according to the detection mode includes:

[0018] The shortest duration for the user equipment to read the fault code in the detection mode is determined as the detection duration corresponding to the detection mode.

[0019] Based on the first aspect of the embodiment of the present application, in a fifth possible implementation manner, determining the fault code library access frequency information of the user equipment according to the identification information includes:

[0020] Acquire the access time period corresponding to the moment when the user equipment sends the fault code library access request; and,

[0021] Acquire the total number of times the user device sends the fault code library access request within the access time period;

[0022] The determining, based on the fault code library access frequency information of the user device, whether the fault code library access request of the user device is abnormal includes:

[0023] If the total number of times is greater than the preset number of times corresponding to the access time period, it is determined that there is an abnormality in the fault code library access request of the user device.

[0024] Based on the first aspect of the embodiment of the present application, in a sixth possible implementation manner, the access control method further includes:

[0025] Obtaining a probability that the user equipment sends a request to access the fault code library in the preset access time period;

[0026] A preset number of times corresponding to the access time period is determined based on the probability.

[0027] In a second aspect, an embodiment of the present application provides an access control device for a fault code library, comprising:

[0028] A fault code library access request receiving module, used to receive a fault code library access request sent by a user device, wherein the fault code library access request carries identification information of the user device;

[0029] A fault code library access frequency information determination module, used to determine the fault code library access frequency information of the user device according to the identification information;

[0030] A fault code library access request abnormality determination module, used to determine whether the fault code library access request of the user device is abnormal based on the fault code library access frequency information of the user device;

[0031] The abnormal access request response module is used to make an abnormal access request response to the user equipment when the fault code library access request of the user equipment is abnormal.

[0032] Based on the second aspect of the embodiment of the present application, in a first possible implementation manner, the abnormal access request response module is further used to deny the user device access to the fault code library.

[0033] Based on the second aspect of the embodiment of the present application, in a second possible implementation manner, the fault code library access frequency information includes: a sending time interval between the fault code library access request currently sent by the user equipment and the fault code library access request last sent;

[0034] The fault code library access request abnormality determination module includes:

[0035] A detection mode acquisition module is used to obtain the detection mode corresponding to the fault code library access request sent last time;

[0036] A detection duration determination module, used to determine the corresponding detection duration according to the detection mode;

[0037] The time interval judgment module is used to determine that there is an abnormality in the fault code library access request of the user device if the sending time interval between the fault code library access request currently sent by the user device and the fault code library access request sent last is less than the detection duration corresponding to the detection mode.

[0038] Based on the second aspect of the embodiment of the present application, in a third possible implementation, the detection mode includes: a single ECU detection mode and a full vehicle detection mode.

[0039] Based on the second aspect of the embodiment of the present application, in a fourth possible implementation manner, the detection duration determination module includes:

[0040] The shortest duration determination module is used to determine the shortest duration for the user equipment to read the fault code in the detection mode as the detection duration corresponding to the detection mode.

[0041] Based on the second aspect of the embodiment of the present application, in a fifth possible implementation manner, the fault code library access frequency information determination module includes:

[0042] The total number of access requests obtaining module is used to obtain the access time period corresponding to the moment when the user device sends the fault code library access request; and obtain the total number of times the user device sends the fault code library access request within the access time period;

[0043] The fault code library access request abnormality determination module includes:

[0044] The total number judgment module is used to determine that the fault code library access request of the user device is abnormal if the total number is greater than the preset number corresponding to the access time period.

[0045] Based on the second aspect of the embodiment of the present application, in a sixth possible implementation manner, the access control device further includes:

[0046] An access request probability acquisition module, used to acquire the probability that the user equipment sends the fault code library access request in the preset access time period;

[0047] The preset number determination module is used to determine the preset number of times corresponding to the access time period based on the probability.

[0048] In a third aspect, an embodiment of the present application provides an electronic device, including:

[0049] A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the steps of the method for controlling access to a fault code library described in the first aspect or any one of its implementations are implemented.

[0050] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, comprising: the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the access control method for the fault code library described in the above-mentioned first aspect or any one of its implementation methods are implemented.

[0051] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the steps of the access control method for the fault code library described in the first aspect or any one of its implementations.

[0052] According to a fault code library access control method and device provided in an embodiment of the present application, by determining the access frequency information based on the user device identifier in the fault code library access request sent by the user device, and determining whether there is an abnormality in the fault code library access request through the access frequency information, it is possible to detect and avoid excessively frequent abnormal accesses, thereby solving the problem of malicious access to the fault code library. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] In order to more clearly illustrate the technical solutions in the embodiments of the present application, 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 some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0054] Figure 1 It is a schematic diagram of an access control system for a fault code library provided by an embodiment of the present application;

[0055] Figure 2 It is a flowchart of a method for controlling access to a fault code library provided by an embodiment of the present application;

[0056] Figure 3 is a flow chart of a method for controlling access to a fault code library provided by another embodiment of the present application;

[0057] Figure 4 is a flow chart of a method for controlling access to a fault code library provided by another embodiment of the present application;

[0058] Figure 5 It is a structural diagram of an access control device for a fault code library provided in an embodiment of the present application;

[0059] Figure 6 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0060] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0061] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0062] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0063] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0064] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0065] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0066] Figure 1 The figure shows a fault code access control system 10 provided in an embodiment of the present application. The system comprises: a fault code service device 110 and a user device 120.

[0067] Among them, the fault code service device 110 can be a remote server, a cloud server, a server cluster, or other electronic device that can provide fault code information query services.

[0068] The fault code library 111 is stored in a memory that is communicatively coupled to the fault code service device. A fault code (Diagnostic Trouble Code, DTC) is a code defined by the vehicle electronic control unit (Electronic Control Unit, ECU) for each fault. The fault code may also be called an accident code, an error code or other names. Since a vehicle usually generates multiple fault codes when a fault occurs, the fault code can be used as a parameter to assist maintenance technicians in diagnosing vehicle problems.

[0069] Fault code information is text information, diagnostic information or marking data of fault codes corresponding to fault codes, usually stored in text form. User equipment obtains fault code information by querying the fault code library to diagnose the cause of the current fault.

[0070] The fault code library is a data storage form that stores fault codes and fault code information, as well as the corresponding relationship between fault codes and fault code information. Generally, fault codes and fault code information are stored in the form of tables, databases, or text libraries.

[0071] Among them, the user device 120 can be a vehicle-mounted device. The vehicle-mounted device can be set on the vehicle's on-board diagnostic system (OBD) interface, establish a connection with the vehicle bus through the OBD interface, and then establish a data connection with the ECU. The vehicle-mounted device can also establish a connection with the vehicle ECU by using other third-party devices as a transit. The vehicle-mounted device diagnoses the vehicle fault by reading the fault code and the fault code information obtained from the fault code service device according to the fault code. The vehicle-mounted device can be in the form of a car box, a vehicle-mounted electronic device, or other types of devices such as mobile terminals such as mobile phones that can be connected to the vehicle computer. The specific form can be determined according to the actual situation and is not limited here.

[0072] The user device 120 and the fault code service device 110 may communicate via wired and / or wireless communication, which may be determined based on actual conditions and is not limited here.

[0073] Figure 2 The access control method of the fault code library provided in the embodiment of the present application is shown, which is used to process the access request to the fault code library and is applied to the above Figure 1 The fault code service device 110 in the access control system 10 of the fault code library shown in FIG. 1 may be implemented by software and / or hardware of the fault code service device 110. Figure 2 As shown, the method includes steps S110 to S140. The specific implementation principle of each step is as follows:

[0074] S110: Receive a fault code library access request sent by a user device, where the fault code library access request carries identification information of the user device.

[0075] In some embodiments, the user device responds to the diagnostic instruction for the vehicle and performs fault detection on a single ECU system of the vehicle, or multiple ECU systems of the entire vehicle, to obtain the fault code reported by the ECU system. The diagnostic instruction for the vehicle can be issued by the user through the operation interface of the user device, or can be automatically triggered by the user device.

[0076] After the fault detection is completed, the user device sends an access request to the fault code library to the fault code service device 110. The fault code library access request contains the user device identification. The user identification information is used to uniquely identify the user device. The user identification information can be a combination of numbers, letters or special characters.

[0077] In some embodiments, the access request may also include at least one of a fault code, a detection mode, and a vehicle model information.

[0078] After receiving the access request sent by the user device, the fault code service device responds to the access request and performs fault code access control processing.

[0079] S120: Determine the access frequency information of the fault code library of the user equipment according to the identification information.

[0080] In some embodiments, the fault code library access frequency information includes: the sending time interval between the fault code library access request currently sent by the user device and the fault code library access request sent last. The fault code service device 110 determines the fault code library access frequency information of the user device according to the identification information, which may be to record the time of each receipt of the fault code library access request sent by the user device, and determine the time interval according to the sending time interval between the fault code library access request currently received and the fault code library access request received last.

[0081] In some embodiments, the fault code service device 110 determines the fault code library access frequency information of the user device according to the identification information, and may also obtain the frequency information by counting the number of times the identification information is received within a preset time period.

[0082] In some embodiments, the fault code service device 110 determines the fault code library access frequency information of the user device according to the identification information, or it may be obtained by counting the number of times the identification information is received within a time period. Specifically, the determination of the fault code library access frequency information of the user device according to the identification information includes obtaining the access time period corresponding to the moment when the user device sends the fault code library access request; and obtaining the total number of times the user device sends the fault code library access request within the access time period.

[0083] S130: Determine whether there is an abnormality in the fault code library access request of the user device based on the fault code library access frequency information of the user device.

[0084] In some embodiments, a frequency threshold may be preset, and the preset frequency threshold is used to limit the upper limit of the number of accesses within a preset time period. When the fault code library access frequency of the user device is greater than the preset frequency threshold, it is considered that the fault code library access request of the user device is abnormal.

[0085] S140: When the fault code library access request of the user device is abnormal, respond to the abnormal access request of the user device.

[0086] It should be understood that the abnormal access request response is an operation performed by the fault code service device in response to an abnormal fault code library access request.

[0087] In some embodiments, the fault code service device responds to the abnormal access request of the user device, including: the fault code service device denies the user device access to the fault code library.

[0088] At the same time as or after the fault code service device denies the user device access to the fault code library, in some specific examples, the response to the abnormal access request of the user device also includes: sending a prompt message to the user device that the access is too frequent. In other specific examples, blank information, that is, feedback information that does not contain fault code information, can also be sent to the user device to prompt the user device that the access is too frequent. In some other specific examples, abnormal access warning information can also be sent to the user device.

[0089] In some embodiments, the abnormal access request response to the user device includes: the fault code service device requires the user to authenticate; if the authentication is successful, the user device is allowed to access the fault code library; if the authentication fails, the user device is denied access to the fault code library. Requiring the user to authenticate includes but is not limited to SMS or phone verification, verification code verification, biometric information verification and other verification methods. Authentication of the user is mainly used to determine that the current user is a real user, rather than a crawler program for the fault code library.

[0090] In some embodiments, if the fault code library access request of the user device does not have an abnormality, the fault code service device makes a normal access request response to the user device. In a specific example, the normal access request response includes feeding back fault information corresponding to the fault code to the user device.

[0091] It should be understood that by determining the access frequency information based on the user device identifier in the fault code library access request sent by the user device, and determining whether there is an abnormality in the fault code library access request through the access frequency information, it is possible to detect and avoid excessively frequent abnormal accesses, thereby solving the problem of malicious access to the fault code library.

[0092] In some embodiments, in the above Figure 2 Based on the embodiment of the fault code library access control method shown in FIG, the fault code library access frequency information includes: the sending time interval between the fault code library access request currently sent by the user device and the fault code library access request last sent. Figure 3 As shown, step S130, based on the fault code library access frequency information of the user device, determines whether the fault code library access request of the user device is abnormal, and also includes steps S131 to S133:

[0093] S131, obtaining the detection mode corresponding to the fault code library access request sent last time.

[0094] In some embodiments, the detection mode includes a single ECU detection mode and a full vehicle detection mode. The detection mode includes a single ECU detection mode and a full vehicle detection mode. The single ECU detection mode is a detection mode in which the user device performs diagnostic detection on a single ECU system, and the full vehicle detection mode is a detection mode in which the user device performs diagnostic detection on multiple ECU systems of the whole vehicle.

[0095] The fault code service device can determine the detection mode adopted by the user device by obtaining the detection mode information carried in the fault code library access request.

[0096] In some embodiments, the fault code service device may store in a storage medium the detection mode corresponding to each or the last time a user device sends a fault code library access request. The storage time may be short-term temporary storage or long-term storage, which may be determined based on actual conditions and is not limited here. After receiving the current fault code library access request sent by the user device, the detection mode corresponding to the last time a user device sent a fault code library access request is obtained by reading the storage medium.

[0097] S132: Determine a corresponding detection duration according to the detection mode.

[0098] In some implementations, different detection modes have detection durations corresponding to the detection modes. For example, the detection duration of the single ECU detection mode is 10 seconds, and the detection duration of the full vehicle detection mode is 200 seconds.

[0099] S133: If the sending time interval between the fault code library access request currently sent by the user device and the fault code library access request sent last time is less than the detection duration corresponding to the detection mode, it is determined that there is an abnormality in the fault code library access request of the user device.

[0100] For example, in the single ECU detection mode, the preset detection time is 10 seconds. If the sending time interval between the fault code library access request currently sent by the user device and the fault code library access request sent last time is less than 10 seconds, and the time interval is not enough for the user device to complete a detection in the single ECU detection mode, it can be determined that the fault code library access request of the user device is abnormal.

[0101] In some embodiments, the detection duration corresponding to the detection mode includes: determining the shortest duration for the user equipment to read the fault code in the detection mode as the detection duration corresponding to the detection mode.

[0102] Taking the single ECU detection mode as an example, the minimum time interval for the user device to obtain the ECU system fault code in the single ECU detection mode is 10 seconds. If the user device sends two or more fault code library access requests to the fault code service device within 10 seconds, and the detection mode carried by the fault code library access request is the single ECU detection mode, it is likely that the user device fault code library access request is abnormal.

[0103] Taking the full vehicle detection mode as an example, the user device needs to obtain fault codes of multiple ECU systems in the single ECU detection mode, and the minimum time interval for obtaining fault codes of multiple ECU systems is 200 seconds. If the user device sends two or more fault code library access requests to the fault code service device within 200 seconds, and the detection mode carried by the fault code library access request is the full vehicle detection mode, it is very likely that the user device fault code library access request is abnormal.

[0104] It should be understood that the detection duration is determined by the detection mode corresponding to the fault code library access request, so that the setting of the fault code detection duration is more in line with the actual detection time consumption, and it can more accurately determine whether the fault code library access request is an abnormal access request, thereby preventing malicious access to the fault code library.

[0105] In the above Figure 2 Based on the embodiment of the access control method of the fault code library shown, as Figure 4 As shown, step S120, determining the fault code library access frequency information of the user device according to the identification information, can be replaced by step S120', obtaining the access time period corresponding to the moment when the user device sends the fault code library access request; and obtaining the total number of times the user device sends the fault code library access request within the access time period. Figure 4 As shown, step S130, which determines whether there is an abnormality in the fault code library access request of the user device based on the fault code library access frequency information of the user device, can be replaced by step S130'. If the total number of times is greater than the preset number of times corresponding to the access time period, it is determined that there is an abnormality in the fault code library access request of the user device.

[0106] In some embodiments, a day is pre-divided into several access time periods, and a maximum access frequency is preset for each access time period. After obtaining the fault code library access request sent by the user device, the fault code service device first determines the access time period corresponding to the current time according to the current time when the fault code library access request is received. If the frequency of the fault code library access request within the access time period exceeds the maximum access frequency of the time period, the fault code library access request is regarded as an abnormal access request.

[0107] For example:

[0108] Prohibited access period: from 12:00 p.m. to 8:00 a.m. the next day. Any access during this prohibited access period is considered abnormal access.

[0109] Idle access period: 8 am to 2 pm. If the access frequency during this idle access period exceeds the first safe frequency, it is considered an abnormal access.

[0110] Peak access period: 2pm to 12am. If the access frequency during this peak access period exceeds the second safe frequency, it is considered an abnormal access.

[0111] Among them, the first safety frequency is less than the second safety frequency.

[0112] In some embodiments, the access control method further includes: obtaining the probability that the user device sends the fault code library access request in the preset access time period; and determining a preset number of times corresponding to the access time period based on the probability.

[0113] By counting the probability of a normal user device sending a fault code library access request, a day is divided into several time periods corresponding to different probability values ​​according to the change of the probability value.

[0114] For example, a time period in which the probability of a normally working user device sending a fault code library access request is 0 is set as a prohibited access period. That is, a normal user device will not send a fault code library access request during this period, and any access frequency during this prohibited access period is considered abnormal access.

[0115] For another example, a time period during which a normal user device has a low probability of sending a fault code library access request is set as an idle access period. That is, during this period, the frequency of normal user devices sending fault code library access requests is relatively low. If a high-frequency access is performed during this idle access period, it can be considered as an abnormal access. A first safety frequency is set as a threshold for this period to determine whether the frequency of user devices sending fault code library access requests is abnormal.

[0116] For another example, the time period during which the probability of a normally operating user device sending a fault code library access request is relatively high is called a busy access period. In other words, during this period, the frequency of normal user devices sending fault code library access requests will be relatively high. If high-frequency access is performed during this busy access period, it can be considered a normal access. There may be no limit on the frequency of user devices sending fault code library access requests during this period, or a higher frequency threshold for fault code library access requests may be set for this period to allow user devices to send fault code library access requests multiple times. A second safety frequency is set as a threshold for this period to determine whether the frequency of user devices sending fault code library access requests is abnormal. It can be understood that the first safety frequency is less than the second safety frequency.

[0117] It should be understood that obtaining the probability of a user device sending a request to access the fault code library during the preset access time period and determining the preset number of times corresponding to the preset access time period based on the probability can make the time period setting of access control more reasonable and the judgment of abnormal fault code library access requests more accurate, thereby preventing malicious access to the fault code library.

[0118] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0119] Corresponding to the above Figure 2 The access control method of the fault code library shown in FIG. Figure 5 The present invention shows a fault code library access control device M100 provided in an embodiment of the present application, including:

[0120] The fault code library access request receiving module M110 is used to receive a fault code library access request sent by a user device, wherein the fault code library access request carries the identification information of the user device.

[0121] The fault code library access frequency information determining module M120 is used to determine the fault code library access frequency information of the user equipment according to the identification information.

[0122] The fault code library access request abnormality determination module M130 is used to determine whether the fault code library access request of the user device is abnormal based on the fault code library access frequency information of the user device.

[0123] The abnormal access request response module M140 is used to make an abnormal access request response to the user equipment when the fault code library access request of the user equipment is abnormal.

[0124] Optionally, the abnormal access request response module is further used to send a prompt message indicating that the access is too frequent to the user equipment.

[0125] Optionally, the fault code library access frequency information includes: a sending time interval between the fault code library access request currently sent by the user equipment and the fault code library access request sent last;

[0126] The fault code library access request abnormality determination module includes:

[0127] A detection mode acquisition module is used to obtain the detection mode corresponding to the fault code library access request sent last time;

[0128] A detection duration determination module, used to determine the corresponding detection duration according to the detection mode;

[0129] The time interval judgment module is used to determine that there is an abnormality in the fault code library access request of the user device if the sending time interval between the fault code library access request currently sent by the user device and the fault code library access request sent last is less than the detection duration corresponding to the detection mode.

[0130] Optionally, the detection modes include: single ECU detection mode and full vehicle detection mode.

[0131] Based on the second aspect of the embodiment of the present application, in a fourth possible implementation manner, the detection duration determination module includes:

[0132] The shortest duration determination module is used to determine the shortest duration for the user equipment to read the fault code in the detection mode as the detection duration corresponding to the detection mode.

[0133] Optionally, the fault code library access frequency information determination module includes:

[0134] The total number of access request acquisition module is used to acquire the access time period corresponding to the moment when the user device sends the fault code library access request; and acquire the total number of times the user device sends the fault code library access request within the access time period;

[0135] The fault code library access request abnormality determination module includes:

[0136] The total number judgment module is used to determine that the fault code library access request of the user device is abnormal if the total number is greater than the preset number corresponding to the access time period.

[0137] Optionally, the access control device further includes:

[0138] An access request probability acquisition module, used to acquire the probability that the user equipment sends the fault code library access request in the preset access time period;

[0139] The preset number determination module is used to determine the preset number of times corresponding to the access time period based on the probability.

[0140] It can be understood that the various implementation modes and implementation combinations in the above embodiments and their beneficial effects are also applicable to this embodiment and will not be described in detail here.

[0141] Figure 6 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Figure 6 As shown, the electronic device D10 of this embodiment includes: at least one processor D100 ( Figure 6 Only one processor, a memory D101, and a computer program D102 stored in the memory D101 and executable on the at least one processor D100 are shown in the figure. When the processor D100 executes the computer program D102, the steps in any of the above-mentioned method embodiments are implemented. Alternatively, when the processor D100 executes the computer program D102, the functions of the modules / units in the above-mentioned device embodiments are implemented, such as Figure 5 Functions of modules M110 to M140 are shown.

[0142] In some embodiments, the processor D100 implements the following steps when executing the computer program D102:

[0143] Receiving a fault code library access request sent by a user device, wherein the fault code library access request carries identification information of the user device;

[0144] Determine the fault code library access frequency information of the user device according to the identification information;

[0145] Based on the fault code library access frequency information of the user device, determining whether there is an abnormality in the fault code library access request of the user device;

[0146] When the fault code library access request of the user device is abnormal, an abnormal access request response is made to the user device.

[0147] Optionally, when the processor executes the computer program to implement the step of responding to an abnormal access request of the user device,

[0148] Implement the step of denying the user device access to the fault code library.

[0149] Optionally, the fault code library access frequency information includes: a sending time interval between the fault code library access request currently sent by the user equipment and the fault code library access request sent last;

[0150] When the processor executes the computer program to implement the step of determining whether a fault code library access request of the user device is abnormal based on the fault code library access frequency information of the user device, the following steps are implemented:

[0151] Get the detection mode corresponding to the fault code library access request sent last time;

[0152] Determine the corresponding detection duration according to the detection mode;

[0153] If the sending time interval between the fault code library access request currently sent by the user device and the fault code library access request sent last time is less than the detection duration corresponding to the detection mode, it is determined that there is an abnormality in the fault code library access request of the user device.

[0154] Optionally, the detection modes include: single ECU detection mode and full vehicle detection mode.

[0155] Optionally, when the processor executes the computer program to implement the step of determining the corresponding detection duration according to the detection mode,

[0156] A step is implemented in which the shortest duration for the user equipment to read a fault code in the detection mode is determined as the detection duration corresponding to the detection mode.

[0157] Optionally, when the processor executes the computer program to implement the step of determining the fault code library access frequency information of the user device according to the identification information,

[0158] Acquiring the access time period corresponding to the moment when the user equipment sends the fault code library access request; and

[0159] A step of obtaining a total number of times the user equipment sends the fault code library access request within the access time period;

[0160] When the processor executes the computer program to implement the step of determining whether the fault code library access request of the user device is abnormal based on the fault code library access frequency information of the user device,

[0161] If the total number of times is greater than the preset number of times corresponding to the access time period, a step is implemented to determine that there is an abnormality in the fault code library access request of the user device.

[0162] When the processor executes the computer program, the processor further implements the following steps:

[0163] Obtaining a probability that the user equipment sends a request to access the fault code library in the preset access time period;

[0164] A preset number of times corresponding to the access time period is determined based on the probability.

[0165] The electronic device D10 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The electronic device may include, but is not limited to, a processor D100 and a memory D101. Those skilled in the art will appreciate that Figure 6 This is only an example of the electronic device D10 and does not constitute a limitation on the electronic device D10. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.

[0166] The processor D100 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0167] In some embodiments, the memory D101 may be an internal storage unit of the electronic device D10, such as a hard disk or memory of the electronic device D10. In other embodiments, the memory D101 may also be an external storage device of the electronic device D10, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device D10. Further, the memory D101 may also include both an internal storage unit of the electronic device D10 and an external storage device. The memory D101 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program, etc. The memory D101 may also be used to temporarily store data that has been output or is to be output.

[0168] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0169] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0170] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0171] An embodiment of the present application provides a computer program product. When the computer program product runs on an electronic device, the electronic device can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0172] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0173] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0174] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can 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.

[0175] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0176] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0177] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for controlling access to a fault code library, characterized in that: include: Receiving a fault code library access request sent by a user device, wherein the fault code library access request carries identification information of the user device; Determine the fault code library access frequency information of the user device according to the identification information; wherein the fault code library access frequency information includes: the sending time interval between the fault code library access request currently sent by the user device and the fault code library access request last sent; Determining whether a fault code library access request of the user device is abnormal based on the fault code library access frequency information of the user device includes: Obtaining the detection mode corresponding to the fault code library access request sent last time; wherein, the detection modes include: single ECU detection mode and full vehicle detection mode; the single ECU detection mode is a detection mode in which the user device performs diagnostic detection on a single ECU system, and the full vehicle detection mode is a detection mode in which the user device performs diagnostic detection on multiple ECU systems of the whole vehicle; the fault code service device stores the detection mode corresponding to each fault code library access request sent by the user device in a storage medium; after receiving the current fault code library access request sent by the user device, the detection mode corresponding to the fault code library access request sent by the user device last time is obtained by reading the storage medium; Determining a corresponding detection duration according to the detection mode includes: Determine the shortest duration for the user equipment to read the fault code in the detection mode as the detection duration corresponding to the detection mode; If the time interval between the fault code library access request currently sent by the user device and the fault code library access request last sent is less than the detection time length corresponding to the detection mode, it is determined that the fault code library access request of the user device is abnormal; When the fault code library access request of the user device is abnormal, an abnormal access request response is made to the user device.

2. The access control method according to claim 1, characterized in that: The responding to the abnormal access request of the user equipment includes: Deny the user device access to the fault code library.

3. The access control method according to claim 1 or 2, characterized in that: The determining, according to the identification information, the fault code library access frequency information of the user device includes: Acquire the access time period corresponding to the moment when the user equipment sends the fault code library access request; and, Acquire the total number of times the user device sends the fault code library access request within the access time period; The determining, based on the fault code library access frequency information of the user device, whether the fault code library access request of the user device is abnormal includes: If the total number of times is greater than the preset number of times corresponding to the access time period, it is determined that there is an abnormality in the fault code library access request of the user device.

4. The access control method according to claim 3, characterized in that: The access control method further comprises: Obtaining a probability that the user equipment sends a request to access the fault code library in the access time period; A preset number of times corresponding to the access time period is determined based on the probability.

5. An access control device for a fault code library, characterized in that: include: A fault code library access request receiving module, used to receive a fault code library access request sent by a user device, wherein the fault code library access request carries identification information of the user device; A fault code library access frequency information determination module, configured to determine the fault code library access frequency information of the user device according to the identification information; wherein the fault code library access frequency information includes: a sending time interval between the fault code library access request currently sent by the user device and the fault code library access request last sent; A fault code library access request abnormality determination module is used to determine whether the fault code library access request of the user device is abnormal based on the fault code library access frequency information of the user device, including: Obtaining the detection mode corresponding to the fault code library access request sent last time; wherein, the detection modes include: single ECU detection mode and full vehicle detection mode; the single ECU detection mode is a detection mode in which the user device performs diagnostic detection on a single ECU system, and the full vehicle detection mode is a detection mode in which the user device performs diagnostic detection on multiple ECU systems of the whole vehicle; the fault code service device stores the detection mode corresponding to each fault code library access request sent by the user device in a storage medium; after receiving the current fault code library access request sent by the user device, the detection mode corresponding to the fault code library access request sent by the user device last time is obtained by reading the storage medium; Determining a corresponding detection duration according to the detection mode includes: Determine the shortest duration for the user equipment to read the fault code in the detection mode as the detection duration corresponding to the detection mode; If the time interval between the fault code library access request currently sent by the user device and the fault code library access request last sent is less than the detection time length corresponding to the detection mode, it is determined that the fault code library access request of the user device is abnormal; The abnormal access request response module is used to make an abnormal access request response to the user equipment when the fault code library access request of the user equipment is abnormal.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, characterized in that: When the processor executes the computer program, the access control method according to any one of claims 1 to 4 is implemented.

7. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the access control method according to any one of claims 1 to 4 is implemented.