Fire emergency lighting two-wire communication system and method based on differential encoding
By sending dual-edge detection pulses in the fire emergency lighting system and combining them with environmental sensor data to generate a compensation coefficient set, the signal distortion is dynamically compensated and a regeneration control symbol is inserted, thus solving the signal distortion problem in long-distance transmission and improving communication reliability and signal integrity.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- FUTONG ELECTRONICS ENTERPRISE QINHUANGDAO
- Filing Date
- 2025-09-12
- Publication Date
- 2026-05-19
AI Technical Summary
Traditional fire emergency lighting systems' two-bus communication is susceptible to factors such as line aging, temperature changes, and humidity corrosion during long-distance transmission, resulting in severe signal distortion, high bit error rate, and a lack of dynamic signal regeneration mechanism, which affects communication reliability.
The fire emergency node sends dual-edge detection pulses, which are combined with environmental sensor data to dynamically generate a set of compensation coefficients to compensate for signal distortion in real time. A regeneration control symbol is then inserted to trigger the shaping and amplification circuit to achieve signal regeneration.
It improves the accuracy of signal distortion correction and timing recovery, ensuring waveform integrity and communication reliability for long-distance transmission.
Smart Images

Figure CN121000552B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of fieldbus control technology, and in particular to a fire emergency lighting two-bus communication system and method based on differential coding. Background Technology
[0002] With the rapid development of intelligent buildings and smart fire protection systems, fieldbus control systems are increasingly widely used in the field of building electrical safety. As a crucial component of building life safety facilities, the communication reliability and real-time response of fire emergency lighting systems directly affect personnel evacuation efficiency and rescue success rates. Traditional fire emergency lighting control often employs multi-wire systems or simple switch signal transmission methods, resulting in complex wiring, poor system scalability, and difficulty in fault location. In recent years, communication architectures based on two-bus technology have gradually become the mainstream physical layer solution for fire emergency lighting systems due to their advantages such as simple wiring, low cost, and ease of maintenance. Two-bus systems simultaneously achieve power supply and communication functions through a single cable, reducing the complexity of engineering installation.
[0003] Traditional systems typically employ fixed thresholds or static compensation parameters for signal decoding, which struggles to effectively address dynamic signal distortion caused by factors such as line aging, temperature variations, and humidity. This is particularly problematic in long-distance transmission, where significant asymmetric widening of the rising and falling edges leads to increased bit error rates and compromised command accuracy. Furthermore, existing technologies lack sophisticated control mechanisms for the signal regeneration process. Relay nodes often utilize fixed-gain amplification or simple shaping methods, failing to dynamically adjust regeneration strategies based on real-time channel conditions. This can result in signal overshoot, ringing, or blurred edges, ultimately exacerbating signal degradation. Summary of the Invention
[0004] In view of the aforementioned existing problems, the present invention is proposed.
[0005] Therefore, this invention provides a two-bus communication method for fire emergency lighting based on differential coding to solve the problems of insufficient signal distortion compensation capability and lack of dynamic adaptability in the regeneration process.
[0006] To solve the above-mentioned technical problems, the present invention provides the following technical solution:
[0007] In a first aspect, the present invention provides a two-bus communication method for fire emergency lighting based on differential coding, comprising,
[0008] The controller of the fire emergency node sends a dual-edge detection pulse, and the lighting fixture captures the actual received duration to generate measured distortion data;
[0009] Based on measured distortion data and combined with line attenuation coefficients obtained from environmental sensors, a set of compensation coefficients is dynamically generated.
[0010] The compensation coefficient group is applied to each data bit in real time to adjust the pulse width to the compensation data bit pulse width value and generate the compensated clean differential coded signal.
[0011] Based on the compensated clean differential coded signal, the signal amplitude is detected, regeneration control characters are dynamically inserted, and an instruction signal containing regeneration control characters is generated.
[0012] Based on the instruction signal containing the regeneration control character, the signal regeneration operation is performed. The regeneration control character triggers the shaping and amplifying circuit to amplify and attenuate the signal amplitude, generating a differential coded regeneration drive signal.
[0013] As a preferred embodiment of the differential coding-based two-bus communication method for fire emergency lighting described in this invention, the controller of the fire emergency node sends a dual-edge detection pulse, and the lighting fixture captures the actual received duration to generate measured distortion data. The steps are as follows.
[0014] During the compensation cycle, the controller of the fire emergency node obtains the pulses of the voltage rising segment and falling segment through the compensation bit cycle parameter, and generates a dual-edge detection pulse signal.
[0015] The driving circuit amplifies the dual-edge detection pulse signal and modulates the pulse signal, which is then transmitted to the lighting fixture via a two-wire bus to generate a dual-edge detection pulse electrical signal after bus transmission.
[0016] The lighting fixture performs noise filtering and amplitude normalization on the dual-edge probe pulse electrical signal transmitted via the bus, and captures the complete waveform to generate dual-edge probe pulse waveform data.
[0017] Based on dual-edge probe pulse waveform data, the actual duration of the rising and falling edges is measured within the amplitude range. The signal distortion is obtained by comparing with the nominal pulse width value, and a measured distortion dataset is generated.
[0018] As a preferred embodiment of the differential coding-based two-bus communication method for fire emergency lighting described in this invention, the steps for dynamically generating a compensation coefficient set based on measured distortion data and line attenuation coefficients obtained from environmental sensors are as follows:
[0019] Based on the measured distortion dataset, environmental sensors collect temperature data, humidity data, and salinity data, and encapsulate them to generate a set of environmental parameters.
[0020] Based on the range of temperature, humidity and salinity data in the environmental parameter set, a three-dimensional matching is performed to generate the line attenuation coefficient value.
[0021] Based on the line attenuation coefficient value, and combined with the three-level attenuation coefficient threshold dynamic selection strategy, a weight allocation strategy identifier is generated.
[0022] Based on the weight allocation strategy identifier, a differential weighting operation is performed on the rising edge distortion value and falling edge distortion value in the measured distortion dataset to generate a compensation coefficient group.
[0023] As a preferred embodiment of the differential coding-based two-bus communication method for fire emergency lighting described in this invention, the steps of applying a compensation coefficient group to perform real-time compensation for each data bit and adjusting the pulse width to the compensated data bit pulse width value are as follows:
[0024] Within the differentially encoded data bit period, the high-level duration of the original waveform of the measured data bit is used to generate the current data bit pulse width measurement value;
[0025] The rising edge compensation coefficient value and falling edge compensation coefficient value in the compensation coefficient group are analyzed, their validity is verified, and the compensation coefficient value is generated.
[0026] The type of the current data bit is dynamically determined based on the compensation coefficient value, a real-time compensation amount is generated, and the compensation equation is applied to compensate the pulse width measurement value of the current data bit, generating the compensated pulse width value of the data bit.
[0027] As a preferred embodiment of the fire emergency lighting two-bus communication method based on differential coding described in this invention, the generation of the compensated clean differential coded signal refers to generating a signal waveform based on the pulse width value of the compensated data bit, and setting the rising edge slope and falling edge slope to generate the compensated clean differential coded signal.
[0028] As a preferred embodiment of the differential coding-based two-bus communication method for fire emergency lighting described in this invention, the steps for detecting the signal amplitude based on the compensated clean differential coded signal are as follows:
[0029] Based on the compensated clean differential coded signal, the signal waveform is captured by a high-speed analog-to-digital converter, the average voltage amplitude of continuous sampling period is calculated, and the regeneration demand flag is dynamically generated.
[0030] Based on the regeneration demand flag, the pre-stored regeneration node configuration table is matched with the current lighting fixture device number. If the regeneration node identity matches the current device number, a regeneration enable command signal is generated.
[0031] As a preferred embodiment of the fire emergency lighting two-bus communication method based on differential coding described in this invention, the dynamic insertion of regeneration control characters to generate an instruction signal containing regeneration control characters refers to receiving a regeneration enable instruction signal, inserting a predefined regeneration control character at the first position of the differential coded data bits, and generating an instruction signal containing regeneration control characters.
[0032] As a preferred embodiment of the differential coding-based two-bus communication method for fire emergency lighting described in this invention, the step of performing a signal regeneration operation based on an instruction signal containing a regeneration control character includes the following steps:
[0033] Extract the first byte of data from the instruction signal containing the regeneration control character, compare it with the regeneration control character, and generate a regeneration activation instruction through triple joint verification;
[0034] Based on the regeneration activation command, the line impedance parameters collected in real time by the environmental sensor are read, and the environmental adaptive gain coefficient is selected from the preset gain coefficient mapping table to generate the gain multiple setting value.
[0035] As a preferred embodiment of the differential coding-based two-bus communication method for fire emergency lighting described in this invention, wherein:
[0036] The steps for using a regeneration control symbol to trigger a shaping amplifier circuit, amplifying the attenuation signal amplitude, and generating a differentially coded regeneration drive signal are as follows.
[0037] An automatic zero-reset operational amplifier circuit is used to dynamically adjust the bias voltage of the amplifier circuit based on the gain factor setting value to generate a preliminary amplified signal.
[0038] The nonlinear filtering algorithm is activated to detect the slope changes of the rising and falling edges of the initial amplified signal. The predistortion compensation method is applied to correct the edge distortion and generate a differentially coded regenerated drive signal.
[0039] Secondly, the present invention provides a fire emergency lighting two-bus communication system based on differential coding, comprising,
[0040] The distortion data module is used by the controller of the fire emergency node to send dual-edge detection pulses, and the lighting fixture end to capture the actual received duration and generate measured distortion data.
[0041] The compensation coefficient module is used to dynamically generate a set of compensation coefficients based on measured distortion data and the line attenuation coefficient obtained from environmental sensors.
[0042] The data compensation module is used to apply a set of compensation coefficients to each data bit in real time, adjust the pulse width to the compensation data bit pulse width value, and generate a compensated clean differential coded signal.
[0043] The control character insertion module is used to detect the signal amplitude based on the compensated clean differential coded signal, dynamically insert regeneration control characters, and generate an instruction signal containing the regeneration control characters.
[0044] The signal generation module is used to perform signal regeneration operation according to the instruction signal containing the regeneration control character. It uses the regeneration control character to trigger the shaping and amplifying circuit to amplify and attenuate the signal amplitude and generate a differential coded regeneration drive signal.
[0045] The beneficial effects of this invention are as follows: by fusing dual-edge detection with environmental parameters to generate a differentiated compensation coefficient set, dynamic correction of signal distortion is achieved, improving the timing recovery accuracy; by triggering the regeneration control symbol and combining it with real-time impedance adjustment gain, on-demand signal regeneration is achieved, effectively ensuring the waveform integrity and communication reliability of long-distance transmission. Attached Figure Description
[0046] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the 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.
[0047] Figure 1 This is a flowchart of a two-bus communication method for fire emergency lighting based on differential coding.
[0048] Figure 2 This is a schematic diagram of a fire emergency lighting two-bus communication system based on differential coding.
[0049] Figure 3 This is a schematic diagram comparing the distortion of long-line repetition carriers.
[0050] Figure 4 This is a schematic diagram of the differential coded frame structure. Detailed Implementation
[0051] 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.
[0052] 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.
[0053] 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.
[0054] Reference Figures 1-4 This is one embodiment of the present invention, which provides a two-bus communication method for fire emergency lighting based on differential coding, including the following steps:
[0055] S1: The controller of the fire emergency node sends a dual-edge detection pulse, and the lighting fixture captures the actual received duration to generate measured distortion data;
[0056] S1.1: During the compensation cycle, the controller of the fire emergency node obtains the pulses of the voltage rising segment and falling segment through the compensation bit period parameter, and generates a dual-edge detection pulse signal.
[0057] Furthermore, the controller of the fire emergency node reads the compensation bit period parameter within the compensation bit period, generates a voltage rising segment pulse based on the compensation bit period parameter, and simultaneously generates a voltage falling segment pulse; the dual-bus drive circuit loads the voltage rising segment pulse and voltage falling segment pulse into the bus physical layer to generate a dual-edge detection pulse signal.
[0058] It should be noted that the compensation bit period parameter is a key parameter set in the controller in the two-bus communication method for fire emergency lighting. It defines the time base of the compensation bit signal, specifically: the compensation bit period parameter is used to generate a complete periodic signal, and the period always remains constant (see appendix). Figure 3 As shown in the figure, D'>D but T remains unchanged, the compensation bit period parameter realizes the slope compensation function by providing a stable time base, solves the signal distortion problem caused by the characteristics of long-line heavy-load lines, and ensures the accuracy of subsequent data bit decoding.
[0059] S1.2: The driving circuit amplifies the dual-edge detection pulse signal and modulates the pulse signal, which is then transmitted to the lighting fixture via a two-wire bus to generate the dual-edge detection pulse electrical signal after bus transmission.
[0060] Furthermore, the driving circuit receives the dual-edge probe pulse signal, performs signal amplification, modulates the amplified pulse signal using Manchester encoding, and transmits the modulated pulse signal through the two-bus physical layer. During transmission, the modulated pulse signal undergoes amplitude attenuation and edge distortion, generating the dual-edge probe pulse electrical signal after bus transmission.
[0061] It should be noted that the signal amplification operation receives the dual-edge probe pulse signal at the non-inverting input of the operational amplifier, sets the gain coefficient through the feedback resistor network, and uses a push-pull transistor array in the output stage. While maintaining the original pulse timing characteristics, the signal voltage amplitude is amplified to the target value, and line interference is eliminated through the common-mode rejection circuit.
[0062] S1.3: The lighting fixture performs noise filtering and amplitude normalization processing on the dual-edge detection pulse electrical signal transmitted through the bus, and captures the complete waveform to generate dual-edge detection pulse waveform data.
[0063] Furthermore, the lighting fixture receives the dual-edge probe pulse electrical signal transmitted via the bus, performs noise filtering through a low-pass filter to remove high-frequency interference components, uses a programmable gain amplifier to perform amplitude normalization processing to adjust the amplitude range of the dual-edge probe pulse electrical signal, and uses a high-speed analog-to-digital converter to capture the complete waveform data. The complete waveform data is stored in a circular buffer to generate dual-edge probe pulse waveform data. This process eliminates noise interference and amplitude attenuation problems caused by long-distance transmission, ensuring that the waveform data meets the requirements of subsequent distortion measurement.
[0064] S1.4: Based on dual-edge probe pulse waveform data, measure the actual duration of the rising and falling edges within the amplitude range, obtain the signal distortion by comparing with the nominal pulse width value, and generate a measured distortion dataset.
[0065] Furthermore, based on dual-edge detection pulse waveform data, the actual duration of the rising edge is measured within the amplitude range (example value: voltage amplitude range of 10% to 90%), and the actual duration of the falling edge is measured simultaneously. The deviation between the actual duration of the rising edge and the nominal pulse width value is marked as the rising edge distortion, and the deviation between the actual duration of the falling edge and the nominal pulse width value is marked as the falling edge distortion. The rising edge distortion value, falling edge distortion value, timestamp, and lighting fixture terminal device code are encapsulated to generate a measured distortion dataset. This process is directly related to the long-line recarrier distortion problem, and the nominal pulse width value strictly follows the constant characteristic of the compensation bit period.
[0066] It should be noted that the amplitude range refers to the voltage interval set in signal waveform measurement. The amplitude range accurately captures the effective voltage change period by eliminating noise interference areas at the beginning and end of the signal. The specific setting logic is as follows: combining the characteristics of the two-wire bus for fire emergency lighting, the low amplitude is fixed at 10% of the signal peak value, and the high amplitude is fixed at 90% of the peak value. This range can avoid measurement jitter caused by line noise, while ensuring that the measurement results of the rising and falling edge durations truly reflect the degree of line distortion.
[0067] The nominal pulse width value is derived from the compensation bit period parameter set in the controller of the fire emergency node. The compensation bit period parameter provides a standard duration reference for the rising and falling edges by defining a constant time base for the compensation bit signal.
[0068] S2: Based on the measured distortion data and combined with the line attenuation coefficient obtained from the environmental sensor, a set of compensation coefficients is dynamically generated.
[0069] S2.1: Based on the measured distortion dataset, environmental sensors collect temperature data, humidity data, and salinity data, and encapsulate them to generate a set of environmental parameters;
[0070] Furthermore, based on the measured distortion data, the environmental sensors are triggered to synchronously acquire data: the temperature sensor acquires temperature data, the humidity sensor acquires humidity data, and the salinity sensor acquires salinity data; data filtering operations are performed on the acquired temperature, humidity, and salinity data: high-frequency noise interference components are eliminated through a finite impulse response filter, and amplitude normalization is performed; the filtered temperature, humidity, and salinity data, along with a timestamp, are encapsulated to generate an environmental parameter set.
[0071] S2.2: Perform three-dimensional matching based on the range of temperature, humidity, and salinity data in the environmental parameter set to generate the line attenuation coefficient value;
[0072] Furthermore, the temperature, humidity, and salinity parameters are extracted from the environmental parameter set. A preset line attenuation coefficient mapping table is queried, and the temperature parameter value is matched with the temperature range, the humidity parameter value is matched with the humidity range, and the salinity parameter value is matched with the salinity range. When all three parameter values meet a certain set of range combination conditions, the line attenuation coefficient value corresponding to the range combination is output.
[0073] It should be noted that the line attenuation coefficient mapping table is a three-dimensional parameter matching matrix permanently stored in the flash memory of the lighting fixture. The line attenuation coefficient mapping table defines the line attenuation coefficient values (e.g., 0.8, 1.2, 1.5) based on a combination of temperature ranges (e.g., [-20, 0℃], [0, 40℃], [40, 85℃]), humidity ranges (e.g., [0, 60%], [60, 85%], [85, 100%]), and salinity ranges (e.g., [0, 5ms / cm], [5, 10ms / cm], [10, 20ms / cm]).
[0074] S2.3: Based on the line attenuation coefficient value and combined with the three-level attenuation coefficient threshold dynamic selection strategy, generate a weight allocation strategy identifier;
[0075] Specifically, the line attenuation coefficient value is dynamically compared with the three-level attenuation coefficient thresholds (example value of the first level threshold = 1.0, example value of the second level threshold = 1.3): when the line attenuation coefficient value is less than or equal to the first level threshold (1.0), the balanced weight strategy is selected; when the line attenuation coefficient value is greater than the first level threshold (1.0) and less than or equal to the second level threshold (1.3), the falling edge priority strategy is selected; when the line attenuation coefficient value is greater than the second level threshold (1.3), the rising edge priority strategy is selected, and the corresponding weight allocation strategy identifier is output.
[0076] It should be noted that the threshold of the three-level attenuation coefficient is a critical value determined by regression analysis of tens of thousands of samples based on the signal attenuation characteristics of the fire emergency lighting two-wire bus in humid tunnels, ordinary environments, and dry scenarios. The weight allocation strategy identifier directly drives the calculation of subsequent compensation coefficient groups, solves the waveform distortion problem caused by long line heavy load, and strictly follows the slope compensation mechanism.
[0077] S2.4: Based on the weight allocation strategy identifier, perform differential weighting operations on the rising edge distortion values and falling edge distortion values in the measured distortion dataset to generate a compensation coefficient set.
[0078] The system receives a weight allocation strategy identifier and simultaneously reads the rising edge and falling edge distortion values from the measured distortion dataset. When the weight allocation strategy identifier is a balanced weight strategy, it generates a rising edge compensation coefficient by multiplying the rising edge distortion value and the weight factor, and simultaneously generates a falling edge compensation coefficient by multiplying the falling edge distortion value and the weight factor. When the weight allocation strategy identifier is a falling edge priority strategy, it generates a rising edge compensation coefficient by multiplying the rising edge distortion value and the weight factor, and generates a falling edge compensation coefficient by multiplying the falling edge distortion value and the weight factor. Finally, it encapsulates the rising edge compensation coefficient value and the falling edge compensation coefficient value into a compensation coefficient group and outputs the compensation coefficient group to drive subsequent slope compensation operations.
[0079] S3: Apply the compensation coefficient group to compensate each data bit in real time, adjust the pulse width to the compensation data bit pulse width value, and generate the compensated clean differential coded signal.
[0080] S3.1: Within the differentially encoded data bit period, measure the duration of the high level of the original waveform of the data bit to generate the current data bit pulse width measurement value;
[0081] Specifically, in the differentially encoded data bit period (see appendix) Figure 4Within the frame structure shown, the starting time is determined by using a high-speed timer to locate the time point when the rising edge of the original waveform of the data bit reaches a low amplitude (example value: 10%), and the ending time is determined by synchronizing the time point when the falling edge reaches a high amplitude (example value: 90%). The time difference between the starting time and the ending time is used to generate the current pulse width measurement value of the data bit. This measurement value strictly corresponds to the actual duration of the high level in the original waveform of the data bit and is used for subsequent real-time compensation operations.
[0082] S3.2: Analyze the rising edge compensation coefficient value and falling edge compensation coefficient value in the compensation coefficient group, verify their validity, and generate the compensation coefficient value;
[0083] Specifically, the rising edge compensation coefficient value and falling edge compensation coefficient value are extracted from the compensation coefficient group; a validity verification operation is performed: it is determined whether the rising edge compensation coefficient value is within the rising edge range (example range 0.1 to 1.0, based on the compensation coefficient group analysis, used to ensure the safety boundary of signal rising edge distortion correction) and whether the falling edge compensation coefficient value is within the falling edge range (example range -1.0 to -0.1, derived from the compensation coefficient group analysis, used to ensure the electrical safety tolerance of falling edge distortion compensation). If either coefficient value exceeds the rising edge range or the falling edge range, the default value (example value 0.5) is used to replace the outlier value; and a verified compensation coefficient value is generated.
[0084] S3.3: Dynamically determine the type of the current data bit based on the compensation coefficient value, generate a real-time compensation amount, and apply the compensation equation to compensate the pulse width measurement value of the current data bit, generating the compensated pulse width value of the data bit.
[0085] Specifically, the type of the current data bit is determined based on its position in the frame structure: if the current data bit is the start of a frame (see appendix)... Figure 4 If the current data bit is a synchronization bit (see appendix), then the frame start bit compensation strategy is selected. Figure 4 If the current data bit is a data bit (see appendix), then the synchronization bit compensation strategy is selected. Figure 4 The strategy is selected based on the compensation coefficient value (rising edge priority strategy is used when the compensation coefficient value is ≥0.6, and falling edge priority strategy is used when the compensation coefficient value is <0.6); the real-time compensation amount is generated according to the selected strategy: the product of the current data bit pulse width measurement value, the corresponding weight factor and the compensation coefficient value is used as the real-time compensation amount; based on the real-time compensation amount, the compensation equation is applied to calculate the compensated data bit pulse width value.
[0086] The compensation equation is:
[0087] T1 = T2 - C;
[0088] Where T1 represents the compensated data bit pulse width value, T2 represents the current data bit pulse width measurement value, and C represents the real-time compensation amount.
[0089] S3.4: Generate a signal waveform based on the compensated data bit pulse width value, and set the rising edge slope and falling edge slope to generate a compensated clean differential coded signal.
[0090] Furthermore, upon receiving the compensated data bit pulse width value, a waveform reconstruction operation is performed: a time axis reference zero point is set, and the voltage is controlled by a programmable current source to linearly rise from zero volts to the safe voltage limit (example value = 72 nanoseconds, determined based on the rise edge slope parameter and the safe voltage limit) within a preset rise time (example value = 36 volts, using the safe voltage peak value of the DC power supply node of the fire emergency lighting two-bus), strictly following the rise edge slope parameter; the safe voltage limit is maintained constant during the high-level duration corresponding to the compensated data bit pulse width value, during which a closed-loop feedback circuit is used to calibrate the voltage amplitude in real time; the voltage is controlled by a programmable current source to linearly fall from the safe voltage limit to zero volts within a preset fall time (example value = 120 nanoseconds, determined based on the fall edge slope parameter and the safe voltage limit), strictly following the fall edge slope parameter; the reconstructed complete signal waveform is loaded onto the two-bus physical layer through the H-bridge drive circuit, and the compensated clean differential coded signal is output.
[0091] S4: Based on the compensated clean differential coded signal, detect the signal amplitude, dynamically insert regeneration control characters, and generate an instruction signal containing regeneration control characters;
[0092] S4.1: Based on the compensated clean differential coded signal, the signal waveform is captured by a high-speed analog-to-digital converter, the average voltage amplitude of the continuous sampling period is calculated, and the regeneration demand flag is dynamically generated.
[0093] Furthermore, based on the compensated clean differential coded signal, the signal waveform data of the continuous sampling period is captured by a high-speed analog-to-digital converter. The arithmetic mean of the voltage amplitude of each sampling point within the sampling period is calculated. The average voltage amplitude is dynamically compared with the regeneration trigger threshold voltage (example value: 24 volts, which is set according to a fixed ratio of the upper limit of the safe voltage and is jointly calibrated by the long-distance transmission attenuation characteristics and electrical safety margin): if the average voltage amplitude is less than the regeneration trigger threshold voltage, a valid regeneration demand flag is generated; if the average voltage amplitude is greater than or equal to the regeneration trigger threshold voltage, an invalid regeneration demand flag is generated.
[0094] Formula for calculating the average voltage amplitude over a continuous sampling period:
[0095]
[0096] Where V represents the average voltage, n represents the number of sampling periods, and v i This represents the i-th voltage value.
[0097] It should be noted that the regeneration demand flag directly drives the subsequent regeneration control character insertion operation, solving the signal attenuation problem caused by long-distance transmission.
[0098] S4.2: Based on the regeneration demand flag, match the pre-stored regeneration node configuration table with the current lighting fixture terminal device number. If the regeneration node identity is consistent with the current device number, generate a regeneration enable command signal.
[0099] Furthermore, based on the regeneration demand flag, a regeneration node identity matching process is triggered. The lighting fixture queries the pre-stored regeneration node configuration table, extracts the current lighting fixture device number, and compares the current lighting fixture device number with the regeneration node identity list in the regeneration node configuration table item by item. If a regeneration node identity completely matches the current lighting fixture device number, a high-level active regeneration enable command signal is generated. If no matching item is found, the regeneration enable command signal remains in a low-level inactive state, and a regeneration enable command signal maintaining a low-volt level is output.
[0100] It should be noted that the regeneration node configuration table is a structured data table permanently stored in the flash memory of the lighting fixture. It contains the following core fields: device number, regeneration node identification, physical location parameters, regeneration gain coefficient, maximum regeneration current limit, and regeneration response delay limit. The regeneration node identification is a Boolean value, the physical location parameters are used to dynamically optimize the regeneration path, the regeneration gain coefficient and the maximum regeneration current limit together ensure the safety boundary of signal amplification, and the regeneration response delay limit ensures real-time performance. The regeneration node configuration table is issued and permanently stored by the controller of the fire emergency node through the two-bus protocol.
[0101] S4.3: Receive the regeneration enable command signal, insert a predefined regeneration control character at the first position of the differential coded data bits, and generate a command signal containing the regeneration control character;
[0102] Furthermore, the system receives the regeneration enable command signal, locates the first position of the differential coded data bits, overwrites the original data at the first position of the differential coded data bits with the predefined regeneration control character, keeps the contents of the remaining data bits unchanged, and generates an intermediate command signal containing the regeneration control character.
[0103] It should be noted that the regeneration control character is jointly defined and generated through protocol layer instruction space analysis and Hamming distance anti-interference verification, and is specifically used to trigger signal regeneration operations.
[0104] S5: Based on the instruction signal containing the regeneration control character, perform signal regeneration operation, use the regeneration control character to trigger the shaping amplifier circuit, amplify and attenuate the signal amplitude, and generate a differential coded regeneration drive signal.
[0105] S5.1: Extract the first byte of data of the instruction signal containing the regeneration control character, compare it with the regeneration control character, and generate the regeneration activation instruction through triple joint verification;
[0106] Furthermore, the first byte of the instruction signal containing the regeneration control character is extracted, and the first byte of data is compared bit by bit with the fixed encoding of the regeneration control character; a triple joint verification operation is performed: the first verification is that all binary bits are equal, the second verification is that the timing window is synchronized, and the third verification is that the electrical characteristics are compliant; if all three verifications pass, a high-level valid regeneration activation instruction is generated, and if any verification fails, a low-level invalid state is output.
[0107] S5.2: Based on the regeneration activation command, read the line impedance parameters collected in real time by the environmental sensor, select the environmental adaptive gain coefficient from the preset gain coefficient mapping table, and generate the gain multiple setting value;
[0108] Furthermore, it receives the regeneration activation command, reads the line impedance parameters collected in real time by the environmental sensor, queries the preset gain coefficient mapping table, performs three-dimensional matching according to the range of temperature parameters, the range of humidity parameters, and the range of salinity parameters, generates an environmental adaptive gain coefficient, and generates a gain multiple setting value.
[0109] It should be noted that the line impedance parameter is a three-dimensional dataset composed of temperature, humidity, and salinity parameters collected in real time by environmental sensors. The physical meaning is as follows: the temperature parameter reflects the change in conductor resistivity, the humidity parameter characterizes the conductivity of the insulating medium, and the salinity parameter quantifies the degree of electrolytic corrosion.
[0110] The gain coefficient mapping table is a three-dimensional matrix lookup table constructed through regression analysis of large-scale environmental parameter combinations and line attenuation characteristics. Its core contents include: temperature range, humidity range, salinity range and corresponding environmental adaptive gain coefficient values.
[0111] S5.3: An automatic zero-reset operational amplifier circuit is used to dynamically adjust the bias voltage of the amplifier circuit based on the gain multiple setting value to generate a preliminary amplified signal;
[0112] Furthermore, the automatic zeroing operational amplifier circuit receives the gain multiple setting value, and the bias voltage adjustment is set to the product of the gain multiple setting value and the reference voltage. In clock phase one, it performs a zeroing operation: shorting the input stage eliminates the offset voltage. In clock phase two, it applies the bias voltage adjustment: adjusting the bias voltage of the amplifier circuit, and performing linear proportional amplification on the dual-edge probe pulse electrical signal after bus transmission to generate a preliminary amplified signal.
[0113] S5.4: Initiate the nonlinear filtering algorithm, detect the slope changes of the rising and falling edges of the initial amplified signal, apply the predistortion compensation method to correct edge distortion, and generate a differential coded regenerated drive signal.
[0114] Furthermore, a nonlinear filtering algorithm is initiated to perform real-time sampling on the initially amplified signal waveform, detecting the rate of change of the rising edge slope and the rate of change of the falling edge slope. When the rate of change of the rising edge slope exceeds the slope fluctuation threshold (example value = ±10%, set jointly based on circuit noise tolerance and signal integrity requirements), a predistortion compensation method is applied to generate an inverse compensation waveform, which is superimposed on the original rising edge segment. When the rate of change of the falling edge slope exceeds the slope fluctuation threshold (example value = ±10%, set jointly based on circuit noise tolerance and signal integrity requirements), a predistortion compensation method is applied to generate an inverse compensation waveform, which is superimposed on the original falling edge segment. The corrected signal waveform is output and converted into a differential coded regenerated drive signal by a differential encoder.
[0115] It should be noted that edge distortion refers to the unexpected deformation of the waveform at the rising or falling edge of a signal during transmission, resulting in timing misalignment and decoding errors.
[0116] This embodiment also provides a fire emergency lighting two-bus communication system based on differential coding, including:
[0117] The distortion data module is used by the controller of the fire emergency node to send dual-edge detection pulses, and the lighting fixture end to capture the actual received duration and generate measured distortion data.
[0118] The compensation coefficient module is used to dynamically generate a set of compensation coefficients based on measured distortion data and the line attenuation coefficient obtained from environmental sensors.
[0119] The data compensation module is used to apply a set of compensation coefficients to each data bit in real time, adjust the pulse width to the compensation data bit pulse width value, and generate a compensated clean differential coded signal.
[0120] The control character insertion module is used to detect the signal amplitude based on the compensated clean differential coded signal, dynamically insert regeneration control characters, and generate an instruction signal containing the regeneration control characters.
[0121] The signal generation module is used to perform signal regeneration operation according to the instruction signal containing the regeneration control character. It uses the regeneration control character to trigger the shaping and amplifying circuit to amplify and attenuate the signal amplitude and generate a differential coded regeneration drive signal.
[0122] This embodiment also provides a computer device applicable to the fire emergency lighting two-bus communication method based on differential coding, 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 realize the fire emergency lighting two-bus communication method based on differential coding as proposed in the above embodiment.
[0123] 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.
[0124] This embodiment also provides a storage medium storing a computer program. When executed by a processor, the program implements the differential coding-based two-bus communication method for fire emergency lighting as proposed in the above embodiments. The storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Red-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0125] In summary, this invention achieves dynamic correction of signal distortion and improves timing recovery accuracy by fusing dual-edge detection with environmental parameters to generate a differentiated compensation coefficient set; and achieves on-demand signal regeneration by triggering the regeneration control symbol and combining it with real-time impedance adjustment gain, effectively ensuring waveform integrity and communication reliability for long-distance transmission.
[0126] 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 two-bus communication method for fire emergency lighting based on differential coding, characterized in that: include, The controller of the fire emergency node sends a dual-edge detection pulse, and the lighting fixture captures the actual received duration to generate measured distortion data; Based on measured distortion data and combined with line attenuation coefficients obtained from environmental sensors, a set of compensation coefficients is dynamically generated. The compensation coefficient group is applied to each data bit in real time to adjust the pulse width to the compensation data bit pulse width value and generate the compensated clean differential coded signal. Based on the compensated clean differential coded signal, the signal amplitude is detected, regeneration control characters are dynamically inserted, and an instruction signal containing regeneration control characters is generated. Based on the instruction signal containing the regeneration control character, the signal regeneration operation is performed. The regeneration control character triggers the shaping and amplifying circuit to amplify and attenuate the signal amplitude, generating a differential coded regeneration drive signal.
2. The fire emergency lighting two-bus communication method based on differential coding as described in claim 1, characterized in that: The controller of the fire emergency node sends a dual-edge detection pulse, and the lighting fixture captures the actual received duration to generate measured distortion data. The steps are as follows. During the compensation cycle, the controller of the fire emergency node obtains the pulses of the voltage rising segment and falling segment through the compensation bit cycle parameter, and generates a dual-edge detection pulse signal. The driving circuit amplifies the dual-edge detection pulse signal and modulates the pulse signal, which is then transmitted to the lighting fixture via a two-wire bus to generate a dual-edge detection pulse electrical signal after bus transmission. The lighting fixture performs noise filtering and amplitude normalization on the dual-edge probe pulse electrical signal transmitted via the bus, and captures the complete waveform to generate dual-edge probe pulse waveform data. Based on dual-edge probe pulse waveform data, the actual duration of the rising and falling edges is measured within the amplitude range. The signal distortion is obtained by comparing with the nominal pulse width value, and a measured distortion dataset is generated.
3. The fire emergency lighting two-bus communication method based on differential coding as described in claim 2, characterized in that: The process of dynamically generating a compensation coefficient set based on measured distortion data and line attenuation coefficients obtained from environmental sensors is as follows: Based on the measured distortion dataset, environmental sensors collect temperature data, humidity data, and salinity data, and encapsulate them to generate a set of environmental parameters. Based on the range of temperature, humidity and salinity data in the environmental parameter set, a three-dimensional matching is performed to generate the line attenuation coefficient value. Based on the line attenuation coefficient value, and combined with the three-level attenuation coefficient threshold dynamic selection strategy, a weight allocation strategy identifier is generated. Based on the weight allocation strategy identifier, a differential weighting operation is performed on the rising edge distortion value and falling edge distortion value in the measured distortion dataset to generate a compensation coefficient group.
4. The fire emergency lighting two-bus communication method based on differential coding as described in claim 3, characterized in that: The application compensation coefficient group performs real-time compensation for each data bit, adjusting the pulse width to the compensation data bit pulse width value. The steps are as follows. Within the differentially encoded data bit period, the high-level duration of the original waveform of the measured data bit is used to generate the current data bit pulse width measurement value; The rising edge compensation coefficient value and falling edge compensation coefficient value in the compensation coefficient group are analyzed, their validity is verified, and the compensation coefficient value is generated. The type of the current data bit is dynamically determined based on the compensation coefficient value, a real-time compensation amount is generated, and the compensation equation is applied to compensate the pulse width measurement value of the current data bit, generating the compensated pulse width value of the data bit.
5. The fire emergency lighting two-bus communication method based on differential coding as described in claim 4, characterized in that: The generation of the compensated clean differential code signal refers to generating a signal waveform based on the compensated data bit pulse width value, and setting the rising edge slope and falling edge slope to generate the compensated clean differential code signal.
6. The fire emergency lighting two-bus communication method based on differential coding as described in claim 5, characterized in that: The steps for detecting the signal amplitude based on the compensated clean differential coded signal are as follows: Based on the compensated clean differential coded signal, the signal waveform is captured by a high-speed analog-to-digital converter, the average voltage amplitude of continuous sampling period is calculated, and the regeneration demand flag is dynamically generated. Based on the regeneration demand flag, the pre-stored regeneration node configuration table is matched with the current lighting fixture device number. If the regeneration node identity matches the current device number, a regeneration enable command signal is generated.
7. The fire emergency lighting two-bus communication method based on differential coding as described in claim 6, characterized in that: The dynamic insertion of the regeneration control character to generate an instruction signal containing the regeneration control character refers to receiving the regeneration enable instruction signal, inserting a predefined regeneration control character at the first position of the differential coded data bits, and generating an instruction signal containing the regeneration control character.
8. The fire emergency lighting two-bus communication method based on differential coding as described in claim 7, characterized in that: The signal regeneration operation is performed in the following steps. Extract the first byte of data from the instruction signal containing the regeneration control character, compare it with the regeneration control character, and generate a regeneration activation instruction through triple joint verification; Based on the regeneration activation command, the line impedance parameters collected in real time by the environmental sensor are read, and the environmental adaptive gain coefficient is selected from the preset gain coefficient mapping table to generate the gain multiple setting value.
9. The fire emergency lighting two-bus communication method based on differential coding as described in claim 8, characterized in that: The steps for using a regeneration control symbol to trigger a shaping amplifier circuit, amplifying the attenuation signal amplitude, and generating a differentially coded regeneration drive signal are as follows. An automatic zero-reset operational amplifier circuit is used to dynamically adjust the bias voltage of the amplifier circuit based on the gain factor setting value to generate a preliminary amplified signal. The nonlinear filtering algorithm is activated to detect the slope changes of the rising and falling edges of the initial amplified signal. The predistortion compensation method is applied to correct the edge distortion and generate a differentially coded regenerated drive signal.
10. A fire emergency lighting two-bus communication system based on differential coding, based on the fire emergency lighting two-bus communication method based on differential coding as described in any one of claims 1 to 9, characterized in that: include, The distortion data module is used by the controller of the fire emergency node to send dual-edge detection pulses, and the lighting fixture end to capture the actual received duration and generate measured distortion data. The compensation coefficient module is used to dynamically generate a set of compensation coefficients based on measured distortion data and the line attenuation coefficient obtained from environmental sensors. The data compensation module is used to apply a set of compensation coefficients to each data bit in real time, adjust the pulse width to the compensation data bit pulse width value, and generate a compensated clean differential coded signal. The control character insertion module is used to detect the signal amplitude based on the compensated clean differential coded signal, dynamically insert regeneration control characters, and generate an instruction signal containing the regeneration control characters. The signal generation module is used to perform signal regeneration operation according to the instruction signal containing the regeneration control character. It uses the regeneration control character to trigger the shaping and amplifying circuit to amplify and attenuate the signal amplitude and generate a differential coded regeneration drive signal.