CN115150962B - Universal method for TCS switch switching of 5G communication system - Google Patents

Universal method for TCS switch switching of 5G communication system Download PDF

Info

Publication number
CN115150962B
CN115150962B CN202211078868.4A CN202211078868A CN115150962B CN 115150962 B CN115150962 B CN 115150962B CN 202211078868 A CN202211078868 A CN 202211078868A CN 115150962 B CN115150962 B CN 115150962B
Authority
CN
China
Prior art keywords
switch
pulse
offset
cnt
symbol
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211078868.4A
Other languages
Chinese (zh)
Other versions
CN115150962A (en
Inventor
陈仲甫
徐捷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Digitgate Technology Co ltd
Original Assignee
Nanjing Digitgate Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Digitgate Technology Co ltd filed Critical Nanjing Digitgate Technology Co ltd
Priority to CN202211078868.4A priority Critical patent/CN115150962B/en
Publication of CN115150962A publication Critical patent/CN115150962A/en
Application granted granted Critical
Publication of CN115150962B publication Critical patent/CN115150962B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/04Wireless resource allocation
    • H04W72/044Wireless resource allocation based on the type of the allocated resource
    • H04W72/0446Resources in time domain, e.g. slots or frames
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/14Two-way operation using the same type of signal, i.e. duplex
    • H04L5/1469Two-way operation using the same type of signal, i.e. duplex using time-sharing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/04Wireless resource allocation
    • H04W72/044Wireless resource allocation based on the type of the allocated resource
    • H04W72/0453Resources in frequency domain, e.g. a carrier in FDMA
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Time-Division Multiplex Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a general method for switching a TCS switch of a 5G communication system, which belongs to the technical field of 5G communication, wherein a pin of the switch is directly controlled by a register in an fdd mode; in a tdd mode, capturing a rising edge pulse of an air interface data frame header, setting a counter to count an NR wireless frame according to a frame header starting position, setting a new pulse and a new counter according to a total offset, determining the starting position of the counter by the pulse, respectively setting on and off pulses of a switch, a counter of the switch and a counter of the switch according to local offsets of the on and off of the switch, determining the starting position of the counter by the pulse, setting the counter of the on and off counters of the switch according to the length of a symbol, counting from 0 to 279, finally judging the on-off state of an indication signal according to a function, and directly controlling a pin by a switching signal; the invention solves the diversity and complexity of tdd subframe configuration in a 5G communication system.

Description

General method for TCS switch switching of 5G communication system
Technical Field
The invention relates to the technical field of 5G communication, which is established on the basis of equal clock frequency and sampling rate and is used for analyzing the subframe proportion of a subcarrier in 5G and accurately switching a TCS switch so as to control a switching signal.
Background
In a 5G communication system, taking 30Khz subcarrier as an example, 1 NR radio frame is 10ms long, and is divided into 20 slots, each slot is divided into 14 symbols, respectively, symbol 0 to symbol 13, and symbol 0 of each slot contains cp, i.e., symbol 0 of each slot is 4448 long, and the remaining symbols 1 to 13 are 4384 long. Such a frame structure determines that the TDD subframe configuration in a 5G system is much more complex than in a 4G system. In a 4G communication system, only nine sub-carrier ratios are required to be supported in a tdd mode, and in a 5G communication system, dozens of sub-carrier ratios are required to be supported, on one hand, the sub-carrier ratios required to be supported by the 5G communication system are sharply increased compared with the 4G communication system, and on the other hand, the internal structures of the sub-carriers are different, so that an algorithm related to a Time Control Sequence (TCS) in the original 4G communication system fails, and in more 5G communication systems, the algorithm related to the Time Control Sequence (TCS) cannot fully configure the sub-carrier ratios, so that a bit stream file may need to be regenerated when one ratio is exchanged, thereby greatly reducing the flexibility of codes, increasing the complexity of debugging, increasing human input, extending the development cycle, and affecting the project progress.
Disclosure of Invention
In view of the problems in the prior art, an object of the present invention is to provide a Time Control Sequence (TCS) switching algorithm based on the equal clock frequency and sampling rate in the 5G communication technology field. The diversity and complexity of tdd subframe configuration in a 5G communication system are solved, so that the labor input is reduced, and the development period is shortened.
In order to achieve the purpose, the invention adopts the technical scheme that: a general method for TCS switch switching of a 5G communication system is characterized in that: aiming at two different modes of frequency division duplex fdd and time division duplex tdd, a register is used for controlling signals in the frequency division duplex fdd mode so that the signals directly control pins, and a TCS algorithm is used for controlling the signals in the time division duplex tdd mode so that the signals control the pins, the method specifically comprises the following steps:
step one, according to a pulse timebase _ trig _10ms of an initial position of a frame header recovered by a 10msNR wireless frame, taking a rising edge of the pulse timebase _ trig _10ms as an initial position of TCS switch switching;
step two, counting a complete 10msNR wireless frame according to the timebase _ trig _10ms in the step one, namely setting a counter timebase _ cnt _10ms which takes the rising edge of the timebase _ trig _10ms as an initial position and counts from 0 to the clock frequency value (unit is hertz) minus 1;
step three, setting a pulse all _ pulse in the counter timebase _ cnt _10ms described in the step two;
step four, setting a counter cnt _ all _ pulse for counting 0 to clock frequency value minus 1 according to the rising edge of the pulse all _ pulse in the step three as a starting position, and counting a complete 10msNR wireless frame;
step five, in the counter cnt _ all _ pulse described in the step four, according to the switch local offset amount switch _ on _ offset and switch _ off _ offset, setting a pulse switch _ on _ pulse and a switch _ off _ pulse;
step six, counting 10msNR wireless frames according to the initial positions of the pulses switch _ on _ pulse and switch _ off _ pulse in the step five, namely setting a counter cnt _ switch _ on and cnt _ switch _ off with the number of 0 to the clock frequency value minus 1 respectively;
seventhly, dividing the counters cnt _ switch _ on and cnt _ switch _ off in the sixth step according to the length of the symbols to obtain counters cnt _ switch _ on _ symbol and cnt _ switch _ off _ symbol, namely counting 0 to 279 respectively, and setting pulse switch _ on _ symbol _ pulse and switch _ off _ symbol _ pulse at the initial position of each symbol;
step eight, defining 560bit subframe ratio indication signal tdd _ symbol _ cfg, which can be decomposed into 280 2 bits, and the counters cnt _ switch _ on _ symbol and cnt _ switch _ off _ symbol in step seven have 0 to 279 respectively corresponding to 280 groups of 2 bits indicating the signal tdd _ symbol _ cfg from low bit to high bit;
step nine, setting a 2-bit function, judging the corresponding relation between the counters cnt _ switch _ on _ symbol and cnt _ switch _ off _ symbol in the step eight with respect to the indication signal tdd _ symbol _ cfg by using the function, and then completing the switching of the final switch by using a logic command according to the uplink or downlink position of the switch.
The second step is specifically as follows: since there is a certain device delay after the data enters the air interface, the start position pulse of the air interface data, timebase _ trig _10ms, is not necessarily aligned with the real start position of the air interface data, at this time, if it is necessary to accurately align the start position of the TCS switch with the start position of the air interface data, the overall on and off state of the switch needs to have an accurate offset all _ offset to offset, if the switch needs to be turned on or off in advance, the all _ offset is represented by a hexadecimal negative value, and if the switch needs to be turned on or off after a delay, the all _ offset is represented by a hexadecimal positive value.
The third step is specifically as follows: according to the value of the switch offset all _ offset in the second step, the pulse all _ pulse is set in the counter timebase _ cnt _10ms described in the second step, if the TCS switch is integrally assumed, the all _ offset is set to a negative value, that is, the pulse all _ pulse is set at a position where the clock frequency value (in hertz) -1-DEC (| all _ offset |)) is counted in the timebase _ cnt _10ms, and if the TCS switch is integrally delayed, the all _ offset is set to a positive value, that is, the pulse all _ pulse is set at a position where the clock frequency value (in hertz) -1-DEC (all _ offset |) is counted in the timebase _ cnt _10 ms.
In the second step, although the offset all _ offset adjusts the position of the whole TCS switch, in order to prevent the switch from affecting the air interface data, the switch on and off of the switch also needs to be adjusted by the offset, that is, the positions of the rising edge and the falling edge of the switch on and off are adjusted; the switch comprises an uplink switch and a downlink switch, and specifically comprises: a radio frequency link downlink data enable switch, a power amplifier switch, a radio frequency link uplink data enable switch and a low noise amplifier switch.
The local offset defining the on state of the switch is switch _ on _ offset, if the switch needs to be opened in advance, the local offset is represented by a hexadecimal negative value, and if the switch needs to be opened later, the local offset is represented by a hexadecimal positive value; the local offset defining the off state of the switch is switch off offset, which is expressed as a negative hex value if the switch needs to be closed early, and as a positive hex value if the switch needs to be closed late.
The fifth step is specifically as follows: setting pulses switch _ on _ pulse and switch _ off _ pulse at corresponding positions of the counter cnt _ all _ pulse described in the fourth step according to the values of the local offset amounts switch _ on _ offset and switch _ off _ offset, setting the pulses switch _ on _ pulse at a position where cnt _ all _ pulse counts to a clock frequency value of-1-Dec (| switch _ on _ offset |) if the switch _ on _ offset is a negative value, and setting the pulses switch _ on _ pulse at a position where cnt _ all _ pulse counts to Dec (switch _ on _ offset) if the switch _ on _ offset is a positive value; if the switch _ off _ offset is a negative value, the pulse switch _ off _ pulse is set at a position where cnt _ all _ pulse counts to (a clock frequency value of-1-Dec (| switch _ off _ offset |)), and if the switch _ off _ offset is a positive value, the pulse switch _ off _ pulse is set at a position where cnt _ all _ pulse counts to Dec (switch _ off _ offset).
In step two, the offset of all _ offset adjustment is actually the offset of the TCS switch as a whole, i.e., the overall offset of the switch on and off.
In the second step, since the counter timebase _ cnt _10ms of the start position starts to count from 0 to the clock frequency value minus 1, when the offset all _ offset is negative, it needs to be considered globally, that is, the unstable state generated in the first counting period is discarded, and the counting is started from the second period of the counter. Meanwhile, it is considered that the pulse all _ pulse is set when the offset all _ offset is 0, that is, when the counter timebase _ cnt _10ms is 0.
In the fourth step, because the offset all _ offset is the offset of the whole set switch and is the offset aligned with the initial position of the empty data, and the actual data changes at the initial position after the delay of the equipment and the fpga system, the local offsets switch _ on _ offset and switch _ off _ offset are needed to be finely adjusted at the moment so as to accurately adjust the position relationship between the rising edge and the falling edge of the open and close switch and the empty data, and the adjustment range is the superposition of the whole offset all _ offset and the local offsets switch _ on _ offset and the switch _ off _ offset at the moment; adjustment accuracy of global and local offsets:
Figure 446881DEST_PATH_IMAGE001
adjustment range of the overall offset: [ -X, X [ ]]And X satisfies:
Figure 691917DEST_PATH_IMAGE002
(ii) a And the range of local regulation: (-x, x), x satisfies:
Figure 2813DEST_PATH_IMAGE003
in step five, similarly to step two, since the counter cnt _ all _ pulse counts from 0 to 1, when the offset values switch _ on _ offset and switch _ off _ offset are negative values, it needs to be considered globally, that is, the unstable state generated in the first counting period is discarded, and the count is started from the second period of the counter. Meanwhile, it is necessary to set the pulses switch _ on _ pulse and switch _ off _ pulse in consideration of the offsets switch _ on _ offset and switch _ off _ offset being 0, that is, when the counters cnt _ switch _ on and cnt _ switch _ off are 0.
In step seven, each 10msNR radio frame includes 20 slots, each slot includes 14 symbols, each symbol 0 includes cp, length 4448, length from symbol 1 to symbol 13 is 4384, i.e. it is required to accurately set the pulse switch _ on _ pulse and the pulse switch _ off _ pulse at the start of the symbol, when the first pulse switch _ on _ pulse and the pulse switch _ off _ pulse are located at the time when the count _ switch _ on and the count _ switch _ off of the counter reach 0, the second pulse switch _ on _ pulse and switch _ off _ pulse are located at the time when counters cnt _ switch _ on and cnt _ switch _ off go 4447, the third pulse switch _ on _ pulse and switch _ off _ pulse are located at the time when counters cnt _ switch _ on and cnt _ switch _ off go (4447 + 4384), and so on until the 279 th pulse switch _ on _ pulse and switch _ off _ pulse are set, i.e., counters cnt _ switch _ on and cnt _ switch _ off all divide 280 symbols.
In the ninth step, the bit width of the function is 2 bits, the judgment is that 560 bits subframe ratio indication signals are input, 2 bits corresponding to 280 symbols sequentially correspond to the function with 2bit width, that is, the function needs to be processed 280 times. The function is defined as, 2' b00: uplink and downlink are closed, 2' b01: downlink on, 2' b10: uplink on, 2' b11: the uplink and downlink are normally open. The judging method comprises the following steps: defining a downlink switch of a TCS switch signal as dl _ switch, and setting the dl _ switch to be 0 when an uplink and a downlink are closed; when the downlink is on, dl _ switch is set to 1; when the uplink is on, dl _ switch is set to 0; when the uplink and the downlink are normally open, the dl _ switch is set to be 1; defining an uplink switch of the TCS switch signal as ul _ switch, and setting the ul _ switch to be 0 when the uplink and downlink are closed; ul _ switch is set to 0 when downlink is on; ul _ switch is set to 1 when the uplink is on; when the uplink and the downlink are normally open, ul _ switch is set to be 1; at this time, the 2-bit function realizes the switching of the 280 sub-frame ratio indication signals of 2 bits to the switch. The logic command of the concrete implementation: when the offset switch _ on _ offset and the offset switch _ off _ offset are equal, that is, the pulses switch _ on _ symbol _ pulse and switch _ off _ symbol _ pulse are both pulled up at the same position, that is, the counters cnt _ switch _ on _ symbol and cnt _ switch _ off _ symbol are completely aligned, and at this time, the switches dl _ switch and ul _ switch are set to 0 or 1 according to the function definition in step nine according to the pulse switch _ on _ symbol _ pulse; when the pulse switch _ on _ symbol _ pulse is 1, when the value of the function is 2'b1 and 2' b3, the switch dl _ switch is set to 1, the switch ul _ switch is set to 0, and the rest of the time is kept; when the pulse switch _ off _ symbol _ pulse is 1, the function sets the switch dl _ switch to 0 and the switch ul _ switch to 1 at the rest of time when the values are 2'b0 and 2' b 2; the switches dl _ switch and ul _ switch control the pins, and at this time, the switching of the TCS downlink switch in the tdd mode is completed.
Compared with the prior art, the invention has the beneficial effects that:
1. under the condition that the clock frequency and the sampling rate are the same, the FPGA is used for realizing the control logic of the switch in the 5G communication system under the fdd and tdd modes, firstly, the precision is controlled in a nanosecond level, the risk that the switch affects data when downlink is switched to uplink and the switch has no protection interval can be effectively avoided.
2. The invention can flexibly support various subframe ratios, skillfully solves the complexity of the subframe ratios of the subcarriers in a 5G communication system, and really exerts the universality to the maximum effect.
The invention adjusts the on-off delay amount of the switch according to the integral offset and the local offset, the integral offset avoids external larger delay caused by environment, and the local offset solves the risk that data is easily switched by the switch when downlink is switched to uplink and uplink is switched to downlink, thereby ensuring accurate correspondence of the switch and air interface data, increasing the transmission rate, reducing the development period and improving the development efficiency.
Drawings
Fig. 1 is a general method interface diagram for TCS switch switching in the 5G communication system of the present invention.
FIG. 2 is a flowchart of a general method for TCS switch switching in a 5G communication system according to the present invention.
FIG. 3 is a timing diagram of a general method for TCS switch switching in the 5G communication system of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is to be understood that the described embodiments are merely a few embodiments of the invention, and not all embodiments. All other embodiments, which can be obtained by a person skilled in the art without inventive efforts based on the embodiments of the present invention, shall fall within the scope of protection of the present invention.
The invention is further described below with reference to the accompanying drawings.
Referring to fig. 1, the interface of the present invention is as follows:
inputting: taking a clock and a reset signal of 122.88Mhz and a data sampling rate of an FPGA of 122.88Mhz as an example for explanation, tdd _ symbol _ cfg is a 560-bit subframe proportioning indication signal, each 2bit from a low bit to a high bit indicates the on and off state of a switch of one symbol, when the value of the 2bit is 0, the uplink and the downlink are closed, 1 indicates that the downlink is open, 2 indicates that the uplink is open, and 3 indicates that the uplink and the downlink are normally open, and specific values are configured through a register according to requirements. the timer _ trig _10ms is the start pulse of the frame header of the air interface data. all _ offset is the offset of the whole switch, controls the advance and delay of the whole switch, and has a specific time calculation formula:
Figure 679913DEST_PATH_IMAGE004
. pa _ switch _ on _ offset and pa _ switch _ off _ offset represent local offset of power amplifier switch, lna _ switch _ on _ offset and lna _ switch _ off _ offset represent local offset of low noise amplifier switch, dl _ data _ switch _ on _ offset and dl _ data _ switch _ off _ offset represent local offset of radio frequency downlink data enable switch, and ul _ data _ switch _ on _ offset and ul _ data _ switch _ off _ offset represent local offset of radio frequency uplink data enable switch, advance and delay of rising edge and falling edge of on and off, and formula is calculated
Figure 228706DEST_PATH_IMAGE005
And (3) outputting: pa _ switch _ tdd, lna _ switch _ tdd, dl _ data _ switch and ul _ data _ switch _ tdd are power switches in tdd mode, low noise amplifier switches, radio frequency downlink data enable switches and radio frequency uplink data enable switches, respectively, pa _ switch _ fdd, lna _ switch _ fdd, dl _ data _ switch _ fdd and ul _ data _ switch _ tdd are power switches in fdd mode, low noise amplifier switches, radio frequency downlink data enable switches and uplink data enable switches, respectively, for 4-tx 4-rx example.
Referring to fig. 2 and 3, the present invention includes the steps of:
a universal method for switching a TCS switch of a 5G communication system aims at two different modes of fdd and tdd, a register is used for controlling a signal to realize a signal control pin in the fdd mode, and a TCS algorithm is used for controlling the signal to realize the signal control pin in the tdd mode, and the method comprises the following steps:
step one, according to a pulse timebase _ trig _10ms of the initial position of the frame header recovered by the 10msNR wireless frame, the rising edge of the pulse timebase _ trig _10ms is used as the initial position of TCS switch switching, and the timebase _ trig _10ms is theoretically aligned with the rising edge of the frame header of air interface data.
Step two, according to the timebase _ trig _10ms in the step one, counting a complete 10msNR wireless frame, that is, setting a counter timebase _ cnt _10ms which takes the rising edge of the timebase _ trig _10ms as the starting position and counts from 0 to the clock frequency value (in Hz) minus 1, for example, the clock frequency is 122.88M, setting the timebase _ cnt _10ms to count from 0 to 1228799, and the following steps are explained according to the clock frequency and the data sampling rate of 122.88M.
And step three, because certain equipment time delay exists after the data enters the air interface, the initial position pulse timebase _ trig _10ms of the air interface data is not necessarily aligned with the real initial position of the air interface data, at this time, if the initial position of the TCS switch is required to be accurately aligned with the initial position of the air interface data, the whole opening and closing state of the switch needs to have accurate offset all _ offset to offset, if the switch needs to be opened or closed in advance, the all _ offset is represented by a hexadecimal negative value, and if the switch needs to be opened or closed after delay, the all _ offset is represented by a hexadecimal positive value.
And step four, according to the value of the switch offset all _ offset in step three, setting a pulse all _ pulse in the counter timebase _ cnt _10ms described in step two, if the TCS switch is integrally assumed, setting the all _ offset to be a negative value, namely setting the pulse all _ pulse at the position where the clock frequency value (unit hertz) -1-DEC (| all _ offset |)) is counted in the timebase _ cnt _10ms, and if the TCS switch is integrally delayed, setting the all _ offset to be a positive value, namely setting the pulse all _ pulse at the position where the clock frequency value (unit hertz) -1-DEC (all _ offset |) -is counted in the timebase _ cnt _10 ms.
And step five, setting a counter cnt _ all _ pulse for counting from 0 to 1228799 according to the rising edge of the pulse all _ pulse in the step four as a starting position, and counting a complete 10msNR wireless frame.
Step six, although the offset all _ offset adjusts the position of the whole TCS switch, in order to ensure that the air interface data is not influenced by the switching of the switch, the time delay is required to be adjusted for opening and closing the switch, namely the positions of the rising edge and the falling edge of the opening and the closing of the switch are adjusted; the switch comprises an uplink switch and a downlink switch, and specifically comprises: the radio frequency link downlink data enable switch, the power amplifier switch, the radio frequency link uplink data enable switch and the low noise amplifier switch, and therefore the power amplifier switch is only used for illustration. Defining the offset of the on state of the power amplifier switch as pa _ switch _ on _ offset, if the switch needs to be opened in advance, representing the offset by a hexadecimal negative value, and if the switch needs to be opened later, representing the offset by a hexadecimal positive value; the offset of the off state of the power amplifier switch is defined as pa _ switch _ off _ offset, if the switch needs to be closed in advance, the hexadecimal negative value is used for representing, and if the switch needs to be closed in a delayed mode, the hexadecimal positive value is used for representing.
Step seven, according to the values of the offset amount pa _ switch _ on _ offset and pa _ switch _ off _ offset in the step six, setting pulses pa _ switch _ on _ pulse and pa _ switch _ off _ pulse at the corresponding positions of the counter cnt _ all _ pulse described in the step five, if pa _ switch _ on _ offset is negative, setting pulses pa _ switch _ on _ pulse at the positions of cnt _ all _ pulse counts to (1228799-Dec (| pa _ switch _ on _ offset |)), if pa _ switch _ on _ offset is positive, setting pulses pa _ switch _ on _ pulse at the positions of cnt _ all _ pulse counts to Dec (pa _ switch _ on _ offset); if pa _ switch _ off _ offset is negative, pulse pa _ switch _ off _ pulse is set at a position where cnt _ all _ pulse counts to (1228799-Dec (| pa _ switch _ off _ offset |)), and if pa _ switch _ off _ offset is positive, pulse pa _ switch _ off _ pulse is set at a position where cnt _ all _ pulse counts to Dec (pa _ switch _ off _ offset 0).
And step eight, counting 10ms frames according to the initial positions of the pulses pa _ switch _ on _ pulse and pa _ switch _ off _ pulse in the step seven, namely setting the counters cnt _ pa _ switch _ on and cnt _ pa _ switch _ off with the number of 0 to 1228799 respectively.
And step nine, dividing the counters cnt _ pa _ switch _ on and cnt _ pa _ switch _ off in the step eight respectively according to the length of the symbol to obtain counters cnt _ pa _ switch _ on _ symbol and cnt _ pa _ switch _ off _ symbol, namely counting 0 to 279 respectively, and setting pulses pa _ switch _ on _ symbol _ pulse and pa _ switch _ off _ symbol _ pulse at the initial position of each symbol.
Step ten, defining 560 bits of subframe matching indication signal tdd _ symbol _ cfg, which can be split into 280 bits, wherein 0 to 279 of the counters cnt _ pa _ switch _ on _ symbol and cnt _ pa _ switch _ off _ symbol in the step ten correspond to 280 sets of 2 bits indicating that the signal tdd _ symbol _ cfg goes from low to high respectively.
Step eleven, setting a function of 2 bits, wherein the function is defined as follows, 2' b00: uplink and downlink are closed, 2' b01: downlink on, 2' b10: uplink on, 2' b11: the uplink and downlink are normally open. The function is used to determine the corresponding relationship between the counters cnt _ pa _ switch _ on _ symbol and cnt _ pa _ switch _ off _ symbol in step ten with respect to the indication signal tdd _ symbol _ cfg. Taking a power amplifier switch as an example, defining a downlink switch of an actual final TCS switch signal as pa _ switch, and setting the pa _ switch to be 0 when an uplink and a downlink are closed; when downlink is on, pa _ switch is set to 1; when the uplink is on, pa _ switch is set to 0; when the uplink and the downlink are normally open, pa _ switch is set to 1. An uplink switch, which is exemplified by a low noise amplification switch and is defined as lna _ switch, and lna _ switch is set to 0 when the uplink and downlink are turned off; lna _ switch is set to 0 when downlink is on; lna _ switch is set to 1 when the uplink is on; when the uplink and downlink are normally open, lna _ switch is set to 1. At this time, the 2-bit function realizes the switching of the 280 sub-frame ratio indication signals of 2 bits to the switch.
Step twelve, according to the function in the step eleven, a logic command is provided to complete the switching of the final switch, when the offset amount pa _ switch _ on _ offset and pa _ switch _ off _ offset are equal, that is, the pulses pa _ switch _ on _ symbol _ pulse and pa _ switch _ off _ symbol _ pulse are both pulled up at the same position, that is, the counters cnt _ pa _ switch _ on _ symbol and cnt _ pa _ switch _ off _ symbol are completely aligned, and at this time, the switch pa _ switch is set to 0 or 1 according to the function definition in the step eleven according to the pulse pa _ switch _ on _ symbol _ pulse; when the pulse pa _ switch _ on _ symbol _ pulse is 1, the function sets the switch pa _ switch to 1 when the values are 2'b1 and 2' b3, and keeps the rest of the time; when the pulse pa _ switch _ off _ symbol _ pulse is 1, the function sets the switch pa _ switch to 0 and holds the remaining time points when the values are 2'b0 and 2' b 2. The switch pa _ switch controls the pin, and at this time, the switching of the TCS downlink switch in the tdd mode is completed, and the control of the uplink switch is the same as the principle of the downlink switch.
The above-described embodiments do not limit the scope of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and principle of the above-described embodiments should be included in the protection scope of the technical solution.

Claims (14)

1. A general method for TCS switch switching of 5G communication system is characterized in that: aiming at two different modes of frequency division duplex FDD and time division duplex TDD, a register is used for controlling a signal in the frequency division duplex FDD mode, the signal directly controls a pin, and a TCS algorithm is used for controlling the signal in the time division duplex TDD mode to realize the control of the pin, and the method specifically comprises the following steps:
step one, according to a pulse timebase _ trig _10ms of an initial position of a frame header recovered by a 10msNR wireless frame, taking a rising edge of the pulse timebase _ trig _10ms as an initial position of TCS switch switching;
step two, counting a complete 10msNR wireless frame according to the timebase _ trig _10ms in the step one, namely setting a counter timebase _ cnt _10ms which takes the rising edge of the timebase _ trig _10ms as an initial position and counts from 0 to the clock frequency value minus 1;
step three, setting a pulse all _ pulse in the counter timebase _ cnt _10ms described in the step two;
step four, setting a counter cnt _ all _ pulse for counting 0 to clock frequency value minus 1 according to the rising edge of the pulse all _ pulse in the step three as a starting position, and counting a complete 10msNR wireless frame;
step five, in the counter cnt _ all _ pulse described in the step four, setting pulse on _ pulse and off _ pulse according to the switch local offset switch _ on _ offset and switch _ off _ offset;
step six, counting 10msNR wireless frames according to the initial positions of the pulse on _ pulse and off _ pulse in the step five, namely setting a counter cnt _ switch _ on and cnt _ switch _ off which counts 0 to the clock frequency value minus 1 respectively;
step seven, respectively dividing the counters cnt _ switch _ on and cnt _ switch _ off in the step six according to the length of the symbol to obtain counters cnt _ switch _ on _ symbol and cnt _ switch _ off _ symbol, namely respectively counting from 0 to 279, and setting a pulse switch _ on _ symbol _ pulse and a pulse switch _ off _ symbol _ pulse at the initial position of each symbol;
step eight, defining 560bit subframe ratio indication signal tdd _ symbol _ cfg, which can be decomposed into 280 2 bits, and the counters cnt _ switch _ on _ symbol and cnt _ switch _ off _ symbol in step seven have 0 to 279 respectively corresponding to 280 groups of 2 bits indicating the signal tdd _ symbol _ cfg from low bit to high bit;
step nine, setting a 2-bit function, judging the corresponding relation between the counters cnt _ switch _ on _ symbol and cnt _ switch _ off _ symbol in the step eight with respect to the indication signal tdd _ symbol _ cfg by using the function, and then finishing the switching of the final switch by using a logic command according to the uplink or downlink position of the switch.
2. The universal method for TCS switch switching in a 5G communication system according to claim 1, wherein: the second step is specifically as follows: since there is a certain device delay after the data enters the air interface, the start position pulse of the air interface data, timebase _ trig _10ms, is not necessarily aligned with the real start position of the air interface data, at this time, if it is necessary to accurately align the start position of the TCS switch with the start position of the air interface data, the overall on and off state of the switch needs to have an accurate offset all _ offset to offset, if the switch needs to be turned on or off in advance, the all _ offset is represented by a hexadecimal negative value, and if the switch needs to be turned on or off after a delay, the all _ offset is represented by a hexadecimal positive value.
3. The universal method for TCS switch switching in a 5G communication system according to claim 1, wherein: the third step is specifically as follows: according to the value of the switch overall offset all _ offset in the second step, setting a pulse all _ pulse in a counter timebase _ cnt _10ms described in the second step, if the TCS switch is integrally assumed, setting all _ offset to a negative value, namely counting to the position of all _ offset of the clock frequency value of-1-decimal in hertz in timebase _ cnt _10ms, setting the pulse all _ pulse, and if the TCS switch is integrally delayed, setting all _ offset to a positive value, namely setting the pulse all _ pulse in the position of all _ offset counted to decimal in timebase _ cnt _10 ms.
4. The universal method for TCS switch switching in a 5G communication system according to claim 2, wherein: although the offset all _ offset adjusts the overall position of the TCS switch, in order to prevent the switch from being switched to affect air interface data, the switch needs to be turned on and off with an adjustment delay, that is, the positions of the rising edge and the falling edge of the switch are adjusted; the switch comprises an uplink switch and a downlink switch, and specifically comprises: a radio frequency link downlink data enable switch, a power amplifier switch, a radio frequency link uplink data enable switch and a low noise amplifier switch.
5. The universal method for TCS switch switching of 5G communication system according to claim 4, wherein: the local offset defining the on state of the switch is switch _ on _ offset, if the switch needs to be opened in advance, the local offset is represented by a hexadecimal negative value, and if the switch needs to be opened later, the local offset is represented by a hexadecimal positive value; the local offset defining the off state of the switch is switch off offset, which is represented by a negative hexadecimal value if the switch needs to be closed early, and by a positive hexadecimal value if the switch needs to be closed late.
6. The universal method for TCS switch switching in a 5G communication system according to claim 4, wherein: the fifth step is specifically as follows: setting pulses switch _ on _ pulse and switch _ off _ pulse at corresponding positions of the counter cnt _ all _ pulse described in the fourth step according to the values of the local offsets switch _ on _ offset and switch _ off _ offset, setting the pulses switch _ on _ pulse at a position where the cnt _ all _ pulse counts to an absolute value of a clock frequency value of-1-decimal switch _ on _ offset in hertz if the switch _ on _ offset is a negative value, and setting the pulses switch _ on _ pulse at a position where the cnt _ all _ pulse counts to decimal switch _ on _ offset in hertz if the switch _ on _ offset is a positive value; if the switch _ off _ offset is negative, set the pulse switch _ off _ pulse at the position where cnt _ all _ pulse counts to the absolute value of the decimal switch _ off _ offset of the clock frequency value of-1-in hertz, and if the switch _ off _ offset is positive, set the pulse switch _ off _ pulse at the position where cnt _ all _ pulse counts to the decimal switch _ off _ offset.
7. The universal method for TCS switch switching in a 5G communication system according to claim 2, wherein: the offset of the all _ offset adjustment is the offset of the TCS switch as a whole, i.e., the overall offset of the switch on and off.
8. The universal method for TCS switch switching in a 5G communication system according to claim 3, wherein: since the counter timebase _ cnt _10ms at the start position counts from 0 to the clock frequency minus 1, when the offset all _ offset is negative, the unstable state generated by the first counting period needs to be considered globally, and the counting starts from the second counting period of the counter.
9. The universal method for TCS switch switching in a 5G communication system according to claim 7, wherein: because the offset all _ offset is the offset of the whole set switch and is the offset aligned with the initial position of the air interface data, and the actual data changes at the initial position after the delay of the equipment and the FPGA system, the local offsets switch _ on _ offset and switch _ off _ offset are needed to be finely adjusted at the moment so as to accurately adjust the position relationship between the rising edge and the falling edge of the on-off switch and the air interface data, and the adjustment range is the superposition of the whole offset all _ offset and the local offsets switch _ on _ offset and switch _ off _ offset at the moment; adjustment accuracy of global and local offsets:
Figure 359860DEST_PATH_IMAGE001
adjustment range of the overall offset: [ -X, X [ ]]And X satisfies:
Figure 824470DEST_PATH_IMAGE002
(ii) a And the range of local regulation: (-x, x), x satisfies:
Figure 135366DEST_PATH_IMAGE003
10. the method of claim 1, wherein in step seven, each 10msNR radio frame comprises 20 slots, each slot comprises 14 symbols, each symbol 0 comprises cp, the length is 4448, the length from symbol 1 to symbol 13 is 4384, i.e. it is required to accurately set the pulse switch _ on _ pulse and the pulse switch _ off _ pulse at the start of the symbol, when the first pulse switch _ on _ pulse and the pulse switch _ off _ pulse are located at the time when the count of the counters cnt _ switch _ on and cnt _ switch _ off reaches 0, the second pulse switch _ on _ pulse and switch _ off _ pulse are located at the time when counters cnt _ switch _ on and cnt _ switch _ off go 4447, the third pulse switch _ on _ pulse and switch _ off _ pulse are located at the time when counters cnt _ switch _ on and cnt _ switch _ off go 4447+4384, and so on until the 279 th pulse switch _ on _ pulse and switch _ off _ pulse are set, i.e. counters cnt _ switch _ on and cnt _ switch _ off all divide 280 symbols symbol.
11. The universal method for TCS switch switching in a 5G communication system according to claim 1, wherein: in the ninth step, the bit width of the function is 2 bits, it is determined that 560 bits of subframe proportioning indication signals are input, 2 bits corresponding to 280 symbols are sequentially corresponding to the function of 2 bits of bit width, that is, the function needs to be processed 280 times.
12. The universal method for TCS switch switching in a 5G communication system according to claim 1, wherein: the function in step nine is defined as follows, 2' b00: uplink and downlink are closed, 2' b01: downlink on, 2' b10: uplink on, 2' b11: the uplink and downlink are normally open.
13. The universal method for TCS switch switching in a 5G communication system according to claim 12, wherein: the judgment method in the ninth step is as follows: defining a downlink switch of a TCS switch signal as dl _ switch, and setting the dl _ switch to be 0 when an uplink and a downlink are closed; when the downlink is on, dl _ switch is set to 1; when the uplink is on, dl _ switch is set to 0; when the uplink and the downlink are normally open, the dl _ switch is set to be 1; defining an uplink switch of the TCS switch signal as ul _ switch, and setting the ul _ switch to be 0 when the uplink and downlink are closed; ul _ switch is set to 0 when downlink is on; ul _ switch is set to 1 when the uplink is on; when the uplink and the downlink are normally open, ul _ switch is set to be 1; at this time, the 2-bit function realizes the switching of the 280 sub-frame ratio indication signals of 2 bits to the switch.
14. The universal method for TCS switch switching in a 5G communication system according to claim 13, wherein: the logic command in the step nine is: when the offset amount switch _ on _ offset and the offset amount switch _ off _ offset are equal, namely, the pulse switch _ on _ symbol _ pulse and the pulse switch _ off _ symbol _ pulse are both pulled up at the same position, namely, the counters cnt _ switch _ on _ symbol and cnt _ switch _ off _ symbol are completely aligned, and at this time, the switches dl _ switch and ul _ switch are set to 0 or 1 according to the function definition in the step nine according to the pulse switch _ on _ symbol _ pulse; when the pulse switch _ on _ symbol _ pulse is 1, the function sets the switch dl _ switch to 1, the switch ul _ switch to 0 and keeps the rest of the time when the values are 2'b1 and 2' b 3; when the pulse switch _ off _ symbol _ pulse is 1, the switch dl _ switch is set to 0 and the switch ul _ switch is set to 1 at the rest of time when the function has values of 2'b0 and 2' b2; the switches dl _ switch and ul _ switch control the pins, and at this time, the switching of the TCS downlink switch in the tdd mode is completed.
CN202211078868.4A 2022-09-05 2022-09-05 Universal method for TCS switch switching of 5G communication system Active CN115150962B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211078868.4A CN115150962B (en) 2022-09-05 2022-09-05 Universal method for TCS switch switching of 5G communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211078868.4A CN115150962B (en) 2022-09-05 2022-09-05 Universal method for TCS switch switching of 5G communication system

Publications (2)

Publication Number Publication Date
CN115150962A CN115150962A (en) 2022-10-04
CN115150962B true CN115150962B (en) 2022-11-22

Family

ID=83416251

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211078868.4A Active CN115150962B (en) 2022-09-05 2022-09-05 Universal method for TCS switch switching of 5G communication system

Country Status (1)

Country Link
CN (1) CN115150962B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116390220B (en) * 2023-06-05 2023-08-29 南京典格通信科技有限公司 Real-time TDD switch control method for realizing 5G anti-shake
CN117615459B (en) * 2024-01-22 2024-04-16 南京典格通信科技有限公司 Dynamic TDD switch switching method based on 5G ad hoc network system
CN117615458B (en) * 2024-01-22 2024-04-16 南京典格通信科技有限公司 Multi-bandwidth frequency sweeping method of 5G ad hoc network system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101064950A (en) * 2006-04-29 2007-10-31 大唐移动通信设备有限公司 Method for obtaining propagation time of user terminal receive-dispatch channel
CN101150360A (en) * 2006-09-22 2008-03-26 北京信威通信技术股份有限公司 A method for expanding base station coverage distance in TDD radio communication system
CN103427770A (en) * 2012-05-23 2013-12-04 中兴通讯股份有限公司 Low noise amplifier protecting method and device
WO2017065829A1 (en) * 2015-10-16 2017-04-20 Intel IP Corporation Time grid with time division duplex switching intervals

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220159525A1 (en) * 2019-05-24 2022-05-19 Apple Inc. 5g new radio load balancing and mobility robustness

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101064950A (en) * 2006-04-29 2007-10-31 大唐移动通信设备有限公司 Method for obtaining propagation time of user terminal receive-dispatch channel
CN101150360A (en) * 2006-09-22 2008-03-26 北京信威通信技术股份有限公司 A method for expanding base station coverage distance in TDD radio communication system
CN103427770A (en) * 2012-05-23 2013-12-04 中兴通讯股份有限公司 Low noise amplifier protecting method and device
WO2017065829A1 (en) * 2015-10-16 2017-04-20 Intel IP Corporation Time grid with time division duplex switching intervals

Also Published As

Publication number Publication date
CN115150962A (en) 2022-10-04

Similar Documents

Publication Publication Date Title
CN115150962B (en) Universal method for TCS switch switching of 5G communication system
WO2016119525A1 (en) Elastic data interaction integrated bus system
US10243596B1 (en) Radio frequency transceiver having digital pre-distortion feedback
CN109802878A (en) A kind of CAN device and CAN bus baud rate automatic matching method and device
CN108809618B (en) Clock recovery method for 8b10b coded serial data
CN115296965B (en) Method, system and device for reducing delay and achieving timer balance configuration
KR20240011176A (en) How are the two TDD switch signal transmissions compatible, remote equipment and systems?
US20150244415A1 (en) System and method for time adjustment in a time synchronized channel hopping network
WO2006068915A2 (en) Communications system with scan table identification
US7403548B2 (en) System for interfacing media access control module to small form factor pluggable module
CN105101418B (en) A kind of method, system and equipment determined with reference to subframe
CN105262574A (en) CSI-RS port mapping method and device
CN104243246A (en) Method and device for Zigbee technology-based FlexRay bus test and optimization
CN113891537A (en) Method, apparatus and medium for simulating digital dimming protocol sequential logic by computer
CN104661299B (en) The method and system that TDD system synchronizes
CN102185732B (en) Method and system for testing active queue management parameters of communication equipment
CN104469921B (en) Wireless packet-by-packet Poewr control method and device
CN110471345A (en) A kind of 16 × 16 high-speed data switch matrix module of no crystal oscillator
US20040142687A1 (en) Testing a communication network with a shared test port
CN104601307A (en) FPGA 10-gigabit Ethernet timestamp based adding system and method
CN117459035A (en) PWM (pulse Width modulation) generating device
Vu et al. Energy saving for OpenFlow switch on the NetFPGA platform using multi-frequency
CN109831266A (en) The communication means of integrated communication equipment
GB2397465A (en) Clock calibration in a mobile radio communications device
CN114116566B (en) Serial port expansion system based on multipath packet scheduling algorithm

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant