Configurable UCAN / LIN drive box
By using the signal feature matching, link adaptive establishment, acquisition parameter configuration, synchronous trigger acquisition, and noise suppression conversion modules of the configurable UCAN/LIN driver box, the problem of low efficiency in automatic identification and diagnosis of traditional UCAN/LIN bus driver devices is solved, and an efficient and stable bus signal acquisition and diagnosis process is realized.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHANGHAI U-EASTAR ELECTRO-MECHANICAL CO LTD
- Filing Date
- 2026-04-24
- Publication Date
- 2026-07-14
AI Technical Summary
Traditional UCAN/LIN bus driver devices cannot automatically identify and match the bus signal characteristics of external controlled devices. The configuration operation is cumbersome and prone to parameter matching errors. The physical layer communication link establishment efficiency is low. The common-mode noise suppression effect is poor during signal acquisition. The diagnostic results are output late and there is no visualization display. Overall, the configuration and diagnostic efficiency is low.
The configurable UCAN/LIN driver box automatically identifies bus signal characteristics through a signal feature matching module, automatically adjusts physical interface parameters through a link adaptive establishment module, enables visual interaction through a parameter acquisition configuration module, and coordinates with a noise suppression conversion module to achieve fully automated diagnostic result display.
It enables rapid identification of bus signal characteristics, accurate matching of bus protocols, automatic establishment of stable communication links, improved signal acquisition adaptability and accuracy, automated diagnostic process and visualization of results, and significantly improved equipment configuration and diagnostic efficiency.
Smart Images

Figure CN122395291A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle bus technology, and more particularly to a configurable UCAN / LIN driver box. Background Technology
[0002] Traditional UCAN / LIN bus driver devices use a fixed protocol configuration mode, which cannot automatically identify and match the bus signal characteristics of external controlled devices. The interface parameters need to be manually configured, which is cumbersome and prone to parameter matching errors. The physical layer communication link establishment efficiency is low, the stability is insufficient, and the link debugging cycle is long.
[0003] Existing drive devices do not support dynamic gating and synchronous triggering of sampling front-end acquisition. The common-mode noise suppression effect is poor during signal acquisition. The acquisition parameters cannot be adapted to the timing characteristics of bus protocol messages. Device diagnosis relies on manual data comparison. The output of diagnostic results is delayed and there is no visualization display. The overall configuration and diagnostic operation efficiency is low. Therefore, how to improve the efficiency of vehicle bus device configuration and diagnosis has become an urgent problem to be solved. Summary of the Invention
[0004] To achieve the above objectives, the present invention provides a configurable UCAN / LIN driver box, characterized in that the driver box includes a signal feature matching module, a link adaptive establishment module, a data acquisition parameter configuration module, a sampling front-end gating module, a synchronous trigger acquisition module, a noise suppression conversion module, and a diagnostic result display module, wherein: The signal feature matching module allows the core controller to acquire the bus signal features generated when external controlled devices are connected via a physical interface, and match the target bus protocol corresponding to the bus signal features from a pre-set protocol parsing library to generate the interface configuration parameters of the core controller. The link adaptive establishment module adjusts the electrical adaptation parameters of the physical interface according to the interface configuration parameters in order to establish a physical layer communication link with the external controlled device and generate a link established identifier for the core controller. The parameter configuration module receives the signal acquisition type and acquisition threshold input by the user in response to the link establishment identifier. It then encapsulates the signal acquisition type and acquisition threshold into an acquisition configuration command and sends it to the core controller. The sampling front-end selection module dynamically selects the target sampling front-end from the sampling front-ends according to the acquisition configuration instructions, and configures the sample-and-hold window and programmable gain parameters for the target sampling front-end according to the message timing characteristics of the target bus protocol, so as to generate the ready status signal of the core controller. The synchronous trigger acquisition module responds to the ready status signal. The core controller encapsulates the control data to be sent into a bus frame message that conforms to the target bus protocol. At the start bit of the output bus frame message, the target sampling front end is triggered to capture the feedback signal generated by the external controlled device. The noise suppression and conversion module performs common-mode noise suppression on the feedback signal to obtain the characteristic data of the core controller; The diagnostic results display module generates diagnostic results for external controlled devices based on the comparison between feature data and acquisition thresholds, and pushes the diagnostic results to the visualization interaction component for display.
[0005] In a preferred embodiment, when the signal feature matching module executes the process of the core controller acquiring bus signal features generated when an external controlled device accesses via a physical interface, and matching the target bus protocol corresponding to the bus signal features from a preset protocol parsing library to generate interface configuration parameters for the core controller, it is specifically used for: The core controller continuously monitors the bus signal characteristics generated when external controlled devices are connected through the physical interface, and compares the bus signal characteristics with the pre-set protocol parsing library one by one. When a bus signal feature matches any protocol feature template in the protocol parsing library, the core controller determines the bus protocol corresponding to the protocol feature template as the target bus protocol corresponding to the bus signal feature. Based on the target bus protocol, parameter-oriented extraction is performed on the protocol parsing library to obtain the interface configuration parameters of the core controller.
[0006] In a preferred embodiment, when the link adaptive establishment module adjusts the electrical adaptation parameters of the physical interface according to the interface configuration parameters to establish a physical layer communication link with the external controlled device and generates a link established identifier for the core controller, it is specifically used for: The core controller performs structured feature deconstruction on the interface configuration parameters and binds the resulting multi-dimensional electrical adaptation attributes to the register mapping table of the physical interface. Based on the register mapping table, the driver layer configuration space of the physical interface is atomically written; After the atomic write is completed, a link integrity probe sequence for the external controlled device is generated according to the link layer specification of the target bus protocol. Send link integrity probe sequences to external controlled devices through the physical interface, and listen for link layer acknowledgment frames from external controlled devices; When the core controller successfully captures a link layer acknowledgment frame, it determines that the physical layer communication link has entered a steady state, and generates a link establishment identifier for the core controller.
[0007] In a preferred embodiment, when the acquisition parameter configuration module executes a response to a link establishment flag, the visual interaction component receives the signal acquisition type and acquisition threshold input by the user, encapsulates the signal acquisition type and acquisition threshold into an acquisition configuration instruction, and sends it to the core controller, it is specifically used for: In response to the established link identifier, the visual interaction component wakes up the front-end human-computer interaction layer and captures the operation primitives input by the user through the human-computer interface description table of the front-end human-computer interaction layer. The operation primitives include the enumeration index of the signal acquisition type and the upper and lower bound descriptors of the acquisition threshold associated with the enumeration index. Based on the pre-set data contract template, the enumeration index and upper and lower bound descriptors are restructured to obtain the configuration payload of the core controller. The visualization interaction component embeds the configuration payload into a protocol data unit that conforms to the communication protocol between the core controller and the visualization interaction component, in order to generate the core controller's acquisition configuration instructions; The instruction processing pipeline that sends the acquisition configuration instructions to the core controller.
[0008] In a preferred embodiment, when the sampling front-end selection module dynamically selects a target sampling front-end from the sampling front-ends according to the acquisition configuration instruction, and configures the sample-and-hold window and programmable gain parameters for the target sampling front-end according to the message timing characteristics of the target bus protocol to generate the ready state signal of the core controller, it is specifically used for: The acquisition configuration command is decoded using command primitives to obtain the signal acquisition type identifier of the acquisition configuration command; Based on the signal acquisition type identifier, traverse the sampling front-end resource registry to locate the hardware access handle of the target sampling front-end bound to the signal acquisition type identifier; By accessing the hardware handle, a strobe enable primitive is sent to the target sampling front end to switch the target sampling front end from standby to active state and disconnect other non-target sampling front ends from the signal acquisition bus.
[0009] In a preferred embodiment, after the sampling front-end gating module executes the hardware access handle to send a gating enable primitive to the target sampling front-end to switch the target sampling front-end from standby state to active state and disconnects other non-target sampling front-ends from the signal acquisition bus, it is further configured to: The core controller reads the message timing characteristic description table associated with the target bus protocol from the protocol parsing library; Write the sample-and-hold window duration parameter and programmable gain parameter from the message timing feature description table into the window configuration register and gain configuration register of the target sampling front end, respectively. The core controller reads the write receipts from the window configuration register and the gain configuration register. After confirming that both write receipts are successful, it generates a ready status signal for the core controller.
[0010] In a preferred embodiment, when the synchronous trigger acquisition module executes a response to a ready state signal, the core controller encapsulates the control data to be sent into a bus frame message conforming to the target bus protocol, and triggers the target sampling front-end to capture the feedback signal generated by the external controlled device at the start bit time of the output bus frame message, it is specifically used for: In response to the ready status signal, the core controller extracts the control data to be sent from the local transmit buffer and performs protocol adaptation and encapsulation on the control data according to the frame structure specification of the target bus protocol to obtain the bus frame message of the control data. The core controller writes the bus frame message into the physical interface's transmit first-in-first-out queue and sends a start transmit primitive to the physical interface's transmit scheduler so that the physical interface can start outputting the bus frame message bit by bit. The core controller synchronously monitors the bit synchronization clock of the physical interface. When the clock edge corresponding to the start bit of the bus frame message is detected, the trigger pulse generated by the core controller is sent to the trigger input pin of the target sampling front end. After receiving the rising edge of the trigger pulse, the target sampling front end reads the configured sampling and holding window duration from the sample-and-hold register of the target sampling front end; Based on the duration of the sampling and holding window, the feedback signal generated by the external controlled device is captured.
[0011] In a preferred embodiment, when the noise suppression conversion module performs common-mode noise suppression on the feedback signal to obtain the characteristic data of the core controller, it is specifically used for: The feedback signal is simultaneously input to both the inverting and non-inverting input channels of the differential sampling architecture to obtain the differential signal pair of the feedback signal. The common-mode interference component is extracted from the differential signal pair through the common-mode feedback loop inside the differential sampling architecture, and the common-mode interference component is differentially canceled with the differential signal pair to obtain the differential signal component of the core controller. The differential signal component is routed to the signal conditioning link of the target sampling front end. Based on the programmable gain parameter, the amplitude of the differential signal component is normalized to obtain the conditioned analog signal of the differential signal component. The conditioned analog signal is digitally reconstructed in the analog domain to obtain the characteristic data of the core controller.
[0012] In a preferred embodiment, the feature data is calculated using the following formula: ; In the formula, For feature data, For programmable gain parameters, For differential signal components, For common-mode interference components, The preset reference voltage, It is the natural logarithm.
[0013] In a preferred embodiment, when the diagnostic result display module generates a diagnostic result for an external controlled device based on a comparison between feature data and a collection threshold, and pushes the diagnostic result to a visual interactive component for display, it is specifically used for: The numerical descriptors in the feature data are compared with the acquisition thresholds in the acquisition configuration instructions to determine the interval membership, thereby obtaining the binary state enumeration value of the core controller. Based on the binary state enumeration value, the corresponding diagnostic result text descriptor is retrieved from the preset diagnostic message mapping table, and the diagnostic result text descriptor is associated and encapsulated with the feature data to obtain the diagnostic result data record of the core controller. Through the communication link between the core controller and the visualization interaction component, the diagnostic result data is recorded and pushed to the message queue of the visualization interaction component, triggering the visualization interaction component to refresh the display interface.
[0014] Compared with the prior art, the present invention has the following beneficial effects: 1. This invention utilizes automatic signal feature matching and link adaptive establishment technology to quickly identify the bus signal characteristics of external controlled devices, accurately match the target bus protocol, generate compatible interface configuration parameters, and automatically adjust the physical interface electrical adaptation parameters. It can stably establish a physical layer communication link without manual intervention, simplifying the configuration process, shortening link setup time, and ensuring continuous and stable operation of the communication link. A visual interactive component enables convenient configuration of acquisition parameters, quickly encapsulating and issuing acquisition configuration commands, improving the convenience and accuracy of parameter configuration. Through the dynamic gating function of the sampling front-end, the target sampling front-end is activated as needed, hardware resource allocation is optimized, and the sample-and-hold window and programmable gain parameters are configured in conjunction with the timing characteristics of bus protocol messages, making signal acquisition more consistent with bus transmission patterns and significantly improving the adaptability and accuracy of signal acquisition.
[0015] 2. This invention utilizes a synchronous trigger acquisition and noise suppression conversion mechanism to precisely trigger sampling operations at the start bit of the bus frame message, achieving synchronous coordination between message output and signal acquisition, and efficiently obtaining feedback signals from external controlled devices. A differential sampling architecture is used to complete common-mode noise suppression and differential-mode signal extraction, combined with analog domain digital reconstruction to generate clean and accurate feature data, ensuring data quality. Based on the automatic comparison of feature data and acquisition thresholds, device diagnostic results are quickly generated and pushed to a visual interface for real-time display, automating the diagnostic process and visualizing results, eliminating the need for manual data comparison, and improving diagnostic efficiency and result intuitiveness. This invention achieves full-process automation from protocol matching, link establishment, parameter configuration, signal acquisition to diagnostic display, significantly improving the operating efficiency of the driver box, providing efficient, stable, and accurate technical support for the management and control of vehicle bus devices, and optimizing the overall device configuration and diagnostic work effect. Attached Figure Description
[0016] Figure 1 This is a system architecture diagram of a configurable UCAN / LIN driver box provided in an embodiment of the present invention; The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0017] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments belong to some, but not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0018] The terminology used in the embodiments of this invention is for the purpose of describing particular embodiments only and is not intended to limit the invention. The singular forms “said” and “the” as used in the embodiments of this invention and the appended claims are also intended to include the plural forms, and “multiple” generally includes at least two unless the context clearly indicates otherwise.
[0019] Depending on the context, the word "if" or "if" as used here can be interpreted as "when," "when," "in response to determination," or "in response to detection." Similarly, depending on the context, the phrase "if determination" or "if detection (of the stated condition or event)" can be interpreted as "when determination," "in response to determination," "when detection (of the stated condition or event)," or "in response to detection (of the stated condition or event)."
[0020] Furthermore, the timing of the steps in the following method embodiments is merely an example and not a strict limitation.
[0021] In practice, the server-side equipment deployed by the configurable UCAN / LIN driver box may consist of one or more devices. The aforementioned configurable UCAN / LIN driver box can be implemented as a service instance, a virtual machine, or a hardware device. For example, the configurable UCAN / LIN driver box can be implemented as a service instance deployed on one or more devices in a cloud node. Simply put, the configurable UCAN / LIN driver box can be understood as software deployed on a cloud node, used to provide configurable UCAN / LIN driver boxes to various user terminals. Alternatively, the configurable UCAN / LIN driver box can also be implemented as a virtual machine deployed on one or more devices in a cloud node. This virtual machine contains application software for managing various user terminals. Alternatively, the configurable UCAN / LIN driver box can also be implemented as a server composed of numerous identical or different types of hardware devices, with one or more hardware devices configured to provide configurable UCAN / LIN driver boxes to various user terminals.
[0022] In terms of implementation, the configurable UCAN / LIN driver box and the user terminal are mutually compatible. That is, if the configurable UCAN / LIN driver box is used as an application installed on a cloud service platform, the user terminal acts as a client that establishes a communication connection with that application; or if the configurable UCAN / LIN driver box is used as a website, the user terminal acts as a webpage; or if the configurable UCAN / LIN driver box is used as a cloud service platform, the user terminal acts as a mini-program in an instant messaging application.
[0023] like Figure 1 The diagram shown is a system architecture diagram of a configurable UCAN / LIN driver box provided in an embodiment of the present invention.
[0024] The configurable UCAN / LIN driver box described in this invention can be installed in a cloud server. In terms of implementation, it can function as one or more service devices, or as an application installed in the cloud (e.g., a mobile service operator's server, server cluster, etc.), or it can be developed into a website. Depending on the functions implemented, the configurable UCAN / LIN driver box may include a signal feature matching module, a link adaptive establishment module, a data acquisition parameter configuration module, a sampling front-end gating module, a synchronous trigger acquisition module, a noise suppression conversion module, and a diagnostic result display module. The module described in this invention can also be called a unit, referring to a series of computer program segments that can be executed by the processor of an electronic device and perform a fixed function, stored in the memory of the electronic device.
[0025] In this embodiment of the invention, each of the above modules in the configurable UCAN / LIN driver box can be implemented independently and can call other modules. This "calling" can be understood as a module connecting to multiple modules of another type and providing corresponding services to those connected modules. In the configurable UCAN / LIN driver box provided by this embodiment of the invention, the applicable scope of the configurable UCAN / LIN driver box architecture can be adjusted by adding modules and directly calling them without modifying the program code, achieving cluster-based horizontal expansion to achieve the purpose of quickly and flexibly expanding the configurable UCAN / LIN driver box. In practical applications, the above modules can be set in the same device or different devices, or they can be set in a virtual device, such as a service instance in a cloud server.
[0026] The following describes the components and workflow of the configurable UCAN / LIN driver box using specific embodiments: The signal feature matching module allows the core controller to acquire the bus signal features generated when external controlled devices are connected via a physical interface, and match the target bus protocol corresponding to the bus signal features from a pre-set protocol parsing library to generate the interface configuration parameters of the core controller. In this embodiment of the invention, when the signal feature matching module executes the core controller to obtain the bus signal features generated when the external controlled device accesses through the physical interface, and matches the target bus protocol corresponding to the bus signal features from a preset protocol parsing library to generate the interface configuration parameters of the core controller, it is specifically used for: The core controller continuously monitors the bus signal characteristics generated when external controlled devices are connected through the physical interface, and compares the bus signal characteristics with the pre-set protocol parsing library one by one. When a bus signal feature matches any protocol feature template in the protocol parsing library, the core controller determines the bus protocol corresponding to the protocol feature template as the target bus protocol corresponding to the bus signal feature. Based on the target bus protocol, parameter-oriented extraction is performed on the protocol parsing library to obtain the interface configuration parameters of the core controller.
[0027] The core controller initiates the signal monitoring function of the physical interface, which remains in a signal receiving ready state. The preset signal strength monitoring threshold is 0.8V. When the bus signal strength received by the physical interface exceeds this threshold, it is determined that an external controlled device has been connected, triggering the signal receiving process. The physical interface continuously receives bus signals actively transmitted by the external controlled device according to its own communication protocol after connection. The core controller performs complete feature extraction on the received bus signals, including the baud rate, frame structure format, data bit width, check method, and signal level variation range. All extracted feature information is integrated into bus signal features. The core controller retrieves the protocol parsing library pre-stored inside the device. The protocol parsing library pre-stores at least three sets of different types of bus protocol feature templates, each template corresponding to a complete bus protocol information. The core controller compares the integrated bus signal features with each protocol feature template in the library according to the storage order of the protocol parsing library. During the comparison, the baud rate, frame structure format, data bit width, check method, and signal level variation range of the bus signal features and protocol feature templates are checked one by one.
[0028] The core controller completes the traversal and comparison of bus signal features with the protocol parsing library. When traversing to a certain protocol feature template, if the baud rate, frame structure format, data bit width, verification method, and signal level variation range of the bus signal feature are completely consistent with the corresponding content of the protocol feature template without any differences, the core controller determines that the bus signal feature and the protocol feature template are successfully matched. The core controller then determines the bus protocol name and protocol parameter information corresponding to the protocol feature template as the target bus protocol corresponding to the extracted bus signal feature.
[0029] Based on the determined target bus protocol, the core controller locates the configuration content associated only with the target bus protocol in the protocol parsing library by keyword search. The located content includes interface electrical parameter configuration items, communication timing configuration items, and data interaction configuration items. The core controller extracts the exclusive information for interface settings one by one from the located configuration content. The extracted information must completely cover the specific values of the interface electrical parameters, the time nodes of the communication timing, and the triggering conditions of data interaction. Finally, it organizes and encapsulates the information into the core controller's interface configuration parameters.
[0030] The beneficial effects are that this process allows the core controller to autonomously complete the listening and extraction of bus signal characteristics, protocol traversal and comparison, and target protocol determination without manual intervention. This avoids matching errors that occur when manually configuring parameters, accurately obtains the appropriate interface configuration parameters, provides an accurate and complete basis for subsequent physical interface electrical adaptation adjustments, improves the accuracy of protocol matching and the efficiency of parameter acquisition, and ensures the stability of subsequent physical layer communication link establishment, shortening the link debugging cycle.
[0031] The link adaptive establishment module adjusts the electrical adaptation parameters of the physical interface according to the interface configuration parameters in order to establish a physical layer communication link with the external controlled device and generate a link established identifier for the core controller. In this embodiment of the invention, when the link adaptive establishment module adjusts the electrical adaptation parameters of the physical interface according to the interface configuration parameters to establish a physical layer communication link with the external controlled device and generates a link established identifier for the core controller, it is specifically used for: The core controller performs structured feature deconstruction on the interface configuration parameters and binds the resulting multi-dimensional electrical adaptation attributes to the register mapping table of the physical interface. Based on the register mapping table, the driver layer configuration space of the physical interface is atomically written; After the atomic write is completed, a link integrity probe sequence for the external controlled device is generated according to the link layer specification of the target bus protocol. Send link integrity probe sequences to external controlled devices through the physical interface, and listen for link layer acknowledgment frames from external controlled devices; When the core controller successfully captures a link layer acknowledgment frame, it determines that the physical layer communication link has entered a steady state, and generates a link establishment identifier for the core controller.
[0032] The core controller first retrieves all the interface configuration parameters. According to the fixed classification standard of electrical attributes preset by the device, the interface configuration parameters are broken down into independent electrical adaptation attributes. The separated attributes clearly include voltage adaptation attributes, level matching attributes, timing synchronization attributes, and drive capability attributes. The core controller retrieves the register address correspondence list preset by the factory of the physical interface and performs a one-to-one precise match between each electrical adaptation attribute and the register address in the list. Then, the matched electrical adaptation attributes are bound one by one to the specified storage location of the register mapping table of the physical interface.
[0033] The core controller reads the correspondence between register addresses and electrical adaptation attributes recorded in the register mapping table. According to the ascending order of register addresses, it integrates all electrical adaptation attributes into a continuous and uninterrupted data transmission stream and initiates a single complete data write operation to the driver layer configuration space of the physical interface. During the write process, all external instructions and internal operation interruption requests are automatically masked to ensure that all electrical adaptation attributes are completely written to the specified location at one time, thus completing the atomic write of the physical interface driver layer configuration space.
[0034] The core controller extracts fixed probe frame start identifiers, data segment standard content, and frame end identifiers from the link layer specification of the target bus protocol. It then concatenates the extracted content in an orderly manner according to the order specified in the specification. After concatenation, a link integrity probe sequence is formed, which is specifically used to detect the link connectivity status of external controlled devices.
[0035] The core controller sends data and execution commands to the physical interface. After receiving the commands, the physical interface converts the link integrity detection sequence into a bus signal that conforms to the electrical transmission standard and sends it to the external controlled device. After the physical interface completes the transmission, it immediately switches to the signal receiving mode and continuously performs full-coverage signal scanning on the bus channel. It captures all frame signals fed back by the external controlled device in real time and accurately filters out the link layer confirmation frames that conform to the target bus protocol format.
[0036] The core controller performs integrity checks on the link layer acknowledgment frames captured by the physical interface. The start identifier, data segment content, and end identifier of the acknowledgment frame are all complete and fully comply with the target bus protocol specifications. There are no missing data or format deviations. Based on the verification results, the core controller determines that the physical layer communication link has entered a steady state and then generates a link established identifier for the core controller to mark the link connection status.
[0037] The beneficial effects are that this process achieves precise deconstruction of interface configuration parameters through fixed classification rules, completes precise binding of electrical adaptation attributes and register mapping tables based on preset register address correspondence, ensures complete transmission of configuration data without interruption or loss through atomic writing, generates standard probe sequences according to link layer specifications and completes link connectivity verification, and achieves accurate determination of link steady state through precise capture of confirmation frames. The entire link configuration and verification work is completed automatically without manual intervention in debugging, effectively improving the efficiency and stability of physical layer communication link establishment, and providing a stable and reliable communication foundation for subsequent signal acquisition, equipment diagnosis and other operations.
[0038] The parameter configuration module receives the signal acquisition type and acquisition threshold input by the user in response to the link establishment identifier. It then encapsulates the signal acquisition type and acquisition threshold into an acquisition configuration command and sends it to the core controller. In this embodiment of the invention, when the acquisition parameter configuration module executes a response to the link establishment identifier, the visual interaction component receives the signal acquisition type and acquisition threshold input by the user, encapsulates the signal acquisition type and acquisition threshold into an acquisition configuration instruction, and sends it to the core controller, it is specifically used for: In response to the established link identifier, the visual interaction component wakes up the front-end human-computer interaction layer and captures the operation primitives input by the user through the human-computer interface description table of the front-end human-computer interaction layer. The operation primitives include the enumeration index of the signal acquisition type and the upper and lower bound descriptors of the acquisition threshold associated with the enumeration index. Based on the pre-set data contract template, the enumeration index and upper and lower bound descriptors are restructured to obtain the configuration payload of the core controller. The visualization interaction component embeds the configuration payload into a protocol data unit that conforms to the communication protocol between the core controller and the visualization interaction component, in order to generate the core controller's acquisition configuration instructions; The instruction processing pipeline that sends the acquisition configuration instructions to the core controller.
[0039] The visual interaction component continuously monitors the status of the established link identifier. When it detects that the established link identifier is in a valid active state, it immediately sends a high-level start command to the front-end human-machine interaction layer. After receiving the high-level start command, the front-end human-machine interaction layer switches from a low-power sleep state to a working state and sequentially completes all initialization loading operations, including clock synchronization, interface initialization, and display module calibration. After initialization loading is completed, it calls the device's factory-preset human-machine interface description table. According to the fixed interactive input area coordinate range and command character recognition rules defined in the human-machine interface description table, it continuously captures the operation commands entered by the user in the specified input area of the interactive interface. All captured operation commands are integrated into operation primitives according to a fixed format. The operation primitives completely contain the enumeration index corresponding to the signal acquisition type selected by the user, as well as the acquisition threshold upper limit descriptor and acquisition threshold lower limit descriptor directly associated with the enumeration index.
[0040] The visual interaction component retrieves the pre-stored data contract template from the fixed storage area inside the device. According to the fixed field arrangement order and standard data encapsulation format set in the data contract template, it fills the enumeration index in the operation primitive into the index field position of the template, and fills the upper and lower bound descriptors of the collection threshold into the upper and lower bound fields of the threshold field of the template, respectively. This completes the regular arrangement and orderly combination of all data, forming the configuration payload of the core controller that can be recognized by the core controller.
[0041] The visualization interaction component constructs standard protocol data units in sequence, including protocol header, data field, and check bit, according to the pre-agreed fixed communication protocol format between the core controller and the visualization interaction component. The generated configuration payload is completely filled into the designated storage area of the data field of the protocol data unit. After filling, the protocol header format, data field content, and check bit generation method of the protocol data unit are checked one by one to ensure that they meet all the requirements of the communication protocol. After verification, a core controller acquisition configuration command that can be transmitted and executed is generated.
[0042] The visual interaction component enables a dedicated point-to-point data transmission channel with the core controller. The generated acquisition configuration commands are sent to the core controller's command processing pipeline through this transmission channel. After entering the command processing pipeline, the acquisition configuration commands are queued according to the pipeline's first-in-first-out execution rule to wait for subsequent parsing and execution operations, thus completing the complete process of issuing acquisition configuration commands.
[0043] The beneficial effects are that the process uses the established link identifier as a precise trigger condition, automatically wakes up the interaction layer and completes the entire process initialization, relies on the preset human-machine interface description table to achieve accurate capture and standardized integration of user operation commands, completes the standardized reorganization of configuration data through a solidified data contract template, constructs compliant protocol data units according to the agreed communication protocol and generates acquisition configuration commands, realizes the visualized interaction and automated transmission of acquisition parameter configuration throughout the process, simplifies user operation steps, ensures the integrity and standardization of configuration information, and provides an accurate command foundation for subsequent sampling front-end gating, signal acquisition and equipment diagnosis.
[0044] The sampling front-end selection module dynamically selects the target sampling front-end from the sampling front-ends according to the acquisition configuration instructions, and configures the sample-and-hold window and programmable gain parameters for the target sampling front-end according to the message timing characteristics of the target bus protocol, so as to generate the ready status signal of the core controller. In this embodiment of the invention, when the sampling front-end selection module dynamically selects a target sampling front-end from the sampling front-ends according to the acquisition configuration instruction, and configures a sample-and-hold window and programmable gain parameters for the target sampling front-end according to the message timing characteristics of the target bus protocol to generate a ready state signal for the core controller, it is specifically used for: The acquisition configuration command is decoded using command primitives to obtain the signal acquisition type identifier of the acquisition configuration command; Based on the signal acquisition type identifier, traverse the sampling front-end resource registry to locate the hardware access handle of the target sampling front-end bound to the signal acquisition type identifier; By accessing the hardware handle, a strobe enable primitive is sent to the target sampling front end to switch the target sampling front end from standby to active state and disconnect other non-target sampling front ends from the signal acquisition bus.
[0045] After the sampling front-end gating module executes the hardware access handle to send a gating enable primitive to the target sampling front-end to switch the target sampling front-end from standby state to active state and disconnects other non-target sampling front-ends from the signal acquisition bus, it is also used for: The core controller reads the message timing characteristic description table associated with the target bus protocol from the protocol parsing library; Write the sample-and-hold window duration parameter and programmable gain parameter from the message timing feature description table into the window configuration register and gain configuration register of the target sampling front end, respectively. The core controller reads the write receipts from the window configuration register and the gain configuration register. After confirming that both write receipts are successful, it generates a ready status signal for the core controller.
[0046] The acquisition configuration command is subjected to command primitive decoding operation. The command fields contained in the acquisition configuration command are split and identified field by field according to the preset primitive parsing rules. The signal acquisition type identifier that can uniquely represent the acquisition configuration command of this signal acquisition type is extracted from the split command information.
[0047] Based on the extracted signal acquisition type identifier, a line-by-line matching and retrieval operation is performed in the sampling front-end resource registry pre-stored in the hardware resource management area. The signal acquisition type identifier is compared one by one with the sampling front-end binding identifiers recorded in the registry. When the two are found to be completely consistent, the hardware access information corresponding to the entry is determined to be the hardware access handle of the target sampling front-end bound to the signal acquisition type identifier.
[0048] By establishing a communication link with the corresponding sampling front-end hardware circuit through the hardware access handle of the target sampling front-end obtained by positioning, a strobe enable primitive that meets the hardware communication timing requirements is sent to the control pin of the target sampling front-end. After receiving the primitive, the target sampling front-end triggers the internal state switching circuit to switch itself from the low-power standby state to the active state that can perform signal acquisition. At the same time, it triggers the bus switch control circuit to cut off the electrical connection path between all other sampling front-ends except the target sampling front-end and the signal acquisition bus, and only retains the connection state between the target sampling front-end and the signal acquisition bus.
[0049] The core controller sends the identification information of the target bus protocol to the protocol parsing library through the internal address bus. After receiving the identification information, the protocol parsing library compares it with all the bus protocol identifiers stored in the library one by one. When a complete match is detected, the library calls the read control logic to transmit the message timing feature description table associated with the target bus protocol to the internal buffer of the core controller through the data bus to complete the read operation.
[0050] The core controller extracts the sample-and-hold window duration parameter and the programmable gain parameter from the message timing feature description table in the internal buffer, and sends them to the target sampling front end through independent data transmission channels. The sample-and-hold window duration parameter is transmitted to the address port corresponding to the window configuration register of the target sampling front end, and the write enable signal of the register is triggered to stably write the parameter to the window configuration register. The programmable gain parameter is transmitted to the address port corresponding to the gain configuration register of the target sampling front end, and the write enable signal of the register is also triggered to complete the writing of the programmable gain parameter to the gain configuration register.
[0051] The core controller reads the write receipts from the window configuration register and the gain configuration register via a bidirectional communication bus. The write receipt is a preset status indicator signal inside the register, where a high-level signal corresponds to a successful write and a low-level signal corresponds to a failed write. The core controller performs level detection on the write receipt signals of the two registers. When it confirms that both write receipts are in a high-level successful state, the status trigger module inside the core controller is activated and outputs a high-level ready status signal of the core controller. This signal is used to inform the system that subsequent signal acquisition-related operations can be performed.
[0052] The beneficial effects include the accurate decoding of acquisition configuration commands and the extraction of signal acquisition type identifiers, enabling rapid location of the hardware access handle of the target sampling front-end in the sampling front-end resource registry. Through this handle, stable communication with the target sampling front-end can be established and the front-end can be switched from standby to active state. Simultaneously, the connection between the non-target sampling front-end and the signal acquisition bus is disconnected. The core controller can accurately read the message timing feature description table associated with the target bus protocol and stably write the sampling hold window duration parameter and programmable gain parameter into the corresponding register of the target sampling front-end. By detecting the write receipt, a ready state signal is generated after the parameter write is successful, ensuring the accuracy and stability of sampling front-end gating and parameter configuration, and providing reliable support for the smooth operation of subsequent signal acquisition.
[0053] The synchronous trigger acquisition module responds to the ready status signal. The core controller encapsulates the control data to be sent into a bus frame message that conforms to the target bus protocol. At the start bit of the output bus frame message, the target sampling front end is triggered to capture the feedback signal generated by the external controlled device. In this embodiment of the invention, when the synchronous trigger acquisition module executes a response to the ready state signal, the core controller encapsulates the control data to be sent into a bus frame message conforming to the target bus protocol, and triggers the target sampling front-end to capture the feedback signal generated by the external controlled device at the start bit time of the output bus frame message, it is specifically used for: In response to the ready status signal, the core controller extracts the control data to be sent from the local transmit buffer and performs protocol adaptation and encapsulation on the control data according to the frame structure specification of the target bus protocol to obtain the bus frame message of the control data. The core controller writes the bus frame message into the physical interface's transmit first-in-first-out queue and sends a start transmit primitive to the physical interface's transmit scheduler so that the physical interface can start outputting the bus frame message bit by bit. The core controller synchronously monitors the bit synchronization clock of the physical interface. When the clock edge corresponding to the start bit of the bus frame message is detected, the trigger pulse generated by the core controller is sent to the trigger input pin of the target sampling front end. After receiving the rising edge of the trigger pulse, the target sampling front end reads the configured sampling and holding window duration from the sample-and-hold register of the target sampling front end; Based on the duration of the sampling and holding window, the feedback signal generated by the external controlled device is captured.
[0054] After the core controller detects that the ready state signal is in a high-level active state, it locates the preset fixed data storage address in the local transmit buffer, extracts all the control data to be transmitted from that address, retrieves the start bit level format, data bit order arrangement, parity bit generation type, and stop bit level length specified in the target bus protocol frame structure specification, and fills the extracted control data into the corresponding positions after the start bit, before the parity bit, and before the stop bit in accordance with the specified frame structure order, completing the protocol adaptation and encapsulation of the control data, and finally generating a bus frame message of control data with a fully compliant format.
[0055] The core controller writes the bus frame message bit by bit into the physical interface's transmit FIFO queue, following the order of the most significant bit to the least significant bit. The transmit FIFO queue strictly adheres to the first-in, first-out storage rule, ensuring complete preservation of all data bits in the bus frame message. The core controller then immediately sends a hardware-level standard-level format start transmit primitive to the physical interface's transmit scheduler. Upon receiving the start transmit primitive, the transmit scheduler controls the physical interface to continuously output all data content of the bus frame message bit by bit according to the target bus protocol's bit transmission timing, ensuring uninterrupted and error-free output.
[0056] The core controller enables the clock synchronization monitoring channel to track the bit synchronization clock signal output by the physical interface in real time and continuously monitor the rising edge signal of the clock corresponding to the start bit of the bus frame message. When the level of the rising edge reaches the preset 3.3V effective level threshold, the core controller generates a trigger pulse with a fixed pulse width of 100ns and transmits the trigger pulse to the trigger input pin of the target sampling front end through a hardware direct connection line.
[0057] The target sampling front end monitors the level change in real time through the trigger input pin. When the rising edge level of the trigger pulse is detected to reach the preset 2.0V trigger level standard, the internal register read operation is immediately started. The sample-and-hold window duration configured in the previous step is completely read from its own sample-and-hold register. The read operation is completed within one clock cycle, ensuring the timeliness and integrity of data transmission.
[0058] The target sampling front end sets the sample-and-hold window duration to a fixed signal acquisition time interval. Within this time interval, the signal acquisition channel is continuously opened to continuously acquire the bus signals returned by the external controlled device after responding to the bus frame message, thus completely capturing all feedback signals generated by the external controlled device during the bus data interaction process.
[0059] The beneficial effects are that this process uses the effective level of the ready state signal as the precise triggering basis, strictly follows the target bus protocol frame structure specification to complete the standardized encapsulation of control data, ensures the stable output of bus frame messages in sequence by sending first-in-first-out queues, achieves precise synchronization between message transmission and trigger pulses by relying on bit synchronization clock and preset effective level threshold, and completes the precise capture of feedback signals according to preset trigger level and sampling and holding window duration. It realizes the full-process timing coordination of control command transmission and signal acquisition, significantly improves the timing accuracy and data integrity of signal acquisition, and provides a high-quality raw signal foundation for subsequent noise suppression processing and feature data extraction.
[0060] The noise suppression and conversion module performs common-mode noise suppression on the feedback signal to obtain the characteristic data of the core controller; In this embodiment of the invention, when the noise suppression conversion module performs common-mode noise suppression on the feedback signal to obtain the feature data of the core controller, it is specifically used for: The feedback signal is simultaneously input to both the inverting and non-inverting input channels of the differential sampling architecture to obtain the differential signal pair of the feedback signal. The common-mode interference component is extracted from the differential signal pair through the common-mode feedback loop inside the differential sampling architecture, and the common-mode interference component is differentially canceled with the differential signal pair to obtain the differential signal component of the core controller. The differential signal component is routed to the signal conditioning link of the target sampling front end. Based on the programmable gain parameter, the amplitude of the differential signal component is normalized to obtain the conditioned analog signal of the differential signal component. The conditioned analog signal is digitally reconstructed in the analog domain to obtain the characteristic data of the core controller.
[0061] The formula for calculating the feature data is as follows: ; In the formula, For feature data, For programmable gain parameters, For differential signal components, For common-mode interference components, The preset reference voltage, It is the natural logarithm.
[0062] The target sampling front end captures the feedback signal and transmits it synchronously to the non-inverting and inverting input channels of the differential sampling architecture through two independent hardware transmission lines with identical impedance and transmission delay. The two channels receive the feedback signal with the same transmission timing and input impedance, keeping the two signals in a synchronous input state. This forms a differential signal pair with feedback signals of opposite phase and the same amplitude. The differential sampling architecture activates its internally preset common-mode feedback loop, which synchronously monitors the two transmitted signals of the differential signal pair in real time. It accurately extracts the common-mode interference components with completely equal amplitude and identical phase from the two signals. This component is the noise signal to be canceled due to environmental electromagnetic influence during bus transmission. The extracted common-mode interference component is then synchronously differentially cancelled with the differential signal pair. After completely eliminating the interference components, the original effective signal components are retained, resulting in the differential signal component that forms the basis of the effective signal for the core of feature data calculation.
[0063] The processed differential-mode signal component is stably transmitted to the signal conditioning link of the target sampling front end through a dedicated signal routing line shielded from interference. The programmable gain parameter used by the signal conditioning link is obtained by the core controller from the message timing feature description table associated with the target bus protocol, which is read from the protocol parsing library. Then, it is written into the gain configuration register of the target sampling front end through the hardware control path to complete the fixed configuration. This parameter is the only fixed configuration basis for the amplitude normalization of the signal conditioning link. The signal conditioning link uses this parameter as the standard to perform step-by-step standardization adjustment of the amplitude of the differential-mode signal component, calibrating the signal amplitude to the standard level range of subsequent digital processing. After the amplitude normalization process is completed, the conditioned analog signal of the differential-mode signal component with normal amplitude and no interference is obtained.
[0064] After conditioning, the analog signal is transmitted to the analog-to-digital conversion module at the target sampling front end through a hardware path. The analog-to-digital conversion module continuously samples the conditioned analog signal at a sampling rate that matches the transmission frequency of the vehicle bus, converting the continuous analog level signal point by point into discrete digital signals, thus completing the analog domain digital reconstruction processing. The feature data calculation relies on the reference voltage preset before the equipment leaves the factory, based on the general transmission standard level range of the vehicle bus and the electrical characteristics of the differential sampling architecture hardware, as a fixed voltage reference. First, the ratio of the common-mode interference component to the reference voltage is calculated. After adding 1 to the ratio, a natural logarithmic operation is performed. The result of the natural logarithmic operation is added 1, and then the calculation result is multiplied by the programmable gain parameter and the differential signal component in sequence to finally obtain the feature data of the core controller.
[0065] This formula integrates the differential-mode signal component after noise suppression processing, the programmable gain parameters configured by signal conditioning, the common-mode interference component generated by bus transmission, and the hardware preset reference voltage. It transforms the analog signal after digital reconstruction in the analog domain into standardized digital feature values, enabling the feature data to accurately match the equipment diagnostic requirements of subsequent acquisition threshold comparison. This provides a unique and accurate numerical basis for generating diagnostic results for external controlled equipment. The process achieves accurate extraction and complete cancellation of common-mode interference through dual-channel synchronous access of differential sampling architecture, completes the amplitude normalization and precise conditioning of differential-mode signal through signal conditioning link, and completes the standardized digital reconstruction of analog signal through analog-to-digital conversion. This effectively removes common-mode interference in the feedback signal, significantly improves signal purity and amplitude regularity, and ensures that the generated feature data is accurate and reliable, providing high-quality data support for subsequent equipment diagnostics.
[0066] The beneficial effects are that the process achieves accurate elimination of common-mode interference through differential sampling architecture, completes signal amplitude standardization conditioning based on preset programmable gain parameters, generates accurate feature data by combining fixed reference voltage and standardized operation logic, and performs the entire process in hardware without software black box operation, which effectively improves the stability and accuracy of feedback signal processing and provides real and reliable numerical basis for subsequent equipment diagnosis.
[0067] The diagnostic results display module generates diagnostic results for external controlled devices based on the comparison between feature data and acquisition thresholds, and pushes the diagnostic results to the visualization interaction component for display.
[0068] In this embodiment of the invention, when the diagnostic result display module generates a diagnostic result for an external controlled device based on the comparison result between feature data and the acquisition threshold, and pushes the diagnostic result to the visualization interaction component for display, it is specifically used for: The numerical descriptors in the feature data are compared with the acquisition thresholds in the acquisition configuration instructions to determine the interval membership, thereby obtaining the binary state enumeration value of the core controller. Based on the binary state enumeration value, the corresponding diagnostic result text descriptor is retrieved from the preset diagnostic message mapping table, and the diagnostic result text descriptor is associated and encapsulated with the feature data to obtain the diagnostic result data record of the core controller. Through the communication link between the core controller and the visualization interaction component, the diagnostic result data is recorded and pushed to the message queue of the visualization interaction component, triggering the visualization interaction component to refresh the display interface.
[0069] The core controller locates the dedicated storage area for numerical descriptors within the feature data, fully extracts the dedicated numerical descriptors used to represent the actual values of the feature data, retrieves the user-preset upper and lower limits of the acquisition threshold from the configuration data field of the acquisition configuration command, and precisely compares the actual value of the feature corresponding to the numerical descriptor with the continuous fixed value interval enclosed by the upper and lower limits of the acquisition threshold. When the actual value of the feature is greater than or equal to the lower limit of the acquisition threshold and less than or equal to the upper limit of the acquisition threshold, it is determined to be in the interval state. When the actual value of the feature is less than the lower limit of the acquisition threshold or greater than the upper limit of the acquisition threshold, it is determined to be outside the interval state. Based on this unique determination result, a binary state enumeration value of the core controller is generated, which only contains two fixed states: normal and abnormal.
[0070] The core controller uses the generated binary state enumeration value as a unique retrieval index to access the diagnostic message mapping table pre-stored in the non-volatile storage unit inside the device. It searches and locates the text storage entry that uniquely corresponds to the binary state enumeration value according to the index matching rules of the mapping table. It then extracts the standard diagnostic result text descriptor from the entry and binds and integrates the diagnostic result text descriptor with the feature data according to the device's preset fixed field combination rules to form a complete diagnostic result data record of the core controller containing diagnostic text and feature values.
[0071] The core controller transmits diagnostic result data records stably in the form of continuous and uninterrupted data frames through a pre-established point-to-point dedicated hardware communication link with the visualization interaction component. The visualization interaction component stores the received diagnostic result data records into a dedicated message queue. After the message queue completes data storage, it immediately sends an interface update command to the interface control unit of the visualization interaction component. Upon receiving the command, the visualization interaction component immediately clears the original display content and loads the new diagnostic information, completing the full refresh operation of the display interface.
[0072] The beneficial effects are that this process achieves accurate interval membership determination of feature data through fixed numerical interval comparison, generates standardized binary state enumeration values, completes unique matching of diagnostic text based on a pre-set diagnostic message mapping table, encapsulates diagnostic data according to fixed rules and transmits it in real time through a dedicated link, automatically triggers interface refresh to visualize diagnostic results, and automates the entire process of diagnostic discrimination, data encapsulation, information push and interface display, improving the efficiency, accuracy and intuitiveness of equipment diagnosis, and ensuring the real-time and efficient transmission of diagnostic information.
[0073] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0074] This application embodiment can acquire and process relevant data based on artificial intelligence technology. Artificial intelligence is the theory, method, technology, and application system that uses digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to obtain optimal results.
[0075] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.
Claims
1. A configurable UCAN / LIN driver box, characterized in that, The driver box includes a signal feature matching module, a link adaptive establishment module, a data acquisition parameter configuration module, a sampling front-end gating module, a synchronous trigger acquisition module, a noise suppression conversion module, and a diagnostic result display module. in: The signal feature matching module allows the core controller to acquire the bus signal features generated when external controlled devices are connected via a physical interface, and match the target bus protocol corresponding to the bus signal features from a pre-set protocol parsing library to generate the interface configuration parameters of the core controller. The link adaptive establishment module adjusts the electrical adaptation parameters of the physical interface according to the interface configuration parameters in order to establish a physical layer communication link with the external controlled device and generate a link established identifier for the core controller. The parameter configuration module receives the signal acquisition type and acquisition threshold input by the user in response to the link establishment identifier. It then encapsulates the signal acquisition type and acquisition threshold into an acquisition configuration command and sends it to the core controller. The sampling front-end selection module dynamically selects the target sampling front-end from the sampling front-ends according to the acquisition configuration instructions, and configures the sample-and-hold window and programmable gain parameters for the target sampling front-end according to the message timing characteristics of the target bus protocol, so as to generate the ready status signal of the core controller. The synchronous trigger acquisition module responds to the ready status signal. The core controller encapsulates the control data to be sent into a bus frame message that conforms to the target bus protocol. At the start bit of the output bus frame message, the target sampling front end is triggered to capture the feedback signal generated by the external controlled device. The noise suppression and conversion module performs common-mode noise suppression on the feedback signal to obtain the characteristic data of the core controller; The diagnostic results display module generates diagnostic results for external controlled devices based on the comparison between feature data and acquisition thresholds, and pushes the diagnostic results to the visualization interaction component for display.
2. The configurable UCAN / LIN driver box as described in claim 1, characterized in that, The signal feature matching module, when executing the core controller to obtain bus signal features generated when external controlled devices access the system via physical interfaces, and matching the target bus protocol corresponding to the bus signal features from a pre-set protocol parsing library to generate interface configuration parameters for the core controller, is specifically used for: The core controller continuously monitors the bus signal characteristics generated when external controlled devices are connected through the physical interface, and compares the bus signal characteristics with the pre-set protocol parsing library one by one. When a bus signal feature matches any protocol feature template in the protocol parsing library, the core controller determines the bus protocol corresponding to the protocol feature template as the target bus protocol corresponding to the bus signal feature. Based on the target bus protocol, parameter-oriented extraction is performed on the protocol parsing library to obtain the interface configuration parameters of the core controller.
3. The configurable UCAN / LIN driver box as described in claim 1, characterized in that, When the link adaptive establishment module adjusts the electrical adaptation parameters of the physical interface according to the interface configuration parameters to establish a physical layer communication link with the external controlled device and generates a link established identifier for the core controller, it is specifically used for: The core controller performs structured feature deconstruction on the interface configuration parameters and binds the resulting multi-dimensional electrical adaptation attributes to the register mapping table of the physical interface. Based on the register mapping table, the driver layer configuration space of the physical interface is atomically written; After the atomic write is completed, a link integrity probe sequence for the external controlled device is generated according to the link layer specification of the target bus protocol. Send link integrity probe sequences to external controlled devices through the physical interface, and listen for link layer acknowledgment frames from external controlled devices; When the core controller successfully captures a link layer acknowledgment frame, it determines that the physical layer communication link has entered a steady state, and generates a link establishment identifier for the core controller.
4. The configurable UCAN / LIN driver box as described in claim 1, characterized in that, When the acquisition parameter configuration module responds to the link establishment identifier, the visual interaction component receives the signal acquisition type and acquisition threshold input by the user, encapsulates the signal acquisition type and acquisition threshold into acquisition configuration instructions, and sends them to the core controller, it is specifically used for: In response to the established link identifier, the visual interaction component wakes up the front-end human-computer interaction layer and captures the operation primitives input by the user through the human-computer interface description table of the front-end human-computer interaction layer. The operation primitives include the enumeration index of the signal acquisition type and the upper and lower bound descriptors of the acquisition threshold associated with the enumeration index. Based on the pre-set data contract template, the enumeration index and upper and lower bound descriptors are restructured to obtain the configuration payload of the core controller. The visualization interaction component embeds the configuration payload into a protocol data unit that conforms to the communication protocol between the core controller and the visualization interaction component, in order to generate the core controller's acquisition configuration instructions; The instruction processing pipeline that sends the acquisition configuration instructions to the core controller.
5. The configurable UCAN / LIN driver box as described in claim 1, characterized in that, The sampling front-end selection module, when executing the acquisition configuration instruction to dynamically select a target sampling front-end from the sampling front-ends, and configuring a sample-and-hold window and programmable gain parameters for the target sampling front-end according to the message timing characteristics of the target bus protocol to generate the ready status signal of the core controller, is specifically used for: The acquisition configuration command is decoded using command primitives to obtain the signal acquisition type identifier of the acquisition configuration command; Based on the signal acquisition type identifier, traverse the sampling front-end resource registry to locate the hardware access handle of the target sampling front-end bound to the signal acquisition type identifier; By accessing the hardware handle, a strobe enable primitive is sent to the target sampling front end to switch the target sampling front end from standby to active state and disconnect other non-target sampling front ends from the signal acquisition bus.
6. The configurable UCAN / LIN driver box as described in claim 5, characterized in that, After the sampling front-end gating module executes the hardware access handle to send a gating enable primitive to the target sampling front-end to switch the target sampling front-end from standby state to active state and disconnects other non-target sampling front-ends from the signal acquisition bus, it is also used for: The core controller reads the message timing characteristic description table associated with the target bus protocol from the protocol parsing library; Write the sample-and-hold window duration parameter and programmable gain parameter from the message timing feature description table into the window configuration register and gain configuration register of the target sampling front end, respectively. The core controller reads the write receipts from the window configuration register and the gain configuration register. After confirming that both write receipts are successful, it generates a ready status signal for the core controller.
7. The configurable UCAN / LIN driver box as described in claim 1, characterized in that, The synchronous trigger acquisition module, in response to the ready state signal, encapsulates the control data to be sent into a bus frame message conforming to the target bus protocol. At the start bit of the output bus frame message, it triggers the target sampling front-end to capture the feedback signal generated by the external controlled device. Specifically, this is used for: In response to the ready status signal, the core controller extracts the control data to be sent from the local transmit buffer and performs protocol adaptation and encapsulation on the control data according to the frame structure specification of the target bus protocol to obtain the bus frame message of the control data. The core controller writes the bus frame message into the physical interface's transmit first-in-first-out queue and sends a start transmit primitive to the physical interface's transmit scheduler so that the physical interface can start outputting the bus frame message bit by bit. The core controller synchronously monitors the bit synchronization clock of the physical interface. When the clock edge corresponding to the start bit of the bus frame message is detected, the trigger pulse generated by the core controller is sent to the trigger input pin of the target sampling front end. After receiving the rising edge of the trigger pulse, the target sampling front end reads the configured sampling and holding window duration from the sample-and-hold register of the target sampling front end; Based on the duration of the sampling and holding window, the feedback signal generated by the external controlled device is captured.
8. The configurable UCAN / LIN driver box as described in claim 1, characterized in that, When the noise suppression conversion module performs common-mode noise suppression on the feedback signal to obtain the characteristic data of the core controller, it is specifically used for: The feedback signal is simultaneously input to both the inverting and non-inverting input channels of the differential sampling architecture to obtain the differential signal pair of the feedback signal. The common-mode interference component is extracted from the differential signal pair through the common-mode feedback loop inside the differential sampling architecture, and the common-mode interference component is differentially canceled with the differential signal pair to obtain the differential signal component of the core controller. The differential signal component is routed to the signal conditioning link of the target sampling front end. Based on the programmable gain parameter, the amplitude of the differential signal component is normalized to obtain the conditioned analog signal of the differential signal component. The conditioned analog signal is digitally reconstructed in the analog domain to obtain the characteristic data of the core controller.
9. The configurable UCAN / LIN driver box as described in claim 8, characterized in that, The formula for calculating the feature data is as follows: ; In the formula, For feature data, For programmable gain parameters, For differential signal components, For common-mode interference components, The preset reference voltage, It is the natural logarithm.
10. The configurable UCAN / LIN driver box as described in claim 1, characterized in that, When the diagnostic result display module generates a diagnostic result for an external controlled device based on the comparison between feature data and the acquisition threshold, and pushes the diagnostic result to the visualization interaction component for display, it is specifically used for: The numerical descriptors in the feature data are compared with the acquisition thresholds in the acquisition configuration instructions to determine the interval membership, thereby obtaining the binary state enumeration value of the core controller. Based on the binary state enumeration value, the corresponding diagnostic result text descriptor is retrieved from the preset diagnostic message mapping table, and the diagnostic result text descriptor is associated and encapsulated with the feature data to obtain the diagnostic result data record of the core controller. Through the communication link between the core controller and the visualization interaction component, the diagnostic result data is recorded and pushed to the message queue of the visualization interaction component, triggering the visualization interaction component to refresh the display interface.