CN110362360A - Driver loading method, device, mobile terminal and storage medium - Google Patents

Driver loading method, device, mobile terminal and storage medium Download PDF

Info

Publication number
CN110362360A
CN110362360A CN201910636946.XA CN201910636946A CN110362360A CN 110362360 A CN110362360 A CN 110362360A CN 201910636946 A CN201910636946 A CN 201910636946A CN 110362360 A CN110362360 A CN 110362360A
Authority
CN
China
Prior art keywords
display
driver
data
address
mobile terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910636946.XA
Other languages
Chinese (zh)
Inventor
俞斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201910636946.XA priority Critical patent/CN110362360A/en
Publication of CN110362360A publication Critical patent/CN110362360A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Abstract

The embodiment of the present application discloses a kind of driver loading method, device, mobile terminal and storage medium, the available data display request of the embodiment of the present application, carries data to be shown in the data display request;Request is shown based on the data, obtains the current type of the display of mobile terminal;The current type with the display, the address of the driver of corresponding display are obtained from default memory space;The driver of the display is loaded according to the address;When the driver, which loads, to be completed, the data are shown by the display.The program can be when mobile terminal uses the display of multiple and different types, it can be according to the current type of the display of mobile terminal, only need load once can correct load driver program, and complete the display of data, and then the efficiency of the display load driver program of mobile terminal is substantially increased, so that display quickly shows data.

Description

Driver loading method, device, mobile terminal and storage medium
Technical field
This application involves technical field of electronic equipment, and in particular to a kind of driver loading method, device, mobile terminal And storage medium.
Background technique
With the development of technology, the type of display is more and more, and the display of different model can be used in mobile terminal, However the display of different model matches different drivers, only when mobile terminal loads driving journey corresponding with display When sequence, display could be worked normally.
Currently, mobile terminal needs when being provided with the driver of display of multiple and different models on mobile terminal The driver for successively loading the display of each different model, until the driver matches with display, display is It can work normally.Pacified as it can be seen that existing method needs just be loaded successfully by repeated loading driver with mobile terminal The matched driver of the display of dress causes mobile terminal slower to the loading velocity of driver, to reduce shifting The starting up speed of dynamic terminal.
Summary of the invention
The embodiment of the present application provides a kind of driver loading method, device, mobile terminal and storage medium, can be improved The efficiency of the driver load of display.
In a first aspect, the embodiment of the present application provides a kind of driver loading method, comprising:
Data display request is obtained, carries data to be shown in the data display request;
Request is shown based on the data, obtains the current type of the display of mobile terminal;
The current type with the display, the ground of the driver of corresponding display are obtained from default memory space Location;
The driver of the display is loaded according to the address;
When the driver, which loads, to be completed, the data are shown by the display.
In some embodiments, the current type obtained from default memory space with the display, it is corresponding Display driver address before, the method also includes:
The configuration for detecting the driver of all displays on mobile terminal, obtains the letter of the driver of multiple displays Breath, the information includes the type of the address of driver, the size of driver and display;
The type association of the address of the driver, the size of driver and display is stored to corresponding default Memory space.
In some embodiments, described by the address of the driver, the class of the size of driver and display Type associated storage is to corresponding default memory space, comprising:
According to the size of the driver of the multiple display, the driver distribution of respectively each display is corresponding Default memory space;
The type association of the address of the driver of the multiple display, the size of driver and display is stored To the corresponding default memory space.
In some embodiments, described to show request based on the data, obtain the type of the display, comprising:
Request is shown based on the data, obtains the mark of the display;
The current type of the display is obtained according to the mark.
In some embodiments, after the display driver according to address load, the method Further include:
When the driver loads failure, output load failure cause.
In some embodiments, described to show that the data include: by the display
Obtain the size of the data;
According to the size of the data, the data are shown by the display.
Second aspect, the embodiment of the present application also provides a kind of driver chargers, comprising:
Request module carries number to be shown for obtaining data display request in the data display request According to;
Type acquisition module obtains the current type of the display for showing request based on the data;
Address acquisition module, for obtaining display corresponding with the current type of the display from default memory space The address of the driver of device;
Loading module, for loading the driver of the display according to the address;
Display module shows the data by the display when completing for driver load.
In some embodiments, the driver charger further include:
First detection module obtains multiple aobvious for detecting the configuration of the driver of all displays on mobile terminal Show that the information of the driver of device, the information include the type of the address of driver, the size of driver and display;
First memory module, for closing the type of the size of the address of the driver, driver and display Connection is stored to corresponding default memory space.
In some embodiments, the memory module is specifically used for:
According to the size of the driver of the multiple display, the driver distribution of respectively each display is corresponding Default memory space;
The type association of the address of the driver of the multiple display, the size of driver and display is stored To the corresponding default memory space.
In some embodiments, the type acquisition module is specifically used for:
Request is shown based on the data, obtains the mark of the display of mobile terminal;
The current type of the display of mobile terminal is obtained according to the mark.
In some embodiments, the driver charger further include:
Output module, for when the driver loads failure, output to load failure cause.
In some embodiments, the display module is specifically used for:
Obtain the size of the data;
According to the size of the data, the data are shown by the display.
The third aspect, the embodiment of the present application also provides a kind of mobile terminal, including memory and processor, the storages Computer program is stored in device, the processor executes the embodiment of the present application when calling the computer program in the memory Any driver loading method provided.
Fourth aspect, the embodiment of the present application also provides a kind of storage medium, the storage medium is for storing computer Program, the computer program are loaded by processor, to execute any driver load side provided by the embodiments of the present application Method.
The embodiment of the present application, can be aobvious based on the data after acquisition carries the data display request of data to be shown Show request, obtain the current type of the display of mobile terminal, and obtains from default memory space current with the display Type, the address of the driver of corresponding display, then, according to the driver of the address loaded and displayed device, when the drive When dynamic program load is completed, the data carried in data display request are shown by display.Since the program can be according to shifting The current type of the display of dynamic terminal obtains the address of driver corresponding with the display, and is loaded according to the address The driver of display, to be shown to data, therefore, when mobile terminal uses the display of multiple and different types, Can be according to the current type of the display of mobile terminal, it is only necessary to load once can correct load driver program, and complete number According to display, and then the efficiency of the display load driver program of mobile terminal is substantially increased, so that display is quickly shown Registration evidence.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is the flow diagram of driver loading method provided by the embodiments of the present application;
Fig. 2 is the structural schematic diagram of driver charger provided by the embodiments of the present application;
Fig. 3 is another structural schematic diagram of driver charger provided by the embodiments of the present application;
Fig. 4 is another structural schematic diagram of driver charger provided by the embodiments of the present application;
Fig. 5 is the structural schematic diagram of mobile terminal provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, those skilled in the art's every other implementation obtained without creative efforts Example, shall fall in the protection scope of this application.
Referring to Fig. 1, Fig. 1 is the flow diagram for the driver loading method that one embodiment of the application provides.The drive The executing subject of dynamic program loading method can be driver charger provided by the embodiments of the present application, or be integrated with this The mobile terminal of driver charger, wherein the driver charger can be by the way of hardware or software It realizes, which can be smart phone, tablet computer, palm PC or laptop etc..The driver adds Support method may include:
S101, data display request is obtained, carries data to be shown in data display request.
Wherein, data display request may include a data display request or multiple data display requests, in addition each Data display request, can be the data display request of different types of display, for example, can receive the number of a display It can be different types of display according to display request or the data display request of more displays, every display, such as not The display of same supplier, the display of same provider different model.
For example, data display request caused by power on button is triggered on available mobile terminal, alternatively, can receive The data display request, etc. that other terminals or remote controler are sent.It should be noted that the acquisition modes of data display request can To carry out flexible setting according to actual needs, particular content is not construed as limiting here.
S102, it is based on data display request, obtains the current type of the display of mobile terminal.
Wherein, the current type of display is the type of display, and the current type of display may include a class Type or multiple types, for example, when there is a data display request, the current class of the display of an available mobile terminal Type;When there is multiple data display requests, the current type of the display of available multiple mobile terminals.
In some embodiments, it is based on data display request, the current type for obtaining the display of mobile terminal can be with It include: that the mark of the display of mobile terminal is obtained based on data display request;The display of mobile terminal is obtained according to mark Current type.
Wherein, the mark of display can be used for the unique identification display, and the mark of display can be original device Manufacturer's proof of identification (Original Equipment Manufacturer Identification, OEM ID), according to OEM ID can obtain the current type of the display of mobile terminal, and the current type of display and the driver of display mutually close Connection.Either, the mark of display can be the title of display or the number of display etc..
After getting data display request, the mark of display can be obtained from mobile terminal, alternatively, can be from number According to the mark for extracting display in display request, due to the mark of display with the type of display be it is corresponding, can be with The current type of the display of mobile terminal is obtained according to the mark of display.
S103, obtained from default memory space with the current type of display, the driver of corresponding display Address.
When get the current type of display of mobile terminal be one when, can be obtained from default memory space and The current type of the display, the address of the driver of corresponding display.When working as the display for getting mobile terminal When preceding type is multiple, can be obtained from default memory space and the current type of each display, corresponding display The address of driver obtains multiple addresses.For example, the display that mobile terminal A is used may include display a, display b With display c etc., as the current type AAA for the display a for obtaining mobile terminal based on the data display request 1 got, with And when based on the data display request 2 that gets obtaining the current type CCC of the display c of mobile terminal, at this point it is possible to from pre- If obtaining the current type AAA, the address M of the driver of corresponding display a, Yi Jicong with display a in memory space The current type CCC, the address N of the driver of corresponding display with display c are obtained in default memory space.
In some embodiments, the current type with display, corresponding display are obtained from default memory space Driver address before, driver loading method can also include: detect mobile terminal on all displays drive The configuration of dynamic program obtains the information of the driver of multiple displays, which includes the address of driver, driver Size and display type;By the type association of the address of driver, the size of driver and display store to Corresponding default memory space.
Wherein, all displays include the display of different supplier's supplies and the different model of same supplier supply Display, for example, display supplier supplies in order to prevent, insufficient, the supply of material is of poor quality and raw for the factors bring such as commodity price height Wind-producing danger, in production, selection for display, the supplier for often selecting two to three different supplies, even Four to five different suppliers are selected to supply sometimes, in addition there are many displays of different model for each supply commercial city Device.
The relevant information of driver is stored for convenience, can detecte the drive of all displays on mobile terminal The configuration of dynamic program obtains the information of the driver of multiple displays, wherein driver is configured to start when booting The configuration file of driver, the configuration file may include having the address of driver, the size of driver and display The information such as type.
In addition, the type of display includes the type of all displays, naturally it is also possible to the current type including display, At this point it is possible to preset memory space for driver distribution, and by the address of driver, the size and display of driver The type association of device is stored to corresponding default memory space, and the size of the default memory space can carry out according to actual needs The size of flexible setting, specific memory space is not construed as limiting here.
Due to the address of driver and the current type associated storage of display, it can be empty from default storage Between the middle current type for obtaining display obtain the current type with display and according to the current type of display, it is corresponding The address of the driver of display.
In some embodiments, the current type with display, corresponding display are obtained from default memory space Driver address before, driver loading method can also include: to detect the drivers of multiple displays to match It sets, obtains the information of multiple display drivers, information includes the address of driver, the size of driver and display Type;The type association of the address of driver, the size of driver and display is stored to corresponding default storage Space.Wherein, multiple displays may include all displays on mobile terminal, can also include other displays.
In some embodiments, the type association of the address of driver, the size of driver and display is deposited Storage to corresponding default memory space may include: according to the size of the driver of multiple displays, respectively each display The corresponding default memory space of the driver distribution of device;By the address of the driver of multiple displays, driver it is big Small and display type association is stored to corresponding default memory space.
Wherein, the type of the address of the driver of multiple displays, the size of driver and display can store To continuous survival space, the driver memory space of one piece of big display is connected into.
For example, can be the driver distribution pair of each display according to the size of the driver of multiple displays The default memory space answered, can be such that
The driver [1] of display, size are ATE [1];
The driver [2] of display, size are ATE [2];
The driver [3] of display, size are ATE [3];
……
The driver [N-1] of display, size are ATE [N-1];
The driver [N] of display, size are ATE [N];
Wherein, N is the number of the driver of the display detected, the driving of each display after address of cache The address range of program is as follows:
The address range of the driver [1] of display is: 0~ATE [1] -1;
The address range of the driver [2] of display is: ATE [1]~ATE [1]+ATE [2] -1;
The address range of the driver [3] of display is: ATE [1]+ATE [2]~ATE [1]+ATE [2]+ATE [3]- 1;
……
The address range of the driver [N-1] of display is: ATE [1]+ATE [2]+ATE [3]+...+ATE [N-3]+ ATE [N-2]~ATE [1]+ATE [2]+ATE [3]+...+ATE [N-2]+ATE [N-1] -1;The driver [N] of display Address range is: ATE [1]+ATE [2]+ATE [3]+...+ATE [N-2]+ATE [N-1]~ATE [1]+ATE [2]+ATE [3] +……+ATE[N-1]+ATE[N]-1;
It needs, particular/special requirement is had no for the sequence of the driver of display, for example, there are three displays Driver: the driver of the driver of the first display, the driver of second display and third display, then N =3;Here, the sequence of the driver of display may is that the driver [1] of display is the driving journey of the first display Sequence, the driver [2] of display are the driver of second display, and the driver [3] of display is third display Driver;In addition, the sequence of the driver of display is also possible to: the driver [1] of display is that third is shown The driver of device, the driver [2] of display are the driver of the first display, and the driver [3] of display is The driver of second display.
At this point, after presetting memory space well for the driver distribution of each display, it can be by multiple displays The type association of the address of driver, the size of driver and display is stored to corresponding default memory space.
S104, according to the driver of address loaded and displayed device.
Since the type of the address of the driver of multiple displays, the size of driver and display being stored Therefore the address of the driver of display can be obtained in the memory space at this time, according to display to default memory space The address of the driver of device obtains the driver of display, and loads the driver, and therefore, only loading can once add Carry the driver of corresponding display.
S105, when driver load complete when, data are shown by display.
When the driver of display, which loads, to be completed, mobile terminal can be shown in data display request by display The data of carrying.
In some embodiments, after according to the driver of address loaded and displayed device, driver loading method is also It may include: the output load failure cause when driver loads failure.
Wherein, failure cause may include defective driver, display and driver mismatch etc., for example, aobvious Show that the corresponding driver of device A is A ', when due to address load driver program by the driver of display A, display A The driver of load is B ', and therefore, driver load failure, exporting the reason of loading failure is the corresponding drive of non-display Dynamic program.
In some embodiments, show that data may include: to obtain the size of data by display;According to data Size shows the data by display.
Wherein, the size of data may include the size of data volume, the setting of data font, the setting of Data Styles and The setting etc. of data pattern, in addition, when the data of acquisition are the data that multiple displays are shown, it can be aobvious by multiple displays Show the data.
For example, when the data be image when, the size of the available image, according to the size of image by display into Row, which zooms in or out, shows the image, so that the being adapted to property of image is shown in display.In another example when the data are When text, the size of the available text carries out zooming in or out the display text by display according to the size of text Font so that being adapted to property of the text is shown in display.
The embodiment of the present application, can be aobvious based on the data after acquisition carries the data display request of data to be shown Show request, obtain the current type of the display of mobile terminal, and obtains from default memory space current with the display Type, the address of the driver of corresponding display, then, according to the driver of the address loaded and displayed device, when the drive When dynamic program load is completed, the data carried in data display request are shown by display.Since the program can be according to shifting The current type of the display of dynamic terminal obtains the address of driver corresponding with the display, and is loaded according to the address The driver of display, to be shown to data, therefore, when mobile terminal uses the display of multiple and different types, Can be according to the current type of the display of mobile terminal, it is only necessary to load once can correct load driver program, and complete number According to display, and then the efficiency of the display load driver program of mobile terminal is substantially increased, so that display is quickly shown Registration evidence.
For convenient for better implementation driver loading method provided by the embodiments of the present application, the embodiment of the present application is also provided A kind of device based on above-mentioned driver loading method.The wherein meaning of noun and phase in above-mentioned driver loading method Together, specific implementation details can be with reference to the explanation in embodiment of the method.
Referring to Fig. 2, Fig. 2 is the structural schematic diagram of driver charger provided by the embodiments of the present application, wherein should Driver charger may include request module 301, type acquisition module 302, address acquisition module 303, load Module 304 and display module 305 etc..
Wherein, request module 301 carries to be shown for obtaining data display request in data display request Data.
Wherein, data display request may include a data display request or multiple data display requests, in addition each Data display request, can be the data display request of different types of display, for example, can receive the number of a display It can be different types of display according to display request or the data display request of more displays, every display, such as not The display of same supplier, the display of same provider different model.
It is asked for example, triggering data caused by power on button on the available mobile terminal of request module 301 and showing It asks, alternatively, can receive other terminals or the data display request, etc. that remote controler is sent.It should be noted that data are shown The acquisition modes of request can carry out flexible setting according to actual needs, and particular content is not construed as limiting here.
Type acquisition module 302 obtains the current type of display for being based on data display request.
Wherein, the current type of display is the type of display, and the current type of display may include a class Type or multiple types, for example, when there is a data display request, the current class of the display of an available mobile terminal Type;When there is multiple data display requests, the current type of the display of available multiple mobile terminals.
In some embodiments, type acquisition module 302 is specifically used for:
Request is shown based on the data, obtains the mark of the display of mobile terminal;
The current type of the display of mobile terminal is obtained according to the mark.
Wherein, the mark of display can be used for the unique identification display, and the mark of display can be OEM ID, class Type obtains the current type that module 302 can obtain the display of mobile terminal according to OEM ID, the current class of display The driver of type and display is interrelated.Either, the mark of display can be the title or display of display Number etc..
After getting data display request, type acquisition module 302 can obtain the mark of display from mobile terminal Know, alternatively, the mark of display can be extracted from data display request, since the mark of display and the type of display are It is corresponding, therefore type acquisition module 302 can obtain the current type of the display of mobile terminal according to the mark of display.
Address acquisition module 303, for obtaining display corresponding with the current type of display from default memory space The address of the driver of device.
When getting the current type of display of mobile terminal is one, address acquisition module 303 can be from default The current type with the display, the address of the driver of corresponding display are obtained in memory space.When getting movement The current type of the display of terminal be it is multiple when, address acquisition module 303 can be obtained from default memory space with each The current type of display, the address of the driver of corresponding display obtain multiple addresses.For example, mobile terminal A is used Display may include display a, display b and display c etc., moved when being obtained based on the data display request 1 got The current type AAA of the display a of dynamic terminal, and the display based on the acquisition mobile terminal of data display request 2 got When the current type CCC of device c, at this point it is possible to the current type AAA with display a is obtained from default memory space, it is corresponding The address M of the driver of display a, and obtain from default memory space with the current type CCC of display c, it is corresponding Display driver address N.
In some embodiments, as shown in figure 3, driver charger can also include first detection module 306 With the first memory module 307 etc., specifically can be such that
First detection module 306 obtains multiple for detecting the configuration of the driver of all displays on mobile terminal The information of the driver of display, information include the type of the address of driver, the size of driver and display;
First memory module 307, for by the type association of the size of the address of driver, driver and display It stores to corresponding default memory space.
Wherein, all displays may include that the display of different supplier's supplies and same supplier supply on mobile terminal The display for the different model answered, for example, the supply insufficient, supply of material of display supplier is of poor quality and for commodity price height in order to prevent Etc. factors bring production risk, in production, selection for display, the supplier for often selecting two to three different It supplies, or even selects four to five different suppliers to supply sometimes, in addition there are many not for each supply commercial city With the display of model.
The relevant information of driver is stored for convenience, first detection module 306 can detecte mobile terminal The configuration of the driver of upper all displays obtains the information of the driver of multiple displays, wherein driver is matched It is set to the configuration file of the driver started when booting, which may include the address for having driver, driving journey The information such as the size of sequence and the type of display.
In addition, the type of display includes the type of all displays on mobile terminal, naturally it is also possible to including display Current type, at this point, the first memory module 307 can preset memory space for driver distribution, and by driver Address, the size of driver and the type association of display store to corresponding default memory space, the default storage is empty Between size can carry out flexible setting according to actual needs, the size of specific memory space is not construed as limiting here.
Due to the address of driver and the current type associated storage of display, it can be empty from default storage Between the middle current type for obtaining display obtain the current type with display and according to the current type of display, it is corresponding The address of the driver of display.
In some embodiments, driver charger can also include the second detection module and the second memory module Deng specifically can be such that
Second detection module, the configuration of the driver for multiple displays obtain the driver of multiple displays Information, information includes the type of the address of driver, the size of driver and display;
Second memory module, for depositing the type association of the size of the address of driver, driver and display It stores up to corresponding default memory space.
Wherein, multiple displays may include all displays on mobile terminal, can also include other displays.
In some embodiments, the first memory module 307 is specifically used for:
According to the size of the driver of the multiple display, the driver distribution of respectively each display is corresponding Default memory space;
The type association of the address of the driver of the multiple display, the size of driver and display is stored To the corresponding default memory space.
Wherein, the type of the address of the driver of multiple displays, the size of driver and display can store To continuous survival space, the driver memory space of one piece of big display is connected into.
For example, the first memory module 307 can be each display according to the size of the driver of multiple displays The corresponding default memory space of driver distribution, can be such that
The driver [1] of display, size are ATE [1];
The driver [2] of display, size are ATE [2];
The driver [3] of display, size are ATE [3];
……
The driver [N-1] of display, size are ATE [N-1];
The driver [N] of display, size are ATE [N];
Wherein, N is the number of the driver of the display detected, the driving of each display after address of cache The address range of program is as follows:
The address range of the driver [1] of display is: 0~ATE [1] -1;
The address range of the driver [2] of display is: ATE [1]~ATE [1]+ATE [2] -1;
The address range of the driver [3] of display is: ATE [1]+ATE [2]~ATE [1]+ATE [2]+ATE [3]- 1;
……
The address range of the driver [N-1] of display is: ATE [1]+ATE [2]+ATE [3]+...+ATE [N-3]+ ATE [N-2]~ATE [1]+ATE [2]+ATE [3]+...+ATE [N-2]+ATE [N-1] -1;The driver [N] of display Address range is: ATE [1]+ATE [2]+ATE [3]+...+ATE [N-2]+ATE [N-1]~ATE [1]+ATE [2]+ATE [3] +……+ATE[N-1]+ATE[N]-1;
It needs, particular/special requirement is had no for the sequence of the driver of display, for example, there are three displays Driver: the driver of the driver of the first display, the driver of second display and third display, then N =3;Here, the sequence of the driver of display may is that the driver [1] of display is the driving journey of the first display Sequence, the driver [2] of display are the driver of second display, and the driver [3] of display is third display Driver;In addition, the sequence of the driver of display is also possible to: the driver [1] of display is that third is shown The driver of device, the driver [2] of display are the driver of the first display, and the driver [3] of display is The driver of second display.
At this point, after presetting memory space well for the driver distribution of each display, the first memory module 307 can be with The type association of the address of the driver of multiple displays, the size of driver and display is stored to corresponding default Memory space.
Loading module 304, for the driver according to address loaded and displayed device.
Since the type of the address of the driver of multiple displays, the size of driver and display being stored To default memory space, therefore, loading module 304 can obtain the ground of the driver of display in the memory space at this time Location obtains the driver of display according to the address of the driver of display, and loads the driver, therefore, only plus Carry the driver that can once load corresponding display.
Display module 305 shows data by display when completing for driver load.
When the driver of display, which loads, to be completed, display module 305 can show that data are shown by display and ask Seek the data of middle carrying.
In some embodiments, as described in Figure 4, driver charger can also include:
Output module 308, for when driver loads failure, output to load failure cause.
Wherein, failure cause may include defective driver, display and driver mismatch etc., for example, aobvious Show that the corresponding driver of device A is A ', when due to address load driver program by the driver of display A, display A The driver of load is B ', and therefore, driver load failure, output module 308 can export the reason of load fails and be The corresponding driver of non-display.
In some embodiments, display module 305 is specifically used for: obtaining the size of data;According to the size of data, lead to It crosses display and shows data.
Wherein, the size of data may include the size of data volume, the setting of data font, the setting of Data Styles and The setting etc. of data pattern, in addition, display module 305 can lead to when the data of acquisition are the data that multiple displays are shown It crosses multiple displays and shows the data.
For example, when the data are image, the size of the available image of display module 305, according to the size of image Zoom in or out by display and show the image, so that the being adapted to property of image is shown in display.Example again Such as, when the data are text, the size of the available text of display module 305 passes through display according to the size of text The font for zoom in or out the display text, so that being adapted to property of the text is shown in display.
The specific implementation of above each operation can be found in the embodiment of front, and details are not described herein.
The data that the embodiment of the present application can be carried data to be shown by the acquisition of request module 301, which are shown, asks It asks, and the data display request can be based on by type acquisition module 302, obtain the current class of the display of mobile terminal Type, and obtained from default memory space by address acquisition module 303 with the current type of the display, corresponding display The address of driver, then, by loading module 304 according to the driver of the address loaded and displayed device, when the driver When load is completed, and the data carried in data display request are shown by display by display module 305.Since the program can To obtain the address of driver corresponding with the display according to the current type of the display of mobile terminal, and according to this Therefore the driver of address loaded and displayed device, uses the aobvious of multiple and different types in mobile terminal to show to data , can be according to the current type of the display of mobile terminal when showing device, it is only necessary to load once can correct load driver program, and The display of data is completed, and then substantially increases the efficiency of the display load driver program of mobile terminal, so that display is more Data are shown fastly.
Correspondingly, the embodiment of the present invention also provides a kind of mobile terminal, as shown in figure 5, the mobile terminal may include penetrating Frequently (RF, Radio Frequency) circuit 601, include one or more the memory of computer readable storage medium 602, input unit 603, display unit 604, sensor 605, voicefrequency circuit 606, Wireless Fidelity (WiFi, Wireless Fidelity) module 607, the processor 608 and the components such as power supply 609 that include one or more than one processing core. It will be understood by those skilled in the art that mobile terminal structure shown in Fig. 5 does not constitute the restriction to mobile terminal, can wrap It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.Wherein:
RF circuit 601 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, one or the processing of more than one processor 608 are transferred to;In addition, the data for being related to uplink are sent to Base station.In general, RF circuit 601 includes but is not limited to antenna, at least one amplifier, tuner, one or more oscillators, uses Family identity module (SIM, Subscriber Identity Module) card, transceiver, coupler, low-noise amplifier (LNA, Low Noise Amplifier), duplexer etc..In addition, RF circuit 601 can also by wireless communication with network and its He communicates equipment.Any communication standard or agreement, including but not limited to global system for mobile telecommunications system can be used in the wireless communication Unite (GSM, Global System of Mobile communication), general packet radio service (GPRS, General Packet Radio Service), CDMA (CDMA, Code Division Multiple Access), wideband code division it is more Location (WCDMA, Wideband Code Division Multiple Access), long term evolution (LTE, Long Term Evolution), Email, short message service (SMS, Short Messaging Service) etc..
Memory 602 can be used for storing software program and module, and processor 608 is stored in memory 602 by operation Software program and module, thereby executing various function application and data processing.Memory 602 can mainly include storage journey Sequence area and storage data area, wherein storing program area can the (ratio of application program needed for storage program area, at least one function Such as sound-playing function, image player function) etc.;Storage data area, which can be stored, uses created number according to mobile terminal According to (such as audio data, phone directory etc.) etc..In addition, memory 602 may include high-speed random access memory, can also wrap Include nonvolatile memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts. Correspondingly, memory 602 can also include Memory Controller, to provide processor 608 and input unit 603 to memory 602 access.
Input unit 603 can be used for receiving the number or character information of input, and generate and user setting and function Control related keyboard, mouse, operating stick, optics or trackball signal input.Specifically, in a specific embodiment In, input unit 603 may include touch sensitive surface and other input equipments.Touch sensitive surface, also referred to as touch display or touching Control plate, collect user on it or nearby touch operation (such as user using any suitable object such as finger, stylus or Operation of the attachment on touch sensitive surface or near touch sensitive surface), and corresponding connection dress is driven according to preset formula It sets.Optionally, touch sensitive surface may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus is examined The touch orientation of user is surveyed, and detects touch operation bring signal, transmits a signal to touch controller;Touch controller from Touch information is received on touch detecting apparatus, and is converted into contact coordinate, then gives processor 608, and can reception processing Order that device 608 is sent simultaneously is executed.Furthermore, it is possible to a variety of using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Type realizes touch sensitive surface.In addition to touch sensitive surface, input unit 603 can also include other input equipments.Specifically, other are defeated Entering equipment can include but is not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse One of mark, operating stick etc. are a variety of.
Display unit 604 can be used for showing information input by user or the information and mobile terminal that are supplied to user Various graphical user interface, these graphical user interface can be made of figure, text, icon, video and any combination thereof. Display unit 604 may include display panel, optionally, can use liquid crystal display (display, Liquid Crystal Display), the forms such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) configure display surface Plate.Further, touch sensitive surface can cover display panel, after touch sensitive surface detects touch operation on it or nearby, Processor 608 is sent to determine the type of touch event, is followed by subsequent processing device 608 according to the type of touch event in display panel It is upper that corresponding visual output is provided.Although touch sensitive surface and display panel are realized as two independent components in Fig. 5 Input and input function, but in some embodiments it is possible to it is touch sensitive surface and display panel is integrated and realize and input and defeated Function out.
Mobile terminal may also include at least one sensor 605, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel, and proximity sensor can close display surface when mobile terminal is moved in one's ear Plate and/or backlight.As a kind of motion sensor, gravity accelerometer can detect in all directions (generally three axis) The size of acceleration can detect that size and the direction of gravity when static, can be used to identify mobile terminal posture application (such as Horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;As for The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor that mobile terminal can also configure, herein not It repeats again.
Voicefrequency circuit 606, loudspeaker, microphone can provide the audio interface between user and mobile terminal.Voicefrequency circuit Electric signal after the audio data received conversion can be transferred to loudspeaker, it is defeated to be converted to voice signal by loudspeaker by 606 Out;On the other hand, the voice signal of collection is converted to electric signal by microphone, is converted to audio after being received by voicefrequency circuit 606 Data, then by after the processing of audio data output processor 608, such as another mobile terminal is sent to through RF circuit 601, or Audio data is exported to memory 602 to be further processed.Voicefrequency circuit 606 is also possible that earphone jack, to provide The communication of peripheral hardware earphone and mobile terminal.
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 607 Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 5 shows Go out WiFi module 607, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to omit within the scope of not changing the essence of the invention.
Processor 608 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 602, and calls and is stored in storage Data in device 602 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.It can Choosing, processor 608 may include one or more processing cores;Preferably, processor 608 can integrate application processor and modulation Demodulation processor, wherein the main processing operation system of application processor, user interface and application program etc., modulation /demodulation processing Device mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 608.
Mobile terminal further includes the power supply 609 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity Management system and processor 608 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.Power supply 609 can also include one or more direct current or AC power source, recharging system, power supply event Hinder the random components such as detection circuit, power adapter or inverter, power supply status indicator.
Although being not shown, mobile terminal can also include camera, bluetooth module etc., and details are not described herein.Specifically at this In embodiment, processor 608 in mobile terminal can according to following instruction, by one or more application program into The corresponding executable file of journey is loaded into memory 602, and runs by processor 608 storage answering in the memory 602 With program, thereby executing following functions:
Data display request is obtained, carries data to be shown in data display request;Based on data display request, obtain Take the current type of the display of mobile terminal;The current type with display is obtained from default memory space, it is corresponding aobvious Show the address of the driver of device.According to the driver of address loaded and displayed device;When driver, which loads, to be completed, by aobvious Show that device shows data.
In some embodiments, the current type with display, corresponding display are being obtained from default memory space Before the address of the driver of device, processor 608 be can also be performed: the driver of all displays on detection mobile terminal Configuration, obtain the information of the driver of multiple displays, information include the address of driver, driver size and The type of display;The type association of the address of driver, the size of driver and display is stored to corresponding pre- If memory space.
In some embodiments, by the type association of the size of the address of driver, driver and display When storing to corresponding default memory space, processor 608 be can also be performed: according to the big of the driver of multiple displays It is small, the corresponding default memory space of the driver distribution of respectively each display;By the driver of multiple displays The type association of address, the size of driver and display is stored to corresponding default memory space.
In some embodiments, it is being based on data display request, when obtaining the type of display, processor 608 may be used also To execute: being based on data display request, obtain the mark of display;The current type of display is obtained according to mark.
In some embodiments, after according to address loaded and displayed device driver, processor 608 can also be held Row: when driver loads failure, output load failure cause.
In some embodiments, when showing data by display, processor 608 be can also be performed: obtain data Size;According to the size of data, data are shown by display.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the detailed description above with respect to driver loading method, details are not described herein again.
It will appreciated by the skilled person that all or part of the steps in the various methods of above-described embodiment can be with It is completed by instructing, or relevant hardware is controlled by instruction to complete, which can store computer-readable deposits in one In storage media, and is loaded and executed by processor.
For this purpose, the embodiment of the present application provides a kind of storage medium, wherein it is stored with computer program, the computer program energy It is enough to be loaded by processor, to execute any driver loading method provided by the embodiment of the present application.For example, the meter Calculation machine program is loaded by processor, can execute following steps:
Data display request is obtained, carries data to be shown in data display request;Based on data display request, obtain Take the current type of the display of mobile terminal;The current type with display is obtained from default memory space, it is corresponding aobvious Show the address of the driver of device.According to the driver of address loaded and displayed device;When driver, which loads, to be completed, by aobvious Show that device shows data.
In some embodiments, which can also be performed following steps: the drive of all displays on detection mobile terminal The configuration of dynamic program, obtains the information of the driver of multiple displays, and the information includes the address of driver, driving journey The size of sequence and the type of display, by the address of the driver, the type association of the size of driver and display It stores to corresponding default memory space.
In some embodiments, which can also be performed following steps: according to the driver of the multiple display Size, the corresponding default memory space of the driver distribution of respectively each display, by the drive of the multiple display The type association of the address of dynamic program, the size of driver and display is stored to the corresponding default memory space.
In some embodiments, which can also be performed following steps: showing request based on the data, obtains movement The mark of the display of terminal obtains the current type of the display of mobile terminal according to the mark.
In some embodiments, which can also be performed following steps: when the driver loads failure, output Load failure cause.
In some embodiments, which can also be performed following steps: the size of the data be obtained, according to the number According to size, the data are shown by the display.
The specific implementation of above each operation can be found in the embodiment of front, and details are not described herein.
Wherein, which may include: read-only memory (ROM, Read Only Memory), random access memory Body (RAM, Random Access Memory), disk or CD etc..
By the instruction stored in the storage medium, any driving journey provided by the embodiment of the present application can be executed Sequence loading method, it is thereby achieved that achieved by any driver loading method provided by the embodiment of the present application Beneficial effect is detailed in the embodiment of front, and details are not described herein.
It is situated between above to a kind of driver loading method, device provided by the embodiment of the present application, mobile terminal and storage Matter is described in detail, and specific examples are used herein to illustrate the principle and implementation manner of the present application, above The explanation of embodiment is merely used to help understand the present processes and its core concept;Meanwhile for those skilled in the art Member, according to the thought of the application, there will be changes in the specific implementation manner and application range, in conclusion this explanation Book content should not be construed as the limitation to the application.

Claims (10)

1. a kind of driver loading method characterized by comprising
Data display request is obtained, carries data to be shown in the data display request;
Request is shown based on the data, obtains the current type of the display of mobile terminal;
The current type with the display, the address of the driver of corresponding display are obtained from default memory space;
The driver of the display is loaded according to the address;
When the driver, which loads, to be completed, the data are shown by the display.
2. the method according to claim 1, wherein described obtain and the display from default memory space Current type, before the address of the driver of corresponding display, the method also includes:
The configuration for detecting the driver of all displays on mobile terminal, obtains the information of the driver of multiple displays, The information includes the type of the address of driver, the size of driver and display;
The type association of the address of the driver, the size of driver and display is stored to corresponding default storage Space.
3. according to the method described in claim 2, it is characterized in that, described by the address of the driver, driver Size and the type association of display are stored to corresponding default memory space, comprising:
According to the size of the driver of the multiple display, the driver distribution of respectively each display is corresponding pre- If memory space;
The type association of the address of the driver of the multiple display, the size of driver and display is stored to right The default memory space answered.
4. being obtained mobile whole the method according to claim 1, wherein described show request based on the data The current type of the display at end, comprising:
Request is shown based on the data, obtains the mark of the display of mobile terminal;
The current type of the display of mobile terminal is obtained according to the mark.
5. method according to any one of claims 1 to 4, which is characterized in that described described aobvious according to address load After showing device driver, the method also includes:
When the driver loads failure, output load failure cause.
6. method according to any one of claims 1 to 4, which is characterized in that it is described shown by the display described in Data include:
Obtain the size of the data;
According to the size of the data, the data are shown by the display.
7. a kind of driver charger characterized by comprising
Request module carries data to be shown for obtaining data display request in the data display request;
Type acquisition module obtains the current type of the display for showing request based on the data;
Address acquisition module, for obtaining display corresponding with the current type of the display from default memory space The address of driver;
Loading module, for loading the driver of the display according to the address;
Display module shows the data by the display when completing for driver load.
8. driver charger according to claim 7, which is characterized in that the driver charger is also wrapped It includes:
First detection module obtains multiple displays for detecting the configuration of the driver of all displays on mobile terminal Driver information, the information includes the type of the address of driver, the size of driver and display;
First memory module, for depositing the type association of the size of the address of the driver, driver and display It stores up to corresponding default memory space.
9. a kind of mobile terminal, which is characterized in that including processor and memory, computer journey is stored in the memory Sequence, the processor execute such as driving as claimed in any one of claims 1 to 6 when calling the computer program in the memory Program loading method.
10. a kind of storage medium, which is characterized in that the storage medium is for storing computer program, the computer program It is loaded by processor and 1 to 6 described in any item driver loading methods is required with perform claim.
CN201910636946.XA 2019-07-15 2019-07-15 Driver loading method, device, mobile terminal and storage medium Pending CN110362360A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910636946.XA CN110362360A (en) 2019-07-15 2019-07-15 Driver loading method, device, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910636946.XA CN110362360A (en) 2019-07-15 2019-07-15 Driver loading method, device, mobile terminal and storage medium

Publications (1)

Publication Number Publication Date
CN110362360A true CN110362360A (en) 2019-10-22

Family

ID=68219466

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910636946.XA Pending CN110362360A (en) 2019-07-15 2019-07-15 Driver loading method, device, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110362360A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110824924A (en) * 2019-11-26 2020-02-21 珠海格力电器股份有限公司 Touch controller, adaptive control method of touch controller and electric appliance

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5951684A (en) * 1997-12-23 1999-09-14 Samsung Electronics Co., Ltd. Method of booting a computer system with identifying a CD-ROM disk drive of the system and a method of loading a device driver
CN101110951A (en) * 2007-08-08 2008-01-23 南京联创网络科技有限公司 Method for dynamically loading communication plug-in unit in video monitoring system
CN102385523A (en) * 2011-10-12 2012-03-21 中山爱科数字科技有限公司 Method for installing and managing driver of cloud operating system
CN103279370A (en) * 2013-05-15 2013-09-04 腾讯科技(深圳)有限公司 Data processing method, terminal, server and system
CN103942078A (en) * 2014-04-30 2014-07-23 华为技术有限公司 Method for loading driver and embedded device
CN104750504A (en) * 2013-12-26 2015-07-01 贝壳网际(北京)安全技术有限公司 Method and device for providing driving information
CN105047176A (en) * 2015-09-21 2015-11-11 京东方科技集团股份有限公司 Display panel, driving method thereof and display device
CN107729071A (en) * 2016-08-09 2018-02-23 华为技术有限公司 A kind of method and device for initializing network interface card
CN109189486A (en) * 2018-08-09 2019-01-11 Oppo广东移动通信有限公司 Loading method, device, terminal and the storage medium of display screen driving
US20190026118A1 (en) * 2017-07-19 2019-01-24 Vmware, Inc. Providing fallback drivers for io devices in a computing system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5951684A (en) * 1997-12-23 1999-09-14 Samsung Electronics Co., Ltd. Method of booting a computer system with identifying a CD-ROM disk drive of the system and a method of loading a device driver
CN101110951A (en) * 2007-08-08 2008-01-23 南京联创网络科技有限公司 Method for dynamically loading communication plug-in unit in video monitoring system
CN102385523A (en) * 2011-10-12 2012-03-21 中山爱科数字科技有限公司 Method for installing and managing driver of cloud operating system
CN103279370A (en) * 2013-05-15 2013-09-04 腾讯科技(深圳)有限公司 Data processing method, terminal, server and system
CN104750504A (en) * 2013-12-26 2015-07-01 贝壳网际(北京)安全技术有限公司 Method and device for providing driving information
CN103942078A (en) * 2014-04-30 2014-07-23 华为技术有限公司 Method for loading driver and embedded device
CN107729083A (en) * 2014-04-30 2018-02-23 华为技术有限公司 The method and embedded device of a kind of load driver program
CN105047176A (en) * 2015-09-21 2015-11-11 京东方科技集团股份有限公司 Display panel, driving method thereof and display device
CN107729071A (en) * 2016-08-09 2018-02-23 华为技术有限公司 A kind of method and device for initializing network interface card
US20190026118A1 (en) * 2017-07-19 2019-01-24 Vmware, Inc. Providing fallback drivers for io devices in a computing system
CN109189486A (en) * 2018-08-09 2019-01-11 Oppo广东移动通信有限公司 Loading method, device, terminal and the storage medium of display screen driving

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A. A. FOMANI等: "A Segmented Gate Driver with Adjustable", 《THE 2010 INTERNATIONAL POWER ELECTRONICS CONFERENCE》 *
符冬阳: "多DSP系统的版本快速加载方法", 《计算机系统应用》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110824924A (en) * 2019-11-26 2020-02-21 珠海格力电器股份有限公司 Touch controller, adaptive control method of touch controller and electric appliance

Similar Documents

Publication Publication Date Title
CN104519485B (en) Communication means, device and system between a kind of terminal
CN104852885B (en) Method, device and system for verifying verification code
CN104636047B (en) The method, apparatus and touch screen terminal operated to the object in list
CN104252341B (en) The client device of the skin change method of application program, device and application program
CN104571787B (en) A kind of message display method and communication terminal
CN104093123B (en) The information-pushing method of application program, device and system, mobile terminal
CN106375179B (en) Method and device for displaying instant communication message
CN104571979B (en) A kind of method and apparatus for realizing split view
CN104572046B (en) A kind of storehouse restoring method and computer system
CN104077184B (en) A kind of course control method and computer system of application program
WO2015007232A1 (en) Method, device and mobile terminal for checking message
CN106874091A (en) A kind of application call method, device and mobile terminal
CN106371749A (en) Method and device for terminal control
CN106786961B (en) Charging method, device and terminal
CN104951215A (en) Processing method and device for page operation
CN104346028B (en) Address field display methods, device and mobile terminal
CN103399657B (en) The control method of mouse pointer, device and terminal unit
CN106708390B (en) Screen capturing method, device and system
CN106055598B (en) Information display method and device
CN105976849B (en) A kind of method and apparatus of playing audio-fequency data
CN106302101B (en) Message reminding method, terminal and server
CN109688611A (en) A kind of configuration method, device, terminal and the storage medium of frequency range parameter
CN106057213A (en) Method and apparatus for displaying voice pitch data
CN106708501B (en) Activity monitoring method and device
CN110362360A (en) Driver loading method, device, mobile terminal 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191022