Message sending control method and device, electronic equipment and storage medium

By controlling message sending based on the delayed startup time and operating cycle when the system is started, and using multiple message sending ports for peak staggering processing, the system reset and interruption problems caused by the large amount of message sending in the existing technology are solved, and the problem is improved. This reduces the peak-shifting effect of message transmission and the Ethernet bus load.

CN118802404APending Publication Date: 2024-10-18CHINA FAW CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410777968.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Existing message sending control methods have poor peak-shifting effect when a large amount of messages are sent, leading to problems such as system reset, operation interruption, and periodic task operation loss.

Method used

By responding to the system startup command, multiple target functions to be run periodically in the target startup system are determined, and message sending is controlled based on the delayed startup time and operating cycle, and multiple message sending ports are used for peak staggering processing to reduce system alarms. Text delivery peak.

Benefits of technology

It effectively reduces the number of messages sent at the peak of system message sending, improves the peak staggering effect, reduces the Ethernet bus load, and avoids task execution timeout and system operation interruption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118802404A_ABST
    Figure CN118802404A_ABST
Patent Text Reader

Abstract

The invention discloses a message sending control method and device, electronic equipment and a storage medium. The method comprises the following steps: in response to a system starting instruction, determining a plurality of target functions to be periodically operated in a target starting system; and for each target function, controlling the sending of a start message corresponding to the target function based on delay start time, and controlling the sending of a periodic operation message corresponding to the target function based on an operation period, the delay starting time is determined based on the operation cycle corresponding to the target function and the number of message sending ports corresponding to the target function; and thus, the target bus carries out message transmission of the multiple target functions. According to the technical scheme, the message sending amount of the message sending peak of the system can be reduced, the peak shifting effect of message sending is improved, and the Ethernet bus load is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer application technology, and in particular to a control method, device, electronic equipment and storage medium for message sending. Background Art

[0002] It is understandable that with limited system operating resources, if a large number of messages are sent out at the same time, a series of problems such as system reset, operation interruption and loss of periodic task operation will usually occur. Therefore, it is necessary to stagger the sending of messages.

[0003] In the related art, the common method for processing staggered message sending has the problem that the staggered effect cannot meet the user needs when the message sending volume is large. Therefore, the current message sending control method has the technical problem of poor staggered effect. Summary of the invention

[0004] The present invention provides a message sending control method, device, electronic device and storage medium to solve the technical problem that the current message sending control method has a poor peak shifting effect.

[0005] According to one aspect of the present invention, a method for controlling message sending is provided, wherein the method comprises:

[0006] In response to the system startup instruction, determining a plurality of target functions to be cycled in the target startup system;

[0007] For each of the target functions, the sending of the start message corresponding to the target function is controlled based on the delayed start time, and the sending of the periodic operation message corresponding to the target function is controlled based on the operation cycle.

[0008] Wherein, the delayed start time is determined based on the operation cycle corresponding to the target function and the port number of the message sending port corresponding to the target function;

[0009] So that the target bus can perform message transmission of multiple target functions.

[0010] According to another aspect of the present invention, a control device for message sending is provided, wherein the device comprises:

[0011] A function determination module, for determining a plurality of target functions to be periodically executed in a target startup system in response to a system startup instruction;

[0012] a sending control module, for each of the target functions, controlling the sending of a start message corresponding to the target function based on a delayed start time, and controlling the sending of a periodic operation message corresponding to the target function based on an operation cycle,

[0013] The delayed start time is determined based on the operation cycle corresponding to the target function and the port number of the message sending port corresponding to the target function.

[0014] The message transmission module is used to enable the target bus to perform message transmission of multiple target functions.

[0015] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0016] at least one processor; and

[0017] a memory communicatively connected to the at least one processor; wherein,

[0018] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the message sending control method described in any embodiment of the present invention.

[0019] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the message sending control method described in any embodiment of the present invention when executed.

[0020] The technical solution of the embodiment of the present invention determines multiple target functions to be run periodically in the target startup system by responding to the system startup instruction; for each of the target functions, the sending of the startup message corresponding to the target function is controlled based on the delayed startup time, and the sending of the periodic operation message corresponding to the target function is controlled based on the operation cycle, wherein the delayed startup time is determined based on the operation cycle corresponding to the target function and the number of ports of the message sending port corresponding to the target function; so that the target bus can perform message transmission of multiple target functions. The present invention reduces the message sending amount at the peak of the system message sending, improves the peak-shifting effect of message sending, and reduces the Ethernet bus load.

[0021] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0023] Figure 1 is a flow chart of a control method for message sending provided according to Embodiment 1 of the present invention;

[0024] Figure 2 is a flow chart of a control method for message sending provided according to Embodiment 2 of the present invention;

[0025] Figure 3 This is a data diagram of the message sending volume before the peak hour provided by an embodiment of the present invention;

[0026] Figure 4 This is a data diagram of the amount of message transmission after peak shifting provided by an embodiment of the present invention;

[0027] Figure 5 This is a schematic diagram of the structure of a control device for message sending provided according to Embodiment 3 of the present invention;

[0028] Figure 6 It is a structural schematic diagram of an electronic device for implementing the message sending control method of an embodiment of the present invention. DETAILED DESCRIPTION

[0029] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0031] Embodiment 1

[0032] Figure 1A flowchart of a method for controlling message sending is provided for the first embodiment of the present invention. This embodiment is applicable to the case of staggered control of message sending. The method can be executed by a control device for message sending. The control device for message sending can be implemented in the form of hardware and / or software. The control device for message sending can be configured in a computer. Figure 1 As shown, the method includes:

[0033] S110 , in response to a system startup instruction, determining a plurality of target functions to be periodically executed in a target startup system.

[0034] The system startup instruction may be understood as a system startup instruction.

[0035] In the embodiment of the present invention, the system startup instruction may be generated based on a system startup operation. The system startup operation may be an operation of triggering a system startup button.

[0036] The target startup system can be understood as the startup target system.

[0037] In an embodiment of the present invention, the target startup system can be preset according to the scenario requirements, which is not specifically limited here. Optionally, the target startup system may include a system developed based on an automotive open system architecture. The present invention solves the technical problem in the relevant technical field that the common optimized message sending control method is difficult to implement in a system developed based on an automotive open system architecture. The present invention can be applied to any system, ensuring the versatility of the message sending control method.

[0038] The present invention is applicable to the case where messages are sent through multiple ports.

[0039] The target function can be understood as a functional module in the target startup system. In the embodiment of the present invention, the periodic operation of the target function can be controlled, that is, the periodic message sending of the target function can be controlled, wherein the execution subject can be a controller.

[0040] S120. For each of the target functions, control the sending of a startup message corresponding to the target function based on the delayed startup time, and control the sending of a periodic operation message corresponding to the target function based on the operation cycle.

[0041] The delayed start time is determined based on the operation cycle corresponding to the target function and the port number of the message sending port corresponding to the target function.

[0042] Specifically, in response to the system startup instruction, the target startup system is started and the target function is started. In the embodiment of the present invention, when the startup target function is started, the sending of the startup message is controlled based on the delayed startup time corresponding to the target function.

[0043] Further, after starting the target function, the target function is periodically run. In the embodiment of the present invention, during the periodic running of the target function, the periodic sending of the periodic running message is controlled based on the running cycle corresponding to the target function.

[0044] The startup message may be understood as a message indicating the startup of the target function. Optionally, the startup message may be a someip message.

[0045] The delayed start time can be understood as the delay time of sending the start message. In the embodiment of the present invention, the delayed start time corresponding to each target function can be determined in advance based on the operation cycle corresponding to the target function and the port number of the message sending port corresponding to the target function.

[0046] In the embodiment of the present invention, the operation cycle of the target function is also the sending cycle of the periodic operation message of the target function.

[0047] The periodic operation message can be understood as a message indicating that the target function is periodically running. Optionally, the periodic operation message can be a someip message.

[0048] The message sending port can be used to send the startup message or the periodic operation message.

[0049] The port number can be understood as the number of the message sending ports.

[0050] In an embodiment of the present invention, the delayed start times corresponding to different target functions may be the same or different. The operation cycles corresponding to different target functions may be the same or different. The port numbers of the message sending ports corresponding to different target functions may be the same or different. The message sending ports corresponding to different target functions may be different.

[0051] Exemplarily, the target startup system includes target function 1, target function 2 and target function 3. For target function 1, the operation cycle may be 1ms, the number of the message sending port may be 3, namely port 1, port 2 and port 3, and the delayed startup time may be 0ms; for target function 2, the operation cycle may be 5ms, the number of the message sending port may be 6, namely ports 4-9, and the delayed startup time may be 1ms; for target function 3, the operation cycle may be 20ms, the number of the message sending port may be 1, namely port 10, and the delayed startup time may be 2ms.

[0052] Optionally, the controlling the sending of the startup message corresponding to the target function based on the delayed startup time includes:

[0053] Determine the message sending time point based on the delayed start time;

[0054] At the message sending time point, one startup message is sent respectively through each message sending port corresponding to the target function.

[0055] The message sending time point may be understood as the time point at which the message is sent.

[0056] In the embodiment of the present invention, each of the message sending ports can send one message at the same time. Exemplarily, the number of ports of the target function 1 can be 3, and the target function can send 3 messages at the same time through the message sending port at the message sending time point.

[0057] The present invention is applicable to the case where messages are sent through multiple ports.

[0058] S130, enabling the target bus to transmit messages of multiple target functions.

[0059] The target bus may be used to transmit messages. In the embodiment of the present invention, messages of multiple target functions may be transmitted via the same target bus.

[0060] The technical solution of the embodiment of the present invention determines multiple target functions to be run periodically in the target startup system by responding to the system startup instruction; for each of the target functions, the sending of the startup message corresponding to the target function is controlled based on the delayed startup time, and the sending of the periodic operation message corresponding to the target function is controlled based on the operation cycle, wherein the delayed startup time is determined based on the operation cycle corresponding to the target function and the number of ports of the message sending port corresponding to the target function; so that the target bus can perform message transmission of multiple target functions. The present invention reduces the message sending amount at the peak of the system message sending, improves the peak-shifting effect of message sending, and reduces the Ethernet bus load.

[0061] Embodiment 2

[0062] Figure 2 This is a flow chart of a control method for message sending provided in the second embodiment of the present invention. This embodiment is an addition to the control of sending the start message corresponding to the target function based on the delayed start time described in the above embodiment. Figure 2 As shown, the method includes:

[0063] S210: Determine a plurality of target functions in the target startup system.

[0064] S220. For each of the target functions, determine the operation cycle and the port number of the message sending port to obtain a cycle set and a port number set.

[0065] The period set may be understood as a set corresponding to an operation period, and the port number set may be understood as a set corresponding to a plurality of port numbers.

[0066] For example, the period set N1 = {1ms, 2ms, 5ms, 10ms, 20ms, 50ms, 100ms}. The port number set N2 = {n 1ms ,n 2ms ,n 5ms ,n 10ms ,n 20ms ,n 50ms ,n 100ms It can be understood that the amount of message transmission will reach a peak when the system starts, that is, at 0ms, and when the periods of 100ms, 200ms, and 300ms overlap. The amount of message transmission m = ∑n i (n i =n 1ms …n 100ms ).

[0067] S230: Based on the period set and the port number set, divide the plurality of target functions into a first function and a second function.

[0068] The first function and the second function may be understood as two types of functions obtained by division.

[0069] Optionally, dividing the plurality of target functions into a first function and a second function based on the period set and the port number set includes:

[0070] For each of the operating cycles in the cycle set, determine the number of factor cycles corresponding to the operating cycle, wherein the period value of the factor cycle is a factor of the period value of the operating cycle, and the factor cycle belongs to the cycle set;

[0071] Dividing the port number set into a first subset and a second subset, wherein the value of the port number in the first subset is smaller than the value of the port number in the second subset;

[0072] The plurality of target functions are divided into first functions and second functions based on the number of the factor cycles and a target subset, wherein the target subset includes the first subset or the second subset.

[0073] Exemplarily, the period set N1 = {1ms, 2ms, 5ms, 10ms, 20ms, 50ms, 100ms}.

[0074] Specifically, the cycle value of an operation cycle of 2 ms is 2, the cycle value of an operation cycle of 10 ms is 10, and so on, which will not be described in detail here.

[0075] Specifically, the factor period corresponding to the operating period of 2ms includes 1ms; the factor period corresponding to the operating period of 50ms includes 1ms, 2ms, 5ms and 10ms; the factor period corresponding to the operating period of 100ms includes 1ms, 2ms, 5ms, 10ms, 20ms and 50ms, and so on, which will not be elaborated here.

[0076] The first subset and the second subset can be understood as two subsets obtained by dividing the port number set.

[0077] For example, the port number set N2 = {n 1ms ,n 2ms ,n 5ms ,n 10ms ,n 20ms ,n 50ms ,n 100ms}.

[0078] The first subset M1=={n 1ms ,n 2ms ,n 5ms}, the second subset M2 = {n 10ms ,n 20ms ,n 50ms ,n 100ms}, wherein the value of any port number in M2 is greater than the value of any port number in M1.

[0079] The target subset may be understood as a subset used to divide target functions.

[0080] Optionally, dividing the plurality of target functions into first functions and second functions based on the number of factor cycles and the second subset includes:

[0081] For each of the target functions, if the number of the factor cycles corresponding to the running cycle exceeds a preset threshold and the number of ports belongs to the second subset, the target function is classified as the second function; otherwise, the target function is classified as the first function.

[0082] The preset threshold value may be understood as a threshold value for dividing the target function. The preset threshold value may be an integer value. In the embodiment of the present invention, the preset threshold value may be preset according to the scenario requirements and is not specifically limited here. For example, the preset threshold value is 2, 3, or 5, etc.

[0083] Optionally, dividing the plurality of target functions into first functions and second functions based on the number of factor cycles and the first subset includes:

[0084] For each of the target functions, if the number of the factor cycles corresponding to the running cycle does not exceed a preset threshold and the number of ports belongs to the first subset, the target function is classified as the first function; otherwise, the target function is classified as the second function.

[0085] S240: Determine two different preset delay times, and use the two different preset delay times as the delayed start times of the first function and the second function, respectively.

[0086] Optionally, the preset delay time corresponding to the first function is smaller than the preset delay time corresponding to the second function.

[0087] The preset delay time can be preset according to the scene requirements and is not specifically limited here. For example, the preset delay time corresponding to the first function is 0ms, and the preset delay time corresponding to the second function is 2ms; or, the preset delay time corresponding to the first function is 1ms, and the preset delay time corresponding to the second function is 2ms, etc.

[0088] The present invention can effectively reduce the message sending amount at the peak of the system message sending, thereby achieving the effect of reducing the Ethernet bus load, by setting a larger preset delay time for a target function with a larger number of ports and a larger number of factor cycles, or setting a smaller preset delay time for a target function with a smaller number of ports and a smaller number of factor cycles.

[0089] S250 , in response to the system startup instruction, determining a plurality of target functions to be executed periodically in the target startup system.

[0090] S260. For each of the target functions, control the sending of the startup message corresponding to the target function based on the delayed startup time, and control the sending of the periodic operation message corresponding to the target function based on the operation cycle.

[0091] S270, enabling the target bus to perform message transmission of multiple target functions.

[0092] The technical solution of the embodiment of the present invention is to determine multiple target functions in the target startup system; for each target function, determine the operation cycle and the port number of the message sending port to obtain a cycle set and a port number set; based on the cycle set and the port number set, divide the multiple target functions into a first function and a second function; determine two different preset delay times, and use the two different preset delay times as the delayed startup time of the first function and the second function respectively. The present invention effectively reduces the message sending volume at the peak of the system message sending by dividing the target functions and setting different preset delay times for the functions of different categories obtained by the division, improves the peak-shifting effect of message sending, and reduces the Ethernet bus load.

[0093] As an optional embodiment of the above embodiment, the overall process of controlling message sending may be as follows, wherein the software module represents the target function.

[0094] In the target startup system, someip messages are triggered by software modules that run at a certain period and sent out. Each time it runs, each message sending port sends a message. Different software modules run at 1ms, 2ms, 5ms, 10ms, 50ms, and 100ms periods according to functional requirements and network definitions.

[0095] Take software module A as an example. The running cycle of software module A is 2ms. There are n message sending interfaces. At the 2ims moment of system operation, where i is a natural number, software module A sends n messages to the outside. That is, the number of messages sent by the system at time T is the number of all software module ports triggered at time T.

[0096] Traditional message sending: Assume that the system runs at 1ms, 2ms, 5ms, 10ms, 20ms, 50ms, and 100ms, and the number of ports is n respectively. 1ms , n 2ms , n 5ms , n 10ms , n 20ms , n 50ms , n 100ms , let the number of ports set N = {n 1ms , n 2ms , n 5ms , n 10ms , n 20ms , n 50ms , n 100ms}, then the instantaneous message peak of the system is the 100th ims (each interface will be triggered at the same time), and the message sending volume is m = ∑n i (n i =n 1ms …n100ms ),like Figure 3 As shown, Figure 3 This is a data diagram of the message sending volume before the peak hour provided according to an embodiment of the present invention.

[0097] The message sending of the present invention: adding a delayed start time, staggering the system task triggering interval, and reducing the probability of message peaks. By adding a 2kms (k=1, 2, 3, 4) delayed start time to the initial running time of 5ms, 10ms, 20ms, and 50ms tasks respectively, the message peak-shifting sending is realized, such as Figure 4 As shown, Figure 4 This is a data diagram of the amount of message transmission after peak shifting provided according to an embodiment of the present invention.

[0098] contrast Figure 3 and Figure 4 Obviously, the present invention effectively reduces the message sending volume at the peak of the system message sending, avoids problems such as task execution timeout, system operation interruption and task loss caused by excessive message sending volume, and effectively reduces the stack space requirement and reduces the Ethernet bus load.

[0099] Embodiment 3

[0100] Figure 5 This is a schematic diagram of the structure of a control device for message sending provided in Embodiment 3 of the present invention. Figure 5 As shown, the device includes: a function determination module 310, a sending control module 320 and a message transmission module 330.

[0101] Among them, the function determination module 310 is used to determine multiple target functions to be cycled in the target startup system in response to the system startup instruction; the sending control module 320 is used to control the sending of the startup message corresponding to the target function based on the delayed startup time, and control the sending of the cycle operation message corresponding to the target function based on the operation cycle for each of the target functions, wherein the delayed startup time is determined based on the operation cycle corresponding to the target function and the port number of the message sending port corresponding to the target function. The message transmission module 330 is used to enable the target bus to perform message transmission of multiple target functions.

[0102] The technical solution of the embodiment of the present invention determines multiple target functions to be run periodically in the target startup system by responding to the system startup instruction; for each of the target functions, the sending of the startup message corresponding to the target function is controlled based on the delayed startup time, and the sending of the periodic operation message corresponding to the target function is controlled based on the operation cycle, wherein the delayed startup time is determined based on the operation cycle corresponding to the target function and the number of ports of the message sending port corresponding to the target function; so that the target bus can perform message transmission of multiple target functions. The present invention reduces the message sending amount at the peak of the system message sending, improves the peak-shifting effect of message sending, and reduces the Ethernet bus load.

[0103] Optionally, the control device for sending the message further includes:

[0104] A system analysis module, used for determining a plurality of target functions in the target startup system before controlling the sending of the startup message corresponding to the target function based on the delayed startup time;

[0105] A set determination module, used for determining the operation cycle and the port number of the message sending port for each target function to obtain a cycle set and a port number set;

[0106] A function division module, used for dividing the plurality of target functions into a first function and a second function based on the period set and the port number set;

[0107] The delay determination module is used to determine two different preset delay times, and use the two different preset delay times as the delayed start times of the first function and the second function respectively.

[0108] Optionally, the function division module includes:

[0109] a factor period determination unit, configured to determine, for each of the operating periods in the period set, the number of factor periods corresponding to the operating period, wherein the period value of the factor period is a factor of the period value of the operating period, and the factor period belongs to the period set;

[0110] A set division unit, used for dividing the port number set into a first subset and a second subset, wherein the value of the port number in the first subset is smaller than the value of the port number in the second subset;

[0111] A function division unit is used to divide the multiple target functions into a first function and a second function based on the number of the factor cycles and a target subset, wherein the target subset includes the first subset or the second subset.

[0112] Optionally, the function division unit includes: a first division sub-unit, used for dividing each of the target functions into the second function if the number of the factor cycles corresponding to the operating cycle exceeds a preset threshold and the number of ports belongs to the second subset, otherwise dividing the target function into the first function.

[0113] Optionally, the function division unit includes: a second division sub-unit, used for dividing each of the target functions into the first function if the number of the factor cycles corresponding to the operating cycle does not exceed a preset threshold and the number of ports belongs to the first subset, otherwise dividing the target function into the second function.

[0114] Optionally, the preset delay time corresponding to the first function is smaller than the preset delay time corresponding to the second function.

[0115] Optionally, the sending control module 320 includes:

[0116] A time point determination unit, used to determine a message sending time point based on the delayed start time;

[0117] The startup message sending unit is used to send one startup message respectively through each message sending port corresponding to the target function at the message sending time point.

[0118] The message sending control device provided in the embodiment of the present invention can execute the message sending control method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0119] Embodiment 4

[0120] Figure 6 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0121] like Figure 6As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0122] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0123] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a control method for message sending.

[0124] In some embodiments, the control method for message transmission may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the control method for message transmission described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the control method for message transmission in any other appropriate manner (e.g., by means of firmware).

[0125] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0126] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0127] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0128] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0129] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0130] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0131] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0132] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for controlling message sending, characterized in that: include: In response to the system startup instruction, determining a plurality of target functions to be cycled in the target startup system; For each of the target functions, the sending of the start message corresponding to the target function is controlled based on the delayed start time, and the sending of the periodic operation message corresponding to the target function is controlled based on the operation cycle. Wherein, the delayed start time is determined based on the operation cycle corresponding to the target function and the port number of the message sending port corresponding to the target function; So that the target bus can perform message transmission of multiple target functions.

2. The method according to claim 1, characterized in that Before the sending of the startup message corresponding to the target function is controlled based on the delayed startup time, the method further includes: Determine a plurality of said target functions in said target startup system; For each of the target functions, determining the operation cycle and the port number of the message sending port to obtain a cycle set and a port number set; Based on the period set and the port number set, dividing the plurality of target functions into a first function and a second function; Two different preset delay times are determined, and the two different preset delay times are used as the delayed start times of the first function and the second function respectively.

3. The method according to claim 2, characterized in that The dividing the plurality of target functions into a first function and a second function based on the period set and the port number set comprises: For each of the operating cycles in the cycle set, determine the number of factor cycles corresponding to the operating cycle, wherein the period value of the factor cycle is a factor of the period value of the operating cycle, and the factor cycle belongs to the cycle set; Dividing the port number set into a first subset and a second subset, wherein the value of the port number in the first subset is smaller than the value of the port number in the second subset; The plurality of target functions are divided into first functions and second functions based on the number of the factor cycles and a target subset, wherein the target subset includes the first subset or the second subset.

4. The method according to claim 3, characterized in that The dividing the plurality of target functions into first functions and second functions based on the number of the factor cycles and the second subset comprises: For each of the target functions, if the number of the factor cycles corresponding to the running cycle exceeds a preset threshold and the number of ports belongs to the second subset, the target function is classified as the second function; otherwise, the target function is classified as the first function.

5. The method according to claim 3, characterized in that: The dividing the plurality of target functions into first functions and second functions based on the number of the factor cycles and the first subset comprises: For each of the target functions, if the number of the factor cycles corresponding to the running cycle does not exceed a preset threshold and the number of ports belongs to the first subset, the target function is classified as the first function; otherwise, the target function is classified as the second function.

6. The method according to any one of claims 4 or 5, characterized in that: The preset delay time corresponding to the first function is shorter than the preset delay time corresponding to the second function.

7. The method according to claim 1, characterized in that The controlling the sending of the startup message corresponding to the target function based on the delayed startup time includes: Determine the message sending time point based on the delayed start time; At the message sending time point, one startup message is sent respectively through each message sending port corresponding to the target function.

8. A control device for sending a message, characterized in that: include: A function determination module, for determining a plurality of target functions to be periodically executed in a target startup system in response to a system startup instruction; a sending control module, for each of the target functions, controlling the sending of the start message corresponding to the target function based on the delayed start time, and controlling the sending of the periodic operation message corresponding to the target function based on the operation cycle, Wherein, the delayed start time is determined based on the operation cycle corresponding to the target function and the port number of the message sending port corresponding to the target function; The message transmission module is used to enable the target bus to perform message transmission of multiple target functions.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the message sending control method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the message sending control method according to any one of claims 1 to 7 when executed.