Network routing apparatus and method
The network routing device and method address inefficiencies in CAN networks by utilizing the ID field for route designation and message recycling, enhancing efficiency and compatibility across different CAN protocols.
Patent Information
- Application Number
- JP2022570614
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-06-29
- Filing Date
- 2021-06-24
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-06-24
AI Technical Summary
Existing CAN networks face inefficiencies in message processing due to unnecessary message handling and limited compatibility between CAN2.0a and CAN2.0b protocols, leading to inefficient network utilization and increased connection requirements as node numbers increase.
A network routing device and method that utilizes the ID field of CAN frames to designate route targets, allowing for physically partitioned networks and message recycling across multiple communication networks, including conversion between different CAN protocols.
Enables simultaneous message transmission by numerous nodes and recycles message IDs, improving network efficiency and compatibility across different CAN protocols without additional equipment.
Smart Images

Figure 0007548526000001 
Figure 0007548526000007 
Figure 0007548526000006
Abstract
Description
[Technical Field]
[0001] [CROSS-REFERENCE TO RELATED APPLICATIONS] This application claims the benefit of priority based on Korean Patent Application No. 10-2020-0079600, filed on June 29, 2020, and all contents disclosed in the documents of this Korean patent application are incorporated herein by reference.
[0002] The present invention relates to an apparatus and method for routing using an extended ID field in a CAN network. [Background technology]
[0003] Generally, in the case of a Controller Area Network (CAN) network, communication can be prioritized by occupying a communication bus using the ID field of a frame. Nodes in such a CAN network that share a single bus distinguish messages they should receive by filtering the ID field.
[0004] However, because each node in a CAN network is connected to a single CAN communication bus, even unnecessary messages must be continuously processed. This makes it difficult to accurately classify the network according to the characteristics and functions of each device. In addition, as the number of nodes increases, the bus for CAN communication must be continuously connected, which is a limitation.
[0005] Meanwhile, CAN2.0b, a communication protocol for CAN networks, allows more messages to be registered and used through the extended ID field of the frame. However, the frame structures of CAN2.0b and the existing CAN2.0a are different, making them incompatible. Summary of the Invention [Problem to be solved by the invention]
[0006] The present invention has been devised to solve the above-mentioned problems, and aims to provide a network routing device and method that utilizes the ID field of a CAN network frame to specify a routing target network and a routing target message, thereby enabling multiple nodes in a physically separated network to transmit messages simultaneously and recycling message IDs. [Means for solving the problem]
[0007] A network routing device according to one embodiment of the present invention is a routing device that transmits frames between nodes connected to different communication networks among a plurality of communication networks, and may include a routing processing unit that determines a second network to be routed among the plurality of communication networks based on information of a frame received from a first network that transmits the frame among the plurality of communication networks, and a frame conversion unit that converts the frame to be compatible with the second network.
[0008] A communication node according to one embodiment of the present invention is configured to be connectable to a plurality of communication networks and is a communication node for transmitting frames between nodes connected to different communication networks of the plurality of communication networks, and may include a network routing device that determines a second network among the plurality of communication networks to be the routing target based on information of a frame received from a first network that transmits the frame among the plurality of communication networks and converts the frame to be compatible with the second network, a first communication module that supports a communication protocol used in the first network and receives the frame from a node connected to the first network, and a second communication module that supports a communication protocol used in the second network and transmits the frame received from the first network to the second network.
[0009] A network routing method according to one embodiment of the present invention is a routing method for transmitting frames between nodes connected to different communication networks of a plurality of communication networks, and may include a step of determining a second network to be routed among the plurality of communication networks based on information of a frame received from a first network that transmits the frame among the plurality of communication networks, and a step of converting the frame to be compatible with the second network. [Effects of the Invention]
[0010] According to the network routing device and method of the present invention, by utilizing specific fields of a CAN network frame as a routed network designation and a routed message, multiple nodes can simultaneously transmit messages in a physically separated network, and message IDs can be recycled. [Brief explanation of the drawings]
[0011] [Figure 1] 1 is a block diagram showing the configuration of a typical battery control system; [Figure 2] 1 is a block diagram showing the configuration of a network routing device according to an embodiment of the present invention; [Figure 3] 1 is a block diagram showing a configuration of a communication node according to an embodiment of the present invention; [Figure 4a] FIG. 2 illustrates the operation of a network routing device according to an embodiment of the present invention. [Figure 4b] FIG. 2 illustrates a frame structure used in a network routing device according to an embodiment of the present invention. [Figure 5] 2 is a flowchart illustrating a network routing method according to one embodiment of the present invention. [Figure 6] FIG. 2 is a diagram illustrating a hardware configuration of a network routing device according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE INVENTION
[0012] Hereinafter, various embodiments of the present invention will be described in detail with reference to the drawings. In this document, the same reference numerals are used to refer to the same components in the drawings, and duplicate descriptions of the same components will be omitted.
[0013] Specific structural or functional descriptions of the various embodiments of the present invention disclosed in this document are merely exemplary for purposes of describing the embodiments of the present invention, and the various embodiments of the present invention may be embodied in various forms and should not be construed as being limited to the embodiments described herein.
[0014] The terms "first," "second," "primary," or "second" used in various embodiments may modify various components regardless of order and / or importance, and do not limit the components. For example, a first component may be named a second component, and similarly, a second component may be named instead of a first component, without departing from the scope of the present invention.
[0015] The terms used in this document are merely used to describe particular embodiments and are not intended to limit the scope of other embodiments. The singular expression may include the plural expression unless the context clearly indicates otherwise.
[0016] All terms used herein, including technical and scientific terms, may have the same meaning as commonly understood by a person of ordinary skill in the art of the present invention. Terms defined in commonly used dictionaries may be interpreted as having the same or similar meaning as the meaning they have in the context of the relevant art, and unless explicitly defined in this document, they should not be interpreted in an ideal or overly formal sense. In some cases, even terms defined in this document should not be interpreted to exclude embodiments of the present invention.
[0017] FIG. 1 is a block diagram showing the configuration of a typical battery control system.
[0018] Referring to FIG. 1, a battery control system including a battery pack 1 and a host controller 2 included in the host system according to an embodiment of the present invention is shown.
[0019] As shown in FIG. 1, the battery pack 1 includes a rechargeable battery module 10 consisting of one or more battery cells, a switching unit 14 connected in series to the positive terminal side or the negative terminal side of the battery module 10 to control the flow of charge / discharge current of the battery module 10, and a battery management system 20 that monitors the voltage, current, temperature, etc. of the battery pack 1 and controls and manages it to prevent overcharging and over-discharging, etc.
[0020] Here, the switching unit 14 is a semiconductor switching element for controlling the flow of current for charging or discharging the battery module 10, and may be, for example, at least one MOSFET, relay, magnetic contactor, etc., depending on the specifications of the battery pack 1.
[0021] Furthermore, the BMS 20 may measure or calculate the voltage and current of the gate, source, drain, etc. of the semiconductor switching element in order to monitor the voltage, current, temperature, etc. of the battery pack 1. The BMS 20 may also measure the current, voltage, temperature, etc. of the battery pack using a sensor 12 provided adjacent to the semiconductor switching element. The BMS 20 is an interface into which measured values of the various parameters described above are input, and may include a plurality of terminals and circuits connected to these terminals for processing the input values.
[0022] In addition, the BMS 20 can control the ON / OFF of the switching unit 14, for example, a MOSFET, and can monitor the state of the battery module 10 by being connected to the battery module 10.
[0023] The upper controller 2 can transmit a control signal for the battery module to the BMS 20. As a result, the BMS 20 can control its operation based on the signal applied from the upper controller. The battery cell of the present invention may be configured to be included in a battery pack used in an ESS (Energy Storage System) or a vehicle. In such a case, the upper controller 2 may be an ESS controller, a vehicle controller, or the like. However, the battery pack 1 is not limited to such applications.
[0024] The configuration of the battery pack 1 and the configuration of the BMS 20 are well known, so a more detailed description will be omitted.
[0025] FIG. 2 is a block diagram showing the configuration of a network routing device according to an embodiment of the present invention.
[0026] Referring to FIG. 2, a network routing device 200 according to an embodiment of the present invention may include a routing processor 210 and a frame converter 220.
[0027] According to an embodiment of the present invention, the network routing device 200 may be a device for routing a plurality of communication networks by transmitting and receiving frames between nodes, each frame having a structure including a first portion including information for designating a routed network and a second portion including a routed message. That is, in the network routing device according to an embodiment of the present invention, the extended ID field of the CAN frame may be divided into subfields and used as the routed network designation and the routed message.
[0028] In addition, the multiple communication networks communicating through the network routing device 200 according to an embodiment of the present invention may be physically separated from each other, and each communication network may use the CAN protocol. In this case, the multiple communication networks may be either a CAN 2.0a or CAN 2.0b bus. Since the multiple communication networks are physically separated in the form of a CAN bus, multiple nodes connected to different communication networks can simultaneously transmit messages within the networks. Furthermore, since the networks are separated, message IDs may be used as they are.
[0029] The routing processing unit 210 may determine a communication network (second network) to be routed among the plurality of communication networks based on information about a frame received from a communication network (first network) that transmits the frame. In this case, the routing processing unit 210 may determine a network to be routed among the plurality of communication networks based on information about the first part of the CAN frame. Furthermore, the first and second parts of the CAN frame may be included in an Extended ID (EID) field or a Standard ID (SID) field of the frame, and each of the first and second parts may have a predetermined number of bits.
[0030] Meanwhile, a reserved field of the CAN frame used by the routing processing unit 210 may include information indicating whether or not to route to one of multiple communication networks. For example, the reserved field may indicate 1 if the received frame is to be routed, and 0 if it is not to be routed. The routing processing unit 210 can determine whether or not to route the frame to another network based on the reserved field of the frame.
[0031] When the communication protocols of the frame transmission network and the routing target network are different, the frame conversion unit 220 can convert the frame to be compatible with the routing target network. For example, when the communication protocol of the frame transmission network is CAN2.0b and the communication protocol of the routing target network is CAN2.0a, the frame conversion unit 220 can copy at least a part of the extended ID field of the frame (e.g., the routing target message) to the standard ID field of the CAN2.0a frame of the routing target network and transmit the frame.
[0032] Meanwhile, although not shown in Fig. 2, the network routing device 200 according to an embodiment of the present invention may include a memory unit. The memory unit may store routed network information, routed messages, routing designator information, etc. of received or transmitted frames, allowing a user to check frame information, history, etc. as needed. Also, the memory unit may not be included in the routing device 200, but may be included in a communication node 300, which will be described later.
[0033] FIG. 3 is a block diagram showing the configuration of a communication node according to an embodiment of the present invention.
[0034] Referring to FIG. 3, a communication node 300 according to an embodiment of the present invention is for transmitting and receiving frames between nodes via multiple communication networks, and may include a network routing device 310, a first communication module 320, and a second communication module 330.
[0035] The network routing device 310 determines a communication network to be routed among a plurality of communication networks based on information of a frame received from a communication network that transmits the frame, and converts the frame to be compatible with the network to be routed. Here, the network routing device 310 is substantially the same as the network routing device 200 of FIG. 2, and therefore a detailed description thereof will be omitted.
[0036] The first communication module 320 may receive frames from a frame transmission network. The first communication module 320 communicates with multiple nodes connected to the first network. The first communication module 320 may support a first communication protocol used in the first network. For example, the first communication module 320 may support the CAN protocol and transmit and receive frames within the network via multiple data lines that make up a CAN bus.
[0037] The first communication module 320 transmits a frame received from the first network to the network routing device 310 based on information in a field in the received frame indicating whether to route the frame. For example, a reserved field in the received frame may include information indicating whether to route the frame to one of multiple communication networks. Then, based on the information in the reserved field, the first communication module 320 may transmit the received frame to the network routing device 310, transmit the received frame to a control unit (not shown) of the communication node 300 to process the frame, or ignore the received frame.
[0038] The second communication module 330 may transmit frames received from a frame transmission network to a routed network. The second communication module 330 communicates with multiple nodes connected to the second network. The second communication module 330 may support a second communication protocol used in the second network. For example, the second communication module 330 may support the CAN protocol and transmit and receive frames within the network via multiple data wires that form a CAN bus.
[0039] The frame sent to the second network by the second communication module 330 includes the routing target message contained in the frame at the time of transmission in the first network, and based on this, the node corresponding to the message in the second network can receive the frame.
[0040] 4a illustrates the operation of a network routing device according to an embodiment of the present invention. Also, FIG. 4b illustrates a frame structure used in a network routing device according to an embodiment of the present invention. The left side of FIG. 4b illustrates the frame structure of a frame transmission network, CAN2.0b, and the right side illustrates the frame structure of a routed network, CAN2.0a.
[0041] 4a, the first to fourth networks transmit and receive frames through the network routing device of the present invention. As shown in FIG. 4a, the first network is a battery (BMS) node of the CAN network, the second network is a power supply (Motor AUX) node, and the third and fourth networks are control (ECU_SUB) nodes.
[0042] When a frame is transmitted from a first network (CAN 2.0b bus) in Figure 4a to a second network (CAN 2.0a bus) in Figure 4b, the network routing device first checks the reserved field in the CAN frame. As shown in the left frame structure in Figure 4b, if the information contained in the reserved frame (R0) is 1, the network routing device transmits a frame including an extension ID field (EID) as a frame to be routed to the routing processor 210. In this case, the information contained in the reserved frame (R0) is not limited to 1 or 0 as shown in Figure 4b, but may be represented in various ways.
[0043] Next, the routing processor 210 refers to the extended ID field of the received frame to select a routed network. At this time, the routed network may be determined based on a predetermined number of bits (e.g., the most significant 6 bits) of the extended ID field. For example, if the second network is the routed network, the most significant 6 bits of the extended ID field may be represented as [000010], as shown in FIG. 4b.
[0044] When the routing processing unit 210 determines the routing target network, the network routing device transmits a message to the routing target network. In this case, the transmitted message may be the remaining part (second part) of the frame's extended ID field excluding the part (first part) specifying the routing target network. That is, as shown in FIG. 4b, the message of the transmitted frame may be represented by an 11-bit number of [11010101001], which may be used to identify the message and indicate its priority.
[0045] However, in the present invention, the number of bits for specifying a routing target network and the number of bits for a routing target message are not limited to these, and may be arbitrarily set by the user as needed.
[0046] If the second network is CAN2.0a, the frame converter 220 converts the frame to be compatible with CAN2.0a. For example, the routing target message portion (11 bits) of the CAN2.0b frame in Figure 4b can be copied to the standard ID field of the CAN2.0a frame, which is the routing target network, and transmitted. On the other hand, if the frame transmission network is CAN2.0a and the routing target network is CAN2.0b, the message in the standard ID field of the CAN2.0a frame can be copied to the standard ID field or extended ID field of the CAN2.0b frame and transmitted.
[0047] In this way, according to an embodiment of the present invention, a network routing device may utilize the ID field of the frame structure to transmit frames without a separate device or application even when communication protocols differ in frame structure (e.g., CAN2.0a and CAN2.0b).
[0048] FIG. 5 is a flowchart illustrating a network routing method according to one embodiment of the present invention.
[0049] 5, first, the reserved field of a frame received from the network routing device is checked (S110). At this time, the reserved field of the CAN frame may include information indicating whether or not to route the frame to a target network. For example, the reserved field may indicate 1 if the received frame is to be routed, and 0 if it is not to be routed. Therefore, the network routing device of the present invention can determine whether or not to route the frame to another network based on the reserved field of the frame.
[0050] Then, the network routing device determines whether the received frame is a routing target (S120). If the received frame is not a routing target (NO), the network routing device processes the frame in the same manner as the frame transmission network (S130).
[0051] On the other hand, if the received frame is to be routed (YES), the routing target network is determined by checking the extended ID field of the frame (S140). At this time, the routing target network information in the extended ID field may be represented by a preset number of upper bits (e.g., 6 bits).
[0052] Next, it is determined whether the communication protocol of the frame transmission network and the routing target network are the same (S150). If the communication protocol of the frame transmission network and the routing target network are the same, the frame is transmitted to the routing target network as is (S170).
[0053] On the other hand, if the communication protocols of the frame transmission network and the routing target network are different (NO), the frame is converted to be compatible with the routing target network (S160). For example, if the routing target network is CAN2.0a and the frame transmission network is CAN2.0b, the routing target message in the extended ID field of the frame can be copied to the standard ID field of the CAN2.0a frame of the routing target network. The converted frame is then transmitted to the routing target network (S170).
[0054] Thus, according to the network routing method of one embodiment of the present invention, the ID field of the CAN network frame is used to specify the network to be routed and the message to be routed, thereby allowing multiple nodes in a physically separated network to transmit messages simultaneously and enabling message ID recycling.
[0055] FIG. 6 is a diagram showing the hardware configuration of a network routing device according to an embodiment of the present invention.
[0056] 6, the battery management system 600 may include a microcontroller (MCU) 610 that controls various processes and configurations, a memory 620 that stores an operating system program and various programs (e.g., a routing target network calculation program, a frame conversion program, etc.), an input / output interface 630 that provides an input interface and an output interface between the battery cell module and / or the semiconductor switching element, and a communication interface 640 that can communicate with the outside via a wired or wireless communication network. As such, the computer program according to the present invention may be stored in the memory 620 and processed by the microcontroller 610, thereby being embodied as a module that performs each functional block shown in FIG. 2, for example.
[0057] Although it has been described above that all components constituting the embodiments of the present invention are combined or operate in combination, the present invention is not necessarily limited to such an embodiment, and all components may be selectively combined and operate in one or more combinations within the scope of the present invention.
[0058] Furthermore, unless otherwise specified, the terms "comprise," "constitute," "have," and the like used above mean that the relevant element may be present, and therefore should not be interpreted as excluding other elements, but as including other elements. All terms, including technical and scientific terms, unless otherwise defined, should be interpreted as having the same meaning as commonly understood by a person of ordinary skill in the art to which the present invention pertains. Commonly used terms, such as dictionary-defined terms, should be interpreted to be consistent with the contextual meaning of the relevant art, and should not be interpreted as having an ideal or overly formal meaning unless expressly defined in the present invention.
[0059] The above description is merely illustrative of the technical concept of the present invention, and various modifications and variations are possible within the scope of the essential characteristics of the present invention, if one skilled in the art to which the present invention pertains. Therefore, the embodiments disclosed in the present invention are intended to illustrate, not limit, the technical concept of the present invention, and the scope of the technical concept of the present invention is not limited by such embodiments. The scope of protection of the present invention should be interpreted according to the following claims, and all technical concepts within the scope equivalent thereto should be interpreted as being included in the scope of the present invention.
Claims
1. A network routing device for transmitting frames between nodes connected to different communication networks of a plurality of communication networks, comprising: a routing processing unit that determines a second network that is a routing target among the plurality of communication networks based on information of a frame received from a first network that transmits the frame among the plurality of communication networks; a frame conversion unit that converts the frame to be compatible with the second network, The frame conversion unit is a network routing device for transmitting a routing target message included in an extended ID (EID) field of the frame of the first network by including the message in a standard ID field of the frame of the second network.
2. A network routing device for transmitting frames between nodes connected to different communication networks of a plurality of communication networks, comprising: a routing processing unit that determines a second network that is a routing target among the plurality of communication networks based on information of a frame received from a first network that transmits the frame among the plurality of communication networks; a frame conversion unit that converts the frame to be compatible with the second network, A network routing device, wherein a reserved field of the frame includes information indicating whether the frame is to be routed to one of the plurality of communication networks.
3. 3. The network routing device according to claim 1, wherein the extended ID field of the frame has a structure including a first portion including information for specifying the second network, and a second portion including a message to be routed.
4. 4. The network routing device of claim 3, wherein the first portion and the second portion each have a predetermined number of bits.
5. 5. The network routing device of claim 1, wherein the first network and the second network have different communication protocols.
6. 6. The network routing device of claim 1, wherein the plurality of communication networks use the CAN protocol.
7. 7. The network routing device according to claim 1, wherein a protocol used by the plurality of communication networks is either a CAN 2.0a protocol or a CAN 2.0b protocol.
8. 3. The network routing device of claim 2, wherein when a communication protocol of the first network is a CAN 2.0b protocol and a communication protocol of the second network is a CAN 2.0a protocol, the frame conversion unit copies a routing target message included in an extended ID field of the frame of the first network to a standard ID field of the frame of the second network and transmits the message.
9. 9. The network routing device according to claim 1, wherein the plurality of communication networks are physically separated from each other.
10. 2. The network routing device according to claim 1, wherein a reserved field of said frame includes information indicating whether or not the frame is to be routed to one of said plurality of communication networks.
11. 11. The network routing device according to claim 10, wherein the routing processor receives only frames containing information to route the frame to another communication network in a reserved field of the frame.
12. A communication node configured to be connectable to a plurality of communication networks, for transmitting frames between respective nodes connected to different communication networks of the plurality of communication networks, a network routing device for determining a second network to be routed among the plurality of communication networks based on information of a frame received from a first network that transmits the frame among the plurality of communication networks, and for including a message to be routed, which is included in an extended ID (EID) field of the frame of the first network, in a standard ID field of the frame of the second network, thereby converting the frame to be compatible with the second network; a first communication module that supports a communication protocol used in the first network and receives the frame from a node connected to the first network; a second communication module supporting a communication protocol used in the second network and transmitting frames received from the first network to the second network.
13. A communication node configured to be connectable to a plurality of communication networks, for transmitting frames between respective nodes connected to different communication networks of the plurality of communication networks, comprising: a network routing device that receives the frame from a first network among the plurality of communication networks that transmits the frame, determines whether or not to route the frame based on a reserved field in the received frame that includes information indicating whether or not to route the frame to one of the plurality of communication networks, determines a second network among the plurality of communication networks that is a routing target based on the information of the received frame, and converts the frame to be compatible with the second network; a first communication module that supports a communication protocol used in the first network and receives the frame from a node connected to the first network; a second communication module supporting a communication protocol used in the second network and transmitting frames received from the first network to the second network.
14. A network routing method for transmitting frames between nodes connected to different communication networks of a plurality of communication networks, comprising: determining a second network to be routed among the plurality of communication networks based on information of the frame received from a first network that transmits the frame among the plurality of communication networks; converting the frame to be compatible with the second network; The converting step includes the step of: transmitting a message to be routed, the message being included in an extended ID (EID) field of a frame of the first network, by including the message in a standard ID field of a frame of the second network.
15. A network routing method for transmitting frames between nodes connected to different communication networks of a plurality of communication networks, comprising: receiving from a first network transmitting the frame in the plurality of communication networks; determining whether to route the received frame based on a reserved field in the received frame, the reserved field including information indicating whether the frame should be routed to one of the plurality of communication networks; determining a second network to be routed among the plurality of communication networks based on information of the received frame; and converting the frame to be compatible with the second network.
16. 16. The network routing method according to claim 14 or 15, wherein an Extended ID (EID) field of the frame has a structure including a first portion including information for specifying the second network, and a second portion including a message to be routed.
Citation Information
Patent Citations
CAV intelligence repeater / network bridge
CN2567939Y
Device and method for communication message conversion
JP2007174053A
Communication system and communication method
JP2014027517A
Communication system, communication node, and communication method
JP2014187544A
Network device and network system
JP2015114907A
