CN113360194B - Python-based drive generation method and system and electronic equipment - Google Patents
Python-based drive generation method and system and electronic equipment Download PDFInfo
- Publication number
- CN113360194B CN113360194B CN202110561119.6A CN202110561119A CN113360194B CN 113360194 B CN113360194 B CN 113360194B CN 202110561119 A CN202110561119 A CN 202110561119A CN 113360194 B CN113360194 B CN 113360194B
- Authority
- CN
- China
- Prior art keywords
- dtsi
- python
- lcd
- panel
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 37
- 238000004590 computer program Methods 0.000 claims description 11
- 238000000926 separation method Methods 0.000 claims description 2
- 238000011161 development Methods 0.000 abstract description 7
- 230000000875 corresponding effect Effects 0.000 description 24
- 238000010586 diagram Methods 0.000 description 6
- BFBTVZNKWXWKNZ-HWKANZROSA-N (e)-3-[1-[(2,4-dichlorophenyl)methyl]-5-fluoro-3-methylindol-7-yl]-n-(4,5-dichlorothiophen-2-yl)sulfonylprop-2-enamide Chemical group C12=C(\C=C\C(=O)NS(=O)(=O)C=3SC(Cl)=C(Cl)C=3)C=C(F)C=C2C(C)=CN1CC1=CC=C(Cl)C=C1Cl BFBTVZNKWXWKNZ-HWKANZROSA-N 0.000 description 5
- 238000013461 design Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- RVCKCEDKBVEEHL-UHFFFAOYSA-N 2,3,4,5,6-pentachlorobenzyl alcohol Chemical compound OCC1=C(Cl)C(Cl)=C(Cl)C(Cl)=C1Cl RVCKCEDKBVEEHL-UHFFFAOYSA-N 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000002596 correlated effect Effects 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000005012 migration Effects 0.000 description 1
- 238000013508 migration Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4411—Configuring for operating with peripheral devices; Loading of device drivers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/73—Program documentation
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Library & Information Science (AREA)
- Control Of Indicators Other Than Cathode Ray Tubes (AREA)
Abstract
The invention discloses a method, a system and an electronic device for generating a drive based on Python, which are characterized in that a common dtsi form and a common h form are manufactured by two files of dtsi and h in a drive program of an LCD screen, and corresponding parameter positions in the two files of dtsi and h are replaced and modified based on Python software, so that manual searching and positioning are not needed, and the writing efficiency of the drive program of the LCD screen is improved. Meanwhile, two files, namely dtsi and h, in the LCD screen driving files are written based on the form of the form, so that the method has high multi-platform applicability, only the form is required to be manufactured according to the formats in different platforms, the file dtsi is not required to be redesigned, and a developer can complete file writing only by extracting form information according to the LCD specification, and the method is not limited by hardware of an LCD and a driving IC thereof. Meanwhile, the LCD driver is written by using the formalization, and the LCD driver transplanting flow is further simplified by using the formalization in combination with the advantages of simplicity and rapidness in Python program writing, high development efficiency and the like.
Description
Technical Field
The invention relates to the field of generation of drive files of LCD screens, in particular to a method and a system for generating a drive based on Python and electronic equipment.
Background
The wafer factory has a shortage of productivity, and the LCD driver IC is in short supply. Besides the existing mature design, the panel factory is forced to adopt LCD driving chips of other merchants, and the panel is provided with a new driving IC to be combined into an LCD screen, so that the LCD screen is changed due to the initialization parameters, and is a brand new product for an developer, and great effort is required to be invested in redevelopment. Often, one product designed by OEM (original equipment manufacturer) is different from market to consumer, the same PCBA can be used for carrying LCD (liquid crystal display) screens with different sizes, and a developer needs to lighten the LCD screens with different sizes according to the demands of clients.
In the existing LCD screen lighting, products designed by different styles, models and different developers need to be lighted by different drivers, and unified design cannot be achieved, so that the existing developers have lower efficiency when writing driving files of the LCD screen.
The LCD-based startup procedure mainly includes Linux kernel (commonly known as kernel) startup and LITTLE KERNEL (commonly known as small kernel) startup. The LCD is started in Linux kernel first, and then is transplanted to small kernel (LK) for starting. It is apparent that the design of the two files of dtsi in the kernel and h in the small kernel is the core of the LCD start-up. These two documents are not available, but can be designed according to the actual hardware connection characteristics of templates and projects in the code library, so that the problem of lower efficiency of the existing developer when writing the drive document for the LCD screen is caused.
Disclosure of Invention
The invention provides a Python-based drive generation method, a Python-based drive generation system and electronic equipment, and aims to solve the problem that the writing efficiency of drive files of an existing LCD screen is low.
According to an embodiment of the present application, there is provided a Python-based driver generation method, including the steps of: step S1: acquiring LCD panel parameters and an initialization instruction, and modifying XML data based on the LCD panel parameters and the initialization instruction; step S2: define and configure panel gpio and regulator; step S3: generating a corresponding Timing form based on Python; step S4: generating dtsi forms and h forms based on the Timing forms; step S5: and filling in corresponding areas of the dtsi form and the h form based on the panel parameters, and generating the drive of the LCD.
Preferably, in the step S3, the method mainly includes the following steps: step S31: selecting one dtsi file from a DTS library as a dtsi template, selecting one h file from a Display library as an h template, and respectively converting the h file into txt format to obtain txt documents; step S32: and obtaining a Timing form of the current dtsi template and the h template based on a program corresponding to the Python.
Preferably, in the step S4, the method mainly includes the following steps: step S41: filling corresponding panel parameters in the Timing form, and automatically writing each filled panel parameter into the txt document based on Python; step S42: based on Python and the updated txt document, a corresponding dtsi form and h form are generated.
Preferably, in the step S5, the method mainly includes the following steps: step S51: filling panel parameters in dtsi forms and h forms, and automatically writing each filled panel parameter into the txt document based on Python; step S52: respectively restoring the updated txt document into dtsi files and h files; step S53: and compiling and burning a driving code based on the updated dtsi file and the h file to obtain the driving of the LCD screen.
Preferably, the Timing form, dtsi form and h form are stored in a character-separated value format.
The invention also provides a drive generation system based on Python, which comprises: the initialization unit is used for acquiring the parameters of the LCD panel and the initialization instructions and modifying XML data based on the parameters of the LCD panel and the initialization instructions; a configuration unit for defining and configuring the panel gpio and the regulator; the first form generation unit is used for generating a corresponding Timing form based on Python; the second form generation unit is used for generating dtsi forms and h forms based on the Timing forms; and a drive generating unit for generating the drive of the LCD based on the panel parameters and filling in the corresponding areas of the dtsi form and the h form.
The invention also provides an electronic device comprising a memory and a processor, the memory having stored therein a computer program arranged to execute the Python-based driver generation method of any one of the above when run; the processor is arranged to execute the Python-based driver generation method as described in any one of the above by means of the computer program.
The Python-based drive generation method provided by the invention has the following beneficial effects:
The method has the advantages that the common dtsi form and the common h form are manufactured by the two files of the dtsi and the h in the driving program of the LCD screen, the corresponding parameter positions in the two files of the dtsi and the h are replaced and modified based on Python software, manual searching and positioning are not needed, meanwhile, the two files of the dtsi and the h in the driving file of the LCD screen are written based on the form of the form, the multi-platform applicability is high, the form is only manufactured according to the formats in different platforms, redesign of the dtsi file is not needed, and a developer can finish file writing only by extracting form information according to the LCD specification and is not limited by hardware of the LCD and a driving IC thereof. Meanwhile, the LCD driver is written by using the formalization, and the advantages of simplicity and rapidness in writing a Python program, high development efficiency and the like are combined, so that the LCD driver transplanting flow is further simplified by the formalization, the working pressure of a developer is practically reduced, and the development efficiency is greatly improved. Furthermore, the list is friendly to machine interaction, and the explanation of the node names and the corresponding Chinese explanation exist in the list, so that the threshold requirement of a developer for writing in an LCD driver is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a Python-based driver generation method according to a first embodiment of the present invention.
Fig. 2 is a flowchart of step S3 in the Python-based driver generating method according to the first embodiment of the present invention.
Fig. 3 is a flowchart of step S4 in the Python-based driver generating method according to the first embodiment of the present invention.
Fig. 4 is a flowchart of step S5 in the Python-based driver generating method according to the first embodiment of the present invention.
Fig. 5 is a block diagram of a Python-based drive generation system according to a second embodiment of the present invention.
Fig. 6 is a block diagram of an electronic device according to a third embodiment of the present invention.
Description of the reference numerals:
1. An initializing unit; 2. a configuration unit; 3. a first form generation unit; 4. a second form generation unit;
5. a drive generation unit;
10. a memory; 20. a processor.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
Referring to fig. 1, a first embodiment of the present invention discloses a method for generating a Python-based driver, which includes the following steps:
Step S1: the LCD panel parameters and the initialization instructions are obtained, and XML data is modified based on the LCD panel parameters and the initialization instructions.
Step S2: define and configure panel gpio and regulator.
Step S3: based on Python, a corresponding Timing form is generated.
Step S4: based on the Timing form, dtsi and h forms are generated. And
Step S5: and filling in corresponding areas of the dtsi form and the h form based on the panel parameters, and generating the drive of the LCD.
It will be understood that in step S1, the panel parameters and the initialization command of the LCD screen are factory data of the LCD screen, and the provider provides the user to modify the corresponding XML data based on the provided panel parameters.
It will be appreciated that in step S3, the user designs a Timing form for generating the LCD screen in Python software, the Timing information of the LCD and MIPI clocks is closely related to only the frame rate, lane number, panel resolution and CPU platform, and the Timing value is obtained by calculating the above panel parameters, for example, a table dsi_time_parameters_user_interactive_splash sheet having the Timing information automatically calculated on a platform may write a Python application program setPanel _timing.py, directly call a calculation electronic table of the platform, or write a table generation on other platforms.
It will be understood that in step S4, the Timing form in step S3 is first used to update the driving data, and then the generation of dtsi form and h form is performed.
It can be understood that in step S5, a plurality of different panel parameters of the current LCD screen are respectively filled into corresponding positions of the forms, and the obtained dtsi forms and h forms sort the node names, the user only needs to fill in the corresponding panel parameters at the positions of the forms, after filling in, the forms compile and modify the driving file based on the filled panel parameters, and the process of modifying and replacing is completed by Python, without entering into a complex dtsi file and h file to find the designated positions to be independently modified.
It will be appreciated that in step S5, the DTSI form has a plurality of data items in the DTSI file, such as "panel name", "panel type", "horizontal front edge value", "horizontal back edge value", etc., and the DTSI node names are synchronously displayed in the foregoing items, for example, in the DTSI form, the DTSI node names are qcom, mdss-dsi-panel-name, and the corresponding descriptions are "panel names", and the blank columns are filled with the data of the panel names.
It will be appreciated that in this embodiment, the driving configuration of the LCD is described by taking a much higher-pass platform as an example for each large manufacturer, the LCD driving migration is mainly a code configuration of Kernel and small Kernel LK, where Kernel needs to be configured including dsi-panel-xx-video. Dtsi, msmxx-mds. Dtsi, msmxx-mdss-panel. Dtsi, msmxx-mtp.dtsi, msmxx-pinctrl. Dtsi, etc., and LK needs to be configured including oem _panel. C and panel_xx_video.
It will be appreciated that in this embodiment, the design of the two files, dtsi in the kernel and h in the small kernel, are the core of the LCD start-up, the contents of both files have their own rules, both strongly correlated with parameters of the panel and initialization instructions provided by the vendor, which provides the basis for the programmed implementation of parameter extraction and filling.
Referring to fig. 2, the step S3 mainly includes the following steps:
Step S31: and selecting one dtsi file from the DTS library as a dtsi template, selecting one h file from the Display library as an h template, and respectively converting the h file into txt format to obtain a txt document. And
Step S32: and obtaining a Timing form of the current dtsi template and the h template based on a program corresponding to the Python.
It can be understood that in step S31, the dtsi templates and the h templates are selected respectively, and for development convenience, the templates are first converted into txt plain text formats for processing, and the txt documents of the dtsi templates and the txt documents of the h templates have corresponding Timing information respectively, and the Timing forms in step S3 commonly include Timing information of the dtsi templates and the h templates.
It will be appreciated that in step S32, getPanel _Timing_dtsi.py script program is run to generate the Timing form dtsi _timing.csv in the current dtsi file based on Python.
Referring to fig. 3, the step S4 mainly includes the following steps:
Step S41: filling corresponding panel parameters in the Timing form, and automatically writing each filled panel parameter into the txt document based on Python. And
Step S42 generates a corresponding dtsi form and h form based on Python and the updated txt document.
It is understood that in step S41, the Timing form makes substitution modification of parameters of the txt document based on Python software.
It will be appreciated that in step S42, the getPanel _dtsi.py script program is run to obtain the updated form panel_dtsi.csv (dtsi form) in the dtsi file. Meanwhile, getPanel _h.py script program is run to obtain the form panel_h.csv (h form) in the updated h file.
It will be appreciated that in step S42, the Timing form, dtsi form, and h form are no longer stored in xlsx form, but are stored in character separation value format (CsV format) for development convenience, and because dtsi templates and h templates are stored in plain text (txt) format in step S31.
It will be appreciated that before dtsi and h forms are created, the Timing form needs to be updated first, since the dtsi file includes Timing information of the MIPI interface in addition to some basic information in the form, and the h file also involves the invocation of Timing information.
Referring to fig. 4, the step S5 mainly includes the following steps:
step S51: filling in dtsi the form and h form into the panel parameters, automatically writing each panel parameter filled in into the txt document based on Python.
Step S52: and respectively restoring the updated txt document into dtsi files and h files. And
Step S53: and compiling and burning a driving code based on the updated dtsi file and the h file to obtain the driving of the LCD screen.
It will be understood that, in step S51, based on the dtsi and h forms obtained, the two forms are selected from the panel parameters of the LCD screen to be filled in, and the positions specified in txt are modified by Python software instead.
It is understood that in step S52, based on the update of the txt document in step S41 and step S51, the format conversion is performed on the txt document, and the converted formats are converted into the. dtsi and.h file formats, respectively, to obtain two files of. dtsi and.h after the update.
It can be understood that in step S53, the obtained dtsi file and h file are compiled and burned as the driving IC file of the current LCD screen, so that the driving writing of the LCD screen can be completed.
It is understood that steps S31, S32, S41, S42, S51, S52, and S53 are sequentially and continuously performed.
Referring to fig. 5, a second embodiment of the present invention provides a Python-based driver generating system, which adopts the Python-based driver generating method provided in the first embodiment, and the system includes:
An initialization unit 1 for acquiring LCD panel parameters and initialization instructions, and modifying XML data based on the LCD panel parameters and the initialization instructions.
A configuration unit 2 for defining and configuring the panel gpio and the regulator.
A first form generating unit 3, configured to generate a corresponding Timing form based on Python.
And the second form generating unit 4 is used for generating dtsi forms and h forms based on the Timing form. And
And the drive generating unit 5 is used for generating the drive of the LCD based on the panel parameters and filling in the corresponding areas of the dtsi form and the h form.
Referring to fig. 6, a third embodiment of the present invention provides an electronic device, which includes a memory 10 and a processor 20, where the memory 10 stores an arithmetic program configured to execute the steps in any one of the above embodiments of the Python-based drive generation method when running. The processor 20 is arranged to perform the steps of any of the above described Python based driver generation method embodiments by means of the operator program.
Alternatively, in this embodiment, the electronic device may be located in at least one network device of a plurality of network devices of the computing machine network.
The Python-based drive generation method provided by the invention has the following beneficial effects:
The method has the advantages that the common dtsi form and the common h form are manufactured by the two files of the dtsi and the h in the driving program of the LCD screen, the corresponding parameter positions in the two files of the dtsi and the h are replaced and modified based on Python software, manual searching and positioning are not needed, meanwhile, the two files of the dtsi and the h in the driving file of the LCD screen are written based on the form of the form, the multi-platform applicability is high, the form is only manufactured according to the formats in different platforms, redesign of the dtsi file is not needed, and a developer can finish file writing only by extracting form information according to the LCD specification and is not limited by hardware of the LCD and a driving IC thereof. Meanwhile, the LCD driver is written by using the formalization, and the advantages of simplicity and rapidness in writing a Python program, high development efficiency and the like are combined, so that the LCD driver transplanting flow is further simplified by the formalization, the working pressure of a developer is practically reduced, and the development efficiency is greatly improved. Furthermore, the list is friendly to machine interaction, and the explanation of the node names and the corresponding Chinese explanation exist in the list, so that the threshold requirement of a developer for writing in an LCD driver is reduced.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts.
The above-described functions defined in the method of the application are performed when the computer program is executed by a processor. It should be noted that, the computer memory according to the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer memory may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing.
More specific examples of computer memory may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable signal medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present application may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of remote computers, the remote computer may be connected to the user computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (e.g., connected through the internet using an internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present application may be implemented in software or in hardware. The described units may also be provided in a processor, for example, described as: a processor includes an initialization unit, a configuration unit, a first form generation unit, a second form generation unit, and a drive generation unit. The names of these units do not constitute limitations of the unit itself in some cases, and for example, the drive generation unit may also be described as "a unit for generating the drive of the LCD based on the panel parameters filled in the corresponding areas of the dtsi form and the h form".
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.
Claims (5)
1. A drive generation method based on Python is characterized in that:
The method comprises the following steps:
Step S1: acquiring LCD panel parameters and an initialization instruction, and modifying XML data based on the LCD panel parameters and the initialization instruction;
step S2: define and configure panel gpio and regulator;
step S3: generating a corresponding Timing form based on Python;
Step S4: generating dtsi forms and h forms based on the Timing forms;
And
Step S5: filling in corresponding areas of the dtsi form and the h form based on panel parameters, and generating a drive of the LCD;
step S3 further comprises the steps of:
step S31: selecting one dtsi file from a DTS library as a dtsi template, selecting one h file from a Display library as an h template, and respectively converting the h file into txt format to obtain txt documents; and
Step S32: obtaining a Timing form of a current dtsi template and a h template based on a program corresponding to Python;
step S4 further comprises the steps of:
Step S41: filling corresponding panel parameters in the Timing form, and automatically writing each filled panel parameter into the txt document based on Python;
And
Step S42 generates a corresponding dtsi form and h form based on Python and the updated txt document.
2. The Python-based drive generation method of claim 1, wherein:
the step S5 mainly includes the following steps:
step S51: filling panel parameters in dtsi forms and h forms, and automatically writing each filled panel parameter into the txt document based on Python;
Step S52: respectively restoring the updated txt document into dtsi files and h files;
And
Step S53: and compiling and burning a driving code based on the updated dtsi file and the h file to obtain the driving of the LCD screen.
3. The Python-based drive generation method of claim 2, wherein:
And the Timing form, dtsi form and h form are stored in a character separation value format.
4. A Python-based drive generation system, characterized by:
Comprising the following steps:
The initialization unit is used for acquiring the parameters of the LCD panel and the initialization instructions and modifying XML data based on the parameters of the LCD panel and the initialization instructions;
a configuration unit for defining and configuring the panel gpio and the regulator;
the first form generation unit is used for generating a corresponding Timing form based on Python;
The second form generation unit is used for generating dtsi forms and h forms based on the Timing forms;
And
The drive generating unit is used for filling in the corresponding areas of the dtsi form and the h form based on the panel parameters to generate the drive of the LCD;
The first form generating unit is further used for selecting one dtsi file from the DTS library as a dtsi template, selecting one h file from the Display library as an h template, and respectively converting the h file into txt format to obtain txt documents; obtaining a Timing form of the current dtsi template and the h template based on a program corresponding to Python;
The second form generation unit is also used for filling corresponding panel parameters in the Timing form, and each panel parameter filled in is automatically written into the txt document based on Python; and generating a corresponding dtsi form and an h form based on the Python and the updated txt document.
5. An electronic device comprising a memory and a processor, characterized in that:
a computer program stored in the memory, the computer program being arranged to execute the Python-based driver generation method of any one of claims 1 to 4 at run-time;
the processor is arranged to execute the Python-based driver generating method of any one of claims 1 to 4 by means of the computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110561119.6A CN113360194B (en) | 2021-05-22 | 2021-05-22 | Python-based drive generation method and system and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110561119.6A CN113360194B (en) | 2021-05-22 | 2021-05-22 | Python-based drive generation method and system and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113360194A CN113360194A (en) | 2021-09-07 |
CN113360194B true CN113360194B (en) | 2024-06-14 |
Family
ID=77526649
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110561119.6A Active CN113360194B (en) | 2021-05-22 | 2021-05-22 | Python-based drive generation method and system and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113360194B (en) |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
AU2008200148B2 (en) * | 2001-09-10 | 2010-01-21 | Igt | Method for developing gaming programs compatible with a computerized gaming operating system and apparatus |
US8055886B2 (en) * | 2007-07-12 | 2011-11-08 | Texas Instruments Incorporated | Processor micro-architecture for compute, save or restore multiple registers and responsive to first instruction for repeated issue of second instruction |
CN101241448A (en) * | 2008-03-07 | 2008-08-13 | 浪潮集团山东通用软件有限公司 | Agile method for inquiring display content driven by multi-conditions |
US8239340B2 (en) * | 2008-04-11 | 2012-08-07 | Trevor Hanson | Message conduit systems with algorithmic data stream control and methods for processing thereof |
AU2013206449A1 (en) * | 2012-06-20 | 2014-01-16 | Visa International Service Association | Multi-channel remote payment apparatuses, methods and systems |
US10387577B2 (en) * | 2015-03-03 | 2019-08-20 | WonderHealth, LLC | Secure data translation using machine-readable identifiers |
CN110998487A (en) * | 2017-08-23 | 2020-04-10 | 英特尔公司 | System, apparatus and method for adaptive operating voltage in Field Programmable Gate Array (FPGA) |
CN109426625A (en) * | 2017-08-30 | 2019-03-05 | 深圳市道通科技股份有限公司 | A kind of control device and implementation method that more drivings are compatible |
US10810110B1 (en) * | 2018-01-25 | 2020-10-20 | Intuit Inc. | Methods, systems, and articles of manufacture for testing web services using a behavior-driven development domain specific language framework |
CN111414348A (en) * | 2019-01-08 | 2020-07-14 | 顺丰科技有限公司 | Method and device for modifying database instance parameters |
CN111488274B (en) * | 2020-03-27 | 2023-10-24 | 杭州海兴电力科技股份有限公司 | Test case construction method, test equipment and storage medium |
-
2021
- 2021-05-22 CN CN202110561119.6A patent/CN113360194B/en active Active
Non-Patent Citations (2)
Title |
---|
光栅测量芯片中显示接口的设计;冯守博 等;《电子器件》;第31卷(第1期);265-267 * |
基于CAN总线的电动公交车LCD显示系统设计;李然;《中国优秀硕士学位论文全文数据库信息科技辑》(第6期);I136-46 * |
Also Published As
Publication number | Publication date |
---|---|
CN113360194A (en) | 2021-09-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109739478B (en) | Front-end project automatic construction method and device, storage medium and electronic equipment | |
CN102971688B (en) | Cross-platform program frame | |
CN107491329B (en) | Docker mirror image construction method, device, storage medium and electronic device | |
US20140082511A1 (en) | Method and system for emulating desktop software applications in a mobile communication network | |
CN110888650B (en) | Method and system for customizing operating system mirror image | |
CN104317587A (en) | Automatic android mobile device oriented application generation method | |
US20110022943A1 (en) | Document object model (dom) application framework | |
CN111740948A (en) | Data packet issuing method, dynamic updating method, device, equipment and medium | |
CN111459501A (en) | SVG-based Web configuration picture storage and display system, method and medium | |
US20130080879A1 (en) | Methods and apparatus providing document elements formatting | |
CN114077430A (en) | Interface generation method and device, electronic equipment and storage medium | |
CN114020256A (en) | Front-end page generation method, device and equipment and readable storage medium | |
CN113238795A (en) | Component distribution method, device, electronic equipment, storage medium and program product | |
CN112395027A (en) | Widget interface generation method and device, storage medium and electronic equipment | |
CN106873989A (en) | Application program building method and device | |
US11604662B2 (en) | System and method for accelerating modernization of user interfaces in a computing environment | |
CN114217789A (en) | Function component expansion method, device, equipment, storage medium and program product | |
CN106528115A (en) | Visualized interface development method and device | |
US20180267782A1 (en) | Development platform of mobile native applications | |
CN112214256B (en) | Machine learning operation control method and device, electronic equipment and storage medium | |
CN113360194B (en) | Python-based drive generation method and system and electronic equipment | |
CN117762519A (en) | Component management method, device, computer equipment and storage medium | |
CN112825033A (en) | Interface code generation method, device, equipment and storage medium | |
CN113220374A (en) | Software processing method and device | |
US10656921B2 (en) | Sparse object instantiation |
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 |