A circuit fault self-diagnosis method and system for an electric endoscope anastomat

By constructing a hierarchical and progressive circuit fault self-diagnosis architecture, the system achieves layer-by-layer fault isolation and precise location of the transmission link and signal acquisition backend of the electric laparoscopic anastomosis device, solving the problem of inaccurate fault diagnosis in existing technologies and improving the reliability and safety of the system.

CN122944852BActive Publication Date: 2026-11-24NANJING JIANXIN MEDICAL TECHNOLOGY CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202611447747.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-09-17
Publication Date
2026-11-24
Estimated Expiration
2046-09-17

AI Technical Summary

Technical Problem

Existing methods for diagnosing circuit faults in electric laparoscopic anastomotic devices lack a hierarchical diagnostic architecture, making it impossible to accurately pinpoint the source of the fault, especially at the end of the transmission link and signal acquisition backend, resulting in a lack of targeted maintenance.

Method used

A hierarchical and progressive circuit fault self-diagnosis architecture is constructed, including factory calibration, physical layer diagnosis, source end diagnosis and channel diagnosis. Through multi-dimensional signal characteristic parameter comparison and multi-channel sampling, layer-by-layer fault isolation and precise location are achieved.

Benefits of technology

It improves the reliability of data acquisition and system safety of the electric laparoscopic anastomosis device in complex electromagnetic environments, ensures the certainty of fault location and the reliability of diagnostic conclusions, and avoids invalid testing and misjudgment at higher levels.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122944852B_ABST
    Figure CN122944852B_ABST
Patent Text Reader

Abstract

This invention discloses a self-diagnostic method and system for circuit faults in an electric laparoscopic anastomosis device, belonging to the field of circuit fault diagnosis technology. This invention constructs a four-layer hierarchical progressive self-diagnostic architecture: factory calibration, physical layer diagnosis, source-end diagnosis, and channel diagnosis, with an early termination mechanism between each layer. This mechanism ensures that once a clear fault is diagnosed at the lower level, the diagnostic process immediately terminates, and subsequent higher-level diagnostic steps are not executed. This not only avoids the time wastage and potential logical confusion caused by ineffective testing on hardware with known faults, but more importantly, it isolates the impact of faults from the system logic, preventing misjudgments at higher levels due to lower-level anomalies. This ensures the certainty of fault location and the reliability of diagnostic conclusions, overcoming the shortcomings of existing technologies that only output a comprehensive health index without accurately locating the faulty component.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of circuit fault diagnosis technology, and in particular to a method and system for self-diagnosis of circuit faults in an electric laparoscopic anastomosis device. Background Technology

[0002] As a core energy instrument in minimally invasive surgery, the reliability and safety of the electrical system of the electric laparoscopic stapler directly affect the success or failure of the operation. Current mainstream products have evolved from purely mechanical operation to mechatronic systems integrating microprocessor control, motor drive, multi-sensor fusion, and real-time feedback. At the hardware level, these systems integrate multimodal sensing units such as position and pressure sensors, while at the software level, overload protection is achieved through motor current monitoring. However, despite significant progress in drive control of electric laparoscopic staplers, fault diagnosis methods for their circuit systems still primarily rely on single-parameter monitoring, lacking a hierarchical diagnostic architecture and refined fault location capabilities.

[0003] For example, patent application CN114533165A discloses an electric laparoscopic anastomosis device and its control method and device. After power-on, the system performs a self-test, confirming the instrument's functionality by checking whether the switches in each part are in their initial positions. However, this technical solution's self-test is limited to detecting the on / off state of the switches, failing to cover deeper circuit faults such as changes in the impedance characteristics of the transmission link and signal integrity degradation. The fault diagnosis granularity is only a binary distinction between available and unavailable, lacking the ability to identify specific fault sources. Furthermore, it lacks the diagnostic capability for system reference voltage drift and sampling channel consistency; reference source offset will cause systematic deviations in the conversion values, making them unrecognizable.

[0004] Furthermore, patent application CN122386077A discloses a method for detecting the circuit of an electric stapler using a signal tracker. This method acquires synchronous signal data from key test points along each signal path of the main control PCB circuit, combines this data with a benchmark feature library to calculate a comprehensive circuit anomaly index, and outputs a quantitative health assessment result. However, this solution only detects signal paths at the PCB level, failing to cover the entire link from the driver end through transmission cables and connectors to remote sensors and analog-to-digital conversion channels. It lacks diagnostic tools for end-point faults such as cable damage, connector oxidation, and remote sensor failure. Moreover, the output comprehensive health index cannot accurately pinpoint the specific point of failure, hindering targeted repairs. Summary of the Invention

[0005] In view of the problems existing in the above-mentioned background art, the present invention is proposed.

[0006] Therefore, the problem to be solved by this invention is: how to construct a hierarchical and progressive circuit fault self-diagnosis architecture to achieve layer-by-layer fault isolation and precise location of the electric endoscopic anastomosis device from the physical layer of the transmission link to the back end of signal acquisition.

[0007] To solve the above-mentioned technical problems, the present invention provides the following technical solution: In a first aspect, the present invention provides a circuit fault self-diagnosis method for an electric endoscopic anastomosis device, comprising: before the device leaves the factory and the transmission link is in a known good condition, performing a calibration on the transmission link to obtain inherent characteristic parameters and background noise parameters; sending a test signal, determining link abnormality based on the signal response and the inherent characteristics, determining insulation abnormality based on the electrical parameters of adjacent lines and the background noise, and outputting a first signal if no abnormality is determined; upon receiving the first signal, determining a reference abnormality based on the reference sampling value, determining a front-end abnormality based on the remote sampling value, and outputting a second signal if no abnormality is determined; upon receiving the second signal, verifying the validity of the consistency calibration coefficient of each channel, and after passing the verification, synchronously sampling multiple channels, and determining normal, single fault, or system abnormality based on the consistency of the conversion values ​​of each channel.

[0008] In a preferred embodiment of the circuit fault self-diagnosis method for an electric endoscopic anastomosis device described in this invention, the calibration is performed under known good condition, by sending test pulses to the transmission link, acquiring the response parameters of the transmitting and receiving ends, and calculating and storing the inherent characteristic parameters and background noise parameters of the link; the inherent characteristic parameters include the ratio of the rise time of the receiving end to that of the transmitting end at the factory calibration and the amplitude attenuation coefficient at each level at the factory calibration, which are obtained through factory calibration and stored in non-volatile memory; the background noise parameter is the peak-to-peak value of the signal under no excitation; the amplitude attenuation coefficient is the ratio of the signal amplitude at the receiving end to that at the transmitting end.

[0009] In a preferred embodiment of the circuit fault self-diagnosis method for an electric laparoscopic anastomosis device described in this invention: before sending a test signal, a static level detection is performed on one end of the transmission line; if the level is abnormal, an open circuit fault is determined and the process terminates; after sending the test signal, the actual response parameters of the transceiver are obtained, and real-time characteristic parameters are calculated based on the actual response parameters; the real-time characteristic parameters include the real-time rise time ratio of the receiving end and the real-time amplitude attenuation coefficient of the transmitting end; if the real-time rise time ratio deviates from the factory-calibrated rise time ratio in the inherent characteristic parameters by a degree exceeding a first preset allowable range, or if the real-time amplitude attenuation coefficient at any level deviates from the factory-calibrated amplitude attenuation coefficient of the corresponding level in the inherent characteristic parameters by a degree exceeding a second preset allowable range, then a fault is determined. If the impedance is abnormal, the process terminates; if the above deviations do not exceed the corresponding range, the real-time nonlinear distortion coefficient is calculated; if the real-time nonlinear distortion coefficient exceeds the preset nonlinear threshold, a nonlinear anomaly warning is triggered and subsequent diagnostics continue; if it does not exceed the preset nonlinear threshold, the nonlinear flag is not triggered and subsequent diagnostics continue; wherein, the first preset allowable range and the second preset allowable range are each composed of the intervals defined by their respective inherent characteristic parameters and preset margin coefficients and their reciprocals; if the response parameter is missing, it is determined to be an impedance anomaly and the process terminates; the changes in electrical parameters of adjacent lines of the transmission line are detected, and the changes in electrical parameters of the adjacent lines are compared with the insulation judgment threshold determined based on the background noise; if it exceeds the insulation judgment threshold, an insulation anomaly is determined.

[0010] In a preferred embodiment of the circuit fault self-diagnosis method for an electric endoscopic anastomosis device according to the present invention, the first preset allowable range and the second preset allowable range are respectively defined by closed intervals defined by the product of their respective inherent characteristic parameters and preset margin coefficients as the upper limit and the product of the product of the inherent characteristic parameters and the preset margin coefficients as the lower limit; the insulation judgment threshold determined based on the background noise is the sum of the preset safe voltage base value and the background noise parameter multiplied by a preset multiple; the real-time rise time ratio is the ratio of the real-time rise time of the receiving end to the real-time rise time of the transmitting end; the real-time amplitude attenuation coefficient is the ratio of the real-time signal amplitude of the receiving end to the real-time signal amplitude of the transmitting end at each level.

[0011] As a preferred embodiment of the circuit fault self-diagnosis method for an electric endoscopic anastomosis device described in this invention, the following steps are taken in the source-end diagnosis: obtaining the reference sampling value includes: connecting an internal bandgap reference source to an independent dedicated channel, and reading the value of the bandgap reference source with the current system reference voltage as a reference; the factory calibration value of the bandgap reference source is stored in a non-volatile memory, and the deviation from the calibration value exceeds the limit when the deviation of the read value relative to the factory calibration value exceeds a preset percentage; before sampling the remote return signal, a known standard power supply voltage is applied to the remote sensor; the preset effective range is the interval between a preset low percentage and a preset high percentage of the known standard power supply voltage.

[0012] In a preferred embodiment of the circuit fault self-diagnosis method for an electric endoscopic anastomosis device described in this invention, the conversion channels in the synchronous multi-channel sampling are three independent analog-to-digital conversion channels; the consistency judgment of the conversion values ​​of each channel in the channel diagnosis includes: calculating the difference between the maximum and minimum values ​​of the three conversion values ​​as the range; if the range is not greater than the same preset percentage of the full scale, it is judged to be normal; if the range is greater than the same preset percentage of the full scale, then: if the deviation between the conversion value of only one channel and the median value of the three conversion values ​​is greater than the same preset percentage of the full scale, and the deviation between the conversion values ​​of the other two channels is not greater than the same preset percentage of the full scale, then a single channel fault is judged and the corresponding channel is removed, and the average value of the remaining two channels is output; if the deviation between the conversion values ​​of any two of the three channels is greater than the same preset percentage of the full scale, it is judged to be a system synchronization abnormality or interference fault, triggering a system-level alarm.

[0013] As a preferred embodiment of the circuit fault self-diagnosis method for an electric endoscopic anastomosis device described in this invention, the method of synchronously accessing the same signal to multiple conversion channels for sampling includes: simultaneously fanning out the same analog signal returned from the remote end to each analog-to-digital conversion channel through printed circuit board traces, and each channel sharing the same hardware sampling and holding trigger pulse.

[0014] As a preferred embodiment of the circuit fault self-diagnosis method for an electric laparoscopic anastomosis device described in this invention, calibration, link diagnosis, source diagnosis and channel diagnosis are performed sequentially. If any abnormality is detected in any diagnostic step, the corresponding fault alarm is immediately triggered and all subsequent diagnostic steps are terminated.

[0015] Secondly, the present invention provides a circuit fault self-diagnosis system for an electric endoscopic anastomosis device, comprising: a reference calibration module, used to perform a calibration on the transmission link before the device leaves the factory and when the transmission link is in a known good condition, to obtain inherent characteristic parameters and background noise parameters; a physical layer diagnosis module, used to send a test signal, determine link abnormality based on the signal response and the inherent characteristics, determine insulation abnormality based on the electrical parameters of adjacent lines and the background noise, and output a first signal if no abnormality is determined; an internal signal diagnosis module, used to determine reference abnormality based on the reference sampling value after receiving the first signal, determine front-end abnormality based on the remote sampling value, and output a second signal if no abnormality is determined; and a channel diagnosis module, used to verify the validity of the consistency calibration coefficient of each channel after receiving the second signal, and after passing the verification, synchronously sample multiple channels, and determine normal, single fault, or system abnormality based on the consistency of the conversion values ​​of each channel.

[0016] Thirdly, the present invention provides a computer device including a memory and a processor, wherein the memory stores a computer program, wherein: when the computer program instructions are executed by the processor, they implement the steps of the self-diagnosis method for circuit faults of an electric endoscopic stapler as described in the first aspect of the present invention.

[0017] Fourthly, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein: when the computer program instructions are executed by a processor, they implement the steps of the self-diagnosis method for circuit faults of an electric endoscopic stapler as described in the first aspect of the present invention.

[0018] The beneficial effects of this invention are as follows: This invention constructs a four-layer hierarchical and progressive self-diagnostic architecture, consisting of factory calibration, physical layer diagnosis, source-end diagnosis, and channel diagnosis, with an early termination mechanism between each layer. This mechanism ensures that once a clear fault is diagnosed at the lower layer (such as the physical layer), the diagnostic process immediately terminates, and subsequent higher-level diagnostic steps are not executed. This not only avoids the time wastage and potential logical confusion caused by ineffective testing on hardware with known faults, but more importantly, it isolates the impact of faults from the system logic, preventing misjudgments at higher levels due to lower-level anomalies (such as reference voltage drift or transmission link breakage). This ensures the certainty of fault location and the reliability of diagnostic conclusions, overcoming the shortcomings of existing technologies that only output a comprehensive health index but cannot accurately locate the faulty link. Simultaneously, in the channel diagnosis stage, three independent ADC channels are used to synchronously sample the same analog signal. Combined with a two-level consistency judgment strategy based on range and median values, single-channel faults can be effectively identified and automatically isolated. Even in single-fault mode, valid sampled values ​​can still be output and the system can switch to a safety-restricted operating mode, significantly improving the reliability of surgical instruments' data acquisition and system safety in complex electromagnetic environments. Attached Figure Description

[0019] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0020] Figure 1 This is a flowchart of a self-diagnosis method for circuit faults in an electric laparoscopic anastomosis device.

[0021] Figure 2 This is a flowchart of the link diagnosis stage as shown in this invention.

[0022] Figure 3 This is a flowchart of the source and channel diagnostic stages as shown in this invention. Detailed Implementation

[0023] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0024] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of the invention. Therefore, the invention is not limited to the specific embodiments disclosed below.

[0025] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The phrase "in one embodiment" appearing in different places in this specification does not necessarily refer to the same embodiment, nor is it a single or selective embodiment that is mutually exclusive with other embodiments.

[0026] like Figures 1-3 As shown, the self-diagnosis method for circuit faults in an electric laparoscopic stapler includes: S1: Before the equipment leaves the factory and the transmission link is in a known good condition, perform a calibration on the transmission link to obtain inherent characteristic parameters and background noise parameters; S2: Send a test signal, determine link abnormality based on signal response and inherent characteristics, determine insulation abnormality based on electrical parameters and background noise of adjacent lines, and output the first signal if no abnormality is determined; S3: After receiving the first signal, determine reference abnormality based on reference sampling value, determine front-end abnormality based on remote sampling value, and output the second signal if no abnormality is determined; S4: After receiving the second signal, verify the validity of the consistency calibration coefficient of each channel, and after passing, synchronously sample multiple channels, and determine normal, single fault, or system abnormality based on the consistency of conversion values ​​of each channel.

[0027] In some embodiments, the self-diagnosis method for circuit faults in an electric laparoscopic stapler provided by the present invention includes the following steps in step S1: Step S11: Before the device leaves the factory, after confirming the transmission link is in good condition using external testing instruments, perform the following factory calibration procedure: Under no signal excitation, measure and record the background noise parameters of the link; send a test pulse with a preset steep rising edge to the transmission link under test, and synchronously capture the time domain response waveform at the transmitting and receiving ends, extracting and calculating inherent characteristic parameters, including but not limited to: the ratio of the rising edge time at the receiving end to the transmitting end, and the amplitude attenuation coefficient at each level. The calibration procedure is performed once at the factory and is maintained and updated periodically. The calibration results are stored in non-volatile memory, and the stored calibration parameters are directly called up each time the device is powered on for self-diagnosis. The transmission link refers to the complete signal path from the signal output terminal of the main control circuit board (or microcontroller) of the electric endoscopic stapler, through internal connecting cables and connectors, to the sensor or actuator at the end effector (staple cartridge assembly).

[0028] The rise time of the test pulse is no greater than 5 ns, and this rise time is set between 1 / 5 and 1 / 2 of the one-way transmission delay of the transmission link, so as to use the transmit-receive ratio method to cancel common-mode error under the premise of controllable reflection. For different circuit designs, those skilled in the art can determine the appropriate time based on the actual transmission link length and the characteristics of the dielectric material.

[0029] In step S11a, during the calibration process, the transmitted test pulses include at least two test signal sequences with different amplitude levels. In this embodiment, preferably, the test signal sequences include: (1) Low-level test signal: The amplitude is 30% of the system logic level (e.g. =5V, amplitude is 1.5V); (2) Medium level test signal: amplitude is 60% of the system logic level (amplitude is 3.0V), as the standard for routine diagnosis; (3) High level test signal: amplitude is 100% of the system logic level (amplitude is 5.0V).

[0030] For each of the above-mentioned test signals at different levels, obtain the transceiver response parameters at each level, including the amplitude of the transmitter, the amplitude of the receiver, and the rise time at each level.

[0031] Based on the amplitude values ​​at the transmitting and receiving ends at each voltage level, calculate the amplitude attenuation coefficient calibration value for each voltage level:

[0032] And calculate the calibration value of the inherent nonlinearity of the link:

[0033] in, , , These represent the amplitude of the transmitting signal during the calibration phase at low, medium, and high levels, respectively. , , These represent the signal amplitudes at the receiving end during the calibration phase at low, medium, and high levels, respectively.

[0034] In this step, a rise time ratio is used instead of absolute delay. The technical principle behind this is that the rise time is primarily determined by the distributed capacitance and inductance of the transmission link. When impedance mismatch, cable damage, or connector oxidation occurs in the link, the distributed parameters will change, leading to a change in the rise time. Using a ratio effectively eliminates the inherent deviation in rise time caused by temperature and voltage fluctuations in the transmitter driver chip, allowing this parameter to more accurately reflect the intrinsic impedance state of the link. Similarly, the amplitude attenuation coefficient directly reflects the energy loss of the link and is strongly correlated with the DC resistance and contact resistance of the line. Therefore, these two ratio parameters, from two orthogonal dimensions in the frequency domain (rise time) and amplitude domain, together constitute a fingerprint of the link's physical state, providing a reliable benchmark for subsequent accurate diagnosis.

[0035] It should be noted that even under known intact conditions, the amplitude attenuation coefficient of the transmission link is not absolutely equal at different levels. This is because, for example, the dielectric constant of the insulating medium of the transmission cable (such as PVC, FPC substrate) is voltage-dependent, resulting in slight differences in the distributed capacitance under different signal amplitudes; the metal-oxide-metal structure of the connector contact interface exhibits Schottky barrier characteristics at low voltages, and its equivalent series resistance changes nonlinearly with the signal amplitude; or the finite linearity of the transmitting driver and receiving amplifier also introduces measurable nonlinear distortion within the full scale range.

[0036] The combination of these factors results in each specific link possessing its own unique fingerprint-level nonlinear characteristics. Therefore, measuring and storing this inherent nonlinearity during the factory calibration phase is to establish the baseline nonlinearity characteristics of the link, rather than assuming that a perfectly functional link is completely linear. In subsequent diagnostics, when the link's nonlinearity significantly increases relative to this baseline (e.g., due to rectification effects introduced by connector oxidation or voltage-capacitance distortion caused by moisture in the insulation medium), it can be effectively detected. Compared to using a fixed threshold, this baseline comparison strategy can adapt to the process variations of different batches of cables and links of different lengths, resulting in higher diagnostic sensitivity and a lower false alarm rate.

[0037] Step S12: Calculate the inherent characteristic parameters based on the transceiver response parameters and store the inherent characteristic parameters in a non-volatile memory.

[0038] Specifically, the inherent characteristic parameters include: (1) The ratio of the rising edge time at the receiving end to the rising edge time at the transmitting end is used to characterize the degree of time-domain distortion of the signal in the transmission link.

[0039] (2) The ratio of the received signal amplitude to the transmitted signal amplitude at each level is used as the amplitude attenuation coefficient for each level, and is denoted as follows: This is used to characterize the degree of energy loss in the transmission link at different energy levels; and to calibrate the inherent nonlinearity of the link calculated from the amplitude attenuation coefficient of each level. It is used to characterize the level of inherent nonlinear distortion of the link in an intact state.

[0040] The rise time ratio and amplitude attenuation coefficient at each level serve as inherent characteristic parameters of the link, reflecting the physical state of the transmission link from both time and amplitude dimensions. Exceeding the corresponding threshold in either dimension indicates a link anomaly. This dual-dimensional diagnostic approach effectively distinguishes different fault types: a significantly increased rise time ratio while the amplitude attenuation coefficient remains relatively normal indicates increased capacitive load on the link (e.g., cable compression or connector oxidation); a significantly decreased amplitude attenuation coefficient while the rise time ratio remains relatively normal indicates an additional resistive load on the link (e.g., poor contact or partial short circuit); and both abnormalities indicate a severe comprehensive link fault.

[0041] It should be noted that using a ratio instead of the absolute time delay difference can effectively eliminate the common-mode error introduced by temperature drift and individual transceiver differences in absolute time measurement, thus improving the long-term stability of calibration parameters. Simultaneously, in a silent state without any applied excitation signal, the background noise signal at the receiving end of the transmission link is collected, and its peak-to-peak value in the time domain is extracted as the background noise parameter, which is then stored in non-volatile memory.

[0042] After the above calibration is completed, the stored inherent characteristic parameters and background noise parameters will be used as the judgment criteria for the subsequent S2 link diagnosis stage, and will be directly called during each power-on self-diagnosis.

[0043] In some embodiments, the self-diagnosis method for circuit faults in an electric laparoscopic stapler provided by the present invention includes the following steps in step S2: Step S21: Before formally sending the diagnostic test signal, apply a static DC level detection to one end of the transmission line and compare the detected static level value with a preset logic level threshold range: if the static level value is higher than the system supply voltage... 70% or below the system supply voltage If the threshold value is 30%, it is determined that there is an open circuit fault or a short circuit fault to power / ground in the transmission link, immediately triggering an open circuit fault alarm and terminating the diagnostic process. The upper and lower limits of the logic level threshold range can be determined proportionally based on the actual value of the system power supply voltage and pre-stored in non-volatile memory for real-time retrieval.

[0044] Step S22: After determining that the static level is normal, a multi-level test signal sequence is sent to the transmission link. The multi-level test signal sequence includes at least two test signals with different amplitude levels. In this embodiment, preferably, the test signal sequence includes a low-level test signal (amplitude of 30% of the system logic level), a medium-level test signal (amplitude of 60% of the system logic level), and a high-level test signal (amplitude of 100% of the system logic level). The three levels of test signals are sent sequentially, and the time-domain response waveforms are synchronously captured at the transmitting and receiving ends of each level to obtain the actual response parameters of the transmitting and receiving ends at each level, including the transmitting end amplitude and the receiving end amplitude at each level.

[0045] Step S23: Calculate the real-time characteristic parameters based on the actual response parameters. These real-time characteristic parameters are the real-time ratio of the rise time at the receiving end to the rise time at the transmitting end, and the real-time amplitude attenuation coefficient. Compare the real-time characteristic parameters with the inherent characteristic parameters stored in the non-volatile memory. If the real-time rise time ratio deviates from the factory-calibrated rise time ratio in the inherent characteristic parameters by a degree exceeding the first preset allowable range, or if the real-time amplitude attenuation coefficient at any level deviates from the factory-calibrated amplitude attenuation coefficient of the corresponding level in the inherent characteristic parameters by a degree exceeding the second preset allowable range, then an impedance abnormality is determined and the process terminates; if the above deviations do not exceed the corresponding ranges, then the real-time nonlinear distortion coefficient is calculated; if the real-time nonlinear distortion coefficient exceeds a preset nonlinear threshold, then a nonlinear abnormality warning is triggered and subsequent diagnostics continue; if it does not exceed the preset nonlinear threshold, then a nonlinear flag is not triggered and subsequent diagnostics continue.

[0046] The first and second preset allowable ranges are respectively defined by closed intervals consisting of the product of their respective inherent characteristic parameters and preset margin coefficients as the upper limit and the product of the product of the two preset margin coefficients as the lower limit. If the range is exceeded, it is determined that the impedance characteristics of the transmission link have deviated significantly, that is, there is an impedance abnormality fault. The impedance abnormality alarm is immediately triggered and the diagnostic process is terminated. The ratio comparison method can effectively offset the common-mode effects caused by the fluctuation of the driving capability of the transmitting end and the threshold drift of the receiving end. It is only sensitive to the change of the intrinsic impedance of the link, thereby improving the robustness of impedance abnormality judgment.

[0047] If the response parameters are missing, i.e., the receiver does not have a valid rising edge response or the response amplitude is lower than the preset valid amplitude judgment threshold, then it is directly judged as an impedance abnormality and terminated.

[0048] The effective amplitude determination threshold is determined based on the quantization noise floor of the receiver's ADC and the minimum recognizable swing of the comparator, specifically as follows:

[0049] in, This represents the effective value of the background noise at the receiving end. This is the maximum offset voltage input to the comparator at the receiving end. When this calculated value is less than 15% of the amplitude at the transmitting end, 15% of the amplitude at the transmitting end is used as the threshold; when it is greater than 50%, 50% is used. The default recommended value of 30% is the typical result of the above calculation under conventional circuitry (12-bit ADC, noise peak-to-peak value <10mV). This default value can meet the needs of most motorized endoscopic anastomosis device applications and does not require user adjustment.

[0050] It should be noted that the open / short circuit determination in S21 and the impedance anomaly determination in S23 may overlap in terms of fault type. That is, the same open circuit fault may manifest as a static level anomaly in S21, but as a missing response parameter in S23. However, the determination in S21 is executed first, so the open circuit fault is detected and the process is terminated in S21, and will not enter the S23 branch. The missing response parameter determination in S23 is mainly for the situation where S21 detection is normal (static level is normal) but the dynamic response is abnormal, that is, the link impedance is significantly increased, resulting in excessive signal attenuation, but not reaching the level of static short circuit / open circuit.

[0051] Furthermore, based on the transmitting and receiving amplitudes at each level obtained in step S22, the real-time amplitude attenuation coefficient for each level is calculated:

[0052] in, , These represent the received signal amplitudes at low, medium, and high levels, respectively. , , These represent the amplitude of the transmitting signal at low, medium, and high levels, respectively.

[0053] Calculate real-time nonlinear distortion coefficients :

[0054] Read the link's inherent nonlinearity calibration value from nonvolatile memory. And calculate the nonlinear decision threshold. :

[0055] in, A preset nonlinear margin coefficient is used, ranging from 1.5 to 3.0; a larger value indicates a more lenient judgment. In this embodiment, it is based on the 12-bit ADC and the inherent nonlinearity of the measured link. Approximately 2%, take ,but If the ADC resolution or link material of the actual circuit changes, those skilled in the art can adjust it based on actual measurements. Recalculate.

[0056] like If the link linearity is normal and no nonlinearity-related flags are triggered, proceed to step S24; if If the link exhibits inconsistent transmission characteristics under different signal amplitudes, it is considered a link nonlinearity anomaly warning. This could be caused by poor connector contact, nonlinearity of the insulation medium, or the driving device entering the nonlinear region. The link nonlinearity anomaly warning flag is triggered, but the diagnostic process does not terminate; step S24 and subsequent steps continue, but the warning flag is reported along with the diagnostic results.

[0057] It should be noted that the above-mentioned real-time nonlinear distortion coefficient determination logic is based on the following: In an ideal linear transmission link, the amplitude attenuation coefficient of signals with different amplitude levels should remain consistent after passing through the link. If there are nonlinear factors in the link (such as semiconductor devices entering the nonlinear region, connectors generating rectification effects, and changes in the dielectric constant of the insulating medium under different voltages), the attenuation coefficients at different levels will show significant differences. Therefore, by calculating the percentage of the range of the attenuation coefficients at the three levels to the median, the degree of nonlinear distortion can be effectively quantified. This algorithm does not depend on a specific nonlinear model and has wide applicability. The median is used as the denominator for normalization, eliminating the influence of the link's basic attenuation on the determination result. The preset nonlinear margin coefficient range (1.5~3.0) is an empirical value obtained by performing frequency sweep and withstand voltage tests on a batch of known intact and new cable assemblies of different ages and statistically analyzing the distribution of their nonlinear distortion coefficients. Those skilled in the art can fine-tune and solidify this coefficient before shipment according to the characteristic fluctuation range of the actual batch of devices.

[0058] This embodiment selects low, medium, and high voltage levels for nonlinear detection because two voltage levels can only reflect the slope change of a line segment and cannot distinguish between symmetrical and asymmetrical nonlinearity; while four or more voltage levels can provide higher-order distortion information, they significantly increase diagnostic time and system overhead. Comparative tests were conducted on commonly used cable assemblies (including PVC insulated wire, FPC flexible flat cable, coaxial shielded wire, etc.) of electric endoscopic staplers within the 0~5V signal range. The three-level scheme, while ensuring a diagnostic time ≤50ms, exhibits significantly better sensitivity than the two-level scheme. Further increasing the number of voltage levels provides limited improvement in sensitivity but significantly increases diagnostic time. Therefore, the three-level scheme offers the best overall performance in engineering practice.

[0059] Step S24: During the transmission of the diagnostic test signal, the changes in electrical parameters between the transmission line and its adjacent lines are simultaneously acquired. This coupling voltage amplitude refers to the voltage signal induced on spatially adjacent lines due to electromagnetic field coupling and leakage resistance coupling when the test signal is transmitted on the target transmission line.

[0060] The method for acquiring the amplitude of the coupling voltage is as follows: the receiving end of the adjacent line is connected to the analog-to-digital conversion channel through a high-impedance buffer amplifier (input impedance ≥ 1MΩ), and the voltage of the adjacent line is sampled during the transmission of the test signal to eliminate the interference of the sampling circuit on the state of the adjacent line itself.

[0061] The coupling voltage amplitude is compared with the insulation judgment threshold determined based on the background noise. The insulation judgment threshold is the sum of the preset safe voltage base value and the background noise parameter multiplied by a preset factor, which satisfies the following relationship:

[0062] in, The threshold for insulation determination, To preset the safe voltage base value, This refers to the background noise parameter. This is the preset magnification; if the coupling voltage amplitude does not exceed... If the insulation is normal, the coupling voltage amplitude is greater than 100%. Furthermore, the phase difference θ between the coupling voltage and the test signal at the transmitting end is obtained through synchronous sampling. If θ is close to 90° (i.e., the capacitive coupling component is dominant), it indicates that the coupling voltage is mainly generated by the inherent distributed capacitance between the lines, which is a normal physical phenomenon and will not trigger an insulation alarm. If θ is close to 0° (i.e., the resistive leakage component is dominant and in phase with the test signal), it indicates that there is leakage impedance between adjacent lines, and an insulation abnormality is determined. An alarm is immediately triggered and the process is terminated. The phase difference θ is obtained by performing digital phase detection (such as zero-crossing detection) after synchronously sampling the test signal at the transmitting end and the coupling voltage of adjacent lines.

[0063] Specifically, the equipment design standard requires that the insulation resistance between the transmission cable and its adjacent lines be no less than [value missing]. (Unit: MΩ), the maximum voltage amplitude of the diagnostic test signal is... (Unit: V) Then, when the insulation is in a critically intact state, the maximum induced voltage generated by leakage coupling on adjacent lines is... The following empirical formula can be used to estimate:

[0064] in, This is the input impedance of the receiving end (in MΩ), determined by the receiving end circuit design. ,in, The safety factor (ranging from 1.2 to 2.0) is used to provide a margin for component tolerances and testing errors.

[0065] This threshold setting method superimposes a dynamic margin proportional to the measured background noise on top of the system's inherent noise floor, which avoids false alarms caused by noise spikes and ensures effective detection of weak leakage signals.

[0066] It should be noted that the impedance detection in step S23 and the insulation detection in step S24 synchronously acquire underlying physical data during the transmission of the test signal, but the judgment logic is executed in priority order: the impedance judgment in step S23 (including nonlinear distortion judgment) is executed first. If S23 determines that the impedance is abnormal and triggers termination, the process ends directly, and the insulation judgment in S24 is not executed; only when the judgment in S23 passes (without triggering termination) will the insulation judgment in S24 be executed using the synchronously acquired data. Although the two share the data acquisition window, the judgment logic is executed serially to ensure that impedance abnormalities are isolated first before insulation judgment.

[0067] Step S25: If no abnormality is determined in steps S21 to S24 (except for the link nonlinearity abnormality warning flag triggered by step S23), then the first signal is output; the first signal is a high-level active state enable flag, which is used to notify the back-end source end diagnostic module that the current physical transmission link is in good condition, so as to allow the subsequent reference source diagnostic and front-end acquisition diagnostic to start.

[0068] If the link nonlinearity abnormality warning flag has been triggered, the warning flag and the first signal are transmitted to the back-end module in parallel. The first signal is still output normally, and subsequent source-end diagnosis and channel diagnosis continue to be executed. The warning information is included in the final diagnosis result.

[0069] It should be noted that steps S21 to S24 are executed in a predetermined order. Steps S21 and S22 are executed sequentially, while steps S23 and S24 are executed after S22 is completed. Once any step triggers an anomaly determination, all subsequent steps are terminated, and step S25 and subsequent diagnostic processes are no longer executed. This early termination mechanism ensures that link anomalies are completely isolated before diagnosis at the source and channel ends, preventing abnormal signals caused by physical layer faults from interfering with subsequent diagnostic stages, thereby ensuring the certainty of fault location and the reliability of diagnostic results.

[0070] The preset margin coefficient is a dimensionless constant greater than 1, and its value is related to the nominal impedance tolerance and temperature drift of the transmission line. In this embodiment, the nominal impedance tolerance of the transmission line is ±10%, and the drift within the operating temperature range (-10℃ to +60℃) is ±5%. The sum of these two values ​​results in a total deviation upper limit of 15%, therefore the preset margin coefficient is set to 1.15 (i.e., 1 + 15%). If the impedance tolerance or temperature drift differs in the actual circuit design, those skilled in the art can adjust it according to the same principle based on the measured upper limit of deviation, and then store the adjusted value in non-volatile memory. This value can achieve a balance between the false alarm rate and the missed detection rate.

[0071] Preset magnification The confidence coefficient is determined based on the statistical distribution of the background noise, such as taking 3-6 times the standard deviation. In order to provide sufficient dynamic margin for the background noise in insulation judgment to ensure the sensitivity of capturing weak leakage current signals, this embodiment actually adopts... =2.0. This value has been verified by electromagnetic compatibility testing. It can cover the typical range of the coupling coefficient of adjacent cables under conventional PCB layout (≤0.8) and leave a safety margin of 2.5 times.

[0072] In some embodiments, the self-diagnosis method for circuit faults in an electric laparoscopic stapler provided by the present invention includes the following steps in step S3: Step S31: After receiving the first signal, start the source-end diagnosis stage. If the first signal carries a link nonlinearity abnormality warning flag, then cache the warning flag and report it together when the final diagnosis result is output.

[0073] The first signal is a high-level active state enable flag, which indicates that the transmission link has passed the aforementioned static detection, impedance detection, and insulation detection, and the physical layer is in good condition.

[0074] Step S32, perform reference source anomaly determination: switch the output of the internal bandgap reference source to a dedicated analog-to-digital conversion channel. This dedicated channel is not multiplexed with any external signals, and its front-end analog switch maintains low charge injection characteristics during switching to ensure that the reference sampling value is not affected by the impedance of the external signal path and transient interference from the switch; using the current system reference voltage as the full-scale reference source of the analog-to-digital conversion channel, read the digitized value of the bandgap reference source and record it as... The factory calibration value of the bandgap reference source is read from non-volatile memory. And calculate the deviation ratio:

[0075] Deviation ratio The preset proportional threshold is compared with the actual nominal accuracy of the bandgap reference source, which is determined based on the manufacturer's nominal accuracy and the expected temperature drift within the operating temperature range. Specifically, it is calculated as: safety margin factor × percentage of the reference source's nominal accuracy + expected temperature drift contribution. The safety margin factor ranges from 2.0 to 3.0, and the expected temperature drift contribution is the reference source temperature coefficient (e.g., 50 ppm / ℃) multiplied by the difference between the equipment's highest operating temperature and its factory-calibrated temperature. Using this formula, the corresponding preset proportional threshold can be directly calculated based on the actual nominal accuracy of the selected reference source.

[0076] like If the system reference voltage drifts or the bandgap reference source itself fails, a reference anomaly alarm is immediately triggered, and all subsequent diagnostic steps are terminated, with no further front-end and channel diagnostics performed. Otherwise, the reference source is deemed normal, and the process proceeds to the next step. The use of a dedicated channel and threshold settings based on nominal accuracy effectively isolates external signal crosstalk to the reference measurement, ensuring the accuracy and reliability of reference anomaly detection and preventing systematic deviations in all subsequent analog-to-digital conversion values ​​due to reference voltage inaccuracy.

[0077] It should be noted that this step tests the absolute consistency of the bandgap reference source output voltage with its factory calibration value, provided that the analog-to-digital conversion channel uses a proportional measurement architecture, meaning that the ADC's full-scale reference voltage and the sample-and-hold capacitor's charging voltage both originate from the same system reference voltage. Under this architecture, and All operations are performed using the system reference voltage at the same moment as a reference for proportional quantization. If the ADC in the actual circuit adopts a non-proportional architecture (such as using an external independent precision reference source), this step will directly determine whether the system reference voltage has drifted, and the determination threshold will be adjusted accordingly to the absolute voltage comparison value. Under this non-proportional architecture, the preset proportional threshold should be replaced with the absolute voltage deviation threshold. The absolute voltage deviation threshold is determined by multiplying the nominal accuracy of the system reference voltage (such as ±1%) by a safety factor of 1.5. Those skilled in the art can adjust it according to this principle based on the accuracy of the reference source actually selected.

[0078] Step S33: After the reference source is determined to be normal, perform front-end anomaly determination: apply a known standard power supply voltage to the remote sensor. ,in, Powered by an internal precision voltage regulator, the output accuracy exceeds the requirements of the remote sensor, and this power supply voltage is independent of the system's main power supply to eliminate the influence of power fluctuations on the sensor output. After the remote sensor stabilizes its response, its return signal is sampled through the analog-to-digital conversion channel to obtain the remote sampled value. .

[0079] Based on the output characteristics of the remote sensor, a lower limit of the effective range is preset. and upper limit Determined according to the following calculations: ;

[0080] in, This is a preset low-end percentage, ranging from 1% to 20%. For a typical sensor with an output range of 0 to 5V, 10% is preferred. The preset high-end percentage ranges from 1% to 20%. For typical sensors with an output range of 0 to 5V, 10% is preferred. These values ​​can be configured based on the actual sensor's output characteristics, accuracy level, and the system's allowable error range, and are pre-stored in non-volatile memory. To ensure universality, in practical implementation, the full-scale output range and accuracy specifications given in the sensor datasheet can be set to 1.2 to 1.5 times the upper limit of the sensor's allowable error.

[0081] like or If the fault is detected, the remote sensor itself is determined to be faulty, or the connection between the sensor and the transmission line is broken or poorly contacted. This immediately triggers a front-end fault alarm and terminates subsequent diagnostics. Otherwise, the front-end is determined to be normal.

[0082] The known standard supply voltage applied to the remote sensor is maintained in a continuous state to supply the multi-channel synchronous sampling used in step S4.

[0083] Step S34: If no abnormality is determined in steps S32 and S33, a second signal is output. The second signal is a logic-level active start flag, which is used to notify the subsequent channel diagnostic stage that the current system reference source and front-end sensor are in normal condition, allowing multi-channel synchronous sampling and consistency determination to be performed.

[0084] It should be noted that steps S32 and S33 are executed sequentially, with the reference anomaly determination in step S32 preceding the front-end anomaly determination. This order ensures that invalid judgments are not made on subsequent front-end sampled values ​​when the system reference voltage drifts, thereby avoiding front-end misjudgments due to reference inaccuracy and ensuring the sequential logic of fault location and the certainty of diagnostic conclusions. The preset proportional threshold, preset low-end percentage, and preset high-end percentage are all pre-stored in non-volatile memory for real-time retrieval.

[0085] In some embodiments, the self-diagnosis method for circuit faults in an electric laparoscopic stapler provided by the present invention includes the following steps in step S4: Step S41: After receiving the second signal, start the channel diagnostic stage; the second signal is a logic-level active start flag, which indicates that the system reference source and remote sensor are in normal condition, allowing subsequent multi-channel synchronous sampling and consistency determination to be performed.

[0086] Step S42, perform synchronous multi-channel sampling: the same analog signal returned from the remote end is simultaneously fanned out to three independent analog-to-digital conversion channels through printed circuit board traces. Each of the three analog-to-digital conversion channels has an independent sample-and-hold circuit and converter core, and shares the same hardware sample-and-hold trigger pulse.

[0087] Before first use or during system maintenance, a consistency calibration must be performed on the three channels.

[0088] The specific steps for conformance calibration are as follows: (1) Switch the output of the internal precision reference source (accuracy ±0.5%) to the common input of the three channels through an analog switch, and disconnect the remote sensor connection at the same time.

[0089] (2) The software triggers the calibration process. Each of the three channels collects no less than 64 conversion values ​​under the same sampling trigger pulse, and the average value is taken to obtain the result. .

[0090] (3) Calculate the total mean of the three channels Deviation coefficient of each channel .

[0091] (4) The data is stored in non-volatile memory and checked each time the system starts to ensure it is within the range of 0.95 to 1.05. If it exceeds this range, a calibration failure alarm is triggered. This calibration failure state is a prerequisite abnormal condition for the channel diagnostic module. Specifically, it triggers a channel calibration failure alarm, directly outputs an unrecoverable diagnostic result, and skips the consistency determination steps S43 and S44. Simultaneously, the operating mode is switched to safe shutdown mode, disallowing any degraded operation. This prerequisite check ensures that the channel diagnostic module performs consistency determination only if the three channels have been correctly calibrated, avoiding misleading conclusions caused by performing inter-channel consistency comparisons when calibration data is invalid.

[0092] After calibration, each real-time value of subsequent diagnostic sampling Average Make corrections to ensure that inherent deviations between channels are eliminated.

[0093] It should be noted that consistency calibration is a preparatory step for channel diagnostics, performed only once before initial use or during system maintenance, and the calibration results are stored in non-volatile memory. Each time a power-on self-diagnostic is performed, the stored deviation coefficients are first checked to see if they are within the range of 0.95 to 1.05. If they exceed this range, a calibration failure alarm is triggered and channel diagnostics are terminated. If all three calibration coefficients are within the valid range, it indicates that the inherent deviation between channels has been effectively corrected. After continuing with synchronous multi-channel sampling in this step, the process proceeds to step S43 for consistency determination. This pre-calibration step does not involve repeated calibration for each power-on and does not affect the overall timing of the factory calibration in S1 and the power-on self-diagnostic processes in S2-S4.

[0094] Step S43: Calculate the range of the three channel conversion values ​​obtained after correction. (the difference between the maximum and minimum values) ,in, For the same preset percentage, This is the full-scale value.

[0095] like If the three channel conversion values ​​are highly consistent, the system is normal, and a normal diagnostic result is output, ending the self-diagnosis process. This threshold determination method can quickly filter out normal fluctuations caused by inherent system noise and minor quantization errors, avoiding false alarms.

[0096] Step S44, if Then proceed to the fine-grained decision branch: sort the three transformed values ​​by numerical value and take the median value as the median. Calculate the absolute deviation of each transformed value from the median value, i.e. .

[0097] If the following condition is met: There exists and exactly one channel Make Meanwhile, the absolute deviation between the conversion values ​​of the other two channels is no greater than [missing value]. Then determine the channel If a single channel fails, its conversion value is discarded, and the arithmetic mean of the remaining two channel conversion values ​​is taken as the final valid output value. Simultaneously, a single-channel fault alarm is immediately triggered, and the system's operating mode is forcibly switched to safety-restricted mode. In safety-restricted mode, the motor drive power of the electric endoscopic stapler is limited to 30% of its rated power, and new cutting / anastomosis operations are prohibited. The system is only allowed to complete the currently performed action before automatically stopping and prompting the user to return for maintenance. If a system-level synchronization anomaly is detected, an unrecoverable system-level alarm is triggered, and the motor drive power is immediately cut off. No degraded operation is permitted to ensure patient safety.

[0098] This decision-making logic utilizes the three-channel majority voting principle to accurately identify and automatically isolate the failure of a single hardware channel, ensuring that the system can still provide reliable data acquisition in single-fault mode, thus improving the system's fault tolerance and availability.

[0099] If the absolute deviation between the conversion values ​​of any two of the three channels is greater than 100%, then the absolute deviation between the conversion values ​​of any two channels is greater than 100%. If the error is not detected, it is determined to be a system-level synchronization anomaly or a strong external interference fault. In this case, a valid value cannot be determined by majority vote, and a system-level alarm is immediately triggered, terminating the diagnostic process. This judgment condition can effectively distinguish between single-point faults and systemic faults, avoid outputting false valid data in the event of common-mode interference or reference source failure, and ensure the safe shutdown of surgical instruments in the event of severe anomalies.

[0100] It should be noted that under this judgment condition, there may be situations where the deviations between each pair of the three channels are not uniform, meaning that the three conversion values ​​are significantly dispersed and no two channels have conversion values ​​that are close. In this case, it is impossible to determine which channel is the reliable channel through majority voting. Therefore, it is conservatively judged as a system-level anomaly and an alarm is triggered to ensure that potentially erroneous data is not output when valid data cannot be confirmed. This judgment principle conforms to the design requirement of prioritizing the safety of medical devices.

[0101] Step S45: After completing the above determination, the diagnostic results and valid output values ​​(if applicable) are reported to the main controller through the communication interface, and the corresponding safety actions are performed according to the determination type, including but not limited to normal output, single-fault degraded operation or system-level emergency shutdown.

[0102] It should be noted that the three analog-to-digital conversion channels are all independent hardware channels, and the consistency of their conversion values ​​is affected by factors such as common-mode interference, reference voltage fluctuations, and sampling clock jitter. This step adopts a two-level judgment strategy based on the range and median value, which can realize the self-detection and self-isolation of faults by utilizing the redundant voting between channels without an additional reference source. No external standard signal source is required, which reduces the system complexity and cost.

[0103] Same preset percentage By statistical determination during the factory calibration stage, the same known standard signal (such as an internal precision reference source) is sampled synchronously on the three channels at least 100 times. The range of the three channels is calculated for each sampling. The maximum value among all ranges is taken, divided by the full scale, and multiplied by a safety factor (value 1.5~3.0) to determine the range. The result is then stored in non-volatile memory.

[0104] This embodiment also provides a computer device applicable to the self-diagnosis method for circuit faults in an electric laparoscopic stapler, including a memory and a processor; the memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions to implement the self-diagnosis method for circuit faults in an electric laparoscopic stapler as proposed in the above embodiment.

[0105] The computer device can be a terminal, comprising a processor, memory, communication interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, carrier networks, NFC (Near Field Communication), or other technologies. The display screen can be an LCD screen or an e-ink screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad on the computer device's casing, or an external keyboard, touchpad, or mouse.

[0106] This embodiment also provides a storage medium storing a computer program that, when executed by a processor, implements the self-diagnosis method for circuit faults in an electric laparoscopic anastomosis device as proposed in the above embodiments.

[0107] In summary, this invention constructs a four-layer hierarchical, progressive self-diagnostic architecture comprising factory calibration, physical layer diagnostics, source-end diagnostics, and channel diagnostics, with an early termination mechanism between each layer. This mechanism ensures that once a clear fault is diagnosed at a lower level (such as the physical layer), the diagnostic process immediately terminates, preventing further higher-level diagnostic steps. This not only avoids the time wastage and potential logical confusion caused by ineffective testing on hardware with known faults, but more importantly, it isolates the impact of faults from a system logic perspective, preventing misjudgments at higher levels due to lower-level anomalies (such as reference voltage drift or transmission link breakage). This ensures the certainty of fault location and the reliability of diagnostic conclusions, overcoming the shortcomings of existing technologies that only output a comprehensive health index without accurately locating the faulty component. Simultaneously, in the channel diagnostic stage, three independent ADC channels synchronously sample the same analog signal. Combined with a two-level consistency judgment strategy based on range and median values, single-channel faults can be effectively identified and automatically isolated. Even in single-fault mode, valid sampled values ​​can still be output and the system can switch to a safety-restricted operating mode, significantly improving the reliability of surgical instrument acquisition and system safety in complex electromagnetic environments.

[0108] 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, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.

Claims

1. A method for self-diagnosis of a circuit failure of an electric-powered endoscopic anastomat, characterized by, The application relates to a method for testing a transmission link, comprising the following steps: Before the device is shipped and the transmission link is in a known good state, a calibration is performed on the transmission link to obtain inherent characteristic parameters and background noise parameters; The calibration is performed in the known good state, test pulses are sent to the transmission link, response parameters of the transceiver end are obtained, and the link inherent characteristic parameters and the background noise parameters are calculated and stored; The inherent characteristic parameters include a rising edge time ratio of the receiving end and the sending end in the factory calibration and amplitude attenuation coefficients at various levels in the factory calibration, which are obtained through the factory calibration and stored in a non-volatile memory; The background noise parameters are signal peak-to-peak values under no excitation; The amplitude attenuation coefficient is the ratio of the signal amplitude of the receiving end to the signal amplitude of the sending end; Test signals are sent, link abnormalities are determined according to signal responses and the inherent characteristic parameters, insulation abnormalities are determined according to electrical parameters of adjacent lines and the background noise parameters, and if no abnormality is determined, a first signal is output; After the first signal is received, reference abnormalities are determined according to reference sampling values, front-end abnormalities are determined according to remote sampling values, and if no abnormality is determined, a second signal is output; After the second signal is received, the validity of consistency calibration coefficients of all channels is checked, through post-synchronization multi-channel sampling, normality, single fault or system abnormality is determined according to consistency of conversion values of all channels; The conversion channels in the synchronization multi-channel sampling are three independent analog-to-digital conversion channels; channel diagnosis determines the consistency of conversion values of all channels, comprising the following steps: The difference between the maximum value and the minimum value in the three conversion values is calculated as a range; If the range is not greater than the same preset percentage of the full range, it is determined to be normal; If the range is greater than the same preset percentage of the full range, then: If only one conversion value of a channel deviates from the median value of the three conversion values by more than the same preset percentage of the full range, and the deviation between the conversion values of the other two channels is not greater than the same preset percentage of the full range, it is determined to be a single-channel fault and the corresponding channel is removed, and the average value of the remaining two channels is output; If the deviation between conversion values of any two channels of the three channels is greater than the same preset percentage of the full range, it is determined to be a system synchronization abnormality or an interference fault, and a system-level alarm is triggered.

2. The method for self-diagnosis of circuit failure of an electric-powered endoscopic anastomat according to claim 1, characterized in that, Before the test signals are sent, a static level of one end of the transmission line is detected, and if the level is abnormal, a disconnection fault is determined and terminated; After the test signals are sent, actual response parameters of the transceiver end are obtained, and real-time characteristic parameters are calculated according to the actual response parameters; The real-time characteristic parameters include real-time rising edge time ratios of the receiving end and the sending end and real-time amplitude attenuation coefficients; If the real-time rising edge time ratio deviates from the factory-calibrated rising edge time ratio in the inherent characteristic parameters by more than a first preset allowable range, or the real-time amplitude attenuation coefficient at any level deviates from the factory-calibrated amplitude attenuation coefficient at the corresponding level in the inherent characteristic parameters by more than a second preset allowable range, an impedance abnormality is determined and terminated. If none of the above deviations exceeds the corresponding range, a real-time nonlinear distortion coefficient is calculated; if the real-time nonlinear distortion coefficient exceeds a preset nonlinear threshold, a nonlinear abnormality early warning is triggered and subsequent diagnosis is continued; if the preset nonlinear threshold is not exceeded, a nonlinear flag is not triggered and subsequent diagnosis is continued; If the response parameter is missing, impedance abnormality is determined and termination is performed; The first preset allowable range and the second preset allowable range are respectively constituted by a closed interval with a product of a respective corresponding intrinsic characteristic parameter and a preset margin coefficient as an upper limit and a product of the preset margin coefficient and an inverse as a lower limit. During transmission of the test signal, a coupling voltage amplitude between the transmission line and its adjacent line is synchronously collected as an electric parameter variation, and the coupling voltage amplitude is compared with an insulation determination threshold determined based on the background noise parameter; if the coupling voltage amplitude exceeds the insulation determination threshold, insulation abnormality is determined.

3. The method for self-diagnosis of circuit failure of an electric-powered endoscopic anastomat according to claim 2, characterized in that, The insulation determination threshold determined based on the background noise is a sum of a preset safety voltage base value and a product of the background noise parameter and a preset multiplier; The real-time rising edge time ratio is a ratio of a real-time rising edge time of the receiving end to a real-time rising edge time of the sending end. The real-time amplitude attenuation coefficient is a ratio of a real-time signal amplitude of the receiving end to a real-time signal amplitude of the sending end at each level.

4. The method for self-diagnosis of circuit failure of an electric-powered endoscopic anastomat according to claim 1, characterized in that, In the source end diagnosis, the obtaining of the reference sampling value comprises: The internal bandgap reference source is connected to an independent dedicated channel, and a value of the bandgap reference source is read based on a current system reference voltage; The factory calibration value of the bandgap reference source is stored in a nonvolatile memory, and out-of-limit deviation of the calibration value is a deviation of the read value from the factory calibration value exceeding a preset proportion threshold; After the reference source is determined to be normal, front-end abnormality determination is performed, a known standard power supply voltage is applied to the remote sensor before sampling of the remote return signal, and after the remote sensor stably responds, the return signal is sampled through an analog-to-digital conversion channel to obtain a remote sampling value, which is compared with a preset effective range to determine whether there is abnormality; The preset effective range is an interval between a preset low-end percentage and a preset high-end percentage of the known standard power supply voltage.

5. The method for self-diagnosis of circuit failure of an electric-powered endoscopic anastomat according to claim 1, characterized in that, The synchronous connection of the same signal to multiple conversion channels comprises: The same analog signal returned by the remote end is simultaneously fan-out to each analog-to-digital conversion channel through printed circuit board wiring, and each channel shares the same hardware sampling hold trigger pulse.

6. The method for self-diagnosis of circuit failure of an electric-powered endoscopic anastomat according to claim 1, characterized in that, The calibration, link diagnosis, source end diagnosis and channel diagnosis are sequentially performed in the order, and after abnormality determination of any diagnosis step, corresponding fault alarm is triggered and all subsequent diagnosis steps are terminated.

7. A circuit failure self-diagnosis system for an electric-powered endoscopic anastomat, based on the circuit failure self-diagnosis method for an electric-powered endoscopic anastomat according to any one of claims 1 to 6, characterized by: The method comprises: A reference calibration module is configured to perform calibration on the transmission link once before the device is shipped and the transmission link is in a known good state to obtain intrinsic characteristic parameters and a background noise parameter; A physical layer diagnosis module is configured to transmit a test signal, determine link abnormality according to signal response and the intrinsic characteristic parameters, determine insulation abnormality according to electric parameters of adjacent lines and the background noise, and output a first signal if no abnormality is determined. An internal signal diagnosis module is configured to determine a reference abnormality according to a reference sampling value and a front-end abnormality according to a far-end sampling value after receiving the first signal, and output a second signal if no abnormality is determined. A channel diagnosis module is configured to check validity of a consistency calibration coefficient of each channel after receiving the second signal, determine normality, single failure or system abnormality according to consistency of conversion values of each channel through post-synchronization multi-channel sampling.

Citation Information

Patent Citations

  • Electric endoscope anastomat and control method and control device thereof

    CN114533165A

  • Method for realizing circuit detection of electric anastomat by using signal tracker

    CN122386077A

  • Multi-parameter intelligent diagnosis algorithm for aircraft power supply quality evaluation

    CN122109902A

  • Fault detection method and system for intelligent measurement switch

    CN122150826A