CN107122282B - A Functional Safety Communication Method Based on SPI Bus - Google Patents
A Functional Safety Communication Method Based on SPI Bus Download PDFInfo
- Publication number
- CN107122282B CN107122282B CN201710191934.1A CN201710191934A CN107122282B CN 107122282 B CN107122282 B CN 107122282B CN 201710191934 A CN201710191934 A CN 201710191934A CN 107122282 B CN107122282 B CN 107122282B
- Authority
- CN
- China
- Prior art keywords
- spi
- data
- frame
- timer
- bytes
- 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
Links
Classifications
- 
        - G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3027—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a bus
 
- 
        - G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error 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/0751—Error or fault detection not based on redundancy
- G06F11/0754—Error or fault detection not based on redundancy by exceeding limits
- G06F11/0757—Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs
 
- 
        - G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error 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/0751—Error or fault detection not based on redundancy
- G06F11/0754—Error or fault detection not based on redundancy by exceeding limits
- G06F11/076—Error or fault detection not based on redundancy by exceeding limits by exceeding a count or rate limit, e.g. word- or bit count limit
 
- 
        - G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3055—Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
 
- 
        - G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3089—Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
- G06F11/3096—Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents wherein the means or processing minimize the use of computing system or of computing system component resources, e.g. non-intrusive monitoring which minimizes the probe effect: sniffing, intercepting, indirectly deriving the monitored data from other directly available data
 
- 
        - G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2201/00—Indexing scheme relating to error detection, to error correction, and to monitoring
- G06F2201/88—Monitoring involving counting
 
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Mathematical Physics (AREA)
- Small-Scale Networks (AREA)
Abstract
本发明公开了一种基于SPI总线的功能安全通信方法,包括:主机将要传输的数据打包为帧数据,所述帧数据包括帧头、实际要传输的数据、帧尾;主机将所述帧数据以字节为单位按顺序写入SPI传输寄存器中;从机以字节为单位按顺序从SPI传输寄存器中接收所述帧数据,并基于所接收的帧数据对主机的传输时序进行监控,所述传输时序包括字节与字节之间的时间间隔以及帧与帧之间的时间间隔,监控内容包括字节与字节之间的时间间隔过长、帧与帧之间的时间间隔过短、帧与帧之间的时间间隔过长。本发明既可以保证SPI传输中断后可立即被发现,又可以实现对主机软件执行时序的监控,提高了主机运行的可靠性和稳定性,提高了整个电控系统的安全性。
The invention discloses a functional safety communication method based on an SPI bus, comprising: a host packs data to be transmitted into frame data, the frame data includes a frame header, actual data to be transmitted, and a frame tail; the host packs the frame data Write in the SPI transmission register in sequence in units of bytes; the slave receives the frame data from the SPI transmission register in sequence in units of bytes, and monitors the transmission timing of the host based on the received frame data, so The above transmission timing includes the time interval between bytes and frames and the time interval between frames. The monitoring content includes the time interval between bytes is too long and the time interval between frames is too short. , The time interval between frames is too long. The invention can not only ensure that the SPI transmission can be found immediately after the interruption, but also realize the monitoring of the execution sequence of the host software, improve the reliability and stability of the host operation, and improve the safety of the entire electric control system.
Description
技术领域technical field
本发明涉及一种安全通信方法,具体涉及一种基于SPI总线的功能安全通信方法。The invention relates to a safety communication method, in particular to a functional safety communication method based on an SPI bus.
背景技术Background technique
随着汽车电子的飞速发展,汽车电子电气系统的复杂度日益增加,如何保证汽车电子电气系统的安全性和可靠性成为所有整车厂及供应商面临的问题。为此国际标准组织制定了ISO 26262功能安全标准,从流程和技术等方面为汽车电子电气系统的开发提供指导。在ISO 26262标准第五部分表D.10中,提出了一种从逻辑和时间两方面对程序执行顺序进行监控的安全机制,采用此安全机制可获得更高的诊断覆盖率,从而达到更高的ASIL等级。此安全机制可检测出ECU软件在运行过程中,因内部或外部干扰而导致的ECU软件运行异常。通过与ECU主处理器相独立的安全监控模块,可实现对主处理器运行逻辑和时间的监控。With the rapid development of automotive electronics, the complexity of automotive electrical and electronic systems is increasing. How to ensure the safety and reliability of automotive electrical and electronic systems has become a problem faced by all vehicle manufacturers and suppliers. For this reason, the International Standard Organization has formulated the ISO 26262 functional safety standard, which provides guidance for the development of automotive electronic and electrical systems from the aspects of process and technology. In Table D.10 of the fifth part of the ISO 26262 standard, a security mechanism is proposed to monitor the program execution sequence from both logic and time. Using this security mechanism can obtain a higher diagnostic coverage, thereby achieving a higher ASIL rating. This safety mechanism can detect abnormal operation of ECU software caused by internal or external interference during the operation of ECU software. Through the safety monitoring module independent of the ECU main processor, the monitoring of the operating logic and time of the main processor can be realized.
如中国实用新型专利(授权公告号CN 202402149 U、授权公告日2012.08.29)公开了一种天然气发动机ECU安全监控模块,可实现对外部油门位置、节气门位置等信号的监控,但是,该专利没有对ECU处理器内部信息进行监控。又如,中国发明专利(申请公布号CN103206308 A、申请公布日2013.07.17)公开了一种用于汽油发动机ECU安全监控系统的方法,该方法增加了对ECU主机内部信息(如系统电压和主机主频)的监控。然而,以上两项专利只是对SPI传输的数据内容进行了解析和校验,其实现的基础是主机和从机间能正确稳定地通过SPI传输数据,这存在以下几个问题:(1)未考虑ECU主机因中断或CPU负载而导致的SPI传输不稳定、不及时的情况;(2)未考虑SPI传输过程中因外部因素而导致的突然中断的情况;(3)从机对主机只有逻辑上的监控,没有时间上的监控。For example, the Chinese utility model patent (authorized announcement number CN 202402149 U, authorized announcement date 2012.08.29) discloses a natural gas engine ECU safety monitoring module, which can monitor external throttle position, throttle position and other signals. However, the patent There is no monitoring of ECU processor internal information. As another example, the Chinese invention patent (application publication number CN103206308 A, application publication date 2013.07.17) discloses a method for a gasoline engine ECU safety monitoring system, which increases the internal information of the ECU host (such as system voltage and host main frequency) monitoring. However, the above two patents only analyze and verify the data content transmitted by SPI. The basis of its realization is that the master and slave can transmit data through SPI correctly and stably. This has the following problems: (1) Consider the unstable and untimely SPI transmission caused by the ECU host due to interruption or CPU load; (2) The sudden interruption caused by external factors during the SPI transmission process is not considered; (3) The slave has only logic for the master On the monitoring, there is no monitoring on the time.
发明内容Contents of the invention
针对上述问题,本发明的目的提供一种基于SPI的功能安全通信方法,该方法通过对SPI传输数据中字节与字节间以及帧与帧之间时间上的监控,实现对SPI传输时序的监控,达到ISO 26262标准中对主机软件执行顺序的时间方面监控的要求。For the problems referred to above, the object of the present invention provides a kind of SPI-based functional safety communication method, the method realizes the SPI transmission timing by monitoring the time between bytes and bytes in SPI transmission data and between frames and frames. Monitoring, to meet the requirements of the ISO 26262 standard for monitoring the time aspect of the host software execution sequence.
为实现上述目的,本发明采用的技术方案为:To achieve the above object, the technical solution adopted in the present invention is:
本发明实施例提供一种基于SPI总线的功能安全通信方法,包括:The embodiment of the present invention provides a kind of functional safety communication method based on SPI bus, comprising:
S1:SPI主机将要传输的数据打包为帧数据,所述帧数据包括帧头、实际要传输的数据、帧尾;S1: The SPI master packs the data to be transmitted into frame data, and the frame data includes the frame header, the actual data to be transmitted, and the frame tail;
S2:SPI主机将所述帧数据以字节为单位按顺序写入SPI传输寄存器中;S2: The SPI master writes the frame data into the SPI transmission register sequentially in bytes;
S3:SPI从机基于SPI总线以字节为单位按顺序从SPI传输寄存器中接收所述帧数据,并在接收帧数据的过程中对SPI主机的数据传输时序进行监控,所述传输时序包括字节与字节之间的时间间隔以及帧与帧之间的时间间隔;S3: The SPI slave receives the frame data from the SPI transmission register in order based on the SPI bus in units of bytes, and monitors the data transmission timing of the SPI master during the process of receiving the frame data. The transmission timing includes words The time interval between sections and bytes and the time interval between frames;
其中,步骤S3具体包括:Wherein, step S3 specifically includes:
S301:SPI从机在接收到字节数据后,将接收到的字节数据内容与预设的帧尾数据和预设的帧头数据进行比较,如果接收的字节数据与预设的帧尾数据相一致,则进入步骤S302,如果接收的字节数据与预设的帧头数据相一致,则进入步骤S303,否则进入步骤S306;S301: After receiving the byte data, the SPI slave compares the content of the received byte data with the preset frame end data and the preset frame header data, if the received byte data is consistent with the preset frame end If the data is consistent, then enter step S302, if the received byte data is consistent with the preset frame header data, then enter step S303, otherwise enter step S306;
S302:将帧尾标志设置为1,将定时器的定时周期设定为允许的帧间最小时间间隔,记录当前状态为检测帧间超时,将定时器的触发次数清0,启动定时器,在定时器中断时进入步骤S307;S302: Set the end-of-frame flag to 1, set the timing period of the timer to the minimum time interval allowed between frames, record the current state as detecting timeout between frames, clear the trigger times of the timer to 0, start the timer, and Enter step S307 when the timer is interrupted;
S303:判定帧尾标志是否为1且定时器的中断次数是否为0,如果帧尾标志为1且定时器的中断次数为0,则进入步骤S304,否则进入步骤S306;S303: Determine whether the end-of-frame flag is 1 and whether the number of interruptions of the timer is 0, if the end-of-frame flag is 1 and the number of interruptions of the timer is 0, then enter step S304, otherwise enter step S306;
S304:判定为帧与帧之间的时间间隔过短,增加帧间过短错误计数,并进入步骤S305;S304: It is determined that the time interval between frames is too short, increase the error count of too short between frames, and enter step S305;
S305:判断帧间过短错误计数是否大于允许的帧间过短错误最大次数,如果大于,则复位SPI主机,如果不大于,则进入步骤S306;S305: judging whether the inter-frame too short error count is greater than the allowable inter-frame too short error maximum number of times, if greater, then reset the SPI master, if not greater, then enter step S306;
S306:将帧尾标志设置为0,将定时器的定时周期设定为允许的字节间最大时间间隔,记录当前状态为检测字节间超时,启动定时器,在定时器中断时进入步骤S307;S306: set the end-of-frame flag to 0, set the timing period of the timer to the maximum time interval between bytes allowed, record the current state as detecting timeout between bytes, start the timer, and enter step S307 when the timer is interrupted ;
S307:判断当前状态是否为检测字节间超时,如果是,则进入步骤S308,否则进入步骤S310;S307: Judging whether the current state is timeout between detected bytes, if yes, proceed to step S308, otherwise proceed to step S310;
S308:判定为字节间时间间隔过长,增加字节间超时错误计数,并进入步骤S309;S308: determine that the time interval between bytes is too long, increase the timeout error count between bytes, and enter step S309;
S309:判断字节间超时错误计数是否大于允许的字节间超时错误最大次数,如果大于,则复位SPI主机;S309: Determine whether the timeout error count between bytes is greater than the maximum number of timeout errors allowed between bytes, if greater, then reset the SPI host;
S310:增加定时器的中断计数,进入步骤S311;S310: increase the interrupt count of the timer, and enter step S311;
S311:判断定时器的中断计数与允许的帧间最小时间间隔的乘积是否大于允许的帧间最大时间间隔,如果大于,则进入步骤S312;S311: Determine whether the product of the interrupt count of the timer and the allowed minimum time interval between frames is greater than the allowed maximum time interval between frames, if greater, then enter step S312;
S312:判定为帧间时间间隔过长,增加帧间超时错误计数,并进入步骤S313;S312: Determine that the inter-frame time interval is too long, increase the inter-frame timeout error count, and enter step S313;
S313:判断帧间超时错误计数是否大于允许的帧间超时错误最大次数,如果大于,则复位SPI主机。S313: Determine whether the inter-frame timeout error count is greater than the allowed maximum number of inter-frame timeout errors, and if so, reset the SPI master.
可选地,在步骤S302中,如果没有触发定时器而接收到下一个SPI中断数据,则执行步骤S301;在步骤S306中,如果没有触发定时器而接收到下一个SPI中断数据,则执行步骤S301。Optionally, in step S302, if the timer is not triggered and the next SPI interrupt data is received, then step S301 is performed; in step S306, if the timer is not triggered and the next SPI interrupt data is received, then step S301 is performed S301.
可选地,在步骤S309中,如果字节间超时错误计数没有大于允许的字节间超时错误最大次数,则当定时器再次触发时,执行步骤S307,当接收到下一个SPI中断数据时,执行步骤S301;在步骤S311中,如果定时器的中断计数与允许的帧间最小时间间隔的乘积不大于允许的帧间最大时间间隔,则当定时器再次触发时,执行步骤S307,当接收到下一个SPI中断数据时,执行步骤S301;在步骤S313中,如果帧间超时错误计数不大于系统允许的帧间超时错误最大次数,则当定时器再次触发时,执行步骤S307,当接收到下一个SPI中断数据时,执行步骤S301。Optionally, in step S309, if the timeout error count between bytes is not greater than the allowable maximum number of timeout errors between bytes, then when the timer triggers again, step S307 is performed, and when the next SPI interrupt data is received, Execution of step S301; in step S311, if the product of the interrupt count of the timer and the allowed minimum time interval between frames is not greater than the allowed maximum time interval between frames, then when the timer is triggered again, step S307 is executed, when receiving When the next SPI interrupts data, execute step S301; in step S313, if the interframe timeout error count is not greater than the maximum number of interframe timeout errors allowed by the system, then when the timer triggers again, execute step S307. When an SPI interrupts data, execute step S301.
可选地,SPI传输位宽为8位,所述SPI主机与所述SPI从机以单字节进行数据通信,每帧数据包括4个字节,其中,第一个字节为帧头,中间两个字节为实际要传输的数据,最后一个字节为帧尾。Optionally, the SPI transmission bit width is 8 bits, and the SPI master and the SPI slave carry out data communication with a single byte, and each frame of data includes 4 bytes, wherein the first byte is a frame header, The middle two bytes are the actual data to be transmitted, and the last byte is the end of the frame.
可选地,所述SPI主机采用MPC564X芯片,所述SPI从机采用MC9S12GN32芯片。Optionally, the SPI master uses the MPC564X chip, and the SPI slave uses the MC9S12GN32 chip.
可选地,所述SPI主机的输出端连接到所述SPI从机的输入端,所述SPI主机的输入端连接到所述SPI从机的输出端,所述SPI主机的时钟端连接所述SPI从机的时钟端,所述SPI主机的片选端连接到所述SPI从机的片选端,所述SPI主机的复位端连接到所述SPI从机的IO口。Optionally, the output end of the SPI master is connected to the input of the SPI slave, the input of the SPI master is connected to the output of the SPI slave, and the clock end of the SPI master is connected to the The clock end of the SPI slave, the chip select end of the SPI master is connected to the chip select end of the SPI slave, and the reset end of the SPI master is connected to the IO port of the SPI slave.
可选地,所述SPI从机通过所述IO口复位SPI主机。Optionally, the SPI slave resets the SPI master through the IO port.
可选地,所述SPI主机和所述SPI从机的波特率相同。Optionally, the baud rates of the SPI master and the SPI slave are the same.
可选地,所述SPI主机和所述SPI从机的波特率均为1.5Mbit/s。Optionally, the baud rates of the SPI master and the SPI slave are both 1.5Mbit/s.
与现有技术相比,本发明的有益效果为:本发明通过监控SPI主机和SPI从机间传输的字节数据和帧数据的时间间隔,可检测出字节与字节间时间间隔过长、帧与帧之前时间间隔过短、帧与帧之间时间间隔过长等三种错误情况,既可以保证SPI传输中断后可立即被发现,又可以实现对主机软件执行时序的监控,提高了主机运行的可靠性和稳定性,提高了整个电控系统的安全性。另外,本发明只在SPI从机使用一个定时器资源,对硬件资源要求较低,有利于扩大本发明的应用范围。Compared with the prior art, the beneficial effects of the present invention are: the present invention can detect that the time interval between bytes is too long by monitoring the time interval of byte data and frame data transmitted between the SPI master and the SPI slave , the time interval between frames is too short, and the time interval between frames is too long, etc., which can not only ensure that the SPI transmission can be found immediately after the interruption, but also realize the timing monitoring of the host software execution, which improves the The reliability and stability of the main engine operation improves the safety of the entire electronic control system. In addition, the present invention only uses one timer resource in the SPI slave machine, has lower requirements on hardware resources, and is beneficial to expand the application scope of the present invention.
附图说明Description of drawings
图1为本发明的SPI安全通信系统结构示意图。Fig. 1 is a schematic structural diagram of the SPI safety communication system of the present invention.
图2为本发明的SPI主机传输的数据传输时序的示意图。FIG. 2 is a schematic diagram of the data transmission sequence transmitted by the SPI master of the present invention.
图3为本发明的基于SPI的功能安全通信方法的流程示意图。FIG. 3 is a schematic flowchart of the SPI-based functional safety communication method of the present invention.
图4和图5为详细示出本发明的SPI从机对SPI主机的传输时序进行监控的流程示意图。FIG. 4 and FIG. 5 are schematic flow diagrams illustrating in detail the SPI slave monitoring the transmission timing of the SPI master according to the present invention.
具体实施方式Detailed ways
为使本发明要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。In order to make the technical problems, technical solutions and advantages to be solved by the present invention clearer, the following will describe in detail with reference to the drawings and specific embodiments.
图1为本发明的SPI安全通信系统结构示意图。图2为本发明的SPI主机传输的数据传输时序的示意图。图3为本发明的基于SPI的功能安全通信方法的流程示意图。图4和图5为详细示出本发明的SPI从机对SPI主机的传输时序进行监控的流程示意图。Fig. 1 is a schematic structural diagram of the SPI safety communication system of the present invention. FIG. 2 is a schematic diagram of the data transmission sequence transmitted by the SPI master of the present invention. FIG. 3 is a schematic flowchart of the SPI-based functional safety communication method of the present invention. FIG. 4 and FIG. 5 are schematic flow diagrams illustrating in detail the SPI slave monitoring the transmission timing of the SPI master according to the present invention.
以下,首先参考图1对本发明的SPI安全通信系统进行介绍。如图1所示,本发明的SPI安全通信系统包括通过SPI总线进行通信的SPI主机和SPI从机。在本发明的实施例中,所述SPI主机采用MPC564X芯片,所述SPI从机采用MC9S12GN32芯片,所述SPI主机和所述SPI从机的波特率相同,例如均为1.5M bit/s。所述SPI主机的输出端(DSPI_B_SOUT)连接到所述SPI从机的输入端(MOSI),所述SPI主机的输入端(DSPI_B_SIN)连接到所述SPI从机的输出端(MISO),所述SPI主机的时钟端(DSPI_B_SCK)连接所述SPI从机的时钟端(SCK),所述SPI主机的片选端(SDPI_B_PCS[0])连接到所述SPI从机的片选端(SS),所述SPI主机的复位端连接到所述SPI从机的IO口(PT1),这样,SPI主机和SPI从机可以进行相互通信,SPI从机可通过所述IO口复位SPI主机。Hereinafter, the SPI safety communication system of the present invention will be introduced first with reference to FIG. 1 . As shown in FIG. 1 , the SPI safety communication system of the present invention includes an SPI master and an SPI slave communicating through the SPI bus. In an embodiment of the present invention, the SPI master adopts the MPC564X chip, the SPI slave adopts the MC9S12GN32 chip, and the baud rates of the SPI master and the SPI slave are the same, for example, both are 1.5M bit/s. The output (DSPI_B_SOUT) of the SPI master is connected to the input (MOSI) of the SPI slave, and the input (DSPI_B_SIN) of the SPI master is connected to the output (MISO) of the SPI slave. The clock end (DSPI_B_SCK) of the SPI master is connected to the clock end (SCK) of the SPI slave, and the chip select end (SDPI_B_PCS[0]) of the SPI master is connected to the chip select end (SS) of the SPI slave, The reset terminal of the SPI master is connected to the IO port (PT1) of the SPI slave, so that the SPI master and the SPI slave can communicate with each other, and the SPI slave can reset the SPI master through the IO port.
SPI主机将要向SPI从机传输的数据打包为帧数据,帧数据包括帧头、实际要传输的数据、帧尾。本实施例中,SPI主机和SPI从机之间的SPI传输位宽为8位,因此SPI主机和SPI从机间以单字节进行数据通信,如图2所示,SPI主机向SPI从机传输的每帧数据包括四个字节,第一个字节为帧头,最后一个字节为帧尾,中间两个字节为实际要传输的数据,两个字节间发送时间差值为字节与字节间时间间隔,两帧间发送时间差值为帧与帧间时间间隔。The SPI master packs the data to be transmitted to the SPI slave into frame data, and the frame data includes the frame header, the actual data to be transmitted, and the frame tail. In this embodiment, the SPI transmission bit width between the SPI master and the SPI slave is 8 bits, so the SPI master and the SPI slave carry out data communication with a single byte, as shown in Figure 2, the SPI master sends the SPI slave Each frame of data transmitted includes four bytes, the first byte is the frame header, the last byte is the frame tail, the middle two bytes are the actual data to be transmitted, and the sending time difference between the two bytes is The time interval between bytes and the time interval between two frames is the time interval between frames.
如图3所示,SPI主机与SPI从机之间的数据传输可包括以下步骤:As shown in Figure 3, the data transmission between the SPI master and the SPI slave may include the following steps:
S1:SPI主机将要传输的数据打包为帧数据;S1: The SPI master packs the data to be transmitted into frame data;
S2:SPI主机将所述帧数据以字节为单位按顺序写入SPI传输寄存器中;S2: The SPI master writes the frame data into the SPI transmission register sequentially in bytes;
S3:SPI从机基于SPI总线以字节为单位按顺序从SPI传输寄存器中接收所述帧数据,并对SPI主机的数据传输时序进行监控。S3: The SPI slave receives the frame data from the SPI transmission register in sequence based on the SPI bus in units of bytes, and monitors the data transmission timing of the SPI master.
在本发明中,SPI从机通过对SPI主机传输数据中的字节与字节间以及帧与帧之间时间上的监控,实现对SPI主机的数据传输时序的监控,达到监控整个SPI传输时序的目的。传输时序包括SPI字节与字节间时间间隔、SPI帧与帧之间的时间间隔;监控内容包括SPI字节与字节间时间间隔过长、SPI帧与帧之间的时间间隔过短、SPI帧与帧之间的时间间隔过长。本发明的SPI从机主要通过SPI中断程序和定时器中断程序来进行监测。In the present invention, the SPI slave realizes the monitoring of the data transmission timing of the SPI master by monitoring the byte-to-byte and frame-to-frame time in the SPI master transmission data, so as to monitor the entire SPI transmission timing the goal of. The transmission timing includes the time interval between SPI byte and byte, the time interval between SPI frame and frame; the monitoring content includes the time interval between SPI byte and byte is too long, the time interval between SPI frame and frame is too short, The time interval between SPI frames is too long. The SPI slave machine of the present invention mainly monitors through the SPI interrupt program and the timer interrupt program.
以下参考图4和图5对本发明的SPI从机对SPI主机的数据传输时序进行监控进行具体说明。The monitoring of the data transmission timing of the SPI master to the SPI master by the SPI slave of the present invention will be described in detail below with reference to FIG. 4 and FIG. 5 .
如图4和图5所示,SPI从机对SPI主机的数据传输时序的监控具体包括以下步骤:As shown in Figure 4 and Figure 5, the monitoring of the data transmission timing of the SPI master by the SPI slave specifically includes the following steps:
S1:SPI主机将要传输的数据打包为帧数据,所述帧数据包括帧头、实际要传输的数据、帧尾;S1: The SPI master packs the data to be transmitted into frame data, and the frame data includes the frame header, the actual data to be transmitted, and the frame tail;
S2:SPI主机将所述帧数据以字节为单位按顺序写入SPI传输寄存器中;S2: The SPI master writes the frame data into the SPI transmission register sequentially in bytes;
S3:SPI从机基于SPI总线以字节为单位按顺序从SPI传输寄存器中接收所述帧数据,并在接收帧数据的过程中对SPI主机的数据传输时序进行监控,所述传输时序包括字节与字节之间的时间间隔以及帧与帧之间的时间间隔。S3: The SPI slave receives the frame data from the SPI transmission register in order based on the SPI bus in units of bytes, and monitors the data transmission timing of the SPI master during the process of receiving the frame data. The transmission timing includes words The time interval between sections and bytes and the time interval between frames.
其中,步骤S3具体包括:Wherein, step S3 specifically includes:
S301:SPI从机在接收到字节数据后,将接收到的字节数据内容与预设的帧尾数据和预设的帧头数据进行比较,如果接收的字节数据与预设的帧尾数据相一致,则进入步骤S302,如果接收的字节数据与预设的帧头数据相一致,则进入步骤S303,否则进入步骤S306。S301: After receiving the byte data, the SPI slave compares the content of the received byte data with the preset frame end data and the preset frame header data, if the received byte data is consistent with the preset frame end If the data is consistent, go to step S302, if the received byte data is consistent with the preset header data, go to step S303, otherwise go to step S306.
S302:将帧尾标志设置为1,将定时器的定时周期设定为允许的帧间最小时间间隔,记录当前状态为检测帧间超时,将定时器的触发次数清0,启动定时器,在定时器中断时进入步骤S307;如果在定时器触发之前从SPI主机接收到下一个SPI中断数据,则执行步骤S301。即,在接收到帧尾数据后,如果定时器没有触发而直接接收到帧头数据,此时,SPI中断程序开始工作,这种情况说明两帧数据之间的传输时间间隔小于允许的帧间最小时间间隔,由此可判定帧间时间间隔过短。S302: Set the end-of-frame flag to 1, set the timing period of the timer to the minimum time interval allowed between frames, record the current state as detecting timeout between frames, clear the trigger times of the timer to 0, start the timer, and When the timer is interrupted, enter step S307; if the next SPI interrupt data is received from the SPI master before the timer is triggered, then execute step S301. That is, after receiving the frame end data, if the timer does not trigger and directly receives the frame header data, at this time, the SPI interrupt program starts to work, which means that the transmission time interval between two frames of data is less than the allowable frame interval The minimum time interval, from which it can be judged that the time interval between frames is too short.
允许的帧间最小时间间隔可根据系统(ECU系统)的需求来确定,例如,在一示例中,为1ms,这样,可将定时器的定时周期设置为1ms,这样,在接收到下一帧数据之前,定时器会每隔1ms触发一次。The allowed minimum time interval between frames can be determined according to the requirements of the system (ECU system), for example, in an example, it is 1ms, so the timing period of the timer can be set to 1ms, like this, after receiving the next frame Before data, the timer will fire every 1ms.
S303:判定帧尾标志是否为1且定时器的中断次数是否为0,如果帧尾标志为1且定时器的中断次数为0,则进入步骤S304,否则进入步骤S306。S303: Determine whether the end-of-frame flag is 1 and the number of interruptions of the timer is 0, if the end-of-frame flag is 1 and the number of interruptions of the timer is 0, go to step S304, otherwise go to step S306.
S304:判定为帧与帧之间的时间间隔过短,增加帧间过短错误计数,并进入步骤S305。S304: It is determined that the time interval between frames is too short, increase the error count of too short between frames, and enter step S305.
S305:判断帧间过短错误计数是否大于允许的帧间过短错误最大次数,如果大于,则复位SPI主机,如果不大于,则进入步骤S306;允许的帧间过短错误最大次数可根据需要来进行设置,在一示例中可设置为7次。S305: Judging whether the inter-frame too short error count is greater than the allowed maximum number of inter-frame too short errors, if greater, then reset the SPI host, if not greater, then enter step S306; the allowed inter-frame too short error maximum number of times can be determined as required to set, in an example it can be set to 7 times.
S306:将帧尾标志设置为0,将定时器的定时周期设定为允许的字节间最大时间间隔,记录当前状态为检测字节间超时,启动定时器,在定时器中断时进入步骤S307;如果没有触发定时器而接收到下一个SPI中断数据,则执行步骤S301。即,如果在定时器触发之前从SPI主机接收到下一个SPI中断数据,这表明将要接收下一个字节数据(SPI实际要传输的数据),由此说明字节与字节的时间间隔是在系统允许范围内,此时,SPI中断程序开始工作。S306: set the end-of-frame flag to 0, set the timing period of the timer to the maximum time interval between bytes allowed, record the current state as detecting timeout between bytes, start the timer, and enter step S307 when the timer is interrupted ; If the timer is not triggered and the next SPI interrupt data is received, then step S301 is executed. That is, if the next SPI interrupt data is received from the SPI master before the timer triggers, this indicates that the next byte of data (the data actually transmitted by the SPI) will be received, thus indicating that the time interval between bytes and bytes is in Within the range allowed by the system, at this time, the SPI interrupt program starts to work.
允许的字节间最大时间间隔可根据系统(ECU系统)的需求来确定,例如,在一示例中,约为200us,这样,可将定时器的定时周期设置为200us,这样,在接收到下一个字节数据之前,定时器会每隔200us触发一次。The maximum time interval between allowed bytes can be determined according to the requirements of the system (ECU system), for example, in an example, it is about 200us, so the timing period of the timer can be set to 200us, like this, after receiving Before a byte of data, the timer will trigger every 200us.
S307:判断当前状态是否为检测字节间超时,如果是,则进入步骤S308,否则进入步骤S310。S307: Judging whether the current state is to detect timeout between bytes, if yes, go to step S308, otherwise go to step S310.
S308:判定为字节间时间间隔过长,增加字节间超时错误计数,并进入步骤S309。S308: It is determined that the time interval between bytes is too long, increase the timeout error count between bytes, and enter step S309.
S309:判断字节间超时错误计数是否大于允许的字节间超时错误最大次数,如果大于,则复位SPI主机;如果不大于,则当定时器再次触发时,执行步骤S307,当接收到下一个SPI中断数据时,执行步骤S301。即,如果字节间超时错误计数没有大于允许的字节间超时错误最大次数,如果在接下来的时间内,定时器被再次触发,说明还没有收到字节数据,则继续增加定时器中断错误计数,直到接收到下一个SPI中断数据后返回SPI中断程序中,或者中断错误计数大于允许的字节间超时错误最大次数后复位SPI主机。S309: Determine whether the timeout error count between bytes is greater than the maximum number of timeout errors between bytes allowed, if greater, then reset the SPI master; if not greater, then when the timer is triggered again, step S307 is executed, and when the next When the SPI interrupts data, execute step S301. That is, if the inter-byte timeout error count is not greater than the maximum number of allowed inter-byte timeout errors, if the timer is triggered again within the next time, indicating that no byte data has been received, continue to increase the timer interrupt Error counting, return to the SPI interrupt program after receiving the next SPI interrupt data, or reset the SPI master after the interrupt error count is greater than the maximum number of allowable inter-byte timeout errors.
允许的字节间超时错误最大次数可根据需要来进行设置,在一示例中可设置为7次。The maximum number of allowable inter-byte timeout errors can be set as required, and can be set to 7 times in an example.
S310:增加定时器的中断计数,进入步骤S311。S310: Increase the interrupt count of the timer, and go to step S311.
S311:判断定时器的中断计数与允许的帧间最小时间间隔的乘积是否大于允许的帧间最大时间间隔,如果大于,则进入步骤S312;如果不大于,则当定时器再次触发时,执行步骤S307,当接收到下一个SPI中断数据时,执行步骤S301。即,如果定时器的中断计数与允许的帧间最小时间间隔的乘积小于等于允许的帧间最大时间间隔,如果在接下来的时间内,定时器被再次触发,则继续计算定时器的中断计数与允许的帧间最小时间间隔的乘积进行判断,如果没有再次触发定时器而接收到下一个SPI中断数据,则说明帧与帧的时间间隔是在系统允许的范围内,返回SPI中断程序。S311: Determine whether the product of the interrupt count of the timer and the allowed minimum time interval between frames is greater than the allowed maximum time interval between frames, if greater, then enter step S312; if not greater, then when the timer triggers again, execute step S307. When the next SPI interrupt data is received, step S301 is executed. That is, if the product of the timer's interrupt count and the allowed minimum time interval between frames is less than or equal to the allowed maximum time interval between frames, if the timer is triggered again in the next time, continue to calculate the timer's interrupt count Judging by the product of the minimum time interval allowed between frames, if the timer is not triggered again and the next SPI interrupt data is received, it means that the time interval between frames is within the range allowed by the system, and the SPI interrupt program is returned.
允许的帧间最大时间间隔可根据系统(ECU系统)的需求来确定,例如,在一示例中,系统允许的帧间最大时间间隔约为500ms。The allowable maximum time interval between frames may be determined according to the requirements of the system (ECU system). For example, in an example, the maximum allowable time interval between frames of the system is about 500 ms.
S312:判定为帧间时间间隔过长,增加帧间超时错误计数,并进入步骤S313。S312: Determine that the inter-frame time interval is too long, increase the inter-frame timeout error count, and enter step S313.
S313:判断帧间超时错误计数是否大于允许的帧间超时错误最大次数,如果大于,则复位SPI主机;如果不大于,则当定时器再次触发时,执行步骤S307,当接收到下一个SPI中断数据时,执行步骤S301。即,如果帧间超时错误计数没有大于允许的帧间超时错误最大次数,如果在接下来的时间内定时器被再次触发,说明在接收到帧尾数据之后还没有收到帧头数据,则继续增加定时器中断错误计数,直到接收到下一个SPI中断数据后返回SPI中断程序中,或者中断错误计数大于允许的帧间超时错误最大次数后复位SPI主机。S313: Determine whether the inter-frame timeout error count is greater than the allowed inter-frame timeout error maximum number of times, if greater, then reset the SPI master; if not greater, then when the timer is triggered again, step S307 is executed, and when the next SPI interrupt is received data, execute step S301. That is, if the inter-frame timeout error count is not greater than the allowed maximum number of inter-frame timeout errors, if the timer is triggered again in the next time, it means that the frame header data has not been received after the frame tail data is received, then continue Increase the timer interrupt error count until returning to the SPI interrupt program after receiving the next SPI interrupt data, or reset the SPI master after the interrupt error count is greater than the maximum number of allowable inter-frame timeout errors.
允许的帧间超时错误最大次数可根据需要来进行设置,在一示例中可设置为7次。The maximum allowed number of inter-frame timeout errors can be set as required, and can be set to 7 times in an example.
上述步骤S301至S306在SPI中断程序中执行,上述步骤S307至S313在定时器中断程序中执行。根据上述步骤S301至S313的描述可知,本发明可在SPI从机中实现对SPI主机传输的数据的帧与帧间时间间隔过长、帧与帧间时间间隔过短、字节与字节间时间间隔过长的监测,各个监测如下所示:The above steps S301 to S306 are executed in the SPI interrupt program, and the above steps S307 to S313 are executed in the timer interrupt program. According to the description of the above steps S301 to S313, it can be seen that the present invention can realize in the SPI slave that the time interval between frames and frames of the data transmitted by the SPI master is too long, the time interval between frames and frames is too short, and the time interval between bytes and bytes is too short. The monitoring time interval is too long, and each monitoring is as follows:
【帧与帧间时间间隔过长监测】[Monitoring of too long time interval between frames]
在SPI中断服务程序中,若当前从SPI主机的SPI寄存器接收的字节数据与预定帧尾数据一致,则将帧尾标志置1,表示帧尾数据接收完成,并将定时器的周期值设定为系统所允许的帧与帧间最小的时间间隔,将当前监测状态更新为检测帧间超时,最后启动定时器。这样在SPI从机接收下一帧数据前,通过定时器的中断次数就可以计算出两帧间的时间间隔。在定时器中断服务程序中,若定时器中断次数与定时周期的乘积超出了系统所允许的帧与帧间最大时间间隔,则判定为帧与帧间超时,增加系统错误计数。若错误计数超出预定的最大次数,则SPI从机通过IO口复位SPI主机。In the SPI interrupt service program, if the byte data currently received from the SPI register of the SPI master is consistent with the scheduled end-of-frame data, the end-of-frame flag is set to 1, indicating that the end-of-frame data has been received, and the cycle value of the timer is set to Set it as the minimum time interval between frames allowed by the system, update the current monitoring status to detect timeout between frames, and finally start the timer. In this way, before the SPI slave receives the next frame of data, the time interval between two frames can be calculated by the number of interrupts of the timer. In the timer interrupt service program, if the product of the number of timer interrupts and the timing cycle exceeds the maximum time interval between frames allowed by the system, it is judged as a frame-to-frame timeout, and the system error count is increased. If the error count exceeds the predetermined maximum number of times, the SPI slave resets the SPI master through the IO port.
【帧与帧间时间间隔过短监测】[Monitoring that the time interval between frames is too short]
在SPI中断服务程序中,若当前从SPI寄存器接收的字节数据与预定帧尾数据一致,则将帧尾标志置1,并将定时器的周期值设定为系统所允许的帧与帧间最小的时间间隔,将当前监测状态更新为检测帧间超时,最后启动定时器。这样在接收下一帧数据前,通过定时器的中断次数就可以计算出两帧间的时间间隔。当从SPI寄存器接收的字节数据与预定帧头数据一致,并且帧尾标志为1时,若定时器中断次数为0,则说明自从帧尾启动定时器以来,没有进入过定时器中断处理程序,由此说明帧头与帧尾间的时间间隔小于定时器周期,由此判定为帧与帧间时间间隔过短,增加系统错误计数。若错误计数超出预定的最大次数,则SPI从机通过IO口复位SPI主机。In the SPI interrupt service program, if the byte data currently received from the SPI register is consistent with the predetermined frame end data, the frame end flag is set to 1, and the period value of the timer is set to the frame-to-frame interval allowed by the system. The minimum time interval, update the current monitoring status to detect inter-frame timeout, and finally start the timer. In this way, before receiving the next frame of data, the time interval between two frames can be calculated by the number of interrupts of the timer. When the byte data received from the SPI register is consistent with the predetermined frame header data, and the frame end flag is 1, if the number of timer interrupts is 0, it means that the timer has not entered the timer interrupt handler since the frame end started the timer , thus indicating that the time interval between the frame head and the frame tail is less than the timer period, thus it is judged that the time interval between the frame and the frame is too short, and the system error count is increased. If the error count exceeds the predetermined maximum number of times, the SPI slave resets the SPI master through the IO port.
【字节与字节时间间隔过长监测】[Byte and byte time interval is too long monitoring]
在SPI中断服务程序中,若当前从SPI寄存器接收的字节数据与预定帧头数据一致,且定时器中断次数大于1,则说明此次帧头与上次帧尾间的时间间隔是在系统允许范围内的。此时将定时器的周期值设定为系统所允许的字节与字节间最大的时间间隔,并将当前监测状态更新为检测字节间超时,最后启动定时器。这样在接收下一字节数据前,若没有进入定时器中断服务程序,则说明字节与字节间的时间间隔是在系统允许范围内的。在定时器中断服务程序中,若当前监测状态为检测字节间超时,则说明字节间时间间隔已经超出系统所允许的最大时间,判定为字节与字节间超时,增加系统错误计数。若错误计数超出预定的最大次数,则SPI从机通过IO口复位SPI主机。In the SPI interrupt service program, if the byte data currently received from the SPI register is consistent with the predetermined frame header data, and the number of timer interrupts is greater than 1, it means that the time interval between the frame header and the last frame end is in the system within the allowable range. At this time, the period value of the timer is set as the maximum time interval between bytes allowed by the system, and the current monitoring status is updated to detect timeout between bytes, and finally the timer is started. In this way, before receiving the next byte of data, if the timer interrupt service routine is not entered, it means that the time interval between bytes is within the allowable range of the system. In the timer interrupt service program, if the current monitoring status is to detect timeout between bytes, it means that the time interval between bytes has exceeded the maximum time allowed by the system, and it is judged as timeout between bytes, and the system error count is increased. If the error count exceeds the predetermined maximum number of times, the SPI slave resets the SPI master through the IO port.
综上可知,本发明通过SPI从机监控SPI主机和SPI从机间传输的字节与字节之间以及帧与帧之间的时间间隔,可检测出字节与字节间时间间隔过长、帧与帧之前时间间隔过短、帧与帧之间时间间隔过长等三种错误情况,既可以保证SPI传输中断后可立即被发现,又可以实现对主机软件执行时序的监控,提高了主机运行的可靠性和稳定性,提高了整个电控系统的安全性。另外,本发明只使用了SPI从机的一个定时器资源来进行判断,对硬件资源要求较低,有利于扩大本发明的应用范围。In summary, the present invention monitors the time interval between the bytes transmitted between the SPI master and the SPI slave and the time interval between the frame and the frame through the SPI slave, and can detect that the time interval between the byte and the byte is too long , the time interval between frames is too short, and the time interval between frames is too long, etc., which can not only ensure that the SPI transmission can be found immediately after the interruption, but also realize the timing monitoring of the host software execution, which improves the The reliability and stability of the main engine operation improves the safety of the entire electronic control system. In addition, the present invention only uses one timer resource of the SPI slave machine for judgment, and has lower requirements on hardware resources, which is beneficial to expand the application scope of the present invention.
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明所述原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above description is a preferred embodiment of the present invention, it should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, these improvements and modifications It should also be regarded as the protection scope of the present invention.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title | 
|---|---|---|---|
| CN201710191934.1A CN107122282B (en) | 2017-03-28 | 2017-03-28 | A Functional Safety Communication Method Based on SPI Bus | 
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title | 
|---|---|---|---|
| CN201710191934.1A CN107122282B (en) | 2017-03-28 | 2017-03-28 | A Functional Safety Communication Method Based on SPI Bus | 
Publications (2)
| Publication Number | Publication Date | 
|---|---|
| CN107122282A CN107122282A (en) | 2017-09-01 | 
| CN107122282B true CN107122282B (en) | 2019-12-31 | 
Family
ID=59717312
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date | 
|---|---|---|---|
| CN201710191934.1A Active CN107122282B (en) | 2017-03-28 | 2017-03-28 | A Functional Safety Communication Method Based on SPI Bus | 
Country Status (1)
| Country | Link | 
|---|---|
| CN (1) | CN107122282B (en) | 
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title | 
|---|---|---|---|---|
| CN108132624A (en) * | 2017-12-14 | 2018-06-08 | 河南交通职业技术学院 | A kind of high reliability vehicle control unit controls system and control method | 
| CN111474913B (en) * | 2019-01-23 | 2021-07-20 | 北京新能源汽车股份有限公司 | Program operation monitoring method and device and electric automobile | 
| CN112506838A (en) * | 2021-02-03 | 2021-03-16 | 青岛鼎信通讯股份有限公司 | SPI clock synchronization method applied to IR46 electric meter calibrating device | 
| CN113922924B (en) * | 2021-10-08 | 2024-08-09 | 中国兵器装备集团自动化研究所有限公司 | Absolute encoder communication method and system based on spi | 
| CN116633486A (en) * | 2023-04-04 | 2023-08-22 | 北京京诚瑞达电气工程技术有限公司 | SPI communication baud rate identification method and device | 
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title | 
|---|---|---|---|---|
| DE102012101747A1 (en) * | 2011-03-04 | 2012-09-06 | Infineon Technologies Austria Ag | RELIABLE DATA TRANSMISSION WITH REDUCED BIT ERROR RATE | 
| CN102819512A (en) * | 2012-06-28 | 2012-12-12 | 惠州市德赛西威汽车电子有限公司 | Full-duplex communication device based on SPI and method thereof | 
| CN102902653A (en) * | 2012-10-09 | 2013-01-30 | 天津市松正电动汽车技术股份有限公司 | Serial communication protocol for controller | 
| CN105117299A (en) * | 2012-03-16 | 2015-12-02 | 英飞凌科技股份有限公司 | Method and system for timeout monitoring | 
- 
        2017
        - 2017-03-28 CN CN201710191934.1A patent/CN107122282B/en active Active
 
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title | 
|---|---|---|---|---|
| DE102012101747A1 (en) * | 2011-03-04 | 2012-09-06 | Infineon Technologies Austria Ag | RELIABLE DATA TRANSMISSION WITH REDUCED BIT ERROR RATE | 
| CN105117299A (en) * | 2012-03-16 | 2015-12-02 | 英飞凌科技股份有限公司 | Method and system for timeout monitoring | 
| CN102819512A (en) * | 2012-06-28 | 2012-12-12 | 惠州市德赛西威汽车电子有限公司 | Full-duplex communication device based on SPI and method thereof | 
| CN102902653A (en) * | 2012-10-09 | 2013-01-30 | 天津市松正电动汽车技术股份有限公司 | Serial communication protocol for controller | 
Non-Patent Citations (1)
| Title | 
|---|
| "面向功能安全ECU监控系统的设计与实现";吴凯;《中国优秀硕士学位论文全文数据库(信息科技辑)》;20160315(第3期);I140-1208 * | 
Also Published As
| Publication number | Publication date | 
|---|---|
| CN107122282A (en) | 2017-09-01 | 
Similar Documents
| Publication | Publication Date | Title | 
|---|---|---|
| CN107122282B (en) | A Functional Safety Communication Method Based on SPI Bus | |
| JP5605959B2 (en) | Advanced communication control unit and method for recording protocol events | |
| US7003698B2 (en) | Method and apparatus for transport of debug events between computer system components | |
| US20110035180A1 (en) | Diagnostic apparatus and system adapted to diagnose occurrence of communication error | |
| US20070168580A1 (en) | Apparatus to improve the firmware efficiency for a multiframe serial interface | |
| CN106649180A (en) | Method and device for relieving I2C bus deadlock | |
| CN101839790A (en) | Intelligent on-line calibration system | |
| JP2013218685A (en) | Electronic device, and method of managing power of electronic device | |
| CN114817110B (en) | Data transmission method and device | |
| CN103279404B (en) | A kind of multi-computer system based on heart beat status word synchronizes and reliability checking method | |
| JP2013236184A (en) | In-vehicle communication system, communication abnormality monitoring method of in-vehicle communication system, and communication abnormality monitoring program of in-vehicle communication system | |
| CN103077144A (en) | Serial peripheral interface (SPI) communication interface for ensuring data integrity, and communication method thereof | |
| US12189557B2 (en) | Bus-based communication system, system-on-chip and method therefor | |
| CN102662452A (en) | Method, device and system for controlling inter-integrated circuit (I2C) master device to reset | |
| EP0729249B1 (en) | Communication system with framing error detection | |
| CN101645057B (en) | Method and device for preventing CPU local bus from suspension | |
| CN115776690B (en) | Test device, system and method for vehicle-mounted encryption network simulation test | |
| CN116149253B (en) | PLC online monitoring and debugging system and implementation method thereof | |
| CN208999822U (en) | A DCU circuit self-checking system | |
| CN116382060A (en) | CAN communication vehicle-mounted domain controller system with uninterrupted faults | |
| CN118740540A (en) | Wake-up signal detection method and control device | |
| CN110505607A (en) | Communication means, Bluetooth chip and bluetooth security equipment based on bluetooth security equipment | |
| US11050648B2 (en) | Communication system | |
| JP2003167756A5 (en) | ||
| CN113692008A (en) | Method, device, equipment and storage medium for processing transceiving exception | 
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 | ||
| CP03 | Change of name, title or address | ||
| CP03 | Change of name, title or address | Address after: 130012 No. 1, xinhongqi street, automobile economic and Technological Development Zone, Changchun City, Jilin Province Patentee after: China Faw Co.,Ltd. Country or region after: China Address before: 130011 2259 Dongfeng Street, Xinxin economic and Technological Development Zone, Changchun, Jilin Patentee before: China Faw Co.,Ltd. Country or region before: China |