Method, device and storage medium for generating LTT schematic diagram
By obtaining the configuration parameters of the LTT schematic diagram and the functional module templates in the template database, the LTT schematic diagram is automatically generated, which solves the problem of repeated drawing of functional nodes in ECU design, and improves the drawing efficiency and project development progress.
Patent Information
- Application Number
- CN202210578855.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-25
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2042-05-25
AI Technical Summary
In the automotive industry, there is a problem of repeatedly drawing the same or similar functional nodes in the LTT schematic design of ECU, resulting in inefficient drawing and lack of efficient automation solutions.
By obtaining the configuration parameters of the LTT schematic diagram, determining the functional modules and their number, and extracting the corresponding functional module templates from the template database, and automatically deploying them on the drawing page to generate the LTT schematic diagram, avoiding repeated drawings and manual analysis, and improving drawing efficiency.
It significantly saves drawing time, improves efficiency, simplifies resource allocation and project development progress, and facilitates post-management and maintenance.
Smart Images

Figure CN114972576B_ABST
Abstract
Description
Background Art
[0002] In the automotive industry, ECU (Electronic Control Unit) is one of the most core components of the car. Any small mistake in its design can lead to the destruction of the car and the death of people. Therefore, in the automotive industry, LTT system is generally used to simulate the developed ECU products in real time, so that the ECU can be tested under various conditions, especially under fault and extreme conditions. It can also truly simulate the specific conditions of the entire ECU use cycle and restore the cycle and number of faults in actual use to help developers better improve products.
[0003] Before using LTT to test an ECU (or other devices to be tested), developers are required to design an LTT schematic diagram for the device to be tested. Specifically, for each LTT test project, developers are required to manually redraw the schematic diagram based on the project. However, the inventors of the present application have discovered that there are many identical or similar functional nodes in the LTT schematic diagrams of different test projects. The main difference in the schematic diagrams is the number of functional nodes, and the method of manually redrawing these functional nodes is not efficient. Therefore, there is a need for improvement in the prior art. Summary of the invention
[0004] The embodiments of the present application provide a method, device and storage medium for generating an LTT schematic diagram, which can improve the drawing efficiency of the LTT schematic diagram.
[0005] According to one aspect of the application, a method for generating an LTT schematic diagram of a life cycle tester is proposed, comprising: obtaining configuration parameters of the LTT schematic diagram to be generated; determining, based on the configuration parameters, the functional modules and their quantities included in the LTT schematic diagram to be generated; and, based on the functional modules and their quantities, extracting functional module templates corresponding to the functional modules from a template database, and automatically arranging a corresponding number of functional module templates in at least one drawing page to generate the LTT schematic diagram; wherein the template database includes predefined functional module templates of the functional modules involved in the LTT schematic diagram, and the functional module templates include elements constituting the functional modules and the connection relationship between the elements.
[0006] According to another aspect of the present application, a device for generating an LTT schematic diagram is proposed, comprising: a parameter acquisition unit, configured to acquire configuration parameters of the LTT schematic diagram to be generated; a generation unit, configured to determine, based on the configuration parameters, functional modules and their numbers included in the LTT schematic diagram to be generated; and, based on the functional modules and their numbers, extracting functional module templates corresponding to the functional modules from a template database, and automatically arranging a corresponding number of functional module templates in at least one drawing page to generate the LTT schematic diagram; wherein the template database includes predefined functional module templates of the functional modules involved in the LTT schematic diagram, and the functional module templates include elements constituting the functional modules and the connection relationship between the elements.
[0007] According to another aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored. The computer program includes executable instructions. When the executable instructions are executed by a processor, the method described above is implemented.
[0008] According to another aspect of the present application, an electronic device is provided, comprising a processor and a memory for storing executable instructions of the processor, wherein the processor is configured to execute the executable instructions to implement the method as described above.
[0009] By adopting the method, device and computer storage medium for generating LTT schematic diagrams proposed in the present application, the types and quantities of functional modules included in the LTT schematic diagram can be determined according to the test requirements of the LTT test project and the requirements of various application scenarios and working environments of the equipment to be tested. By extracting the corresponding functional module template from the module database according to the determined functional module, format confusion caused by different draftsmen bringing in personal drawing styles in repeated drawing and manual drawing can be avoided. The functional module template predefines the components and their connection relationships involved in the LTT test project, so that when arranging multiple functional module templates, there is no need to analyze, calculate and configure the components and their connection relationships inside these functional modules again, which significantly saves drawing time and improves drawing efficiency. This automated schematic drawing solution can allocate resources for LTT test projects, speed up project development progress, and facilitate later management and maintenance. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The above and other features and advantages of the present application will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings.
[0011] Figure 1 The schematic flowchart of the method for generating the LTT schematic diagram according to one embodiment of the present application is shown in FIG.
[0012] Figure 2The present invention is an exemplary sheet template for arranging at least a portion of an LTT schematic diagram according to an embodiment of the present application.
[0013] Figure 3 A schematic diagram of generating corresponding functional modules based on a functional module template of an HSD channel involved in an LTT schematic diagram according to an embodiment of the present application.
[0014] Figure 4 It is a schematic diagram of determining a CAN bus communication module included in the LTT schematic diagram according to an embodiment of the present application.
[0015] Figure 5 It is a schematic block diagram of a device for generating an LTT schematic diagram according to an embodiment of the present application.
[0016] Figure 6 It is a schematic block diagram of an electronic device for generating an LTT schematic diagram according to an embodiment of the present application. DETAILED DESCRIPTION
[0017] The exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments can be implemented in a variety of forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided to make the contents of this application comprehensive and complete and to fully convey the concepts of the exemplary embodiments to those skilled in the art. In the drawings, the size of some elements may be exaggerated or deformed for clarity. The same reference numerals in the drawings represent the same or similar structures, and thus their detailed descriptions will be omitted.
[0018] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, elements, etc. can be adopted. In other cases, known structures, methods or operations are not shown or described in detail to avoid blurring the various aspects of the application.
[0019] The scheme for generating the LTT schematic diagram proposed in the embodiment of the present application is used to automatically generate the schematic diagram of the LTT. The generated LTT schematic diagram is used to test the device and product to be tested. This test can not only be used for equipment in the automotive field (such as ECU), but can also be extended to other devices or products, such as test items for software modules, and other application scenarios that require automatic generation of LTT schematic diagrams. The LTT schematic diagram mainly includes various types of functional modules that implement the corresponding functions of the LTT test system. The number of each type of functional modules can be one or more. Each functional module includes specific devices or elements (for example, a device to be tested, a hardware unit or an interface device) and the signal and / or electrical connection relationship between these devices or elements. Each device or element and the signal and / or electrical connection relationship in the LTT schematic diagram are represented by a graphic. According to the embodiment of the present application, the device or element in the functional module can be referred to as a graphic object or element in the LTT schematic diagram to be generated, and the signal and / or electrical connection relationship between the device or element can be referred to as the (graphic) connection relationship between the graphic object or element. There may also be signals and / or electrical connections between the same or different functional modules of the same or different types, between devices or elements in a functional module, and between a functional module and a device or element in another functional module. Unlike the hardware development involving the device under test, the LTT schematic diagram generated by this application is mainly used to present the signal and / or electrical connection relationship between the graphic objects or elements involved in the LTT test project, rather than the layout diagram (layout) of the device under test and the hardware system containing the device under test.
[0020] The term "template" used in this application generally refers to a combination of objects or elements configured based on a predefined standard or format, which can be extracted as a whole and used in the generation of an LTT schematic diagram. For example, a page template can use predefined coordinate axes to provide the placement of various functional modules included in the LTT schematic diagram with a predefined page layout and size. For another example, a functional module template may include the devices or elements in the corresponding functional modules involved in the LTT schematic diagram to be generated for the LTT test project, as well as the internal signals and / or electrical connection relationships between these devices or elements, and even the external signals and / or electrical connection relationships between the devices or elements in the corresponding functional template and other devices or elements outside the functional module, and the functional modules. The functional module template is predefined by the user based on the LTT test system, and the devices or elements included therein and their connection relationships, related parameters and layout meet the predetermined standards, and can be automatically adjusted or modified within a limited range. According to the embodiments of the present application, the signal and / or electrical connection relationship between devices or components is configured in the functional module template, and the functional module template can be used specifically for generating LTT schematic diagrams for LTT test projects, so that when users use the solution of the present application to generate LTT schematic diagrams, they generally do not need to analyze and consider the connection relationship between devices or components inside the functional module again, thereby effectively improving drawing efficiency.
[0021] The embodiment of the present application takes the LTT schematic diagram generation tool written in the Python programming language as an example to introduce a solution for generating an LTT schematic diagram, wherein the schematic diagram is automatically generated and resources are allocated by calling Microsoft's Office Visio software. However, those skilled in the art will understand that the above-mentioned programming language and drawing software are only required for exemplary description and are not used to limit the protection scope of the solution of the present application.
[0022] Combine the following Figure 1 The schematic flow chart of the method for generating an LTT schematic diagram shown in introduces the automatic generation process of the LTT schematic diagram of the present application.
[0023] First, in step S110 , the configuration parameters of the LTT schematic diagram are obtained.
[0024] Taking the application scenario of using the MesSy test system to test ECU equipment in the automotive field as an example, the configuration parameters may include but are not limited to the test project name 110 of the LTT schematic diagram to be generated, the test system version 120, the number of devices under test (DUT) 130, input parameters 140, bus communication parameters 150, output parameters 160, and one or more of the additional device parameters 170.
[0025] The test project name 110 indicates the test project of LTT, and can be used to automatically fill in the name of the schematic diagram when generating the LTT schematic diagram to distinguish it from other LTT test projects. The value range of the project name 110 is a non-empty character string composed of characters and / or numbers.
[0026] The test system version 120 is used to indicate the test system type applicable to the LTT test project. Taking MesSy (Measure System) as an example, the test functions supported by different versions of MesSy and the functional modules included, the configuration (type and quantity) of the equipment and components in the functional modules, and the connection relationship between the equipment or components in the functional modules are generally different, so the generated LTT schematic diagram is also different. MesSy test equipment generally includes three versions, namely MesSy I, MesSy II and MesSy II FD (Flexible Datarate). The value range of the test system version 120 is a combination of system version numbers (such as MesSy I, etc.).
[0027] The number of DUTs 130 represents the number of devices under test that need to be tested in the LTT test project. The output signal in the LTT test project mainly comes from the DUT. According to the resource requirements of the LTT test project, one or more devices under test can be measured simultaneously. According to an embodiment of the present application, the number of DUTs can be characterized by the number of DUTs supported by a load box (Loadbox). The load box is used to place all loads of the device under test DUT in a customized device frame (e.g., a metal frame). The load may include lamps, motors, etc. The load box can be considered as a combination of objects served by the device under test DUT. In addition to all loads of the DUT, the power supply modules of MesSy and CMM (Current Measurement Module, current test module) (e.g., in the form of current cards) can also be placed in the load box. Generally speaking, a load box is used in each LTT test project, and the number of DUTs 130 can be characterized by the number of DUTs supported by a load box in the LTT test project. The number of DUTs can be a numerical value in Arabic numeral format, and its value range can be, for example, an integer from 1 to 6.
[0028] Input parameter 140 can be regarded as the parameters of power input and control quantity / sensor signal input of the LTT test project, which can specifically include power parameters, analog signal input parameters, PWM signal input parameters and / or digital signal input parameters. The power parameters can be, for example, the number of power supplies VBAT and GND. Among them, the number of power supplies VBAT indicates the number of VBAT PIN pins of the LTT test project, and its value is a non-empty Arabic numeral. The number of power supplies GND indicates the number of ground GND PIN pins of the LTT test project, and its value is also a non-empty Arabic numeral. The analog signal input parameter includes the number of channels of analog signal input, and its value is a non-empty Arabic numeral. The PWM signal input parameter includes the number of channels of PWM (Pulse Width Modulation) signal input, and its value is a non-empty Arabic numeral. The digital signal input parameter includes the number of channels of digital signal input, which is specifically divided into the number of high effective channels and the number of low effective channels, and its values are all non-empty Arabic numerals.
[0029] The bus communication parameters 150 are used to configure the bus data communication in the LTT test project, specifically including the number of CAN bus channels 151 related to the Controller Area Network (CAN) bus and the number of LIN bus channels 152 related to the Local Interconnect Network (LIN) bus required by each device under test DUT. Both values are non-empty Arabic numerals.
[0030] The output parameter 160 mainly includes the standard drive signal output from the device under test DUT for serving or driving the load in the load box, for example, the number of high side driver (High Side Driver, HSD) channels and the number of low side driver (LSD Side Driver, LSD) channels. Both values are non-empty Arabic numerals.
[0031] The additional device parameter 170 indicates other devices in the LTT test project that are different from the device under test DUT, the measuring device (e.g., the current test module CMM), and the load (load box), such as the number of antenna channels corresponding to the antenna device and the number of air-conditioning motor channels corresponding to the air-conditioning device. The number of antenna channels indicates the number of low-frequency (LF) antenna channels involved in the LTT test project, and its value is a non-empty Arabic numeral. The number of air-conditioning motor channels indicates the number of channels of the control port of the air-conditioning motor of the LTT project, and its value is a non-empty Arabic numeral.
[0032] According to an embodiment of the present application, the above-mentioned configuration parameters input by the user can be obtained using a graphical user interface (GUI). The GUI tool "can be written in Python programming language to guide the user to enter relevant information of the LTT test project in the corresponding information items. For example, the information items are divided into two parts: basic information and project information. The basic information includes some information of the LTT test project, such as the project name, MesSy version, and the number of DUTs supported by a load box Loadbox. The project information includes other information of the LTT test project, such as the number of power supply VBAT, the number of power supply GND, the number of analog input channels, the number of PWM input channels, the number of digital input channels (high effective), the number of digital input channels (low effective), the number of CAN (bus) channels, the number of LIN (bus) channels, the number of HSD channels, the number of LSD channels, the number of antenna channels and the number of air conditioning motors. After the user enters the parameters corresponding to the information items respectively, the configuration parameters are entered into the tool to complete the acquisition of the configuration data.
[0033] The configuration parameters of the LTT test items entered in the GUI can be pre-set, and these configuration parameters are all related to the device under test and have covered most of the requirements of the expected application scenarios of the LTT test system. According to an embodiment of the present application, a selection list can also be used in the input box of each information item of the GUI, where all LTT test items support and selectable parameter values are displayed in a drop-down or pop-up list for user selection.
[0034] After the user completes the input of configuration parameters, the tool starts generating the LTT schematic in the background.
[0035] In step S120 , the types and quantities of functional modules included in the LTT schematic diagram to be generated are determined based on the acquired configuration parameters to perform a modular drawing operation.
[0036] Step S120 may specifically include a sub-step S121 of verifying the validity of the configuration parameters, and a sub-step S122 of determining one or more functional modules and their quantities included in the LTT schematic diagram based on the verified configuration parameters.
[0037] Sub-step S121 includes sub-step S121a and sub-step S121b for verification. Sub-step S121a obtains configuration parameters from the GUI, and then in sub-step S121b, each configuration parameter is verified to determine whether the obtained parameter falls within its value range. Only when the parameter value falls within the value range, the verification is passed (the judgment result is "yes") and the next operation link (such as sub-step S122) is entered, otherwise it is determined that the obtained configuration parameter is invalid (the judgment result is "no") and returns to sub-step S121a to prompt the user to modify the corresponding configuration parameter and re-obtain the updated data of the configuration parameter. For example, the verification of whether the configuration parameters fall within the value range includes, for different configuration parameters, whether the project name is not empty, whether the MesSy version is correct, whether the DUT quantity is not empty and is between 1 and 6, whether the power supply VBAT quantity is not empty and is an Arabic numeral, whether the power supply GND quantity is not empty and is an Arabic numeral, whether the analog input quantity is not empty and is an Arabic numeral, whether the PWM input quantity is not empty and is an Arabic numeral, whether the digital high valid input quantity is not empty and is an Arabic numeral, whether the digital low valid input quantity is not empty and is an Arabic numeral, whether the CAN channel quantity is not empty and is an Arabic numeral, whether the LIN channel quantity is not empty and is an Arabic numeral, whether the HSD channel quantity is not empty and is an Arabic numeral, whether the LSD channel quantity is not empty and is an Arabic numeral, whether the antenna channel quantity is not empty and is an Arabic numeral, and whether the air conditioning motor channel quantity is not empty and is an Arabic numeral, etc. According to an embodiment of the present application, the sub-step S131 of verifying the validity of the configuration parameters may also be performed at the end of the step S110 of obtaining the configuration parameters of the LTT schematic diagram, to ensure that the configuration parameters based on which the step S130 of determining the functional module is based are valid and legal. In addition, in some embodiments, the operation of verifying the validity of the configuration parameters may also be performed after each parameter is input by the user.
[0038] The LTT schematic diagram can be regarded as a combination of at least one drawing page corresponding to the combination of each type of functional modules in one or more functional modules included in the LTT schematic diagram, wherein the combination of each type of functional modules realizes one or some functions of the LTT test item, or the combination of multiple functional modules of multiple types realizes one or some functions of the LTT test item. The function of a functional module may involve the channel function of one or more channels in each channel for obtaining its configuration data. The above-mentioned channels correspond to a modular graphic combination of various graphic objects or elements (representing the devices or components involved in the channel) that realize the channel function and the connection relationship between these graphic objects in the LTT schematic diagram. Therefore, one or more drawing pages of the LTT schematic diagram corresponding to the functional module may correspond to a modular graphic combination of various graphic objects or elements that realize the function of the channel involved and the connection relationship between these graphic objects.
[0039] The principle diagram of the LTT test project is generated by determining the functional modules and their numbers included in the LTT test project to implement various functions and at least one corresponding drawing page of the LTT principle diagram corresponding to these functional modules or functional module combinations. The LTT principle diagram to be generated for the LTT test project mainly includes the following functional modules:
[0040] Test system (e.g. MesSy) power supply module. MesSy is a system platform for LTT testing, which is used to provide basic functions of signal output or signal detection. Each functional module in the schematic diagram determined by the configuration parameters input / selected by the user and the graphic objects or elements in the channel are built on MesSy to generate the schematic diagram of the LTT test project.
[0041] The current test module CMM may include the current test module CMM and a CMM power supply module for supplying power to the CMM. The CMM power supply module is a necessary internal module of the MesSy and needs to occupy the resources of the CAN bus channel of the MesSy.
[0042] The serial control (SC) card power supply module includes CAN bus and LIN bus transceivers, which are used to expand CAN bus channels and LIN bus channels. It can also be called an SC expansion card. According to the requirements of the LTT test project, the SC card power supply module can further include a general SC card power supply module and a dedicated SC card power supply module. The dedicated SC card power supply module is developed and customized by the user, and can realize more complex or more convenient functions beyond the CAN bus and LIN bus transceivers, such as relay-based bus control.
[0043] The load layout module is used to realize the interface connection between the device under test and the load of the load box, such as the load box front panel layout module.
[0044] The power supply module of the device under test (DUT) includes the device under test (DUT) and power supply equipment and modules associated with the DUT.
[0045] The CAN bus communication module comprises a CAN bus transceiver connected to a test system (eg MesSy) module and / or an SC card power supply module and corresponding devices or modules requiring the CAN bus.
[0046] The LIN bus communication module comprises a LIN bus transceiver connected to a test system (eg MesSy) module and / or an SC card power supply module and corresponding devices or modules requiring the LIN bus.
[0047] In the embodiment of the present application, the CAN bus communication module and the LIN bus communication module that do not include the SC expansion card can be respectively referred to as a conventional CAN bus communication module and a LIN bus communication module. When the SC expansion card is required to expand the number of CAN bus channels and / or LIN bus channels of the LTT test item, the CAN bus communication module and the LIN bus communication module will include at least one SC expansion card, so they can be respectively referred to as an extended CAN bus communication module and a LIN bus communication module.
[0048] Analog signal input module corresponds to a device or module related to the functions of the analog signal input channel.
[0049] Digital signal input module, corresponding to the functionally related device or module of the digital signal input channel (including high-effective and low-effective channels).
[0050] The PWM signal input module corresponds to a device or module related to the functions of the PWM signal input channel.
[0051] The high-level side HSD output module and the low-level side LSD output module correspond to functionally related devices or modules of the high-level side HSD channel and the low-level side LSD driving channel, respectively.
[0052] The antenna module and the air conditioning motor module are devices or modules corresponding to the additional device functions of the antenna device channel and the air conditioning motor control port channel respectively.
[0053] Among these functional modules, the most important one is to generate the corresponding LTT schematic diagram page of the functional modules associated with the bus channel functions including the CAN bus channel and the LIN bus channel, because the detection data of the LTT test items of the device under test mainly comes from the signals transmitted on the CAN bus and the LIN bus channels.
[0054] The following is a special introduction to the details of determining the CAN bus communication module and the LIN bus communication module and their number in sub-step S122. This process part mainly includes sub-step S122a for determining the number constraint of bus channels including CAN bus channels and / or LIN bus channels and sub-step S122b for determining the CAN bus communication module and / or LIN bus communication module and their number.
[0055] Sub-step S122a is used to determine the above-mentioned quantity constraint based on the number of bus channels including the number of CAN bus channels and the number of LIN bus channels required by the device under test DUT of the LTT test project, the number of bus channels including the number of CAN bus channels and the number of LIN bus channels required by the current test module CMM of the LTT test project, and the number of bus channels including the number of CAN bus channels and the number of LIN bus channels that the test system can provide. The bus channels required by the CMM can also be referred to as the bus channels to be occupied by the test system. The bus channels that the test system can provide can also be referred to as the bus channels (maximum) supported by the test system. Among them, the number of CAN bus channels and the number of LIN bus channels required by the DUT are respectively calculated by multiplying the number of CAN bus channels and the number of LIN bus channels required by each DUT indicated by the number of CAN bus channels 151 and the number of LIN bus channels 152 by the number of DUTs. In the case where the input number of DUTs is characterized by the number of DUTs supported by each load box, the number of CAN bus channels and the number of LIN bus channels required by the DUT are calculated by multiplying the number of CAN / LIN bus channels required by each DUT by the number of DUTs supported by the load box. The number of CAN and LIN bus channels required by the CMM and the number of CAN and LIN bus channels that the test system can provide are determined based on the test system version 120.
[0056] The above-mentioned bus channel quantity constraint in the LTT schematic diagram needs to meet the test requirements of the LTT test project, that is, the number of CAN bus channels and the number of LIN bus channels provided by the test system MesSy and external expansions such as SC cards should be equal to or greater than the number of CAN bus channels and the number of LIN bus channels required by the device under test DUT and the current test module CMM of MesSy, so that there are sufficient bus resources to transmit test data.
[0057] Specifically, according to the obtained version information of MesSy, the number of DUTs supported by a load box, and the number of CAN bus channels and the number of LIN bus channels required for each DUT, the number of CAN bus channels and LIN bus channels required in the LTT test project is determined, thereby determining the number of SC cards required to be used. The SC card includes a CAN transceiver and a LIN transceiver for expanding the CAN bus channels and the LIN bus channels, and can be used in conjunction with MesSy to supplement the corresponding number of CAN and LIN bus channels when the number of CAN and LIN bus channels supported by MesSy itself is insufficient to support the total number of bus channels required by the DUTs in the LTT test project and the CMM in MesSy.
[0058] On the basis of determining the above quantity constraint, in sub-step S122b, the number of CAN bus channels and the number of LIN bus channels required in the entire LTT schematic diagram can be determined at least based on the quantity constraint through the above calculation, and the number of SC cards used to provide the required external expansion CAN bus channels and LIN bus channels can be further determined. Then, the SC card power supply modules and their number (assuming that the SC card power supply modules are predefined for a single SC card), the type of CAN bus communication module (conventional or extended) and / or the type of LIN bus communication module (conventional or extended) and the corresponding number of modules included in the LTT schematic diagram to be generated are determined.
[0059] The following uses several examples to illustrate the principle of determining the quantity constraints of the CAN bus channels and LIN bus channels of the LTT schematic diagram and determining the quantity configuration of the bus channels and the quantity configuration of the SC cards required in the LTT test project based on the quantity constraints.
[0060] In the first example, based on the acquired configuration parameters, a loadbox of the LTT test project supports 1 device under test DUT and each DUT requires 8 CAN bus channels and 9 LIN bus channels.
[0061] MesSy of MesSy I or MesSy II version provides basic communication resources of up to 5 on-chip CAN transceivers, 5 on-chip CAN transceivers and 25 serial communication interfaces, that is, the number of CAN bus channels that MesSy I or MesSy II version can provide is 5. Each MesSy of MesSy II FD version provides up to 10 on-chip CAN FD transceivers and 25 serial communication interfaces, that is, the number of CAN bus channels that MesSy II FD version can provide is 10. MesSy itself does not provide on-chip transceivers for LIN bus channels.
[0062] If MesSy I or MesSy II version of MesSy is used, since one CAN bus channel is required to read the data of the current test module in the MesSy system, MesSy itself can only provide 4 CAN bus channels to the DUT, so it is necessary to provide 4 additional CAN bus channels outside MesSy for expansion. In addition, the 9 LIN bus channels required by the DUT also need to be expanded using the LIN bus channels outside MesSy. According to the above quantity constraints, the number of CAN bus channels and LIN bus channels provided by the MesSy system itself and the external SC card should meet the number of CAN bus channels and LIN bus channels required by the DUT and CMM, that is, the total number of CAN bus channels provided should be greater than or equal to 9, and the number of LIN bus channels should be greater than or equal to 9. By subtracting the number of CAN bus channels provided by MesSy itself, the number of externally expanded CAN bus channels provided by the external SC card should be greater than or equal to 9-5=4, and the number of LIN bus channels should be greater than or equal to 9. According to an embodiment of the present application, an SC card can support up to 5 CAN bus channels and 15 LIN bus channels, so an SC card has satisfied the CAN and LIN bus channel resources calculated above. Therefore, an SC card for external expansion of CAN and LIN bus channels can be added. Accordingly, in the LTT schematic diagram, in addition to the drawing pages corresponding to the test system (MesSy) power supply module, CMM module, DUT power supply module, etc., there are also drawing pages corresponding to the SC card power supply module and the conventional CAN bus communication module (excluding the SC card), including the extended CAN bus communication module and the extended LIN bus communication module of an SC card.
[0063] If the MesSy II FD version of MesSy is used, since the 10 CAN bus channels supported by MesSy itself have met the CAN bus channel resources required by both DUT and CMM, there is no need to expand the CAN bus channels externally, but only the 9 LIN bus channels required by DUT need to be expanded. After calculation, one SC card can still be used to provide LIN bus channels. Accordingly, in the LTT schematic diagram, in addition to the drawing pages corresponding to the test system (MesSy) power supply module, CMM module, and DUT power supply module, the drawing pages corresponding to the SC card power supply module and the drawing pages corresponding to the conventional CAN bus communication module and the extended LIN bus communication module including an SC card are also required.
[0064] In the second example, based on the acquired configuration parameters, a load box Loadbox of the LTT test project supports simultaneous testing of three devices under test DUTs and each DUT requires three CAN bus channels and four LIN bus channels.
[0065] The DUT in the LTT test project requires a total of 3*3=9 CAN bus channels and 4*3=12 LIN bus channels. If MesSy I or MesSy II version of MesSy is used, since the CMM inside MesSy needs to occupy a total of 3 CAN bus channels (each CMM occupies 1, and 3 CMMs are required to test 3 DUTs), the MesSy needs to be expanded externally by at least 9+3-5=7 CAN bus channels and at least 12 LIN bus channels. One SC card supports the expansion of 5 CAN bus channels and 15 LIN bus channels at most, so 2 SC cards are required to expand the CAN bus channels (at this time, one SC card is sufficient to meet the expansion requirements of the LIN bus channels). Accordingly, in the LTT schematic diagram, in addition to the drawing pages corresponding to the test system (MesSy) power supply module, CMM module, DUT power supply module, etc., there are also drawing pages corresponding to the two SC card power supply modules and drawing pages corresponding to the conventional CAN bus communication module, the extended CAN bus communication module including two SC cards, and the extended LIN bus communication module including one SC card. If the MesSy II FD version of MesSy is used, the CAN bus channels occupied by the CMM are removed from the MesSy, and the number of CAN bus channels available for external use in MesSy is 10-3=7. Compared with the total number of CAN bus channels required by the DUT, which is only 2 less than the total number of 9, only one SC card needs to be externally extended in the LTT schematic diagram to meet the quantity constraint. Accordingly, in the LTT schematic diagram, in addition to the drawing pages corresponding to the test system (MesSy) power supply module, CMM module, and DUT power supply module, there are also drawing pages corresponding to one SC card power supply module, as well as drawing pages corresponding to the conventional CAN bus communication module, the extended CAN bus communication module including one SC card, and the extended LIN bus communication module including one SC card.
[0066] In the process of determining the number of bus channels required in the LTT test project and the number of SC cards required, the DUT and CMM are mainly connected to the CAN bus through MesSy and SC cards, and the DUT is connected to the LIN bus through the SC card. Under the premise that the number of bus channels meets the requirements, the specific bus channels connected to the DUT and CMM can be freely allocated. Since the SC card is only used for the expansion of CAN and LIN bus channel communication, the channels such as HSD, LSD, antenna and air conditioner are used as the output channels from the DUT to the simulated load (such as resistance or motor) in the load box and the related calculations of the input channels from the DUT to the DUT, and the number constraints of the CAN and LIN bus channels are not considered.
[0067] Compared to determining the configuration of the SC card power supply module for providing the number of external extended CAN bus channels and the number of LIN bus channels required for the LTT test item and the configuration of the corresponding conventional or extended CAN bus communication module and / or conventional or extended LIN bus communication module through sub-steps S122a and S122b included in sub-step S122, the determination of the type and quantity of other functional modules can be more easily accomplished through the configuration parameters of the LTT schematic diagram obtained in step S110.
[0068] After determining the various types of functional modules and their quantities included in the LTT schematic diagram to be generated in step S120, the method extracts functional module templates corresponding to each functional module from the template database based on these functional modules and their quantities in step S130, and then automatically arranges the corresponding number of functional module templates in at least one drawing page to complete the automatic generation of the LTT schematic diagram.
[0069] Step S130 may include a sub-step S131 of generating a drawing page template, a sub-step S132 of extracting a corresponding functional module template from the template database 190, a sub-step S133 of arranging the functional module template on the drawing page, and an optional sub-step S134 of expanding the drawing page when the existing drawing page is insufficient to arrange all the corresponding number of functional module templates.
[0070] Sub-step S131 first generates a page template. Figure 2A drawing page template according to an embodiment of the present application is shown. The drawing page template can be, for example, in the form of a drawing page template in Microsoft's Office Visio software, and its configuration parameters include format information such as the size, orientation, and coordinate origin of the drawing page template. For example, the drawing page template is fixed to use A3 paper and is placed horizontally. Then, the coordinate axis information is set in the drawing page template. Among them, the upper left corner is the origin A(0,0)201, the horizontal right direction is the x-axis, and the vertical downward direction is the y-axis. The placement positions of all functional modules in the LTT schematic diagram that needs to be generated are positioned according to the position coordinates on the coordinate axis.
[0071] The graphic models of the graphic objects or elements of the devices or components involved in the LTT schematic diagram or each functional module therein, and / or the collection of devices or components included in the functional modules and / or channels, the signal and / or electrical connection relationship between these devices or components, and other related drawing setting parameters can be pre-defined and stored in the corresponding database. The database may include a graphic model database storing graphic objects or elements corresponding to the devices or components, a template database 190 storing functional module templates corresponding to the functional modules, etc. According to an embodiment of the present application, the template database 190 includes pre-defined functional module templates of various types of functional modules that may be involved in the LTT schematic diagram to be generated. The functional module template includes not only the combination of devices or components included in the functional module, but also the connection relationship between these devices or components, the connection relationship between these functional modules and the outside of the module, and related drawing setting parameters, such as the size, shape, etc. of the functional module template. Among them, the drawing setting parameters include the graphic model style and format of the graphic objects or elements of various devices or components, such as the style and format of the graphic model of the connection relationship represented by the form of a connection line, etc., the spatial relationship (such as relative or absolute position) of the placement of various graphic models, and the symbol marks related to these graphic models, etc. The function module templates related to the generation of the LTT schematic diagram are pre-defined based on the drawing standards and principles of the LTT schematic diagram, and need to comply with the design specifications of the LTT test system and be dedicated to the schematic diagram drawing of the LTT test project. As described above, the function module may relate to the channel function of one or more channels in the LTT test project, so the function module template may be composed of the channel templates of one or more channels. According to an embodiment, the function module may be set to implement the function of a channel, so that in the following description, the function module template of the function module corresponding to a single channel is used as an example to illustrate the details of automatically arranging a corresponding number of multiple function module templates in at least one drawing page.
[0072] The template database 190 can be stored in a library file in the form of a Visio template. The template database 190 can also include graphic models of graphic objects or elements of all devices and components that may be used in the LTT test project and templates of graphic models of connection relationships. The template database 190 can also store the configuration parameter list displayed in the GUI for obtaining configuration parameters in step S110 and / or the drawing page template generated in sub-step S131. The file storing the template database 190 can be located in the same directory as the GUI tool for generating the LTT schematic diagram. According to an embodiment of the present application, the template database 190 can only store the function module template database corresponding to the function module, the graphic models of the devices and components included in the function module and the templates of the graphic models of the connection relationships, and / or the drawing page templates are stored using other template files or library files.
[0073] After determining the drawing page template, the method of the present application extracts the determined or preset drawing page template in sub-step S132, and extracts the functional module templates corresponding to the various types of determined functional modules from the template database 190 so as to automatically arrange these functional module templates in the next sub-step S133.
[0074] like Figure 2 As shown, function module templates 210 to 230 corresponding to three function modules of the same type are arranged on the drawing page template. Function module templates 210, 220 and 230 can be completely the same or there are differences. According to an embodiment of the present application, not only can the corresponding function module templates of the same function module be arranged on the corresponding one or more drawing pages, but also the corresponding function module templates of different function modules of the same type can be arranged on the corresponding one or more drawing pages, and even the corresponding function module template pages of multiple function modules of the same or different types related to one or some functions of the LTT test item can be arranged on the corresponding one or more drawing pages. These corresponding drawing pages can be marked with function modules, such as CAN bus communication module drawing page, HSD output module drawing page, etc.
[0075] The following example takes the arrangement of the function module templates corresponding to the function modules related to the channel (function) on the corresponding one or more drawing pages. The upper left corner coordinates of the function module template can be used as a reference point and placed at the position where the coordinates of the drawing page template are (1,1) to complete the arrangement of a function module template 210 on the drawing page. If the function modules that can be arranged together on the drawing page also include 220 and 230, that is, there are 3 function modules of this type, then the corresponding function module templates 210 to 230 of the three function modules can be arranged side by side on the drawing page. Assuming that the function module templates 210 to 230 are rectangles with a length of 10 coordinate units and a width of 2 coordinate units, the upper left corner coordinate reference points of the function module templates 210 to 230 arranged horizontally side by side and extending to the right on the drawing page are (1,1), (1,4) and (1,7) respectively.
[0076] Figure 3 Then, the sub-step S133 of arranging the corresponding number of function module templates for multiple function modules on the drawing page is introduced by taking the HSD output module template of the HSD output module corresponding to the high-level side HSD channel as an example. The function template template of the HSD channel can be extracted from the template database 190, as shown in 301. According to the configuration parameters obtained in step S110, the number of HSD channels is 5, and the number of HSD output modules in the LTT schematic diagram to be generated is 5 (each HSD output module corresponds to the function of one HSD channel). Therefore, 5 predefined HSD output module templates can be extracted from the template database 190 and combined into a template arrangement as shown in 302 and placed on the drawing page. Figure 3 The five HSD output module templates shown in the figure are the same. According to the requirements of the LTT test project, if the multiple HSD output modules in the LTT schematic diagram are different, the corresponding predefined HSD output module templates can be extracted from the template database 190 and combined for arrangement in the drawing page.
[0077] For example, according to the requirements of the LTT test project, corresponding conventional CAN bus communication module templates and extended CAN bus communication module templates of a corresponding number of conventional CAN bus communication modules and extended CAN bus communication modules (for example, each extended CAN bus communication module template includes an SC card) can be extracted from the template database 190, and these related CAN bus communication module templates are combined together and arranged in the drawing page. Figure 4As shown, the LTT schematic diagram of the LTT test project includes two CAN bus communication modules, namely a conventional CAN bus communication module (the number is 1) and an extended CAN bus communication module (the number is 1). The conventional CAN bus communication module template 410 extracted from the template database 190 includes CAN interfaces 411 and 412 directly connected to the CAN bus, and the extracted extended CAN bus communication module template 420 includes CAN interfaces 411 and 412 indirectly connected to the CAN bus via an SC card 423 for extending the CAN bus channel. On the drawing page related to the CAN bus communication module, the CAN bus communication module templates 410 and 420 can be Figure 4 The methods shown are combined and arranged side by side.
[0078] Similarly, for other functional modules, such as MesSy power supply module, SC card power supply module, LAN bus communication template, etc., the corresponding functional module templates can also be extracted from the template database 190, and the corresponding number of functional module templates can be combined or otherwise arranged in one or more corresponding drawing pages according to the number of functional modules determined or calculated according to the requirements of the LTT test project.
[0079] Optional sub-step S134 is used for situations where multiple related functional module templates cannot be arranged on the corresponding one or more existing drawing pages. Still taking the HSD output module as an example, if the input configuration parameters indicate that the LTT test item includes multiple HSD channels, it is necessary to further determine whether it is necessary to expand the existing drawing page with the drawing page template in sub-step S134 to accommodate more HSD output module templates (each HSD output module corresponds to the function of one HSD channel). For example, according to the definition when generating the drawing page template in step S131, a drawing page template can accommodate at most 8 HSD channels (i.e., 8 HSD output module templates). Then, based on the number of HSD channels input by the user, it is determined whether it is necessary to expand the initial single drawing page template into a drawing page composed of two or more continuous drawing page templates, that is, based on the drawing page template, the original drawing page including at least one drawing page template is expanded to a drawing page including two or more (continuous) drawing page templates to arrange these HSD channels. For example, when the number of HSD channels is 10, the HSD output module templates corresponding to the 9th and 10th HSD channels (HSD output modules) that exceed the upper limit of 8 need to be arranged by creating an extended page template based on the existing page template. Figure 2 The diagram page template can be expanded horizontally as shown by arrow 202. When the number of channels included in other functional modules (such as input channels, LSD channels, antenna channels, and air conditioning motor channels) exceeds the upper limit of the number that can be accommodated by the diagram page template, a similar method can be used to implement the arrangement of the functional module template and the expansion of the corresponding diagram page.
[0080] In the process of generating the LTT schematic diagram, a schematic diagram page corresponding to each or each type of functional module is generated. For example, the power supply module and the CAN bus communication module are drawn on different pages. The reason for this split-page drawing method is that it is impossible to arrange the graphic objects or elements corresponding to all the devices or components in the functional module template corresponding to so many functional modules and the graphic connection relationship between them on the same page, so split-page drawing can facilitate the viewing of the schematic diagram.
[0081] After obtaining the drawing pages corresponding to all functional modules, these drawing pages are combined to finally obtain the LTT schematic diagram.
[0082] After the generation of the LTT schematic diagram is automatically completed, the schematic diagram can be manually adjusted in an optional step S140. The manual adjustment may include receiving a modification instruction from a user, and modifying the LTT schematic diagram according to the modification instruction to generate an updated LTT schematic diagram. The manual adjustment includes further allocation of resources in the LTT test project, such as the setting of specific DUT pins and load resistance values. The manual adjustment may also include checking whether there are errors in the generated LTT schematic diagram and correcting operations when errors exist.
[0083] Furthermore, in the optional step S150, the generated LTT schematic diagram can be stored in a file for reference in subsequent use. The schematic diagram file can be in the form of a Visio template, for example, and stored in the same directory as the GUI tool for generating the LTT schematic diagram.
[0084] By adopting the method for generating LTT schematic diagram proposed in the present application, the types and quantities of functional modules included in the LTT schematic diagram can be determined according to the test requirements of the LTT test project and the requirements of various application scenarios and working environments of the device to be tested. According to the determined functional modules, the corresponding functional module templates are extracted from the module database, which can avoid the format confusion caused by different draftsmen bringing in personal drawing styles in repeated drawing and manual drawing. The components and their connection relationships involved in the LTT test project are predefined in the functional module template, so that when arranging multiple functional module templates, there is no need to analyze, calculate and configure the components and their connection relationships inside these functional modules again, which significantly saves drawing time and improves drawing efficiency. This automated schematic drawing scheme can allocate resources for LTT test projects, speed up project development progress, and facilitate later management and maintenance. For example, the generation operation of the automated schematic diagram can complete most of the work that requires manual drawing (such as 70% of the workload corresponding to the drawing process).
[0085] Figure 5The exemplary structure of a device 500 for generating an LTT schematic diagram according to an embodiment of the present application is shown. The device 500 includes a parameter acquisition unit 510 for acquiring configuration parameters of the LTT schematic diagram and a generation unit 520 for determining, according to the configuration parameters, the function modules and their numbers included in the LTT schematic diagram to be generated, extracting function module templates corresponding to the function modules from a template database according to the function modules and their numbers, and automatically arranging a corresponding number of function templates in at least one diagram page to generate the LTT schematic diagram. The parameter acquisition unit 510 can also perform the following steps: Figure 1 The further details of step S110 described above are shown, and the generating unit 520 completes the following steps: Figure 1 The further details of at least one of the steps S120 to S150 are shown in FIG. The parts that are the same or similar to the above will not be described in detail.
[0086] It should be noted that although several modules or units of the method and system for generating the LTT schematic diagram are mentioned in the above detailed description, this division is not mandatory. In fact, according to the implementation mode of the present application, the features and functions of two or more modules or units described above can be concretized in one module or unit. Conversely, the features and functions of a module or unit described above can be further divided into multiple modules or units for concretization. The components displayed as modules or units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present application scheme. Those of ordinary skill in the art can understand and implement it without paying creative labor.
[0087] In an exemplary embodiment of the present application, a computer-readable storage medium is further provided, on which a computer program is stored, the program including executable instructions, which can implement the steps of the method for generating an LTT schematic diagram described in any of the above embodiments when the executable instructions are executed by, for example, a processor. In some possible implementations, various aspects of the present application can also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to perform the steps described in the method for generating an LTT schematic diagram of this specification according to various exemplary embodiments of the present application.
[0088] The program product for implementing the above method according to the embodiment of the present application can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present application is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.
[0089] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0090] The computer readable storage medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by an instruction execution system, an apparatus, or a device or used in combination with it. The program code contained on the readable storage medium may be transmitted with any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.
[0091] Program code for performing the operations of the present application may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).
[0092] In an exemplary embodiment of the present application, an electronic device is further provided, which may include a processor and a memory for storing executable instructions of the processor, wherein the processor is configured to execute the steps of the method for generating an LTT schematic diagram in any of the above embodiments by executing the executable instructions.
[0093] Those skilled in the art will appreciate that various aspects of the present application may be implemented as a system, method or program product. Therefore, various aspects of the present application may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to as "circuit", "module" or "system" herein.
[0094] Refer to the following Figure 6 The electronic device 600 according to this embodiment of the present application is described. Figure 6 The electronic device 600 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0095] like Figure 6 As shown, the electronic device 600 is in the form of a general computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 connecting different system components (including the storage unit 620 and the processing unit 610), a display unit 640, etc.
[0096] The storage unit stores a program code, which can be executed by the processing unit 610, so that the processing unit 610 performs the steps of various exemplary embodiments of the present application described in the method for generating an LTT schematic diagram in this specification. For example, the processing unit 610 can perform the following steps: Figure 1 Follow the steps shown in .
[0097] The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 6201 and / or a cache memory unit 6202 , and may further include a read-only memory unit (ROM) 6203 .
[0098] The storage unit 620 may also include a program / utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include the implementation of a network environment.
[0099] Bus 630 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0100] The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 600, and / or communicate with any device that enables the electronic device 600 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 650. Furthermore, the electronic device 600 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 via a bus 630. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0101] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, or a network device, etc.) to execute the method for generating an LTT schematic diagram according to the implementation of the present application.
[0102] Those skilled in the art will readily appreciate other embodiments of the present application after considering the description and practicing the contents disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The description and embodiments are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the appended claims.
Claims
1. A method for generating a life cycle tester LTT schematic diagram, comprising: Obtaining configuration parameters of the LTT schematic diagram to be generated; Determine, according to the configuration parameters, the functional modules and the number thereof included in the LTT schematic diagram to be generated; as well as According to the functional modules and their quantity, extracting functional module templates corresponding to the functional modules from a template database, and automatically arranging a corresponding number of the functional module templates in at least one drawing page to generate the LTT schematic diagram; The template database includes predefined function module templates of the function modules involved in the LTT schematic diagram, and the function module templates include the elements constituting the function modules and the connection relationship between the elements; The configuration parameters include: the test system version, the number of devices to be tested, and the number of bus channels. The functional modules include: a bus communication module with an SC card and a bus communication module without an SC card; Determining, according to the configuration parameters, the functional modules and the number thereof included in the LTT schematic diagram to be generated further comprises: Determine the number constraint of bus channels according to the configuration parameters; According to the quantity constraint, determining the number of bus communication modules without SC cards and the number of bus communication modules with SC cards; The quantity constraints include: the total number of bus channels required determined by the number of devices under test and the number of bus channels, the number of bus channels to be occupied by the test system determined by the test system version, and the maximum number of bus channels supported by the test system determined by the test system version.
2. The method according to claim 1, characterized in that: The configuration parameters include at least one of the following: Test system version, number of devices under test, power supply parameters, analog signal input parameters, PWM signal input parameters, digital signal input parameters, number of CAN bus channels, number of LIN bus channels, number of high-level side driver channels, number of low-level side driver channels, number of antenna channels, and number of air conditioning motor channels.
3. The method according to claim 1, characterized in that The functional module includes at least one of the following: Test system power supply module, current test module CMM, serial control SC card power supply module, load layout module, device under test DUT power supply module, CAN communication module, LIN communication module, analog signal input module, digital signal input module, PWM signal input module, high level side output module, low level side output module, antenna module and air conditioning motor module.
4. The method according to claim 1, characterized in that: The automatically arranging a corresponding number of the functional module templates in at least one drawing page further comprises: Extract the preset page template; A corresponding number of the function module templates are automatically arranged on the drawing page template, and when the arrangement cannot be completed on a single drawing page template, the drawing page template is expanded to complete the arrangement of the corresponding number of the function module templates.
5. The method according to claim 1, characterized in that Also includes: After the LTT schematic diagram is generated, a modification instruction from a user is received, and the LTT schematic diagram is modified according to the modification instruction to generate an updated LTT schematic diagram.
6. A device for generating a LTT schematic diagram, comprising: A parameter acquisition unit, configured to acquire configuration parameters of the schematic diagram to be generated; A generating unit, configured to determine the functional modules and the number thereof included in the LTT schematic diagram to be generated according to the configuration parameters; and according to the functional modules and their quantity, extracting functional module templates corresponding to the functional modules from a template database, and automatically arranging a corresponding number of the functional module templates in at least one drawing page to generate the LTT schematic diagram; The template database includes predefined function module templates of the function modules involved in the LTT schematic diagram, and the function module templates include the elements constituting the function modules and the connection relationship between the elements; The configuration parameters include: the test system version, the number of devices to be tested, and the number of bus channels. The functional modules include: a bus communication module with an SC card and a bus communication module without an SC card; Determining, according to the configuration parameters, the functional modules and the number thereof included in the LTT schematic diagram to be generated further comprises: Determine the number constraint of bus channels according to the configuration parameters; According to the quantity constraint, determining the number of bus communication modules without SC cards and the number of bus communication modules with SC cards; The quantity constraints include: the total number of bus channels required determined by the number of devices under test and the number of bus channels, the number of bus channels to be occupied by the test system determined by the test system version, and the maximum number of bus channels supported by the test system determined by the test system version.
7. A computer-readable storage medium having a computer program stored thereon, the computer program comprising executable instructions, and when the executable instructions are executed by a processor, the method according to any one of claims 1 to 5 is implemented.
8. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to execute the executable instructions to implement the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
PCB automatic wiring system and method
CN110610052A
Automatic drawing system for hardware drawings of safety-level electrical cabinet of nuclear power plant
CN113947644A
