CN104461588A - Method and device for setting externally-inserted equipment - Google Patents
Method and device for setting externally-inserted equipment Download PDFInfo
- Publication number
- CN104461588A CN104461588A CN201310421224.5A CN201310421224A CN104461588A CN 104461588 A CN104461588 A CN 104461588A CN 201310421224 A CN201310421224 A CN 201310421224A CN 104461588 A CN104461588 A CN 104461588A
- Authority
- CN
- China
- Prior art keywords
- equipment
- setting
- extrapolation
- internal
- performance
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 238000013213 extrapolation Methods 0.000 claims description 83
- 238000001514 detection method Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses a method and a device for setting externally-inserted equipment and belongs to the field of computers. The method includes when the circumstance that electronic equipment is provided with the externally-inserted equipment is detected, acquiring type of the externally-inserted equipment which has first performance; acquiring internal equipment, identical with the externally-inserted equipment in type, of the electronic equipment, wherein the internal equipment has second performance; when the first performance is higher than the second performance, setting for priority use of the externally-inserted equipment. By the method and the device, the externally-inserted equipment which is configured by a user is enabled to work normally, and efficiency in setting the externally-inserted equipment is improved.
Description
Technical Field
The invention relates to the field of computers, in particular to a method and a device for setting an externally-inserted device.
Background
Some devices such as a sound card, a video card, a network card and the like are integrated on a main board of the terminal, and because the performance of the devices integrated on the main board of the terminal sometimes cannot meet the requirements of a user, the user may use some external plug-in devices with better performance to replace the devices integrated on the main board, and at the moment, the external plug-in devices need to be set to enable the external plug-in devices to work normally.
At present, a method for setting an externally-inserted device is provided, which specifically comprises: after the terminal is started, initializing internal equipment of the terminal and initializing external equipment added by a user, and setting the priority of the internal equipment of the terminal to be greater than the priority of the external equipment by default. At this time, since the terminal defaults to set the priority of the internal device to be greater than that of the external plug-in device, the external plug-in device may not operate, and if the user wants to operate the external plug-in device normally, the user must manually set the priority of the external plug-in device to be greater than that of the internal device of the terminal, so that the efficiency of setting the external plug-in device is low.
Disclosure of Invention
In order to enable the external plug-in equipment to work normally and improve the efficiency of setting the external plug-in equipment, the invention provides a method and a device for setting the external plug-in equipment. The technical scheme is as follows:
on one hand, a method for setting an externally-inserted device is provided, and is applied to an electronic device, and the method comprises the following steps:
when detecting that the electronic equipment is provided with an extrapolation equipment, acquiring the type of the extrapolation equipment, wherein the extrapolation equipment has a first performance;
obtaining internal equipment of the electronic equipment, wherein the type of the internal equipment is the same as that of the extrapolation equipment, and the internal equipment has second performance;
and when the first performance is higher than the second performance, setting the extrapolation equipment to be preferentially used.
Wherein the setting preferentially uses the extrapolation apparatus, including:
setting the priority of the extrapolation device to be greater than the priority of the internal device; or,
and setting the external plugging equipment to work normally and setting the internal equipment to work out of work.
Further, when it is detected that the electronic device is configured with an extrapolation device, before obtaining the type of the extrapolation device, the method further includes:
after starting up, detecting whether the electronic equipment is provided with an external plugging device or not;
if so, loading the extrapolation device.
Preferably, the method further comprises:
and when the utilization rate of the extrapolation equipment is greater than a preset threshold value, setting to use the internal equipment.
Preferably, the method further comprises:
when a plurality of threads exist, selecting a thread with the highest priority;
setting the selected thread to use the extrapolation equipment;
setting other threads except the selected thread in the plurality of threads to use the internal device.
In another aspect, an apparatus for setting an externally-inserted device is provided, where the apparatus is applied to an electronic device, and the apparatus includes:
the first obtaining module is used for obtaining the type of an extrapolation device when the electronic device is detected to be configured with the extrapolation device, and the extrapolation device has a first performance;
the second acquisition module is used for acquiring internal equipment which is the same as the type of the extrapolation equipment in the electronic equipment, and the internal equipment has second performance;
the first setting module is used for setting the extrapolation equipment to be preferentially used when the first performance is higher than the second performance.
Wherein the first setting module includes:
a first setting unit for setting a priority of the extrapolation device to be greater than a priority of the internal device; or,
and the second setting unit is used for setting the external plugging equipment to work normally and setting the internal equipment to work out.
Further, the apparatus further comprises:
the detection module is used for detecting whether the electronic equipment is provided with an external plugging device or not after the electronic equipment is started;
and the loading module is used for loading the extrapolation equipment if the extrapolation equipment is in the default state.
Optionally, the apparatus further comprises:
and the second setting module is used for setting and using the internal equipment when the utilization rate of the extrapolation equipment is greater than a preset threshold value.
Optionally, the apparatus further comprises:
a selection module for selecting a thread with the highest priority when a plurality of threads exist;
the third setting module is used for setting the selected thread to use the extrapolation equipment;
a fourth setting module, configured to set other threads of the multiple threads except the selected thread to use the internal device.
In the embodiment of the invention, after the electronic equipment is started, when the electronic equipment is detected to be configured with an external plug-in equipment, the type of the external plug-in equipment is obtained, and the external plug-in equipment has a first performance; directly acquiring internal equipment of the electronic equipment, which has the same type as the external equipment and has second performance; when the first performance is higher than the second performance, the external equipment is preferentially used, so that the external equipment can normally work after the external equipment is set, the electronic equipment automatically detects the configured external equipment, and sets priorities for the external equipment and the acquired internal equipment, thereby improving the efficiency of setting the external equipment.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method for setting an external device according to embodiment 1 of the present invention;
fig. 2 is a flowchart of a method for setting an external device according to embodiment 2 of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for setting an externally-inserted device according to embodiment 3 of the present invention;
fig. 4 is a schematic structural diagram of another apparatus for setting an extrapolation apparatus according to embodiment 3 of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Example 1
The embodiment of the invention provides a method for setting an external equipment. The method is applied to an electronic device, and referring to fig. 1, the method includes:
step 101: when detecting that the electronic equipment is provided with an extrapolation equipment, acquiring the type of the extrapolation equipment, wherein the extrapolation equipment has a first performance;
step 102: obtaining internal equipment of the electronic equipment, wherein the type of the internal equipment is the same as that of the external equipment, and the internal equipment has second performance;
step 103: when the first performance is higher than the second performance, the extrapolation device is set to be preferentially used.
Wherein, the setting preferentially uses the extrapolation apparatus, including:
setting the priority of the extrapolation device to be greater than the acquired priority of the internal device; or,
and setting the external plugging equipment to work normally and setting the acquired internal equipment not to work.
Further, when it is detected that the electronic device is configured with an extrapolation device, before obtaining the type of the extrapolation device, the method further includes:
after the electronic equipment is started, detecting whether the electronic equipment is provided with an external plugging device or not;
if so, the extrapolation device is loaded.
Preferably, the method further comprises:
and when the utilization rate of the extrapolation equipment is greater than a preset threshold value, setting and using the obtained internal equipment.
Preferably, the method further comprises:
when a plurality of threads exist, selecting a thread with the highest priority;
setting the selected thread to use the extrapolation equipment;
and setting other threads except the selected thread in the plurality of threads to use the acquired internal equipment.
In the embodiment of the invention, after the electronic equipment is started, when the electronic equipment is detected to be configured with an external plug-in equipment, the type of the external plug-in equipment is obtained, and the external plug-in equipment has a first performance; directly acquiring internal equipment of the electronic equipment, which has the same type as the external equipment and has second performance; when the first performance is higher than the second performance, the external equipment is preferentially used, so that the external equipment can normally work after the external equipment is set, the electronic equipment automatically detects the configured external equipment, and sets priorities for the external equipment and the acquired internal equipment, thereby improving the efficiency of setting the external equipment.
Example 2
The embodiment of the invention provides a method for setting an external equipment, and referring to fig. 2, the method comprises the following steps:
step 201: after the electronic equipment is started, detecting whether the electronic equipment is provided with an external plugging device or not;
the method for setting the externally-inserted equipment provided by the embodiment of the invention is applied to the electronic equipment, the electronic equipment comprises internal equipment, and the internal equipment can be equipment such as a sound card, a display card and a network card which are integrated on a mainboard.
When the performance of the internal device included in the electronic device cannot meet the requirement of the user, the user can also configure an external plug-in device on the electronic device, and the external plug-in device can be an external sound card, a display card, a network card and other devices.
Further, when the electronic device is powered on, the internal devices included in the electronic device are initialized.
The step of detecting whether the electronic device is configured with the external plug-in device may be executed during the startup or after the startup.
Step 202: if yes, loading the extrapolation equipment;
in particular, if the electronic device is configured with an extrapolation arrangement, a communication connection between the electronic device and the extrapolation device is established, so that the electronic device can use the extrapolation device.
Step 203: when detecting that the electronic equipment is provided with an extrapolation equipment, acquiring the type of the extrapolation equipment, wherein the extrapolation equipment has a first performance;
wherein the type of the extrapolation device may be a device ID (Identity) of the extrapolation device.
Step 204: obtaining internal equipment of the electronic equipment, wherein the type of the internal equipment is the same as that of the external equipment, and the internal equipment has second performance;
specifically, the type of the internal device included in the electronic device is compared with the type of the external plug-in device, and the internal device having the second performance is obtained, which is the same as the type of the external plug-in device.
In general, only when the electronic device includes an internal device having a low performance, the user selects an external plug-in device having a higher performance than the internal device and mounts the external plug-in device on the electronic device.
Step 205: when the first performance is higher than the second performance, the extrapolation device is set to be preferentially used.
Specifically, the first performance is compared with the second performance, and if the first performance is higher than the second performance, the use of the extrapolation apparatus is set to be prioritized.
The specific steps of setting the preferential use of the extrapolation device can be as follows: setting the priority of the extrapolation device to be greater than the acquired priority of the internal device; or,
and setting the external plugging equipment to work normally and setting the acquired internal equipment not to work.
In the embodiment of the invention, after the electronic equipment is started, whether the electronic equipment is provided with the external plug-in equipment or not is automatically detected, if the external plug-in equipment is provided, the external plug-in equipment is set, so that the external plug-in equipment can normally work, and the situation that a user sometimes forgets to set the external plug-in equipment or the user manually sets the external plug-in equipment to cause errors is avoided, so that the external plug-in equipment cannot normally work.
Further, when the utilization rate of the extrapolation device is greater than a preset threshold value, the obtained internal device is set to be used.
When the utilization rate of the extrapolation device is greater than the preset threshold value, if the electronic device still uses the extrapolation device to run other threads, the running speed of the electronic device is reduced, and the use experience of the user is also affected.
When a user wants to run a plurality of threads, if the plurality of threads all use the extrapolation device, the utilization rate of the extrapolation device is increased, and the running speed of the electronic device is increased.
Further, when there are a plurality of threads, a thread of the highest priority is selected; setting the selected thread to use the extrapolation equipment; setting other threads except the selected thread in the plurality of threads to use the acquired internal device.
Specifically, when there are a plurality of threads, the priorities of the plurality of threads are compared, one thread having the highest priority is selected from the plurality of threads, the selected thread is set to use the extrapolation device, and the other threads except for the selected thread from the plurality of threads are set to use the acquired internal device.
Since the performance of the extrapolation device is higher than the priority of the internal device, the thread with the lowest priority may be selected, the selected thread may be set to use the obtained internal device, and the other threads except the selected thread may be set to use the extrapolation device.
In the embodiment of the invention, after the electronic equipment is started, when the electronic equipment is detected to be configured with an external plug-in equipment, the type of the external plug-in equipment is obtained, and the external plug-in equipment has a first performance; directly acquiring internal equipment of the electronic equipment, which has the same type as the external equipment and has second performance; when the first performance is higher than the second performance, the external equipment is preferentially used, so that the external equipment can normally work after the external equipment is set, the electronic equipment automatically detects the configured external equipment and sets priorities for the external equipment and the acquired internal equipment, the efficiency of setting the external equipment is improved, and when the utilization rate of the external equipment is greater than a preset threshold value or a plurality of threads exist, the external equipment and the acquired internal equipment are matched for use, so that the use experience of a user is improved.
Example 3
As shown in fig. 3, an embodiment of the present invention provides an apparatus for setting an external device. Wherein, the device is applied to an electronic equipment, and the device includes:
a first obtaining module 301, configured to obtain a type of an external plug-in device when detecting that the electronic device is configured with the external plug-in device, where the external plug-in device has a first performance;
a second obtaining module 302, configured to obtain an internal device of the electronic device, which is of the same type as the external plug-in device, where the internal device has a second capability;
a first setting module 303, configured to set priority for using the extrapolation apparatus when the first performance is higher than the second performance.
Wherein the first setting module 303 includes:
a first setting unit, configured to set a priority of the extrapolation device to be greater than a priority of the obtained internal device; or,
and the second setting unit is used for setting the external plugging equipment to work normally and setting the acquired internal equipment not to work.
Further, referring to fig. 4, the apparatus further includes:
the detecting module 304 is configured to detect whether the electronic device is configured with an external plug-in device after the electronic device is powered on;
a loading module 305, configured to load the extrapolation device if yes.
Optionally, the apparatus further comprises:
and the second setting module is used for setting and using the obtained internal equipment when the utilization rate of the extrapolation equipment is greater than a preset threshold value.
Optionally, the apparatus further comprises:
a selection module for selecting a thread with the highest priority when a plurality of threads exist;
the third setting module is used for setting the selected thread to use the extrapolation equipment;
and the fourth setting module is used for setting the internal equipment used and obtained by other threads except the selected thread in the plurality of threads.
In the embodiment of the invention, after the electronic equipment is started, when the electronic equipment is detected to be configured with an external plug-in equipment, the type of the external plug-in equipment is obtained, and the external plug-in equipment has a first performance; directly acquiring internal equipment of the electronic equipment, which has the same type as the external equipment and has second performance; when the first performance is higher than the second performance, the external equipment is preferentially used, so that the external equipment can normally work after the external equipment is set, the electronic equipment automatically detects the configured external equipment, and sets priorities for the external equipment and the acquired internal equipment, thereby improving the efficiency of setting the external equipment.
It should be noted that: in the device for performing equipment on an external equipment provided in the above embodiment, when the external equipment is set, only the division of the above functional modules is taken as an example, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device for setting the external equipment provided by the above embodiment and the method embodiment for setting the external equipment belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment and are not described herein again.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (10)
1. A method for setting an externally-inserted device is applied to an electronic device, and is characterized by comprising the following steps:
when detecting that the electronic equipment is provided with an extrapolation equipment, acquiring the type of the extrapolation equipment, wherein the extrapolation equipment has a first performance;
obtaining internal equipment of the electronic equipment, wherein the type of the internal equipment is the same as that of the extrapolation equipment, and the internal equipment has second performance;
and when the first performance is higher than the second performance, setting the extrapolation equipment to be preferentially used.
2. The method of claim 1, wherein said setting priority uses said extrapolation device, comprising:
setting the priority of the extrapolation device to be greater than the priority of the internal device; or,
and setting the external plugging equipment to work normally and setting the internal equipment to work out of work.
3. The method of claim 1, wherein the detecting that the electronic device is configured with an extrapolation device, prior to obtaining a type of the extrapolation device, further comprises:
after starting up, detecting whether the electronic equipment is provided with an external plugging device or not;
if so, loading the extrapolation device.
4. The method of claim 1, wherein the method further comprises:
and when the utilization rate of the extrapolation equipment is greater than a preset threshold value, setting to use the internal equipment.
5. The method of claim 1, wherein the method further comprises:
when a plurality of threads exist, selecting a thread with the highest priority;
setting the selected thread to use the extrapolation equipment;
setting other threads except the selected thread in the plurality of threads to use the internal device.
6. The utility model provides a device that equipment of inserting outward sets up, is applied to an electronic equipment, its characterized in that, the device includes:
the first obtaining module is used for obtaining the type of an extrapolation device when the electronic device is detected to be configured with the extrapolation device, and the extrapolation device has a first performance;
the second acquisition module is used for acquiring internal equipment which is the same as the type of the extrapolation equipment in the electronic equipment, and the internal equipment has second performance;
the first setting module is used for setting the extrapolation equipment to be preferentially used when the first performance is higher than the second performance.
7. The apparatus of claim 6, wherein the first setup module comprises:
a first setting unit for setting a priority of the extrapolation device to be greater than a priority of the internal device; or,
and the second setting unit is used for setting the external plugging equipment to work normally and setting the internal equipment to work out.
8. The apparatus of claim 6, wherein the apparatus further comprises:
the detection module is used for detecting whether the electronic equipment is provided with an external plugging device or not after the electronic equipment is started;
and the loading module is used for loading the extrapolation equipment if the extrapolation equipment is in the default state.
9. The method of claim 6, wherein the apparatus further comprises:
and the second setting module is used for setting and using the internal equipment when the utilization rate of the extrapolation equipment is greater than a preset threshold value.
10. The apparatus of claim 6, wherein the apparatus further comprises:
a selection module for selecting a thread with the highest priority when a plurality of threads exist;
the third setting module is used for setting the selected thread to use the extrapolation equipment;
a fourth setting module, configured to set other threads of the multiple threads except the selected thread to use the internal device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310421224.5A CN104461588B (en) | 2013-09-16 | 2013-09-16 | It is a kind of externally to plug the standby method and device being configured |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310421224.5A CN104461588B (en) | 2013-09-16 | 2013-09-16 | It is a kind of externally to plug the standby method and device being configured |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104461588A true CN104461588A (en) | 2015-03-25 |
CN104461588B CN104461588B (en) | 2018-10-12 |
Family
ID=52907699
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310421224.5A Active CN104461588B (en) | 2013-09-16 | 2013-09-16 | It is a kind of externally to plug the standby method and device being configured |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104461588B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101110062A (en) * | 2007-08-22 | 2008-01-23 | 中兴通讯股份有限公司 | System and method for initializing data card |
US20110067001A1 (en) * | 2009-09-16 | 2011-03-17 | Viasat, Inc. | Control/monitor automation for asics and programmable logic |
CN102087604A (en) * | 2009-12-07 | 2011-06-08 | 鸿富锦精密工业(深圳)有限公司 | Computer and method for acquiring hardware configuration information |
CN102103470A (en) * | 2011-01-28 | 2011-06-22 | 鸿富锦精密工业(深圳)有限公司 | Memory-expandable electronic equipment and memory expanding method |
CN102622242A (en) * | 2011-01-30 | 2012-08-01 | 联想(北京)有限公司 | Method accelerating starting-up speed of electronic device and electronic device |
-
2013
- 2013-09-16 CN CN201310421224.5A patent/CN104461588B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101110062A (en) * | 2007-08-22 | 2008-01-23 | 中兴通讯股份有限公司 | System and method for initializing data card |
US20110067001A1 (en) * | 2009-09-16 | 2011-03-17 | Viasat, Inc. | Control/monitor automation for asics and programmable logic |
CN102087604A (en) * | 2009-12-07 | 2011-06-08 | 鸿富锦精密工业(深圳)有限公司 | Computer and method for acquiring hardware configuration information |
CN102103470A (en) * | 2011-01-28 | 2011-06-22 | 鸿富锦精密工业(深圳)有限公司 | Memory-expandable electronic equipment and memory expanding method |
CN102622242A (en) * | 2011-01-30 | 2012-08-01 | 联想(北京)有限公司 | Method accelerating starting-up speed of electronic device and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN104461588B (en) | 2018-10-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102369647B (en) | Power supply managment method and device of mobile terminal | |
US9967824B2 (en) | Mobile terminal managing method and system, mobile terminal | |
US20140007106A1 (en) | Display and Terminate Running Applications | |
US10211661B2 (en) | Charging mode control method and device | |
EP3355223A1 (en) | Unlock method and mobile terminal | |
CN103914322A (en) | Terminal acceleration method and terminal | |
CN110851387B (en) | Interface function configuration method and electronic equipment | |
US8700934B2 (en) | System and method for dynamically configuring processing speeds in a wireless mobile telecommunications device | |
CN103838353A (en) | Method and terminal for controlling processor operation | |
WO2018129991A1 (en) | Charging method, charging device and terminal | |
CN104615415A (en) | Information processing method and electronic equipment | |
CN105279426B (en) | Configure the electronic equipment and its correlation technique of application program inter-related task | |
CN102999252B (en) | A kind of method of unlock interface application prestrain, device and terminal | |
WO2014153998A1 (en) | Method for controlling process of application and computer system | |
CN106200866B (en) | A kind of application freezing method and mobile terminal | |
CN103440147A (en) | Control method and device of software using version | |
CN104461588B (en) | It is a kind of externally to plug the standby method and device being configured | |
CN103516872A (en) | Terminal equipment and terminal equipment startup control method | |
CN104281462A (en) | Firmware upgrade configuration saving system and method | |
CN108112052B (en) | Terminal network sharing method and device, air conditioner and storage medium | |
US9959187B2 (en) | Decoalescing resource utilization at boot | |
US11816002B2 (en) | Method for a data backup unit to intelligently charge a mobile device | |
CN110427250A (en) | Create cloud host instances, the method, apparatus of elastic telescopic group, equipment and medium | |
CN107196389B (en) | Processing method and device of terminal charger | |
CN110458550B (en) | Payment method, device, terminal and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |