Communication method and apparatus

By adopting non-Grey code mapping rules design in the constellation diagram, the bit sequence randomness of adjacent modulated symbols is increased, and the problem of low communication security in the prior art is solved, and higher communication security is achieved.

WO2024227392A1PCT designated stage expired Publication Date: 2024-11-07HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/086583
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-05-04
Filing Date
2024-04-08
Publication Date
2024-11-07

AI Technical Summary

Technical Problem

The existing constellation mapping technology has a problem of low security in communication, because the Gray code mapping rules make the bit sequence of adjacent modulated symbols different, which is easy to be demodulated by eavesdroppers, resulting in insufficient communication security.

Method used

The non-Grey code mapping rules are used to design the constellation diagram, making the bit sequence Hamming distance of adjacent modulated symbols more random, increasing the difficulty of demodulation of eavesdroppers, and improving communication security through key encryption.

Benefits of technology

Improve the security of communication, reduce the risk of modulated symbols being leaked, and enhance the security of communication systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024086583_07112024_PF_FP_ABST
    Figure CN2024086583_07112024_PF_FP_ABST
Patent Text Reader

Abstract

The present application provides a communication method and apparatus. The method comprises: a first communication apparatus using a constellation diagram to modulate M bits to be sent, so as to obtain a first modulation symbol, and modulating N bits according to the constellation diagram, so as to obtain a second modulation symbol, wherein the values of a first bit sequence and a second bit sequence at a first position are different and a third bit sequence is the same as a fourth bit sequence, or the first bit sequence is the same as the second bit sequence and the values of the third bit sequence and the fourth bit sequence at a second position are different; the first bit sequence is a bit sequence corresponding to a real part of the first modulation symbol, the second bit sequence is a bit sequence corresponding to a real part of the second modulation symbol, the third bit sequence is a bit sequence corresponding to an imaginary part of the first modulation symbol, and the fourth bit sequence is a bit sequence corresponding to an imaginary part of the second modulation symbol; and the first modulation symbol and the second modulation symbol are symmetric along the horizontal or vertical axis of the constellation diagram. Thus, the randomness of bit sequences corresponding to two adjacent modulation symbols in a constellation diagram is increased, and the difficulty of illegitimately demodulating transmitted modulation symbols is increased, thereby improving the security of communication between a first communication apparatus and a second communication apparatus.
Need to check novelty before this filing date? Find Prior Art

Description

Communication method and device

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on May 4, 2023, with application number 202310503376.3 and application name “A Communication Method and Device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0003] The embodiments of the present application relate to the field of communication technology, and in particular to a communication method and apparatus. Background Art

[0004] Constellation mapping is a digital modulation technology. Constellation mapping can be implemented using a constellation diagram, which defines the mapping relationship between bits and modulation symbols. The constellation diagram can be used to map the bits to be transmitted into modulation symbols suitable for actual channel transmission. The constellation diagram can be understood as a set of modulation symbols. Each modulation symbol on the constellation diagram can be regarded as a constellation point (or simply "point"). Each modulation symbol corresponds to a bit sequence, and a bit sequence includes one or more bits. Under constellation mapping, the transmitter can use the constellation diagram to modulate the bit sequence, obtain the modulation symbol, and send the modulation symbol through the channel. The receiver can use the constellation diagram to demodulate the modulation symbol received through the channel to obtain the bit sequence.

[0005] Currently, constellations generally conform to the Gray code mapping rule. The Gray code mapping rule states that the Hamming distance between two adjacent modulation symbols in the constellation is 1. In other words, the bit sequences corresponding to the two adjacent modulation symbols differ in only one bit value, while the values ​​of the bits in all other positions are the same. The advantage of using this constellation modulation is that even if a demodulation error occurs at the receiving end, it generally only results in errors in a small number of bits, which helps ensure a low bit error rate at the receiving end. However, since the bit sequences corresponding to the two adjacent modulation symbols differ in only one bit value, the modulation symbols can be easily demodulated by eavesdroppers, reducing communication security.

[0006] Summary of the Invention

[0007] The embodiments of the present application provide a communication method and apparatus for improving the security of communications.

[0008] In a first aspect, embodiments of the present application provide a communication method that can be performed by a first communication device. The first communication device can be, for example, a terminal device, a software module in the terminal device, or a hardware module in the terminal device (such as a chip, specifically a baseband chip), a network device, a software module in the network device, or a hardware module in the network device (such as a chip). The method includes: modulating M bits according to a constellation diagram to obtain a first modulation symbol, and modulating N bits to obtain a second modulation symbol, where M and N are both positive integers; sending the first modulation symbol and the second modulation symbol to a second communication device; wherein the values ​​of the first bit sequence and the second bit sequence at the first position are different, and the third bit sequence and the fourth bit sequence are the same; or, the first bit sequence and the second bit sequence are the same, and the values ​​of the third bit sequence and the fourth bit sequence at the second position are different; wherein the first bit sequence is a bit sequence corresponding to the real part of the first modulation symbol, the second bit sequence is a bit sequence corresponding to the real part of the second modulation symbol, the third bit sequence is a bit sequence corresponding to the imaginary part of the first modulation symbol, and the fourth bit sequence is a bit sequence corresponding to the imaginary part of the second modulation symbol, the first position is the position of any bit in the first bit sequence or the second bit sequence, the second position is the position of any bit in the third bit sequence or the fourth bit sequence, and the first modulation symbol and the second modulation symbol are symmetrical along the horizontal axis or the vertical axis of the constellation diagram.

[0009] In an embodiment of the present application, the bit sequences corresponding to the two modulation symbols (e.g., the first modulation symbol and the second modulation symbol) are designed from modulation symbols symmetrical along the horizontal or vertical axis of the constellation diagram, rather than using Gray code mapping rules to design the constellation diagram. This increases the randomness of the Hamming distance between the bit sequences corresponding to two adjacent modulation symbols in the constellation diagram, making the arrangement of the bit sequences corresponding to two adjacent modulation symbols more random. This increases the difficulty for an eavesdropper to demodulate the modulation symbols modulated based on the constellation diagram, reduces the risk of leakage of the transmitted modulation symbols, and improves the security of communications.

[0010] In one possible embodiment, before sending the first modulation symbol and the second modulation symbol to the second communication device, the method also includes: encrypting the first modulation symbol according to the first key to obtain the encrypted first modulation symbol; and / or encrypting the second modulation symbol according to the second key to obtain the encrypted second modulation symbol.

[0011] In the above embodiment, the first communication device may encrypt the first modulation symbol and / or the second modulation symbol, further reducing the probability of illegal demodulation by an eavesdropper, which is conducive to improving the security of communication.

[0012] In one possible implementation, the first key and / or the second key are generated based on the first information, and the first information includes a third key; wherein the third key is a preconfigured or predefined key, or the third key is generated based on a fourth key, and the fourth key is a preconfigured or predefined key, or a key configured for the core network, and the core network configuration is, for example, an access and mobility management function (AMF) configuration in the core network.

[0013] In the above embodiment, a variety of ways to generate the first key and / or the second key are provided. Moreover, since the third key in the first information can be preconfigured or predefined, the first key generated based on the first information is relatively stable. Alternatively, the first communication device can generate the first key based on the first information including the third key, and the third key can be generated based on the fourth key. Since the fourth key is also preconfigured or predefined or received from the core network element, this also ensures the stability of the first key. In addition, the first key can be regarded as being obtained by calculating the fourth key twice, which increases the complexity of generating the first key and reduces the possibility of illegally generating the first key, that is, improving the security of the first key, thereby improving the security of the communication.

[0014] In a possible implementation, the third key is a key shared by the first communication device and the second communication device.

[0015] In the above embodiment, the first communication device and the second communication device both share the third key, which enables the first communication device and the second communication device to respectively generate consistent first keys, ensuring that the second communication device can smoothly decrypt the second modulation symbol, etc., thereby ensuring the reliability of communication between the first communication device and the second communication device.

[0016] In a possible implementation manner, the first information further includes information that has been sent by the first communication device to the second communication device, and / or information that has been received by the first communication device from the second communication device.

[0017] In the above embodiment, in addition to including the third key, the first information may also include information transmitted between the first communication device and the second communication device. Since there are some random deviations in the information transmitted between the first communication device and the second communication device, this reduces the possibility of an eavesdropper obtaining the same first information to generate a key, that is, reduces the possibility of illegally generating the first key and / or the second key, and is also conducive to improving the security of communication.

[0018] In one possible implementation, the method further includes: encrypting the first information according to a first encryption algorithm to obtain a fifth key; encrypting the fifth key according to a second encryption algorithm to obtain a sixth key; wherein the first key is part or all of the bits in the sixth key, or the first key is part or all of the bits in the seventh key, and the seventh key is determined based on the fifth key and the sixth key.

[0019] In the above embodiment, the first communication device can encrypt the first information twice to obtain the sixth key, increasing the complexity of generating the sixth key and thereby improving the security of the first key. Furthermore, the first key can be part or all of the bits of the sixth key or the seventh key, providing multiple possible forms of the first key.

[0020] In a possible implementation, the second key is part or all of the bits in the sixth key excluding the first key, or part or all of the bits in the seventh key excluding the first key.

[0021] In the above embodiment, some or all of the bits in the sixth key or the seventh key except the first key can be used as the second key, which is equivalent to the first communication device performing a calculation once to obtain a key for encrypting multiple modulation symbols, which is beneficial to reducing the number of times the first communication device calculates the key.

[0022] In one possible implementation, encrypting a first modulation symbol according to a first key to obtain an encrypted first modulation symbol includes: determining a translation length and / or direction angle of the first modulation symbol in a constellation diagram according to the first key; moving the first modulation symbol in the constellation diagram in a direction indicated by the direction angle by the translation length to obtain the encrypted first modulation symbol; or superimposing a phase of a third modulation symbol on the phase of the first modulation symbol to obtain the encrypted first modulation symbol, where the third modulation symbol is obtained by modulating the first key according to the constellation diagram.

[0023] In the above embodiment, two methods for encrypting the first modulation symbol are provided, enriching the methods for encrypting the first modulation symbol. Furthermore, because both the first communication device and the second communication device can generate a relatively stable first key based on the first information, this ensures that the second communication device can successfully decrypt the modulation symbol encrypted by the first communication device, thereby ensuring the reliability of communication between the first and second communication devices.

[0024] In a possible implementation, the translation length and direction angle satisfy the following relationship:

[0025] and or,

[0026] and

[0027] Wherein, ρ represents the translation length, and θ represents the direction angle.

[0028] In the above embodiment, the translation length and direction angle can meet the above conditions, thereby ensuring the encryption security of the first communication device.

[0029] In a second aspect, embodiments of the present application provide a communication method that can be performed by a second communication device. The second communication device can be, for example, a terminal device, a software module in a terminal device, or a hardware module in a terminal device (such as a chip, specifically a baseband chip), a network device, a software module in a network device, or a hardware module in a network device (such as a chip). In the embodiments of the present application, the second communication device is used as a receiving end or receiving device for illustration. The method includes: receiving a first modulation symbol and a second modulation symbol from a first communication device; demodulating the first modulation symbol according to a constellation diagram to obtain M bits, and demodulating the second modulation symbol to obtain N bits, where N and M are positive integers; wherein the first bit sequence and the second bit sequence have different values ​​at a first position, and the third bit sequence and the fourth bit sequence are the same; or, the first bit sequence and the second bit sequence are the same, and the third bit sequence and the fourth bit sequence have different values ​​at a second position; wherein the first bit sequence is a bit sequence corresponding to a real part of the first modulation symbol, the second bit sequence is a bit sequence corresponding to a real part of the second modulation symbol, the third bit sequence is a bit sequence corresponding to an imaginary part of the first modulation symbol, and the fourth bit sequence is a bit sequence corresponding to an imaginary part of the second modulation symbol, the first position is a position where any bit in the first bit sequence or the second bit sequence is located, the second position is a position where any bit in the third bit sequence or the fourth bit sequence is located, and the first modulation symbol and the second modulation symbol are symmetrical along a horizontal axis or a vertical axis of the constellation diagram.

[0030] In one possible embodiment, receiving a first modulation symbol and a second modulation symbol from a first communication device includes: receiving an encrypted first modulation symbol and an encrypted second modulation symbol from the first communication device; the method also includes: decrypting the encrypted first modulation symbol according to a first key to obtain a first modulation symbol; and / or decrypting the encrypted second modulation symbol according to a second key to obtain a second modulation symbol.

[0031] In one possible implementation, the first key and / or the second key are generated based on the first information, and the first information includes a third key; wherein the third key is a preconfigured or predefined key, or the third key is generated based on an eighth key, and the eighth key is a preconfigured or predefined key, or a key configured for the core network. Optionally, the eighth key is a key configured for the core network, such as an AMF in the core network.

[0032] In a possible implementation, the third key is a key shared by the first communication device and the second communication device.

[0033] In a possible implementation, the first information further includes information that the second communication device has sent to the first communication device, and / or information that the second communication device has received from the first communication device.

[0034] In one possible implementation, the method further includes: encrypting the first information according to a first encryption algorithm to obtain a fifth key; encrypting the fifth key according to a second encryption algorithm to obtain a sixth key, wherein the first key is part or all of the bits in the sixth key, or the first key is part or all of the bits in the seventh key, and the seventh key is determined based on the fifth key and the sixth key.

[0035] In a possible implementation manner, the second key is part or all of the bits in the sixth key excluding the first key, or part or all of the bits in the seventh key excluding the first key.

[0036] In one possible implementation, the encrypted first modulation symbol is decrypted according to the first key to obtain the first modulation symbol, including: determining the translation length and / or direction angle of the first modulation symbol in the constellation diagram according to the first key; moving the encrypted first modulation symbol in the constellation diagram by the translation length in the opposite direction indicated by the direction angle to obtain the first modulation symbol; or, subtracting the phase of the third modulation symbol from the phase of the encrypted first modulation symbol to obtain the first modulation symbol, wherein the third modulation symbol is obtained by modulating the first key according to the constellation diagram.

[0037] In a possible implementation, the translation length and direction angle satisfy the following relationship:

[0038] and or,

[0039] and

[0040] Wherein, ρ represents the translation length, and θ represents the direction angle.

[0041] In a third aspect, an embodiment of the present application provides a communication method that can be performed by a communication system. The communication system includes a first communication device and a second communication device. The implementation of the first communication device can refer to the content discussed above for the first communication device in the first aspect and the content discussed above for the second communication device in the second aspect, and will not be enumerated here. The method includes: the first aspect and any possible implementation method performed by the first communication device, and the second aspect and any possible implementation method performed by the second communication device.

[0042] In a fourth aspect, an embodiment of the present application provides a communication method that can be executed by a first communication device. The implementation of the first communication device can refer to the content of the implementation of the first communication device in the first aspect above, and will not be listed here. The method includes: modulating M bits according to a constellation diagram to obtain a first modulation symbol, where M is a positive integer, and sending the first modulation symbol to a second communication device, wherein the constellation diagram satisfies: the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the horizontal axis are the same, and the values ​​of the bits of the two bit sequences corresponding to the imaginary parts at the i-th position are different; and / or, the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram are different in the values ​​of the bits of the j-th position, and the two bit sequences corresponding to the imaginary parts are the same, and i and j are positive integers; or, the constellation diagram may satisfy the following conditions: the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the horizontal axis are different in the values ​​of the bits of the j-th position, and the two bit sequences corresponding to the imaginary parts are the same; and / or, the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram are the same, and the values ​​of the bits of the two bit sequences corresponding to the imaginary parts at the i-th position are different, and i and j are positive integers.

[0043] When the constellation diagram meets the above conditions, any two modulation symbols symmetrical along the horizontal axis or the vertical axis modulated by the first communication device using the constellation diagram also meet the above corresponding conditions. For example, the first modulation symbol and the second modulation symbol in the above first aspect meet the corresponding conditions met by the constellation diagram in the embodiment of the present application. The above first aspect can be regarded as two modulation symbols symmetrical along the horizontal axis or the vertical axis modulated by the first communication device, and an example is given to introduce the conditions met by the constellation diagram.

[0044] In the embodiment of the present application, by adopting the above-mentioned constellation diagram, the Hamming distance of the bit sequence corresponding to two adjacent modulation symbols in the constellation diagram is made more random, and the arrangement randomness of the bit sequence corresponding to two adjacent modulation symbols in the constellation diagram is increased. In this way, the difficulty for an eavesdropper to demodulate the modulation symbols modulated based on the above-mentioned constellation diagram is increased, the risk of the transmitted bits being leaked is reduced, and the security of communication is improved.

[0045] In a possible implementation, sending the first modulation symbol to the second communication device includes: encrypting the first modulation symbol according to a first key to obtain an encrypted first modulation symbol, and sending the encrypted first modulation symbol to the second communication device.

[0046] In one possible implementation, the first key is generated based on the first information, where the first information includes a third key, where the third key is a preconfigured or predefined key; or the second key is generated based on a fourth key, where the fourth key is a preconfigured or predefined key or is configured by the core network. Optionally, the core network is, for example, an AMF.

[0047] In a possible implementation, the third key is a key shared by the first communication device and the second communication device.

[0048] In a possible implementation, the first information further includes information that has been sent by the first communication device to the second communication device, and / or information that has been received by the first communication device from the second communication device.

[0049] In one possible implementation, the method further includes: encrypting the first information according to a first encryption algorithm to obtain a fifth key, and encrypting the fifth key according to a second encryption algorithm to obtain a sixth key, wherein the first key is part or all of the bits in the sixth key, or the first key is part or all of the bits in a seventh key, and the seventh key is determined based on the fifth key and the sixth key. The first encryption algorithm and the second encryption algorithm may be the same or different.

[0050] In one possible implementation, when the first key is a partial bit of the sixth key or the seventh key, the method further includes: modulating N bits according to a constellation diagram to obtain a second modulation symbol, where N is a positive integer; encrypting the second modulation symbol according to some or all bits of the sixth key except some bits of the first key, or according to some or all bits of the seventh key except some bits of the first key to obtain an encrypted second modulation symbol; and sending the encrypted second modulation symbol to the second communication device.

[0051] In one possible implementation, encrypting the first modulation symbol according to the first key to obtain the encrypted first modulation symbol includes: determining a translation length and / or direction angle of the first modulation symbol in a constellation diagram according to the first key, and shifting the first modulation symbol in the constellation diagram by the translation length in a direction indicated by the direction angle to obtain the encrypted first modulation symbol. Alternatively, the encrypted first modulation symbol is obtained by superimposing the phase of a third modulation symbol on the phase of the first modulation symbol, where the third modulation symbol is obtained by modulating the first key according to the constellation diagram.

[0052] In a possible implementation, the translation length and direction angle satisfy the following relationship:

[0053] and or,

[0054] and

[0055] Where ρ represents the translation length and θ represents the direction angle.

[0056] In a fifth aspect, an embodiment of the present application provides a communication method, which can be performed by a second communication device. The implementation of the second communication device can refer to the content discussed in the second aspect above. The method includes: receiving a first modulation symbol from a first communication device, and demodulating the first modulation symbol according to a constellation diagram to obtain M bits, where M is a positive integer, and the constellation diagram satisfies: the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the horizontal axis are the same, and the two bit sequences corresponding to the imaginary parts have different bit values ​​at the i-th position; and / or, the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram have different bit values ​​at the j-th position, and the two bit sequences corresponding to the imaginary parts are the same, i and j are positive integers; or, the constellation diagram may satisfy the following conditions: the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the horizontal axis have different bit values ​​at the j-th position, and the two bit sequences corresponding to the imaginary parts are the same; and / or, the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram are the same, and the two bit sequences corresponding to the imaginary parts have different bit values ​​at the i-th position, i and j are positive integers.

[0057] In a possible implementation, receiving a first modulation symbol from a first communication device includes: receiving an encrypted first modulation symbol from the first communication device; the method further includes: decrypting the encrypted first modulation symbol to obtain the first modulation symbol.

[0058] In one possible implementation, the first key is generated based on the first information, where the first information includes a third key, where the third key is a preconfigured or predefined key; or the second key is generated based on an eighth key, where the eighth key is a preconfigured or predefined key, or a key configured for the core network. Optionally, the core network is, for example, an AMF.

[0059] In a possible implementation, the third key is a key shared by the first communication device and the second communication device.

[0060] In a possible implementation, the first information further includes information that the second communication device has sent to the first communication device, and / or information that the second communication device has received from the first communication device.

[0061] In one possible implementation, the method further includes: encrypting the first information according to a first encryption algorithm to obtain a fifth key; encrypting the fifth key according to a second encryption algorithm to obtain a sixth key, wherein the first key is part or all of the bits in the sixth key, or the first key is part or all of the bits in the seventh key, and the seventh key is determined based on the fifth key and the sixth key.

[0062] In a possible embodiment, the method also includes: receiving an encrypted second modulation symbol; decrypting the encrypted second modulation symbol according to some bits of the sixth key except some bits of the first key, or according to some bits of the seventh key except some bits of the first key, to obtain a second modulation symbol; and demodulating the second modulation symbol according to a constellation diagram to obtain N bits, where N is a positive integer.

[0063] In one possible implementation, decrypting the encrypted modulation symbol according to the first key to obtain the first modulation symbol includes: determining the translation length and / or direction angle of the first modulation symbol in the constellation diagram according to the first key; moving the encrypted first modulation symbol in the constellation diagram by the translation length in the opposite direction indicated by the direction angle to obtain the first modulation symbol; or subtracting the phase of the third modulation symbol from the phase of the encrypted first modulation symbol to obtain the first modulation symbol, wherein the third modulation symbol is obtained by modulating the first key according to the constellation diagram.

[0064] In a possible implementation, the translation length and direction angle satisfy the following conditions:

[0065] and or,

[0066] and

[0067] Where ρ represents the translation length and θ represents the direction angle.

[0068] In a sixth aspect, an embodiment of the present application provides a communication method, which can be performed by a communication system, the communication system including a first communication device and a second communication device. The implementation of the first communication device can refer to the content discussed in the third aspect of the first communication device and the content of the second communication device in the fourth aspect, and are not listed here. The method includes: the third aspect and any possible implementation method performed by the first communication device, and the fourth aspect and any possible implementation method performed by the second communication device.

[0069] In a seventh aspect, an embodiment of the present application provides a communication method. The method can be executed by a communication system, which includes a first communication device and a second communication device. The implementation form of the first communication device can refer to the content discussed in the first aspect, and the implementation form of the second communication device can refer to the content discussed in the second aspect. The method includes: the first communication device modulates M bits according to the constellation diagram to obtain a first modulation symbol; encrypts the first modulation symbol according to a first key to obtain an encrypted first modulation symbol, the first key is generated by the first communication device according to the first information, and the first information includes a third key; sends the encrypted first modulation symbol to the second communication device; the second communication device decrypts the encrypted first modulation symbol according to the first key to obtain the first modulation symbol, the first key is generated by the second communication device according to the first information, wherein the third key is a key shared by the first communication device and the second communication device; the second communication device demodulates the first modulation symbol according to the constellation diagram to obtain M bits.

[0070] Compared to a solution that does not encrypt the modulation symbols, the embodiments of the present application use the first key to encrypt the modulation symbols, thereby improving communication security. Furthermore, the first communication device and the second communication device both share a third key and can both generate a first key based on the third key. This allows both the first communication device and the second communication device to generate a relatively stable first key, allowing the second communication device to successfully decrypt the encrypted first modulation symbols, thereby ensuring the reliability of communication between the first and second communication devices.

[0071] In a possible implementation, the third key is a preconfigured or predefined key, or the third key is generated by the first communication device according to the fourth key, and the fourth key is a preconfigured or predefined key, or a key configured by the core network.

[0072] In the above embodiment, several methods are provided for the first communication device to obtain the second key.

[0073] In a possible implementation, the third key is a preconfigured or predefined key, or the third key is generated by the second communication device according to the eighth key, and the eighth key is a preconfigured or predefined key, or a key configured by the core network.

[0074] In the above embodiment, several methods are provided for the second communication device to obtain the third key.

[0075] In one possible implementation, the fourth key and the eighth key may be the same or different. For example, the fourth key is a preconfigured or predefined key, and the eighth key is received from a core network element; or the fourth key is configured by the core network, and the eighth key is a preconfigured or predefined key.

[0076] In a possible implementation manner, the first information further includes information that has been sent by the first communication device to the second communication device, and / or information that has been received by the first communication device from the second communication device.

[0077] In one possible implementation, the method further includes: the first communication device or the second communication device encrypts the first information according to a first encryption algorithm to obtain a fifth key; and encrypts the fifth key according to a second encryption algorithm to obtain a sixth key, wherein the first key is part or all of the bits in the sixth key, or the first key is part or all of the bits in the seventh key, and the seventh key is determined based on the fifth key and the sixth key.

[0078] In a possible implementation, the constellation diagram satisfies: the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the horizontal axis are identical, and the two bit sequences corresponding to the imaginary parts have different bit values ​​at the i-th position; and / or, the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram have different bit values ​​at the j-th position, and the two bit sequences corresponding to the imaginary parts are identical, and i and j are positive integers; or, the constellation diagram may satisfy the following conditions: the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the horizontal axis have different bit values ​​at the j-th position, and the two bit sequences corresponding to the imaginary parts are identical; and / or, the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram are identical, and the two bit sequences corresponding to the imaginary parts have different bit values ​​at the i-th position, and i and j are positive integers.

[0079] In one possible implementation, the first communication device encrypts the first modulation symbol according to the first key to obtain the encrypted first modulation symbol, including: determining the translation length and / or direction angle of the first modulation symbol in the constellation diagram according to the first key; moving the first modulation symbol in the direction indicated by the direction angle in the constellation diagram by the translation length to obtain the encrypted first modulation symbol; or superimposing the phase of the third modulation symbol on the phase of the first modulation symbol to obtain the encrypted first modulation symbol, where the third modulation symbol is obtained by modulating the first key according to the constellation diagram.

[0080] In a possible implementation, the translation length and the direction angle satisfy the following conditions:

[0081] and or,

[0082] and

[0083] Wherein, ρ represents the translation length, and θ represents the direction angle.

[0084] In a possible embodiment, the method also includes: a second communication device receives an encrypted second modulation symbol; decrypts the encrypted second modulation symbol according to some bits of the sixth key except some bits of the first key, or according to some bits of the seventh key except some bits of the first key, to obtain a second modulation symbol; and demodulates the second modulation symbol according to a constellation diagram to obtain N bits, where N is a positive integer.

[0085] In one possible implementation, the second communication device decrypts the encrypted first modulation symbol according to the first key to obtain the first modulation symbol, including: the second communication device determines the translation length and / or direction angle of the first modulation symbol in the constellation diagram according to the first key; and moves the encrypted first modulation symbol in the constellation diagram by the translation length in the opposite direction indicated by the direction angle to obtain the first modulation symbol.

[0086] In one possible implementation, the second communication device decrypts the encrypted first modulation symbol according to the first key to obtain the first modulation symbol, including: the second communication device subtracts the phase of the third modulation symbol from the phase of the encrypted first modulation symbol to obtain the first modulation symbol, and the third modulation symbol is obtained by modulating the first key according to the constellation diagram.

[0087] In an eighth aspect, an embodiment of the present application provides a communication method, which can be performed by a first communication device. The implementation of the first communication device can refer to the content discussed in the first aspect above. The method includes: modulating M bits according to a constellation diagram to obtain a first modulation symbol; encrypting the first modulation symbol according to a first key to obtain an encrypted first modulation symbol, and sending the encrypted first modulation symbol to a second communication device, where the first key is generated based on first information, and the first information includes a third key, where the third key is a key shared by the first communication device and the second communication device.

[0088] The first communication device can also execute any possible implementation method executed by the first communication device in the seventh aspect above, which will not be listed one by one here.

[0089] In a ninth aspect, embodiments of the present application provide a communication method. This method can be performed by a second communication device, and the implementation of the second communication device can refer to the content discussed in the second aspect above. The method includes: receiving an encrypted first modulation symbol; decrypting the encrypted first modulation symbol according to a first key to obtain the first modulation symbol, wherein the first key is generated based on first information, the first information includes a third key, and the third key is a key shared by the first communication device and the second communication device.

[0090] The second communication device can also execute any possible implementation method executed by the second communication device in the eighth aspect above, which will not be listed one by one here.

[0091] In a tenth aspect, an embodiment of the present application provides a communication device, which may be the first communication device in the above-mentioned first aspect and any possible implementation, or has the function of a first communication device. The first communication device includes corresponding means (means) or modules for performing the above-mentioned first aspect or any optional implementation. For example, the communication device includes a processing module (sometimes also referred to as a processing unit), and a transceiver module (sometimes also referred to as a transceiver unit).

[0092] For example, the processing module is used to modulate M bits according to the constellation diagram to obtain a first modulation symbol, and to modulate N bits to obtain a second modulation symbol, where M and N are both positive integers; the sending module is used to send the first modulation symbol and the second modulation symbol to the second communication device; wherein the values ​​of the first bit sequence and the second bit sequence at the first position are different, and the third bit sequence and the fourth bit sequence are the same; or, the first bit sequence and the second bit sequence are the same, and the values ​​of the third bit sequence and the fourth bit sequence at the second position are different; wherein the first bit sequence is the bit sequence corresponding to the real part of the first modulation symbol, the second bit sequence is the bit sequence corresponding to the real part of the second modulation symbol, the third bit sequence is the bit sequence corresponding to the imaginary part of the first modulation symbol, and the fourth bit sequence is the bit sequence corresponding to the imaginary part of the second modulation symbol, the first position is the position of any bit in the first bit sequence or the second bit sequence, the second position is the position of any bit in the third bit sequence or the fourth bit sequence, and the first modulation symbol and the second modulation symbol are symmetrical along the horizontal axis or the vertical axis of the constellation diagram.

[0093] In an eleventh aspect, an embodiment of the present application provides a communication device, which may be the second communication device in the second aspect and any possible implementation, or has the function of a second communication device. The second communication device includes corresponding means (means) or modules for performing the second aspect or any optional implementation. For example, the communication device includes a processing module (sometimes also referred to as a processing unit), and a transceiver module (sometimes also referred to as a transceiver unit).

[0094] For example, the transceiver module is used to receive a first modulation symbol and a second modulation symbol from a first communication device; the processing module is used to demodulate the first modulation symbol according to the constellation diagram to obtain M bits, and to demodulate the second modulation symbol to obtain N bits, where N and M are positive integers; wherein the values ​​of the first bit sequence and the second bit sequence at the first position are different, and the third bit sequence and the fourth bit sequence are the same; or, the first bit sequence and the second bit sequence are the same, and the values ​​of the third bit sequence and the fourth bit sequence at the second position are different; wherein the first bit sequence is the bit sequence corresponding to the real part of the first modulation symbol, the second bit sequence is the bit sequence corresponding to the real part of the second modulation symbol, the third bit sequence is the bit sequence corresponding to the imaginary part of the first modulation symbol, and the fourth bit sequence is the bit sequence corresponding to the imaginary part of the second modulation symbol, the first position is the position of any bit in the first bit sequence or the second bit sequence, the second position is the position of any bit in the third bit sequence or the fourth bit sequence, and the first modulation symbol and the second modulation symbol are symmetrical along the horizontal axis or the vertical axis of the constellation diagram.

[0095] In a twelfth aspect, an embodiment of the present application provides a communication device, which may be the first communication device in the fourth aspect and any possible implementation manner, or has the function of a first communication device. The first communication device includes corresponding means (means) or modules for performing the fourth aspect or any optional implementation manner. For example, the communication device includes a processing module (sometimes also referred to as a processing unit), and a transceiver module (sometimes also referred to as a transceiver unit).

[0096] For example, the processing module is used to modulate M bits according to a constellation diagram to obtain a first modulation symbol, where M is a positive integer, and the transceiver module is used to send the first modulation symbol to the second communication device, wherein the constellation diagram satisfies: the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the horizontal axis are the same, and the values ​​of the bits of the two bit sequences corresponding to the imaginary parts at the i-th position are different; and / or, the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram are different in the values ​​of the bits of the j-th position, and the two bit sequences corresponding to the imaginary parts are the same, i and j are positive integers; or, the constellation diagram may satisfy the following conditions: the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the horizontal axis are different in the values ​​of the bits of the j-th position, and the two bit sequences corresponding to the imaginary parts are the same; and / or, the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram are the same, and the values ​​of the bits of the two bit sequences corresponding to the imaginary parts at the i-th position are different, i and j are positive integers.

[0097] In a thirteenth aspect, an embodiment of the present application provides a communication device, which may be the second communication device in the fifth aspect and any possible embodiment, or has the function of a second communication device. The second communication device includes corresponding means (means) or modules for performing the fifth aspect or any optional embodiment. For example, the communication device includes a processing module (sometimes also referred to as a processing unit), and a transceiver module (sometimes also referred to as a transceiver unit).

[0098] For example, the transceiver module is used to receive a first modulation symbol from a first communication device, and the processing module is used to demodulate the first modulation symbol according to a constellation diagram to obtain M bits, where M is a positive integer, and the constellation diagram satisfies: the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the horizontal axis are the same, and the values ​​of the bits of the two bit sequences corresponding to the imaginary parts at the i-th position are different; and / or, the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram are different in the values ​​of the bits of the j-th position, and the two bit sequences corresponding to the imaginary parts are the same, i and j are positive integers; or, the constellation diagram may satisfy the following conditions: the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the horizontal axis are different in the values ​​of the bits of the j-th position, and the two bit sequences corresponding to the imaginary parts are the same; and / or, the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram are the same, and the values ​​of the bits of the two bit sequences corresponding to the imaginary parts at the i-th position are different, i and j are positive integers.

[0099] In a fourteenth aspect, an embodiment of the present application provides a communication device, which may be the first communication device in the eighth aspect and any possible implementation manner, or has the function of a first communication device. The first communication device includes corresponding means (means) or modules for performing the eighth aspect or any optional implementation manner. For example, the communication device includes a processing module (sometimes also referred to as a processing unit), and a transceiver module (sometimes also referred to as a transceiver unit).

[0100] For example, the processing module is used to modulate M bits according to the constellation diagram to obtain a first modulation symbol; encrypt the first modulation symbol according to the first key to obtain an encrypted first modulation symbol; the transceiver module is used to send the encrypted first modulation symbol to the second communication device, the first key is generated based on the first information, and the first information includes a third key, wherein the third key is a key shared by the first communication device and the second communication device.

[0101] In a fifteenth aspect, an embodiment of the present application provides a communication device, which may be the second communication device in the ninth aspect and any possible implementation manner, or has the function of a second communication device. The second communication device includes corresponding means (means) or modules for performing the ninth aspect or any optional implementation manner. For example, the communication device includes a processing module (sometimes also referred to as a processing unit), and a transceiver module (sometimes also referred to as a transceiver unit).

[0102] For example, the transceiver module is used to receive the encrypted first modulation symbol; the processing module is used to decrypt the encrypted first modulation symbol according to the first key to obtain the first modulation symbol, wherein the first key is generated based on the first information, the first information includes the third key, and the third key is a key shared by the first communication device and the second communication device.

[0103] In the sixteenth aspect, an embodiment of the present application provides a communication device, comprising: a processor and a communication interface, wherein the communication interface is used to receive signals from other devices outside the communication device and transmit them to the processor or send signals from the processor to other devices outside the communication device, and the processor executes code instructions through a logic circuit to implement a communication method as described in any one of the first aspect, second aspect, fourth aspect, fifth aspect, eighth aspect and ninth aspect and any possible implementation method.

[0104] Optionally, the communication device further includes other components, such as an antenna, an input / output module, an interface, etc. These components may be hardware, software, or a combination of software and hardware.

[0105] In a seventeenth aspect, an embodiment of the present application provides a chip system, comprising: a processor and an interface. The processor is configured to call and execute instructions from the interface, and when the processor executes the instructions, implements the communication method described in any one of the first, second, third, or fourth aspects and any possible implementation methods.

[0106] In aspect 18, an embodiment of the present application provides a computer-readable storage medium, which is used to store computer programs or instructions. When the computer-readable storage medium is executed, it implements the communication method described in any one of the above aspects 1 to 9 and any possible implementation methods.

[0107] In the nineteenth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a computer, implements the communication method described in any one of the above-mentioned first to ninth aspects and any possible implementation manner.

[0108] Regarding the beneficial effects of the second to sixth aspects and the eighth to nineteenth aspects, reference may be made to the beneficial effects discussed in the first or seventh aspect and will not be listed here. BRIEF DESCRIPTION OF THE DRAWINGS

[0109] FIG1 is a schematic diagram of a constellation diagram that complies with Gray code mapping rules;

[0110] FIG2 is a schematic diagram of a scenario applicable to an embodiment of the present application;

[0111] FIG3 is a schematic diagram of a protocol stack of a first communication device and a second communication device provided in an embodiment of the present application;

[0112] FIG4 is a schematic diagram of a communication method provided in an embodiment of the present application;

[0113] FIG5 is a partial schematic diagram of a constellation diagram provided in an embodiment of the present application;

[0114] FIG6 is a schematic diagram of a constellation diagram provided in an embodiment of the present application;

[0115] FIG7 is a partial schematic diagram of another constellation diagram provided in an embodiment of the present application;

[0116] FIG8 is a schematic diagram of a process for encrypting a first modulation symbol provided by an embodiment of the present application;

[0117] FIG9 is a schematic diagram of another communication method provided in an embodiment of the present application;

[0118] FIG10 is a schematic diagram of a simulation test result provided by an embodiment of the present application;

[0119] FIG11 is a schematic diagram of another communication method provided in an embodiment of the present application;

[0120] FIG12 is a schematic structural diagram of a communication device provided in an embodiment of the present application;

[0121] FIG13 is a schematic structural diagram of another communication device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0122] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

[0123] To facilitate understanding by those skilled in the art, the terms involved in the embodiments of the present application are introduced below.

[0124] 1. A terminal device is a device with wireless transceiver capabilities, which can be a fixed device, mobile device, handheld device, wearable device, vehicle-mounted device, or a wireless device built into any of the above devices (e.g., a communication module or chip system, etc.). The terminal device is used to connect people, objects, machines, etc. and can be widely used in various scenarios, including but not limited to the following scenarios: cellular communications, device-to-device communications (D2D), vehicle-to-everything (V2X), machine-to-machine / machine-type communications (M2M / MTC), Internet of Things (IoT), virtual reality (VR), augmented reality (AR), industrial control, self-driving, remote medical, smart grid, smart furniture, smart office, smart wearable, smart transportation, smart city, drones, robots, and other scenarios. The terminal device may sometimes be referred to as user equipment (UE), terminal, access station, UE station, remote station, wireless communication device, or user device, etc.

[0125] 2. Network equipment includes, for example, access network devices (or referred to as access network equipment or access network elements), and / or core network devices (or referred to as core network equipment or core network elements).

[0126] The access network device is a device with wireless transceiver functions, which is used to communicate with the terminal device. The access network device includes but is not limited to the base station (BTS, Node B, eNodeB / eNB, or gNodeB / gNB) in the above-mentioned communication system, the transceiver point (t(R)ANs mission reception point, TRP), the base station of the subsequent evolution of 3GPP, the access node in the wireless fidelity (WiFi) system, the wireless relay node, the wireless backhaul node, the satellite or drone, etc. The base station can be: a macro base station, a micro base station, a pico base station, a small station, a relay station, etc. Multiple base stations can support the network of the same access technology mentioned above, or they can support the networks of different access technologies mentioned above. The base station can include one or more co-sited or non-co-sited transmission and reception points. The access network network element can also be a wireless controller, a centralized unit (CU), also called a convergence unit, and / or a distributed unit (DU) in the cloud radio access network (C(R)AN) scenario. The access network device can also be a server, a wearable device, or an in-vehicle device, etc. For example, the access network element in vehicle-to-everything (V2X) technology can be a roadside unit (RSU). The following description uses a base station as an example of an access network device. Multiple access network devices in a communication system can be base stations of the same type or different types. A base station can communicate with a terminal device or through a relay station. A terminal device can communicate with multiple base stations using different access technologies.

[0127] The access network device is used to implement at least one of the following functions: mobility management, data processing, session management, policy and billing. The names of the devices implementing core network functions in systems with different access technologies may vary, and this is not limited by the embodiments of the present application. Taking the 5G system as an example, the access network device includes: AMF, session management function (SMF), or user plane function (UPF).

[0128] 3. Device, which can be a single device, a software module or hardware module (such as a chip) within a single device, or a device that integrates multiple devices.

[0129] Gray code, proposed by Frank Gray of Bell Labs in 1940, is used to prevent errors in PCM (Pulse Code Modulation) signal transmission. Gray code is a sequence of numbers in which only one bit changes between two consecutive numbers, and the order of the Gray code is not unique.

[0130] 5. A constellation diagram that conforms to the Gray code mapping rules refers to a constellation diagram generated using the design rules of the Gray code. In this constellation diagram, the Hamming distance between two adjacent modulation symbols is 1. In other words, the bit sequences corresponding to the two adjacent modulation symbols have a different bit value at only one position, and the values ​​of the bits at other positions are the same. For example, the bit sequence corresponding to one modulation symbol is 1111, and the bit sequence corresponding to the other modulation symbol is 1110, and the one modulation symbol differs from the other modulation symbol only in the value of the bit at the fourth position.

[0131] The following describes a constellation diagram that conforms to the Gray code mapping rules, with reference to Figure 1. The constellation diagram corresponds to 16-QAM (quadrature amplitude modulation) modulation, and in this case, the constellation diagram can be referred to as a 16QAM constellation diagram.

[0132] As shown in Figure 1, the constellation diagram includes an X-axis (also called the horizontal axis) and a Y-axis (also called the vertical axis). The constellation diagram may also include 16 modulation symbols, including the 16 modulation symbols a1 to a16 shown in Figure 1. Each modulation symbol corresponds to a bit sequence, and a bit sequence includes four bits. As shown in Figure 1, the bit sequences corresponding to the 16 modulation symbols a1 to a16 are: 0001, 0101, 0100, 0000, 0010, 0110, 0111, 0011, 1110, 1010, 1011, 1111, 1101, 1001, 1000, and 1100.

[0133] As shown in FIG1 , the two bit sequences corresponding to any two adjacent modulation symbols differ in only one bit at one position. For example, constellation points a1 and a4 differ in the value of the bit at the fourth position only. For example, constellation points a4 and a3 differ in the value of the bit at the second position only.

[0134] The following describes the communication process between the transmitter and the receiver by taking the transmission bit sequence of 0001 and the constellation diagram shown in FIG1 as an example.

[0135] The transmitter can modulate the bit sequence using the constellation diagram shown in Figure 1 to obtain a modulation symbol (i.e., the modulation symbol shown as a1 in Figure 1), and send the modulation symbol to the receiver. The receiver demodulates the modulation symbol. Even if the receiver demodulates the modulation symbol incorrectly, it may demodulate the modulation symbol to 0000 or 0101. The demodulated bit sequence at the receiver differs from the correct bit sequence by only one bit position, that is, the bit error rate at the receiver is relatively low. During the process of the transmitter sending the modulation symbol to the receiver, an eavesdropper may eavesdrop on the modulation symbol sent by the transmitter. In this case, the eavesdropper can also demodulate the modulation symbol and obtain a bit sequence close to the bit sequence sent by the transmitter, which makes the communication less secure.

[0136] In view of this, an embodiment of the present application provides a communication method, in which the two bit sequences corresponding to the real parts of the first modulation symbol and the second modulation symbol corresponding to the horizontal axis or the vertical axis are the same, and the values ​​of the bits of the two bit sequences corresponding to the imaginary parts at the second position are different; and / or, the values ​​of the bits of the two bit sequences corresponding to the real parts at the first position are different, and the two bit sequences corresponding to the imaginary parts are the same, that is, the constellation diagram adopts a non-Gray code design. Since the method does not limit the Hamming distance of adjacent modulation symbols in the constellation diagram, the distribution of the bit sequences corresponding to two adjacent modulation symbols in the constellation diagram is relatively random, which increases the difficulty for an eavesdropper to demodulate the modulation symbols, and is conducive to improving the security of communication using the constellation diagram.

[0137] The method provided in the embodiment of the present application can be applied to the fifth generation (5G) mobile communication system, such as the new radio (NR) system, or to the future evolved mobile communication system or other similar communication systems. Specifically, it can be applicable to an air interface communication system or a sidelink communication system, such as a vehicle to everything (V2X) or device to device (D2D) communication system, etc. The embodiment of the present application does not specifically limit this.

[0138] Please refer to Figure 2, which is a schematic diagram of a scenario applicable to an embodiment of the present application, or can also be regarded as a structural diagram of a communication system. As shown in Figure 2, the scenario includes a first communication device and a second communication device communicating with each other.

[0139] The first communication device can send a signal to the second communication device (indicated by an arrow pointing to the second communication device in FIG2 ). In this case, the first communication device can be regarded as a transmitting end or a transmitting device, and the second communication device can be regarded as a receiving end or a receiving device. Of course, the second communication device can also send a signal to the first communication device (indicated by an arrow pointing to the first communication device in FIG2 ). In this case,

[0140] The second communication device may be regarded as a transmitting end or a transmitting device, and the first communication device may be regarded as a receiving end or a receiving device.

[0141] For example, the first communication device is a terminal device, or a software module or hardware module (such as a chip, specifically a baseband chip) in the terminal device, and the second communication device is a network device, a software module or hardware module (such as a chip, specifically a baseband chip) in the network device, etc. Or, for example, the first communication device is a network device, a software module or hardware module (such as a chip, specifically a baseband chip) in the network device, and the second communication device is a terminal device, or a software module or hardware module (such as a chip, specifically a baseband chip) in the terminal device. The implementation form of the network device and the terminal device can refer to the above. Or, for example, the first communication device is a terminal device, or a software module or hardware module (such as a chip, specifically a baseband chip) in the terminal device, and the second communication device is a terminal device, or a software module or hardware module (such as a chip, specifically a baseband chip) in the terminal device. The embodiments of the present application do not limit the specific implementation forms of the first communication device and the second communication device. The implementation form of the network device and the terminal device can refer to the above.

[0142] FIG2 is an example in which the number of the first communication device and the number of the second communication device are both 1, but in practice the number of the first communication device and the second communication device is not limited.

[0143] In addition, in the embodiments of the present application, for the number of nouns, unless otherwise specified, it means "singular noun or plural noun", that is, "one or more". "At least one" means one or more, and "plural" means two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. For example, A / B means: A or B. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c means: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, c can be single or multiple.

[0144] Please refer to Figure 3, which is a schematic diagram of the protocol stacks of the first communication device and the second communication device provided in an embodiment of the present application. As shown in Figure 3, the protocol stacks of the first communication device and the second communication device each include a radio resource control (RRC) layer, a packet data convergence protocol (PDCP) layer, a radio link control (RLC) layer, a medium access control (MAC) layer, and a physical (PHY) layer. In addition, the first communication device also includes a non-access stratum (NAS).

[0145] The protocol stacks of the first communication device and the second communication device can be adapted to each other, for example, the RRC layer of the first communication device is adapted (or corresponds) to the RRC layer of the second communication device, the PDCP layer of the first communication device is adapted to the PDCP layer of the second communication device, the RLC layer of the first communication device is adapted to the RLC layer of the second communication device, the MAC layer of the first communication device is adapted to the MAC layer of the second communication device, and the PHY layer of the first communication device is adapted to the PHY layer of the second communication device.

[0146] The following describes the method provided by the embodiments of the present application in conjunction with the accompanying drawings. In the accompanying drawings corresponding to the various embodiments of the present application, all steps represented by dotted lines are optional steps. The first communication device involved in the various embodiments of the present application is, for example, the first communication device involved in Figure 2, and the second communication device is, for example, the second communication device involved in Figure 2. The protocol stacks of the first communication device and the second communication device can refer to the schematic diagram of the protocol stack in Figure 3 above. In the various embodiments of the present application, the first communication device is used as the transmitting end and the second communication device is used as the receiving end for example.

[0147] Please refer to Figure 4, which is a schematic diagram of a communication method provided in an embodiment of the present application.

[0148] S401: A first communication device modulates M bits using a constellation diagram to obtain a first modulation symbol, where M is a positive integer.

[0149] The M bits may be bits to be sent by the first communication device, and the M bits may be considered a bit sequence, a bit stream, or a portion of bits in a bit stream. Exemplarily, the first communication device may group the bits in the bit stream to obtain at least one group of bits. Each group of bits in the at least one group of bits includes M bits. In this case, the M bits in S401 may be a group of bits in the at least one group of bits.

[0150] Optionally, before executing S401, the first communication device may perform channel coding on the first original bit sequence. The first original bit sequence refers to bits to be sent and belonging to the business flow. Channel coding is, for example, adding a check bit sequence. For example, the first communication device may determine a first check bit sequence corresponding to the first original bit sequence, and the first communication device uses the first original bit sequence and the first check bit sequence as M bits. The first original bit sequence is used to indicate the business data corresponding to the business flow, and the first check bit sequence is used to check the original bit sequence. The number of bits of the first check bit sequence may be specified by the protocol, or determined by negotiation between the first communication device and the second communication device.

[0151] The constellation diagram may include multiple modulation symbols. Any modulation symbol in the constellation diagram corresponds to a bit sequence. The bit sequence includes, for example, m bits, where m is a positive integer and may be equal to M. The modulation order corresponding to the constellation diagram may also be 2 m Optionally, the number of modulation symbols in the constellation is Y=2 m Any modulation symbol in the constellation diagram may be a complex number, that is, any modulation symbol may include a real part and an imaginary part. The real part in any modulation symbol may correspond to a portion of the m bits corresponding to any modulation symbol, for example, the portion of the m bits may be m / 2 bits of the m bits, and the imaginary part in any modulation symbol may correspond to another portion of the m bits corresponding to any modulation symbol, for example, the other portion of the m bits may be 2 / m bits of the m bits.

[0152] The constellation diagram may be a constellation diagram corresponding to any modulation method, such as pulse amplitude modulation (PAM), QAM, or phase shift keying (PSK). PSK may include pulse PSK (QPSK). Taking the constellation diagram corresponding to the QAM method (also referred to as the QAM constellation diagram) as an example, different modulation orders correspond to different constellations. Different constellations may refer to constellations having different numbers of constellation points. For example, QAM constellations may be classified as 16QAM or 64QAM.

[0153] In a possible implementation manner, the constellation diagram may satisfy any first condition among the following A1 to A6: Any first condition among A1 to A6 may be regarded as a non-Gray code mapping rule.

[0154] A1. The two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the horizontal axis in the constellation diagram are identical, and the two bit sequences corresponding to the imaginary parts of any two modulation symbols symmetrical along the horizontal axis in the constellation diagram have different bit values ​​at the i-th position. The two bit sequences corresponding to the real parts of any two modulation symbols in the constellation diagram have the same total number of bits, and the two bit sequences corresponding to the imaginary parts have the same total number of bits.

[0155] The horizontal axis can be, for example, the X-axis, the I-axis, or the real-part axis, and can represent the in-phase component or the real part. Two modulation symbols symmetrical along the horizontal axis can also be described as two modulation symbols corresponding along the horizontal axis. The vertical axis can be, for example, the Y-axis, the Q-axis, or the imaginary-part axis. The vertical axis can represent the quadrature component or the imaginary part. Two modulation symbols symmetrical along the vertical axis can also be described as two modulation symbols corresponding along the vertical axis.

[0156] To simplify the description, the two bit sequences corresponding to the real parts of two modulation symbols symmetrical along the horizontal axis are referred to as the first group of bit sequences, and the two bit sequences corresponding to the imaginary parts of any two modulation symbols symmetrical along the horizontal axis are referred to as the second group of bit sequences.

[0157] The fact that the two bit sequences corresponding to the real parts of any two modulation symbols symmetric along the horizontal axis are identical can be understood as meaning that the value of the bit at the j-th position of the first group of bit sequences is identical, where j can be any positive integer from 1 to k. k can be the total number of bits (or the number of bits) in any bit sequence in the first group of bit sequences.

[0158] The second group of bit sequences has different values ​​for the bits at the i-th position, where i can be any positive integer from 1 to r, and r is the total number of bits in a bit sequence in the second group of bit sequences. The values ​​of r and k can be the same or different, and the sum of k and r is equal to m. For example, the values ​​of k and r can both be m / 2.

[0159] Under the first condition shown in A1, the two bit sequences corresponding to the real parts of the two modulation symbols symmetrical along the vertical axis in the constellation diagram (hereinafter referred to as the third group of bit sequences) are the same, and the two bit sequences corresponding to the imaginary parts of the two modulation symbols symmetrical along the vertical axis in the constellation diagram (hereinafter referred to as the fourth group of bit sequences) have different values ​​for the bits at the i-th position. Alternatively, the values ​​at the j-th position of the third group of bit sequences may be different, while the fourth group of bit sequences are the same. This embodiment of the application does not specifically limit the conditions satisfied by the two modulation symbols symmetrical along the vertical axis in the constellation diagram under the first condition shown in A1. The contents of j and i can refer to the above.

[0160] For example, please refer to Figure 5, which provides a partial schematic diagram of a constellation diagram for an embodiment of the present application. Each modulation symbol in Figure 5 corresponds to four bits, the first two bits of each modulation symbol correspond to the real part, and the last two bits of the modulation symbol correspond to the imaginary part. The constellation diagram in Figure 5 includes modulation symbols a1 and a2. As shown in Figure 5, modulation symbol a1 and modulation symbol a2 are symmetrical (or corresponding) along the horizontal axis.

[0161] As shown in Figure 5, the bit sequence corresponding to the real part of the modulation symbol a1 (i.e., 00) is the same as the bit sequence corresponding to the real part of the modulation symbol a2 (i.e., 00), and the bit sequence corresponding to the imaginary part of the modulation symbol a1 (i.e., 01) and the bit sequence corresponding to the imaginary part of the modulation symbol a2 (i.e., 10) have different bit values ​​at the first position, and also different bit values ​​at the second position.

[0162] A2. The two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram (i.e., the third group of bit sequences) have different bit values ​​at the j-th position, and the two bit sequences corresponding to the imaginary parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram (i.e., the fourth group of bit sequences) are the same.

[0163] The contents of any two modulation symbols symmetrical along the vertical axis in the constellation diagram, the two bit sequences corresponding to the real parts, and the two bit sequences corresponding to the imaginary parts can refer to the contents in the previous text.

[0164] Under the first condition shown in A2, the bit sequences corresponding to the real parts of the two modulation symbols symmetrical along the horizontal axis in the constellation diagram (i.e., the first group of bit sequences) are the same, or. The bit sequences corresponding to the imaginary parts of the two modulation symbols symmetrical along the horizontal axis in the constellation diagram (i.e., the second group of bit sequences) have different values ​​at the i-th position. Alternatively, the values ​​of the first group of bit sequences at the j-th position are different, and the second group of bit sequences are the same. This embodiment of the application does not specifically limit the conditions satisfied by the two modulation symbols symmetrical along the horizontal axis in the constellation diagram under the first condition shown in A2.

[0165] For example, referring to Figure 5 , the constellation diagram further includes a modulation symbol a3. The modulation symbol a1 and the modulation symbol a3 are symmetrical along the vertical axis.

[0166] As shown in Figure 5, the bit sequence corresponding to the real part of the modulation symbol a1 (i.e., 00) and the bit sequence corresponding to the real part of the modulation symbol a3 (i.e., 11) are different in the bit at the first position, and different in the bit at the second position, and the bit sequence corresponding to the imaginary part of the modulation symbol a1 (i.e., 01) is the same as the bit sequence corresponding to the imaginary part of the modulation symbol a3 (i.e., 01).

[0167] A3. The two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the horizontal axis in the constellation diagram (i.e., the first group of bit sequences) are identical, the two bit sequences corresponding to the imaginary parts of any two modulation symbols symmetrical along the horizontal axis in the constellation diagram (i.e., the second group of bit sequences) have different values ​​for the bits at corresponding positions, the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram (i.e., the third group of bit sequences) have different values ​​for the bits at corresponding positions, and the two bit sequences corresponding to the imaginary parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram (i.e., the fourth group of bit sequences) have the same values ​​for the bits at corresponding positions.

[0168] The meanings of any two modulation symbols symmetrical along the horizontal axis, two modulation symbols symmetrical along the vertical axis, and any two bit sequences at corresponding positions can be referred to the previous content.

[0169] For example, please refer to Figure 6, which provides a schematic diagram of a constellation diagram for an embodiment of the present application. As shown in Figure 6, the constellation diagram includes 16 modulation symbols, shown as a1 to a16, where each modulation symbol corresponds to four bits, the first two bits of each modulation symbol correspond to the real part, and the last two bits of each modulation symbol correspond to the imaginary part. As shown in Figure 6, modulation symbol a1 is symmetrical with modulation symbol a8 along the horizontal axis, and modulation symbol a1 is symmetrical with modulation symbol a14 along the vertical axis. Modulation symbol a2 is symmetrical with modulation symbol a7 along the horizontal axis, and modulation symbol a2 is symmetrical with modulation symbol a13 along the vertical axis. Modulation symbol a3 is symmetrical with modulation symbol a6 along the horizontal axis, and modulation symbol a3 is symmetrical with modulation symbol a16 along the vertical axis. Modulation symbol a4 is symmetrical with modulation symbol a5 along the horizontal axis, and modulation symbol a4 is symmetrical with modulation symbol a15 along the vertical axis. Modulation symbol a5 is symmetrical with modulation symbol a10 along the vertical axis. Modulation symbol a6 is symmetrical with modulation symbol a9 along the vertical axis. Modulation symbol a7 is symmetrical with modulation symbol a12 along the vertical axis. Modulation symbol a8 is symmetrical with modulation symbol a11 along the vertical axis. Modulation symbol a9 is symmetrical to modulation symbol a16 along the horizontal axis. Modulation symbol a10 is symmetrical to modulation symbol a15 along the horizontal axis. Modulation symbol a11 is symmetrical to modulation symbol a14 along the horizontal axis. Modulation symbol a12 is symmetrical to modulation symbol a13 along the horizontal axis.

[0170] The bit sequence corresponding to the real part of modulation symbol a1 (i.e., 00) is the same as the bit sequence corresponding to the real part of modulation symbol a8 (i.e., 00). The bit sequence corresponding to the imaginary part of modulation symbol a1 (i.e., 01) is different from the bit sequence corresponding to the imaginary part of modulation symbol a8 (i.e., 10) in the first position and the second position. The bit sequence corresponding to the real part of modulation symbol a1 (i.e., 00) is different from the bit sequence corresponding to the real part of modulation symbol a14 (i.e., 11) in the first position and the second position. The bit sequence corresponding to the imaginary part of modulation symbol a1 (i.e., 01) is the same as the bit sequence corresponding to the imaginary part of modulation symbol a14 (i.e., 01). The other two modulation symbols symmetrical along the horizontal axis and the two modulation symbols corresponding along the vertical axis all meet the first condition shown in A3 above and are not listed here.

[0171] A4. The two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the horizontal axis in the constellation diagram have different bit values ​​at the j-th position, and the two bit sequences corresponding to the imaginary parts of any two modulation symbols symmetrical along the horizontal axis in the constellation diagram are the same.

[0172] Under the first condition shown in A4, the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram are identical, and the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram have different bit values ​​at the i-th position. Alternatively, the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram have the same bit value at the j-th position, and the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram are identical. This embodiment of the application does not specifically limit the conditions satisfied by the two modulation symbols symmetrical along the vertical axis in the constellation diagram under the first condition shown in A4.

[0173] For example, please refer to Figure 7, which provides a partial schematic diagram of a constellation diagram for an embodiment of the present application. Each modulation symbol in Figure 7 corresponds to eight bits, the first four bits of each modulation symbol correspond to the real part, and the last four bits of the modulation symbol correspond to the imaginary part. As shown in Figure 7, a1 and a2 are two modulation symbols corresponding to each other along the horizontal axis, and the bit sequence corresponding to the real part of the modulation symbol a1 (i.e., 1010) and the bit sequence corresponding to the real part of the modulation symbol a2 (i.e., 0101) have different values ​​for the bits at the first position, different values ​​for the bits at the second position, different values ​​for the bits at the third position, and different values ​​for the bits at the fourth position. The bit sequence corresponding to the imaginary part of the modulation symbol a1 (i.e., 1010) is the same as the bit sequence corresponding to the imaginary part of the modulation symbol a2 (i.e., 1010).

[0174] A5. The two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram (i.e., the third group of bit sequences) are the same, and the two bit sequences corresponding to the imaginary parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram (i.e., the fourth group of bit sequences) have different bits at the i-th position.

[0175] For example, referring to FIG7 , FIG7 also includes modulation symbol a3, which is symmetrical with modulation symbol a1 along the vertical axis. The bit sequence corresponding to the real part of modulation symbol a3 (i.e., 1010) is the same as the real part of modulation symbol a1 (i.e., 1010), and the bit sequence corresponding to the imaginary part of modulation symbol a3 (i.e., 0101) and the bit sequence corresponding to the imaginary part of modulation symbol a1 (i.e., 1010) have different bit values ​​at the first position, different bit values ​​at the second position, different bit values ​​at the third position, and different bit values ​​at the fourth position.

[0176] Under the first condition shown in A5, the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the horizontal axis in the constellation diagram are identical, and the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the horizontal axis in the constellation diagram have different bit values ​​at the i-th position. Alternatively, the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the horizontal axis in the constellation diagram have the same bit value at the j-th position, and the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the horizontal axis in the constellation diagram are identical. This embodiment of the application does not specifically limit the conditions satisfied by the two modulation symbols symmetrical along the horizontal axis in the constellation diagram under the first condition shown in A5.

[0177] A6. The two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the horizontal axis in the constellation diagram have different bit values ​​at the j-th position, and the two bit sequences corresponding to the imaginary parts of any two modulation symbols symmetrical along the horizontal axis in the constellation diagram are the same, and the two bit sequences corresponding to the real parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram (i.e., the third group of bit sequences) are the same, and the two bit sequences corresponding to the imaginary parts of any two modulation symbols symmetrical along the vertical axis in the constellation diagram (i.e., the fourth group of bit sequences) have different bits at the i-th position.

[0178] The constellation diagram may be determined by negotiation between the first communication device and the second communication device, or the protocol may be configured in the first communication device, or the first communication device may receive it from the second communication device. This embodiment of the present application does not limit this. After the first communication device determines the M bits to be sent, the M bits may be modulated (or mapped) through the constellation diagram to obtain a first modulation symbol. The first modulation symbol may be regarded as the modulation symbol corresponding to the M bits on the constellation diagram. In other words, the first modulation symbol may correspond to the M bits.

[0179] For example, taking M bits as 0001 and the constellation diagram as shown in FIG6 as an example, the first communication device may determine that the first modulation symbol is the modulation symbol shown by a1. For example, the real part of the modulation symbol shown by a1 is The real part is Then the first modulation symbol can be expressed as

[0180] In another possible solution (such as an embodiment corresponding to any one of the fourth to sixth aspects of the above invention), in this case, it is not optional for the constellation diagram to satisfy the first condition of any one of A1 to A6 above, that is, the constellation diagram must satisfy the first condition of any one of A1 to A6 above.

[0181] S402: The first communication device modulates N bits using a constellation diagram to obtain a second modulation symbol, where N is a positive integer.

[0182] In addition to modulating the above-mentioned M bits, the first communication device may also use a constellation diagram to modulate N bits to obtain a second modulation symbol. The method of modulating N bits can refer to the content of modulating M bits in the previous text and will not be repeated here. N is a positive integer, and N can be equal to M. N bits can be regarded as a bit sequence, a bit stream, or part of the bits in a bit stream. Optionally, the N bits and the M bits may belong to part of the same bit stream, or belong to different bit streams. Optionally, the first communication device may perform channel coding on the second original bit sequence to obtain N bits. In this case, the N bits include the second original bit sequence and a second check bit sequence for verifying the second original bit sequence. The relationship between the first modulation symbol and the second modulation symbol is explained below.

[0183] Case 1: The first modulation symbol and the second modulation symbol are symmetrical along the horizontal axis in the constellation diagram.

[0184] In the first case, the bit sequence corresponding to the real part of the first modulation symbol (hereinafter referred to as the first bit sequence) and the bit sequence corresponding to the real part of the second modulation symbol (hereinafter referred to as the second bit sequence) have different values ​​at the first position, and the bit sequence corresponding to the imaginary part of the first modulation symbol (hereinafter referred to as the third bit sequence) and the bit sequence corresponding to the imaginary part of the second modulation symbol (hereinafter referred to as the fourth bit sequence) are the same.

[0185] Alternatively, the first bit sequence is identical to the second bit sequence, and the third bit sequence and the fourth bit sequence have different values ​​at the second position. The first position is the position of any bit in the first bit sequence or the second bit sequence. The second position is the position of any bit in the third bit sequence or the fourth bit sequence.

[0186] Case 2: The first modulation symbol and the second modulation symbol are symmetrical along the vertical axis in the constellation diagram.

[0187] In case 2, the first bit sequence and the second bit sequence have different values ​​at the first position, and the third bit sequence and the fourth bit sequence have different values ​​at the second position. Alternatively, the first bit sequence and the second bit sequence are the same, and the third bit sequence and the fourth bit sequence have different values ​​at the second position.

[0188] When the constellation diagram satisfies any first condition among A1 to A6 above, if the first condition satisfied by the constellation diagram is different and the relationship between the first modulation symbol and the second modulation symbol is different, then the relationship between the bit sequences corresponding to the first modulation symbol and the second modulation symbol may also be different, as illustrated below.

[0189] B1. The constellation diagram satisfies the first condition shown in A1 above, and the first modulation symbol and the second modulation symbol are symmetrical along the horizontal axis. Then, the first bit sequence and the second bit sequence are the same, and the values ​​of the bits at the second position of the third bit sequence and the fourth bit sequence are different.

[0190] B2. The constellation diagram satisfies the first condition shown in A2 above, and the first modulation symbol and the second modulation symbol are symmetrical along the vertical axis. Then, the values ​​of the bits at the first position of the first bit sequence and the second bit sequence are different, and the third bit sequence and the fourth bit sequence are the same.

[0191] B3. The constellation diagram satisfies the first condition shown in A4 above, and the first modulation symbol and the second modulation symbol are symmetrical along the horizontal axis. The values ​​of the bits at the first position of the first bit sequence and the second bit sequence are different, and the third bit sequence and the fourth bit sequence are the same.

[0192] B4. The constellation diagram satisfies the first condition shown in A5 above, and the first modulation symbol and the second modulation symbol are symmetrical along the vertical axis. Then, the first bit sequence and the second bit sequence are the same, and the values ​​of the bits at the second position of the third bit sequence and the fourth bit sequence are different.

[0193] In the above cases B1 to B4, the first modulation symbol and the second modulation symbol can be regarded as an example of a constellation diagram satisfying the first condition.

[0194] The order in which the first communication device executes steps S401 and S402 can be arbitrary, for example, executing S401 first and then executing S402; or executing S402 first and then executing S401; or executing S401 and S402 at the same time, which is not limited in the embodiments of the present application.

[0195] S403: The first communication device processes the first modulation symbol to obtain a fourth modulation symbol. There are many ways for the first communication device to obtain the fourth modulation symbol, which are described below by example.

[0196] C1. Encrypt the first modulation symbol according to the first key to obtain an encrypted modulation symbol. In this case, the fourth modulation symbol is the encrypted first modulation symbol.

[0197] The first key may be a key preconfigured or predefined in the first communication device, for example, may be predefined in the first communication device by a protocol. Alternatively, the first key may be generated by the first communication device according to the first information.

[0198] The first information may include a third key. The third key may be a preconfigured or predefined key. Alternatively, the third key may be generated by the first communication device based on the third key.

[0199] For example, the third key may be obtained by encrypting the fourth key by the first communication device based on a third encryption algorithm. The number of bits (or digits) of the fourth key may be arbitrary, for example, the number of bits of the fourth key may be 512. The third encryption algorithm may be, for example, a secure hash algorithm (SHA), such as the SHA2-512 algorithm.

[0200] The fourth key may be preconfigured or predefined in the first communications device. For example, the fourth key may be preconfigured or predefined in a non-physical layer of the first communications device, where the non-physical layer includes, for example, a non-access stratum, a radio resource control layer, a packet data convergence protocol layer, a radio link control layer, or a media access control layer. Alternatively, the fourth key may be received by the first communications device from a core network element, such as an AMF.

[0201] Optionally, in addition to the third key, the first information may also include information that the first communication device has sent to the second communication device, and / or information that the first communication device has received from the second communication device. Since the information that the first communication device has sent to the second communication device and the information that the first communication device has received from the second communication device are generally cached in the physical layer of the first communication device, the information that the first communication device has sent to the second communication device and the information that the first communication device has received from the second communication device can be regarded as the physical layer parameter ρ. phy .

[0202] The information that the first communication device has sent to the second communication device may include, for example, one or more items such as a service stream, a reference signal (RS), and a random number. The reference signal may be, for example, a sounding reference signal (SRS), a demodulation reference signal (DMRS), or a channel state information reference signal. The information that the first communication device has received from the second communication device may include, for example, one or more items such as service data, a reference signal, and a random number. When the first information also includes a service stream, since the service stream can be framed and stored in the physical layer, the service stream in the first information may also be referred to as physical layer subframe information.

[0203] Optionally, when the first communication device is a terminal device and the second communication device is a network device, the fourth key is, for example, a third key used to generate and authenticate the first communication device during the process of the first communication device accessing (or registering) the second communication device or the core network. In this case, the third key can be represented as K gNB Authentication, for example, includes verifying the identity of the first communication device. In this case, the first communication device may be pre-configured or pre-defined with a fourth key, and the second communication device may receive the fourth key from a core network device (such as an AMF).

[0204] Alternatively, the first communication device is a network device and the second communication device is a terminal device. The fourth key is, for example, a third key used to generate and authenticate the second communication device during the process of the second communication device accessing (or registering) the first communication device or the core network. In this case, the first communication device may be preconfigured or predefined with the fourth key, and the second communication device receives the fourth key from a core network device (such as an AMF).

[0205] The following is an example of a process in which the first communication device generates a first key based on the first information.

[0206] Method 1: The first communication device encrypts the first information using a fourth encryption algorithm to obtain a first key. The fourth encryption algorithm may be, for example, the SHA algorithm, and may be the same as or different from the third encryption algorithm. The fourth encryption algorithm may be preconfigured or predefined, or may be determined by negotiation between the first communication device and the second communication device.

[0207] In this method, the first information only needs to be encrypted once to generate the first key, and the method of generating the first key is simple.

[0208] Method 2: The first communication device may encrypt the first information according to a first encryption algorithm to obtain a fifth key. The first communication device may encrypt the fifth key according to a second encryption algorithm to obtain a sixth key. The second encryption algorithm and the first encryption algorithm may be the same or different. Both the first encryption algorithm and the second encryption algorithm may be preconfigured or predefined, or may be determined by negotiation between the first communication device and the second communication device.

[0209] Exemplarily, the first communications device may generate the fifth key through key derivation. For example, the first communications device may derive the third key and the physical layer parameters in the first message to obtain an initial vector. The device then encrypts the initial vector and the physical layer subframe information in the first message according to the first encryption algorithm to obtain the fifth key. The fifth key may be considered a root key. For example, the total number of bits of the initial vector is 512. The first communications device may perform key expansion on the fifth key according to the second encryption algorithm to obtain the sixth key. The following describes possible forms of the first key under method two.

[0210] 1. The first key is all bits in the sixth key.

[0211] 2. The first key is part of the sixth key.

[0212] Exemplarily, the first communication device groups the sixth key to obtain multiple groups of keys, wherein the total number of bits of any two groups of keys may be the same. The first communication device may use one group of keys in the multiple groups of keys as the first key.

[0213] For example, the total number of bits of the sixth key is u1*n, where u1 is an integer greater than 1, n is a positive integer, * represents multiplication, and the n bits in the sixth key are the first key.

[0214] Optionally, when the first key is a key in a plurality of key groups, the other key groups in the plurality of key groups other than the first key can be used to encrypt other modulation symbols. For example, a key group in the plurality of key groups other than the first key (which can be considered an example of a second key) can be used to encrypt the second modulation symbol described above to obtain an encrypted second modulation symbol. In other words, some or all of the bits in the fifth key other than the first key can also be used to encrypt the second modulation symbol.

[0215] 3. The first key is all the bits in the seventh key.

[0216] The seventh key may be determined based on the fifth key and the sixth key. For example, the seventh key may be the result of permuting the fifth key and the sixth key. For example, if the fourth key is 00001111 and the fifth key is 010101, then the sixth key may be 00001111010101. Alternatively, the seventh key may be the result of encrypting the fifth key and the sixth key.

[0217] 4. The first key is a portion of the seventh key. The method for obtaining the seventh key can refer to the above content.

[0218] Exemplarily, the first communication device groups the seventh key to obtain multiple groups of keys, wherein the total number of bits of any two groups of keys may be the same. The first communication device may use one group of keys in the multiple groups of keys as the first key.

[0219] For example, the total number of bits of the seventh key is u2*n, u2 is an integer greater than 1, u2 and n are both positive integers, and the n bits of the seventh key are the first key.

[0220] Optionally, a key other than the first key in the plurality of key groups (which can be considered an example of a second key) can also be used to encrypt the second modulation symbol described above to obtain an encrypted second modulation symbol. In other words, some or all of the bits in the seventh key other than the first key can also be used to encrypt the second modulation symbol.

[0221] In the second embodiment, the first communication device encrypts the first information multiple times, thereby ensuring the security of the first key. In addition, the first communication device can obtain the key for encrypting multiple modulation symbols based on a single calculation, thereby reducing the number of key calculations.

[0222] The above describes the process of generating the first key. The following describes how the first communication device encrypts the first modulation symbol based on the first key. The encryption method for the first modulation symbol based on the first key may include the method shown in D1 or D2 below, which are described below respectively.

[0223] D1. The first communication device shifts the first modulation symbol based on the first key to obtain an encrypted modulation symbol.

[0224] D1-1, the first communication device can determine the translation length of the first modulation symbol in the constellation diagram according to the first key, and shift the first modulation symbol in the constellation diagram based on the translation length and direction angle, thereby obtaining an encrypted modulation symbol.

[0225] The direction angle indicates the direction and angle of shifting the first modulation symbol. For example, a direction angle of +30 degrees indicates a 30-degree shift in the clockwise direction of the constellation diagram, or a direction angle of -30 degrees indicates a 30-degree shift in the counterclockwise direction of the constellation diagram.

[0226] Exemplarily, the first communication device may move the first modulation symbol along the direction indicated by the direction angle by a set length and an angle indicated by the movement direction angle, thereby obtaining the encrypted first modulation symbol.

[0227] For example, a calculation formula for the translation length can refer to the following formula (1).

[0228] Where ρ represents the translation length, k ii represents the first key, and n represents the number of bits of the first key.

[0229] The above formula (1) is applicable when the modulation mode corresponding to the constellation diagram is QPSK.

[0230] Alternatively, a calculation formula for the translation length may refer to the following formula (2).

[0231] The above formula (2) is applicable when the modulation mode corresponding to the constellation diagram is QAM.

[0232] In the case of D1-1, the direction angle may be determined by negotiation between the first communication device and the second communication device. Alternatively, the direction angle may be preconfigured or predefined, for example, the direction angle may be (π / 4). Alternatively, the direction angle may be determined by the first communication device based on the translation length.

[0233] Exemplarily, the first communication device may be preconfigured or predefined with a relationship (such as a first relationship) between the translation length and the direction angle. After determining the translation length, the first communication device may determine the direction angle based on the translation length and the first relationship.

[0234] The first relationship is, for example, and Optionally, the first relationship further includes that when θ=π / 4, ρ>1. The first relationship may be applicable when the modulation mode corresponding to the constellation diagram is QPSK.

[0235] Alternatively, the first relationship is, for example, and Optionally, the first relationship also includes when θ=π / 4, The first relationship may be applicable when the modulation mode corresponding to the constellation diagram is QAM.

[0236] For example, please refer to Figure 8, which is a schematic diagram of a process for obtaining an encrypted first modulation symbol provided in an embodiment of the present application. In Figure 8, the direction of translating the first modulation symbol is counterclockwise along the constellation diagram. As shown in Figure 8, the first communication device determines that the translation length is ρ and the pre-configured direction angle is θ. Then, the first communication device can translate the first modulation symbol a1 in the counterclockwise direction of the constellation diagram according to the translation length ρ and the direction angle θ, thereby obtaining the encrypted first modulation symbol a2.

[0237] D1-2. The first communication device may determine the direction angle of the first modulation symbol in the constellation diagram according to the first key, and shift the first modulation symbol in the constellation diagram based on the direction angle and the shift length, thereby obtaining the encrypted first modulation symbol.

[0238] For example, the direction angle is the phase corresponding to the third modulation symbol. The third modulation symbol can be obtained by modulating the first key according to the constellation diagram, that is, the third modulation symbol can be understood as the modulation symbol corresponding to the first key.

[0239] In the case of D1-2, the translation length may be determined by negotiation between the first communication device and the second communication device, or may be preconfigured or predefined. For example, the translation length may be 2, or may be determined by the first communication device according to the direction angle.

[0240] For example, the first communication device may be preconfigured or predefined with a first relationship between a translation length and a direction angle. After determining the direction angle based on the first key, the first communication device may determine the translation length based on the direction angle and the first relationship. The content of the first relationship can refer to the content of the first relationship in D1-1 above.

[0241] D1-3. The first communication device can determine the translation length and direction angle of the first modulation symbol in the constellation diagram according to the first key, and shift the first modulation symbol in the constellation diagram based on the translation length and direction angle, thereby obtaining the encrypted first modulation symbol.

[0242] For details on determining the translation length based on the first key, refer to the contents discussed in D1-1 above. For details on determining the direction angle based on the first key, refer to the contents discussed in D1-2 above.

[0243] D2. The first communication device performs phase rotation on the first modulation symbol based on the first key to obtain an encrypted first modulation symbol.

[0244] Exemplarily, the first communication device may superimpose the phase of the third modulation symbol on the phase of the first modulation symbol to obtain the encrypted first modulation symbol. The meaning of the third modulation symbol can refer to the above content.

[0245] For example, a method for calculating the second modulation symbol is as follows: Formula (3).

[0246] Where angle(x) represents the phase of x, c 0-li represents the second modulation symbol, k li represents the first key, Represents the phase of the fifth modulation symbol.

[0247] When superimposing the phase of the first modulation symbol on the constellation diagram, the direction of the superimposed phase of the first modulation symbol may also be considered. For example, the direction of the superimposed phase of the first modulation symbol may be a counterclockwise or clockwise shift along the constellation diagram. The direction of the superimposed phase may be preconfigured or predefined in the first communication device, or may be determined by negotiation between the first communication device and the second communication device, and this is not limited in this embodiment of the present application.

[0248] C2. The first communication device may use the first modulation symbol as the fourth modulation symbol. In this case, it can be considered that the first communication device does not need to perform step S403, that is, step S403 is an optional step, which is indicated by a dotted line in FIG4 .

[0249] C3. The first communication device post-processes the first modulation symbol to obtain a post-processed modulation symbol. In this case, the fourth modulation symbol can be regarded as the post-processed first modulation symbol. Post-processing, for example, includes an inverse fast Fourier transform (IFFT) and / or adding a cyclic prefix (CP). IFFT is used to convert a signal represented in the frequency domain into a signal represented in the time domain. The encrypted first modulation symbol represented by a complex number can be regarded as a signal represented in the frequency domain. Adding a CP refers to adding a CP to a signal represented in a time series.

[0250] C4. The first communication device encrypts the first modulation symbol based on the first key, and performs post-processing on the encrypted first modulation symbol to obtain a fourth modulation symbol. The post-processing includes IFFT and / or CP.

[0251] The first communication device may obtain the fourth modulation symbol in various ways, which are not specifically limited in this embodiment of the present application. The manner in which the first communication device determines the fourth modulation symbol may be configured by a protocol, or may be determined by negotiation between the first communication device and the second communication device.

[0252] S404: The first communication device processes the second modulation symbol to obtain a fifth modulation symbol.

[0253] E1. The first communication device may encrypt the second modulation symbol based on the second key to obtain the encrypted second modulation symbol, and use the encrypted second modulation symbol as the fifth modulation symbol.

[0254] For example, the first communication device may determine the second key based on the first information, wherein the method for determining the second key may refer to the content of determining the first key in the foregoing text and will not be listed here.

[0255] Alternatively, the first communication device determines the first key and the second key based on the first information.

[0256] For example, if the first key is a portion of the bits of the sixth key or the seventh key, the second key may be a portion or all of the bits of the sixth key or the seventh key excluding the first key. In this way, the first communication device determines the first key and the second key based on the first information.

[0257] The manner in which the first communication device encrypts the second modulation symbol based on the second key may also refer to the content of encrypting the first modulation symbol based on the first key in the previous text, which will not be listed here.

[0258] E2. The first communication device directly determines the second modulation symbol as the fifth modulation symbol. In this case, it can be regarded that the first communication device does not need to perform step S404, that is, step S404 is an optional step, which is indicated by a dotted line in FIG4 .

[0259] E3. The first communication device post-processes the second modulation symbol to obtain a post-processed second modulation symbol, and uses the post-processed first modulation symbol as the fifth modulation symbol.

[0260] E4. The first communication device encrypts the second modulation symbol and performs post-processing on the encrypted second modulation symbol to obtain a fifth modulation symbol.

[0261] The order in which the first communication device executes steps S403 and S404 can be arbitrary, for example, executing S403 first and then executing S404; or executing S403 first and then executing S404; or executing S403 and S404 at the same time, which is not limited in the embodiments of the present application.

[0262] S405: The first communication device sends a fourth modulation symbol and a fifth modulation symbol to the second communication device. Correspondingly, the second communication device receives the fourth modulation symbol and the fifth modulation symbol from the first communication device.

[0263] The order of sending the fourth modulation symbol and the fifth modulation symbol can be arbitrary. For example, the first communication device first sends the fourth modulation symbol and then sends the fifth modulation symbol; or, the first communication device sends the fourth modulation symbol and the fifth modulation symbol at the same time; or, the first communication device first sends the fifth modulation symbol and then sends the fourth modulation symbol. The embodiments of the present application do not limit this.

[0264] When one of the first communication device and the second communication device is a terminal device and the other is a network device, the first communication device can send the fourth modulation symbol and the fifth modulation symbol to the second communication device via a channel air interface (such as a Uu port).

[0265] S406. The second communication device obtains the first modulation symbol according to the fourth modulation symbol.

[0266] The first communication device obtains the fourth modulation symbol in a different manner, and the second communication device obtains the first modulation symbol in a different manner, which are respectively introduced below.

[0267] If the first communication device determines the fourth modulation symbol using the method shown in C1 above, the second communication device may decrypt the fourth modulation symbol based on the first key to obtain the first modulation symbol.

[0268] The first key may be a key preconfigured or predefined in the second communication device, for example, predefined in the second communication device via a protocol. Alternatively, the first key may be generated by the second communication device based on the first information. The meaning of the first information is described above.

[0269] The third key may be a key preconfigured or predefined in the second communication device, or the third key may be generated by the first communication device based on the eighth key. The content of the eighth key may refer to the content of the fourth key described above, and the second communication device may refer to the content of the third key generated by the first communication device based on the fourth key based on the method of generating the third key based on the eighth key. The eighth key and the fourth key may be the same or different. The eighth key may be preconfigured or predefined in the non-physical layer of the second communication device, and the non-physical layer may include, for example, a radio resource control layer, a packet data convergence protocol layer, a radio link control layer, or a media access control layer. The method for the second communication device to obtain the eighth key may also refer to the method for the first communication device to obtain the content of the fourth key described above.

[0270] Optionally, the third key may be a key shared by the first communication device and the second communication device. In this case, the first communication device and the second communication device may determine that the other party has the third key, thereby ensuring that the first communication device and the second communication device each generate a consistent first key.

[0271] The first communication device encrypts the second modulation symbol in different ways, and the second communication device decrypts the second modulation symbol in different ways, which are introduced below respectively.

[0272] If the first communication device encrypts the first modulation symbol using the offset encryption method shown in D1 above, the second communication device can perform offset decryption on the second modulation symbol.

[0273] For example, based on the first key, a translation length of the first modulation symbol in the constellation diagram is determined, and based on the translation length and the direction angle, the fourth modulation symbol is translated in the constellation diagram to obtain the first modulation symbol. Shifting the second modulation symbol in the constellation diagram, for example, involves shifting the fourth modulation symbol in the constellation diagram in a direction opposite to the direction in which the first communication device translated the first modulation symbol. The determination by the second communication device of the direction to translate the first modulation symbol, or the direction opposite to the direction in which the first modulation symbol is translated, can be referred to above regarding the determination by the first communication device of the direction to translate the first modulation symbol, and is not further detailed here.

[0274] If the first communication device uses the phase rotation encryption method shown in D2 above to encrypt the first modulation symbol, then the second communication device can perform phase rotation decryption on the fourth modulation symbol, for example, based on the first key, perform phase rotation on the fourth modulation symbol to obtain the first modulation symbol.

[0275] Exemplarily, the first communications device may subtract the phase of the third modulation symbol from the phase of the fourth modulation symbol to obtain the first modulation symbol. Phase rotation of the fourth modulation symbol may be performed, for example, by subtracting the phase of the third modulation symbol along the direction in the constellation diagram in which the first communications device superimposes the phase of the first modulation symbol. The second communications device may determine the direction in which the phase of the superimposed first modulation symbol is determined by reference to the preceding description of the first communications device determining the direction in which the phase of the superimposed first modulation symbol is determined, and is not further detailed here.

[0276] If the first communication device determines the fourth modulation symbol using the method shown in C2 above, the second communication device can directly use the fourth modulation symbol as the first modulation symbol. Of course, in this case, the second communication device does not need to perform step S406, that is, step S406 is an optional step, which is indicated by a dotted line in Figure 4.

[0277] If the first communication device determines the fourth modulation symbol using the method shown in C3 above, the second communication device can perform the reverse processing corresponding to the post-processing on the fourth modulation symbol to obtain the first modulation symbol. The reverse processing corresponding to IFFT is FFT, and the reverse processing of CP addition is CP removal.

[0278] If the first communications device determines the fourth modulation symbol using the method shown in C4 above, the second communications device may decrypt the fourth modulation symbol based on the first key to obtain a decrypted fourth modulation symbol, and then perform reverse processing corresponding to the post-processing on the decrypted fourth modulation symbol to obtain the first modulation symbol. The decryption of the fourth modulation symbol based on the first key can be referred to above, and the reverse processing can also be referred to above.

[0279] The second communication device may obtain the first modulation symbol in various ways, which are not specifically limited in this embodiment of the application. The manner in which the second communication device determines the first modulation symbol may be configured by a protocol, or may be determined by negotiation between the first communication device and the second communication device.

[0280] S407: The second communication device obtains a second modulation symbol according to the fifth modulation symbol.

[0281] The first communication device obtains the fifth modulation symbol in a different manner, and the second communication device obtains the second modulation symbol in a different manner, which are respectively introduced below.

[0282] If the first communication device determines the fifth modulation symbol in the manner shown in E1 above, the second communication device may decrypt the fifth modulation symbol based on the second key to obtain the second modulation symbol.

[0283] The second communication device decrypts the fifth modulation symbol, which is also referred to the second communication device decrypts the fourth modulation symbol.

[0284] If the first communication device determines the fifth modulation symbol using the method shown in E2 above, the second communication device may not need to perform step S407. That is, step S407 is an optional step, which is indicated by a dotted line in FIG4 .

[0285] If the first communication device determines the fifth modulation symbol in the manner shown in E3 above, the second communication device may perform the opposite processing corresponding to the post-processing on the fifth modulation symbol to obtain the second modulation symbol.

[0286] If the first communication device determines the fifth modulation symbol in the manner shown in E4 above, the second communication device may decrypt the fifth modulation symbol and perform the reverse post-processing on the decrypted fifth modulation symbol to obtain the second modulation symbol.

[0287] The order in which the second communication device executes steps S406 and S407 can be arbitrary. For example, the second communication device first executes S406 and then executes S407; or, first executes S407 and then executes S406; or, executes steps S406 and S407 at the same time. This embodiment of the present application does not limit this.

[0288] S408. The second communication device demodulates the first modulation symbol according to the constellation diagram to obtain M bits.

[0289] The second communication device can obtain the constellation diagram in the same manner as described above for the first communication device obtaining the constellation diagram. After determining the first modulation symbol, the second communication device can demap (or demodulate) the first modulation symbol using the constellation diagram to obtain M bits. If the first communication device performs channel coding to obtain M bits, the second communication device can also perform channel decoding on the M bits.

[0290] Exemplarily, when the channel coding involves adding a first parity bit sequence, the M bits include the first original bit sequence and the first parity bit sequence. Thus, the second communication device can determine the first parity bit sequence and the first original bit sequence in the M bits based on the M bits. Optionally, the second communication device can further verify the first original bit sequence based on the first parity bit sequence to verify whether the second communication device has received the correct first original bit sequence.

[0291] S409: The second communication device demodulates the second modulation symbol according to the constellation diagram to obtain N bits.

[0292] The second communication device may demodulate the second modulation symbol in the manner described above for demodulating the first modulation symbol, which is not repeated here. When the first communication device performs channel coding to obtain N bits, the second communication device may also perform channel decoding on the N bits.

[0293] Exemplarily, when the channel coding includes adding a second parity bit sequence, the N bits include the second original bit sequence and the second parity bit sequence. Thus, the second communication device can determine the second parity bit sequence and the second original bit sequence in the N bits based on the N bits. Optionally, the second communication device can also verify the second original bit sequence based on the second parity bit sequence to verify whether the second communication device has received the correct second original bit sequence.

[0294] The order in which the second communication device executes steps S408 and S409 can be arbitrary. For example, the second communication device first executes S408 and then executes S409; or, first executes S408 and then executes S409; or, executes steps S408 and S409 at the same time. This embodiment of the present application does not limit this.

[0295] In the embodiment of the present application, since the constellation diagram is designed from the modulation symbols corresponding to the horizontal or vertical axis, that is, the constellation diagram is not designed using the Gray code mapping rule, the randomness of the arrangement of the bit sequences corresponding to two adjacent modulation symbols in the constellation diagram is relatively large, which increases the difficulty of illegal demodulation by eavesdroppers, which is conducive to improving the security of communication. Further, after simulation testing, the modulation symbols modulated by the embodiment of the present application were used, and the bit error probability (bit error ratio, BER) corresponding to the simulated illegal node eavesdropping was close to 0.5, which can ensure the security of communication. Since the BER is close to 0.5, it means that the probability of the corresponding bit being correct is 0.5, and the probability of being wrong is also 0.5. From the perspective of information entropy, the uncertainty is maximized and the information entropy is maximized. Therefore, after the eavesdropper illegally demodulates, it is equivalent to not obtaining any valid information. It is equivalent to the eavesdropper still having to make random guesses about the bits, which increases the difficulty for the eavesdropper to illegally obtain bits, thereby improving the security of communication. In addition, in the embodiment of the present application, the modulation symbols can also be encrypted, which can further improve the security of communication. Furthermore, the first communication device and the second communication device use a common third key to generate the first key, thereby ensuring the stability of the generated first key and facilitating smooth demodulation by the second communication device.

[0296] The following describes the communication method provided by the embodiment of the present application by taking the first communication device using the C4 method to obtain the fourth modulation symbol and using the E4 method to obtain the fifth modulation symbol as an example.

[0297] S901: The first communication device performs channel coding.

[0298] Exemplarily, the first communication device performs channel coding on the first original bit sequence to obtain M bits, and performs channel coding on the second original bit sequence to obtain N bits. The channel coding method can refer to the above content.

[0299] S902. The first communication device uses a constellation diagram to modulate M bits to obtain a first modulation symbol, and modulates N bits to obtain a second modulation symbol.

[0300] S903: The first communication device encrypts the first modulation symbol and the second modulation symbol, respectively. This generates encrypted first modulation symbols and encrypted second modulation symbols. Encryption may employ, for example, the offset encryption or phase rotation encryption described above. The offset encryption or phase rotation encryption methods can be found in the discussion above.

[0301] S904: The first communication device performs IFFT on the encrypted first modulation symbol and the encrypted second modulation symbol, respectively. In this way, the first modulation symbol after IFFT processing and the second modulation symbol after IFFT processing can be obtained. The content of IFFT can be referred to above.

[0302] S905 . The first communication device performs CP adding processing on the results of S904 to obtain a fourth modulation symbol and a fifth modulation symbol.

[0303] Exemplarily, the first communication device performs CP processing on the first modulation symbol after IFFT processing to obtain a fourth modulation symbol, and performs CP processing on the second modulation symbol after IFFT processing to obtain a fifth modulation symbol. The content of the CP processing can be referred to above.

[0304] S906: The first communication device sends the fourth modulation symbol and the fifth modulation symbol to the second communication device. Correspondingly, the second communication device receives the fourth modulation symbol and the fifth modulation symbol from the first communication device.

[0305] The order and manner in which the first communication device sends the fourth modulation symbol and the fifth modulation symbol to the second communication device can refer to the above content.

[0306] S907: The second communication device performs CP removal on the fourth modulation symbol and the fifth modulation symbol, respectively. Thus, the CP-removed fourth modulation symbol and the CP-removed fifth modulation symbol are obtained. For details on the CP removal process, please refer to the previous text.

[0307] S908: The second communication device performs an FFT on the results of S907. For example, the second communication device performs an FFT on the fourth modulation symbol after CP removal to obtain the fourth modulation symbol after FFT, and performs an FFT on the fifth modulation symbol after CP removal to obtain the fifth modulation symbol after FFT. The details of the FFT can be found in the previous section.

[0308] S909 : The second communication device decrypts the results of the processing in S908 respectively to obtain a first modulation symbol and a second modulation symbol.

[0309] Decryption may include, for example, offset decryption or phase rotation decryption. For details on offset decryption or phase rotation decryption, refer to the preceding text. For example, the second communication device decrypts the fourth modulation symbol after the FFT to obtain the first modulation symbol, and decrypts the fifth modulation symbol after the FFT to obtain the second modulation symbol.

[0310] S910: The second communication device demodulates the first modulation symbol and the second modulation symbol respectively to obtain M bits and N bits. The demodulation content can refer to the above content.

[0311] S911: The second communication device performs channel decoding. For details on channel decoding, please refer to the previous text.

[0312] The above-mentioned S901 and S911 are optional steps, and the above-mentioned S904 to S908 are also optional steps, which are indicated by dotted lines in FIG9 .

[0313] In order to verify the effect of the embodiment shown in FIG9, the embodiment of the present application performs simulation measurement on the embodiment involved in FIG9. Please refer to FIG10, which is a schematic diagram of the results of a simulation test provided by the embodiment of the present application. The vertical axis in FIG10 represents BER, and the horizontal axis represents ρ SR Indicates the power loss during the communication process, and the unit of power loss is decibel (db). The modulation method of the constellation diagram involved in FIG10 is, for example, 16QAM.

[0314] As shown in Figure 10, the curve shown in s1 represents a schematic diagram of the BSR corresponding to the demodulation of the simulated illegal node eavesdropping by the modulation symbols obtained by adopting scheme 1 (i.e., the constellation diagram shown in Figure 9 (including steps S901 to S911)). The curve shown in s2 represents a schematic diagram of the BSR corresponding to the demodulation of the simulated illegal node eavesdropping by the modulation symbols obtained by adopting scheme 2 (i.e., the constellation diagram using the Gray code mapping rule). The curve shown in s3 represents a schematic diagram of the BSR corresponding to the demodulation of the simulated legal node by the modulation symbols obtained by adopting scheme 1. The curve shown in s4 represents a schematic diagram of the BER corresponding to the demodulation of the simulated legal node by the modulation symbols obtained by adopting scheme 3 (i.e., another embodiment shown in Figure 9 (including steps S901-S902, S904 to S908, and S910-S911)).

[0315] As shown in Figure 10, using Scheme 1 for modulation, the BSR corresponding to demodulation by the eavesdropping node is close to 0.5, while using Scheme 2 for modulation, the BSR corresponding to demodulation by the eavesdropping node is less than 0.5. This shows that using Scheme 1 for modulation can improve communication security. Furthermore, Figure 10 shows that if Scheme 1, i.e., encrypting the modulation symbols, is used, the first communication device will lose some power, but the power loss is relatively small.

[0316] Constellation technology maps bit streams to modulation symbols on a constellation, effectively converting the bit stream into electromagnetic waves. However, this modulation method only converts the bit stream into an electromagnetic wave, making it difficult to guarantee communication security.

[0317] In view of this, an embodiment of the present application also provides a communication method, in which a first communication device can generate a first key based on a third key, and encrypt a first modulation symbol based on the first key to improve the security of transmission.

[0318] The following describes the method provided by the embodiments of the present application in conjunction with the accompanying drawings. In the accompanying drawings corresponding to the various embodiments of the present application, all steps represented by dotted lines are optional steps. The first communication device involved in the various embodiments of the present application is, for example, the first communication device involved in Figure 2, and the second communication device is, for example, the second communication device involved in Figure 2. The architecture of the protocol stack of the first communication device and the second communication device can refer to the architectural diagram of the protocol stack in Figure 3 above. In the various embodiments of the present application, the first communication device is used as the transmitting end and the second communication device is used as the receiving end for example.

[0319] Please refer to Figure 11, which is a flow chart of a communication method provided in an embodiment of the present application.

[0320] S1101: The first communication device and the second communication device maintain a third key. The method for the first communication device and the second communication device to obtain the third key and the content of the third key can refer to the above content.

[0321] S1102: The first communication device and the second communication device both generate a first key. The method for generating the first key and the content of the first key can refer to the above content.

[0322] The above S1101-S1102 may be performed by the first communication device and the second communication device in the first process. The first process may be, for example, the first communication device accessing the second communication device or the core network, or the second communication device accessing the first communication device or the core network, which is not specifically limited in the present embodiment.

[0323] S1103: The first communication device performs channel coding. For details about channel coding, please refer to the previous text.

[0324] S1104. The first communication device uses a constellation diagram to modulate M bits to obtain a first modulation symbol.

[0325] The constellation diagram in the embodiment of the present application may be a constellation diagram that complies with the Gray code mapping rule; or a constellation diagram that complies with the first condition of any one of A1 to A6 above. The content of the first condition may refer to the content above.

[0326] S1105: The first communication device encrypts the first modulation symbol. Encryption may include, for example, the offset encryption shown in C1 or the phase rotation encryption shown in C2. The offset encryption or phase rotation encryption method may refer to the content discussed above.

[0327] S1106: The first communication device performs IFFT on the encrypted first modulation symbol. For details about IFFT, please refer to the above text.

[0328] S1107: The first communication device adds a CP to the modulation symbol after IFFT to obtain a fourth modulation symbol. The details of adding the CP can be found in the above text.

[0329] S1108: The first communication device sends a fourth modulation symbol to the second communication device. Correspondingly, the second communication device receives the fourth modulation symbol from the first communication device. The manner in which the first communication device sends the fourth modulation symbol to the second communication device can refer to the above content.

[0330] S1109: The second communication device performs CP removal processing on the fourth modulation symbol. The content of the CP removal processing can be referred to above.

[0331] S1110: The second communication device performs FFT on the modulated symbols after CP removal. The content of FFT can be referred to the above content.

[0332] S1111: The second communication device decrypts the modulation symbols after the FFT. Decryption methods include offset decryption as described in E1 above, or phase rotation decryption as described in E2 above. For details on offset decryption or phase rotation decryption, refer to the previous section. After executing S812, the second communication device may obtain the first modulation symbol.

[0333] S1112: The second communication device demodulates the first modulation symbol to obtain M bits. The demodulation content can refer to the above content.

[0334] S1113: The second communication device performs channel decoding. The content of channel decoding can also be referred to above.

[0335] The above steps S1103 and S1113 are optional steps. Steps S1106 to S1110 are optional steps, which are indicated by dotted lines in FIG11 .

[0336] In one possible implementation, the first communications device may also modulate N bits to obtain a second modulation symbol, process the second modulation symbol to obtain a fifth modulation symbol, and send the fifth modulation symbol to the second communications device. Correspondingly, the second communications device may also process the fifth modulation symbol to obtain a second modulation symbol, and demodulate the second modulation symbol to obtain N bits. The processes involved in this implementation can be referenced above with reference to the discussion in FIG. 4 or FIG. 9 and are not further detailed here.

[0337] In this embodiment of the present application, the first communication device can encrypt the first modulation symbol to ensure communication security. Furthermore, because the first communication device and the second communication device both share the third key, this ensures the stability of the first keys generated by the first and second communication devices, allowing the second communication device to successfully decrypt the encrypted first modulation symbol, thereby ensuring the reliability of communication between the first and second communication devices.

[0338] The present invention provides a communication device. Please refer to FIG12 , which is a schematic diagram of the structure of a communication device provided in an embodiment of the present invention. As shown in FIG12 , the communication device 1200 includes a transceiver module 1201 and a processing module 1202 .

[0339] In the first embodiment, the communication device 1200 can be used to implement the functions of the first communication device involved in Figure 4 or Figure 9. Accordingly, the communication device 1200 can implement the steps performed by the first communication device involved in Figure 4 or Figure 9.

[0340] For example, the communication device 1200 is used to implement the functions of the first communication device involved in FIG. 4 .

[0341] Exemplarily, the transceiver module 1201 may be configured to send a second modulation symbol to the second communication device, and the processing module 1202 may be configured to perform steps S401 and S402. Optionally, the processing module 1202 may be configured to send a fourth modulation symbol and a fifth modulation symbol to the second communication device. Optionally, the processing module 1202 may also be configured to perform steps S403 and S404. The second modulation symbol and the details of each step may be referred to in the aforementioned FIG. 4.

[0342] For another example, the communication device 1200 is used to implement the functions of the first communication device involved in FIG. 9 .

[0343] Exemplarily, the transceiver module 1201 may be configured to send the fourth modulation symbol and the fifth modulation symbol to the second communication device, and the processing module 1202 may be configured to execute step S902. Optionally, the processing module 1202 may also be configured to execute steps S901 and S903-S905.

[0344] In the second embodiment, the communication device 1200 can be used to implement the functions of the second communication device involved in Figure 4 or Figure 9. Accordingly, the communication device 1200 can implement the steps performed by the second communication device involved in Figure 4 or Figure 9.

[0345] For example, the communication device 1200 is used to implement the functions of the second communication device involved in FIG. 4 .

[0346] Exemplarily, the transceiver module 1201 may be configured to receive the fourth modulation symbol and the fifth modulation symbol from the first communication device, and the processing module 1202 may be configured to execute steps S408 and S409. Optionally, the processing module 1202 may be configured to execute steps S406-S407.

[0347] For another example, the communication device 1200 is used to implement the functions of the second communication device involved in FIG. 9 .

[0348] Exemplarily, the transceiver module 1201 may be configured to receive the fourth modulation symbol and the fifth modulation symbol from the first communication device, and the processing module 1202 may be configured to execute step S910. Optionally, the processing module 1202 may also be configured to execute steps S907-S909 and S911.

[0349] In a third embodiment, a communication device 1200 may be used to implement the functions of the first communication device in FIG11. Accordingly, the communication device 1200 may implement the steps performed by the first communication device in FIG11.

[0350] Exemplarily, the transceiver module 1201 may be configured to send the fourth modulation symbol to the second communication device, and the processing module 1202 may be configured to execute steps S1104 and S1105. Optionally, the processing module 1202 may also be configured to execute steps S1103, and S1106-S1107.

[0351] In a fourth embodiment, the communication device 1200 may be used to implement the functions of the second communication device in FIG11. Accordingly, the communication device 1200 may implement the steps performed by the second communication device in FIG11.

[0352] Exemplarily, the transceiver module 1201 may be configured to receive a fourth modulation symbol from the first communication device, and the processing module 1202 may be configured to perform steps S1111 and S1112. Optionally, the processing module 1202 may also be configured to perform steps S1109-S1110 and S1113. The contents of each step involved in FIG. 12 may be referred to above and are not further detailed here.

[0353] An embodiment of the present application provides a communication device. Please refer to Figure 13, which is a schematic diagram of the structure of a communication device provided in an embodiment of the present application. As shown in Figure 13, the communication device 1300 includes a processor 1301 and a communication interface 1302. The processor 1301 and the communication interface 1302 are coupled to each other. It is understood that the communication interface 1302 can be a transceiver or an input / output interface. The processor 1301 and the communication interface 1302 can implement any of the communication methods described in Figures 4, 9, or 11 above.

[0354] It is understood that the processor 1301 may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA), other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The general-purpose processor may be a microprocessor or any conventional processor.

[0355] Optionally, the communication device 1300 may further include a memory 1303, which is indicated by a dotted box in Figure 13. The memory 1303 is used to store instructions executed by the processor 1301, or to store input data required by the processor 1301 to execute instructions, or to store data generated after the processor 1301 executes instructions.

[0356] Any two of the processor 1301, the communication interface 1302, and the memory 1303 can communicate with each other via a bus 1304. The bus may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus 1304 may be divided into an address bus, a data bus, a control bus, and the like.

[0357] The memory 1303 may include a volatile memory, such as a random access memory (RAM). The memory 1303 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).

[0358] Optionally, the processor 1301 is used to implement the functions of the above-mentioned processing module 1202, and the communication interface 1302 is used to implement the functions of the above-mentioned transceiver module 1201.

[0359] An embodiment of the present application provides a communication system, which includes the first communication device involved in Figure 4 or Figure 9 above, and the second communication device involved in Figure 4 or Figure 9.

[0360] An embodiment of the present application provides a communication system, which includes the first communication device involved in Figure 11 above and the second communication device involved in Figure 11.

[0361] An embodiment of the present application provides a chip system, comprising: a processor and an interface. The processor is configured to call and execute instructions from the interface, and when the processor executes the instructions, implements any of the aforementioned communication methods, such as any of the communication methods described in FIG. 4 , FIG. 9 , or FIG. 11 .

[0362] An embodiment of the present application provides a computer-readable storage medium, which is used to store computer programs or instructions. When the computer-readable storage medium is executed, it implements any of the above-mentioned communication methods, such as any of the communication methods involved in Figures 4, 9 or 11.

[0363] An embodiment of the present application provides a computer program product comprising instructions, which, when executed on a computer, implements any of the above-mentioned communication methods, such as any of the communication methods involved in FIG. 4 , FIG. 9 , or FIG. 11 .

[0364] The method steps in the embodiments of the present application can be implemented by hardware or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an erasable programmable read-only memory, an electrically erasable programmable read-only memory, a register, a hard disk, a mobile hard disk, a CD-ROM or any other form of storage medium well known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and the storage medium can be located in an ASIC. In addition, the ASIC can be located in a base station or a terminal. Of course, the processor and the storage medium can also exist in a base station or a terminal as discrete components.

[0365] In the above embodiments, all or part of the embodiments may be implemented using software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are performed in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device, or other programmable device. The computer program or instructions may be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another. For example, the computer program or instructions may be transferred from one website, computer, server, or data center to another website, computer, server, or data center via wired or wireless means. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium, such as a floppy disk, hard disk, or magnetic tape; an optical medium, such as a digital video disk; or a semiconductor medium, such as a solid-state drive. The computer-readable storage medium may be a volatile or nonvolatile storage medium, or may include both volatile and nonvolatile types of storage media.

[0366] In the various embodiments of the present application, unless otherwise specified or there is a logical conflict, the terms and / or descriptions between different embodiments are consistent and can be referenced by each other. The technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationships.

[0367] It is understood that the various numbers used in the embodiments of this application are merely for ease of description and are not intended to limit the scope of the embodiments of this application. The order of the sequence numbers of the above-mentioned processes does not necessarily imply a specific order of execution; the order of execution of the processes should be determined by their functions and inherent logic.

Claims

1. A communication method, characterized in that: Applied to a first communication device, the method comprises: According to the constellation diagram, M bits are modulated to obtain a first modulation symbol, and according to the constellation diagram, N bits are modulated to obtain a second modulation symbol, where M and N are both positive integers; Sending the first modulation symbol and the second modulation symbol to a second communication device; The first bit sequence and the second bit sequence have different values ​​at the first position, and the third bit sequence and the fourth bit sequence are the same; or the first bit sequence and the second bit sequence are the same, and the third bit sequence and the fourth bit sequence have different values ​​at the second position; The first bit sequence is a bit sequence corresponding to the real part of the first modulation symbol, the second bit sequence is a bit sequence corresponding to the real part of the second modulation symbol, the third bit sequence is a bit sequence corresponding to the imaginary part of the first modulation symbol, the fourth bit sequence is a bit sequence corresponding to the imaginary part of the second modulation symbol, the first position is the position of any bit in the first bit sequence or the second bit sequence, the second position is the position of any bit in the third bit sequence or the fourth bit sequence, and the first modulation symbol and the second modulation symbol are symmetrical along the horizontal axis or the vertical axis of the constellation diagram.

2. The method according to claim 1, characterized in that Before sending the first modulation symbol and the second modulation symbol to the second communication device, the method further includes: Encrypting the first modulation symbol according to a first key to obtain the encrypted first modulation symbol; and / or, The second modulation symbol is encrypted according to the second key to obtain the encrypted second modulation symbol.

3. The method according to claim 2, characterized in that The first key and / or the second key are generated according to first information, and the first information includes a third key; The third key is a preconfigured or predefined key, or the third key is generated according to the fourth key, and the fourth key is a preconfigured or predefined key, or a key configured for the core network.

4. The method according to claim 3, characterized in that The third key is a key shared by the first communication device and the second communication device.

5. The method according to claim 3 or 4, characterized in that: The first information also includes information that the first communication device has sent to the second communication device and / or information that the first communication device has received from the second communication device.

6. The method according to any one of claims 3 to 5, characterized in that: The method further comprises: Encrypting the first information according to a first encryption algorithm to obtain a fifth key; Encrypting the fifth key according to the second encryption algorithm to obtain a sixth key; The first key is part or all of the bits in the sixth key, or the first key is part or all of the bits in the seventh key, and the seventh key is determined according to the fifth key and the sixth key.

7. The method according to claim 6, characterized in that The second key is part or all of the bits of the sixth key except the first key, or is part or all of the bits of the seventh key except the first key.

8. The method according to any one of claims 2 to 7, characterized in that: Encrypting the first modulation symbol according to the first key to obtain the encrypted first modulation symbol includes: Determine, according to the first key, a translation length and / or a direction angle of the first modulation symbol in the constellation diagram; In the constellation diagram, the first modulation symbol is moved by the translation length in the direction indicated by the direction angle to obtain the encrypted first modulation symbol.

9. The method according to claim 8, characterized in that The translation length and the direction angle satisfy the following relationship: and or, and Wherein, ρ represents the translation length, and θ represents the direction angle.

10. The method according to any one of claims 2 to 7, characterized in that: Encrypting the first modulation symbol according to the first key to obtain the encrypted first modulation symbol includes: The encrypted first modulation symbol is obtained by superimposing the phase of the third modulation symbol on the phase of the first modulation symbol, where the third modulation symbol is obtained by modulating the first key according to the constellation diagram.

11. A communication method, characterized in that: Applied to a second communication device, the method comprises: receiving a first modulation symbol and a second modulation symbol from a first communication device; Demodulating the first modulation symbol according to the constellation diagram to obtain M bits, and demodulating the second modulation symbol according to the constellation diagram to obtain N bits, where N and M are positive integers; The first bit sequence and the second bit sequence have different values ​​at the first position, and the third bit sequence and the fourth bit sequence are the same; or the first bit sequence and the second bit sequence are the same, and the third bit sequence and the fourth bit sequence have different values ​​at the second position; The first bit sequence is a bit sequence corresponding to the real part of the first modulation symbol, the second bit sequence is a bit sequence corresponding to the real part of the second modulation symbol, the third bit sequence is a bit sequence corresponding to the imaginary part of the first modulation symbol, the fourth bit sequence is a bit sequence corresponding to the imaginary part of the second modulation symbol, the first position is the position of any bit in the first bit sequence or the second bit sequence, the second position is the position of any bit in the third bit sequence or the fourth bit sequence, and the first modulation symbol and the second modulation symbol are symmetrical along the horizontal axis or the vertical axis of the constellation diagram.

12. The method according to claim 11, characterized in that Receiving a first modulation symbol and a second modulation symbol from a first communication device includes: receiving the encrypted first modulation symbol and the encrypted second modulation symbol from the first communication device; The method further comprises: Decrypt the encrypted first modulation symbol according to the first key to obtain the first modulation symbol; and / or, The encrypted second modulation symbol is decrypted according to the second key to obtain the second modulation symbol.

13. The method according to any one of claim 12, characterized in that: The first key and / or the second key are generated according to first information, and the first information includes a third key; The third key is a preconfigured or predefined key, or the third key is generated according to the eighth key, and the eighth key is a preconfigured or predefined key, or a key configured for the core network.

14. The method according to claim 13, characterized in that The third key is a key shared by the first communication device and the second communication device.

15. The method according to claim 13 or 14, characterized in that The first information also includes information that the second communication device has sent to the first communication device and / or information that the second communication device has received from the first communication device.

16. The method according to any one of claims 13 to 15, characterized in that: The method further comprises: Encrypting the first information according to a first encryption algorithm to obtain a fifth key; According to the second encryption algorithm, the fifth key is encrypted to obtain a sixth key, wherein the first key is part or all of the bits in the sixth key, or the first key is part or all of the bits in the seventh key, and the seventh key is determined based on the fifth key and the sixth key.

17. The method according to claim 16, characterized in that The second key is part or all of the bits of the sixth key except the first key, or is part or all of the bits of the seventh key except the first key.

18. The method according to any one of claims 12 to 17, characterized in that: Decrypting the encrypted first modulation symbol according to the first key to obtain the first modulation symbol includes: Determine, according to the first key, a translation length and / or a direction angle of the first modulation symbol in the constellation diagram; The encrypted first modulation symbol is moved in the constellation diagram in the opposite direction indicated by the direction angle by the translation length to obtain the encrypted first modulation symbol.

19. The method according to claim 18, characterized in that The translation length and the direction angle satisfy the following relationship: and or, and Wherein, ρ represents the translation length, and θ represents the direction angle.

20. The method according to any one of claims 12 to 18, characterized in that: Decrypting the encrypted first modulation symbol according to the first key to obtain the first modulation symbol includes: The first modulation symbol is obtained by subtracting the phase of the third modulation symbol from the phase of the encrypted first modulation symbol, wherein the third modulation symbol is obtained by modulating the first key according to the constellation diagram.

21. A communication device, characterized in that: The apparatus comprises a module for executing the method according to any one of claims 1-20.

22. A communication device, characterized in that: include: A processor and a communication interface, wherein the communication interface is used to receive signals from other devices outside the communication device and transmit them to the processor or send signals from the processor to other devices outside the communication device, and the processor executes code instructions through a logic circuit to implement the method described in any one of claims 1-20.

23. A computer program product comprising instructions, characterized in that When the instruction is executed by the communication device, the communication device executes the method according to any one of claims 1 to 20.

24. A computer-readable storage medium, characterized in that: The storage medium stores a computer program or instruction, and when the computer program or instruction is executed by the communication device, the method according to any one of claims 1 to 20 is implemented.

Citation Information

Patent Citations

  • OFDM (Orthogonal Frequency Division Multiplexing) system signal sending method, receiving method and device

    CN101867552A

  • Method for improving security of user information using constellation conversion in wireless communication system

    CN105916139A

  • Data transmission method and device

    CN114189318A

  • Signal modulation, demodulation and transmission method and device

    CN115694629A

  • Signal processing apparatus and signal processing method

    US20210203363A1