Transmission device, transmission method, and communication system
By calculating and adjusting the disparity within frames using adjustment data, the DC balance is maintained, addressing the continuous imbalance in 8B10B encoding.
Patent Information
- Application Number
- JP2023084767
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-05-23
- Publication Date
- 2024-12-05
AI Technical Summary
Existing 8B10B encoding methods fail to address the continuous imbalance in DC balance due to the persistent state of RD+ where the number of '1's exceeds the number of '0's, leading to unbalanced disparity in output data strings.
A mechanism is introduced to neutralize disparity within frames by calculating the cumulative difference between '0's and '1's, generating adjustment data based on this difference, and incorporating it into frames to maintain DC balance.
This approach ensures that the disparity within frames becomes neutral, thereby maintaining DC balance and correcting the imbalance caused by continuous RD+ states.
Smart Images

Figure 2024168258000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a transmitting device, a transmitting method, and a communication system. [Background technology]
[0002] 8B10B coding is widely used as a method for converting transmission data into coded data. 8B10B coding converts 8-bit input data into 10-bit output data according to a specified conversion table. In this 8B10B coding, the DC balance of the output data string is maintained by control based on the running disparity (RD) value. In other words, this control makes the number of "0"s and "1"s appearing in the output data string equal or nearly equal.
[0003] Disparity is the difference between the number of "1"s and the number of "0"s. The RD value is determined according to the cumulative difference between the number of "1"s and the number of "0"s that appear in the output data string, and two states, "RD-" and "RD+", are defined according to the cumulative difference. The 10-bit output data corresponding to the 8-bit input data is specified separately for each of the two states, "RD-" and "RD+". Here, the output data for the RD- state has either the number of "1"s equal to the number of "0"s (neutral disparity) or two more "1"s than "0"s (disparity of +2). On the other hand, the output data for the RD+ state has either a neutral disparity or two fewer "1"s than "0"s (disparity of -2). For example, when data having a disparity of +2 is output in the state RD-, the next output data is set to the state RD+ so that at least the next output data does not have a disparity of +2. Similarly, when a data string having a disparity of -2 is output in the state RD+, the next output data is set to the state RD- so that at least the next output data does not have a disparity of -2. The initial value of the RD value is usually set to RD-, and when the first 10-bit output data is output data having a neutral disparity, RD- is continued. On the other hand, when the first 10-bit output data is output data having a disparity of +2, the RD value is updated to RD+. That is, when the initial value of the RD value is set to RD-, RD- means that the cumulative difference between the number of "1"s and the number of "0"s is equal, and RD+ means that the number of "1"s is two more than the number of "0". In this way, in the 8B10B encoding, an encoding rule is used that selects whether the output data corresponds to RD- or RD+ depending on the RD value up to the previous time. This operation makes it possible to control the total number of "0"s and "1"s in the output data string so that they match or nearly match.
[0004] Patent Document 1 proposes an encoding technique for improving the periodicity of output data when the same 8-bit data is input continuously by switching between multiple encoding processing units, and spreading frequency components. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] JP 2011-155330 A Summary of the Invention [Problem to be solved by the invention]
[0006] In the above-mentioned 8B10B encoding, when 8 bits of data to be encoded into 10 bits of output data with neutral disparity are input consecutively in the RD+ state, the RD+ state continues, i.e., the number of "1"s is two more than the number of "0"s, resulting in a slight DC imbalance.
[0007] For example, in state RD+, the 10-bit output data for 8-bit input data "00000000" is "0110001011", which has a neutral disparity. Also, the 10-bit output data for 8-bit input data "00000001" is "1000101011", which also has a neutral disparity. When data with these neutral disparities are output in state RD+, state RD+ continues.
[0008] The technology described in Patent Document 1 is effective in improving the periodicity of output data when the same 8-bit data is input continuously, but does not take into consideration the DC imbalance caused by the above-mentioned RD+ state continuing, and is therefore unable to improve this.
[0009] In view of the above problems, an object of the present invention is to provide a mechanism for neutralizing disparity in a frame and maintaining DC balance in the frame. [Means for solving the problem]
[0010] In view of the above problems, a transmitting device of the present invention comprises: An encoding processing means for converting transmission data into encoded data; A calculation means for calculating a cumulative difference value between the number of 0s and the number of 1s included in the plurality of encoded data; an adjustment data generating means for generating adjustment data based on the calculated cumulative difference value; The apparatus further comprises a frame generating means for generating a frame consisting of a plurality of the encoded data and the adjustment data. Effect of the Invention
[0011] According to the present invention, it is possible to provide a mechanism for neutralizing disparity in a frame and maintaining DC balance in the frame. [Brief description of the drawings]
[0012] [Figure 1] A block diagram showing an example of the configuration of a communication system. [Diagram 2] A block diagram showing an example of the configuration of a measurement device 101. [Diagram 3] A block diagram showing an example of the configuration of a frame generating unit 208. [Figure 4] A diagram showing an example of a frame structure [Diagram 5] A flow diagram showing an example of the operation of the frame generating unit 208. [Figure 6] A block diagram showing an example of the configuration of a light source device 102. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] (Embodiment 1) 1 is a block diagram showing an example of the configuration of a communication system described in this embodiment. This communication system is a measurement system that includes a measurement device 101, a light source device 102, and a display device 103, and measures optical parameters such as the light scattering coefficient and light absorption coefficient of a measurement object 104.
[0014] In this system, the light source device 102 irradiates the measurement object 104 with a laser beam 105 modulated at a predetermined frequency. The measurement device 101 measures the intensity of the laser beam 106 reflected or transmitted by the measurement object 104. Here, when measuring the laser beam 106, the measurement device 101 measures the intensity of the laser beam 106 by synchronous detection using a reference signal that is frequency-synchronized with the modulation frequency, taking advantage of the fact that the laser beam 106 is modulated. Then, the measurement device 101 transmits the measurement result of the laser beam 106 to the light source device 102 by a wireless signal 108 via an antenna 107. The light source device 102 acquires the measurement result from the wireless signal 108 received via an antenna 109, calculates the optical parameters of the measurement object 104 by performing a predetermined arithmetic process on the measurement result, and displays it on the display device 103. As will be described later, the measurement device 101 and the light source device 102 are configured to be frequency-synchronized at the clock level by the wireless signal 108. In other words, the detection reference signal and the modulation signal are frequency-synchronized, enabling highly accurate synchronous detection. Conventionally, a lock-in amplifier is known as a system that performs measurements by frequency-synchronizing a detection reference signal generation circuit and a modulation signal generation circuit via a wired connection, but this communication system is configured to wirelessly implement this lock-in amplifier.
[0015] 2 shows an example of the configuration of the measuring device 101. The measuring device 101 includes, for example, a clock generating unit 201, a sensor unit 202, an A / D converting unit 203, a reference signal generating unit 204, a wave detecting unit 205, an LPF 206, an absolute value calculating unit 207, a frame generating unit 208, a modulating unit 209, and a transmitting unit 210.
[0016] The clock generating unit 201 is configured with, for example, a crystal oscillation circuit, a PLL (Phase Lock Loop) circuit, etc., and supplies a clock signal to each component of the measuring device 101 .
[0017] The sensor unit 202 is configured with an optical sensor such as a photodiode, a transimpedance amplifier, and the like, converts the signal under measurement into an electrical signal, and outputs it to the A / D conversion unit 203 .
[0018] The A / D conversion section 203 A / D (analog / digital) converts the signal under measurement, and outputs the digitized signal under measurement to the detection section 205 .
[0019] The reference signal generating unit 204 is configured with a DDS (Direct Digital Synthesizer) or the like. Based on the clock signal output by the clock generating unit 201, a sine wave reference signal and a cosine wave reference signal of a predetermined frequency fref [Hz] are generated and output to the detection unit 205. Note that in this embodiment, a sine wave signal and a cosine wave signal are used as the reference signal, but it is sufficient that the signals have a phase difference of 90°, and a rectangular wave signal with a phase difference of 90° may be used.
[0020] The detection unit 205 multiplies the signal under measurement by the sine wave and cosine wave reference signals input from the reference signal generation unit 204, and outputs an in-phase detection signal and a quadrature-phase detection signal to the LPF 206.
[0021] The LPF 206 is a low pass filter (LPF) for suppressing high frequency noise signals of the I-phase detection signal and the Q-phase detection signal, and is configured by a finite impulse response (FIR) filter or an infinite impulse response (IIR) filter.
[0022] The absolute value calculation section 207 calculates the square root of the sum of the squares of the I-phase detection signal and the Q-phase detection signal input from the LPF 206 to calculate the absolute amplitude value of the signal under measurement, and outputs the result to the frame generation section 208 .
[0023] 3 is a block diagram showing an example of the configuration of the frame generation unit 208. The frame generation unit 208 is made up of a transmission buffer 301, an 8B10B conversion unit 302, an adjustment data generation unit 303, and a combination unit 304, for example.
[0024] The transmission buffer 301 stores one frame of data input from the absolute value calculation unit 207 .
[0025] The 8B10B converter 302 sets the initial value of the RD value to RD-, and 8B10B-encodes the data input from the transmission buffer 301. The 8B10B converter 302 also places a code indicating a start of frame (SOF) at the beginning of the frame. The K code defined in 8B10B encoding is used as the code for this SOF. When the 8B10B converter 302 completes 8B10B conversion for one frame, it outputs the RD value at the time of completion to the adjustment data generator 303.
[0026] The adjustment data generation unit 303 generates data for adjusting the disparity of a frame based on the RD value input from the 8B10B conversion unit 302. For example, when RD- (the number of "1"s and the number of "0"s are the same) is input from the 8B10B conversion unit 302, 10-bit data with neutral disparity is generated and output to the combining unit 304. Also, when RD+ (the number of "1"s is two more than the number of "0"s) is input from the 8B10B conversion unit 302, 10-bit data with a disparity of -2 is generated and output to the combining unit 304.
[0027] The combining unit 304 combines the data input from the 8B10B conversion unit 302 and the data input from the adjustment data generation unit 303 , and outputs the combined data to the modulation unit 209 .
[0028] 4 is an example of a frame structure generated by frame generation unit 208. The frame is composed of SOF field 401, payload field 402, and adjustment data field 403. As described above, SOF field 401 is a field indicating the start of a frame, and a K code defined in 8B10B encoding is placed therein. Payload field 402 is placed with data obtained by 8B10B encoding the data input from absolute value calculation unit 207. Adjustment data corresponding to an RD value determined as a result of 8B10B conversion of SOF field 401 and payload field 402 is placed therein.
[0029] FIG. 5 is a flow diagram showing an example of the operation of the frame generating unit 208.
[0030] When the frame generation unit 208 starts generating a frame, it initializes the RD value to RD- (S501). Then, it places a K code in the SOF field (S502) and updates RD (S503). For example, when K28.0 is used as SOF, the 10-bit output data in RD- is "001110100" and has a neutral disparity. Therefore, in this case, RD remains unchanged as RD-. On the other hand, for example, when K28.1 is used as SOF, the 10-bit output data in RD- is "0011111001" and has a disparity of +2. Therefore, in this case, the RD value is updated to RD+. Next, the frame generation unit 208 executes the 8B10B conversion process for one frame's worth of payload data until the 8B10B conversion process is completed (NO in S504) (S505). Then, when the 8B10B conversion process of one frame's worth of payload data is completed (YES in S504), adjustment data according to the RD value at the time of completion is added. Specifically, if the RD value at the time of completion is RD- (YES in S506), adjustment data having a neutral disparity is added (S507). On the other hand, if the RD value at the time of completion is RD+ (NO in S506), adjustment data having a disparity of -2 is added (S508).
[0031] The disparity of the frame generated by the frame generating unit 208 is neutral due to the above-mentioned operation of the frame generating unit 208. That is, the disparity in a given frame is neutralized, and the DC balance during this period can be maintained.
[0032] In this embodiment, the adjustment data is described as being composed of data having the same output bit number as that of the data obtained by the encoding process, but the present invention is not limited to this. For example, the adjustment data may be composed of 2-bit data, and the adjustment data having a neutral disparity may be "01" or "10", and the adjustment data having a disparity of -2 may be "00". That is, the adjustment data may have a neutral disparity or a disparity of -2, and the adjustment data may be composed of 2N (N is an integer equal to or greater than 1) bits. Also, in S507, it is not necessary to add the adjustment data having a neutral disparity, and it is also possible to add the adjustment data having a disparity of -2 only when RD is RD+ in S506.
[0033] 2, the frame output from frame generation section 208 is input to modulation section 209. In this embodiment, modulation section 209 frequency modulates the frame by binary continuous phase frequency shift keying (hereinafter referred to as CPFSK).
[0034] The transmitting unit 210 is composed of a mixer circuit, a band-limiting filter, and a PLL circuit, converts the modulated signal input from the modulating unit 209 into a radio frequency signal of a predetermined frequency, and transmits it from the antenna 107. Here, if the center frequency of the radio signal is f1 [Hz] and the frequency deviation due to CPFSK modulation is ±f2 [Hz], the frequency of the radio signal output from the transmitting unit 210 is either f1-f2 [Hz] or f1+f2 [Hz]. Then, the disparity for each frame is adjusted to 0 by the operation of the frame generating unit 208. Therefore, the time length of the radio signal period of f1-f2 [Hz] and the radio signal period of f1+f2 [Hz] match for each frame.
[0035] 6 is a block diagram showing an example of the configuration of the light source device 102. The light source device 102 includes, for example, a receiving unit 601, a clock recovery unit 602, a demodulation unit 603, a decoding unit 604, a processing unit 605, an optical modulation signal generation unit 606, a D / A conversion unit 607, and a light source unit 608.
[0036] The receiving unit 601 is made up of an LNA (Low Noise Amplifier), a limiter amplifier, etc., and amplifies and shapes the waveform of a radio signal received by the antenna 109 to an appropriate signal level for operation of a downstream operation block.
[0037] The clock regenerator 602 is configured by a PLL circuit, and regenerates a clock signal having the same frequency as the clock signal output by the clock generator 201 from the wireless reception signal. As described above, the frequency of the wireless reception signal is f1-f2 [Hz] or f1+f2 [Hz], and the time length of each wireless signal period is the same for each frame. Therefore, the average frequency of the wireless reception signal is f1 [Hz] for each frame. Using this, the clock regenerator 602 regenerates a clock signal synchronized with the measurement device 101. In the measurement device 101, the wireless signal frequency f1 [Hz] is generated by multiplying the clock signal output by the clock generator 201 by X (X is any integer or fraction) using a PLL or the like. Therefore, the light source device 102 can regenerate a clock signal synchronized in frequency with the clock signal output by the clock generator 201 by dividing the f1 [Hz] signal obtained from the wireless reception signal by X. In order to suppress frequency fluctuations in the recovered clock signal, it is desirable to configure the PLL circuit in the clock recovery unit 602 so that its loop time constant is longer than the frame length. Alternatively, it is desirable to determine the frame length so that it is shorter than the loop time constant of the PLL circuit.
[0038] The demodulation unit 603 demodulates the signal output from the receiving unit 601 into a data signal by a known FSK demodulation method such as a slope detection method or a PLL detection method.
[0039] The decoding unit 604 extracts the payload in the frame (i.e., the absolute amplitude value of the signal under test) by performing 10B8B conversion on the data signal input from the demodulation unit 603, and outputs it to the processing unit 605. More specifically, it identifies the frame boundary by detecting the SOF 401 included in the frame, and decodes the payload 402 by performing 10B8B conversion on a predetermined number of bits of data after the SOF. At this time, the adjustment data 403 is discarded since it is not necessary for the subsequent processing.
[0040] The processing unit 605 performs noise suppression processing such as averaging on the absolute amplitude value of the decoded signal under measurement, and calculates optical parameters of the measurement target 104 by performing arithmetic processing based on the output power of the light source unit 608 and the sensitivity of the sensor unit 202, and displays the calculation results on the display device 103.
[0041] The optical modulation signal generating unit 606 is configured by a DDS or the like, and generates a sine wave modulation signal of a predetermined frequency fmod [Hz] based on the clock signal input from the clock recovery unit 602. In this embodiment, a sine wave signal is used as the modulation signal, but a square wave signal may be used. Note that fmod [Hz] is set to be equal to the reference signal frequency fref [Hz] generated by the measurement device 101.
[0042] The sinusoidal modulated signal is D / A (Digital / Analog) converted by a D / A converter 607 and input to a light source unit 608 .
[0043] The light source unit 608 is configured with a laser diode or the like, and outputs a laser beam whose intensity is modulated based on a signal input from the D / A conversion unit 607 .
[0044] In this manner, in this embodiment, the measuring device 101 generates frames to which adjustment data is added so that the disparity of each frame is neutral. This operation makes it possible to neutralize the disparity in a given frame and maintain the DC balance during this period.
[0045] Furthermore, the measurement device 101 modulates this frame with CPFSK and transmits it wirelessly, and the light source device 102 regenerates a clock signal based on the average frequency of the received wireless signal. This operation enables the light source device 102 to regenerate a clock signal that is synchronized in frequency with the measurement device 101. In other words, the detection reference signal generated by the measurement device 101 and the optical modulated signal generated by the light source device 102 can be synchronized in frequency, making it possible to realize a communication system in which a lock-in amplifier is made wireless.
[0046] In this embodiment, the payload is encoded using 8B10B encoding as an example. However, the present invention is not limited to this, and can be applied to other encoding methods such as 64B66B and 128B130B, which may cause DC imbalance depending on the input data.
[0047] The present invention can also be realized by executing the following process: That is, software (programs) that realize the functions of the above-described embodiments are supplied to a system or device via a network or various storage media, and the computer (or CPU, MPU, etc.) of the system or device reads and executes the programs.
Claims
1. An encoding processing means for converting transmission data into encoded data; a calculation means for calculating a cumulative difference between the number of 0's and the number of 1's included in the plurality of encoded data; an adjustment data generating means for generating adjustment data based on the calculated cumulative difference value; a frame generating means for generating a frame including a plurality of the encoded data and the adjustment data; A transmitting device comprising:
2. The adjustment data generating means Generate adjustment data having a number of bits equal to the absolute value of the cumulative difference value.
2. The transmitting device according to claim 1 .
3. The adjustment data generating means Generate adjustment data having a number of bits equal to the number of bits output by the encoding processing means.
2. The transmitting device according to claim 1 .
4. The encoding processing means 2. The transmitting device according to claim 1, wherein the transmitting device performs 8B10B encoding conversion.
5. The adjustment data generating means When the cumulative difference value is 2, adjustment data is generated.
2. The transmitting device according to claim 1 .
6. The adjustment data generating means Adjustment data is generated so that the cumulative difference between the number of 0s and the number of 1s included in the frame becomes 0.
2. The transmitting device according to claim 1 .
7. 2. The transmitting apparatus according to claim 1, further comprising a modulation means for frequency modulating the frame.
8. 8. The transmitter according to claim 7, wherein the frequency modulation is CPFSK modulation.
9. An encoding method for converting transmission data into encoded data; A calculation method for calculating a cumulative difference between the number of 0s and the number of 1s included in the plurality of encoded data; an adjustment data generation method for generating adjustment data based on the calculated cumulative difference value; a frame generation method for generating a frame including a plurality of the encoded data and the adjustment data; A transmission method comprising the steps of:
10. An encoding processing means for converting transmission data into encoded data; a calculation means for calculating a cumulative difference between the number of 0's and the number of 1's included in the plurality of encoded data; an adjustment data generating means for generating adjustment data based on the calculated cumulative difference value; a frame generating means for generating a frame including a plurality of the encoded data and the adjustment data; a modulation means for frequency modulating the frame; A transmitting device having a receiving means for receiving the frequency modulated signal; a clock regenerating means for regenerating a clock signal of a predetermined frequency from the frequency modulated signal; A receiving device having A communication system comprising:
Citation Information
Patent Citations
Transmission system
JP2011155330A
