Configuration method of actuator identification code based on LIN communication and vehicle controller
By automatically configuring the identification code of the actuator using automatic addressing instructions and configuration instructions in the LIN network structure, the installation complexity problem caused by manual marking errors in the existing technology is solved, and more efficient and accurate actuator installation is achieved.
Patent Information
- Application Number
- CN202210762422.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-29
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-06-29
AI Technical Summary
In the existing technology, the configuration of the actuator's diagnostic address (NAD) and frame ID relies on manual marking, which is error-prone and difficult to install, resulting in a complicated installation process.
Send automatic addressing instructions through the LIN bus pin to obtain and configure the identification code of the actuator. Use automatic addressing instructions and configuration instructions to determine the distance relationship between the actuator and the controller, realize automatic configuration of identification codes, and reduce installation difficulty.
It greatly reduces the difficulty of installing the actuator, avoids manual marking errors, and improves configuration efficiency and accuracy.
Smart Images

Figure CN117354281B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and more specifically, to a configuration method of an actuator identification code based on LIN communication, a vehicle controller, and a computer-readable storage medium. Background Art
[0002] In recent years, LIN (Local Interconnect Network) communication has become a potential medium for communication between controllers and actuators. LIN communication is a serial bus for distributed applications in the automotive industry. It is based on the Universal Asynchronous Receiver / Transmitter (UART) / Serial Communication Interface (SCI), and is targeted at low-end communication between vehicle body network nodes. It is often connected to the upper CAN (Controller Area Network) network to form a CAN-LIN gateway node.
[0003] The LIN network structure adopts a one-master-multiple-slave topology. Figure 1 As shown, the controller acts as the host node and multiple actuators act as slave nodes. The power pin of each actuator is connected in parallel with the power pin of the controller, and the ground pin of each actuator is connected in parallel with the ground pin of the controller. The LIN bus pin on the controller is connected to the LIN IN pin of the actuator closest to it through a physical wiring harness, and the LIN OUT pin of the actuator closest to the controller is connected to the LIN IN pin of the adjacent actuator, and so on, forming a topology of one master and multiple slaves in a serial link. Among them, Figure 1 In the figure, multiple actuators are shown as an example, namely actuator 1, actuator 2, ..., actuator N-1 and actuator N.
[0004] When using the above Figure 1When using the LIN network structure shown in the figure, each actuator needs to be configured with a distinguishable diagnostic address (English abbreviation: NAD; English full name: Node Address for Diagnose) and a frame ID (English full name: Identity document; Chinese full name: Identity code). The NAD and frame ID of the actuator are usually configured by the supplier during the actuator production process. Distinguishing actuators with different diagnostic addresses and frame IDs mainly depends on the actuator supplier using different manual markings such as paint pens before leaving the factory. It is very easy to make mistakes in the manual marking process, and the manual marking is easy to fall off. Furthermore, it is also easy for installers to make installation errors when installing the actuator based on the manual marking. This means that the existing method of configuring the NAD and frame ID of the actuator greatly increases the difficulty of installing the actuator. Summary of the invention
[0005] One object of the present application is to provide a new technical solution for configuring an actuator identification code based on LIN communication.
[0006] According to a first aspect of the present application, a method for configuring an actuator identification code based on LIN communication is provided, the method being applied to a controller in a LIN network structure, the method comprising:
[0007] Sending an automatic addressing instruction via a LIN bus pin, wherein the automatic addressing instruction is used to instruct an actuator in the LIN network structure to determine a distance relationship between itself and the controller;
[0008] Acquire a first identification code of each of the actuators in the LIN network structure;
[0009] A first configuration instruction is sent to each of the actuators via the LIN bus pin, wherein the first configuration instruction includes a first identification code and an identification of the distance relationship between the configured actuator and the controller.
[0010] Optionally, after sending the first configuration instruction to each of the actuators through the LIN bus pin, the method further includes:
[0011] Acquire a second identification code of each of the actuators in the LIN network structure;
[0012] A second configuration instruction is sent to each of the actuators via the LIN bus pin, wherein the second configuration instruction includes a first identification code corresponding to the actuator and a corresponding second identification code.
[0013] Optionally, the first identification code or the second identification code includes a status frame ID, and the method further includes:
[0014] For any of the actuators, performing a detection operation;
[0015] The detection operation includes: sending a status frame ID feedback instruction through the LIN bus pin; determining that the status frame ID configuration of the actuator is successful when receiving the response information sent by the actuator; and determining that the status frame ID configuration of the actuator fails when not receiving the response information sent by the actuator;
[0016] In the case of determining that the state frame ID configuration of the actuator fails, repeatedly performing the detection operation a first preset number of times at a set time interval;
[0017] When it is still determined that the status frame ID configuration of the actuator fails after the detection operation is repeatedly performed a first preset number of times, it is confirmed for the first time that the status frame ID configuration of the actuator fails.
[0018] Optionally, the method further includes:
[0019] For an actuator for which the ID configuration of the first confirmation status frame fails, sending a reconfiguration instruction to the actuator through the LIN bus pin to reconfigure the identification code of the actuator;
[0020] For the actuator with the reconfigured identification code, continue to perform the detection operation;
[0021] When it is still confirmed that the status frame ID configuration of the actuator fails after continuing to perform the detection operation, it is finally confirmed that the status frame ID configuration of the actuator fails.
[0022] Optionally, the method further includes:
[0023] Determine whether there is a break point in the LIN network structure according to the actuator whose ID configuration fails in the confirmation status frame;
[0024] When it is determined that there is a breakpoint in the LIN network structure, outputting prompt information of the breakpoint;
[0025] When it is determined that there is no interruption point in the LIN network structure, an identifier of the actuator for which the status frame ID configuration fails is output.
[0026] Optionally, the method further includes:
[0027] In the case where it is determined that the LIN network structure has an interruption point, determining a first identification code of each actuator located at a side of the interruption point close to the controller;
[0028] A first configuration instruction is sent to each actuator located at the interruption point and close to the controller via the LIN bus pin.
[0029] Optionally, the method further includes:
[0030] In the case where it is determined that the LIN network structure has an interruption point, determining a second identification code of each actuator located at a side of the interruption point close to the controller;
[0031] A second configuration instruction is sent to each actuator located at the interruption point close to the controller via the LIN bus pin.
[0032] Optionally, the actuator is a motor for an air-conditioning box damper of a vehicle air-conditioning system.
[0033] According to a second aspect of the present application, there is provided a vehicle controller, the vehicle controller memory and a processor;
[0034] The memory is used to store computer instructions, and the processor is used to call the computer instructions from the memory to execute the method for configuring the actuator identification code based on LIN communication as described in any one of the first aspects.
[0035] According to a third aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method for configuring an actuator identification code based on LIN communication according to any one of the first aspects is implemented.
[0036] In an embodiment of the present application, a configuration method of an actuator identification code based on LIN communication is provided, and the method is applied to a controller in a LIN network structure, and the method includes: sending an automatic addressing instruction through a LIN bus pin, wherein the automatic addressing instruction is used to instruct the actuator in the LIN network structure to determine the distance relationship between itself and the controller; obtaining a first identification code of each actuator in the LIN network structure; sending a first configuration instruction to each actuator through a LIN bus pin, wherein the first configuration instruction includes a first identification code and a distance identification of the configured actuator and the controller. This method can greatly reduce the difficulty of installing the actuator.
[0037] Other features and advantages of the present application will become apparent from the following detailed description of exemplary embodiments of the present application with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the application and, together with the description, serve to explain the principles of the application.
[0039] Figure 1 is a schematic diagram of a LIN network structure provided in an embodiment of the present application;
[0040] Figure 2 It is a flow chart of a method for configuring an actuator identification code based on LIN communication provided in an embodiment of the present application;
[0041] Figure 3 It is a schematic diagram of the configuration process of the actuator identification code of the LIN communication provided by the embodiment of the present application;
[0042] Figure 4 This is a schematic diagram of a LIN network structure with interruption points provided by an embodiment of the present application;
[0043] Figure 5 The present application provides a structural schematic diagram of a vehicle air conditioning system using a LIN network structure;
[0044] Figure 6 It is a structural schematic diagram of a vehicle controller provided in an embodiment of the present application. DETAILED DESCRIPTION
[0045] Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that unless otherwise specifically stated, the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present application.
[0046] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present application, its application, or uses.
[0047] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0048] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0049] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0050] The present application embodiment provides a configuration method of an actuator identification code based on LIN communication, which is applied to Figure 1 The controller in the LIN network structure shown in Figure 2 As shown, the method includes the following S2100-S2300:
[0051] S2100, send automatic addressing instructions through the LIN bus pin.
[0052] Among them, the automatic addressing instruction is used to instruct the actuator in the LIN network structure to determine the distance relationship between itself and the controller.
[0053] In the embodiment of the present application, the near-far relationship specifically refers to the near-far relationship.
[0054] It is understandable that the installer can see the distance relationship of the actuator in the LIN network structure. However, the actuator is not sure about the distance relationship between itself and the controller. On this basis, through the above S2100, the actuator is instructed to determine the distance relationship between itself and the controller.
[0055] In one embodiment of the present application, the automatic addressing instruction may be in the form of a LIN diagnostic frame, and the automatic addressing instruction may be a BSM (English full name: Bus Shunt Method; Chinese full name: Bus Shunt Method) initialization instruction.
[0056] In the embodiment of the present application, after sending the automatic addressing instruction through the LIN bus pin, the actuator in the LIN network structure automatically analyzes the current size on the sampling resistor inside itself. On this basis, for any actuator, through mutual communication between actuators, the current size on the sampling resistor inside other actuators is obtained; the current of the sampling resistor inside itself is compared with the current of the sampling resistor inside other actuators to determine whether the current of the sampling resistor inside itself is the smallest; if yes, the actuator is determined to be the actuator farthest from the controller; if no, it is determined whether the current of the sampling resistor inside itself is the second smallest; if yes, the actuator is determined to be the actuator farthest from the controller; and so on, based on the principle that the farther the distance from the controller, the smaller the current on the sampling resistor inside the actuator, the distance relationship between each actuator and the controller is determined.
[0057] In one embodiment of the present application, the configuration method of the actuator identification code based on LIN communication provided in the embodiment of the present application further includes the following S2110 before the above S2100:
[0058] S2110. Send a broadcast stop command through the LIN bus pin.
[0059] In an embodiment of the present application, the broadcast stop instruction is used to instruct the actuator on the LIN network structure to suspend the current work.
[0060] In the embodiment of the present application, through the above-mentioned S2110, the purity of the operating environment of the following S2200 and S2300 can be guaranteed, thereby avoiding interference with the following S2200 and S2300, thereby improving the success rate of configuring the first identification code to the actuator.
[0061] S2200. Obtain a first identification code of each actuator in the LIN network structure.
[0062] In one embodiment of the present application, the first identification code is generally NAD.
[0063] It should be noted that the NAD of different actuators is different.
[0064] In one embodiment of the present application, the above S2200 may be specifically implemented as follows: a user pre-writes the first identification code of each actuator in the memory corresponding to the controller, wherein the order of the first identification codes written by the user is the order of the actuators from far to near. On this basis, the controller sequentially reads the first identification code of each actuator from the memory.
[0065] In another embodiment of the present application, the specific implementation of the above S2200 can also be: randomly determine the first identification code of each actuator within the value range allowed by the first identification code, wherein the order of the randomly determined first identification codes is the order of the first identification codes required to be configured for the actuators from far to near.
[0066] It should be noted that the number of actuators is pre-stored in the controller, and the number of actuators is usually less than or equal to 15.
[0067] S2300. Send a first configuration instruction to each actuator via a LIN bus pin.
[0068] The first configuration instruction includes a first identification code and an identification of the distance relationship between the configured actuator and the controller.
[0069] In the embodiment of the present application, the distance relationship identifier is used to indicate the distance relationship between the actuator and the controller. For example, when the actuator is the actuator farthest from the controller, the distance relationship identifier may be "farthest". When the actuator is the actuator second farthest from the controller, the distance relationship identifier may be "second farthest".
[0070] In one embodiment of the present application, the first configuration instruction may include a first identification code of each actuator and a distance relationship identifier between the corresponding actuator and the controller. On this basis, the specific implementation of the above S2300 may be: sending the same first configuration instruction to each actuator through the LIN bus pin. On this basis, for any actuator, after obtaining the first configuration instruction, extract the first identification code corresponding to the distance relationship identifier that matches the distance relationship between itself and the controller from the first configuration instruction; and configure the extracted first identification code as its own first identification code.
[0071] In another embodiment of the present application, the first configuration instruction may also include only the first identification code of an actuator, and the distance relationship identification between the actuator and the controller. On this basis, the above S2300 is: sending the corresponding first configuration instruction to each actuator through the LIN bus pin. On this basis, for any actuator, the actuator determines whether the distance relationship identification in the first configuration instruction matches the distance relationship between itself and the controller; if it matches, it determines that the first configuration instruction is the first configuration instruction sent by the controller to itself, at this time, the first identification code in the first configuration instruction is configured as its own first identification code; correspondingly, in the case of mismatch, it is determined that the first configuration instruction is not the first configuration instruction sent by the controller to itself, and the first configuration instruction is backward transmitted.
[0072] Based on the above content, it can be known that the configuration method of the actuator identification code based on LIN communication provided in the embodiment of the present application can realize the automatic configuration of the first identification code of the actuator, and can be executed at any stage after the LIN network structure is formed. Therefore, the installer only needs to install the actuator to different positions according to the LIN network structure, and then instruct the controller to execute the configuration method of the actuator identification code based on LIN communication provided in the embodiment of the present application. In this way, there is no need for the supplier to perform different manual markings on the actuator, and there is no need for the installer to install the actuator based on the different manual markings. That is, the configuration method of the actuator identification code based on LIN communication provided in the embodiment of the present application can greatly reduce the difficulty of installing the actuator.
[0073] In an embodiment of the present application, a configuration method of an actuator identification code based on LIN communication is provided, and the method is applied to a controller in a LIN network structure, and the method includes: sending an automatic addressing instruction through a LIN bus pin, wherein the automatic addressing instruction is used to instruct the actuator in the LIN network structure to determine the distance relationship between itself and the controller; obtaining a first identification code of each actuator in the LIN network structure; sending a first configuration instruction to each actuator through a LIN bus pin, wherein the first configuration instruction includes a first identification code and a distance identification of the configured actuator and the controller. This method can greatly reduce the difficulty of installing the actuator.
[0074] In one embodiment of the present application, the configuration method of the actuator identification code based on LIN communication provided in the embodiment of the present application further includes the following S2410 and S2420 after the above S2300:
[0075] S2410, obtaining a second identification code of each actuator in the LIN network structure.
[0076] In one embodiment of the present application, when the first identification code is NAD, the second identification code is a frame ID or PID (English full name: Protected ID; Chinese full name: protected identification code). The frame ID includes a status frame ID and a control frame ID, and the PID includes a frame ID and a parity check symbol.
[0077] In the embodiment of the present application, the first identification code and the second identification code of the actuator correspond to each other. That is, when the first identification code of the actuator is determined, the second identification code of the actuator is determined. On this basis, the specific implementation of the above S2410 can be: according to the first identification code of the actuator, the second identification code of the actuator is determined; based on this, the second identification code of each actuator in the LIN network structure is obtained.
[0078] In one embodiment of the present application, the configuration method of the actuator identification code based on LIN communication provided in the embodiment of the present application further includes the following S2411 before the above S2410:
[0079] S2411. Send a broadcast stop command through the LIN bus pin.
[0080] In an embodiment of the present application, the broadcast stop instruction is used to instruct the actuator on the LIN network structure to suspend the current work.
[0081] In the embodiment of the present application, through the above-mentioned S2411, the purity of the operating environment of the following S2410 and S2420 can be guaranteed, thereby avoiding interference with the following S2410 and S2420, thereby improving the success rate of configuring the second identification code to the actuator.
[0082] S2420, sending a second configuration instruction to each actuator via the LIN bus pin.
[0083] The second configuration instruction includes a first identification code corresponding to the actuator and a corresponding second identification code.
[0084] In the embodiment of the present application, the first identification code in the second configuration instruction is used to locate the actuator, and the second identification code is used for the actuator to configure the second identification code. Specifically, for any actuator in the LIN network structure, after receiving the second configuration instruction, the first identification code is extracted from the second configuration instruction to determine whether the first identification code is the same as the first identification code configured by itself. If they are the same, the second identification code in the second configuration instruction is configured as its own second identification code. Otherwise, the second configuration instruction is processed by backward transmission and the like.
[0085] Based on the above embodiments and Figure 1 The LIN network structure shown in FIG. 1 is a configuration process of the actuator identification code of the LIN communication provided in the embodiment of the present application. Figure 3 shown.
[0086] Based on the above content, it can be known that the configuration method of the actuator identification code based on LIN communication provided in the embodiment of the present application can realize the automatic configuration of the second identification code of the actuator, and can be executed after the LIN network structure is formed. Therefore, the installer only needs to install the actuator to different positions according to the LIN network structure, and then instruct the controller to execute the configuration method of the actuator identification code based on LIN communication provided in the embodiment of the present application. In this way, there is no need for the supplier to manually mark the actuator, and the installer to install the actuator based on the manual marking. That is, the configuration method of the actuator identification code based on LIN communication provided in the embodiment of the present application can greatly reduce the difficulty of installing the actuator.
[0087] In one embodiment of the present application, the second identification code includes a status frame ID. On this basis, the configuration method of the actuator identification code based on LIN communication provided in the embodiment of the present application also includes the following S2510-S2530:
[0088] S2510: For any actuator, perform a detection operation.
[0089] The detection operation includes the following S2511-S2513:
[0090] S2511. Send a status frame ID feedback instruction through the LIN bus pin.
[0091] In the embodiment of the present application, the state ID feedback instruction is used to instruct the corresponding actuator to output response information to the controller.
[0092] S2512: Upon receiving the response information sent by the executor, determine that the status frame ID of the executor is configured successfully.
[0093] S2513: When no response information is received from the executor, it is determined that the status frame ID configuration of the executor fails.
[0094] In an embodiment of the present application, for any actuator in the LIN network structure, a status frame ID feedback instruction is sent through the LIN bus pin. In the case where the status frame ID of the actuator is successfully configured based on the above embodiment, if the actuator receives the status frame ID feedback instruction, it sends a response message to the controller. The response message includes the status frame ID of the corresponding actuator and the response to the status frame ID feedback instruction. Correspondingly, if the status frame ID configuration of the actuator fails based on the above embodiment, even if the actuator receives the status frame ID feedback instruction, it will not send a response message to the controller.
[0095] S2520: When it is determined that the status frame ID configuration of the actuator fails, repeatedly perform the detection operation a first preset number of times at a set time interval.
[0096] In an embodiment of the present application, the first preset number is greater than or equal to the ratio of the longest response time of the executor to the set time interval, wherein the longest response time of the executor is the longest time for the executor to complete the configuration of the status frame ID.
[0097] In one embodiment of the present application, the set time interval can be set based on experience, for example, the set time interval can be set to 100ms. Also, the longest response time of the actuator is usually 4s. On this basis, the value of the first preset number of times can be greater than or equal to 40 times.
[0098] S2530: After repeatedly performing the detection operation for the first preset number of times, if it is still determined that the status frame ID configuration of the actuator fails, confirming for the first time that the status frame ID configuration of the actuator fails.
[0099] In the embodiment of the present application, after repeatedly executing the detection operation a first preset number of times, that is, after ensuring that the executor has sufficient time to configure the status frame ID, if it is still determined that the status frame ID configuration of the executor has failed, then the status frame ID configuration of the executor is confirmed to have failed for the first time.
[0100] In the embodiment of the present application, a method for determining that the executor status frame ID configuration fails is also provided through the above S2510-S2530.
[0101] On the basis of the above-mentioned embodiments shown in S2510-S2530, the configuration method of the actuator identification code based on LIN communication provided in the embodiment of the present application also includes the following S2610-S2630:
[0102] S2610: For the actuator for which the status frame ID configuration fails for the first time, a reconfiguration instruction is sent to the actuator through the LIN bus pin to reconfigure the identification code of the actuator.
[0103] In an embodiment of the present application, based on the embodiment shown in the above S2410-S2420, the reconfiguration instruction includes a first configuration instruction and a second configuration instruction.
[0104] In the embodiment of the present application, for the actuator whose status frame ID configuration fails, there is a case where the NAD configuration also fails. Therefore, based on the above S2610, the first identification code and the second identification code of the actuator can be reconfigured.
[0105] S2620. For the actuator whose identification code is reconfigured, continue to perform the detection operation.
[0106] In the embodiment of the present application, for the executor whose identification code is reconfigured, the detection operation is continued, that is, returning to the above S2510 to confirm again whether the state frame ID of the executor still fails to be configured. In this way, for the executor whose identification code is reconfigured, it can be confirmed whether the state frame ID of the executor still fails to be configured.
[0107] S2630: When it is still confirmed that the status frame ID configuration of the actuator fails after the detection operation is continued, it is finally confirmed that the status frame ID configuration of the actuator fails.
[0108] In an embodiment of the present application, when it is still confirmed that the status frame ID configuration of the actuator fails, the status frame ID configuration of the actuator is finally confirmed to have failed. Based on this, in an embodiment of the present application, the configuration method of the actuator identification code based on LIN communication provided by the embodiment of the present application further includes: outputting the identification of the actuator for which the status frame ID configuration of the actuator is finally confirmed to have failed, wherein the identification can be represented by the distance relationship between the actuator and the controller.
[0109] Based on any of the above embodiments S2510-S2530 and S2610-S2630, the configuration method of the actuator identification code based on LIN communication provided in the embodiment of the present application also includes the following S2710-S2730:
[0110] S2710. Determine whether there is a breakpoint in the LIN network structure according to the actuator whose configuration fails according to the confirmation status frame ID.
[0111] In an embodiment of the present application, the executor that fails to configure the confirmation status frame ID in the above S2710 may be the executor that fails to configure the first confirmation status frame obtained based on the above S2510-S2530, or may be the executor that fails to configure the final confirmation status frame ID obtained based on the above S2610-S2630.
[0112] In the embodiment of the present application, the interruption point refers to a fault point existing at the electrical connection level of the physical wiring harness in the LIN network structure.
[0113] It can be understood that when the actuators confirmed to have failed to configure the status frame ID are continuous in the above-mentioned distance relationship and include the actuator farthest from the controller, it is determined that there is a break point in the LIN network structure.
[0114] In one example, if Figure 4As shown, in the case where the LIN network structure includes N actuators, and the N actuators are respectively actuator N, actuator N-1, ..., actuator M+1, actuator M, ..., actuator 2 and actuator 1 from far to near, if it is determined that actuator M+1, ..., and actuator N are the actuators for which the confirmed status frame ID configuration fails, then it is determined that there is a breakpoint in the LIN network structure.
[0115] S2720: When it is determined that there is a breakpoint in the LIN network structure, output prompt information of the breakpoint.
[0116] In the embodiment of the present application, the prompt information of the interruption point includes the position of the interruption point. On this basis, the configuration method of the identification code of the actuator based on LIN communication provided in the embodiment of the present application also includes: when it is determined that there is an interruption point in the LIN network structure, the position of the interruption point is determined as: between the actuator closest to the controller among the actuators whose status frame ID configuration fails and the actuator farthest from the controller among the actuators whose status frame ID configuration succeeds.
[0117] In the above Figure 4 Based on the example shown, the position of the interruption point is determined as: between actuator M and actuator M+1.
[0118] S2730: When it is determined that there is no interruption point in the LIN network structure, output the identifier of the actuator for which the status frame ID configuration fails.
[0119] In the embodiment of the present application, the identification of the actuator for which the status frame ID configuration fails can be represented by the distance relationship between the corresponding actuator and the controller.
[0120] In the embodiment of the present application, the user can determine whether there is a breakpoint in the LIN network structure, the location of the breakpoint when there is a breakpoint, and which actuator has failed to configure the status frame ID when there is no breakpoint.
[0121] On the basis of the previous embodiment, the configuration method of the actuator identification code based on LIN communication provided by the present application also includes the following S2810 and S2820:
[0122] S2810: When it is determined that there is an interruption point in the LIN network structure, determine a first identifier of each actuator on a controller side located at the interruption point.
[0123] In the embodiment of the present application, Figure 4For example, when it is determined that there is an interruption point in the LIN network structure, the controller determines actuator M as the actuator farthest from the controller. On this basis, the controller configures the first identification code of actuator M as the first identification code of actuator N, and the first identification code of actuator M-1 as the first identification code of actuator N-1, and so on. In other words, the first identification code of each actuator located on the side close to the controller at the interruption point is configured incorrectly. On this basis, through the above S2810, the first identification of each actuator located on the side of the controller at the interruption point is determined from the above S2200.
[0124] S2820. Send a first configuration instruction to each actuator located at the interruption point close to the controller through the LIN bus pin.
[0125] On the basis of the above S2820, the actuator located at the interruption point close to the controller can reconfigure the correct first identification code based on the first configuration instruction.
[0126] In the embodiment of the present application, based on the above S2820, a correct first identification code may be configured for each actuator located at the interruption point close to the controller.
[0127] On the basis of the above-mentioned embodiment, the configuration method of the actuator identification code based on LIN communication provided in the embodiment of the present application further includes the following S2910 and S2920:
[0128] S2910: When it is determined that there is an interruption point in the LIN network structure, determine a second identification code of each actuator located on a side of the interruption point close to the controller.
[0129] Similarly, in the embodiment of the present application, Figure 4 For example, when it is determined that there is an interruption point in the LIN network structure, the controller determines actuator M as the actuator farthest from the controller. On this basis, the controller configures the second identification code of actuator M as the second identification code of actuator N, and the second identification code of actuator M-1 as the second identification code of actuator N-1, and so on. In other words, the second identification code of each actuator located on the side close to the controller at the interruption point is configured incorrectly. On this basis, through the above S2910, the second identification of each actuator on the side of the controller located at the interruption point is determined from the above S2410.
[0130] S2620, sending a second configuration instruction to each actuator located at the interruption point close to the controller through the LIN bus pin.
[0131] On the basis of the above S2920, the actuator located at the interruption point close to the controller can reconfigure the correct second identification code based on the second configuration instruction.
[0132] In the embodiment of the present application, through the above S2910 and S2920, the correct second identification code can be configured for each actuator located at the interruption point close to the controller.
[0133] In one embodiment of the present application, after executing the above S2920, the above S2510 may continue to be executed to confirm whether the status frame ID configuration of each actuator on the controller side at the interruption point fails.
[0134] In one embodiment of the present application, Figure 5 As shown, the actuator is a motor for an air-conditioning box damper of a vehicle air-conditioning system.
[0135] In one embodiment of the present application, the motor may be any one of a DC brushed motor, a DC brushless motor and a stepper motor.
[0136] In an embodiment of the present application, when the actuator is a motor for a damper of an air-conditioning box of a vehicle air-conditioning system, the installer can divide the multiple motors into the front main driver's temperature zone motor, the rear temperature zone motor and the front passenger's temperature zone motor of the air-conditioning box according to the visual distance relationship.
[0137] The present application embodiment also provides a vehicle controller 600, such as Figure 6 As shown, the vehicle controller 600 includes a memory 610 and a processor 620;
[0138] The memory 610 is used to store computer instructions, and the processor 620 is used to call the computer instructions from the memory 610 to execute the configuration method of the actuator identification code based on LIN communication as described in any one of the above method embodiments.
[0139] An embodiment of the present application also provides a vehicle, which includes a vehicle controller provided in the above embodiment.
[0140] In one embodiment of the present application, the vehicle may be any one of an electric vehicle, a fuel vehicle, a gas vehicle, a hybrid vehicle of oil and electric, a hybrid vehicle of oil and gas, or an electric hybrid vehicle.
[0141] An embodiment of the present application also provides a computer-readable storage medium having computer instructions stored thereon, which, when executed by a processor, implements a method for configuring an actuator identification code based on LIN communication according to any one of the above method embodiments.
[0142] The present application may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present application.
[0143] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0144] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0145] The computer program instructions for performing the operation of the present application can be assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions can be executed completely on a user's computer, partially on a user's computer, executed as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet). In some embodiments, by using the state information of a computer-readable program instruction to personalize an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA) or a programmable logic array (PLA), the electronic circuit can execute a computer-readable program instruction, thereby realizing various aspects of the present application.
[0146] Various aspects of the present application are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present application. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0147] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0148] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0149] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a part of a module, program segment or instruction, and the part of the module, program segment or instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.
[0150] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the present application is defined by the appended claims.
Claims
1. A method for configuring an actuator identification code based on LIN communication, characterized in that: The method is applied to a controller in a LIN network structure, and the method comprises: Sending an automatic addressing instruction via a LIN bus pin, wherein the automatic addressing instruction is used to instruct an actuator in the LIN network structure to determine a distance relationship between itself and the controller; Acquire a first identification code of each of the actuators in the LIN network structure; Sending a first configuration instruction to each of the actuators through the LIN bus pin, wherein the first configuration instruction includes a first identification code and an identification of the distance relationship between the configured actuator and the controller; after sending the first configuration instruction to each of the actuators through the LIN bus pin, the method further includes: Acquire a second identification code of each of the actuators in the LIN network structure; Sending a second configuration instruction to each of the actuators through the LIN bus pin, wherein the second configuration instruction includes a first identification code of the corresponding actuator and a corresponding second identification code; the second identification code includes a status frame ID, and the method further includes: For any of the actuators, performing a detection operation; The detection operation includes: sending a status frame ID feedback instruction through the LIN bus pin; determining that the status frame ID configuration of the actuator is successful when receiving the response information sent by the actuator; and determining that the status frame ID configuration of the actuator fails when not receiving the response information sent by the actuator; In the case of determining that the state frame ID configuration of the actuator fails, repeatedly performing the detection operation a first preset number of times at a set time interval; When it is still determined that the status frame ID configuration of the actuator fails after the detection operation is repeatedly performed a first preset number of times, it is confirmed for the first time that the status frame ID configuration of the actuator fails.
2. The method according to claim 1, characterized in that The method further comprises: For an actuator for which the ID configuration of the first confirmation status frame fails, sending a reconfiguration instruction to the actuator through the LIN bus pin to reconfigure the identification code of the actuator; For the actuator with the reconfigured identification code, continue to perform the detection operation; When it is still confirmed that the status frame ID configuration of the actuator fails after continuing to perform the detection operation, it is finally confirmed that the status frame ID configuration of the actuator fails.
3. The method according to claim 1 or 2, characterized in that: The method further comprises: Determine whether there is a break point in the LIN network structure according to the actuator whose ID configuration fails in the confirmation status frame; When it is determined that there is a breakpoint in the LIN network structure, outputting prompt information of the breakpoint; When it is determined that there is no interruption point in the LIN network structure, an identifier of the actuator for which the status frame ID configuration fails is output.
4. The method according to claim 3, characterized in that The method further comprises: In the case where it is determined that the LIN network structure has an interruption point, determining a first identification code of each actuator located at a side of the interruption point close to the controller; A first configuration instruction is sent to each actuator located at the interruption point and close to the controller via the LIN bus pin.
5. The method according to claim 4, characterized in that The method further comprises: In the case where it is determined that the LIN network structure has an interruption point, determining a second identification code of each actuator located at a side of the interruption point close to the controller; A second configuration instruction is sent to each actuator located at the interruption point close to the controller via the LIN bus pin.
6. The method according to claim 1, characterized in that The actuator is a motor for an air-conditioning box damper of a vehicle air-conditioning system.
7. A vehicle controller, characterized in that: said vehicle controller memory and processor; The memory is used to store computer instructions, and the processor is used to call the computer instructions from the memory to execute the configuration method of the actuator identification code based on LIN communication as described in any one of claims 1-6.
8. A computer-readable storage medium, characterized in that a computer program is stored thereon, and when the computer program is executed by a processor, the method for configuring an actuator identification code based on LIN communication according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Control method and system of inner decorative lamps
CN107226020A
