INFORMATION TRANSMISSION METHOD AND APPARATUS

Embodiments of the present disclosure disclose an information transmission method and apparatus and relate to the field of communications technologies, which can initialize a sequence generator during device-to-device communication, reduce time of transmitting data between a transmitter and a receiver, and save transmission resources. The method of the present disclosure includes: initializing, by a transmitter, a sequence generator according to a synchronization source ID, a group ID, and a timeslot number, scrambling to-be-transmitted information according to a pseudo random binary sequence generated by the sequence generator, and transmitting scrambled to-be-transmitted information; and receiving, by a receiver, the scrambled to-be-transmitted information transmitted by the transmitter, and descrambling the scrambled to-be-transmitted information transmitted by the transmitter. The present disclosure is applied to a scenario in which a transmitter scrambles and transmits to-be-transmitted information.

TECHNICAL FIELD

The present disclosure relates to the field of communications technologies, and in particular, to an information transmission method and apparatus.

BACKGROUND

D2D (device to device) refers to direct communication between terminal devices, or direct communication performed with the assistance of a network. There are three working scenarios for the D2D, which are separately network coverage, no network coverage and partial network coverage. In a working scenario with network coverage, terminal devices that participate in D2D communication are all within coverage of a network; in a working scenario without network coverage, terminal devices that participate in D2D communication are all out of coverage of a network; and in a working scenario with partial network coverage, some terminal devices that participate in D2D communication are within coverage of a network, and some other terminal devices are out of the coverage of the network.

Modes of the device-to-device communication may be divided into a broadcast mode, a multicast mode and a unicast mode. In the broadcast mode, a specific receiver is not limited during transmission performed by a transmitter, that is, the transmitter does not know whether there is a receiver that is performing receiving, and such information may not exist at a network side. There are actually target receivers in the multicast and the unicast modes.

In a radio communication process, various signals exist in radio space. To enable a receiver to better receive wanted signals and eliminate unnecessary interference, scrambling processing is usually performed on transmitted signals. A transmitter uses a sequence generator to generate a pseudo random binary sequence, performs a scrambling operation on to-be-transmitted information, and transmits scrambled information. For example, in a 3GPP LTE system, a sequence generator is initialized for an uplink PUSCH according to a terminal device ID, a sequence number of a codeword, a timeslot number and a cell ID. However, in a working scenario with partial network coverage and a working scenario without network coverage, terminal devices out of coverage of a network do not have cell ID information, and therefore in the prior art, a sequence generator cannot be initialized according to a terminal device ID, a sequence number of a codeword, a timeslot number and a cell ID, so that an information scrambling problem in the D2D cannot be solved. In the prior art, a sequence generator can also be initialized by using a transmitter ID in combination with some other information, to generate a pseudo random binary sequence required for scrambling. In D2D (device to device), direct communication is performed between mobile terminals or direct communication is performed with the assistance of a network. In a broadcast mode, a multicast mode and a unicast mode of the D2D, mutual communication can be performed between mobile terminals, however, a mobile terminal serving as a receiver may not know a transmitter ID of a mobile terminal serving as a transmitter. If the receiver needs to be enabled to know the transmitter ID, a mechanism needs to be established additionally to enable a device at a network side or the transmitter to notify other receivers of the transmitter ID of the transmitter. However, to add a process of notifying the receiver to enable the receiver to acquire the transmitter ID, data transmission between the device at the network side or the transmitter and the receiver takes more time and occupies more transmission resources; and for the broadcast mode, the receiver cannot be notified of a transmitter ID that is at a moment due to lack of receiver information.

SUMMARY

Embodiments of the present disclosure provide an information transmission method and apparatus, in D2D, a sequence generator is initialized according to synchronization source ID information and group ID information, which can reduce time of data transmission between a transmitter and a receiver or between a network side and a receiver, and save transmission resources.

To achieve the foregoing objectives, the embodiments of the present disclosure use the following technical solutions:

According to a first aspect, an embodiment of the present disclosure provides an information transmission apparatus which is used in a transmitter, where the apparatus supports device to device D2D, and the apparatus includes:

a first initialization module, configured to initialize a sequence generator according to a synchronization source ID, a group ID, and a timeslot number;

a first scrambling module, configured to scramble to-be-transmitted information according to a pseudo random binary sequence generated by the sequence generator; and

a first transmitting module, configured to transmit scrambled to-be-transmitted information.

With reference to the first aspect, in a first possible implementation manner, the first initialization module includes:

a first acquiring unit, configured to acquire a first initial value cinit1according to cinit1=ngroupID.2A+q.2B+└ns/2┘2C+NsID, where ngroupIDis the group ID, q is a sequence number of a codeword, nsis the timeslot number, NsIDis the synchronization source ID, and A, B and C are all positive integers; and

a first initialization unit, configured to initialize the sequence generator by using the first initial value cinit1.

With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner, a value of a bit of the codeword is constantly 1.

According to a second aspect, an embodiment of the present disclosure provides an information transmission apparatus which is used in a transmitter, where the apparatus supports device to device D2D, and the apparatus includes:

a second initialization module, configured to initialize a sequence generator according to service ID information and a timeslot number;

a second scrambling module, configured to scramble to-be-transmitted information according to a pseudo random binary sequence generated by the sequence generator; and

a second transmitting module, configured to transmit scrambled to-be-transmitted information.

With reference to the second aspect, in a first possible implementation manner, the D2D is in a broadcast mode, and the service ID information is acquired from a preset service ID information set, or the service ID information is acquired from a service ID information set broadcasted by a base station.

With reference to the second aspect or the first possible implementation manner of the second aspect, in a second possible implementation manner, the D2D is in the broadcast mode, and the second initialization module includes:

a second acquiring unit, configured to acquire a second initial value cinit2according to cinit2=└ns2┘.2D+ND2D, where nsis the timeslot number, ND2Dis the service ID information, and D is a positive integer; and

a second initialization unit, configured to initialize the sequence generator by using the second initial value cinit2.

According to a third aspect, an embodiment of the present disclosure provides an information transmission apparatus which is used in a receiver, where the apparatus supports device to device D2D, and the apparatus includes:

a receiving module, configured to receive scrambled to-be-transmitted information transmitted by a transmitter, where the scrambled to-be-transmitted information is to-be-transmitted information scrambled by the transmitter according to a pseudo random binary sequence generated by a sequence generator, and the pseudo random binary sequence is generated by the transmitter by initializing the sequence generator according to a synchronization source ID, a group ID, and a timeslot number; and

a descrambling module, configured to descramble the scrambled to-be-transmitted information transmitted by the transmitter.

According to a fourth aspect, an embodiment of the present disclosure provides an information transmission method which is used for a transmitter, where the transmitter supports device to device D2D, and the method includes:

initializing a sequence generator according to a synchronization source ID, a group ID, and a timeslot number;

scrambling to-be-transmitted information according to a pseudo random binary sequence generated by the sequence generator; and

With reference to the fourth aspect, in a first possible implementation manner, the initializing a sequence generator according to a synchronization source ID, a group ID, and a timeslot number includes:acquiring a first initial value cinit1according to cinit1=ngroupID.2A+q.2B+└ns/2┘.2C+NsID, where ngroupIDis the group ID, q is a sequence number of a codeword, nsis the timeslot number, NsIDis the synchronization source ID, and A, B and C are all positive integers; and

initializing the sequence generator by using the first initial value cinit1.

With reference to the first possible implementation manner of the fourth aspect, in a second possible implementation manner, a value of a bit of the codeword is constantly 1.

According to a fifth aspect, an embodiment of the present disclosure provides an information transmission method which is used for a transmitter, where the transmitter supports device to device D2D, and the method includes:

initializing a sequence generator according to service ID information and a timeslot number;

scrambling to-be-transmitted information according to a pseudo random binary sequence generated by the sequence generator; and

With reference to the fourth aspect, in a first possible implementation manner, the D2D is in a broadcast mode, and the service ID information is acquired from a preset service ID information set, or the service ID information is acquired from a service ID information set broadcasted by a base station.

With reference to the fourth aspect or the first possible implementation manner of the fourth aspect, in a second possible implementation manner, the D2D is in the broadcast mode, and the initializing a sequence generator according to service ID information and a timeslot number includes:

acquiring a second initial value cinit2according to cinit2=└ns/2┘.2D+ND2D, where nsis the timeslot number, ND2Dis the service ID information, and D is a positive integer; and

initializing the sequence generator by using the second initial value cinit2.

According to a sixth aspect, an embodiment of the present disclosure provides an information transmission method which is used for a receiver, where the receiver supports device to device D2D, and the method includes:

receiving scrambled to-be-transmitted information transmitted by a transmitter, where the scrambled to-be-transmitted information is to-be-transmitted information scrambled by the transmitter according to a pseudo random binary sequence generated by a sequence generator, and the pseudo random binary sequence is generated by the transmitter by initializing the sequence generator according to a synchronization source ID, a group ID, and a timeslot number; and

descrambling the scrambled to-be-transmitted information transmitted by the transmitter.

According to the information transmission method and apparatus provided by the embodiments of the present disclosure, a transmitter can initialize a sequence generator according to a synchronization source ID, a group ID, and a timeslot number or initialize a sequence generator according to service ID information and a timeslot number, scramble to-be-transmitted information according to a pseudo random binary sequence generated by the sequence generator, and transmit scrambled to-be-transmitted information; and a receiver can receive the scrambled to-be-transmitted information transmitted by the transmitter, and descramble the scrambled to-be-transmitted information transmitted by the transmitter. Compared with the prior art, in this solution, a sequence generator is initialized by using a synchronization source ID, a group ID, and a timeslot number, which avoids initializing the sequence generator by using a transmitter ID in combination with some other information, thereby saving a process of notifying a receiver to enable the receiver to acquire the transmitter ID, saving time of data transmission between a device at a network side or a transmitter and the receiver, and reducing occupied transmission resources.

DESCRIPTION OF EMBODIMENTS

The technical solutions provided by the embodiments of the present disclosure are applied to an information transmission system, where the information transmission system includes a transmitter and a receiver. The transmitter can initialize a sequence generator according to a synchronization source ID, a group ID, and a timeslot number or initialize a sequence generator according to service ID information and a timeslot number, scramble to-be-transmitted information according to a pseudo random binary sequence generated by the sequence generator, and transmit scrambled to-be-transmitted information; and the receiver can receive and descramble the scrambled to-be-transmitted information transmitted by the transmitter.

An embodiment of the present disclosure provides an information transmission apparatus100which is used in a transmitter. As shown inFIG. 1, the information transmission apparatus100includes a first initialization module101, a first scrambling module102, and a first transmitting module103.

The first initialization module101is configured to initialize a sequence generator according to a synchronization source ID, a group ID, and a timeslot number.

A synchronization source is a synchronization reference source of the transmitter. In a working scenario with network coverage, a base station generally serves as a synchronization source, and in this case, the synchronization source ID is a cell ID; in a working scenario without network coverage, a terminal device may serve as a synchronization source, and in this case, the synchronization source ID is a UE ID; and in a working scenario with partial network coverage, a terminal device within network coverage uses a base station as a synchronization source, and a terminal device out of the network coverage may use, by referring to a synchronization condition of the terminal device within the network coverage, a synchronization source ID of the terminal device within the network coverage, that is, a cell ID corresponding to the terminal device within the network coverage.

The group ID is an identification number shared by terminal devices that participate in D2D communication. In a working scenario with network coverage, the timeslot number is a sequence number of a time unit, and a value may be selected from a total of 20 numeric values from 0 to 19; in a working scenario with partial network coverage, one group of terminal devices participating in D2D communication can refer to network timing, and still can use a timeslot number of a network; and in a working scenario without network coverage, a time division method similar to that in the working scenario with network coverage or with partial network coverage may be used, that is, a timeslot number of a network is used, where the time division method may also use non-timeslot division, that is, the sequence generator is initialized without using the timeslot number of the network.

The first scrambling module102is configured to scramble to-be-transmitted information according to a pseudo random binary sequence generated by the sequence generator.

The pseudo random binary sequence generated by the sequence generator is multiplied by the to-be-transmitted information, so as to scramble the to-be-transmitted information.

The first transmitting module103is configured to transmit scrambled to-be-transmitted information.

According to the information transmission apparatus provided by this embodiment of the present disclosure, the apparatus can initialize a sequence generator according to a synchronization source ID, a group ID, and a timeslot number, scramble to-be-transmitted information according to a pseudo random binary sequence generated by the sequence generator, and transmit scrambled to-be-transmitted information. Compared with the prior art, in this solution, a sequence generator is initialized by using a synchronization source ID, a group ID, and a timeslot number, which avoids initializing the sequence generator by using a transmitter ID in combination with some other information, thereby saving a process of notifying a receiver to enable the receiver to acquire the transmitter ID, saving time of data transmission between a transmitter and the receiver, and reducing occupied transmission resources.

Further, the first initialization module101, as shown inFIG. 2, includes a first acquiring unit1011and a first initialization unit1012.

The first acquiring unit1011is configured to acquire a first initial value cinit1according to cinit1=ngroupID.2A+q.2B+└ns/2┘.2C+NsID,

where ngroupIDis the group ID, q is a sequence number of a codeword, nsis the timeslot number, NsIDis the synchronization source ID, and A, B and C are all positive integers. The foregoing calculation splices information, such as the group ID, the sequence number of the codeword, the timeslot number and the synchronization source ID, to form an N-bit binary numeric value string to initialize the sequence generator, where ngroupIDis the group ID, q is the sequence number of the codeword, nsis the timeslot number, and NsIDis the synchronization source ID. A terminal device generally receives or transmits one codeword or two codewords, the sequence number of the codeword may have two available values, 0 and 1, which represent that scrambled information is the zeroth codeword or the first codeword. Values of A, B, C and N herein may vary according to an actual situation, specifically, the values of A, B and C are determined by the number of bits of information, such as the group ID, the sequence number of the codeword, the timeslot number and the synchronization source ID. For example, NsIDis 9 bits, then C=9; if a value range of nsis 0 to 19, nsis an integer, and └ns/2┘ is a rounded-down operation on a numeric value of ns/2, a value of └ns/2┘ may be indicated by a 4-bit binary number, and B=C+4=9+4=13; if the value of q is 0 or 1, the value of q may be indicated by a 1-bit binary number, and A=B+1=9+4+1=13+1=14.

Optionally, a value of a bit of the codeword may be constantly 1, and the bit of the codeword is used to indicate the sequence number of the codeword. In a conventional network data transmission scenario, a terminal device receives or transmits a maximum of two codewords, that is, the terminal device receives or transmits one codeword or two codewords, and therefore the terminal device inevitably receives or transmits a codeword whose sequence number is 0. The bit of the codeword is constantly 1, which indicates that a codeword whose sequence number is 1 is received or transmitted, thereby making a value of a pseudo random binary sequence generated by a sequence generator in D2D communication to be distinguished from a value of a pseudo random binary sequence in network data communication as far as possible.

The first initialization unit1012is configured to initialize the sequence generator by using the first initial value cinit1.

The acquired first initial value cinit1is input to the sequence generator, and the sequence generator is initialized according to a generation rule that is of the pseudo random binary sequence and is in the sequence generator.

According to the information transmission apparatus provided by this embodiment of the present disclosure, the apparatus can initialize a sequence generator according to a synchronization source ID, a group ID, and a timeslot number, scramble to-be-transmitted information according to a pseudo random binary sequence generated by the sequence generator, and transmit scrambled to-be-transmitted information. Compared with the prior art, in this solution, a sequence generator is initialized by using a synchronization source ID, a group ID, and a timeslot number, which avoids initializing the sequence generator by using a transmitter ID in combination with some other information, thereby saving a process of notifying a receiver to enable the receiver to acquire the transmitter ID, saving time of data transmission between a transmitter and the receiver, and reducing occupied transmission resources.

An embodiment of the present disclosure further provides an information transmission apparatus200which is used in a transmitter. As shown inFIG. 3, the information transmission apparatus200includes a second initialization module201, a second scrambling module202, and a second transmitting module203.

The second initialization module201is configured to initialize a sequence generator according to service ID information and a timeslot number.

The service ID information is service identification information for D2D communication, and can be used to identify various D2D communication services. The service ID information may be acquired from a preset service ID information set, and may also be acquired from a service ID information set broadcasted by a base station. Specifically, an universal service ID information set for D2D communication may be specified and set when a terminal device is delivered, and the service ID information is acquired from the universal service ID information set for the D2D communication, where the terminal device includes a transmitter and a receiver, the transmitter selects service ID information corresponding to a service of the transmitter from the service ID information set according to the service of the transmitter, and when receiving information, the receiver attempts to descramble each piece of service ID information in the service ID information set one by one according to the fixed service ID information set specified and set when the terminal device is delivered. An universal service ID information set, for D2D communication, of a terminal device may also be broadcasted by a base station, and the service ID information is acquired from the universal service ID information set that is for the D2D communication, of the terminal device, and broadcasted by the base station, where the terminal device includes a transmitter and a receiver, the transmitter selects service ID information corresponding to a service of the transmitter from the service ID information set broadcasted by the base station, and when receiving scrambled to-be-transmitted information transmitted by the transmitter, the receiver attempts to descramble each piece of service ID information in the service ID information set one by one according to the service ID information set broadcasted by the base station. Optionally, the service ID information may also be agreed upon in advance before communication by terminal devices participating in D2D communication, and the service ID information agreed upon in advance is used in a communication process.

In a working scenario with network coverage, the timeslot number is a sequence number of a time unit, and a value may be selected from a total of 20 numeric values from 0 to 19. In a working scenario with partial network coverage, one group of terminal devices participating in D2D communication can refer to network timing, and still can use a timeslot number of a network; and in a working scenario without network coverage, a time division method similar to that in the working scenario with network coverage or with partial network coverage may be used, that is, a timeslot number of a network is used, where the time division method may also use non-timeslot division, that is, the sequence generator is initialized without using the timeslot number of the network.

The second scrambling module202is configured to scramble to-be-transmitted information according to a pseudo random binary sequence generated by the sequence generator.

The pseudo random binary sequence generated by the sequence generator is multiplied by the to-be-transmitted information, so as to scramble the to-be-transmitted information.

The second transmitting module203is configured to transmit scrambled to-be-transmitted information.

According to the information transmission apparatus further provided by this embodiment of the present disclosure, the apparatus can acquire service ID information, initialize a sequence generator according to a timeslot number and the service ID information, scramble to-be-transmitted information according to a pseudo random binary sequence generated by the sequence generator, and transmit scrambled to-be-transmitted information. Compared with the prior art, in this solution, a sequence generator is initialized by using a timeslot number and service ID information, which avoids initializing the sequence generator by using a transmitter ID in combination with some other information, thereby saving a process of notifying a receiver to enable the receiver to acquire the transmitter ID, saving time of data transmission between a device at a network side or a transmitter and the receiver, and reducing occupied transmission resources.

Further, D2D (device to device) is in a broadcast mode, and as shown inFIG. 4, the second initialization module201includes a second acquiring unit2011and a second initialization unit2012.

The second acquiring unit2011is configured to acquire a second initial value cinit2according to cinit2=└ns/2┘.2D+ND2D,

where nsis the timeslot number, ND2Dis the service ID information, and D is a positive integer. D is the number of bits of the service ID information, for example, the service ID information occupies 9 bits, then D=9.

The second initialization unit2012is configured to initialize the sequence generator by using the second initial value cinit2.

The acquired second initial value cinit2is input to the sequence generator, and the sequence generator is initialized according to a generation rule that is of the pseudo random binary sequence and is in the sequence generator.

Further, D2D is in the broadcast mode. The service ID information is acquired from a preset service ID information set, or the service ID information is acquired from a service ID information set broadcasted by a base station.

According to the information transmission apparatus further provided by this embodiment of the present disclosure, the apparatus can acquire service ID information from a preset service ID information set or a service ID information set broadcasted by a base station, initialize a sequence generator according to a timeslot number and the service ID information by using cinit2=└ns/2┘.2D+ND2D, scramble to-be-transmitted information according to a pseudo random binary sequence generated by the sequence generator, and transmit scrambled to-be-transmitted information. Compared with the prior art, in this solution, a sequence generator is initialized by using a timeslot number and service ID information, which avoids initializing the sequence generator by using a transmitter ID in combination with some other information, thereby saving a process of notifying a receiver to enable the receiver to acquire the transmitter ID, saving time of data transmission between a device at a network side or a transmitter and the receiver, and reducing occupied transmission resources.

An embodiment of the present disclosure provides an information transmission apparatus300which is used in a receiver. As shown inFIG. 5, the information transmission apparatus300includes a receiving module301and a descrambling module302.

The receiving module301is configured to receive scrambled to-be-transmitted information transmitted by a transmitter.

The scrambled to-be-transmitted information is to-be-transmitted information scrambled by the transmitter according to a pseudo random binary sequence generated by a sequence generator, and the pseudo random binary sequence is generated by the transmitter by initializing the sequence generator according to a synchronization source ID, a group ID, and a timeslot number.

The descrambling module302is configured to descramble the scrambled to-be-transmitted information transmitted by the transmitter.

The receiver performs the descrambling according to the pseudo random binary sequence generated by the sequence generator initialized by the transmitter.

According to the information transmission apparatus provided by this embodiment of the present disclosure, a transmitter can initialize a sequence generator according to a synchronization source ID, a group ID, and a timeslot number, scramble to-be-transmitted information according to a pseudo random binary sequence generated by the sequence generator, and transmit scrambled to-be-transmitted information; and the apparatus can receive the scrambled to-be-transmitted information transmitted by the transmitter, and descramble the scrambled to-be-transmitted information transmitted by the transmitter. Compared with the prior art, in this solution, a sequence generator is initialized by using a synchronization source ID, a group ID, and a timeslot number, which avoids initializing the sequence generator by using a transmitter ID in combination with some other information, thereby saving a process of notifying a receiver to enable the receiver to acquire the transmitter ID, saving time of data transmission between a transmitter and the receiver, and reducing occupied transmission resources.

An embodiment of the present disclosure provides a transmitter400. As shown inFIG. 6, the transmitter400includes: at least one processor401, such as a CPU, at least one communications bus402, a memory403, at least one network interface404or user interface405, and a transmit end406. The communications bus402is configured to implement connections and communication between these components. Optionally, the user interface405includes devices, such as a display, a keyboard, a mouse, and a touch screen. The memory403may include a high-speed RAM memory, and may also include a non-volatile memory, for example, at least one magnetic disk memory. The transmit end406is configured to transmit scrambled to-be-transmitted information.

Specifically, the memory403may be configured to store a synchronization source ID, a group ID, and a timeslot number, may further be configured to store a pseudo random binary sequence generated by a sequence generator, and may further store to-be-transmitted information and scrambled to-be-transmitted information.

Further, the memory403may be configured to store a first initial value cinit1and a sequence number of a codeword, and may further be configured to store a value of a bit of the codeword.

Specifically, the processor401may be configured to initialize the sequence generator according to the synchronization source ID, the group ID, and the timeslot number; and configured to scramble the to-be-transmitted information according to the pseudo random binary sequence generated by the sequence generator; and configured to control the transmit end406to transmit the scrambled to-be-transmitted information.

Further, the processor401may further be configured to acquire an initial value cinitaccording to Cinit=ngroupID.2A+q.2B+└ns/2┘.2C+NsID, where ngroupIDis ID the group ID, q is the sequence number of the codeword, nsis the timeslot number, NsIDis the synchronization source ID, and A, B and C are all positive integers; and configured to initialize the sequence generator by using the initial value cinit.

Optionally, the value of the bit of the codeword is constantly 1.

According to the transmitter provided by this embodiment of the present disclosure, the transmitter can initialize a sequence generator according to a synchronization source ID, a group ID, and a timeslot number, scramble to-be-transmitted information according to a pseudo random binary sequence generated by the sequence generator, and transmit scrambled to-be-transmitted information; and a receiver can receive the scrambled to-be-transmitted information transmitted by the transmitter, and descramble the scrambled to-be-transmitted information transmitted by the transmitter. Compared with the prior art, in this solution, a sequence generator is initialized by using a synchronization source ID, a group ID, and a timeslot number, which avoids initializing the sequence generator by using a transmitter ID in combination with some other information, thereby saving a process of notifying a receiver to enable the receiver to acquire the transmitter ID, saving time of data transmission between a transmitter and the receiver, and reducing occupied transmission resources.

An embodiment of the present disclosure provides a transmitter500. As shown inFIG. 7, the transmitter500includes: at least one processor501, such as a CPU, at least one communications bus502, a memory503, at least one network interface504or user interface505, and a transmit end506. The communications bus502is configured to implement connections and communication between these components. Optionally, the user interface505includes devices, such as a display, a keyboard, a mouse, and a touch screen. The memory503may include a high-speed RAM memory, and may also include a non-volatile memory, for example, at least one magnetic disk memory. The transmit end506is configured to transmit scrambled to-be-transmitted information.

Specifically, the memory503may be configured to store service ID information and a timeslot number, may further be configured to store a pseudo random binary sequence generated by a sequence generator, and may further store to-be-transmitted information and scrambled to-be-transmitted information.

Further, the memory503may further be configured to store a preset service ID information set and a service ID information set broadcasted by a base station, and may further be configured to store a second initial value cinit2.

Specifically, the processor501may be configured to initialize the sequence generator according to the service ID information and the timeslot number; configured to scramble the to-be-transmitted information according to the pseudo random binary sequence generated by the sequence generator; and configured to control the transmit end506to transmit the scrambled to-be-transmitted information.

Further, D2D is in a broadcast mode, and the service ID information is acquired from the preset service ID information set, or the service ID information is acquired from the service ID information set broadcasted by the base station.

Further, D2D is in the broadcast mode, and the processor501may be configured to acquire a second initial value cinit2according to cinit2=└ns/2┘.2D+ND2D, where nsis the timeslot number, ND2Dis the service ID information, and D is a positive integer; and configured to initialize the sequence generator according to the second initial value cinit2.

According to the transmitter provided by this embodiment of the present disclosure, the transmitter can acquire service ID information from a preset service ID information set or a service ID information set broadcasted by a base station, initialize a sequence generator according to a timeslot number and the service ID information by using cinit2=└ns/2┘.2D+ND2D, scramble to-be-transmitted information according to a pseudo random binary sequence generated by the sequence generator, and transmit scrambled to-be-transmitted information. Compared with the prior art, in this solution, a sequence generator is initialized by using a timeslot number and service ID information, which avoids initializing the sequence generator by using a transmitter ID in combination with some other information, thereby saving a process of notifying a receiver to enable the receiver to acquire the transmitter ID, saving time of data transmission between a device at a network side or a transmitter and the receiver, and reducing occupied transmission resources.

An embodiment of the present disclosure provides a receiver600. As shown inFIG. 8, the receiver600includes: at least one processor601, such as a CPU, at least one communications bus602, a memory603, at least one network interface604or user interface605, and a transmit end606. The communications bus602is configured to implement connections and communication between these components. Optionally, the user interface605includes devices, such as a display, a keyboard, a mouse, and a touch screen. The memory603may include a high-speed RAM memory, and may also include a non-volatile memory, for example, at least one magnetic disk memory. The receive end606is configured to receive scrambled to-be-transmitted information transmitted by a transmitter.

Specifically, the memory603may be configured to store the scrambled to-be-transmitted information that is transmitted by the transmitter and received by the receiver, and may further store descrambled information.

Specifically, the processor601may be configured to receive the scrambled to-be-transmitted information transmitted by the transmitter, where the scrambled to-be-transmitted information is to-be-transmitted information scrambled by the transmitter according to a pseudo random binary sequence generated by a sequence generator, and the pseudo random binary sequence is generated by the transmitter by initializing the sequence generator according to a synchronization source ID, a group ID, and a timeslot number; and configured to descramble the scrambled to-be-transmitted information transmitted by the transmitter.

According to the receiver provided by this embodiment of the present disclosure, a transmitter can initialize a sequence generator according to a synchronization source ID, a group ID, and a timeslot number, scramble to-be-transmitted information according to a pseudo random binary sequence generated by the sequence generator, and transmit scrambled to-be-transmitted information; and the receiver can receive the scrambled to-be-transmitted information transmitted by the transmitter, and descramble the scrambled to-be-transmitted information transmitted by the transmitter. Compared with the prior art, in this solution, a sequence generator is initialized by using a synchronization source ID, a group ID, and a timeslot number, which avoids initializing the sequence generator by using a transmitter ID in combination with some other information, thereby saving a process of notifying a receiver to enable the receiver to acquire the transmitter ID, saving time of data transmission between a transmitter and the receiver, and reducing occupied transmission resources.

An embodiment of the present disclosure provides an information transmission method, which is used for a transmitter and as shown inFIG. 9, includes:

701. Initialize a sequence generator according to a synchronization source ID, a group ID, and a timeslot number.

A synchronization source is a synchronization reference source of the transmitter. In a working scenario with network coverage, a base station generally serves as a synchronization source, and in this case, the synchronization source ID is a cell ID; in a working scenario without network coverage, a terminal device may serve as a synchronization source, and in this case, the synchronization source ID is a UE ID; and in a working scenario with partial network coverage, a terminal device within network coverage uses a base station as a synchronization source, and a terminal device out of the network coverage may use, by referring to a synchronization condition of the terminal device within the network coverage, a synchronization source ID of the terminal device within the network coverage, that is, a cell ID corresponding to the terminal device within the network coverage.

The group ID is an identification number shared by terminal devices that participate in D2D communication. In a working scenario with network coverage, the timeslot number is a sequence number of a time unit, and a value may be selected from a total of 20 numeric values from 0 to 19; in a working scenario with partial network coverage, one group of terminal devices participating in D2D communication can refer to network timing, and still can use a timeslot number of a network; and in a working scenario without network coverage, a time division method similar to that in the working scenario with network coverage or with partial network coverage may be used, that is, a timeslot number of a network is used, where the time division method may also use non-timeslot division, that is, the sequence generator is initialized without using the timeslot number of the network.

702. Scramble to-be-transmitted information according to a pseudo random binary sequence generated by the sequence generator.

The pseudo random binary sequence generated by the sequence generator is multiplied by the to-be-transmitted information, so as to scramble the to-be-transmitted information.

According to the information transmission method provided by this embodiment of the present disclosure, a transmitter can initialize a sequence generator according to a synchronization source ID, a group ID, and a timeslot number, scramble to-be-transmitted information according to a pseudo random binary sequence generated by the sequence generator, and transmit scrambled to-be-transmitted information. Compared with the prior art, in this solution, a sequence generator is initialized by using a synchronization source ID, a group ID, and a timeslot number, which avoids initializing the sequence generator by using a transmitter ID in combination with some other information, thereby saving a process of notifying a receiver to enable the receiver to acquire the transmitter ID, saving time of data transmission between a device at a network side or a transmitter and the receiver, and reducing occupied transmission resources.

Further, based on the solution shown inFIG. 9, this embodiment of the present disclosure further provides a specific solution to the information transmission method to further detail an implementation process of701shown inFIG. 9, and 701may be specifically implemented in7011and7012. As shown inFIG. 10, 701includes:

7011. Acquire a first initial value cinit1according to cinit1=ngroupID.2A+q.2B+└ns/2┘.2C+NsID.

The foregoing calculation splices information, such as the group ID, a sequence number of a codeword, the timeslot number and the synchronization source ID, to form an N-bit binary numeric value string to initialize the sequence generator, where ngroupIDis the group ID, q is the sequence number of the codeword, nsis the timeslot number, and NsIDis the synchronization source ID. A terminal device generally receives or transmits one codeword or two codewords, the sequence number of the codeword may have two available values, 0 and 1, which represent that scrambled information is the zeroth codeword or the first codeword. Values of A, B, C and N herein may vary according to an actual situation, specifically, the values of A, B and C are determined by the number of bits of information, such as the group ID, the sequence number of the codeword, the timeslot number and the synchronization source ID. For example, NsIDis 9 bits, then C=9; if a value range of nsis 0 to 19, nsis an integer, and └ns/2┘ is a rounded-down operation on a numeric value of ns/2, a value of └ns/2┘ may be indicated by a 4-bit binary number, and B=C+4=9+4=13; if the value of q is 0 or 1, the value of q may be indicated by a 1-bit binary number, and A=B+1=9+4+1=13+1=14.

Optionally, a value of a bit of the codeword may be constantly 1, and the bit of the codeword is used to indicate the sequence number of the codeword. In a conventional network data transmission scenario, a terminal device receives or transmits a maximum of two codewords, that is, the terminal device receives or transmits one codeword or two codewords, and therefore the terminal device inevitably receives or transmits a codeword whose sequence number is 0. The bit of the codeword is constantly 1, which indicates that a codeword whose sequence number is 1 is received or transmitted, thereby making a value of a pseudo random binary sequence generated by a sequence generator in D2D communication to be distinguished from a value of a pseudo random binary sequence in network data communication as far as possible.

7012. Initialize a sequence generator by using the first initial value cinit1.

The acquired first initial value cinit1is input to the sequence generator, and the sequence generator is initialized according to a generation rule that is of the pseudo random binary sequence and is in the sequence generator.

According to the information transmission method provided by this embodiment of the present disclosure, a transmitter can initialize a sequence generator according to a synchronization source ID, a group ID, a timeslot number and a formula cinit1=ngroupID.2A+q.2B+└ns/2┘.2C+NsIDby using an initial value cinit1, scramble to-be-transmitted information according to a pseudo random binary sequence generated by the sequence generator, and transmit scrambled to-be-transmitted information. Compared with the prior art, in this solution, information such as the synchronization source ID, the group ID, and the timeslot number are spliced to form a binary numeric value string by using a synchronization source ID, a group ID, and a timeslot number, and a sequence generator is initialized by using this binary numeric value string, which avoids initializing the sequence generator by using a transmitter ID in combination with some other information, thereby saving a process of notifying a receiver to enable the receiver to acquire the transmitter ID, saving time of data transmission between a device at a network side or a transmitter and the receiver, and reducing occupied transmission resources.

An embodiment of the present disclosure further provides an information transmission method which is used for a transmitter. As shown inFIG. 11, the method includes:

801. Initialize a sequence generator according to service ID information and a timeslot number.

The service ID information is service identification information for D2D communication, and can be used to identify various D2D communication services. The service ID information may be acquired from a preset service ID information set, and may also be acquired from a service ID information set broadcasted by a base station. Specifically, an universal service ID information set for D2D communication may be specified and set when a terminal device is delivered, and the service ID information is acquired from the universal service ID information set for the D2D communication, where the terminal device includes a transmitter and a receiver, the transmitter selects service ID information corresponding to a service of the transmitter from the service ID information set according to the service of the transmitter, and when receiving information, the receiver attempts to descramble each piece of service ID information in the service ID information set one by one according to the fixed service ID information set specified and set when the terminal device is delivered. An universal service ID information set, for D2D communication, of a terminal device may also be broadcasted by a base station, and the service ID information is acquired from the universal service ID information set that is for the D2D communication, of the terminal device, and broadcasted by the base station, where the terminal device includes a transmitter and a receiver, the transmitter selects service ID information corresponding to a service of the transmitter from the service ID information set broadcasted by the base station, and when receiving scrambled to-be-transmitted information transmitted by the transmitter, the receiver attempts to descramble each piece of service ID information in the service ID information set one by one according to the service ID information set broadcasted by the base station. Optionally, the service ID information may also be agreed upon in advance before communication by terminal devices participating in D2D communication, and the service ID information agreed upon in advance is used in a communication process.

In a working scenario with network coverage, the timeslot number is a sequence number of a time unit, and a value may be selected from a total of 20 numeric values from 0 to 19. In a working scenario with partial network coverage, one group of terminal devices participating in D2D communication can refer to network timing, and still can use a timeslot number of a network; and in a working scenario without network coverage, a time division method similar to that in the working scenario with network coverage or with partial network coverage may be used, that is, a timeslot number of a network is used, where the time division method may also use non-timeslot division, that is, the sequence generator is initialized without using the timeslot number of the network.

802. Scramble to-be-transmitted information according to a pseudo random binary sequence generated by the sequence generator.

The pseudo random binary sequence generated by the sequence generator is multiplied by the to-be-transmitted information, so as to scramble the to-be-transmitted information.

According to the information transmission method further provided by this embodiment of the present disclosure, a transmitter can acquire service ID information, initialize a sequence generator according to a timeslot number and the service ID information, scramble to-be-transmitted information according to a pseudo random binary sequence generated by the sequence generator, and transmit scrambled to-be-transmitted information. Compared with the prior art, in this solution, a sequence generator is initialized by using a timeslot number and service ID information, which avoids initializing the sequence generator by using a transmitter ID in combination with some other information, thereby saving a process of notifying a receiver to enable the receiver to acquire the transmitter ID, saving time of data transmission between a device at a network side or a transmitter and the receiver, and reducing occupied transmission resources.

Further, based on the solution shown inFIG. 11, this embodiment of the present disclosure further provides a specific solution to the information transmission method to further detail an implementation process of801shown inFIG. 11, and 801may be specifically implemented in8011and8012. As shown inFIG. 12, 801includes:

8011. Acquire a second initial value cinit2according to cinit2=└ns/2┘.2D+ND2D,

where nsis the timeslot number, ND2Dis the service ID information, and D is a positive integer. D is the number of bits of the service ID information, for example, the service ID information occupies 9 bits, then D=9.

8012. Initialize a sequence generator by using the second initial value cinit2.

The acquired second initial value cinit2is input to the sequence generator, and the sequence generator is initialized according to a generation rule that is of the pseudo random binary sequence and is in the sequence generator.

According to the information transmission method further provided by this embodiment of the present disclosure, a transmitter can acquire service ID information from a preset service ID information set or a service ID information set broadcasted by a base station, initialize a sequence generator according to a timeslot number and the service ID information by using cinit2=└ns/2┘.2D+ND2D, scramble to-be-transmitted information according to a pseudo random binary sequence generated by the sequence generator, and transmit scrambled to-be-transmitted information. Compared with the prior art, in this solution, a sequence generator is initialized by using a timeslot number and service ID information, which avoids initializing the sequence generator by using a transmitter ID in combination with some other information, thereby saving a process of notifying a receiver to enable the receiver to acquire the transmitter ID, saving time of data transmission between a device at a network side or a transmitter and the receiver, and reducing occupied transmission resources.

An embodiment of the present disclosure provides an information transmission method which is used for a receiver. As shown inFIG. 13, the method includes:

901. Receive scrambled to-be-transmitted information transmitted by a transmitter.

The scrambled to-be-transmitted information is to-be-transmitted information scrambled by the transmitter according to a pseudo random binary sequence generated by a sequence generator, and the pseudo random binary sequence is generated by the transmitter by initializing the sequence generator according to a synchronization source ID, a group ID, and a timeslot number.

902. Descramble the scrambled to-be-transmitted information transmitted by the transmitter.

The receiver performs the descrambling according to the pseudo random binary sequence generated by the sequence generator initialized by the transmitter.

According to the information transmission method provided by this embodiment of the present disclosure, a transmitter can initialize a sequence generator according to a synchronization source ID, a group ID, and a timeslot number, scramble to-be-transmitted information according to a pseudo random binary sequence generated by the sequence generator, and transmit scrambled to-be-transmitted information; and a receiver can receive the scrambled to-be-transmitted information transmitted by the transmitter, and descramble the scrambled to-be-transmitted information transmitted by the transmitter. Compared with the prior art, in this solution, a sequence generator is initialized by using a synchronization source ID, a group ID, and a timeslot number, which avoids initializing the sequence generator by using a transmitter ID in combination with some other information, thereby saving a process of notifying a receiver to enable the receiver to acquire the transmitter ID, saving time of data transmission between a transmitter and the receiver, and reducing occupied transmission resources.

The embodiments in this specification are all described in a progressive manner, for same or similar parts in the embodiments, reference may be made to these embodiments, and each embodiment focuses on a difference from other embodiments. Especially, a device embodiment is basically similar to a method embodiment, and therefore is described briefly; for related parts, reference may be made to partial descriptions in the method embodiment.