CN110705215A - Encoding method, encoding device and display device of MIPI configuration file - Google Patents

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

Info

Publication number
CN110705215A
CN110705215A CN201910903192.XA CN201910903192A CN110705215A CN 110705215 A CN110705215 A CN 110705215A CN 201910903192 A CN201910903192 A CN 201910903192A CN 110705215 A CN110705215 A CN 110705215A
Authority
CN
China
Prior art keywords
configuration
configuration file
data
file
encoding
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.)
Granted
Application number
CN201910903192.XA
Other languages
Chinese (zh)
Other versions
CN110705215B (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

Images

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 method for coding an MIPI configuration file, which comprises the following steps: acquiring a text file of a 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 valid configuration area, and each valid configuration area is partitioned and configured 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 execute the whole configuration process more efficiently, the debugging efficiency of related designers is improved, and the switching response time of the MIPI machine type needing to be switched among multiple groups of configuration information can be effectively ensured.

Description

Encoding method, encoding device and display device of MIPI configuration file
Technical Field
The invention relates to the technical field of MIPI interface data transmission, in particular to an encoding method, an encoding device and a display device of MIPI configuration files.
Background
The MIPI (Mobile Industry Processor Interface) is a high-speed differential serial transmission Interface, widely used in CMOS image sensors, liquid crystal displays, and radio frequency/baseband interfaces, and can make data transmission faster and more stable.
The MIPI signal source generally needs a corresponding configuration file when lighting the MIPI interface liquid crystal display module, where the configuration file includes screen timing information, power supply related information, MIPI control information, and an initialization CODE, which are required for normally lighting the liquid crystal display module. Fig. 1 shows a part of the text content of a configuration file in 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 the text content of the configuration file in the format line by line and character by character through a microcontroller, and corresponding actions are executed in sequence when effective instructions are analyzed.
However, this processing method has the disadvantage that when there are many valid instructions in the configuration text, the whole lighting process is slow, which affects the debugging efficiency.
Therefore, there is a need to provide an improved technical solution to overcome the above technical problems in the prior art.
Disclosure of Invention
In order to solve the above technical problems, the present invention provides an encoding method, an encoding device, and a display device for an MIPI configuration file, which enable a microcontroller to perform the entire configuration process more efficiently, improve the debugging efficiency of the relevant designers, and also effectively ensure the switching response time of MIPI models (such as HVA) that need to be switched among multiple sets of configuration information.
The method for encoding the MIPI configuration file is characterized by comprising the following steps: acquiring a text file of a 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 valid configuration area, and each valid configuration area is partitioned and configured 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.
Preferably, the binary encoding of the configuration data comprises one of binary encoding the configuration data, decimal encoding the configuration data, and hexadecimal encoding 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 being subjected to the binary coding further comprises: partition information of each effective configuration area, wherein the partition information includes at least one of total coding length, instruction length, and instruction number of the corresponding effective configuration area.
Preferably, the configuration file after being subjected to the binary coding further comprises: a header area for providing identification information corresponding to the profile.
Preferably, the encoding method further includes: and generating verification data according to the text file.
Preferably, the method for generating data corresponding to the configuration file includes: scanning a text file of the configuration file; sequentially extracting non-instruction information in the text file and generating corresponding indexes and data; and translating the instruction information item by item, and generating data corresponding to the configuration file, wherein the non-instruction information comprises comments, spaces and line feed information.
Preferably, when the binary coding is performed, the coding method further includes: and encrypting the configuration data by adopting a preset encryption algorithm.
Preferably, the encrypting comprises: encrypting the configuration file in the text form stored in the memory; or encrypting the configuration file during or after encoding.
The invention provides an encoding device of MIPI configuration files, which is characterized by comprising the following steps: a scanning unit for scanning a text file of the configuration file; the extraction unit is connected with the scanning unit and used for extracting the instruction information and the non-instruction information in the text file; the translation unit is connected with the extraction unit and is used for translating the instruction information one by one; the data generation unit is connected with the extraction unit and the translation unit and 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 generation unit and is used for carrying out binary coding and merging on the generated data to generate a configuration file with a corresponding binary format.
According to the present invention, there is provided 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 is connected with the acquisition module and is used for performing encoding conversion on the configuration file to generate the configuration file in a corresponding binary format; the microcontroller is connected with the coding 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 invention has the beneficial effects that: after the text-form MIPI configuration file is subjected to the binary coding, a plurality of character descriptions corresponding to each instruction in the original text file can be converted into a byte identification code (for example, the text occupies 9 bytes corresponding to 9 characters, and the text occupies 1 byte after the coding), and meanwhile, indexes and data which occupy a small space are generated after a large number of spaces are coded, so that the capacity of the configuration file can be effectively reduced.
Secondly, thanks to the coding structure, the microcontroller can quickly locate the effective instruction part when analyzing the configuration file, and the translation of the instruction (the description of a plurality of characters is converted into a byte identification code) enables the microcontroller to more quickly identify and execute the corresponding action, and especially the efficiency is improved more obviously when the instruction quantity of the whole configuration file is large, and if a plurality of groups of configuration information exist, the switching between different configurations can also have faster response.
The configuration file after being coded can not be viewed and edited by a common text editor, which increases the confidentiality of the configuration file to a certain extent and also prevents errors in the configuration process caused by unconfirmed modification of the configuration file by non-professionals.
The invention can enable the microcontroller to execute the whole configuration process more efficiently, improve the debugging efficiency of related designers, and effectively ensure the switching response time of MIPI machine types (such as HVA) needing to be switched among a plurality of 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 the embodiments of the present invention with reference to the accompanying drawings.
FIG. 1 illustrates a portion of the textual content of a configuration file in the prior art;
fig. 2 is a flowchart illustrating an encoding method of 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 diagram illustrating an encoding structure of a configuration file according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating a portion of a binary configuration file according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a display device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram illustrating an apparatus for encoding a configuration file according to an embodiment of the present invention.
Detailed Description
To facilitate an understanding of the invention, the invention will now be described more fully with reference to the accompanying drawings. Preferred embodiments of the present invention are shown in the drawings. The invention may, however, be embodied in different forms and should not be construed as limited to the embodiments set forth 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 below with reference to the accompanying drawings.
Fig. 2 shows a flowchart of an encoding method for 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 in steps S1 to S3 as shown in fig. 2 and 3, and a binary configuration file is generated.
Specifically, in step S1, a text file of the configuration file is acquired.
In this embodiment, the configuration file is generally stored in a corresponding memory in a text form, and when performing transcoding of the configuration file, the configuration file stored in the memory is first acquired from the memory.
Furthermore, the configuration file stored in the memory may include a plurality of sets of configuration information corresponding to 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 acquired from the memory, when there is only one set of configuration information included in the configuration file, data corresponding to the configuration file is generated according to steps S21 to S23. When the configuration information included in the configuration file is a plurality of sets, the steps S21 to S23 are repeated a plurality of times, and the configuration data corresponding to each set of configuration information is sequentially generated. Further, the generated data includes instruction data and non-instruction data.
In step S21, the text file of the configuration file is scanned.
In this embodiment, the obtained configuration text file should be scanned integrally to ensure the correctness of the format and content of the text file. And proceeds to step S22 when the format and content of the text file are correct; when the content and format of the text file are incorrect, corresponding error prompts are generated, and the code conversion step is skipped so as to save corresponding time and processing cost.
In step S22, non-instruction information in the text file is sequentially extracted, and corresponding indexes and data are generated.
In this embodiment, the text file of the configuration file includes non-instruction information such as comments, spaces, and linefeed information, and when the format and the 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 comments, spaces, and linefeed information in the non-instruction information, thereby effectively reducing the capacity of the configuration file.
Further, the data generated here is non-instruction data.
In step S23, the instruction information is translated item by item, and data corresponding to the configuration file is generated.
In this embodiment, the text file of the configuration file includes a plurality of instructions, and each instruction ends with a semicolon. Under the condition that the format and the content of the text file are correct, extracting and translating each instruction one by one so as to convert the text instruction needing a plurality of character descriptions into an identification code only needing one byte, and further generating data corresponding to the configuration file according to the translated instruction identification code.
Further, the data generated here is instruction data.
In a preferred embodiment, the method for encoding the MIPI profile further includes: and generating verification data according to the text file of the configuration file.
In step S3, the configuration data is binary-coded, 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 the process of encoding characters, numbers or other objects into binary numbers by a predetermined method, or converting information and data into a predetermined binary electric pulse signal.
Further, a binary configuration file is generated when the configuration data is binary-coded, a decimal configuration file is generated when the configuration data is decimal-coded, and a hexadecimal configuration file is generated when the configuration data is hexadecimal-coded.
For convenience of description, the technical solution of the present invention will be described below by taking binary coding as an example. It is understood that when decimal encoding or hexadecimal encoding is required, the method is substantially the same as that of binary encoding.
The binary configuration file comprises at least one valid configuration area, and each valid configuration area is configured by partitioning, so that the data code of at least one instruction and the identification code of the instruction can be provided. Wherein the identification code is used for locating a corresponding instruction in an 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 head region and at least one active deployment region (including first through nth deployment regions).
The head region includes a first sub-region, a second sub-region, and a third sub-region. The first sub-area is a configuration file header area and is used for providing identification information for identifying a configuration file; the second sub-area is a file verification information area and is used for providing verification data information of a verification 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 coded configuration file and is used for the microcontroller to identify the configuration file of the coding structure, so that correct processing can be carried out.
The second sub-area is located behind the first sub-area and stores the check code of the entire binary configuration file to provide the verification 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 behind the second sub-area and used for indicating the number of the 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, the configuration file may contain a plurality of sets of configuration information.
In the configuration file, at least one valid configuration area is located behind the header area and is used for providing partition information of each valid configuration area, and the partition information comprises at least one of the information of the total coding length, the instruction segment length and the instruction number of the corresponding valid configuration area.
Further, each valid configuration area corresponds to one of the provisioning/storage configuration files. For example, the first valid configuration area is located behind the header area and is used for storing 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 used for storing second configuration information in the configuration text file in a binary file form; the n-th effective configuration area is positioned behind the n-1-th effective configuration area and 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, the structure includes the following areas which are sequentially set by partitions: the information processing method comprises the steps of first effective configuration area total length information, first effective configuration area instruction number information, first effective configuration area instruction length information, first effective configuration area non-instruction length information and first effective configuration area non-instruction length information.
Further, the length information is the number of bytes contained in the corresponding information in the valid allocation area.
Specifically, the total length information of the first valid configuration area is used for indicating the number of bytes contained in the first valid configuration area from the current position, so that the microcontroller can quickly locate the boundary of each valid configuration area in the configuration file.
The first valid allocation region instruction section length information is used for indicating the number of bytes contained in the first valid allocation region instruction section from the current position.
The first effective configuration area instruction segment instruction quantity information is used for indicating the instruction quantity contained in the first effective configuration area.
Preferably, each instruction ends with a semicolon in the text file of the configuration file, so that the instructions are better distinguished.
The first effective configuration area instruction segment content information, and each instruction segment content comprises an identification code, a length and data information of the instruction. For example, in the original configuration file, "mipi. lane 4" is a control instruction, which is "a 5010004" after being encoded correspondingly, wherein "A5" is an identification code, "0100" is a length, and "04" is data.
And the first effective configuration region non-instruction segment length information is used for indicating the number of bytes contained in the first configuration region non-instruction segment from the current position.
The first effective configuration area non-instruction segment content information comprises index and data information corresponding to the non-instruction information in the original configuration text file.
Further, the non-instructional information includes comments, spaces, and linefeed information in the original text file.
In this embodiment, thanks to the above encoding structure, the microcontroller can quickly locate the effective instruction portion when parsing the configuration file, and the translation of the instruction (the description of a plurality of characters is converted into a byte of identification code) enables the microcontroller to more quickly identify and execute the corresponding action, so that the efficiency is improved more significantly especially when the instruction number of the whole configuration file is large, and if a plurality of sets of configuration information exist, the switching between different configurations can also be responded faster (for example, switching between wide and narrow viewing angles).
In the following, for example, in an embodiment of the present invention, a configuration file includes two sets of configuration information, i.e., 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 carried out, the microcontroller directly reads the corresponding instruction in the first effective configuration area for operation by identifying the corresponding code in the configuration file. When a specific instruction in the wide view configuration needs to be executed, by identifying the identification code and the length code information in the instruction segment, the required instruction segment content can be directly jumped to execute the instruction, so that 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 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 3, and then an encoding-converted binary configuration file is generated.
Preferably, when the configuration file contains multiple sets of configuration information, the encoding and merging should be performed after all the data of the configuration information are ready.
Optionally, in order to avoid that the binary configuration file is intercepted by a lawbreaker so that the configuration data carried in the binary configuration file is leaked, a preset encryption algorithm may be used to encrypt the configuration data. Further, the configuration file in text form stored in the memory may be encrypted; or encrypting the configuration file during or after encoding.
Further, the preset Encryption Algorithm includes at least one of MD5 Algorithm (Message Digest Algorithm, fifth edition), 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 configuration file is encoded by the encoding method, a plurality of character descriptions corresponding to each instruction in the original text file are converted into an identification code of one byte, and a large number of spaces are encoded to generate an index and data with a small occupied space, thereby reducing the capacity of the configuration file to a certain extent. Meanwhile, when the configuration file is analyzed, the positioning can be faster and more accurate through the 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 coded cannot be viewed and edited through a general editing text, and the confidentiality of the configuration file is increased to a certain extent.
Fig. 5 is a schematic diagram illustrating a part of a binary configuration file according to an embodiment of the present invention.
In one embodiment of the present invention, the binary configuration file may be arranged in an array as in the example shown in fig. 5, and includes a plurality of rows and a plurality of columns of binary code.
Wherein, four codes in the a area, such as "5850524D", represent the property and content of the configuration file for the configuration file header information. The microcontroller recognizes these codes to quickly and accurately find the desired binary configuration file.
The four codes in the b area, such as "DE CE 3022", are the check code information of this configuration file. Before the whole configuration file is analyzed, the codes are recognized by the microcontroller, the codes are compared with the verification data of the configuration file obtained through self calculation, and the microcontroller performs the next operation only when the comparison result is consistent.
Further, if the comparison result is inconsistent, it indicates that a certain error exists in the configuration file, and at this time, the microcontroller may send a corresponding error prompt to facilitate detection and modification by a related technician.
A code in the c-area, e.g. "02", is the configuration area information of this configuration file, which means that two valid configuration areas are included in this configuration file.
The four codes in the d area, for example, "011C 0000", are the total length information of the first valid allocation area in the two valid allocation areas of the matching file, which indicates that, starting from the current position, the first valid allocation area contains 0x1C01 bytes, i.e. the content of 0x1C01 bytes starting from the current position is the file content of the first valid allocation area.
Four codes such as "66040000" in the e area are instruction section length information of the first effective configuration area in the two effective configuration areas of the configuration file, which indicates that the instruction information section 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 section in the first effective configuration area.
Two codes in the f area, for example, "4600", are the instruction information quantity information of the first effective configuration area in the two effective configuration areas of the configuration file, which indicates that the first effective configuration area contains 0x46 instructions.
The plurality of codes in the g area are the instruction segment contents of the first effective configuration area in the two effective configuration areas of the configuration file.
In the above exemplary description of the specific configuration, the code is explained by taking hexadecimal as an example, and it is understood that hexadecimal may be converted into a corresponding decimal value, for example, 0x1C01 is hexadecimal, which is equivalent to the decimal value 7169, and the same applies to the rest.
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 whole configuration file, and the text content related to the other information in 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 disclosed in fig. 5, but it is understood that the content format has a correlation with the content format already disclosed 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 the present invention is not limited thereto, and any person skilled in the art can make many variations or modifications without departing from the scope of the invention, and any modification, equivalent replacement or improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Fig. 6 is 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 device 300, a microcontroller 400, and a display module 500.
The storage module 100 is configured to store the configuration file in a 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 storage device. Accordingly, the memory module 100 may also include a memory controller to provide access to the memory 100 by the fetch 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 perform encoding conversion on the text file of the configuration file to generate the configuration file in the corresponding binary format.
The microcontroller 400 is connected to the encoding apparatus 200, and is configured to parse the configuration file in the corresponding binary format to generate corresponding display data, and restore screen timing information, power supply related information, MIPI control information, initialization information, and the like included in the configuration file.
The display module 500 is connected to the microcontroller 400, receives the display data and the control information output by the microcontroller 400, and lights up according to the display data to display corresponding images 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), and the like.
Fig. 7 is a schematic structural diagram illustrating an apparatus for encoding a configuration file according to an embodiment of the present invention.
As shown in fig. 7, in the present embodiment, the encoding apparatus 300 includes: a scanning unit 310, an extracting unit 320, a translating unit 330, a data generating unit 340, and an encoding unit 350.
The scanning unit 310 is configured to scan a text file of a configuration file.
The extracting unit 320 is connected to the scanning unit 310 and is used for extracting corresponding instruction information and non-instruction information in the text file.
In the text file, the non-instruction information includes comments, 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 item by item, 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 merge all instruction data and non-instruction according to the encoding structure shown in fig. 4 and fig. 5, so as to generate a configuration file in a corresponding binary format.
In summary, the present invention enables the microcontroller to execute the whole configuration process more efficiently, improves the debugging efficiency of the relevant designers, and also effectively ensures the switching response time of the MIPI model (such as HVA) that needs to be switched among multiple sets of configuration information.
It should be noted that, in this document, the contained 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 identical elements in a process, method, article, or apparatus that comprises the element.
Finally, it should be noted that: the above description is only a preferred embodiment of the present invention, and should not be taken as limiting the invention, and it should be understood that various changes, substitutions and alterations can be made herein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method for encoding an MIPI configuration file is characterized by comprising the following steps:
acquiring a text file of a 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 in a corresponding binary format,
wherein said configuration file after being binary-coded comprises at least one valid configuration area, each of said valid configuration areas being partition-configured to provide a data encoding of at least one instruction and its identification code for locating the corresponding instruction in an instruction fetch operation.
2. The encoding method of claim 1, wherein 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 a binary configuration file is generated when the configuration data is binary-coded,
generating a decimal configuration file when the configuration data is decimal-coded,
when the configuration data is hexadecimal encoded, a hexadecimal configuration file is generated.
3. The encoding method of claim 1, wherein the binary-coded configuration file further comprises:
partition information of each effective configuration area, wherein the partition information includes at least one of total coding length, instruction length, and instruction number of the corresponding effective configuration area.
4. The encoding method of claim 1, wherein the binary-coded configuration file further comprises:
a header area for providing identification information corresponding to the profile.
5. The encoding method of claim 1, further comprising:
and generating verification data according to the text file.
6. The encoding method of claim 1, wherein the method of generating data corresponding to the configuration file comprises:
scanning a text file of the configuration file;
sequentially extracting non-instruction information in the text file and generating corresponding indexes and data;
translating the instruction information item by item, generating data corresponding to the configuration file,
wherein the non-instruction information includes comments, spaces, and linefeed information.
7. The encoding method according to claim 5, wherein in the case of performing the binary encoding, the encoding method further comprises:
and encrypting the configuration data by adopting a preset encryption algorithm.
8. The encoding method according to claim 7, wherein the encrypting comprises:
encrypting the configuration file in the text form stored in the memory; or
And encrypting the configuration file during or after encoding.
9. An apparatus for encoding an MIPI profile, comprising:
a scanning unit for scanning a text file of the configuration file;
the extraction unit is connected with the scanning unit and used for extracting the instruction information and the non-instruction information in the text file;
the translation unit is connected with the extraction unit and is used for translating the instruction information one by one;
the data generation unit is connected with the extraction unit and the translation unit and used for generating corresponding indexes and data according to the non-instruction information and generating corresponding data according to the translated instruction information; and
and the coding unit is connected with the data generation unit and is used for carrying out binary coding and merging on the generated data to generate a configuration file with a corresponding binary format.
10. 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 according to any one of claims 8 to 9, connected to the obtaining module, configured to perform transcoding on the configuration file to generate a configuration file in a corresponding binary format;
the microcontroller is connected with the coding 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 true CN110705215A (en) 2020-01-17
CN110705215B 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)

Cited By (2)

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

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090028266A1 (en) * 2007-07-27 2009-01-29 Schneider James P Compact encoding of arbitrary length binary objects
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

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090028266A1 (en) * 2007-07-27 2009-01-29 Schneider James P Compact encoding of arbitrary length binary objects
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

Cited By (3)

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

Also Published As

Publication number Publication date
CN110705215B (en) 2023-10-03

Similar Documents

Publication Publication Date Title
CN106598574B (en) Page rendering method and device
US8381194B2 (en) Methods and apparatuses for selective code coverage
US8990066B2 (en) Resolving out-of-vocabulary words during machine translation
US9274930B2 (en) Debugging system using static analysis
US20130238988A1 (en) Computing device and method of supporting multi-languages for application software
CN106547782B (en) Log information acquisition method and device
US20110047531A1 (en) Methods and apparatuses for selective code coverage
CN111736840A (en) Compiling method and running method of applet, storage medium and electronic equipment
CN110705215B (en) MIPI configuration file encoding method, MIPI configuration file encoding device and MIPI configuration file display device
CN111367595B (en) Data processing method, program running method, device and processing equipment
CN111522618A (en) Automobile diagnosis software language configuration method, device and storage medium
CN103077062A (en) Method and device for detecting code change
CN103761095B (en) Method for generating universal upgrade file head data information
US20080196009A1 (en) Apparatus and method for componentizing legacy system
CN101727505B (en) Efficient data processing method and device
CN111325012B (en) word report generation method and system
CN111240790B (en) Multi-language adaptation method, device, client and storage medium for application
CN110909552B (en) Translation method and device
US20180032510A1 (en) Automated translation of source code
CN114527984A (en) Shader generation method and device, player and storage medium
CN109840080B (en) Character attribute comparison method and device, storage medium and electronic equipment
US8402445B2 (en) Program translation method and notifying instruction inserting method
CN106648925B (en) Mobile terminal and method for acquiring character string information thereof
CN112364667A (en) Character checking method and device, computer equipment and computer readable storage medium
CN112148581A (en) Code specification checking method, device, system and storage medium

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