A method for collecting interrupt information in an A-PHY system
By realizing the interrupt information transmission between the serializer and the deserializer in the MIPI A-PHY system, and using the pulse width modulation circuit to notify the ECU, the problem that the ECU cannot obtain interrupt information in time is solved, and the system's response speed and safety are improved. sex.
Patent Information
- Application Number
- CN202310983373.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-07
- Publication Date
- 2025-02-11
- Estimated Expiration
- 2043-08-07
AI Technical Summary
In the MIPI A-PHY system, the ECU cannot obtain and process interrupt information on the serializer side in a timely and correctly, resulting in a long interrupt processing time, which may affect the security of the system.
In the A-PHY system, the interrupt processing module of the serializer collects interrupt information and transmits it to the deserializer side through the A-PHY link. The interrupt processing module of the deserializer is processed and passed to the ECU, and at the same time, it uses pulse width modulation. The circuit generates a signal based on the severity of the interruption and notifies the ECU for a timely response.
It realizes the simultaneously collecting interrupt information of the device, deserializer and serializer in the A-PHY system, and notifying the ECU in a timely and accurate manner, saving the time for ECU to query interrupt information, and improving the system's response speed and safety reliability.
Smart Images

Figure CN116974972B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of information detection, and in particular to a method for collecting interruption information in an A-PHY system. Background Art
[0002] like Figure 1 As shown, in the MIPI (Mobile Industry Processor Interface) APHY (Automobile PHY, serializer-deserializer physical layer specification for automobiles) system, interrupt information is often required to be generated, but because the ECU (electronic control unit) is located on the deserializer side, the interrupt information on the serializer side cannot be obtained and processed in a timely and correct manner. If important interrupt information occurs on the serializer side, such as information about functional safety, the ECU needs to find out the source of the interrupt. It needs to check the ERRB PIN information (i.e., error pin information, informing the ECU that an error has occurred) on both the serializer and deserializer sides in turn, which takes a lot of time and cannot be responded to in time, which may have a safety impact. Therefore, whether an error occurs in the serializer / deserializer / device, the ECU needs to receive the interrupt information as soon as possible in order to handle it in time. Summary of the invention
[0003] The object of the present invention is to provide a method for collecting interruption information in an A-PHY system to solve the problems in the background technology.
[0004] In order to solve the above technical problems, the present invention provides a method for collecting interruption information in an A-PHY system, comprising:
[0005] On the serializer and device side, the interrupt processing module in the serializer collects the interrupt information generated by the corresponding device and the serializer itself, and sends it to the deserializer side;
[0006] On the ECU and deserializer side, after receiving the interrupt information transmitted from the serializer and device side, the interrupt processing module in the deserializer processes the local interrupt information of the deserializer and sends it to the ECU.
[0007] In one embodiment, on the serializer and device side, a pulse width modulation circuit generates different signals according to the severity of the interruption, and the interruption information is packaged into an A-Packet and transmitted to the deserializer side via a universal input / output channel in the A-PHY link.
[0008] In one embodiment, on the serializer and device side, if a high priority interrupt occurs, the interrupt processing module generates a pulse signal with a period of T;
[0009] If a low priority interrupt occurs, the interrupt processing module generates an initial level signal of high-low conversion, wherein the period T and the initial level signal are configurable.
[0010] In one embodiment, on the ECU and deserializer side, the interrupt processing module in the deserializer includes a pulse width modulation circuit, which generates a pulse signal with a period of T or an initial level signal of high-low conversion according to the severity of the interrupt information, and notifies the ECU to facilitate the ECU to determine whether an immediate response is required and intervene in the interrupt processing; the period T and the initial level signal are both configurable.
[0011] In one implementation, if there are several serializers / devices connected in parallel, the device / serializer number information that issues the interrupt is marked by filling in the target address in the A-Packet field.
[0012] In one implementation, if there are several serializers / devices connected in parallel, the interrupt processing module in the deserializer fills the received erroneous device / serializer information into the corresponding register according to the target address in the A-Packet, so that the ECU can check and locate the problem.
[0013] The present invention provides a method for collecting interrupt information in an A-PHY system, which has the following beneficial effects:
[0014] (1) It can simultaneously collect interrupt information from devices / deserializers / serializers, transmit the interrupt information via the A-PHY link, and notify the ECU in a timely and accurate manner;
[0015] (2) The ECU can obtain the device address where the interrupt occurred based on the corresponding register information, avoiding traversing all devices to check for interrupts, saving time and improving the ECU's response speed;
[0016] (3) Different mode information can be generated according to the severity of the interruption to inform the ECU, so that the ECU can prepare for interruption processing and achieve the purpose of processing interruption information efficiently and concisely, thereby improving the safety and reliability of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 This is a schematic diagram of the traditional APHY system architecture.
[0018] Figure 2 It is an architecture diagram of a method for collecting interrupt information in an A-PHY system provided by the present invention. DETAILED DESCRIPTION
[0019] The following is a further detailed description of a method for collecting interrupt information in an A-PHY system proposed by the present invention in conjunction with the accompanying drawings and specific embodiments. The advantages and features of the present invention will become clearer according to the following description. It should be noted that the accompanying drawings are all in a very simplified form and are not in precise proportions, and are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention.
[0020] The present invention provides a method for collecting interrupt information in an A-PHY system, such as Figure 2 As shown, where:
[0021] The serializer and device side (i.e. Figure 2 ), the interrupt processing module in the serializer will collect the interrupt information of the matched device and the serializer itself, and generate different signals by the PWM (pulse width modulation) circuit according to the severity of the interrupt, which will be packaged into A-Packet and transmitted to the deserializer side through the GPIO (General Purpose Input Output) in the A-PHY link. If a high-priority interrupt occurs, the interrupt processing module will create a pulse signal with a period of T; if a low-priority interrupt occurs, the interrupt processing module will create an initial level signal of high-low conversion, where the period T and the initial level signal are configurable. If there are several serializers / devices in parallel, such as Figure 2 As shown, the device / serializer number information (device / serializer 0, device / serializer 1, ..., and / or device / serializer N) that issued the interrupt can be marked by filling in the Target Address in the A-Packet field, so that the ECU can quickly locate the device / serializer that generated the interrupt and process it.
[0022] ECU and deserializer side (i.e. Figure 2 ), after receiving the interrupt information transmitted by the serializer through the A-PHY link, the interrupt processing module in the deserializer will process the interrupt information of the local deserializer and send it to the ECU. At the same time, the interrupt processing module in the deserializer will fill the received device information (device 0, device 2, ..., and / or device N) with errors into the corresponding register according to the Target Address in the A-Packet, so that the ECU can check and locate the problem. Similarly, the interrupt processing module in the deserializer will include a PWM circuit, which will generate a pulse signal with a period of T or an initial level signal of high-low conversion according to the severity of the interrupt information, and notify the ECU to facilitate the ECU to determine whether it needs to respond immediately and intervene in the interrupt processing; similarly, the period T and the initial level signal are configurable.
[0023] In the present invention, the ECU only needs to query the interrupt information of the device / deserializer / serializer at the same time on the deserializer side, without traversing all the ERRB PINs of the deserializer and the serializer, thereby improving the response speed of the ECU; in addition, the interrupt information of the device / serializer is transmitted to the A-PHY link via GPIO. Since GPIO has the highest priority in the A-PHY link, the interrupt information of the device / serializer can be transmitted in time, and the transmission delay is low. If multiple devices / serializers are connected to the deserializer in parallel, the specific device / serializer address where the interrupt occurs can be notified to the deserializer by setting the Target Address in the A-Packet. After receiving the deserializer, the device address where the interrupt occurs is marked on the corresponding register, which facilitates the ECU to quickly query the device where the interrupt occurs, without traversing all devices, thereby saving time. The interrupt processing of the serializer and the interrupt processing of the deserializer both contain PWM circuits, which will generate different mode information according to the severity of the interrupt; if a high-priority interrupt occurs, the interrupt processing will create a pulse signal with a period of T. If a low-priority interrupt occurs, the interrupt processing will create an initial level signal for high-low conversion, thereby facilitating the ECU to handle interrupts according to the severity level of the interrupt, thereby improving the safety and reliability of the system.
[0024] The above description is only a description of the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention. Any changes or modifications made by a person skilled in the art in the field of the present invention based on the above disclosure shall fall within the scope of protection of the claims.
Claims
1. A method for collecting interrupt information in an A-PHY system, characterized in that: include: On the serializer and device side, the interrupt processing module in the serializer collects the interrupt information generated by the corresponding device and the serializer itself, and sends it to the deserializer side; On the ECU and deserializer side, after receiving the interrupt information transmitted from the serializer and device side, the interrupt processing module in the deserializer processes the local interrupt information of the deserializer and sends it to the ECU; On the serializer and device side, the pulse width modulation circuit generates different signals according to the severity of the interruption, and the interruption information is packaged into an A-Packet and transmitted to the deserializer side through the universal input / output channel in the A-PHY link; On the serializer and device side, if a high-priority interrupt occurs, the interrupt processing module generates a pulse signal with a period of T; if a low-priority interrupt occurs, the interrupt processing module generates an initial level signal of high-low conversion, where the period T and the initial level signal are configurable; On the ECU and deserializer side, the interrupt processing module in the deserializer contains a pulse width modulation circuit. According to the severity of the interrupt information, it creates a pulse signal with a period of T or an initial level signal of high-low conversion and notifies the ECU to facilitate the ECU to determine whether it needs to respond immediately and intervene in the interrupt processing; the period T and the initial level signal are both configurable.
2. The method for collecting interrupt information in an A-PHY system according to claim 1, wherein: If there are several serializers / devices connected in parallel, fill in the target address in the A-Packet field to mark the device / serializer number that issues the interrupt.
3. The method for collecting interrupt information in an A-PHY system according to claim 2, wherein: If there are several serializers / devices connected in parallel, the interrupt processing module in the deserializer will fill the received erroneous device / serializer information into the corresponding register according to the target address in the A-Packet, so that the ECU can check and locate the problem.
Citation Information
Patent Citations
Fault type diagnosis method and device
CN111103128A
Transmission system, serializer thereof, deserializer, signal processing system and automobile
CN114981790A