Vehicle node address distribution method, device, vehicle device, and storage medium

The method and device for distributing node addresses in vehicles using LSM and BSM addressing schemes address the compatibility issue of different chip types, enabling precise and compatible control of ambient lights in vehicles.

JP7789960B2Active Publication Date: 2025-12-22ZHEJIANG GEELY HLDG GRP CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2024568636
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2022-07-27
Filing Date
2022-08-18
Publication Date
2025-12-22
Estimated Expiration
2042-08-18

AI Technical Summary

Technical Problem

Existing node addressing methods for ambient lights in vehicles, such as MLX 81 series and Indie Realplum chips, lack compatibility due to differing address distribution means, making precise control impossible.

Method used

A method and device for distributing node addresses in vehicles using LSM and BSM addressing schemes, which involve sequential node searching and difference value calculations based on addressing command frames, ensuring consistent address allocation across different chip types.

Benefits of technology

Enables precise and compatible control of node addresses, meeting predetermined requirements by ensuring consistent address distribution across various chip types.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007789960000002
    Figure 0007789960000002
  • Figure 0007789960000003
    Figure 0007789960000003
  • Figure 0007789960000004
    Figure 0007789960000004
Patent Text Reader

Abstract

This application discloses a method and apparatus for node address allocation in a vehicle, a vehicle device, and a storage medium. Here, the method for node address allocation in a vehicle includes obtaining a node currently waiting for address allocation from a node set by a first addressing method, where the node set includes a plurality of nodes connected to a first bus of the vehicle (step S101), obtaining the address of the node according to the number of addressing command frames in an addressing command sequence, the address carried by the addressing command frame sent to the current node, and the number of frames of the addressing command frame sent to the current node (step S102), and performing address allocation for the node according to the address of the node (step S103). By means of this solution, node allocation is performed, accurate control over the allocation of node addresses is realized, and thus the preset requirements are met.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] The present application relates generally to the field of vehicles, and more particularly to a method, apparatus, vehicle device and storage medium for distributing node addresses in vehicles. [Background technology]

[0002] The rate at which in-vehicle interior ambient lights are installed in household cars is increasing day by day, and the use of multi-color RGB ambient lights is also becoming more and more popular. In order to enhance the overall atmosphere of the car, the number of ambient lights installed inside the car is gradually increasing. In order to realize individual control of ambient lights in different positions, it is necessary to assign addresses to each ambient light, and thus individual control of each ambient light can be realized by the ambient light address.

[0003] In the prior art, because the types of chips used in ambient lights are different, there are differences in the address distribution means of the ambient lights, i.e., the addressing principles of the node addressing methods. For example, the node address results obtained using the MLX 81 series chips are not consistent with the node address results obtained using the Indie Realplum chips, which makes it impossible to achieve compatibility of node control methods. Therefore, the prior art solutions require multiple solutions to be developed and adapted to the addressing methods of different chips, making it impossible to achieve accurate control according to demand. Summary of the Invention [Problem to be solved by the invention]

[0004] In view of the above deficiencies or shortcomings in the prior art, it is anticipated to provide a method, apparatus, vehicle device and storage medium for distributing node addresses in a vehicle.

[0005] In a first aspect, the present application provides a node address distribution method for a vehicle, Obtaining a node awaiting current address distribution from a node set according to a first addressing scheme, where the node set includes a plurality of nodes connected to a first bus of the vehicle; obtaining an address of the node according to the number of addressing command frames in the addressing command sequence, the address of the addressing command frame currently transmitted to the node, and the frame number of the addressing command frame currently transmitted to the node; and performing address distribution to the nodes according to the addresses of the nodes.

[0006] Furthermore, the step of obtaining a node currently waiting for address distribution from the node set by the first addressing method includes: a step of sequentially searching for nodes in the node set from the top node to the bottom node; when a first node awaiting processing for which address distribution has not been performed is searched for, the node awaiting processing is set as the node awaiting current address distribution; or a step of sequentially searching for nodes in the node set from the last node to the first node; When the first node awaiting processing for which address distribution has not been performed is found, the node awaiting processing is set as the node awaiting current address distribution.

[0007] Specifically, the first addressing method is one of an LSM addressing method and a BSM addressing method.

[0008] In some embodiments, the step of obtaining the address of the node according to the number of addressing command frames in the addressing command sequence, the address of the addressing command frame currently transmitted to the node, and the frame number of the addressing command frame currently transmitted to the node includes: obtaining a first difference value between the number of addressing command frames in the addressing command sequence and the number of addressing command frames currently transmitted to the node; obtaining a second difference value between the address of the addressing command frame currently transmitted to the node and the first difference value; and obtaining an address of the node according to the second difference value.

[0009] moreover, obtaining a node currently waiting for address distribution from the node set using a second addressing scheme; obtaining an address of the node according to an address of an address command frame currently transmitted to the node in an address command sequence; and performing address distribution to the nodes according to the addresses of the nodes.

[0010] Specifically, the second addressing method is one of an LSM addressing method and a BSM addressing method, and the second addressing method is different from the first addressing method.

[0011] In a second aspect, the present application provides a node address distribution device for a vehicle, A node determination module is used to obtain a node currently waiting for address distribution from a node set according to a first addressing scheme, where the node set includes a plurality of nodes connected to a first bus of a vehicle; an address determination module, the address determination module being used to obtain the address of the node according to the number of addressing command frames in the addressing command sequence, the address of the addressing command frame currently transmitted to the node, and the frame number of the addressing command frame currently transmitted to the node; a distribution module, used for performing address distribution to the nodes according to the addresses of the nodes;

[0012] Furthermore, the address determination module: obtaining a first difference value between the number of addressing command frames in the addressing command sequence and the frame number of the addressing command frame currently transmitted to the node; obtaining a second difference value between the address of the addressing command frame currently transmitted to the node and the first difference value; and obtaining the address of the node by the second difference value.

[0013] In a third aspect, the present application provides a vehicle, which includes a vehicle node address distribution device.

[0014] In a fourth aspect, the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable by the processor, which, when executed by the processor, realizes the vehicle node address distribution method described in any one of the embodiments of the present application.

[0015] In a fifth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, realizes the vehicle node address distribution method described in any one of the embodiments of the present application.

[0016] Based on the above, based on the vehicle node address distribution method, apparatus, vehicle device and storage medium of the present invention, the address of the node is obtained by obtaining the number of addressing command frames in the addressing command sequence, the address of the addressing command frame currently sent to the node, and the associated number of addressing command frames currently sent to the node, and the method realizes precise control over the distribution of node addresses, thereby meeting the predetermined requirements. [Brief explanation of the drawings]

[0017] Other features, objects and advantages of the present application will become more apparent upon reading the detailed description of the non-limiting embodiments made with reference to the following drawings.

[0018] [Figure 1] 1 is a flowchart of a vehicle node address distribution method provided in an embodiment of the present application; [Figure 2] FIG. 1 is a diagram showing the internal structure of the MLX81 series chip node provided in the embodiment of the present application. [Figure 3] FIG. 1 is a node connection block diagram of a BSM addressing scheme provided in an embodiment of the present application. [Figure 4] 1 is an addressing result of the BSM addressing method provided in an embodiment of the present application. [Figure 5] 1 is a diagram showing the internal structure of the chip node of Indie Realplum provided in the embodiment of the present application. [Figure 6] FIG. 2 is a node connection block diagram of the LSM addressing scheme provided in an embodiment of the present application. [Figure 7] 1 is an addressing result of the LSM addressing method provided in an embodiment of the present application. [Figure 8] FIG. 2 is a structural block diagram of a vehicle node address distribution device provided in an embodiment of the present application; [Figure 9] 1 is an internal structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION OF THE INVENTION

[0019] The present application will be described in more detail below in conjunction with the accompanying drawings and examples. Note that the specific examples described herein are only used to interpret the relevant invention and are not intended to limit the invention. In addition, for ease of explanation, only parts relevant to the invention are shown in the drawings.

[0020] In addition, the embodiments and features of the embodiments of the present application can be combined with each other as long as they are not contradictory. The present application will be described in detail below with reference to the drawings and in combination with the embodiments.

[0021] The present application generally relates to a node address distribution method for a vehicle in the field of vehicles, which is exemplified in the following embodiments of the present application.

[0022] In detail, referring to FIG. 1, the present application provides a node address distribution method for a vehicle, S101: obtaining a node awaiting current address distribution from a node set according to a first addressing scheme, where the node set includes a plurality of nodes connected to a first bus of a vehicle;

[0023] Specifically, the node address to be distributed is obtained from the set of all nodes according to the selected addressing scheme, and the set of nodes is all nodes connected to the bus of the current vehicle. For example, if the first bus of this vehicle connects three nodes, the node address to be distributed should be 3, and the addresses of the nodes can be 0x10, 0x0F, 0x0E, and the total number of nodes can be represented by Max NAD.

[0024] In some embodiments, the step of obtaining a node currently waiting for address distribution from the node set according to the first addressing scheme includes: a step of sequentially searching for nodes in the node set from the top node to the bottom node; when a first node awaiting processing for which address distribution has not been performed is searched for, the node awaiting processing is set as the node awaiting current address distribution; or a step of sequentially searching for nodes in the node set from the last node to the first node; When the first node awaiting processing for which address distribution has not been performed is found, the node awaiting processing is set as the node awaiting current address distribution.

[0025] Specifically, first, Max NAD is sent to distribute the maximum NAD, and then distributed in order from the largest NAD to the smallest NAD, that is, a node search is performed from the first node in the set to the last node, and if an address is not distributed to that node, this node waiting for processing is set as the node that currently needs address distribution. Alternatively, a search is performed from the last node in the set to the first node, and if an address is not distributed to that node, this node waiting for processing is set as the node that currently needs address distribution.

[0026] For example, the BSM (Bus Shunt Method) addressing method uses a pull-up current source to determine the current difference to identify the first LIN node at the far end, and responds to the NAD distribution command from far to near, i.e., searches for nodes from the last node to the first node in the set. The Indie Realplum chip uses the LSM (LIN Switch Method) addressing method, which controls the opening and closing of the LIN switch to increase the number of subnodes online, starting from the first LIN node at the near end and turning on subsequent subnodes one by one from near to far to respond to the NAD distribution command, i.e., searches for nodes from the first node to the last node in the set. The addressing command at this time is as shown in Table 1. [Table 1]

[0027] In some embodiments, the first addressing scheme is one of an LSM addressing scheme and a BSM addressing scheme.

[0028] For example, conventional automatic addressing uses Melexis MLX81 series chips or Indie Realplum chips, often communicating and controlling via LIN. MLX81 series chips use the BSM (Bus Shunt Method) addressing method, which uses a pull-up current source to determine the current difference to identify the first LIN node at the far end and respond to the NAD (Node Address) distribution command from the far end to the near end. Indie Realplum chips use the LSM (LIN Switch Method) addressing method, which controls the opening and closing of the LIN switch to increase the number of subnodes online, starting with the first LIN node at the near end and turning on subsequent subnodes one by one from the near end to the far end to respond to the NAD distribution command.

[0029] The internal structure of the MLX81 series chip is shown in Figure 2. By closing the constant current source and pull-up current source, current sensing is realized, and the LIN bus BSM can automatically distribute addresses. The main steps are as follows:

[0030] 1. Turn off the pull-up current generator and the constant current source (Rslave). 2. Test the current value and test the current offset amount. 3. Turn on the pull-up current source. 4. The current value at this time is tested as the preliminary measurement, and the node whose current value is smaller than the preset current value goes into the final measurement, and the preset current value is 1.2mA. 5. Turn on the constant current source. 6. Test the current value at this time and use it as the final measurement value. 7. Turn off the pull-up current source and the constant current source.

[0031] In this case, all LIN nodes are serially connected in a daisy chain, as shown in Figure 3. When testing the current value, the pull-up power supply is turned on and measurement is performed. If the test current value is greater than the preset current value, the node is not the last node and the pull-up power supply must be turned off. When a node with a current value less than the preset current value reaches the final measurement, the constant current source is turned on and the current value is tested to determine whether it is greater than the preset current value. If it is less than the preset current value, the node is the last node and NAD address allocation is performed. The preset current value is 1.2mA. After addressing using the BSM method, the node addresses are as shown in Figure 4.

[0032] The Indie Realplum chip uses the LSM addressing method. The internal structure of the chip's LIN node is shown in Figure 5, and the chip's LSM addressing node connection diagram is shown in Figure 6. The LIN switch inside the node turns on the next LIN node, and determines whether the NAD is the initial value to determine whether the address has been distributed. It identifies nodes that have not distributed an NAD and overwrites it with a new NAD, thereby realizing automatic address distribution by the LIN bus. The steps are as follows:

[0033] 1. All nodes turn off the LIN switch, and the first proximal node is online. After receiving the NAD command and overwriting the new NAD, this node closes the LIN switch and turns on the second node. 2. After receiving the NAD distribution command, the first node has already saved the new NAD, and the second node is the initial NAD, which overwrites the new NAD. This node closes the LIN switch and turns on the third node. 3. Distribute NAD to all nodes. After addressing using LSM addressing method, the node addresses are as shown in Figure 7.

[0034] S102: Obtain the address of the node according to the number of addressing command frames in the addressing command sequence, the address of the addressing command frame currently transmitted to the node, and the frame number of the addressing command frame currently transmitted to the node.

[0035] Specifically, the node address is obtained by the number of addressing command frames in the current addressing sequence, the address of the addressing command, and the current number of addressing command frames. The number of addresses can be represented by Max NAD.

[0036] For example, if the first frame NAD distribution command NAD received is 0xX (Max NAD), all nodes will store NAD as 0xX, where X is the number of the addressing command frame in the addressing command sequence, and turn off the LIN switch. All LIN switches are turned off, and only the first proximal node is online at this time. If the second frame NAD distribution command NAD received is 0x0(X-1), this node will store NAD as 0x01 {Max NAD-(X-1)}, and close the LIN switch to turn on the second node. The first node LIN switch is closed, and the first proximal node and the second node are online at this time. The first node NAD is 0x01, the second node NAD is 0xX, and the received NAD distribution command NAD is 0x(X-2), then the node NAD whose NAD is 0xX will store NAD as 0x02 {Max NAD-(X-2)}. NAD-(X-2)}, the second node closes the LIN switch and turns on the third node, and the LIN switches of the first node and the second node close. At this time, the three proximal nodes are online, the NAD of the first node is 0x01, the NAD of the second node is 0x02, and the NAD of the third node is 0xX. If the received NAD distribution command NAD is 0x(X-3), the node NAD whose NAD is 0xX is corrected as 0x03 {Max NAD-(X-3)}, and the second node closes the LIN switch and turns on the second distal node to be online until distribution to the last node is completed. If the received NAD distribution command NAD is 0x01, the node NAD whose NAD is 0xX is corrected as 0x(X-1), and the node closes the LIN switch. The first distal node is online, and the NAD of this node is already saved as 0xX.

[0037] In some embodiments, the step of obtaining the address of the node according to the number of addressing command frames in the addressing command sequence, the address of the addressing command frame currently transmitted to the node, and the frame number of the addressing command frame currently transmitted to the node includes: obtaining a first difference value between the number of addressing command frames in the addressing command sequence and the number of addressing command frames currently transmitted to the node; obtaining a second difference value between the address of the addressing command frame currently transmitted to the node and the first difference value; and obtaining an address of the node according to the second difference value.

[0038] Specifically, for example, when the number of addressing command frames in the addressing command sequence is 5, the number of addressing command frames currently sent to the node is 3, the calculated difference value is 2, and the current difference value is the first difference value. Based on the address 5 held by the addressing command frame and the first difference value 2, the calculated difference value is 3, and the current difference value is the second difference value. Therefore, based on the second difference value, the address of the node is determined to be NAD 0x03.

[0039] S103: Distributing addresses to the nodes according to the addresses of the nodes.

[0040] Specifically, the addresses are distributed based on the node address, and the addresses of each node obtained are as shown in Figure 4, which realizes that the nodes in the LSM and BSM addressing methods are the same, thereby realizing compatibility control.

[0041] In some embodiments, obtaining a node currently waiting for address distribution from the node set according to the second addressing scheme; obtaining an address of the node according to an address of an address command frame currently transmitted to the node in an address command sequence; and performing address distribution to the nodes according to the addresses of the nodes.

[0042] Specifically, the second addressing method is used to obtain the node with the currently allocated address from the node set, and the address of the node is determined according to the address of the address command frame currently sent to the node. For example, if the node with the currently allocated address is 3, the obtained node address is 0x03.

[0043] In some embodiments, the second addressing scheme is one of an LSM addressing scheme and a BSM addressing scheme, and the second addressing scheme is different from the first addressing scheme.

[0044] Specifically, when the first addressing method is an LSM addressing method, the second addressing method is a BSM addressing method, and when the second addressing method is a BSM addressing method, the first addressing method is an LSM addressing method, and by adopting the correspondence between the first addressing method and the second addressing method, the obtained NADs of the two addressing methods are consistent, thereby realizing compatibility control.

[0045] From the above, based on the vehicle node address distribution method of the present invention, the address of the node is obtained by obtaining the number of addressing command frames in the addressing command sequence, the address of the addressing command frame currently sent to the node, and the associated number of addressing command frames currently sent to the node, so that the method can realize accurate control over the distribution of node addresses and thus meet the predetermined requirements.

[0046] Further referring to FIG. 8, a schematic diagram of a vehicle node address distribution device in an embodiment of the present application is shown. The vehicle node address distribution device 200 includes a node determination module 210, an address determination module 220 and a distribution module 230, where: The node determination module 210 is used to obtain a node that is currently waiting for address distribution from a node set according to a first addressing scheme, where the node set includes a plurality of nodes connected to a first bus of a vehicle; The address determination module 220 is used to obtain the address of the node according to the number of addressing command frames in the addressing command sequence, the address of the addressing command frame currently transmitted to the node, and the frame number of the addressing command frame currently transmitted to the node; The distribution module 230 is used to perform address distribution to the nodes according to the addresses of the nodes.

[0047] In some embodiments, the address determination module 220: obtaining a first difference value between the number of addressing command frames in the addressing command sequence and the frame number of the addressing command frame currently transmitted to the node; obtaining a second difference value between the address of the addressing command frame currently transmitted to the node and the first difference value; and obtaining the address of the node by the second difference value.

[0048] From the above, based on the vehicle node address distribution device of the present invention, the address of the node is obtained by obtaining the number of addressing command frames in the addressing command sequence, the address of the addressing command frame currently sent to the node, and the associated number of addressing command frames currently sent to the node, and this method realizes precise control over the distribution of node addresses, and thus meets the predetermined requirements.

[0049] The division of some modules or units mentioned in the detailed description above is not mandatory. In fact, depending on the implementation of the present disclosure, the features and functions of two or more modules or units described above may be embodied in a single module or unit. Conversely, the features and functions of a single module or unit described above may be further divided and embodied in multiple modules or units.

[0050] The flowcharts and block diagrams in the drawings illustrate possible system frameworks, functions, and operational instructions of systems, methods, and computer program products according to various embodiments of the present application. In this regard, each block in the flowcharts or block diagrams may represent a module, program segment, or portion of code, which includes executable instructions used to implement one or more specified logical functions. Note that, in some alternative implementations, the functions indicated in the blocks may occur in a different order than the order indicated in the drawings. For example, two interconnected blocks may actually be executed essentially in parallel, or may sometimes be executed in a reverse order, depending on the functionality involved. Note that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented in a dedicated hardware-based system that executes the specified functions or operational instructions, or may be implemented using a combination of dedicated hardware and computer instructions. The foregoing description merely illustrates preferred embodiments of the present application and the technical principles employed. Those skilled in the art should understand that the scope of disclosure of the present application is not limited to the technical solution based on the specific combination of the above technical features, but also includes other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above-disclosed idea, such as, for example, a technical solution formed by mutually substituting the above features with technical features having similar functions disclosed in the present application (including but not limited to).

[0051] In one embodiment, the present application provides a vehicle, the vehicle adopting a vehicle node address distribution device 200, the vehicle node address distribution device 200 including a node determination module 210 for obtaining a node currently waiting for address distribution from a node set according to a first addressing scheme, where the node set includes a plurality of nodes connected to a first bus of the vehicle; an address determination module 220, which is used to obtain the address of the node according to the number of addressing command frames in the addressing command sequence, the address of the addressing command frame currently transmitted to the node, and the frame number of the addressing command frame currently transmitted to the node; a distribution module 230, which is used to perform address distribution to the nodes according to the addresses of the nodes;

[0052] In some embodiments, the address determination module 220: obtaining a first difference value between the number of addressing command frames in the addressing command sequence and the frame number of the addressing command frame currently transmitted to the node; obtaining a second difference value between the address of the addressing command frame currently transmitted to the node and the first difference value; and obtaining the address of the node by the second difference value.

[0053] From the above, based on the vehicle of the present invention, the address of the node is obtained by obtaining the number of addressing command frames in the addressing command sequence, the address of the addressing command frame currently sent to the node, and the associated number of addressing command frames currently sent to the node, and the method realizes precise control over the distribution of node addresses, thus meeting the preset demands.

[0054] In one embodiment, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein when the electronic device executes the computer program, it achieves the steps of: obtaining a node currently waiting for address distribution from a node set according to a first addressing scheme, where the node set includes a plurality of nodes connected to a first bus of a vehicle; obtaining an address of the node according to the number of addressing command frames in an addressing command sequence, the address of the addressing command frame currently transmitted to the node, and the frame number of the addressing command frame currently transmitted to the node; and distributing an address to the node according to the address of the node.

[0055] In one embodiment, when the processor executes the computer program, the following steps are further implemented: a step of sequentially searching for nodes in the node set from the top node to the bottom node; and when the first node awaiting processing for which address distribution is not performed is found, the node awaiting processing is set as the node awaiting current address distribution; or a step of sequentially searching for nodes in the node set from the bottom node to the top node; and when the first node awaiting processing for which address distribution is not performed is found, the node awaiting processing is set as the node awaiting current address distribution.

[0056] In one embodiment, when the processor executes the computer program, it further implements the steps of: obtaining a first difference value between the number of addressing command frames in the addressing command sequence and the number of frames of the addressing command frame currently sent to the node; obtaining a second difference value between the address of the addressing command frame currently sent to the node and the first difference value; and obtaining the address of the node using the second difference value.

[0057] In one embodiment, when the processor executes the computer program, it further implements the steps of: obtaining a node currently waiting for address distribution from a node set using a second addressing method; obtaining the address of the node according to the address of the addressing command frame currently sent to the node in the addressing command sequence; and distributing an address to the node according to the address of the node.

[0058] The electronic device may be a terminal device, the internal structure of which may be as shown in Figure 9. The terminal device includes a processor, memory, a communication interface, a display, and an input device, all connected by a system bus. The processor of the terminal device is used to provide calculation and control capabilities. The memory of the terminal device includes a computer-readable storage medium and an internal memory. The computer-readable storage medium stores an operating system and computer programs. The internal memory provides an execution environment for the operating system and computer programs in the computer-readable storage medium. The communication interface of the terminal device is used to communicate with an external terminal via wired or wireless communication, which may be achieved via Wi-Fi, a carrier network, Near Field Communication (NFC), or other technologies. When the computer program is executed by the processor, it realizes an application launch method. The display of the terminal device may be a liquid crystal display or an electronic paper display, and the input device of the terminal device may be a touch layer covered on the display, buttons, a trackball, or a touchpad on the exterior of the terminal device, or an external keyboard, touchpad, or mouse.

[0059] From the above, based on the electronic device of the present invention, the address of the node is obtained by obtaining the number of addressing command frames in the addressing command sequence, the address of the addressing command frame currently sent to the node, and the associated number of addressing command frames currently sent to the node, and the method realizes precise control over the distribution of node addresses, thus meeting the preset demands.

[0060] In one embodiment, a computer-readable storage medium stores a computer program, which, when executed by a processor, achieves the steps of: obtaining a node currently awaiting address distribution from a node set according to a first addressing method, where the node set includes a plurality of nodes connected to a first bus of a vehicle; obtaining an address of the node according to the number of addressing command frames in an addressing command sequence, the address of the addressing command frame currently sent to the node, and the frame number of the addressing command frame currently sent to the node; and distributing an address to the node according to the address of the node.

[0061] In one embodiment, when a processor executes a computer program, the following steps are implemented: a step of sequentially searching for nodes in the node set from the top node to the bottom node; and when the first node awaiting processing for which address distribution is not performed is found, the node awaiting processing is set as the node awaiting current address distribution; or a step of sequentially searching for nodes in the node set from the bottom node to the top node; and when the first node awaiting processing for which address distribution is not performed is found, the node awaiting processing is set as the node awaiting current address distribution.

[0062] In one embodiment, when a processor executes a computer program, the following steps are realized: obtaining a first difference value between the number of addressing command frames in the addressing command sequence and the number of frames of the addressing command frame currently sent to the node; obtaining a second difference value between the address of the addressing command frame currently sent to the node and the first difference value; and obtaining an address of the node using the second difference value.

[0063] In one embodiment, when the processor executes the computer program, it realizes the steps of: obtaining a node currently waiting for address distribution from a node set using a second addressing method; obtaining the address of the node using the address of the addressing command frame currently sent to the node in the addressing command sequence; and distributing an address to the node using the address of the node.

[0064] From the above, based on the computer-readable storage medium of the present invention, the address of the node is obtained by obtaining the number of addressing command frames in the addressing command sequence, the address of the addressing command frame currently sent to the node, and the associated number of addressing command frames currently sent to the node, and the method realizes precise control over the distribution of node addresses, thereby meeting the predetermined requirements.

[0065] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware using a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed, it can implement the processes in the above method embodiments. Herein, any reference to memory, database, or other medium used in the embodiments provided in this application may include at least one of computer-readable and non-computer-readable storage media. Computer-readable memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be obtained in many forms, such as static random access memory (SRAM) and dynamic random access memory (DRAM).

[0066] It should be noted that the orientations or positional relationships indicated by terms such as "length," "width," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inside," and "outside" are orientations or positional relationships shown based on the drawings, and are intended merely to facilitate and simplify the explanation of the present invention. They do not indicate or imply that the indicated devices or elements have a specific orientation or should be configured and operated in a specific orientation, and therefore should not be understood as limiting the present invention.

[0067] Furthermore, the terms "first" and "second" are used for explanatory purposes only and should not be understood to indicate or imply relative importance or to specify the number of technical features being indicated. Thus, a feature qualified as "first" or "second" may indicate or imply the inclusion of one or more of the feature. In the description of the present invention, "plurality" means two or more than two, unless otherwise clearly and specifically limited.

[0068] Unless otherwise defined, technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art of the present invention. The terms used herein are intended to describe specific implementation purposes and are not intended to limit the present invention. The term "mounted" or the like used herein can indicate that one component is directly attached to another component, or that one component is attached to another component via an intermediate member. In this specification, unless a feature is inapplicable to another embodiment or is otherwise described, a feature described in one implementation mode can be applied to another implementation mode alone or in combination with other features.

[0069] Although the present invention has been described above by way of the embodiments, the embodiments are merely for the purpose of illustration and description, and are not intended to limit the scope of the present invention to the described embodiments. Those skilled in the art will appreciate that many variations and modifications can be made based on the teachings of the present invention, and all of these variations and modifications are within the scope of the claimed invention.

Claims

1. A method for distributing node addresses in a vehicle, comprising: Obtaining a node awaiting current address distribution from a node set according to a first addressing scheme, where the node set includes a plurality of nodes connected to a first bus of the vehicle; obtaining an address of the node according to the number of addressing command frames in the addressing command sequence, the address of the addressing command frame currently transmitted to the node, and the frame number of the addressing command frame currently transmitted to the node; and performing address distribution to the nodes according to the addresses of the nodes; The method for allocating node addresses in a vehicle, wherein the first addressing method is one of an LSM addressing method and a BSM addressing method.

2. The step of obtaining a node currently waiting for address distribution from the node set by the first addressing method includes: a step of sequentially searching for nodes in the node set from the top node to the bottom node; when a first node awaiting processing for which address distribution has not been performed is searched for, the node awaiting processing is set as the node awaiting current address distribution; or a step of sequentially searching for nodes in the node set from the last node to the first node; 2. The node address distribution method according to claim 1, further comprising the step of: when a first node awaiting processing for which address distribution is not performed is searched for, setting the node awaiting processing as the node awaiting current address distribution.

3. The step of obtaining the address of the node according to the number of addressing command frames in the addressing command sequence, the address of the addressing command frame currently transmitted to the node, and the frame number of the addressing command frame currently transmitted to the node includes: obtaining a first difference value between the number of addressing command frames in the addressing command sequence and the number of addressing command frames currently transmitted to the node; obtaining a second difference value between the address of the addressing command frame currently transmitted to the node and the first difference value; 3. The node address distribution method according to claim 1, further comprising the step of: obtaining an address of the node by the second difference value.

4. obtaining a node currently waiting for address distribution from the node set using a second addressing scheme; obtaining an address of the node according to an address of an address command frame currently transmitted to the node in an address command sequence; and performing address distribution to the nodes according to the addresses of the nodes; 2. The node address distribution method according to claim 1, wherein the second addressing method is one of an LSM addressing method and a BSM addressing method, and the second addressing method is different from the first addressing method.

5. A node address distribution device for a vehicle, comprising: A node determination module is used to obtain a node currently waiting for address distribution from a node set according to a first addressing scheme, where the node set includes a plurality of nodes connected to a first bus of a vehicle; an address determination module, the address determination module being used to obtain the address of the node according to the number of addressing command frames in the addressing command sequence, the address of the addressing command frame currently transmitted to the node, and the frame number of the addressing command frame currently transmitted to the node; a distribution module used to perform address distribution to the nodes according to the addresses of the nodes; 10. The node address distribution device for a vehicle, wherein the first addressing method is one of an LSM addressing method and a BSM addressing method.

6. The address determination module: obtaining a first difference value between the number of addressing command frames in the addressing command sequence and the frame number of the addressing command frame currently transmitted to the node; obtaining a second difference value between the address of the addressing command frame currently transmitted to the node and the first difference value; 6. The vehicle node address distribution device according to claim 5, characterized in that it is specifically used for obtaining the address of the node by the second difference value.

7. A vehicle comprising the node address distribution device for a vehicle according to claim 5 or 6.

8. 3. An electronic device comprising: a memory; a processor; and a computer program stored in the memory and executable by the processor, the electronic device implementing the vehicle node address distribution method according to claim 1 or 2 when the processor executes the program.

9. 3. A computer-readable storage medium having a computer program stored therein, the computer program implementing the vehicle node address distribution method according to claim 1 or 2 when executed by a processor.

Citation Information

Patent Citations

  • Bus protocol for kinetic lighting application

    JP2019088000A

  • Power supplying control device, relay node device, wired ad hoc network system, and power supplying control method

    WO2013145255A1