Communication device and vehicle-mounted electronic device

By designing communication devices in the vehicle network and using frame classification and guard band control technology, the problem of low communication efficiency under IEEE802.1Qbv technology is solved and more efficient frame transmission and load balancing are achieved.

CN118633264APending Publication Date: 2024-09-10ASTEMO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380019375.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-04-22
Filing Date
2023-02-28
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

In the vehicle network, the time-sensitive network technology based on IEEE802.1Qbv has the problem of reduced communication efficiency. Especially when the time changes in the data transmission mode are small, the existing technology is difficult to effectively improve the communication efficiency.

Method used

Design a communication device that receives partial classification frames, the queuing section buffers and controls the passage of frames, the scheduling section sets the guard band to ensure the sending timing of other types of data, and the sending section sends frames in the open door state, using the class table and Frame length classification to optimize the order and timing of frame sending.

Benefits of technology

The forwarding efficiency of the network is improved, the processing load of the communication device is balanced, frame loss and wasted time are reduced, and communication efficiency is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000
    Figure 00000000_0000
Patent Text Reader

Abstract

A communication device is provided with: a classification unit that classifies a received frame into a plurality of classes; a queuing unit that performs buffering for each class; a door unit that opens / closes the frame; a scheduling unit that determines an open / closed state, sets a guard band serving as a transmission prohibition time near the end time of the door open state, and secures other types of transmission timing; and a transmission unit that transmits the passing frame of the gate unit. The scheduling unit sets a guard band width corresponding to the maximum frame length, and controls the open / closed state so as to secure the guard band width.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a communication device and a vehicle-mounted electronic device. Background Art

[0002] The in-vehicle network, which is a network inside the car, connects multiple sensors and actuators to each other so that they can communicate. With the recent technological advances in autonomous driving (AD: Autonomous Driving) and advanced driver assistance system (ADAS: Advanced Driver Assistance System), there is also an expectation for the in-vehicle network to improve. One of them is the regional architecture and the resulting network sharing.

[0003] In the past, the in-vehicle network was composed of separate networks for each communication object called domains, such as the powertrain chassis system, body system, AD / ADAS system, and information system. These networks were constructed in each domain using incompatible communication methods such as CAN (Controller Area Network), LIN (Local Interconnect Network), FlexRay (registered trademark), or Ethernet (registered trademark) according to their uses. However, such a network structure based on domains is complex in network management and has become a burden on automobile design in terms of line weight and line cost.

[0004] The solution to this problem is regional architecture and network sharing. The regional architecture abolishes the traditional domain-based network and connects sensors and actuators that are close to each other in space to one sub-network. Furthermore, the sub-networks are connected with a bus that is common between domains, thus achieving network sharing.

[0005] As a problem of network sharing, the network must provide the communication quality required by the communication application. For example, if it is the communication of the powertrain chassis system, the delay time from the source to the target is short and the data loss rate is low. On the other hand, if it is the communication of the AD / ADAS system, large-capacity communication such as camera data is required. In addition, if it is the communication of the information system, the delay time and data loss rate are allowed within a certain range.

[0006] As a technology to solve such problems, there is TSN (Time-Sensitive Network). TSN is a technology based on Ethernet. It logically divides communication into multiple classes, synchronizes time within the network, and controls the transmission of frames based on time. As a result, communication that meets the required quality of the application can be achieved on a shared network.

[0007] TSN is a general term for technologies consisting of a plurality of standard specifications, and a representative standard specification thereof is IEEE (Institute of Electrical and Electronics Engineers) 802.1Qbv. This is a method of periodically setting a transmittable time called a time slot for each class and strictly controlling frame transmission at the set transmit time. In the IEEE802.1Qbv specification, a guard band is specified in such a way that the transmission of a frame of a certain class does not hinder the transmission of frames of other classes. The guard band is set at the end of the transmittable time of each class. During the guard band, the transmission of frames in transmission is allowed but the start of transmission of new frames is not allowed. In this way, it is guaranteed that the transmission of a certain class is within the range of the time slot, and the transmission of frames of other classes will not be affected and delayed.

[0008] However, there are concerns that the introduction of such TSN based on the IEEE802.1Qbv specification will lead to a decrease in communication efficiency. In other words, the standard specification stipulates that the size of the guard band should be set to the maximum frame length of the frames sent under this class. In this case, even if the class contains a frame shorter than the maximum frame length and the frame is within the guard band, it is not allowed to be sent, resulting in a decrease in communication efficiency.

[0009] Patent Document 1 discloses a technique for improving communication efficiency in a time-sharing network. The technique described in Patent Document 1 includes a time scheduler, a priority class unit, a non-priority class unit, and a scheduling information changing unit. Here, the time scheduler has a priority gate state and a non-priority gate state. That is, in the priority gate state, the signal queued in the priority class section is allowed to pass in the open state, and the signal is blocked in the blocked state. On the other hand, in the non-priority gate state, the signal queued in the non-priority class section is allowed to pass in the open state, and the signal is blocked in the blocked state.

[0010] The time scheduler controls the timing of the state change of the priority gate according to the schedule information. That is, the schedule information changer instructs the time scheduler to change the timing of the state change indicated by the schedule information according to the priority signal. Prior art literature Patent Literature

[0011] Patent Document 1: Japanese Patent Application Publication No. 2019-004379 Summary of the invention Problem that the invention aims to solve

[0012] The technology described in Patent Document 1 is effective when the number of frames in the priority signal changes dynamically with respect to time. On the other hand, in a control network represented by an in-vehicle network, there is a case where the time variation in the mode of sending data is small. In such a case, the technology described in Patent Document 1 is not expected to improve communication efficiency.

[0013] An object of the present invention is to provide a communication device and an in-vehicle electronic device capable of improving communication efficiency when used in an in-vehicle network. Technical means of solving problems

[0014] In order to solve the above-mentioned problems, for example, the configuration described in the claims is adopted. The present application includes a variety of technical means for solving the above problems. For example, a communication device includes: a receiving unit that receives a frame from inside or outside the vehicle; a classification unit that classifies the frames received by the receiving unit into at least two classes based on information included in the frames; a queuing unit, which buffers frames according to each class classified by the classification unit; a door portion, which allows the frames queued in the queue portion to pass through when the door is open, and cuts off the passing through when the door is closed; a scheduling unit that determines the open / closed state of the gate unit and sets a guard band as a transmission prohibition time near the end time of the gate open state of the class, thereby ensuring data transmission timing of other classes; and The sending part sends the frames that the sending gate has let through. Here, the classification department has: A frame data classification unit that performs classification according to each data condition of the frame; a frame length classification unit that classifies frames according to their frame lengths; a class table that holds a data condition and a frame length condition of a frame and class data assigned according to the data condition and the frame length condition as a classification reference in a frame data classification unit and a frame length classification unit; and a classification execution unit that classifies the frame according to the class table's determination of the class of the frame; The scheduling unit sets a guard band width equivalent to the maximum frame length of each class specified in the class table. The gate portion controls the open / closed state so as to ensure a guard band width determined for each class. Effects of the Invention

[0015] According to the present invention, even when the guard band is used, the forwarding efficiency of the network is improved, and the processing load of the communication device can be leveled. Other problems, structures, and effects than those described above will become clear from the following description of the embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 It is a diagram showing a network configuration of a communication device according to a first embodiment of the present invention. Figure 2 It is a diagram showing the hardware configuration of a communication device according to the first embodiment of the present invention. Figure 3 This is a schematic diagram of a communication frame in a zone architecture according to the first embodiment of the present invention. Figure 4 A schematic diagram of time slot setting (Example 1) in IEEE802.1Qbv. Figure 5 A schematic diagram of time slot setting (Example 2) in IEEE802.1Qbv. Figure 6 A schematic diagram of time slot setting (Example 3) in IEEE802.1Qbv. Figure 7 This is a schematic diagram of time slot settings according to the first embodiment of the present invention. Figure 8 A diagram showing a frame structure (Example 1) processed by the communication device according to the first embodiment of the present invention. Fig. 9 It is a diagram showing a frame structure (Example 2) processed by the communication device according to the first embodiment of the present invention. Fig.10 It is a block diagram showing the structure of the communication device according to the first embodiment of the present invention. Fig.11 This is a diagram showing the structure of a class table according to the first embodiment of the present invention. Fig.12 This is a diagram showing the configuration of a scheduling unit according to the first embodiment of the present invention. Fig.13 This is a flowchart showing the processing of the classification unit according to the first embodiment of the present invention. Fig.14 This is a flowchart for setting a guard band table according to the first embodiment of the present invention. Fig.15 This is a diagram showing the structure of a class table according to the second embodiment of the present invention. Fig.16 This is a flowchart showing the processing of the frame data classification unit according to the second embodiment of the present invention. Fig.17 This is a flowchart showing the processing of the frame length classification unit according to the second embodiment of the present invention. Fig.18 It is a flowchart showing the processing of the classification execution unit according to the second embodiment of the present invention. Fig.19This is a diagram showing the configuration of a communication device according to a third embodiment of the present invention. Fig. 20 It is a flowchart showing the processing of the monitoring unit according to the third embodiment of the present invention. Fig.21 It is a flowchart showing the processing of the setting management unit according to the third embodiment of the present invention. Fig. 22 This is a flowchart showing the setting change processing in the class table according to the third embodiment of the present invention. Fig.23 It is a flowchart showing the setting change processing in the door state table according to the third embodiment of the present invention. Fig.24 It is a flowchart showing the setting change process in the guard band table according to the third embodiment of the present invention. Fig.25 It is a diagram showing a configuration example of a setting preset table according to a fourth embodiment of the present invention. Fig.26 It is a flowchart showing the processing in the setting management unit according to the fourth embodiment of the present invention. Fig. 27 A diagram showing a network configuration of a communication device according to a fifth embodiment of the present invention. Fig.28 It is a schematic diagram showing the process of setting update based on OTA according to the fifth embodiment of the present invention. Fig.29 A diagram showing the configuration of a communication device according to a fifth embodiment of the present invention. Fig.30 It is a flowchart showing the setting update based on OTA according to the fifth embodiment of the present invention. DETAILED DESCRIPTION

[0017] <First embodiment> Below, reference Figure 1 to Figure 14 , a first embodiment of the present invention is described. Figure 1 The following demonstrates the connection of a communication network inside a vehicle equipped with the communication device according to this embodiment. Figure 1 An example of using a regional architecture as a network within vehicle 1 is shown. The network is composed of area ECUs (Electronic Control Units) 2a to 2d, sensors 3a to 3d connected to the area ECUs 2a to 2d, actuators 4a to 4d connected to the area ECUs 2a to 2d, and the like.

[0018] Figure 1The number of the zone ECUs 2a to 2d, sensors 3a to 3d, and actuators 4a to 4d shown is an example, and one or more of each may be provided. In the following description, the area ECUs 2a to 2d, the sensors 3a to 3d, and the actuators 4a to 4d are referred to as the area ECU 2, the sensor 3, and the actuator 4 unless otherwise required.

[0019] As the name suggests, the regional ECU 2 is arranged in the vehicle at positions (regions) such as the front, rear, left, and right, and is connected to the sensor 3 or actuator 4 near the installation position, or both. The regional ECU 2 is connected to other regional ECUs 2 via a shared bus 5 using a common communication method. The sensor 3 or actuator 4 may be configured so that at least a part of it is connected to the regional ECU 2 via the shared bus 5. The communication device described in this embodiment is implemented in the regional ECU 2. In the following description, the regional ECU is referred to as a communication device.

[0020] Figure 2 This is the hardware configuration of the communication device 2. The communication device 2 includes a network switch 6 for connecting to other communication devices 2 or for connecting to the sensor 3 and the actuator 4. In addition, the communication device 2 includes a CPU (Central Processing Unit) 7 for processing information received from the sensor 3 and the actuator 4 or the shared bus 5, and is connected to the network switch 6.

[0021] Figure 2 The portion indicated by the bold line among the lines connecting the various parts in the figure represents a shared bus 5 for communicating in a universal communication method, that is, a connection method between the communication devices 2 in the area architecture. Figure 2 The parts indicated by thin lines connecting the parts in the figure indicate that communication is performed using a communication method other than the local architecture. When the sensor 3 and the actuator 4 support the general communication method, they are directly connected to the network switch 6. When the sensor 3 and the actuator 4 do not support the general communication method, they can be connected to the CPU 7 and then converted to the general communication method in the CPU 7.

[0022] The general communication method is based on Ethernet (registered trademark), but other methods are also possible as long as the same functions as TSN can be obtained. In addition, the network switch 6 can be connected to other CPUs 7 using Ethernet or other methods. Communication methods other than general communication methods include CAN, LIN, FlexRay, etc.

[0023] The communication device 2 receives data from the sensor 3 and the actuator 4. In addition, the communication device 2 receives data generated in the CPU 7. These data are processed in the CPU 7 or sent to other communication devices 2. Furthermore, the communication device 2 receives data from other communication devices 2 connected via the shared bus 5. The received data is processed in the CPU 7 as needed, and then forwarded to the sensor 3 or the actuator 4.

[0024] In the area architecture, one communication device 2 accommodates various sensors 3 and actuators 4 . For example, the ECU for Power Train / Chassis (PT / CH) system is responsible for engine control or steering control. In addition, the ECU for Autonomous Driving / Advanced Driver Assistance System (AD / ADAS) system is responsible for processing information obtained from external sensors such as cameras and radars to perform automatic driving or assist the driver in safe driving. Furthermore, there are ECUs for the BODY system that controls automatic windows and air conditioning, and ECUs for the INFO system that delivers audio and video and accesses the Internet.

[0025] Figure 3 is a schematic diagram of a communication frame on the shared bus 5 in the zone architecture. PT / CH system data 11, 14, 17, AD / ADAS system data 12a, 12b, 15a, 15b and BODY system data 13, 16 are sent periodically. These data have different communication requirements such as communication cycle, frame size, required delay time, frame loss tolerance, etc. Therefore, if communication is simply carried out by relying on a shared network, the communication requirements cannot be met and vehicle control may become unstable in some cases.

[0026] In such a communication environment, as a way to separate multiple communications with different communication requirements to achieve communication control suitable for each communication and improve security, there is a standardized Time-Sensitive Network (TSN). TSN is composed of multiple specifications, and here it is assumed that the communication control based on the IEEE802.1Qbv specification described in the background technology column. IEEE802.1Qbv, also known as Time-Aware Shaper, is a method of classifying communication frames into multiple classes, setting the transmittable time called time slot according to each class, and performing time-sharing communication, thereby separating the communication.

[0027] An example of communication based on IEEE802.1Qbv is shown in Figure 4 . exist Figure 4 In the example of , communication is classified into priority and non-priority, and a transmission time called a time slot is defined for each of these classifications. That is, time slots 18a to 18c for priority data and time slots 19a and 19b for non-priority data are set. The priority and non-priority classification of communication can be arbitrarily determined by the designer. Here, the PT / CH system data with a large impact on vehicle control is set as the priority data 11, 14, and 17, and the AD / ADAS system data 12, 12b, 15a, 15b, BODY system data 13, 16, and INFO data (omitted in the figure) are set as non-priority data. In the case of this embodiment, the PT / CH system data with a large impact on vehicle control is also set as the priority data, and the AD / ADAS system data, BODY system data, and INFO data are set as non-priority data. In this way, the priority of communication can be reasonably set.

[0028] In this Figure 4 In such simple time-sharing communication as shown above, the non-priority class may affect the transmission timing of the priority class. Figure 5 This is an example of this situation. Here, it is assumed that for some reason, the transmission time of the AD / ADAS system data 12 is delayed. Although the last AD / ADAS system data 12c in the non-priority slot 19a is included in the slot 19a at the start time of its transmission, the transmission completion time exceeds the slot 19a and infringes on the next priority slot 18b. In this case, the transmission of the priority data 14 is delayed, or in the worst case has to be transmitted in the next time slot 18c. Therefore, the required delay value cannot be met, which may have a significant impact on vehicle control.

[0029] To prevent this situation, IEEE802.1Qbv introduces a method called guard band. The guard band is set at the end of each time slot. In the guard band, frames that are being sent are allowed to continue to be sent, but new frames (unsent frames) are prohibited from starting to be sent. By setting the width of the guard band to the maximum frame length of the frames included in the class, it is possible to prevent infringement of subsequent time slots.

[0030] Figure 6 The protection band is shown. Guard bands 20a and 20b are set at the end of non-priority time slots 19a and 19b respectively. Figure 5In the same example, the last frame 12c of the AD / ADAS system data 12 scheduled to be sent is prohibited from being sent because its sending start time is within the guard band 20a. Therefore, the subsequent PT / CH system data 14 can be sent in the scheduled time slot 18b, which can meet the delay requirement. The last frame 12c of the AD / ADAS system data 12 is sent in the next non-priority data time slot 19b.

[0031] On the other hand, the protection of the guard band for other classes is achieved at a certain cost. That is, the guard band is set according to the maximum frame length within the class, so even if there is a request to send a shorter frame, its transmission will be prohibited. For example, in Figure 6 In the example of FIG. 1 , the BODY system data frame 13 is received at the same time and waits to be sent, but it is not sent because the sending start time is within the guard band 20a. However, the BODY system data frame 13 is very short and will be sent before the time slot 18b of the next priority class. Therefore, the frame is not sent within the guard band 20a.

[0032] When the guard band is used in this way, there will be wasted time when no communication occurs. At the same time, frames will accumulate in the queue of the communication device, and the transmission will be put on hold until the next low priority slot. This action may cause the queue to overflow due to data and cause frame loss. In addition, a large number of frames will be sent in the next low priority slot, so the load on the communication device will increase.

[0033] Therefore, in the present embodiment, the opportunities for transmitting frames with a short frame length are increased to improve communication efficiency, reduce frame loss, and reduce the load on the communication device. Specifically, if Figure 7 As shown, the low priority class is divided into two or more subclasses that share the time slots 21a and 21b, and the frames of the low priority class are classified into the subclasses according to their frame lengths. Since the maximum frame length is determined for each subclass, the guard bands 22a and 22b corresponding to the maximum frame length can be set for each subclass. For example, the AD / ADAS system data 12 with a long frame length is classified into subclass 1, and the BODY system data 13 with a short frame length is classified into subclass 2. Within the guard band 22a of subclass 1, subclass 2 does not enter the guard band 22b, and the frame 13 belonging to subclass 2 can be transmitted. The subclasses of the priority class and the low priority class are collectively referred to as classes. picture Figure 5 As described in , the guard bands 22a and 22b are provided to allow frames being transmitted to continue to be transmitted and to prohibit new frames that have not yet been transmitted from starting to be transmitted.

[0034] Figure 8This is a diagram showing an example of a frame structure in this embodiment. In this embodiment, Ethernet frames are used. The communication device 2 sends and receives Figure 8 The frame 30 shown in FIG. 30 includes a destination address (DA) 31, a source address (SA) 32, a type 33, a payload 35, and a frame check sequence (FCS) 36. In addition, a Virtual Local Area Network (VLAN) tag 34, which is a symbol for logically dividing a network, may also be included. The portion from the destination address 31 to the VLAN tag 34 is called a frame header 37.

[0035] Furthermore, the communication device 2 may also add additional information to the frame. Fig. 9 An example of a frame structure in which additional information is added to a frame is shown. Here, the additional information is added to the head of a frame 38 as an internal header 39. Examples of the additional information include a receiving port number, a destination port number, a class number, and the like.

[0036] Fig.10 It is a diagram showing the structure of the communication device 2. The communication device 2 receives frames from inside or outside the communication device 2 by means of the receiving unit 40. The frames received by the receiving unit 40 are classified into classes in the classification unit 41 according to the information contained in the frames. Then, the queue unit 46 buffers the frames of each class classified by the classification unit 41. Then, the gate unit 47 allows the frames queued in the queue unit 46 to pass when the gate is open, and cuts off the frames from passing when the gate is closed. The open / closed state of the gate unit 47 is controlled by the scheduling unit 48. The scheduling unit 48 determines the control timing of the gate unit 47, and sets a guard band that becomes a transmission prohibition time near the end time of the gate opening state of each class, thereby ensuring the data transmission timing of other classes. In this way, the guard band can function effectively.

[0037] Furthermore, when multiple gates of the gate unit 47 are simultaneously opened and multiple frames are about to be output, the transmission selection unit 49 selects one of the multiple frames and sequentially selects the transmission priority of the transmission frame. As a result, the frame classified by the classification unit 41 can be transmitted at the transmission timing determined by the scheduling unit 48. The frame selected by the transmission selection unit 49 is transmitted by the transmission unit 50. These components are mainly deployed in the network switch 6 ( Figure 2 )middle.

[0038] Furthermore, the classification unit 41 includes a frame data classification unit 42 , a frame length classification unit 43 , a class table 45 , and a classification execution unit 44 . The frame data classification unit 42 classifies the frame into at least two classes according to each data condition of the frame. The frame length classification unit 43 classifies the frame into at least two classes according to the frame length. The classification criteria in the frame data classification unit 42 and the frame length classification unit 43 include a frame data condition and a frame length condition. The class table 45 holds class data allocated according to the frame data condition and frame length condition.

[0039] The classification execution unit 44 classifies the frame into any one of the queue units 46 according to the determination of the frame class by the class table 45 . In addition, the gate unit 47 holds gates for each class, each of which is connected to a corresponding queue of the queuing unit 46. For example, when there are two classes, the queuing unit 46 has two queues for each class, and the gate unit 47 has two gates for each class, and queues of the same class are connected to the gates. The gate unit 47 controls the opening and closing of the gate for each class based on the information from the scheduling unit 48. Thus, the transmission of frames of each class is appropriately controlled while strictly adhering to the setting of the guard band in each class.

[0040] Fig.11 This is an example of the class table 45 in this embodiment. The class table 45 holds a frame data condition 60, a frame length condition 61, and a classification target class 62. The frame data condition 60 holds the data condition of the frame to be classified for each class. For example, the frame data condition 60 is set to a condition formed by a value of a specific field of the frame header 37, or a value (at least a part of a value) of a specific position of the frame payload 35, or a combination thereof. In this way, the frame data condition can be set appropriately.

[0041] The frame length condition 61 sets the condition of the frame length to be classified for each class. For example, the frame length condition 61 sets the condition that the frame length is greater than, less than, or equal to a specific value. The classification target class 62 of the frame is determined in the form of a combination of these frame data conditions 60 and frame length conditions 61.

[0042] Fig.11 In the frame data condition 60, when the transmission source address (SA) 31 is XXX, it is set to class 1, and when it is YYY, it is set to class 2 or 3. Furthermore, according to the frame length condition 61, when the transmission source address 31 is YYY and the frame length is greater than 500B, it is set to class 2, and when the transmission source address 31 is YYY and the frame length is less than 500B, it is set to class 3.

[0043] Furthermore, the scheduling unit 48 sets a guard bandwidth corresponding to the maximum frame length of each class 62 specified in the class table 45, and the gate unit 47 controls the open / closed state of the gate so as to ensure the guard bandwidth determined for each class. Fig.12 The configuration of the scheduling unit 48 is shown. The scheduling unit 48 holds a door state table 70 for controlling the open and closed states of doors corresponding to each class at each periodic time, and a guard band table 71 for setting the guard band width for each class. The door state table 70 holds the open and closed states 73 of the door at time 72.

[0044] The door open / closed state 73 of the door state table 70 stores data indicating the change of the door state at each moment. For example, "o" indicates the door open state (Open), and "C" indicates the door closed state (Close). The "o" or "C" is stored in the number of classes. As long as the class ID and the door are matched, the order is arbitrary, for example, it is stored in ascending order of the class ID. As an example of door state data, when only class 1 is open and class 2 is closed, it is "oC...C", when only class 1 is closed and class 2 is open, it is "Co...o", and when all classes are closed, it is "CC...C".

[0045] The guard band table 71 holds a guard band width 75 for each class 74. In the present embodiment, the guard band table 71 is set to match the maximum frame length specified in the frame length condition 61 of the class table 45. In this way, by matching the setting of the guard band table 71 with the maximum frame length specified in the frame length condition 61 of the class table 45, the guard band can be set appropriately.

[0046] Fig.13 It is a flowchart which shows the classification process performed by the classification part 41. The classifier 41 processes the frame received from the receiver 40 in the frame data classifier 42 to extract frame data, and inputs the frame data into the frame data condition 60 of the class table 45 (step S100). Here, the frame data refers to the frame header and the payload.

[0047] Then, the frame length classifier 43 calculates the frame length and inputs it to the frame length condition 61 of the class table 45 (step S101). The class table 45 searches for its entry based on the input from the frame data classifier 42 and the frame length classifier 43 (step S102). The class table 45 determines whether the search is successful (step S103). If there is a hit in step S103, the corresponding class ID 62 is returned. If there is no hit, an error is returned or a default class ID is returned.

[0048] As a result, if a hit is found (Yes in step S103), the classification execution unit 44 stores the frame in a queue corresponding to the hit class ID among the queues of the queuing unit 46 (step S104). In addition, if a hit is not found (No in step S103), the classification execution unit 44 stores the frame in a queue corresponding to the default class (step S105).

[0049] Fig.14 1 is a flowchart showing a process of setting the guard band table 71 by the scheduler 48 . When the scheduler 48 sets the guard band table 71, the following processing is repeated for the number of classes (step S110). First, the scheduler 48 searches the frame length condition of the class table based on the class ID (step S111). The scheduler 48 determines whether the maximum value of the frame length is set by searching the frame length condition (step S112).

[0050] If there is a setting for specifying the maximum value of the frame length in step S112 (Yes in step S112), the scheduler 48 acquires the set maximum frame length (step S113). If there is no setting for specifying the maximum value of the frame length in step S112 (No in step S112), the scheduler 48 uses the Maximum Transmission Unit (MTU) as the maximum frame length (step S114).

[0051] Then, the scheduling unit 48 calculates the duration of the maximum frame based on the maximum frame length, thereby obtaining the guard band (step S115). Finally, the scheduling unit 48 sets the guard band to the corresponding class in the guard band table (step S116). The above operation is performed for all classes, and the loop ends (step S117). For example, class 3 has a maximum frame length (500Byte) set in the class table, so it is set to 4μs corresponding to its length (the same applies to the case of 1Gbps). Class 2 does not have a maximum frame length condition, so the value of the MTU commonly used in the entire vehicle network is used. If the value is 1500Byte, 12μs is set in the guard band table accordingly.

[0052] As described above, according to this embodiment, Figure 7 As shown, the maximum frame length is determined for each subclass, so guard bands 22a and 22b corresponding to the maximum frame length can be set for each subclass. Therefore, the transmission opportunities of frames with short frame lengths can be increased to improve communication efficiency, reduce frame loss, and reduce the load on communication devices.

[0053] Furthermore, the present embodiment is explained using the application in a vehicle adopting a regional architecture as an example, but even if the architecture is applied to a domain-based architecture that constructs a hierarchical network for each major function of vehicle control, the same effect can be obtained when data of different priorities are mixed. In addition, as an application example of the network, application to an in-vehicle network formed by in-vehicle electronic devices such as the communication device 2 is one example, and it can also be applied to other networks such as a control network of a factory or a communication operator network.

[0054] <Second embodiment> Next, refer to Figure 15 to Figure 18 , the second embodiment of the present invention is described. Figure 15 to Figure 18 In the first embodiment, Figure 1 to Figure 14 Corresponding parts are marked with the same symbol. The second embodiment of the present invention changes the data storage of the class table 45 and the classification processing operation of the classification unit 41 from the first embodiment. The other configurations and processing are the same as those of the first embodiment, and thus description thereof will be omitted.

[0055] Fig.15 It is a diagram showing the structure of the class table 45 in this embodiment. In this embodiment, the class table 45 is implemented in the form of three sub-tables. The first sub-table is a frame data condition table 63 , which holds frame data conditions 60 and data condition ID (ID-D) 66 . The second sub-table is a frame length condition table 64 , which holds a frame length condition 61 and a frame condition ID (ID-L) 67 . The third sub-table is a class condition table 65, which holds a frame data condition ID (ID-D) 68, a frame length condition ID (ID-L) 69, and the class ID 62 corresponding thereto.

[0056] The configuration of the classification unit is the same as that of the first embodiment, but the respective connection destinations and operations are different. The frame data classification unit 42 is connected to the frame data condition table 63. The frame length classification unit 43 is connected to the frame length condition table 64. The classification execution unit 44 is connected to the class condition table 65.

[0057] Fig.16 2 is a flowchart showing the operation processing of the frame data classification unit 42. The frame data classification unit 42 first uses the frame data to search the frame data condition table 63 (step S200), and determines whether the search is successful (step S201). If successful in step S201 (yes in step S201), the frame data classification unit 42 obtains the data condition ID and writes the obtained data condition ID into the internal header 37 (step S202). In addition, if no successful in step S201 (no in step S201), the frame data classification unit 42 writes the default data condition ID into the internal header 37 (step S203).

[0058] Fig.17 This is a flowchart showing the operation processing of the frame length classification unit 43. The frame length classification unit 43 calculates the frame length (step S204). Then, the frame length classification unit 43 searches the frame length condition table 64 according to the frame length (step S205), and determines whether the search is successful (step S206). In the case of a successful search in step S206 (yes in step S206), the frame length classification unit 43 writes the frame length ID into the internal header 37 (step S207). In addition, in the case of a missed search in step S206 (no in step S206), the frame length classification unit 43 writes the default frame length ID into the internal header 37 (step S208).

[0059] Fig.18 It is a flowchart showing the operation processing of the classification execution unit 44. The classification execution unit 44 obtains the data condition ID 66 and the frame length ID 67 from the internal header 37 (step S209). Then, the classification execution unit 44 searches the class condition table based on the obtained data condition ID 66 and the frame length ID 67 (step S210), and determines whether the search is successful (step S211). If a hit is found in step S211 (Yes in step S211), the classification execution unit 44 acquires the class ID and classifies the frame into the queue corresponding to the class ID (step S212). If a hit is found in step S211 (No in step S21), the classification execution unit 44 classifies the frame into the default queue (step S213).

[0060] <Third Implementation Example> Next, refer to Figure 19 to Figure 24 , the third embodiment of the present invention is described. Figure 19 to Figure 24 In the embodiment described in the first embodiment and the second embodiment, Figures 1 to 18 Corresponding parts are marked with the same symbol. In the third embodiment of the present invention, the class table 45 and the scheduling unit 48 are dynamically changed according to the operating status of the communication device 2 to further improve the communication efficiency. The other configurations and processes are the same as those of the first and second embodiments, and thus the description thereof is omitted.

[0061] As a change of the class table 45 and the scheduling unit 48, for example, the frame length conditions of two or more classes classified according to the frame length condition are dynamically changed, thereby improving the communication efficiency according to the network state. That is, when the result of class classification based on the frame length condition is that there are a large number of frames that are prohibited from being transmitted due to the guard band, it is expected that the communication efficiency will be improved by further dividing the class.

[0062] Fig.19 It is a diagram showing the structure of the communication device 2 in the third embodiment. In addition to the configuration described in the first embodiment ( Fig.10 ), the communication device 2 of the third embodiment further includes a monitoring unit 51 and a setting management unit 52. The monitoring unit 51 and the setting management unit 52 are mainly deployed in the CPU 7 ( Figure 2 The remaining part of the communication device 2 is deployed in the network switch 6 as in the first embodiment.

[0063] The monitoring unit 51 monitors the internal state of the communication device 2. For example, it collects and analyzes information from the receiving unit 40, the classifying unit 41, the queuing unit 46, the gate unit 47, the transmission selecting unit 49, and the transmitting unit 50 to monitor the state of the communication device 2. Fig. 20 This is a flowchart showing an example of the operation processing of the monitoring unit 51. As an example of monitoring, the monitoring unit 51 collects statistical information of the gate unit 47 for each type and collects information on frames prohibited from being transmitted due to the guard band (step S300). Specifically, the monitoring unit 51 collects the number of frames prohibited from being transmitted due to the guard band and their frame lengths.

[0064] Fig.19 The setting management unit 52 shown makes a determination of setting change based on the state of the communication device 2 monitored by the monitoring unit 51 , and changes the settings of the class table 45 and the scheduling unit 48 .

[0065] Fig.21 It is a flowchart showing an example of the operation processing of the setting management unit 52. The setting management unit 52 performs the following processing for each category (step S301). First, the setting management unit 52 obtains statistical information of frames that are not sent due to the protection band from the monitoring unit 51 (step S302). Next, the setting management unit 52 creates a histogram for frame length for frames that are not sent due to the protection band based on the acquired information (step S303). Then, the setting management unit 52 accumulates the number of frames in each interval starting from the minimum value of the created histogram and obtains a cumulative histogram (step S304). Furthermore, the setting management unit 52 obtains the frame length at which the frame number ratio of the cumulative histogram exceeds a preset threshold (step S305).

[0066] Then, the setting management unit 52 determines whether the calculated frame length is smaller than the frame length currently being used in the current class division (step S306). If it is smaller than the frame length currently being used in the class division in step S306 (yes in step S306), it is expected that the communication efficiency can be improved by dividing the class, so the following steps S310 to S330 are executed.

[0067] That is, the setting management unit 52 first changes the setting of the separately defined class table (step S310). Next, the setting management unit 52 changes the setting of the separately defined door state table (step S320). Finally, the setting management unit 52 changes the setting of the separately defined guard band table (step S330), and ends the loop (step S307).

[0068] In addition, if it is not less than the frame length used in the class division in step S306 (No in step S306), the setting management unit 52 omits the processing of steps S310 to S330 and ends the loop (step S307).

[0069] Fig. 22 This is a flowchart showing the operation process of changing the setting of the class table 45. First, the setting management unit 52 extracts the setting of the class from the class table 45 (step S311). Next, the setting management unit 52 copies the extracted setting to the class table (step S312). Here, the setting management unit 52 adds the condition "the frame length is greater than the calculated frame length" to one of the copied settings (step S313). Furthermore, the setting management unit 52 overwrites the condition "the frame length is less than the calculated frame length" to the other of the copied settings, and sets the currently unused class ID as the class ID (step S314).

[0070] Fig.23 This is a flowchart showing the operation process of changing the settings of the door state table 70. When the setting of the door state table 70 is changed, first, the setting management unit 52 obtains the door setting of the class ID from the door state table 70 (step S321). Then, the setting management unit 52 copies and sets the obtained door setting as the door setting of the class ID newly used in the class table setting change (step S322).

[0071] Fig.24 1 is a flowchart showing the operation process of changing the setting of the guard band table 71. When the setting of the guard band table 71 is changed, the setting management unit 52 sets a guard band corresponding to the calculated frame length as the guard band setting of the class ID newly used in the class table setting change (step S310) (step S331). Thus, by appropriately rewriting the class table, gate state table, and guard band table according to the statistical information of the communication device 2, that is, the characteristics of the communication volume, it is possible to set an appropriate guard band table corresponding to the communication status at that time. For example, by obtaining statistical information of frames that are not transmitted due to the guard band, if there are a large number of untransmitted frames, it is possible to expect improvement in communication efficiency by further dividing the classes.

[0072] Furthermore, statistical information of frames passing through the communication device 2 can also be used as statistical information of the communication device 2, and the action mode of the communication device 2 can be inferred based on the statistical information of frames passing through the communication device 2. The class table, gate state table and protection band table are selected and set based on the inferred action mode of the communication device 2.

[0073] <Fourth Implementation Example> Next, refer to Fig.25 and Fig.26 , a fourth embodiment of the present invention is described. As a modification of the third embodiment, in the fourth embodiment of the present invention, the settings of the class table 45 and the scheduling unit 48 are held in advance in a preset form, and the settings are switched from the preset according to the operating status of the communication device 2. The other configurations and processes are the same as those of the first to third embodiments, so the description thereof is omitted.

[0074] The configuration of the communication device 2 in the fourth embodiment of the present invention is the same as that of the communication device 2 in the third embodiment. However, a setting preset table is provided in the setting management unit 52 . Fig.25 This is an example of the setting preset table 80 of the setting management unit 52. The setting preset table 80 holds the class table setting 82, the gate state table setting 83, and the guard band table setting 84 corresponding to the statistical information condition 81. These settings are set in advance assuming the operation mode of the communication device 2.

[0075] Fig.26It is a flowchart showing the operation processing of the setting management unit 52 in the fourth embodiment. The setting management unit 52 collects statistical information of the communication device 2 from the monitoring unit 51 (step S400). As the statistical information of the communication device 2, for example, the frame length of each type, the frame reception cycle, the number of frames, etc. can be used. Alternatively, the hardware and software status of the communication device 2 can also be monitored and used as statistical information.

[0076] Then, the setting management unit 52 searches the setting preset table 80 based on the collected statistical information to obtain the best class table setting 82, gate state table setting 83, and guard band table setting 84 for the operation mode of the communication device (step S401). Finally, the setting management unit 52 uses these setting information to sequentially change the settings of the class table, the door state table, and the guard band table (step S402). Furthermore, the collection of statistical information, the determination of the communication device operation mode, and the determination of the setting preset may also be implemented in other communication devices 2 connected by the shared bus 5 instead of the target communication device 2 itself.

[0077] <Fifth Implementation Example> Next, refer to Figure 27 to Figure 30 , the fifth embodiment of the present invention will be described. Figure 27 to Figure 30 In the embodiment described in the first to fourth embodiments, Figure 1 to Figure 26 Corresponding parts are marked with the same symbol. As a modification of the third and fourth embodiments, in the fifth embodiment of the present invention, each setting of the class table 45, the door state table 70, and the guard band table 71 is changed from outside the vehicle through Over-The-Air (OTA). Other configurations and processes are the same as those of the first to fourth embodiments, so descriptions thereof are omitted.

[0078] Fig. 27 This is a diagram showing the configuration of the vehicle-mounted network in the fifth embodiment. Apart from Figure 1 In addition to the networks shown, Fig. 27 The network in the vehicle 1 shown further includes a Tele-Communication Unit (TCU) 8 . The TCU 8 is connected to any of the communication devices 2. The TCU 8 communicates with a communication device outside the vehicle. The communication performed by the TCU 8 also includes transmission of vehicle information, but here, the description will be made in the form of receiving information for changing various settings.

[0079] Fig.28A schematic diagram showing the process of setting update based on OTA. When the TCU 8 receives the OTA data 90, the OTA data 90 is transferred to the communication device 2a that performs the OTA process. In the communication device 2a that performs the OTA process, the setting information is broken down for each setting target. For example, the communication device 2a is classified into the setting information 91 of each communication device and the other setting information 92. Then, the communication device 2a forwards the communication device setting information 91 to the corresponding communication device 2b. When the communication device 2b receives the setting information 91, the communication device 2b applies the setting. Here, the settings of the class table 45, the gate state table 70, and the guard band table 71 are applied.

[0080] Fig.29 It is a diagram showing the structure of the communication device 2 in the fifth embodiment of the present invention. Compared with the communication device 2 of the third embodiment, Fig.29 The communication device 2 shown is different in that a setting accepting unit 53 is added. The setting accepting unit 53 waits for a setting change from the communication device 2a that performs OTA processing, and performs settings of the communication device 2 when the settings are input. The setting accepting unit 53 is mainly deployed in the CPU 7. In addition, the monitoring unit 51 and the setting management unit 52 are deployed in the CPU 7 as in the third embodiment, and the remaining parts are deployed in the network switch 6 as in the first embodiment.

[0081] Fig.30 It is a flowchart showing the operation process of setting update based on OTA in the fifth embodiment of the present invention. First, the TCU 8 receives the setting information (step S500 ), and the TCU 8 forwards the received setting information to the communication device 2 a that performs the OTA process (step S501 ). Next, the communication device 2a performing OTA processing receives the setting information from the TCU 8 and classifies it into the communication device setting 91 and the other setting 92 (step S502). Then, the communication device 2a performing OTA processing transfers the communication device setting information 91 to each communication device 2b (step S503).

[0082] When the communication device 2b to be set is the communication device 2a itself that performs OTA processing, the communication device setting information 91 is not actually transmitted but schematically regarded as being forwarded within the communication device 2a itself. Finally, the communication device 2b extracts the settings of the class table 45, the gate state table 70, and the guard band table 71 from the received communication device setting information 91 (step S504), and updates the settings of each table. Furthermore, the classification of the setting information may also be implemented in the TCU instead of the communication device. Thus, by rewriting the class table, door status table, and guard band table by means of communication with the outside of the vehicle, an appropriate guard band can be set from outside the vehicle according to instructions, etc. Furthermore, communication with the outside of the vehicle is an example, and rewriting can also be performed by communication with other devices in the vehicle.

[0083] 〈Variation Example〉 Furthermore, the various embodiments described above are intended to explain the detailed description of the present invention in an easy-to-understand manner, and are not necessarily limited to all the described configurations. For example, as an example of network application, an in-vehicle network formed by an in-vehicle electronic device such as the communication device 2 is an example, and a network having the communication device 2 described in each embodiment can also be used in other networks such as a control network of a factory, a communication operator network, etc.

[0084] In addition, Figure 1 , Figure 2 , Fig.10 In the configuration diagrams shown in the figure, the control lines and information lines are shown only for the purpose of explanation, and not all control lines and information lines may be shown on the product. In fact, it can be considered that almost all the components are connected to each other. also, Figure 7 The time slot settings shown in the following table are Figure 8 The frame configuration shown in the figure is just an appropriate example for illustration and is not limited to the example shown in the figure. and then, Fig.13 The flow of the action processing in the flowchart shown in the above is also an example, and as long as the processing result is the same, the order of part of the processing may be changed or a plurality of processes may be executed simultaneously. Explanation of symbols

[0085] 1…vehicle, 2, 2a, 2b…communication device, 3…sensor, 4…actuator, 5…shared bus, 6…network switch, 7…CPU, 8…TCU, 40…receiving unit, 41…classification unit, 42…frame data classification unit, 43…frame length classification unit, 44…classification execution unit, 45…class table, 46…queue unit, 47…gate unit, 48…scheduling unit, 49…transmission selection unit, 50…transmission unit, 51…monitoring unit, 52…setting management unit, 53…setting acceptance unit, 63…frame data condition table, 64…frame length condition table, 65…class condition table, 70…gate status table, 71…guard band table, 80…setting preset table.

Claims

1. A communication device comprising: a receiving unit that receives a frame from inside or outside the vehicle; a classifying unit that classifies the frame received by the receiving unit into at least two classes based on information included in the frame; a queuing unit, which buffers the frames according to each category classified by the classification unit; a door portion which allows the frames queued in the queuing portion to pass through when the door is open, and cuts off the passing through when the door is closed; a scheduling unit that determines the open / closed state of the door portion and sets a guard band as a transmission prohibition time near the end time of the door open state of the class, thereby ensuring data transmission timing of other classes; and a sending unit configured to send the frame passed by the gate unit; The communication device is characterized in that The classification unit has: a frame data classification unit for classifying the frame according to each data condition; a frame length classification unit for classifying the frames according to their frame lengths; a class table that holds the data condition and frame length condition of the frame and class data assigned according to the data condition and the frame length condition as classification criteria in the frame data classification unit and the frame length classification unit; as well as a classification execution unit that classifies the frame according to the class table determining the class of the frame; The scheduling unit sets a guard band width corresponding to the maximum frame length of each class specified in the class table, The gate portion controls the open / closed state so as to ensure the guard band width determined for each class.

2. The communication device according to claim 1, characterized in that The scheduling unit has: A door status table for controlling the open and closed status of doors corresponding to each category at each periodic moment; and A guard band table is provided for setting the guard band widths of the various categories. The open / closed state of the door portion is determined based on the door state table and the guard band table.

3. The communication device according to claim 2, characterized in that: The scheduling unit maintains the gate unit in an open state for frames being transmitted near the end time of the gate open state of each category, and secures the guard band by closing the gate unit for frames not being transmitted.

4. The communication device according to claim 1, characterized in that: The queuing section is composed of at least two or more queues according to categories. The door portion is composed of at least two doors of different types. Queues of the same type are connected to gates.

5. The communication device according to claim 4, characterized in that: A transmission selection unit is provided behind the gate unit, and the transmission selection unit determines the transmission priority of each frame. When gate units of a plurality of types are opened at the same time and frames are output at the same time, the transmission priority of the frame is determined.

6. The communication device according to claim 5, characterized in that: The transmission unit transmits the frames in the order determined by the transmission selection unit.

7. The communication device according to claim 2, characterized in that: The basis for the frame length classification in the class table and the guard band table are determined in a matching manner.

8. The communication device according to claim 1, characterized in that: The classification section classifies the frames into a priority class and a non-priority class according to the content of the data.

9. The communication device according to claim 1, characterized in that: The data condition of the frame is a condition formed by a field value in a frame header, or a value of at least a part of a frame payload, or a combination thereof.

10. The communication device according to claim 2, characterized in that: The class table, the gate state table, and the guard band table can be appropriately rewritten according to the characteristics of the traffic.

11. The communication device according to claim 10, characterized in that: Statistical information of frames that are not transmitted due to the guard band is used as the characteristic of the traffic.

12. The communication device according to claim 10, characterized in that: using statistical information of frames passing through the communication device as a characteristic of the communication volume, An operation mode of the communication device is estimated based on the statistical information of frames passing through the device, and a setting is selected based on the estimated operation mode of the communication device.

13. The communication device according to claim 2, characterized in that: The class table, the gate state table, and the guard band table can be rewritten through communication.

14. A vehicle-mounted electronic device, characterized in that: The communication device according to claim 1 is mounted thereon.