CN110647365A - Control method and device and electronic equipment - Google Patents

Control method and device and electronic equipment Download PDF

Info

Publication number
CN110647365A
CN110647365A CN201910934593.1A CN201910934593A CN110647365A CN 110647365 A CN110647365 A CN 110647365A CN 201910934593 A CN201910934593 A CN 201910934593A CN 110647365 A CN110647365 A CN 110647365A
Authority
CN
China
Prior art keywords
hardware
hardware module
parameter
interface
identifier
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
CN201910934593.1A
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201910934593.1A priority Critical patent/CN110647365A/en
Publication of CN110647365A publication Critical patent/CN110647365A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • 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/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural
    • 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/451Execution arrangements for user interfaces

Abstract

The application discloses a control method, a control device and electronic equipment, wherein the method comprises the following steps: under the condition that a hardware module of electronic equipment is connected with external equipment, acquiring a connection identifier of the external equipment connected with the hardware module; the electronic equipment comprises at least one hardware module, and the hardware properties of the at least one hardware module are the same or different; determining a hardware identification of the hardware module based on at least the connection identification; determining calling interface parameters associated with the hardware module in at least one calling interface of the target application based on the hardware identification, wherein the calling interface parameters associated with the hardware module correspond to hardware attributes of the hardware module; the calling interface parameter is used for calling a driving component of the hardware module based on the operation parameter after the operation parameter aiming at the hardware module is obtained through an interface corresponding to the calling interface parameter in the target application so as to execute corresponding operation.

Description

Control method and device and electronic equipment
Technical Field
The present application relates to the field of hardware control, and in particular, to a control method, an apparatus, and an electronic device.
Background
The electronic equipment can be provided with various application programs, and the application programs can control corresponding hardware through corresponding driving programs. Different hardware may have different functions, and in order to enable the hardware to implement the corresponding functions, an application program having corresponding functional modules needs to be installed in the electronic device, that is, for different hardware, the electronic device needs to install multiple application programs, for example, if the electronic device is plugged into an on-board display card, an Nvidia display card, an AMD display card, then the electronic device needs to install corresponding 3 application programs.
Disclosure of Invention
In view of this, the present application provides a control method, a control device and an electronic device, and the following technical solutions are provided in the present application:
a control method, comprising:
under the condition that a hardware module of electronic equipment is connected with external equipment, acquiring a connection identifier of the external equipment connected with the hardware module; the electronic equipment comprises at least one hardware module, and the hardware properties of the at least one hardware module are the same or different;
determining a hardware identification of the hardware module based on at least the connection identification;
determining calling interface parameters associated with the hardware module in at least one calling interface of the target application based on the hardware identification, wherein the calling interface parameters associated with the hardware module correspond to hardware attributes of the hardware module;
the calling interface parameter is used for calling a driving component of the hardware module based on the operation parameter after the operation parameter aiming at the hardware module is obtained through an interface corresponding to the calling interface parameter in the target application so as to execute corresponding operation.
The method preferably determines the hardware identifier of the hardware module based on at least the connection identifier, and includes:
determining a driving component of the hardware module based on the connection identifier;
and reading the hardware identifier of the hardware module from the drive information prestored in the drive component.
In the method, preferably, after the operation parameter is obtained through the interface corresponding to the call interface parameter in the target application, the call interface parameter corresponding to the operation parameter is determined in the following manner:
determining a hardware module corresponding to the operating parameter;
and determining calling interface parameters corresponding to the hardware module based on the incidence relation between the hardware module and the calling interface parameters.
In the above method, preferably, the operation parameter includes a hardware identifier;
wherein the determining the hardware module corresponding to the operating parameter includes:
and acquiring a hardware identifier in the operating parameters, and determining a hardware module corresponding to the hardware identifier.
In the above method, preferably, the operation parameter includes a function identifier;
wherein the determining the hardware module corresponding to the operating parameter includes:
acquiring a hardware identifier corresponding to a function identifier in the operation parameters;
and determining a hardware module corresponding to the hardware identifier.
In the above method, preferably, the invoking the interface parameter invokes a driving component of the hardware module based on the operation parameter includes:
and the calling interface parameter processes the operating parameter according to a parameter setting rule, and transmits the processed operating parameter to a driving component of the hardware module, so that the driving component executes corresponding operation based on the processed operating parameter.
The above method, preferably, further comprises:
obtaining an operation result after the operation is executed;
and transmitting the operation result to the external equipment connected with the hardware module corresponding to the operation.
Preferably, the method for obtaining the operation parameters of the hardware module through the interface corresponding to the call interface parameter in the target application includes:
receiving a first input operation through the target application, and obtaining an operation parameter based on the first input operation, wherein the first input operation is an operation for a target function in the interface, and the operation parameter is a parameter for executing a corresponding operation to realize the target function;
alternatively, the first and second electrodes may be,
receiving a second input operation through the target application, and obtaining an operation parameter based on the second input operation, where the second input operation is an operation for a hardware identifier in the interface, and the operation parameter is a parameter for executing a corresponding operation on a hardware module corresponding to the hardware identifier.
A control device, comprising:
the connection identifier obtaining unit is used for obtaining a connection identifier of the external device connected with the hardware module under the condition that one hardware module in the electronic device is connected with the external device; the electronic equipment comprises at least one hardware module, and the hardware properties of the at least one hardware module are the same or different;
a hardware identifier obtaining unit, configured to determine a hardware identifier of the hardware module based on at least the connection identifier;
the interface relation determining unit is used for determining calling interface parameters related to the hardware module in at least one calling interface of the target application based on the hardware identification, and the calling interface parameters related to the hardware module correspond to the hardware attribute of the hardware module;
the calling interface parameter is used for calling a driving component of the hardware module based on the operation parameter after the operation parameter aiming at the hardware module is obtained through an interface corresponding to the calling interface parameter in the target application so as to execute corresponding operation.
An electronic device, comprising:
at least one hardware module having a drive assembly;
the processor is used for acquiring a connection identifier of the external equipment connected with the hardware module under the condition that one hardware module is connected with the external equipment; the electronic equipment comprises at least one hardware module, and the hardware properties of the at least one hardware module are the same or different; determining a hardware identification of the hardware module based on at least the connection identification; determining calling interface parameters associated with the hardware module in at least one calling interface of the target application based on the hardware identification, wherein the calling interface parameters associated with the hardware module correspond to hardware attributes of the hardware module;
the calling interface parameter is used for calling a driving component of the hardware module based on the operation parameter after the operation parameter aiming at the hardware module is obtained through an interface corresponding to the calling interface parameter in the target application so as to execute corresponding operation.
According to the technical scheme, when a hardware module of the electronic device is connected to the external device, the hardware identifier of the hardware module is determined by obtaining the connection identifier of the external device connected to the hardware module, and then the calling interface parameter associated with the hardware module in the current target application can be determined based on the hardware identifier, so that the hardware module is required to be operated subsequently, the operation parameter for the hardware module can be obtained through the interface corresponding to the calling interface parameter in the target application, and the driving component of the hardware module is called based on the operation parameter, so as to execute the corresponding operation. Therefore, only one target application needs to be set in the application, interfaces corresponding to the hardware modules are provided for the different hardware modules by calling the interface parameters, so that a user can conveniently perform corresponding operations on the hardware modules, a plurality of application programs do not need to be installed on the electronic equipment for the different hardware modules, different application interfaces can be opened for the different hardware by the user, the operation complexity of the user during the operation of the hardware can be simplified, and the use experience of the user on the electronic equipment is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a control method according to an embodiment of the present application;
FIGS. 2, 3 and 4 are exemplary diagrams of embodiments of the present application;
FIGS. 5 and 6 are diagrams of another embodiment of the present application;
fig. 7 is a schematic structural diagram of a control device according to a second embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to a third embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, a flowchart of a control method provided in an embodiment of the present application is shown, where the method is applicable to an electronic device capable of supporting multiple hardware with different attributes, such as a computer or a server that supports multiple hardware, such as multiple video cards or multiple network cards. The method is mainly used for executing corresponding hardware setting operation on hardware modules with different attributes through an application interface.
Specifically, the method in this embodiment may include the following steps:
step 101: the method comprises the steps of obtaining a connection identifier of external equipment connection hardware under the condition that one hardware module of the electronic equipment is connected to the external equipment.
The electronic equipment is provided with at least one hardware module, and the hardware attributes of the hardware modules are the same or different. The hardware attribute may include attributes of hardware types, such as different types of video cards such as Nvidia or AMD, and the hardware attribute may also include attributes of hardware models, such as different types of Nvidia video cards such as 1690 models and 6700 models. For example, the electronic device has different types of graphics cards, or the electronic device has different types of network cards and other hardware components.
It should be noted that the hardware module has a driving component capable of driving the hardware component to run in addition to the hardware component, for example, the display card module has a display card body and a driving component of a display card, and the network card module has a network card body and a driving component of a network card, and so on. The hardware body in the hardware module can be directly connected with the external device, the driving component in the hardware module can be stored in the memory, for example, the display card body is arranged on a mainboard of a computer, the driving of the display card can be stored in the memory, when the display card runs, the display card driving component in the memory can be read by using the display card bios to drive the display card body to run, and the display card is subjected to operations such as parameter setting.
Specifically, the connection identifier in this embodiment may include Extended Display Identification Data (EDID) information transmitted to the hardware module by the motherboard BIOS when the hardware module is connected to the external device, and in this embodiment, the information related to the information source and the information destination, that is, the information related to the external device and the hardware module, may be obtained by obtaining the EDID information.
Step 102: based on at least the connection identification, a hardware identification of the hardware module is determined.
In this embodiment, the information content in the connection identifier may be analyzed to obtain the related information of the external device and the hardware module, such as the identifier of the external device and the hardware identifier of the hardware module. For example, in this embodiment, the transmission destination information of the EDID information, that is, the display card identifier of the display card, may be analyzed from the EDID information transmitted by the main board BIOS when the external display is connected to the display card.
Step 103: and determining calling interface parameters associated with the hardware module in at least one calling interface of the target application based on the hardware identification.
And the calling interface parameters related to the hardware module correspond to the hardware attributes of the hardware module. And the calling interface parameter can be used for calling the driving component of the hardware module based on the operation parameter after the operation parameter for the hardware module is obtained through the interface corresponding to the calling interface parameter in the target application so as to execute the corresponding operation. For example, a user may input an operation parameter for a hardware module corresponding to a call interface parameter through an interface corresponding to the call interface parameter in the target application, and after obtaining the operation parameter in this embodiment, the user may call a driving component of the hardware module by using the call interface parameter associated with the hardware module corresponding to the operation parameter, so as to perform a corresponding operation on the hardware module.
According to the above scheme, when a hardware module of the electronic device is connected to the external device, the hardware identifier of the hardware module is determined by obtaining the connection identifier of the external device connected to the hardware module, and then the calling interface parameter associated with the hardware module in the current target application can be determined based on the hardware identifier, so that the subsequent operation to the hardware module is required, the operation parameter for the hardware module can be obtained through the interface corresponding to the calling interface parameter in the target application, and the driving component of the hardware module is called based on the operation parameter, so as to execute the corresponding operation. It can be seen that, in this embodiment, only one target application needs to be set, and interfaces corresponding to hardware modules are provided for different hardware modules by calling interface parameters, so that a user can conveniently perform corresponding operations on the hardware modules, and does not need to install multiple application programs on the electronic device for different hardware modules, and therefore, the user does not need to open different application interfaces for different hardware, the operation complexity of the user when operating the hardware can be simplified, and the use experience of the user on the electronic device is improved.
In one implementation, the target application may have an application interface, which may be set in a partition manner, where the application interface may include a common interface region for hardware with different attributes, and may also have different calling interface parameters associated with different hardware modules corresponding to different private interface regions, i.e., personalized auxiliary interfaces, as shown in fig. 2, a region a is the common interface region, an operation control for the same function of each hardware module is provided in the region a, so as to set the same function of different hardware modules, B1, B2, Bn (n is the number of hardware modules in the electronic device), and the like are the private interface regions respectively corresponding to the hardware module B1, the hardware module B2, the hardware module Bn, and each private interface region is provided with an operation control for the personalized function of the corresponding hardware, so as to freely control each hardware module.
It should be noted that, only one hardware module may be connected to a corresponding external device at the same time on the electronic device, as shown in fig. 3, at this time, an interface corresponding to a call interface parameter associated with the hardware module is presented on the target application in this embodiment, and the interface may include a public interface area or a private interface area specific to the hardware module; or, a plurality of hardware modules may be simultaneously connected to corresponding external devices on the electronic device at the same time, as shown in fig. 4, in this embodiment, a plurality of interfaces 1 to 4 may be presented on the target application, and each interface may be switched and displayed through a switching control on the interface, so that a user may simultaneously perform operation control on the plurality of hardware modules.
Based on the above implementation, when a certain hardware module in the electronic device is connected to the external device, an interface corresponding to the hardware module is presented on the application interface of the target application in this embodiment, specifically, in this embodiment, when the hardware module is connected to the external device, the hardware identifier of the hardware module is determined by the connection identifier between the external device and the hardware module, so as to associate the corresponding calling interface parameter with the hardware module in the calling interface of the target application, that is, establish the association relationship between the hardware module and the calling interface parameter, at this time, in the target application, a group of calling interface parameters corresponds to a hardware module with one attribute, and hardware modules with different attributes correspond to different calling interface parameters, and then, in this embodiment, the interface corresponding to the calling interface parameter associated with the hardware module is presented in the display area of the electronic device, therefore, the interface corresponding to the calling interface parameter associated with the hardware module is presented to the user, so that the user can conveniently operate and control the hardware module.
It should be noted that, one calling interface may be configured in the target application, and one calling interface is associated with different hardware modules through different calling interface parameters, and the target application provides an interface capable of performing operation control on different hardware modules for a user through the one calling interface and the different calling interface parameters, or, multiple calling interfaces may be configured in the target application, and different calling interfaces are associated with different hardware modules through corresponding calling interface parameters, and the target application provides an interface capable of performing operation control on different hardware modules for the user through different calling interfaces and the corresponding calling interface parameters.
In one implementation, when determining the hardware part identifier of the hardware module based on at least the connection identifier, step 102 may be specifically implemented by:
first, based on the connection identifier, determining a driving component of the hardware module, for example, extracting, from EDID information transmitted by the display connected to the graphics card, driving component information of a destination graphics card that needs to be called in the EDID information, that is, information of a graphics card driver that needs to be called to support the operation of the graphics card is included in the EDID information, in this case, in this embodiment, analysis and extraction of each field information may be performed on the EDID information, and then, field information representing the graphics card driver that needs to be called is extracted, so as to determine the driving component of the corresponding graphics card.
And then, reading out the hardware identifier of the hardware module from the driving information prestored in the driving component. That is, in the drive information stored in the drive component, such as the driver, the hardware identifier that represents the unique identity of the hardware module, such as the component type and the manufacturer model of the hardware module, is read. For example, after the display is connected to the display card, in this embodiment, the display card driver of the display card connected to the display can be determined through the EDID information, and then the display card identifier of the display card, such as the type and model of the display card, is determined in the driver stored in the display card driver.
Based on the above implementation, in this embodiment, an association relationship between the hardware module and the call interface parameter in the target application is established when the hardware module is connected to the external device, and an interface corresponding to the call interface parameter is presented on an application interface of the target application, so that a user can conveniently perform operation control on the hardware module. Specifically, a user may perform an input operation on an interface of a target application, such as an operation of increasing the brightness of a display card, or an operation of decreasing a speed limit parameter of a network card, and the like, in this embodiment, after receiving the input operation of the user on the interface, an operation parameter representing an operation intention of the user is extracted based on the input operation, such as an increased brightness value or a decreased speed limit parameter, and then, in this embodiment, a call interface parameter corresponding to a current operation may be determined on the basis of the operation parameter in the following manner, as follows:
first, on the basis of the operation parameters, a hardware module corresponding to the operation parameters is determined, for example, in this embodiment, after the operation parameters generated by the input operation of brightness increase performed on the operation interface of the graphics card by the user are acquired, by analyzing the operation parameters, which graphics card the user performs brightness increase on can be determined, and accordingly, the graphics card is determined.
Specifically, the operation parameter may include a hardware identifier or a function identifier, so that the hardware module corresponding to the operation parameter may be determined in different manners, as follows:
in the case that the operation parameter includes a hardware identifier, in this embodiment, the hardware module corresponding to the hardware identifier may be further determined by obtaining the hardware identifier in the operation parameter, such as a display card identifier, for example, which display card is determined by the obtained display card identifier;
or, in the case that the operation parameter includes the function identifier, in this embodiment, the hardware module to which the function identifier belongs may be analyzed to obtain the hardware identifier corresponding to the function identifier in the operation parameter, that is, the specific function corresponds to the corresponding special hardware module, so that the corresponding or belonging relationship between the function identifier and the hardware identifier is stored in advance in this embodiment, and accordingly, after the operation parameter is obtained, the hardware identifier corresponding to the function identifier may be obtained by using the relationship, and the hardware module corresponding to the hardware identifier may be determined. For example, in this embodiment, after the identifier of the function X is analyzed from the operation parameter, the hardware identifier of B2 may be obtained by using the affiliation between the function X and the B2 hardware module, and the hardware module corresponding to B2 may be determined.
And then, determining calling interface parameters corresponding to the hardware module based on the incidence relation between the hardware module and the calling interface parameters. Specifically, in this embodiment, the call interface parameter corresponding to the determined hardware module may be obtained from the association relationship between the call interface parameter and the hardware module that has been established in the target application, and the call interface parameter may be used to call the driving parameter of the hardware module based on the operation parameter, so that the hardware module may execute the corresponding operation under the driving of the driving component. For example, after a display is connected to a certain graphics card, in this embodiment, the display driver of the graphics card is analyzed through the EDID information and then read to the graphics card identifier, and thereby an association relationship between the graphics card and a corresponding call interface parameter is established in the target application, when a user performs an input operation on an interface on the target application, in this embodiment, after obtaining an operation parameter of the user, the graphics card corresponding to the operation parameter is first determined, and then the display card call interface parameter corresponding to the graphics card is determined, and then, the call interface is started by using the call interface parameter, and the operation parameter is transmitted to the drive component of the graphics card, so that the drive component of the graphics card is called to drive the graphics card to perform an operation corresponding to the operation parameter, such as increasing brightness or decreasing resolution.
In an implementation manner, when calling a driver component of a hardware module based on an operation parameter by using a calling interface parameter in this embodiment, the following implementation manner may be specifically used:
firstly, the operation parameters are processed according to parameter setting rules by calling interface parameters, and then the processed operation parameters are transmitted to a driving component of the hardware module, so that the driving component executes corresponding operations based on the processed operation parameters.
Wherein, the setting parameters corresponding to different hardware modules in the same type of setting operation may be different, for example, a control operation of one graphics card may increase 200 brightness values on the brightness of the graphics card, a control operation of other graphics cards may increase 300 or 100 brightness values on the brightness of the graphics card, and so on, so as to provide consistent operation effects for users with respect to different hardware, in this embodiment, a uniform parameter setting rule may be set for different hardware modules in advance, and normalization may be performed on various types of operations with respect to a plurality of hardware modules with different attributes in the parameter setting rule, for example, brightness adjustment increments for different graphics cards in the brightness of the graphics card are all set as increases or decreases of 100 brightness increments corresponding to one operation control, or speed limit adjustments for different network cards are all set as increases or decreases of 10M speed limit increments corresponding to one operation on the limit of a network card, and the content in the rule can be preset according to the requirement.
Based on the above implementation, in this embodiment, after obtaining the operation parameters generated by the user through the input operation, first, the calling interface parameter is used to perform parameter uniformity adjustment on the operation parameters according to the parameter setting rule, for example, for an incremental parameter of 200 brightness values of the Nivdia display card, the incremental parameter of 200 brightness values in the operation parameters is set to 100, and for an incremental parameter of 300 brightness values of the AMD display card, the incremental parameter of 300 brightness values in the operation parameters is also set to 100, so as to implement parameter uniformity processing.
In an implementation manner, after the calling interface parameter calls the driving component of the hardware module based on the operation parameter to execute a corresponding operation on the hardware module, in this embodiment, an operation result after the operation is executed may also be obtained, and then the operation result is transmitted to the external device connected to the hardware module corresponding to the operation, that is, the result of the operation executed on the hardware module may be reflected on the external device connected to the hardware module, and the external device presents the effect of the operation executed by the hardware module to a user. For example, after the operation of increasing the brightness value is performed on the graphics card, the effect of increasing the brightness value performed on the graphics card is presented to the user through the external display in the embodiment, so that the purpose of adjusting the brightness of the graphics card by the user is achieved, and the adjustment effect is presented to the user for preview and use.
In a specific implementation, in a case that a hardware module is connected to an external device, an interface corresponding to a call interface parameter associated with the hardware module is presented in the embodiment on a target application, at this time, a user may perform an input operation on the interface, and accordingly, in the embodiment, an operation parameter for the hardware module can be obtained through the interface, specifically, in the embodiment, the operation parameter can be obtained through the following manner:
in one mode, a first input operation is received through a target application, and an operation parameter is obtained based on the first input operation, where the first input operation is an operation for a target function in an interface, and the operation parameter is a parameter for executing a corresponding operation to implement the target function. That is to say, a user may perform a first input operation on a specific target function of the hardware module through the interface to achieve the target function, and at this time, in this embodiment, the corresponding operation parameter may be generated based on the target function in the first input operation. For example, a user performs a first input operation in an interface of a display card for a specific display function of the display card, and wants to implement brightness adjustment, at this time, corresponding operation parameters are generated based on the specific display function in this embodiment.
In another mode, a second input operation is received through the target application, and an operation parameter is obtained based on the second input operation, where the second input operation is an operation for a hardware identifier in the interface, and the operation parameter is a parameter for executing a corresponding operation on a hardware module corresponding to the hardware identifier. That is to say, the user may perform a second input operation on the hardware identifier of the hardware module through the interface, and wants to operate the hardware module, at this time, in this embodiment, the corresponding operation parameter may be generated based on the hardware identifier in the second input operation. For example, the user performs a second input operation on the AMD graphics card in the interface, and wants to set the AMD graphics card, at this time, the corresponding operation parameter is generated based on the identifier of the AMD graphics card in this embodiment.
The following takes three types of graphics card hardware in the electronic device as an example, and with reference to fig. 5, the technical solution in the present application is illustrated:
as shown in fig. 5, onboard display cards 1 and 2, Nvidia display cards 1 and 2, and AMD display cards are provided in the electronic device, each display card corresponds to a VGA BIOS and a display card driver, a target application is configured on the electronic device, each display card corresponds to an API interface in the target application, and each display card can be connected to a display through the display card interface, wherein only one display card can be connected to the display at the same time, or a plurality of displays can be connected to the corresponding display card at the same time, and at this time, the electronic device is in a multi-display mode.
After the display is inserted into the corresponding display card interface, the main board BIOS can obtain EDID information of the display based on the corresponding display card interface, and then obtain manufacturer information and model information of the display card inserted into the main board, and simultaneously send the corresponding EDID information to the corresponding display card to establish a communication channel between the display card and the display. Then, the motherboard BIOS determines a driver corresponding to the graphics card based on the vendor information of the graphics card, so that the graphics card establishes a communication channel with the corresponding driver, for example, the onboard graphics card establishes a communication channel with the onboard graphics card driver, the Nvidia graphics card establishes a communication channel with the Nvidia graphics card driver, and the AMD graphics card establishes a communication channel with the AMD graphics card driver.
In the target application, the display cards of different manufacturer types correspond to different user interfaces, and because the functions corresponding to different display cards are different, the display cards can be configured as: different display cards correspond to different function modules, different function modules correspond to different API interfaces, different API interfaces correspond to different user interfaces, for example, a cross-screen display function module, a resolution display function module, a color adjustment function module and the like, and a user controls the corresponding display card through the different user interfaces.
If the graphics cards of different vendor types correspond to the same function, the target application is configured to: the display cards of different manufacturers have different modules with the same function, the modules with the same function still correspond to different API interfaces, but the different API interfaces correspond to the same user interface, so that a user controls different display cards through the same user interface.
For example, after a user fills parameters in a certain user interface of a target application, the target application may first identify which manufacturer type the function corresponding to the user interface belongs to, or which display card the user interface corresponds to, and if the user interface corresponds to only one display card, for example, an onboard display card, an instruction carrying the parameters is sent to an onboard display card driver through an API interface, the onboard display card driver unifies the parameters based on the instruction, and then the onboard display card is controlled by using the processed parameters, and the onboard display card provides progressive or interlaced scanning signals to a corresponding display to control correct display of the display.
It can be seen that, in the present application, interfaces corresponding to various different hardware modules are opened to a target application, and a corresponding user interface is configured in the target application, so as to implement association between the interface corresponding to the interface and the hardware module, thereby which hardware in an electronic device obtains a connection identifier of an external device, the user interface of the corresponding hardware module is displayed on the electronic device, and functions of the corresponding hardware are displayed through the interface, for example, which display card obtains EDID information of a display in a computer, the user interface of which corresponding display card is displayed on the computer, and the functions of the corresponding display card are displayed through the interface. When a plurality of pieces of hardware are connected with different external devices at the same time, the user interface configuration tabs are provided for the user to perform switching control on the electronic device, so that the user does not need to download application programs of the plurality of pieces of hardware and learn a plurality of operation modes in advance, and the use experience of the user is improved.
In another implementation, the API interfaces in fig. 5 may be integrated into one interface, and the association between the API interfaces and different display cards is established through different interface parameters, as shown in fig. 6, and the technical solution in this application implemented in connection with fig. 6 may belong to the same technical principle as that in fig. 5, and will not be described in detail herein.
Referring to fig. 7, a schematic structural diagram of a control device according to a second embodiment of the present disclosure is provided, where the control device is suitable for an electronic device capable of supporting multiple hardware with different attributes, such as a computer or a server that supports multiple hardware, such as multiple video cards or multiple network cards. The device in the application is mainly used for executing corresponding hardware setting operation on hardware modules with different attributes through an application interface.
Specifically, the apparatus in this embodiment may include the following units:
a connection identifier obtaining unit 701, configured to obtain, when a hardware module in an electronic device is connected to an external device, a connection identifier for the external device to connect to the hardware module; the electronic equipment comprises at least one hardware module, and the hardware properties of the at least one hardware module are the same or different;
a hardware identifier obtaining unit 702, configured to determine a hardware identifier of the hardware module based on at least the connection identifier;
an interface relationship determining unit 703, configured to determine, based on the hardware identifier, a call interface parameter associated with the hardware module in at least one call interface of the target application, where the call interface parameter associated with the hardware module corresponds to a hardware attribute of the hardware module;
the calling interface parameter is used for calling a driving component of the hardware module based on the operation parameter after the operation parameter aiming at the hardware module is obtained through an interface corresponding to the calling interface parameter in the target application so as to execute corresponding operation.
It can be known from the foregoing solution that, in a control apparatus provided in the second embodiment of the present application, when a hardware module of an electronic device is connected to an external device, a hardware identifier of the hardware module is determined by obtaining a connection identifier of the external device connected to the hardware module, and then a calling interface parameter associated with the hardware module in a current target application can be determined based on the hardware identifier, so that an operation needs to be subsequently performed on the hardware module, and an operation parameter for the hardware module can be obtained through an interface corresponding to the calling interface parameter in the target application, and a driving component of the hardware module is called based on the operation parameter, so as to perform a corresponding operation. It can be seen that, in this embodiment, only one target application needs to be set, and interfaces corresponding to hardware modules are provided for different hardware modules by calling interface parameters, so that a user can conveniently perform corresponding operations on the hardware modules, and does not need to install multiple application programs on the electronic device for different hardware modules, and therefore, the user does not need to open different application interfaces for different hardware, the operation complexity of the user when operating the hardware can be simplified, and the use experience of the user on the electronic device is improved.
Optionally, when determining the hardware identifier of the hardware module based on at least the connection identifier, the hardware identifier obtaining unit 702 may be implemented in the following manner:
determining a driving component of the hardware module based on the connection identifier; and reading the hardware identifier of the hardware module from the drive information prestored in the drive component.
In one implementation manner, after obtaining an operation parameter through an interface corresponding to the call interface parameter in the target application, the call interface parameter corresponding to the operation parameter is determined by:
determining a hardware module corresponding to the operating parameter; and determining calling interface parameters corresponding to the hardware module based on the incidence relation between the hardware module and the calling interface parameters.
Wherein the operation parameters comprise hardware identifiers; correspondingly, the determining of the hardware module corresponding to the operating parameter may be implemented by:
and acquiring a hardware identifier in the operating parameters, and determining a hardware module corresponding to the hardware identifier.
Wherein the operation parameters comprise function identifiers; correspondingly, the determining of the hardware module corresponding to the operating parameter may be implemented by:
acquiring a hardware identifier corresponding to a function identifier in the operation parameters; and determining a hardware module corresponding to the hardware identifier.
In one implementation, the invoking the interface parameter invokes a driver component of the hardware module based on the operating parameter includes:
and the calling interface parameter processes the operating parameter according to a parameter setting rule, and transmits the processed operating parameter to a driving component of the hardware module, so that the driving component executes corresponding operation based on the processed operating parameter.
In addition, the apparatus in this embodiment may further obtain an operation result after the operation is executed, and transmit the operation result to an external device connected to the hardware module corresponding to the operation.
In one implementation, obtaining the operation parameters for the hardware module through an interface corresponding to the call interface parameter in the target application includes:
receiving a first input operation through the target application, and obtaining an operation parameter based on the first input operation, wherein the first input operation is an operation for a target function in the interface, and the operation parameter is a parameter for executing a corresponding operation to realize the target function;
alternatively, the first and second electrodes may be,
receiving a second input operation through the target application, and obtaining an operation parameter based on the second input operation, where the second input operation is an operation for a hardware identifier in the interface, and the operation parameter is a parameter for executing a corresponding operation on a hardware module corresponding to the hardware identifier.
It should be noted that, for the specific implementation of each unit in the apparatus of the present embodiment, reference may be made to the corresponding description in the foregoing, and details are not described here.
Referring to fig. 8, a schematic structural diagram of an electronic device according to a third embodiment of the present disclosure is provided, where the electronic device may be an electronic device capable of supporting hardware with a plurality of different attributes, such as a computer or a server that supports hardware such as a plurality of video cards or a plurality of network cards. The electronic equipment is mainly used for executing corresponding hardware setting operation on hardware modules with different attributes through an application interface.
Specifically, the electronic device in this embodiment may include the following structure:
at least one hardware module 801, said hardware module 801 having a drive assembly 802;
the processor 803, which may include a component having a data processing function, such as a motherboard BIOS and/or a central processing unit, is configured to obtain a connection identifier for connecting an external device to the hardware module 801 when the external device is connected to the hardware module 801; the electronic device comprises at least one hardware module 801, wherein the hardware properties of the at least one hardware module 801 are the same or different; determining a hardware identification of the hardware module 801 based on at least the connection identification; determining calling interface parameters associated with the hardware module 801 in at least one calling interface of the target application based on the hardware identification, wherein the calling interface parameters associated with the hardware module 801 correspond to hardware attributes of the hardware module 801;
the calling interface parameter is used for calling the driving component 802 of the hardware module 801 based on the operation parameter after obtaining the operation parameter for the hardware module 801 through the interface corresponding to the calling interface parameter in the target application, so as to execute the corresponding operation.
According to the above scheme, when a hardware module of the electronic device is connected to the external device, the hardware identifier of the hardware module is determined by obtaining the connection identifier of the external device connected to the hardware module, and then the calling interface parameter associated with the hardware module in the current target application can be determined based on the hardware identifier, so that the hardware module is required to be subsequently operated, and the operation parameter for the hardware module can be obtained through the interface corresponding to the calling interface parameter in the target application, and the driving component of the hardware module is called based on the operation parameter, so as to execute the corresponding operation. It can be seen that, in this embodiment, only one target application needs to be set, and interfaces corresponding to hardware modules are provided for different hardware modules by calling interface parameters, so that a user can conveniently perform corresponding operations on the hardware modules, and does not need to install multiple application programs on the electronic device for different hardware modules, and therefore, the user does not need to open different application interfaces for different hardware, the operation complexity of the user when operating the hardware can be simplified, and the use experience of the user on the electronic device is improved.
It should be noted that, the specific implementation of the processor in the electronic device of the present embodiment may refer to the corresponding description in the foregoing, and is not described in detail here.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device or system type embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A control method, comprising:
under the condition that a hardware module of electronic equipment is connected with external equipment, acquiring a connection identifier of the external equipment connected with the hardware module; the electronic equipment comprises at least one hardware module, and the hardware properties of the at least one hardware module are the same or different;
determining a hardware identification of the hardware module based on at least the connection identification;
determining calling interface parameters associated with the hardware module in at least one calling interface of the target application based on the hardware identification, wherein the calling interface parameters associated with the hardware module correspond to hardware attributes of the hardware module;
the calling interface parameter is used for calling a driving component of the hardware module based on the operation parameter after the operation parameter aiming at the hardware module is obtained through an interface corresponding to the calling interface parameter in the target application so as to execute corresponding operation.
2. The method of claim 1, determining a hardware identification of the hardware module based at least on the connection identification, comprising:
determining a driving component of the hardware module based on the connection identifier;
and reading the hardware identifier of the hardware module from the drive information prestored in the drive component.
3. The method according to claim 1 or 2, wherein after obtaining the operation parameter through the interface corresponding to the call interface parameter in the target application, the call interface parameter corresponding to the operation parameter is determined by:
determining a hardware module corresponding to the operating parameter;
and determining calling interface parameters corresponding to the hardware module based on the incidence relation between the hardware module and the calling interface parameters.
4. The method of claim 3, wherein the operational parameters include hardware identification;
wherein the determining the hardware module corresponding to the operating parameter includes:
and acquiring a hardware identifier in the operating parameters, and determining a hardware module corresponding to the hardware identifier.
5. The method of claim 3, wherein the operating parameters include a function identification;
wherein the determining the hardware module corresponding to the operating parameter includes:
acquiring a hardware identifier corresponding to a function identifier in the operation parameters;
and determining a hardware module corresponding to the hardware identifier.
6. The method of claim 1 or 2, the invoking interface parameter invoking a driver component of the hardware module based on the operational parameter, comprising:
and the calling interface parameter processes the operating parameter according to a parameter setting rule, and transmits the processed operating parameter to a driving component of the hardware module, so that the driving component executes corresponding operation based on the processed operating parameter.
7. The method of claim 1 or 2, further comprising:
obtaining an operation result after the operation is executed;
and transmitting the operation result to the external equipment connected with the hardware module corresponding to the operation.
8. The method of claim 1 or 2, obtaining operating parameters for the hardware module through an interface in the target application corresponding to the call interface parameters, comprising:
receiving a first input operation through the target application, and obtaining an operation parameter based on the first input operation, wherein the first input operation is an operation for a target function in the interface, and the operation parameter is a parameter for executing a corresponding operation to realize the target function;
alternatively, the first and second electrodes may be,
receiving a second input operation through the target application, and obtaining an operation parameter based on the second input operation, where the second input operation is an operation for a hardware identifier in the interface, and the operation parameter is a parameter for executing a corresponding operation on a hardware module corresponding to the hardware identifier.
9. A control device, comprising:
the connection identifier obtaining unit is used for obtaining a connection identifier of the external device connected with the hardware module under the condition that one hardware module in the electronic device is connected with the external device; the electronic equipment comprises at least one hardware module, and the hardware properties of the at least one hardware module are the same or different;
a hardware identifier obtaining unit, configured to determine a hardware identifier of the hardware module based on at least the connection identifier;
the interface relation determining unit is used for determining calling interface parameters related to the hardware module in at least one calling interface of the target application based on the hardware identification, and the calling interface parameters related to the hardware module correspond to the hardware attribute of the hardware module;
the calling interface parameter is used for calling a driving component of the hardware module based on the operation parameter after the operation parameter aiming at the hardware module is obtained through an interface corresponding to the calling interface parameter in the target application so as to execute corresponding operation.
10. An electronic device, comprising:
at least one hardware module having a drive assembly;
the processor is used for acquiring a connection identifier of the external equipment connected with the hardware module under the condition that one hardware module is connected with the external equipment; the electronic equipment comprises at least one hardware module, and the hardware properties of the at least one hardware module are the same or different; determining a hardware identification of the hardware module based on at least the connection identification; determining calling interface parameters associated with the hardware module in at least one calling interface of the target application based on the hardware identification, wherein the calling interface parameters associated with the hardware module correspond to hardware attributes of the hardware module;
the calling interface parameter is used for calling a driving component of the hardware module based on the operation parameter after the operation parameter aiming at the hardware module is obtained through an interface corresponding to the calling interface parameter in the target application so as to execute corresponding operation.
CN201910934593.1A 2019-09-29 2019-09-29 Control method and device and electronic equipment Pending CN110647365A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910934593.1A CN110647365A (en) 2019-09-29 2019-09-29 Control method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910934593.1A CN110647365A (en) 2019-09-29 2019-09-29 Control method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN110647365A true CN110647365A (en) 2020-01-03

Family

ID=68993196

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910934593.1A Pending CN110647365A (en) 2019-09-29 2019-09-29 Control method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN110647365A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010020291A1 (en) * 1999-08-19 2001-09-06 Ram Kudukoli System and method for programmatically generating a graphical program in response to program information
CN101216929A (en) * 2007-12-26 2008-07-09 广东威创视讯科技股份有限公司 Image processing method
CN101587431A (en) * 2009-04-08 2009-11-25 广东威创视讯科技股份有限公司 Method for realizing multi-screen playing video
CN102662708A (en) * 2012-03-31 2012-09-12 中标软件有限公司 Linux operating system and display card driving device thereof
CN105094895A (en) * 2015-06-30 2015-11-25 北京金山安全软件有限公司 Method and device for installing multiple display card drivers

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010020291A1 (en) * 1999-08-19 2001-09-06 Ram Kudukoli System and method for programmatically generating a graphical program in response to program information
CN101216929A (en) * 2007-12-26 2008-07-09 广东威创视讯科技股份有限公司 Image processing method
CN101587431A (en) * 2009-04-08 2009-11-25 广东威创视讯科技股份有限公司 Method for realizing multi-screen playing video
CN102662708A (en) * 2012-03-31 2012-09-12 中标软件有限公司 Linux operating system and display card driving device thereof
CN105094895A (en) * 2015-06-30 2015-11-25 北京金山安全软件有限公司 Method and device for installing multiple display card drivers

Non-Patent Citations (8)

* Cited by examiner, † Cited by third party
Title
BAOCHUQUAN: "https://blog.csdn.net/u014276460/article/details/46754451", 《WINDOWS显示驱动中读取EDID》 *
EVA1988725: "https://blog.csdn.net/eva1988725/article/details/6306833 1/", 《多输出显卡和双显卡》 *
GOPINATHS: "gopinaths.gitlab.io/post/detecting_portid_from_edid/", 《DETECTING HDMI PORT ID FROM EDID DATA》 *
NVIDIA: "https://images.nvidia.com/aem-dam/en-zz/Solutions/design-visualization/quadro-product-literature/NVMosaic-UG.pdf", 《NVIDIA MOSAIC TECHNOLOGY》 *
NVIDIA: "https://nvidia.custhelp.com/app/answers/detail/a_id/3568/~/how-to-setup-mosaic-using-nvidia-control-panel", 《HOW TO SETUP MOSAIC USING NVIDIA CONTROL PANEL》 *
NVIDIA: "https://nvidia.custhelp.com/app/answers/detail/a_id/3569/~/managing-a-display-edid-on-windows", 《MANAGING A DISPLAY EDID ON WINDOWS》 *
NVIDIA: "https://on-demand.gputechconf.com/gtc/2017/presentation/S7352-doug-traill-see-the-bigger-picture.pdf", 《QUADRO SYNC》 *
UNIT_ZHJ: "https://wk.baidu.com/view/be6b3069700abb68a982fbfa", 《EDID规范》 *

Similar Documents

Publication Publication Date Title
US11074066B2 (en) Apparatus and method for managing software updates of electronic devices
US20070002347A1 (en) System and method for upgrading firmware in a display
CN109857506B (en) Method and device for realizing guide information, electronic equipment and storage medium
CN110688169B (en) Application program acceleration method and device, storage medium and electronic equipment
CN104978119A (en) Information window display method and device, and user terminal
CN111209032B (en) Gray level publishing method, configuration center server, user terminal, system and medium
CN108039173B (en) Voice information input method, mobile terminal, system and readable storage medium
WO2022111394A1 (en) Information processing method and apparatus, and electronic devices
CN109144447B (en) Split screen window adjusting method and device, storage medium and electronic equipment
CN108829423A (en) Method for upgrading system, device, equipment and the storage medium of Android device
WO2021248849A1 (en) Driving voltage generation method and apparatus, and storage medium, and electronic device
WO2023098732A1 (en) Cross-device interaction method and apparatus, electronic device, and storage medium
CN107835305B (en) Information input method and device for terminal equipment with screen
WO2015117378A1 (en) Method and related system for adaptively configuring port, and computer storage medium
CN110647365A (en) Control method and device and electronic equipment
US11775274B2 (en) Application software installation method, device, and server
CN112035129A (en) Method and device for driver installation and upgrade and computer equipment
CN113849267A (en) Virtual display method, system, terminal and storage medium for display card
CN110838973B (en) Key configuration method and device of intelligent gateway and electronic equipment
CN109982136B (en) Volume adjusting method and device
WO2020011066A1 (en) Terminal display method and device, terminal and readable medium
CN115460389B (en) Image white balance area optimization method and device
CN106126281A (en) A kind of information processing method and electronic equipment
CN108694207B (en) Method and system for displaying file icons
CN112672337B (en) Communication service starting method, device, 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