CN115685843A - Local network management grouping method and device, electronic equipment and storage medium - Google Patents

Local network management grouping method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115685843A
CN115685843A CN202211374543.0A CN202211374543A CN115685843A CN 115685843 A CN115685843 A CN 115685843A CN 202211374543 A CN202211374543 A CN 202211374543A CN 115685843 A CN115685843 A CN 115685843A
Authority
CN
China
Prior art keywords
local network
controller
preset
network segment
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211374543.0A
Other languages
Chinese (zh)
Inventor
卢乾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Changan Automobile Co Ltd
Original Assignee
Chongqing Changan Automobile Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing Changan Automobile Co Ltd filed Critical Chongqing Changan Automobile Co Ltd
Priority to CN202211374543.0A priority Critical patent/CN115685843A/en
Publication of CN115685843A publication Critical patent/CN115685843A/en
Pending legal-status Critical Current

Links

Images

Abstract

The embodiment of the application provides a local network management grouping method, a device, electronic equipment and a storage medium, wherein the local network management grouping method comprises the steps of responding to a vehicle awakening event, determining a current local network cluster data set according to the vehicle awakening event, dividing the current local network cluster data set according to byte bits to obtain a preset network segment, matching the current local network cluster data set with the preset network segment for the first time, if the matching is successful, sending the current local network cluster data set to a target network segment, configuring a controller mask to enable the current local network cluster data set to be matched with a preset controller in the target network segment for the second time, and calling up a target controller according to a secondary matching result.

Description

Local network management grouping method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of local network management technologies for automobiles, and in particular, to a local network management grouping method and apparatus, an electronic device, and a computer-readable storage medium.
Background
With the continuous addition of the internet into the team of vehicle construction, the mobile interconnection function of the vehicle is more and more, and the intellectualization is more and more emphasized. Many automobile intelligentized important functions such as remote control, sentry mode, intelligent power supply, active heat dissipation and the like need to be realized under an OFF gear, so that Network Management (NM) needs to be used for controlling awakening and sleeping of corresponding parts of the automobile. Generally, the network management can be realized through AUTOSAR (Automotive Open System Architecture) and OSEK (Open Systems and the restrictive Interfaces for Automotive Electronics, automotive Electronics Open Systems and Corresponding interface standards) network management, the AUTOSAR and the OSEK functions using global network management are similar and are used for waking up the whole vehicle, that is, the whole vehicle network is asleep or awake, and the rough network management mode causes that some controllers which do not need to work are also woken up under some specific scene modes, so that the power consumption of the whole vehicle is increased, and the storage battery which is started up can not be started up after being woken up for a long time due to power shortage.
The prior art provides a network management method based on AUTOSAR, which is characterized in that AUTOSAR network management is carried out on a vehicle-mounted network, so that most domain controllers can enter dormancy after a vehicle is powered off, and the controllers in a functional scene are awakened according to a functional domain, so that the static power consumption of the whole vehicle is reduced. But when there is a functional scenario where multiple domains wake up simultaneously, more unrelated controllers will wake up.
Disclosure of Invention
In view of the above-mentioned shortcomings of the prior art, embodiments of the present application provide a local network management grouping method, apparatus, electronic device and computer-readable storage medium to solve the above technical problems.
The application provides a local network management grouping method, which comprises the following steps: responding to a vehicle awakening event, and determining a current local network cluster data group according to the vehicle awakening event; dividing the current local network cluster data group according to the byte number to obtain a preset network segment so as to match the current local network cluster data group with the preset network segment for one time, and if the matching is successful, sending the current local network cluster data group to a target network segment; and configuring a controller mask so as to enable the current local network cluster data set to be secondarily matched with a preset controller in the target network segment, and calling a target controller according to a secondary matching result.
In an embodiment of the present application, each local network cluster is obtained according to the partitioning result, and each local network cluster is allocated to each network segment; and configuring the network segment mask of each network segment according to the bit number of each local network cluster allocated by each network segment, and determining the network segment configured with the network segment mask as the preset network segment.
In an embodiment of the present application, performing a bit operation on the current local network cluster data set and the network segment mask of the preset network segment; and if the target network segment with the primary bit operation result meeting a first preset condition exists, sending the current local network cluster data set to the target network segment.
In an embodiment of the present application, each controller is allocated to each local network cluster, so that each controller is allocated to the preset network segment; and configuring a controller mask of each controller according to the bit number of each local network cluster corresponding to each controller, and determining the controller configured with the controller mask as a preset controller.
In an embodiment of the present application, performing a second bit operation on the current local network cluster data set and a controller mask of a preset controller in the target network segment; and if the target controller with the secondary bit operation result meeting a second preset condition exists, awakening the target controller.
In an embodiment of the present application, when responding to a remote wake-up network management packet, extracting the current local network cluster data group from the remote wake-up network management packet; when responding to a local awakening source, correspondingly setting local network cluster data through identifying the local awakening source to obtain the current local network cluster data group; the vehicle wake-up event comprises the remote wake-up network management message or the local wake-up source.
In an embodiment of the present application, the remote wake-up network management packet is received, a local network identifier parameter is extracted from the remote wake-up network management packet, and if the local network identifier parameter meets a preset identifier threshold, a response is executed.
In an embodiment of the present application, there is further provided a local network management packet device, including: the response module is used for responding to a wake-up event and determining a current local network cluster data set according to the wake-up event; the primary matching module is used for dividing the current local network cluster data set according to the byte number to obtain a preset network segment so as to perform primary matching on the current local network cluster data set and the preset network segment, and if the matching is successful, the current local network cluster data set is sent to a target network segment; and the secondary matching module is used for configuring a controller mask so as to enable the current local network cluster data set to be secondarily matched with a preset controller in the target network segment, and calling a target controller according to a secondary matching result.
In an embodiment of the present application, there is also provided an electronic device, including: one or more processors; storage means for storing one or more programs that, when executed by the one or more processors, cause the electronic device to implement the local network management grouping method as described above.
In an embodiment of the present application, there is also provided a computer-readable storage medium having stored thereon a computer program, which, when executed by a processor of a computer, causes the computer to execute the local network management grouping method as described above.
The beneficial effect of this application: according to the local network management grouping method, the preset network segment is set, the current local network cluster data set is matched with the preset network segment for the first time, so that the current local network cluster data set is sent to a target network segment, and the effect of isolating the network segment is achieved; and performing controller mask configuration, and performing secondary matching on the current local network cluster data set and a preset controller in the target network segment to call a target controller, so that the function of isolating the controller is achieved. And only awakening the associated controller and the network segment where the associated controller is located is realized through two times of matching, so that awakening of a non-controller and an irrelevant network segment is reduced, and energy consumption is saved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
fig. 1 is a schematic diagram of an implementation environment of a local network management grouping method according to an exemplary embodiment of the present application;
FIG. 2 is a flow chart illustrating a local network management grouping method in accordance with an exemplary embodiment of the present application;
FIG. 3 is a schematic flow chart diagram illustrating a default controller wake-up method according to an exemplary embodiment of the present application;
fig. 4 is a block diagram of a local network management packet apparatus shown in an exemplary embodiment of the present application;
FIG. 5 illustrates a schematic structural diagram of a computer system suitable for use in implementing the electronic device of an embodiment of the present application.
Detailed Description
The embodiments of the present application will be described with reference to the accompanying drawings and preferred embodiments, and other advantages and effects of the present application will be readily apparent to those skilled in the art from the disclosure in the specification. The present application is capable of other and different embodiments and its several details are capable of modifications and/or changes in various respects, all without departing from the spirit of the present application. It should be understood that the preferred embodiments are for purposes of illustration only and are not intended to limit the scope of the present disclosure.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present application, and the drawings only show the components related to the present application and are not drawn according to the number, shape and size of the components in actual implementation, the type, quantity and proportion of each component in actual implementation may be changed freely, and the layout of the components may be more complicated.
In the present application, the terms "first", "second", and the like are used only for distinguishing similar objects, and are not intended to limit the order or sequence of similar objects. Variations such as "comprise," "have," and the like are described to indicate that the term "subject" does not exclude the examples shown.
It should be understood that the reference numerals of various numbers, step numbers, etc. described in the present application are for convenience of description and are not intended to limit the scope of the present application. The sizes of the reference numerals in the present application do not mean the execution sequence, and the execution sequence of each process should be determined by the functions and the inherent logic.
In the following description, numerous details are set forth to provide a more thorough explanation of the embodiments of the present application, however, it will be apparent to one skilled in the art that the embodiments of the present application may be practiced without these specific details, and in other embodiments, well-known structures and devices are shown in block diagram form rather than in detail in order to avoid obscuring the embodiments of the present application.
It should be noted that, at present, network management commonly used in automobiles is generally global network management, that is, when a certain function is activated, all nodes (Electronic Control units, ECUs, electronic Control units, controllers) participating in network management on the network need to be woken up, even if some nodes do not participate in the activation of the function. As functions on vehicles become more and more complex, local Network management (PN) has a greater advantage than global Network management. Unlike the logic that all nodes wake up simultaneously in global network management, local network management divides the entire network into a plurality of PN groups according to functional attributes, and these PN groups can be regarded as virtual local networks. One or more nodes are awakened through the network management message instead of all nodes on the bus, the nodes of the virtual local networks can be in the same network segment or cross the network segment, and the same node can also belong to a plurality of PN groups. It should be appreciated that in the embodiments of the present application, the PN group is consistent with the local network cluster group, and the PN parameter set is consistent with the local network cluster data group. Although the prior local network management technology realizes only waking up part of network segments or part of controllers, the possibility of waking up unrelated network segments or unrelated controllers still exists, for example, when a node spans multiple network segments, once the node is woken up, the node can cause all the segments spanned by the node to be woken up, thereby causing some unrelated network segments and unrelated controllers to be woken up. To solve these problems, embodiments of the present application respectively provide a local network management grouping method, a local network management grouping apparatus, an electronic device, a computer-readable storage medium, and a computer program product based on automotive local network management, which will be described in detail below.
Referring to fig. 1, fig. 1 is a schematic diagram illustrating an implementation environment of a local network management grouping method according to an exemplary embodiment of the present application.
Referring to fig. 1, an implementation environment may include an automobile 101, a computer device 102, and a remote sender 103. The computer device 102 may be at least one of a microcomputer, an embedded computer, a neural network computer, and the like. The computer device 102 is operable to respond to a vehicle wake-up event and to invoke a target controller in accordance with the vehicle wake-up event. The remote sending terminal 103 may be any remote device supporting sending of a remote network management message, such as a smart phone, a tablet computer, a notebook computer, a microcomputer, a smart watch, and a smart car key. The remote sending end 103 and the automobile 101 are configured to send a vehicle wake-up event, where the remote sending end 103 sends a remote wake-up network management message to the computer device 102, and the automobile 101 sends information of a local wake-up source to the computer device 102, so that the computer device 102 performs subsequent execution.
Illustratively, the computer device 102, in response to a vehicle wake-up event, determines a current local network cluster data set according to the vehicle wake-up event, divides the current local network cluster data set according to a byte number to obtain a preset network segment, so as to perform primary matching on the current local network cluster data set and the preset network segment, if the matching is successful, transmits the current local network cluster data set to a target network segment, configures a controller mask to perform secondary matching on the current local network cluster data set and a preset controller in the target network segment, and calls a target controller according to a secondary matching result. Therefore, the technical scheme of the embodiment of the application can determine and awaken the target network segment and the target controller through the vehicle awakening event, reduces awakening of irrelevant network segments and a non-controller, saves energy consumption, can be suitable for various vehicle types, and is high in transportability.
It should be noted that the local network management grouping method provided in the embodiment of the present application is generally executed by the computer device 102, and accordingly, the local network management grouping apparatus is generally disposed in the computer device 102.
Referring to fig. 2, fig. 2 is a flowchart illustrating a local network management grouping method according to an exemplary embodiment of the present application. The method may be applied to the implementation environment shown in FIG. 1 and specifically executed by the computer device 102 in the implementation environment. It should be understood that the method may be applied to other exemplary implementation environments and is specifically executed by devices in other implementation environments, and the embodiment does not limit the implementation environment to which the method is applied.
Referring to fig. 2, in an exemplary embodiment, the local network management grouping method at least includes steps S210 to S230, which are described in detail as follows:
step S210, responding to the vehicle awakening event, and determining the current local network cluster data set according to the vehicle awakening event.
In one embodiment of the present application, in the sleep state, if the routing gateway ECU (gateway node, active node, main controller, routing gateway controller) is awakened by a vehicle awakening event, a response is executed, and a current local network cluster data set (current PN parameter set) is determined according to the vehicle awakening event. The current PN parameter set can be extracted from the network management message in the vehicle wake-up event; and setting the PN parameters corresponding to the preset functional scene to obtain the current PN parameter group by identifying the preset functional scene with a mapping relation with the vehicle awakening event. It should be understood that the routing gateway ECU is a preset controller having a gateway function among the preset controllers; the vehicle wake-up event may include a wake-up event set by a person skilled in the art, such as KL15 power-on, hard-line wake-up, timer, sensor, CAN (Controller Area Network) wake-up, and the like; the preset function scenario is set in advance by a person skilled in the art.
In an embodiment of the present application, the vehicle wake-up event includes a remote wake-up network management message or a local wake-up source, and the step S210 includes the following steps:
step S211, in response to the remote wake-up network management packet, extracting the current local network cluster data set from the remote wake-up network management packet.
In one embodiment of the present application, in response to a vehicle wake-up event, if the vehicle wake-up event is a remote wake-up network management message, extracting a current PN parameter set by identifying a byte number of a PN parameter set of the remote wake-up network management message.
Referring to table 1, table 1 is a format table of an automotive architecture network management message in an exemplary embodiment of the present application. Referring to table 1, byte0 is the ID of the source address, bytes 2 to 4 are the PN parameter set, and each bit in Byte1 is set as follows:
a Bit0: RMR (Repeat Message Request), repeat Message status Request flag;
and (3) Bit3: NMCSR (NM Coordinator Sleep NM), network management orchestration Sleep flag;
and (4) Bit4: AWU (Active Wakeup), activating Wakeup flag;
and (6) Bit6: PNI (Partial Network Information), local Network identity.
Figure BDA0003918577830000071
TABLE 1
Step S212, when responding to the local awakening source, correspondingly setting the local network cluster data through the identification of the local awakening source so as to obtain the current local network cluster data group.
In an embodiment of the present application, the routing gateway ECU responds to a vehicle wake-up event, determines a preset function scene having a mapping relationship with a local wake-up source by identifying the local wake-up source if the vehicle wake-up event is the local wake-up source, and sets a PN parameter group according to the preset function scene, that is, sets a PN parameter in the PN parameter group related to the preset function scene to obtain a current PN parameter group.
In a specific embodiment of the present application, when the preset controller is used as an active node, 3 scenarios are involved, and the preset PN parameter set corresponding to scenario 1 is 0x24F003, then when the routing gateway ECU is awakened by the local awakening source 1, the PN parameter set can be set to 0x24F003, and then the current PN parameter set is 0x24F003. It should be understood that 0x is a prefix of hexadecimal numbers.
In one embodiment of the present application, step S210 is preceded by: receiving a remote awakening network management message, extracting local network identification parameters from the remote awakening network management message, and executing response if the local network identification parameters meet a preset identification threshold value.
In this embodiment, in the sleep state, when the routing gateway ECU receives the remote wake-up network management message, the local network identification parameter (PNI value) is extracted by identifying the local network identification bit (PNI bit) of the remote wake-up network management message. If the PNI value meets a preset identification threshold value, awakening and executing response; and if the PNI value does not meet the preset identification threshold value, keeping the sleep. Illustratively, the predetermined flag threshold may be 1, or other values set by those skilled in the art.
And step S220, dividing the current local network cluster data group according to the byte number to obtain a preset network segment, matching the current local network cluster data group with the preset network segment for one time, and if the matching is successful, sending the current local network cluster data group to a target network segment.
In one embodiment of the present application, each Bit (Bit) of the current PN parameter set is divided according to the number of bytes, each Bit corresponds to a local network cluster, and the PN parameter sets located in bytes 2 to 4 are divided according to the number of bytes into the local network clusters PN0 to PN23, as shown in table 1. And carrying out network segment distribution according to the division result to obtain a preset network segment. And matching the current PN parameter set with the preset network segment for one time. If the matching is successful, determining the successfully matched preset network segment as a target network segment, and sending a network management message carrying the current PN parameter set to the target network segment so that a preset controller on the target network segment receives the network management message. And if the matching fails, not sending the network management message to the preset network segment with the failed matching. In the embodiment, the target network segment is obtained by matching the current PN parameter set with the preset network segment so as to send the network management message carrying the current PN parameter to the target network segment, thereby achieving the effect of isolating the network segment, namely only waking up the related network segment (the target network segment) and keeping the sleep state of the unrelated network segment continuously.
In one embodiment of the present application, step S220 includes the steps of:
and step S221, obtaining each local network cluster according to the division result, and distributing each local network cluster to each network segment.
In an embodiment of the present application, each local network cluster is obtained according to a result of dividing a current PN parameter set by a byte number, each local network cluster is allocated to each network segment according to a preset function scenario, and each network segment is allocated with at least one local network cluster in a division manner, which can be determined by a person skilled in the art according to an actual situation.
Referring to table 2, table 2 is a network segment allocation table in an embodiment of the present application. Table 2 is obtained by processing according to table 1, in table 1, the PN parameter sets from Byte2 to Byte4 have 24 bits, and each local network cluster corresponds to one Bit. Referring to table 2, the 24 bits are divided into a plurality of segments, so that each local network cluster is allocated to each segment.
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Byte 2 Network segment 1 Network segment 1 Network segment 1 Network segment 1 Network segment 2 Network segment 3 Network segment 3 Network segment 3
Byte 3 Network segment 4 Network segment 4 Network segment 5 Network segment 6 Network segment 6 Network segment 7 Network segment 7 Network segment 8
Byte 4 Network segment 9 Network segment 9 Network segment 9 Network segment 10 Network segment 10 Network segment 10 Network segment 11 Network segment N
TABLE 2
Step S222, network segment masks of the network segments are configured according to the bits of the local network clusters distributed by the network segments, and the network segments with the configured network segment masks are determined as preset network segments.
In an embodiment of the present application, in order to enable each network segment to perform an isolation function, a network segment mask may be configured for the network segment, so that the routing gateway ECU may determine, according to the network segment mask, which preset network segments the current PN parameter set in the remote wake-up network management message received by the routing gateway ECU or the current PN parameter set generated based on the local wake-up source is related to, and transmit the current PN parameter set to which preset network segments. In this embodiment, the network segment mask of the network segment may be configured according to the bit number of the local network cluster allocated by the network segment. If one local network cluster is distributed in the network segment, determining the bit number of the local network cluster as the network segment mask of the network segment; if the number of the local network clusters allocated to the network segment is multiple, adding the number of bits of the multiple local network clusters, and determining the operation result as the network segment mask of the network segment. And after the network segment mask configuration of the network segment is finished, determining the network segment as a preset network segment.
Referring to table 3, table 3 is a segment mask table in an embodiment of the present application. Referring to table 3, the segment mask of segment 1 is 0x0000F0, the segment mask of segment 2 is 0x000008, and the segment mask of segment 3 is 0x000007 … …, it should be understood that the segment mask of each segment in table 3 is determined according to the byte number (the number of bits of the local network cluster) corresponding to each segment in table 2, and the carry count system of the segment mask may be any one of carry systems such as binary, octal, decimal, hexadecimal, and the like, which is not limited herein.
Routing gateway ECU Network segment Network segment mask
ECU1 Network segment 1 0x0000F0
ECU5 Network segment 2 0x000008
ECU7 Network segment 3 0x000007
…… …… ……
TABLE 3
In one embodiment of the present application, step S220 further includes the following steps:
step S223, performing a bit operation on the current local network cluster data set and the network segment mask of the preset network segment.
In one embodiment of the application, a bit operation is respectively performed on the current PN parameter set and a network segment mask of a preset network segment, so as to determine a target network segment from the preset network segment according to a result of the bit operation. Illustratively, a single bit operation may be an and operation, or other operation as set forth by those skilled in the art.
Step S224, if there is a target network segment whose primary bit operation result meets the first preset condition, sending the current local network cluster data set to the target network segment.
In an embodiment of the present application, a preset network segment whose primary bit operation result satisfies a first preset condition is determined as a target network segment, and a network management message carrying a current PN parameter set is sent to the target network segment, so that a preset controller in the target network segment receives the network management message. And ignoring the preset network segment of which the primary bit operation result does not meet the first preset condition, namely keeping the preset network segment in the dormant state continuously. Illustratively, the first predetermined condition may be true (not 0), or other parameter set by one skilled in the art.
In a specific embodiment of the present application, the segment mask is represented by x and arranged according to the Intel format, that is, the high Byte of the mask corresponds to Byte4, the middle Byte corresponds to Byte3, the low Byte corresponds to Byte2, and the current PN parameter set is represented by y. And when the routing gateway ECU receives the remote awakening network management message with PNI =1 on a certain preset network segment, carrying out AND operation on the current PN parameter set y in the remote awakening network management message and the network segment mask x of each preset network segment, namely x & y. If the operation result is not 0, forwarding the remote awakening network management message to a preset network segment with the operation result not 0; otherwise, the preset network segment is kept silent, and the remote awakening network management message and the application message are not forwarded.
In another embodiment of the present application, the segment mask is represented by x and arranged according to the Intel format, i.e. the high Byte of the mask corresponds to Byte4, the middle Byte corresponds to Byte3, the low Byte corresponds to Byte2, and the current PN parameter set is represented by y. And the routing gateway ECU generates a current PN parameter set when being awakened by a local awakening source of the routing gateway ECU, and the current PN parameter set y is subjected to AND operation with the network segment mask x of each preset network segment, namely x & y. If the operation result is not 0, sending a network management message carrying the current PN parameter group to a preset network segment of which the operation result is not 0; otherwise, keeping silence in the preset network segment, and not sending the network management message nor forwarding the application message.
And step S230, configuring a controller mask to enable the current local network cluster data set to be secondarily matched with a preset controller in the target network segment, and calling a target controller according to a secondary matching result.
In one embodiment of the application, a controller mask is configured for a controller in a preset network segment to obtain a preset controller, after the preset controller in a target network segment receives a network management message carrying a current PN parameter set, the current PN parameter set is extracted from the network management message, and the current PN parameter set is secondarily matched with the controller mask of the preset controller in the target network segment to determine the preset controller successfully secondarily matched as a target controller and awaken the target controller, so that only an associated controller in the target network segment can be awakened, and a non-controller in the target network segment can continuously keep a dormant state.
In one embodiment of the present application, step S230 includes the following steps:
step S231, allocating each controller to each local network cluster, so that each controller is allocated to a preset network segment.
In an embodiment of the present application, each controller is allocated to each local network cluster according to a preset function scenario, and each local network cluster is allocated with at least one controller, so that each controller is stored (allocated) to a preset network segment, and a specific allocation manner can be determined by a person skilled in the art according to an actual situation.
Referring to table 4, table 4 is a controller (ECU) distribution table in an embodiment of the present application. Referring to table 4, based on the network segment allocation table of table 2, each ECU is allocated to each Bit so that each ECU is stored in each preset network segment. It should be understood that each controller occupies one Bit in principle, but considering that the Bit resource is limited, one Bit may be shared by ECUs having the same preset functional scene or the same wake-up scene, and one Bit may be shared by ECUs having wake-up requirements only in the case of wake-up of other ECUs.
Figure BDA0003918577830000121
TABLE 4
Step S232, configuring the controller masks of the controllers according to the bit numbers of the local network clusters corresponding to the controllers, and determining the controllers configured with the controller masks as preset controllers.
In an embodiment of the present application, in order to enable controllers in different bits in the same preset network segment to perform an isolation function, a controller mask may be configured for the controller to obtain a preset controller, so that the preset controller may determine, according to the controller mask, whether a current PN parameter set in a network management message received by the preset controller is related to itself, if so, the preset controller is awakened, and if not, the preset controller continues to sleep. In this embodiment, the bit number of the local network cluster corresponding to the controller may be determined as the controller mask of the controller, where the controller mask is the same for the controllers corresponding to the same local network cluster, and then the controller configured with the controller mask is determined as the preset controller.
Referring to table 5, table 5 is a controller mask table in an embodiment of the present application. Referring to table 5, it should be understood that the controller mask of ECU1 is 0x000080, and the controller mask of ECU2 is 0x000040 … …, that the controller mask of each controller in table 5 is determined according to the byte bit number corresponding to each controller in table 4, and the carry count system of the controller mask may be any one of binary, octal, decimal, hexadecimal, and the like, and is not limited herein.
Controller Controller mask
ECU1 000080
ECU2 000040
…… ……
TABLE 5
In one embodiment of the present application, step S230 includes the steps of:
step S233, perform secondary bit operation on the current local network cluster data set and the controller mask of the preset controller in the target network segment.
In an embodiment of the present application, after receiving a network management packet, a preset controller in a target network segment extracts a current PN parameter set from the network management packet, and performs a secondary bit operation on the current PN parameter set and a controller mask of the preset controller, so as to determine a wakeup target (target controller) from the preset controller in the target network segment according to a result of the secondary bit operation. Illustratively, the second order bit operation may be an and operation, or other operation as set by one skilled in the art.
In step S234, if there is a target controller whose secondary bit operation result satisfies the second preset condition, the target controller is awakened.
In one embodiment of the present application, the predetermined controller whose secondary bit operation result satisfies the second predetermined condition is determined as a target controller to wake up from the sleep state. And ignoring the preset controller of which the secondary bit operation result does not meet the second preset condition, namely keeping the preset controller in a dormant state continuously. Illustratively, the second predetermined condition may be true (not 0), or other parameter set by one skilled in the art.
In one embodiment of the present application, the controller mask is denoted by z and arranged in Intel format, i.e., the high Byte of the mask corresponds to Byte4, the medium Byte corresponds to Byte3, the low Byte corresponds to Byte2, and the current set of PN parameters is denoted by y. When the preset controller receives the network management message with PNI =1, the current PN parameter set y in the network management message is ANDed with the own controller mask z, namely z & y, if the result is true, the preset controller is awakened, otherwise, the preset controller keeps dormant.
Referring to fig. 3, fig. 3 is a schematic flow chart illustrating a default controller wake-up method according to an exemplary embodiment of the present disclosure. The method may be applied to the implementation environment shown in fig. 1 and is specifically executed by the automobile 101, the computer device 102 and the remote transmitting end 103 in the implementation environment. It should be understood that the method may also be applied to other exemplary implementation environments and specifically executed by devices in other implementation environments, and the embodiment does not limit the implementation environment to which the method is applied.
Referring to fig. 3, in an exemplary embodiment, the routing gateway ECU determines a current PN parameter set y according to a vehicle wake-up event in response to the vehicle wake-up event, performs an and operation on the current PN parameter set y and a segment mask x of a preset segment, and determines whether the and operation result is true, that is, whether x & y is true. If true, determining the preset network segment as a target network segment so as to send an NM message (network management message) carrying the current PN parameter set to the preset network segment; otherwise, the preset network segment keeps dormant, namely the NM message is not sent to the preset network segment. When the preset controller (preset ECU) receives the NM message, the current PN parameter set y in the NM message is AND-operated with the controller mask z of the preset controller, and whether the AND-operated result is true or not is judged, namely whether z & y is true or not. And if the preset controller is true, determining the preset controller as a target controller to wake up the preset controller, otherwise, keeping the preset controller in a dormant state.
Referring to fig. 4, fig. 4 is a block diagram of a local network management packet device according to an exemplary embodiment of the present application. The apparatus may be applied to the implementation environment shown in fig. 1 and is particularly configured in the computer device 102. The apparatus may also be applied to other exemplary implementation environments and specifically configured in other devices, and the embodiment does not limit the implementation environment to which the apparatus is applied.
Referring to fig. 4, the exemplary local network management packet apparatus includes:
a response module 410, configured to respond to a wake-up event, determine a current local network cluster data set according to the wake-up event; the primary matching module 420 is configured to divide the current local network cluster data group according to the byte number to obtain a preset network segment, perform primary matching on the current local network cluster data group and the preset network segment, and if the matching is successful, send the current local network cluster data group to a target network segment; and a secondary matching module 430, configured to configure a controller mask, so as to perform secondary matching between the current local network cluster data set and a preset controller in the target network segment, and call a target controller according to a secondary matching result.
It should be noted that the local network management grouping apparatus provided in the foregoing embodiment and the local network management grouping method provided in the foregoing embodiment belong to the same concept, and specific ways of performing operations by each module and unit have been described in detail in the method embodiment, and are not described again here. In practical applications, the local network management grouping apparatus provided in the foregoing embodiment may distribute the functions to different functional modules according to needs, that is, divide the internal structure of the apparatus into different functional modules to complete all or part of the functions described above, which is not limited herein.
An embodiment of the present application further provides an electronic device, including: one or more processors; a storage device, configured to store one or more programs, which when executed by the one or more processors, cause the electronic device to implement the local network management grouping method provided in the above-described embodiments.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a computer system suitable for implementing the electronic device according to the embodiment of the present application. It should be noted that the computer system 500 of the electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
Referring to fig. 5, a computer system 500 includes a Central Processing Unit (CPU) 501, which can perform various appropriate actions and processes, such as performing the local network management grouping method described in the above embodiments, according to a program stored in a Read-Only Memory (ROM) 502 or a program loaded from a storage portion 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for system operation are also stored. The CPU 501, ROM502, and RAM 503 are connected to each other through a bus 504. An Input/Output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input portion 506 including a keyboard, a mouse, and the like; an output section 507 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage portion 508 including a hard disk and the like; and a communication section 509 including a Network interface card such as a LAN (Local Area Network) card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The driver 510 is also connected to the I/O interface 505 as necessary. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as necessary, so that a computer program read out therefrom is mounted into the storage section 508 as necessary.
In particular, according to embodiments of the application, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising a computer program for performing the local network management packet method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 509, and/or installed from the removable medium 511. The computer program executes various functions defined in the system of the present application when executed by a Central Processing Unit (CPU) 501.
It should be noted that the computer readable medium shown in the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. The computer readable storage medium may be, for example, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM), a flash Memory, an optical fiber, a portable Compact Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer-readable signal medium may include a propagated data signal with a computer program embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. Each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
Another aspect of the present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor of a computer, causes the computer to execute the local network management grouping method as described above. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist alone without being assembled into the electronic device.
Another aspect of the application also provides a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to execute the local network management grouping method provided in the above embodiments.
The above-described embodiments are merely illustrative of the principles and utilities of the present application and are not intended to limit the application. Any person skilled in the art can modify or change the above-described embodiments without departing from the spirit and scope of the present application. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical concepts disclosed in the present application shall be covered by the claims of the present application.

Claims (10)

1. A local network management packet method, characterized in that the local network management packet method comprises:
responding to a vehicle awakening event, and determining a current local network cluster data group according to the vehicle awakening event;
dividing the current local network cluster data group according to the byte number to obtain a preset network segment so as to match the current local network cluster data group with the preset network segment for one time, and if the matching is successful, sending the current local network cluster data group to a target network segment;
and configuring a controller mask so as to enable the current local network cluster data set to be secondarily matched with a preset controller in the target network segment, and calling a target controller according to a secondary matching result.
2. The local network management grouping method of claim 1, wherein the step of dividing the current local network cluster data group according to the byte number to obtain a preset network segment comprises:
obtaining each local network cluster according to the division result, and distributing each local network cluster to each network segment;
and configuring the network segment mask of each network segment according to the bit number of each local network cluster distributed by each network segment, and determining the network segment with the configured network segment mask as the preset network segment.
3. The local network management grouping method of claim 2, wherein the matching of the current local network cluster data set with the preset network segment is performed once, and if the matching is successful, the current local network cluster data set is sent to a target network segment, comprising:
performing a bit operation on the current local network cluster data set and the network segment mask of the preset network segment;
and if the target network segment with the primary bit operation result meeting a first preset condition exists, sending the current local network cluster data set to the target network segment.
4. The local network management grouping method of claim 2, wherein configuring the controller mask comprises:
distributing each controller to each local network cluster so as to distribute each controller to the preset network segment;
and configuring a controller mask of each controller according to the bit number of each local network cluster corresponding to each controller, and determining the controller configured with the controller mask as a preset controller.
5. The local network management grouping method of any one of claims 1 to 4, wherein the performing of the secondary matching between the current local network cluster data set and the preset controller in the target network segment and the calling of the target controller according to the secondary matching result comprises:
performing secondary bit operation on the current local network cluster data set and a controller mask of a preset controller in the target network segment;
and if the target controller with the secondary bit operation result meeting a second preset condition exists, awakening the target controller.
6. The local network management grouping method of claim 1, wherein determining a current local network cluster data group from a vehicle wake-up event in response to the vehicle wake-up event comprises:
when responding to a remote awakening network management message, extracting the current local network cluster data group from the remote awakening network management message;
when responding to a local awakening source, correspondingly setting local network cluster data through identifying the local awakening source to obtain the current local network cluster data group;
the vehicle wake-up event comprises the remote wake-up network management message or the local wake-up source.
7. The local network management packet method of claim 2, wherein in response to a remote wake-up network management packet prior, the local network management packet method comprises:
and receiving the remote awakening network management message, extracting local network identification parameters from the remote awakening network management message, and executing response if the local network identification parameters meet a preset identification threshold value.
8. A local network management packet device, wherein the local network management packet device comprises:
the response module is used for responding to a wake-up event and determining a current local network cluster data set according to the wake-up event;
the primary matching module is used for dividing the current local network cluster data set according to the byte number to obtain a preset network segment so as to perform primary matching on the current local network cluster data set and the preset network segment, and if the matching is successful, the current local network cluster data set is sent to a target network segment;
and the secondary matching module is used for configuring a controller mask so as to carry out secondary matching on the current local network cluster data set and a preset controller in the target network segment, and calling a target controller according to a secondary matching result.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
storage means for storing one or more programs that, when executed by the one or more processors, cause the electronic device to implement the local network management grouping method of any of claims 1 to 7.
10. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor of a computer, causes the computer to execute the local network management grouping method of any one of claims 1 to 7.
CN202211374543.0A 2022-10-31 2022-10-31 Local network management grouping method and device, electronic equipment and storage medium Pending CN115685843A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211374543.0A CN115685843A (en) 2022-10-31 2022-10-31 Local network management grouping method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211374543.0A CN115685843A (en) 2022-10-31 2022-10-31 Local network management grouping method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115685843A true CN115685843A (en) 2023-02-03

Family

ID=85048727

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211374543.0A Pending CN115685843A (en) 2022-10-31 2022-10-31 Local network management grouping method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115685843A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117792809A (en) * 2024-02-28 2024-03-29 中国第一汽车股份有限公司 Vehicle network management method, device, computer equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117792809A (en) * 2024-02-28 2024-03-29 中国第一汽车股份有限公司 Vehicle network management method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN113253648B (en) Vehicle and network management method thereof, domain controller, storage medium, and electronic device
JP2012080583A (en) Conveying content delivery schedule to mobile terminals
CN115685843A (en) Local network management grouping method and device, electronic equipment and storage medium
CN112445147A (en) Awakening method, system and device of intelligent equipment, electronic equipment and storage medium
CN113259421A (en) Complete vehicle network partial dormancy management system and method and central gateway
CN113993196B (en) Node control method, system, equipment and storage medium of vehicle-mounted Ethernet
CN111624902A (en) Control method and device for dormancy and awakening
CN111490918B (en) Vehicle-mounted Ethernet network awakening system, method and device and computer equipment
CN110990066B (en) Sleep awakening method of communication terminal
CN112615726A (en) Low-power-consumption processing method and device with variable wake-up time
CN116853152A (en) Timing management system and timing management method for electric automobile
CN115167218A (en) Vehicle-mounted local network management method and system
CN114670762B (en) Vehicle-mounted equipment awakening control method and device and electric automobile
WO2022100374A1 (en) Hierarchical management method and system for terminal device
CN104954148A (en) Control method and device of node equipment and router
JP2008044391A (en) Method and device for managing task of on-vehicle electronic control unit
CN117792809A (en) Vehicle network management method, device, computer equipment and storage medium
CN117527847A (en) Vehicle network management method, device, equipment and storage medium
CN111385167A (en) Network connection recovery method, device, computer device and storage medium
CN112068493A (en) Whole vehicle sleep awakening control method and control system
CN117376053A (en) Vehicle network segment wake-up method, device, equipment, medium and program product
CN115484618A (en) Network balancing method and device, internet of things equipment and cloud server
KR102371990B1 (en) Controller for vehicle and method for controlling power of controller for vehicle
US20240096140A1 (en) Electric vehicle network management system and method for therefor
CN116193472A (en) Vehicle-mounted network management method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination