A frequency domain analysis method for single-photon time-counting sequence data
By processing single-photon time series data using frequency domain analysis methods, the problems of poor noise immunity and high bit error rate in existing technologies are solved, achieving higher noise immunity and lower bit error rate, thereby improving the performance of communication systems.
Patent Information
- Application Number
- CN202611065960.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-17
- Publication Date
- 2026-11-17
AI Technical Summary
Existing demodulation methods for single-photon time series data have poor noise immunity and high bit error rate after demodulation.
A frequency domain analysis method is adopted for single-photon time-counting sequence data, including formatted data processing, channel delay calculation and compensation, signal-to-noise ratio analysis, and bit error rate analysis. The spectrum is demodulated through frequency domain analysis and the signal-to-noise ratio and bit error rate are calculated.
It achieves high noise immunity and low bit error rate, which can effectively assist in communication system design and parameter optimization, and improve system performance.
Smart Images

Figure CN123122686A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of single-photon communication technology, specifically to a frequency domain analysis method for single-photon time-counting sequence data. Background Technology
[0002] Underwater communication technology has become an indispensable part of building an integrated information network encompassing air, space, land, and sea. Underwater wireless communication technologies mainly include underwater radio communication, underwater acoustic communication, and underwater wireless optical communication. Compared to underwater acoustic and radio communication, underwater wireless optical communication technology has advantages such as high transmission rate, strong anti-interference capability, and good confidentiality. However, traditional underwater optical communication technology is limited by factors such as underwater channel loss, background light noise, and detector thermal noise, making it difficult to achieve stable information transmission at the single-photon level, and its communication distance is limited. Single-photon communication technology can achieve information detection and extraction at the single-photon level, featuring long communication distance, large communication capacity, and strong noise resistance, and has significant application value in fields such as communication.
[0003] like Figure 1 As shown, the receiver of the single-photon blue-green laser communication system includes a receiving antenna, an optical filter, a single-photon detector, a time counter, and a computer. The receiving antenna receives the single-photon signal, and the optical filter removes stray light to obtain the desired modulated optical signal. The optical signal is transmitted to the single-photon detector via optical fiber. After reaching the single-photon detector, the optical signal has attenuated to the single-photon level. The single-photon detector identifies the valid photon signal. For each photon detected, the optical signal is converted into a pulse electrical signal and output to the single-photon time counter. The single-photon time counter marks the time value with the pulse electrical signal and transmits it to the computer via optical fiber. The computer demodulates the received single-photon time-counting sequence data, thereby realizing information transmission at the single-photon level. Among these steps, the demodulation processing of the single-photon time sequence data by the computer is one of the important steps in single-photon communication technology.
[0004] Existing demodulation methods for single-photon time-series data employ an OOK (On-Off-Keying) modulation scheme. This involves converting the source data into a bitstream, with the transmitting antenna controlling whether to transmit photons based on whether a bit in the bitstream is 1 or 0: when a bit is 1, a photon is transmitted; when a bit is 0, no photon is transmitted. The receiving antenna continuously receives photons and determines the number of photons within a fixed time slot. If the number of photons exceeds a threshold (for example, assuming a threshold of 10, meaning that the number of photons received in a time slot is greater than or equal to 10, then that time slot is determined to be bit 1; if the number of photons is less than the threshold (i.e., the number of photons in a time slot is less than 10), then that time slot is determined to be bit 0. This method can generate the received bitstream and demodulate the original information. However, this demodulation method suffers from poor noise immunity and a high bit error rate after demodulation. Summary of the Invention
[0005] In order to solve the problems of poor noise resistance and high bit error rate after demodulation in existing demodulation methods for single-photon time series data, this invention provides a new frequency domain analysis method for single-photon time counting sequence data.
[0006] This invention is achieved using the following technical solution:
[0007] A frequency domain analysis method for single-photon time-counting sequence data includes the following steps:
[0008] Step 1: Convert the UDP data collected from the network port into formatted single-photon time-count sequence data:
[0009] 11. Enable network port data acquisition, receive UDP data packets from the single-photon time counter and save them to disk to form a binary raw data file of the single-photon time counting sequence. The single-photon time counter is composed of bits 0-25 of the high 4 bytes of the TDC data frame and bits 8-25 of the low 4 bytes of the TDC data frame, totaling 44 bits. The fine time counter is located in bits 0-7 of the low 4 bytes of the TDC data frame, totaling 8 bits. Bits 27-31 of the high 4 bytes and low 4 bytes of the TDC data frame represent the channel number. Bit 26 of the high 4 bytes and low 4 bytes of the TDC data frame is a flag bit. When this bit is 0, it indicates that the TDC data frame is the low 4 bytes. When this bit is 1, it indicates that the TDC data frame is the high 4 bytes.
[0010] 12. Handling high frame changes: When the high 26 bits of the coarse time counter in the high 4 bytes of TDC remain unchanged, the frame is not sent. Only the low 4 bytes of TDC are sent. When calculating the single photon time value corresponding to the data channel, the previously stored high 26 bits of the coarse time counter are used. The frame is sent only when the high 26 bits of the coarse time counter in the high 4 bytes of TDC change.
[0011] 13. Calculate the single-photon time value for each data channel. The data is then sorted in ascending order according to the single-photon time value to transform the original UDP data into a formatted single-photon time count sequence that clearly displays each data channel and its corresponding single-photon time value. The expression for this sequence is:
[0012] ;
[0013] in, For coarse time, For fine time, the unit is ps. 2500 ps is the coarse time precision (this precision is calculated statistically after actual measurement), and 47 ps is the fine time precision (this precision is calculated statistically after actual measurement).
[0014] Step 2: Channel Delay Calculation
[0015] Calculate channel delay Its expression is:
[0016] ;
[0017] The sample size was calculated using the first 200,000 rows of the formatted single-photon time-count sequence data. For the first Single-photon time value of the line data channel, For the first Single-photon time value of the horizontal synchronization channel;
[0018] Step 3: Channel Delay Compensation
[0019] The expression for channel delay compensation is:
[0020] ;
[0021] in, This represents the single-photon time value after delay compensation for the data channel.
[0022] Step 4: Perform equal-interval interpolation on the formatted single-photon time count sequence data within each synchronization time interval;
[0023] Step 5: Perform FFT on the formatted single-photon time-counting sequence data after equal interval difference, demodulate the frequency domain information within each synchronization time interval, and display it in the form of a spectrogram.
[0024] Furthermore, the method also includes TDC channel root mean square analysis.
[0025] Root Mean Square of Channel The formula for calculating the variance of the single-photon time value corresponding to each data channel in the TDC is as follows:
[0026] ;
[0027] The sample size was calculated using the first 200,000 rows of the formatted single-photon time-count sequence data. For the first Single-photon time value of the line data channel, For the first Single-photon time value of the line data channel.
[0028] Furthermore, the method also includes signal-to-noise ratio (SNR) analysis, which calculates the ratio of the average amplitude of the signal frequency point to the average amplitude of other noise points within a single integration interval. The calculation formula is as follows:
[0029] ;
[0030] in, For the signal-to-noise ratio in a single integration interval, The amplitude at the signal frequency point. The amplitude at the noise frequency point. Subtract the signal frequency from the FFT points.
[0031] Furthermore, the method also includes bit error rate analysis. The frequency points decoded at the receiving end are compared one by one with the frequency points transmitted at the transmitting end. Frequency points that do not match are considered erroneous. Each frequency point is represented by 6 bits. The erroneous frequency points are compared bit by bit with the transmitted frequency points, and the number of inconsistent bits is considered the number of bit errors. The ratio of the number of bit errors to the total number of bits received by the receiving end is the bit error rate, expressed as:
[0032] ;
[0033] in, For bit error rate, Number of error bits This represents the total number of bits.
[0034] The beneficial effects of this invention are as follows: The frequency domain analysis method for single-photon time-count sequence data described in this invention not only realizes source data decoding (the main function of the receiver software in the blue-green laser communication system) and statistical analysis of single-photon frequency domain data, but also has higher noise immunity and lower bit error rate compared to OOK modulation. Furthermore, it can perform analysis of multiple performance indicators such as channel root mean square, channel delay, signal-to-noise ratio, and bit error rate (analysis methods for the receiver performance of the blue-green laser communication system). This effectively assists developers in designing and optimizing the communication system, ensuring that the system performance meets design requirements. Attached Figure Description
[0035] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0036] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0037] Figure 1 This is a schematic diagram of the receiver of a single-photon blue-green laser communication system.
[0038] Figure 2 This is a flowchart illustrating the analytical method described in this invention;
[0039] Figure 3 The time data is in raw UDP format;
[0040] Figure 4 This is the formatted time data;
[0041] Figure 5 This is a graph showing the results of the root mean square analysis of the channels;
[0042] Figure 6 These are the delay values for each channel;
[0043] Figure 7 The result of the channel delay calculation is shown in the figure;
[0044] Figure 8 A spectrum of a single integration interval;
[0045] Figure 9 This is a graph showing the frequency distribution after demodulation.
[0046] Figure 10 This is a signal-to-noise ratio curve.
[0047] Figure 11The results are for signal-to-noise ratio and bit error rate tests. Detailed Implementation
[0048] To better understand the above-mentioned objectives, features, and advantages of the present invention, the solutions of the present invention will be further described below. It should be noted that, unless otherwise specified, the embodiments of the present invention and the features thereof can be combined with each other.
[0049] Many specific details are set forth in the following description in order to provide a full understanding of the invention, but the invention may also be practiced in other ways different from those described herein; obviously, the embodiments in the specification are only some embodiments of the invention, and not all embodiments.
[0050] The specific embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
[0051] like Figure 1 As shown, a frequency domain analysis method for single-photon time-counting sequence data includes the following steps:
[0052] Step 1: Convert the UDP data collected from the network interface into formatted single-photon time-count sequence data:
[0053] 11. Enable network port data acquisition, receive UDP data packets from the single-photon time counter and save them to disk to form a binary raw data file of the single-photon time counting sequence. The single-photon time counter is composed of bits 0-25 of the high 4 bytes of the TDC data frame and bits 8-25 of the low 4 bytes of the TDC data frame, totaling 44 bits. The fine time counter is located in bits 0-7 of the low 4 bytes of the TDC data frame, totaling 8 bits. Bits 27-31 of the high 4 bytes and low 4 bytes of the TDC data frame represent the channel number. Bit 26 of the high 4 bytes and low 4 bytes of the TDC data frame is a flag bit. When this bit is 0, it indicates that the TDC data frame is the low 4 bytes. When this bit is 1, it indicates that the TDC data frame is the high 4 bytes, as shown in Tables 1 and 2 below.
[0054] 12. Handling High-Frame Changes: The purpose of designing TDC data frames as high and low frames is to save communication bandwidth. Because the data volume of the binary raw data file of the single-photon time counting sequence is very large, reaching the GB / s level, in order to transmit as much photon counting time data as possible with limited bandwidth resources, when the high 26 bits of the coarse time counter in the high 4 bytes of TDC remain unchanged, the frame is not sent, and only the low 4 bytes of TDC are sent. When calculating the single-photon time value corresponding to the data channel, the previously stored high 26 bits of the coarse time counter value is used until the high 26 bits of the coarse time counter in the next high 4 bytes of TDC change, at which time the frame is sent. In this way, more communication bandwidth can be reserved to send the low 4 bytes of TDC, which change with each frame of data. That is, low frames (low 4 bytes) are always sent, and high frames (high 4 bytes) are only sent when they change.
[0055] 13. Calculate the single-photon time value for each data channel. The data is then sorted in ascending order according to the single-photon time value to transform the original UDP data into a formatted single-photon time count sequence that clearly displays each data channel and its corresponding single-photon time value. The expression for this sequence is:
[0056] ;
[0057] in, For coarse time, For fine time, the unit is ps. 2500 ps is the coarse time precision (this precision is calculated statistically after actual measurement), and 47 ps is the fine time precision (this precision is calculated statistically after actual measurement).
[0058] Raw UDP data such as Figure 3 As shown, the data is converted into formatted single-photon time-count sequence data as follows: Figure 5 As shown in Figure 4, the formatted single-photon time count sequence data clearly displays the single-photon time values corresponding to each data channel, which is not only convenient for designers to view, but also facilitates subsequent analysis and processing of the time data.
[0059] Step 2: Calculation of the root mean square of the TDC channel
[0060] Root Mean Square of Channel The formula for calculating the variance of the single-photon time value corresponding to each data channel in the TDC is as follows:
[0061] ;
[0062] The sample size was calculated using the first 200,000 rows of the formatted single-photon time-count sequence data. For the first Single-photon time value of the line data channel, For the first Single-photon time value of the line data channel;
[0063] In practice, the results of testing and analyzing the root mean square values of the 16 data channels are as follows: Figure 5 As shown, the horizontal bar chart can intuitively display the time jitter characteristics of each channel, making it easy to measure the time consistency of each channel. The smaller the root mean square value, the better the channel quality.
[0064] Step 3: Channel Delay Calculation
[0065] Due to the varying lengths of the RF connection cables between the single-photon detector and the TDC, as well as the inconsistent trace lengths on the FPGA board for each data channel, a discrepancy arises between the single-photon time values of each data channel and the synchronization channel. This discrepancy can be positive or negative, necessitating the calculation of channel delay. Its expression is:
[0066] ;
[0067] The sample size was calculated using the first 200,000 rows of the formatted single-photon time-count sequence data. For the first Single-photon time value of the line data channel, For the first Single-photon time value of the horizontal synchronization channel;
[0068] In practical implementation, the delay values of each data channel are as follows: Figure 6 As shown, the results of testing and calculating the average delay of 16 channels are as follows: Figure 7 As shown in the figure, the horizontal bar chart can visually display the time deviation of each data channel relative to the synchronization channel, providing basic data for subsequent delay compensation.
[0069] Step 4: Channel Delay Compensation
[0070] Before further processing the formatted single-photon time count sequence data, the single-photon time values of each data channel need to be corrected through delay compensation to eliminate or minimize the inter-channel delay error caused by inconsistent physical trace lengths, achieving statistical synchronization. The expression for this is:
[0071] ;
[0072] in, This represents the single-photon time value after delay compensation for the data channel.
[0073] Step 5
[0074] Step 5: Perform equal-interval interpolation on the formatted single-photon time-counting sequence data within each synchronization time interval, and then perform FFT (Fast Fourier Transform) on the formatted single-photon time-counting sequence data after equal-interval interpolation to demodulate the frequency domain information within each synchronization time interval and display it in the form of a spectrum.
[0075] Specifically, the process involves reading the formatted single-photon time count sequence data after delay compensation. Within this formatted single-photon time count sequence data, at fixed time intervals, a row of synchronization channel numbers and their corresponding single-photon time values appears. The FFT module first searches for the synchronization channel number (e.g., synchronization channel number 25) and uses its corresponding single-photon time value as the boundary of the integration interval (i.e., the data channel time sequence between two adjacent synchronization channel numbers 25). As The integration interval boundary is defined by the ratio of the time interval value to the number of points in the FFT, which is used as the minimum time scale of the integration interval (equal interval). Then, the time values corresponding to each data channel within the integration interval are placed into the closest time scale position (interpolation), thus completing the equal interval interpolation of the single-photon time series data.
[0076] For example, if we select 1024 FFT points, resulting in 1024 points of spectrum data, due to the X-axis symmetry of the spectrum, we extract the data with x-coordinate values ≥ 0 (i.e., the first 512 points) as the final spectrum data for each integration interval. Figure 8 As shown, for the 1024-point FFT result, only the spectrum of the right half (0-512 points) is displayed in the figure. It can be seen from the figure that, excluding the DC component at point 0, the frequency corresponding to the position with the largest amplitude is the frequency value demodulated within that integration interval. The calculation formula is:
[0077]
[0078] in, To calculate the frequency, This is the frequency point index, with a value range of [0, 512]. Where N is the sampling rate, and N is the number of FFT points, which is 1024 here;
[0079] In practice, the blue-green laser communication system transmits 32 frequencies cyclically. If the receiver decodes the frequencies correctly, the resulting frequency distribution curve will show a zigzag pattern, with the 32 frequencies being 107.52MHz, 109.2MHz, ..., 159.6MHz. Figure 9 As shown, the frequency interval between adjacent frequency points is 1.68MHz.
[0080] Step Six: Signal-to-Noise Ratio Analysis
[0081] Signal-to-noise ratio (SNR) analysis calculates the ratio of the average amplitude of a signal frequency point to the average amplitude of other noise points within a single integration interval. The formula is as follows:
[0082] ;
[0083] in, For the signal-to-noise ratio in a single integration interval, The amplitude at the signal frequency point. The noise frequency amplitude is N, which is the number of FFT points minus the signal frequency, i.e., N = 512 - 1 = 511, representing 511 noise points. Figure 10 As shown. Signal-to-noise ratio (SNR) is an indicator of a system's noise immunity. A higher SNR indicates stronger noise immunity and a lower bit error rate in the decoded data.
[0084] Step 7: Bit Error Rate Analysis
[0085] The frequency points decoded at the receiving end are compared one by one with the frequency points transmitted at the transmitting end. Frequency points that do not match are considered erroneous. Each frequency point is represented by 6 bits. The number of inconsistent bits is considered the number of bit errors. The ratio of the number of bit errors to the total number of bits received by the receiving end is the bit error rate (BER). The result is displayed numerically, and its expression is:
[0086] ;
[0087] in, For bit error rate, Number of error bits This represents the total number of bits.
[0088] The performance of the software corresponding to the frequency domain analysis method for single-photon time-count sequence data described above was tested, and the test results are as follows: Figure 11 As shown, the obtained signal-to-noise ratios are all no less than 5, and the bit error rates are all less than 10e-5, demonstrating high noise immunity and low bit error rate.
[0089] The above description is merely a specific embodiment of the present invention, enabling those skilled in the art to understand or implement the present invention. Although detailed descriptions have been provided with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments, and they should all be covered within the protection scope of the claims.
Claims
1. A frequency domain analysis method for single-photon time-counting sequence data, characterized in that, Includes the following steps: Step 1: Convert the UDP data collected from the network port into formatted single-photon time-count sequence data:
11. Enable network port data acquisition, receive UDP data packets from the single-photon time counter and save them to disk to form a binary raw data file of the single-photon time counting sequence. The single-photon time counter is composed of bits 0-25 of the high 4 bytes of the TDC data frame and bits 8-25 of the low 4 bytes of the TDC data frame, totaling 44 bits. The fine time counter is located in bits 0-7 of the low 4 bytes of the TDC data frame, totaling 8 bits. Bits 27-31 of the high 4 bytes and low 4 bytes of the TDC data frame represent the channel number. Bit 26 of the high 4 bytes and low 4 bytes of the TDC data frame is a flag bit. When this bit is 0, it indicates that the TDC data frame is the low 4 bytes. When this bit is 1, it indicates that the TDC data frame is the high 4 bytes.
12. Handling high frame changes: When the high 26 bits of the coarse time counter in the high 4 bytes of TDC remain unchanged, the frame is not sent. Only the low 4 bytes of TDC are sent. When calculating the time value corresponding to the data channel, the previously stored high 26 bits of the coarse time counter are used. The frame is sent only when the high 26 bits of the coarse time counter in the high 4 bytes of TDC change.
13. Calculate the single-photon time value for each data channel. The data is then sorted in ascending order according to the single-photon time value to transform the original UDP data into a formatted single-photon time count sequence that clearly displays each data channel and its corresponding single-photon time value. The expression for this sequence is: ; in, For rough time, For fine time, the unit is ps. 2500ps is coarse time precision, and 47ps is fine time precision. Step 2: Channel Delay Calculation Calculate channel delay Its expression is: ; The sample size was calculated using the first 200,000 rows of the formatted single-photon time-count sequence data. For the first Single-photon time value of the line data channel, For the first Single-photon time value of the horizontal synchronization channel; Step 3: Channel Delay Compensation The expression for channel delay compensation is: ; in, This represents the single-photon time value after delay compensation for the data channel. Step 4: Perform equal-interval interpolation on the formatted single-photon time count sequence data within each synchronization time interval; Step 5: Perform FFT on the formatted single-photon time-counting sequence data after equal interval difference, demodulate the frequency domain information within each synchronization time interval, and display it in the form of a spectrogram.
2. The frequency domain analysis method for single-photon time-count sequence data according to claim 1, characterized in that, The method also includes TDC channel root mean square analysis: Root Mean Square of Channel The formula used to calculate the time value variance for each data channel in the TDC is as follows: ; The sample size was calculated using the first 200,000 rows of the formatted single-photon time-count sequence data. For the first Time value of row data channel For the first The time value of the row data channel.
3. The frequency domain analysis method for single-photon time-count sequence data according to claim 2, characterized in that, The method also includes signal-to-noise ratio (SNR) analysis, which calculates the ratio of the average amplitude of the signal frequency point to the average amplitude of other noise points within a single integration interval. The calculation formula is as follows: ; in, For the signal-to-noise ratio in a single integration interval, The amplitude at the signal frequency point. The amplitude at the noise frequency point. Subtract the signal frequency from the FFT points.
4. The frequency domain analysis method for single-photon time-count sequence data according to claim 3, characterized in that, The method also includes bit error rate analysis. The frequency points decoded at the receiver are compared one by one with the frequency points transmitted at the transmitter. Frequency points that do not match are considered erroneous. Each frequency point is represented by 6 bits. The erroneous frequency points are compared bit by bit with the transmitted frequency points, and the number of inconsistent bits is considered the number of bit errors. The ratio of the number of bit errors to the total number of bits received by the receiver is the bit error rate, expressed as: ; in, For bit error rate, Number of error bits This represents the total number of bits.
