CN110705215B - MIPI configuration file encoding method, MIPI configuration file encoding device and MIPI configuration file display device - Google Patents

MIPI configuration file encoding method, MIPI configuration file encoding device and MIPI configuration file display device Download PDF

Info

Publication number
CN110705215B
CN110705215B CN201910903192.XA CN201910903192A CN110705215B CN 110705215 B CN110705215 B CN 110705215B CN 201910903192 A CN201910903192 A CN 201910903192A CN 110705215 B CN110705215 B CN 110705215B
Authority
CN
China
Prior art keywords
configuration
instruction
data
information
file
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.)
Active
Application number
CN201910903192.XA
Other languages
Chinese (zh)
Other versions
CN110705215A (en
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.)
InfoVision Optoelectronics Kunshan Co Ltd
Original Assignee
InfoVision Optoelectronics Kunshan 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 InfoVision Optoelectronics Kunshan Co Ltd filed Critical InfoVision Optoelectronics Kunshan Co Ltd
Priority to CN201910903192.XA priority Critical patent/CN110705215B/en
Publication of CN110705215A publication Critical patent/CN110705215A/en
Application granted granted Critical
Publication of CN110705215B publication Critical patent/CN110705215B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a coding method of an MIPI configuration file, which comprises the following steps: acquiring a text file of the configuration file; generating corresponding configuration data according to the text file; and carrying out binary coding on the configuration data to generate a configuration file in a corresponding binary format, wherein the configuration file after binary coding comprises at least one effective configuration area, and each effective configuration area is configured in a partition mode to provide data coding of at least one instruction and an identification code thereof, and the identification code is used for positioning the corresponding instruction in an instruction reading operation. The invention also discloses a coding device and a display device. The microcontroller can more efficiently execute the whole configuration process, improves the debugging efficiency of related designers, and can also effectively ensure the switching response time of the MIPI machine types needing to be switched among multiple groups of configuration information.

Description

MIPI configuration file encoding method, MIPI configuration file encoding device and MIPI configuration file display device
Technical Field
The invention relates to the technical field of MIPI interface data transmission, in particular to a coding method, a coding device and a display device of an MIPI configuration file.
Background
MIPI (Mobile Industry Processor Interface ) is a high-speed differential serial transmission interface, widely applied to CMOS image sensors, liquid crystal displays, radio frequency/baseband interfaces, which can make data transmission faster and more stable.
The MIPI signal source generally needs to have a corresponding configuration file when the MIPI interface lcd module is turned on, and includes screen timing information, power related information, MIPI control information, and initialization CODE, etc. required for normally turning on the lcd module. Fig. 1 shows part of the text content of a configuration file according to the prior art. As shown in fig. 1, the content format of the existing configuration file is mostly english characters. The MIPI signal source analyzes text content of the configuration file in the format line by line and character by character through a microcontroller, and when an effective instruction is analyzed, corresponding actions are sequentially executed.
However, this processing method has the disadvantage that when there are more valid instructions in the configuration text, the entire lighting process is slower, and the debugging efficiency is affected.
Accordingly, there is a need to provide an improved solution to overcome the above technical problems in the prior art.
Disclosure of Invention
In order to solve the technical problems, the invention provides a coding method, a coding device and a display device of an MIPI configuration file, which can enable a microcontroller to more efficiently execute the whole configuration process, improve the debugging efficiency of related designers, and also can effectively ensure the switching response time of MIPI machine types (such as HVA) needing to be switched among multiple groups of configuration information.
The coding method of the MIPI configuration file is characterized by comprising the following steps: acquiring a text file of the configuration file; generating corresponding configuration data according to the text file; and carrying out binary coding on the configuration data to generate a configuration file in a corresponding binary format, wherein the binary configuration file comprises at least one effective configuration area, and each effective configuration area is configured in a partition mode to provide data coding of at least one instruction and an identification code of the at least one instruction, and the identification code is used for positioning the corresponding instruction in an instruction reading operation.
Preferably, the binary encoding of the configuration data includes one of binary encoding of the configuration data, decimal encoding of the configuration data, and hexadecimal encoding of the configuration data, wherein a binary configuration file is generated when the configuration data is binary encoded, a decimal configuration file is generated when the configuration data is decimal encoded, and a hexadecimal configuration file is generated when the configuration data is hexadecimal encoded.
Preferably, the configuration file after the binary encoding further comprises: partition information of each effective configuration area, wherein the partition information comprises at least one of coding total length, instruction segment length and instruction quantity of the corresponding effective configuration area.
Preferably, the configuration file after the binary encoding further comprises: and the header area is used for providing identification information corresponding to the configuration file.
Preferably, the encoding method further comprises: and generating check data according to the text file.
Preferably, the method for generating the data corresponding to the configuration file comprises the following steps: scanning a text file of the configuration file; non-instruction information in the text file is sequentially extracted, and corresponding indexes and data are generated; and translating the instruction information piece by piece and generating data corresponding to the configuration file, wherein the non-instruction information comprises notes, spaces and line feed information.
Preferably, in performing the binary encoding, the encoding method further includes: and encrypting the configuration data by adopting a preset encryption algorithm.
Preferably, the encrypting includes: encrypting the text-form configuration file stored in the memory; or encrypting the configuration file at the time of encoding or after encoding.
The device for encoding the MIPI configuration file is characterized by comprising the following components: the scanning unit is used for scanning the text file of the configuration file; the extraction unit is connected with the scanning unit and is used for extracting instruction information and non-instruction information in the text file; the translation unit is connected with the extraction unit and used for translating the instruction information piece by piece; the data generation unit is connected with the extraction unit and the translation unit and is used for generating corresponding indexes and data according to the non-instruction information and generating corresponding data according to the translated instruction information; and the encoding unit is connected with the data generating unit and is used for carrying out the binary encoding and the combination on the generated data to generate a configuration file with a corresponding binary format.
The display device according to the present invention is characterized by comprising: the storage module is used for storing the configuration file in a text form; the acquisition module is connected with the storage module and used for acquiring the stored configuration file in the text form; the encoding device is connected with the acquisition module and used for performing encoding conversion on the configuration file so as to generate a configuration file in a corresponding system format; the microcontroller is connected with the encoding device and used for analyzing the configuration file in the corresponding system format to generate corresponding display data; and the display module is connected with the microcontroller and used for lighting according to the display data.
The beneficial effects of the invention are as follows: according to the invention, after the MIPI configuration file in a text form is coded in a binary mode, a plurality of character descriptions corresponding to each instruction in the original text file can be converted into one-byte identification codes (for example, the MIpi.Lane corresponds to 9 characters, the text occupies 9 bytes, the coded text occupies 1 byte), and meanwhile, a large number of spaces are coded to generate indexes and data with extremely small occupied space, so that the capacity of the configuration file can be effectively reduced.
Secondly, thanks to the coding structure, the microcontroller can quickly locate an effective instruction part when analyzing the configuration file, and the translation of the instruction (the description of a plurality of characters is converted into an identification code of one byte) enables the microcontroller to quickly identify and execute corresponding actions, especially when the number of the instructions of the whole configuration file is large, the efficiency is improved more obviously, and if multiple groups of configuration information exist, the switching between different configurations can also be responded more quickly.
The configuration file after being encoded cannot be checked and edited through a general text editor, so that the confidentiality of the configuration file is improved to a certain extent, and errors in the configuration process caused by unacknowledged modification of the configuration file by non-professional staff are prevented.
The invention can enable the microcontroller to more efficiently execute the whole configuration process, improve the debugging efficiency of related designers, and effectively ensure the switching response time of MIPI models (such as HVA) needing to be switched among multiple groups of configuration information.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention as claimed.
Drawings
The above and other objects, features and advantages of the present invention will become more apparent from the following description of embodiments of the present invention with reference to the accompanying drawings.
FIG. 1 illustrates a portion of the text content of a configuration file of the prior art;
FIG. 2 is a flowchart of a method for encoding a configuration file according to an embodiment of the present invention;
FIG. 3 illustrates a flow chart of a method of generating data corresponding to the configuration file of FIG. 2;
FIG. 4 is a schematic diagram illustrating an encoding structure of a configuration file according to an embodiment of the present invention;
FIG. 5 is a schematic view of a portion of a binary configuration file according to an embodiment of the present invention;
fig. 6 shows a schematic structural diagram of a display device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a configuration file encoding device according to an embodiment of the present invention.
Detailed Description
In order that the invention may be readily understood, a more complete description of the invention will be rendered by reference to the appended drawings. Preferred embodiments of the present invention are shown in the drawings. The invention may, however, be embodied in different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
The present invention will be described in detail with reference to the accompanying drawings.
Fig. 2 shows a flowchart of a method for encoding a configuration file according to an embodiment of the present invention, and fig. 3 shows a flowchart of a method for generating data corresponding to the configuration file in fig. 2.
In this embodiment, the configuration file in the original text form is encoded by using steps S1 to S3 shown in fig. 2 and 3, so as to generate a binary configuration file.
Specifically, in step S1, a text file of the configuration file is acquired.
In this embodiment, the configuration files are generally stored in the corresponding memory in text form, and when performing transcoding of the configuration files, the stored configuration text files are first obtained from the memory.
Further, the configuration file stored in the memory may include a plurality of sets of configuration information, corresponding to the actual requirements of the liquid crystal display module of the MIPI interface.
In step S2, corresponding configuration data is generated from the text file.
In this embodiment, after the text file of the configuration file is obtained from the memory, when there is only one set of configuration information contained in the configuration file, data corresponding to the configuration file is generated according to steps S21 to S23. When the configuration information contained in the configuration file is multiple groups, repeating steps S21 to S23 multiple times, and further generating configuration data corresponding to each group of configuration information in turn. Further, the generated data includes instruction data and non-instruction data.
In step S21, a text file of the configuration file is scanned.
In this embodiment, the acquired configuration text file should be scanned in its entirety to ensure the format and content correctness of the text file. And performing step S22 when the format and content of the text file are correct; when the content and format of the text file are incorrect, a corresponding error prompt is generated, and the transcoding step is skipped to save corresponding time and processing cost.
In step S22, non-instruction information in the text file is sequentially extracted, and corresponding index and data are generated.
In this embodiment, the text file of the configuration file contains non-instruction information such as annotation, space and line feed information, and when the format and content of the text file are correct, the non-instruction information needs to be sequentially extracted, so as to generate corresponding indexes and data corresponding to the annotation, space and line feed information in the non-instruction information, thereby effectively reducing the capacity of the configuration file.
Further, the data generated herein is non-instruction data.
In step S23, the instruction information is translated piece by piece, and data corresponding to the configuration file is generated.
In this embodiment, the text file of the configuration file includes a plurality of instructions, each of which ends with a semicolon. Under the condition that the format and the content of the text file are correct, each instruction is extracted and translated one by one, so that the text instruction requiring multiple character descriptions is converted into an identification code requiring only one byte, and data of a corresponding configuration file is generated according to the translated instruction identification code.
Further, the data generated here is instruction data.
In a preferred embodiment, the encoding method of the MIPI profile further comprises: and generating check data according to the text file of the configuration file.
In step S3, the configuration data is encoded in a binary format, and a configuration file in a corresponding binary format is generated.
In this embodiment, the binary encoding of the configuration data includes one of binary encoding of the configuration data, decimal encoding of the configuration data, and hexadecimal encoding of the configuration data.
Binary coding is to encode characters, numbers or other objects into binary numbers by a predetermined method or to convert information and data into a predetermined binary electric pulse signal.
Further, when the configuration data is binary coded, a binary configuration file is generated, when the configuration data is decimal coded, a decimal configuration file is generated, and when the configuration data is hexadecimal coded, a hexadecimal configuration file is generated.
For convenience of description, the technical scheme of the present invention will be described hereinafter by taking binary encoding as an example. It will be appreciated that when decimal or hexadecimal encoding is required, the method is substantially the same as that of binary encoding.
The binary configuration file comprises at least one effective configuration area, and each effective configuration area is configured through partition, so that data coding of at least one instruction and identification codes thereof can be provided. Wherein the identification code is used to locate the corresponding instruction in the instruction fetch operation.
Referring to fig. 4, fig. 4 is a schematic diagram illustrating an encoding structure of a configuration file according to an embodiment of the present invention.
As shown in fig. 4, in this embodiment, the encoding structure of the MIPI configuration file is binary encoding, and the encoded binary configuration file includes: a header region and at least one effective configuration region (including first to nth configuration regions).
The header region includes a first sub-region, a second sub-region, and a third sub-region. The first sub-region is a configuration file header region and is used for providing identification information for identifying the configuration file; the second sub-region is a file check information region and is used for providing check data information of a check configuration file; the third sub-area is an MIPI configuration area information area for providing configuration information indicating the number of valid configuration areas.
The first sub-area is located at the initial position in the encoded configuration file, and is used for the microcontroller to identify the configuration file of the encoding structure, so that correct processing can be performed.
The second sub-area is located after the first sub-area and stores a check code of the entire binary configuration file for providing the check data of the configuration file. When the file is checked, the microcontroller calculates and obtains the check data of the whole configuration file before analyzing the file, and then compares whether the obtained check data is consistent with the configuration information in the second subarea, namely, the file check information (check code), and only when the obtained check data is consistent with the check code, the microcontroller performs further operation. The file verification information can ensure the correctness of the configuration file.
The third sub-area is located after the second sub-area and is used for indicating the number of configuration areas contained in the configuration file.
The configuration file of the liquid crystal display module of the general MIPI interface only needs to contain one set of configuration information, but for some liquid crystal display modules of the MIPI interface, there may be a case that the configuration file contains multiple sets of configuration information.
In the configuration file, at least one effective configuration area is located behind the header area and is used for providing partition information of each effective configuration area, wherein the partition information comprises at least one of the total coding length, the instruction segment length and the instruction number of the corresponding effective configuration area.
Further, each valid configuration area corresponds to one configuration information in the provisioning/storage configuration file. For example, the first valid configuration area is located after the header area and is used to store the first configuration information in the configuration text file in the form of a binary file; the second effective configuration area is positioned behind the first effective configuration area and is used for storing second configuration information in the configuration text file in the form of a binary file; the n-th effective configuration area is located behind the n-1-th effective configuration area and is used for storing the n-th configuration information in the configuration text file in the form of a binary file. Wherein n is a positive integer.
Further, the structure of each effective configuration area is the same, taking the first effective configuration area as an example, including the configuration areas that are sequentially partitioned: the first effective configuration area total length information, the first effective configuration area instruction segment instruction quantity information, the first effective configuration area instruction segment content information, the first effective configuration area non-instruction segment length information and the first effective configuration area non-instruction segment content information.
Further, the length information is the number of bytes included in the corresponding information in the effective configuration area.
Specifically, the total length information of the first effective configuration area is used for indicating the number of bytes contained in the first effective configuration area from the current position, so that the microcontroller can quickly locate the boundary of each effective configuration area in the configuration file.
The first valid configuration area instruction segment length information is used for indicating the number of bytes contained in the first valid configuration area instruction segment from the current position.
The first effective configuration area instruction segment instruction number information is used for indicating the number of instructions contained in the first effective configuration area.
Preferably, each instruction ends with a semicolon in the text file of the configuration file, which better distinguishes the individual instructions.
The first effective configuration area instruction section content information, wherein each instruction section content comprises an identification code, a length and data information of the instruction. For example, in the original configuration file, "mipi.lane4" is a control instruction, which is encoded in a corresponding manner to "A5 01 00 04", where "A5" is an identification code, "01 00" is a length, and "04" is data.
The first valid configuration area non-instruction section length information is used for indicating the number of bytes contained in the first configuration area non-instruction section from the current position.
The first effective configuration area is non-instruction section content information which comprises indexes and data information corresponding to the non-instruction information in the original configuration text file.
Further, the non-instruction information includes notes, spaces, and line feed information in the original text file.
In this embodiment, thanks to the above-mentioned encoding structure, the microcontroller can quickly locate the effective instruction portion when parsing the configuration file, and translate the instruction (the description of multiple characters is converted into a one-byte identification code) so that the microcontroller can more quickly identify and execute the corresponding actions, especially when the number of the whole configuration file instruction is large, the efficiency is improved more obviously, and if multiple groups of configuration information exist, the switching between different configurations can also have faster response (for example, switching between wide and narrow viewing angles).
In connection with the following, for example, in one embodiment of the present invention, a configuration file includes two sets of configuration information, namely two valid configuration areas, where a first valid configuration area represents a wide view configuration and a second valid configuration area represents a narrow view configuration.
When the wide view angle configuration is performed, the microcontroller directly reads the corresponding instruction in the first effective configuration area to operate by identifying the corresponding code in the configuration file. When a specific instruction in the wide view configuration needs to be executed, the identification code and the length code information in the instruction segment can be identified, so that the content of the instruction segment can be directly jumped to be needed to execute the instruction, and the response is faster.
When the narrow view configuration is required, the microcontroller can directly jump to the second effective configuration area according to the total length information of the first effective configuration area so as to execute the narrow view configuration. The switching between different configurations is faster, and the reading and executing efficiency of the configuration file is obviously improved.
In this embodiment, all the non-instruction data and instruction data generated in step S22 and step S23 are encoded and combined according to the encoding structure shown in fig. 2 and fig. 3, so as to generate the binary configuration file after the encoding conversion.
Preferably, when the configuration file contains multiple sets of configuration information, the encoding and combining should be performed after all the configuration information data are ready.
Optionally, in order to avoid that the binary configuration file is intercepted by an lawbreaker so that the configuration data carried in the binary configuration file is leaked, a preset encryption algorithm may be adopted to encrypt the configuration data. Further, the configuration file in text form stored in the memory may be encrypted; or encrypting the configuration file at the time of encoding or after encoding.
Further, the preset encryption algorithm includes at least one of MD5 algorithm (Message Digest Algorithm, fifth edition of message digest algorithm), DES (Data Encryption Standard, symmetric algorithm), 3DES, RC2 (symmetric encryption algorithm), RC4, IDEA (International Data Encryption Algorithm ) and RSA algorithm, which is not limited in this embodiment.
In this embodiment, after the encoding method adopted in the configuration file is encoded, a plurality of character descriptions corresponding to each instruction in the original text file are converted into an identification code of one byte, and meanwhile, a large number of spaces are encoded to generate indexes and data with extremely small occupied space, so that the capacity of the configuration file is reduced to a certain extent. Meanwhile, when the configuration file is analyzed, the positioning can be faster and more accurate through identification code information in the binary configuration file, and the identification and execution efficiency of the instructions can be obviously improved when the number of the instructions is large. In addition, the configuration file after being encoded cannot be checked and edited through a general editing text, and confidentiality of the configuration file is improved to a certain extent.
Fig. 5 shows a schematic partial content of a binary configuration file according to an embodiment of the present invention.
In one embodiment of the invention, the binary configuration file may be an array arrangement as in the example of FIG. 5, including a plurality of rows and columns of binary code.
Wherein four codes within area a, such as "58 50 52 4d" are the profile header information for this profile, representing the nature and content of the profile. The microcontroller recognizes these codes to quickly and accurately find the desired binary configuration file.
Four codes in the b area such as "DE CE 30" are check code information for this configuration file. Before the whole configuration file is analyzed, the microcontroller recognizes the codes and then compares the codes with the verification data of the configuration file obtained through self calculation, and the microcontroller only performs the next operation when the comparison results are consistent.
Further, if the comparison results are inconsistent, a certain error exists in the configuration file, and the microcontroller can send a corresponding error prompt at the moment so as to facilitate detection and modification of related technicians.
A code in the c-region such as "02" is configuration region information of this configuration file, which indicates that two valid configuration regions are included in the present configuration file.
Four codes such as "01 1C 00" in the d area are matched with the total length information of the first valid configuration area in the two valid configuration areas of the file, which indicates that the first valid configuration area contains 0x1C01 bytes from the current position, that is, the content of 0x1C01 bytes from the current position is the file content of the first valid configuration area.
Four codes such as "66 04 00 00" in the e-area are the instruction segment length information of the first effective configuration area of the two effective configuration areas of the configuration file, which indicates that the instruction information segment in the first effective configuration area contains 0x0466 bytes from the current position, that is, the content of 0x0466 bytes from the current position is the file content of the instruction information segment in the first effective configuration area.
Two codes such as "46 00" in the f area are instruction information quantity information of the first effective configuration area in the two effective configuration areas of the configuration file, which indicates that 0x46 instructions are contained in the first effective configuration area.
The code in the g area is used for configuring the instruction segment content of the first effective configuration area in the two effective configuration areas of the file.
In the above exemplary description of specific configuration content, the code is illustrated by hexadecimal as an example, and it is understood that hexadecimal may be converted into corresponding decimal value, for example, 0x1C01 is hexadecimal, which corresponds to decimal value 7169, and the rest is the same.
It should be noted that the binary configuration file code diagram shown in fig. 5 is only a part of the text content of the entire configuration file, and the text content related to the first effective configuration area, such as the length and content of the non-instruction segment, and the text content related to the second effective configuration area are not shown in fig. 5, but it is understood that the content format thereof has a correlation with the content format already shown in fig. 5, and those skilled in the art can easily deduce the remaining text content according to the above detailed description.
On the other hand, the above-mentioned embodiments are only preferred embodiments of the present invention, and are not intended to limit the present invention, and any person skilled in the art should not be able to make any changes or modifications etc. by using the above-mentioned embodiments without departing from the scope of the present invention, and any modifications, equivalent substitutions or improvements made within the spirit and principle of the present invention should be included in the scope of the present invention.
Fig. 6 shows a schematic structural diagram of a display device according to an embodiment of the present invention.
As shown in fig. 6, in the present embodiment, the display device includes: a storage module 100, an acquisition module 200, an editing apparatus 300, a microcontroller 400, and a display module 500.
Wherein the storage module 100 is used for storing the configuration file in text form.
The memory module 100 may include high-speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state memory device. Accordingly, the memory module 100 may also include a memory controller to provide access to the memory 100 by the acquisition module 200.
The obtaining module 200 is connected to the storage module 100, and is configured to obtain a text file of the configuration file stored in the storage module 100.
The encoding device 300 is connected to the obtaining module 200, and is configured to encode and convert a text file of the configuration file to generate a configuration file in a corresponding binary format.
The microcontroller 400 is connected to the encoding device 200, and is configured to parse the configuration file in the corresponding binary format to generate corresponding display data, and restore the screen timing information, the power related information, the MIPI control information, the initialization information, and the like contained in the configuration file.
The display module 500 is connected with the microcontroller 400, receives display data and control information output by the microcontroller 400, and lights up according to the display data to display corresponding image or video information.
The display module 500 may include a display panel such as a display panel configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.
Fig. 7 is a schematic structural diagram of a configuration file encoding device according to an embodiment of the present invention.
As shown in fig. 7, in the present embodiment, the encoding apparatus 300 includes: scanning unit 310, extracting unit 320, translating unit 330, data generating unit 340, and encoding unit 350.
Wherein, the scanning unit 310 is used for scanning text files of the configuration file.
The extracting unit 320 is connected to the scanning unit 310, and is configured to extract corresponding instruction information and non-instruction information in the text file.
In a text file, non-instruction information includes notes, spaces, and line feed information.
In the text file, each piece of instruction information ends with a semicolon.
The translation unit 330 is connected to the extraction unit 320, and is configured to translate the instruction information in the text file extracted by the extraction unit 320, one by one, so as to convert the instruction information requiring multiple character descriptions into an identification code requiring only one byte.
The data generating unit 340 is connected to the extracting unit 320 and the translating unit 330, and is configured to generate corresponding index and non-instruction data according to the non-instruction information extracted by the extracting unit 320, and generate corresponding instruction data according to the instruction information translated by the translating unit 330.
The encoding unit 350 is connected to the data generating unit 340, and is configured to encode and combine all instruction data and non-instruction data according to the encoding structures shown in fig. 4 and 5, so as to generate a configuration file in a corresponding binary format.
In summary, the invention can make the microcontroller execute the whole configuration process more efficiently, promote the debugging efficiency of the relevant designer, and also can effectively ensure the switching response time of MIPI machine types (such as HVA) which need to switch among multiple groups of configuration information.
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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Finally, it should be noted that: the above description is not intended to limit the invention to the particular embodiments disclosed, but on the contrary, the intention is to cover all modifications, equivalents, and alternatives falling within the spirit and principles of the invention as defined by the appended claims.

Claims (9)

1. A method for encoding an MIPI profile, comprising:
acquiring a text file of the configuration file;
generating corresponding configuration data according to the text file;
carrying out the binary coding on the configuration data to generate a configuration file with a corresponding binary format,
wherein the configuration file after being coded in a system comprises at least one effective configuration area, each effective configuration area is configured in a partition mode to provide data coding of at least one instruction and an identification code of one byte of the data coding, and the identification code is used for positioning the corresponding instruction in an instruction reading operation;
each of the effective configuration areas includes:
the total length information of the effective configuration areas is used for indicating the number of bytes contained in the first effective configuration area from the current position so as to quickly locate the boundary of each effective configuration area in the configuration file;
the effective configuration area instruction segment length information is used for indicating the number of bytes contained in the first effective configuration area instruction segment from the current position;
the effective configuration area instruction segment instruction number information is used for indicating the instruction number contained in the first effective configuration area;
effectively configuring the content information of the instruction section of the area, wherein each instruction section contains the identification code, the length and the data information of the instruction;
effective configuration area non-instruction section length information for indicating the number of bytes contained in the first configuration area non-instruction section from the current position;
the effective configuration area non-instruction section content information comprises indexes and data information corresponding to the non-instruction information in the original configuration text file.
2. The encoding method of claim 1, wherein the binary encoding the configuration data comprises one of binary encoding the configuration data, decimal encoding the configuration data, and hexadecimal encoding the configuration data,
wherein when binary encoding is performed on the configuration data, a binary configuration file is generated,
when the configuration data is decimal coded, a decimal configuration file is generated,
when the configuration data is hexadecimal encoded, a hexadecimal configuration file is generated.
3. The encoding method according to claim 1, wherein the configuration file after the binary encoding further comprises:
and the header area is used for providing identification information corresponding to the configuration file.
4. The encoding method according to claim 1, characterized in that the encoding method further comprises:
and generating check data according to the text file.
5. The encoding method according to claim 1, wherein the method of generating data corresponding to the profile comprises:
scanning a text file of the configuration file;
non-instruction information in the text file is sequentially extracted, and corresponding indexes and data are generated;
the instruction information is translated piece by piece, and data corresponding to the configuration file is generated,
wherein the non-instruction information includes notes, spaces, and line feed information.
6. The encoding method according to claim 4, wherein in performing the binary encoding, the encoding method further comprises:
and encrypting the configuration data by adopting a preset encryption algorithm.
7. The encoding method according to claim 6, wherein the encrypting comprises:
encrypting the text-form configuration file stored in the memory; or (b)
And encrypting the configuration file at the time of encoding or after encoding.
8. An apparatus for encoding an MIPI profile, comprising:
the scanning unit is used for scanning the text file of the configuration file;
the extraction unit is connected with the scanning unit and is used for extracting instruction information and non-instruction information in the text file;
the translation unit is connected with the extraction unit and used for translating the instruction information piece by piece;
the data generation unit is connected with the extraction unit and the translation unit and is used for generating corresponding indexes and data according to the non-instruction information and generating corresponding data according to the translated instruction information; and
the coding unit is connected with the data generating unit and used for carrying out the binary coding and the combination on the generated data to generate a configuration file with a corresponding binary format,
wherein the configuration file after being coded in a system comprises at least one effective configuration area, each effective configuration area is configured in a partition mode to provide data coding of at least one instruction and an identification code of one byte of the data coding, and the identification code is used for positioning the corresponding instruction in an instruction reading operation;
each of the effective configuration areas includes:
the total length information of the effective configuration areas is used for indicating the number of bytes contained in the first effective configuration area from the current position so as to quickly locate the boundary of each effective configuration area in the configuration file;
the effective configuration area instruction segment length information is used for indicating the number of bytes contained in the first effective configuration area instruction segment from the current position;
the effective configuration area instruction segment instruction number information is used for indicating the instruction number contained in the first effective configuration area;
effectively configuring the content information of the instruction section of the area, wherein each instruction section contains the identification code, the length and the data information of the instruction;
effective configuration area non-instruction section length information for indicating the number of bytes contained in the first configuration area non-instruction section from the current position;
the effective configuration area non-instruction section content information comprises indexes and data information corresponding to the non-instruction information in the original configuration text file.
9. A display device, comprising:
the storage module is used for storing the configuration file in a text form;
the acquisition module is connected with the storage module and used for acquiring the stored configuration file in the text form;
the encoding device of claim 8, connected to the acquisition module, for transcoding the configuration file to generate a configuration file in a corresponding binary format;
the microcontroller is connected with the encoding device and used for analyzing the configuration file in the corresponding system format to generate corresponding display data; and
and the display module is connected with the microcontroller and used for lighting according to the display data.
CN201910903192.XA 2019-09-24 2019-09-24 MIPI configuration file encoding method, MIPI configuration file encoding device and MIPI configuration file display device Active CN110705215B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910903192.XA CN110705215B (en) 2019-09-24 2019-09-24 MIPI configuration file encoding method, MIPI configuration file encoding device and MIPI configuration file display device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910903192.XA CN110705215B (en) 2019-09-24 2019-09-24 MIPI configuration file encoding method, MIPI configuration file encoding device and MIPI configuration file display device

Publications (2)

Publication Number Publication Date
CN110705215A CN110705215A (en) 2020-01-17
CN110705215B true CN110705215B (en) 2023-10-03

Family

ID=69195996

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910903192.XA Active CN110705215B (en) 2019-09-24 2019-09-24 MIPI configuration file encoding method, MIPI configuration file encoding device and MIPI configuration file display device

Country Status (1)

Country Link
CN (1) CN110705215B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111459889B (en) * 2020-03-08 2023-06-16 中电海康集团有限公司 Equipment data model generation method and device for Internet of things platform
CN111879788B (en) * 2020-07-10 2023-12-19 武汉精立电子技术有限公司 Model switching system and method based on panel detection and terminal equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102055498A (en) * 2009-11-11 2011-05-11 英业达股份有限公司 Remote control method of mobile communication device
CN102567054A (en) * 2011-12-22 2012-07-11 深圳市大富科技股份有限公司 Control method of two-tower amplifier and corresponding device
CN104598263A (en) * 2014-12-04 2015-05-06 广州酷狗计算机科技有限公司 Application program operation method and configuration file generating method and device
CN104714914A (en) * 2015-04-02 2015-06-17 武汉精测电子技术股份有限公司 Initial configuration method of mobile industry processor interface (MIPI) liquid crystal module
CN106534267A (en) * 2016-10-19 2017-03-22 中国银行股份有限公司 File uploading and resolving method and device
CN107766304A (en) * 2017-10-23 2018-03-06 国电南瑞科技股份有限公司 A kind of binary profile file generation method based on XML
CN107945827A (en) * 2017-10-29 2018-04-20 西安空间无线电技术研究所 A kind of bit stream file analytic method and periodic refreshing method based on Virtex5 devices

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7895347B2 (en) * 2007-07-27 2011-02-22 Red Hat, Inc. Compact encoding of arbitrary length binary objects

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102055498A (en) * 2009-11-11 2011-05-11 英业达股份有限公司 Remote control method of mobile communication device
CN102567054A (en) * 2011-12-22 2012-07-11 深圳市大富科技股份有限公司 Control method of two-tower amplifier and corresponding device
CN104598263A (en) * 2014-12-04 2015-05-06 广州酷狗计算机科技有限公司 Application program operation method and configuration file generating method and device
CN104714914A (en) * 2015-04-02 2015-06-17 武汉精测电子技术股份有限公司 Initial configuration method of mobile industry processor interface (MIPI) liquid crystal module
CN106534267A (en) * 2016-10-19 2017-03-22 中国银行股份有限公司 File uploading and resolving method and device
CN107766304A (en) * 2017-10-23 2018-03-06 国电南瑞科技股份有限公司 A kind of binary profile file generation method based on XML
CN107945827A (en) * 2017-10-29 2018-04-20 西安空间无线电技术研究所 A kind of bit stream file analytic method and periodic refreshing method based on Virtex5 devices

Also Published As

Publication number Publication date
CN110705215A (en) 2020-01-17

Similar Documents

Publication Publication Date Title
US9471290B2 (en) Utilizing special purpose elements to implement a FSM
US8381194B2 (en) Methods and apparatuses for selective code coverage
CN105335404B (en) Page info loading method and device
CN110705215B (en) MIPI configuration file encoding method, MIPI configuration file encoding device and MIPI configuration file display device
US9274930B2 (en) Debugging system using static analysis
CN106776584A (en) Character displaying method, translation table generating method, document translation method and device
US8160865B1 (en) Systems and methods for managing coordinate geometry for a user interface template
CN111367595B (en) Data processing method, program running method, device and processing equipment
CN108829423B (en) System upgrading method, device, equipment and storage medium for Android equipment
CN103077062B (en) The detection method of a kind of code change and device
US20070050682A1 (en) Processor and debugging device
CN111459812A (en) Interface test case generation method, electronic device and storage medium
JP4812421B2 (en) Character processing apparatus, character processing program, and character processing method
CN111291533B (en) Sentence segment to be displayed display method and device, computer equipment and storage medium
CN101727505B (en) Efficient data processing method and device
CN111240790B (en) Multi-language adaptation method, device, client and storage medium for application
CN111325012B (en) word report generation method and system
CN103823725A (en) Debugging device and debugging method
CN106126225B (en) A kind of object code reverse engineering approach based on program evolution model
CN110909552B (en) Translation method and device
CN105138364B (en) A kind of method and device of terminal system upgrading
CN111639504A (en) Multi-language translation method, device and equipment for webpage
US9471569B1 (en) Integrating information sources to create context-specific documents
CN106648925B (en) Mobile terminal and method for acquiring character string information thereof
US8914678B2 (en) Systems and methods for debugging model based message sequences

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
GR01 Patent grant
GR01 Patent grant