An automatic calibration method and system between devices based on ad hoc network hardware
Patent Information
- Application Number
- CN202611229375.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-13
- Publication Date
- 2026-10-30
AI Technical Summary
[0004]为解决上述自组网设备校准时间长导致批量生产效率较低的技术问题,本发明在如下的多个方面中提供方案
[0016]本发明在自动校准阶段,利用基准设备和待校准设备自身的片上硬件解调能力与底层运算资源。射频测试信号被接收后,直接在设备内部瞬间完成物理层参数(如频偏、观测信号强度、CRC状态等)的提取和偏差计算。这一闭环机制避免了传统方案中海量数据在测试仪器与PC主机之间传输所造成的网络延迟,同时减少了上位机软件解调所带来的计算开销,将单台设备的测量与修正耗时压缩,减少了校准时间。
Smart Images

Figure CN123019901A_ABST
Abstract
Description
Technical Field
[0001] This invention generally relates to the field of communication equipment testing technology. More specifically, this invention relates to an automatic calibration method and system for devices based on ad hoc network hardware. Background Technology
[0002] In the manufacturing process of ad hoc network devices, the calibration of the radio frequency transceiver link is a core step in ensuring the communication performance and factory pass rate of the equipment. Currently, the industry typically adopts calibration schemes based on external testing instruments. For example, patent application CN119402106A proposes a rapid automatic calibration test method for ad hoc network terminals. This scheme essentially adopts the paradigm of instrument calibration equipment, taking the ad hoc network terminal to be calibrated as the device under test, and using external dedicated instruments such as spectrum analyzers and vector signal generators as measurement benchmarks. Its main process is as follows: the host computer configures the spectrum analyzer and vector signal generator according to the test script; it controls the ad hoc network terminal to transmit test signals, which are received and read by the spectrum analyzer; the host computer judges whether the data meets the standard, and if it does not meet the standard, it adjusts the power operation codeword of the device and retransmits until the conditions are met.
[0003] However, in existing solutions, the transmitted signal from the device to be calibrated must first be received and demodulated by a spectrum analyzer, then the IQ data must be transmitted back to the PC host for analysis and comparison, and finally the calibration parameters must be written back. This process involves signal acquisition, network transmission, and software analysis in multiple stages. In particular, the massive IQ data reading and demodulation process on the host computer introduces significant processing latency. In mass production scenarios, this high latency directly slows down the calibration speed per unit time, becoming a bottleneck restricting mass production efficiency. Summary of the Invention
[0004] To address the technical problem of low mass production efficiency caused by long calibration time for self-organizing network devices, the present invention provides solutions in the following aspects.
[0005] In a first aspect, an automatic device-to-device calibration method based on ad hoc network hardware includes: S1: acquiring a reference calibration parameter set of a reference device, the reference calibration parameter set including a reference physical transmit power and a reference link gain compensation value; S2: enabling the device to be calibrated to interact with the reference device to obtain interactive signal data between the device to be calibrated and the reference device, wherein the interactive signal data includes received strength obtained by the reference device measuring an uplink test signal and demodulated data obtained by the device to be calibrated demodulating a downlink test signal; S3: correcting the control parameters of the device to be calibrated according to the interactive signal data and the reference calibration parameter set, wherein the corrected control parameters are negatively correlated with the deviation of the interactive signal data from the reference calibration parameter set; S4: iterating until the transmit power is within a preset transmit power range and the control parameters meet preset conditions.
[0006] Preferably, enabling the device to be calibrated to interact with the reference device includes: enabling the device to be calibrated to output an uplink test signal to the reference device; the control parameters include transmit gain control parameters; correcting the control parameters of the device to be calibrated includes: obtaining the received strength of the uplink test signal received by the reference device, and calculating the actual transmit power of the device to be calibrated based on the reference link gain compensation value and the received strength; correcting the transmit gain control parameters of the device to be calibrated, wherein the difference between the actual transmit power and the preset expected transmit power is negatively correlated with the corrected transmit gain control parameters.
[0007] Preferably, calculating the actual transmit power of the device to be calibrated based on the reference link gain compensation value and the received strength includes: algebraically adding the received strength to the reference link gain compensation value to obtain the calibrated received strength; obtaining the fixed insertion loss value of the test environment; and adding the calibrated received strength to the fixed insertion loss value of the test environment to obtain the actual transmit power, wherein the fixed insertion loss value is less than 0.
[0008] Preferably, correcting the transmit gain control parameters of the device to be calibrated includes: calculating the power difference obtained by subtracting the expected transmit power from the actual transmit power; performing a multiplicative weighted calculation on the power difference using a preset negative feedback adjustment proportional coefficient to obtain the transmit attenuation adjustment step size; and performing an inverse algebraic superposition of the transmit gain control parameters and the transmit attenuation adjustment step size to obtain the corrected transmit gain control parameters.
[0009] Preferably, enabling the device to be calibrated to interact with the reference device includes: enabling the reference device to output a downlink test signal to the device to be calibrated; the control parameters include voltage-controlled crystal oscillator control parameters and receive gain control parameters; correcting the control parameters of the device to be calibrated includes: obtaining demodulated data obtained by demodulating the downlink test signal of the device to be calibrated; and correcting the voltage-controlled crystal oscillator control parameters and receive gain control parameters of the device to be calibrated based on the reference physical transmit power and the demodulated data.
[0010] Preferably, the demodulated data includes frequency offset and observed signal strength, wherein the comparison deviation between the demodulated data and the theoretical reference expected value is negatively correlated with the corrected voltage-controlled crystal oscillator control parameters, the deviation between the frequency offset and the zero-frequency offset reference value is negatively correlated with the corrected voltage-controlled crystal oscillator control parameters, and the deviation between the observed signal strength and the theoretical expected value determined based on the reference physical transmit power is negatively correlated with the corrected receive gain control parameters, wherein the theoretical reference expected value is determined based on the reference physical transmit power.
[0011] Preferably, correcting the voltage-controlled crystal oscillator (VCO) control parameters and receiver gain control parameters of the device to be calibrated includes: calculating a crystal voltage adjustment amount to compensate for the current frequency offset, and adding the crystal voltage adjustment amount to the VCO control parameters to obtain the corrected VCO control parameters; determining a preset expected signal strength of the downlink test signal based on the reference physical transmit power as the theoretical expected value; calculating the intensity difference between the theoretical expected value and the observed signal strength, and mapping the intensity difference to a gain control adjustment amount; and adding the receiver gain control parameters of the device to be calibrated to the gain control adjustment amount to obtain the corrected receiver gain control parameters.
[0012] Preferably, the demodulated data further includes a cyclic redundancy check (CRC) status, and the control parameters further include a receiver sensitivity parameter. Correcting the control parameters of the device to be calibrated further includes: determining whether the CRC status indicates successful demodulation; if the CRC status indicates demodulation failure, controlling the reference device to increase its physical transmit power by a preset power step value and re-output the downlink test signal; until a CRC status indicating successful demodulation is extracted, determining the signal strength of the antenna port of the device to be calibrated based on the physical transmit power of the reference device at that moment; and saving the signal strength as a receiver sensitivity test value in the receiver sensitivity parameter.
[0013] Preferably, determining whether the demodulated feature data meets the preset conditions includes: determining whether the absolute value of the frequency offset is less than a preset frequency tolerance threshold; determining whether the absolute value of the intensity difference is within a preset gain error tolerance range; and determining whether the cyclic redundancy check status indicates successful demodulation.
[0014] In a second aspect, an automatic device calibration system based on ad hoc network hardware includes a processor and a memory, the memory storing a computer program, the processor executing the computer program to implement an automatic device calibration method based on ad hoc network hardware as described in any of the above-described inventions.
[0015] The beneficial effects of this invention are as follows:
[0016] In the automatic calibration phase, this invention utilizes the on-chip hardware demodulation capabilities and low-level computing resources of both the reference device and the device under test. After the RF test signal is received, the extraction and deviation calculation of physical layer parameters (such as frequency offset, observed signal strength, CRC status, etc.) are completed instantly within the device. This closed-loop mechanism avoids the network latency caused by the transmission of massive amounts of data between the test instrument and the PC host in traditional solutions, while also reducing the computational overhead of the host computer software demodulation, thus compressing the measurement and correction time of a single device and reducing calibration time. Attached Figure Description
[0017] The above and other objects, features, and advantages of exemplary embodiments of the present invention will become readily apparent upon reading the following detailed description with reference to the accompanying drawings. In the drawings, several embodiments of the invention are illustrated by way of example and not limitation, and like or corresponding reference numerals denote like or corresponding parts, wherein: Figure 1 This is a schematic flowchart illustrating the steps of an automatic calibration method between devices based on ad hoc network hardware according to an embodiment of the present invention; Figure 2 This is a structural block diagram of the operating platform for automatic calibration between devices applied to self-organizing network hardware according to this embodiment. Detailed Implementation
[0018] 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, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0019] The specific embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
[0020] Figure 1 This is a schematic flowchart illustrating the steps of an automatic calibration method between devices based on ad hoc network hardware according to an embodiment of the present invention.
[0021] like Figure 1As shown, an automatic calibration method between devices based on self-organizing network hardware includes steps S1 to S4.
[0022] Step S1: Obtain the reference calibration parameter set of the reference device, which includes the reference physical transmit power and the reference link gain compensation value.
[0023] It should be noted that the calibration parameters of the reference device (including transmit and receive calibration parameters) have been stored in the software directory after the first-stage calibration. This parameter set is obtained to provide an objective physical measurement benchmark. Since the receiving capability of the reference device is known and accurate, it can serve as a reference standard for measuring the RF performance of the device to be calibrated in the second stage.
[0024] The system reads the reference calibration parameter set of the reference device from the software directory. It records that the reference physical transmit power of the reference device under the current channel is 0dBm and the reference link gain compensation value of its receive link is +0.5dB, that is, there is an inherent loss of 0.5dB in the hardware, which needs to be compensated during the calculation.
[0025] In one embodiment, before obtaining the reference calibration parameter set of the reference device, the method further includes: obtaining error measurement data output by an external test instrument after performing physical layer calibration on the reference device; generating the reference physical transmit power and the reference link gain compensation value based on the error measurement data, and encapsulating them into the reference calibration parameter set.
[0026] It should be noted that this invention employs a two-stage calibration system. The first stage requires the use of external testing instruments such as spectrum analyzers and signal generators to precisely calibrate a small number of devices, thereby obtaining a reference device. This preliminary step ensures that the transmission and reception capabilities of the reference device are known and accurate, thus completely eliminating the reliance on external dedicated testing instruments in the second stage. Batch calibration is completed solely using the transmission, reception, and demodulation capabilities of the reference device and the device to be calibrated.
[0027] In the first phase, engineers used a high-precision vector signal generator and spectrum analyzer to perform physical layer calibration on an ad hoc network terminal. They measured the actual transmit output error of the device at a specified frequency, as well as the background insertion loss of the receive link. After acquiring the error measurement data, the system generated corresponding baseline physical transmit power and baseline link gain compensation values, and established the device as the "baseline device" in the network topology.
[0028] S2: Enable the device to be calibrated to interact with the reference device to obtain the interaction signal data between the device to be calibrated and the reference device.
[0029] The process of enabling signal interaction between the device to be calibrated and the reference device includes: enabling the device to be calibrated to output an uplink test signal to the reference device, and enabling the reference device to output a downlink test signal to the device to be calibrated.
[0030] Step S3: Correct the control parameters of the device to be calibrated based on the interactive signal data and the reference calibration parameter set.
[0031] The corrected control parameters are negatively correlated with the deviation of the interactive signal data from the reference calibration parameter set.
[0032] It should be noted that the "deviation of the interactive signal data from the reference calibration parameter set" essentially characterizes the inherent physical errors in the underlying RF circuit of the device under calibration due to objective factors such as analog device processing, crystal oscillator aging, and assembly (e.g., actual transmit power being too high, clock frequency drift, or unexpected losses in the receive link). Negative correlation limits the system's automatic intervention in this physical error: when the current interactive performance is detected to be higher than the reference value (i.e., a positive deviation is generated), the system will forcibly assign a negative attenuation or downward attribute when generating the next control parameter; conversely, if the detected performance is lower than the absolute true value (i.e., a negative deviation is generated), it will assign a positive gain or upward attribute. This ensures that the RF response of the device under calibration continuously converges towards the ideal scale zero point in subsequent iterations.
[0033] In one embodiment, enabling signal interaction between the device to be calibrated and the reference device includes: enabling the device to be calibrated to output an uplink test signal to the reference device; the control parameters include transmit gain control parameters; correcting the control parameters of the device to be calibrated includes: obtaining the received strength of the uplink test signal received by the reference device, and calculating the actual transmit power of the device to be calibrated based on the reference link gain compensation value and the received strength. The transmit gain control parameters of the device to be calibrated are corrected, wherein the difference between the actual transmit power and the preset expected transmit power is negatively correlated with the corrected transmit gain control parameters.
[0034] In one embodiment, calculating the actual transmit power of the device to be calibrated based on the reference link gain compensation value and the received strength includes: algebraically adding the received strength to the reference link gain compensation value to obtain the calibrated received strength; obtaining the fixed insertion loss value of the test environment; and adding the calibrated received strength to the fixed insertion loss value of the test environment to obtain the actual transmit power, wherein the fixed insertion loss value is less than 0.
[0035] It should be noted that in the principle of transmit power calibration, the receiving capability of the test platform (reference device) is pre-calibrated. Therefore, the signal strength received by the reference device from the device to be calibrated can be used to calculate the actual transmit power of the device to be calibrated. Due to the physical attenuation of the test link caused by attenuators and other components, algebraic compensation must be used to recover this fixed insertion loss in order to restore the true output energy of the antenna port of the device to be calibrated.
[0036] The host computer controls the device under test to configure the transmit attenuator (TxATT) and transmit the signal. The reference device receives the signal and demodulates the original signal strength to be -30.5 dBm. The system combines this with a reference link gain compensation of +0.5 dB to obtain a calibrated receive strength of -30.0 dBm. If the fixed insertion loss of the intermediate test link (including the attenuator and combiner) is known to be -40 dB (i.e., attenuation of 40 dB), the actual transmit power of the antenna port of the device under test is calculated to be 10.0 dBm through inverse algebraic operations.
[0037] In one embodiment, correcting the transmit gain control parameters of the device to be calibrated includes: calculating the power difference obtained by subtracting the expected transmit power from the actual transmit power; performing a multiplicative weighted calculation on the power difference using a preset negative feedback adjustment proportional coefficient to obtain the transmit attenuation adjustment step size; and performing an inverse algebraic superposition of the transmit gain control parameters and the transmit attenuation adjustment step size to obtain the corrected transmit gain control parameters.
[0038] It should be noted that, due to the nonlinearity of the analog RF circuit, the host computer needs to compare the received strength with the desired strength, calculate a new TxATT value according to a preset ratio, and transmit using the new TxATT. This process is repeated iteratively to adjust the transmit power. The negative feedback adjustment mechanism ensures that the transmit attenuation parameter configured in the next iteration moves in the direction of reducing the current power error.
[0039] If the actual transmit power of the device to be calibrated is calculated to be 11.0 dBm, while the expected transmit power is 10.0 dBm, the power difference is +1.0 dB. The system calculates the transmit attenuation adjustment step size according to a preset ratio, performs inverse algebraic superposition with the current TxATT value, generates a new control word (e.g., increasing the attenuation amount), and controls the device to be calibrated to reduce the actual output power during the next transmission.
[0040] In one embodiment, enabling the device to be calibrated to interact with the reference device includes: enabling the reference device to output a downlink test signal to the device to be calibrated; the control parameters include voltage-controlled crystal oscillator control parameters and receive gain control parameters; correcting the control parameters of the device to be calibrated includes: obtaining demodulated data obtained by demodulating the downlink test signal of the device to be calibrated; and correcting the voltage-controlled crystal oscillator control parameters and receive gain control parameters of the device to be calibrated based on the reference physical transmit power and the demodulated data.
[0041] In one embodiment, the demodulated data includes frequency offset and observed signal strength, and the control parameters include voltage-controlled crystal oscillator control parameters and receiver gain control parameters. The deviation between the demodulated data and the theoretical reference expected value is negatively correlated with the corrected voltage-controlled crystal oscillator control parameters. The deviation between the frequency offset and the zero-frequency offset reference value is negatively correlated with the corrected voltage-controlled crystal oscillator control parameters. The deviation between the observed signal strength and the theoretical expected value determined based on the reference physical transmit power is negatively correlated with the corrected receiver gain control parameters. The theoretical reference expected value is determined based on the reference physical transmit power.
[0042] It should be noted that the modulated signal transmitted by the reference device has no frequency offset, and the frequency offset of the signal demodulated by the device to be calibrated is the frequency offset of the device itself. Simultaneously, the reference device emits a signal of a certain strength, and after link attenuation, the signal strength at the receiving antenna port of the device to be calibrated is also constant. By extracting the received strength and frequency offset demodulated by the device to be calibrated, the system can accurately locate its underlying hardware deviations in the amplitude and clock frequency domains.
[0043] The reference device transmits a downlink test signal with precise power of 0dBm and zero frequency offset. After receiving the signal, the device to be calibrated uses its own hardware demodulation capability to extract parameters internally, demodulates the frequency offset to +200Hz, and reads the observed signal strength as -42.0dBm. Then, it uploads this demodulated data to the host computer.
[0044] In one embodiment, correcting the voltage-controlled crystal oscillator (VCO) control parameters and receive gain control parameters of the device to be calibrated includes: calculating a crystal voltage adjustment amount to offset the current frequency offset, and adding the crystal voltage adjustment amount to the VCO control parameters to obtain the corrected VCO control parameters; determining a preset expected signal strength of the downlink test signal as the theoretical arrival expected value based on the reference physical transmit power; calculating the intensity difference between the theoretical arrival expected value and the observed signal strength, and mapping the intensity difference to a gain control adjustment amount; and adding the receive gain control parameters of the device to be calibrated to the gain control adjustment amount to obtain the corrected receive gain control parameters.
[0045] It should be noted that, regarding frequency offset, the host computer will directly adjust the voltage of the voltage-controlled crystal oscillator (VCO) based on the frequency offset value and the control parameters of the VCO, thereby achieving frequency adjustment. Regarding receiver link calibration, the difference between the received signal strength demodulated by the device under test and the known received signal strength is the gain or loss of the receiver link. The system uses this difference as the gain calibration value to update the link status of the device.
[0046] Specifically, for a frequency offset of +200Hz, the system calculates the required negative voltage compensation for the voltage-controlled crystal oscillator (VCO), adds it to the original VCO control parameters, and pushes it into the register to lower the clock frequency. Simultaneously, if the theoretical expected downlink signal strength reaching the antenna port of the device under calibration is -40.0dBm, while the observed signal strength is -42.0dBm, there is a +2.0dB difference. The system maps this difference to a gain control adjustment and adds it to the receive gain control parameters to eliminate this 2dB measurement error.
[0047] In one embodiment, the demodulated data further includes a cyclic redundancy check state, and the control parameters further include a receiver sensitivity parameter.
[0048] It should be noted that in the receiver sensitivity test, the success of demodulating physical layer data packets is objectively reflected by the CRC check result. The system uses the correct CRC of the IQ data demodulated by the device to be calibrated as the sole criterion for successful demodulation and uploads this status.
[0049] When the device to be calibrated receives and demodulates a data packet, if the CRC remainder of the underlying hardware check is zero, the cyclic redundancy check status is "successful"; if there are errors that cause the CRC check to fail, the status is "failed".
[0050] In one embodiment, correcting the control parameters of the device to be calibrated further includes: determining whether the cyclic redundancy check state indicates successful demodulation; if the cyclic redundancy check state indicates demodulation failure, controlling the reference device to increase the physical transmit power by a preset power step value and re-output the downlink test signal; until a cyclic redundancy check state indicating successful demodulation is extracted, determining the signal strength of the antenna port of the device to be calibrated based on the physical transmit power of the reference device at that moment; and saving the signal strength as a receiver sensitivity test value in the receiver sensitivity parameters.
[0051] It should be noted that the core process of receiver sensitivity testing is as follows: the reference device transmits a signal at a specific strength. If the CRC demodulation of the device to be calibrated fails, the transmission power of the reference device is increased by 1dB. This process is repeated until the device to be calibrated decodes the correct CRC. At this point, the transmission strength of the reference device is recorded, and the signal strength at the antenna port of the device to be calibrated is calculated to determine its receiver sensitivity.
[0052] The host computer first configures the reference device to send an extremely weak signal, and the device to be calibrated reports a CRC failure. The reference device gradually increases its transmission power in 1dB steps. When the transmission power reaches -80dBm, the device to be calibrated reports a CRC success for the first time. Based on the known test link attenuation, the system calculates the absolute strength reaching the antenna port at this point to be -110dBm, and then saves -110dBm as the receiver sensitivity test value for this device.
[0053] Step S4: Iterate until the transmission power is within the preset transmission power range and the control parameters meet the preset conditions.
[0054] In one embodiment, determining whether the demodulated feature data meets preset conditions includes: determining whether the absolute value of the frequency offset is less than a preset frequency tolerance threshold; determining whether the absolute value of the intensity difference is within a preset gain error tolerance range; and determining whether the cyclic redundancy check status indicates successful demodulation.
[0055] It should be noted that the calibration process is an automated, closed-loop iterative process. The system continuously retransmits and tests until the frequency deviation is within an acceptable range and the difference between the transmitted signal strength and the expected value is within a set error range (e.g., ±0.5dB). Once all error indicators meet the thresholds, the system records parameters such as the CRC, error vector magnitude (EVM), and signal-to-noise ratio (SNR) of the IQ data into the results document, and directly writes the calibration parameters under different link states into the non-volatile memory of the calibrated device, completing the calibration and fixing process.
[0056] The iteration terminates when the system detects that the actual transmit power of the device under test is less than ±0.5dB from the expected value, the frequency offset is stable below 1ppm, and the cyclic redundancy check status continuously indicates success. The system records the final frequency offset calibration value and gain calibration value and directly burns them into the device under test to ensure that the device can automatically load these parameters to compensate for hardware deviations after leaving the factory.
[0057] The present invention also includes an automatic device calibration system based on ad hoc network hardware, the system comprising a processor and a memory, the memory storing a computer program, the processor executing the computer program to implement an automatic device calibration method based on ad hoc network hardware as described in any of the above contents.
[0058] Figure 2 This is a structural block diagram of the operating platform for automatic calibration between devices applied to self-organizing network hardware according to this embodiment.
[0059] like Figure 2As shown, the operating platform includes: a reference device whose communication interface is connected to the processor; the reference device is a device pre-configured with the reference calibration parameter set and has on-chip hardware demodulation capability, used to send and receive test signals with the device to be calibrated according to the instructions of the processor, and directly demodulate the corresponding received strength and demodulated data internally; an RF transmission link, which includes an attenuator and a combiner, with both ends of the RF transmission link used to connect the RF antenna port of the reference device and the RF antenna port of the device to be calibrated, respectively, to establish a physical RF transmission channel with a fixed insertion loss value between the reference device and the device to be calibrated; and a data exchange device whose communication port is used to connect to the network interface of the processor, the network interface of the reference device, and the network interface of the device to be calibrated, respectively, to establish an Ethernet control link, used to route and distribute control instructions, the received strength, and the demodulated data within the system.
[0060] It should be noted that this invention constructs a low-cost, high-real-time closed-loop physical environment for device inter-testing. This includes two core isolation domains: In the control domain, the processor no longer undertakes the computationally intensive IQ data demodulation work of traditional solutions, but instead only handles lightweight timing scheduling and parameter algebra calculations; the system directly delegates the most critical signal demodulation and feature extraction tasks to the on-chip hardware demodulation capabilities of the reference device and the device to be calibrated, thereby completely eliminating the huge latency caused by the transmission of massive amounts of IQ data in the network. In the physical domain, the RF transmission link, composed of purely passive components (attenuators and combiners), shields against electromagnetic interference from the external space; while the data exchange equipment ensures that low-volume demodulated feature data and high-frequency control commands can complete closed-loop routing with low latency.
[0061] In the actual mass production automated testing workshop, a standard industrial PC (serving as a processor and memory) connects to a pre-calibrated reference device and a device on the production line to be calibrated via a standard gigabit switch (data exchange equipment). At the RF interface, the RF antenna ports of these two devices are connected to an RF transmission link consisting of a programmable attenuator and a combiner via a high-frequency feeder (the system pre-measures and records the fixed insertion loss of this passive link as 90dB). When automatic calibration is performed, the industrial PC sends a transmit command of only a few tens of bytes to the reference device via the switch; the reference device then emits an RF signal. After a physical attenuation of 90dB, the signal reaches the device to be calibrated, which instantly uses its own baseband chip to perform hardware demodulation to obtain a current received signal strength of -85dBm and a frequency offset of +150Hz.
[0062] Furthermore, in Figure 2In the specific embodiment shown, the radio frequency transmission link specifically includes: a first attenuator, a first combiner, a programmable attenuator, a second combiner, and a second attenuator connected in series. The connection relationship is as follows: one end of the first attenuator is connected to the radio frequency antenna port of the reference device, and the other end is connected to the first port of the first combiner; the second port of the first combiner is connected to one end of the programmable attenuator; the other end of the programmable attenuator is connected to the first port of the second combiner; and the second port of the second combiner is connected to the radio frequency antenna port of the device to be calibrated via the second attenuator.
[0063] It should be noted that in the RF transmission link topology, the passive components work together to build a highly stable and scalable physical test environment: the first and second attenuators (usually fixed attenuators) located at both ends of the link are mainly used to improve the impedance matching of the RF ports of the devices at both ends, reduce the voltage standing wave ratio (VSWR), and provide basic physical isolation to protect the RF front-end of the reference device and the device to be calibrated; the programmable attenuator located in the middle of the link is used to precisely set and adjust the total insertion loss of the link (for example, it can be set and locked to the aforementioned 90dB), thereby simulating real wireless spatial distance attenuation with high accuracy; and the first and second combiners, in addition to serving as connection nodes for signal paths, also retain the physical layer test expansion capability for the system (for example, their idle ports can be used to inject ambient noise signals, interference signals, or access spectrum monitoring instruments), thereby realizing highly flexible reproduction of complex RF scenarios in a purely passive shielded closed-loop link.
[0064] In the description of this specification, "multiple" or "several" means at least two, such as two, three or more, unless otherwise explicitly specified.
[0065] While this specification has shown and described numerous embodiments of the invention, it will be apparent to those skilled in the art that such embodiments are provided by way of example only. Many modifications, alterations, and alternatives will occur to those skilled in the art without departing from the spirit and essence of the invention. It should be understood that various alternatives to the embodiments of the invention described herein may be employed in the practice of this invention.
Claims
1. An automatic calibration method between devices based on ad hoc network hardware, characterized in that, include: S1: Obtain the reference calibration parameter set of the reference device, which includes the reference physical transmit power and the reference link gain compensation value; S2: Enable the device to be calibrated to interact with the reference device to obtain the interaction signal data between the device to be calibrated and the reference device, wherein the interaction signal data includes the received strength obtained by the reference device measuring the uplink test signal and the demodulated data obtained by the device to be calibrated demodulating the downlink test signal; S3: Correct the control parameters of the device to be calibrated based on the interactive signal data and the reference calibration parameter set, wherein the corrected control parameters are negatively correlated with the deviation of the interactive signal data from the reference calibration parameter set; S4: Iterate until the transmit power is within the preset transmit power range and the control parameters meet the preset conditions.
2. The automatic device calibration method based on ad hoc network hardware according to claim 1, characterized in that, Enabling the device to be calibrated to interact with the reference device includes: causing the device to be calibrated to output an uplink test signal to the reference device; the control parameters include transmit gain control parameters. Correcting the control parameters of the device to be calibrated includes: obtaining the received strength of the uplink test signal received by the reference device, and calculating the actual transmit power of the device to be calibrated based on the reference link gain compensation value and the received strength; The transmit gain control parameters of the device to be calibrated are corrected, wherein the difference between the actual transmit power and the preset expected transmit power is negatively correlated with the corrected transmit gain control parameters.
3. The automatic device calibration method based on ad hoc network hardware according to claim 2, characterized in that, The actual transmit power of the device to be calibrated is calculated based on the reference link gain compensation value and the received strength, including: The calibrated receive strength is obtained by algebraically adding the received strength to the reference link gain compensation value; Obtain the fixed insertion loss value of the test environment, add the calibrated received strength to the fixed insertion loss value of the test environment to obtain the actual transmit power, wherein the fixed insertion loss value is less than 0.
4. The automatic device calibration method based on ad hoc network hardware according to claim 3, characterized in that, Correcting the transmit gain control parameters of the device to be calibrated includes: Calculate the power difference obtained by subtracting the expected transmission power from the actual transmission power; The power difference is multiplied and weighted by a preset negative feedback adjustment ratio to obtain the transmit attenuation adjustment step size; The corrected transmit gain control parameters are obtained by performing an inverse algebraic superposition of the transmit attenuation adjustment step size.
5. The automatic device calibration method based on ad hoc network hardware according to claim 1, characterized in that, The signal interaction between the device to be calibrated and the reference device includes: the reference device outputting a downlink test signal to the device to be calibrated; the control parameters include voltage-controlled crystal oscillator control parameters and receiver gain control parameters. Correcting the control parameters of the device to be calibrated includes: obtaining demodulated data from the demodulated downlink test signal of the device to be calibrated; The voltage-controlled crystal oscillator control parameters and receiver gain control parameters of the device to be calibrated are corrected based on the reference physical transmit power and demodulation data.
6. The automatic device calibration method based on ad hoc network hardware according to claim 5, characterized in that, The demodulated data includes frequency offset and observed signal strength. The deviation between the demodulated data and the theoretical reference expected value is negatively correlated with the corrected voltage-controlled crystal oscillator control parameters. The deviation between the frequency offset and the zero-frequency offset reference value is negatively correlated with the corrected voltage-controlled crystal oscillator control parameters. The deviation between the observed signal strength and the theoretical expected value determined based on the reference physical transmit power is negatively correlated with the corrected receive gain control parameters. The theoretical reference expected value is determined based on the reference physical transmit power.
7. The automatic device calibration method based on ad hoc network hardware according to claim 6, characterized in that, The correction of the voltage-controlled crystal oscillator control parameters and receiver gain control parameters of the device to be calibrated includes: Calculate the crystal voltage adjustment amount used to offset the current frequency offset, and add the crystal voltage adjustment amount to the voltage-controlled crystal oscillator control parameters to obtain the corrected voltage-controlled crystal oscillator control parameters; The preset expected signal strength of the downlink test signal is determined based on the reference physical transmit power as the theoretical expected value; Calculate the intensity difference between the theoretically expected value and the observed signal intensity, and map the intensity difference to a gain control adjustment amount; The corrected receiver gain control parameters are obtained by adding the receiver gain control parameters of the device to be calibrated to the gain control adjustment amount.
8. The automatic device calibration method based on ad hoc network hardware according to claim 7, characterized in that, The demodulated data also includes a cyclic redundancy check status, and the control parameters also include a receiver sensitivity parameter. The control parameters for correcting the device to be calibrated also include: Determine whether the Cyclic Redundancy Check status indicates successful demodulation. If the Cyclic Redundancy Check status indicates demodulation failure, control the reference device to increase the physical transmit power by a preset power step value and re-output the downlink test signal. Until the cyclic redundancy check state indicating successful demodulation is extracted, the signal strength of the antenna port of the device to be calibrated is determined based on the physical transmit power of the reference device at that moment. The signal strength is saved as a receiver sensitivity test value in the receiver sensitivity parameters.
9. The automatic device calibration method based on ad hoc network hardware according to claim 8, characterized in that, Determining whether the demodulated feature data meets the preset conditions includes: Determine whether the absolute value of the frequency offset is less than a preset frequency tolerance threshold; Determine whether the absolute value of the intensity difference is within a preset gain error tolerance range; Determine whether the cyclic redundancy check status indicates successful demodulation.
10. An automatic device calibration system based on ad hoc network hardware, comprising a processor and a memory, characterized in that, The memory stores a computer program, and the processor executes the computer program to implement an automatic device calibration method based on ad hoc network hardware as described in any one of claims 1 to 9.
Citation Information
Patent Citations
Rapid automatic calibration test method for ad hoc network terminal
CN119402106A