CN112148661A - Data processing method and electronic equipment - Google Patents

Data processing method and electronic equipment Download PDF

Info

Publication number
CN112148661A
CN112148661A CN202011060975.5A CN202011060975A CN112148661A CN 112148661 A CN112148661 A CN 112148661A CN 202011060975 A CN202011060975 A CN 202011060975A CN 112148661 A CN112148661 A CN 112148661A
Authority
CN
China
Prior art keywords
data
code
data code
pseudo
bit
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
CN202011060975.5A
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202011060975.5A priority Critical patent/CN112148661A/en
Publication of CN112148661A publication Critical patent/CN112148661A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0002Serial port, e.g. RS232C

Abstract

The application discloses a data processing method and electronic equipment, and belongs to the technical field of communication. The method comprises the following steps: acquiring a first data code stored in advance; generating a periodic pseudo-random sequence according to the first data code; encrypting a second data code to be sent according to the pseudo-random sequence to obtain a third data code; and obtaining mobile industry processor MIPI data codes based on the third data codes. The embodiment of the application can effectively eliminate the spectrum peak generated periodically by data coding in the data transmission process of the MIPI, thereby reducing the communication interference in the data processing and transmission process through the MIPI.

Description

Data processing method and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to a data processing method and electronic equipment.
Background
A Mobile Industry Processor (MIPI) is a high-speed differential serial transmission Interface, and is widely used in image, display, and radio frequency interfaces. For the MIPI interface, all data is transmitted in units of 8 bits, and most of actual image data is 10 bits, 12 bits, 16 bits, or the like. When image data is transmitted through an MIPI, according to the requirements of the data format of an MIPI protocol layer, original data needs to be converted into data with an 8-bit format.
In the process of implementing the present application, the inventor finds that at least the following problems exist in the prior art: because some bits of the original image data may be fixed data codes, when the original image data is converted into data in an 8-bit format, the fixed data codes periodically appear in the data in the 8-bit format, and the periodicity of the data causes a spectrum spike in the data transmission process of the MIPI interface. It can be seen that in the prior art, communication interference is large in the process of data processing and transmission through the MIPI interface.
Disclosure of Invention
An object of the embodiments of the present application is to provide a data processing method and an electronic device, which can solve the problem in the prior art that communication interference is large in a process of data processing and transmission through an MIPI interface.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a data processing method, where the method includes:
acquiring a first data code stored in advance;
generating a periodic pseudo-random sequence according to the first data code;
encrypting a second data code to be sent according to the pseudo-random sequence to obtain a third data code;
and obtaining mobile industry processor MIPI data codes based on the third data codes.
In a second aspect, an embodiment of the present application provides an apparatus for data processing, including:
the acquisition module is used for acquiring a first data code which is stored in advance;
a generating module, configured to generate a periodic pseudo-random sequence according to the first data encoding;
the processing module is used for encrypting the second data code to be sent according to the pseudo-random sequence to obtain a third data code;
and the output module is used for obtaining the MIPI data code of the mobile industry processor based on the third data code.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, the second data code to be sent is encrypted according to the generated pseudo-random sequence to obtain a third data code, so that the periodic code in the second data code to be sent can be eliminated; and then, MIPI data codes are obtained based on the third data codes, so that periodic codes in the MIPI data codes are eliminated, spectrum spikes generated in the data transmission process of the MIPI interface are eliminated, and communication interference in the data processing transmission process through the MIPI interface is reduced.
Drawings
Fig. 1 is a flowchart of a data processing method provided in an embodiment of the present application;
FIG. 2 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 4 is a second schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The data processing method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, fig. 1 is a flowchart of a data processing method provided in an embodiment of the present application, and as shown in fig. 1, the method includes the following steps:
step 101, obtaining a first data code stored in advance.
In the embodiment of the present application, the pre-stored first data codes may be binary data codes, and may also be octal, decimal, or hexadecimal codes, and are used to generate periodic pseudo-random sequences. The first data code may be stored in a register or other storage medium in advance, or the first data code may be output from a register. The Register may be a Linear Feedback Shift Register (LFSR).
And 102, generating a periodic pseudo-random sequence according to the first data code.
In the step 102, the pseudo-random sequence corresponds to an encryption key in data encryption, and in the embodiment of the present application, in order to ensure the length of the pseudo-random sequence, the pseudo-random sequence may be generated by the first data encoding, and thus is a periodic cyclic encoding sequence.
In this embodiment of the present application, in order to eliminate the periodic code in the second data code to be transmitted, the code length of one period of the pseudo-random sequence needs to be set according to actual needs. In general, assuming that the period of the second data code to be transmitted in which the same code occurs in the same bit is 10 bits, it is necessary to avoid that the code length of one period of the pseudo random sequence is 10 bits or less than 10 bits, so as to prevent the periodic code in the second data code from being unable to be eliminated. Optionally, the code length of one period of the pseudo random sequence may be an integer multiple of 2, 3, or 4 of the period of the second data codes in which the same codes occur at the same bit.
Specifically, the pseudo-random sequence may be generated by an LFSR module, and the LFSR module may serve as a pseudo-random code generator. An n-stage LFSR is composed of n flip-flops and several exclusive-OR gates, and can generate a period of 2 according to defined initial state and sequential logicn-1.
N elements are always stored in the LFSR module, and are called a state, and the state at the initial time is S1=(b1,b2,……,bn) (ii) a The state at the ith time is Si=(bi,bi+1,……,bi+n-1). Wherein i is an integer of 1 to n.
For the LFSR module, the state code at the initial time may be regarded as the first data code, and the sequential logic may be a characteristic polynomial determined by the LFSR structure. For example, when the LFSR of n-step generates the sequence b according to the initial stateiWith a period T of 2n-1When it is called { biIs an n-th order sequence. If LFSR sequence { biSatisfy bn+1=t1b1+t2b2+…+tnbnLet p (x) be 1-t1x1+t2x2+……+tnxn(t0P (x) is called as LFSR characteristic polynomial. Wherein, t1~tnCoefficients representing a linear characteristic polynomial.
Upon completion of step 102 by the LFSR module, the pseudo-random sequence corresponds to a periodic sequence generated by a characteristic polynomial.
And 103, encrypting the second data code to be sent according to the pseudo-random sequence to obtain a third data code.
In step 103, the second data code to be transmitted may be image data transmitted through an MIPI interface, and specifically may be in the form of 8bit, 10bit, 12bit, or 16 bit.
In an embodiment of the present application, if the second data code is 10-bit format and there is a specific code in some bits of each data in the second data code, the second data code may be XXXXXX0110 xxxxxxxx 0110. It can be seen that the code 0110 appears periodically every 10 bits in the second data code.
The third data code is obtained based on the second data code, and may be implemented by a logical operation between the second data code and the pseudo random sequence. For example, the process of encrypting the second data code by using the LFSR module is a process of bitwise xoring the second data code and the pseudo random sequence. After the second data codes are encrypted, the obtained third data codes are pseudo-random codes, so that the periodic codes in the second data codes are eliminated through encryption processing.
It should be noted that, since the number of bits of the second data code may be different from that of the pseudorandom sequence, in the encryption process, it is only necessary to encrypt all codes in the second data code, that is, to consider the encryption as being completed.
In addition, in the embodiment of the present application, a plurality of pseudo random sequences may be generated, and the second data encoding may be encrypted for a plurality of times, so as to ensure that the periodic encoding in the second data encoding is eliminated.
And 104, obtaining mobile industry processor MIPI data codes based on the third data codes.
In the embodiment of the present application, the second data code to be transmitted may be an image data code, and the image data code includes formats such as 8bit, 10bit, 12bit, or 16 bit. In order to enable the image data to be transmitted through the MIPI interface, the third data codes outside the 8-bit format need to be recombined and coded, and finally, the MIPI data codes with the 8-bit format are obtained.
In the embodiment of the application, the second data code to be sent is encrypted according to the generated pseudo-random sequence to obtain a third data code, so that the periodic code in the second data code to be sent can be eliminated; and then, MIPI data codes are obtained based on the third data codes, so that periodic codes in the MIPI data codes are eliminated, spectrum spikes generated in the data transmission process of the MIPI interface are eliminated, and communication interference in the data processing transmission process through the MIPI interface is reduced.
Optionally, the first data code is an N-bit binary code, and at least one bit code is 1; n is a positive integer greater than 1.
In this embodiment, since the first data code is used to generate a pseudo-random sequence, and the pseudo-random sequence can perform a logic operation with a second data code to be transmitted, the first data code can correspond to the second data code and be an N-bit binary code.
Meanwhile, considering that in the process of generating the pseudo random sequence by using the linear feedback shift register, when the first data codes are all 0, the register is in a disabled state, and therefore at least one bit of the first data codes is 1.
Further, the step 102 may specifically include:
generating a period of 2 according to the N-bit binary codeN-1.
In step 102, the period of the pseudo random sequence corresponds to the number of bits of the first data code, and if the number of binary code bits of the first data code is N, 2 can be generated in addition to all 0 codesN-1 stateThe sequence of each state of the pseudo-random sequence may be determined by sequential logic of a register, and the period of the specific sequence is 2NThe pseudo-random sequence of-1 is the above pseudo-random sequence.
It is to be understood that, in order to eliminate the periodicity coding in the second data code to be transmitted, and avoid that the periodicity of the second data code is not completely eliminated due to too few bits of the pseudo random sequence, the bit number N of the binary code may be defined as a larger value. In this embodiment, the number N of bits of the binary code may be greater than or equal to the unit number of bits of the second data code, that is, if the second data code is in a 10-bit format, N may be an integer greater than or equal to 10.
Further, the step 103 may specifically include:
and carrying out exclusive OR on each binary code in the second data code and each binary code in the pseudo-random sequence in sequence to obtain the third data code.
In step 103, the step of encrypting the second data code to be transmitted may be implemented by performing a logic operation on the second data code and the pseudo random sequence, and the periodic code in the second data may be eliminated by the second data code and the random sequence. Specifically, the logic operation may be to perform exclusive or on each binary code in the second data code and each binary code in the pseudo random sequence in sequence to obtain a third data code.
Further, the step 104 may specifically include:
under the condition that the third data code is in a data format other than an 8-bit format, carrying out recombination coding on the third data code according to the 8-bit coding format to obtain the MIPI data code;
and under the condition that the coding format of the third data code is an 8-bit format, the third data code is the MIPI data code.
In the step 104, since the second data code to be transmitted may be in a format of 8bit, 10bit, 12bit, or 16bit, etc., the third data code obtained after the second data code is encrypted is still the code in the original format. Since the MIPI interface can only transmit data codes in the 8-bit format, the third data codes need to be recombined and coded when the third data codes are in a data format other than the 8-bit format.
In the embodiment of the present application, if the third data is encoded into a 10-bit format, each 1 group of 10-bit data can be divided into 2 parts, i.e., lower order P [0:1] and upper order P [2:9 ]. Then, taking 4 groups of data as a period, respectively taking out 4 groups of low-order 2-bit data to form a group of 8-bit data, and taking the remaining 4 groups of high-order 8-bit data as the other 4 groups of 8-bit data, which is equivalent to recombining and coding each 4 groups of 10-bit data into 5 groups of 8-bit data, thereby converting the third data codes into 8-bit formats and transmitting the data through an MIPI interface.
In the embodiment of the present application, the LFSR module may be used to implement the process of the data processing method. For convenience of description, the following describes in detail a specific flow of the data processing method by taking N ═ 3 as an example:
defining N to 3, the data code is obtained as the initial state code of the LFSR module, which is assumed to be 001.
The LFSR module generates 2 in a specific sequence according to the initial state code by sequential logic, i.e. by a characteristic polynomial33-bit data for 1 state: 001, 010, 100, 011, 101, 111, 101, 111.
Encoding First 3 bits of second data output by a First In First Out (FIFO) module, and carrying Out XOR between the First 3 bits of second data and the 3 bits of data output by the LFSR module at the 1 st time bit by bit to obtain a First code after random encryption;
and then repeating the process, coding the 3+1 th bit to the 2 x 3 th bit data output by the FIFO module, and carrying out XOR between the bitwise coding and the 3 nd bit data output by the LFSR module at the 2 nd time to obtain a second code after random encryption.
Then, the above-mentioned process is continuously repeated, if the bit number of the above-mentioned second data code is less than 3 (2)3-1), then will beAnd aligning the second data code with the first bit of the pseudo-random sequence, and carrying out bitwise XOR on the second data code to the last bit, namely finishing the encryption processing.
If the number of bits of the second data code is greater than or equal to 3 (2)3-1), then up to the (2) th of the original data3-2) 3+1 to (2)3-1) 3 bits and LFSR 2 nd3-1) completing a period after the data are subjected to XOR for times, and then repeating the period to the last bit of the second data code, namely, finishing the encryption processing.
Assume that the second data is encoded as: 1010100110011010011011101001100001010110, that is, there is a 0110 code at the end of every 10 bits of data, when the first 24 bits of the second data code are:
101 010 011 001 101 001 101 110;
the first 24 bits of the LFSR module output are encoded as:
001010100011101111101111, respectively; and carrying out bitwise XOR on the two codes to finish a period to obtain a code:
100 000 111 010 000 110 000 001
then, the cycle is repeated, and the last 16 bits of the second data code are:
1001100001010110, respectively; the last 16 bits of the LFSR module output are encoded as:
0010101000111011, respectively; carrying out bitwise XOR on the two codes to obtain a code:
1011001001101101, respectively; the finally output third data is encoded as:
1000001110 1000011000 0001101100 1001101101。
it should be noted that the case where N is 3 is merely a case assumed for convenience of illustration, and N may be an integer greater than or equal to 10 in practical applications, so as to completely eliminate the periodic encoding in the second data encoding.
Finally, under the condition that the coding format of the third data code is an 8-bit format, determining the third data code as the MIPI data code;
and under the condition that the third data code is in a data format other than an 8-bit format, carrying out recombination coding on the third data code according to the 8-bit coding format to obtain the MIPI data code.
Continuing with the example with the second data encoding 1010100110011010011011101001100001010110, at this time, the third data encoding 1000001110100001100000011011001001101101 is re-encoded, i.e., 4 sets of lower 2-bit data 10100010 are taken out to form a set of 8-bit data 10100010, and the remaining 4 sets of upper 8-bit data 10100110101001101010011001010110 are the other 4 sets of 8-bit data. Equivalently, 10-bit data of each 4 groups are recombined and coded into 5 groups of 8-bit data, so that the third data code is converted into an 8-bit format, and finally, the MIPI data code with the 8-bit format is obtained: 0000111000011000011011000110110110100010, it can be seen that the code 0110 no longer occurs periodically in the encoding of MIPI data.
It should be noted that, in the data processing method provided in the embodiment of the present application, the execution main body may be a data processing apparatus, or a control module for executing the data processing method in the data processing apparatus. In the embodiment of the present application, a method for executing data processing by a data processing apparatus is taken as an example, and the data processing apparatus provided in the embodiment of the present application is described.
Referring to fig. 2, fig. 2 is a block diagram of a data processing apparatus 200 according to an embodiment of the present application, and as shown in fig. 2, the data processing apparatus 200 includes:
an obtaining module 210, configured to obtain a first data code stored in advance;
a generating module 220, configured to generate a periodic pseudo-random sequence according to the first data encoding;
the processing module 230 is configured to encrypt the second data code to be sent according to the pseudorandom sequence to obtain a third data code;
and an output module 240, configured to obtain a MIPI data code of the mobile industry processor based on the third data code.
Further, the first data code is an N-bit binary code, and at least one bit code is 1; n is a positive integer greater than 1.
Further, the generating module 220 may specifically include:
a generating unit for generating a period of 2 according to the N-bit binary codeN-1 pseudo-random sequence;
a determination unit for comparing the 2N-a pseudo-random sequence of 1 is determined as the pseudo-random sequence.
Further, the processing module 230 may specifically include:
and the processing unit is used for sequentially carrying out exclusive OR on each binary code in the second data code and each binary code in the pseudo-random sequence to obtain the third data code.
Further, the output module 240 may specifically include:
the encoding unit is used for carrying out recombination encoding on the third data codes according to an 8-bit encoding format under the condition that the third data codes are in a data format other than an 8-bit format, so as to obtain the MIPI data codes;
under the condition that the coding format of the third data code is an 8-bit format, the third data code is the MIPI data code; .
According to the embodiment of the application, the pre-stored first data code is acquired through the acquisition module 210, the generation module 220 generates the periodic pseudo-random sequence according to the first data code, the processing module 230 encrypts the second data code to be sent according to the pseudo-random sequence to obtain the third data code, and the output module 240 obtains the MIPI data code based on the third data code, so that the periodicity of the MIPI data is eliminated, the spectrum spike generated in the data transmission process of the MIPI interface is eliminated, and the communication interference in the data processing transmission process through the MIPI interface is reduced.
The data processing device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The data processing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The data processing apparatus provided in the embodiment of the present application can implement each process implemented in the method embodiment of fig. 1, and is not described here again to avoid repetition.
Optionally, as shown in fig. 3, an electronic device 300 is further provided in this embodiment of the present application, and includes a processor 301, a memory 302, and a program or an instruction stored in the memory 302 and capable of running on the processor 301, where the program or the instruction is executed by the processor 301 to implement each process of the data processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 4 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 400 includes, but is not limited to: radio unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, and processor 410.
Those skilled in the art will appreciate that the electronic device 400 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 410 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 4 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 410 is configured to obtain a first data code stored in advance; generating a periodic pseudo-random sequence according to the first data code; encrypting a second data code to be sent according to the pseudo-random sequence to obtain a third data code; and obtaining mobile industry processor MIPI data codes based on the third data codes.
In the embodiment of the application, the second data code to be sent is encrypted according to the generated pseudo-random sequence to obtain a third data code, so that the periodic code in the second data code to be sent can be eliminated; and then, MIPI data codes are obtained based on the third data codes, so that periodic codes in the MIPI data codes are eliminated, spectrum spikes generated in the data transmission process of the MIPI interface are eliminated, and communication interference in the data processing transmission process through the MIPI interface is reduced.
Optionally, the processor 410 is further configured to generate a period of 2 according to the N-bit binary codeN-1.
The processor 410 is further configured to perform exclusive or on each binary code in the second data code and each binary code in the pseudo random sequence in sequence to obtain the third data code.
The processor 410 is further configured to determine the third data encoding as the MIPI data encoding if the encoding format of the third data encoding is an 8-bit format; and under the condition that the third data code is in a data format other than an 8-bit format, carrying out recombination coding on the third data code according to the 8-bit coding format to obtain the MIPI data code.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the data processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the data processing method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. A data processing method, comprising:
acquiring a first data code stored in advance;
generating a periodic pseudo-random sequence according to the first data code;
encrypting a second data code to be sent according to the pseudo-random sequence to obtain a third data code;
and obtaining mobile industry processor MIPI data codes based on the third data codes.
2. The data processing method of claim 1, wherein the first data encoding is an N-bit binary encoding, and at least one bit encoding is 1; n is a positive integer greater than 1.
3. The data processing method of claim 2, wherein the step of generating a periodic pseudo-random sequence from the first data encoding comprises:
generating a period of 2 according to the N-bit binary codeN-1.
4. The data processing method according to claim 3, wherein the step of encrypting the second data code to be transmitted according to the pseudorandom sequence to obtain a third data code comprises:
and carrying out exclusive OR on each binary code in the second data code and each binary code in the pseudo-random sequence in sequence to obtain the third data code.
5. The data processing method of claim 1, wherein the step of deriving a MIPI data encoding of the mobile industry processor based on the third data encoding comprises:
under the condition that the third data code is in a data format other than an 8-bit format, the third data code is recombined and coded according to the 8-bit coding format to obtain the MIPI data code
And under the condition that the coding format of the third data code is 8 bits, the third data code is the MIPI data code.
6. A data processing apparatus, comprising:
the acquisition module is used for acquiring a first data code which is stored in advance;
a generating module, configured to generate a periodic pseudo-random sequence according to the first data encoding;
the processing module is used for encrypting the second data code to be sent according to the pseudo-random sequence to obtain a third data code;
and the output module is used for obtaining the MIPI data code of the mobile industry processor based on the third data code.
7. The data processing apparatus of claim 6, wherein the first data encoding is an N-bit binary encoding, and at least one bit encoding is 1; n is a positive integer greater than 1.
8. The data processing apparatus of claim 7, wherein the generating module comprises:
a generating unit for generating a period of 2 according to the N-bit binary codeN-1 pseudo-random sequence;
a determination unit for comparing the 2N-a pseudo-random sequence of 1 is determined as the pseudo-random sequence.
9. The data processing apparatus of claim 8, wherein the processing module comprises:
and the processing unit is used for sequentially carrying out exclusive OR on each binary code in the second data code and each binary code in the pseudo-random sequence to obtain the third data code.
10. The data processing apparatus of claim 6, wherein the output module comprises:
the encoding unit is used for carrying out recombination encoding on the third data codes according to an 8-bit encoding format under the condition that the third data codes are in a data format other than an 8-bit format, so as to obtain the MIPI data codes;
and under the condition that the coding format of the third data code is 8 bits, the third data code is the MIPI data code.
11. An electronic device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the data processing method according to any one of claims 1 to 5.
12. A readable storage medium, on which a program or instructions are stored, which program or instructions, when executed by a processor, carry out the steps of the data processing method according to any one of claims 1 to 5.
CN202011060975.5A 2020-09-30 2020-09-30 Data processing method and electronic equipment Pending CN112148661A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011060975.5A CN112148661A (en) 2020-09-30 2020-09-30 Data processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011060975.5A CN112148661A (en) 2020-09-30 2020-09-30 Data processing method and electronic equipment

Publications (1)

Publication Number Publication Date
CN112148661A true CN112148661A (en) 2020-12-29

Family

ID=73951494

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011060975.5A Pending CN112148661A (en) 2020-09-30 2020-09-30 Data processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN112148661A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112835842A (en) * 2021-03-05 2021-05-25 深圳市汇顶科技股份有限公司 Terminal sequence processing method, circuit, chip and electronic terminal
CN112835842B (en) * 2021-03-05 2024-04-30 深圳市汇顶科技股份有限公司 Terminal sequence processing method, circuit, chip and electronic terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491336A (en) * 2013-09-25 2014-01-01 武汉精立电子技术有限公司 Method for converting single-LINK LVDS video signal into MIPI video signal
CN106021163A (en) * 2015-03-30 2016-10-12 洛克威尔自动控制技术股份有限公司 Method and Apparatus for Scrambling a High Speed Data Transmission
CN106055512A (en) * 2016-06-16 2016-10-26 天津安泰微电子技术有限公司 MIPI (Mobile Industry Processor Interface) RAW10 data reorganization coding and reading structure and method
CN109640024A (en) * 2018-12-21 2019-04-16 哈尔滨工业大学(深圳) Three-dimensional shake display device and method based on pseudo random number
CN111010490A (en) * 2019-12-12 2020-04-14 上海众源网络有限公司 Watermark adding method, watermark adding device, electronic equipment and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491336A (en) * 2013-09-25 2014-01-01 武汉精立电子技术有限公司 Method for converting single-LINK LVDS video signal into MIPI video signal
CN106021163A (en) * 2015-03-30 2016-10-12 洛克威尔自动控制技术股份有限公司 Method and Apparatus for Scrambling a High Speed Data Transmission
CN106055512A (en) * 2016-06-16 2016-10-26 天津安泰微电子技术有限公司 MIPI (Mobile Industry Processor Interface) RAW10 data reorganization coding and reading structure and method
CN109640024A (en) * 2018-12-21 2019-04-16 哈尔滨工业大学(深圳) Three-dimensional shake display device and method based on pseudo random number
CN111010490A (en) * 2019-12-12 2020-04-14 上海众源网络有限公司 Watermark adding method, watermark adding device, electronic equipment and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112835842A (en) * 2021-03-05 2021-05-25 深圳市汇顶科技股份有限公司 Terminal sequence processing method, circuit, chip and electronic terminal
CN112835842B (en) * 2021-03-05 2024-04-30 深圳市汇顶科技股份有限公司 Terminal sequence processing method, circuit, chip and electronic terminal

Similar Documents

Publication Publication Date Title
KR101246490B1 (en) A closed galois field cryptographic system
CN108052805B (en) Data encryption and decryption method and device
Awad et al. Efficient image chaotic encryption algorithm with no propagation error
Hu et al. A true random number generator based on mouse movement and chaotic cryptography
RU2124814C1 (en) Method for encoding of digital data
CN111464296A (en) Sequence cipher generation method, data encryption method and data decryption method
CN112398639A (en) Device and method for realizing Fountain lightweight encryption algorithm and application
CN105262557A (en) Method for generating pseudo-random sequences in LTE (Long Term Evolution) system
US20060156187A1 (en) Method and apparatus for multiple polynomial-based random number generation
CN113098675A (en) Binary data encryption system and method based on polynomial complete homomorphism
US6374278B1 (en) Method and apparatus for the generation of statistically random numbers
CN112148661A (en) Data processing method and electronic equipment
US7929694B2 (en) Variable length private key generator and method thereof
CN115567320A (en) Internet of things platform data management method based on micro-service architecture
CN112580077B (en) Information processing method, device, equipment and storage medium
CN113938270A (en) Data encryption method and device capable of flexibly reducing complexity
CN115426111A (en) Data encryption method and device, electronic equipment and storage medium
CN110071927B (en) Information encryption method, system and related components
JPH11224183A (en) Pseudo-random number generating device
CN109450618B (en) MD 5-based encryption method and system
US20210382695A1 (en) Method for generating random sequence using exponential function as random number source
CN113872753B (en) Encryption transmission method and device based on SHA256 sequence form data
CN110247912B (en) Data processing method and device
CN115333868B (en) Symmetric encryption method, symmetric decryption method, symmetric encryption device, symmetric decryption device and symmetric encryption device based on odd-even round robin
CN117057804B (en) Financial transaction data secure storage method and system based on hash sequence

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