WO2023208147A1 - Communication method and apparatus - Google Patents

Communication method and apparatus Download PDF

Info

Publication number
WO2023208147A1
WO2023208147A1 PCT/CN2023/091348 CN2023091348W WO2023208147A1 WO 2023208147 A1 WO2023208147 A1 WO 2023208147A1 CN 2023091348 W CN2023091348 W CN 2023091348W WO 2023208147 A1 WO2023208147 A1 WO 2023208147A1
Authority
WO
WIPO (PCT)
Prior art keywords
bit sequence
sequence
bit
ranging
communication
Prior art date
Application number
PCT/CN2023/091348
Other languages
French (fr)
Chinese (zh)
Inventor
刘辰辰
周正春
叶智钒
杨洋
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023208147A1 publication Critical patent/WO2023208147A1/en

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S13/00Systems using the reflection or reradiation of radio waves, e.g. radar systems; Analogous systems using reflection or reradiation of waves whose nature or wavelength is irrelevant or unspecified
    • G01S13/02Systems using reflection of radio waves, e.g. primary radar systems; Analogous systems
    • G01S13/06Systems determining position data of a target
    • G01S13/08Systems for measuring distance only
    • G01S13/32Systems for measuring distance only using transmission of continuous waves, whether amplitude-, frequency-, or phase-modulated, or unmodulated
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W16/00Network planning, e.g. coverage or traffic planning tools; Network deployment, e.g. resource partitioning or cells structures
    • H04W16/18Network planning tools
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds

Definitions

  • the present application relates to the field of communication technology, and in particular, to a communication method and device.
  • the ranging process is that the ranging initiating device sends a ranging signal and records the sending time of the ranging signal.
  • the ranging signal reaches the ranging response device after a certain transmission time.
  • the ranging response device determines the arrival time of the ranging signal based on the received signal.
  • the ranging response device sends a response signal to the ranging initiating device and records the response signal. of sending time.
  • the ranging initiating device receives the response signal and determines the arrival time of the response signal based on the received signal.
  • the ranging initiating device can obtain the round-trip time based on the sending time of the ranging signal and the arrival time of the response signal, and the ranging response device can obtain the response time interval based on the receiving time of the ranging signal and the sending time of the response signal.
  • the ranging response device may also send the response time interval to the ranging initiating device.
  • the ranging initiating device determines the propagation time of the wireless signal between the ranging initiating device and the ranging response device based on the round-trip time and the response time interval. Therefore, the ranging initiating device can determine the distance between the ranging initiating device and the ranging response device based on the propagation time and the speed of light.
  • the ranging response device can generate the same pseudo-random sequence locally and perform correlation operations with the received signal to estimate the arrival time of the signal.
  • the estimation of the arrival time of the ranging signal has a great relationship with the autocorrelation characteristics of the ranging signal. Specifically, each time the ranging response device receives a signal, it determines the autocorrelation characteristic value between the signal and the locally stored sequence. When the autocorrelation characteristic value between the received signal and the locally saved sequence reaches a peak value, the ranging response device can determine the reception moment of the signal as the arrival time of the ranging signal.
  • a secure ranging method based on scrambled timestamp sequence has been introduced.
  • the ranging initiating device generates a pseudo-random sequence and maps it to a series of pulse sequences to form a segment. Or multiple pseudo-random ranging signals. Since STS uses a random sequence, the side lobe of the autocorrelation function of the ranging signal formed by it is a random value, and there is no guarantee that its side lobe amplitude will be low, which will affect the accuracy of arrival time estimation.
  • This application provides a communication method and device to solve the problem of low accuracy in estimating signal arrival time.
  • this application provides a communication method, which method is suitable for a sending-side device.
  • the execution subject of the method may be a sending-side device, or may be a chip or a circuit.
  • the method includes: determining the first bit sequence and outputting the first bit sequence.
  • the first bit sequence includes a second bit sequence and N preset elements.
  • the second bit sequence is determined based on the first key and the initial value.
  • N is an integer greater than 0.
  • the value of the N preset elements is default value.
  • the amplitude of the main lobe and the maximum side of the autocorrelation function of the random sequence can be increased.
  • the ratio of the lobe amplitudes This can reduce the impact of noise or multipath transmission on signal estimation, thereby improving the accuracy of estimating signal arrival time.
  • the default value is 0. In this method, by inserting an element with a value of 0 in the second bit sequence, the security of the second bit sequence can be maintained without increasing the complexity of the relevant operations at the receiving end.
  • the default value is 1 or -1.
  • the ratio of the main lobe to the maximum side lobe is further increased, thereby improving the accuracy of estimating the arrival time of the signal.
  • the length of the first bit sequence is 256, and N is equal to 128; the position indexes of the N preset elements in the first bit sequence are: [20 24 26 28 30 31 32 35 36 40 42 43 44 45 48 50 51 54 56 57 58 59 62 65 66 67 68 70 74 75 77 80 81 83 84 86 88 89 91 92 93 94 95 96 97 98 102 103 104 105 106 107 109 113 114 115 117 118 119 121 122 123 126 128 129 130 133 134 135 138 139 140 141 143 144 145 146 149 150 151 152 154 155 157 163 164 167 169 170 171 172 173 1 74 176 178 180 181 182 184 185 187 189 191 193 194 195 196 198 199 200 201 203 206 213 215 216 218 219 220
  • the length of the first bit sequence is 256, and N is equal to 128;
  • the position indexes of the N preset elements in the first bit sequence are: [15 21 26 29 30 32 33 34 35 38 39 42 43 47 49 50 51 52 53 55 60 61 65 66 67 69 72 73 76 77 78 81 83 84 85 86 88 91 92 93 95 96 97 98 99 102 103 104 105 108 10 9 110 112 114 115 116 118 120 122 123 125 126 128 129 130 131 132 133 134 135 139 141 144 146 147 148 150 151 153 154 156 158 159 160 162 163 166 167 168 169 170 171 1 74 175 176 177 178 179 181 182 183 185 188 191 192 194 195 197 199 200 201 203 206 207 212 216 217 219 222 226 227
  • the length of the first bit sequence is 255, and N is equal to 127; the position indexes of the N preset elements in the first bit sequence are: [1 4 7 8 12 13 15 18 20 22 23 25 29 35 39 40 43 44 45 46 49 50 52 54 56 57 58 60 62 69 70 76 77 78 79 80 82 84 85 86 87 89 90 91 92 97 98 99 102 103 104 1 06 107 108 110 111 113 115 116 119 120 123 128 130 132 134 137 138 139 148 150 151 153 154 155 156 157 158 159 163 166 167 168 169 170 171 173 174 177 179 180 181 1 82 183 186 188 192 193 194 195 197 202 203 205 206 207 211 212 213 215 218 219 221 222 224 225 229 231 234 239 240 245
  • the i-th element among the N preset elements has multiple candidate insertion positions. For each candidate insertion position, in the bit sequence Insert the i-th element at the insertion position, and determine the ratio of the main lobe amplitude and the maximum amplitude of the side lobe of the autocorrelation function of the bit sequence obtained after inserting the i-th element at the insertion position. in, is the bit sequence obtained after inserting the i-1th element into the third bit sequence. The insertion position of the i-th element is determined based on the ratio corresponding to each candidate insertion position. i iterates over integers from 1 to N.
  • the ratio of the amplitude of the main lobe to the maximum amplitude of the side lobe can be increased, thereby improving the accuracy of estimating the signal arrival time.
  • outputting the first bit sequence includes: determining a ranging signal according to the first bit sequence; and sending the ranging signal.
  • determining the ranging signal based on the first bit sequence includes: spreading the first bit sequence to obtain a third bit sequence; determining the pulse sequence based on the third bit sequence; determining the ranging signal based on the pulse sequence. .
  • the second bit sequence is determined as follows: generating a fourth bit sequence based on the first key and the initial value; performing binary phase shift keying mapping on the fourth bit sequence to obtain the second bit sequence.
  • this application provides a communication method, which method is suitable for receiving-side equipment.
  • the execution subject of the method may be the receiving-side equipment, or may be a chip or circuit.
  • the method includes: determining a first bit sequence, the first bit sequence includes a second bit sequence and N preset elements, the second bit sequence is determined based on the first key and the initial value, N is an integer greater than 0, and N
  • the value of the preset element is a preset value; the arrival time of the ranging signal is determined according to the first bit sequence.
  • the amplitude of the main lobe and the maximum side of the autocorrelation function of the random sequence can be increased.
  • the ratio of the lobe amplitudes This can reduce the impact of noise or multipath transmission on signal estimation, thereby improving the accuracy of estimating signal arrival time.
  • the default value is 0. In this method, by inserting an element with a value of 0 in the second bit sequence, the security of the second bit sequence can be maintained without increasing the complexity of the relevant operations at the receiving end.
  • the default value is 1 or -1.
  • the ratio of the main lobe to the maximum side lobe is further increased, thereby improving the accuracy of estimating the arrival time of the signal.
  • the length of the first bit sequence is 256, and N is equal to 128; the position indexes of the N preset elements in the first bit sequence are: [20 24 26 28 30 31 32 35 36 40 42 43 44 45 48 50 51 54 56 57 58 59 62 65 66 67 68 70 74 75 77 80 81 83 84 86 88 89 91 92 93 94 95 96 97 98 102 103 104 105 106 107 109 113 114 115 117 118 119 121 122 123 126 128 129 130 133 134 135 138 139 140 141 143 144 145 146 149 150 151 152 154 155 157 163 164 167 169 170 171 172 173 1 74 176 178 180 181 182 184 185 187 189 191 193 194 195 196 198 199 200 201 203 206 213 215 216 218 219 220
  • the length of the first bit sequence is 256, and N is equal to 128;
  • the position indexes of the N preset elements in the first bit sequence are: [15 21 26 29 30 32 33 34 35 38 39 42 43 47 49 50 51 52 53 55 60 61 65 66 67 69 72 73 76 77 78 81 83 84 85 86 88 91 92 93 95 96 97 98 99 102 103 104 105 108 109 110 112 114 115 116 118 120 122 123 125 126 128 129 130 131 132 133 134 135 139 141 144 146 147 148 150 151 153 154 156 158 159 160 162 163 166 167 168 169 170 1 71 174 175 176 177 178 179 181 182 183 185 188 191 192 194 195 197 199 200 201 203 206 207 212 216 217 219 222 226 227
  • the length of the first bit sequence is 255, and N is equal to 127; the position indexes of the N preset elements in the first bit sequence are: [1 4 7 8 12 13 15 18 20 22 23 25 29 35 39 40 43 44 45 46 49 50 52 54 56 57 58 60 62 69 70 76 77 78 79 80 82 84 85 86 87 89 90 91 92 97 98 99 102 103 104 1 06 107 108 110 111 113 115 116 119 120 123 128 130 132 134 137 138 139 148 150 151 153 154 155 156 157 158 159 163 166 167 168 169 170 171 173 174 177 179 180 181 1 82 183 186 188 192 193 194 195 197 202 203 205 206 207 211 212 213 215 218 219 221 222 224 225 229 231 234 237 239 240 245 2
  • the i-th element among the N preset elements has multiple candidate insertion positions. For each candidate insertion position, in the bit sequence Insert the i-th element at the insertion position, and determine the ratio of the main lobe amplitude and the maximum amplitude of the side lobe of the autocorrelation function of the bit sequence obtained after inserting the i-th element at the insertion position. in, is the bit sequence obtained after inserting the i-1th element into the third bit sequence. The insertion position of the i-th element is determined based on the ratio corresponding to each candidate insertion position. i iterates over integers from 1 to N.
  • the ratio of the amplitude of the main lobe to the maximum amplitude of the side lobe can be increased, thereby improving the accuracy of estimating the signal arrival time.
  • determining the arrival time of the ranging signal based on the first bit sequence includes: determining the arrival time of the ranging signal based on a correlation result between the first bit sequence and the received signal.
  • the second bit sequence is determined as follows: generating a fourth bit sequence based on the first key and the initial value; performing binary phase shift keying mapping on the fourth bit sequence to obtain the second bit sequence.
  • this application provides a communication method, which method is suitable for a sending-side device.
  • the execution subject of the method may be a sending-side device, or may be a chip or a circuit.
  • the method includes: determining a first bit sequence, the first bit sequence is generated by replacing K elements with a value of 0 in the third bit sequence with K elements in a second bit sequence, and the second bit sequence is generated according to the first secret.
  • the key and initial value are determined, the length of the first bit sequence is the same as the length of the third bit sequence, K is an integer greater than 0; the first bit sequence is output.
  • the main lobe of the autocorrelation function of the random sequence can be increased.
  • the ratio of the amplitude to the amplitude of the maximum side lobe can reduce the impact of noise or multipath transmission on signal estimation, thereby improving the accuracy of estimating the signal arrival time.
  • the method further includes: determining the first sequence in a sequence set, and the third bit sequence is the first sequence or an equivalent sequence of the first sequence, the sequence set includes one or more sequences, and one or more All sequences are complete Beautiful sequence.
  • determining the first sequence in the sequence set includes: determining the first sequence in the sequence set according to the length of the second bit sequence.
  • the third bit sequence is an equivalent sequence obtained by performing one or more of the following operations on the first sequence: cyclic shift processing, or reverse order processing, or negation processing, or d times.
  • Sampling processing, d is an integer greater than 1; wherein, performing d times sampling processing on the first sequence includes: determining the fourth bit sequence, and the fourth bit sequence includes d first sequences; adding every d elements of the fourth bit sequence Extract an element. Communication security can be improved through the above methods.
  • the greatest common divisor of d and the length of the perfect sequence is 1.
  • the method further includes: determining a first equivalent sequence of the sequence based on the value of at least one bit in the second bit sequence, and the third bit sequence is the first equivalent sequence.
  • outputting the first bit sequence includes: generating a ranging signal according to the first bit sequence; and sending the ranging signal.
  • determining the ranging signal based on the first bit sequence includes: spreading the first bit sequence to obtain a fourth bit sequence; determining the pulse sequence based on the fourth bit sequence; determining the ranging signal based on the pulse sequence. .
  • the second bit sequence is determined as follows: generating a fifth bit sequence based on the first key and the initial value; performing binary phase shift keying mapping on the fifth bit sequence to obtain the second bit sequence.
  • this application provides a communication method, which method is suitable for receiving-side equipment.
  • the execution subject of the method may be the receiving-side equipment, or may be a chip or circuit.
  • the method includes: determining a first bit sequence, the first bit sequence is generated by replacing K elements with a value of 0 in the third bit sequence with K elements in a second bit sequence, and the second bit sequence is generated according to the first secret. Determined by the key and the initial value, the length of the first bit sequence is the same as the length of the third bit sequence, and K is an integer greater than 0; the arrival time of the ranging signal is determined based on the first bit sequence.
  • the main lobe of the autocorrelation function of the random sequence can be increased.
  • the ratio of the amplitude to the amplitude of the maximum side lobe can reduce the impact of noise or multipath transmission on signal estimation, thereby improving the accuracy of estimating the signal arrival time.
  • the method further includes: determining the first sequence in a sequence set, and the third bit sequence is the first sequence or an equivalent sequence of the first sequence, the sequence set includes one or more sequences, and one or more All sequences are perfect sequences.
  • equivalent sequences of perfect sequences untrusted devices can be prevented from learning the perfect sequences used by the sending and receiving devices, thereby improving the security of the sending and receiving devices.
  • determining the first sequence in the sequence set includes: determining the first sequence in the sequence set according to the length of the second bit sequence.
  • the third bit sequence is an equivalent sequence obtained by performing one or more of the following operations on the first sequence: cyclic shift processing, or reverse order processing, or negation processing, or d times.
  • Sampling processing, d is an integer greater than 1; wherein, performing d times sampling processing on the first sequence includes: determining the fourth bit sequence, and the fourth bit sequence includes d first sequences; adding every d elements of the fourth bit sequence Extract an element. Communication security can be improved through the above methods.
  • the greatest common divisor of d and the length of the perfect sequence is 1.
  • the method further includes: determining the sequence according to the value of at least one bit in the second bit sequence.
  • the first equivalent sequence of , the third bit sequence is the first equivalent sequence.
  • determining the arrival time of the ranging signal based on the first bit sequence includes: determining the arrival time of the ranging signal based on a correlation result between the first bit sequence and the received signal.
  • the second bit sequence is determined as follows: generating a fifth bit sequence based on the first key and the initial value; performing binary phase shift keying mapping on the fifth bit sequence to obtain the second bit sequence.
  • the present application also provides a communication device, where the device is a sending-side device or a chip in the sending-side device.
  • the communication device has the function of implementing any of the methods provided in the first aspect or the third aspect.
  • the communication device can be implemented by hardware, or can also be implemented by hardware executing corresponding software.
  • the hardware or software includes one or more units or modules corresponding to the above functions.
  • the communication device includes: a processor, the processor is configured to support the communication device in performing the corresponding functions of the sending side device in the method shown above.
  • the communications device may also include memory, which storage may be coupled to the processor, which holds program instructions and data necessary for the communications device.
  • the communication device further includes an interface circuit, which is used to support communication between the communication device and a device such as a receiving side device.
  • the communication device includes corresponding functional modules, respectively used to implement the steps in the above method.
  • Functions can be implemented by hardware, or by hardware executing corresponding software.
  • Hardware or software includes one or more modules corresponding to the above functions.
  • the structure of the communication device includes a processing unit (or processing module) and a communication unit (or communication module). These units can perform the corresponding functions in the above method examples. For details, see the first aspect or the third aspect. The description in the method will not be repeated here.
  • the present application also provides a communication device, where the device is a receiving-side device or a chip in the receiving-side device.
  • the communication device has the function of implementing any of the methods provided in the second aspect or the fourth aspect.
  • the communication device can be implemented by hardware, or can also be implemented by hardware executing corresponding software.
  • the hardware or software includes one or more units or modules corresponding to the above functions.
  • the communication device includes: a processor, the processor is configured to support the communication device in performing the corresponding functions of the receiving side device in the method shown above.
  • the communications device may also include memory, which storage may be coupled to the processor, which holds program instructions and data necessary for the communications device.
  • the communication device further includes an interface circuit, which is used to support communication between the communication device and a device such as a sending side device.
  • the communication device includes corresponding functional modules, respectively used to implement the steps in the above method.
  • Functions can be implemented by hardware, or by hardware executing corresponding software.
  • Hardware or software includes one or more modules corresponding to the above functions.
  • the structure of the communication device includes a processing unit (or processing module) and a communication unit (or communication module). These units can perform the corresponding functions in the above method examples. For details, see the second aspect or the fourth aspect. The description in the method will not be repeated here.
  • a communication device including a processor and an interface circuit.
  • the interface circuit is used to receive signals from other communication devices other than the communication device and transmit them to the processor or to send signals from the processor.
  • the processor is used to implement the method in the first aspect or the third aspect as well as any possible design through logic circuits or executing code instructions.
  • a communication device including a processor and an interface circuit.
  • the interface circuit is used to receive signals from other communication devices other than the communication device and transmit them to the processor or to send signals from the processor.
  • the processor is used to implement the aforementioned third step through logic circuits or execution of code instructions. Methods in either the second or fourth aspect and any possible design.
  • a computer-readable storage medium is provided.
  • Computer programs or instructions are stored in the computer-readable storage medium.
  • the above-described first to fourth aspects are implemented. method in any aspect and in any possible design.
  • a tenth aspect provides a computer program product storing instructions. When the instructions are executed by a processor, any one of the foregoing first to fourth aspects and the method in any possible design are implemented.
  • a chip system in an eleventh aspect, includes a processor and may also include a memory for implementing the method in the first or third aspect and any possible design.
  • the chip system can be composed of chips or include chips and other discrete devices.
  • a chip system in a twelfth aspect, includes a processor and may also include a memory for implementing the method in the aforementioned second or fourth aspect and any possible design.
  • the chip system can be composed of chips or include chips and other discrete devices.
  • a thirteenth aspect provides a communication system, which system includes the device described in the first aspect (such as a sending-side device) and the device described in the second aspect (such as a receiving-side device).
  • a fourteenth aspect provides a communication system, which includes the device described in the third aspect (such as a sending-side device) and the device described in the fourth aspect (such as a receiving-side device).
  • Figure 1 is a schematic flow chart of a ranging process according to an embodiment of the present application.
  • Figure 2 is a schematic diagram of an autocorrelation function result according to an embodiment of the present application.
  • Figure 3 is a schematic structural diagram of a communication system according to an embodiment of the present application.
  • Figure 4 is a schematic structural diagram of a communication system according to an embodiment of the present application.
  • Figure 5 is a schematic flow chart of a communication method according to an embodiment of the present application.
  • Figure 6 is a schematic diagram of a signal structure according to an embodiment of the present application.
  • Figure 7 is a schematic diagram of a simulation result according to an embodiment of the present application.
  • Figure 8 is a schematic flow chart of a communication method according to an embodiment of the present application.
  • Figure 9 is a schematic structural diagram of a communication device according to an embodiment of the present application.
  • Figure 10 is a schematic structural diagram of a communication device according to an embodiment of the present application.
  • UWB technology is widely used in positioning systems due to its large bandwidth (such as 500MHz or even larger) and its ability to achieve higher resolution than other wireless technologies.
  • the ranging process is shown in Figure 1.
  • the ranging initiating device sends a ranging signal and records the sending time of the ranging signal. T1.
  • the ranging signal reaches the ranging response device after a certain transmission time.
  • the ranging response device determines the arrival time T2 of the ranging signal based on the received signal.
  • the ranging response device sends a response signal to the ranging initiating device and records the response.
  • the signal transmission time is T3.
  • the ranging initiating device receives the response signal and determines the arrival time T4 of the response signal based on the received signal.
  • the ranging initiating device can obtain the round-trip time based on the sending time of the ranging signal and the arrival time of the response signal, and the ranging response device can obtain the response time interval based on the receiving time of the ranging signal and the sending time of the response signal.
  • the ranging response device may also send the response time interval to the ranging initiating device.
  • the ranging initiating device determines the propagation time of the wireless signal between the ranging initiating device and the ranging response device based on the round-trip time and the response time interval. Therefore, the ranging initiating device can determine the distance between the ranging initiating device and the ranging response device based on the propagation time and the speed of light.
  • the estimation of the arrival time of the signal is closely related to the autocorrelation characteristics of the ranging signal. Among them, assuming that the length of the sequence x(n) corresponding to the ranging signal is N, its periodic autocorrelation function R( ⁇ ) is defined as follows:
  • is the position within the period
  • R( ⁇ ) is the amplitude at position ⁇
  • (n+ ⁇ )mod N refers to the remainder of n+ ⁇ divided by N.
  • the receiving end can perform correlation operations on the received signal and the locally saved sequence based on the above-mentioned autocorrelation characteristics, and can estimate the arrival time of the signal. For example, take the ranging response device estimating the arrival time of the ranging signal as an example. Each time the ranging response device receives a signal, it determines the correlation characteristic value between the signal and the locally saved sequence based on the autocorrelation function. When the correlation characteristic value between the received signal and the locally saved sequence reaches a peak value, the ranging response device can determine the reception moment of the signal as the arrival time of the ranging signal.
  • the ranging response device can determine the correlation characteristic value between the received signal y(n) and the locally saved sequence x(n) through the following formula:
  • the ranging initiating device generates a pseudo-random sequence and maps it to a series of pulse sequences to form a ranging signal.
  • the ranging response device can generate the same pseudo-random sequence locally and perform correlation operations with the received signal to estimate the arrival time of the signal. This avoids interference from illegal equipment and achieves the purpose of safe ranging.
  • At least one refers to one or more, and “multiple” refers to two or more.
  • “And/or” describes the association of associated objects, indicating that there can be three relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural.
  • the character “/” generally indicates that the related objects are in an "or” relationship.
  • “At least one of the following” or similar expressions thereof refers to any combination of these items, including any combination of a single item (items) or a plurality of items (items).
  • at least one of a, b, or c Item (item) can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
  • ordinal numbers such as “first” and “second” mentioned in the embodiments of this application are used to distinguish multiple objects and are not used to limit the size, content, order, and timing of multiple objects. , priority or importance, etc.
  • first shard and the second shard are just to distinguish different shards, but do not indicate the difference in position, priority or importance of the two shards.
  • the ranging signal is generated based on a random sequence
  • the side lobe of the autocorrelation function of the ranging signal formed is a random value, and the amplitude of the side lobe may be large, as shown in Figure 2 shown.
  • the main lobe and side lobes of the autocorrelation function may be overwhelmed, thus affecting the accuracy of arrival time estimation.
  • embodiments of the present application provide a communication method and device to solve the problem of low accuracy in estimating signal arrival time.
  • the method and the device are based on the same concept. Since the principles of the method and the device to solve the problem are similar, the implementation of the device and the method can be referred to each other, and the repeated points will not be repeated.
  • the communication method provided by this application can be applied to various communication systems, for example, it can be the Internet of Things (IoT), narrowband Internet of things (NB-IoT), LTE, or the third
  • the fifth generation (5G) communication system can also be a hybrid architecture of LTE and 5G, or it can be a 5G NR system, 6G or new communication systems emerging in future communication development, etc.
  • the communication method provided by this application can be applied to a communication system with a star topology structure or a communication system with a point-to-point topology structure.
  • Figure 3 shows the architecture of a communication system with star topology.
  • four distance measuring devices are distance measuring devices 1 to 4 respectively.
  • Figure 4 shows the architecture of a communication system with a point-to-point topology.
  • four distance measuring devices are distance measuring devices 1 to 4 respectively.
  • the communication system shown in Figures 3 and 4 can be applied to synchronization, ranging, positioning, sensing and other scenarios.
  • the ranging initiating device sends a ranging signal to the ranging response device, and the ranging response device replies a ranging response signal to the ranging initiating device, so that the ranging initiating device determines the distance between the two.
  • the ranging initiating device can be a network device, and the ranging response device can be a terminal device; or the ranging initiating device and the ranging response device can both be terminal devices; or the ranging initiating device and the ranging response device can also be It may be other devices that can implement ranging, such as UWB devices, which is not limited in this application.
  • the ranging initiating device and the ranging response device are only a logical distinction, and the roles of the ranging initiating device and the ranging response device can also be interchanged.
  • ranging device 1 is a ranging initiating device
  • ranging device 2 is a ranging responding device
  • ranging device 1 is a ranging responding device.
  • the first device is the ranging initiating device and the second device is the ranging responding device as an example.
  • the operation of the first device can also be performed by a processor, a chip or a functional module in the first device; the operation of the second device can also be performed by a processor, a chip or a functional module in the second device. This application does not limit this.
  • FIG. 5 is a schematic flow chart of a communication method provided by this application.
  • the method includes:
  • the first device determines the first bit sequence.
  • the first bit sequence includes a second bit sequence and N preset elements.
  • M is an integer greater than
  • N is an integer greater than 0.
  • the second bit sequence is determined based on the first key and the initial value.
  • the first device can generate a fourth bit sequence based on the first key and the initial value, and perform binary phase shift keying (BPSK) mapping on the fourth bit sequence to obtain the The second bit sequence.
  • BPSK binary phase shift keying
  • the above process of generating the third bit sequence can refer to the implementation of generating a random sequence in the STS-based secure ranging method.
  • 0 in the third bit sequence can be mapped to 1 and 1 to -1.
  • the values of the above N preset elements are preset values.
  • the default value may be 0.
  • the security of the second bit sequence can be maintained without increasing the complexity of the relevant operations at the receiving end.
  • the default value can be 1 or -1.
  • the ratio of the main lobe to the maximum side lobe is further increased, thereby improving the accuracy of estimating the arrival time of the signal.
  • the first bit sequence may be obtained by inserting N elements whose values are preset values into the third bit sequence.
  • the insertion position of the N-th preset element can be determined through the following steps A1 to A2, and i traverses the integers from 1 to N:
  • the i-th element may have multiple candidate insertion positions. For each candidate insertion position, in the bit sequence Insert the i-th element at the insertion position, and determine the ratio of the main lobe amplitude and the maximum amplitude of the side lobe of the autocorrelation function of the bit sequence obtained after inserting the i-th element at the insertion position.
  • the ratio corresponding to the insertion position can be determined by the following formula, or it can also be understood that the ratio corresponding to the insertion position can satisfy the following formula:
  • PSR is the ratio corresponding to the insertion position
  • s i is the bit sequence obtained after inserting the i-th element at the insertion position
  • is the displacement value
  • 2 is the autocorrelation function of s i
  • the amplitude of the main lobe, is the maximum amplitude of the side lobe of the autocorrelation function of s i .
  • A2 Determine the insertion position of the i-th element according to the ratio corresponding to the insertion position of each candidate.
  • One possible implementation is to select the insertion position with the largest ratio as the insertion position of the i-th element.
  • the following takes the preset value as 0 as an example to illustrate the positions of N preset elements in the first bit sequence.
  • Example 1 assume that the length of the first bit sequence is 256, N is 128, and M is 128.
  • the above-mentioned N preset elements are the following elements in the first bit sequence. It can also be understood that the above-mentioned N preset elements are the position indexes in the first bit sequence as:
  • Example 2 assume that the length of the first bit sequence is 256, N is 128, and M is 128.
  • the above-mentioned N preset elements are the following elements in the first bit sequence. It can also be understood that the above-mentioned N preset elements are the position indexes in the first bit sequence as:
  • Example 3 assume that the length of the first bit sequence is 255, N is 127, and M is 128.
  • the above-mentioned N preset elements are the following elements in the first bit sequence. It can also be understood that the above-mentioned N preset elements are the position indexes in the first bit sequence as:
  • the unspecified element in the first bit sequence is the above-mentioned second bit sequence, or it can also be understood that the unspecified position index in Examples 1 and 2 is the above-mentioned third bit sequence.
  • the position index of the two-bit sequence in the first bit sequence It should be noted that the position index used in the embodiment of this application starts from 1 Start counting.
  • Example 1 the position index set given in Example 1, Example 2 or Example 3 can also be used after being cyclically shifted according to the length of the first bit sequence.
  • the position index of the preset element after circular shift can be Mod(Index_set+K, M+N)+1.
  • Index_set is the position index set given in Example 1, Example 2 or Example 3.
  • K is a positive integer, representing the number of digits for circular shift.
  • Example 1 the position index set given in Example 1, Example 2 or Example 3 can also be used after being reversed and cyclically shifted by the length of the first bit sequence.
  • the position index of the preset element after reverse order and circular shift can be Mod(R-Index_set, M+N)+1.
  • Index_set is the position index set given in Example 1, Example 2 or Example 3, and R is a positive integer, representing the number of digits of circular shift.
  • the first device outputs the first bit sequence.
  • the first device may determine the signal according to the first bit sequence and send the signal.
  • the signal may be a ranging signal in a ranging scene, a sensing signal in a sensing scene, or a positioning signal in a positioning scene, etc.
  • the embodiments of this application do not specify the functions and names of the signals. limited.
  • determining the signal based on the first bit sequence can be achieved through the following steps B1 to B3:
  • the first bit sequence can be spread using a delta function ⁇ L (n) of length L to form a sequence
  • L is an integer greater than 0, which may be equal to the length of the first bit sequence, or may not be equal to the length of the first bit sequence, and is not specifically limited here.
  • ⁇ L (n) is:
  • a 1 in the third bit sequence can be mapped as a positive pulse, -1 as a negative pulse, and 0 as a null pulse (ie, no pulse).
  • the signal includes T slices, wherein the first slice among the T slices includes R pulse sequences, and the R pulse sequences include the pulse sequences generated by the above-mentioned B2, and T is an integer greater than 0, R is an integer greater than 0.
  • the T fragments can be encapsulated in silent intervals (also called gaps).
  • silent intervals also called gaps.
  • the signal includes two fragments, and there is a silent interval on both sides of each fragment, as shown in Figure 6. Show.
  • the second device determines the first bit sequence.
  • the method in which the second device generates the first bit sequence is the same as the method in which the first device generates the first bit sequence.
  • S501 the relevant description of S501, and repeated details will not be repeated.
  • S503 can be executed before S501, between S501 and S502, or after S502.
  • S503 can also be executed. Executed simultaneously with S501 or S502.
  • the second device determines the arrival time of the signal according to the first bit sequence.
  • the amplitude of the main lobe and the maximum side of the autocorrelation function of the random sequence can be increased.
  • the embodiment of the present application inserts 128 zeros into the random sequence with a length of 128 to obtain a bit sequence with a length of 256 (the sequence in Figure 7 1)
  • the ratio of the main lobe amplitude and the maximum side lobe amplitude of the autocorrelation function is improved by at least 2 decibels (dB) compared to a random sequence of length 128 (sequence 2 in Figure 7), even if compared to For a random sequence with a length of 256 (sequence 3 in Figure 7), the embodiment of the present application also has obvious gains.
  • Bit sequence 1 in the method described in Figure 8 of this application is equivalent to the first bit sequence involved in the third and fourth aspects of the invention.
  • Bit sequence 2 corresponds to the second bit sequence involved in the third and fourth aspects of the invention.
  • Bit sequence 3 corresponds to the third bit sequence involved in the third and fourth aspects of the invention.
  • Bit sequence 4 corresponds to the fourth bit sequence involved in the third and fourth aspects of the invention.
  • Bit sequence 5 corresponds to the fifth bit sequence involved in the third and fourth aspects of the invention.
  • FIG 8 is a schematic flow chart of a communication method provided by this application. The method includes:
  • the first device determines bit sequence 1.
  • bit sequence 1 can be obtained by replacing K zeros in bit sequence 3 with K elements in bit sequence 2.
  • K is an integer greater than 0. It can be understood that K is less than or equal to the number of 0s in bit sequence 3.
  • bit sequence 2 is determined based on the first key and the initial value.
  • bit sequence 2 please refer to the determination process of the second bit sequence in the method described in Figure 5, and the description will not be repeated here.
  • Bit sequence 3 can be a perfect sequence.
  • the first device and the second device have a consistent understanding of the number and/or position of replaced 0s in bit sequence 3.
  • the number and/or position of the replaced 0s in bit sequence 3 may be specified in the protocol, or may be pre-negotiated by the first device and the second device, or may be determined by the first device and the second device. determined in the same way.
  • bit sequence 3 can be determined in the following way: the first device can determine a sequence (hereinafter referred to as the first sequence) in the sequence set, and bit sequence 3 can be the first sequence or the first sequence. Equivalent sequences, where the sequence set includes one or more sequences, and one or more sequences are perfect sequences. Specifically, the first device may determine the first sequence in the sequence set according to the length of bit sequence 2.
  • Bit sequence 3 is an equivalent sequence obtained by performing one or more of the following operations on the first sequence: cyclic shift processing, reverse order processing, negation processing, or d times sampling processing, where d is greater than 1 integer. Among them, the greatest common divisor of d and the length of the first sequence can be 1.
  • C1 determine the bit sequence 4, which includes d first sequences.
  • the first sequence can be repeated d times to obtain bit sequence 4.
  • the extracted elements are composed into a bit sequence, and the bit sequence is the first sequence after d times sampling processing.
  • the first device and the second device may determine an equivalent sequence of the first sequence based on at least one element in the bit sequence 2 . For example, if the value of the at least one element is the first value, the first device and the second device can use the first equivalent sequence of the first sequence; if the value of the at least one element is the second value, the first device and the second device may use a second equivalent sequence of the first sequence.
  • the accuracy of the second device's estimated signal arrival time can be improved, and on the other hand, it can also prevent the untrusted device from learning the equivalent sequence used by the first device and the second device, thereby improving the security of signal transmission.
  • the following is an example of a sequence collection.
  • the above sequence set may include one or more perfect sequences in Table 1. It should be understood that Table 1 is only an illustrative description and does not limit the perfect sequences used in the embodiments of this application. Therefore, the above sequence may also include perfect sequences not shown in Table 1.
  • the first device outputs bit sequence 1.
  • the second device determines bit sequence 1.
  • the way in which the second device generates the bit sequence 1 is the same as the way in which the first device generates the bit sequence 1.
  • S803 can be executed before S801, between S801 and S802, or after S802.
  • S803 can also be executed. Executed simultaneously with S801 or S802.
  • the second device determines the arrival time of the signal based on bit sequence 1.
  • the amplitude of the main lobe of the autocorrelation function of the random sequence can be increased. and the maximum side lobe amplitude, thereby reducing the impact of noise or multipath transmission on signal estimation, thereby improving the accuracy of estimating signal arrival time.
  • the embodiment of the present application provides a communication device.
  • the structure of the communication device can be shown in Figure 9 and includes a communication module 902 and a processing module 901.
  • the communication device can be used to implement the method performed by the first device in the embodiment of FIG. 5 .
  • the device can be the first device itself, or it can be a chip or chipset or chip in the first device. part of the function used to perform related methods.
  • the processing module 901 is used to determine the first bit sequence, the first bit sequence is generated by replacing K elements with a value of 0 in the third bit sequence with K elements in the second bit sequence, the The second bit sequence is determined based on the first key and the initial value, the length of the first bit sequence is the same as the length of the third bit sequence, and the K is an integer greater than 0; communication module 902, used for Output the first bit sequence.
  • the processing module 901 is also configured to determine a ranging signal according to the first bit sequence.
  • the communication module 902 is specifically used to send the ranging signal.
  • the processing module 901 when determining the ranging signal based on the first bit sequence, may be specifically configured to: spread the first bit sequence to obtain a third bit sequence; determine a pulse sequence based on the third bit sequence. ; Determine the ranging signal according to the pulse sequence.
  • the communication device may be used to implement the method performed by the first device in the embodiment of FIG. 8 .
  • the device may be the first device itself, or may be a chip or chipset or chip in the first device. part of the function used to perform related methods.
  • the processing module 901 is used to determine the first bit sequence, the first bit sequence is generated by replacing K elements with a value of 0 in the third bit sequence with K elements in the second bit sequence, the The second bit sequence is determined based on the first key and the initial value, the length of the first bit sequence is the same as the length of the third bit sequence, and the K is an integer greater than 0; communication module 902, used for Output the first bit sequence.
  • the processing module 901 may also be configured to: determine a first sequence in a sequence set, the third bit sequence being the first sequence or an equivalent sequence of the first sequence, the sequence set including one or more sequence, and the one or more sequences are perfect sequences.
  • the processing module 901 is specifically configured to determine the first sequence in the sequence set according to the length of the second bit sequence when determining the first sequence in the sequence set.
  • the processing module 901 is further configured to determine a first equivalent sequence of the sequence according to the value of at least one bit in the second bit sequence, and the third bit sequence is the first equivalent sequence.
  • the processing module 901 is also configured to generate a ranging signal according to the first bit sequence.
  • the communication module 902 is specifically used to send the ranging signal.
  • the processing module 901 when determining the ranging signal according to the first bit sequence, is specifically configured to: convert the first ratio The special sequence is spread spectrum to obtain a fourth bit sequence; a pulse sequence is determined based on the fourth bit sequence; and the ranging signal is determined based on the pulse sequence.
  • the communication device may be specifically used to implement the method performed by the second device in the embodiment of FIG. 5 or the embodiment of FIG. 8.
  • the device may be the second device itself, or may be a chip or chip in the second device. A part of a group or chip that performs the function of the associated method.
  • the communication module 902 can be used to perform actions such as transceiving or input and output of the second device, and the processing module 901 can be used to perform actions other than transceiving or input and output, such as determining the first bit sequence, determining bit sequence 1, etc.
  • the method described in Figure 5 or Figure 8 please refer to the method described in Figure 5 or Figure 8 and will not be described here.
  • each functional module in each embodiment of the present application may be integrated into one processing unit. In the device, it can exist physically alone, or two or more modules can be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or software function modules. It can be understood that, for the functions or implementation of each module in the embodiments of this application, further reference can be made to the relevant descriptions of the method embodiments.
  • the communication device may be as shown in Figure 10 .
  • the device may be a communication device or a chip in the communication device.
  • the communication device may be a terminal device in the above embodiment or may be a terminal device in the above embodiment.
  • the device includes a processor 1001 and a communication interface 1002, and may also include a memory 1003.
  • the processing module 901 may be the processor 1001.
  • the communication module 902 may be the communication interface 1002.
  • the processor 1001 may be a CPU, a digital processing unit, or the like.
  • the communication interface 1002 may be a transceiver, an interface circuit such as a transceiver circuit, or a transceiver chip, or the like.
  • the device also includes: a memory 1003 for storing programs executed by the processor 1001.
  • the memory 1003 can be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), or a volatile memory (volatile memory), such as a random access memory (random access memory). -access memory, RAM).
  • Memory 1003 is, but is not limited to, any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
  • the processor 1001 is used to execute the program code stored in the memory 1003, and is specifically used to execute the actions of the above-mentioned processing module 901, which will not be described again in this application.
  • the communication interface 1002 is specifically used to perform the above-mentioned actions of the communication module 902, which will not be described again in this application.
  • connection medium between the above-mentioned communication interface 1002, processor 1001 and memory 1003 is not limited in the embodiment of the present application.
  • the memory 1003, the processor 1001 and the communication interface 1002 are connected through a bus 1004 in Figure 10.
  • the bus is represented by a thick line in Figure 10.
  • the connection methods between other components are only schematically explained. , is not limited.
  • the bus can be divided into address bus, data bus, control bus, etc. For ease of presentation, only one thick line is used in Figure 10, but it does not mean that there is only one bus or one type of bus.
  • Embodiments of the present invention also provide a computer-readable storage medium for storing computer software instructions required to execute the above processor, which includes programs required to execute the above processor.
  • An embodiment of the present application also provides a communication system, including a communication device for realizing the function of the first device in the embodiment of FIG. 5 and a communication device for realizing the function of the second device in the embodiment of FIG. 5 .
  • An embodiment of the present application also provides a communication system, including a communication device for realizing the function of the first device in the embodiment of FIG. 8 and a communication device for realizing the function of the second device in the embodiment of FIG. 8 .
  • embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment that combines software and hardware aspects. Furthermore, the present application may employ one or more computers having computer usable program code embodied therein. It may be in the form of a computer program product implemented on a storage medium (including but not limited to disk storage, CD-ROM, optical storage, etc.).
  • These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the instructions
  • the device implements the functions specified in a process or processes of the flowchart and/or a block or blocks of the block diagram.
  • These computer program instructions may also be loaded onto a computer or other programmable data processing device, causing a series of operating steps to be performed on the computer or other programmable device to produce computer-implemented processing, thereby executing on the computer or other programmable device.
  • Instructions provide steps for implementing the functions specified in a process or processes of a flowchart diagram and/or a block or blocks of a block diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Communication Control (AREA)
  • Radar Systems Or Details Thereof (AREA)

Abstract

Provided in the present application are a communication method and apparatus, which can be applied to a communication system of a UWB or 802.15 protocol. The method comprises: determining a first bit sequence, and outputting the first bit sequence, wherein the first bit sequence comprises a second bit sequence and N preset elements, the second bit sequence is determined according to a first key and an initial value, N is an integer greater than 0, and the values of the N preset elements are preset values. In the embodiments of the present application, preset values (i.e. said N preset elements) are inserted into a random sequence (i.e. said second bit sequence), such that the ratio of the amplitude of a main lobe of an autocorrelation function of the random sequence to the amplitude of the maximum side lobe thereof can be increased, the impact of noise, multi-path transmission, etc., on signal estimation can thus be reduced, and the problem of the accuracy for estimating the time of arrival of a signal being relatively low can then be solved.

Description

一种通信方法及装置A communication method and device
相关申请的交叉引用Cross-references to related applications
本申请要求在2022年04月29日提交中国专利局、申请号为202210474931.X、申请名称为“一种通信方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application submitted to the China Patent Office on April 29, 2022, with application number 202210474931.X and application title "A communication method and device", the entire content of which is incorporated into this application by reference. middle.
技术领域Technical field
本申请涉及通信技术领域,尤其涉及一种通信方法及装置。The present application relates to the field of communication technology, and in particular, to a communication method and device.
背景技术Background technique
由于超宽带(ultra wideband,UWB)通信的带宽很大,因此利用超宽带信号可以获得很高时间精度的测距结果。目前UWB被广泛应用于高精度测距的场景。测距流程为,测距发起设备发送一个测距信号并记录该测距信号的发送时间。测距信号经过一定的传输时间到达测距响应设备,测距响应设备根据接收信号确定该测距信号的到达时间,之后测距响应设备发送一个响应信号给测距发起设备,并记录该响应信号的发送时间。测距发起设备接收响应信号,并根据接收信号来确定该响应信号的到达时间。测距发起设备可以根据测距信号的发送时间和响应信号的到达时间获得往返时间,测距响应设备可以根据测距信号的接收时间和响应信号的发送时间获得响应时间间隔。测距响应设备还可以将响应时间间隔发送给测距发起设备。测距发起设备根据往返时间以及响应时间间隔确定无线信号在测距发起设备和测距响应设备之间的传播时间。从而测距发起设备可以根据传播时间以及光速确定测距发起设备和测距响应设备之间的距离。Due to the large bandwidth of ultra-wideband (UWB) communication, ultra-wideband signals can be used to obtain ranging results with high time accuracy. Currently, UWB is widely used in high-precision ranging scenarios. The ranging process is that the ranging initiating device sends a ranging signal and records the sending time of the ranging signal. The ranging signal reaches the ranging response device after a certain transmission time. The ranging response device determines the arrival time of the ranging signal based on the received signal. Then the ranging response device sends a response signal to the ranging initiating device and records the response signal. of sending time. The ranging initiating device receives the response signal and determines the arrival time of the response signal based on the received signal. The ranging initiating device can obtain the round-trip time based on the sending time of the ranging signal and the arrival time of the response signal, and the ranging response device can obtain the response time interval based on the receiving time of the ranging signal and the sending time of the response signal. The ranging response device may also send the response time interval to the ranging initiating device. The ranging initiating device determines the propagation time of the wireless signal between the ranging initiating device and the ranging response device based on the round-trip time and the response time interval. Therefore, the ranging initiating device can determine the distance between the ranging initiating device and the ranging response device based on the propagation time and the speed of light.
测距响应设备可以在本地生成相同的伪随机序列,并与收到的信号做相关运算,来估计信号的到达时间。The ranging response device can generate the same pseudo-random sequence locally and perform correlation operations with the received signal to estimate the arrival time of the signal.
测距信号的到达时间的估计跟测距信号的自相关特性有很大的关系。具体的,测距响应设备每接收到一个信号,确定该信号和本地保存的序列之间的自相关特性值。当接收到的信号和本地保存的序列之间的自相关特性值到达峰值时,测距响应设备可以确定该信号的接收时刻为测距信号的到达时间。The estimation of the arrival time of the ranging signal has a great relationship with the autocorrelation characteristics of the ranging signal. Specifically, each time the ranging response device receives a signal, it determines the autocorrelation characteristic value between the signal and the locally stored sequence. When the autocorrelation characteristic value between the received signal and the locally saved sequence reaches a peak value, the ranging response device can determine the reception moment of the signal as the arrival time of the ranging signal.
目前,为了支持安全测距,目前引入了基于加扰时间戳序列(Scrambled timestamp sequence,STS)的安全测距方法,测距发起设备生成伪随机的序列并映射到一串脉冲序列上,形成一段或多段伪随机的测距信号。由于STS采用随机序列,其形成的测距信号的自相关函数的旁瓣是一个随机值,无法保证其旁瓣幅度较低,从而会影响到达时间估计的准确性。Currently, in order to support secure ranging, a secure ranging method based on scrambled timestamp sequence (STS) has been introduced. The ranging initiating device generates a pseudo-random sequence and maps it to a series of pulse sequences to form a segment. Or multiple pseudo-random ranging signals. Since STS uses a random sequence, the side lobe of the autocorrelation function of the ranging signal formed by it is a random value, and there is no guarantee that its side lobe amplitude will be low, which will affect the accuracy of arrival time estimation.
发明内容Contents of the invention
本申请提供一种通信方法及装置,用于解决估计信号到达时间时准确性较低的问题。This application provides a communication method and device to solve the problem of low accuracy in estimating signal arrival time.
第一方面,本申请提供一种通信方法,所述方法适用于发送侧设备,该方法的执行主体可以是发送侧设备,也可以是芯片或电路。方法包括:确定第一比特序列,并输出第一 比特序列。其中,第一比特序列包括第二比特序列和N个预设元素,第二比特序列为根据第一密钥和初始值确定的,N为大于0的整数,N个预设元素的取值为预设值。In the first aspect, this application provides a communication method, which method is suitable for a sending-side device. The execution subject of the method may be a sending-side device, or may be a chip or a circuit. The method includes: determining the first bit sequence and outputting the first bit sequence. Among them, the first bit sequence includes a second bit sequence and N preset elements. The second bit sequence is determined based on the first key and the initial value. N is an integer greater than 0. The value of the N preset elements is default value.
本申请实施例中通过在随机序列(即上述第二比特序列)中插入预设值(即上述N个预设元素),可以增大随机序列的自相关函数的主瓣的幅值和最大旁瓣的幅值的比值。从而可以降低噪声或者多径传输等对信号估计的影响,进而可以提升估计信号到达时间的准确性。In the embodiment of the present application, by inserting a preset value (ie, the above-mentioned N preset elements) into the random sequence (ie, the above-mentioned second bit sequence), the amplitude of the main lobe and the maximum side of the autocorrelation function of the random sequence can be increased. The ratio of the lobe amplitudes. This can reduce the impact of noise or multipath transmission on signal estimation, thereby improving the accuracy of estimating signal arrival time.
一种可能的设计中,预设值为0。该方式中,通过在第二比特序列中插入值为0的元素,可以保持第二比特序列的安全性,同时不增加接收端相关运算的复杂度。In one possible design, the default value is 0. In this method, by inserting an element with a value of 0 in the second bit sequence, the security of the second bit sequence can be maintained without increasing the complexity of the relevant operations at the receiving end.
一种可能的设计中,预设值为1或-1。该方式中,通过在第二比特序列中插入值为1的元素,进一步增加主瓣与最大旁瓣的比值,从而可以提升估计信号的到达时间时的准确性。In one possible design, the default value is 1 or -1. In this method, by inserting an element with a value of 1 in the second bit sequence, the ratio of the main lobe to the maximum side lobe is further increased, thereby improving the accuracy of estimating the arrival time of the signal.
一种可能的设计中,第一比特序列的长度为256,N等于128;N个预设元素在第一比特序列中的位置索引分别为:[20 24 26 28 30 31 32 35 36 40 42 43 44 45 48 50 51 54 56 57 58 59 62 65 66 67 68 70 74 75 77 80 81 83 84 86 88 89 91 92 93 94 95 96 97 98 102 103 104 105 106 107 109 113 114 115 117 118 119 121 122 123 126 128 129 130 133 134 135 138 139 140 141 143 144 145 146 149 150 151 152 154 155 157 163 164 167 169 170 171 172 173 174 176 178 180 181 182 184 185 186 187 189 191 193 194 195 196 198 199 200 201 203 206 213 215 216 218 219 220 221 222 224 228 230 234 239 240]。In one possible design, the length of the first bit sequence is 256, and N is equal to 128; the position indexes of the N preset elements in the first bit sequence are: [20 24 26 28 30 31 32 35 36 40 42 43 44 45 48 50 51 54 56 57 58 59 62 65 66 67 68 70 74 75 77 80 81 83 84 86 88 89 91 92 93 94 95 96 97 98 102 103 104 105 106 107 109 113 114 115 117 118 119 121 122 123 126 128 129 130 133 134 135 138 139 140 141 143 144 145 146 149 150 151 152 154 155 157 163 164 167 169 170 171 172 173 1 74 176 178 180 181 182 184 185 186 187 189 191 193 194 195 196 198 199 200 201 203 206 213 215 216 218 219 220 221 222 224 228 230 234 239 240].
一种可能的设计中,第一比特序列的长度为256,N等于128;N个预设元素在第一比特序列中的位置索引分别为:[15 21 26 29 30 32 33 34 35 38 39 42 43 47 49 50 51 52 53 55 60 61 65 66 67 69 72 73 76 77 78 81 83 84 85 86 88 91 92 93 95 96 97 98 99 102 103 104 105 108 109 110 112 114 115 116 118 120 122 123 125 126 128 129 130 131 132 133 134 135 139 141 144 146 147 148 150 151 153 154 156 158 159 160 162 163 166 167 168 169 170 171 174 175 176 177 178 179 181 182 183 185 188 191 192 194 195 197 199 200 201 203 206 207 212 216 217 219 222 226 227 230 235 236 237 238 239 240]。In one possible design, the length of the first bit sequence is 256, and N is equal to 128; the position indexes of the N preset elements in the first bit sequence are: [15 21 26 29 30 32 33 34 35 38 39 42 43 47 49 50 51 52 53 55 60 61 65 66 67 69 72 73 76 77 78 81 83 84 85 86 88 91 92 93 95 96 97 98 99 102 103 104 105 108 10 9 110 112 114 115 116 118 120 122 123 125 126 128 129 130 131 132 133 134 135 139 141 144 146 147 148 150 151 153 154 156 158 159 160 162 163 166 167 168 169 170 171 1 74 175 176 177 178 179 181 182 183 185 188 191 192 194 195 197 199 200 201 203 206 207 212 216 217 219 222 226 227 230 235 236 237 238 239 240].
一种可能的设计中,第一比特序列的长度为255,N等于127;N个预设元素在第一比特序列中的位置索引分别为:[1 4 7 8 12 13 15 18 20 22 23 25 29 35 39 40 43 44 45 46 49 50 52 54 56 57 58 60 62 69 70 76 77 78 79 80 82 84 85 86 87 89 90 91 92 97 98 99 102 103 104 106 107 108 110 111 113 115 116 119 120 123 128 130 132 134 137 138 139 148 150 151 153 154 155 156 157 158 159 163 166 167 168 169 170 171 173 174 177 179 180 181 182 183 186 188 192 193 194 195 197 202 203 205 206 207 211 212 213 215 218 219 221 222 224 225 229 231 234 237 239  240 245 248 252 254 255]。In a possible design, the length of the first bit sequence is 255, and N is equal to 127; the position indexes of the N preset elements in the first bit sequence are: [1 4 7 8 12 13 15 18 20 22 23 25 29 35 39 40 43 44 45 46 49 50 52 54 56 57 58 60 62 69 70 76 77 78 79 80 82 84 85 86 87 89 90 91 92 97 98 99 102 103 104 1 06 107 108 110 111 113 115 116 119 120 123 128 130 132 134 137 138 139 148 150 151 153 154 155 156 157 158 159 163 166 167 168 169 170 171 173 174 177 179 180 181 1 82 183 186 188 192 193 194 195 197 202 203 205 206 207 211 212 213 215 218 219 221 222 224 225 229 231 234 237 239 240 245 248 252 254 255].
一种可能的设计中,N个预设元素中的第i个元素有多个候选的插入位置,针对每个候选的插入位置,在比特序列的该插入位置上插入该第i个元素,确定在该插入位置上插入该第i个元素后得到的比特序列的自相关函数的主瓣的幅值和旁瓣的最大幅值的比值。其中,为第三比特序列在插入第i-1个元素后得到的比特序列。根据每个候选的插入位置对应的比值确定所述第i个元素的插入位置。i遍历从1到N的整数。In one possible design, the i-th element among the N preset elements has multiple candidate insertion positions. For each candidate insertion position, in the bit sequence Insert the i-th element at the insertion position, and determine the ratio of the main lobe amplitude and the maximum amplitude of the side lobe of the autocorrelation function of the bit sequence obtained after inserting the i-th element at the insertion position. in, is the bit sequence obtained after inserting the i-1th element into the third bit sequence. The insertion position of the i-th element is determined based on the ratio corresponding to each candidate insertion position. i iterates over integers from 1 to N.
通过上述方式可以增大主瓣的幅值和旁瓣的最大幅值的比值,从而可以提升估计信号到达时间的准确性。Through the above method, the ratio of the amplitude of the main lobe to the maximum amplitude of the side lobe can be increased, thereby improving the accuracy of estimating the signal arrival time.
一种可能的设计中,输出第一比特序列,包括:根据第一比特序列确定测距信号;发送测距信号。In a possible design, outputting the first bit sequence includes: determining a ranging signal according to the first bit sequence; and sending the ranging signal.
一种可能的设计中,根据第一比特序列确定测距信号,包括:将第一比特序列进行扩频,得到第三比特序列;根据第三比特序列确定脉冲序列;根据脉冲序列确定测距信号。In one possible design, determining the ranging signal based on the first bit sequence includes: spreading the first bit sequence to obtain a third bit sequence; determining the pulse sequence based on the third bit sequence; determining the ranging signal based on the pulse sequence. .
一种可能的设计中,第二比特序列通过如下方式确定:根据第一密钥和初始值生成第四比特序列;将第四比特序列进行二进制相移键控映射,得到第二比特序列。In one possible design, the second bit sequence is determined as follows: generating a fourth bit sequence based on the first key and the initial value; performing binary phase shift keying mapping on the fourth bit sequence to obtain the second bit sequence.
第二方面,本申请提供一种通信方法,所述方法适用于接收侧设备,该方法的执行主体可以是接收侧设备,也可以是芯片或电路。方法包括:确定第一比特序列,第一比特序列包括第二比特序列和N个预设元素,第二比特序列为根据第一密钥和初始值确定的,N为大于0的整数,N个预设元素的取值为预设值;根据第一比特序列确定测距信号的到达时间。In the second aspect, this application provides a communication method, which method is suitable for receiving-side equipment. The execution subject of the method may be the receiving-side equipment, or may be a chip or circuit. The method includes: determining a first bit sequence, the first bit sequence includes a second bit sequence and N preset elements, the second bit sequence is determined based on the first key and the initial value, N is an integer greater than 0, and N The value of the preset element is a preset value; the arrival time of the ranging signal is determined according to the first bit sequence.
本申请实施例中通过在随机序列(即上述第二比特序列)中插入预设值(即上述N个预设元素),可以增大随机序列的自相关函数的主瓣的幅值和最大旁瓣的幅值的比值。从而可以降低噪声或者多径传输等对信号估计的影响,进而可以提升估计信号到达时间的准确性。In the embodiment of the present application, by inserting a preset value (ie, the above-mentioned N preset elements) into the random sequence (ie, the above-mentioned second bit sequence), the amplitude of the main lobe and the maximum side of the autocorrelation function of the random sequence can be increased. The ratio of the lobe amplitudes. This can reduce the impact of noise or multipath transmission on signal estimation, thereby improving the accuracy of estimating signal arrival time.
一种可能的设计中,预设值为0。该方式中,通过在第二比特序列中插入值为0的元素,可以保持第二比特序列的安全性,同时不增加接收端相关运算的复杂度。In one possible design, the default value is 0. In this method, by inserting an element with a value of 0 in the second bit sequence, the security of the second bit sequence can be maintained without increasing the complexity of the relevant operations at the receiving end.
一种可能的设计中,预设值为1或-1。该方式中,通过在第二比特序列中插入值为1的元素,进一步增加主瓣与最大旁瓣的比值,从而可以提升估计信号的到达时间时的准确性。In one possible design, the default value is 1 or -1. In this method, by inserting an element with a value of 1 in the second bit sequence, the ratio of the main lobe to the maximum side lobe is further increased, thereby improving the accuracy of estimating the arrival time of the signal.
一种可能的设计中,第一比特序列的长度为256,N等于128;N个预设元素在第一比特序列中的位置索引分别为:[20 24 26 28 30 31 32 35 36 40 42 43 44 45 48 50 51 54 56 57 58 59 62 65 66 67 68 70 74 75 77 80 81 83 84 86 88 89 91 92 93 94 95 96 97 98 102 103 104 105 106 107 109 113 114 115 117 118 119 121 122 123 126 128 129 130 133 134 135 138 139 140 141 143 144 145 146 149 150 151 152 154 155 157 163 164 167 169 170 171 172 173 174 176 178 180 181 182 184 185 186 187 189 191 193 194 195 196 198 199 200 201 203 206 213 215 216 218 219 220 221 222 224 228 230 234 239 240]。In one possible design, the length of the first bit sequence is 256, and N is equal to 128; the position indexes of the N preset elements in the first bit sequence are: [20 24 26 28 30 31 32 35 36 40 42 43 44 45 48 50 51 54 56 57 58 59 62 65 66 67 68 70 74 75 77 80 81 83 84 86 88 89 91 92 93 94 95 96 97 98 102 103 104 105 106 107 109 113 114 115 117 118 119 121 122 123 126 128 129 130 133 134 135 138 139 140 141 143 144 145 146 149 150 151 152 154 155 157 163 164 167 169 170 171 172 173 1 74 176 178 180 181 182 184 185 186 187 189 191 193 194 195 196 198 199 200 201 203 206 213 215 216 218 219 220 221 222 224 228 230 234 239 240].
一种可能的设计中,第一比特序列的长度为256,N等于128;N个预设元素在第一比特序列中的位置索引分别为:[15 21 26 29 30 32 33 34 35 38 39  42 43 47 49 50 51 52 53 55 60 61 65 66 67 69 72 73 76 77 78 81 83 84 85 86 88 91 92 93 95 96 97 98 99 102 103 104 105 108 109 110 112 114 115 116 118 120 122 123 125 126 128 129 130 131 132 133 134 135 139 141 144 146 147 148 150 151 153 154 156 158 159 160 162 163 166 167 168 169 170 171 174 175 176 177 178 179 181 182 183 185 188 191 192 194 195 197 199 200 201 203 206 207 212 216 217 219 222 226 227 230 235 236 237 238 239 240]。In a possible design, the length of the first bit sequence is 256, and N is equal to 128; the position indexes of the N preset elements in the first bit sequence are: [15 21 26 29 30 32 33 34 35 38 39 42 43 47 49 50 51 52 53 55 60 61 65 66 67 69 72 73 76 77 78 81 83 84 85 86 88 91 92 93 95 96 97 98 99 102 103 104 105 108 109 110 112 114 115 116 118 120 122 123 125 126 128 129 130 131 132 133 134 135 139 141 144 146 147 148 150 151 153 154 156 158 159 160 162 163 166 167 168 169 170 1 71 174 175 176 177 178 179 181 182 183 185 188 191 192 194 195 197 199 200 201 203 206 207 212 216 217 219 222 226 227 230 235 236 237 238 239 240].
一种可能的设计中,第一比特序列的长度为255,N等于127;N个预设元素在第一比特序列中的位置索引分别为:[1 4 7 8 12 13 15 18 20 22 23 25 29 35 39 40 43 44 45 46 49 50 52 54 56 57 58 60 62 69 70 76 77 78 79 80 82 84 85 86 87 89 90 91 92 97 98 99 102 103 104 106 107 108 110 111 113 115 116 119 120 123 128 130 132 134 137 138 139 148 150 151 153 154 155 156 157 158 159 163 166 167 168 169 170 171 173 174 177 179 180 181 182 183 186 188 192 193 194 195 197 202 203 205 206 207 211 212 213 215 218 219 221 222 224 225 229 231 234 237 239 240 245 248 252 254 255]。In one possible design, the length of the first bit sequence is 255, and N is equal to 127; the position indexes of the N preset elements in the first bit sequence are: [1 4 7 8 12 13 15 18 20 22 23 25 29 35 39 40 43 44 45 46 49 50 52 54 56 57 58 60 62 69 70 76 77 78 79 80 82 84 85 86 87 89 90 91 92 97 98 99 102 103 104 1 06 107 108 110 111 113 115 116 119 120 123 128 130 132 134 137 138 139 148 150 151 153 154 155 156 157 158 159 163 166 167 168 169 170 171 173 174 177 179 180 181 1 82 183 186 188 192 193 194 195 197 202 203 205 206 207 211 212 213 215 218 219 221 222 224 225 229 231 234 237 239 240 245 248 252 254 255].
一种可能的设计中,N个预设元素中的第i个元素有多个候选的插入位置,针对每个候选的插入位置,在比特序列的该插入位置上插入该第i个元素,确定在该插入位置上插入该第i个元素后得到的比特序列的自相关函数的主瓣的幅值和旁瓣的最大幅值的比值。其中,为第三比特序列在插入第i-1个元素后得到的比特序列。根据每个候选的插入位置对应的比值确定所述第i个元素的插入位置。i遍历从1到N的整数。In one possible design, the i-th element among the N preset elements has multiple candidate insertion positions. For each candidate insertion position, in the bit sequence Insert the i-th element at the insertion position, and determine the ratio of the main lobe amplitude and the maximum amplitude of the side lobe of the autocorrelation function of the bit sequence obtained after inserting the i-th element at the insertion position. in, is the bit sequence obtained after inserting the i-1th element into the third bit sequence. The insertion position of the i-th element is determined based on the ratio corresponding to each candidate insertion position. i iterates over integers from 1 to N.
通过上述方式可以增大主瓣的幅值和旁瓣的最大幅值的比值,从而可以提升估计信号到达时间的准确性。Through the above method, the ratio of the amplitude of the main lobe to the maximum amplitude of the side lobe can be increased, thereby improving the accuracy of estimating the signal arrival time.
一种可能的设计中,根据第一比特序列确定测距信号的到达时间,包括:根据第一比特序列与接收信号之间的相关结果确定测距信号的到达时间。In one possible design, determining the arrival time of the ranging signal based on the first bit sequence includes: determining the arrival time of the ranging signal based on a correlation result between the first bit sequence and the received signal.
一种可能的设计中,第二比特序列通过如下方式确定:根据第一密钥和初始值生成第四比特序列;将第四比特序列进行二进制相移键控映射,得到第二比特序列。In one possible design, the second bit sequence is determined as follows: generating a fourth bit sequence based on the first key and the initial value; performing binary phase shift keying mapping on the fourth bit sequence to obtain the second bit sequence.
第三方面,本申请提供一种通信方法,所述方法适用于发送侧设备,该方法的执行主体可以是发送侧设备,也可以是芯片或电路。方法包括:确定第一比特序列,第一比特序列通过将第三比特序列的K个值为0的元素替换为第二比特序列中的K个元素而生成,第二比特序列为根据第一密钥和初始值确定的,第一比特序列的长度与第三比特序列的长度相同,K为大于0的整数;输出第一比特序列。In a third aspect, this application provides a communication method, which method is suitable for a sending-side device. The execution subject of the method may be a sending-side device, or may be a chip or a circuit. The method includes: determining a first bit sequence, the first bit sequence is generated by replacing K elements with a value of 0 in the third bit sequence with K elements in a second bit sequence, and the second bit sequence is generated according to the first secret. The key and initial value are determined, the length of the first bit sequence is the same as the length of the third bit sequence, K is an integer greater than 0; the first bit sequence is output.
本申请实施例中通过将完美序列(即第三比特序列)中的K个0替换成随机序列(即第二比特序列)的K个元素,可以增大随机序列的自相关函数的主瓣的幅值和最大旁瓣的幅值的比值,从而可以降低噪声或者多径传输等对信号估计的影响,进而可以提升估计信号到达时间的准确性。In the embodiment of the present application, by replacing K zeros in the perfect sequence (i.e., the third bit sequence) with K elements of the random sequence (i.e., the second bit sequence), the main lobe of the autocorrelation function of the random sequence can be increased. The ratio of the amplitude to the amplitude of the maximum side lobe can reduce the impact of noise or multipath transmission on signal estimation, thereby improving the accuracy of estimating the signal arrival time.
一种可能的设计中,方法还包括:在序列集合中确定第一序列,第三比特序列为第一序列或者第一序列的等效序列,序列集合包括一个或多个序列,且一个或多个序列均为完 美序列。通过使用完美序列的等效序列,可以避免不可信设备获知发送侧设备和接收侧设备所使用的完美序列,从而可以提升发送侧设备和接收侧设备的安全性。In a possible design, the method further includes: determining the first sequence in a sequence set, and the third bit sequence is the first sequence or an equivalent sequence of the first sequence, the sequence set includes one or more sequences, and one or more All sequences are complete Beautiful sequence. By using equivalent sequences of perfect sequences, untrusted devices can be prevented from learning the perfect sequences used by the sending and receiving devices, thereby improving the security of the sending and receiving devices.
一种可能的设计中,在序列集合中确定第一序列,包括:根据第二比特序列的长度在序列集合中确定第一序列。In a possible design, determining the first sequence in the sequence set includes: determining the first sequence in the sequence set according to the length of the second bit sequence.
一种可能的设计中,第三比特序列为对第一序列进行如下操作中的一项或多项后得到的等效序列:循环移位处理、或者逆序处理、或者取反处理、或者d倍抽样处理,d为大于1的整数;其中,对第一序列进行d倍抽样处理,包括:确定第四比特序列,第四比特序列包括d个第一序列;将第四比特序列每d个元素抽取一个元素。通过上述方式可以提升通信安全性。In a possible design, the third bit sequence is an equivalent sequence obtained by performing one or more of the following operations on the first sequence: cyclic shift processing, or reverse order processing, or negation processing, or d times. Sampling processing, d is an integer greater than 1; wherein, performing d times sampling processing on the first sequence includes: determining the fourth bit sequence, and the fourth bit sequence includes d first sequences; adding every d elements of the fourth bit sequence Extract an element. Communication security can be improved through the above methods.
一种可能的设计中,d和完美序列的长度的最大公约数为1。In one possible design, the greatest common divisor of d and the length of the perfect sequence is 1.
一种可能的设计中,方法还包括:根据第二比特序列中至少一个比特的取值确定序列的第一等效序列,第三比特序列为第一等效序列。In a possible design, the method further includes: determining a first equivalent sequence of the sequence based on the value of at least one bit in the second bit sequence, and the third bit sequence is the first equivalent sequence.
一种可能的设计中,输出第一比特序列,包括:根据第一比特序列生成测距信号;发送测距信号。In a possible design, outputting the first bit sequence includes: generating a ranging signal according to the first bit sequence; and sending the ranging signal.
一种可能的设计中,根据第一比特序列确定测距信号,包括:将第一比特序列进行扩频,得到第四比特序列;根据第四比特序列确定脉冲序列;根据脉冲序列确定测距信号。In one possible design, determining the ranging signal based on the first bit sequence includes: spreading the first bit sequence to obtain a fourth bit sequence; determining the pulse sequence based on the fourth bit sequence; determining the ranging signal based on the pulse sequence. .
一种可能的设计中,第二比特序列通过如下方式确定:根据第一密钥和初始值生成第五比特序列;将第五比特序列进行二进制相移键控映射,得到第二比特序列。In one possible design, the second bit sequence is determined as follows: generating a fifth bit sequence based on the first key and the initial value; performing binary phase shift keying mapping on the fifth bit sequence to obtain the second bit sequence.
第四方面,本申请提供一种通信方法,所述方法适用于接收侧设备,该方法的执行主体可以是接收侧设备,也可以是芯片或电路。方法包括:确定第一比特序列,第一比特序列通过将第三比特序列的K个值为0的元素替换为第二比特序列中的K个元素而生成,第二比特序列为根据第一密钥和初始值确定的,第一比特序列的长度与第三比特序列的长度相同,K为大于0的整数;根据第一比特序列确定测距信号的到达时间。In the fourth aspect, this application provides a communication method, which method is suitable for receiving-side equipment. The execution subject of the method may be the receiving-side equipment, or may be a chip or circuit. The method includes: determining a first bit sequence, the first bit sequence is generated by replacing K elements with a value of 0 in the third bit sequence with K elements in a second bit sequence, and the second bit sequence is generated according to the first secret. Determined by the key and the initial value, the length of the first bit sequence is the same as the length of the third bit sequence, and K is an integer greater than 0; the arrival time of the ranging signal is determined based on the first bit sequence.
本申请实施例中通过将完美序列(即第三比特序列)中的K个0替换成随机序列(即第二比特序列)的K个元素,可以增大随机序列的自相关函数的主瓣的幅值和最大旁瓣的幅值的比值,从而可以降低噪声或者多径传输等对信号估计的影响,进而可以提升估计信号到达时间的准确性。In the embodiment of the present application, by replacing K zeros in the perfect sequence (i.e., the third bit sequence) with K elements of the random sequence (i.e., the second bit sequence), the main lobe of the autocorrelation function of the random sequence can be increased. The ratio of the amplitude to the amplitude of the maximum side lobe can reduce the impact of noise or multipath transmission on signal estimation, thereby improving the accuracy of estimating the signal arrival time.
一种可能的设计中,方法还包括:在序列集合中确定第一序列,第三比特序列为第一序列或者第一序列的等效序列,序列集合包括一个或多个序列,且一个或多个序列均为完美序列。通过使用完美序列的等效序列,可以避免不可信设备获知发送侧设备和接收侧设备所使用的完美序列,从而可以提升发送侧设备和接收侧设备的安全性。In a possible design, the method further includes: determining the first sequence in a sequence set, and the third bit sequence is the first sequence or an equivalent sequence of the first sequence, the sequence set includes one or more sequences, and one or more All sequences are perfect sequences. By using equivalent sequences of perfect sequences, untrusted devices can be prevented from learning the perfect sequences used by the sending and receiving devices, thereby improving the security of the sending and receiving devices.
一种可能的设计中,在序列集合中确定第一序列,包括:根据第二比特序列的长度在序列集合中确定第一序列。In a possible design, determining the first sequence in the sequence set includes: determining the first sequence in the sequence set according to the length of the second bit sequence.
一种可能的设计中,第三比特序列为对第一序列进行如下操作中的一项或多项后得到的等效序列:循环移位处理、或者逆序处理、或者取反处理、或者d倍抽样处理,d为大于1的整数;其中,对第一序列进行d倍抽样处理,包括:确定第四比特序列,第四比特序列包括d个第一序列;将第四比特序列每d个元素抽取一个元素。通过上述方式可以提升通信安全性。In a possible design, the third bit sequence is an equivalent sequence obtained by performing one or more of the following operations on the first sequence: cyclic shift processing, or reverse order processing, or negation processing, or d times. Sampling processing, d is an integer greater than 1; wherein, performing d times sampling processing on the first sequence includes: determining the fourth bit sequence, and the fourth bit sequence includes d first sequences; adding every d elements of the fourth bit sequence Extract an element. Communication security can be improved through the above methods.
一种可能的设计中,d和完美序列的长度的最大公约数为1。In one possible design, the greatest common divisor of d and the length of the perfect sequence is 1.
一种可能的设计中,方法还包括:根据第二比特序列中至少一个比特的取值确定序列 的第一等效序列,第三比特序列为第一等效序列。In a possible design, the method further includes: determining the sequence according to the value of at least one bit in the second bit sequence. The first equivalent sequence of , the third bit sequence is the first equivalent sequence.
一种可能的设计中,根据第一比特序列确定测距信号的到达时间,包括:根据第一比特序列与接收信号之间的相关结果确定测距信号的到达时间。In one possible design, determining the arrival time of the ranging signal based on the first bit sequence includes: determining the arrival time of the ranging signal based on a correlation result between the first bit sequence and the received signal.
一种可能的设计中,第二比特序列通过如下方式确定:根据第一密钥和初始值生成第五比特序列;将第五比特序列进行二进制相移键控映射,得到第二比特序列。In one possible design, the second bit sequence is determined as follows: generating a fifth bit sequence based on the first key and the initial value; performing binary phase shift keying mapping on the fifth bit sequence to obtain the second bit sequence.
第五方面,本申请还提供一种通信装置,所述装置为发送侧设备或发送侧设备中的芯片。该通信装置具有实现上述第一方面或第三方面提供的任一方法的功能。该通信装置可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的单元或模块。In a fifth aspect, the present application also provides a communication device, where the device is a sending-side device or a chip in the sending-side device. The communication device has the function of implementing any of the methods provided in the first aspect or the third aspect. The communication device can be implemented by hardware, or can also be implemented by hardware executing corresponding software. The hardware or software includes one or more units or modules corresponding to the above functions.
一种可能的设计中,该通信装置包括:处理器,该处理器被配置为支持该通信装置执行以上所示方法中发送侧设备的相应功能。该通信装置还可以包括存储器,该存储可以与处理器耦合,其保存该通信装置必要的程序指令和数据。可选地,该通信装置还包括接口电路,该接口电路用于支持该通信装置与接收侧设备等设备之间的通信。In a possible design, the communication device includes: a processor, the processor is configured to support the communication device in performing the corresponding functions of the sending side device in the method shown above. The communications device may also include memory, which storage may be coupled to the processor, which holds program instructions and data necessary for the communications device. Optionally, the communication device further includes an interface circuit, which is used to support communication between the communication device and a device such as a receiving side device.
一种可能的设计中,该通信装置包括相应的功能模块,分别用于实现以上方法中的步骤。功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块。In a possible design, the communication device includes corresponding functional modules, respectively used to implement the steps in the above method. Functions can be implemented by hardware, or by hardware executing corresponding software. Hardware or software includes one or more modules corresponding to the above functions.
一种可能的设计中,通信装置的结构中包括处理单元(或处理模块)和通信单元(或通信模块),这些单元可以执行上述方法示例中相应功能,具体参见第一方面或第三方面提供的方法中的描述,此处不做赘述。In a possible design, the structure of the communication device includes a processing unit (or processing module) and a communication unit (or communication module). These units can perform the corresponding functions in the above method examples. For details, see the first aspect or the third aspect. The description in the method will not be repeated here.
第六方面,本申请还提供一种通信装置,所述装置为接收侧设备或接收侧设备中的芯片。该通信装置具有实现上述第二方面或第四方面提供的任一方法的功能。该通信装置可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的单元或模块。In a sixth aspect, the present application also provides a communication device, where the device is a receiving-side device or a chip in the receiving-side device. The communication device has the function of implementing any of the methods provided in the second aspect or the fourth aspect. The communication device can be implemented by hardware, or can also be implemented by hardware executing corresponding software. The hardware or software includes one or more units or modules corresponding to the above functions.
一种可能的设计中,该通信装置包括:处理器,该处理器被配置为支持该通信装置执行以上所示方法中接收侧设备的相应功能。该通信装置还可以包括存储器,该存储可以与处理器耦合,其保存该通信装置必要的程序指令和数据。可选地,该通信装置还包括接口电路,该接口电路用于支持该通信装置与发送侧设备等设备之间的通信。In a possible design, the communication device includes: a processor, the processor is configured to support the communication device in performing the corresponding functions of the receiving side device in the method shown above. The communications device may also include memory, which storage may be coupled to the processor, which holds program instructions and data necessary for the communications device. Optionally, the communication device further includes an interface circuit, which is used to support communication between the communication device and a device such as a sending side device.
一种可能的设计中,该通信装置包括相应的功能模块,分别用于实现以上方法中的步骤。功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块。In a possible design, the communication device includes corresponding functional modules, respectively used to implement the steps in the above method. Functions can be implemented by hardware, or by hardware executing corresponding software. Hardware or software includes one or more modules corresponding to the above functions.
一种可能的设计中,通信装置的结构中包括处理单元(或处理模块)和通信单元(或通信模块),这些单元可以执行上述方法示例中相应功能,具体参见第二方面或第四方面提供的方法中的描述,此处不做赘述。In a possible design, the structure of the communication device includes a processing unit (or processing module) and a communication unit (or communication module). These units can perform the corresponding functions in the above method examples. For details, see the second aspect or the fourth aspect. The description in the method will not be repeated here.
第七方面,提供了一种通信装置,包括处理器和接口电路,接口电路用于接收来自该通信装置之外的其它通信装置的信号并传输至该处理器或将来自该处理器的信号发送给该通信装置之外的其它通信装置,该处理器通过逻辑电路或执行代码指令用于实现前述第一方面或第三方面以及任意可能的设计中的方法。In a seventh aspect, a communication device is provided, including a processor and an interface circuit. The interface circuit is used to receive signals from other communication devices other than the communication device and transmit them to the processor or to send signals from the processor. For other communication devices other than the communication device, the processor is used to implement the method in the first aspect or the third aspect as well as any possible design through logic circuits or executing code instructions.
第八方面,提供了一种通信装置,包括处理器和接口电路,接口电路用于接收来自该通信装置之外的其它通信装置的信号并传输至该处理器或将来自该处理器的信号发送给该通信装置之外的其它通信装置,该处理器通过逻辑电路或执行代码指令用于实现前述第 二方面或第四方面以及任意可能的设计中的方法。In an eighth aspect, a communication device is provided, including a processor and an interface circuit. The interface circuit is used to receive signals from other communication devices other than the communication device and transmit them to the processor or to send signals from the processor. For other communication devices other than the communication device, the processor is used to implement the aforementioned third step through logic circuits or execution of code instructions. Methods in either the second or fourth aspect and any possible design.
第九方面,提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序或指令,当该计算机程序或指令被处理器执行时,实现前述第一方面至第四方面中任一方面以及任意可能的设计中的方法。In a ninth aspect, a computer-readable storage medium is provided. Computer programs or instructions are stored in the computer-readable storage medium. When the computer program or instructions are executed by a processor, the above-described first to fourth aspects are implemented. method in any aspect and in any possible design.
第十方面,提供了一种存储有指令的计算机程序产品,当该指令被处理器运行时,实现前述第一方面至第四方面中任一方面以及任意可能的设计中的方法。A tenth aspect provides a computer program product storing instructions. When the instructions are executed by a processor, any one of the foregoing first to fourth aspects and the method in any possible design are implemented.
第十一方面,提供一种芯片系统,该芯片系统包括处理器,还可以包括存储器,用于实现前述第一方面或第三方面以及任意可能的设计中的方法。该芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。In an eleventh aspect, a chip system is provided. The chip system includes a processor and may also include a memory for implementing the method in the first or third aspect and any possible design. The chip system can be composed of chips or include chips and other discrete devices.
第十二方面,提供一种芯片系统,该芯片系统包括处理器,还可以包括存储器,用于实现前述第二方面或第四方面以及任意可能的设计中的方法。该芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。In a twelfth aspect, a chip system is provided. The chip system includes a processor and may also include a memory for implementing the method in the aforementioned second or fourth aspect and any possible design. The chip system can be composed of chips or include chips and other discrete devices.
第十三方面,提供一种通信系统,所述系统包括第一方面所述的装置(如发送侧设备)以及第二方面所述的装置(如接收侧设备)。A thirteenth aspect provides a communication system, which system includes the device described in the first aspect (such as a sending-side device) and the device described in the second aspect (such as a receiving-side device).
第十四方面,提供一种通信系统,所述系统包括第三方面所述的装置(如发送侧设备)以及第四方面所述的装置(如接收侧设备)。A fourteenth aspect provides a communication system, which includes the device described in the third aspect (such as a sending-side device) and the device described in the fourth aspect (such as a receiving-side device).
附图说明Description of the drawings
图1为本申请实施例的一种测距流程的流程示意图;Figure 1 is a schematic flow chart of a ranging process according to an embodiment of the present application;
图2为本申请实施例的一种自相关函数结果示意图;Figure 2 is a schematic diagram of an autocorrelation function result according to an embodiment of the present application;
图3为本申请实施例的一种通信系统的结构示意图;Figure 3 is a schematic structural diagram of a communication system according to an embodiment of the present application;
图4为本申请实施例的一种通信系统的结构示意图;Figure 4 is a schematic structural diagram of a communication system according to an embodiment of the present application;
图5为本申请实施例的一种通信方法的流程示意图;Figure 5 is a schematic flow chart of a communication method according to an embodiment of the present application;
图6为本申请实施例的一种信号结构示意图;Figure 6 is a schematic diagram of a signal structure according to an embodiment of the present application;
图7为本申请实施例的一种仿真结果示意图;Figure 7 is a schematic diagram of a simulation result according to an embodiment of the present application;
图8为本申请实施例的一种通信方法的流程示意图;Figure 8 is a schematic flow chart of a communication method according to an embodiment of the present application;
图9为本申请实施例的一种通信装置的结构示意图;Figure 9 is a schematic structural diagram of a communication device according to an embodiment of the present application;
图10为本申请实施例的一种通信装置的结构示意图。Figure 10 is a schematic structural diagram of a communication device according to an embodiment of the present application.
具体实施方式Detailed ways
为了使本申请实施例的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施例作进一步地详细描述。In order to make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
以下,对本申请实施例中的部分用语进行解释说明,以便于本领域技术人员理解。In the following, some terms used in the embodiments of the present application are explained to facilitate understanding by those skilled in the art.
1)UWB技术:1)UWB technology:
随着移动通信和互联网技术的快速普及与发展,人们对于位置服务的需求越来越大。例如在工厂人员定位、物流仓储中的货物定位、汽车门锁的智能感知等方面有着诸多的应用场景。UWB技术由于其带宽大(例如500MHz,甚至更大),和其他无线技术相比能够获得更高的分辨率,因此在定位系统中获得广泛应用。With the rapid popularization and development of mobile communications and Internet technology, people's demand for location services is increasing. For example, it has many application scenarios in terms of personnel positioning in factories, cargo positioning in logistics and warehousing, and intelligent sensing of car door locks. UWB technology is widely used in positioning systems due to its large bandwidth (such as 500MHz or even larger) and its ability to achieve higher resolution than other wireless technologies.
测距流程如图1所示,测距发起设备发送一个测距信号并记录该测距信号的发送时间 T1。测距信号经过一定的传输时间到达测距响应设备,测距响应设备根据接收信号确定该测距信号的到达时间T2,之后测距响应设备发送一个响应信号给测距发起设备,并记录该响应信号的发送时间T3。测距发起设备接收响应信号,并根据接收信号来确定该响应信号的到达时间T4。测距发起设备可以根据测距信号的发送时间和响应信号的到达时间获得往返时间,测距响应设备可以根据测距信号的接收时间和响应信号的发送时间获得响应时间间隔。测距响应设备还可以将响应时间间隔发送给测距发起设备。测距发起设备根据往返时间以及响应时间间隔确定无线信号在测距发起设备和测距响应设备之间的传播时间。从而测距发起设备可以根据传播时间以及光速确定测距发起设备和测距响应设备之间的距离。The ranging process is shown in Figure 1. The ranging initiating device sends a ranging signal and records the sending time of the ranging signal. T1. The ranging signal reaches the ranging response device after a certain transmission time. The ranging response device determines the arrival time T2 of the ranging signal based on the received signal. Then the ranging response device sends a response signal to the ranging initiating device and records the response. The signal transmission time is T3. The ranging initiating device receives the response signal and determines the arrival time T4 of the response signal based on the received signal. The ranging initiating device can obtain the round-trip time based on the sending time of the ranging signal and the arrival time of the response signal, and the ranging response device can obtain the response time interval based on the receiving time of the ranging signal and the sending time of the response signal. The ranging response device may also send the response time interval to the ranging initiating device. The ranging initiating device determines the propagation time of the wireless signal between the ranging initiating device and the ranging response device based on the round-trip time and the response time interval. Therefore, the ranging initiating device can determine the distance between the ranging initiating device and the ranging response device based on the propagation time and the speed of light.
2)信号的自相关特性2) Autocorrelation characteristics of signals
信号的到达时间的估计跟测距信号的自相关特性有很大的关系。其中,假设测距信号对应的序列x(n)的长度为N,其周期自相关函数R(τ)定义如下:
The estimation of the arrival time of the signal is closely related to the autocorrelation characteristics of the ranging signal. Among them, assuming that the length of the sequence x(n) corresponding to the ranging signal is N, its periodic autocorrelation function R(τ) is defined as follows:
其中,τ为周期内的位置,R(τ)为位置τ上的幅值,(n+τ)mod N是指n+τ除以N的余数。当τ=0时,R(τ)为主瓣的幅值,当τ≠0时,R(τ)为旁瓣的幅值。Among them, τ is the position within the period, R(τ) is the amplitude at position τ, (n+τ)mod N refers to the remainder of n+τ divided by N. When τ=0, R(τ) is the amplitude of the main lobe, and when τ≠0, R(τ) is the amplitude of the side lobe.
因此,接收端可以根据上述自相关特性将接收到的信号与本地保存的序列进行相关运算,可以估计信号的到达时间。例如,以测距响应设备估计测距信号的到达时间为例。测距响应设备每接收到一个信号,根据自相关函数确定该信号和本地保存的序列之间的相关特性值。当接收到的信号和本地保存的序列之间的相关特性值到达峰值时,测距响应设备可以确定该信号的接收时刻为测距信号的到达时间。Therefore, the receiving end can perform correlation operations on the received signal and the locally saved sequence based on the above-mentioned autocorrelation characteristics, and can estimate the arrival time of the signal. For example, take the ranging response device estimating the arrival time of the ranging signal as an example. Each time the ranging response device receives a signal, it determines the correlation characteristic value between the signal and the locally saved sequence based on the autocorrelation function. When the correlation characteristic value between the received signal and the locally saved sequence reaches a peak value, the ranging response device can determine the reception moment of the signal as the arrival time of the ranging signal.
其中,测距响应设备可以通过如下公式确定接收到的信号y(n)和本地保存的序列x(n)之间的相关特性值:
Among them, the ranging response device can determine the correlation characteristic value between the received signal y(n) and the locally saved sequence x(n) through the following formula:
其中,N为x(n)的长度。若R等于或者近似等于R(τ=0),则可以确定该信号的接收时间为信号到达时间。Among them, N is the length of x(n). If R is equal to or approximately equal to R (τ=0), the reception time of the signal can be determined to be the signal arrival time.
3)基于STS的安全测距方法3) STS-based safe ranging method
为了支持安全测距,目前引入了基于STS的安全测距方法,测距发起设备生成伪随机的序列并映射到一串脉冲序列上,形成测距信号。测距响应设备可以在本地生成相同的伪随机序列,并与收到的信号做相关运算,来估计信号的到达时间。从而避免非法设备的干扰,到达安全测距的目的。In order to support safe ranging, a safe ranging method based on STS is currently introduced. The ranging initiating device generates a pseudo-random sequence and maps it to a series of pulse sequences to form a ranging signal. The ranging response device can generate the same pseudo-random sequence locally and perform correlation operations with the received signal to estimate the arrival time of the signal. This avoids interference from illegal equipment and achieves the purpose of safe ranging.
4)完美序列4)Perfect sequence
若一个序列的周期自相关函数,对于τ≠0时,R(τ)均为0,则该序列被称为完美序列。If the periodic autocorrelation function of a sequence, for τ≠0, R(τ) is all 0, then the sequence is called a perfect sequence.
应理解,完美序列仅是一种示例性命名,只要一个序列可以满足上述特性,均可以理解为本申请所述的完美序列。It should be understood that perfect sequence is only an exemplary naming. As long as a sequence can meet the above characteristics, it can be understood as a perfect sequence described in this application.
本申请实施例中“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一 项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。In the embodiments of this application, "at least one" refers to one or more, and "multiple" refers to two or more. "And/or" describes the association of associated objects, indicating that there can be three relationships, for example, A and/or B, which can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural. The character "/" generally indicates that the related objects are in an "or" relationship. "At least one of the following" or similar expressions thereof refers to any combination of these items, including any combination of a single item (items) or a plurality of items (items). For example, at least one of a, b, or c Item (item) can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
以及,除非有相反的说明,本申请实施例提及“第一”、“第二”等序数词是用于对多个对象进行区分,不用于限定多个对象的大小、内容、顺序、时序、优先级或者重要程度等。例如,第一分片和第二分片,只是为了区分不同的分片,而并不是表示这两个分片的位置、优先级或者重要程度等的不同。And, unless otherwise stated, ordinal numbers such as "first" and "second" mentioned in the embodiments of this application are used to distinguish multiple objects and are not used to limit the size, content, order, and timing of multiple objects. , priority or importance, etc. For example, the first shard and the second shard are just to distinguish different shards, but do not indicate the difference in position, priority or importance of the two shards.
前文介绍了本申请实施例所涉及到的一些名词概念,下面介绍本申请实施例涉及的技术特征。The foregoing has introduced some terms and concepts involved in the embodiments of the present application, and the technical features involved in the embodiments of the present application will be introduced below.
由于在基于STS的安全测距方法中,测距信号是根据随机序列生成的,其形成的测距信号的自相关函数的旁瓣是一个随机值,旁瓣的幅值可能较大,如图2所示。在有噪声或多径环境干扰的情况下,自相关函数的主瓣和可能会淹没的旁瓣中,从而会影响到达时间估计的准确性。Since in the safe ranging method based on STS, the ranging signal is generated based on a random sequence, the side lobe of the autocorrelation function of the ranging signal formed is a random value, and the amplitude of the side lobe may be large, as shown in Figure 2 shown. In the presence of noise or multipath environmental interference, the main lobe and side lobes of the autocorrelation function may be overwhelmed, thus affecting the accuracy of arrival time estimation.
基于此,本申请实施例提供一种通信方法及装置,用于解决估计信号到达时间时准确性较低的问题。其中,方法和装置是基于同一构思的,由于方法及装置解决问题的原理相似,因此装置与方法的实施可以相互参见,重复之处不再赘述。Based on this, embodiments of the present application provide a communication method and device to solve the problem of low accuracy in estimating signal arrival time. Among them, the method and the device are based on the same concept. Since the principles of the method and the device to solve the problem are similar, the implementation of the device and the method can be referred to each other, and the repeated points will not be repeated.
本申请提供的通信方法可以应用于各类通信系统中,例如,可以是物联网(internet of things,IoT)、窄带物联网(narrow band internet of things,NB-IoT)、LTE,也可以是第五代(5G)通信系统,还可以是LTE与5G混合架构、也可以是5G NR系统以及6G或者未来通信发展中出现的新的通信系统等。The communication method provided by this application can be applied to various communication systems, for example, it can be the Internet of Things (IoT), narrowband Internet of things (NB-IoT), LTE, or the third The fifth generation (5G) communication system can also be a hybrid architecture of LTE and 5G, or it can be a 5G NR system, 6G or new communication systems emerging in future communication development, etc.
本申请提供的通信方法可以应用于星型拓扑结构的通信系统中,也可以应用于点对点拓扑结构的通信系统中。The communication method provided by this application can be applied to a communication system with a star topology structure or a communication system with a point-to-point topology structure.
图3示出了一种星型拓扑结构的通信系统的架构。图3中以四个测距设备分别为测距设备1~4为例示出。Figure 3 shows the architecture of a communication system with star topology. In FIG. 3 , four distance measuring devices are distance measuring devices 1 to 4 respectively.
图4示出了一种点对点拓扑结构的通信系统的架构。图4中以四个测距设备分别为测距设备1~4为例示出。Figure 4 shows the architecture of a communication system with a point-to-point topology. In FIG. 4 , four distance measuring devices are distance measuring devices 1 to 4 respectively.
图3和图4所示的通信系统可以应用于同步、测距、定位、感知等场景。The communication system shown in Figures 3 and 4 can be applied to synchronization, ranging, positioning, sensing and other scenarios.
其中,图3或图4中进行通信的两个测距设备,可以一个是测距发起设备,另一个是测距响应设备。具体的,测距发起设备向测距响应设备发送测距信号,测距响应设备向测距发起设备回复测距响应信号,以使测距发起设备确定两者之间的距离等。示例性的,测距发起设备可以为网络设备,测距响应设备为终端设备;或者,测距发起设备和测距响应设备可以均为终端设备;或者,测距发起设备和测距响应设备也可以是能实现测距等的其他设备,例如UWB设备,本申请对此不作限定。Among the two ranging devices communicating in Figure 3 or Figure 4, one can be a ranging initiating device and the other can be a ranging responding device. Specifically, the ranging initiating device sends a ranging signal to the ranging response device, and the ranging response device replies a ranging response signal to the ranging initiating device, so that the ranging initiating device determines the distance between the two. For example, the ranging initiating device can be a network device, and the ranging response device can be a terminal device; or the ranging initiating device and the ranging response device can both be terminal devices; or the ranging initiating device and the ranging response device can also be It may be other devices that can implement ranging, such as UWB devices, which is not limited in this application.
本申请实施例中测距发起设备和测距响应设备仅是逻辑上的一种区分,测距发起设备和测距响应设备的角色也可以互换。例如,测距设备1为测距发起设备,测距设备2为测距响应设备。或者,测距设备2为测距发起设备,测距设备1为测距响应设备。In the embodiment of the present application, the ranging initiating device and the ranging response device are only a logical distinction, and the roles of the ranging initiating device and the ranging response device can also be interchanged. For example, ranging device 1 is a ranging initiating device, and ranging device 2 is a ranging responding device. Alternatively, ranging device 2 is a ranging initiating device, and ranging device 1 is a ranging responding device.
需要说明的是,图3或图4所示的通信系统中的设备的数量仅仅为示例,不作为对本申请的限定。It should be noted that the number of devices in the communication system shown in Figure 3 or Figure 4 is only an example and does not limit the present application.
本申请实施例描述的网络架构以及业务场景是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着网络架构的演变和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题同样适用。 The network architecture and business scenarios described in the embodiments of this application are for the purpose of explaining the technical solutions of the embodiments of this application more clearly, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. Those of ordinary skill in the art will know that with the network With the evolution of architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.
需要说明的是,在以下的描述中,以第一设备为测距发起设备,以第二设备为测距响应设备为例说明。其中,在以下的描述中,仅以第一设备和第二设备为执行主体说明。可选的,第一设备的操作还可以由第一设备中的处理器、芯片或一个功能模块执行;第二设备的操作还可以由第二设备中的处理器、芯片或一个功能模块执行,本申请对此不作限定。It should be noted that in the following description, the first device is the ranging initiating device and the second device is the ranging responding device as an example. In the following description, only the first device and the second device are used as execution subjects. Optionally, the operation of the first device can also be performed by a processor, a chip or a functional module in the first device; the operation of the second device can also be performed by a processor, a chip or a functional module in the second device. This application does not limit this.
参见图5,为本申请提供的一种通信方法的流程示意图。该方法包括:Refer to Figure 5, which is a schematic flow chart of a communication method provided by this application. The method includes:
S501,第一设备确定第一比特序列。S501. The first device determines the first bit sequence.
其中,第一比特序列包括第二比特序列和N个预设元素。M为大于0的整数,N为大于0的整数。The first bit sequence includes a second bit sequence and N preset elements. M is an integer greater than 0, and N is an integer greater than 0.
该第二比特序列为根据第一密钥和初始值确定的。The second bit sequence is determined based on the first key and the initial value.
一种可能的实施方式中,第一设备可以根据第一密钥和初始值生成第四比特序列,并将第四比特序列进行二进制相移键控(binary phase shift keying,BPSK)映射,得到该第二比特序列。In a possible implementation, the first device can generate a fourth bit sequence based on the first key and the initial value, and perform binary phase shift keying (BPSK) mapping on the fourth bit sequence to obtain the The second bit sequence.
可选的,上述生成第三比特序列过程可以参阅基于STS的安全测距方法中生成随机序列的实现方式。Optionally, the above process of generating the third bit sequence can refer to the implementation of generating a random sequence in the STS-based secure ranging method.
一种可能的方案中,在将第三比特序列进行BPSK映射时,可以将第三比特序列中的0的映射成1,将1映射成-1。In a possible solution, when performing BPSK mapping on the third bit sequence, 0 in the third bit sequence can be mapped to 1 and 1 to -1.
上述N个预设元素的取值为预设值。举例说明,预设值可以是0。该方式中,通过在第二比特序列中插入值为0的元素,可以保持第二比特序列的安全性,同时不增加接收端相关运算的复杂度。The values of the above N preset elements are preset values. For example, the default value may be 0. In this method, by inserting an element with a value of 0 in the second bit sequence, the security of the second bit sequence can be maintained without increasing the complexity of the relevant operations at the receiving end.
或者,预设值还可以是1或者-1。该方式中,通过在第二比特序列中插入值为1的元素,进一步增加主瓣与最大旁瓣的比值,从而可以提升估计信号的到达时间时的准确性。Alternatively, the default value can be 1 or -1. In this method, by inserting an element with a value of 1 in the second bit sequence, the ratio of the main lobe to the maximum side lobe is further increased, thereby improving the accuracy of estimating the arrival time of the signal.
一种示例性描述中,第一比特序列可以是在第三比特序列中插入N个取值为预设值的元素后得到的。In an exemplary description, the first bit sequence may be obtained by inserting N elements whose values are preset values into the third bit sequence.
作为一种可选的方案,针对上述N个预设元素中的第i个元素,可以通过如下步骤A1~A2确定第N个预设元素的插入位置,i遍历从1到N的整数:As an optional solution, for the i-th element among the above N preset elements, the insertion position of the N-th preset element can be determined through the following steps A1 to A2, and i traverses the integers from 1 to N:
A1,所述第i个元素可以有多个候选的插入位置,针对每个候选的插入位置,在比特序列的该插入位置上插入该第i个元素,确定在该插入位置上插入该第i个元素后得到的比特序列的自相关函数的主瓣的幅值和旁瓣的最大幅值的比值。A1, the i-th element may have multiple candidate insertion positions. For each candidate insertion position, in the bit sequence Insert the i-th element at the insertion position, and determine the ratio of the main lobe amplitude and the maximum amplitude of the side lobe of the autocorrelation function of the bit sequence obtained after inserting the i-th element at the insertion position.
其中,为第三比特序列在插入第i-1个元素后得到的比特序列。in, is the bit sequence obtained after inserting the i-1th element into the third bit sequence.
示例性的,可以通过如下公式确定该插入位置对应的比值,或者,也可以理解为,该插入位置对应的比值可以满足如下公式:
For example, the ratio corresponding to the insertion position can be determined by the following formula, or it can also be understood that the ratio corresponding to the insertion position can satisfy the following formula:
其中,PSR为该插入位置对应的比值,si为在该插入位置上插入该第i个元素后得到的比特序列,τ为位移值,∑i|si|2为si的自相关函数的主瓣的幅值,为si的自相关函数的旁瓣的最大幅值。Among them, PSR is the ratio corresponding to the insertion position, s i is the bit sequence obtained after inserting the i-th element at the insertion position, τ is the displacement value, ∑ i |s i | 2 is the autocorrelation function of s i The amplitude of the main lobe, is the maximum amplitude of the side lobe of the autocorrelation function of s i .
A2,根据每个候选的插入位置对应的比值确定所述第i个元素的插入位置。A2: Determine the insertion position of the i-th element according to the ratio corresponding to the insertion position of each candidate.
一种可能的实现方式,可以选择比值最大的插入位置作为第i个元素的插入位置。 One possible implementation is to select the insertion position with the largest ratio as the insertion position of the i-th element.
下面以预设值为0为例,示例性的给出N个预设元素在第一比特序列中的位置。The following takes the preset value as 0 as an example to illustrate the positions of N preset elements in the first bit sequence.
示例一,假设第一比特序列的长度为256,N为128,M为128。上述N个预设元素为第一比特序列中如下元素,也可以理解为上述N个预设元素为第一比特序列中的位置索引为:Example 1, assume that the length of the first bit sequence is 256, N is 128, and M is 128. The above-mentioned N preset elements are the following elements in the first bit sequence. It can also be understood that the above-mentioned N preset elements are the position indexes in the first bit sequence as:
[20 24 26 28 30 31 32 35 36 40 42 43 44 45 48 50 51 54 56 57 58 59 62 65 66 67 68 70 74 75 77 80 81 83 84 86 88 89 91 92 93 94 95 96 97 98 102 103 104 105 106 107 109 113 114 115 117 118 119 121 122 123 126 128 129 130 133 134 135 138 139 140 141 143 144 145 146 149 150 151 152 154 155 157 163 164 167 169 170 171 172 173 174 176 178 180 181 182 184 185 186 187 189 191 193 194 195 196 198 199 200 201 203 206 213 215 216 218 219 220 221 222 224 228 230 234 239 240]。[20 24 26 28 30 31 32 35 36 40 42 43 44 45 48 50 51 54 56 57 58 59 62 65 66 67 68 70 74 75 77 80 81 83 84 86 88 89 91 92 9 3 94 95 96 97 98 102 103 104 105 106 107 109 113 114 115 117 118 119 121 122 123 126 128 129 130 133 134 135 138 139 140 141 143 144 145 146 149 150 1 51 152 154 155 157 163 164 167 169 170 171 172 173 174 176 178 180 181 182 184 185 186 187 189 191 193 194 195 196 198 199 200 201 203 206 213 215 216 218 219 220 221 222 224 228 230 234 239 240].
示例二,假设第一比特序列的长度为256,N为128,M为128。上述N个预设元素为第一比特序列中如下元素,也可以理解为上述N个预设元素为第一比特序列中的位置索引为:Example 2, assume that the length of the first bit sequence is 256, N is 128, and M is 128. The above-mentioned N preset elements are the following elements in the first bit sequence. It can also be understood that the above-mentioned N preset elements are the position indexes in the first bit sequence as:
[15 21 26 29 30 32 33 34 35 38 39 42 43 47 49 50 51 52 53 55 60 61 65 66 67 69 72 73 76 77 78 81 83 84 85 86 88 91 92 93 95 96 97 98 99 102 103 104 105 108 109 110 112 114 115 116 118 120 122 123 125 126 128 129 130 131 132 133 134 135 139 141 144 146 147 148 150 151 153 154 156 158 159 160 162 163 166 167 168 169 170 171 174 175 176 177 178 179 181 182 183 185 188 191 192 194 195 197 199 200 201 203 206 207 212 216 217 219 222 226 227 230 235 236 237 238 239 240]。[15 21 26 29 30 32 33 34 35 38 39 42 43 47 49 50 51 52 53 55 60 61 65 66 67 69 72 73 76 77 78 81 83 84 85 86 88 91 92 93 9 5 96 97 98 99 102 103 104 105 108 109 110 112 114 115 116 118 120 122 123 125 126 128 129 130 131 132 133 134 135 139 141 144 146 147 148 150 151 153 1 54 156 158 159 160 162 163 166 167 168 169 170 171 174 175 176 177 178 179 181 182 183 185 188 191 192 194 195 197 199 200 201 203 206 207 212 216 217 219 222 226 227 230 235 236 237 238 239 240].
示例三,假设第一比特序列的长度为255,N为127,M为128。上述N个预设元素为第一比特序列中如下元素,也可以理解为上述N个预设元素为第一比特序列中的位置索引为:Example 3, assume that the length of the first bit sequence is 255, N is 127, and M is 128. The above-mentioned N preset elements are the following elements in the first bit sequence. It can also be understood that the above-mentioned N preset elements are the position indexes in the first bit sequence as:
[1 4 7 8 12 13 15 18 20 22 23 25 29 35 39 40 43 44 45 46 49 50 52 54 56 57 58 60 62 69 70 76 77 78 79 80 82 84 85 86 87 89 90 91 92 97 98 99 102 103 104 106 107 108 110 111 113 115 116 119 120 123 128 130 132 134 137 138 139 148 150 151 153 154 155 156 157 158 159 163 166 167 168 169 170 171 173 174 177 179 180 181 182 183 186 188 192 193 194 195 197 202 203 205 206 207 211 212 213 215 218 219 221 222 224 225 229 231 234 237 239 240 245 248 252 254 255]。[1 4 7 8 12 13 15 18 20 22 23 25 29 35 39 40 43 44 45 46 49 50 52 54 56 57 58 60 62 69 70 76 77 78 79 80 82 84 85 86 87 89 90 91 92 97 98 99 102 103 104 106 107 108 110 111 113 115 116 119 120 123 128 130 132 134 137 138 139 148 150 151 153 154 155 156 157 158 159 1 63 166 167 168 169 170 171 173 174 177 179 180 181 182 183 186 188 192 193 194 195 197 202 203 205 206 207 211 212 213 215 218 219 221 222 224 225 229 231 234 237 239 240 245 248 252 254 255].
可以理解的,示例一、示例二和示例三中,第一比特序列中未说明的元素为上述第二比特序列,或者,也可以理解为示例一和示例二中未说明的位置索引为上述第二比特序列在第一比特序列中的位置索引。需要说明的是,本申请实施例中使用的位置索引是从1开 始计数。It can be understood that in Examples 1, 2 and 3, the unspecified element in the first bit sequence is the above-mentioned second bit sequence, or it can also be understood that the unspecified position index in Examples 1 and 2 is the above-mentioned third bit sequence. The position index of the two-bit sequence in the first bit sequence. It should be noted that the position index used in the embodiment of this application starts from 1 Start counting.
可以理解的,示例一、示例二和示例三中给出的位置索引集合也可以逆序后使用。It can be understood that the position index sets given in Example 1, Example 2 and Example 3 can also be used in reverse order.
或者,还可以根据第一比特序列的长度将示例一、示例二或示例三中给出的位置索引集合循环移位后使用。Alternatively, the position index set given in Example 1, Example 2 or Example 3 can also be used after being cyclically shifted according to the length of the first bit sequence.
其中,循环移位后预设元素的位置索引可以为Mod(Index_set+K,M+N)+1。其中。Index_set为示例一、示例二或示例三中给出的位置索引集合,K是正整数,代表循环移位的位数。Among them, the position index of the preset element after circular shift can be Mod(Index_set+K, M+N)+1. in. Index_set is the position index set given in Example 1, Example 2 or Example 3. K is a positive integer, representing the number of digits for circular shift.
或者,也可以第一比特序列的长度将示例一、示例二或示例三中给出的位置索引集合进行逆序和循环移位后使用。Alternatively, the position index set given in Example 1, Example 2 or Example 3 can also be used after being reversed and cyclically shifted by the length of the first bit sequence.
其中,逆序和循环移位后预设元素的位置索引可以为Mod(R-Index_set,M+N)+1。其中,Index_set为示例一、示例二或示例三中给出的位置索引集合,R是正整数,代表循环移位的位数。Among them, the position index of the preset element after reverse order and circular shift can be Mod(R-Index_set, M+N)+1. Among them, Index_set is the position index set given in Example 1, Example 2 or Example 3, and R is a positive integer, representing the number of digits of circular shift.
S502,第一设备输出第一比特序列。S502. The first device outputs the first bit sequence.
作为一种可选的方案,第一设备可以根据第一比特序列确定信号,并发送信号。示例性的,该信号可以是测距场景中的测距信号,也可以是感知场景中的感知信号,还可以是定位场景中的定位信号等,本申请实施例对信号的作用和名称不做限定。As an optional solution, the first device may determine the signal according to the first bit sequence and send the signal. For example, the signal may be a ranging signal in a ranging scene, a sensing signal in a sensing scene, or a positioning signal in a positioning scene, etc. The embodiments of this application do not specify the functions and names of the signals. limited.
一种具体的方案中,根据第一比特序列确定信号,可以通过如下步骤B1~B3实现:In a specific solution, determining the signal based on the first bit sequence can be achieved through the following steps B1 to B3:
B1,将第一比特序列进行扩频,得到第三比特序列。B1, spread the first bit sequence to obtain the third bit sequence.
例如,可以将第一比特序列用长度为L的Delta函数δL(n)进行扩频,形成序列可以理解为上述第三比特序列,指克罗内克积(Kronecker product)运算。其中,L为大于0的整数,可以等于第一比特序列的长度,也可以不等于第一比特序列的长度,这里不做具体限定。For example, the first bit sequence can be spread using a delta function δ L (n) of length L to form a sequence It can be understood as the above third bit sequence, Refers to the Kronecker product operation. Wherein, L is an integer greater than 0, which may be equal to the length of the first bit sequence, or may not be equal to the length of the first bit sequence, and is not specifically limited here.
其中,δL(n)为:
Among them, δ L (n) is:
B2,根据第三比特序列确定脉冲序列。B2, determine the pulse sequence based on the third bit sequence.
例如,可以将第三比特序列中的1映射为正脉冲,-1映射为负脉冲,0映射为空脉冲(即没有脉冲)。For example, a 1 in the third bit sequence can be mapped as a positive pulse, -1 as a negative pulse, and 0 as a null pulse (ie, no pulse).
B3,根据脉冲序列确定信号。B3, determine the signal based on the pulse sequence.
示例性的,该信号包括T个分片,其中,该T个分片中第一分片包括R个脉冲序列,该R个脉冲序列包括上述B2生成的脉冲序列,T为大于0的整数,R为大于0的整数。Exemplarily, the signal includes T slices, wherein the first slice among the T slices includes R pulse sequences, and the R pulse sequences include the pulse sequences generated by the above-mentioned B2, and T is an integer greater than 0, R is an integer greater than 0.
可选的,该T个分片可以沉默区间(也叫做gaps)进行封装,以T等于2为例,信号包括两个分片,每个分片两侧均有一个沉默区间,如图6所示。Optionally, the T fragments can be encapsulated in silent intervals (also called gaps). Taking T equal to 2 as an example, the signal includes two fragments, and there is a silent interval on both sides of each fragment, as shown in Figure 6. Show.
可以理解的,该信号中包括的其他脉冲序列的生成方式可以与上述脉冲序列的生成方式相同,这里不再重复说明。It can be understood that the generation method of other pulse sequences included in the signal can be the same as the generation method of the above pulse sequence, and the description will not be repeated here.
S503,第二设备确定第一比特序列。S503. The second device determines the first bit sequence.
其中,第二设备生成第一比特序列的方式与第一设备生成第一比特序列的方式相同,具体可以参阅S501的相关描述,重复之处不再赘述。The method in which the second device generates the first bit sequence is the same as the method in which the first device generates the first bit sequence. For details, please refer to the relevant description of S501, and repeated details will not be repeated.
需要说明的是,本申请实施例并不限定S503与S501-S502之间的执行顺序,S503可以在S501之前执行,也可以在S501和S502之间执行,也可以在S502之后执行,S503还可以与S501或者S502同时执行。 It should be noted that the embodiment of the present application does not limit the execution order between S503 and S501-S502. S503 can be executed before S501, between S501 and S502, or after S502. S503 can also be executed. Executed simultaneously with S501 or S502.
S504,第二设备根据第一比特序列确定信号的到达时间。S504. The second device determines the arrival time of the signal according to the first bit sequence.
其中,第二设备根据第一比特序列确定信号的到达时间的过程可以参阅前文术语介绍2)中的相关描述。For the process by which the second device determines the arrival time of the signal based on the first bit sequence, please refer to the relevant description in 2) of the above terminology introduction.
本申请实施例中通过在随机序列(即上述第二比特序列)中插入预设值(即上述N个预设元素),可以增大随机序列的自相关函数的主瓣的幅值和最大旁瓣的幅值的比值。例如,如图7所示,以长度为128的随机序列为例,本申请实施例通过在长度为128的随机序列中插入128个0,得到的长度为256的比特序列(图7中的序列1)的自相关函数的主瓣幅值与最大旁瓣幅值的比值,相比于长度为128的随机序列(图7中的序列2)提高了至少2分贝(dB),即使相比于长度为256的随机序列(图7中的序列3),本申请实施例也有明显的增益。In the embodiment of the present application, by inserting a preset value (ie, the above-mentioned N preset elements) into the random sequence (ie, the above-mentioned second bit sequence), the amplitude of the main lobe and the maximum side of the autocorrelation function of the random sequence can be increased. The ratio of the lobe amplitudes. For example, as shown in Figure 7, taking a random sequence with a length of 128 as an example, the embodiment of the present application inserts 128 zeros into the random sequence with a length of 128 to obtain a bit sequence with a length of 256 (the sequence in Figure 7 1) The ratio of the main lobe amplitude and the maximum side lobe amplitude of the autocorrelation function is improved by at least 2 decibels (dB) compared to a random sequence of length 128 (sequence 2 in Figure 7), even if compared to For a random sequence with a length of 256 (sequence 3 in Figure 7), the embodiment of the present application also has obvious gains.
通过增大随机序列的自相关函数的主瓣的幅值和最大旁瓣的幅值的比值,可以降低噪声或者多径传输等对信号估计的影响,进而可以提升估计信号到达时间的准确性。By increasing the ratio of the main lobe amplitude and the maximum side lobe amplitude of the autocorrelation function of the random sequence, the impact of noise or multipath transmission on signal estimation can be reduced, thereby improving the accuracy of estimating the signal arrival time.
以上介绍了一种提升估计信号到达时间的准确性的方法,下面介绍另一种提升估计信号到达时间的准确性的方法。本申请图8所述方法中比特序列1相当于发明内容中第三方面和第四方面所涉及的第一比特序列。比特序列2相当于发明内容中第三方面和第四方面所涉及的第二比特序列。比特序列3相当于发明内容中第三方面和第四方面所涉及的第三比特序列。比特序列4相当于发明内容中第三方面和第四方面所涉及的第四比特序列。比特序列5相当于发明内容中第三方面和第四方面所涉及的第五比特序列。The above introduces a method to improve the accuracy of estimating signal arrival time. The following introduces another method to improve the accuracy of estimating signal arrival time. Bit sequence 1 in the method described in Figure 8 of this application is equivalent to the first bit sequence involved in the third and fourth aspects of the invention. Bit sequence 2 corresponds to the second bit sequence involved in the third and fourth aspects of the invention. Bit sequence 3 corresponds to the third bit sequence involved in the third and fourth aspects of the invention. Bit sequence 4 corresponds to the fourth bit sequence involved in the third and fourth aspects of the invention. Bit sequence 5 corresponds to the fifth bit sequence involved in the third and fourth aspects of the invention.
参见图8,为本申请提供的一种通信方法的流程示意图。该方法包括:Refer to Figure 8, which is a schematic flow chart of a communication method provided by this application. The method includes:
S801,第一设备确定比特序列1。S801. The first device determines bit sequence 1.
其中,比特序列1可以通过如下方式得到:将比特序列3中的K个0替换成比特序列2中的K个元素。K为大于0的整数。可以理解的,K小于或等于比特序列3中0的个数。Among them, bit sequence 1 can be obtained by replacing K zeros in bit sequence 3 with K elements in bit sequence 2. K is an integer greater than 0. It can be understood that K is less than or equal to the number of 0s in bit sequence 3.
该比特序列2为根据第一密钥和初始值确定的。其中,比特序列2的确定过程可以参阅图5所述方法中第二比特序列的确定过程,这里不再重复说明。比特序列3可以是一个完美序列。The bit sequence 2 is determined based on the first key and the initial value. For the determination process of bit sequence 2, please refer to the determination process of the second bit sequence in the method described in Figure 5, and the description will not be repeated here. Bit sequence 3 can be a perfect sequence.
第一设备和第二设备对比特序列3中被替换的0的个数和/或位置的理解是一致。具体的,比特序列3中被替换的0的个数和/或位置可以协议规定的,也可以是第一设备和第二设备预先协商的,或者,也可以是第一设备和第二设备通过相同的方式确定的。The first device and the second device have a consistent understanding of the number and/or position of replaced 0s in bit sequence 3. Specifically, the number and/or position of the replaced 0s in bit sequence 3 may be specified in the protocol, or may be pre-negotiated by the first device and the second device, or may be determined by the first device and the second device. determined in the same way.
一种可能的实现方式中,比特序列3可以通过如下方式确定:第一设备可以在序列集合中确定一个序列(下面称为第一序列),比特序列3可以为第一序列或者第一序列的等效序列,其中,序列集合包括一个或多个序列,且一个或多个序列均为完美序列。具体的,第一设备可以根据比特序列2的长度在序列集合中确定第一序列。In a possible implementation, bit sequence 3 can be determined in the following way: the first device can determine a sequence (hereinafter referred to as the first sequence) in the sequence set, and bit sequence 3 can be the first sequence or the first sequence. Equivalent sequences, where the sequence set includes one or more sequences, and one or more sequences are perfect sequences. Specifically, the first device may determine the first sequence in the sequence set according to the length of bit sequence 2.
比特序列3为对第一序列进行如下操作中的一项或多项后得到的等效序列:循环移位处理、或者逆序处理、或者取反处理、或者d倍抽样处理,d为大于1的整数。其中,d和第一序列的长度的最大公约数可以为1。Bit sequence 3 is an equivalent sequence obtained by performing one or more of the following operations on the first sequence: cyclic shift processing, reverse order processing, negation processing, or d times sampling processing, where d is greater than 1 integer. Among them, the greatest common divisor of d and the length of the first sequence can be 1.
其中,对完美序列进行d倍抽样处理,可以通过如下C1~C2实现:Among them, d times sampling processing of the perfect sequence can be achieved through the following C1 ~ C2:
C1,确定比特序列4,比特序列4包括d个第一序列。C1, determine the bit sequence 4, which includes d first sequences.
例如,可以将第一序列重复d次,得到比特序列4。For example, the first sequence can be repeated d times to obtain bit sequence 4.
C2,将比特序列4每d个元素抽取一个元素。C2, extract one element for every d elements of bit sequence 4.
其中,将抽取的元素组成一个比特序列,比特序列为对第一序列进行d倍抽样处理后 得到的等效序列。Among them, the extracted elements are composed into a bit sequence, and the bit sequence is the first sequence after d times sampling processing. The equivalent sequence obtained.
由于第一序列的等效序列有多种,因此第一设备和第二设备采用相同的等效序列有助于提升第二设备估计信号到达时间。一种可能的实现方式中,第一设备和第二设备可以根据比特序列2中至少一个元素确定第一序列的等效序列。例如,若该至少一个元素的取值为第一值,第一设备和第二设备可以使用第一序列的第一等效序列,若该至少一个元素的取值为第二值,第一设备和第二设备可以使用第一序列的第二等效序列。Since there are multiple equivalent sequences of the first sequence, using the same equivalent sequence by the first device and the second device helps improve the estimated signal arrival time of the second device. In a possible implementation, the first device and the second device may determine an equivalent sequence of the first sequence based on at least one element in the bit sequence 2 . For example, if the value of the at least one element is the first value, the first device and the second device can use the first equivalent sequence of the first sequence; if the value of the at least one element is the second value, the first device and the second device may use a second equivalent sequence of the first sequence.
通过该方式,一方面可以提升第二设备估计信号到达时间的准确性,另一方面还可以避免不可信设备获知第一设备和第二设备所采用的等效序列,提升信号传输的安全性。Through this method, on the one hand, the accuracy of the second device's estimated signal arrival time can be improved, and on the other hand, it can also prevent the untrusted device from learning the equivalent sequence used by the first device and the second device, thereby improving the security of signal transmission.
下面对序列集合进行举例说明。上述序列集合可以包括表1中的一个或多个完美序列,应理解,表1仅是一种示例性说明,并不限定本申请实施例所使用的完美序列。因此,上述序列还可以包括表1中未示出的完美序列。The following is an example of a sequence collection. The above sequence set may include one or more perfect sequences in Table 1. It should be understood that Table 1 is only an illustrative description and does not limit the perfect sequences used in the embodiments of this application. Therefore, the above sequence may also include perfect sequences not shown in Table 1.
表1


Table 1


S802,第一设备输出比特序列1。S802. The first device outputs bit sequence 1.
其中,第一设备输出比特序列1的实现方式,可以参阅S502中第一设备输出第一比特序列的实现方式,这里不再重复描述。For the implementation of the first device outputting the bit sequence 1, please refer to the implementation of the first device outputting the first bit sequence in S502, and the description will not be repeated here.
S803,第二设备确定比特序列1。S803. The second device determines bit sequence 1.
其中,第二设备生成比特序列1的方式与第一设备生成比特序列1的方式相同,具体可以参阅S801的相关描述,重复之处不再赘述。The way in which the second device generates the bit sequence 1 is the same as the way in which the first device generates the bit sequence 1. For details, please refer to the relevant description of S801, and repeated details will not be repeated.
需要说明的是,本申请实施例并不限定S803与S801-S802之间的执行顺序,S803可以在S801之前执行,也可以在S801和S802之间执行,也可以在S802之后执行,S803还可以与S801或者S802同时执行。 It should be noted that the embodiment of the present application does not limit the execution order between S803 and S801-S802. S803 can be executed before S801, between S801 and S802, or after S802. S803 can also be executed. Executed simultaneously with S801 or S802.
S804,第二设备根据比特序列1确定信号的到达时间。S804. The second device determines the arrival time of the signal based on bit sequence 1.
其中,第二设备根据比特序列1确定信号的到达时间的过程可以参阅前文术语介绍2)中的相关描述。For the process by which the second device determines the arrival time of the signal based on the bit sequence 1, please refer to the relevant description in the above terminology introduction 2).
本申请实施例中通过将完美序列(即比特序列3)中的K个0替换成随机序列(即比特序列2)的K个元素,可以增大随机序列的自相关函数的主瓣的幅值和最大旁瓣的幅值的比值,从而可以降低噪声或者多径传输等对信号估计的影响,进而可以提升估计信号到达时间的准确性。In the embodiment of the present application, by replacing K zeros in the perfect sequence (i.e., bit sequence 3) with K elements of the random sequence (i.e., bit sequence 2), the amplitude of the main lobe of the autocorrelation function of the random sequence can be increased. and the maximum side lobe amplitude, thereby reducing the impact of noise or multipath transmission on signal estimation, thereby improving the accuracy of estimating signal arrival time.
基于与方法实施例的同一发明构思,本申请实施例提供一种通信装置,该通信装置的结构可以如图9所示,包括通信模块902和处理模块901。Based on the same inventive concept as the method embodiment, the embodiment of the present application provides a communication device. The structure of the communication device can be shown in Figure 9 and includes a communication module 902 and a processing module 901.
在一种实施方式中,通信装置具体可以用于实现图5的实施例中第一设备执行的方法,该装置可以是第一设备本身,也可以是第一设备中的芯片或芯片组或芯片中用于执行相关方法功能的一部分。其中,处理模块901,用于确定第一比特序列,所述第一比特序列通过将第三比特序列的K个值为0的元素替换为第二比特序列中的K个元素而生成,所述第二比特序列为根据第一密钥和初始值确定的,所述第一比特序列的长度与所述第三比特序列的长度相同,所述K为大于0的整数;通信模块902,用于输出所述第一比特序列。In one implementation, the communication device can be used to implement the method performed by the first device in the embodiment of FIG. 5 . The device can be the first device itself, or it can be a chip or chipset or chip in the first device. part of the function used to perform related methods. Wherein, the processing module 901 is used to determine the first bit sequence, the first bit sequence is generated by replacing K elements with a value of 0 in the third bit sequence with K elements in the second bit sequence, the The second bit sequence is determined based on the first key and the initial value, the length of the first bit sequence is the same as the length of the third bit sequence, and the K is an integer greater than 0; communication module 902, used for Output the first bit sequence.
其中,第一比特序列、第二比特序列、以及N个预设元素等相关说明可以参阅图5所述方法中的相关描述,这里不再重复说明。For relevant descriptions of the first bit sequence, the second bit sequence, and the N preset elements, please refer to the relevant descriptions in the method described in Figure 5, and the description will not be repeated here.
可选的,处理模块901,还用于根据所述第一比特序列确定测距信号。通信模块902,具体用于:发送所述测距信号。Optionally, the processing module 901 is also configured to determine a ranging signal according to the first bit sequence. The communication module 902 is specifically used to send the ranging signal.
处理模块901,在根据所述第一比特序列确定测距信号时,可以具体用于:将所述第一比特序列进行扩频,得到第三比特序列;根据所述第三比特序列确定脉冲序列;根据所述脉冲序列确定所述测距信号。The processing module 901, when determining the ranging signal based on the first bit sequence, may be specifically configured to: spread the first bit sequence to obtain a third bit sequence; determine a pulse sequence based on the third bit sequence. ; Determine the ranging signal according to the pulse sequence.
在一种实施方式中,通信装置具体可以用于实现图8的实施例中第一设备执行的方法,该装置可以是第一设备本身,也可以是第一设备中的芯片或芯片组或芯片中用于执行相关方法功能的一部分。其中,处理模块901,用于确定第一比特序列,所述第一比特序列通过将第三比特序列的K个值为0的元素替换为第二比特序列中的K个元素而生成,所述第二比特序列为根据第一密钥和初始值确定的,所述第一比特序列的长度与所述第三比特序列的长度相同,所述K为大于0的整数;通信模块902,用于输出所述第一比特序列。In one implementation, the communication device may be used to implement the method performed by the first device in the embodiment of FIG. 8 . The device may be the first device itself, or may be a chip or chipset or chip in the first device. part of the function used to perform related methods. Wherein, the processing module 901 is used to determine the first bit sequence, the first bit sequence is generated by replacing K elements with a value of 0 in the third bit sequence with K elements in the second bit sequence, the The second bit sequence is determined based on the first key and the initial value, the length of the first bit sequence is the same as the length of the third bit sequence, and the K is an integer greater than 0; communication module 902, used for Output the first bit sequence.
其中,第一比特序列、第二比特序列、以及第三比特序列等相关说明可以参阅图8所述方法中的相关描述,这里不再重复说明。For relevant descriptions of the first bit sequence, the second bit sequence, and the third bit sequence, please refer to the relevant descriptions in the method described in FIG. 8 , and the description will not be repeated here.
处理模块901,还可以用于:在序列集合中确定第一序列,所述第三比特序列为所述第一序列或者所述第一序列的等效序列,所述序列集合包括一个或多个序列,且所述一个或多个序列均为完美序列。The processing module 901 may also be configured to: determine a first sequence in a sequence set, the third bit sequence being the first sequence or an equivalent sequence of the first sequence, the sequence set including one or more sequence, and the one or more sequences are perfect sequences.
处理模块901,在序列集合中确定第一序列时,具体用于:根据所述第二比特序列的长度在所述序列集合中确定所述第一序列。The processing module 901 is specifically configured to determine the first sequence in the sequence set according to the length of the second bit sequence when determining the first sequence in the sequence set.
处理模块901,还用于:根据所述第二比特序列中至少一个比特的取值确定所述序列的第一等效序列,所述第三比特序列为所述第一等效序列。The processing module 901 is further configured to determine a first equivalent sequence of the sequence according to the value of at least one bit in the second bit sequence, and the third bit sequence is the first equivalent sequence.
处理模块901,还用于:根据所述第一比特序列生成测距信号。通信模块902,具体用于:发送所述测距信号。The processing module 901 is also configured to generate a ranging signal according to the first bit sequence. The communication module 902 is specifically used to send the ranging signal.
处理模块901,在根据所述第一比特序列确定测距信号时,具体用于:将所述第一比 特序列进行扩频,得到第四比特序列;根据所述第四比特序列确定脉冲序列;根据所述脉冲序列确定所述测距信号。The processing module 901, when determining the ranging signal according to the first bit sequence, is specifically configured to: convert the first ratio The special sequence is spread spectrum to obtain a fourth bit sequence; a pulse sequence is determined based on the fourth bit sequence; and the ranging signal is determined based on the pulse sequence.
可选的,通信装置具体可以用于实现图5的实施例或图8的实施例中第二设备执行的方法,该装置可以是第二设备本身,也可以是第二设备中的芯片或芯片组或芯片中用于执行相关方法功能的一部分。通信模块902可以用于执行第二设备的收发或者输入输出等动作,处理模块901用于执行除收发或者输入输出等以外的动作,例如确定第一比特序列、确定比特序列1等。具体可以参阅图5或图8所述方法,这里不再展开说明。Optionally, the communication device may be specifically used to implement the method performed by the second device in the embodiment of FIG. 5 or the embodiment of FIG. 8. The device may be the second device itself, or may be a chip or chip in the second device. A part of a group or chip that performs the function of the associated method. The communication module 902 can be used to perform actions such as transceiving or input and output of the second device, and the processing module 901 can be used to perform actions other than transceiving or input and output, such as determining the first bit sequence, determining bit sequence 1, etc. For details, please refer to the method described in Figure 5 or Figure 8 and will not be described here.
本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,另外,在本申请各个实施例中的各功能模块可以集成在一个处理器中,也可以是单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。可以理解的是,本申请实施例中各个模块的功能或者实现可以进一步参考方法实施例的相关描述。The division of modules in the embodiments of the present application is schematic and is only a logical function division. In actual implementation, there may be other division methods. In addition, each functional module in each embodiment of the present application may be integrated into one processing unit. In the device, it can exist physically alone, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software function modules. It can be understood that, for the functions or implementation of each module in the embodiments of this application, further reference can be made to the relevant descriptions of the method embodiments.
一种可能的方式中,通信装置可以如图10所示,该装置可以是通信设备或者通信设备中的芯片,其中该通信设备可以为上述实施例中的终端设备也可以是上述实施例中的网络设备。该装置包括处理器1001和通信接口1002,还可以包括存储器1003。其中,处理模块901可以为处理器1001。通信模块902可以为通信接口1002。In a possible way, the communication device may be as shown in Figure 10 . The device may be a communication device or a chip in the communication device. The communication device may be a terminal device in the above embodiment or may be a terminal device in the above embodiment. Internet equipment. The device includes a processor 1001 and a communication interface 1002, and may also include a memory 1003. Among them, the processing module 901 may be the processor 1001. The communication module 902 may be the communication interface 1002.
处理器1001,可以是一个CPU,或者为数字处理单元等等。通信接口1002可以是收发器、也可以为接口电路如收发电路等、也可以为收发芯片等等。该装置还包括:存储器1003,用于存储处理器1001执行的程序。存储器1003可以是非易失性存储器,比如硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD)等,还可以是易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM)。存储器1003是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其它介质,但不限于此。The processor 1001 may be a CPU, a digital processing unit, or the like. The communication interface 1002 may be a transceiver, an interface circuit such as a transceiver circuit, or a transceiver chip, or the like. The device also includes: a memory 1003 for storing programs executed by the processor 1001. The memory 1003 can be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), or a volatile memory (volatile memory), such as a random access memory (random access memory). -access memory, RAM). Memory 1003 is, but is not limited to, any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
处理器1001用于执行存储器1003存储的程序代码,具体用于执行上述处理模块901的动作,本申请在此不再赘述。通信接口1002具体用于执行上述通信模块902的动作,本申请在此不再赘述。The processor 1001 is used to execute the program code stored in the memory 1003, and is specifically used to execute the actions of the above-mentioned processing module 901, which will not be described again in this application. The communication interface 1002 is specifically used to perform the above-mentioned actions of the communication module 902, which will not be described again in this application.
本申请实施例中不限定上述通信接口1002、处理器1001以及存储器1003之间的具体连接介质。本申请实施例在图10中以存储器1003、处理器1001以及通信接口1002之间通过总线1004连接,总线在图10中以粗线表示,其它部件之间的连接方式,仅是进行示意性说明,并不引以为限。总线可以分为地址总线、数据总线、控制总线等。为便于表示,图10中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The specific connection medium between the above-mentioned communication interface 1002, processor 1001 and memory 1003 is not limited in the embodiment of the present application. In the embodiment of the present application, the memory 1003, the processor 1001 and the communication interface 1002 are connected through a bus 1004 in Figure 10. The bus is represented by a thick line in Figure 10. The connection methods between other components are only schematically explained. , is not limited. The bus can be divided into address bus, data bus, control bus, etc. For ease of presentation, only one thick line is used in Figure 10, but it does not mean that there is only one bus or one type of bus.
本发明实施例还提供了一种计算机可读存储介质,用于存储为执行上述处理器所需执行的计算机软件指令,其包含用于执行上述处理器所需执行的程序。Embodiments of the present invention also provide a computer-readable storage medium for storing computer software instructions required to execute the above processor, which includes programs required to execute the above processor.
本申请实施例还提供一种通信系统,包括用于实现图5的实施例中第一设备功能的通信装置和用于实现图5的实施例中第二设备功能的通信装置。An embodiment of the present application also provides a communication system, including a communication device for realizing the function of the first device in the embodiment of FIG. 5 and a communication device for realizing the function of the second device in the embodiment of FIG. 5 .
本申请实施例还提供一种通信系统,包括用于实现图8的实施例中第一设备功能的通信装置和用于实现图8的实施例中第二设备功能的通信装置。An embodiment of the present application also provides a communication system, including a communication device for realizing the function of the first device in the embodiment of FIG. 8 and a communication device for realizing the function of the second device in the embodiment of FIG. 8 .
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机 可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will understand that embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment that combines software and hardware aspects. Furthermore, the present application may employ one or more computers having computer usable program code embodied therein. It may be in the form of a computer program product implemented on a storage medium (including but not limited to disk storage, CD-ROM, optical storage, etc.).
本申请是参照根据本申请的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the present application. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing device produce a use A device for realizing the functions specified in one process or multiple processes of the flowchart and/or one block or multiple blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the instructions The device implements the functions specified in a process or processes of the flowchart and/or a block or blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device, causing a series of operating steps to be performed on the computer or other programmable device to produce computer-implemented processing, thereby executing on the computer or other programmable device. Instructions provide steps for implementing the functions specified in a process or processes of a flowchart diagram and/or a block or blocks of a block diagram.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。 Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. In this way, if these modifications and variations of the present application fall within the scope of the claims of the present application and equivalent technologies, the present application is also intended to include these modifications and variations.

Claims (24)

  1. 一种通信方法,其特征在于,所述方法包括:A communication method, characterized in that the method includes:
    确定第一比特序列,所述第一比特序列包括第二比特序列和N个预设元素,所述第二比特序列为根据第一密钥和初始值确定的,所述N为大于0的整数,所述N个预设元素的取值为预设值;Determine a first bit sequence, the first bit sequence includes a second bit sequence and N preset elements, the second bit sequence is determined based on the first key and the initial value, and N is an integer greater than 0 , the values of the N preset elements are preset values;
    输出所述第一比特序列。Output the first bit sequence.
  2. 如权利要求1所述的方法,其特征在于,所述预设值为0。The method of claim 1, wherein the preset value is 0.
  3. 如权利要求1所述的方法,其特征在于,所述预设值为1或-1。The method of claim 1, wherein the preset value is 1 or -1.
  4. 如权利要求2所述的方法,其特征在于,所述第一比特序列的长度为256,所述N等于128;The method of claim 2, wherein the length of the first bit sequence is 256, and the N is equal to 128;
    所述N个预设元素在所述第一比特序列中的位置索引分别为:[20 24 26 28 30 31 32 35 36 40 42 43 44 45 48 50 51 54 56 57 58 59 62 65 66 67 68 70 74 75 77 80 81 83 84 86 88 89 91 92 93 94 95 96 97 98 102 103 104 105 106 107 109 113 114 115 117 118 119 121 122 123 126 128 129 130 133 134 135 138 139 140 141 143 144 145 146 149 150 151 152 154 155 157 163 164 167 169 170 171 172 173 174 176 178 180 181 182 184 185 186 187 189 191 193 194 195 196 198 199 200 201 203 206 213 215 216 218 219 220 221 222 224 228 230 234 239 240]。The position indexes of the N preset elements in the first bit sequence are respectively: [20 24 26 28 30 31 32 35 36 40 42 43 44 45 48 50 51 54 56 57 58 59 62 65 66 67 68 70 74 75 77 80 81 83 84 86 88 89 91 92 93 94 95 96 97 98 102 103 104 105 106 107 109 113 114 115 117 118 119 121 122 123 126 128 129 130 133 134 135 138 139 140 141 143 144 145 146 149 150 151 152 154 155 157 163 164 167 169 170 171 172 173 174 176 178 180 181 182 184 185 186 187 189 191 193 194 195 196 1 98 199 200 201 203 206 213 215 216 218 219 220 221 222 224 228 230 234 239 240 ].
  5. 如权利要求2所述的方法,其特征在于,所述第一比特序列的长度为256,所述N等于128;The method of claim 2, wherein the length of the first bit sequence is 256, and the N is equal to 128;
    所述N个预设元素在所述第一比特序列中的位置索引分别为:[15 21 26 29 30 32 33 34 35 38 39 42 43 47 49 50 51 52 53 55 60 61 65 66 67 69 72 73 76 77 78 81 83 84 85 86 88 91 92 93 95 96 97 98 99 102 103 104 105 108 109 110 112 114 115 116 118 120 122 123 125 126 128 129 130 131 132 133 134 135 139 141 144 146 147 148 150 151 153 154 156 158 159 160 162 163 166 167 168 169 170 171 174 175 176 177 178 179 181 182 183 185 188 191 192 194 195 197 199 200 201 203 206 207 212 216 217 219 222 226 227 230 235 236 237 238 239 240]。The position indexes of the N preset elements in the first bit sequence are respectively: [15 21 26 29 30 32 33 34 35 38 39 42 43 47 49 50 51 52 53 55 60 61 65 66 67 69 72 73 76 77 78 81 83 84 85 86 88 91 92 93 95 96 97 98 99 102 103 104 105 108 109 110 112 114 115 116 118 120 122 123 125 126 12 8 129 130 131 132 133 134 135 139 141 144 146 147 148 150 151 153 154 156 158 159 160 162 163 166 167 168 169 170 171 174 175 176 177 178 179 181 182 183 185 188 191 192 194 195 197 1 99 200 201 203 206 207 212 216 217 219 222 226 227 230 235 236 237 238 239 240 ].
  6. 如权利要求2所述的方法,其特征在于,所述第一比特序列的长度为255,所述N等于127;The method of claim 2, wherein the length of the first bit sequence is 255, and the N is equal to 127;
    所述N个预设元素在所述第一比特序列中的位置索引分别为:[1 4 7 8 12 13 15 18 20 22 23 25 29 35 39 40 43 44 45 46 49 50 52 54 56 57 58 60 62 69 70 76 77 78 79 80 82 84 85 86 87 89 90 91 92 97 98 99 102 103 104 106 107 108 110 111 113 115 116 119 120 123 128 130 132 134 137 138 139 148 150 151 153 154 155 156 157 158 159 163 166 167 168 169 170 171 173 174 177 179 180 181 182 183 186 188 192 193  194 195 197 202 203 205 206 207 211 212 213 215 218 219 221 222 224 225 229 231 234 237 239 240 245 248 252 254 255]。The position indexes of the N preset elements in the first bit sequence are respectively: [1 4 7 8 12 13 15 18 20 22 23 25 29 35 39 40 43 44 45 46 49 50 52 54 56 57 58 60 62 69 70 76 77 78 79 80 82 84 85 86 87 89 90 91 92 97 98 99 102 103 104 106 107 108 110 111 113 115 116 119 120 123 128 1 30 132 134 137 138 139 148 150 151 153 154 155 156 157 158 159 163 166 167 168 169 170 171 173 174 177 179 180 181 182 183 186 188 192 193 194 195 197 202 203 205 206 207 211 212 213 215 218 219 221 222 224 225 229 231 234 237 239 240 245 248 252 254 255].
  7. 如权利要求1-6任一项所述的方法,其特征在于,所述输出所述第一比特序列,包括:The method according to any one of claims 1 to 6, characterized in that said outputting said first bit sequence includes:
    根据所述第一比特序列确定测距信号;Determine a ranging signal according to the first bit sequence;
    发送所述测距信号。Send the ranging signal.
  8. 如权利要求7所述的方法,其特征在于,所述根据所述第一比特序列确定测距信号,包括:The method of claim 7, wherein determining the ranging signal according to the first bit sequence includes:
    将所述第一比特序列进行扩频,得到第三比特序列;Spread the first bit sequence to obtain a third bit sequence;
    根据所述第三比特序列确定脉冲序列;Determine a pulse sequence according to the third bit sequence;
    根据所述脉冲序列确定所述测距信号。The ranging signal is determined based on the pulse sequence.
  9. 一种通信方法,其特征在于,所述方法包括:A communication method, characterized in that the method includes:
    确定第一比特序列,所述第一比特序列通过将第三比特序列的K个值为0的元素替换为第二比特序列中的K个元素而生成,所述第二比特序列为根据第一密钥和初始值确定的,所述第一比特序列的长度与所述第三比特序列的长度相同,所述K为大于0的整数;Determine a first bit sequence, the first bit sequence is generated by replacing K elements with a value of 0 in the third bit sequence with K elements in a second bit sequence, the second bit sequence is generated according to the first bit sequence. The key and the initial value are determined, the length of the first bit sequence is the same as the length of the third bit sequence, and the K is an integer greater than 0;
    输出所述第一比特序列。Output the first bit sequence.
  10. 如权利要求9所述的方法,其特征在于,所述方法还包括:The method of claim 9, further comprising:
    在序列集合中确定第一序列,所述第三比特序列为所述第一序列或者所述第一序列的等效序列,所述序列集合包括一个或多个序列,且所述一个或多个序列均为完美序列。A first sequence is determined in a sequence set, the third bit sequence is the first sequence or an equivalent sequence of the first sequence, the sequence set includes one or more sequences, and the one or more The sequences are all perfect sequences.
  11. 如权利要求10所述的方法,其特征在于,所述在序列集合中确定第一序列,包括:The method of claim 10, wherein determining the first sequence in the sequence set includes:
    根据所述第二比特序列的长度在所述序列集合中确定所述第一序列。The first sequence is determined in the sequence set according to the length of the second bit sequence.
  12. 如权利要求11所述的方法,其特征在于,所述第三比特序列为对所述第一序列进行如下操作中的一项或多项后得到的等效序列:循环移位处理、或者逆序处理、或者取反处理、或者d倍抽样处理,所述d为大于1的整数;The method of claim 11, wherein the third bit sequence is an equivalent sequence obtained by performing one or more of the following operations on the first sequence: cyclic shift processing, or reverse sequence processing. Processing, or inversion processing, or d times sampling processing, where d is an integer greater than 1;
    其中,对所述第一序列进行d倍抽样处理,包括:Wherein, performing d times sampling processing on the first sequence includes:
    确定第四比特序列,所述第四比特序列包括d个所述第一序列;Determine a fourth bit sequence, the fourth bit sequence including d first sequences;
    将所述第四比特序列每d个元素抽取一个元素。One element is extracted for every d elements of the fourth bit sequence.
  13. 如权利要求12所述的方法,其特征在于,所述d和所述完美序列的长度的最大公约数为1。The method of claim 12, wherein the greatest common divisor of d and the length of the perfect sequence is 1.
  14. 如权利要求10-13任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 10-13, characterized in that the method further includes:
    根据所述第二比特序列中至少一个比特的取值确定所述序列的第一等效序列,所述第三比特序列为所述第一等效序列。The first equivalent sequence of the sequence is determined according to the value of at least one bit in the second bit sequence, and the third bit sequence is the first equivalent sequence.
  15. 如权利要求9-14任一项所述的方法,其特征在于,所述输出所述第一比特序列,包括:The method according to any one of claims 9-14, characterized in that said outputting said first bit sequence includes:
    根据所述第一比特序列生成测距信号;Generate a ranging signal according to the first bit sequence;
    发送所述测距信号。Send the ranging signal.
  16. 如权利要求15所述的方法,其特征在于,所述根据所述第一比特序列确定测距信号,包括:The method of claim 15, wherein determining the ranging signal according to the first bit sequence includes:
    将所述第一比特序列进行扩频,得到第四比特序列;Spread the first bit sequence to obtain a fourth bit sequence;
    根据所述第四比特序列确定脉冲序列; Determine a pulse sequence according to the fourth bit sequence;
    根据所述脉冲序列确定所述测距信号。The ranging signal is determined based on the pulse sequence.
  17. 一种通信方法,其特征在于,所述方法包括:A communication method, characterized in that the method includes:
    处理模块,用于确定第一比特序列,所述第一比特序列包括第二比特序列和N个预设元素,所述第二比特序列为根据第一密钥和初始值确定的,所述N为大于0的整数,所述N个预设元素的取值为预设值;Processing module, used to determine a first bit sequence, the first bit sequence includes a second bit sequence and N preset elements, the second bit sequence is determined based on the first key and the initial value, the N is an integer greater than 0, and the values of the N preset elements are preset values;
    通信模块,用于输出所述第一比特序列。A communication module, configured to output the first bit sequence.
  18. 一种通信装置,其特征在于,所述装置包括:A communication device, characterized in that the device includes:
    处理模块,用于确定第一比特序列,所述第一比特序列通过将第三比特序列的K个值为0的元素替换为第二比特序列中的K个元素而生成,所述第二比特序列为根据第一密钥和初始值确定的,所述第一比特序列的长度与所述第三比特序列的长度相同,所述K为大于0的整数;A processing module configured to determine a first bit sequence generated by replacing K elements of a third bit sequence with a value of 0 with K elements of a second bit sequence, the second bit sequence being The sequence is determined based on the first key and the initial value, the length of the first bit sequence is the same as the length of the third bit sequence, and the K is an integer greater than 0;
    通信模块,用于输出所述第一比特序列。A communication module, configured to output the first bit sequence.
  19. 一种通信装置,其特征在于,包括存储器以及处理器;A communication device, characterized by including a memory and a processor;
    所述存储器用于存储指令;The memory is used to store instructions;
    所述处理器用于执行所述指令,以实现如权利要求1-8中任一所述的方法。The processor is configured to execute the instructions to implement the method according to any one of claims 1-8.
  20. 一种通信装置,其特征在于,包括存储器以及处理器;A communication device, characterized by including a memory and a processor;
    所述存储器用于存储指令;The memory is used to store instructions;
    所述处理器用于执行所述指令,以实现如权利要求9-16中任一所述的方法。The processor is configured to execute the instructions to implement the method according to any one of claims 9-16.
  21. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质用于存储计算机指令,当所述计算机指令在计算机上运行时,使得所述计算机执行如权利要求1~16中任意一项所述的方法。A computer-readable storage medium, characterized in that the computer-readable storage medium is used to store computer instructions. When the computer instructions are run on a computer, the computer is caused to execute any one of claims 1 to 16. method described in the item.
  22. 一种通信系统,其特征在于,包括第一设备和第二设备,所述第一设备用于执行权利要求1-8中任一所述的方法。A communication system, characterized by comprising a first device and a second device, the first device being configured to perform the method according to any one of claims 1-8.
  23. 一种通信系统,其特征在于,包括第一设备和第二设备,所述第一设备用于执行权利要求9-16中任一所述的方法。A communication system, characterized by comprising a first device and a second device, the first device being configured to perform the method described in any one of claims 9-16.
  24. 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得计算机执行如权利要求1-8中任一所述的方法,或执行如权利要求9-16中任一所述的方法。 A computer program product containing instructions, characterized in that, when the computer program product is run on a computer, it causes the computer to perform the method as claimed in any one of claims 1-8, or to perform the method as claimed in claims 9-16 any of the methods described.
PCT/CN2023/091348 2022-04-29 2023-04-27 Communication method and apparatus WO2023208147A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210474931.XA CN117014931A (en) 2022-04-29 2022-04-29 Communication method and device
CN202210474931.X 2022-04-29

Publications (1)

Publication Number Publication Date
WO2023208147A1 true WO2023208147A1 (en) 2023-11-02

Family

ID=88517942

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/091348 WO2023208147A1 (en) 2022-04-29 2023-04-27 Communication method and apparatus

Country Status (2)

Country Link
CN (1) CN117014931A (en)
WO (1) WO2023208147A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1816755A (en) * 2003-07-07 2006-08-09 三菱电机株式会社 Generations of sequences of waveforms
CN105493586A (en) * 2013-07-31 2016-04-13 诺基亚技术有限公司 Method and apparatus for modulation and demodulation
US10924303B2 (en) * 2018-03-05 2021-02-16 Apple Inc. Secure training sequence symbol structure
CN113359121A (en) * 2020-03-02 2021-09-07 华为技术有限公司 Signal processing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1816755A (en) * 2003-07-07 2006-08-09 三菱电机株式会社 Generations of sequences of waveforms
CN105493586A (en) * 2013-07-31 2016-04-13 诺基亚技术有限公司 Method and apparatus for modulation and demodulation
US10924303B2 (en) * 2018-03-05 2021-02-16 Apple Inc. Secure training sequence symbol structure
CN113359121A (en) * 2020-03-02 2021-09-07 华为技术有限公司 Signal processing method and device

Also Published As

Publication number Publication date
CN117014931A (en) 2023-11-07

Similar Documents

Publication Publication Date Title
JP2020017947A (en) Ultrawide waveband secure ranging
KR20090106404A (en) Apparatus, methods and computer program products providing limited use of zadoff-chu sequences in pilot or preamble signals
CN106487494B (en) The synchronous method of the signal device synchronous with signal
US9088403B1 (en) Identification codewords for a rate-adapted version of a data stream
JP7209540B2 (en) Safe channel sounding
CN109936393B (en) Synchronization method and device suitable for extremely low receiving rate
WO2017114920A1 (en) Process for monovalent one-to-one extraction of keys from the propagation channel
WO2023208147A1 (en) Communication method and apparatus
US20070282932A1 (en) Bus inverting code generating apparatus and method of generating bus inverting code using the same
CN112929904B (en) Information transmission method and device, communication equipment and storage medium
US20230198703A1 (en) Wireless Communication Method and Apparatus
EP3025468A1 (en) Timing synchronization in an orthogonal frequency-division multiplexing (ofdm) system
WO2021047291A1 (en) Sequence generation method and device, and storage medium
US8693524B2 (en) Synchronization method for impulse system ultra-wideband
WO2023185855A1 (en) Communication method and apparatus
WO2021017632A1 (en) Signal transmission method and device, communication node, and storage medium
WO2023061311A1 (en) Method and apparatus for transmitting physical protocol data unit
WO2024066564A1 (en) Ultra-wideband-based sensing method and apparatus
WO2024045834A1 (en) Method for transmitting ranging signal in uwb and related device
US20220377803A1 (en) Method, Computer Program and Wireless Communication Device
WO2022099697A1 (en) Sequence sending method and apparatus
WO2024001063A1 (en) Signal transmission method, device and system
WO2023246579A1 (en) Signal synchronization method applied to ultra wideband system, and communication apparatus
CN112054942B (en) Random data packet generation method with any length for high bit width framing error code test
WO2023201890A1 (en) Signal transmission method and apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23795579

Country of ref document: EP

Kind code of ref document: A1