[go: up one dir, main page]

CN110851297B - Method, device, system and medium for processing interface jitter state - Google Patents

Method, device, system and medium for processing interface jitter state Download PDF

Info

Publication number
CN110851297B
CN110851297B CN201911090036.2A CN201911090036A CN110851297B CN 110851297 B CN110851297 B CN 110851297B CN 201911090036 A CN201911090036 A CN 201911090036A CN 110851297 B CN110851297 B CN 110851297B
Authority
CN
China
Prior art keywords
interface
level state
target
program
jitter
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
CN201911090036.2A
Other languages
Chinese (zh)
Other versions
CN110851297A (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.)
Shenzhen Yijian Car Service Technology Co ltd
Original Assignee
Shenzhen Yijian Car Service Technology 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 Shenzhen Yijian Car Service Technology Co ltd filed Critical Shenzhen Yijian Car Service Technology Co ltd
Priority to CN201911090036.2A priority Critical patent/CN110851297B/en
Publication of CN110851297A publication Critical patent/CN110851297A/en
Application granted granted Critical
Publication of CN110851297B publication Critical patent/CN110851297B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0766Error or fault reporting or storing
    • G06F11/0772Means for error signaling, e.g. using interrupts, exception flags, dedicated error registers
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4812Task transfer initiation or dispatching by interrupt, e.g. masked
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses a method, a device, a system and a medium for processing an interface jitter state, wherein the method comprises the following steps: the level state of each interface is scanned, when the level state of one interface changes, a hardware timer is started to interrupt the currently executed target program, and other programs can be executed during the timing of the hardware timer. When the timing of the hardware timer is finished, the level state of the target interface is stable, and the latest level state of the target interface is obtained as the running parameter of the target program. When the level state of the target interface changes, the application eliminates the jitter of the interface through the hardware timer delay, and during the period, the hardware timer can still continue to execute other programs after interrupting the current target program, thereby improving the overall execution efficiency of the program and overcoming the defect of low execution efficiency caused by the method of eliminating the jitter by waiting for the delay in the prior art.

Description

一种接口抖动状态的处理方法、装置、系统及介质Method, device, system and medium for processing interface jitter state

技术领域technical field

本申请涉及软件领域,特别是涉及一种接口抖动状态的处理方法、装置、系统及介质。The present application relates to the field of software, in particular to a method, device, system and medium for processing an interface jitter state.

背景技术Background technique

随着微电子技术的发展,集成芯片的应用越来越广泛,但是集成芯片的接口却存在抖动状态,影响其传输电平信号的可信度。接口的抖动状态是指接口在接收到杂波时产生的瞬时的高低电平信号,或在接收到电平信号的几毫秒内时发生抖动,处于与其接收的电平信号相反的电平状态。With the development of microelectronics technology, integrated chips are used more and more widely, but the interface of integrated chips has a state of jitter, which affects the reliability of its transmission level signal. The jitter state of the interface refers to the instantaneous high and low level signals generated when the interface receives clutter, or jitters within a few milliseconds of receiving the level signal, and is in the opposite level state of the received level signal.

现有技术在检测到接口的电平状态变化时,通过等待时延来确定接口的最终电平状态以消除抖动状态带来的影响,确保其传输的电平信号的可信度。In the prior art, when the level state change of the interface is detected, the final level state of the interface is determined by waiting for a delay to eliminate the influence of the jitter state and ensure the reliability of the level signal transmitted.

但是,以等待时延来消除抖动的方法会使其它程序也相应的延时执行,降低了集成芯片的代码执行效率。However, the method of eliminating jitter by waiting time delay will cause other programs to be executed with a corresponding delay, which reduces the code execution efficiency of the integrated chip.

发明内容Contents of the invention

本申请的目的是提供一种接口抖动状态的处理方法、装置、系统、介质及电子设备,用于接口的电平状态发生变化时,中断当前正在执行的程序,并等待电平状态稳定后,再次获取该接口的电平状态作为最新的电平状态,在等待期间,可以继续运行其它程序,不影响程序整体的执行效率。The purpose of this application is to provide a processing method, device, system, medium and electronic equipment for interface jitter state, which is used to interrupt the currently executing program when the level state of the interface changes, and wait for the level state to stabilize, then The level state of the interface is obtained again as the latest level state, and other programs can continue to run during the waiting period without affecting the overall execution efficiency of the program.

为解决上述技术问题,本申请提供一种接口抖动状态的处理方法,应用于电子设备,包括:In order to solve the above technical problems, this application provides a method for processing interface jitter status, which is applied to electronic equipment, including:

扫描各接口的电平状态;Scan the level status of each interface;

当所述电平状态发生变化时,启动硬件定时器以中断目标接口当前执行的目标程序,并执行除所述目标程序以外的其它程序;其中,所述目标程序为基于所述目标接口的电平状态运行的程序;When the level state changes, start a hardware timer to interrupt the target program currently executed by the target interface, and execute other programs except the target program; wherein, the target program is a computer based on the target interface Programs running in a flat state;

当所述硬件定时器计时结束时,获取所述目标接口的最新电平状态以作为所述目标程序的运行参数。When the hardware timer expires, the latest level state of the target interface is acquired as an operating parameter of the target program.

优选地,所述当所述电平状态发生变化时,启动硬件定时器以中断目标接口当前执行的目标程序之后,还包括:Preferably, when the level state changes, after starting the hardware timer to interrupt the target program currently executed by the target interface, the method further includes:

获取所述目标接口的初始电平状态;Obtain the initial level state of the target interface;

判断所述初始电平状态是否与所述最新电平状态存在差异;judging whether the initial level state is different from the latest level state;

如果是,则将所述目标接口的接口编号、所述初始电平状态和所述最新电平状态对应写入异常日志。If so, correspondingly write the interface number of the target interface, the initial level state and the latest level state into an exception log.

优选地,在所述扫描各接口的电平状态之间还包括:Preferably, the scanning between the level states of each interface further includes:

初始化所述接口和所述硬件定时器。Initializing the interface and the hardware timer.

优选地,所述硬件定时器的计时时长为10ms。Preferably, the timing duration of the hardware timer is 10ms.

优选地,还包括:Preferably, it also includes:

判断扫描各所述接口的电平状态的时间是否大于预定时间;Judging whether the time for scanning the level state of each of the interfaces is greater than a predetermined time;

如果是,则生成扫描异常信息。If yes, generate scan exception information.

为解决上述技术问题,本申请还提供一种接口抖动状态的处理方法,应用于硬件计时器,包括:In order to solve the above technical problems, the present application also provides a method for processing interface jitter status, which is applied to hardware timers, including:

接收电子设备的启动命令;receiving an activation command from an electronic device;

中断目标接口当前执行的目标程序以使所述电子设备运行除所述目标程序以外的其它程序,并在计时结束时,获取所述目标接口的最新电平状态,以作为目标程序的运行参数;其中,所述目标程序为基于所述目标接口的电平状态工作的程序。Interrupting the target program currently executed by the target interface to make the electronic device run other programs except the target program, and when the timing ends, obtain the latest level state of the target interface as an operating parameter of the target program; Wherein, the target program is a program that works based on the level state of the target interface.

为解决上述技术问题,本申请还提供一种接口抖动状态的处理装置,应用于电子设备,包括:In order to solve the above technical problems, the present application also provides a device for processing interface jitter status, which is applied to electronic equipment, including:

扫描模块,用于扫描各接口的电平状态;The scanning module is used to scan the level status of each interface;

启动模块,用于当所述电平状态发生变化时,启动硬件定时器以中断目标接口当前执行的目标程序,并执行除所述目标程序以外的其它程序,其中,所述目标程序为基于所述目标接口的电平状态运行的程序;The starting module is used to start a hardware timer to interrupt the target program currently executed by the target interface when the level state changes, and execute other programs except the target program, wherein the target program is based on the target program Describe the program running in the level state of the target interface;

获取模块,用于当所述硬件定时器计时结束时,获取所述目标接口的最新电平状态以作为所述目标程序的运行参数。The acquiring module is configured to acquire the latest level state of the target interface as the running parameter of the target program when the hardware timer expires.

优选地,还包括:Preferably, it also includes:

初始电平状态获取模块,用于获取所述目标接口的初始电平状态;an initial level state acquisition module, configured to acquire the initial level state of the target interface;

第一判断模块,用于判断所述初始电平状态是否与所述最新电平状态存在差异;A first judging module, configured to judge whether there is a difference between the initial level state and the latest level state;

写入模块,用于在所述第一判断模块的判断结果为是时,则将所述目标接口的接口编号、所述初始电平状态和所述最新电平状态对应写入异常日志。A writing module, configured to correspondingly write the interface number of the target interface, the initial level state and the latest level state into an exception log when the judgment result of the first judging module is yes.

作为优选地实施方式,该装置还包括:As a preferred embodiment, the device also includes:

第二判断模块,用于判断扫描各所述接口的电平状态的时间是否大于预定时间;The second judging module is used to judge whether the time for scanning the level state of each of the interfaces is greater than a predetermined time;

生成模块,用于在所述第二判断模块的判断结果为是时,则生成扫描异常信息。A generating module, configured to generate scanning abnormality information when the judgment result of the second judging module is yes.

为解决上述技术问题,本申请还提供一种电子设备,所述电子设备存储有计算机程序;且用于执行所述计算机程序时实现如所述的接口抖动状态的处理方法的步骤。In order to solve the above technical problem, the present application also provides an electronic device, the electronic device stores a computer program, and is used to implement the steps of the method for processing the interface shaking state as described when the computer program is executed.

为解决上述技术问题,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如所述的接口抖动状态的处理方法的步骤。In order to solve the above technical problems, the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the processing of the interface jitter state as described above is realized method steps.

为解决上述技术问题,本申请还提供一种接口抖动状态的处理系统,包括:In order to solve the above technical problems, the present application also provides a system for processing interface jitter status, including:

电子设备,用于扫描各接口的电平状态,当所述电平状态发生变化时,启动硬件定时器以中断目标接口当前执行的目标程序,并执行除所述目标程序以外的其它程序,当所述硬件定时器计时结束时,获取所述目标接口的最新电平状态以作为所述目标程序的运行参数;其中,所述目标程序为基于所述目标接口的电平状态运行的程序;The electronic equipment is used to scan the level state of each interface, and when the level state changes, start a hardware timer to interrupt the target program currently executed by the target interface, and execute other programs except the target program, when When the hardware timer finishes timing, acquire the latest level state of the target interface as an operating parameter of the target program; wherein, the target program is a program running based on the level state of the target interface;

所述硬件定时器,用于中断目标程序,并计时。The hardware timer is used for interrupting the target program and timing.

本申请所提供的一种接口抖动状态的处理方法,包括:扫描各接口的电平状态,当某一接口的电平状态发生变化时,启动硬件定时器以中断当前执行的目标程序,在硬件定时器计时期间能够执行其它程序。其中,目标程序为基于目标接口的电平状态运行的程序。当硬件定时器计时结束时,目标接口的电平状态处于稳定,获取目标接口的最新电平状态作为目标程序的运行参数。由于本申请在目标接口的电平状态发生变化时,通过硬件定时器延时消除接口的抖动,在此期间,通过硬件定时器中断当前目标程序后仍然能够继续执行其它程序,因此能够提高对于程序的整体执行效率,克服了现有技术以等待时延来消除抖动的方法所带来的执行效率低的缺点。A method for processing interface jitter states provided by the present application includes: scanning the level states of each interface, when the level state of a certain interface changes, starting a hardware timer to interrupt the currently executing target program, Other programs can be executed while the timer is running. Wherein, the target program is a program running based on the level state of the target interface. When the hardware timer ends, the level state of the target interface is stable, and the latest level state of the target interface is obtained as the operating parameter of the target program. Because the present application eliminates the jitter of the interface by delaying the time of the hardware timer when the level state of the target interface changes, during this period, it can still continue to execute other programs after interrupting the current target program by the hardware timer, so it can improve the performance of the program. The overall execution efficiency overcomes the disadvantage of low execution efficiency caused by the method of eliminating jitter by waiting time delay in the prior art.

此外,本申请所提供的接口抖动状态的处理装置、系统、介质及电子设备,与上述方法对应,效果同上。In addition, the device, system, medium, and electronic device for processing the jitter state of the interface provided in the present application correspond to the above-mentioned method, and the effect is the same as above.

附图说明Description of drawings

为了更清楚地说明本申请实施例,下面将对实施例中所需要使用的附图做简单的介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to illustrate the embodiments of the present application more clearly, the following will briefly introduce the accompanying drawings used in the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. Personnel, on the premise of not paying creative work, can also obtain other drawings based on these drawings.

图1为本申请实施例提供的一种接口抖动状态的处理方法的流程图;FIG. 1 is a flow chart of a method for processing an interface jitter state provided in an embodiment of the present application;

图2为本申请实施例提供的另一种接口抖动状态的处理方法的流程图;FIG. 2 is a flow chart of another method for processing an interface jitter state provided in an embodiment of the present application;

图3为本申请实施例提供的另一种接口抖动状态的处理方法的流程图;FIG. 3 is a flow chart of another method for processing an interface jitter state provided in an embodiment of the present application;

图4为本申请实施例提供的一种接口抖动状态的处理装置的结构图;FIG. 4 is a structural diagram of an apparatus for processing an interface jitter state according to an embodiment of the present application;

图5为本申请实施例提供的一种电子设备的结构图;FIG. 5 is a structural diagram of an electronic device provided in an embodiment of the present application;

图6为本申请实施例提供的另一种接口抖动状态的处理方法的流程图。FIG. 6 is a flowchart of another method for processing an interface jitter state according to an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下,所获得的所有其它实施例,都属于本申请保护范围。The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of this application.

本申请的核心是提供一种接口抖动状态的处理方法、装置、系统及介质,用于接口的电平状态发生变化时,中断当前正在执行的程序,并等待电平状态稳定后,再次获取该接口的电平状态作为最新的电平状态,在等待期间,可以继续运行其它程序,不影响程序整体的执行效率。The core of this application is to provide a processing method, device, system and medium for interface jitter state, which is used to interrupt the currently executing program when the level state of the interface changes, and wait for the level state to stabilize before obtaining the interface again. The level state of the interface is the latest level state. During the waiting period, other programs can continue to run without affecting the overall execution efficiency of the program.

为了使本技术领域的人员更好地理解本申请方案,下面结合附图和具体实施方式对本申请作进一步的详细说明。In order to enable those skilled in the art to better understand the solution of the present application, the present application will be further described in detail below in conjunction with the drawings and specific implementation methods.

图1为本申请实施例提供的一种接口抖动状态的处理方法的流程图。该方法应用于电子设备,如图1所示,该包括:FIG. 1 is a flowchart of a method for processing an interface jitter state according to an embodiment of the present application. The method is applied to electronic equipment, as shown in Figure 1, which includes:

S10:扫描各接口的电平状态。S10: Scan the level status of each interface.

本实施例中,对于电子设备的应用范围不作限定,可以是任意硬件设备上的电子设备,另外,对电子设备的型号和执行的程序不作限定。本实施例中提到的接口可以是GPIO(通用型输入输出)接口,具体类型和数量不作限定。通常情况下,硬件设备的GPIO接口有多个,电子设备扫描各接口的电平状态,从而得到每个接口当前的状态,在具体实施中,可以采用循环扫描的方式,避免遗漏。通常情况下,是对每个接口进行编号,电子设备按照编号对接口进行循环扫描。可以理解的是,对于扫描的周期不作限定,根据实际情况设定。In this embodiment, the scope of application of the electronic device is not limited, and it may be an electronic device on any hardware device. In addition, the model of the electronic device and the program executed are not limited. The interfaces mentioned in this embodiment may be GPIO (general purpose input and output) interfaces, and the specific type and quantity are not limited. Usually, there are multiple GPIO interfaces of a hardware device, and the electronic device scans the level status of each interface to obtain the current status of each interface. In specific implementation, a circular scanning method can be used to avoid omissions. Usually, each interface is numbered, and the electronic device cyclically scans the interfaces according to the number. It can be understood that there is no limitation on the scanning cycle, which is set according to actual conditions.

作为优选的实施方式,在S10之前,还包括初始化接口和硬件定时器。通过初始化可以将各接口和硬件定时器的数据清除,保证扫描到的电平状态的可靠性。As a preferred implementation manner, before S10, an initialization interface and a hardware timer are also included. The data of each interface and hardware timer can be cleared through initialization to ensure the reliability of the scanned level state.

S11:当电平状态发生变化时,启动硬件定时器以中断目标接口当前执行的目标程序,并执行除目标程序以外的其它程序;其中,目标程序为基于目标接口的电平状态运行的程序。S11: When the level state changes, start the hardware timer to interrupt the target program currently executed by the target interface, and execute other programs except the target program; wherein, the target program is a program running based on the level state of the target interface.

为了实现特定的功能,电子设备需要运行相应的程序,随着程序的运行,接口的电平状态可能发生变化,例如,上一个扫描周期,某一接口的电平状态为0,那么下一个扫描周期,该接口的电平状态可能会变成1,即接口的电平状态发生了改变。如背景技术提到的,接口的电平状态存在抖动,那么如果在确定接口的电平状态发生改变时,就认为当前的电平状态时就是接口的真实电平状态,则可能造成结果错误。因此,本实施例中,当检测到电平状态发生变化时,启动硬件定时器,硬件定时器的功能是中断目标接口(电平发生变化的接口)当前的目标程序,但是对于电子设备来说,依然是需要执行除目标程序以外的其它程序,即除了目标接口以外,其它接口对应的程序。例如,有5个接口,分别是接口1、接口2、接口3、接口4、接口5。在扫描过程中,除了接口2以外,其它接口的电平状态均未发生改变,那么对于接口2来说,当前的电平状态就是0,但是为了克服抖动,并没有直接将0作为接口2的最新电平状态,而是通过硬件定时器中断接口2对应的目标程序,但是其它程序继续执行。In order to achieve specific functions, electronic devices need to run corresponding programs. As the programs run, the level status of the interface may change. For example, in the last scan cycle, the level status of a certain interface is 0, then the next scan cycle Period, the level state of the interface may become 1, that is, the level state of the interface has changed. As mentioned in the background art, the level state of the interface has jitters, so if the current level state is considered to be the real level state of the interface when the level state of the interface is determined to change, it may cause an error in the result. Therefore, in this embodiment, when it is detected that the level state changes, a hardware timer is started, and the function of the hardware timer is to interrupt the current target program of the target interface (the interface whose level changes), but for electronic equipment , it still needs to execute other programs except the target program, that is, programs corresponding to other interfaces except the target interface. For example, there are 5 interfaces, namely interface 1, interface 2, interface 3, interface 4, and interface 5. During the scanning process, except for interface 2, the level status of other interfaces has not changed, so for interface 2, the current level status is 0, but in order to overcome the jitter, 0 is not directly used as the interface 2 The latest level state, but interrupts the target program corresponding to interface 2 through the hardware timer, but other programs continue to execute.

表1Table 1

S12:当硬件定时器计时结束时,获取目标接口的最新电平状态以作为目标程序的运行参数。S12: When the hardware timer ends, acquire the latest level state of the target interface as an operating parameter of the target program.

经过预设的时间后,即当硬件定时器计时结束时,再次获取目标接口,即接口2的电平状态,此时获取的电平状态作为最新电平状态。如果最新电平状态与初始电平状态不同,则认为该接口的电平状态的变化有效,否则无效。为了方便后续查看,还可以记录目标接口的编号、最新电平状态等。可以理解的是,此时已经得到了目标接口的最新电平状态,所以必然是要恢复执行目标程序,并且将最新电平状态作为目标程序的运行参数。After the preset time elapses, that is, when the hardware timer ends, the level state of the target interface, that is, the interface 2 is obtained again, and the level state obtained at this time is taken as the latest level state. If the latest level state is different from the initial level state, the change of the level state of the interface is considered valid, otherwise it is invalid. In order to facilitate subsequent viewing, you can also record the number of the target interface, the latest level status, etc. It can be understood that the latest level state of the target interface has been obtained at this time, so the execution of the target program must be resumed, and the latest level state is used as the operating parameter of the target program.

需要说明的是,硬件定时器的计时时间可以结合接口的类型确定,例如,接口抖动持续的时间较长,则计时时间可以适当增大,反之,计时时间可以适当减小,在一种优选地实施方式中,硬件定时器的计时时长为10ms。如果计时时长为10ms,则目标程序需要中断的时间就是10ms,10ms后,目标程序恢复运行。It should be noted that the timing time of the hardware timer can be determined in combination with the type of the interface. For example, if the interface jitter lasts for a long time, the timing time can be appropriately increased; otherwise, the timing time can be appropriately decreased. In a preferred In the implementation manner, the timing duration of the hardware timer is 10ms. If the timing duration is 10ms, the target program needs to be interrupted for 10ms, and after 10ms, the target program resumes.

本实施例提提供的一种接口抖动状态的处理方法,包括:扫描各接口的电平状态,当某一接口的电平状态发生变化时,启动硬件定时器以中断当前执行的目标程序,在硬件定时器计时期间能够执行其它程序。其中,目标程序为基于目标接口的电平状态运行的程序。当硬件定时器计时结束时,目标接口的电平状态处于稳定,获取目标接口的最新电平状态作为目标程序的运行参数。由于本申请在目标接口的电平状态发生变化时,通过硬件定时器延时消除接口的抖动,在此期间,通过硬件定时器中断当前目标程序后仍然能够继续执行其它程序,因此能够提高对于程序的整体执行效率,克服了现有技术以等待时延来消除抖动的方法所带来的执行效率低的缺点。This embodiment provides a method for processing interface jitter status, including: scanning the level status of each interface, when the level status of a certain interface changes, starting a hardware timer to interrupt the currently executing target program, Other programs can be executed while the hardware timer is counting. Wherein, the target program is a program running based on the level state of the target interface. When the hardware timer ends, the level state of the target interface is stable, and the latest level state of the target interface is obtained as the operating parameter of the target program. Because the present application eliminates the jitter of the interface by delaying the time of the hardware timer when the level state of the target interface changes, during this period, it can still continue to execute other programs after interrupting the current target program by the hardware timer, so it can improve the performance of the program. The overall execution efficiency overcomes the disadvantage of low execution efficiency caused by the method of eliminating jitter by waiting time delay in the prior art.

图2为本申请实施例提供的另一种接口抖动状态的处理方法的流程图。其中,S10-S12与图1相同,本实施例不再赘述。如图2所示,在上一实施例的基础上,该方法还包括:FIG. 2 is a flowchart of another method for processing an interface jitter state according to an embodiment of the present application. Wherein, S10-S12 are the same as those in FIG. 1 , and will not be repeated in this embodiment. As shown in Figure 2, on the basis of the previous embodiment, the method also includes:

S20:获取目标接口的初始电平状态。S20: Obtain the initial level state of the target interface.

可以理解的是,初始电平状态是与最新电平状态相对的,是当前接口上一个扫描结果,即确定目标接口的电平状态发生改变时的电平状态。It can be understood that the initial level state is opposite to the latest level state, and is the result of a scan on the current interface, that is, the level state when the level state of the target interface is determined to be changed.

S21:判断初始电平状态是否与最新电平状态存在差异,如果是,则进入S22。S21: Determine whether there is a difference between the initial level state and the latest level state, and if so, go to S22.

如果初始电平状态与最新电平状态相同,则说明目标接口的电平状态变化有效,如果初始电平状态与最新电平状态不相同,则说明目标接口的电平状态变化无效。If the initial level state is the same as the latest level state, it means that the level state change of the target interface is valid; if the initial level state is different from the latest level state, it means that the level state change of the target interface is invalid.

S22:将目标接口的接口编号、初始电平状态和最新电平状态对应写入异常日志。S22: Write the interface number, the initial level state and the latest level state of the target interface into the exception log correspondingly.

本步骤中,初始电平状态与最新电平状态存在差异,因此,是一个无效的变化,为了方便后续查看,本实施例中,将目标接口的相关信息进行记录。可以理解的是,除了目标接口的接口编号、初始电平状态和最新电平状态外,还可以记录确定初始电平状态的时间以及确定最新电平状态的时间,从而为设定硬件计时器的计时时长做数据参考。In this step, there is a difference between the initial level state and the latest level state, so it is an invalid change. For the convenience of subsequent viewing, in this embodiment, the relevant information of the target interface is recorded. It can be understood that, in addition to the interface number, the initial level state and the latest level state of the target interface, the time for determining the initial level state and the time for determining the latest level state can also be recorded, so as to provide a basis for setting the hardware timer The timing is used as data reference.

在另一实施例中,还包括:In another embodiment, it also includes:

判断扫描各接口的电平状态的时间是否大于预定时间;Judging whether the time for scanning the level status of each interface is greater than a predetermined time;

如果是,则生成扫描异常信息。If yes, generate scan exception information.

在具体实施中,扫描每个接口的时间通常是固定的,由于扫描过程中是循环扫描,所以如果在扫描某一接口时,出现故障,则后续的其它接口就无法扫描,影响处理的速度,甚至宕机。本实施例中,记录扫描各接口的时间,如果该时间大于预定时间,则确定扫描异常。可以理解的是,这里的预定时间可以根据实际情况确定,本实施例不作限定。In the specific implementation, the time to scan each interface is usually fixed. Since the scanning process is a cyclic scan, if a fault occurs when scanning a certain interface, other subsequent interfaces cannot be scanned, which affects the processing speed. Even downtime. In this embodiment, the time for scanning each interface is recorded, and if the time is greater than the predetermined time, it is determined that the scanning is abnormal. It can be understood that the predetermined time here may be determined according to actual conditions, and is not limited in this embodiment.

上述实施例中,从电子设备的角度对接口抖动状态的处理方法的实施例进行了详细的描述,本申请还提供硬件计时器对应的实施例。图3为本申请实施例提供的另一种接口抖动状态的处理方法的流程图。该方法应用于硬件计时器,如图3所示,包括:In the foregoing embodiments, the embodiments of the method for processing the interface jitter state are described in detail from the perspective of electronic devices, and the present application also provides embodiments corresponding to hardware timers. FIG. 3 is a flowchart of another method for processing an interface jitter state according to an embodiment of the present application. This method is applied to a hardware timer, as shown in Figure 3, including:

S30:接收电子设备的启动命令。S30: Receive a startup command of the electronic device.

S31:中断目标接口当前执行的目标程序以使电子设备运行除目标程序以外的其它程序,并在计时结束时,获取目标接口的最新电平状态,以作为目标程序的运行参数;其中,目标程序为基于目标接口的电平状态工作的程序。S31: Interrupt the target program currently executed by the target interface so that the electronic device runs other programs except the target program, and at the end of the timing, obtain the latest level state of the target interface as the operating parameter of the target program; wherein, the target program A program that works based on the level state of the target interface.

由于在上述实施例中,对于硬件定时器的工作方式也就进行了说明,故本实施例不再赘述。在具体实施中,启动命令中可以包含有目标接口的接口信息,例如接口编号,以便硬件定时器能够根据启动命令确定要中断的接口,即目标接口。In the foregoing embodiments, the working manner of the hardware timer has also been described, so this embodiment will not repeat them. In a specific implementation, the start command may include the interface information of the target interface, such as the interface number, so that the hardware timer can determine the interface to be interrupted according to the start command, that is, the target interface.

在上述实施例中,对于接口抖动状态的处理方法进行了详细描述,本申请还提供接口抖动状态的处理装置对应的实施例。需要说明的是,本申请是基于功能模块的角度对装置部分的实施例进行描述。In the foregoing embodiments, the method for processing the interface jitter state is described in detail, and the present application also provides embodiments corresponding to the device for processing the interface jitter state. It should be noted that this application describes the embodiments of the device part based on the perspective of functional modules.

图4为本申请实施例提供的一种接口抖动状态的处理装置的结构图。如图4所示,该装置应用于电子设备,包括:FIG. 4 is a structural diagram of an apparatus for processing an interface jitter state according to an embodiment of the present application. As shown in Figure 4, the device is applied to electronic equipment, including:

扫描模块10,用于扫描各接口的电平状态;The scanning module 10 is used to scan the level status of each interface;

启动模块11,用于当电平状态发生变化时,启动硬件定时器以中断目标接口当前执行的目标程序,并执行除目标程序以外的其它程序,其中,目标程序为基于目标接口的电平状态运行的程序;The start module 11 is used to start a hardware timer to interrupt the target program currently executed by the target interface when the level state changes, and execute other programs except the target program, wherein the target program is based on the level state of the target interface the running program;

获取模块12,用于当硬件定时器计时结束时,获取目标接口的最新电平状态以作为目标程序的运行参数。The acquisition module 12 is configured to acquire the latest level state of the target interface as the running parameter of the target program when the hardware timer expires.

由于装置部分的实施例与方法部分的实施例相互对应,因此装置部分的实施例请参见方法部分的实施例的描述,这里暂不赘述。Since the embodiment of the device part corresponds to the embodiment of the method part, please refer to the description of the embodiment of the method part for the embodiment of the device part, and details will not be repeated here.

作为优选地实施方式,该装置还包括:As a preferred embodiment, the device also includes:

初始电平状态获取模块,用于获取所述目标接口的初始电平状态;an initial level state acquisition module, configured to acquire the initial level state of the target interface;

第一判断模块,用于判断所述初始电平状态是否与所述最新电平状态存在差异;A first judging module, configured to judge whether there is a difference between the initial level state and the latest level state;

写入模块,用于在所述第一判断模块的判断结果为是时,则将所述目标接口的接口编号、所述初始电平状态和所述最新电平状态对应写入异常日志。A writing module, configured to correspondingly write the interface number of the target interface, the initial level state and the latest level state into an exception log when the judgment result of the first judging module is yes.

作为优选地实施方式,该装置还包括:As a preferred embodiment, the device also includes:

第二判断模块,用于判断扫描各所述接口的电平状态的时间是否大于预定时间;The second judging module is used to judge whether the time for scanning the level state of each of the interfaces is greater than a predetermined time;

生成模块,用于在所述第二判断模块的判断结果为是时,则生成扫描异常信息。A generating module, configured to generate scanning abnormality information when the judgment result of the second judging module is yes.

本实施例提提供的一种接口抖动状态的处理装置,包括扫描模块、启动模块和获取模块,由于本申请在目标接口的电平状态发生变化时,通过硬件定时器延时消除接口的抖动,在此期间,通过硬件定时器中断当前目标程序后仍然能够继续执行其它程序,因此能够提高对于程序的整体执行效率,克服了现有技术以等待时延来消除抖动的方法所带来的执行效率低的缺点。The device for processing the jitter state of an interface provided in this embodiment includes a scanning module, a startup module, and an acquisition module. Since the present application uses a hardware timer to delay and eliminate the jitter of the interface when the level state of the target interface changes, During this period, other programs can continue to be executed after the current target program is interrupted by the hardware timer, so the overall execution efficiency of the program can be improved, and the execution efficiency brought by the method of eliminating jitter by waiting for time delay in the prior art can be overcome low downside.

图5为本申请实施例提供的一种电子设备的结构图。如图5所示,该处理器存储有计算机程序,且用于执行所述计算机程序时实现如接口抖动状态的处理方法的步骤。FIG. 5 is a structural diagram of an electronic device provided by an embodiment of the present application. As shown in FIG. 5 , the processor stores a computer program, and is used to implement the steps of the method for processing the state of interface jitter when executing the computer program.

具体的,电子设备包括存储器50,用于存储计算机程序;Specifically, the electronic device includes a memory 50 for storing computer programs;

处理器51,用于执行计算机程序时实现如上述实施例所述的接口抖动状态的处理方法的步骤。The processor 51 is configured to implement the steps of the method for processing the interface jitter state as described in the foregoing embodiments when executing the computer program.

由于装置部分的实施例与方法部分的实施例相互对应,因此装置部分的实施例请参见方法部分的实施例的描述,这里暂不赘述。在本申请的一些实施例中,处理器51和存储器50可通过总线或其它方式连接。Since the embodiment of the device part corresponds to the embodiment of the method part, please refer to the description of the embodiment of the method part for the embodiment of the device part, and details will not be repeated here. In some embodiments of the present application, the processor 51 and the memory 50 may be connected through a bus or in other ways.

其中,处理器51可以包括一个或多个处理核心,比如5核心处理器、8核心处理器等。处理器51可以采用51单片机系列中的至少一种硬件形式来实现。处理器51也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称CPU(Central Processing Unit,电子设备);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器51可以在集成有GPU(Graphics ProcessingUnit,图像处理器),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器51还可以包括AI(Artificial Intelligence,人工智能)处理器,该AI处理器用于处理有关机器学习的计算操作。Wherein, the processor 51 may include one or more processing cores, such as a 5-core processor, an 8-core processor, and the like. The processor 51 can be realized by at least one hardware form of the 51 single-chip microcomputer series. Processor 51 may also include a main processor and a coprocessor, and the main processor is a processor for processing data in a wake-up state, also known as a CPU (Central Processing Unit, electronic device); the coprocessor is used to Low-power processor for processing data in standby state. In some embodiments, the processor 51 may be integrated with a GPU (Graphics Processing Unit, image processor), and the GPU is used for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 51 may also include an AI (Artificial Intelligence, artificial intelligence) processor, where the AI processor is used to process computing operations related to machine learning.

存储器50可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是非暂态的。存储器50还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。本实施例中,存储器50至少用于存储以下计算机程序501,其中,该计算机程序被处理器51加载并执行之后,能够实现前述任一实施例公开的接口抖动状态的处理方法中的相关步骤。另外,存储器50所存储的资源还可以包括操作系统502和数据503等,存储方式可以是短暂存储或者永久存储。其中,操作系统502可以为Windows。数据503可以包括但不限于上述方法所涉及到的数据。Memory 50 may include one or more computer-readable storage media, which may be non-transitory. The memory 50 may also include high-speed random access memory, and non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 50 is at least used to store the following computer program 501, wherein, after the computer program is loaded and executed by the processor 51, the relevant steps in the method for processing the interface jitter state disclosed in any of the foregoing embodiments can be implemented. In addition, the resources stored in the memory 50 may also include an operating system 502 and data 503, etc., and the storage method may be temporary storage or permanent storage. Wherein, the operating system 502 may be Windows. The data 503 may include but not limited to the data involved in the above method.

在一些实施例中,接口抖动状态的处理装置还可包括有显示屏52、输入输出接口53、通信接口54、电源55以及通信总线56。In some embodiments, the device for processing the shaking state of the interface may further include a display screen 52 , an input/output interface 53 , a communication interface 54 , a power supply 55 and a communication bus 56 .

本领域技术人员可以理解,图5中示出的结构并不构成接口抖动状态的处理装置的限定,可以包括比图示更多或更少的组件。Those skilled in the art can understand that the structure shown in FIG. 5 does not constitute a limitation of the device for processing the interface jitter state, and may include more or less components than those shown in the figure.

本申请实施例提供的电子设备,在执行存储器存储的程序时,能够实现如上所述的获取接口抖动状态的处理方法,效果同上。The electronic device provided by the embodiment of the present application can implement the above-mentioned processing method for acquiring the interface jitter state when executing the program stored in the memory, and the effect is the same as above.

进一步的,本申请还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现如上述任一实施例提供的接口抖动状态的处理方法的步骤。Further, the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method for processing the interface jitter state as provided in any of the above-mentioned embodiments are implemented. .

可以理解的是,如果上述实施例中的方法以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。It can be understood that if the methods in the above embodiments are implemented in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , executing all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other various media that can store program codes. .

本实施例中提供的计算机可读存储介质所包含的计算机程序能够在被处理器执行时实现如上所述的接口抖动状态的处理方法的步骤,效果同上。The computer program included in the computer-readable storage medium provided in this embodiment can implement the steps of the method for processing the interface jitter state as described above when executed by the processor, and the effect is the same as above.

图6为本申请实施例提供的另一种应用于电子设备的接口抖动状态的处理方法的流程图。所述电子设备主要包括中央处理器和硬件定时器,该流程图中,从中央处理器和硬件定时器的交互角度说明。如图6所示,该方法包括:FIG. 6 is a flowchart of another processing method applied to an interface shaking state of an electronic device provided by an embodiment of the present application. The electronic device mainly includes a central processing unit and a hardware timer. In this flow chart, it is described from the perspective of interaction between the central processing unit and the hardware timer. As shown in Figure 6, the method includes:

S40:中央处理器扫描各接口的电平状态。S40: The central processing unit scans the level status of each interface.

S41:当电平状态发生变化时,向硬件定时器发送启动命令。S41: When the level state changes, send a start command to the hardware timer.

S42:中央处理器执行除目标程序以外的其它程序;其中,目标程序为基于目标接口的电平状态运行的程序。S42: The central processing unit executes other programs except the target program; wherein, the target program is a program running based on the level state of the target interface.

S43:硬件定时器中断目标程序,并计时。S43: The hardware timer interrupts the target program and starts timing.

S44:当计时结束时,中央处理器获取目标接口的最新电平状态以作为目标程序的运行参数。S44: When the timing is over, the central processing unit obtains the latest level state of the target interface as an operating parameter of the target program.

由于上文中对于中央处理器和硬件定时器的实施例进行了详细描述,故本实施例不再赘述。Since the embodiments of the central processing unit and the hardware timer have been described in detail above, this embodiment will not repeat them here.

本实施例提提供的一种接口抖动状态的处理方法,在目标接口的电平状态发生变化时,通过硬件定时器延时消除接口的抖动,在此期间,通过硬件定时器中断当前目标程序后仍然能够继续执行其它程序,因此能够提高对于程序的整体执行效率,克服了现有技术以等待时延来消除抖动的方法所带来的执行效率低的缺点。This embodiment provides a method for processing the interface jitter state. When the level state of the target interface changes, the jitter of the interface is eliminated by delaying the hardware timer. During this period, after the current target program is interrupted by the hardware timer It can still continue to execute other programs, so the overall execution efficiency of the program can be improved, and the disadvantage of low execution efficiency caused by the method of eliminating jitter by waiting time delay in the prior art can be overcome.

最后,本申请还提供一种接口抖动状态的处理系统,包括:Finally, the present application also provides a system for processing interface jitter status, including:

电子设备,用于扫描各接口的电平状态,当电平状态发生变化时,启动硬件定时器以中断目标接口当前执行的目标程序,并执行除目标程序以外的其它程序,当硬件定时器计时结束时,获取目标接口的最新电平状态以作为目标程序的运行参数;其中,目标程序为基于目标接口的电平状态运行的程序;Electronic equipment, used to scan the level status of each interface, when the level status changes, start the hardware timer to interrupt the target program currently executed by the target interface, and execute other programs except the target program, when the hardware timer counts At the end, the latest level state of the target interface is obtained as an operating parameter of the target program; wherein, the target program is a program that operates based on the level state of the target interface;

硬件定时器,用于中断目标程序,并计时。The hardware timer is used to interrupt the target program and time it.

本实施例提提供的一种接口抖动状态的处理系统,在目标接口的电平状态发生变化时,通过硬件定时器延时消除接口的抖动,在此期间,通过硬件定时器中断当前目标程序后仍然能够继续执行其它程序,因此能够提高对于程序的整体执行效率,克服了现有技术以等待时延来消除抖动的方法所带来的执行效率低的缺点。This embodiment provides a system for processing the interface jitter state. When the level state of the target interface changes, the interface jitter is eliminated by delaying the hardware timer. During this period, after the current target program is interrupted by the hardware timer It can still continue to execute other programs, so the overall execution efficiency of the program can be improved, and the disadvantage of low execution efficiency caused by the method of eliminating jitter by waiting time delay in the prior art can be overcome.

以上对本申请所提供的接口抖动状态的处理方法、装置、系统、介质及电子设备进行了详细介绍。说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以对本申请进行若干改进和修饰,这些改进和修饰也落入本申请权利要求的保护范围内。The method, device, system, medium, and electronic device for processing the interface jitter state provided by the present application are described above in detail. Each embodiment in the description is described in a progressive manner, each embodiment focuses on the differences from other embodiments, and the same and similar parts of the various embodiments can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and for relevant details, please refer to the description of the method part. It should be pointed out that those skilled in the art can make some improvements and modifications to the application without departing from the principles of the application, and these improvements and modifications also fall within the protection scope of the claims of the application.

还需要说明的是,在本说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其它变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其它要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should also be noted that in this specification, relative terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that these entities or operations There is no such actual relationship or order between the operations. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.

Claims (9)

1. The method for processing the jitter state of the interface is characterized by being applied to the electronic equipment and comprising the following steps of:
scanning the level state of each interface;
when the level state changes, starting a hardware timer to interrupt a target program currently executed by a target interface and executing other programs except the target program; the target program is a program running based on the level state of the target interface; the other programs are programs corresponding to other interfaces except the target interface in the electronic equipment;
and when the timing of the hardware timer is finished, acquiring the latest level state of the target interface to serve as the operation parameter of the target program.
2. The method for processing the jitter state of an interface according to claim 1, wherein after starting a hardware timer to interrupt a target program currently executed by a target interface when the level state is changed, further comprising:
acquiring an initial level state of the target interface;
judging whether the initial level state is different from the latest level state or not;
and if so, correspondingly writing the interface number of the target interface, the initial level state and the latest level state into an exception log.
3. The method for processing the jitter state of an interface as claimed in claim 1, further comprising, before said scanning the level state of each interface:
initializing the interface and the hardware timer.
4. The method for processing the jitter state of an interface as claimed in claim 1, wherein the timing duration of the hardware timer is 10ms.
5. The method for processing an interface jitter state according to any one of claims 1 to 4, further comprising:
judging whether the time for scanning the level state of each interface is longer than a preset time;
if so, scan anomaly information is generated.
6. An apparatus for processing jitter state of an interface, which is applied to an electronic device, comprising:
the scanning module is used for scanning the level state of each interface;
the starting module is used for starting a hardware timer to interrupt a target program currently executed by a target interface and execute other programs except the target program when the level state changes, wherein the target program is a program running based on the level state of the target interface; the other programs are programs corresponding to other interfaces except the target interface in the electronic equipment;
and the acquisition module is used for acquiring the latest level state of the target interface to be used as the running parameter of the target program when the timing of the hardware timer is finished.
7. An electronic device, characterized in that the electronic device stores a computer program;
and for implementing the steps of the method of handling interface jitter states according to any of claims 1 to 5 when executing said computer program.
8. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the method of handling interface jitter states according to any of claims 1 to 5.
9. A system for handling interface jitter conditions, comprising:
the electronic equipment is used for scanning the level state of each interface, when the level state changes, starting a hardware timer to interrupt a target program currently executed by a target interface and execute other programs except the target program, and when the timing of the hardware timer is finished, acquiring the latest level state of the target interface to be used as an operation parameter of the target program; the target program is a program running based on the level state of the target interface; the other programs are programs corresponding to other interfaces except the target interface in the electronic equipment;
the hardware timer is used for interrupting the target program and timing.
CN201911090036.2A 2019-11-08 2019-11-08 Method, device, system and medium for processing interface jitter state Active CN110851297B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911090036.2A CN110851297B (en) 2019-11-08 2019-11-08 Method, device, system and medium for processing interface jitter state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911090036.2A CN110851297B (en) 2019-11-08 2019-11-08 Method, device, system and medium for processing interface jitter state

Publications (2)

Publication Number Publication Date
CN110851297A CN110851297A (en) 2020-02-28
CN110851297B true CN110851297B (en) 2023-08-22

Family

ID=69599917

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911090036.2A Active CN110851297B (en) 2019-11-08 2019-11-08 Method, device, system and medium for processing interface jitter state

Country Status (1)

Country Link
CN (1) CN110851297B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111984386B (en) * 2020-08-26 2023-09-05 苏州易德龙科技股份有限公司 Real-time detection method for time window type level signal
CN113114536A (en) * 2021-04-15 2021-07-13 山东英信计算机技术有限公司 Switch data transmission method and system
CN115347942B (en) * 2022-08-31 2024-05-07 云合智网(上海)技术有限公司 Method, device, equipment and storage medium for realizing anti-jitter of optical fiber path

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA1175575A (en) * 1981-12-07 1984-10-02 Michael S. Pelley Programmable controller with multiple functions
CA1180817A (en) * 1981-10-21 1985-01-08 Ernst H. Dummermuth Modular programmable controller
JPH05210434A (en) * 1992-01-31 1993-08-20 Matsushita Electric Works Ltd Backup processing method
JPH0721052A (en) * 1993-07-05 1995-01-24 Yokogawa Digital Computer Kk Microcomputer development support system
US6622185B1 (en) * 1999-09-14 2003-09-16 Innovative Gaming Corporation Of America System and method for providing a real-time programmable interface to a general-purpose non-real-time computing system
CN101800597A (en) * 2010-02-04 2010-08-11 深圳市金宏威实业发展有限公司 Method and system for preventing vibration of fiber interface
CN105223880A (en) * 2015-09-18 2016-01-06 航宇救生装备有限公司 A kind of programmed control box net synchronization capability detection method and device
CN108121681A (en) * 2017-12-04 2018-06-05 努比亚技术有限公司 A kind of hot plug implementation method, terminal and storage medium
CN108415863A (en) * 2018-02-01 2018-08-17 广东欧珀移动通信有限公司 Hardware compatible implementation method of electronic device and related product
CN109344065A (en) * 2018-09-27 2019-02-15 迈普通信技术股份有限公司 Remote debugging method, debugging server and target machine

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5029245B2 (en) * 2007-09-20 2012-09-19 富士通セミコンダクター株式会社 Profiling method and program
US8331235B2 (en) * 2008-12-08 2012-12-11 At&T Intellectual Property I, L.P. Systems and methods to rerouting internet protocol traffic based on network user preferences

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA1180817A (en) * 1981-10-21 1985-01-08 Ernst H. Dummermuth Modular programmable controller
CA1175575A (en) * 1981-12-07 1984-10-02 Michael S. Pelley Programmable controller with multiple functions
JPH05210434A (en) * 1992-01-31 1993-08-20 Matsushita Electric Works Ltd Backup processing method
JPH0721052A (en) * 1993-07-05 1995-01-24 Yokogawa Digital Computer Kk Microcomputer development support system
US6622185B1 (en) * 1999-09-14 2003-09-16 Innovative Gaming Corporation Of America System and method for providing a real-time programmable interface to a general-purpose non-real-time computing system
CN101800597A (en) * 2010-02-04 2010-08-11 深圳市金宏威实业发展有限公司 Method and system for preventing vibration of fiber interface
CN105223880A (en) * 2015-09-18 2016-01-06 航宇救生装备有限公司 A kind of programmed control box net synchronization capability detection method and device
CN108121681A (en) * 2017-12-04 2018-06-05 努比亚技术有限公司 A kind of hot plug implementation method, terminal and storage medium
CN108415863A (en) * 2018-02-01 2018-08-17 广东欧珀移动通信有限公司 Hardware compatible implementation method of electronic device and related product
CN109344065A (en) * 2018-09-27 2019-02-15 迈普通信技术股份有限公司 Remote debugging method, debugging server and target machine

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
贾文超 ; 王立娟 ; 王鑫 ; .基于C8051F020单片机的汽车故障诊断仪的研究.电子测量技术.2008,(02),全文. *

Also Published As

Publication number Publication date
CN110851297A (en) 2020-02-28

Similar Documents

Publication Publication Date Title
CN110851297B (en) Method, device, system and medium for processing interface jitter state
EP3352083A1 (en) Debugging method, multi-core processor, and debugging equipment
US12153509B2 (en) Managing and maintaining multiple debug contexts in a debug execution mode for real-time processors
US11294794B2 (en) Managing and maintaining multiple debug contexts in a debug execution mode for real-time processors
US11216356B2 (en) Managing and maintaining multiple debug contexts in a debug execution mode for real-time processors
WO2024031932A1 (en) Storage server startup detection method, system and apparatus, device, and storage medium
CN107509160A (en) Data transmission method for uplink, electronic equipment and storage medium
CN109032678B (en) Method, apparatus, medium, and method for controlling amount of BIOS print information
CN112084099A (en) Method, device and equipment for obtaining alarm state value based on host and storage medium
CN117251361A (en) Method, device, equipment and storage medium for testing system stability
CN114003421B (en) Virtual machine timeout mechanism testing method, system, terminal and storage media
CN115454565A (en) Virtual machine data migration method, device, electronic equipment and storage medium
CN114281422A (en) Cloud computer control method, device and medium
CN114328153A (en) RDMA performance test system, method, device and medium
CN103488522B (en) A kind of method and apparatus for the equipment for managing virtual machine
CN111475284A (en) An embedded device and its memory supervision method, device and readable storage medium
CN113961921B (en) Malicious program detection method, device, equipment and storage medium
CN115270107B (en) Information verification method and device, readable medium and electronic equipment
CN112673354A (en) System state detection method, system state device and terminal equipment
CN102421004A (en) Debugging method and device for TV software system
CN115237501A (en) Method, device, device and medium for setting CTO in PCIE equipment
CN107678945A (en) A kind of determination methods and device of web application obstruction
CN114968208A (en) A method, device and medium for object recycling
CN116302172A (en) A method, device, equipment and storage medium for collecting server configuration information
CN111488301A (en) Blood cell analyzer, control system, method, electronic device, and medium for blood cell analyzer

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220112

Address after: 518000 3310, building 11, phase II (plot 02-08), Tianan Yungu Industrial Park, Gangtou community, Bantian street, Longgang District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen Yijian Car Service Technology Co.,Ltd.

Address before: 518000 Guangdong province Shenzhen Longgang District Bantian Street five and Avenue North 4012 Yuan Zheng Industrial Park.

Applicant before: LAUNCH TECH Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A method, device, system, and medium for handling interface jitter state

Granted publication date: 20230822

Pledgee: Societe Generale Bank Limited by Share Ltd. Shenzhen branch

Pledgor: Shenzhen Yijian Car Service Technology Co.,Ltd.

Registration number: Y2024980026280