Periodic message sending method and device for 429 bus

By determining the data type and growth value of periodic messages on the 429 bus, and using hardware to automatically match and send messages, the problems of periodic messages transmission complexity and state interference in the prior art are solved, and more efficient, flexible and reliable data transmission is achieved.

CN119728614AActive Publication Date: 2025-03-28BEIJING ZHONGKE TAIJIA ELECTRONIC TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411850374.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-16
Publication Date
2025-03-28
Estimated Expiration
2044-12-16

AI Technical Summary

Technical Problem

The periodic message sending method of the existing 429 bus is cumbersome to operate, and there is potential interference to the periodic message status, which increases the system's management complexity and the risk of errors.

Method used

By determining the data type and data growth value corresponding to the periodic message, the periodic message is written to the cache area. The hardware generates the current growth value based on the current frame count when data is sent per frame, and matches it with the data growth value to determine the target data type, and extracts the corresponding periodic message according to the target data type for sending.

Benefits of technology

It improves the system configuration efficiency, improves the flexibility and reliability of data transmission, optimizes the utilization rate of hardware resources, reduces the management burden of software on the transmission cycle, and improves the stability and reliability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119728614A_ABST
    Figure CN119728614A_ABST
Patent Text Reader

Abstract

The invention discloses a periodic message sending method and device for a 429 bus. The method comprises the following steps: determining a data type and a data growth value corresponding to a periodic message, wherein the periodic message comprises a periodic message for a 429 bus; writing the periodic message into a cache region; when each frame of data is sent, the hardware generates a current growth value according to the current frame count; matching the current growth value with the data growth value to determine a target data type; and extracting a corresponding periodic message according to the target data type for sending. According to the periodic message sending method and device for the 429 bus, the configuration efficiency of the system can be improved, the flexibility and reliability of data transmission can be improved, the utilization rate of hardware resources can be optimized, the management burden of software on the sending period can be reduced, and the stability and reliability of the system can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer information processing, and in particular to a method and device for sending periodic messages for a 429 bus. Background Art

[0002] The periodic messages of the 429 bus are widely used in the field of commercial transportation and aviation. At present, when the 429 bus sends periodic messages, the software needs to make detailed arrangements and plans in advance according to the sending cycles of different types of data. Each data type has a different sending cycle. The software must predetermine the cycle order of each data type and then write it into the cache at the specified time interval to ensure that each data is sent out at the correct time point. This means that every time a new data type is configured or the sending cycle of existing data is adjusted, the software needs to recalculate and arrange the order of the entire periodic message and update the plan for sending data. This method is not only time-consuming, but also requires very precise time management, which is prone to human configuration errors.

[0003] In addition, the process of inserting random messages further increases the complexity. Since the timing of sending random messages is unpredictable, when a random message is inserted into an ongoing periodic message sequence, it may interfere with the current periodic message state, causing confusion or delay in message sending. Therefore, the software must re-coordinate the state of the periodic message when the random message is inserted to avoid affecting the data being sent. This requires the software to constantly monitor and adjust the sending plan in real time while processing periodic messages and random messages, increasing the system's workload and maintenance difficulty.

[0004] The current 429 bus cycle message sending method is not only cumbersome to operate, but also has potential interference with the cycle message status, increasing the system management complexity and the risk of error.

[0005] Therefore, a new method and device for sending periodic messages for the 429 bus is needed.

[0006] The above information disclosed in the Background section is only for enhancement of understanding of the background of the present application and therefore it may contain information that does not constitute the prior art that is already known to a person of ordinary skill in the art. Summary of the invention

[0007] In view of this, the present application provides a method and device for sending periodic messages for a 429 bus, which can improve the configuration efficiency of the system, enhance the flexibility and reliability of data transmission, optimize the utilization of hardware resources, reduce the management burden of the software on the sending cycle, and improve the stability and reliability of the system.

[0008] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.

[0009] According to one aspect of the present application, a method for sending a periodic message for a 429 bus is proposed, the method comprising: determining a data type and a data growth value corresponding to a periodic message, the periodic message comprising a periodic message for the 429 bus; writing the periodic message into a cache; when the hardware sends each frame of data, generating a current growth value according to a current frame count; matching the current growth value with the data growth value to determine a target data type; and extracting a corresponding periodic message according to the target data type for sending.

[0010] In an exemplary embodiment of the present application, it also includes: generating an update growth value when modifying the sending period of an existing data type; using the update growth value to replace the data growth value corresponding to the data type; when the hardware sends each frame of data, the sending period of the data type is automatically updated according to the update growth value.

[0011] In an exemplary embodiment of the present application, it also includes: when adding a data type, determining a data growth value corresponding to the added data type; writing a periodic message corresponding to the added data type into a cache area; when the hardware sends each frame of data, the hardware automatically sends the periodic message according to the updated cache area content.

[0012] In an exemplary embodiment of the present application, it also includes: configuring the number of the random message to be sent; writing the random message into a cache area; after each message is sent, the hardware checks whether there is a random message in the cache area; when there is a random message, inserting the random message into the periodic message according to the number for sending.

[0013] In an exemplary embodiment of the present application, when there is a random message, the random message is inserted into the periodic message for sending according to the number, including: when the random message is a high-priority random message and the current sending position is not the end of the frame, the random message is immediately inserted for sending after the current periodic message is sent; when the random message is a high-priority random message, the current sending position is the end of the frame, and the remaining time is greater than the random message sending time, the random message is immediately inserted for sending; when the random message is a high-priority random message, the current sending position is the end of the frame, and the remaining time is less than the random message sending time, the random message is inserted in the next frame for sending.

[0014] In an exemplary embodiment of the present application, when a random message exists, the random message is inserted into a periodic message according to the number for sending, including: when the random message is a low-priority random message, the current sending position is the end of the frame, and the remaining time is greater than the random message sending time, the random message is sent; when the random message is a low-priority random message and the remaining time is less than the random message sending time, determining whether to send the random message according to the remaining time at the end of the next frame.

[0015] In an exemplary embodiment of the present application, determining the data type and data growth value corresponding to the periodic message to be sent includes: determining the data type and its corresponding growth value according to the sending period of the periodic message to be sent on the 429 bus.

[0016] In an exemplary embodiment of the present application, before the hardware generates a current growth value based on the current frame count when sending each frame of data, it also includes: the hardware clears the frame count when starting the periodic message sending; the hardware updates the frame count after each frame of data is sent.

[0017] In an exemplary embodiment of the present application, the current growth value and the data growth value are matched to determine the target data type, including: matching the current growth value and the data growth value; extracting the data type corresponding to the successfully matched data growth value as the target data type.

[0018] According to one aspect of the present application, a periodic message sending device for a 429 bus is proposed, the device comprising: a message module, used to determine the data type and data growth value corresponding to the periodic message to be sent, the periodic message comprising the periodic message for the 429 bus; a cache module, used to write the periodic message into a cache area; a counting module, used for hardware to generate a current growth value according to the current frame count when each frame of data is sent; a matching module, used to match the current growth value with the data growth value to determine the target data type; a sending module, used to extract the corresponding periodic message according to the target data type for sending.

[0019] According to one aspect of the present application, an electronic device is proposed, which includes: one or more processors; a storage device for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the method as described above.

[0020] According to one aspect of the present application, a computer-readable medium is provided, on which a computer program is stored. When the program is executed by a processor, the method described above is implemented.

[0021] According to the method and device for sending periodic messages for a 429 bus of the present application, by determining the data type and data growth value corresponding to the periodic message, the periodic message includes a periodic message for the 429 bus; writing the periodic message into a cache area; when the hardware sends each frame of data, the current growth value is generated according to the current frame count; the current growth value and the data growth value are matched to determine the target data type; and the corresponding periodic message is extracted according to the target data type for sending. This method can improve the configuration efficiency of the system, enhance the flexibility and reliability of data transmission, optimize the utilization of hardware resources, reduce the management burden of the software on the sending cycle, and improve the stability and reliability of the system.

[0022] It should be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The above and other objects, features and advantages of the present application will become more apparent by describing in detail the exemplary embodiments thereof with reference to the accompanying drawings. The accompanying drawings described below are only some embodiments of the present application, and it is clear to a person skilled in the art that other accompanying drawings can be obtained from these accompanying drawings without creative effort.

[0024] Figure 1 The flowchart of a method for sending periodic messages for a 429 bus is shown according to an exemplary embodiment.

[0025] Figure 2 It is a schematic diagram showing a method for sending periodic messages for a 429 bus according to an exemplary embodiment.

[0026] Figure 3 is a flow chart showing a method for sending periodic messages for a 429 bus according to another exemplary embodiment.

[0027] Figure 4 It is a schematic diagram showing a method for sending periodic messages for a 429 bus according to another exemplary embodiment.

[0028] Figure 5 is a flow chart showing a method for sending periodic messages for a 429 bus according to another exemplary embodiment.

[0029] Figure 6 It is a block diagram showing a periodic message sending device for a 429 bus according to an exemplary embodiment.

[0030] Figure 7 It is a block diagram of an electronic device according to an exemplary embodiment.

[0031] Figure 8It is a block diagram of a computer-readable medium according to an exemplary embodiment. DETAILED DESCRIPTION

[0032] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this application will be comprehensive and complete and will fully convey the concepts of the example embodiments to those skilled in the art. The same reference numerals in the figures represent the same or similar parts, and thus their repeated description will be omitted.

[0033] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.

[0034] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0035] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0036] It should be understood that although the terms first, second, third, etc. may be used herein to describe various components, these components should not be limited by these terms. These terms are used to distinguish one component from another component. Therefore, the first component discussed below can be referred to as the second component without departing from the teachings of the concepts of the present application. As used herein, the term "and / or" includes any one of the associated listed items and all combinations of one or more.

[0037] Those skilled in the art will appreciate that the drawings are merely schematic diagrams of example embodiments, and the modules or processes in the drawings are not necessarily necessary for implementing the present application, and therefore cannot be used to limit the scope of protection of the present application.

[0038] Figure 1The flowchart of a method for sending periodic messages for a 429 bus according to an exemplary embodiment is shown. The method 10 for sending periodic messages for a 429 bus at least includes steps S102 to S110.

[0039] like Figure 1 As shown, in S102, the data type and data growth value corresponding to the periodic message are determined, and the periodic message includes the periodic message for the 429 bus. The data type and its corresponding growth value are determined according to the sending cycle of the periodic message of the 429 bus to be sent.

[0040] More specifically, the configuration of the data growth value is based on the message sending period. For example, for a data type with a sending period of 50ms, the configuration growth value is 1, while the growth value of a data type with a sending period of 100ms is 2. The data growth value reflects the incremental pattern of the data type in the frame count, which facilitates the subsequent hardware to identify the target message through simple calculations.

[0041] In S104, the periodic message is written into the buffer area. The buffer area becomes the main storage area for periodic message management. During the transmission process of the 429 bus, the buffer area can automatically extract the message currently required to be sent from the defined periodic message according to the hardware instruction, ensuring that the periodic message is automatically scheduled according to the set growth value.

[0042] In S106, the hardware generates a current growth value according to the current frame count when each frame of data is sent. The hardware generates and records the growth value of the current frame when each frame of data is sent. The hardware will clear the frame count at the initial stage of sending the cycle signal, and increase the frame count after each frame of data is sent, so as to achieve the purpose of managing the message cycle by accumulating the growth value.

[0043] In one embodiment, the method further includes: the hardware clears the frame count when starting the periodic message sending; and the hardware updates the frame count after each frame of data is sent.

[0044] In S108, the current growth value and the data growth value are matched to determine the target data type. The current growth value and the data growth value may be matched; and the data type corresponding to the successfully matched data growth value is extracted as the target data type.

[0045] More specifically, the hardware will compare the current growth value with the growth value of each data type in the buffer. Through this matching process, the hardware can automatically determine the target data type that needs to be sent in the current frame. For the growth value that successfully matches, the hardware extracts its corresponding data type as the target data type of the frame to ensure that each periodic message is accurately sent at the set time interval.

[0046] In S110, the corresponding periodic message is extracted according to the target data type for transmission. The hardware may, for example, extract the periodic message corresponding to the target data type and transmit it, thereby completing the transmission task of the periodic message of the frame. This step ensures that each frame can accurately transmit the target data type message matching the current growth value, avoiding the problem of manually adjusting the order of periodic messages due to changes in data types.

[0047] In one embodiment, it also includes: generating an update growth value when modifying the sending period of an existing data type; using the update growth value to replace the data growth value corresponding to the data type; when the hardware sends each frame of data, the sending period of the data type is automatically updated according to the update growth value.

[0048] If the sending cycle of a data type needs to be adjusted, the hardware will generate an updated growth value and replace the original growth value of the data type in the cache with the updated value. By updating the growth value, the hardware can automatically adjust the sending frequency of the periodic message, so that the newly added or modified periodic message can be seamlessly integrated into the original periodic message sequence without manual intervention, thereby improving the flexibility and scalability of the 429 bus periodic message sending method.

[0049] Figure 2 is a schematic diagram of a method for sending periodic messages for a 429 bus according to an exemplary embodiment. Figure 2 As shown in the figure, the transmission period of each frame of data is configured to be 50ms. Three data types need to be sent, and the transmission periods of the three data types are 50ms, 100ms and 200ms, that is, the increment values ​​are 1, 2 and 4. The increment value increases by 1 for each frame sent. A data is sent in the frame with an increment of 1, B data is sent in the frame with an increment of 2, and C data is sent in the frame with an increment of 4.

[0050] More specifically, each time a frame of data is sent, the hardware will accumulate the growth values ​​corresponding to the data sending cycles of all types. The data will determine whether it needs to be sent in this cycle based on its own growth value. For example, if the growth value of A is 1, it means that every frame will be sent. If the growth value of B data is 2, it means that it will be sent once every frame, and if the growth value of C data is 4, it means that it will be sent once every 4 frames.

[0051] According to the above settings, the order of sending periodic data is:

[0052] Frame 1: data A, data B, data C;

[0053] Frame 2: Data A;

[0054] Frame 3: data A, data B;

[0055] Frame 4: data A, data B, data C;

[0056] Frame 5: Data A;

[0057] Frame 6: data A, data B;

[0058] The above cycle times are repeated until the set time is reached.

[0059] The setting value of the sending count can be pre-set. When the current frame starts to be sent, it is 0. When the count value reaches the set value, it means that the current frame is sent. When the next round of periodic messages is sent, the count starts again. It is worth mentioning that the administrator can set a larger count setting value to ensure that all data can be sent within the time included in the setting value.

[0060] According to the periodic message sending method for the 429 bus of the present application, by determining the data type and data growth value corresponding to the periodic message, the periodic message includes a periodic message for the 429 bus; writing the periodic message into a cache area; when the hardware sends each frame of data, the current growth value is generated according to the current frame count; the current growth value and the data growth value are matched to determine the target data type; and the corresponding periodic message is extracted according to the target data type for sending. This method can improve the configuration efficiency of the system, enhance the flexibility and reliability of data transmission, optimize the utilization of hardware resources, reduce the management burden of the software on the sending cycle, and improve the stability and reliability of the system.

[0061] It should be clearly understood that the present application describes how to form and use specific examples, but the principles of the present application are not limited to any details of these examples. On the contrary, based on the teaching of the content disclosed in the present application, these principles can be applied to many other embodiments.

[0062] Figure 3 is a flow chart showing a method for sending periodic messages for a 429 bus according to another exemplary embodiment. Figure 3 The process 30 shown is for Figure 1 Supplementary description of the process shown. Figure 3 The process 30 shown shows a method for sending periodic messages for the 429 bus, and further describes how the hardware handles the newly added data types and their corresponding growth values ​​when the sending cycle of the data types is dynamically adjusted. Figure 1 The periodic message sending method in provides flexible extension support, enabling the system to dynamically adjust the message content and sending frequency without affecting the current periodic message transmission.

[0063] like Figure 3As shown, in S302, when adding a data type, the data growth value corresponding to the added data type is determined. When a new data type needs to be added, the sending cycle of the data type is first determined, and the corresponding data growth value is assigned. The selection of the growth value is based on the sending cycle of the newly added data, ensuring that the newly added data type can be sent at appropriate intervals in the periodic message queue. For example, if the sending cycle of the newly added data type is 100ms, the system will automatically configure a growth value of 2 for the data type to keep pace with other data types. The setting of this growth value ensures that the sending order between different periodic messages will not be disrupted, and a smooth connection of data transmission is achieved.

[0064] In S304, the periodic message corresponding to the added data type is written into the buffer area. The newly added data type and its corresponding periodic message are written into the buffer area. The buffer area can arrange the newly added data type according to the updated growth value, or it can keep the original arrangement order. The buffer area stores the periodic message corresponding to the data type, so that the hardware can automatically select the message content to be sent based on the growth value when sending each frame of data. This process automatically handles the addition of periodic messages without manual intervention in the timing of data transmission.

[0065] In S306, the hardware automatically sends periodic messages according to the updated buffer content when each frame of data is sent. The hardware can automatically adjust the periodic messages to be sent based on the updated content in the buffer when each frame of data is sent. The hardware adds the newly added data types to the current sending sequence in order according to their growth values. When sending, the hardware will check the current growth value to ensure that each data type can be sent in the set periodic order. The hardware's automatic scheduling capability makes the entire message transmission process more efficient, while also ensuring that the newly added data types will not affect the normal sending of other periodic messages, thereby ensuring the stability and efficiency of the system.

[0066] In this embodiment, the hardware frame processing logic allows the data types in the buffer area to be added, deleted, and adjusted during the uninterrupted message transmission process, thereby achieving real-time dynamic message updates. This method can not only adapt to the newly added data types, but also quickly respond to changes in system configuration requirements, making the application of the 429 bus in the field of commercial aviation more flexible and controllable, and providing technical support for the real-time transmission of multiple types of data.

[0067] Figure 4 is a schematic diagram of a method for sending periodic messages for a 429 bus according to another exemplary embodiment. After adding a new data type and an increment value, the hardware will automatically add the new data type to the sending frame corresponding to the periodic message. For example, the sending cycle of the newly added data D is 100ms, that is, the increment value is 2. The sending process is as follows Figure 4 shown.

[0068] According to the above settings, after adding data D, the data sending order is:

[0069] The nth frame: data A, data B, data C, data D;

[0070] Frame n+1: data A;

[0071] Frame n+2: data A, data B, data D;

[0072] Frame n+3: data A;

[0073] Frame n+4: data A, data B, data C, data D;

[0074] Frame n+5: data A;

[0075] Frame n+6: data A, data B, data D;

[0076] Frame n+7: data A;

[0077] Frame n+8: data A, data B, data C, data D;

[0078] The above cycle times are repeated until the set time is reached.

[0079] In another embodiment, when a 500ms periodic message E is added, since the period of the newly added periodic message is greater than the period of the existing periodic signal, the data growth value needs to be reset. When the newly added period is 500ms, the growth value of the data type needs to be calculated first. 500ms is 10 times the minimum period (50ms), so the growth value of the newly added data type is 10.

[0080] When the system accumulates the growth value in each frame, it follows the following rules:

[0081] Each time the frame growth value is increased by 1, a data type (data A) with a period of 50 ms is sent.

[0082] Each time the frame growth value is increased by 2, a data type (data B) with a period of 100 ms is sent.

[0083] Each time the frame growth value is increased by 4, a data type (data C) with a transmission period of 200 ms is transmitted.

[0084] Each time the frame growth value is increased by 10, a new data type (data E) with a sending period of 500 ms is sent.

[0085] The hardware will determine whether the frame should send the corresponding data type based on the growth value. For example, when the 10th frame is accumulated (the growth value is 10), the system will send the newly added 500ms period data E, and may also send 50ms and 100ms period data. If the frame only contains 500ms of data and no other growth value matches, only 500ms of data will be sent.

[0086] In summary, the newly added 500ms data type will be controlled by an increase value of 10, and the system will adaptively send the newly added data in the correct frame period while maintaining the correct sending of other periodic messages.

[0087] Figure 5 is a flow chart showing a method for sending periodic messages for a 429 bus according to another exemplary embodiment. Figure 5 The process 50 shown is for Figure 1 Supplementary description of the process shown.

[0088] like Figure 5 As shown, in S502, the number of the random message to be sent is configured. A random message refers to a message sequence that is randomly inserted into a periodic message sequence and needs to be sent. A random message sequence can only be inserted when the periodic message is running. The number of inserted random messages is determined by the buffer resources. For example, the buffer can store up to 1023 messages, and the random message numbering starts from 1000, so a maximum of 23 random messages can be sent at one time. A random message can be inserted one or more times. Whenever a message is sent, the hardware bottom layer will detect whether there is a non-periodic message in the buffer, and if so, it will be sent first.

[0089] To improve the timeliness of random messages, it is recommended to add some delayed messages in each frame so that each frame has enough insertion points. This design greatly increases the insertion opportunities of random messages, helps to send random messages in a timely manner, and improves the flexibility and response speed of message processing.

[0090] In a specific embodiment, for example, 1000-1023 can be set as random message numbers. Random messages can only be written to these locations. And they must be written starting from number 1000. For example, if there is only one random message, it can only be written to the location numbered 1000.

[0091] In S504, the random message is written into a buffer area.

[0092] In S506, after each message is sent, the hardware checks whether there is a random message in the buffer. Since the random message is sent randomly, the position where the random message is inserted is also random. If there is a periodic message being sent, the message currently being sent will be sent first, and then the random message will be inserted after the message just completed and sent. If the current periodic message is just in the process of being sent and the next periodic message has not yet started, the random message will be sent first and then the periodic message will be sent.

[0093] That is, after each periodic message is sent, it will determine whether there is a random message. If there is, the random message will be sent. If not, the periodic message will continue to be sent.

[0094] In S508, when there is a random message, the random message is inserted into the periodic message according to the number for sending. For example, if a high-priority random message is sent in a non-frame end message, the random message sending is entered after the current message is sent, and the message main loop is entered after the random message is sent. If the random message is sent for too long, the total sending cycle of the current frame may be lengthened, but it will not affect the length of the sending cycle of the next frame. If it occurs in the frame end message, it will determine whether the time required to send the random message exceeds the remaining frame time. If it does not exceed, the random message will be sent. If it exceeds, the random message will not be sent in the current frame, but the random message will be sent after the start of the next frame.

[0095] For example, a low-priority random message can only be sent after the frame tail message. If the time required to send the random message exceeds the current remaining frame time, the random message cannot be sent in this frame. Otherwise, the random message can be sent. If the random message cannot be sent in this frame, it is determined at the end of the next frame whether the time required to send the random message exceeds the remaining frame time. If it exceeds, the above steps are repeated.

[0096] In one embodiment, when the random message is a high priority random message and the current sending position is not the end of the frame, the random message is inserted immediately after the current period message is sent to be sent.

[0097] In one embodiment, when the random message is a high priority random message, the current sending position is the end of the frame, and the remaining time is greater than the random message sending time, the random message is immediately inserted for sending.

[0098] In one embodiment, when the random message is a high priority random message, the current sending position is the end of the frame, and the remaining time is less than the random message sending time, the random message is inserted into the next frame for sending.

[0099] In one embodiment, when the random message is a low priority random message, the current sending position is the end of the frame, and the remaining time is greater than the random message sending time, the random message is sent.

[0100] In one embodiment, when the random message is a low priority random message and the remaining time is less than the random message sending time, it is determined whether to send the random message according to the remaining time at the end of the next frame.

[0101] In summary, the periodic message sending method for the 429 bus of the present application can configure the growth value of the data type, and only the corresponding growth value needs to be adjusted when changing the data sending cycle, without rearranging the sending order, thereby reducing the complexity and workload of software configuration. Adaptive periodic message sending can also be achieved. When adding or deleting data types, the hardware can automatically adjust the periodic message sequence without additional manual intervention.

[0102] The periodic message sending method for 429 bus of the present application can flexibly increase or delete data types. The newly added data types can be quickly integrated into the existing sending cycle, and deleting the data types will not affect the normal sending of other data, which makes the method have good scalability when facing system upgrades or data type changes. It can also support the flexible insertion of random messages, and send random messages by judging the sending status of the current periodic message to avoid interfering with normal periodic message transmission. Both high-priority and low-priority random messages have clear processing strategies to ensure that important data can be sent in time.

[0103] Those skilled in the art will appreciate that all or part of the steps for implementing the above embodiments are implemented as a computer program executed by a CPU. When the computer program is executed by the CPU, the above functions defined by the above method provided in the present application are executed. The program may be stored in a computer-readable storage medium, which may be a read-only memory, a disk, or an optical disk, etc.

[0104] In addition, it should be noted that the above figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present application, and are not intended to be limiting. It is easy to understand that the processes shown in the above figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.

[0105] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0106] Figure 6 FIG. 1 is a block diagram of a periodic message sending device for a 429 bus according to another exemplary embodiment. Figure 6 As shown, the periodic message sending device 60 for bus 429 includes: a message module 602 , a cache module 604 , a counting module 606 , a matching module 608 , and a sending module 610 .

[0107] The message module 602 is used to determine the data type and data growth value corresponding to the periodic message to be sent, and the periodic message includes the periodic message for the 429 bus;

[0108] The cache module 604 is used to write the periodic message into the cache area;

[0109] The counting module 606 is used for the hardware to generate a current growth value according to the current frame count when each frame of data is sent;

[0110] The matching module 608 is used to match the current growth value with the data growth value to determine the target data type;

[0111] The sending module 610 is used to extract the corresponding periodic message according to the target data type for sending.

[0112] According to the periodic message sending device for 429 bus of the present application, by determining the data type and data growth value corresponding to the periodic message, the periodic message includes the periodic message for 429 bus; writing the periodic message into the cache area; when the hardware sends each frame of data, the current growth value is generated according to the current frame count; the current growth value and the data growth value are matched to determine the target data type; and the corresponding periodic message is extracted according to the target data type for sending. This method can improve the configuration efficiency of the system, enhance the flexibility and reliability of data transmission, optimize the utilization of hardware resources, reduce the management burden of the software on the sending cycle, and improve the stability and reliability of the system.

[0113] Figure 7 It is a block diagram of an electronic device according to an exemplary embodiment.

[0114] Refer to the following Figure 7 hereinafter describes an electronic device 700 according to this embodiment of the present application. Figure 7 The electronic device 700 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0115] like Figure 7 As shown, the electronic device 700 is in the form of a general computing device. The components of the electronic device 700 may include, but are not limited to: at least one processing unit 710, at least one storage unit 720, a bus 730 connecting different system components (including the storage unit 720 and the processing unit 710), a display unit 740, etc.

[0116] The storage unit stores a program code, which can be executed by the processing unit 710, so that the processing unit 710 performs the steps described in this specification according to various exemplary embodiments of the present application. For example, the processing unit 710 can perform the following steps: Figure 1 , Figure 3 , Figure 4 Follow the steps shown in .

[0117] The storage unit 720 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 7201 and / or a cache memory unit 7202 , and may further include a read-only memory unit (ROM) 7203 .

[0118] The storage unit 720 may also include a program / utility 7204 having a set (at least one) of program modules 7205, such program modules 7205 including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include the implementation of a network environment.

[0119] Bus 730 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0120] The electronic device 700 may also communicate with one or more external devices 700' (e.g., keyboards, pointing devices, Bluetooth devices, etc.) to enable a user to communicate with the electronic device 700, and / or any device (e.g., routers, modems, etc.) that the electronic device 700 can communicate with one or more other computing devices. Such communication may be performed via an input / output (I / O) interface 750. In addition, the electronic device 700 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 760. The network adapter 760 may communicate with other modules of the electronic device 700 via a bus 730. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0121] Through the above description of the implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by combining software with necessary hardware. Figure 8As shown, the technical solution according to the implementation mode of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes a number of instructions to enable a computing device (which can be a personal computer, a server, or a network device, etc.) to execute the above method according to the implementation mode of the present application.

[0122] The software product may be any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, a system, device or component of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable 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 thereof.

[0123] The computer readable storage medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by an instruction execution system, an apparatus, or a device or used in combination with it. The program code contained on the readable storage medium may be transmitted with any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.

[0124] Program code for performing the operations of the present application may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).

[0125] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by a device, the computer-readable medium implements the following functions: determining the data type and data growth value corresponding to the periodic message, the periodic message includes the periodic message for the 429 bus; writing the periodic message into the cache area; when the hardware sends each frame of data, generating a current growth value according to the current frame count; matching the current growth value with the data growth value to determine the target data type; extracting the corresponding periodic message according to the target data type for sending.

[0126] Those skilled in the art will appreciate that the above modules can be distributed in the device according to the description of the embodiment, or can be changed accordingly and only used in one or more devices different from the embodiment. The modules of the above embodiments can be combined into one module, or further divided into multiple sub-modules.

[0127] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the embodiment of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the embodiment of the present application.

[0128] The exemplary embodiments of the present application are specifically shown and described above. It should be understood that the present application is not limited to the detailed structures, configurations or implementations described herein; on the contrary, the present application is intended to cover various modifications and equivalent configurations included in the spirit and scope of the appended claims.

Claims

1. A method for sending periodic messages for a 429 bus, characterized in that: include: Determine a data type and a data growth value corresponding to a periodic message, wherein the periodic message includes a periodic message for a 429 bus; Writing the periodic message into a buffer area; When sending each frame of data, the hardware generates the current growth value based on the current frame count; Matching the current growth value with the data growth value to determine a target data type; A corresponding periodic message is extracted according to the target data type for sending.

2. The method according to claim 1, characterized in that Also includes: When modifying the sending cycle of an existing data type, an update increment value is generated; Replacing the data growth value corresponding to the data type with the update growth value; When sending each frame of data, the hardware automatically updates the sending period of the data type according to the update growth value.

3. The method according to claim 1, characterized in that Also includes: When adding a data type, determining a data growth value corresponding to the added data type; Write the periodic messages corresponding to the added data types into the buffer area; When the hardware sends each frame of data, it automatically sends periodic messages based on the updated buffer content.

4. The method according to claim 1, characterized in that Also includes: Configure the number of the random message to be sent; Writing the random message into a buffer area; After each message is sent, the hardware checks whether there is a random message in the buffer; When a random message exists, the random message is inserted into the periodic message according to the number and sent.

5. The method according to claim 4, characterized in that When there is a random message, inserting the random message into a periodic message according to the number for sending includes: When the random message is a high-priority random message and the current sending position is not the end of the frame, the random message is inserted immediately after the current periodic message is sent for sending; When the random message is a high-priority random message, the current sending position is the end of the frame, and the remaining time is greater than the random message sending time, the random message is immediately inserted for sending; When the random message is a high priority random message, the current sending position is the end of the frame, and the remaining time is less than the random message sending time, the random message is inserted into the next frame for sending.

6. The method according to claim 4, characterized in that When there is a random message, inserting the random message into a periodic message according to the number for sending includes: When the random message is a low-priority random message, the current sending position is the end of the frame, and the remaining time is greater than the random message sending time, sending the random message; When the random message is a low priority random message and the remaining time is less than the random message sending time, it is determined whether to send the random message according to the remaining time at the end of the next frame.

7. The method according to claim 1, characterized in that Determine the data type and data growth value corresponding to the periodic message to be sent, including: The data type and its corresponding growth value are determined according to the sending period of the periodic message of the 429 bus to be sent.

8. The method according to claim 1, characterized in that When sending each frame of data, the hardware generates the current growth value based on the current frame count, and also includes: When the hardware starts sending periodic messages, it clears the frame count; The hardware updates the frame count after each frame of data is sent.

9. The method according to claim 1, characterized in that Matching the current growth value with the data growth value to determine the target data type includes: Match the current growth value with the data growth value; The data type corresponding to the successfully matched data growth value is extracted as the target data type.

10. A periodic message sending device for a 429 bus, characterized in that: include: A message module, used to determine the data type and data growth value corresponding to the periodic message to be sent, wherein the periodic message includes a periodic message for the 429 bus; A cache module, used for writing the periodic message into a cache area; The counting module is used for the hardware to generate the current growth value according to the current frame count when each frame of data is sent; A matching module, used for matching the current growth value with the data growth value to determine a target data type; The sending module is used to extract the corresponding periodic message according to the target data type for sending.

Citation Information

Patent Citations

  • Balanced distribution method for periodic bus messages

    CN108092865A

  • Distributed multi-host communication system, functional module and communication method thereof

    CN111541598A

  • Apparatus and method for checking frames from communication bus

    CN113438139A

  • CAN FD bus communication method and device and electronic equipment

    CN114826816A

  • Video frame sending processing method and system, electronic equipment and readable storage medium

    CN116017050A