Interface parameter determination method and device, electronic equipment and computer program product
By obtaining internal and external interaction information of the motor controller and determining and optimizing interface parameters, the problem of lack of unified standards for the motor controller interface is solved, and its scalability and substitution are improved, ensuring normal interaction and adaptability with components is ensured. .
Patent Information
- Application Number
- CN202411084905.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-08
- Publication Date
- 2024-11-22
AI Technical Summary
The lack of unified standards for the interfaces of existing motor controllers, resulting in poor scalability of external interactions and low substitution of internal devices.
By obtaining interactive information of internal and external components of the motor controller, determining the required interface and key parameter ranges, and applying optimization principles according to the interface type, to improve the scalability and substitution of the interface.
The scalability and replacement of the motor controller interface is achieved, allowing it to interact normally with the connected components and adapt to external changes and internal part replacement.
Smart Images

Figure CN119002348A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to an interface design technology for a motor controller, and in particular to a method, device, electronic equipment and computer program product for determining interface parameters. Background Art
[0002] With growing concern for environmental protection and carbon emissions, new energy vehicles (NEVs) are a key development trend in the automotive industry. The motor controller is one of the three core components of new energy vehicles, acting as the brains behind the vehicle's power generation and drive motors. As the control unit for the vehicle's powertrain, the motor controller needs to exchange information with other vehicle controllers through various interfaces and coordinate the operation of internal components through various internal interfaces.
[0003] Currently, the development of motor controllers is mainly based on assembly development. The interface of the motor controller is determined by each controller manufacturer. There is no unified standard and the highly customized interface leads to poor scalability of the motor controller in interacting with other controllers externally, and poor substitutability of the internal components of the motor controller. Summary of the Invention
[0004] Embodiments of the present invention provide a method, device, electronic device, and computer program product for determining interface parameters, which can improve the scalability and substitutability of a motor controller.
[0005] The technical solution of the present invention is achieved as follows:
[0006] An embodiment of the present invention provides a method for determining interface parameters, including:
[0007] Obtaining demand information of a motor controller; wherein the demand information is information determined based on the interaction of internal and external components associated with the motor controller;
[0008] Determining, based on the requirement information, a required interface of the motor controller and a key parameter range of the required interface of the motor controller;
[0009] According to the optimization principle corresponding to the interface type of the required interface, the key parameter range of the interface under the interface type of the required interface is optimized to obtain the interface parameters of the motor controller.
[0010] In this way, the demand information of the motor controller is obtained, and the demand information is based on the interaction of the internal and external components associated with the motor controller. In this way, the interaction between the internal and external components associated with the motor controller is known, thereby knowing the internal and / or external requirements of the motor controller. Based on this, the interface parameters of the motor controller are determined based on the internal and external requirements of the motor controller, so that the determined interface of the motor controller can interact normally with the connected components. According to the demand information, the required interface of the motor controller and the key parameter range of the required interface of the motor controller are determined. According to the optimization principle corresponding to the interface type of the required interface, the key parameter range of the interface under the interface type of the required interface is optimized to obtain the interface parameters of the motor controller. Here, the optimization principle corresponding to the interface type is used to optimize the key parameter range of the interface under the interface type to obtain the interface parameters of the motor controller. The above method is used to optimize the key parameter range of the interface, so that the scalability and substitutability of the obtained interface parameters are improved.
[0011] Furthermore, the method further comprises:
[0012] Obtaining a topological diagram of internal and external components of the motor controller;
[0013] Obtaining boundary information of the motor controller from the topological map; wherein the boundary information includes: internal boundary information and external boundary information; the internal boundary information is: internal interaction information and electrical parameters of the motor controller; the external boundary information is: interaction information and electrical parameters between the motor controller and components connected to the motor controller;
[0014] The boundary information is counted to obtain demand information of the motor controller.
[0015] In this way, the motor controller requirement information can be obtained, which includes both the internal requirement information of the motor controller and the external requirement information of the motor controller, comprehensively considering the internal and external requirements of the motor controller, and laying the foundation for designing an interface for the motor controller.
[0016] Furthermore, determining the required interface of the motor controller and the key parameter range of the required interface of the motor controller according to the requirement information includes:
[0017] Determining a corresponding electrical signal according to the interaction information in the demand information;
[0018] determining a required interface of the motor controller according to the electrical signal corresponding to the interaction information;
[0019] According to the electrical parameters involved in the interactive information in the requirement information, a key parameter range of the required interface of the motor controller is determined.
[0020] In this way, determining the required interface for motor control and the key parameter range of the required interface helps to optimize the key parameter range of different interface types to improve the scalability and substitutability of the interface of the motor controller.
[0021] Furthermore, the method further comprises:
[0022] When the interface type of the required interface is a DC power supply type, determining that the optimization principle corresponding to the interface type of the required interface of the motor controller is a first preset principle; wherein the first preset principle is a principle of selecting a maximum value in a key parameter range;
[0023] When the type of the required interface is analog sampling type or communication type, the optimization principle corresponding to the interface type of the required interface of the motor controller is determined to be the second preset principle or the third preset principle; wherein, the second preset principle is the principle of selecting the maximum number of occurrences in the key parameter range; the third preset principle is the principle of selecting the median in the sorted key parameter range.
[0024] In this way, selecting different optimization principles for different interface types is conducive to optimizing the key parameter range of the interface under the interface type to obtain the best interface parameters, thereby improving the scalability and substitutability of the interface.
[0025] Furthermore, when the interface type of the required interface is a DC power supply type, the types of key parameters of the interface under the interface type of the required interface of the motor controller include one or more of the following:
[0026] Voltage range, current range.
[0027] In this way, the DC power interface is optimized so that this type of interface has better scalability and substitutability.
[0028] Furthermore, when the interface type of the required interface is an analog sampling type, the types of key parameters of the interface under the interface type of the required interface of the motor controller include one or more of the following:
[0029] Voltage range, filter parameter range, pull-up and pull-down resistor range.
[0030] In this way, the interface of the analog sampling class is optimized, making this type of interface more scalable and substitutable.
[0031] Furthermore, when the interface type of the required interface is communication type, the types of key parameters of the interface under the interface type of the required interface of the motor controller include one or more of the following:
[0032] Frequency range, voltage range, resistance range.
[0033] In this way, the communication interface is optimized so that this type of interface has better scalability and substitutability.
[0034] An embodiment of the present invention provides a device for determining interface parameters, including:
[0035] An acquisition module, configured to acquire demand information of a motor controller; wherein the demand information is information determined based on the interaction between the motor controller and components associated with the motor controller;
[0036] a determination module, configured to determine a required interface of the motor controller and a key parameter range of the required interface of the motor controller according to the requirement information;
[0037] The optimization module is used to optimize the key parameter range of the interface under the interface type of the required interface according to the optimization principle corresponding to the interface type of the required interface, so as to obtain the interface parameters of the motor controller.
[0038] An embodiment of the present invention provides an electronic device, comprising: a processor and a storage medium storing instructions executable by the processor, wherein the storage medium relies on the processor to perform operations via a communication bus, and when the instructions are executed by the processor, the method for determining the interface parameters described in one or more of the above embodiments is executed.
[0039] An embodiment of the present invention further provides a computer program product, comprising a computer program or instructions, characterized in that when the computer program or instructions are executed by a processor, the steps of the method for determining interface parameters described in one or more of the above embodiments are implemented.
[0040] Beneficial effects of the present invention:
[0041] (1) obtaining demand information of the motor controller, the demand information being based on the interaction between the internal and external components of the motor controller. Thus, the interaction between the internal and external components of the motor controller is known, thereby knowing the internal and / or external requirements of the motor controller. Based on this, the interface parameters of the motor controller are determined based on the internal and external requirements of the motor controller, so that the determined interface of the motor controller can normally interact with the connected components;
[0042] (2) According to the demand information, the required interface of the motor controller and the key parameter range of the required interface of the motor controller are determined. According to the optimization principle corresponding to the interface type of the required interface, the key parameter range of the interface under the interface type of the required interface is optimized to obtain the interface parameters of the motor controller. Here, the optimization principle corresponding to the interface type is used to optimize the key parameter range of the interface under the interface type, thereby obtaining the interface parameters of the motor controller. The above method is used to optimize the key parameter range of the interface, so that the scalability and substitutability of the obtained interface parameters are improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 A schematic flow chart of an optional method for determining interface parameters provided in an embodiment of the present invention;
[0044] Figure 2 A schematic diagram of an optional external structure of a motor control provided by an embodiment of the present invention;
[0045] Figure 3 A schematic diagram of the internal structure of an optional motor control provided by an embodiment of the present invention;
[0046] Figure 4 A flowchart of Example 1 of an optional method for determining interface parameters provided by an embodiment of the present invention;
[0047] Figure 5 A flowchart of Example 2 of an optional method for determining interface parameters provided by an embodiment of the present invention;
[0048] Figure 6 A flowchart of Example 3 of an optional method for determining interface parameters provided by an embodiment of the present invention;
[0049] Figure 7 A schematic structural diagram of an optional device for determining interface parameters provided by an embodiment of the present invention;
[0050] Figure 8 A schematic structural diagram of an optional electronic device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0051] The technical solutions in the embodiments of the present invention will be described clearly and completely below with reference to the accompanying drawings in the embodiments of the present invention.
[0052] In view of the problems of poor scalability and substitutability of the interface of the motor controller in the related art, an embodiment of the present invention provides a method for determining interface parameters. Figure 1 A flow chart of an optional method for determining interface parameters provided by an embodiment of the present invention is shown as follows: Figure 1As shown, the method for determining the interface parameters may include:
[0053] S101: Obtaining demand information of the motor controller;
[0054] In order to determine the interface parameters of the motor controller, in an embodiment of the present invention, the demand information of the motor controller is first obtained, wherein the demand information is information determined based on the interaction between the internal and external components associated with the motor controller; that is, in order to obtain the demand information of the motor controller, it is necessary to know the interaction between the internal and external components associated with the motor controller, and the demand information of the motor controller can be determined based on the interaction.
[0055] It should be noted that the internal and external structures of the motor controller can be obtained from the motor controller's topology diagram, thereby understanding the structures of each internal component and each external component, thereby understanding the interaction between the motor controller and its associated components. Based on this interaction, the motor controller's requirement information can be determined. For example, this requirement information may include: interaction information and electrical parameters related to each interaction information, etc. This is not specifically limited in this embodiment of the present invention.
[0056] S102: Determine the required interface of the motor controller and the key parameter range of the required interface of the motor controller according to the requirement information;
[0057] After obtaining the requirement information, the required interface of the motor controller and the key parameter range of the required interface of the motor controller can be determined based on the requirement information. The interface corresponding to each interactive information can be determined according to preset rules based on the interactive information in the requirement information, and the key parameter range of the interface corresponding to each electrical parameter can be determined based on the electrical parameters in the requirement information. In this way, the interface corresponding to each information in the requirement information and the key parameter range of the corresponding interface can be determined.
[0058] Then, the interface corresponding to each information is determined as the required interface of the motor controller, and the key parameter range of the corresponding interface is determined as the key parameter range of the required interface of the motor controller.
[0059] Among them, the above-mentioned required interfaces may include DC power supply interfaces, analog sampling interfaces or communication interfaces, etc. The key parameters of the above-mentioned required interfaces may be the range of current values, the range of voltage values, the range of filtering parameters, or the range of frequency values. Here, the embodiments of the present invention do not specifically limit this.
[0060] S103: Optimizing a key parameter range of the interface under the interface type of the required interface according to an optimization principle corresponding to the interface type of the required interface to obtain interface parameters of the motor controller.
[0061] After determining the required interface for motor control, the interface type of each interface in the required interface can be determined. Different interface types correspond to optimization principles. Based on the optimization principles corresponding to the interface type of the required interface, the key parameter range of the interface under the interface type of the required interface is optimized, and the optimized key parameter range is determined as the interface parameter of the motor controller.
[0062] Among them, the above-mentioned interface types may include DC power supply type, analog sampling type or communication type, etc., and the above-mentioned optimization principles may include a first preset principle, a second preset principle and a third preset principle, among which the first preset principle can be called the maximum inclusion principle, the second preset principle can be called the minority obeys the majority principle, and the third preset principle can be called the center principle.
[0063] After determining the optimization principle, the optimization principle corresponding to the interface type is used to optimize the key parameter range of the interface under the interface type of the required interface, so that each interface of the same interface type has its key parameter range optimized, so that the obtained interface parameters can meet different needs, thereby improving the scalability and substitutability of the motor control interface.
[0064] In order to obtain the demand information of the motor controller, in an optional embodiment, the above method may further include:
[0065] Obtain a topological diagram of the internal and external components of the motor controller;
[0066] Get the boundary information of the motor controller from the topology map;
[0067] The boundary information is counted to obtain the demand information of the motor controller.
[0068] It can be understood that in order to obtain the demand information of the motor controller, the topology diagram of the internal and external components of the motor controller is first obtained, wherein the internal component topology of the motor controller and the topology diagram of the external components of the motor controller are obtained. It should be noted that the above topology diagram includes not only components, but also the connection relationship between components, as well as the interaction information between components, and the electrical parameters involved in each interaction information, etc. Here, the embodiment of the present invention does not make specific limitations on this.
[0069] The motor controller's boundary information is obtained from the extracted topology. This boundary information includes internal boundary information and external boundary information. Specifically, for the internal structure of the motor controller, the internal boundary information is extracted, which includes the internal interaction information and electrical parameters of the motor controller. For the external structure of the motor controller, the external boundary information is extracted, which includes the interaction information and electrical parameters between the motor controller and the components connected to it.
[0070] After obtaining the internal boundary information and the external boundary information, the boundary information is counted according to the preset rules. Here, the internal boundary information and the external boundary information are mainly counted according to the preset rules to obtain the demand information of the motor controller. For example, for the internal interaction information of the motor controller, the electrical parameters involved in each interaction information are counted. For the external interaction information of the motor controller, the electrical parameters involved in each interaction information are counted.
[0071] In this way, the motor controller requirement information can be obtained, which includes both the internal requirement information of the motor controller and the external requirement information of the motor controller, comprehensively considering the internal and external requirements of the motor controller, and laying the foundation for designing an interface for the motor controller.
[0072] In order to determine the required interface of the motor controller and the key parameter range of the required interface of the motor controller, in an optional embodiment, S102 may include:
[0073] Determine the corresponding electrical signal according to the interactive information in the demand information;
[0074] Determine the required interface of the motor controller based on the electrical signal corresponding to the interactive information;
[0075] According to the electrical parameters involved in the interactive information in the requirement information, the key parameter ranges of the required interface of the motor controller are determined.
[0076] It can be understood that the corresponding electrical signal is determined based on the interaction information in the demand information. Since the demand information is information obtained by statistically analyzing the internal boundary information and the external boundary information, here, the electrical signal corresponding to each interaction information in the demand information is determined. For example, the corresponding relationship between the interaction information and the electrical signal is stored locally. After knowing the interaction information, the electrical signal corresponding to the interaction information can be known.
[0077] According to the electrical signal corresponding to the interactive information, the required interface of the motor controller can be determined, and according to the electrical parameters involved in the interactive information in the requirement information, the key parameter range of the required interface of the motor controller can be determined. That is to say, after knowing the electrical signal, since the correspondence between each electrical signal and the interface is stored locally, the required interface of the motor control can be determined. After determining the required interface, since the requirement information includes the electrical parameters involved in each interactive information, according to the electrical parameters involved in each interactive information, the key parameter range of the interface corresponding to each interactive information can be determined. Here, the key parameter range can be determined by the value range of the electrical signal in the electrical parameters.
[0078] In this way, determining the required interface for motor control and the key parameter range of the required interface helps to optimize the key parameter range of different interface types to improve the scalability and substitutability of the interface of the motor controller.
[0079] In order to determine the optimization principle for each interface type, in an optional embodiment, the above method may further include:
[0080] When the interface type of the required interface is a DC power supply type, determining that the optimization principle corresponding to the interface type of the required interface of the motor controller is the first preset principle;
[0081] When the type of the required interface is an analog sampling type or a communication type, it is determined that the optimization principle corresponding to the interface type of the required interface of the motor controller is the first preset principle or the third preset principle.
[0082] It can be understood that when the interface type of the required interface is a DC power supply type, the optimization principle corresponding to the interface type is determined to be the first preset principle, wherein the first preset principle is the principle of selecting the maximum value in the key parameter range; that is, the maximum value in the key parameter range is selected, for example, the key parameter range includes 3V and 5V, so 5V can be selected.
[0083] When the interface type of the required interface is analog sampling or communication, the optimization principle corresponding to the interface type is determined to be the second preset principle or the third preset principle, wherein the second preset principle is based on the principle of selecting the maximum number of occurrences in the key parameter range; the third preset principle is based on the principle of selecting the median of the sorted key parameter range. In other words, the maximum number of occurrences in the key parameter range is selected, or the median is selected. For example, if the key parameter range includes 1V, 3V, 3V, 5V, and 12V, then 3V can be selected.
[0084] In this way, selecting different optimization principles for different interface types is conducive to optimizing the key parameter range of the interface under the interface type to obtain the best interface parameters, thereby improving the scalability and substitutability of the interface.
[0085] For the above-mentioned interface type being a DC power supply type, in an optional embodiment, when the interface type of the required interface is a DC power supply type, the type of key parameters of the interface under the interface type of the required interface of the motor controller includes one or more of the following: voltage range, current range.
[0086] It can be understood that for DC power supply interfaces, the key parameter types are voltage range and current range. That is to say, for DC power supply interfaces, the voltage range and current range are optimized to determine the output interface parameters, and the interface parameters include the optimized voltage range or current range.
[0087] In this way, the DC power interface is optimized so that this type of interface has better scalability and substitutability.
[0088] For the above-mentioned interface type being an analog sampling type, in an optional embodiment, when the interface type of the required interface is an analog sampling type, the type of key parameters of the interface under the interface type of the required interface of the motor controller includes one or more of the following: voltage range, filter parameter range, and pull-up and pull-down resistor resistance range.
[0089] It can be understood that for analog sampling type interfaces, the types of key parameters are voltage range, filter parameter range and pull-up and pull-down resistor resistance range. That is to say, for analog sampling type interfaces, the voltage range, filter parameter range and pull-up and pull-down resistor resistance range are optimized to determine the output interface parameters. The interface parameters include the optimized voltage range, filter parameter range and pull-up and pull-down resistor resistance range.
[0090] In this way, the interface of the analog sampling class is optimized, making this type of interface more scalable and substitutable.
[0091] For the above-mentioned interface type being communication, in an optional embodiment, when the interface type of the required interface is communication, the types of key parameters of the interface under the interface type of the required interface of the motor controller include one or more of the following: frequency range, voltage range, and resistance range.
[0092] It can be understood that for communication interfaces, the types of key parameters are frequency range, voltage range and resistance range, where the resistance here is the resistance at the communication interface. That is to say, for the communication interface, the frequency range, voltage range and resistance range are optimized to determine the interface parameters. The interface parameters include the optimized frequency range, voltage range and resistance range.
[0093] In this way, the communication interface is optimized so that this type of interface has better scalability and substitutability.
[0094] The following describes the method for determining the interface parameters described in one or more of the above embodiments with examples.
[0095] This example addresses the problems of motor controller interfaces in related technologies, such as the lack of unified standards and highly customized interfaces, which lead to poor external scalability and internal interchangeability. A method for defining a building block standard motor controller interface is proposed. The method is carried out in five steps: boundary sorting, requirement decomposition, requirement conversion into a preliminary electrical interface list, electrical interface organization and optimization, and definition of a building block standardized interface.
[0096] The first step is to sort out the boundaries to form a detailed boundary list; the second step is to decompose the requirements of each boundary one by one to form a requirements list; the third step is to convert the requirements list into a list of electrification preliminary interfaces; the fourth step is to optimize and organize the electrical preliminary interfaces to form several standard sub-interfaces; the fifth step is to recombine and organize the standard sub-interfaces to form several building block standardized interfaces.
[0097] First, boundary sorting and requirement decomposition ensure detailed organization of requirements within and outside the controller, ensuring the comprehensiveness and universality of the defined standard interface from the demand side. Electrical interface organization and optimization classifies interface information and defines detailed parameters of this type. Then, the optimizability of parameters is examined from the perspectives of parameter optimization and parameter unification, thereby reducing the number of type parameters and ensuring standardization and broad adaptability of type parameters. Finally, the definition of a building block standardized interface ensures that the final interface is comprehensive, universal, and standardized by combining various types of interfaces, thus providing good external scalability and internal interchangeability.
[0098] Figure 2 An optional external structure diagram of a motor control provided by an embodiment of the present invention is as follows: Figure 2 As shown, it includes: a motor controller 21, a vehicle controller 22, a chassis controller 23, a power supply system 24, an air-conditioning compressor controller 25 and an electric drive assembly 26.
[0099] The motor controller 21 exchanges control information with the vehicle controller 22 via the CAN communication interface and high-voltage interlock information via the high-voltage interlock interface. The motor controller 21 exchanges motor speed information with the chassis controller 23 via the speed interface. The motor controller 21 controls the power supply system 24 via the power interface and exchanges control information via the communication interface. The motor controller 21 controls the air conditioning compressor controller system 25 via the power interface and exchanges control information via the communication interface. The motor controller 21 exchanges motor position information with the electric drive assembly 26 via the resolver interface, temperature information via the temperature interface, and oil circuit control information via the control interface.
[0100] Figure 3 An optional internal structure diagram of a motor control provided by an embodiment of the present invention is shown as follows: Figure 3 As shown, the motor controller 321 may include: a 11-main control board 31 , a TM driver board 32 , a TM power device 33 , a TM current sensor 34 , a GM current sensor 35 , a GM power device 36 , a GM driver board 37 and a connector 38 .
[0101] The motor controller 21 includes a main control board 31, which communicates with the outside world via a connector 38. The main control board 31 exchanges energy and information with the TM driver board 32, TM power device 33, TM current sensor 34, GM current sensor 35, GM power device 36, and GM driver board 37 through various internal interfaces.
[0102] Figure 4 A flowchart of an example 1 of an optional method for determining interface parameters provided by an embodiment of the present invention is shown as follows: Figure 4 As shown, the method may include:
[0103] S401: Boundary collection: collecting internal and external boundaries associated with the motor controller;
[0104] like Figure 2 As shown, the motor controller 21 has energy and information exchanges with the vehicle controller 22, chassis controller 23, power supply system 24, air conditioning compressor controller system 25, electric drive assembly 26 and other boundaries. Figure 3 As shown, the motor controller 21 has a main control board 31 inside which exchanges energy and information with the connector 38 TM driver board 32 , TM power device 33 , TM current sensor 34 , GM current sensor 35 , GM power device 36 , GM driver board 37 and other devices.
[0105] S402: Demand decomposition: Decompose interactive functions according to boundary objects;
[0106] The external motor controller 21 exchanges control information with the vehicle controller 22 via the CAN communication interface and high-voltage interlock information via the high-voltage interlock interface. The motor controller 21 exchanges motor speed information with the chassis controller 23 via the speed interface. The motor controller 21 controls the power supply system 24 via the power interface and exchanges control information via the communication interface. The motor controller 21 controls the air conditioning compressor controller system 25 via the power interface and exchanges control information via the communication interface. The motor controller 21 exchanges motor position information with the electric drive assembly 26 via the resolver interface, temperature information via the temperature interface, and oil circuit control information via the control interface.
[0107] Internally, the motor controller 21 houses a main control board 31, which communicates with other controllers via connector 38 for power supply, CAN communication, high-voltage interlocking, and speed information. It also exchanges information with the electric drive assembly, including motor position, temperature, and oil control. Main control board 31 uses various internal interfaces to exchange low-voltage and high-voltage power, overvoltage information, clock information, bridge arm drive, fault information, IGBT temperature, current signals, bus voltage signals, emergency power, and ASC signals with the TM driver board 32, TM power device 33, TM current sensor 34, GM current sensor 35, GM power device 36, and GM driver board 37.
[0108] S403: Demand conversion of the initial version of the electrical interface: preliminary electrical design of the interactive function, converting the interactive information into specific electrical signals;
[0109] The resulting requirements are converted into a preliminary list of electrical interfaces. A preliminary electrical design is then performed on the interaction information, which is then converted into specific electrical signals. The number of interfaces occupied and the signal type on each interface are determined based on the specific electrical signals. Taking the power supply of an externally interactive power supply system as an example, the power supply requirements of the power supply system at the powered end are converted into two DC12V interfaces based on the electrical topology and electrical principles. Taking an internally interactive current sensor as an example, based on the current sensor's electrical design and overall schematic, the power supply and three-phase current information interaction requirements are converted into two DC5V interfaces and three 5V analog input interfaces. Based on the above principles, all internal and external functional requirements are converted into the corresponding number of interfaces to form a preliminary electrical interface table.
[0110] S404: Electrical interface organization and optimization: classify, optimize, and merge electrical signals to obtain several standard types of interfaces;
[0111] The initial version of the electrical interface is sorted and optimized. Figure 5 A flow chart of Example 2 of an optional method for determining interface parameters provided by an embodiment of the present invention is shown as follows: Figure 5As shown, the method may include:
[0112] S501: Electrical interface first edition: All electrical interface tables are organized into an interface summary table;
[0113] S502: Type classification: classify the interface information into DC power supply, analog sampling, communication and other interface types according to electrical principles;
[0114] S503: Summarizing interfaces of different types: Summarizing interfaces of the same type into a summary table of the type, thereby forming a summary table of interfaces of different types.
[0115] S504: Confirm key parameters of each type of interface: Confirm key parameters of each type of interface according to electrical principles;
[0116] Taking DC power supply as an example, the voltage range and current range are identified based on the characteristics of this type of interface. Taking analog sampling as an example, key parameters such as voltage range, filtering parameters, and pull-up and pull-down resistor values are identified based on the characteristics of this type of interface. Based on this principle, the key parameters of all categorized interface types are identified to produce a key parameter table for each type of interface.
[0117] S505: Interface information collection: Collect specific initial version parameters of each interface based on key parameters of each type of interface to form an initial version parameter table of each type of parameter.
[0118] S506: Confirming the optimization principle: Confirming the optimization principle based on the key parameters of each type of interface.
[0119] Among them, parameter values within a certain range are optimized according to the principle of maximum inclusion. Parameter values with specific values are optimized according to the principle of minority obeys majority or the principle of center. Taking the current parameter in the power interface with a certain range of parameter values as an example, the largest current range among all interfaces is defined as the current standard value of the power interface according to the principle of maximum inclusion according to the current range. Taking the voltage parameter in the power interface with a specific parameter value as an example, the specific value that appears most frequently in the power interface is defined as the voltage standard value of the power interface according to the principle of minority obeys majority. Taking the filtering parameter in the analog sampling interface with a specific parameter value as an example, a specific value in the analog sampling interface is selected according to the principle of center to cover downward and be compatible upward, thereby defining the standard value of the filtering parameter in the analog sampling interface.
[0120] S507: Parameter optimization: Optimize the specific parameters of each interface according to the optimization principles defined for each type of interface, and obtain the final parameter table of each type of interface after optimization;
[0121] S508: Classification of sub-type standard interfaces: Based on the final version of each type of interface, classify it into several sub-type standard interfaces according to the differences in key parameters.
[0122] Several standardized interfaces are obtained through the steps of classifying interfaces, defining key parameters of various types, collecting parameters, confirming parameter optimization principles, optimizing specific values, and refining interface classification. Taking the power interface as an example, the power interface is reduced to DC12, a standard 12V power supply interface with a power supply capacity of XA, and a standard 5V power supply interface with a power supply capacity of XA of DC5. The 12V power supply interface is a standard interface for all external controllers. When the demand for external control interaction increases or decreases in the future, the function can be expanded by choosing whether to connect it. The 5V power supply interface will be used to power all low-voltage 5V circuits. When there are supply or quality issues in the future, you can directly select a device that meets the power supply requirements to ensure the normal power supply and normal operation of the device.
[0123] S405: Define building block standardized interfaces.
[0124] Figure 6 A flow chart of Example 3 of an optional method for determining interface parameters provided by an embodiment of the present invention is shown as follows: Figure 6 As shown, the method may include:
[0125] S601: Subtype standard interface collection: organize all subtype standard interfaces into an interface collection;
[0126] S602: Interface classification: divided into internal and external physical interfaces according to physical location;
[0127] The actual number of physical interfaces should be determined based on comprehensive factors such as internal and external interfaces, physical connection locations, and interface layout.
[0128] S603: Physical interface electrical layer confirmation: confirm the sub-type standardized interface content contained in each physical interface;
[0129] The electrical layer confirmation of the physical interface will confirm the interface information and quantity of each physical interface based on the interactive information.
[0130] S604: Physical layer confirmation of the physical interface: select the corresponding connector according to the physical location and number of interfaces and perform pin assignment;
[0131] Select the appropriate connector for each physical interface and assign specific pins to each signal based on information such as physical location, protection requirements, layout boundaries, number of interfaces, and electrical parameters.
[0132] S605: Building block standardized interface: sort out the physical and electrical layer information for each interface to obtain a standard interface table for each interface.
[0133] The physical layer information such as the connector model and pin assignment of each interface and the electrical layer information such as key parameters and specific values are sorted out to obtain the standard interface table of each interface, thereby obtaining a building block standard interface with all parameters.
[0134] The building block standard interface developed through S401-S405 above possesses standardized physical characteristics, such as port structure, size, and location, and standardized electrical parameters, along with universal applicability and flexibility. This motor controller interface, having addressed both physical and electrical layer challenges, offers excellent external scalability and internal interchangeability and standardization. Therefore, a motor controller interface developed using this approach can adapt well to changes in both external boundaries and internal components.
[0135] An embodiment of the present invention provides a method for determining interface parameters, which obtains demand information of a motor controller. The demand information is based on the interaction between the internal and external components associated with the motor controller. In this way, the interaction between the internal and external components associated with the motor controller is known, thereby knowing the internal and / or external requirements of the motor controller. Based on this, the determined interface parameters of the motor controller are obtained based on the internal and external requirements of the motor controller, so that the determined interface of the motor controller can interact normally with the connected components. According to the demand information, the required interface of the motor controller and the key parameter range of the required interface of the motor controller are determined. According to the optimization principle corresponding to the interface type of the required interface, the key parameter range of the interface under the interface type of the required interface is optimized to obtain the interface parameters of the motor controller. Here, the optimization principle corresponding to the interface type is used to optimize the key parameter range of the interface under the interface type to obtain the interface parameters of the motor controller. The above method is used to optimize the key parameter range of the interface, so that the scalability and substitutability of the obtained interface parameters are improved.
[0136] Based on the same inventive concept as the above embodiments, an embodiment of the present invention provides a device for determining interface parameters. Figure 7 A schematic diagram of a structure of an optional device for determining interface parameters provided by an embodiment of the present invention, such as Figure 7 As shown, the apparatus 700 may include:
[0137] An acquisition module 71 is configured to acquire demand information of a motor controller, wherein the demand information is information determined based on the interaction between the motor controller and components associated with the motor controller;
[0138] A determination module 72 is configured to determine a required interface of the motor controller and a key parameter range of the required interface of the motor controller based on the requirement information;
[0139] The optimization module 73 is used to optimize the key parameter range of the interface under the interface type of the required interface according to the optimization principle corresponding to the interface type of the required interface, so as to obtain the interface parameters of the motor controller.
[0140] In an optional embodiment, the device is further used to:
[0141] Obtain a topological diagram of the internal and external components of the motor controller;
[0142] Obtaining boundary information of the motor controller from the topology map; wherein the boundary information includes: internal boundary information and external boundary information; the internal boundary information is: internal interaction information and electrical parameters of the motor controller; the external boundary information is: interaction information and electrical parameters between the motor controller and components connected to the motor controller;
[0143] The boundary information is counted to obtain the demand information of the motor controller.
[0144] In an optional embodiment, the determination module 72 is specifically configured to:
[0145] Determine the corresponding electrical signal according to the interactive information in the demand information;
[0146] Determine the required interface of the motor controller based on the electrical signal corresponding to the interactive information;
[0147] According to the electrical parameters corresponding to the interactive information in the requirement information, the key parameter ranges of the required interface of the motor controller are determined.
[0148] In an optional embodiment, the device is further used to:
[0149] When the interface type of the required interface is a DC power supply type, the optimization principle corresponding to the interface type of the required interface of the motor controller is determined to be the first preset principle; wherein the first preset principle is a principle of selecting the maximum value in the key parameter range;
[0150] When the type of the required interface is analog sampling or communication, the optimization principle corresponding to the interface type of the required interface of the motor controller is determined to be the second preset principle or the third preset principle; among which, the second preset principle is the principle of selecting the maximum number of occurrences in the key parameter range; the third preset principle is the principle of selecting the median in the sorted key parameter range.
[0151] In an optional embodiment, when the interface type of the required interface is a DC power supply type, the type of the key parameter of the interface under the interface type of the required interface of the motor controller includes one or more of the following: voltage range, current range.
[0152] In an optional embodiment, when the interface type of the required interface is analog sampling type, the type of key parameters of the interface under the interface type of the required interface of the motor controller includes one or more of the following: voltage range, filter parameter range, and pull-up and pull-down resistance range.
[0153] In an optional embodiment, when the interface type of the required interface is communication type, the type of key parameters of the interface under the interface type of the required interface of the motor controller includes one or more of the following: frequency range, voltage range, and resistance range.
[0154] In practical applications, the acquisition module 71, determination module 72 and optimization module 73 can be implemented by a processor located on the interface parameter determination device 700, specifically a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA).
[0155] Figure 8 A schematic diagram of the structure of an optional electronic device provided in an embodiment of the present invention is shown in FIG. Figure 8 As shown, an embodiment of the present invention provides an electronic device 800, including:
[0156] A processor 81 and a storage medium 82 storing executable instructions of the processor 81, wherein the storage medium 82 relies on the processor 81 to perform operations through a communication bus 83. When the instructions are executed by the processor 81, the method for determining the interface parameters described in one or more of the above embodiments is executed.
[0157] It should be noted that in actual application, the various components in the vehicle controller 800 are coupled together through the communication bus 73. It is understandable that the communication bus 83 is used to realize the connection and communication between these components. In addition to the data bus, the communication bus 83 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Figure 8 Various buses are labeled as communication buses 83.
[0158] An embodiment of the present invention provides a computer storage medium storing executable instructions. When the executable instructions are executed by one or more processors, the processors execute the method for determining interface parameters as described in one or more of the above embodiments.
[0159] An embodiment of the present invention provides a computer program product, including a computer program or instructions. When the computer program or instructions are executed by a processor, the computer program or instructions implement the steps of the method for determining interface parameters described in one or more embodiments.
[0160] Among them, the computer-readable storage medium can be a magnetic random access memory (FRAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory (Flash Memory), a magnetic surface storage device, an optical disc, or a compact disc read-only memory (CD-ROM) and other memories.
[0161] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of hardware embodiments, software embodiments, or embodiments combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage and optical storage, etc.) containing computer-usable program code.
[0162] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0163] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0164] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0165] The above description is merely a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention.
Claims
1. A method for determining interface parameters, characterized in that: include: Acquire demand information of the motor controller; wherein the demand information is information determined based on the interaction of components associated with the inside and outside of the motor controller; Determining, according to the requirement information, a required interface of the motor controller and a key parameter range of the required interface of the motor controller; According to the optimization principle corresponding to the interface type of the required interface, the key parameter range of the interface under the interface type of the required interface is optimized to obtain the interface parameters of the motor controller.
2. The method according to claim 1, characterized in that The method further comprises: Obtaining a topological diagram of internal and external components of the motor controller; Acquire boundary information of the motor controller from the topological map; wherein the boundary information includes: internal boundary information and external boundary information; the internal boundary information is: internal interaction information and electrical parameters of the motor controller; the external boundary information is: interaction information and electrical parameters between the motor controller and components connected to the motor controller; The boundary information is counted to obtain the demand information of the motor controller.
3. The method according to claim 1, characterized in that: Determining the required interface of the motor controller and the key parameter range of the required interface of the motor controller according to the requirement information includes: Determining a corresponding electrical signal according to the interactive information in the demand information; Determining a required interface of the motor controller according to the electrical signal corresponding to the interaction information; According to the electrical parameters involved in the interactive information in the requirement information, a key parameter range of the required interface of the motor controller is determined.
4. The method according to claim 1, characterized in that: The method further comprises: When the interface type of the required interface is a DC power supply type, determining that the optimization principle corresponding to the interface type of the required interface of the motor controller is a first preset principle; wherein the first preset principle is a principle based on selecting the maximum value in the key parameter range; When the type of the required interface is analog sampling type or communication type, the optimization principle corresponding to the interface type of the required interface of the motor controller is determined to be the second preset principle or the third preset principle; wherein, the second preset principle is a principle based on the maximum number of occurrences in the key parameter range; and the third preset principle is a principle based on the median in the sorted key parameter range.
5. The method according to any one of claims 1 to 4, characterized in that: When the interface type of the required interface is a DC power supply type, the types of key parameters of the interface under the interface type of the required interface of the motor controller include one or more of the following: Voltage range, current range.
6. The method according to any one of claims 1 to 4, characterized in that: When the interface type of the required interface is an analog sampling type, the types of key parameters of the interface under the interface type of the required interface of the motor controller include one or more of the following: Voltage range, filter parameter range, pull-up and pull-down resistor range.
7. The method according to any one of claims 1 to 4, characterized in that: When the interface type of the required interface is communication type, the types of key parameters of the interface under the interface type of the required interface of the motor controller include one or more of the following: Frequency range, voltage range, resistance range.
8. A device for determining interface parameters, characterized in that: include: An acquisition module, used for acquiring demand information of a motor controller; wherein the demand information is information determined based on the interaction between the motor controller and components associated with the motor controller; A determination module, used to determine the required interface of the motor controller and the key parameter range of the required interface of the motor controller according to the requirement information; The optimization module is used to optimize the key parameter range of the interface under the interface type of the required interface according to the optimization principle corresponding to the interface type of the required interface, so as to obtain the interface parameters of the motor controller.
9. An electronic device, characterized in that: include: A processor and a storage medium storing instructions executable by the processor, wherein the storage medium relies on the processor to perform operations through a communication bus, and when the instructions are executed by the processor, the method for determining the interface parameters described in any one of claims 1 to 7 is executed.
10. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the steps of the method for determining interface parameters according to any one of claims 1 to 7 are implemented.
