Engine rotating speed control method and device, electronic equipment and storage medium

By analyzing and prioritizing TSC1 packets using intermediate cached two-dimensional arrays and analytical functions in the engine speed control system, the problem of abnormal engine speed fluctuations during long-term PTO requests is solved, and a stable speed response is achieved.

CN119420786APending Publication Date: 2025-02-11DONGFENG COMML VEHICLE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411277931.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-12
Publication Date
2025-02-11

AI Technical Summary

Technical Problem

The prior art will cause abnormal fluctuations in engine speed during long-term PTO requests.

Method used

By converting the received PTO signal into a first TSC1 message, and receiving the second TSC1 message from different source addresses of the entire vehicle, using an intermediate cached two-dimensional array to temporarily store these messages, and the cached messages are analyzed through the parsing function Perform analysis and priority arbitration, and determine priority TSC1 messages to control engine speed.

Benefits of technology

Ensure that the parsing function TSC1_Rx() is executed in sequence in the same scheduling of the same core, avoiding cross-core and preemptive calls, solving the problem of abnormal speed fluctuations under long-term PTO requests, and ensuring a continuous and stable speed response.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119420786A_ABST
    Figure CN119420786A_ABST
Patent Text Reader

Abstract

The invention relates to an engine rotating speed control method and device, electronic equipment and a storage medium, and belongs to the technical field of vehicle control. The method comprises the steps that a received PTO signal is converted into a first TSC1 message, and a second TSC1 message from different source addresses of a whole vehicle is received; the first TSC1 message and the second TSC1 message are stored in the intermediate cache two-dimensional array; analyzing the message cached on the intermediate cache two-dimensional array through an analysis function to obtain an analyzed first TSC1 message and an analyzed second TSC1 message; performing priority arbitration on the analyzed first TSC1 message and the analyzed second TSC1 message, and determining a priority TSC1 message; and controlling the rotating speed of the engine based on the priority TSC1 message. According to the engine rotating speed control method, it is guaranteed that continuous and stable rotating speed response exists under a long-time PTO request, and the method is not affected by other invalid TSC1 nodes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle control technology, and in particular to an engine speed control method, device, electronic equipment and storage medium. Background Art

[0002] Power Take Off (PTO) is usually used in commercial vehicles, such as cement mixers, to output the engine power to devices other than the vehicle's driving system. The main principle of the PTO function is to control the engine power according to the required speed setting, so that the engine runs at a specific speed to meet the needs of different working conditions.

[0003] The PTO function is generally implemented in the vehicle controller. The vehicle controller will define the message CAN1 to send the PTO activation status and PTO request speed to the engine controller. After receiving the command, the engine controller needs to process the CAN1 request into the J1939 standard TSC1 message to participate in the arbitration of torque and speed, thereby controlling the engine speed. According to the J1939 definition, PTO generally adopts the control purpose of P3. Figure 1 A schematic diagram of an arbitration architecture between different control purposes provided by the prior art, such as Figure 1 As shown, P3 is PTO control and P32 is temporary powertrain control.

[0004] In the existing speed control method, the TSC1 parsing function TSC1_Rx() is generally executed in a different core of the controller from the CAN1 request issued by the vehicle controller. When PTO is activated, the scheduling of CAN1 to TSC1 will be enabled. At this time, if the bus has a TSC1 message (regardless of the mode), different cores will access TSC1_Rx() at the same time. If the TSC1_Rx() function activated by PTO is executed when the P3_queue is assigned, there is a probability that the TSC1_Rx() function running when the bus receives the TSC1 callback will overwrite the cache that needs to be assigned to the P3_queue. As a result, the TSC1 message in the disabled mode is passed to the P3_queue, causing abnormal speed fluctuations when the actual vehicle has a long-term PTO request. Summary of the invention

[0005] In view of this, it is necessary to provide an engine speed control method, device, electronic device and storage medium to solve the problem of abnormal speed fluctuations in existing speed control methods when there is a long-term PTO request.

[0006] In order to solve the above problem, the present invention provides an engine speed control method, comprising: Convert the received PTO signal into a first TSC1 message, and receive a second TSC1 message from a different source address of the vehicle; the first TSC1 message and the second TSC1 message are stored in an intermediate cache two-dimensional array; Parsing the message cached in the intermediate cache two-dimensional array by using a parsing function to obtain a parsed first TSC1 message and a parsed second TSC1 message; Performing priority arbitration on the parsed first TSC1 message and the parsed second TSC1 message to determine a priority TSC1 message; Based on the priority TSC1 message, the engine speed is controlled.

[0007] In a possible implementation, after converting the received PTO signal into a first TSC1 message and receiving a second TSC1 message from a different source address of the vehicle, the method further includes: Determine the timestamp of the first TSC1 message received most recently; When it is determined based on the current clock time and the timestamp that the first TSC1 stops sending, the reset function is called.

[0008] In a possible implementation, when determining based on the current clock time and the timestamp that the first TSC1 stops sending, calling a reset function includes: When the current clock time is greater than the timestamp, calculating the time difference between the current clock time and the timestamp; When the time difference is greater than the preset TSC1 timeout period, the reset function is called.

[0009] In a possible implementation, when determining based on the current clock time and the timestamp that the first TSC1 stops sending, calling a reset function includes: When the current clock time is less than the timestamp, determining a maximum time value of the clock; Calculate the total time difference obtained by subtracting the timestamp from the maximum time of the clock and adding the current clock time; When the total time difference is greater than the preset TSC1 timeout period, the reset function is called.

[0010] In a possible implementation, the PTO signal includes: PTO activation status and PTO requested speed.

[0011] In a possible implementation, the cache duration of the intermediate cache two-dimensional array is 10 milliseconds.

[0012] The present invention also provides an engine speed control device, comprising: A conversion module, used for converting the received PTO signal into a first TSC1 message, and receiving a second TSC1 message from a different source address of the whole vehicle; the first TSC1 message and the second TSC1 message are stored in an intermediate cache two-dimensional array; A parsing module, used for parsing the messages cached in the intermediate cache two-dimensional array through a parsing function to obtain a parsed first TSC1 message and a parsed second TSC1 message; An arbitration module, used for performing priority arbitration on the parsed first TSC1 message and the parsed second TSC1 message to determine the priority TSC1 message; A control module is used to control the engine speed based on the priority TSC1 message.

[0013] On the other hand, the present invention also provides an electronic device, including a memory and a processor, wherein: The memory is used to store programs; The processor is coupled to the memory and is used to execute the program stored in the memory to implement the engine speed control method described in any of the above implementations.

[0014] On the other hand, the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the engine speed control method described in any of the above implementations.

[0015] On the other hand, the present invention further provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the engine speed control method described in any of the above implementations is implemented.

[0016] The beneficial effects of the present invention are as follows: the engine speed control method, device, electronic device and storage medium provided by the present invention convert the received PTO signal into a first TSC1 message, and receive a second TSC1 message from a different source address of the whole vehicle, and use an intermediate cache two-dimensional array to temporarily store these messages, so that the messages cached on the intermediate cache two-dimensional array are parsed in turn through an analysis function, so as to perform priority arbitration on the parsed TSC1 message, and obtain the priority TSC1 message according to a preset priority or strategy, so as to control the engine speed according to the priority TSC1 message, and ensure that the analysis function TSC1_Rx() is executed in sequence in the same scheduling of the same core, and there will be no cross-core and preemptive calls, which solves the problem of abnormal speed fluctuations when the actual vehicle has a long-term PTO request, and ensures that there is a continuous and stable speed response under a long-term PTO request, and it will not be affected by other invalid TSC1 nodes. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0018] Figure 1 A schematic diagram of an arbitration architecture between different control purposes provided by the prior art; Figure 2 A method flow chart of an embodiment of the engine speed control method provided by the present invention; Figure 3 A schematic diagram of the structure of an engine speed control system provided by the present invention; Figure 4 A schematic diagram of TSC1 message arbitration under normal driving conditions provided by the present invention; Figure 5 A schematic diagram of TSC1 message arbitration of the automatic transmission provided by the present invention under starting and shifting conditions; Figure 6 A flow chart of a method for clock resetting under PTO control provided by the present invention; Figure 7 A schematic structural diagram of an embodiment of an engine speed control device provided by the present invention; Figure 8 A schematic structural diagram of an embodiment of an electronic device provided by the present invention. DETAILED DESCRIPTION

[0019] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying 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 those skilled in the art without creative work are within the scope of protection of the present invention.

[0020] In the description of the embodiments of the present invention, unless otherwise specified, "multiple" means two or more than two. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" may mean: A exists alone, A and B exist at the same time, and B exists alone.

[0021] The descriptions of "first", "second", etc. involved in the embodiments of the present invention are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the technical features defined as "first" or "second" may explicitly or implicitly include at least one of the features.

[0022] Figure 2 A method flow chart of an embodiment of the engine speed control method provided by the present invention is as follows Figure 2 As shown, the engine speed control method includes: S201, converting the received PTO signal into a first TSC1 message, and receiving a second TSC1 message from a different source address of the vehicle; the first TSC1 message and the second TSC1 message are stored in an intermediate cache two-dimensional array; S202, parsing the message cached in the intermediate cache two-dimensional array by using a parsing function to obtain a parsed first TSC1 message and a parsed second TSC1 message; S203, performing priority arbitration on the parsed first TSC1 message and the parsed second TSC1 message to determine a priority TSC1 message; S204: Control the engine speed based on the priority TSC1 message.

[0023] It should be noted that: the PTO signal may include the PTO activation state and the PTO requested speed, and the first TSC1 message is obtained by converting the PTO activation state and the PTO requested speed into the standard TSC1 format. The second TSC1 message is a message of the TSC1 message from other source addresses of the vehicle.

[0024] In the configuration based on software engineering, the parsing function TSC1_Rx() of TSC1 is executed in core2, and the PTO function converts the CAN1 request into TSC1 format and calls the function TSC1_Rx() in core1. TSC1_Rx() is called in different cores, which may cause the cache to be overwritten before it is fully executed.

[0025] Therefore, the embodiment of the present invention caches all received TSC1 messages by setting the intermediate cache two-dimensional array as a temporary storage structure, and moves the TSC1_Rx() function to core1. The adjusted TSC1_Rx() function no longer directly receives the callback message, but reads the data in the intermediate cache two-dimensional array. As a result, the cache received by TSC1 and the TSC1 message simulated by PTO can be parsed in sequence in the same scheduling of the same core, without cross-core or preemption problems, ensuring a continuous and stable speed response under long-term PTO requests, and will not be affected by other invalid TSC1 nodes.

[0026] Compared with the prior art, the engine speed control method provided by the embodiment of the present invention converts the received PTO signal into a first TSC1 message, and receives a second TSC1 message from a different source address of the whole vehicle, and uses an intermediate cache two-dimensional array to temporarily store these messages, so that the messages cached on the intermediate cache two-dimensional array are parsed in turn through a parsing function, so as to perform priority arbitration on the parsed TSC1 message, and obtain the priority TSC1 message according to a preset priority or strategy, so as to control the engine speed according to the priority TSC1 message, and can ensure that the parsing function TSC1_Rx() is executed in sequence in the same scheduling of the same core, and there will be no cross-core and preemptive calls, which solves the problem of abnormal speed fluctuations when the actual vehicle has a long-term PTO request, and ensures that there is a continuous and stable speed response under a long-term PTO request, and it will not be affected by other invalid TSC1 nodes.

[0027] In some embodiments of the present invention, the PTO signal includes: PTO activation status and PTO requested speed.

[0028] The PTO activation state refers to the state in which the PTO function is started or activated after the vehicle system receives a specific command or signal. In this state, the PTO system starts to work and controls the engine at a specific speed according to the request.

[0029] PTO request speed refers to the request sent by the PTO system to the engine control system, requiring the engine to reach and maintain a certain speed.

[0030] In some embodiments of the present invention, the cache duration of the intermediate cache two-dimensional array is 10 milliseconds.

[0031] By creating an intermediate cache two-dimensional array, the cache duration is 10 milliseconds, that is, the intermediate cache two-dimensional array is used to store all TSC1 messages received within a recent period of time (such as 10ms).

[0032] In some embodiments of the present invention, after converting the received PTO signal into a first TSC1 message and receiving a second TSC1 message from a different source address of the vehicle, the method further includes: Determine the timestamp of the first TSC1 message received most recently; When it is determined based on the current clock time and the timestamp that the first TSC1 stops sending, the reset function is called.

[0033] In some embodiments of the present invention, when determining based on the current clock time and the timestamp that the first TSC1 stops sending, calling the reset function includes: When the current clock time is greater than the timestamp, calculating the time difference between the current clock time and the timestamp; When the time difference is greater than the preset TSC1 timeout period, the reset function is called.

[0034] In some embodiments of the present invention, when determining based on the current clock time and the timestamp that the first TSC1 stops sending, calling the reset function includes: When the current clock time is less than the timestamp, determining a maximum time value of the clock; Calculate the total time difference obtained by subtracting the timestamp from the maximum time of the clock and adding the current clock time; When the total time difference is greater than the preset TSC1 timeout period, the reset function is called.

[0035] Optionally, there is a logic in the P3 arbitration logic that determines the timeout by the timestamp. By comparing it with the timestamp of the previous message, when the clock overflows, the strategy will mistakenly determine the timeout, and TSC1 will call the reset function.

[0036] Compare the current clock time with the timestamp of the last TSC1 message. If the current clock time is greater than the timestamp, it means that the clock has not overflowed. Then further determine the time difference obtained by subtracting the timestamp of the last TSC1 message from the current clock time to determine whether the time difference is greater than the TSC1 timeout period. If so, it is confirmed that TSC1 has stopped sending and the reset function needs to be called. If not, no processing is performed.

[0037] If the current clock time is less than the timestamp, it means the clock has overflowed. Then further determine the total time difference obtained by subtracting the timestamp of the last TSC1 message from the maximum time of the clock and adding the current clock time. Determine whether the total time difference is greater than the TSC1 timeout time. If it is satisfied, it is confirmed that TSC1 has stopped sending and the reset function needs to be called. If it is not satisfied, no processing is performed. Ensure that there is a continuous and stable speed response under long-term PTO requests, which will not be affected by clock reset.

[0038] The engine speed control method provided in the embodiment of the present invention modifies the timestamp timeout judgment logic and performs special processing on the situation when the clock overflows, thereby successfully solving the problem of abnormal speed fluctuations when the actual vehicle has a long-term PTO request, and ensuring a continuous and stable speed response under a long-term PTO request, which will not be affected by the clock reset.

[0039] Figure 3 The schematic diagram of the structure of the engine speed control system provided by the present invention is as follows: Figure 3 As shown, the overview of PTO functions includes the following: The entry of PTO function generally includes the following modules: cruise switch processing module: entering the PTO function through the three-button cruise / four-button cruise of the actual vehicle; PTO function module: calculating the PTO activation status and PTO requested speed; TSC1 message conversion module: after the engine controller receives the PTO activation status and PTO requested speed, it processes them into the J1939 standard TSC1 message to participate in the arbitration of torque and speed; TSC1 arbitration module: the overall arbitration comes from the TSC1 requests of different nodes of the whole vehicle, and outputs the final winner; engine speed control module: closed-loop PID control based on the required speed and the current actual speed to achieve stable speed control.

[0040] The PTO function converts the PTO activation status and PTO request speed into the standard TSC1 format, and arbitrates in the TSC1 arbitration module to achieve stable speed control.

[0041] The present invention mainly proposes an optimization scheme in the TSC1 arbitration module. The TSC1 arbitration module decodes and verifies the TSC1 messages from other source addresses of the source vehicle and the TSC1 messages converted by the PTO function, and arbitrates the priority of the TSC1 messages to obtain the priority TSC1 messages.

[0042] Based on the configuration of software engineering, the parsing function TSC1_Rx() of TSC1 is executed in core2, and the PTO function converts the CAN1 request into TSC1 form. This function currently calls the TSC1_Rx() function in core1. TSC1_Rx() is called in different cores, and there is a probability that the cache will be overwritten before it is fully executed.

[0043] The optimization solution is to make an intermediate cache two-dimensional array, and store a cache of all TSC1 messages received by the callback within 10ms in the TSC1 callback. Then put the TSC1 parsing function TSC1_Rx() originally placed in the callback into the 10ms of core1, and use the intermediate cache two-dimensional array as input.

[0044] In this way, the cache received by TSC1 and the TSC1 messages simulated by PTO are parsed in sequence in the same scheduling of the same core, and there will be no cross-core or preemption problems. This ensures a continuous and stable speed response under long-term PTO requests and will not be affected by other invalid TSC1 nodes.

[0045] Another optimization is that in the P3 arbitration logic, there is a logic that uses the timestamp to determine the timeout and compares it with the timestamp of the previous message. When the clock overflows, the strategy will mistakenly determine the timeout and TSC1 will call reset.

[0046] The solution of the present invention is based on comparing the current clock time with the timestamp of the last TSC1 message. If the current clock time is greater than the timestamp, it means that the clock has not overflowed. It is further necessary to determine whether the current clock time minus the timestamp of the last TSC1 message is greater than the TSC1 timeout time. If so, it is confirmed that TSC1 has stopped sending and the reset function needs to be called; if there is no timeout, no processing is performed.

[0047] If the current clock time is less than the timestamp, it means the clock has overflowed. It is necessary to further determine whether the maximum clock time minus the timestamp of the last TSC1 message plus the current clock time is greater than the TSC1 timeout time. If it is satisfied, it is confirmed that TSC1 has stopped sending and the reset function needs to be called. If it is not satisfied, no processing is performed. Ensure that there is a continuous and stable speed response under long-term PTO requests and will not be affected by clock reset.

[0048] Figure 4 and Figure 5 The figure shows a schematic diagram of TSC1 message arbitration in an actual application scenario. Figure 4 The schematic diagram of TSC1 message arbitration under normal driving conditions provided by the present invention is as follows: Figure 4 As shown in the figure, scenario 1 is a normal driving condition, the PTO function is activated, but there is no TSC1 request from other nodes in the vehicle, and the TSC1_Rx() function of the bus receiving TSC1 callback will not overwrite the cache that needs to be assigned to P3_queue. It ensures a continuous and stable speed response under long-term PTO requests without being affected by other invalid TSC1 nodes.

[0049] Figure 5 The schematic diagram of TSC1 message arbitration of the automatic transmission provided by the present invention under starting and shifting conditions is as follows: Figure 5 As shown in the figure, scenario 2 is when the automatic transmission is starting and shifting. During the speed control stage of the vehicle starting process, the TCU will send the speed control mode on the bus. During the speed control acceleration stage of the shifting process, downshifting will cause the input shaft speed to increase, and the transmission needs to use the master and slave discs for synchronization. To avoid the deterioration of shifting quality and the impact on the life of the clutch, the TCU will send the speed control mode. In this scenario, even if the PTO function is activated, the TSC1 request with a higher priority will be responded to first.

[0050] Figure 6 The method flow chart of the clock reset under PTO control provided by the present invention is as follows: Figure 6 As shown, regardless of whether the clock is stored in U32 or U64, there is a probability that the clock will be reset for long-term requests. For the PTO operation scenario, there may be long-term speed requests. If the clock reset problem occurs, it may cause speed fluctuations.

[0051] The TSC1 arbitration module needs to have clock judgment logic. The current clock time is compared with the timestamp of the last TSC1 message. If the current clock time is greater than the timestamp, it means that the clock has not overflowed. It is further necessary to determine whether the current clock time minus the timestamp of the last TSC1 message is greater than the TSC1 timeout time. If it is satisfied, it is confirmed that TSC1 has stopped sending and the reset function needs to be called. If it is not timed out, no processing is performed.

[0052] If the current clock time is less than the timestamp, it means the clock has overflowed. It is necessary to further determine whether the maximum clock time minus the timestamp of the last TSC1 message plus the current clock time is greater than the TSC1 timeout time. If it is satisfied, it is confirmed that TSC1 has stopped sending and the reset function needs to be called. If it is not satisfied, no processing is performed. Ensure that there is a continuous and stable speed response under long-term PTO requests and will not be affected by clock reset.

[0053] The engine speed control method provided by the embodiment of the present invention can ensure that TSC1_Rx() is executed in sequence in the same schedule of the same core, and cross-core and preemptive calls will not occur. By modifying the timestamp timeout judgment logic, special processing is performed on the situation when the clock overflows, and the problem of abnormal speed fluctuations that occur when the actual vehicle has a long-term PTO request is successfully solved.

[0054] In order to better implement the engine speed control method in the embodiment of the present invention, based on the engine speed control method, the embodiment of the present invention also provides an engine speed control device. Figure 7 A schematic diagram of the structure of an embodiment of the engine speed control device provided by the present invention is shown in FIG. Figure 7 As shown, the engine speed control device 700 includes: The conversion module 710 is used to convert the received PTO signal into a first TSC1 message, and receive a second TSC1 message from a different source address of the vehicle; the first TSC1 message and the second TSC1 message are stored in an intermediate cache two-dimensional array; A parsing module 720, configured to parse the messages cached in the intermediate cache two-dimensional array through a parsing function to obtain a parsed first TSC1 message and a parsed second TSC1 message; An arbitration module 730, configured to perform priority arbitration on the parsed first TSC1 message and the parsed second TSC1 message to determine a priority TSC1 message; The control module 740 is used to control the engine speed based on the priority TSC1 message.

[0055] The engine speed control device 700 provided in the above embodiment can implement the technical solution described in the above engine speed control method embodiment. The specific implementation principles of the above modules or units can refer to the corresponding contents in the engine speed control method embodiment, which will not be repeated here.

[0056] like Figure 8 As shown, the present invention also provides an electronic device 800. The electronic device 800 includes a processor 801, a memory 802 and a display 803. Figure 8 Only some components of the electronic device 800 are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.

[0057] In some embodiments, the processor 801 may be a central processing unit (CPU), a microprocessor or other data processing chip, which is used to run program codes or process data stored in the memory 802, such as the engine speed control method of the present invention.

[0058] In some embodiments, the processor 801 may be a single server or a server group. The server group may be centralized or distributed. In some embodiments, the processor 801 may be local or remote. In some embodiments, the processor 801 may be implemented in a cloud platform. In some embodiments, the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, an internal cloud, a multi-cloud, etc., or any combination thereof.

[0059] In some embodiments, the memory 802 may be an internal storage unit of the electronic device 800, such as a hard disk or memory of the electronic device 800. In other embodiments, the memory 802 may also be an external storage device of the electronic device 800, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc., equipped on the electronic device 800.

[0060] Furthermore, the memory 802 may include both an internal storage unit of the electronic device 800 and an external storage device. The memory 802 is used to store application software installed in the electronic device 800 and various data.

[0061] In some embodiments, the display 803 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an organic light-emitting diode (OLED) touch device, etc. The display 803 is used to display information on the electronic device 800 and to display a visual user interface. The components 801-803 of the electronic device 800 communicate with each other via a system bus.

[0062] In one embodiment, when the processor 801 executes the engine speed control program in the memory 802, the following steps may be implemented: Convert the received PTO signal into a first TSC1 message, and receive a second TSC1 message from a different source address of the vehicle; the first TSC1 message and the second TSC1 message are stored in an intermediate cache two-dimensional array; Parsing the message cached in the intermediate cache two-dimensional array by using a parsing function to obtain a parsed first TSC1 message and a parsed second TSC1 message; Performing priority arbitration on the parsed first TSC1 message and the parsed second TSC1 message to determine a priority TSC1 message; Based on the priority TSC1 message, the engine speed is controlled.

[0063] It should be understood that: when the processor 801 executes the engine speed control program in the memory 802, in addition to the above functions, other functions can also be implemented. For details, please refer to the description of the corresponding method embodiment above.

[0064] Furthermore, the embodiment of the present invention does not specifically limit the type of the electronic device 800 mentioned, and the electronic device 800 may be a portable electronic device such as a mobile phone, a tablet computer, a personal digital assistant (PDA), a wearable device, a laptop computer, etc. Exemplary embodiments of portable electronic devices include but are not limited to portable electronic devices equipped with IOS, Android, Microsoft or other operating systems. The above-mentioned portable electronic devices may also be other portable electronic devices, such as a laptop computer with a touch-sensitive surface (e.g., a touch panel). It should also be understood that in some other embodiments of the present invention, the electronic device 800 may not be a portable electronic device, but a desktop computer with a touch-sensitive surface (e.g., a touch panel).

[0065] Correspondingly, an embodiment of the present invention also provides a computer-readable storage medium, which is used to store computer-readable programs or instructions. When the program or instructions are executed by a processor, the steps or functions in the engine speed control method provided in the above-mentioned method embodiments can be implemented.

[0066] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the steps or functions of the engine speed control method provided in the above-mentioned method embodiments.

[0067] Those skilled in the art will appreciate that all or part of the processes of the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the computer program can be stored in a computer-readable storage medium, wherein the computer-readable storage medium is a disk, an optical disk, a read-only storage memory, or a random access memory, etc.

[0068] The engine speed control method, device, electronic device and storage medium provided by the present invention are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. An engine speed control method, characterized in that: include: Convert the received PTO signal into a first TSC1 message, and receive a second TSC1 message from a different source address of the vehicle; The first TSC1 message and the second TSC1 message are stored in an intermediate cache two-dimensional array; Parsing the message cached in the intermediate cache two-dimensional array by using a parsing function to obtain a parsed first TSC1 message and a parsed second TSC1 message; Performing priority arbitration on the parsed first TSC1 message and the parsed second TSC1 message to determine a priority TSC1 message; Based on the priority TSC1 message, the engine speed is controlled.

2. The engine speed control method according to claim 1, characterized in that: After converting the received PTO signal into the first TSC1 message and receiving the second TSC1 message from the different source addresses of the vehicle, it also includes: Determine the timestamp of the first TSC1 message received most recently; When it is determined based on the current clock time and the timestamp that the first TSC1 stops sending, the reset function is called.

3. The engine speed control method according to claim 2, characterized in that: When determining based on the current clock time and the timestamp that the first TSC1 stops sending, calling the reset function includes: When the current clock time is greater than the timestamp, calculating the time difference between the current clock time and the timestamp; When the time difference is greater than the preset TSC1 timeout period, the reset function is called.

4. The engine speed control method according to claim 2, characterized in that: When determining based on the current clock time and the timestamp that the first TSC1 stops sending, calling the reset function includes: When the current clock time is less than the timestamp, determining a maximum time value of the clock; Calculate the total time difference obtained by subtracting the timestamp from the maximum time of the clock and adding the current clock time; When the total time difference is greater than the preset TSC1 timeout period, the reset function is called.

5. The engine speed control method according to claim 1, characterized in that: The PTO signal includes: PTO activation status and PTO requested speed.

6. The engine speed control method according to claim 1, characterized in that: The cache duration of the intermediate cache two-dimensional array is 10 milliseconds.

7. An engine speed control device, characterized in that: include: A conversion module, used to convert the received PTO signal into a first TSC1 message, and receive a second TSC1 message from a different source address of the vehicle; The first TSC1 message and the second TSC1 message are stored in an intermediate cache two-dimensional array; A parsing module, used for parsing the messages cached in the intermediate cache two-dimensional array through a parsing function to obtain a parsed first TSC1 message and a parsed second TSC1 message; An arbitration module, used for performing priority arbitration on the parsed first TSC1 message and the parsed second TSC1 message to determine the priority TSC1 message; A control module is used to control the engine speed based on the priority TSC1 message.

8. An electronic device, characterized in that: comprising a memory and a processor, wherein: The memory is used to store programs; The processor is coupled to the memory and is used to execute the program stored in the memory to implement the engine speed control method as described in any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the engine speed control method according to any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the engine speed control method according to any one of claims 1 to 6 is implemented.