CN109889863A - A kind of scrambling code acquisition methods and relevant apparatus - Google Patents

A kind of scrambling code acquisition methods and relevant apparatus Download PDF

Info

Publication number
CN109889863A
CN109889863A CN201910110403.4A CN201910110403A CN109889863A CN 109889863 A CN109889863 A CN 109889863A CN 201910110403 A CN201910110403 A CN 201910110403A CN 109889863 A CN109889863 A CN 109889863A
Authority
CN
China
Prior art keywords
data
scrambling code
effective
primary
primary data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910110403.4A
Other languages
Chinese (zh)
Inventor
向兴富
胡德才
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan Goke Microelectronics Co Ltd
Original Assignee
Hunan Goke Microelectronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hunan Goke Microelectronics Co Ltd filed Critical Hunan Goke Microelectronics Co Ltd
Priority to CN201910110403.4A priority Critical patent/CN109889863A/en
Publication of CN109889863A publication Critical patent/CN109889863A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the present invention proposes a kind of scrambling code acquisition methods and relevant apparatus, is related to communicating codec domain.This method comprises: obtaining the initialization sequence including N primary datas, at least one corresponding service bit primary data of n-th primary data is obtained, n-th effective scrambling code position data is determined according at least one corresponding service bit primary data of n-th primary data.Based on N and each effective scrambling code position data, effective scrambler sequence is constituted.Due to can once determine corresponding effective scrambling code position data according at least one corresponding service bit primary data of each primary data, to in the calculating process of effective scrambler sequence, the wheel calculating that calculation amount is N, which need to only be carried out, can be obtained effective scrambler sequence, it avoids carrying out repeating the calculating taken turns to effective scrambler sequence more, therefore it is complicated to efficiently solve calculating, the problem of inefficiency, logical resource consumption.

Description

A kind of scrambling code acquisition methods and relevant apparatus
Technical field
The present invention relates to communication codec domains, in particular to a kind of scrambling code acquisition methods and relevant apparatus.
Background technique
In a communications system, it will usually carry out scrambling processing in code stream of the transmitting terminal to transmission, and in receiving end to scrambling Code stream carry out scramble process.Output code flow is subjected to upset processing, guarantees that the probability of " 0 " and " 1 " in output code flow is basic It is equal, to improve transmission performance.Such as (High Definition Multimedia Interface, high definition are more in HDMI Media interface) 2.0A standard in increased scrambling newly, reduce TMDS (Transition-minimized Differential signaling minimizes differential signal transmission) channel 0, channel 1, the electromagnetic interference between channel 2 (Electromagnetic Interference, EMI) and radio frequency interference (Radio Frequency Interference, RFI)。
It is existing realize output code flow scrambling and to scrambling code stream descrambling function when, exist and need foundation LFSR (Linear Feedback Shift Register, linear feedback shift register) repeats take turns more and calculates, thus Cause to calculate it is complicated, the problems such as inefficiency, logical resource consumption.
Summary of the invention
In view of this, the embodiment of the present invention is designed to provide a kind of scrambling code acquisition methods and relevant apparatus, to solve The above problem.
Technical solution used in the embodiment of the present invention is as follows:
In a first aspect, the embodiment of the present invention proposes a kind of scrambling code acquisition methods, this method comprises: initialization sequence is obtained, Wherein, initialization sequence includes N primary datas.At least one corresponding service bit primary data of n-th primary data is obtained, N is the positive integer no more than N, and service bit primary data is a primary data in N primary datas.It is initial according to n-th At least one corresponding service bit primary data of data determines n-th effective scrambling code position data.Based on N and each effective scrambling code Position data, constitute effective scrambler sequence, wherein effective scrambler sequence includes N effective scrambling code position data.
Second aspect, the embodiment of the present invention also propose a kind of scrambling code acquisition device, comprising: receiving module, for obtaining just Beginningization sequence, wherein initialization sequence includes N primary datas.Obtain at least one corresponding service bit of n-th primary data Primary data, n are the positive integer no more than N, and service bit primary data is a primary data in N primary datas.Processing Module, for determining n-th effective scrambling code digit according at least one corresponding service bit primary data of n-th primary data According to.Based on N and each effective scrambling code position data, effective scrambler sequence is constituted, wherein effective scrambler sequence includes N effective Scrambling code position data.
The third aspect, the embodiment of the present invention also propose a kind of communication data sending device, including scrambling code acquisition device, output Data processing equipment, communication interface, communication interface are connect with communication data receiving device.Scrambling code acquisition device is used for according to above-mentioned Scrambling code acquisition methods obtain effective scrambler sequence.Output data processing unit is for obtaining data to be output, according to effective scrambling code Sequence is treated output data and is scrambled, obtain scrambling output data, by communication interface will scramble output data be sent to it is logical Letter data receiving device.
Fourth aspect, the embodiment of the present invention also propose a kind of communication data receiving device, including scrambling code acquisition device, input Data processing equipment, communication interface, communication interface are connect with communication data sending device.Scrambling code acquisition device is used for according to above-mentioned Scrambling code acquisition methods obtain effective scrambler sequence, and input data processing unit is used to obtain scrambling input data from communication interface; Scrambling input data is descrambled according to effective scrambler sequence, obtains input data.
5th aspect, the embodiment of the present invention also propose a kind of communication system, comprising: communication data sending device and communication Data receiver, communication data sending device are connect with communication data receiving device.Communication data sending device and communication Data receiver is used to obtain effective scrambler sequence according to above-mentioned scrambling code acquisition methods.Communication data sending device is used for root Output data is treated according to effective scrambler sequence to be scrambled, scrambling output data is obtained, and scrambling output data is sent to communication Data receiver.Communication data receiving device exports scrambling for receiving scrambling output data, according to effective scrambler sequence Data are descrambled, and input data is obtained.
Scrambling code acquisition methods and relevant apparatus provided by the embodiment of the present invention, this method comprises: initialization sequence is obtained, Wherein, initialization sequence includes N primary datas.At least one corresponding service bit primary data of n-th primary data is obtained, N is the positive integer no more than N, and service bit primary data is a primary data in N primary datas.It is initial according to n-th At least one corresponding service bit primary data of data determines n-th effective scrambling code position data.Based on N and each effective scrambling code Position data, constitute effective scrambler sequence, wherein effective scrambler sequence includes N effective scrambling code position data.Communication system includes logical Letter data sending device and communication data receiving device, the equipment and device can pass through above-mentioned scrambling code acquisition methods Realize the acquisition of scrambling code.Due to according at least one corresponding service bit primary data of each primary data can once really Corresponding effective scrambling code position data are made, to need to only carry out one that calculation amount is N in the calculating process of effective scrambler sequence Wheel, which calculates, can be obtained effective scrambler sequence, avoids carrying out repeating the calculating taken turns to effective scrambler sequence more, therefore efficiently solves The problem of calculating is complicated, inefficiency, logical resource consumption.
Other features and advantages of the present invention will be illustrated in subsequent specification, also, partly be become from specification It is clear that by implementing understanding of the embodiment of the present invention.The objectives and other advantages of the invention can be by written theory Specifically noted structure is achieved and obtained in bright book, claims and attached drawing.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 shows the schematic diagram of existing communication system.
Fig. 2 shows the connection schematic diagrams of LFSR based on HDMI2.0A standard provided by the embodiment of the present invention a kind of.
Fig. 3 shows a kind of flow diagram of scrambling code acquisition methods provided by the embodiment of the present invention.
Fig. 4 shows the flow diagram of another kind scrambling code acquisition methods provided by the embodiment of the present invention.
Fig. 5 A shows a kind of connection signal of first part's shift register of LFSR provided by the embodiment of the present invention Figure.
Fig. 5 B shows a kind of connection signal of first part's shift register of LFSR provided by the embodiment of the present invention Figure.
Fig. 5 C shows a kind of connection signal of the second part shift register of LFSR provided by the embodiment of the present invention Figure.
Fig. 5 D shows a kind of connection signal of the Part III shift register of LFSR provided by the embodiment of the present invention Figure.
Fig. 5 E shows a kind of connection signal of the Part IV shift register of LFSR provided by the embodiment of the present invention Figure.
Fig. 5 F shows a kind of connection signal of the Part V shift register of LFSR provided by the embodiment of the present invention Figure.
Fig. 6 shows a kind of schematic diagram of scrambling code acquisition device provided by the embodiment of the present invention.
Fig. 7 shows a kind of schematic diagram of communication data sending device provided by the embodiment of the present invention.
Fig. 8 shows a kind of schematic diagram of communication data receiving device provided by the embodiment of the present invention.
Fig. 9 shows a kind of schematic diagram of communication system provided by the embodiment of the present invention.
Icon: 100- existing communication system;110- data sending terminal;120- data receiver;200- scrambling code acquisition device; 210- receiving module;220- processing module;300- communication data sending device;310- the first scrambling code acquisition device;320- output Data processing equipment;The first communication interface of 330-;400- communication data receiving device;410- the second scrambling code acquisition device;420- Input data processing unit;The second communication interface of 430-;500- communication system.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete Ground description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause This, is not intended to limit claimed invention to the detailed description of the embodiment of the present invention provided in the accompanying drawings below Range, but it is merely representative of selected embodiment of the invention.Based on the embodiment of the present invention, those skilled in the art are not doing Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
Fig. 1 is please referred to, is the schematic diagram of existing communication system 100.Existing communication system 100 includes data sending terminal 110 And data receiver 120, data sending terminal 110 and data receiver 120 communicate to connect.In data sending terminal 110 and data During receiving end 120 carries out data interaction, data sending terminal 110 obtains multiple effective scrambler sequences and picture number first Code image data stream is scrambled according to code stream, and according to multiple effective scrambler sequences, obtains scrambling image code stream, then will be added It disturbs image code stream and is sent to data receiver 120.Data receiver 120 obtains identical with data sending terminal 110 multiple effective Scrambler sequence, and after receiving scrambling image code stream, scrambling image code stream is descrambled according to multiple effective scrambler sequences, Obtain image data code stream.In above-mentioned data exchange process, data sending terminal 110 and data receiver 120 can be obtained Multiple effective scrambler sequences are taken, to guarantee that output code flow can be carried out upset processing by data sending terminal, are made in output code flow " 0 " and " 1 " probability it is of substantially equal, and guarantee that data receiver correctly descrambles scrambled code stream, to improve The transmission performance of communication system.
Specifically, by taking data sending terminal 110 is connect with data receiver 120 by HDMI2.0A interface as an example, the standard Regulation, data sending terminal 110 and data receiver 120 receive and dispatch bitrate range between 3.4Gbps to 6.0Gbps when It waits, both sides must scramble to data or scramble process.When being lower than 3.4Gbps, if both sides support to scramble or descramble, Both sides can scramble to data or scramble process.When both sides scramble or descramble to data, require by initial Change sequence and LFSR obtains multiple effective scrambler sequences.
For obtaining an effective scrambler sequence, initialization sequence is substituted into the corresponding calculation formula of LFSR obtain first To the first output sequence, and the first output sequence is substituted into the corresponding calculation formula of LFSR obtain the second output sequence again, weight After multiple default wheel number (wherein, the default wheel number of HDMI2.0A regulation is 8 wheels), an effective scrambler sequence, the calculating can be just obtained Mode needs to carry out more wheel calculating using initialization sequence as initial value and according to the corresponding calculation formula of LFSR.
As shown in Fig. 2, the corresponding calculation formula of the LFSR is as follows: Q1=D16, Q2=D1, Q3=D2, Q4=D3, Q5= D4, Q6=D5, Q7=D6, Q8=D7, Q9=D8, Q10=D9, Q11=D10, Q12=D11 ⊕ D16, Q13=D12 ⊕ D16, Q14=D13 ⊕ D16, Q15=D14, Q16=D15, wherein " Q1~Q16 " successively indicates the 1st effective scrambling code position data to the 16 effective scrambling code position data, " D1~D16 " successively indicate the 1st primary data to the 16th primary data.Above-mentioned calculating is public Corresponding first program code of formula is accomplished by
LFSR_unit (D [16:1], Q [16:1])
{ Q1=D16;Q2=D1;Q3=D2;Q4=D3;Q5=D4;Q6=D5;Q7=D6;Q8=D7;Q9=D8;Q10 =D9;Q11=D10;Q12=D11 ⊕ D16;Q13=D12 ⊕ D16;Q14=D13 ⊕ D16;Q15=D14;Q16=D15;}
The standard of HDMI2.0A provides, needs to carry out 8 wheels using initialization sequence as initial value and according to above procedure code Cycle calculations can just obtain an effective scrambler sequence, and corresponding second program code of 8 wheel cycle calculations is as follows:
LFSR_8 (D_in [16:1], LFSR_out [16:1])
{ LFSR_unit (D_in [16:1], Q_out1 [16:1]);
LFSR_unit (Q_out1 [16:1], Q_out1 [16:1]);
LFSR_unit (Q_out2 [16:1], Q_out2 [16:1]);
LFSR_unit (Q_out3 [16:1], Q_out3 [16:1]);
LFSR_unit (Q_out4 [16:1], Q_out4 [16:1]);
LFSR_unit (Q_out5 [16:1], Q_out5 [16:1]);
LFSR_unit (Q_out6 [16:1], Q_out6 [16:1]);
LFSR_unit (Q_out7 [16:1], Q_out7 [16:1]);
LFSR_out=Q_out8;}}
Assuming that initialization sequence is 16 digits " FFFF " of 16 systems, take " FFFF " as the value of " D_in [16:1] ", substitute into After above-mentioned second program code is calculated, first effective scrambler sequence " 77EB " is obtained, then by " 77EB " conduct " D_in The value of [16:1] " obtains second effective scrambler sequence " 4B7C " after above-mentioned second program code of substitution is calculated, thus, Data receiver can obtain multiple effectively disturbing according to initialization sequence and above-mentioned second program code with data sending terminal Code sequence.
It is appreciated that above-mentioned technology is when realizing that data receiver and data sending terminal obtain multiple effective scrambler sequences, It needs to carry out according to LFSR and initialization sequence to repeat more wheels to calculate that an effective scrambler sequence could be obtained, the acquisition is effective The mode of scrambler sequence calculates complexity, inefficiency, and logical resource consumption.
In order to solve the above-mentioned technical problem, a kind of possible implementation of scrambling code acquisition methods is given below, specifically, It referring to figure 3., is a kind of flow diagram of scrambling code acquisition methods provided by the embodiment of the present invention.The executing subject of this method For a kind of scrambling code acquisition device, method includes the following steps:
S11 obtains initialization sequence, wherein initialization sequence includes N primary datas, obtains n-th primary data pair At least one the service bit primary data answered;
Wherein, n is the positive integer no more than N, and service bit primary data is a primary data in N primary datas.
S12 determines n-th effective scrambling code position according at least one corresponding service bit primary data of n-th primary data Data.
S13 constitutes effective scrambler sequence based on N and each effective scrambling code position data;
Wherein, effective scrambler sequence includes N effective scrambling code position data.
Specifically, obtaining pre-set initialization sequence, which includes N primary datas, and N is certainly So number, such as when N is 16, which includes 16 binary primary datas.Then n-th primary data is obtained At least one corresponding service bit primary data, such as when N is 16 and n is 1, at the beginning of the 1st corresponding service bit of primary data Beginning data may include the 9th primary data, the 12nd primary data, the 13rd primary data, the 14th primary data, the 15th Position primary data.Then n-th effective scrambling code is determined according at least one corresponding service bit primary data of n-th primary data Position data, in other words, the value based on n can calculate separately to obtain the corresponding effective scrambling code digit of each primary data According to, to constitute effective scrambler sequence, for example, n from 1~16 successively value when, the 1st~16 initial number can be got respectively According to corresponding effective scrambling code position data.I.e. based on the value of N and each effective scrambling code position data, effective scrambling code sequence can be constituted Column, wherein effective scrambler sequence includes N effective scrambling code position data.It is appreciated that when applying to LFSR, based on n's The calculating that value can calculate separately to obtain the corresponding effective scrambling code position data of each primary data can be only by primary meter The calculation amount for obtaining, and specifically calculating is determined by the value of N.
Based on embodiment provided by above-mentioned Fig. 3, due to according at least one corresponding service bit of each primary data Primary data can once determine corresponding effective scrambling code position data, thus in the calculating process of effective scrambler sequence, The wheel calculating that calculation amount is N, which need to only be carried out, can be obtained effective scrambler sequence, avoid carrying out repeating to effective scrambler sequence more The calculating of wheel.
On the basis of Fig. 3, a kind of possible implementation of complete scheme is given below, specifically, referring to figure 4., being The flow diagram of another kind scrambling code acquisition methods provided by the embodiment of the present invention.It should be noted that the embodiment of the present invention Another scrambling code acquisition methods of offer are not limitation with Fig. 4 and specific order below, it should be understood that in other implementations In example, the sequence of another kind scrambling code acquisition methods part step provided in an embodiment of the present invention can phase according to actual needs Part steps interchangeable or therein also can be omitted or delete.The executing subject of the another kind scrambling code acquisition methods is one Kind scrambling code acquisition device, below will be described in detail detailed process shown in Fig. 4.
Step S110 obtains initialization sequence, wherein initialization sequence includes N primary datas, obtains n-th initially At least one corresponding service bit primary data of data;
Wherein, n is the positive integer no more than N, and service bit primary data is a primary data in N primary datas.
Specifically, obtaining effective scrambling code sequence so that the scrambling code acquisition device obtains scrambling code according to HDMI2.0A standard as an example Before column, the initialization sequence in each channel TMDS is loaded, wherein the initialization sequence that the channel TMDS 0 loads is 16 systems 16 digits " FFFF ", the initialization sequence that loads of the channel TMDS 1 be that 16 digits " FFFE " of 16 systems, the channel TMDS 2 load Initialization sequence be 16 systems 16 digits " FFFD ".
It is public further according to the corresponding calculating of pre-set LFSR after the initialization sequence for getting each channel TMDS Formula obtains at least one corresponding service bit primary data of each primary data.For example, the corresponding calculation formula of LFSR is as follows: Q1=D9 ⊕ D12 ⊕ D13 ⊕ D14 ⊕ D15, Q2=D10 ⊕ D13 ⊕ D14 ⊕ D15 ⊕ D16, Q3=D11 ⊕ D14 ⊕ D15 ⊕ D16, Q4=D12 ⊕ D15 ⊕ D16, Q5=D13 ⊕ D16, Q6=D14, Q7=D15, Q8=D16, Q9=D1, Q10=D2, Q11 =D3, Q12=D4 ⊕ D9 ⊕ D12 ⊕ D13 ⊕ D14 ⊕ D15, Q13=D5 ⊕ D9 ⊕ D10 ⊕ D12 ⊕ D16, Q14=D6 ⊕ D9 ⊕ D10 ⊕ D11 ⊕ D12 ⊕ D14 ⊕ D15, Q15=D7 ⊕ D10 ⊕ D11 ⊕ D12 ⊕ D13 ⊕ D15 ⊕ D16, Q16=D8 ⊕ D11 ⊕ D12 ⊕ D13 ⊕ D14 ⊕ D16, wherein " Q1~Q16 " successively indicates the 1st effective scrambling code position data to the 16th effective scrambling code Position data, " D1~D16 " successively indicate the 1st primary data to the 16th primary data.It then can be with according to above-mentioned calculation formula Obtaining the corresponding service bit primary data of the 1st primary data includes the 9th primary data, the 12nd primary data, the 13rd Primary data, the 14th primary data, the 15th primary data;The corresponding service bit primary data of 2nd primary data includes 10th primary data, the 13rd primary data, the 14th primary data, the 15th primary data, the 16th primary data, with This, which analogizes, can determine the corresponding service bit primary data of all primary datas.
Step S121 determines that n-th is effectively disturbed according to the value of the corresponding service bit primary data of n-th primary data Code bit data and/or determine that n-th has according to the exclusive or value of the corresponding at least two service bits primary data of n-th primary data Imitate scrambling code position data.
Specifically, with reference to Fig. 5 A, indicating this hair so that the scrambling code acquisition device obtains scrambling code according to HDMI2.0A standard as an example The input of shift register 6~11 in LFSR provided by bright embodiment connects, which connects corresponding 6th effective scrambling code For position data to the calculation formula of the 11st effective scrambling code position data, which is Q6=D14, Q7=D15, Q8=D16, Q9 =D1, Q10=D2, Q11=D3, wherein " Q6~Q11 " successively indicate the 6th~11 effective scrambling code position data, " D1~D3 " according to The 1st~3 primary data of secondary expression, " D14~D16 " successively indicates the 14th~16 primary data, for example, working as initialization sequence When for " FFFE ", then Q6=1, Q7=1, Q8=0, Q9=1, Q10=1, Q11=1.
It is appreciated that can directly be assisted according to corresponding one for the 6th primary data to the 11st primary data The value of position primary data determines corresponding effective scrambling code position data.
As shown in Fig. 5 B, Fig. 5 C, Fig. 5 D, Fig. 5 E and Fig. 5 F, the shifting in LFSR provided by the embodiment of the present invention is indicated The input connection of bit register 1~5 and 12~16, the input connect corresponding 1st effective scrambling code position data to the 5th it is effective Scrambling code digit accordingly and calculation formula of the 12nd effective scrambling code position data to the 16th effective scrambling code position data, the calculation formula For Q1=D9 ⊕ D12 ⊕ D13 ⊕ D14 ⊕ D15, Q2=D10 ⊕ D13 ⊕ D14 ⊕ D15 ⊕ D16, Q3=D11 ⊕ D14 ⊕ D15 ⊕ D16, Q4=D12 ⊕ D15 ⊕ D16, Q5=D13 ⊕ D16, Q12=D4 ⊕ D9 ⊕ D12 ⊕ D13 ⊕ D14 ⊕ D15, Q13=D5 ⊕ D9 ⊕ D10 ⊕ D12 ⊕ D16, Q14=D6 ⊕ D9 ⊕ D10 ⊕ D11 ⊕ D12 ⊕ D14 ⊕ D15, Q15=D7 ⊕ D10 ⊕ D11 ⊕ D12 ⊕ D13 ⊕ D15 ⊕ D16, Q16=D8 ⊕ D11 ⊕ D12 ⊕ D13 ⊕ D14 ⊕ D16, wherein " Q1~Q5 " successively indicates the 1st~5 Position effectively scrambling code position data, " Q12~Q16 " successively indicates the 12nd~16 effective scrambling code position data, and " D4~D16 " is successively indicated 4th~16 primary data.
It is appreciated that can be according to right for the 1st to the 5th primary data and the 12nd to the 16th primary data The exclusive or values of at least two service bit primary datas answered determines, for example, when initialization sequence is " FFFF ", then Q1=1, Q2 =1, Q3=0, Q4=1, Q5=0, Q12=0, Q13=1, Q14=1, Q15=1, Q16=0.To which " FFFF " is corresponding to be had Imitating scrambler sequence is " 77EB ".
Preferably, LFSR provided by the embodiment of the present invention is provided simultaneously with Fig. 5 A, Fig. 5 B, Fig. 5 C, Fig. 5 D, Fig. 5 E and figure The connection relationship of LFSR in 5F.
Effective scrambler sequence is constituted based on N and each effective scrambling code position data please continue to refer to Fig. 4, step S130.
Specifically, the corresponding effective scrambling code position data of each primary data can successively be determined according to the value of n, from And constitute effective scrambler sequence.
Further, scrambling code is obtained according to HDMI2.0A standard for scrambling code acquisition device, then ordered sequence " 77EB " When substituting into the corresponding calculation formula of the LFSR as initialization sequence, it is " 4B7C " that second effective scrambler sequence, which can be obtained, such as Shown in table 1, above-mentioned S110, S121 and S130 are repeated, and input the effective scrambler sequence obtained every time as next time Initialization sequence, multiple effective scrambler sequences can be obtained.
Table 1
The channel HDMI 0 The channel HDMI 1 The channel HDMI 2
The initialization sequence of LFSR FFFF FFFE FFFD
1st effective scrambler sequence 77EB 76EB 75EB
2nd effective scrambler sequence 4B7C 737D 3B7E
3rd effective scrambler sequence A445 3D78 AE3E
4th effective scrambler sequence DDBD 3838 2EB6
5th effective scrambler sequence EDCE A03D 7628
6th effective scrambler sequence FEFA 45B9 B07D
It should be noted that scrambling code acquisition methods provided by the embodiment of the present invention are not limited in marking according to HDMI2.0A Standard is implemented, it will be understood that in other specific embodiments, can also be derived by the original corresponding calculation formula of LFSR Scrambling code acquisition methods provided by the mode application embodiment of the present invention of deformation reach the wheel meter that need to only carry out that calculation amount is N Effective scrambler sequence can be obtained in calculation, avoids the beneficial effect for carrying out repeating the calculating taken turns to effective scrambler sequence more.
Based on embodiment provided by above-mentioned Fig. 4, due to according at least one corresponding service bit of each primary data Primary data can once determine its corresponding effective scrambling code position data, thus in the calculating process of effective scrambler sequence In, need to only carry out the wheel calculating that calculation amount is N can be obtained an effective scrambler sequence, to avoid to effective scrambler sequence The problem of calculating for repeat more wheels, efficiently solve and calculate complexity, inefficiency, logical resource consumption.
Fig. 6 is please referred to, is a kind of schematic diagram of scrambling code acquisition device 200 provided by the embodiment of the present invention.It needs to illustrate , above-mentioned scrambling code acquisition methods shown in fig. 6 can be performed in scrambling code acquisition device 200 provided by the present embodiment, substantially former Reason and the technical effect generated are identical as preceding method embodiment, to briefly describe, do not refer to part in the present embodiment, can refer to Corresponding contents in preceding method embodiment.It includes receiving receiving module 210 and processing module 220.
Receiving module 210 is used for, and obtains initialization sequence, wherein initialization sequence includes N primary datas, obtains n-th At least one corresponding service bit primary data of position primary data;N is the positive integer no more than N, and service bit primary data is N A primary data in primary data.
It is understood that the receiving module 210 can execute above-mentioned S11 and S110.
Processing module 220 is used for, and determines n-th according at least one corresponding service bit primary data of n-th primary data Position effectively scrambling code position data, and based on N and each effective scrambling code position data, constitute effective scrambler sequence, wherein effectively disturb Code sequence includes N effective scrambling code position data.
It is understood that the processing module 220 can execute above-mentioned S12, S13 and S130.
Processing module 220 is also used to determine n-th according to the value of the corresponding service bit primary data of n-th primary data Position effectively scrambling code position data and/or true according to the exclusive or value of the corresponding at least two service bits primary data of n-th primary data Fixed n-th effective scrambling code position data.
It is understood that the processing module 220 can execute above-mentioned S121.
It should be noted that the scrambling code acquisition device 200 may include as Fig. 5 A, Fig. 5 B, Fig. 5 C, Fig. 5 D, Fig. 5 E and LFSR shown in Fig. 5 F.
Based on scrambling code acquisition device 200 provided by scrambling code acquisition methods, Fig. 6 provided by above-mentioned Fig. 3 and Fig. 4, originally Inventive embodiments also provide a kind of communication data sending device.Fig. 7 is please referred to, is a kind of communication provided by the embodiment of the present invention The schematic diagram of data transmitting equipment 300, the communication data sending device 300 include the first scrambling code acquisition device 310, output data Processing unit 320, the first communication interface 330, the first scrambling code acquisition device 310, output data processing unit 320, first communicate Each element of interface 330 is directly or indirectly electrically connected between each other, to realize the transmission or interaction of data, for example, these yuan Part can be realized by one or more bus or signal wire be electrically connected between each other.And the communication data sending device 300 It is connect by the first communication interface 330 with a communication data receiving device 400.
The first scrambling code acquisition device 310 is used to obtain effective scrambler sequence according to above-mentioned scrambling code acquisition methods, this is defeated Data processing equipment 320 is scrambled for treating output data according to effective scrambler sequence of acquisition out, obtains scrambling output Then data are sent to communication data receiving device 400 for output data is scrambled by the first communication interface 330.
Based on scrambling code acquisition device 200 provided by scrambling code acquisition methods, Fig. 6 provided by above-mentioned Fig. 3 and Fig. 4, originally Inventive embodiments also provide a kind of communication data receiving device.Fig. 8 is please referred to, is a kind of communication provided by the embodiment of the present invention The schematic diagram of data receiver 400, the communication data receiving device 400 include the second scrambling code acquisition device 410, input data Processing unit 420, the second communication interface 430, the second scrambling code acquisition device 410, input data processing unit 420, second communicate Each element of interface 430 is directly or indirectly electrically connected between each other, to realize the transmission or interaction of data, for example, these yuan Part can be realized by one or more bus or signal wire be electrically connected between each other.And the communication data receiving device 400 It is connect by the second communication interface 430 with a communication data sending device 300.
The second scrambling code acquisition device 410 is used to obtain effective scrambler sequence according to above-mentioned scrambling code acquisition methods, this is defeated Enter data processing equipment 420 and inputs number for obtaining the scrambling that communication data sending device 300 is sent from the second communication interface 430 According to, then according to effective scrambler sequence to scrambling input data descramble, obtain input data.
Based on scrambling code acquisition device 200 provided by scrambling code acquisition methods, Fig. 6 provided by above-mentioned Fig. 3 and Fig. 4, originally Inventive embodiments also provide a kind of communication system.Fig. 9 is please referred to, is a kind of communication system 500 provided by the embodiment of the present invention Schematic diagram.The communication system 500 includes communication data sending device 300 and communication data receiving device 400, communication data Sending device 300 is connect with communication data receiving device 400.
The communication data sending device 300 and communication data receiving device 400 are used to be obtained according to above-mentioned scrambling code Method obtains effective scrambler sequence.The communication data sending device 300 be used for according to effective scrambler sequence treat output data into Row scrambling obtains scrambling output data, and scrambling output data is then sent to communication data receiving device 400.The communication number According to receiving device 400 for receiving scrambling output data, then scrambling output data is descrambled according to effective scrambler sequence, Obtain input data.
Based on above-mentioned communication data sending device 300, communication data receiving device 400 and communication system 500, due to root According to scrambling code acquisition methods obtain scrambler sequence, to avoid carrying out effective scrambler sequence repeating the calculating taken turns, effectively solve more The problem of calculating of having determined is complicated, inefficiency, logical resource consumption, and reduce the electromagnetic interference in communication process and radio frequency Interference.
In conclusion scrambling code acquisition methods and relevant apparatus provided by the embodiment of the present invention, this method comprises: obtaining just Beginningization sequence, wherein initialization sequence includes N primary datas.Obtain at least one corresponding service bit of n-th primary data Primary data, n are the positive integer no more than N, and service bit primary data is a primary data in N primary datas.According to At least one corresponding service bit primary data of n-th primary data determines n-th effective scrambling code position data.Based on N and each Position effectively scrambling code position data, constitute effective scrambler sequence, wherein effective scrambler sequence includes N effective scrambling code position data.This is logical Letter system includes communication data sending device and communication data receiving device, and the equipment and device can be by above-mentioned The acquisition of scrambling code acquisition methods realization scrambling code.Due to according at least one corresponding service bit primary data of each primary data Corresponding effective scrambling code position data can be once determined, to only need to carry out in the calculating process of effective scrambler sequence The wheel that calculation amount is N, which calculates, can be obtained effective scrambler sequence, avoids carrying out repeating the calculating taken turns to effective scrambler sequence more, Therefore it is complicated to efficiently solve calculating, the problem of inefficiency, logical resource consumption, and it is dry to reduce the electromagnetism in communication process It disturbs and radio frequency interference.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, apparatus, equipment or computer journey Sequence product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and hardware side The form of the embodiment in face.Moreover, it wherein includes computer available programs that the embodiment of the present invention, which can be used in one or more, Implement in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of code The form of computer program product.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, the flow chart of device, equipment and communication system And/or block diagram describes.It should be understood that each process in flowchart and/or the block diagram can be realized by computer program instructions And/or the combination of the process and/or box in box and flowchart and/or the block diagram.It can provide these computer programs to refer to Enable the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to generate One machine so that by the instruction that the processor of computer or other programmable data processing devices executes generate for realizing The device for the function of being specified in one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In several embodiments provided by the embodiment of the present invention, it should be understood that disclosed device and method, it can also To realize by another way.Device and method embodiment described above is only schematical, for example, in attached drawing Flow chart and block diagram show the system in the cards of the device of multiple embodiments according to the present invention, method and communication system Framework, function and operation.In this regard, each box in flowchart or block diagram can represent a module, program segment or generation A part of code, a part of the module, section or code include one or more for realizing defined logic function Executable instruction.It should also be noted that function marked in the box can also be in some implementations as replacement Occur different from the sequence marked in attached drawing.For example, two continuous boxes can actually be basically executed in parallel, they Sometimes it can also execute in the opposite order, this depends on the function involved.It is also noted that block diagram and or flow chart In each box and the box in block diagram and or flow chart combination, can function or movement as defined in executing it is special Hardware based system is realized, or can be realized using a combination of dedicated hardware and computer instructions.
In addition, each functional module in each embodiment of the present invention can integrate one independent portion of formation together Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.It needs Illustrate, herein, the terms "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, So that the process, method, article or equipment for including a series of elements not only includes those elements, but also including not having The other element being expressly recited, or further include for elements inherent to such a process, method, article, or device.Do not having There is the element limited in the case where more limiting by sentence "including a ...", it is not excluded that in the mistake including the element There is also other identical elements in journey, method, article or equipment.
The foregoing is merely alternative embodiments of the invention, are not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.It should also be noted that similar label and letter exist Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing It is further defined and explained.

Claims (9)

1. a kind of scrambling code acquisition methods, which is characterized in that the described method includes:
Obtain initialization sequence;Wherein, the initialization sequence includes N primary datas;It is corresponding to obtain n-th primary data At least one service bit primary data;The n is the positive integer no more than the N;The service bit primary data is described N A primary data in primary data;
N-th effective scrambling code position is determined according at least one corresponding described service bit primary data of n-th primary data Data;
Based on the N and each effective scrambling code position data, effective scrambler sequence is constituted, wherein effective scrambler sequence packet Containing N effective scrambling code position data.
2. scrambling code acquisition methods as described in claim 1, which is characterized in that described corresponding according to n-th primary data At least one described service bit primary data the step of determining n-th effective scrambling code position data include:
Described n-th effective scrambling code position is determined according to the value of the corresponding service bit primary data of n-th primary data Data;And/or
Determine that described n-th has according to the exclusive or value of the corresponding at least two service bits primary data of n-th primary data Imitate scrambling code position data.
3. scrambling code acquisition methods as claimed in claim 2, which is characterized in that when the initialization sequence includes 16 initial numbers According to when, the value according to the corresponding service bit primary data of n-th primary data determines that described n-th is effectively disturbed The step of code bit data includes:
It completes to calculate according to following calculation formula:
Q6=D14;
Q7=D15;
Q8=D16;
Q9=D1;
Q10=D2;
Q11=D3;Wherein, " Q6~Q11 " successively indicates the 6th~11 effective scrambling code position data, and " D1~D3 " successively indicates the 1st ~3 primary datas, " D14~D16 " successively indicate the 14th~16 primary data;
The exclusive or value according to the corresponding at least two service bits primary data of n-th primary data determines described n-th Position effectively scrambling code position data the step of include:
It completes to calculate according to following calculation formula:
Q1=D9 ⊕ D12 ⊕ D13 ⊕ D14 ⊕ D15;
Q2=D10 ⊕ D13 ⊕ D14 ⊕ D15 ⊕ D16;
Q3=D11 ⊕ D14 ⊕ D15 ⊕ D16;
Q4=D12 ⊕ D15 ⊕ D16;
Q5=D13 ⊕ D16;
Q12=D4 ⊕ D9 ⊕ D12 ⊕ D13 ⊕ D14 ⊕ D15;
Q13=D5 ⊕ D9 ⊕ D10 ⊕ D12 ⊕ D16;
Q14=D6 ⊕ D9 ⊕ D10 ⊕ D11 ⊕ D12 ⊕ D14 ⊕ D15;
Q15=D7 ⊕ D10 ⊕ D11 ⊕ D12 ⊕ D13 ⊕ D15 ⊕ D16;
Q16=D8 ⊕ D11 ⊕ D12 ⊕ D13 ⊕ D14 ⊕ D16;Wherein, " Q1~Q5 " successively indicates the 1st~5 effective scrambling code position Data, " Q12~Q16 " successively indicate the 12nd~16 effective scrambling code position data, and " D4~D16 " is successively indicated at the beginning of the 4th~16 Beginning data.
4. a kind of scrambling code acquisition device characterized by comprising
Receiving module, for obtaining initialization sequence;Wherein, the initialization sequence includes N primary datas;Obtain n-th At least one corresponding service bit primary data of primary data;The n is the positive integer no more than the N;At the beginning of the service bit Beginning data are a primary data in the N primary data;
Processing module, for determining n-th according at least one corresponding described service bit primary data of n-th primary data Position effectively scrambling code position data;Based on the N and each effective scrambling code position data, effective scrambler sequence is constituted, wherein described to have Imitating scrambler sequence includes N effective scrambling code position data.
5. scrambling code acquisition device as claimed in claim 4, which is characterized in that the processing module, for according to described n-th The value of the corresponding service bit primary data of primary data determines described n-th effective scrambling code position data;And/or
Determine that described n-th has according to the exclusive or value of the corresponding at least two service bits primary data of n-th primary data Imitate scrambling code position data.
6. scrambling code acquisition device as claimed in claim 5, which is characterized in that when the initialization sequence includes 16 initial numbers According to when, the processing module according to the value of the corresponding service bit primary data of n-th primary data determine described in When n-th effective scrambling code position data, for completing to calculate according to following calculation formula:
Q6=D14;
Q7=D15;
Q8=D16;
Q9=D1;
Q10=D2;
Q11=D3;Wherein, " Q6~Q11 " successively indicates the 6th~11 effective scrambling code position data, and " D1~D3 " successively indicates the 1st ~3 primary datas, " D14~D16 " successively indicate the 14th~16 primary data;
The processing module is true in the exclusive or value according to the corresponding at least two service bits primary data of n-th primary data When fixed described n-th effective scrambling code position data, for completing to calculate according to following calculation formula:
Wherein, " Q1~Q5 ", which successively indicates the 1st~5, has Scrambling code position data are imitated, " Q12~Q16 " successively indicates the 12nd~16 effective scrambling code position data, and " D4~D16 " successively indicates the 4th ~16 primary datas.
7. a kind of communication data sending device, which is characterized in that including scrambling code acquisition device, output data processing unit, communication Interface, the communication interface are connect with communication data receiving device;
The scrambling code acquisition device is used to obtain effective scrambling code according to scrambling code acquisition methods as described in any one of claims 1-3 Sequence;
The output data processing unit is for obtaining data to be output;According to effective scrambler sequence to the number to be output According to being scrambled, scrambling output data is obtained;The scrambling output data is sent to the communication by the communication interface Data receiver.
8. a kind of communication data receiving device, which is characterized in that including scrambling code acquisition device, input data processing unit, communication Interface, the communication interface are connect with communication data sending device;
The scrambling code acquisition device is used to obtain effective scrambling code according to scrambling code acquisition methods as described in any one of claims 1-3 Sequence;
The input data processing unit is used to obtain scrambling input data from the communication interface;According to effective scrambling code sequence Column descramble the scrambling input data, obtain input data.
9. a kind of communication system characterized by comprising communication data sending device and communication data receiving device, it is described Communication data sending device is connect with the communication data receiving device;
The communication data sending device and the communication data receiving device are used to according to such as any one of claim 1-3 The scrambling code acquisition methods obtain effective scrambler sequence;
The communication data sending device is scrambled for treating output data according to effective scrambler sequence, is scrambled Output data;The scrambling output data is sent to the communication data receiving device;
The communication data receiving device is for receiving the scrambling output data;Added according to effective scrambler sequence to described It disturbs output data to be descrambled, obtains input data.
CN201910110403.4A 2019-02-11 2019-02-11 A kind of scrambling code acquisition methods and relevant apparatus Pending CN109889863A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910110403.4A CN109889863A (en) 2019-02-11 2019-02-11 A kind of scrambling code acquisition methods and relevant apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910110403.4A CN109889863A (en) 2019-02-11 2019-02-11 A kind of scrambling code acquisition methods and relevant apparatus

Publications (1)

Publication Number Publication Date
CN109889863A true CN109889863A (en) 2019-06-14

Family

ID=66927968

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910110403.4A Pending CN109889863A (en) 2019-02-11 2019-02-11 A kind of scrambling code acquisition methods and relevant apparatus

Country Status (1)

Country Link
CN (1) CN109889863A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113115113A (en) * 2021-03-17 2021-07-13 Tcl华星光电技术有限公司 Scrambling device and scrambling method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101034911A (en) * 2007-04-11 2007-09-12 中兴通讯股份有限公司 Method and device for confirming the disturbance code relativity in the code division multi-address system
US7697685B1 (en) * 2003-03-04 2010-04-13 Marvell International Ltd. Data dependent scrambler with reduced overhead
KR20100050706A (en) * 2008-11-06 2010-05-14 주식회사 텔레칩스 Scrambler device by generating array of pseudo random binary number
CN101925056A (en) * 2009-06-10 2010-12-22 华为技术有限公司 Scrambling code sequence generation method, device and system for scrambling or descrambling
CN105119854A (en) * 2008-03-26 2015-12-02 高通股份有限公司 Method and apparatus for scrambling sequence generation in a communication system
CN105790877A (en) * 2014-12-25 2016-07-20 重庆重邮信科通信技术有限公司 Rapid scrambling code generation device and method
CN108988978A (en) * 2017-06-01 2018-12-11 华为技术有限公司 Scrambling code sequence generation method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7697685B1 (en) * 2003-03-04 2010-04-13 Marvell International Ltd. Data dependent scrambler with reduced overhead
CN101034911A (en) * 2007-04-11 2007-09-12 中兴通讯股份有限公司 Method and device for confirming the disturbance code relativity in the code division multi-address system
CN105119854A (en) * 2008-03-26 2015-12-02 高通股份有限公司 Method and apparatus for scrambling sequence generation in a communication system
KR20100050706A (en) * 2008-11-06 2010-05-14 주식회사 텔레칩스 Scrambler device by generating array of pseudo random binary number
CN101925056A (en) * 2009-06-10 2010-12-22 华为技术有限公司 Scrambling code sequence generation method, device and system for scrambling or descrambling
CN105790877A (en) * 2014-12-25 2016-07-20 重庆重邮信科通信技术有限公司 Rapid scrambling code generation device and method
CN108988978A (en) * 2017-06-01 2018-12-11 华为技术有限公司 Scrambling code sequence generation method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113115113A (en) * 2021-03-17 2021-07-13 Tcl华星光电技术有限公司 Scrambling device and scrambling method
CN113115113B (en) * 2021-03-17 2023-05-09 Tcl华星光电技术有限公司 Scrambling device and scrambling method

Similar Documents

Publication Publication Date Title
CN106487737A (en) The method and apparatus of transmission HE-LTF sequence
CN105122343A (en) Methods and apparatus for scrambling symbols over multi-lane serial interfaces
CN106547767A (en) Determine the method and device of video front cover picture
CN105681233A (en) Orthogonal differential vector signaling
EP3174258A1 (en) Method and apparatus for generating and processing frequency division multiple waveform signal
DE102014213539A1 (en) Device and method for memory address encryption
US7627463B2 (en) Method and system for performing channel analysis
CN104065461A (en) Signal sending method and signal sending equipment
EP3012991B1 (en) Method and device for using high-dimensional constellation graph to transmit data
CN107566312A (en) A kind of quadrature amplitude modulation method and device based on loop iteration coding
DE102010002584A1 (en) Passive RFID transponder and RFID reader
CN104956634B (en) Data transmission method, device and system
CN109889863A (en) A kind of scrambling code acquisition methods and relevant apparatus
CN108616471A (en) A kind of signal modulate method and apparatus based on convolutional neural networks
CN108510327A (en) Discount coupon generation method and system
Baptista Chaos for communication
CN101534274B (en) Method for reducing peak-to-average power ratio in mobile communication system and device thereof
CN107113395A (en) For the method and apparatus for the metadata for generating the frequency characteristic information for including image
CN106788993A (en) A kind of encryption communication method, device and electronic equipment
CN106101047B (en) A kind of anonymous communication Waveform generation method based on OFDM
CN107862228A (en) A kind of signal processing method and RFID reader
CN104821154B (en) Control system, method, chip array and the display of data transmission
CN107666453A (en) Transmitter and corresponding method
CN111385234B (en) OFDM radar communication integrated waveform processing method, device, terminal and storage medium
DE102015106256A1 (en) Device and method for transmitting a tag

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190614

RJ01 Rejection of invention patent application after publication