[go: up one dir, main page]

CN109144215A - A kind of control method and the first equipment - Google Patents

A kind of control method and the first equipment Download PDF

Info

Publication number
CN109144215A
CN109144215A CN201811157202.1A CN201811157202A CN109144215A CN 109144215 A CN109144215 A CN 109144215A CN 201811157202 A CN201811157202 A CN 201811157202A CN 109144215 A CN109144215 A CN 109144215A
Authority
CN
China
Prior art keywords
equipment
information
operation prompt
power
status information
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
CN201811157202.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 CN201811157202.1A priority Critical patent/CN109144215A/en
Publication of CN109144215A publication Critical patent/CN109144215A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/266Arrangements to supply power to external peripherals either directly from the computer or under computer control, e.g. supply of power through the communication port, computer controlled power-strips
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/34Parallel operation in networks using both storage and other DC sources, e.g. providing buffering
    • H02J7/342The other DC source being a battery actively interacting with the first one, i.e. battery to battery charging

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

This application discloses a kind of control method and the first equipment, this method is applied to the first equipment, this method comprises: after being electrically connected with the second equipment, the first state information of first equipment is at least obtained, wherein status information includes at least one of following: system status information, power source information or information about power;It is at least based on the first state information, generates operation prompt information, wherein the operation prompt information can be controlled the power transmission direction between first equipment and the second equipment by operation;Export the operation prompt information.The control method can export operation prompt information, allow the user to easily control power transmission according to the operation prompt information, improve the autonomy of user's control power transmission in the connection procedure of the first equipment and the second equipment.

Description

A kind of control method and the first equipment
Technical field
This application involves the Electric control field of electronic equipment, in particular to a kind of control method and the first equipment.
Background technique
The charging modes of electronic equipment are varied at present, such as charged using adapter to electronic equipment, or use shifting Dynamic power supply is to modes such as electronic equipment chargings, but current charging modes are not able to satisfy the flexible power requirement of user, and And electric power can not be effectively controlled in charging process, especially when the virtual condition of electronic equipment changes can not and When the charging modes are adjusted, usually will cause charging failure, to not be able to satisfy user's needs.
Summary of the invention
The embodiment of the present application is designed to provide a kind of control method and the first equipment.
Embodiments herein adopts the technical scheme that a kind of control method, is applied to the first equipment, comprising:
After being electrically connected with the second equipment, the first state information of first equipment is at least obtained, wherein status information packet It includes at least one of following: system status information, power source information or information about power;
It is at least based on the first state information, generates operation prompt information, wherein the operation prompt information can be grasped Make to control the power transmission direction between first equipment and the second equipment;
Export the operation prompt information.
Preferably, wherein, at least acquisition first state information includes:
Obtain the second status information of first state information and the second equipment;At least it is based on the first state packet It includes: based on the first state information and second status information.
Preferably, the method also includes:
Before generating operation prompt information, the electric power controlled between first equipment and the second equipment is passed with first direction It is defeated.
Preferably, the method also includes:
When power transmission direction is first direction, the feedback information for operating the operation prompt information is obtained;
If the feedback information shows to select power transmission direction for different second directions, switch first equipment Power transmission relationship in identity.
Preferably, the identity in the power transmission relationship of switching first equipment includes:
Identity conversion request is issued to second equipment;
It receives the identity conversion and requests corresponding confirmation message.
Preferably, after operating the operation prompt information, the method also includes:
Close the operation prompt information;
It is specified to detect user intervention, exports the operation prompt information again after detecting user intervention instruction.
Preferably, wherein, the first direction is determined according to transmission direction strategy and status information.
Preferably, the first direction determines to include following at least one according to transmission direction strategy and status information Kind:
The first direction is determined according to the power source information of the first equipment and the power source information of the second equipment;Or
The first direction is determined according to the system status information of the first equipment and the system status information of the second equipment;Or
The first direction is determined according to the information about power of the first equipment and the information about power of the second equipment.
The embodiment of the present application also provides a kind of first equipment, comprising:
Module is obtained, is configured to after being electrically connected with the second equipment, at least obtains the first state information of first equipment, Wherein status information includes at least one of following: system status information, power source information or information about power;
Control module is configured at least generate operation prompt information, wherein the behaviour based on the first state information Making prompt information can be by operation to control the power transmission direction between first equipment and the second equipment;
Output module is configured as output to the operation prompt information.
The embodiment of the present application provides a kind of first equipment again, comprising:
Processor and storage equipment, the storage equipment are stored with executable program, can hold described in the processor execution Line program is to carry out following steps:
After being electrically connected with the second equipment, the first state information of first equipment is at least obtained, wherein status information packet It includes at least one of following: system status information, power source information or information about power;
It is at least based on the first state information, generates operation prompt information, wherein the operation prompt information can be grasped Make to control the power transmission direction between first equipment and the second equipment;
Export the operation prompt information.
The beneficial effect of the embodiment of the present application is: the control method can be in the connection of the first equipment and the second equipment Cheng Zhong exports operation prompt information, allows the user to easily control power transmission according to the operation prompt information, Improve the autonomy of user's control power transmission.
Detailed description of the invention
Fig. 1 is the flow chart of the control method of the embodiment of the present application;
Fig. 2 is the flow chart of a specific embodiment of the control method of the embodiment of the present application;
Fig. 3 is the flow chart of another specific embodiment of the control method of the embodiment of the present application;
Fig. 4 is the stream for applying specific embodiment when on laptop of the control method of the embodiment of the present application Cheng Tu;
Fig. 5 is the connection relationship diagram of first equipment of the embodiment of the present application.
Specific embodiment
The various schemes and feature of the application are described herein with reference to attached drawing.
It should be understood that various modifications can be made to the embodiment applied herein.Therefore, description above should not regard To limit, and only as the example of embodiment.Those skilled in the art will expect in the scope and spirit of the present application Other modifications.
The attached drawing being included in the description and forms part of the description shows embodiments herein, and with it is upper What face provided is used to explain the application together to substantially description and the detailed description given below to embodiment of the application Principle.
By the description of the preferred form with reference to the accompanying drawings to the embodiment for being given as non-limiting example, the application's These and other characteristic will become apparent.
It is also understood that although the application is described referring to some specific examples, those skilled in the art Member realizes many other equivalents of the application in which can determine, they have feature as claimed in claim and therefore all In the protection scope defined by whereby.
When read in conjunction with the accompanying drawings, in view of following detailed description, above and other aspect, the feature and advantage of the application will become It is more readily apparent.
The specific embodiment of the application is described hereinafter with reference to attached drawing;It will be appreciated, however, that applied embodiment is only Various ways implementation can be used in the example of the application.Known and/or duplicate function and structure and be not described in detail to avoid Unnecessary or extra details makes the application smudgy.Therefore, applied specific structural and functionality is thin herein Section is not intended to restrictions, but as just the basis of claim and representative basis be used to instructing those skilled in the art with Substantially any appropriate detailed construction diversely uses the application.
This specification can be used phrase " in one embodiment ", " in another embodiment ", " in another embodiment In " or " in other embodiments ", it can be referred to one or more of the identical or different embodiment according to the application.
Fig. 1 is the flow chart of the control method of the embodiment of the present application, as shown in Figure 1, a kind of control of the embodiment of the present application Method is applied to the first equipment, and the first equipment can be the electronic equipments such as laptop, corresponding with the first equipment to have the Two equipment, the second equipment may be the electronic equipments such as laptop, the control method the following steps are included:
S1 after being electrically connected with the second equipment, at least obtains the first state information of the first equipment, and wherein status information includes It is at least one of following: system status information, power source information or information about power.
First equipment be electrically connected with the second equipment after the first stage, electric power can between the first equipment and the second equipment at this time Power transmission can also not occur with generation transmission, and if energy foundation transmission direction strategy determining biography when power transmission occurs Defeated direction then carries out power transmission according to the transmission direction determined, but if not can determine that or transmission direction strategy definitive result Be exactly it is directionless, then the directionless state of electric power is kept, so that power transmission does not occur between the first equipment and the second equipment.
The operation opportunity for obtaining status information, which can be, to be carried out to obtain after first direction has been determined in advance, such as first Row obtains status information and determines first direction according to transmission direction strategy again, or obtains state again after first direction has been determined Information, it is not limited here.
Wherein status information includes at least the first state information of the first equipment, and first state information can show that first sets Standby power information at least obtains first state information in this implementation, and status information as described above includes at least one in following Kind: system status information, power source information or information about power.Wherein system status information is shape locating for the whole system of equipment The information of state, such as in running order, dormant state, suspended state or off-mode etc. (the S0 state of such as equipment, S3 state, S4 state or S5 state etc.);Power source information shows the electric power source in equipment, and battery power supply in this way or external power supply The information such as electricity;Information about power may indicate that equipment reserve power situation itself, such as the residual power percentage or residue of battery The information such as absolute total electricity.
S2, at least be based on first state information, generate operation prompt information, wherein operation prompt information can be operated from And control the power transmission direction between the first equipment and the second equipment.Operation prompt information is used to user to prompt and receive User's operation such as can transmit electric power to the second equipment to the first equipment of control by operation, or the second equipment of control is to the One equipment is transmitted and does not mutually transmit electric power to other side between electric power, or the first equipment of control and the second equipment.Operation indicating First state information of the information at least based on the first equipment generates, that is to say, can be according at least to the system shape of the first equipment itself State information, power source information or information about power generate, this allows the first equipment with the second equipment and without preparatory Information gap defaecation can generate operation prompt information, such as different brands, or not can communications applications laptop it Between when being electrically connected, can only pass through the wherein status information of a laptop and produce operation prompt information.
S3 exports operation prompt information.The operation prompt information of output can such as pass through pop-up to user to prompt The form of dialog box shows that user realizes by operating the button operation in the operation prompt information, such as click dialog box Power transmission is controlled, including the power transmission direction between the first equipment of control and the second equipment, so that electric power is by the first equipment It is transferred to the second equipment, the second equipment is perhaps controlled and is transferred to the control modes such as the first equipment or control disconnection electrical connection.It should It also may include the current electric power relevant information of the first equipment and/or the second equipment in the operation prompt information of output to be to use Family provides advisory opinion, and certain user can also be selected accordingly according to actual needs.
The control method can export operation prompt information in the connection procedure of the first equipment and the second equipment, so that User easily can control power transmission according to the operation prompt information, such as the operation prompt information can pass through The form of dialog box occurs, and user, which operates the dialog box, just can be realized control, to improve user's control electric power The autonomy of transmission.
In one embodiment of the application, the step of described at least acquisition first state information includes: acquisition first Second status information of status information and the second equipment;At least based on first state information include: based on first state information and Second status information.Specifically, first state information includes at least one of the following message of the first equipment: the first system Status information, the first power source information and the first information about power;Second status information includes in the following message of the second equipment At least one: second system status information, the second power source information and the second information about power.Obtain first state information and Second status information of the second equipment can generate operation prompt information according to the two specifying information.For example, When the first laptop is electrically connected with the second laptop, itself available first state of the first laptop Information, and obtain the second status information of the second laptop.So as to (as described above based on first state information simultaneously Specifying information) and the second status information (specifying information as described above), operation prompt information is generated, and pass through the first notebook electricity The display screen of brain exports, so that user operates on it.
This carries out the first equipment only (such as between the laptop of different brands according to first state information Charge control) operation prompt information is generated, it can also according to first state information and the second status information (such as in same brand Or with charge control can be carried out between the laptop of communications applications) generate operation prompt information.
In one embodiment of the application, the control method further include: before generating operation prompt information, control first Electric power between equipment and the second equipment is transmitted with first direction.The first direction of electric power is to indicate that electric power is transmitted from an equipment Make flow of electrical power that there is directionality to another equipment.Before generating operation prompt information, when the first equipment and second are set When standby initial electrical connection, just controls electric power and transmitted with first direction, it can be according to preset transmission direction strategy in the present embodiment Come the power transmission direction selected, which includes: can be according to last electricity before generating operation prompt information Selected power transmission direction is come in direction when power is transmitted, the power direction etc. that can also be selected at random, furthermore the first direction It can be modified.
Above-described embodiment is recombined below and is illustrated in conjunction with Fig. 4, the first laptop and the second notebook electricity Brain electrical connection can control electric power by the first notebook computer transmission to the second notebook before generating operation prompt information Computer, so that the first laptop is charging person, the second laptop is the person of being electrically charged.For in conjunction with specific embodiments, First laptop can be connect with the second laptop by the external interface on laptop, such as the first notebook electricity Brain is connected with each other by respective Type-C interface with the second laptop.It is taken down notes in the first laptop and second After the connection of this computer, the control interface chip of the first laptop can be sent out to the embedded controller of the first laptop Interrupt requests out, embedded controller issue control command to control interface chip to require read status information, control interface The first laptop is sent to embedded controller (sending status information), insertion by chip Operation prompt information can be passed through operating system after basic input output system and driver transmitting by formula controller Output.
In one embodiment of the application, as shown in Fig. 2, the control method is further comprising the steps of:
S4 when power transmission direction is first direction, obtains the feedback information for operating the operation prompt information.Namely The user's operation operation generates feedback information after proposing information, which can show that the control of user is intended to, if should Feedback information shows that user still will carry out power transmission with first direction, then can not be modified to power transmission direction, It recombines above-described embodiment and is illustrated in conjunction with Fig. 4, the first laptop is electrically connected with the second laptop, control Electric power gives the second laptop, the as first direction by the first notebook computer transmission, in the first laptop Operating system on output operation prompt information after, user operates the operation prompt information, and thus to obtain feedback Information, the feedback information is again via being sent to the embedded of the first laptop after driver and basic input output system Controller analyzes the feedback information by embedded controller.
S5 switches the electricity of the first equipment if feedback information shows to select power transmission direction for different second directions Identity in power transmission relationship.Specifically, second direction is different from first direction, is if first direction shows the first equipment Charging equipment, then when feedback information shows that user has selected second direction as power transmission direction, then the first equipment is just no longer For charging equipment, in the present embodiment, switch the identity in the power transmission relationship of the first equipment, such as by charging equipment be converted by Charging equipment, or autonomous device is switched to from charging equipment and (does not also receive other equipment to other equipment charging to fill for it Electricity), at this time if the first equipment is disconnected the connection with the second equipment, data transmission fault will not occur, else if the One equipment also exists with the identity of charging equipment, and the second equipment is still to be electrically charged equipment identities presence, if disconnected at this time, It will cause the data transmission faults between the first equipment and the second equipment.In conjunction with above-mentioned specific embodiment and combine Fig. 4 into Row explanation, the embedded controller of the first equipment receive include convert identity feedback information after, the control to the first equipment Interface chip processed issues the order of conversion identity, and control interface chip is requested after receiving the order to the sending conversion of the second equipment, The control interface chip of the first equipment feeds back the situation to embedded controller after being received, if identity information is via filling In order to be electrically charged identity, embedded controller can be again by the information via basic input output system and driving for electric identity conversion It after program transmitting, is exported by operating system, to inform that user completes identity switching.If feedback information shows that user wants with disconnected The connection of the first equipment Yu the second equipment is opened, then embedded controller can send to control interface chip and disconnect order, control Interface chip processed can disconnect information to embedded controller feedback after disconnecting and show to have had been switched off supplying channels.
In one embodiment of the application, as shown in figure 5, after operating the operation prompt information, the control method It is further comprising the steps of: S6, shutoff operation prompt information;S7, detection user intervention is specified, after detecting user intervention instruction Again operation prompt information is exported.User, in order to not influence subsequent operation, can close after operating the operation prompt information Operation prompt information when such as showing in the form of dialog box when operation prompt information, can directly close the dialog box, so that should Dialog box is no longer shown.When user according to actual needs, it is desirable to when changing power transmission direction, can be issued to the first equipment dry Pre- instruction, the first equipment can detecte user intervention instruction at this time, and output operation mentions again after detecting user intervention instruction Show information, such as show dialog box again, changes power transmission direction so that user charges.
In one embodiment of the application, first direction is determined according to transmission direction strategy and status information.Transmission side It can be actually needed and be preset according to user to strategy, such as can be according to the actual hardware feelings of the first equipment and the second equipment Condition is preset using the situation of change in the first equipment and the second device procedures.Above-mentioned status information is at least wrapped The first state information of the first equipment and the second status information of the second equipment, that is, the needs when determining first direction are included According to transmission direction strategy, and at least first state information and the second status information, this shows in the present embodiment, can basis The real data relevant to electric power of first equipment and the second equipment determines who is which equipment can be used as charging person, which Equipment can be used as the person of being electrically charged, and use control flow of electrical power scientific and reasonable while needs to meet user.
In one embodiment of the application, first direction determines to include following according to transmission direction strategy and status information At least one: power source information and the power source information of the second equipment according to the first equipment determine the first party To;Or the first direction is determined according to the system status information of the first equipment and the system status information of the second equipment;Or according to The first direction is determined according to the information about power of the first equipment and the information about power of the second equipment.
Specifically, the power source information representation of the first equipment electric power source of the first equipment, such as the first equipment are It is no external power supply to be connected with by adapter or whether electric power is derived from the information such as self-contained battery;Equally, the second equipment The power source information representation electric power source of the second equipment, whether such as the second equipment, which passes through adapter, is connected with external electrical Whether source or electric power are derived from the information such as self-contained battery.If it find that the first equipment is connected with external power supply then basis It is to be charged that transmission direction strategy can determine that the first equipment is not required to, and can fill to the second equipment charge or not to any equipment Electricity;If it is determined that the first equipment is not connected with external power supply but is powered using cells, while determining that the second equipment connects Be connected to external power supply, then the person of being electrically charged can be converted by charging person by the identity information of the first equipment, determine first direction by Second equipment is directed toward the first equipment charge.
The system status information of first equipment is the operating status of the first equipment, such as in running order (the S0 of the first equipment State), or it is in off working state (such as S3 state, S4 state or S5 state etc.);The system status information of second equipment is The operating status of second equipment, such as the second equipment is in running order (S0 state), or is in off working state (such as S3 shape State, S4 state or S5 state etc.).For example, if judge that the first equipment is in running order, and the second equipment is in inoperative shape At this moment state can be set no longer to the second equipment charge from the second equipment to first according to the first equipment of transmission direction strategy It is to be directed toward the first equipment by the second equipment that available electricity, i.e. first direction, which are directed toward the second equipment variations by the first equipment,.If it is determined that First equipment and the second equipment are in working condition or are in off working state, then can be according to according to transmission direction strategy It is further carried out and is judged to determine first direction according to other status informations.
The information about power of first equipment can be the information about power of the first battery of the first equipment, such as the residue of the first battery The percentage information etc. of the remaining capacity of electricity actual value or the first battery;Equally, the information about power of the second equipment can be The residue electricity of the information about power of second battery of the second equipment, such as the remaining capacity actual value of the second battery or the second battery The percentage information etc. of amount.According to transmission side if if the electricity of the first battery when initial, larger and the second battery electricity is smaller Determine that first direction is that the first equipment is directed toward the second equipment to strategy, i.e., from the first equipment to the second equipment charge.Certainly this One direction can be changed according to different situations, such as judge the electricity of the first battery less than preset value (the 30% of such as total electricity) and When the electricity of second battery is greater than preset value, then it can be redefined according to transmission direction strategy and be set by the second equipment direction first Standby power transmission direction is first direction.
In addition, in one embodiment, priority can be arranged to different status informations, as by power source information It is set as high, sets system status information to, set low for information about power.Analyzing the first equipment and the second equipment When status information, the power source information of highest priority can be analyzed at first, for example, if judging that the first laptop connects It is connected to external power supply, then does not have to analyze other status informations again just using the first laptop as power supply unit.If first Laptop and the second laptop are respectively connected with external power supply, then are made both according to transmission direction strategy not to right Side's power supply, then the system status information in analysis priority is, such as can be in non-work according to transmission direction policy control The second laptop for making state is powered to the first in running order laptop, that is, determines that first direction is second Equipment is directed toward first and is set.It can be with if when the first laptop and the second laptop are in identical system mode The information about power of the two is analyzed again, such as determined, first direction is to be directed toward the small side of electricity by the big side of electricity.Certainly on The setting for stating priority can be carried out according to actual use situation, can also be changed according to actual use situation.
The embodiment of the present application also provides a kind of first equipment, as shown in Figure 5, comprising:
Module is obtained, is configured to after being electrically connected with the second equipment, at least obtains the first state information of the first equipment, wherein Status information includes at least one of following: system status information, power source information or information about power.
First equipment be electrically connected with the second equipment after the first stage, electric power can between the first equipment and the second equipment at this time Power transmission can also not occur with generation transmission, and if energy foundation transmission direction strategy determining biography when power transmission occurs Defeated direction then carries out power transmission according to the transmission direction determined, but not can determine that or transmission direction strategy definitive result is exactly It is directionless, then the directionless state of electric power is kept, so that power transmission does not occur between the first equipment and the second equipment.Obtain mould The operation opportunity that block obtains status information, which can be, to be carried out to obtain after first direction has been determined in advance, is such as obtained in advance Status information determines first direction according to transmission direction strategy again, or obtains status information again after first direction has been determined, It is not limited here.Wherein status information includes at least the first state information of the first equipment, and first state information can show that The power information of first equipment obtains module in this implementation and at least obtains first state information, and status information as described above includes It is at least one of following: system status information, power source information or information about power.Wherein system status information is equipment The information of whole system status, such as in running order, dormant state, suspended state or off-mode etc. are (such as equipment S0 state, S3 state, S4 state or S5 state etc.);Power source information shows the electric power source in equipment, battery power supply in this way Or the information such as external power power supply;Information about power may indicate that equipment reserve power situation itself, such as the remaining capacity of battery Percentage or remaining absolutely total electricity etc. information.
Control module is configured at least generate operation prompt information based on first state information, wherein operation indicating letter Breath can be by operation to the power transmission direction between the first equipment of control and the second equipment.Operation prompt information is used to user To prompt and receive user's operation, such as electric power, or control can be transmitted to the second equipment to the first equipment of control by operation Second equipment is transmitted to the first equipment and does not mutually transmit electricity to other side between electric power, or the first equipment of control and the second equipment Power.First state information of the operation prompt information at least based on the first equipment generates, that is to say, can be according at least to the first equipment Itself system status information, power source information or information about power generates, this makes the first equipment and the second equipment can be with And without preparatory information gap defaecation operation prompt information, such as different brands can be generated, or can communications applications When being electrically connected between laptop, it can only pass through the wherein status information of a laptop and produce operation Prompt information.
Output module is configured as output to operation prompt information.The operation prompt information of output module output can give user It with prompt, can such as be shown by way of popping up dialog box, user such as clicks dialog box by operating the operation prompt information In the operations such as button realize control power transmission, including the power transmission side between the first equipment of control and the second equipment To so that electric power is transferred to the second equipment by the first equipment, perhaps the second equipment of control is transferred to the first equipment or control is disconnected Open the control modes such as electrical connection.It also may include working as the first equipment and/or the second equipment in the operation prompt information of the output To provide advisory opinion for user, certain user can also carry out accordingly preceding electric power relevant information according to actual needs Selection.
First equipment can export operation prompt information, allow a user in its connection procedure with the second equipment It is enough that easily power transmission is controlled according to the operation prompt information, such as the operation prompt information can pass through dialog box Form occur, user, which operates the dialog box, just can be realized control, to improve user's control power transmission Autonomy.
In one embodiment of the application, the acquisition module is further configured to: obtaining first state information and the Second status information of two equipment;Control module is further configured to: being based on first state information and the second status information, is generated Operation prompt information.Specifically, first state information includes at least one of the following message of the first equipment: the first system Status information, the first power source information and the first information about power;Second status information includes in the following message of the second equipment At least one: second system status information, the second power source information and the second information about power.It obtains module and obtains the first shape Second status information of state information and the second equipment enables control module to generate behaviour according to the two specifying information Make prompt information.For example, when the first laptop is electrically connected with the second laptop, the first notebook computer expert It crosses and obtains itself available first state information of module, and obtain the second status information of the second laptop.To It can be based on first state information (specifying information as described above) and the second status information (specifying information as described above) simultaneously, it is raw It is exported at operation prompt information, and by the display screen of the first laptop, so that user operates on it.So that First equipment can be only according to first state information (such as carrying out charge control between the laptop of different brands) next life At operation prompt information, (such as in same brand or can also have and can communicate according to first state information and the second status information Carry out charge control between the laptop of application) generate operation prompt information.In one embodiment of the application, control Molding block is further configured to: before generating operation prompt information, controlling the electric power between the first equipment and the second equipment with the The transmission of one direction.The first direction of electric power is to indicate that electric power is transferred to another equipment from an equipment and flow of electrical power is had Directionality.Before generating operation prompt information, when the first equipment and the second equipment are initially electrically connected, control module is just controlled Electric power is transmitted with first direction, can come selected power transmission direction in the present embodiment according to preset transmission direction strategy, Direction when the transmission direction strategy can be according to last power transmission before including: generation operation prompt information is come selected Power transmission direction, the power direction etc. that can also be selected at random, furthermore the first direction can be modified.It recombines below Above-described embodiment is simultaneously illustrated in conjunction with Fig. 4, and the first laptop is electrically connected with the second laptop, is mentioned generating operation Before showing information, control module can control electric power by the first notebook computer transmission to the second laptop, so that first Laptop is charging person, and the second laptop is the person of being electrically charged.For in conjunction with specific embodiments, the first laptop It can be connect by the external interface on laptop with the second laptop, such as the first laptop and the second notebook Computer is connected with each other by respective Type-C interface.After the first laptop is connect with the second laptop, The control interface chip controls interface chip of first laptop can be sent out to the embedded controller of the first laptop It interrupts out, embedded controller issues control command to control interface chip to require read status information, control interface chip It is sent to embedded controller using the first laptop as the relevant information of charging person, embedded controller can will operate Prompt information exports operation prompt information by operating system after basic input output system and driver.
In one embodiment of the application, the first equipment further includes switching module;
It obtains module to be further configured to: when power transmission direction is first direction, obtaining and operate the operation indicating letter The feedback information of breath.Namely the user's operation operation generates feedback information after proposing information, which can show that use The control at family is intended to, can not be to electricity if the feedback information shows that user still will carry out power transmission with first direction Power transmission direction is modified, and is recombined above-described embodiment and is illustrated in conjunction with Fig. 4, the first laptop and second Remember that this computer is electrically connected, control electric power gives the second laptop, the as first party by the first notebook computer transmission To after outputing operation prompt information in the operating system of the first laptop, user carries out the operation prompt information Operation, obtains module thus to obtain feedback information, and the feedback information after driver and basic input output system again via sending out It send to the embedded controller of the first laptop, the feedback information is analyzed by embedded controller.
Switching module is configured that if feedback information shows to select power transmission direction for different second directions, switching Identity in the power transmission relationship of first equipment.Specifically, second direction is different from first direction, if first direction table Bright first equipment is charging equipment, then when feedback information shows that user has selected second direction as power transmission direction, then the One equipment is just no longer charging equipment, and in the present embodiment, switching module switches the identity in the power transmission relationship of the first equipment, It is such as converted by charging equipment and is electrically charged equipment, or autonomous device is switched to from charging equipment and (is not charged also not to other equipment Receive other equipment to charge for it), at this time if the first equipment is disconnected the connection with the second equipment, data biography will not occur Input mistake by mistake, else if the first equipment also exists with the identity of charging equipment, the second equipment still exists to be electrically charged equipment identities, If disconnected at this time, it will cause the data transmission faults between the first equipment and the second equipment.In conjunction with above-mentioned specific Embodiment is simultaneously illustrated in conjunction with Fig. 4, and switching module switches the electric power of the first equipment by the embedded controller of the first equipment Identity in transmission relationship, specifically, it includes the feedback letter for converting identity that the embedded controller of the first equipment, which receives, It after breath, issues and orders to the control interface chip of the first equipment, control interface chip, which combines, to be searched out after the order to the second equipment Request is issued, the control interface chip of the first equipment feeds back the situation to embedded controller after being received, as identity is believed For breath via charging identity conversion in order to be electrically charged identity, embedded controller can be again by the information via basic input and output It after system and driver, is exported by operating system, to inform that user completes identity switching.If feedback information shows user Want the connection with disconnection the first equipment and the second equipment, then embedded controller can send to control interface chip and disconnect life It enables, control interface chip can disconnect information to embedded controller feedback and show that having had been switched off power supply leads to after disconnecting Road.
In one embodiment of the application, control module is further configured to: after operating the operation prompt information, Shutoff operation prompt information, detection user intervention is specified, exports operation prompt information again after detecting user intervention instruction. User is after operating the operation prompt information, in order to not influence subsequent operation, control module can with shutoff operation prompt information, When such as showing in the form of dialog box when operation prompt information, the dialog box can be directly closed, so that the dialog box is no longer aobvious Show.When user according to actual needs, it is desirable to when changing power transmission direction, can to the first equipment issue intervention instruction, at this time First equipment can detecte user intervention instruction by control module, and output operation mentions again after detecting user intervention instruction Show information, such as show dialog box again, changes power transmission direction so that user charges.
In one embodiment of the application, first terminal further includes judgment module, and judgment module is configured to according to transmission Direction strategy and status information determine first direction.Transmission direction strategy can be actually needed according to user and preset, such as It can be according to the actual hardware situation of the first equipment and the second equipment or in using the first equipment and the second device procedures Situation of change is preset.Above-mentioned status information has included at least the first state information and second equipment of the first equipment Second status information, that is, need when determining first direction according to transmission direction strategy, and at least first state information With the second status information, this shows in the present embodiment, can be according to the reality relevant to electric power of the first equipment and the second equipment Data determine who is which equipment can be used as charging person, which equipment can be used as the person of being electrically charged, and make to meet user With control flow of electrical power scientific and reasonable while needs.
In one embodiment of the application, judgment module is further configured to: the power source according to the first equipment is believed The power source information of breath and the second equipment determines the first direction;Or the system status information and second according to the first equipment The system status information of equipment determines the first direction;Or according to the information about power of the first equipment and the electricity letter of the second equipment Breath determines the first direction.
The embodiment of the present application also provides a kind of first equipment, including processor and storage equipment, storage equipment to be stored with Executable program, processor execute executable program to carry out following steps, as shown in Figure 1:
S1 after being electrically connected with the second equipment, at least obtains the first state information of the first equipment, and wherein status information includes It is at least one of following: system status information, power source information or information about power.
First equipment be electrically connected with the second equipment after the first stage, electric power can between the first equipment and the second equipment at this time Power transmission can also not occur with generation transmission, and if energy foundation transmission direction strategy determining biography when power transmission occurs Defeated direction then carries out power transmission according to the transmission direction determined, but if not can determine that or transmission direction strategy definitive result Be exactly it is directionless, then the directionless state of electric power is kept, so that power transmission does not occur between the first equipment and the second equipment.It obtains It takes the operation opportunity of status information can be to carry out to obtain after first direction has been determined in advance, such as obtains state in advance Information determines first direction according to transmission direction strategy again, or obtains status information again after first direction has been determined, herein Without limitation.Wherein status information includes at least the first state information of the first equipment, and first state information can show that first The power information of equipment, at least obtains first state information in this implementation, status information as described above include in following at least It is a kind of: system status information, power source information or information about power.Wherein system status information is locating for the whole system of equipment The information of state, such as in running order, dormant state, (the S0 state of such as equipment, the S3 shape such as suspended state or off-mode State, S4 state or S5 state etc.);Power source information shows the electric power source in equipment, battery power supply in this way or external electrical The information such as power power supply;Information about power may indicate that equipment reserve power situation itself, as battery residual power percentage or Remaining absolutely total electricity etc. information.
S2, at least be based on first state information, generate operation prompt information, wherein operation prompt information can be operated from And control the power transmission direction between the first equipment and the second equipment.Operation prompt information is used to user to prompt and receive User's operation such as can transmit electric power to the second equipment to the first equipment of control by operation, or the second equipment of control is to the One equipment is transmitted and does not mutually transmit electric power to other side between electric power, or the first equipment of control and the second equipment.Operation indicating First state information of the information at least based on the first equipment generates, that is to say, can be according at least to the system shape of the first equipment itself State information, power source information or information about power generate, this allows the first equipment with the second equipment and without preparatory Information gap defaecation can generate operation prompt information, such as different brands, or not can communications applications laptop it Between when being electrically connected, can only pass through the wherein status information of a laptop and produce operation prompt information.
S3 exports operation prompt information.The operation prompt information of output can such as pass through pop-up to user to prompt The form of dialog box shows that user realizes by operating the button operation in the operation prompt information, such as click dialog box Power transmission is controlled, including the power transmission direction between the first equipment of control and the second equipment, so that electric power is by the first equipment It is transferred to the second equipment, the second equipment is perhaps controlled and is transferred to the control modes such as the first equipment or control disconnection electrical connection.It should It also may include the current electric power relevant information of the first equipment and/or the second equipment in the operation prompt information of output to be to use Family provides advisory opinion, and certain user can also be selected accordingly according to actual needs.
First equipment can export operation prompt information, allow a user in its connection procedure with the second equipment It is enough that easily power transmission is controlled according to the operation prompt information, such as the operation prompt information can pass through dialog box Form occur, user, which operates the dialog box, just can be realized control, to improve user's control power transmission Autonomy.
Above embodiments are only the exemplary embodiment of the application, are not used in limitation the application, the protection scope of the application It is defined by the claims.Those skilled in the art can make respectively the application in the essence and protection scope of the application Kind modification or equivalent replacement, this modification or equivalent replacement also should be regarded as falling within the scope of protection of this application.

Claims (10)

1. a kind of control method is applied to the first equipment, comprising:
After being electrically connected with the second equipment, the first state information of first equipment is at least obtained, under wherein status information includes At least one of column: system status information, power source information or information about power;
At least be based on the first state information, generate operation prompt information, wherein the operation prompt information can be operated from And control the power transmission direction between first equipment and the second equipment;
Export the operation prompt information.
2. according to the method described in claim 1, wherein, at least acquisition first state information includes:
Obtain the second status information of first state information and the second equipment;It include: at least base based on the first state information In the first state information and second status information.
3. according to the method described in claim 1, the method also includes:
Before generating operation prompt information, the electric power controlled between first equipment and the second equipment is transmitted with first direction.
4. according to right to play 3 described in method, the method also includes:
When power transmission direction is first direction, the feedback information for operating the operation prompt information is obtained;
If the feedback information shows to select power transmission direction for different second directions, switch the electricity of first equipment Identity in power transmission relationship.
5. according to the method described in claim 4, the identity packet in the power transmission relationship of switching first equipment It includes:
Identity conversion request is issued to second equipment;
It receives the identity conversion and requests corresponding confirmation message.
6. according to the method described in claim 4, after operating the operation prompt information, the method also includes:
Close the operation prompt information;
It is specified to detect user intervention, exports the operation prompt information again after detecting user intervention instruction.
7. according to right to play 3 described in method, wherein the first direction is true according to transmission direction strategy and status information It is fixed.
8. according to the method described in claim 7, the first direction includes according to transmission direction strategy and status information determination Following at least one:
The first direction is determined according to the power source information of the first equipment and the power source information of the second equipment;Or
The first direction is determined according to the system status information of the first equipment and the system status information of the second equipment;Or
The first direction is determined according to the information about power of the first equipment and the information about power of the second equipment.
9. a kind of first equipment, comprising:
Module is obtained, is configured to after first equipment is electrically connected with the second equipment, the of first equipment is at least obtained One status information, wherein status information includes at least one of following: system status information, power source information or electricity letter Breath;
Control module is configured at least generate operation prompt information, wherein the operation mentions based on the first state information Show that information can be controlled the power transmission direction between first equipment and the second equipment by operation;
Output module is configured as output to the operation prompt information.
10. a kind of first equipment, comprising:
Processor and storage equipment, the storage equipment are stored with executable program, and the processor executes the executable journey Sequence is to carry out following steps:
After being electrically connected with the second equipment, the first state information of first equipment is at least obtained, under wherein status information includes At least one of column: system status information, power source information or information about power;
At least be based on the first state information, generate operation prompt information, wherein the operation prompt information can be operated from And control the power transmission direction between first equipment and the second equipment;
Export the operation prompt information.
CN201811157202.1A 2018-09-30 2018-09-30 A kind of control method and the first equipment Pending CN109144215A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811157202.1A CN109144215A (en) 2018-09-30 2018-09-30 A kind of control method and the first equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811157202.1A CN109144215A (en) 2018-09-30 2018-09-30 A kind of control method and the first equipment

Publications (1)

Publication Number Publication Date
CN109144215A true CN109144215A (en) 2019-01-04

Family

ID=64814134

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811157202.1A Pending CN109144215A (en) 2018-09-30 2018-09-30 A kind of control method and the first equipment

Country Status (1)

Country Link
CN (1) CN109144215A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070236975A1 (en) * 2006-04-07 2007-10-11 Nokia Corporation Method and apparatus for balancing energy between portable devices
CN103246335A (en) * 2012-02-13 2013-08-14 联想(北京)有限公司 State control method and electronic equipment
CN103682491A (en) * 2012-09-13 2014-03-26 华平信息技术股份有限公司 Charging method between electronic devices, charging circuits and electronic devices
CN106774764A (en) * 2016-12-05 2017-05-31 青岛海信移动通信技术股份有限公司 The implementation method and USB power source of multiple feed USB interface
CN107147185A (en) * 2017-06-23 2017-09-08 联想(北京)有限公司 Charge control method and device between a kind of smart machine
CN107579885A (en) * 2017-08-31 2018-01-12 广东美的制冷设备有限公司 Information interacting method, device and computer-readable recording medium
US20180136705A1 (en) * 2014-05-19 2018-05-17 Microsoft Technology Licensing, Llc Power Management Contracts for Accessory Devices

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070236975A1 (en) * 2006-04-07 2007-10-11 Nokia Corporation Method and apparatus for balancing energy between portable devices
CN103246335A (en) * 2012-02-13 2013-08-14 联想(北京)有限公司 State control method and electronic equipment
CN103682491A (en) * 2012-09-13 2014-03-26 华平信息技术股份有限公司 Charging method between electronic devices, charging circuits and electronic devices
US20180136705A1 (en) * 2014-05-19 2018-05-17 Microsoft Technology Licensing, Llc Power Management Contracts for Accessory Devices
CN106774764A (en) * 2016-12-05 2017-05-31 青岛海信移动通信技术股份有限公司 The implementation method and USB power source of multiple feed USB interface
CN107147185A (en) * 2017-06-23 2017-09-08 联想(北京)有限公司 Charge control method and device between a kind of smart machine
CN107579885A (en) * 2017-08-31 2018-01-12 广东美的制冷设备有限公司 Information interacting method, device and computer-readable recording medium

Similar Documents

Publication Publication Date Title
US7863855B2 (en) Electronic equipment and power management method for the electronic equipment, and power source unit
KR101719262B1 (en) Charger, charging terminal, charging system, charging control method, program and storage medium
US20120139480A1 (en) Charger and charging system
CN106464163B (en) System for implementing modular mobile electronic devices
CN103501026A (en) Lithium battery management system based on Labview
JP2006180384A (en) Communication unit and its communication method
CN107465227A (en) A kind of electronic equipment and its control method
JP3796419B2 (en) Terminal device
JP2022103582A (en) A power converter and a power transmission system equipped with it
JP2016218972A (en) USB hub device
US7166989B2 (en) Power supply system for supplying power to an electronic apparatus
JP2013175165A (en) Electronic apparatus
CN111757155A (en) Display device and screen projection system
CN109861038B (en) USB connection port capable of automatically switching connection mode and control method thereof
JP2000020175A (en) Electronic appliance
CN101187828A (en) Current control in rechargeable electronic devices
CN102768570B (en) A kind of electronic equipment
CN109144215A (en) A kind of control method and the first equipment
CN114744693A (en) Charging method and electronic equipment
JPH11150876A (en) Power supply method and device for personal computer
JP2020028178A (en) Electronic apparatus and power supply control method
CN106292973B (en) information processing method, electronic equipment system and transmission line
CN117507925A (en) Charging method and device of chargeable equipment and charging pile system
JP4737096B2 (en) Information processing system
CN105912084A (en) Information processing method and electronic equipment

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