[go: up one dir, main page]

CN113805565B - Counter control method and device, vehicle and storage medium - Google Patents

Counter control method and device, vehicle and storage medium Download PDF

Info

Publication number
CN113805565B
CN113805565B CN202111068122.0A CN202111068122A CN113805565B CN 113805565 B CN113805565 B CN 113805565B CN 202111068122 A CN202111068122 A CN 202111068122A CN 113805565 B CN113805565 B CN 113805565B
Authority
CN
China
Prior art keywords
counter
sub
control
rate information
adjusted
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111068122.0A
Other languages
Chinese (zh)
Other versions
CN113805565A (en
Inventor
张成伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Weichai Power Co Ltd
Original Assignee
Weichai Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Weichai Power Co Ltd filed Critical Weichai Power Co Ltd
Priority to CN202111068122.0A priority Critical patent/CN113805565B/en
Publication of CN113805565A publication Critical patent/CN113805565A/en
Application granted granted Critical
Publication of CN113805565B publication Critical patent/CN113805565B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0218Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults
    • G05B23/0221Preprocessing measurements, e.g. data collection rate adjustment; Standardization of measurements; Time series or signal analysis, e.g. frequency analysis or wavelets; Trustworthiness of measurements; Indexes therefor; Measurements using easily measured parameters to estimate parameters difficult to measure; Virtual sensor creation; De-noising; Sensor fusion; Unconventional preprocessing inherently present in specific fault detection methods like PCA-based methods

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Communication Control (AREA)
  • Combined Controls Of Internal Combustion Engines (AREA)

Abstract

The embodiment of the invention discloses a counter control method, a counter control device, a vehicle and a storage medium. The counter control method comprises the following steps: receiving a counter control signal containing counter control information and counter running rate information, and determining a counter to be adjusted according to the counter control information; and when the counter running rate information reaches the counter running threshold value of the counter to be adjusted, sending the counter running rate information to the counter to be adjusted so as to control the counter to be adjusted to execute the corresponding target running rate according to the counter running rate information. The technical scheme of the embodiment of the invention realizes flexible adjustment of the running speed of the counter and improves the development efficiency of vehicle accessories.

Description

一种计数器控制方法、装置、车辆及存储介质Counter control method, device, vehicle and storage medium

技术领域technical field

本发明实施例涉及计数器控制技术领域,尤其涉及一种计数器控制方法、装置、车辆及存储介质。The embodiments of the present invention relate to the technical field of counter control, and in particular to a counter control method, device, vehicle and storage medium.

背景技术Background technique

在柴油机电控系统的控制中,ECU(Electronic Control Unit,电子控制单元)内部通过多种计数器计算某些事件或故障发生时的车辆运行以及行驶状态。就国六阶段柴油机而言,用于OBD(On-Board Diagnostics,车载自诊断系统)检测的大概有10余种类别的计数器,其大体分为两类:里程计数器和时间计数器。In the control of the diesel engine electronic control system, the ECU (Electronic Control Unit, electronic control unit) internally uses various counters to calculate the vehicle operation and driving status when certain events or failures occur. As far as the National VI diesel engine is concerned, there are about 10 types of counters used for OBD (On-Board Diagnostics, on-board self-diagnostics) detection, which are roughly divided into two categories: mileage counters and time counters.

当前的电控柴油机自主逻辑中,时间计数器或者里程计数器只能以一个既定的速率进行点加,不能够实现单一计数器的可调节功能。例如,一个B1类故障的时间计数器,只能是一小时增加一次计数,即只能记录真实的运行时间。里程计数器的原理工作与时间计数器类似,只能在里程前进一公里或者六十米增加一次计数。现有计数器固定速率点加计算的方法在应用时,无法灵活调整计数时间,只能等待时间运行到达或者修改计数器目标限值来实现,则将导致在验证一些计数器类器件的功能时,验证效率低,浪费试验验证资源。In the current autonomous logic of the electronically controlled diesel engine, the time counter or the mileage counter can only be added at a predetermined rate, and the adjustable function of a single counter cannot be realized. For example, the time counter of a B1 type fault can only count up once an hour, that is, it can only record the real running time. The principle of the mileage counter is similar to that of the time counter, and it can only be counted once when the mileage is advanced by one kilometer or sixty meters. When the existing counter fixed-rate point-adding calculation method is applied, the counting time cannot be adjusted flexibly, and it can only be realized by waiting for the running time to reach or modifying the counter target limit value, which will lead to verification efficiency when verifying the functions of some counter devices. Low, wasting test verification resources.

发明内容Contents of the invention

本发明实施例提供一种计数器控制方法、装置、车辆及存储介质,以实现灵活调节计数器运行速率,提升车辆配件开发效率。Embodiments of the present invention provide a counter control method, device, vehicle, and storage medium, so as to realize flexible adjustment of the running speed of the counter and improve the development efficiency of vehicle accessories.

第一方面,本发明实施例提供了一种计数器控制方法,该计数器控制方法包括:In a first aspect, an embodiment of the present invention provides a method for controlling a counter, and the method for controlling the counter includes:

接收到包含计数器控制信息和计数器运行速率信息的计数器控制信号,并根据所述计数器控制信息确定待调整计数器;receiving a counter control signal including counter control information and counter operating rate information, and determining a counter to be adjusted according to the counter control information;

当所述计数器运行速率信息达到所述待调整计数器的计数器运行阀值,则向所述待调整计数器发送所述计数器运行速率信息,以控制所述待调整计数器根据所述计数器运行速率信息执行相应的目标运行速率。When the counter operating rate information reaches the counter operating threshold of the counter to be adjusted, the counter operating rate information is sent to the counter to be adjusted, so as to control the counter to be adjusted to perform corresponding operations according to the counter operating rate information. The target running speed of .

进一步的,在接收到包含计数器控制信息和计数器运行速率信息的计数器控制信号之前,还包括:Further, before receiving the counter control signal including counter control information and counter operating rate information, it also includes:

接收到电流输入信号后,从预设计数器调整曲线中确认与所述电流输入信号对应的计数器运行速率信息。After receiving the current input signal, confirm the counter operating rate information corresponding to the current input signal from the preset counter adjustment curve.

进一步的,所述待调整计数器包括第一子计数器、第二子计数器和第三子计数器;Further, the counter to be adjusted includes a first sub-counter, a second sub-counter and a third sub-counter;

根据所述计数器控制信息确定待调整计数器,包括:Determining the counter to be adjusted according to the counter control information includes:

根据所述计数器控制信息确定对所述第一子计数器、所述第二子计数器或所述第三子计数器中的一个进行控制。determining to control one of the first sub-counter, the second sub-counter, or the third sub-counter according to the counter control information.

进一步的,根据所述计数器控制信息确定对所述第一子计数器进行控制;Further, determining to control the first sub-counter according to the counter control information;

当所述计数器运行速率信息达到所述待调整计数器的计数器运行阀值,则向所述待调整计数器发送所述计数器运行速率信息,包括:When the counter operating rate information reaches the counter operating threshold of the counter to be adjusted, the counter operating rate information is sent to the counter to be adjusted, including:

当所述计数器运行速率信息达到所述第一子计数器的第一子计数器运行阀值,则向所述第一子计数器发送所述计数器运行速率信息,以控制所述第一子计数器根据所述计数器运行速率信息执行相应的第一目标运行速率。When the counter operating rate information reaches the first sub-counter operating threshold of the first sub-counter, the counter operating rate information is sent to the first sub-counter to control the first sub-counter according to the The counter operating rate information implements a corresponding first target operating rate.

进一步的,所述计数器控制方法还包括:Further, the counter control method also includes:

通过所述第二子计数器接收所述第一子计数器以所述第一目标运行速率产生的第一子计数器触发信号,并控制所述第二子计数器根据所述第一子计数器触发信号输出第二子计数器触发信号;receiving a first sub-counter trigger signal generated by the first sub-counter at the first target operating rate through the second sub-counter, and controlling the second sub-counter to output a first sub-counter trigger signal according to the first sub-counter trigger signal Second sub-counter trigger signal;

通过所述第三子计数器接收所述第二子计数器触发信号,并控制所述第三子计数器根据所述第二子计数器触发信号输出第一子计数器值。The second sub-counter trigger signal is received by the third sub-counter, and the third sub-counter is controlled to output the first sub-counter value according to the second sub-counter trigger signal.

进一步的,根据所述计数器控制信息确定对所述第二子计数器进行控制;Further, determining to control the second sub-counter according to the counter control information;

当所述计数器运行速率信息达到所述待调整计数器的计数器运行阀值,则向所述待调整计数器发送所述计数器运行速率信息,包括:When the counter operating rate information reaches the counter operating threshold of the counter to be adjusted, the counter operating rate information is sent to the counter to be adjusted, including:

当所述计数器运行速率信息达到所述第二子计数器的第二子计数器运行阀值,则向所述第二子计数器发送所述计数器运行速率信息,以控制所述第二子计数器根据所述计数器运行速率信息执行相应的第二目标运行速率。When the counter operating rate information reaches the second sub-counter operating threshold of the second sub-counter, the counter operating rate information is sent to the second sub-counter to control the second sub-counter according to the The counter operating rate information implements a corresponding second target operating rate.

进一步的,所述计数器控制方法还包括:Further, the counter control method also includes:

通过所述第三子计数器接收所述第二子计数器以所述第二目标运行速率产生的第二子计数器触发信号,并控制所述第三子计数器根据所述第二子计数器触发信号输出第二子计数器值。Receive the second sub-counter trigger signal generated by the second sub-counter at the second target operating rate through the third sub-counter, and control the third sub-counter to output the first sub-counter according to the second sub-counter trigger signal Second sub-counter value.

第二方面,本发明实施例还提供了一种计数器控制装置,该计数器控制装置包括:In the second aspect, the embodiment of the present invention also provides a counter control device, the counter control device includes:

信息确认模块,用于接收到包含计数器控制信息和计数器运行速率信息的计数器控制信号,并根据所述计数器控制信息确定待调整计数器;An information confirmation module, configured to receive a counter control signal including counter control information and counter operating rate information, and determine a counter to be adjusted according to the counter control information;

速率调整模块,用于当所述计数器运行速率信息达到所述待调整计数器的计数器运行阀值,则向所述待调整计数器发送所述计数器运行速率信息,以控制所述待调整计数器根据所述计数器运行速率信息执行相应的目标运行速率。A rate adjustment module, configured to send the counter operating rate information to the counter to be adjusted when the counter operating rate information reaches the counter operating threshold of the counter to be adjusted, so as to control the counter to be adjusted according to the The counter run rate information executes the corresponding target run rate.

第三方面,本发明实施例还提供了一种车辆,该车辆包括:In a third aspect, the embodiment of the present invention also provides a vehicle, which includes:

一个或多个处理器;one or more processors;

存储装置,用于存储多个程序,storage means for storing a plurality of programs,

当所述多个程序中的至少一个被所述一个或多个处理器执行时,使得所述一个或多个处理器实现本发明第一方面实施例所提供的一种计数器控制方法。When at least one of the multiple programs is executed by the one or more processors, the one or more processors are made to implement the counter control method provided in the embodiment of the first aspect of the present invention.

第四方面,本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现本发明第一方面实施例所提供的一种计数器控制方法。In a fourth aspect, the embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the counter control method provided in the embodiment of the first aspect of the present invention is implemented.

本发明实施例的技术方案,通过接收到包含计数器控制信息和计数器运行速率信息的计数器控制信号,并根据所述计数器控制信息确定待调整计数器;当所述计数器运行速率信息达到所述待调整计数器的计数器运行阀值,则向所述待调整计数器发送所述计数器运行速率信息,以控制所述待调整计数器根据所述计数器运行速率信息执行相应的目标运行速率。解决现有计数器固定速率点加计算将导致验证效率低,浪费试验验证资源的问题,以实现灵活调节计数器运行速率,提升车辆配件开发效率。According to the technical solution of the embodiment of the present invention, the counter to be adjusted is determined according to the counter control information by receiving the counter control signal including the counter control information and the counter operating rate information; when the counter operating rate information reaches the counter to be adjusted The counter operation threshold value, then send the counter operation rate information to the counter to be adjusted, so as to control the counter to be adjusted to perform a corresponding target operation rate according to the counter operation rate information. Solve the problem of low verification efficiency and waste of test and verification resources caused by the fixed-rate point-adding calculation of the existing counter, so as to realize flexible adjustment of the counter operation rate and improve the development efficiency of vehicle accessories.

附图说明Description of drawings

图1是本发明实施例一提供的一种计数器控制方法的流程图;FIG. 1 is a flow chart of a counter control method provided by Embodiment 1 of the present invention;

图2是本发明实施例二提供的一种计数器控制方法的流程图;FIG. 2 is a flow chart of a counter control method provided by Embodiment 2 of the present invention;

图3是本发明实施例三提供的一种计数器控制装置的结构图;Fig. 3 is a structural diagram of a counter control device provided by Embodiment 3 of the present invention;

图4是本发明实施例四提供的一种设备的硬件结构示意图。FIG. 4 is a schematic diagram of a hardware structure of a device provided in Embodiment 4 of the present invention.

具体实施方式Detailed ways

为了使本发明的目的、技术方案和优点更加清楚,下面结合附图对本发明具体实施例作进一步的详细描述。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。In order to make the object, technical solution and advantages of the present invention clearer, specific embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention.

另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部内容。在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各项操作(或步骤)描述成顺序的处理,但是其中的许多操作可以被并行地、并发地或者同时实施。此外,各项操作的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。In addition, it should be noted that, for the convenience of description, only parts related to the present invention are shown in the drawings but not all content. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe various operations (or steps) as sequential processing, many of the operations may be performed in parallel, concurrently, or simultaneously. In addition, the order of operations can be rearranged. The process may be terminated when its operations are complete, but may also have additional steps not included in the figure. The processing may correspond to a method, function, procedure, subroutine, subroutine, or the like.

实施例一Embodiment one

图1为本发明实施例一提供的一种计数器控制方法的流程图,本实施例可适用于在不增加发动机任何成本、保证整车经济性的基础上,缩短完成计数器相关功能开发验证的时间的情况,该计数器控制方法可以由计数器控制装置来执行,该计数器控制装置可以通过软件和/或硬件的形式实现。该计数器控制方法具体包括如下步骤:Figure 1 is a flow chart of a counter control method provided by Embodiment 1 of the present invention. This embodiment is applicable to shortening the time to complete the development and verification of counter-related functions without increasing any cost of the engine and ensuring the economy of the entire vehicle. In some cases, the counter control method can be executed by a counter control device, and the counter control device can be implemented in the form of software and/or hardware. This counter control method specifically comprises the steps:

S110、接收到包含计数器控制信息和计数器运行速率信息的计数器控制信号,并根据所述计数器控制信息确定待调整计数器。S110. Receive a counter control signal including counter control information and counter operating rate information, and determine a counter to be adjusted according to the counter control information.

其中,待调整计数器为ECU内部计数器中的多种计数器的一种,可选的,待调整计数器为里程计数器或时间计数器。Wherein, the counter to be adjusted is one of various counters in the ECU internal counter, and optionally, the counter to be adjusted is a mileage counter or a time counter.

待调整计数器包括第一子计数器、第二子计数器和第三子计数器;计数器控制信息为对待调整计数器中的第一子计数器、第二子计数器或第三子计数器的一个进行控制的信息。The counter to be adjusted includes a first sub-counter, a second sub-counter and a third sub-counter; the counter control information is information for controlling one of the first sub-counter, the second sub-counter or the third sub-counter in the counter to be adjusted.

具体的,根据计数器控制信息确定待调整计数器,为根据所述计数器控制信息确定对所述第一子计数器、所述第二子计数器或所述第三子计数器中的一个进行控制。Specifically, the counter to be adjusted is determined according to the counter control information, and one of the first sub-counter, the second sub-counter, or the third sub-counter is determined to be controlled according to the counter control information.

在上述实施例的基础上,在接收到包含计数器控制信息和计数器运行速率信息的计数器控制信号之前,还包括:接收到电流输入信号后,从预设计数器调整曲线中确认与所述电流输入信号对应的计数器运行速率信息。On the basis of the above embodiment, before receiving the counter control signal including the counter control information and the counter operating rate information, it also includes: after receiving the current input signal, confirming the current input signal from the preset counter adjustment curve Corresponding counter operation rate information.

其中,计数器运行速率信息为计数器测试人员期望的计数器运行速率,即待修改的计数器运行速率的倍数。Wherein, the counter operation rate information is the counter operation rate expected by the counter tester, that is, the multiple of the counter operation rate to be modified.

具体的,在计数器测试人员按下不同的档位开关,由于在ECU前端设置有不同的电阻,基于不同电阻特性,产生不同的电流输入信号,当ECU接收到不同的电流输入信号,从预设计数器调整曲线中确认与所述电流输入信号对应的计数器运行速率信息。Specifically, when the counter tester presses different gear switches, since different resistances are set at the front end of the ECU, different current input signals will be generated based on different resistance characteristics. When the ECU receives different current input signals, it will start from the preset The counter operating rate information corresponding to the current input signal is confirmed in the counter adjustment curve.

进一步的,ECU接收到前端受到外部变化产生的计数器控制信号,计数器控制信号包含计数器控制信息和计数器运行速率信息,ECU根据计数器控制信息确定对待调整计数器包括的第一子计数器、所述第二子计数器或所述第三子计数器中的一个进行控制,以实现对ECU内部计数器的运行速率进行调节的目的。Further, the ECU receives the counter control signal generated by the front end due to external changes. The counter control signal includes counter control information and counter operating rate information. The ECU determines the first sub-counter and the second sub-counter included in the counter to be adjusted according to the counter control information. The counter or one of the third sub-counters is controlled to achieve the purpose of adjusting the operating speed of the ECU internal counter.

S120、当所述计数器运行速率信息达到所述待调整计数器的计数器运行阀值,则向所述待调整计数器发送所述计数器运行速率信息,以控制所述待调整计数器根据所述计数器运行速率信息执行相应的目标运行速率。S120. When the counter operating rate information reaches the counter operating threshold of the counter to be adjusted, send the counter operating rate information to the counter to be adjusted, so as to control the counter to be adjusted according to the counter operating rate information Execute the corresponding target run rate.

其中,待调整计数器包括的第一子计数器、第二子计数器和第三子计数器,第一子计数器、第二子计数器和第三子计数器可以分别为以时间单位从小到大排列的子计数器。可选的,第一子计数器的时间单位为秒,第二子计数器的时间单位为分,第三子计数器的时间单位为小时。Wherein, the counter to be adjusted includes a first sub-counter, a second sub-counter and a third sub-counter, and the first sub-counter, the second sub-counter and the third sub-counter may respectively be sub-counters arranged in ascending order of time units. Optionally, the time unit of the first sub-counter is second, the time unit of the second sub-counter is minute, and the time unit of the third sub-counter is hour.

在一实施例中,根据所述计数器控制信息确定对所述第一子计数器进行控制;当所述计数器运行速率信息达到所述待调整计数器的计数器运行阀值,则向所述待调整计数器发送所述计数器运行速率信息,包括:当所述计数器运行速率信息达到所述第一子计数器的第一子计数器运行阀值,则向所述第一子计数器发送所述计数器运行速率信息,以控制所述第一子计数器根据所述计数器运行速率信息执行相应的第一目标运行速率。In an embodiment, it is determined to control the first sub-counter according to the counter control information; when the counter operation rate information reaches the counter operation threshold of the counter to be adjusted, then the information is sent to the counter to be adjusted The counter operating rate information includes: when the counter operating rate information reaches the first sub-counter operating threshold of the first sub-counter, the counter operating rate information is sent to the first sub-counter to control The first sub-counter executes a corresponding first target operating rate according to the counter operating rate information.

示例性的,以第一子计数器的初始运行速率为常规的数秒为例,第一子计数器每1秒计数一次,即计数器的当前运行速率为1秒/次,当所述计数器运行速率信息为待修改的计数器运行速率的2倍,则计数器运行速率信息达到所述第一子计数器的第一子计数器运行阀值,即计数器运行速率信息大于计数器的当前运行速率,则控制第一子计数器以第一目标运行速率进行运行,即第一目标运行速率为0.5秒/次。Exemplarily, taking the initial running rate of the first sub-counter as a conventional number of seconds as an example, the first sub-counter counts once every 1 second, that is, the current running rate of the counter is 1 second/time, when the running rate information of the counter is 2 times of the counter operating rate to be modified, then the counter operating rate information reaches the first sub-counter operating threshold of the first sub-counter, that is, the counter operating rate information is greater than the current operating rate of the counter, then the first sub-counter is controlled to The operation is performed at the first target operation rate, that is, the first target operation rate is 0.5 seconds/time.

进一步的,通过所述第二子计数器接收所述第一子计数器以所述第一目标运行速率产生的第一子计数器触发信号,并控制所述第二子计数器根据所述第一子计数器触发信号输出第二子计数器触发信号;通过所述第三子计数器接收所述第二子计数器触发信号,并控制所述第三子计数器根据所述第二子计数器触发信号输出第一子计数器值。Further, the first sub-counter trigger signal generated by the first sub-counter at the first target operating rate is received by the second sub-counter, and the second sub-counter is controlled to trigger according to the first sub-counter Signal outputting a second sub-counter triggering signal; receiving the second sub-counter triggering signal through the third sub-counter, and controlling the third sub-counter to output the first sub-counter value according to the second sub-counter triggering signal.

示例性的,以第一子计数器的初始运行速率为常规的数秒为例,第一子计数器每0.5秒计数一次,当第一子计数器计数30秒(第一子计数器若以当前运行速率1秒/次进行计数,则此处需要计数60秒),即计数60次后,则产生的第一子计数器触发信号,第一子计数器触发信号控制第二子计数器进行一次计数;在第二子计数器以每接收到一个第一子计数器触发信号为一分钟计数,接收到60个第一子计数器触发信号后则生成一个第二子计数器触发信号,进而在第三子计数器接收到一个第二子计数器触发信号,输出第一子计数器值为1。在上述基础上,通过修改第一子计数器的运行速率,提升整个计数器的运行效率,从而缩短计数器功能的相应验证时间,达到提高验证效率的目的。Exemplarily, taking the initial operating rate of the first sub-counter as a conventional number of seconds as an example, the first sub-counter counts once every 0.5 seconds, when the first sub-counter counts for 30 seconds (if the first sub-counter is at the current operating rate for 1 second / time to count, then need to count 60 seconds here), that is, after counting 60 times, then the first sub-counter trigger signal generated, the first sub-counter trigger signal controls the second sub-counter to count once; in the second sub-counter One minute is counted every time a first sub-counter trigger signal is received, and a second sub-counter trigger signal is generated after receiving 60 first sub-counter trigger signals, and then a second sub-counter is received at the third sub-counter Trigger signal, output the value of the first sub-counter as 1. On the basis of the above, by modifying the operating speed of the first sub-counter, the operating efficiency of the entire counter is improved, thereby shortening the corresponding verification time of the counter function, and achieving the purpose of improving verification efficiency.

在另一实施例中,根据所述计数器控制信息确定对所述第二子计数器进行控制;当所述计数器运行速率信息达到所述待调整计数器的计数器运行阀值,则向所述待调整计数器发送所述计数器运行速率信息,包括:当所述计数器运行速率信息达到所述第二子计数器的第二子计数器运行阀值,则向所述第二子计数器发送所述计数器运行速率信息,以控制所述第二子计数器根据所述计数器运行速率信息执行相应的第二目标运行速率。In another embodiment, it is determined to control the second sub-counter according to the counter control information; when the counter operation rate information reaches the counter operation threshold of the counter to be adjusted, the counter to be adjusted Sending the counter operation rate information includes: when the counter operation rate information reaches the second sub-counter operation threshold of the second sub-counter, sending the counter operation rate information to the second sub-counter, to and controlling the second sub-counter to execute a corresponding second target operating rate according to the counter operating rate information.

示例性的,以第一子计数器的初始运行速率为常规的数秒为例,第一子计数器每1秒计数一次,即计数器的当前运行速率为1秒/次,第二子计数器每1分钟计数一次,即计数器的当前运行速率为1分/次,当所述计数器运行速率信息为待修改的计数器运行速率的2倍,则计数器运行速率信息达到所述第二子计数器的第二子计数器运行阀值,即计数器运行速率信息大于计数器的当前运行速率,则控制第二子计数器以第二目标运行速率进行运行,即第二目标运行速率为0.5分/次。Exemplarily, taking the initial running rate of the first sub-counter as a conventional number of seconds as an example, the first sub-counter counts once every 1 second, that is, the current running rate of the counter is 1 second/time, and the second sub-counter counts every 1 minute Once, that is, the current operating rate of the counter is 1 minute/time, when the counter operating rate information is twice the counter operating rate to be modified, the counter operating rate information reaches the second sub-counter operation of the second sub-counter The threshold value, that is, the counter operating rate information is greater than the current operating rate of the counter, then the second sub-counter is controlled to operate at the second target operating rate, that is, the second target operating rate is 0.5 minutes/time.

进一步的,通过所述第三子计数器接收所述第二子计数器以所述第二目标运行速率产生的第二子计数器触发信号,并控制所述第三子计数器根据所述第二子计数器触发信号输出第二子计数器值。Further, the second sub-counter trigger signal generated by the second sub-counter at the second target operating rate is received by the third sub-counter, and the third sub-counter is controlled to trigger according to the second sub-counter signal outputs the second sub-counter value.

示例性的,以第一子计数器的初始运行速率为常规的数秒为例,第一子计数器每1秒计数一次,即计数器的当前运行速率为1秒/次,第二子计数器每0.5分钟计数一次,即计数器的当前运行速率为0.5分/次,当第二子计数器计数30分(第二子计数器若以当前运行速率1秒/次进行计数,则此处需要计数60分),即计数60次后,则产生的第二子计数器触发信号,第二子计数器触发信号控制第三子计数器进行一次计数,即输出第二子计数器值为1。在上述基础上,通过修改第二子计数器的运行速率,提升整个计数器的运行效率,从而缩短计数器功能的相应验证时间,达到提高验证效率的目的。Exemplarily, taking the initial running rate of the first sub-counter as a conventional number of seconds as an example, the first sub-counter counts once every 1 second, that is, the current running rate of the counter is 1 second/time, and the second sub-counter counts every 0.5 minutes Once, that is, the current operating rate of the counter is 0.5 minutes/time, when the second sub-counter counts 30 minutes (if the second sub-counter counts at the current operating rate of 1 second/time, it needs to count 60 minutes here), that is, count After 60 times, a trigger signal of the second sub-counter is generated, and the trigger signal of the second sub-counter controls the third sub-counter to count once, that is, the value of the second sub-counter is output as 1. On the basis of the above, by modifying the operating speed of the second sub-counter, the operating efficiency of the entire counter is improved, thereby shortening the corresponding verification time of the counter function, and achieving the purpose of improving verification efficiency.

需要说明的是,在上述基础上,可以通过对所述第一子计数器、所述第二子计数器或所述第三子计数器中的任意一个的运行速率进行相应的修改,则可实现待调整计数器的运行速率的修改,即控制待调整计数器的运行时间缩短到理想的目标值,则在ECU内部需要对计数器的相应功能进行验证时,达到提升开发效率以及试验资源效率的目的,实现对计数器运行速率的灵活调整和变化,提升本领域技术人员的使用体验。It should be noted that, based on the above, by modifying the operation rate of any one of the first sub-counter, the second sub-counter or the third sub-counter accordingly, the to-be-adjusted The modification of the running rate of the counter, that is, the shortening of the running time of the counter to be adjusted to the ideal target value, when the corresponding function of the counter needs to be verified inside the ECU, the purpose of improving the development efficiency and the efficiency of test resources is achieved. The flexible adjustment and change of the operating rate improves the experience of those skilled in the art.

本发明实施例的技术方案,通过接收到包含计数器控制信息和计数器运行速率信息的计数器控制信号,并根据所述计数器控制信息确定待调整计数器;当所述计数器运行速率信息达到所述待调整计数器的计数器运行阀值,则向所述待调整计数器发送所述计数器运行速率信息,以控制所述待调整计数器根据所述计数器运行速率信息执行相应的目标运行速率。解决现有计数器固定速率点加计算将导致验证效率低,浪费试验验证资源的问题,以实现灵活调节计数器运行速率,提升车辆配件开发效率。According to the technical solution of the embodiment of the present invention, the counter to be adjusted is determined according to the counter control information by receiving the counter control signal including the counter control information and the counter operating rate information; when the counter operating rate information reaches the counter to be adjusted The counter operation threshold value, then send the counter operation rate information to the counter to be adjusted, so as to control the counter to be adjusted to perform a corresponding target operation rate according to the counter operation rate information. Solve the problem of low verification efficiency and waste of test and verification resources caused by the fixed-rate point-adding calculation of the existing counter, so as to realize flexible adjustment of the counter operation rate and improve the development efficiency of vehicle accessories.

实施例二Embodiment two

图2为本发明实施例二提供的一种计数器控制方法的流程图,本实施例以上述实施例为基础进行优化。FIG. 2 is a flow chart of a counter control method provided by Embodiment 2 of the present invention. This embodiment is optimized on the basis of the foregoing embodiments.

相应的,本实施例的计数器控制方法具体包括:Correspondingly, the counter control method in this embodiment specifically includes:

S210、接收到电流输入信号后,从预设计数器调整曲线中确认与所述电流输入信号对应的计数器运行速率信息。S210. After receiving the current input signal, confirm the counter operating rate information corresponding to the current input signal from the preset counter adjustment curve.

具体的,在计数器测试人员按下不同的档位开关,由于在ECU前端设置有不同的电阻,即不同的档位对应不同的电阻,基于不同电阻特性,产生不同的电流输入信号,实现电流输入信号的差异化。在此基础上,当ECU在接收到不同的电流输入信号时,将自动调整计数器的增加阀值,即从预设计数器调整曲线中确认与所述电流输入信号对应的计数器运行速率信息,进而达到调整计数器运行速率的目的。Specifically, when the counter tester presses different gear switches, since different resistances are set at the front end of the ECU, that is, different gears correspond to different resistances, based on different resistance characteristics, different current input signals are generated to realize current input. signal differentiation. On this basis, when the ECU receives different current input signals, it will automatically adjust the increase threshold of the counter, that is, confirm the counter operation rate information corresponding to the current input signal from the preset counter adjustment curve, and then achieve The purpose of adjusting the running rate of the counter.

S220、接收到包含计数器控制信息和计数器运行速率信息的计数器控制信号,并根据所述计数器控制信息确定待调整计数器。S220. Receive a counter control signal including counter control information and counter operating rate information, and determine a counter to be adjusted according to the counter control information.

在上述实施例的基础上,所述待调整计数器包括第一子计数器、第二子计数器和第三子计数器;根据所述计数器控制信息确定待调整计数器,包括:根据所述计数器控制信息确定对所述第一子计数器、所述第二子计数器或所述第三子计数器中的一个进行控制。On the basis of the above embodiments, the counter to be adjusted includes a first sub-counter, a second sub-counter and a third sub-counter; determining the counter to be adjusted according to the counter control information includes: determining the counter to be adjusted according to the counter control information One of the first sub-counter, the second sub-counter or the third sub-counter is controlled.

S230、当所述计数器运行速率信息达到所述待调整计数器的计数器运行阀值,则向所述待调整计数器发送所述计数器运行速率信息,以控制所述待调整计数器根据所述计数器运行速率信息执行相应的目标运行速率。S230. When the counter operating rate information reaches the counter operating threshold of the counter to be adjusted, send the counter operating rate information to the counter to be adjusted, so as to control the counter to be adjusted according to the counter operating rate information Execute the corresponding target run rate.

在一实施例中,根据所述计数器控制信息确定对所述第一子计数器进行控制;进一步的,当所述计数器运行速率信息达到所述待调整计数器的计数器运行阀值,则向所述待调整计数器发送所述计数器运行速率信息,包括:当所述计数器运行速率信息达到所述第一子计数器的第一子计数器运行阀值,则向所述第一子计数器发送所述计数器运行速率信息,以控制所述第一子计数器根据所述计数器运行速率信息执行相应的第一目标运行速率。In one embodiment, it is determined to control the first sub-counter according to the counter control information; further, when the counter operation rate information reaches the counter operation threshold of the counter to be adjusted, the Adjusting the counter to send the counter operating rate information includes: sending the counter operating rate information to the first sub-counter when the counter operating rate information reaches the first sub-counter operating threshold of the first sub-counter , to control the first sub-counter to execute a corresponding first target operating rate according to the counter operating rate information.

在上述基础上,进一步的,所述计数器控制方法还包括:通过所述第二子计数器接收所述第一子计数器以所述第一目标运行速率产生的第一子计数器触发信号,并控制所述第二子计数器根据所述第一子计数器触发信号输出第二子计数器触发信号;通过所述第三子计数器接收所述第二子计数器触发信号,并控制所述第三子计数器根据所述第二子计数器触发信号输出第一子计数器值。On the basis of the above, further, the counter control method further includes: receiving the first sub-counter trigger signal generated by the first sub-counter at the first target operating rate through the second sub-counter, and controlling the The second sub-counter outputs a second sub-counter trigger signal according to the first sub-counter trigger signal; receives the second sub-counter trigger signal through the third sub-counter, and controls the third sub-counter according to the The second sub-counter trigger signal outputs the first sub-counter value.

在另一实施例中,根据所述计数器控制信息确定对所述第二子计数器进行控制;当所述计数器运行速率信息达到所述待调整计数器的计数器运行阀值,则向所述待调整计数器发送所述计数器运行速率信息,包括:当所述计数器运行速率信息达到所述第二子计数器的第二子计数器运行阀值,则向所述第二子计数器发送所述计数器运行速率信息,以控制所述第二子计数器根据所述计数器运行速率信息执行相应的第二目标运行速率。In another embodiment, it is determined to control the second sub-counter according to the counter control information; when the counter operation rate information reaches the counter operation threshold of the counter to be adjusted, the counter to be adjusted Sending the counter operation rate information includes: when the counter operation rate information reaches the second sub-counter operation threshold of the second sub-counter, sending the counter operation rate information to the second sub-counter, to and controlling the second sub-counter to execute a corresponding second target operating rate according to the counter operating rate information.

在上述基础上,进一步的,所述计数器控制方法还包括:通过所述第三子计数器接收所述第二子计数器以所述第二目标运行速率产生的第二子计数器触发信号,并控制所述第三子计数器根据所述第二子计数器触发信号输出第二子计数器值。On the basis of the above, further, the counter control method further includes: receiving the second sub-counter trigger signal generated by the second sub-counter at the second target operating speed through the third sub-counter, and controlling the The third sub-counter outputs a second sub-counter value according to the trigger signal of the second sub-counter.

本发明实施例的技术方案,在不增加发动机任何成本、保证整车经济性的基础上,缩短完成计数器相关功能开发验证的时间,很大的提升了开发的效率。The technical solution of the embodiment of the present invention shortens the time for completing the development and verification of counter-related functions without increasing any cost of the engine and ensuring the economy of the whole vehicle, and greatly improves the development efficiency.

实施例三Embodiment three

图3为本发明实施例三提供的一种计数器控制装置的结构图,本实施例可适用于在不增加发动机任何成本、保证整车经济性的基础上,缩短完成计数器相关功能开发验证的时间的情况。Figure 3 is a structural diagram of a counter control device provided by Embodiment 3 of the present invention. This embodiment can be applied to shorten the time for completing the development and verification of counter-related functions without increasing any cost of the engine and ensuring the economy of the vehicle. Case.

如图3所示,所述计数器控制装置包括:信息确认模块310和速率调整模块320,其中:As shown in Figure 3, the counter control device includes: an information confirmation module 310 and a rate adjustment module 320, wherein:

信息确认模块310,用于接收到包含计数器控制信息和计数器运行速率信息的计数器控制信号,并根据所述计数器控制信息确定待调整计数器;An information confirmation module 310, configured to receive a counter control signal including counter control information and counter operating rate information, and determine a counter to be adjusted according to the counter control information;

速率调整模块320,用于当所述计数器运行速率信息达到所述待调整计数器的计数器运行阀值,则向所述待调整计数器发送所述计数器运行速率信息,以控制所述待调整计数器根据所述计数器运行速率信息执行相应的目标运行速率。A rate adjustment module 320, configured to send the counter operation rate information to the counter to be adjusted when the counter operation rate information reaches the counter operation threshold value of the counter to be adjusted, so as to control the counter to be adjusted according to the The above-mentioned counter operating rate information executes the corresponding target operating rate.

本实施例的计数器控制装置,通过接收到包含计数器控制信息和计数器运行速率信息的计数器控制信号,并根据所述计数器控制信息确定待调整计数器;当所述计数器运行速率信息达到所述待调整计数器的计数器运行阀值,则向所述待调整计数器发送所述计数器运行速率信息,以控制所述待调整计数器根据所述计数器运行速率信息执行相应的目标运行速率。解决现有计数器固定速率点加计算将导致验证效率低,浪费试验验证资源的问题,以实现灵活调节计数器运行速率,提升车辆配件开发效率。The counter control device of this embodiment determines the counter to be adjusted according to the counter control information after receiving the counter control signal including counter control information and counter operating rate information; when the counter operating rate information reaches the counter to be adjusted The counter operation threshold value, then send the counter operation rate information to the counter to be adjusted, so as to control the counter to be adjusted to perform a corresponding target operation rate according to the counter operation rate information. Solve the problem of low verification efficiency and waste of test and verification resources caused by the fixed-rate point-adding calculation of the existing counter, so as to realize flexible adjustment of the counter operation rate and improve the development efficiency of vehicle accessories.

在上述各实施例的基础上,所述计数器控制装置还包括:On the basis of the above-mentioned embodiments, the counter control device further includes:

计数器运行速率信息确认模块,用于接收到电流输入信号后,从预设计数器调整曲线中确认与所述电流输入信号对应的计数器运行速率信息。The counter operation rate information confirmation module is configured to confirm the counter operation rate information corresponding to the current input signal from the preset counter adjustment curve after receiving the current input signal.

在上述各实施例的基础上,所述待调整计数器包括第一子计数器、第二子计数器和第三子计数器;On the basis of the above embodiments, the counter to be adjusted includes a first sub-counter, a second sub-counter and a third sub-counter;

根据所述计数器控制信息确定待调整计数器,包括:Determining the counter to be adjusted according to the counter control information includes:

根据所述计数器控制信息确定对所述第一子计数器、所述第二子计数器或所述第三子计数器中的一个进行控制。determining to control one of the first sub-counter, the second sub-counter, or the third sub-counter according to the counter control information.

在上述各实施例的基础上,根据所述计数器控制信息确定对所述第一子计数器进行控制;On the basis of the above embodiments, determine to control the first sub-counter according to the counter control information;

当所述计数器运行速率信息达到所述待调整计数器的计数器运行阀值,则向所述待调整计数器发送所述计数器运行速率信息,包括:When the counter operating rate information reaches the counter operating threshold of the counter to be adjusted, the counter operating rate information is sent to the counter to be adjusted, including:

当所述计数器运行速率信息达到所述第一子计数器的第一子计数器运行阀值,则向所述第一子计数器发送所述计数器运行速率信息,以控制所述第一子计数器根据所述计数器运行速率信息执行相应的第一目标运行速率。When the counter operating rate information reaches the first sub-counter operating threshold of the first sub-counter, the counter operating rate information is sent to the first sub-counter to control the first sub-counter according to the The counter operating rate information implements a corresponding first target operating rate.

在上述各实施例的基础上,所述计数器控制装置还包括:On the basis of the above-mentioned embodiments, the counter control device further includes:

第二子计数器触发信号输出模块,用于通过所述第二子计数器接收所述第一子计数器以所述第一目标运行速率产生的第一子计数器触发信号,并控制所述第二子计数器根据所述第一子计数器触发信号输出第二子计数器触发信号;A second sub-counter trigger signal output module, configured to receive a first sub-counter trigger signal generated by the first sub-counter at the first target operating rate through the second sub-counter, and control the second sub-counter outputting a second sub-counter trigger signal according to the first sub-counter trigger signal;

第一子计数器值输出模块,用于通过所述第三子计数器接收所述第二子计数器触发信号,并控制所述第三子计数器根据所述第二子计数器触发信号输出第一子计数器值。A first sub-counter value output module, configured to receive the second sub-counter trigger signal through the third sub-counter, and control the third sub-counter to output the first sub-counter value according to the second sub-counter trigger signal .

在上述各实施例的基础上,根据所述计数器控制信息确定对所述第二子计数器进行控制;On the basis of the above embodiments, determine to control the second sub-counter according to the counter control information;

当所述计数器运行速率信息达到所述待调整计数器的计数器运行阀值,则向所述待调整计数器发送所述计数器运行速率信息,包括:When the counter operating rate information reaches the counter operating threshold of the counter to be adjusted, the counter operating rate information is sent to the counter to be adjusted, including:

当所述计数器运行速率信息达到所述第二子计数器的第二子计数器运行阀值,则向所述第二子计数器发送所述计数器运行速率信息,以控制所述第二子计数器根据所述计数器运行速率信息执行相应的第二目标运行速率。When the counter operating rate information reaches the second sub-counter operating threshold of the second sub-counter, the counter operating rate information is sent to the second sub-counter to control the second sub-counter according to the The counter operating rate information implements a corresponding second target operating rate.

在上述各实施例的基础上,所述计数器控制装置还包括:On the basis of the above-mentioned embodiments, the counter control device further includes:

第二子计数器值输出模块,用于通过所述第三子计数器接收所述第二子计数器以所述第二目标运行速率产生的第二子计数器触发信号,并控制所述第三子计数器根据所述第二子计数器触发信号输出第二子计数器值。The second sub-counter value output module is configured to receive the second sub-counter trigger signal generated by the second sub-counter at the second target operating rate through the third sub-counter, and control the third sub-counter according to The second sub-counter trigger signal outputs a second sub-counter value.

上述各实施例所提供的计数器控制装置可执行本发明任意实施例所提供的计数器控制方法,具备执行计数器控制方法相应的功能模块和有益效果。The counter control device provided by the above embodiments can execute the counter control method provided by any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the counter control method.

实施例四Embodiment four

图4为本发明实施例四提供的一种车辆的结构示意图,如图4所示,该车辆包括处理器410、存储器420、输入装置430和输出装置440;车辆中处理器410的数量可以是一个或多个,图4中以一个处理器410为例;车辆中的处理器410、存储器420、输入装置430和输出装置440可以通过总线或其他方式连接,图4中以通过总线连接为例。Fig. 4 is a schematic structural diagram of a vehicle provided by Embodiment 4 of the present invention. As shown in Fig. 4, the vehicle includes a processor 410, a memory 420, an input device 430 and an output device 440; the number of processors 410 in the vehicle may be One or more, one processor 410 is taken as an example in FIG. 4; the processor 410, memory 420, input device 430 and output device 440 in the vehicle can be connected through a bus or other methods, and the connection through a bus is taken as an example in FIG. 4 .

存储器420作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块,如本发明实施例中的计数器控制方法对应的程序指令/模块(例如,计数器控制装置中的信息确认模块310和速率调整模块320)。处理器410通过运行存储在存储器420中的软件程序、指令以及模块,从而执行车辆的各种功能应用以及数据处理,即实现上述的计数器控制方法。The memory 420, as a computer-readable storage medium, can be used to store software programs, computer-executable programs and modules, such as program instructions/modules corresponding to the counter control method in the embodiment of the present invention (for example, information confirmation in the counter control device module 310 and rate adjustment module 320). The processor 410 executes various functional applications and data processing of the vehicle by running software programs, instructions and modules stored in the memory 420 , that is, implements the above-mentioned counter control method.

存储器420可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端的使用所创建的数据等。此外,存储器420可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实例中,存储器420可进一步包括相对于处理器410远程设置的存储器,这些远程存储器可以通过网络连接至车辆。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 420 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application program required by at least one function; the data storage area may store data created according to the use of the terminal, and the like. In addition, the memory 420 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage devices. In some examples, memory 420 may further include memory located remotely from processor 410 , and such remote memory may be connected to the vehicle via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

输入装置430可用于接收输入的数字或字符信息,以及产生与车辆的用户设置以及功能控制有关的键信号输入。输出装置440可包括显示屏等显示设备。The input device 430 can be used for receiving inputted number or character information, and generating key signal input related to user setting and function control of the vehicle. The output device 440 may include a display device such as a display screen.

实施例五Embodiment five

本发明实施例五还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时用于执行一种计数器控制方法,该计数器控制方法包括:Embodiment 5 of the present invention also provides a storage medium containing computer-executable instructions, the computer-executable instructions are used to execute a counter control method when executed by a computer processor, and the counter control method includes:

接收到包含计数器控制信息和计数器运行速率信息的计数器控制信号,并根据所述计数器控制信息确定待调整计数器;receiving a counter control signal including counter control information and counter operating rate information, and determining a counter to be adjusted according to the counter control information;

当所述计数器运行速率信息达到所述待调整计数器的计数器运行阀值,则向所述待调整计数器发送所述计数器运行速率信息,以控制所述待调整计数器根据所述计数器运行速率信息执行相应的目标运行速率。When the counter operating rate information reaches the counter operating threshold of the counter to be adjusted, the counter operating rate information is sent to the counter to be adjusted, so as to control the counter to be adjusted to perform corresponding operations according to the counter operating rate information. The target running speed of .

当然,本发明实施例所提供的一种包含计算机可执行指令的存储介质,其计算机可执行指令不限于如上所述的方法操作,还可以执行本发明任意实施例所提供的计数器控制方法中的相关操作。Certainly, a storage medium containing computer-executable instructions provided by an embodiment of the present invention, the computer-executable instructions are not limited to the method operations described above, and may also execute the counter control method provided by any embodiment of the present invention. related operations.

通过以上关于实施方式的描述,所属领域的技术人员可以清楚地了解到,本发明可借助软件及必需的通用硬件来实现,当然也可以通过硬件实现,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如计算机的软盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(RandomAccess Memory,RAM)、闪存(FLASH)、硬盘或光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the above description about the implementation mode, those skilled in the art can clearly understand that the present invention can be realized by means of software and necessary general-purpose hardware, and of course it can also be realized by hardware, but in many cases the former is a better implementation mode . Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a floppy disk of a computer , read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), flash memory (FLASH), hard disk or optical disc, etc., including several instructions to make a computer device (which can be a personal computer, A server, or a network device, etc.) executes the methods described in various embodiments of the present invention.

值得注意的是,上述计数器控制装置的实施例中,所包括的各个单元和模块只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。It is worth noting that, in the embodiment of the above-mentioned counter control device, each unit and module included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be realized; in addition, each The specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present invention.

注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, rearrangements and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention, and the present invention The scope is determined by the scope of the appended claims.

Claims (8)

1. A counter control method, characterized by comprising:
receiving a counter control signal containing counter control information and counter running rate information, and determining a counter to be adjusted according to the counter control information;
when the counter running rate information reaches a counter running threshold value of the counter to be adjusted, the counter running rate information is sent to the counter to be adjusted so as to control the counter to be adjusted to execute corresponding target running rate according to the counter running rate information;
the counter to be adjusted comprises a first sub-counter, a second sub-counter and a third sub-counter;
determining a counter to be adjusted according to the counter control information, including:
determining to control one of the first sub-counter, the second sub-counter or the third sub-counter according to the counter control information; the first sub-counter, the second sub-counter and the third sub-counter are sub-counters arranged from small to large in time units respectively;
wherein the control of the second sub-counter is determined according to the counter control information; when the counter running rate information reaches the counter running threshold value of the counter to be adjusted, sending the counter running rate information to the counter to be adjusted, including:
and when the counter running rate information reaches a second sub-counter running threshold value of the second sub-counter, sending the counter running rate information to the second sub-counter so as to control the second sub-counter to execute a corresponding second target running rate according to the counter running rate information.
2. The counter control method according to claim 1, characterized by further comprising, before receiving a counter control signal containing counter control information and counter operation rate information:
and after receiving the current input signal, confirming counter operation rate information corresponding to the current input signal from a preset counter adjustment curve.
3. The counter control method according to claim 1, wherein the control of the first sub-counter is determined based on the counter control information;
when the counter running rate information reaches the counter running threshold value of the counter to be adjusted, sending the counter running rate information to the counter to be adjusted, including:
and when the counter running rate information reaches a first sub-counter running threshold value of the first sub-counter, sending the counter running rate information to the first sub-counter so as to control the first sub-counter to execute a corresponding first target running rate according to the counter running rate information.
4. A counter control method according to claim 3, characterized in that the counter control method further comprises:
receiving a first sub-counter trigger signal generated by the first sub-counter at the first target running rate through the second sub-counter, and controlling the second sub-counter to output a second sub-counter trigger signal according to the first sub-counter trigger signal;
and receiving the second sub-counter trigger signal through the third sub-counter, and controlling the third sub-counter to output a first sub-counter value according to the second sub-counter trigger signal.
5. The counter control method according to claim 1, characterized in that the counter control method further comprises:
and receiving a second sub-counter trigger signal generated by the second sub-counter at the second target running rate through the third sub-counter, and controlling the third sub-counter to output a second sub-counter value according to the second sub-counter trigger signal.
6. A counter control device, characterized by comprising:
the information confirmation module is used for receiving a counter control signal containing counter control information and counter running rate information and determining a counter to be adjusted according to the counter control information;
and the rate adjustment module is used for sending the counter running rate information to the counter to be adjusted when the counter running rate information reaches the counter running threshold value of the counter to be adjusted so as to control the counter to be adjusted to execute the corresponding target running rate according to the counter running rate information.
7. A vehicle, characterized in that the vehicle comprises:
one or more processors;
a storage means for storing one or more programs;
when executed by the one or more processors, causes the one or more processors to implement the counter control method of any of claims 1-5.
8. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the counter control method according to any one of claims 1-5.
CN202111068122.0A 2021-09-13 2021-09-13 Counter control method and device, vehicle and storage medium Active CN113805565B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111068122.0A CN113805565B (en) 2021-09-13 2021-09-13 Counter control method and device, vehicle and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111068122.0A CN113805565B (en) 2021-09-13 2021-09-13 Counter control method and device, vehicle and storage medium

Publications (2)

Publication Number Publication Date
CN113805565A CN113805565A (en) 2021-12-17
CN113805565B true CN113805565B (en) 2023-05-23

Family

ID=78940937

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111068122.0A Active CN113805565B (en) 2021-09-13 2021-09-13 Counter control method and device, vehicle and storage medium

Country Status (1)

Country Link
CN (1) CN113805565B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5575570A (en) * 1978-11-27 1980-06-06 Gen Motors Corp Engine controlling system
US5481507A (en) * 1993-11-29 1996-01-02 Mitsubishi Denki Kabushiki Kaisha Electronic timekeeping device reduced adjustment data storage requirement
CN102721426A (en) * 2012-07-17 2012-10-10 上海市计量测试技术研究院 Digital display counter calibration system and method
CN112747111A (en) * 2021-01-21 2021-05-04 潍柴动力股份有限公司 Gear control method, gear control device, gear control equipment, storage medium and program product

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5114218B2 (en) * 2008-01-10 2013-01-09 ラピスセミコンダクタ株式会社 Frequency correction circuit and clock device using the same
US20150106649A1 (en) * 2013-10-11 2015-04-16 Qualcomm Innovation Center, Inc. Dynamic scaling of memory and bus frequencies

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5575570A (en) * 1978-11-27 1980-06-06 Gen Motors Corp Engine controlling system
US5481507A (en) * 1993-11-29 1996-01-02 Mitsubishi Denki Kabushiki Kaisha Electronic timekeeping device reduced adjustment data storage requirement
CN102721426A (en) * 2012-07-17 2012-10-10 上海市计量测试技术研究院 Digital display counter calibration system and method
CN112747111A (en) * 2021-01-21 2021-05-04 潍柴动力股份有限公司 Gear control method, gear control device, gear control equipment, storage medium and program product

Also Published As

Publication number Publication date
CN113805565A (en) 2021-12-17

Similar Documents

Publication Publication Date Title
CN111930407B (en) Vehicle ECU software upgrade method, system, microcontroller and SOC terminal of vehicle TBOX
CN108268024B (en) Vehicle diagnosis method, device, terminal and computer-readable storage medium
EP3368379B1 (en) Control device update in a motor vehicle
CN109164791B (en) Vehicle diagnosis method, vehicle diagnosis device and server
CN110415543A (en) Vehicle information interaction method, device, equipment and storage medium
KR20130056347A (en) Method for monitoring at least two microcontrollers
CN112835598B (en) Automobile ECU (electronic control Unit) refreshing method and system and computer readable storage medium thereof
GB2570650A (en) A data communication method for a vehicle
CN118348958A (en) Performance test method and device of vehicle-mounted controller, electric vehicle and medium
CN112767151A (en) Transaction processing method and device applied to verification node in block chain
CN104793975A (en) Method and device for updating application programs in electronic control units
CN113805565B (en) Counter control method and device, vehicle and storage medium
CN109933368A (en) A kind of transmitting of instruction and verification method and device
CN109981286B (en) A method, device and computing device for triggering proof-of-work calculation
CN118210646B (en) Fault information de-jittering method, device, electronic device and readable storage medium
CN106527396B (en) A kind of the vehicle identification code wiring method and device of automobile
WO2009021816A1 (en) Communication method and interface between a companion chip and a microcontroller
CN110377272B (en) Method and device for realizing SDK based on TBOX
CN118915580A (en) Vehicle remote diagnosis method, electronic device, and computer-readable storage medium
CN117579419A (en) CAN bus baud rate acquisition method, automobile communication equipment and storage medium
JP2015171853A (en) Vehicle electronic control unit
JP2024538186A (en) Data Processing Network for Data Processing
JP2019016021A (en) VERIFICATION DEVICE FOR VEHICLE CONTROL DEVICE AND VEHICLE CONTROL DEVICE
CN113988559A (en) Disturbance-free method and device for questionnaire delivery
CN107845002A (en) Method and device for vehicle operation monitoring

Legal Events

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