CN104519405A - Control method and electronic equipment - Google Patents

Control method and electronic equipment Download PDF

Info

Publication number
CN104519405A
CN104519405A CN201310463934.4A CN201310463934A CN104519405A CN 104519405 A CN104519405 A CN 104519405A CN 201310463934 A CN201310463934 A CN 201310463934A CN 104519405 A CN104519405 A CN 104519405A
Authority
CN
China
Prior art keywords
external equipment
interface
equipment
electronic equipment
voltage
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
CN201310463934.4A
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 CN201310463934.4A priority Critical patent/CN104519405A/en
Publication of CN104519405A publication Critical patent/CN104519405A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/4424Monitoring of the internal components or processes of the client device, e.g. CPU or memory load, processing speed, timer, counter or percentage of the hard disk space used
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4432Powering on the client, e.g. bootstrap loading using setup parameters being stored locally or received from the server

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • Power Sources (AREA)

Abstract

The invention discloses a control method and electronic equipment and belongs to electronic equipment. The electronic equipment is connected with at least one external device through a port and powers the external device. The control method includes as the external equipment is inserted in the port, detecting and acquiring a first parameter of the external device; according to the first parameter, judging class of the external device; according to the external device class and preset configuration, determining an output current value or voltage value matched with the port. The control method and the electronic equipment meet the power requirement of an optional external device connected with the electronic equipment.

Description

A kind of control method and electronic equipment
Technical field
The present invention relates to the communication technology, particularly relate to a kind of control method and electronic equipment.
Background technology
In recent years, on market, the accounting of intelligent television progressively promotes, and significantly embodies the trend of alternative traditional tv.Intelligent television is owing to will support the more function beyond audio-video frequency content broadcasting, such as video calling, network browsing, file process, game etc., are proposed higher requirement for hardware configuration (double-core/multi-core CPU, independently graphic process unit GPU etc.) and disposal ability.
Present inventor, in the process realizing the embodiment of the present application technical scheme, at least finds to there is following technical problem in prior art:
Realizing to allow the hardware configuration of intelligent television updating fast, the basic configuration of fractional hardware can be set to one and independently be inserted on intelligent television by interface, to complete HardwareUpgring operation in special peripheral equipment.This is independently powered needed for special peripheral equipment and can be realized by the power supply capacity of interface.But because the interface most of the time is all the external equipment of access routine, the probability of access special peripheral equipment is relatively low, and the design of interface power supply capacity can cannot meet conventional external equipment and special peripheral equipment access demand separately simultaneously.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of control method and electronic equipment, at least in the design of interface power supply capacity, can meet conventional external equipment and special peripheral equipment access demand separately simultaneously.
For achieving the above object, technical scheme of the present invention is achieved in that
A kind of control method, is applied in electronic equipment, and described electronic equipment can be connected with at least one external equipment by interface and to be that described external equipment is powered; Described method comprises:
When external equipment inserts described interface, detect and obtain the first parameter of described external equipment;
According to described first parameter, judge the classification of described external equipment;
Based on the classification of described external equipment, according to a preset configuration, determine the output current value that matches with described interface or magnitude of voltage.
Wherein, described electronic equipment also comprises: provide for external equipment accesses described electronic equipment the interface driver module driving adaptation; Described external equipment after inserting described interface described method also comprise:
According to described first parameter, judge whether described electronic equipment has the driving matched with described external equipment;
Prepackage in scan interface driver module drives carries out driving adaptation, and the external equipment inserting described interface is passed through interface driver model calling on described electronic equipment.
Wherein, when described external equipment at least comprises two classes, described according to described first parameter, judge the classification of described external equipment, comprising:
According at least the first hardware identifier and/or the first software identification, at least the first hardware identifier of scanning external equipment and/or the first software identification, detect that inserted external equipment is the first external equipment or the second external equipment.
Wherein, the described classification based on described external equipment, according to a preset configuration, determine the output current value that matches with described interface or magnitude of voltage, comprising:
If when external equipment is the first external equipment, according to the mapping relations in described preset configuration, the interface current/voltage controlling to mate with the first external equipment the first corresponding current value exports;
If when external equipment is the second external equipment, according to the mapping relations in described preset configuration, the interface current/voltage matches controlling the predetermined threshold value corresponding with the second external equipment exports; Described predetermined threshold value is greater than one rated current/magnitude of voltage.
A kind of electronic equipment, described electronic equipment can be connected with at least one external equipment by interface and to be that described external equipment is powered; Described electronic equipment also comprises:
First detection module, when inserting described interface for external equipment, detects and obtains the first parameter of described external equipment;
First judging unit, for according to described first parameter, judges the classification of described external equipment;
Match control module, for the classification based on described external equipment, according to a preset configuration, determines the output current value that matches with described interface or magnitude of voltage.
Wherein, described electronic equipment also comprises:
Interface driver module, provides driving adaptive for accessing described electronic equipment for external equipment;
Second detection module, for according to described first parameter, judge whether described electronic equipment has the driving matched with described external equipment, prepackage in scan interface driver module drives carries out driving adaptation, and the external equipment inserting described interface is passed through interface driver model calling on described electronic equipment.
Wherein, when described external equipment at least comprises two classes,
Described first judge module, be further used at least the first hardware identifier and/or the first software identification that scan external equipment, detect that inserted external equipment is the first external equipment or the second external equipment according at least the first hardware identifier and/or the first software identification.
Wherein, described match control module, when to be further used for described external equipment be the first external equipment, according to the mapping relations in described preset configuration, to control and interface current/voltage that the first external equipment mates the first corresponding current value exports; When described external equipment is the second external equipment, according to the mapping relations in described preset configuration, the interface current/voltage matches controlling the predetermined threshold value corresponding with the second external equipment exports; Described predetermined threshold value is greater than one load current value/magnitude of voltage.
Method of the present invention is applied in electronic equipment, and described electronic equipment can be powered by the interface not described external equipment that to be connected with at least one external equipment; Described method comprises: when external equipment inserts described interface, detects and obtains the first parameter of described external equipment; According to described first parameter, judge the classification of described external equipment; Based on the classification of described external equipment, according to a preset configuration, control the output matched with described interface, to utilize the output valve that exports to power for external equipment.Adopt the present invention, due to can according to detecting the classification of external equipment that obtain, according to a preset configuration, control the output matched with described interface, to utilize the output valve that exports to power for external equipment, therefore, the power demands of the arbitrary money external equipment be connected with electronic equipment can be applicable to.
Accompanying drawing explanation
Fig. 1 is a realization flow figure of the inventive method embodiment;
Fig. 2 is another realization flow figure of the inventive method embodiment;
Fig. 3 is the another realization flow figure of the inventive method embodiment;
Fig. 4 is a composition structural representation of electronic equipment embodiment of the present invention;
Fig. 5 is another composition structural representation of electronic equipment embodiment of the present invention;
Fig. 6 is the schematic diagram that under the present invention one application scenarios, currents match is mutual.
Embodiment
Be described in further detail below in conjunction with the enforcement of accompanying drawing to technical scheme.
Embodiment of the method one:
The control method of the embodiment of the present invention, the method is applied in electronic equipment, and described electronic equipment is connected with at least one external equipment by interface; Described electronic equipment at least comprises: the power supply of powering for module each in electronic equipment and interface; As shown in Figure 1, said method comprising the steps of:
When step 101, external equipment insert described interface, detect and obtain the first parameter of described external equipment.
Step 102, according to described first parameter, judge the classification of described external equipment.
Step 103, classification based on described external equipment, according to a preset configuration, determine the output current value that matches with described interface or magnitude of voltage.
Here, be that described external equipment is powered with described output current value or magnitude of voltage.
Adopt the embodiment of the present invention, based on the classification of described external equipment, according to a preset configuration, control the output matched with described interface, to utilize the output valve that exports to power for external equipment.Adopt the present invention, due to can according to detecting the classification of external equipment that obtain, according to a preset configuration, control the output matched with described interface, to utilize the output valve that exports to power for external equipment, therefore, the power demands of the arbitrary money external equipment be connected with electronic equipment can be applicable to, this from adaptive interface current/voltage matches output, without hardware modifications, only need the carrying out on existing hardware basis to realize just passable, also reduce manufacturing cost compared with hardware modifications.
Embodiment of the method two:
The control method of the embodiment of the present invention, the method is applied in electronic equipment, and described electronic equipment is connected with at least one external equipment by interface; Described electronic equipment at least comprises: the power supply of powering for module each in electronic equipment and interface; Described electronic equipment also comprises: provide for external equipment accesses described electronic equipment the interface driver module driving adaptation; As shown in Figure 2, said method comprising the steps of:
When step 201, external equipment insert described interface, detect and obtain the first parameter of described external equipment.
Step 202, according to described first parameter, judge whether described electronic equipment has the driving matched with described external equipment.
Prepackage in step 203, scan interface driver module drives carries out driving adaptation, and the external equipment inserting described interface is passed through interface driver model calling on described electronic equipment.
Step 204, according to described first parameter, judge the classification of described external equipment.
Step 205, classification based on described external equipment, according to a preset configuration, determine the output current value that matches with described interface or magnitude of voltage.
Here, be that described external equipment is powered with described output current value or magnitude of voltage.
In the embodiment of the present invention, by performing step 202, judge whether described electronic equipment has the driving matched with described external equipment, object judges whether described external equipment lacks to drive or drive not mate cannot be connected to described electronic equipment, if there is this situation, then pass through to perform step 203, the prepackage in scan interface driver module drives carries out driving adaptation, and the external equipment inserting described interface is passed through interface driver model calling on described electronic equipment.By step 202-203, external equipment is successfully connected on described electronic equipment, by under the state of electronic equipment identification, step 204 can be performed, the classification of inserted external equipment can be detected so that follow-up.
Due to the classification based on described external equipment, according to a preset configuration, control the output matched with described interface, to utilize the output valve that exports to power for external equipment.Adopt the present invention, due to can according to detecting the classification of external equipment that obtain, according to a preset configuration, control the output matched with described interface, to utilize the output valve that exports to power for external equipment, therefore, the power demands of the arbitrary money external equipment be connected with electronic equipment can be applicable to, this from adaptive interface current/voltage matches output, without hardware modifications, only need the carrying out on existing hardware basis to realize just passable, also reduce manufacturing cost compared with hardware modifications.
And then, can also not mate the situation that cannot be connected to described electronic equipment and solve detecting that described external equipment lack to drive or drive, it is a kind of automatic operation of system self-adaption, download and install driving can not be carried out by the external equipment of electronic equipment identification without the need to user voluntarily, because a lot of user does not have this ability driving download and install, the user needing certain technical foundation just can easily realize, so, from this angle, be a simplified user operation, improve efficiency.
Embodiment of the method three:
The control method of the embodiment of the present invention, the method is applied in electronic equipment, and described electronic equipment is connected with at least one external equipment by interface; Described electronic equipment at least comprises: the power supply of powering for module each in electronic equipment and interface; When described external equipment at least comprises two classes (external equipment can be at least two classes, but is not limited to two classes, can increase the type of external equipment electric current adaptation with user's user demand), as shown in Figure 3, said method comprising the steps of:
When step 301, external equipment insert described interface, detect and obtain the first parameter of described external equipment.
At least the first hardware identifier of step 302, scanning external equipment and/or the first software identification, detect that inserted external equipment is the first external equipment or the second external equipment according at least the first hardware identifier and/or the first software identification, if when the external equipment that detection obtains is the first external equipment, perform step 303, otherwise, perform step 304.
Here, scanning external equipment is to detect the classification of this external equipment, can based on hardware information, also can based on software information, such as hardware identifier, software identification, hardware identifier can carry out data communication pin type used or label, the hardware identification code of external equipment for external equipment is connected with interface; Software identification can be the label name of external equipment, as " my USB flash disk ", and " my Dongle ", " my hard disk ".
And hardware identifier and software identification can optional one, also can combination in any.The identification types of hardware identifier, software identification has multiple, it can be to the first hardware identifier, the second hardware identifier ... the N number of hardware identifier of .., first software identification, the second software identification ... the N number of software identification of .., only set forth with the first hardware identifier and/or the first software identification herein.
Except above-mentioned hardware identifier, software identification, can also detect by low and high level the classification obtaining external equipment, usual USB flash disk is low level, and Dongle is high level.
If when step 303 external equipment is the first external equipment, according to the mapping relations in described preset configuration, the interface current/voltage controlling to mate with the first external equipment the first corresponding current value exports.
Here, to export with interface current/voltage that the first external equipment mates the first corresponding current value, to realize powering to the first external equipment.
If when step 304 external equipment is the second external equipment, according to the mapping relations in described preset configuration, the interface current/voltage matches controlling the predetermined threshold value corresponding with the second external equipment exports.
Here, described predetermined threshold value is greater than one rated current/magnitude of voltage.Export with the interface current/voltage matches of the predetermined threshold value corresponding with the second external equipment, to realize powering to the second external equipment.
In the present embodiment, described in the predetermined threshold value that matches, the mode communicated with described electronic equipment by described second external equipment is got.
Second external equipment communicates with described electronic equipment and comprises the first communication, second communication, the third communication etc., corresponding different obtain manners.Specifically, second external equipment can have multiple physical interface, can be connected on electronic equipment, such as USB interface, USB interface, HDMI, communicated with electronic equipment by the agreement of corresponding physical interface, be respectively the first communication, second communication, the third communication etc.Communicate except utilizing physical interface, second external equipment can also by joining peer modules communicate with the Bluetooth pairing of the supporting setting of electronic equipment, WIFI, using the demand of powering needed for self (can drive the second external equipment self normally work time the required matching current output valve configuration information that forms) provide in advance as the predetermined threshold value matched, follow-up detect be the second external equipment time, obtain required matching current by this predetermined threshold value to export, to meet the power demands of the second external equipment.
Here it is to be noted: the description of following electronic equipment item, it is similar for describing with said method, and the beneficial effect with method describes, and does not repeat.For the ins and outs do not disclosed in electronic equipment embodiment of the present invention, please refer to the description of the inventive method embodiment.
Electronic equipment embodiment one:
The electronic equipment of the embodiment of the present invention, described electronic equipment is connected with at least one external equipment by interface; Described electronic equipment at least comprises: the power supply of powering for module each in electronic equipment and interface; As shown in Figure 4, described electronic equipment also comprises:
First detection module, when inserting described interface for external equipment, detects and obtains the first parameter of described external equipment.
First judging unit, for according to described first parameter, judges the classification of described external equipment.
Match control module, for the classification based on described external equipment, according to a preset configuration, determines the output current value that matches with described interface or magnitude of voltage.
Electronic equipment embodiment two:
The electronic equipment of the embodiment of the present invention, described electronic equipment is connected with at least one external equipment by interface; Described electronic equipment at least comprises: the power supply of powering for module each in electronic equipment and interface; As shown in Figure 5, described electronic equipment also comprises:
First detection module, when inserting described interface for external equipment, detects and obtains the first parameter of described external equipment.
Interface driver module, provides driving adaptive for accessing described electronic equipment for external equipment.
Second detection module, for according to described first parameter, judge whether described electronic equipment has the driving matched with described external equipment, prepackage in scan interface driver module drives carries out driving adaptation, and the external equipment inserting described interface is passed through interface driver model calling on described electronic equipment.
First judging unit, for according to described first parameter, judges the classification of described external equipment.
Match control module, for the classification based on described external equipment, according to a preset configuration, determining the output current value that matches with described interface or magnitude of voltage, is that described external equipment is powered with described output current value or magnitude of voltage.
Electronic equipment embodiment three:
The electronic equipment of the embodiment of the present invention, described electronic equipment is connected with at least one external equipment by interface; Described electronic equipment at least comprises: the power supply of powering for module each in electronic equipment and interface; As shown in Figure 4, framework is constant, but at least comprise the scene of two classes at described external equipment under, describe individual modules refinement, described electronic equipment also comprises:
First detection module, when inserting described interface for external equipment, detects and obtains the first parameter of described external equipment.
First judging unit, for according to described first parameter, judge the classification of described external equipment, according at least the first hardware identifier and/or the first software identification, at least the first hardware identifier of scanning external equipment and/or the first software identification, detect that inserted external equipment is the first external equipment or the second external equipment.
Match control module, for the classification based on described external equipment, according to a preset configuration, determine the output current value that matches with described interface or magnitude of voltage, if when described external equipment is the first external equipment, according to the mapping relations in described preset configuration, the interface current/voltage controlling to mate with the first external equipment the first corresponding current value exports; When described external equipment is the second external equipment, according to the mapping relations in described preset configuration, the interface current/voltage matches controlling the predetermined threshold value corresponding with the second external equipment exports; Described predetermined threshold value is greater than one rated current/magnitude of voltage.
In the present embodiment, first judging unit scanning external equipment is to detect the classification of this external equipment, can based on hardware information, also can based on software information, such as hardware identifier, software identification, hardware identifier can carry out data communication pin type used or label, the hardware identification code of external equipment for external equipment is connected with interface; Software identification can be the label name of external equipment, as " my USB flash disk ", and " my Dongle ", " my hard disk ".
And hardware identifier and software identification can optional one, also can combination in any.The identification types of hardware identifier, software identification has multiple, it can be to the first hardware identifier, the second hardware identifier ... the N number of hardware identifier of .., first software identification, the second software identification ... the N number of software identification of .., only set forth with the first hardware identifier and/or the first software identification herein.
Except above-mentioned hardware identifier, software identification, can also detect by low and high level the classification obtaining external equipment, usual USB flash disk is low level, and Dongle is high level.
In the present embodiment, described match control module, the predetermined threshold value matched described in the mode also for being communicated with described electronic equipment by described second external equipment is got also is preserved.Second external equipment communicates with described electronic equipment and comprises the first communication, second communication, the third communication etc., corresponding different obtain manners.Specifically, second external equipment can have multiple physical interface, can be connected on electronic equipment, such as USB interface, USB interface, HDMI, communicated with electronic equipment by the agreement of corresponding physical interface, be respectively the first communication, second communication, the third communication etc.Communicate except utilizing physical interface, second external equipment can also by joining peer modules communicate with the Bluetooth pairing of the supporting setting of electronic equipment, WIFI, using the demand of powering needed for self (can drive the second external equipment self normally work time the required matching current output valve configuration information that forms) provide in advance as the predetermined threshold value matched, follow-up detect be the second external equipment time, obtain required matching current by this predetermined threshold value to export, to meet the power demands of the second external equipment.
In the present embodiment, described electronic equipment also comprises: power management module, is when in electronic equipment, each module and interface are powered for adopting power supply, is the power supply that modules and interface assignment are applicable to according to demand.
Be described below for a real world applications scene:
Application scenarios is: with electronic equipment be intelligent television application scene be example, when the external equipment be connected with this electronic equipment is at least two classes, first external equipment also can be called conventional external equipment, such as conventional USB flash disk, hard disk etc., only need conventional rated current, just can meet the demands with the output current of existing USB interface; Second external equipment also can be called special peripheral equipment, such as Dongle, needs the large discharge electric current exceeding conventional rated current, cannot meet the demands, specifically set forth below with the output current of existing USB interface.
Intelligent television accounting progressively promotes, and has the trend of alternative traditional tv.Intelligent television is owing to will support the more function beyond audio-video frequency content broadcasting, such as video calling, network browsing, file process, game etc., for hardware configuration (double-core/multi-core CPU, independently graphic process unit GPU etc.) and disposal ability have higher requirement, based on this demand, realize to allow the hardware configuration of intelligent television updating fast, such as CPU is upgraded to Arm9 kernel from Arm7, double-core is upgraded to from monokaryon, four cores etc., a kind of optional mode can be adopted---the basic configuration of intelligence (is comprised CPU, internal memory, peripheral interface, power management module etc.) make the mode of a Dongle, by the HDMI of standard, be inserted on TV, complete HardwareUpgring operation.Power to complete Dongle, easy a kind of mode is by the USB interface on intelligent television; Along with the increase of cpu chip dominant frequency, the load current needed when Dongle powers also constantly promotes.For the four core chip MSM8974 of high pass Qualcomm, if played at some 3D of operation, when CPU and GPU load is all larger, the electric current of needs is at about 1.5A.And the USB2.0 interface output current of standard is at 0.5A, USB3.0 interface power supply capacity is 1A, all cannot meet the requirement that Dongle powers, the requirement that Dongle powers is, Dongle by USB interface access intelligent television and Dongle can normally work time need the output current of USB interface at least on 1.5A, such as 2A, just can meet the power reguirements of Dongle, from the angle of simple realization, if for user specifies a USB interface, meet the power reguirements of Dongle specially, do big current to power use, all the other USB port are according to standard output current design, USB interface due to current intelligent television is all generally in side or bottom, especially under wall hanging mode, user's inconvenience distinguishes in multiple USB interface, unless specifically identified on etching in USB interface, user can see just passable in use, but so both unsightly, too increase manufacturing process complexity and cost.In addition; if user misoperation, will USB flash disk or the portable hard drive of current-limiting protection be there is no, be inserted in the USB interface of this interface output current at least on 1.5A; likely in use produce some hidden danger because electric current is excessive, such as burn out USB flash disk or portable hard drive.
Therefore, need to consider in the angle reduced costs for this application scenarios, and can also realize easy, user-friendly, at least in the design of interface power supply capacity, conventional external equipment and special peripheral equipment access demand separately can be met simultaneously.
Under this application scene, be exactly in simple terms in the design process of USB interface, increase the switch of a supply current, when inserting common USB flash disk or portable hard drive, conveniently the rated current of standard exports.When plugging the Dongle for intelligent television HardwareUpgring needing USB to power, power supply is exported according to high electric current, as shown in Figure 3, electronic equipment side comprises the mutual schematic diagram of matching current: the USB interface that power supply, power management module, first detection module, currents match control module and electronic equipment are connected with Dongle and HDMI.Wherein, power supply is used for in electronic equipment, each module and interface are powered, power management module be used for power supply be in electronic equipment each module and interface power carry out power supply distribution, first detection module inserts the external equipment why type external equipment of electronic equipment by USB interface for detecting, to be carried out the adjustment of USB interface output current by prompting currents match control module, when large discharge output current needs for this special peripheral equipment of Dongle, being Dongle is transferred to currents match control module by HDMI by Dongle power demands information (Dongle normally work required power demands), thus, currents match control module can use to Dongle according to the output current of this power demands coupling USB interface, normally to work required power demands to meet Dongle.Wherein, the demand information (needing the electric current of how many amperes) that Dongle powers can pre-set in Dongle, (CEC is controlled by the consumer electronics in HDMI, Consumer Electronic Control) pin, as 13 pins in HDMI, carry out data interaction, notify on electronic equipment.
Under this application scene, the advantage of the present invention program is adopted to be: one: the outside external equipment inserted can be judged, thus carry out the Auto-matching output switching of USB interface electric current; Two, powering as big current without the need to setting separately certain USB interface, reducing hardware cost, user, in the process using Dongle, can choose at random any one USB interface on electronic equipment.
In several embodiments that the application provides, should be understood that disclosed equipment and method can realize by another way.Apparatus embodiments described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, and as: multiple unit or assembly can be in conjunction with, maybe can be integrated into another system, or some features can be ignored, or do not perform.In addition, the coupling each other of shown or discussed each part or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of equipment or unit or communication connection can be electrical, machinery or other form.
The above-mentioned unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, also can be distributed in multiple network element; Part or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in various embodiments of the present invention can all be integrated in a processing unit, also can be each unit individually as a unit, also can two or more unit in a unit integrated; Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form that hardware also can be adopted to add SFU software functional unit realizes.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that program command is relevant, aforesaid program can be stored in a computer read/write memory medium, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: movable storage device, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. various can be program code stored medium.
Or, if the above-mentioned integrated unit of the present invention using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.Based on such understanding, the technical scheme of the embodiment of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium, comprises some instructions and performs all or part of of method described in each embodiment of the present invention in order to make a computer equipment (can be personal computer, server or the network equipment etc.).And aforesaid storage medium comprises: movable storage device, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.

Claims (8)

1. a control method, is applied in electronic equipment, and described electronic equipment can be connected with at least one external equipment by interface and to be that described external equipment is powered; Described method comprises:
When external equipment inserts described interface, detect and obtain the first parameter of described external equipment;
According to described first parameter, judge the classification of described external equipment;
Based on the classification of described external equipment, according to a preset configuration, determine the output current value that matches with described interface or magnitude of voltage.
2. method according to claim 1, described electronic equipment also comprises: provide for external equipment accesses described electronic equipment the interface driver module driving adaptation; Described external equipment after inserting described interface described method also comprise:
According to described first parameter, judge whether described electronic equipment has the driving matched with described external equipment;
Prepackage in scan interface driver module drives carries out driving adaptation, and the external equipment inserting described interface is passed through interface driver model calling on described electronic equipment.
3. method according to claim 1 and 2, when described external equipment at least comprises two classes, described according to described first parameter, judge the classification of described external equipment, comprising:
According at least the first hardware identifier and/or the first software identification, at least the first hardware identifier of scanning external equipment and/or the first software identification, detect that inserted external equipment is the first external equipment or the second external equipment.
4. method according to claim 3, the described classification based on described external equipment, according to a preset configuration, determine the output current value that matches with described interface or magnitude of voltage, comprising:
If when external equipment is the first external equipment, according to the mapping relations in described preset configuration, the interface current/voltage controlling to mate with the first external equipment the first corresponding current value exports;
If when external equipment is the second external equipment, according to the mapping relations in described preset configuration, the interface current/voltage matches controlling the predetermined threshold value corresponding with the second external equipment exports; Described predetermined threshold value is greater than one rated current/magnitude of voltage.
5. an electronic equipment, described electronic equipment can be connected with at least one external equipment by interface and to be that described external equipment is powered; Described electronic equipment also comprises:
First detection module, when inserting described interface for external equipment, detects and obtains the first parameter of described external equipment;
First judging unit, for according to described first parameter, judges the classification of described external equipment;
Match control module, for the classification based on described external equipment, according to a preset configuration, determines the output current value that matches with described interface or magnitude of voltage.
6. electronic equipment according to claim 5, described electronic equipment also comprises:
Interface driver module, provides driving adaptive for accessing described electronic equipment for external equipment;
Second detection module, for according to described first parameter, judge whether described electronic equipment has the driving matched with described external equipment, prepackage in scan interface driver module drives carries out driving adaptation, and the external equipment inserting described interface is passed through interface driver model calling on described electronic equipment.
7. the electronic equipment according to claim 5 or 6, when described external equipment at least comprises two classes,
Described first judge module, be further used at least the first hardware identifier and/or the first software identification that scan external equipment, detect that inserted external equipment is the first external equipment or the second external equipment according at least the first hardware identifier and/or the first software identification.
8. electronic equipment according to claim 7, described match control module, when to be further used for described external equipment be the first external equipment, according to the mapping relations in described preset configuration, to control and interface current/voltage that the first external equipment mates the first corresponding current value exports; When described external equipment is the second external equipment, according to the mapping relations in described preset configuration, the interface current/voltage matches controlling the predetermined threshold value corresponding with the second external equipment exports; Described predetermined threshold value is greater than one load current value/magnitude of voltage.
CN201310463934.4A 2013-10-08 2013-10-08 Control method and electronic equipment Pending CN104519405A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310463934.4A CN104519405A (en) 2013-10-08 2013-10-08 Control method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310463934.4A CN104519405A (en) 2013-10-08 2013-10-08 Control method and electronic equipment

Publications (1)

Publication Number Publication Date
CN104519405A true CN104519405A (en) 2015-04-15

Family

ID=52794027

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310463934.4A Pending CN104519405A (en) 2013-10-08 2013-10-08 Control method and electronic equipment

Country Status (1)

Country Link
CN (1) CN104519405A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105100477A (en) * 2015-07-28 2015-11-25 努比亚技术有限公司 Terminal prompt device and method
CN105302750A (en) * 2015-09-30 2016-02-03 联想(北京)有限公司 Interface function configuration method and electronic equipment
CN105867570A (en) * 2016-03-24 2016-08-17 联想(北京)有限公司 An information processing method and an electronic apparatus
CN106055044A (en) * 2016-05-30 2016-10-26 维沃移动通信有限公司 Method for carrying out compatibility and identification on different models of sensors, and terminal
CN106201951A (en) * 2016-07-19 2016-12-07 青岛海信电器股份有限公司 Terminal unit based on USB Type C interface, external equipment and electric power system
WO2017004876A1 (en) * 2015-07-09 2017-01-12 中兴通讯股份有限公司 Method and terminal for configuring output current
CN107807536A (en) * 2017-11-06 2018-03-16 广西富迈科技有限公司 Intelligent control method, insert row terminal and storage medium
CN108509358A (en) * 2018-03-30 2018-09-07 联想(北京)有限公司 A kind of control method and interconnecting device
CN109032573A (en) * 2018-06-20 2018-12-18 深圳市编玩边学教育科技有限公司 A kind of hardware programming system and method
CN110247561A (en) * 2019-06-19 2019-09-17 日立楼宇技术(广州)有限公司 A kind of band-type brake power supply, locking system and elevator
CN110597146A (en) * 2019-10-08 2019-12-20 六安市三鑫电器设备有限公司 Integrated electric control cabinet and control method thereof
CN113467281A (en) * 2021-07-05 2021-10-01 上海航天计算机技术研究所 Sequence control device compatible with multiple types of controlled objects
CN114817337A (en) * 2022-06-23 2022-07-29 深圳市科中云技术有限公司 Hardware interface type self-adaptive matching method and related device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101957802A (en) * 2009-07-17 2011-01-26 鸿富锦精密工业(深圳)有限公司 USB device with driving program
CN102055034A (en) * 2009-10-29 2011-05-11 希姆通信息技术(上海)有限公司 Method for quickly charging mobile phone through USB interface of computer
CN102880238A (en) * 2012-08-30 2013-01-16 中兴通讯股份有限公司 Interface expanding method and device for tablet personal computer
CN103019355A (en) * 2011-12-07 2013-04-03 威盛电子股份有限公司 A charging device and a charging method thereof
CN103064489A (en) * 2011-10-21 2013-04-24 华为终端有限公司 Method for selecting internal circuit according to conditions of universal serial bus (USB) interface and terminal
CN203014439U (en) * 2012-12-21 2013-06-19 联芯科技有限公司 Automatic identification apparatus of charger
CN203027384U (en) * 2012-12-03 2013-06-26 深圳市睿碒科技有限公司 Power supply unit of android TV stick based on HDMI (High-Definition Multimedia Interface) interface
CN203151655U (en) * 2013-01-16 2013-08-21 四川维优科技有限责任公司 Projector capable of providing power for intelligent television stick through HDMI interface

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101957802A (en) * 2009-07-17 2011-01-26 鸿富锦精密工业(深圳)有限公司 USB device with driving program
CN102055034A (en) * 2009-10-29 2011-05-11 希姆通信息技术(上海)有限公司 Method for quickly charging mobile phone through USB interface of computer
CN103064489A (en) * 2011-10-21 2013-04-24 华为终端有限公司 Method for selecting internal circuit according to conditions of universal serial bus (USB) interface and terminal
CN103019355A (en) * 2011-12-07 2013-04-03 威盛电子股份有限公司 A charging device and a charging method thereof
CN102880238A (en) * 2012-08-30 2013-01-16 中兴通讯股份有限公司 Interface expanding method and device for tablet personal computer
CN203027384U (en) * 2012-12-03 2013-06-26 深圳市睿碒科技有限公司 Power supply unit of android TV stick based on HDMI (High-Definition Multimedia Interface) interface
CN203014439U (en) * 2012-12-21 2013-06-19 联芯科技有限公司 Automatic identification apparatus of charger
CN203151655U (en) * 2013-01-16 2013-08-21 四川维优科技有限责任公司 Projector capable of providing power for intelligent television stick through HDMI interface

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017004876A1 (en) * 2015-07-09 2017-01-12 中兴通讯股份有限公司 Method and terminal for configuring output current
CN105100477A (en) * 2015-07-28 2015-11-25 努比亚技术有限公司 Terminal prompt device and method
CN105100477B (en) * 2015-07-28 2019-03-01 努比亚技术有限公司 Terminal notifying device and method
CN110851387A (en) * 2015-09-30 2020-02-28 联想(北京)有限公司 Interface function configuration method and electronic equipment
CN105302750A (en) * 2015-09-30 2016-02-03 联想(北京)有限公司 Interface function configuration method and electronic equipment
CN105867570A (en) * 2016-03-24 2016-08-17 联想(北京)有限公司 An information processing method and an electronic apparatus
CN105867570B (en) * 2016-03-24 2020-08-25 联想(北京)有限公司 Information processing method and first electronic equipment
CN106055044B (en) * 2016-05-30 2019-06-07 维沃移动通信有限公司 A kind of method and terminal of compatible identification different model sensor
CN106055044A (en) * 2016-05-30 2016-10-26 维沃移动通信有限公司 Method for carrying out compatibility and identification on different models of sensors, and terminal
CN106201951B (en) * 2016-07-19 2019-03-19 青岛海信电器股份有限公司 Terminal device, external equipment and power supply system based on USB Type-C interface
CN109766298A (en) * 2016-07-19 2019-05-17 青岛海信电器股份有限公司 Terminal device, external equipment and power supply system based on USB Type-C interface
CN106201951A (en) * 2016-07-19 2016-12-07 青岛海信电器股份有限公司 Terminal unit based on USB Type C interface, external equipment and electric power system
CN109766298B (en) * 2016-07-19 2023-03-31 海信视像科技股份有限公司 Terminal equipment, external device and power supply system based on USB Type-C interface
CN107807536A (en) * 2017-11-06 2018-03-16 广西富迈科技有限公司 Intelligent control method, insert row terminal and storage medium
CN108509358B (en) * 2018-03-30 2021-10-22 联想(北京)有限公司 Control method and switching equipment
CN108509358A (en) * 2018-03-30 2018-09-07 联想(北京)有限公司 A kind of control method and interconnecting device
CN109032573A (en) * 2018-06-20 2018-12-18 深圳市编玩边学教育科技有限公司 A kind of hardware programming system and method
CN110247561A (en) * 2019-06-19 2019-09-17 日立楼宇技术(广州)有限公司 A kind of band-type brake power supply, locking system and elevator
CN110597146A (en) * 2019-10-08 2019-12-20 六安市三鑫电器设备有限公司 Integrated electric control cabinet and control method thereof
CN113467281A (en) * 2021-07-05 2021-10-01 上海航天计算机技术研究所 Sequence control device compatible with multiple types of controlled objects
CN114817337A (en) * 2022-06-23 2022-07-29 深圳市科中云技术有限公司 Hardware interface type self-adaptive matching method and related device

Similar Documents

Publication Publication Date Title
CN104519405A (en) Control method and electronic equipment
CN103744821B (en) Method and device for realizing USB OTG (Universal Serial Bus On-The-Go) function of mobile terminal
CN205544514U (en) Take DATA TRANSFER FUNCTIONS's integrated charger
CN111697663B (en) Charging circuit and charging cable
CN104578277B (en) For the method for charging for electronic equipment and electronic equipment
CN101783427B (en) Intelligent charging method and intelligent charging device of terminal
US20150234445A1 (en) Interface expending method and device for tablet computer
EP2546825A1 (en) Method, device and terminal for identifying lcd screen
CN110231861A (en) For providing the method and apparatus of power to electronic equipment
US20170194756A1 (en) Usb data cable containing extension interface and control method thereof
KR20130097198A (en) Charginig port
CN105119330A (en) Power adapter and power supply method
US20140084850A1 (en) Host apparatus, user terminal apparatus, method of controlling charger, and method of communication using the same
EP2619843B1 (en) Providing power to a component
CN104375618A (en) Power management method, power management device and electronic device
CN104467109A (en) Method for supplying power to electronic equipment and electronic equipment
US8234426B2 (en) Switching interface method for a multi-interface storage device
CN105677596A (en) Control method and electronic equipment
CN104485712A (en) Charging method and electronic equipment
CN108181978B (en) Power control method and device for electronic equipment
CN109144229A (en) A kind of power supply output management method, apparatus and electronic equipment
CN107153456A (en) OTG connections control method, OTG connection control devices and electronic equipment
US20180307195A1 (en) Method and device for implementing connection control
CN105357579A (en) Online upgrading method for set top box, related device and set top box
CN105786145A (en) Method for controlling electronic equipment and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150415