Configuration word active detection method and device, component control method and device, equipment and medium
By real-time detection of the electric vehicle hardware connection status and the use of open circuit fault detection and comparison mechanisms, the problem of mismatch between configuration words and actual component types has been solved, ensuring the accuracy of configuration word information and the reliability of the system, and reducing the risk of failure.
Patent Information
- Application Number
- CN202511778916.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-28
- Publication Date
- 2026-02-27
AI Technical Summary
Existing technologies lack logical correctness checks on the preset values of configuration words and cannot identify problems caused by operational errors that result in mismatches between configuration words and actual component types, leading to an increased risk of electric vehicle system failures.
By using the component control interface provided by the abstract service module, the hardware connection status is detected in real time, configuration word information is obtained, and the configuration word is kept consistent with the actual hardware status through open circuit fault detection and comparison mechanism.
This ensures the accuracy and reliability of configuration word information, reduces the risk of system failures caused by misjudgment of connection status, and improves the stability and safety of electric vehicle control systems.
Smart Images

Figure CN121578788A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle electronic control technology, specifically to an active detection of configuration words, a component control method, device, equipment, and medium. Background Technology
[0002] Electric vehicle systems are highly complex, integrating various electrical components, including drive motors, battery management systems, sensors, and various actuators. To meet the needs of different vehicle models and configurations, controller software relies on a large number of configuration words for platform-based design. These configuration words define system parameters, functional logic, and hardware adaptation rules. The accuracy of the configuration words directly affects the stability and safety of the entire vehicle control system. However, in practical engineering applications, configuration word management faces multiple challenges: on the one hand, due to tight development cycles and frequent personnel collaboration, configuration words are prone to human input errors, version omissions, or delayed document updates; on the other hand, during hardware assembly, different types of connecting components, such as fans and sensors, may have inconsistent physical configurations with software presets due to model changes or installation negligence. Existing solutions lack logical correctness checks on the preset values of configuration words and cannot identify problems caused by operational errors that result in mismatches between configuration words and actual component types. Summary of the Invention
[0003] This application provides an active detection method, device, electronic device, and medium for configuration words, to solve the problem of system failure risk caused by mismatch between configuration words and actual hardware connection status.
[0004] Firstly, this application provides an active detection method for configuration words, which obtains the connection status of the corresponding component based on the component control interface provided by the abstract service module. The abstract service module includes multiple modules, each of which provides a control interface for a type of connection component. The target configuration word information of the current connection component is determined according to the connection status obtained by each abstract service module.
[0005] Based on the above technical means, this technical solution confirms the configuration word information by detecting the hardware connection status in real time, and can actively identify and correct the problem of inconsistency between the configuration word and the actual hardware status, effectively improving the reliability of the system.
[0006] In an alternative implementation, this application also proposes to perform open circuit fault detection on the corresponding components based on the component control interface provided by each abstract service module, so as to determine whether the connection status of the corresponding components is connected or disconnected.
[0007] Based on the above technical means, the actual connection status of the components can be accurately identified, thereby ensuring the accuracy of the target configuration word information and avoiding the problem of mismatch between the configuration word and the actual configuration caused by misjudgment of the connection status.
[0008] In an optional implementation, this application further proposes that if each connection state indicates that the first connection component is in a connected state and other connection components are in a disconnected state, then the configuration word information corresponding to the first connection component is used as the target configuration word information, where the first connection component is one of multiple types of connection components; if each connection state is in a disconnected state, then the target configuration word information is determined to be empty; if multiple connection states are in a connected state, then alarm information is output.
[0009] Based on the above technical means, the consistency between the configuration word information and the actual physical connection state can be ensured, thereby effectively solving the problem of mismatch between the configuration word and the actual configuration caused by human error.
[0010] In an optional implementation, this application also proposes to obtain system configuration word information pre-saved for the current connected component; compare the target configuration word information and the system configuration word information; and obtain the detection result of the configuration word based on the comparison result.
[0011] Based on the above technical means, by introducing a mechanism for obtaining and comparing system configuration word information, the problem of unverified configuration word information is effectively solved, thereby improving the reliability of configuration management.
[0012] In an optional implementation, this application also proposes that when the target configuration word information and the system configuration word information are consistent, the system configuration word information is confirmed to be correct; when the target configuration word information and the system configuration word information are inconsistent, the system configuration word information is confirmed to be incorrect, and modification information is output.
[0013] Based on the above technical means, the automatic verification of configuration word information is realized through explicit comparison logic, which effectively solves the limitation of relying solely on source reliability verification in related technologies, and significantly improves the initiative and reliability of configuration management.
[0014] In one alternative implementation, this application also proposes that the component control interface includes at least one of a pulse width modulation fan control interface, a local network fan control interface, and a speed-based fan control interface.
[0015] Based on the above technical means, by combining with the component control interface provided by the abstract service module, effective adaptation to various types of connection components is achieved, thereby significantly improving the accuracy and reliability of configuration word management.
[0016] Secondly, this application provides a component control method, comprising: determining target configuration word information of a currently connected component, and sending corresponding control information of the currently connected component to a first service module, wherein the first service module is used to integrate services of different configuration types according to the configuration word information, and the target configuration word information is determined according to the above-mentioned active detection method of configuration words; based on the target configuration word information, the first service module converts the control information into component control information of the corresponding connected component and sends it to the corresponding target abstract service module, wherein the target abstract service module is used to provide a service of a configuration type; and based on the abstract service module, using the component control information to perform corresponding control on the connected component.
[0017] Based on the above technical means, through a unified interface design, the first service module can use the same method to call different types of connection components, which also facilitates the active identification and verification of configuration words.
[0018] Thirdly, this application provides an active detection device for configuration words, including: a status acquisition module, used to acquire the connection status of a corresponding component based on the component control interface provided by an abstract service module, wherein the abstract service module includes multiple modules, each abstract service module is used to provide a control interface for a type of connection component; and an information confirmation module, used to determine the target configuration word information of the current connection component based on the connection status acquired by each abstract service module.
[0019] Fourthly, this application provides an electronic device, including: a memory and a processor, which are communicatively connected to each other. The memory stores computer instructions, and the processor executes the computer instructions to perform the active detection method of the configuration word in the first aspect or any corresponding embodiment described above.
[0020] Fifthly, this application provides a computer-readable storage medium storing computer instructions for causing a computer to execute the active detection method for the configuration word of the first aspect or any corresponding embodiment described above.
[0021] In a sixth aspect, this application provides a computer program product, including computer instructions for causing a computer to execute the active detection method for configuration words of the first aspect or any corresponding embodiment described above. Attached Figure Description
[0022] To more clearly illustrate the technical solutions in the specific embodiments of this application or the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0023] Figure 1 This is a hardware connection diagram of an application scenario according to an embodiment of this application; Figure 2 This is a schematic diagram of the software structure for an application scenario according to an embodiment of this application; Figure 3 This is a flowchart illustrating the active detection method for configuration words according to an embodiment of this application; Figure 4 This is a schematic flowchart of a component control method according to an embodiment of this application; Figure 5 This is a structural block diagram of an active detection device for configuration words according to an embodiment of this application; Figure 6 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of this application. Detailed Implementation
[0024] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0025] It is understood that before using the technical solutions disclosed in the various embodiments of this application, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this application in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.
[0026] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, "multiple" means two or more, unless otherwise explicitly specified.
[0027] Electric vehicle systems are highly complex, integrating various electrical components, including drive motors, battery management systems, sensors, and various actuators. To meet the needs of different vehicle models and configurations, controller software relies on a large number of configuration words for platform-based design. These configuration words define system parameters, functional logic, and hardware adaptation rules. The accuracy of the configuration words directly affects the stability and safety of the entire vehicle control system. However, in practical engineering applications, configuration word management faces multiple challenges: on the one hand, due to tight development cycles and frequent personnel collaboration, configuration words are prone to human input errors, version omissions, or delayed document updates; on the other hand, during hardware assembly, different types of connecting components, such as fans and sensors, may have inconsistent physical configurations with the software presets due to model changes or installation oversights.
[0028] Existing technologies for verifying configuration words primarily focus on source reliability verification, such as using digital signatures or encryption of transmission channels to ensure the configuration word has not been tampered with. However, these methods can only confirm the reliability of the configuration word's source and cannot deeply verify whether the configuration word content itself matches the current hardware connection state. Specifically, existing solutions lack checks on the logical correctness of preset configuration word values and cannot identify problems caused by operational errors where the configuration word does not match the actual component type. For example, when the system incorrectly applies a pulse width modulation fan configuration to a locally interconnected fan, the controller may issue mismatched control commands, leading to component overheating, functional failure, or even system crashes. Such problems often only surface later in vehicle operation, making it difficult to trace the root cause, increasing maintenance costs, and potentially jeopardizing driving safety. Therefore, how to construct a mechanism that can proactively sense the hardware connection state and dynamically verify the accuracy of the configuration word has become a key challenge in improving the robustness of vehicle control systems.
[0029] As one optional application scenario in the embodiments of this application, such as Figure 1 As shown, the vehicle system includes a controller and multiple connecting components, such as Component A1, Component B1, Component C1, Component A2, Component B2, and Component C2. In specific implementations, these components may refer to devices such as the front cooling fan, and may extend to Component 3, Component 4, etc., which are not listed here. The controller typically adopts a domain controller architecture, capable of driving multiple subordinate components and supporting various driving methods. For example, types A, B, and C may correspond to drive forms such as Pulse Width Modulation (PWM), Local Interconnect Network (LIN), and speed-controlled fan, respectively. Different components have different driving forms. Although using the same controller, the driving forms of different components differ. Therefore, the controller has the ability to be compatible with various configuration components.
[0030] like Figure 2As shown in the schematic diagram of the software structure provided in this application embodiment, it includes an IO abstraction layer, an atomic service layer, an application layer, a configuration word module, and a fault diagnosis module. The IO abstraction layer includes a PWM fan IO abstraction service A1, a gear-shifting fan IO abstraction service B1, and a LIN fan IO abstraction service C1; the atomic service layer includes (fan) atomic service 1; the application layer can be a functional module with fan control requirements, such as battery thermal management, electric drive thermal management, or passenger compartment thermal management. In specific implementations, the controlled objects include PWM fans, gear-shifting fans, and LIN fans. The configuration word module is a storage medium with two functions: first, it allows the vehicle configuration word information to be written and stored in the module via a diagnostic tool, and the information is non-volatile; second, the controller software can read the stored configuration word information to support the implementation of related functional logic. The fault diagnosis module is used to collect fault information from the atomic service layer and implement the fault code reporting function.
[0031] Based on the above application scenarios, this application proposes an active detection method for configuration words, such as... Figure 3 As shown, the method includes: Step S301: Based on the component control interface provided by the abstract service module, obtain the connection status of the corresponding component. The abstract service module includes multiple modules, and each abstract service module is used to provide a control interface for a type of connection component.
[0032] In practical applications, an abstract service module can be understood as a software architecture design whose main function is to encapsulate the control logic of corresponding types of connection components. Specifically, abstract service modules can be implemented by defining standardized interface protocols, such as using interface classes or abstract classes in object-oriented programming, or by defining a unified communication protocol, corresponding to the aforementioned... Figure 2 The I / O abstraction service is further described. Each abstraction service module can provide a dedicated control interface for a specific type of connection component. For example, it can provide a speed control interface for fan components and a data acquisition interface for sensor components. The main purpose is to enable independent control and status monitoring of different types of components.
[0033] Furthermore, the connection status of a component can be obtained in various ways. For example, the connection status can be determined by reading the status values of hardware registers, by sending test signals and receiving feedback, or by monitoring the signal quality of the communication link. All these methods directly reflect the actual physical connection status of the component.
[0034] Step S302: Determine the target configuration word information of the current connection component based on the connection status obtained by each abstract service module.
[0035] This invention, through an architecture design incorporating multiple abstract service modules, achieves comprehensive monitoring of the status of different connected components and dynamically determines the target configuration word information based on real-time acquired status information. Compared to related technologies that rely solely on preset configuration words, this solution effectively avoids inconsistencies between the configuration word and the actual connection status caused by human error or hardware changes. The resulting closed-loop verification mechanism ensures that the configuration word information is always synchronized with the actual hardware configuration.
[0036] The working principle of this application embodiment is as follows: Through the collaborative operation of multiple abstract service modules, each abstract service module provides a control interface specifically for a type of connection component, thereby achieving comprehensive detection of the connection status of different components. Specifically, based on the component control interface provided by the abstract service module, the connection status of the corresponding component can be obtained, ensuring the accuracy and universality of the status information. Further, after each abstract service module transmits the acquired connection status, the system derives the target configuration word information of the current connection component based on this status information. Thus, the target configuration word information can directly reflect the actual hardware connection status, avoiding configuration errors caused by relying on preset values. In particular, this technical solution confirms the configuration word information by detecting the hardware connection status in real time, actively identifying and correcting the problem of inconsistency between the configuration word and the actual hardware status, effectively improving the reliability of the system. The technical means provided by this invention embodiment not only solves the technical problem of the configuration word not matching the actual connection status, but also reduces the possibility of system failures caused by configuration errors.
[0037] In some optional implementations, step S301 above includes: Step a1: Based on the component control interface provided by each abstract service module, perform open circuit fault detection on the corresponding component to determine whether the connection status of the corresponding component is connected or disconnected.
[0038] Specifically, an abstract service module refers to a software module that encapsulates specific functions and provides standardized interfaces. It can be implemented using classes or interfaces in object-oriented programming. Its purpose is to shield the underlying hardware differences through a unified interface, thereby improving the system's scalability and compatibility. A component control interface can be understood as the functional interface exposed by the abstract service module. Its specific implementation may include operations such as calling underlying drivers, sending control commands, or reading status information, aiming to provide convenient access for upper-layer applications. Circuit fault detection is an electrical characteristic detection method that determines whether a circuit is connected by measuring its resistance, current, or voltage values. Its purpose is to accurately identify the actual connection status of components and avoid misjudgments.
[0039] In detail, this invention fundamentally solves the problem of inaccurate connection status acquisition by introducing a circuit breaker fault detection mechanism. First, based on the component control interface provided by the abstract service module, the system can adapt to various types of connection components, ensuring the universality of the detection process. Second, by detecting circuit breakers in the corresponding components, rather than relying on simple status queries, it can effectively distinguish between connected and disconnected states, eliminating the risk of fuzzy judgments or false alarms that may exist in traditional query mechanisms. Furthermore, explicitly limiting the connection status to two definite states—connected or disconnected—provides a clear and unambiguous input basis for the subsequent generation of configuration word information. The technical solution of this invention not only improves the reliability of connection status detection but also lays a solid foundation for the entire configuration word verification process, reducing configuration conflicts caused by human error.
[0040] In summary, through the above technical solutions, the system can accurately identify the actual connection status of components, thereby ensuring the accuracy of the target configuration word information and avoiding the problem of mismatch between the configuration word and the actual configuration caused by misjudgment of the connection status.
[0041] In some optional implementations, step S302 above includes: Step b1: If each connection state indicates that the first connection component is in a connected state and the other connection components are in a disconnected state, then the configuration word information corresponding to the first connection component is used as the target configuration word information. The first connection component is one of the various types of connection components.
[0042] Specifically, the first connecting component refers to the single component that is actually physically connected in the current system. It can be any of several types of connecting components, such as a pulse width modulation fan, a local interconnection fan, or a speed-controlled fan. This definition aims to clarify the unique correspondence between configuration word information and specific component types, avoiding configuration errors caused by type confusion.
[0043] Step b2: If all connection states are in the disconnected state, then the target configuration word information is determined to be empty.
[0044] Specifically, setting the target configuration word information to be empty is to prevent the system from misusing historical configurations when there is no valid connection, thereby ensuring the purity of the configuration.
[0045] Step b3: If multiple connection states are in a connected state, an alarm message is output. The alarm message output mechanism is used to promptly capture abnormal states where multiple components are simultaneously connected, providing a clear signal for manual intervention.
[0046] In detail, the above technical solution achieves systematic processing of multiple connection states by establishing a precise mapping logic between connection states and configuration word information. When only one specific component is connected while all other components are disconnected, the configuration word of that component is used as the target information. This ensures accurate matching of configuration words based on the uniqueness of the actual physical connection. In connectionless scenarios, the target configuration word information is empty, eliminating the risk of the system misusing historical configurations when there is no valid connection. In conflict scenarios, when multiple states are connected simultaneously, the output of alarm information can effectively prevent the system from running under contradictory configurations and causing failures. Overall, this logic covers all possible state combinations, and through a state-driven decision-making mechanism, significantly improves the robustness and reliability of the configuration word determination process.
[0047] Furthermore, the above solution, combined with the component control interface provided by the abstract service module, further enhances the accuracy of configuration word information. By obtaining the connection status based on the abstract service module, the consistency between the configuration word information and the actual physical connection status can be ensured, thereby effectively solving the problem of mismatch between configuration words and actual configurations caused by human error.
[0048] In one example, combined Figure 1 and Figure 2 The following explanation uses PWM fans, speed-controlled fans, and LIN fans as examples: If only one of the three I / O abstract services fails to report an open circuit fault, the fan type actually installed in the vehicle is determined to be the fan type corresponding to the fault-free I / O abstract service. For example, if only the I / O abstract service for the PWM fan fails to report an open circuit fault, it can be determined that the actual installed fan is a PWM fan.
[0049] If all three IO abstraction services report a circuit breaker failure, it is determined that the vehicle is not equipped with a fan.
[0050] If two or all three of the three IO abstract services fail to report an open circuit fault, it is considered a false diagnosis, because only one type of fan may exist in the actual vehicle configuration.
[0051] In some optional implementations, this application further proposes the following technical solutions. The active detection method for configuration words also includes: Step c1: Obtain the system configuration word information that has been pre-saved for the currently connected component.
[0052] Specifically, retrieving pre-saved system configuration information for the currently connected component refers to extracting preset configuration data corresponding to the actual connected component from the system storage area. The purpose is to ensure that the extracted configuration baseline is accurate and relevant, avoiding the use of incorrect or mismatched configurations as references. This process can be achieved by accessing a specific storage module, calling a configuration management interface, or reading the configuration database.
[0053] Step c2 compares the target configuration word information with the system configuration word information, and obtains the detection result of the configuration word based on the comparison result. The comparison of the target configuration word information and the system configuration word information involves using logical operations or algorithmic analysis to determine whether the target configuration word dynamically generated based on the current connection state is consistent with the pre-saved configuration word in the system. The purpose is to identify the differences between the two, thereby verifying the correctness of the configuration. This process can be accomplished using methods such as string matching, hash value verification, or bit-by-bit comparison.
[0054] It is understandable that the above technical solution effectively solves the problem of unverified configuration word information by introducing a mechanism for acquiring and comparing system configuration word information, thereby improving the reliability of configuration management. First, acquiring the pre-saved system configuration word information for the currently connected component provides an accurate reference benchmark for subsequent comparisons, ensuring the reliability of the basic data source for configuration verification. Second, the process of comparing the target configuration word information with the system configuration word information directly reflects the consistency between the dynamically generated configuration word based on the connection state and the expected system configuration. Through this comparison mechanism, configuration errors caused by human error or system anomalies can be detected and handled promptly, preventing system failures caused by configuration inconsistencies.
[0055] In one example, Fan Atomic Service 1 compares the above judgment result with the fan configuration information recorded in the storage medium. If the judgment result is inconsistent with the stored configuration information, the relevant fault information is transmitted to the fault diagnosis module through the fault diagnosis acquisition method.
[0056] Furthermore, the above technical solution, combined with the aforementioned content, further improves the active detection process for configuration words. By combining the connection status obtained through the component control interface provided by the abstract service module, and determining the target configuration word information based on this, and then comparing it with the system configuration word information, a complete configuration verification closed loop is formed. This not only improves the accuracy of configuration word detection but also enhances the overall reliability of the system, providing effective technical support for the management of complex electrical components.
[0057] In some alternative implementations, step c2 above includes: Step c21: When the target configuration word information and the system configuration word information are consistent, confirm that the system configuration word information is correct.
[0058] The target configuration word information refers to the configuration word information dynamically generated based on the actual state of the currently connected components. This can be achieved by real-time acquisition of hardware connection status and mapping it to corresponding configuration values. The system configuration word information is pre-stored in the system and is written to the system through initialization settings or user-defined methods.
[0059] Step c22: When the target configuration word information and the system configuration word information are inconsistent, confirm that the system configuration word information is incorrect and output modification information. The modification information refers to the operational guidance used to indicate the error in the system configuration word information and instruct the user to correct it. This is achieved through methods such as generating error logs, pop-up prompt windows, or sending notification messages.
[0060] Specifically, this embodiment of the invention achieves automated verification of configuration word information through explicit comparison logic. First, after obtaining the target configuration word information and the system configuration word information, the system compares their contents item by item. When they match, the system directly confirms the current configuration word information is correct, thus completing the verification process. This embodiment of the invention ensures the consistency between hardware configuration and software settings, avoiding the risk of configuration omissions due to human error. When they are inconsistent, the system not only identifies the error state but also generates specific modification information, providing users with a clear correction path. This embodiment of the invention effectively solves the limitations of related technologies that rely solely on source reliability verification, significantly improving the initiative and reliability of configuration management.
[0061] Furthermore, the above methods, combined with the component control interface provided by the abstract service module, form a complete configuration word detection system. By introducing explicit comparison logic, the system can accurately locate configuration errors in complex electrical environments and intervene in a timely manner to prevent incorrect configurations from affecting the stability of the control system. This not only optimizes the configuration word management process but also significantly reduces the possibility of system failures caused by configuration errors.
[0062] In some alternative implementations, the component control interface includes one or more of a pulse width modulation fan control interface, a local network fan control interface, and a speed-based fan control interface.
[0063] In practical applications, the pulse width modulation (PWM) fan control interface refers to a fan control interface based on PWM technology. It achieves precise fan speed control by adjusting the duty cycle of the pulse signal, improving the accuracy of connection status detection. The local interconnection network (LAN) fan control interface is a communication interface based on the LIN bus protocol, enabling connection status queries of distributed fan components through low-cost single-wire communication, ensuring complete acquisition of status information in networked control scenarios. Specifically, the gear-shifting fan control interface is the control interface for mechanical gear-switching fans. It determines the fan's operating mode by identifying the physical state of the fixed gear switch, adapting to the simple control logic of traditional fan configurations and preventing false alarms of disconnection status.
[0064] Specifically, this invention effectively improves the system's compatibility with different fan control methods by defining specific implementation types of component control interfaces. During the actual operation of an electric vehicle, the system can dynamically select the appropriate control method based on the vehicle's specific configuration. For example, when using a pulse width modulation (PWM) fan control interface, the system can perform connection status detection based on PWM signal characteristics, avoiding connection judgment errors caused by signal ambiguity. When using a local interconnection network (NAT) fan control interface, the system can reliably handle connection status queries for distributed fan components based on the LIN bus protocol. When using a gear-based fan control interface, the system can adapt to the simple control logic of traditional fan configurations by recognizing the physical state of fixed gear switches. This flexible combination of interfaces not only solves the problem of connection status detection failure or misjudgment caused by the limitations of general interfaces, but also lays the foundation for the correct determination of subsequent configuration word information. Furthermore, by combining with the component control interface provided by the abstract service module, effective adaptation to various types of connected components is achieved, thereby significantly improving the accuracy and reliability of configuration word management.
[0065] This application also provides a component control method, such as Figure 4 As shown, the component control method includes: Step S401: Determine the target configuration word information of the current connected component and send the corresponding control information of the current connected component to the first service module. The first service module is used to integrate services of different configuration types according to the configuration word information. The target configuration word information is determined according to the above-mentioned active detection method of configuration words.
[0066] Specifically, the system identifies the connecting components and performs corresponding control based on their types. It uses an active detection mechanism to read and parse the configuration word information of the connecting components, thereby accurately identifying their type and functional characteristics. The configuration word, as a core identifier, carries the component's key parameters and communication specifications. After type determination, the system generates a corresponding set of control instructions and sends it to the first service module. This module, as the system's integration hub, has the core function of scheduling services of different configuration types based on the received configuration word information. The accuracy of the entire process relies on the configuration word-based active detection method, which can dynamically and in real-time determine the attributes and interface specifications of the connecting components, providing a reliable basis for seamless service integration.
[0067] Step S402: Based on the target configuration word information, the control information is converted into the component control information of the corresponding connected component by the first service module and sent to the corresponding target abstract service module. The target abstract service module is used to provide a configuration type service.
[0068] Based on the preset configuration word information, the system first parses and converts the received control commands through the first service module, transforming them into component control information that matches the specific connected components; then, the module sends the accurately encapsulated control commands to the corresponding abstract service module, which then drives the underlying hardware to complete the corresponding operations.
[0069] Step S403: Based on the abstract service module, use component control information to control the connected components accordingly.
[0070] Based on the system's pre-set abstract service module, and according to the specific component control commands and parameter information issued by the upper-layer application, it can automatically parse and execute the corresponding control logic, thereby enabling precise state adjustment, function start / stop, or operation mode switching of the target connected component.
[0071] In one example, combined Figure 1 and Figure 2 The following explanation will use PWM fans, speed-controlled fans, and LIN fans as examples.
[0072] The IO abstract service A1 corresponds to the PWM fan and defines three methods: a control method with the PWM duty cycle control command as the parameter; an operation parameter acquisition method with the PWM duty cycle feedback value as the parameter; and a fault information acquisition method with the fault code as the parameter, whose values can include open circuit fault, overcurrent fault, etc.
[0073] The IO abstract service B1 corresponds to the LIN fan and defines three methods: a control method with the speed control command as the parameter; an operation parameter acquisition method with the speed feedback value as the parameter; and a fault information acquisition method with the fault code as the parameter, including open circuit faults, overcurrent faults, etc.
[0074] The IO abstract service C1 corresponds to the gear fan and defines three methods: a control method with the gear control command as the parameter; an operation parameter acquisition method with the gear feedback value as the parameter; and a fault information acquisition method with the fault code as the parameter, including open circuit faults, overcurrent faults, etc.
[0075] Atomic Service 1 is responsible for integrating IO abstract services 1 of different configuration types based on configuration word information. In this instance, it is defined as the fan atomic service. This atomic service also defines three methods: a control method with a general speed control command as the parameter; an operation parameter acquisition method with a speed feedback value as the parameter; and a fault diagnosis acquisition method with a fault code as the parameter, including open circuit faults, open circuit faults, overcurrent faults, etc.
[0076] Atomic Service 1 retrieves fault information from the corresponding IO abstract services A1, B1, and C1, primarily focusing on open circuit faults. If only one of the three abstract services does not report an open circuit fault, the software should determine that the vehicle is equipped with the component type corresponding to that IO abstract service, and the configuration word type of the currently connected component will be identified as the component type corresponding to that IO abstract service. If all three IO abstract services report open circuit faults, the software should determine that no component is installed on the vehicle, and the configuration word type will be identified as the absence of this component. If only one or none of the three IO abstract services report open circuit faults, this does not match the configuration that only one type of component is actually installed on the vehicle, and a false diagnostic fault is reported.
[0077] Suppose that Atomic Service 1 detects a connection failure in the PWM fan using the fault information acquisition methods corresponding to IO Abstraction Services A1, B1, and C1, while the LIN fan and speed-controlled fan both have connection open-circuit faults. In this case, the fan hardware configuration word obtained by the atomic service is the PWM fan configuration. Therefore, upon receiving a speed control call from the application layer, Atomic Service 1 will convert the speed parameters into PWM duty cycle parameters and call IO Abstraction Service A1. Subsequently, it will convert the operating parameters and fault information obtained from IO Abstraction Service A1 into speed feedback and fault information for the application layer to access. If the atomic service identifies other configuration types, its processing logic remains the same.
[0078] The above technical solutions enable the system to easily adapt to different types of fans (PWM fans, LIN fans, speed-controlled fans) while maintaining consistency in application layer code. Through a unified interface design, the atomic service layer can use the same methods to call different types of fans, and also facilitates proactive identification and verification of configuration words.
[0079] This embodiment also provides an active detection device for configuration words, which is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0080] This application also provides an active detection device for configuration words, such as... Figure 5 As shown, it includes: The status acquisition module 501 is used to acquire the connection status of the corresponding component based on the component control interface provided by the abstract service module. The abstract service module includes multiple modules, and each abstract service module is used to provide a control interface for a type of connection component.
[0081] The information confirmation module 502 is used to determine the target configuration word information of the current connected component based on the connection status obtained by each abstract service module.
[0082] In some optional implementations, the status acquisition module 501 includes: The status judgment unit is used to perform open circuit fault detection on the corresponding components based on the component control interface provided by each abstract service module, so as to determine whether the connection status of the corresponding component is connected or disconnected.
[0083] This application also provides a component control device, including: The sending module is used to determine the target configuration word information of the currently connected component and send the corresponding control information of the currently connected component to the first service module. The first service module is used to integrate services of different configuration types according to the configuration word information. The target configuration word information is determined according to the above-mentioned active detection method of configuration words.
[0084] The conversion module is used to convert control information into component control information of the corresponding connected component based on the target configuration word information through the first service module and send it to the corresponding target abstract service module. The target abstract service module is used to provide a configuration type service.
[0085] The control module is used to control connected components based on the abstract service module and using component control information.
[0086] The active detection device for configuration words provided in this application can execute the active detection method for configuration words provided in any embodiment of this application, and has the corresponding functional modules and beneficial effects for executing the method. Further functional descriptions of the various modules and units described above are the same as those in the corresponding embodiments described above, and will not be repeated here.
[0087] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
[0088] The following is a detailed reference. Figure 6 This diagram illustrates a suitable structural schematic for implementing the electronic device described in the embodiments of this application. The electronic device may include a processor (e.g., a central processing unit, graphics processor, etc.) 601, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 602 or a program loaded from memory 608 into random access memory (RAM) 603. RAM 603 also stores various programs and data required for the operation of the electronic device. The processor 601, ROM 602, and RAM 603 are interconnected via bus 604. Input / output (I / O) interface 605 is also connected to bus 604.
[0089] Typically, the following devices can be connected to I / O interface 605: input devices 606 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 607 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; memory devices 608 including, for example, magnetic tapes, hard disks, etc.; and communication devices 609. Communication device 609 allows electronic devices to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 6 Electronic devices with various devices are shown, but it should be understood that it is not required to implement or have all of the devices shown, and more or fewer devices may be implemented or have instead.
[0090] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 609, or installed from a memory 608, or installed from a ROM 602. When the computer program is executed by the processor 601, it performs the functions defined in the active detection method for configuration words of embodiments of this application.
[0091] Figure 6The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0092] This application also provides a computer-readable storage medium. The methods described in this application can be implemented in hardware or firmware, or implemented as recordable on a storage medium, or implemented as computer code downloaded over a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code. When the software or computer code is accessed and executed by the computer, processor, or hardware, the active detection method for configuration words shown in the above embodiments is implemented.
[0093] A portion of this application can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to this application through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.
[0094] Although embodiments of this application have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of this application, and all such modifications and variations fall within the scope defined by the appended claims.
Claims
1. An active detection method for configuration words, characterized in that, The method includes: Based on the component control interface provided by the abstract service module, the connection status of the corresponding component is obtained. The abstract service module includes multiple modules, and each abstract service module is used to provide a control interface for a type of connection component. The target configuration word information of the current connection component is determined based on the connection status obtained from each abstract service module.
2. The method according to claim 1, characterized in that, The component control interface provided by the abstract service module obtains the connection status of the corresponding component, including: Based on the component control interfaces provided by each abstract service module, the corresponding component is subjected to open circuit fault detection to determine whether the connection status of the corresponding component is connected or disconnected.
3. The method according to claim 1, characterized in that, The step of determining the target configuration word information of the current connection component based on the connection status obtained from each abstract service module includes: If each connection state indicates that the first connection component is in a connected state and the other connection components are in a disconnected state, then the configuration word information corresponding to the first connection component is used as the target configuration word information, where the first connection component is one of multiple types of connection components; If all connection states are disconnected, then the target configuration word information is determined to be empty; If multiple connection states are in a connected state, an alarm message will be output.
4. The method according to claim 1, characterized in that, The method further includes: Obtain the system configuration word information pre-saved for the currently connected component; The target configuration word information and the system configuration word information are compared, and the detection result of the configuration word is obtained based on the comparison result.
5. The method according to claim 4, characterized in that, The step of comparing the target configuration word information and the system configuration word information includes: When the target configuration word information and the system configuration word information are consistent, it is confirmed that the system configuration word information is correct; When the target configuration word information and the system configuration word information are inconsistent, the system configuration word information is confirmed to be incorrect, and modification information is output.
6. The method according to any one of claims 1-5, characterized in that, The component control interface includes at least one of the following: pulse width modulation fan control interface, local network fan control interface, and speed fan control interface.
7. A component control method, characterized in that, The component control method includes: The target configuration word information of the current connected component is determined, and the corresponding control information of the current connected component is sent to the first service module. The first service module is used to integrate services of different configuration types according to the configuration word information. The target configuration word information is determined according to the active detection method of configuration word as described in any one of claims 1-6. Based on the target configuration word information, the first service module converts the control information into component control information of the corresponding connected component and sends it to the corresponding target abstract service module, wherein the target abstract service module is used to provide a configuration type service; Based on the abstract service module, the component control information is used to control the connected components accordingly.
8. An active detection device for configuration words, characterized in that, The device includes: The status acquisition module is used to acquire the connection status of the corresponding component based on the component control interface provided by the abstract service module. The abstract service module includes multiple modules, and each abstract service module is used to provide a control interface for a type of connection component. The information confirmation module is used to determine the target configuration word information of the current connected component based on the connection status obtained by each abstract service module.
9. An electronic device, characterized in that, include: A memory and a processor are communicatively connected, the memory stores computer instructions, and the processor executes the computer instructions to perform the active detection method of the configuration word according to any one of claims 1 to 6 or the component control method according to claim 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the computer to execute the active detection method of the configuration word according to any one of claims 1 to 6 or the component control method according to claim 7.