Adaptive isolation adjustment method and system based on 9350 chip guard grating and medium
By using a safety barrier based on the 9350 chip, multi-dimensional environmental perception and three-level mode adaptive switching are adopted to solve the anti-interference problem of traditional safety barriers in complex electromagnetic environments, realize the stability of signal transmission and equipment safety, and improve the real-time performance and energy efficiency of industrial automation systems.
Patent Information
- Application Number
- CN202511000010.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-21
- Publication Date
- 2025-10-28
Smart Images

Figure CN120856731A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of safety barriers, and more specifically, to an adaptive isolation adjustment method, system, and medium for a safety barrier based on a 9350 chip. Background Technology
[0002] In the field of industrial automation, the stability and security of signal transmission are crucial, especially in high-interference and high-risk scenarios such as chemical engineering, power systems, and intelligent manufacturing. While traditional safety barriers provide basic electrical isolation and explosion-proof protection, their anti-interference capabilities in complex electromagnetic environments are limited, and they lack dynamic adaptability. This makes signal transmission susceptible to interference from sources such as frequency converters, motors, and wireless devices, leading to data packet loss, communication interruptions, and even equipment damage. Furthermore, changes in environmental factors such as temperature and humidity in industrial settings also affect signal transmission quality. Existing technologies often employ fixed protection strategies, failing to optimize and adjust according to real-time operating conditions, resulting in low energy efficiency or insufficient protection.
[0003] To address the aforementioned issues, existing technologies typically employ solutions such as hardware filtering, static isolation, or protocol conversion. However, these methods suffer from drawbacks such as slow response speed, poor compatibility, and high power consumption. For example, traditional safety barriers require manual switching of operating modes under strong interference, failing to meet the real-time and reliability requirements of industrial automation. Furthermore, protection mechanisms based on fixed thresholds are prone to malfunctions due to environmental fluctuations, impacting production efficiency.
[0004] Therefore, there is an urgent need for an adaptive safety barrier technology that can intelligently sense environmental interference and dynamically adjust protection strategies to balance signal integrity, equipment safety, and energy efficiency optimization. Summary of the Invention
[0005] In view of the above problems, the purpose of this invention is to provide an adaptive isolation adjustment method, system and medium based on a 9350 chip safety barrier. The safety barrier designed based on the 9350 chip is used for power isolation and USB signal isolation. Through multi-dimensional environmental perception, dynamic interference assessment and three-level mode adaptive switching, it effectively solves the key problems in industrial signal isolation. This invention combines real-time data acquisition, historical trend analysis and temperature and humidity compensation, realizing a technological leap from passive protection to active adaptation, and providing highly reliable and low-power communication protection for edge devices of the Industrial Internet of Things.
[0006] The first aspect of this invention provides an adaptive isolation adjustment method based on a 9350 chip safety barrier, the method comprising: Based on a preset acquisition period, the first voltage information of the safety barrier is detected; Based on the first voltage information, the first interference frequency and the first noise are obtained; Based on a preset interference threshold, first interference information is obtained according to the first interference frequency and the first noise; Obtain historical interference information and combine it with the first interference information to obtain the second interference information; Determine whether the second interference information is higher than a preset first interference threshold; If so, then enter safe mode; If not, then determine whether the second interference information is higher than the preset second interference threshold; If so, then enter enhanced mode; If not, then enter standard mode; Adjust the communication frequency, drive current, or configure the communication protocol according to the operating mode.
[0007] In this scheme, obtaining the first interference information based on a preset interference threshold, according to the first interference frequency and the first noise, specifically involves: If the first interference frequency is less than a preset first frequency threshold, the interference score is set to a preset first interference score. If the first interference frequency is within the range of a preset first frequency threshold and a preset second frequency threshold, then the interference score is set to a preset second interference score. If the first interference frequency is greater than the preset second frequency threshold, the interference score is set to the preset third interference score. Determine whether the first noise is greater than a preset first noise threshold; If so, the interference coefficient is set to the first interference coefficient; If not, the interference coefficient is set to the second interference coefficient; The first interference information is obtained by multiplying the interference score and the interference coefficient.
[0008] In this solution, obtaining historical interference information and combining it with the first interference information to obtain the second interference information specifically includes: At least three interference information records are obtained, weights are assigned using a time decay model, and the average interference value is obtained by combining the first interference information. Determine whether the average interference value exceeds a preset first interference score threshold; If so, the second interference information is set based on the larger of the average interference value and the preset first interference score reference value; If not, then set the second interference information based on the average interference value.
[0009] In this solution, after determining whether to enter safe mode, the specific steps include: Based on the second interference information, determine the isolation voltage information; Adjust the drive current according to the isolation voltage information; Adjust the communication frequency to the first communication frequency; Configure the communication protocol to add CRC32 checksum; Detecting transient pulse voltage; If the transient pulse voltage exceeds a preset pulse voltage threshold, the system switches to the backup isolation channel.
[0010] In this solution, the process of determining whether to enter enhanced mode specifically includes: Based on the second interference information, determine the isolation voltage information; Adjust the drive current according to the isolation voltage information; Based on the first interference frequency and the first noise, activate and set the FIR filter; Configure the communication protocol to switch to a preset industrial enhancement mode, and set the data frame format based on the industrial enhancement mode; Adjust the communication frequency to the second communication frequency; Obtain the first temperature information; If the first temperature information exceeds a preset first temperature threshold, a graded frequency reduction mechanism is triggered based on the first temperature information.
[0011] In this solution, the process of determining whether to enter standard mode specifically includes: The drive current is adjusted according to the preset standard isolation voltage; Adjust the communication frequency to the standard communication frequency; Activate the protocol self-enumeration mechanism, respond to the protocol switching command of the communicating party, and configure it as the backup communication protocol; The energy efficiency optimization mechanism is activated. If no device is connected for more than a preset idle time threshold, the clock signal corresponding to the channel is turned off.
[0012] A second aspect of the present invention provides an adaptive isolation adjustment system based on a 9350 chip safety barrier, including an adaptive isolation adjustment method program based on a 9350 chip safety barrier. When the adaptive isolation adjustment method program based on a 9350 chip safety barrier is executed by the processor, it implements the following steps: Based on a preset acquisition period, the first voltage information of the safety barrier is detected; Based on the first voltage information, the first interference frequency and the first noise are obtained; Based on a preset interference threshold, first interference information is obtained according to the first interference frequency and the first noise; Obtain historical interference information and combine it with the first interference information to obtain the second interference information; Determine whether the second interference information is higher than a preset first interference threshold; If so, then enter safe mode; If not, then determine whether the second interference information is higher than the preset second interference threshold; If so, then enter enhanced mode; If not, then enter standard mode; Adjust the communication frequency, drive current, or configure the communication protocol according to the operating mode.
[0013] In this scheme, obtaining the first interference information based on a preset interference threshold, according to the first interference frequency and the first noise, specifically involves: If the first interference frequency is less than a preset first frequency threshold, the interference score is set to a preset first interference score. If the first interference frequency is within the range of a preset first frequency threshold and a preset second frequency threshold, then the interference score is set to a preset second interference score. If the first interference frequency is greater than the preset second frequency threshold, the interference score is set to the preset third interference score. Determine whether the first noise is greater than a preset first noise threshold; If so, the interference coefficient is set to the first interference coefficient; If not, the interference coefficient is set to the second interference coefficient; The first interference information is obtained by multiplying the interference score and the interference coefficient.
[0014] In this solution, obtaining historical interference information and combining it with the first interference information to obtain the second interference information specifically includes: At least three interference information records are obtained, weights are assigned using a time decay model, and the average interference value is obtained by combining the first interference information. Determine whether the average interference value exceeds a preset first interference score threshold; If so, the second interference information is set based on the larger of the average interference value and the preset first interference score reference value; If not, then set the second interference information based on the average interference value.
[0015] A third aspect of the present invention provides a computer-readable storage medium comprising an adaptive isolation adjustment method program based on a 9350 chip security barrier, wherein when the adaptive isolation adjustment method program based on a 9350 chip security barrier is executed by a processor, the steps of the adaptive isolation adjustment method based on a 9350 chip security barrier as described in any of the preceding claims are implemented.
[0016] This invention provides an adaptive isolation adjustment method, system, and medium based on a 9350 chip safety barrier. It detects voltage information at a preset period, extracts interference frequency and noise characteristics, and generates a comprehensive interference assessment result by combining historical data. Based on the interference assessment result, it switches between three operating modes: a safe mode, an enhanced mode, and a standard mode. Based on the corresponding safe mode, it adaptively matches isolation strategies and parameters. This invention uses a frequency and noise weighted algorithm to quantify the interference level, achieving accurate environmental perception. Through historical data moving averages and trend prediction, it avoids false triggering by instantaneous interference. It also integrates a temperature and humidity compensation mechanism to ensure measurement accuracy in harsh environments, thereby improving the security and economy of industrial IoT edge devices. Attached Figure Description
[0017] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope.
[0018] Figure 1 A flowchart of an adaptive isolation adjustment method for a 9350 chip-based safety barrier according to the present invention is shown; Figure 2 A flowchart illustrating the calculation of first interference information provided in an embodiment of the present invention is shown. Figure 3 A flowchart illustrating the calculation of second interference information provided in an embodiment of the present invention is shown. Figure 4 A block diagram of an adaptive isolation adjustment system based on a 9350 chip safety barrier according to the present invention is shown. Detailed Implementation
[0019] 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 are only some embodiments of the present invention, and not all embodiments. 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.
[0020] Unless otherwise defined, all terms (including technical and scientific terms) used in embodiments of this invention shall have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. It should also be understood that terms such as those defined in a common dictionary shall be interpreted as having a meaning consistent with their meaning in the context of the relevant art, and not as being interpreted in an idealized or highly formalized sense, unless expressly defined in this embodiment of the invention.
[0021] The terms "first," "second," and similar words used in the embodiments of this invention do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "an," "a," or "the" do not indicate a quantity limitation, but rather indicate the presence of at least one. Similarly, terms such as "including" or "comprising" mean that the element or object preceding the word encompasses the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. The steps preceding or following the steps in the method of the embodiments of this invention are not necessarily performed precisely in sequence. Instead, various steps can be processed in reverse order or simultaneously. Furthermore, other operations can be added to these processes, or one or more steps can be removed from these processes.
[0022] In addition, the functional modules in the various embodiments of the present invention can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0023] Figure 1 The flowchart illustrates an adaptive isolation adjustment method for a 9350 chip-based safety barrier according to the present invention.
[0024] like Figure 1 As shown, the first aspect of this invention discloses an adaptive isolation adjustment method based on a 9350 chip security barrier, the method comprising: S102, based on a preset acquisition cycle, detects the first voltage information of the safety barrier; S104, Based on the first voltage information, obtain the first interference frequency and the first noise; S106, Based on a preset interference threshold, first interference information is obtained according to the first interference frequency and the first noise; S108, Obtain historical interference information, and combine it with the first interference information to obtain the second interference information; S110, determine whether the second interference information is higher than a preset first interference threshold; S112, if so, then enter safe mode; S114, if not, determine whether the second interference information is higher than the preset second interference threshold; S116, if so, then enter enhanced mode; S118, if not, then enter standard mode; S120 adjusts the communication frequency, drives the current, or configures the communication protocol according to the operating mode.
[0025] It should be noted that the first voltage information is the power supply voltage value of the 9350 chip; the first interference frequency is the main frequency of the interference signal; the first noise is the interference signal strength; the first interference information is the interference level score before smoothing; and the second interference information is the interference level score after smoothing. A higher interference level score indicates a higher signal interference intensity.
[0026] In this embodiment, after system startup, as one implementation method, the voltage signal at the power input terminal of the safety barrier is continuously acquired at a preset period of 100ms. A high-speed ADC module captures complete waveform data, including steady-state voltage fluctuations and transient pulses. Fast Fourier Transform analysis is performed on the acquired voltage waveform to extract the highest energy interference frequency component within the 800kHz to 5GHz frequency band, and the effective value intensity of the power supply noise is calculated simultaneously. The interference frequency is compared and classified with preset 800MHz low-frequency thresholds and 2GHz high-frequency thresholds. A quantified interference risk score is generated based on whether the noise intensity exceeds 65dB. The system automatically retrieves historical interference records from the last five periods, employing a time-attenuation weighted algorithm, where records with older time periods have lower weights. Combined with the current interference score, the average interference value is calculated to generate the final environmental interference level. A three-level decision is executed based on the interference level: when the interference level is higher than the first interference threshold, the safety mode is immediately activated; if the interference level is between the first and second interference thresholds, the enhanced mode is activated; when the interference level is lower than the second interference threshold, standard mode operation is maintained, and the channel sleep energy-saving mechanism is activated. Based on the corresponding operating mode, the communication frequency, drive current, or communication protocol are adjusted to adaptively meet the requirements of isolation signals. This embodiment addresses sudden electromagnetic interference in industrial environments through dynamic interference assessment and employs a three-level mode switching to prevent equipment overload damage; furthermore, in standard mode, a sleep mechanism reduces standby power consumption.
[0027] Figure 2 A flowchart illustrating the calculation of first interference information provided by an embodiment of the present invention is shown.
[0028] According to embodiments of the present invention, such as Figure 2 As shown, the step of obtaining the first interference information based on the preset interference threshold, the first interference frequency, and the first noise specifically involves: S202, if the first interference frequency is less than a preset first frequency threshold, the interference score is set to a preset first interference score. S204, if the first interference frequency is within the range of a preset first frequency threshold and a preset second frequency threshold, then the interference score is set to a preset second interference score. S206, if the first interference frequency is greater than the preset second frequency threshold, the interference score is set to the preset third interference score. S208, determine whether the first noise is greater than a preset first noise threshold; S210, if so, then the interference coefficient is set to the first interference coefficient; S212, if not, then the interference coefficient is set to the second interference coefficient; The first interference information is obtained by multiplying the interference score and the interference coefficient.
[0029] This embodiment provides a calculation process for first interference information, which specifically includes: setting an interference score, a second interference score, or a third interference score based on the relationship between the first interference frequency and a preset first frequency threshold and a second frequency threshold; setting an interference coefficient as a first interference coefficient or a second interference coefficient based on the relationship between the first noise and a preset first noise threshold; and calculating the product of the interference score and the interference coefficient to obtain the first interference information.
[0030] It should be noted that the interference threshold includes a frequency threshold and a noise threshold; wherein, the frequency threshold includes a first frequency threshold and a second frequency threshold, and the noise threshold includes a first noise threshold. As one implementation method, the main interference frequency in the voltage information is first analyzed. When a frequency below 800MHz is detected, it is marked as low-frequency interference and assigned a base score of 30 points; when the frequency is in the 800MHz to 2GHz range, it is classified as mid-frequency interference with a score of 40 points; high-frequency interference exceeding 2GHz is scored 50 points. The power supply noise energy characteristics are analyzed simultaneously. If the effective noise value is greater than 65dB, a high-risk coefficient of 1.5 times is used; otherwise, a standard coefficient of 1.0 times is used. The first interference information is obtained by multiplying the base score and the risk coefficient. In the evaluation process of this embodiment, special attention is paid to the destructiveness of high-frequency interference above 2GHz, with its scoring weight being twice that of low-frequency interference, ensuring that the system has a sensitive response capability to high-order harmonics generated by switching power supplies and frequency converters in industrial sites. This embodiment achieves a single numerical expression of complex interference through two-dimensional evaluation of frequency and noise energy, improving the accuracy of interference identification.
[0031] Figure 3 A flowchart illustrating the calculation of a second interference information provided by an embodiment of the present invention is shown.
[0032] According to embodiments of the present invention, such as Figure 3 As shown, the step of obtaining historical interference information and combining it with the first interference information to obtain the second interference information specifically includes: S302, acquire at least 3 interference information records, assign weights using a time decay model, and combine with the first interference information to obtain the average interference value; S304, determine whether the average interference value exceeds a preset first interference score threshold; S306, If so, set the second interference information based on the larger of the average interference value and the preset first interference score reference value; S308, if not, then set the second interference information according to the average interference value.
[0033] It should be noted that, in this embodiment, as one implementation method, the four most recent historical interference score records are retrieved from the circular buffer, and weights are assigned using a time decay model, for example, weights of 0.4, 0.3, 0.2, and 0.1, with the most recent record assigned a weight of 0.4. Combined with the current interference information, a moving average is calculated and recorded as the interference average, used to eliminate the risk of misjudgment caused by transient interference. Furthermore, this embodiment also includes a high-interference state maintenance mechanism. As one implementation method, when the interference average exceeds the 60-point safety threshold, the current interference value is compared with the historical average, and the larger one is selected as the final interference level; for example, if the current value is 55 points but the average is 62 points, 62 points is still used as the second interference information to avoid frequent fluctuations in the protection level in a continuous interference environment. When the interference average does not exceed the 60-point safety threshold, the average is directly used as the second interference information. This embodiment avoids single-intrusion false triggering of mode switching through historical data smoothing and uses a large-value strategy to ensure a strong protection state in high-risk environments.
[0034] According to an embodiment of the present invention, after determining that a safe mode has been entered, the specific steps include: Based on the second interference information, determine the isolation voltage information; Adjust the drive current according to the isolation voltage information; Adjust the communication frequency to the first communication frequency; Configure the communication protocol to add CRC32 checksum; Detecting transient pulse voltage; If the transient pulse voltage exceeds a preset pulse voltage threshold, the system switches to the backup isolation channel.
[0035] It should be noted that "safe mode" refers to entering the highest protection mode, ensuring communication quality through low communication frequency and high isolation voltage. As one implementation method, safe mode is activated when the interference score exceeds 75 points. The system dynamically increases the electrical isolation strength based on the interference level; for example, with a base isolation voltage of 3kV, an additional 0.5kV is added for every 5-point increase in the interference score. The drive current of the isolation optocoupler is synchronously calculated and adjusted based on the isolation voltage to overcome signal attenuation. At the communication level, the clock frequency is locked to 6MHz, and a 32-bit CRC checksum is added to each data frame. Data integrity is verified in real time via a hardware accelerator. Furthermore, a transient pulse monitoring circuit is activated in parallel; when a voltage spike exceeding 200V is detected, the signal path is switched to the backup isolation channel within 0.5ms. For the highest protection level of safe mode, boost isolation is used to block energy transfer in dangerous areas, and CRC checks are added to reduce the bit error rate.
[0036] According to an embodiment of the present invention, after determining that the enhanced mode has been entered, the specific steps include: Based on the second interference information, determine the isolation voltage information; Adjust the drive current according to the isolation voltage information; Based on the first interference frequency and the first noise, activate and set the FIR filter; Configure the communication protocol to switch to a preset industrial enhancement mode, and set the data frame format based on the industrial enhancement mode; Adjust the communication frequency to the second communication frequency; Obtain the first temperature information; If the first temperature information exceeds a preset first temperature threshold, a graded frequency reduction mechanism is triggered based on the first temperature information.
[0037] It should be noted that the enhanced mode indicates the entry into the second-highest protection mode, achieving a balance between communication efficiency and isolation strength by enhancing isolation characteristics. As one implementation method, enhanced mode is activated when the interference score exceeds 45 points. The system dynamically increases the electrical isolation strength based on the interference level; for example, with a base isolation voltage of 1.5kV, an additional 0.5kV is added for every 10-point increase in the interference score. The drive current of the isolation optocoupler is synchronously calculated and adjusted based on the isolation voltage to overcome signal attenuation. Simultaneously, the FIR filter is dynamically configured based on the interference spectrum characteristics, and the narrowband suppression coefficient of the filter is adjusted. Furthermore, the communication protocol switches to industrial enhanced mode, inserting an 8-byte industrial header containing a timestamp, device ID, and CRC checksum into the standard USB data frame header. At the communication rate level, the clock frequency is set to 24MHz by default. In response to real-time temperature monitoring, a graded frequency reduction mechanism is activated when the temperature exceeds 85°C. As one implementation method, the frequency is reduced by one level for every 5°C increase, with frequency levels including 24MHz, 20MHz, 16MHz, and 12MHz. In this embodiment, a programmable FIR filter is used to eliminate noise in a specific frequency band, and the accuracy of communication is improved based on protocol enhancement; in addition, a temperature linkage mechanism reduces the packet loss rate.
[0038] According to an embodiment of the present invention, after determining that the standard mode has been entered, the specific steps include: The drive current is adjusted according to the preset standard isolation voltage; Adjust the communication frequency to the standard communication frequency; Activate the protocol self-enumeration mechanism, respond to the protocol switching command of the communicating party, and configure it as the backup communication protocol; The energy efficiency optimization mechanism is activated. If no device is connected for more than a preset idle time threshold, the clock signal corresponding to the channel is turned off.
[0039] It should be noted that Standard Mode indicates entering a low-protection mode, prioritizing communication efficiency and energy efficiency optimization. As one implementation method, Standard Mode is entered when the interference score does not exceed 45 points. Standard Mode uses a 1.5kV base isolation voltage by default to calculate and adjust the drive current of the isolation optocoupler. In Standard Mode, the system maintains full-speed communication at 48MHz. Furthermore, a protocol self-enumeration mechanism is activated, continuously monitoring the host computer's enumeration request characteristics. When the communicating party transmits a protocol switching command, it automatically configures to use the backup communication protocol to improve communication efficiency. In addition, an energy efficiency optimization mechanism is activated; for communication channels with long-term inactivity, the clock signal is turned off to reduce energy consumption.
[0040] It is worth mentioning that this also includes: increasing the number of interference information records based on the cumulative running time.
[0041] It should be noted that in this embodiment, as the cumulative operating time of the equipment increases, the system dynamically expands the historical reference range to compensate for signal attenuation caused by the aging of electronic components. As one implementation method, the number of interference information records used to calculate the average interference value is increased by 10% every 100 hours to compensate for signal attenuation caused by the aging of electronic components. This embodiment uses dynamically recorded values to mitigate false alarms caused by equipment aging.
[0042] It is worth mentioning that the energy efficiency optimization mechanism specifically includes: If any channel remains in an unconnected state for more than a preset idle time threshold, the corresponding channel will be set to sleep mode. After entering sleep mode, the clock signal and interference detection signal are turned off, and only the monitoring of the device's access pin is maintained; Obtain the first power consumption information; Based on the first power consumption information, an energy efficiency report is generated and uploaded to the backend.
[0043] It should be noted that this embodiment provides an energy efficiency optimization mechanism. In this embodiment, the activity status of each channel is tracked in real time. When the USB differential signal level of a specific channel remains unchanged for 10 minutes, a sleep sequence is triggered. The isolation transformer drive power is turned off, the protocol processor clock is stopped, and the interference detection circuit of that channel is disabled, retaining only the 5V pull-up resistor monitoring function of the device access pin. During sleep, the system scans the device insertion signal every 5 seconds, and the wake-up response time is controlled within 10ms. The power consumption monitoring circuit records the sleep duration percentage, mode switching frequency, and total energy saving of each channel, including peak power consumption, average power consumption, and energy saving percentage, and uploads the data to the monitoring backend via a virtual serial port. This embodiment optimizes system energy consumption through sleep mode, and the energy efficiency report assists in operation and maintenance decisions.
[0044] It is worth mentioning that it also includes: Obtain the first temperature information; Determine whether the first temperature information exceeds a preset operating temperature threshold; If so, then the first temperature drift coefficient is obtained based on the first temperature information; Adjust the first voltage information according to the first temperature drift coefficient; Based on the adjusted first voltage information, the first interference frequency and the first noise are obtained.
[0045] It should be noted that this embodiment provides a temperature compensation mechanism for compensating for temperature drift in the first voltage information under high-temperature conditions. Based on a preset temperature detection cycle, temperature data is monitored in real time using a temperature sensor. As one implementation method, a linear compensation algorithm is activated when the temperature exceeds 70°C. For every 10°C increase in temperature, the ADC voltage detection reference value is lowered by 0.5% to offset the measurement error caused by thermal drift. In other words, the first voltage information is adjusted based on a first temperature drift coefficient. This embodiment reduces voltage detection error through temperature drift compensation.
[0046] It is worth mentioning that it also includes: Obtain initial humidity information; Determine whether the first humidity information exceeds a preset safe humidity threshold; If so, then the humidity correction factor is obtained based on the first humidity information; The first interference information is corrected based on the humidity correction factor.
[0047] It should be noted that this embodiment provides a humidity compensation mechanism to correct the first interference information in a high-humidity environment. Based on a preset humidity detection cycle, a capacitive humidity sensor monitors the ambient humidity data in real time. When the humidity exceeds 85%, a humidity compensation algorithm is activated to obtain a humidity correction coefficient, which is used to correct the first interference information. The second interference information is then calculated based on the corrected first interference information, ensuring that the true interference level can still be accurately identified in a high-humidity environment. This embodiment improves the accuracy of interference detection in high-humidity environments through the humidity compensation mechanism.
[0048] Figure 4 A block diagram of an adaptive isolation adjustment system based on a 9350 chip safety barrier according to the present invention is shown.
[0049] like Figure 4 As shown, the second aspect of the present invention discloses an adaptive isolation adjustment system 4 based on a 9350 chip safety barrier, including a memory 41 and a processor 42. The memory includes an adaptive isolation adjustment method program based on a 9350 chip safety barrier. When the processor executes the adaptive isolation adjustment method program based on a 9350 chip safety barrier, it performs the following steps: Based on a preset acquisition period, the first voltage information of the safety barrier is detected; Based on the first voltage information, the first interference frequency and the first noise are obtained; Based on a preset interference threshold, first interference information is obtained according to the first interference frequency and the first noise; Obtain historical interference information and combine it with the first interference information to obtain the second interference information; Determine whether the second interference information is higher than a preset first interference threshold; If so, then enter safe mode; If not, then determine whether the second interference information is higher than the preset second interference threshold; If so, then enter enhanced mode; If not, then enter standard mode; Adjust the communication frequency, drive current, or configure the communication protocol according to the operating mode.
[0050] It should be noted that the first voltage information is the power supply voltage value of the 9350 chip; the first interference frequency is the main frequency of the interference signal; the first noise is the interference signal strength; the first interference information is the interference level score before smoothing; and the second interference information is the interference level score after smoothing. A higher interference level score indicates a higher signal interference intensity.
[0051] In this embodiment, after system startup, as one implementation method, the voltage signal at the power input terminal of the safety barrier is continuously acquired at a preset period of 100ms. A high-speed ADC module captures complete waveform data, including steady-state voltage fluctuations and transient pulses. Fast Fourier Transform analysis is performed on the acquired voltage waveform to extract the highest energy interference frequency component within the 800kHz to 5GHz frequency band, and the effective value intensity of the power supply noise is calculated simultaneously. The interference frequency is compared and classified with preset 800MHz low-frequency thresholds and 2GHz high-frequency thresholds. A quantified interference risk score is generated based on whether the noise intensity exceeds 65dB. The system automatically retrieves historical interference records from the last five periods, employing a time-attenuation weighted algorithm, where records with older time periods have lower weights. Combined with the current interference score, the average interference value is calculated to generate the final environmental interference level. A three-level decision is executed based on the interference level: when the interference level is higher than the first interference threshold, the safety mode is immediately activated; if the interference level is between the first and second interference thresholds, the enhanced mode is activated; when the interference level is lower than the second interference threshold, standard mode operation is maintained, and the channel sleep energy-saving mechanism is activated. Based on the corresponding operating mode, the communication frequency, drive current, or communication protocol are adjusted to adaptively meet the requirements of isolation signals. This embodiment addresses sudden electromagnetic interference in industrial environments through dynamic interference assessment and employs a three-level mode switching to prevent equipment overload damage; furthermore, in standard mode, a sleep mechanism reduces standby power consumption.
[0052] According to an embodiment of the present invention, obtaining the first interference information based on a preset interference threshold, according to the first interference frequency and the first noise, specifically involves: If the first interference frequency is less than a preset first frequency threshold, the interference score is set to a preset first interference score. If the first interference frequency is within the range of a preset first frequency threshold and a preset second frequency threshold, then the interference score is set to a preset second interference score. If the first interference frequency is greater than the preset second frequency threshold, the interference score is set to the preset third interference score. Determine whether the first noise is greater than a preset first noise threshold; If so, the interference coefficient is set to the first interference coefficient; If not, the interference coefficient is set to the second interference coefficient; The first interference information is obtained by multiplying the interference score and the interference coefficient.
[0053] This embodiment provides a calculation process for first interference information, which specifically includes: setting an interference score, a second interference score, or a third interference score based on the relationship between the first interference frequency and a preset first frequency threshold and a second frequency threshold; setting an interference coefficient as a first interference coefficient or a second interference coefficient based on the relationship between the first noise and a preset first noise threshold; and calculating the product of the interference score and the interference coefficient to obtain the first interference information.
[0054] It should be noted that the interference threshold includes a frequency threshold and a noise threshold; wherein, the frequency threshold includes a first frequency threshold and a second frequency threshold, and the noise threshold includes a first noise threshold. As one implementation method, the main interference frequency in the voltage information is first analyzed. When a frequency below 800MHz is detected, it is marked as low-frequency interference and assigned a base score of 30 points; when the frequency is in the 800MHz to 2GHz range, it is classified as mid-frequency interference with a score of 40 points; high-frequency interference exceeding 2GHz is scored 50 points. The power supply noise energy characteristics are analyzed simultaneously. If the effective noise value is greater than 65dB, a high-risk coefficient of 1.5 times is used; otherwise, a standard coefficient of 1.0 times is used. The first interference information is obtained by multiplying the base score and the risk coefficient. In the evaluation process of this embodiment, special attention is paid to the destructiveness of high-frequency interference above 2GHz, with its scoring weight being twice that of low-frequency interference, ensuring that the system has a sensitive response capability to high-order harmonics generated by switching power supplies and frequency converters in industrial sites. This embodiment achieves a single numerical expression of complex interference through two-dimensional evaluation of frequency and noise energy, improving the accuracy of interference identification.
[0055] According to an embodiment of the present invention, obtaining historical interference information and combining it with the first interference information to obtain second interference information specifically includes: At least three interference information records are obtained, weights are assigned using a time decay model, and the average interference value is obtained by combining the first interference information. Determine whether the average interference value exceeds a preset first interference score threshold; If so, the second interference information is set based on the larger of the average interference value and the preset first interference score reference value; If not, then set the second interference information based on the average interference value.
[0056] It should be noted that, in this embodiment, as one implementation method, the four most recent historical interference score records are retrieved from the circular buffer, and weights are assigned using a time decay model, for example, weights of 0.4, 0.3, 0.2, and 0.1, with the most recent record assigned a weight of 0.4. Combined with the current interference information, a moving average is calculated and recorded as the interference average, used to eliminate the risk of misjudgment caused by transient interference. Furthermore, this embodiment also includes a high-interference state maintenance mechanism. As one implementation method, when the interference average exceeds the 60-point safety threshold, the current interference value is compared with the historical average, and the larger one is selected as the final interference level; for example, if the current value is 55 points but the average is 62 points, 62 points is still used as the second interference information to avoid frequent fluctuations in the protection level in a continuous interference environment. When the interference average does not exceed the 60-point safety threshold, the average is directly used as the second interference information. This embodiment avoids single-intrusion false triggering of mode switching through historical data smoothing and uses a large-value strategy to ensure a strong protection state in high-risk environments.
[0057] According to an embodiment of the present invention, after determining that a safe mode has been entered, the specific steps include: Based on the second interference information, determine the isolation voltage information; Adjust the drive current according to the isolation voltage information; Adjust the communication frequency to the first communication frequency; Configure the communication protocol to add CRC32 checksum; Detecting transient pulse voltage; If the transient pulse voltage exceeds a preset pulse voltage threshold, the system switches to the backup isolation channel.
[0058] It should be noted that "safe mode" refers to entering the highest protection mode, ensuring communication quality through low communication frequency and high isolation voltage. As one implementation method, safe mode is activated when the interference score exceeds 75 points. The system dynamically increases the electrical isolation strength based on the interference level; for example, with a base isolation voltage of 3kV, an additional 0.5kV is added for every 5-point increase in the interference score. The drive current of the isolation optocoupler is synchronously calculated and adjusted based on the isolation voltage to overcome signal attenuation. At the communication level, the clock frequency is locked to 6MHz, and a 32-bit CRC checksum is added to each data frame. Data integrity is verified in real time via a hardware accelerator. Furthermore, a transient pulse monitoring circuit is activated in parallel; when a voltage spike exceeding 200V is detected, the signal path is switched to the backup isolation channel within 0.5ms. For the highest protection level of safe mode, boost isolation is used to block energy transfer in dangerous areas, and CRC checks are added to reduce the bit error rate.
[0059] According to an embodiment of the present invention, after determining that the enhanced mode has been entered, the specific steps include: Based on the second interference information, determine the isolation voltage information; Adjust the drive current according to the isolation voltage information; Based on the first interference frequency and the first noise, activate and set the FIR filter; Configure the communication protocol to switch to a preset industrial enhancement mode, and set the data frame format based on the industrial enhancement mode; Adjust the communication frequency to the second communication frequency; Obtain the first temperature information; If the first temperature information exceeds a preset first temperature threshold, a graded frequency reduction mechanism is triggered based on the first temperature information.
[0060] It should be noted that the enhanced mode indicates the entry into the second-highest protection mode, achieving a balance between communication efficiency and isolation strength by enhancing isolation characteristics. As one implementation method, enhanced mode is activated when the interference score exceeds 45 points. The system dynamically increases the electrical isolation strength based on the interference level; for example, with a base isolation voltage of 1.5kV, an additional 0.5kV is added for every 10-point increase in the interference score. The drive current of the isolation optocoupler is synchronously calculated and adjusted based on the isolation voltage to overcome signal attenuation. Simultaneously, the FIR filter is dynamically configured based on the interference spectrum characteristics, and the narrowband suppression coefficient of the filter is adjusted. Furthermore, the communication protocol switches to industrial enhanced mode, inserting an 8-byte industrial header containing a timestamp, device ID, and CRC checksum into the standard USB data frame header. At the communication rate level, the clock frequency is set to 24MHz by default. In response to real-time temperature monitoring, a graded frequency reduction mechanism is activated when the temperature exceeds 85°C. As one implementation method, the frequency is reduced by one level for every 5°C increase, with frequency levels including 24MHz, 20MHz, 16MHz, and 12MHz. In this embodiment, a programmable FIR filter is used to eliminate noise in a specific frequency band, and the accuracy of communication is improved based on protocol enhancement; in addition, a temperature linkage mechanism reduces the packet loss rate.
[0061] According to an embodiment of the present invention, after determining that the standard mode has been entered, the specific steps include: The drive current is adjusted according to the preset standard isolation voltage; Adjust the communication frequency to the standard communication frequency; Activate the protocol self-enumeration mechanism, respond to the protocol switching command of the communicating party, and configure it as the backup communication protocol; The energy efficiency optimization mechanism is activated. If no device is connected for more than a preset idle time threshold, the clock signal corresponding to the channel is turned off.
[0062] It should be noted that Standard Mode indicates entering a low-protection mode, prioritizing communication efficiency and energy efficiency optimization. As one implementation method, Standard Mode is entered when the interference score does not exceed 45 points. Standard Mode uses a 1.5kV base isolation voltage by default to calculate and adjust the drive current of the isolation optocoupler. In Standard Mode, the system maintains full-speed communication at 48MHz. Furthermore, a protocol self-enumeration mechanism is activated, continuously monitoring the host computer's enumeration request characteristics. When the communicating party transmits a protocol switching command, it automatically configures to use the backup communication protocol to improve communication efficiency. In addition, an energy efficiency optimization mechanism is activated; for communication channels with long-term inactivity, the clock signal is turned off to reduce energy consumption.
[0063] It is worth mentioning that this also includes: increasing the number of interference information records based on the cumulative running time.
[0064] It should be noted that in this embodiment, as the cumulative operating time of the equipment increases, the system dynamically expands the historical reference range to compensate for signal attenuation caused by the aging of electronic components. As one implementation method, the number of interference information records used to calculate the average interference value is increased by 10% every 100 hours to compensate for signal attenuation caused by the aging of electronic components. This embodiment uses dynamically recorded values to mitigate false alarms caused by equipment aging.
[0065] It is worth mentioning that the energy efficiency optimization mechanism specifically includes: If any channel remains in an unconnected state for more than a preset idle time threshold, the corresponding channel will be set to sleep mode. After entering sleep mode, the clock signal and interference detection signal are turned off, and only the monitoring of the device's access pin is maintained; Obtain the first power consumption information; Based on the first power consumption information, an energy efficiency report is generated and uploaded to the backend.
[0066] It should be noted that this embodiment provides an energy efficiency optimization mechanism. In this embodiment, the activity status of each channel is tracked in real time. When the USB differential signal level of a specific channel remains unchanged for 10 minutes, a sleep sequence is triggered. The isolation transformer drive power is turned off, the protocol processor clock is stopped, and the interference detection circuit of that channel is disabled, retaining only the 5V pull-up resistor monitoring function of the device access pin. During sleep, the system scans the device insertion signal every 5 seconds, and the wake-up response time is controlled within 10ms. The power consumption monitoring circuit records the sleep duration percentage, mode switching frequency, and total energy saving of each channel, including peak power consumption, average power consumption, and energy saving percentage, and uploads the data to the monitoring backend via a virtual serial port. This embodiment optimizes system energy consumption through sleep mode, and the energy efficiency report assists in operation and maintenance decisions.
[0067] It is worth mentioning that it also includes: Obtain the first temperature information; Determine whether the first temperature information exceeds a preset operating temperature threshold; If so, then the first temperature drift coefficient is obtained based on the first temperature information; Adjust the first voltage information according to the first temperature drift coefficient; Based on the adjusted first voltage information, the first interference frequency and the first noise are obtained.
[0068] It should be noted that this embodiment provides a temperature compensation mechanism for compensating for temperature drift in the first voltage information under high-temperature conditions. Based on a preset temperature detection cycle, temperature data is monitored in real time using a temperature sensor. As one implementation method, a linear compensation algorithm is activated when the temperature exceeds 70°C. For every 10°C increase in temperature, the ADC voltage detection reference value is lowered by 0.5% to offset the measurement error caused by thermal drift. In other words, the first voltage information is adjusted based on a first temperature drift coefficient. This embodiment reduces voltage detection error through temperature drift compensation.
[0069] It is worth mentioning that it also includes: Obtain initial humidity information; Determine whether the first humidity information exceeds a preset safe humidity threshold; If so, then the humidity correction factor is obtained based on the first humidity information; The first interference information is corrected based on the humidity correction factor.
[0070] It should be noted that this embodiment provides a humidity compensation mechanism to correct the first interference information in a high-humidity environment. Based on a preset humidity detection cycle, a capacitive humidity sensor monitors the ambient humidity data in real time. When the humidity exceeds 85%, a humidity compensation algorithm is activated to obtain a humidity correction coefficient, which is used to correct the first interference information. The second interference information is then calculated based on the corrected first interference information, ensuring that the true interference level can still be accurately identified in a high-humidity environment. This embodiment improves the accuracy of interference detection in high-humidity environments through the humidity compensation mechanism.
[0071] A third aspect of the present invention provides a computer-readable storage medium comprising an adaptive isolation adjustment method program based on a 9350 chip security barrier, wherein when the adaptive isolation adjustment method program based on a 9350 chip security barrier is executed by a processor, the steps of the adaptive isolation adjustment method based on a 9350 chip security barrier as described in any of the preceding claims are implemented.
[0072] In summary, this invention provides an adaptive isolation adjustment method, system, and medium based on a 9350 chip safety barrier. It detects voltage information at a preset period, extracts interference frequency and noise characteristics, and generates a comprehensive interference assessment result by combining historical data. Based on the interference assessment result, it switches between three operating modes: a safe mode, an enhanced mode, and a standard mode. Based on the corresponding safe mode, it adaptively matches isolation strategies and isolation parameters. This invention uses a frequency and noise weighted algorithm to quantify the interference level, achieving accurate environmental perception. Through historical data moving averages and trend prediction, it avoids false triggering by instantaneous interference. It also integrates a temperature and humidity compensation mechanism to ensure measurement accuracy in harsh environments, thereby improving the security and economy of industrial IoT edge devices.
[0073] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0074] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. An adaptive isolation adjustment method based on a 9350 chip safety barrier, characterized in that, The method comprises: Based on a preset acquisition period, the first voltage information of the safety barrier is detected; Based on the first voltage information, the first interference frequency and the first noise are obtained; Based on a preset interference threshold, first interference information is obtained according to the first interference frequency and the first noise; Obtain historical interference information and combine it with the first interference information to obtain the second interference information; Determine whether the second interference information is higher than a preset first interference threshold; If so, then enter safe mode; If not, then determine whether the second interference information is higher than the preset second interference threshold; If so, then enter enhanced mode; If not, then enter standard mode; Adjust the communication frequency, drive current, or configure the communication protocol according to the operating mode.
2. The adaptive isolation adjustment method based on the 9350 chip safety barrier according to claim 1, characterized in that, The first interference information is obtained based on a preset interference threshold, the first interference frequency, and the first noise, specifically as follows: If the first interference frequency is less than a preset first frequency threshold, the interference score is set to a preset first interference score. If the first interference frequency is within the range of a preset first frequency threshold and a preset second frequency threshold, then the interference score is set to a preset second interference score. If the first interference frequency is greater than the preset second frequency threshold, the interference score is set to the preset third interference score. Determine whether the first noise is greater than a preset first noise threshold; If so, the interference coefficient is set to the first interference coefficient; If not, the interference coefficient is set to the second interference coefficient; The first interference information is obtained by multiplying the interference score and the interference coefficient.
3. The adaptive isolation adjustment method based on the 9350 chip safety barrier according to claim 1, characterized in that, The step of obtaining historical interference information and combining it with the first interference information to obtain the second interference information specifically includes: At least three interference information records are obtained, weights are assigned using a time decay model, and the average interference value is obtained by combining the first interference information. Determine whether the average interference value exceeds a preset first interference score threshold; If so, the second interference information is set based on the larger of the average interference value and the preset first interference score reference value; If not, then set the second interference information based on the average interference value.
4. The adaptive isolation adjustment method based on the 9350 chip safety barrier according to claim 1, characterized in that, After determining whether to enter safe mode, the specific steps include: Based on the second interference information, determine the isolation voltage information; Adjust the drive current according to the isolation voltage information; Adjust the communication frequency to the first communication frequency; Configure the communication protocol to add CRC32 checksum; Detecting transient pulse voltage; If the transient pulse voltage exceeds a preset pulse voltage threshold, the system switches to the backup isolation channel.
5. The adaptive isolation adjustment method based on the 9350 chip safety barrier according to claim 1, characterized in that, After determining whether to enter enhanced mode, the specific steps include: Based on the second interference information, determine the isolation voltage information; Adjust the drive current according to the isolation voltage information; Based on the first interference frequency and the first noise, activate and set the FIR filter; Configure the communication protocol to switch to a preset industrial enhancement mode, and set the data frame format based on the industrial enhancement mode; Adjust the communication frequency to the second communication frequency; Obtain the first temperature information; If the first temperature information exceeds a preset first temperature threshold, a graded frequency reduction mechanism is triggered based on the first temperature information.
6. The adaptive isolation adjustment method based on the 9350 chip safety barrier according to claim 1, characterized in that, After determining whether to enter standard mode, the specific steps include: The drive current is adjusted according to the preset standard isolation voltage; Adjust the communication frequency to the standard communication frequency; Activate the protocol self-enumeration mechanism, respond to the protocol switching command of the communicating party, and configure it as the backup communication protocol; The energy efficiency optimization mechanism is activated. If no device is connected for more than a preset idle time threshold, the clock signal corresponding to the channel is turned off.
7. An adaptive isolation adjustment system based on a 9350 chip safety barrier, characterized in that, The system includes a memory and a processor. The memory includes a program for an adaptive isolation adjustment method based on a 9350 chip security barrier. When the processor executes the program for the adaptive isolation adjustment method based on the 9350 chip security barrier, it performs the following steps: Based on a preset acquisition period, the first voltage information of the safety barrier is detected; Based on the first voltage information, the first interference frequency and the first noise are obtained; Based on a preset interference threshold, first interference information is obtained according to the first interference frequency and the first noise; Obtain historical interference information and combine it with the first interference information to obtain the second interference information; Determine whether the second interference information is higher than a preset first interference threshold; If so, then enter safe mode; If not, then determine whether the second interference information is higher than the preset second interference threshold; If so, then enter enhanced mode; If not, then enter standard mode; Adjust the communication frequency, drive current, or configure the communication protocol according to the operating mode.
8. The adaptive isolation adjustment system based on the 9350 chip safety barrier according to claim 7, characterized in that, The first interference information is obtained based on a preset interference threshold, the first interference frequency, and the first noise, specifically as follows: If the first interference frequency is less than a preset first frequency threshold, the interference score is set to a preset first interference score. If the first interference frequency is within the range of a preset first frequency threshold and a preset second frequency threshold, then the interference score is set to a preset second interference score. If the first interference frequency is greater than the preset second frequency threshold, the interference score is set to the preset third interference score. Determine whether the first noise is greater than a preset first noise threshold; If so, the interference coefficient is set to the first interference coefficient; If not, the interference coefficient is set to the second interference coefficient; The first interference information is obtained by multiplying the interference score and the interference coefficient.
9. The adaptive isolation adjustment system based on the 9350 chip safety barrier according to claim 7, characterized in that, The step of obtaining historical interference information and combining it with the first interference information to obtain the second interference information specifically includes: At least three interference information records are obtained, weights are assigned using a time decay model, and the average interference value is obtained by combining the first interference information. Determine whether the average interference value exceeds a preset first interference score threshold; If so, the second interference information is set based on the larger of the average interference value and the preset first interference score reference value; If not, then set the second interference information based on the average interference value.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, The computer-readable storage medium includes an adaptive isolation adjustment method program based on a 9350 chip security barrier. When the adaptive isolation adjustment method program based on a 9350 chip security barrier is executed by a processor, it implements the steps of the adaptive isolation adjustment method based on a 9350 chip security barrier as described in any one of claims 1 to 6.
Citation Information
Cited By
High-speed USB isolation chip and working method thereof
CN121301258A