CN110262992B - Control device - Google Patents

Control device Download PDF

Info

Publication number
CN110262992B
CN110262992B CN201910549922.0A CN201910549922A CN110262992B CN 110262992 B CN110262992 B CN 110262992B CN 201910549922 A CN201910549922 A CN 201910549922A CN 110262992 B CN110262992 B CN 110262992B
Authority
CN
China
Prior art keywords
mosfet
interface
power supply
electronic device
controller
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.)
Active
Application number
CN201910549922.0A
Other languages
Chinese (zh)
Other versions
CN110262992A (en
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.)
Wuxi Ruiqin Technology Co Ltd
Original Assignee
Wuxi Ruiqin Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuxi Ruiqin Technology Co Ltd filed Critical Wuxi Ruiqin Technology Co Ltd
Priority to CN201910549922.0A priority Critical patent/CN110262992B/en
Publication of CN110262992A publication Critical patent/CN110262992A/en
Application granted granted Critical
Publication of CN110262992B publication Critical patent/CN110262992B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/4004Coupling between buses
    • G06F13/4022Coupling between buses using switching circuits, e.g. switching matrix, connection or expansion network
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Power Sources (AREA)

Abstract

The embodiment of the invention discloses a control device, which comprises a controller, wherein the controller is provided with a first interface and a second interface, the first interface is connected with an external interface of electronic equipment, and the second interface is connected with a first power supply; when the electronic equipment is in a transportation mode, if the controller detects that the external interface is connected to the external equipment through the first interface, the controller controls the first power supply to be in a working state through the second interface, so that the electronic equipment is in a user mode. In the embodiment of the invention, if the control device detects that the external equipment is connected with the external interface of the electronic equipment, the transportation mode of the electronic equipment can be released, and an external power supply is not required to be used for charging the electronic equipment, so that the operation is simple and the implementation is convenient; moreover, since the electronic device usually carries an external device, such as a mouse, when leaving the factory, the user can conveniently use the external device to control the electronic device to normally start up, so that the user experience is better.

Description

Control device
Technical Field
The invention relates to the technical field of electronics, in particular to a control device.
Background
With the development of science and technology, electronic devices are applied more and more widely, and accordingly, the functions of the electronic devices are more and more. Generally, before the electronic device leaves a factory, the operating mode of the electronic device may be set to the transportation mode by adjusting the software and/or hardware configuration of the electronic device; in the transportation mode, the built-in power supply of the electronic equipment can be in an inactivated state, namely the built-in power supply can not discharge outside, so that unsafe influence caused by discharging of the built-in power supply in the transportation process can be avoided, electric energy can be saved, and better experience is provided for users. Accordingly, after the user takes the electronic device, the transportation mode of the electronic device may be released in various ways, so that the user may control the power key to normally power on the electronic device after the operation mode of the electronic device is switched from the transportation mode to the user mode.
In one existing implementation, after taking the electronic device, a user may use a charging device (such as a charger, or the like) to charge the electronic device; accordingly, if the electronic device detects that an external power supply supplies power to a built-in power supply in the electronic device, the built-in power supply can be activated, so that the operating mode of the electronic device is switched from the transportation mode to the user mode. However, the implementation method depends on an external power supply, and if the external power supply does not exist in the current environment, the user cannot release the transportation mode of the electronic device, so that the electronic device cannot be normally started, and the user experience is not good.
In summary, there is a need for a control device to solve the problem of poor user experience caused by the need to use an external power source to release the transportation mode of the electronic device in the prior art.
Disclosure of Invention
The embodiment of the invention provides a control device, which is used for solving the technical problem of poor user experience caused by the fact that an external power supply is required to relieve the transportation mode of electronic equipment in the prior art.
In a first aspect, a control device provided in an embodiment of the present invention includes a controller, where the controller is provided with a first interface and a second interface, the first interface is connected to an external interface of an electronic device, and the second interface is connected to a first power supply of the electronic device;
the controller is configured to control the first power supply to be in a working state through the second interface to enable the electronic device to be in a user mode if it is detected that the external interface is connected to an external device through the first interface when the electronic device is in a transportation mode; wherein, when the electronic device is in a transport mode, the first power supply is in an off state.
In the design, if the control device detects that the external equipment is connected to the external interface of the electronic equipment, the transportation mode of the electronic equipment can be released, and an external power supply is not required to be used for charging the electronic equipment, so that the operation is simple and the implementation is convenient; moreover, since the electronic device usually carries an external device, such as a mouse, when leaving the factory, the user can conveniently acquire the external device, and then the electronic device can be normally started up by accessing the external device to an external interface of the electronic device, so that the user experience is better.
In one possible design, the control device further includes a second power supply that outputs a preset electrical signal; the controller is also provided with a third interface, and the third interface is connected with the second power supply; the controller acquires a first electric signal through the first interface, acquires the preset electric signal through the third interface, and determines that the external interface is accessed to the external equipment if the difference value between the first electric signal and the preset electric signal is greater than a first preset threshold value.
In the above design, when external device inserts external interface, the signal of telecommunication at external interface can be pulled down usually, consequently, through connecting external interface and second power respectively with first interface and third interface, can make controlling means acquire first signal of telecommunication through first interface, and acquire the signal of predetermineeing of treating that the second power provides through the third interface, thus, controlling means can confirm whether there is external device to insert external interface at present through comparing first signal of telecommunication and predetermineeing the signal of telecommunication, thereby make the control process comparatively flexibility, the treatment effeciency of control process is improved.
In a possible design, a power interface is further arranged on the controller, and the second power supply is connected with the power interface through a first line; the second power supply is used for supplying power to the controller through the first line when the electronic equipment is in a transportation mode.
In the above design, when the electronic device is in the transportation mode, the first power supply is generally in the non-operating state, and therefore, the second power supply can be used for supplying power to the controller by arranging the second power supply in the control device, so that the control process of the controller is realized, and the control accuracy is improved.
In one possible design, a first switch is arranged on the first line; the controller is further configured to control the first switch to be in a closed state when the electronic device is in a transport mode; and controlling the first switch to be in an off state when the electronic device is in a user mode.
In the design, the first switch is arranged in the control device, and the connection between the second power supply and the controller can be controlled by controlling the working state of the first switch, so that the operation is simpler and the cost is lower; and after the electronic equipment is normally started, the connection between the control device and the second power supply is disconnected through the first switch, so that the interference of the control device on the normal operation of the electronic equipment can be avoided, and the satisfaction degree of a user is improved.
In one possible design, the first switch includes a first metal oxide semiconductor field effect transistor MOSFET, a second MOSFET, and a third MOSFET, the first MOSFET and the second MOSFET are N-type MOSFET, and the third MOSFET is P-type MOSFET; the drain electrode of the first MOSFET, the drain electrode of the second MOSFET and the source electrode of the third MOSFET are respectively connected with the second power supply; the grid electrode of the first MOSFET is connected with the first power supply, the grid electrode of the second MOSFET is connected with the drain electrode of the first MOSFET, and the grid electrode of the third MOSFET is connected with the drain electrode of the second MOSFET; the source electrode of the first MOSFET and the source electrode of the second MOSFET are respectively grounded, and the drain electrode of the third MOSFET is connected with the external interface; in specific implementation, when the electronic device is in a transportation mode, the first MOSFET tube is in a cut-off state, the second MOSFET tube and the third MOSFET tube are in a conducting state, and the second power supply supplies power to the external interface through the second MOSFET tube and the third MOSFET tube.
In the design, the on and off control mode of the MOSFET is simple, so that the flexibility of the control process can be improved and the cost can be reduced by using the MOSFET as the first switch; in addition, by setting the connection relation among the first MOSFET, the second MOSFET and the third MOSFET in the design, the first switch can be automatically switched on and off, the first switch is automatically switched on when the electronic equipment is in a transportation mode, and the first switch is automatically switched off when the electronic equipment is in a user mode.
In a possible design, the second power supply is further connected to the external interface through a second line; the second power supply is further configured to supply power to the external interface through the second line when the electronic device is in the transportation mode.
In the above design, when the electronic device is in the transportation mode, the first power supply is generally in the non-operating state, and therefore, the second power supply is used for supplying power to the external interface, so that the control device can accurately detect whether the external interface is connected to the external device, and the control accuracy is improved.
In one possible design, a second switch is provided on the second line; the external interface is also connected with the first power supply; the controller is further configured to control the second switch to be in a closed state when the electronic device is in a transportation mode, so that the second power supply supplies power to the external interface; and when the electronic equipment is in a user mode, controlling the second switch to be in an off state so as to enable the first power supply to supply power for the external interface.
In the above design, by providing the second switch in the control device, the connection between the second power supply and the external interface can be controlled by controlling the operating state of the second switch; therefore, when the electronic equipment is in a transportation state, the second power supply and the external interface are connected through the second switch, the second power supply can supply power for the external interface, the control device can accurately acquire the electric signal at the external interface, correspondingly, when the electronic equipment is in a user state, the second power supply is disconnected from the external interface through the second switch, the first power supply can supply power for the external interface, the control device and the external interface can be isolated, the control device is prevented from interfering the normal use process of the electronic equipment by a user, and the user experience is improved.
In one possible design, the second switch includes the first MOSFET transistor, the second MOSFET transistor, and a fourth MOSFET transistor, and the fourth MOSFET transistor is a P-type MOSFET transistor; the grid electrode of the fourth MOSFET is connected with the drain electrode of the second MOSFET, the source electrode of the fourth MOSFET is connected with the second power supply, and the drain electrode of the fourth MOSFET is connected with the controller; in a specific implementation, when the electronic device is in a transportation mode, the fourth MOSFET is in a conducting state, and the second power supply supplies power to the controller through the second MOSFET and the fourth MOSFET.
In the above design, the first switch and the second switch may both include the first MOSFET and the second MOSFET, that is, the first switch and the second switch may realize linkage of control through the first MOSFET and the second MOSFET, the first switch and the second switch may be closed simultaneously when the electronic device is in the transportation mode, and the first switch and the second switch may be opened simultaneously when the electronic device is in the user mode, so that flexibility of control may be improved, and cost may be reduced.
In a second aspect, an embodiment of the present invention provides an electronic device, which includes the control apparatus according to any of the above first aspects.
In one possible design, an external interface is provided on the electronic device, and the external interface is a Universal Serial Bus (USB) interface.
These and other implementations of the invention will be more readily understood from the following description of the embodiments.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic structural diagram of a control device according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a hardware implementation of a control device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The electronic device in the embodiment of the present invention may be an electronic device with a display screen, such as a notebook computer, a tablet computer (ipad); or may be an electronic device without a display screen, such as a projector, without limitation.
Taking a notebook computer as an example, in order to release the transportation mode of the notebook computer, in one possible implementation manner, after a user takes the notebook computer, the user may perform a cover opening operation on the notebook computer, for example, opening a front panel of a screen of the notebook computer; accordingly, if the notebook computer detects that the front panel of the screen is in the open state, the transportation mode can be released. In this implementation, the user may release the transportation mode of the notebook computer without using an external power supply to charge the notebook computer, however, the experience of the user may be poor due to the misoperation in this implementation, for example, if the worker causes the front panel of the screen to be in a slightly opened state due to a mistake in the process of packaging the notebook computer, the built-in battery in the notebook computer is activated, so that the built-in battery is always in a discharged state in the transportation process of the notebook computer, and thus, the electric quantity of the built-in battery tends to zero when the user takes the notebook computer, and the experience of the user is poor.
Accordingly, the embodiment of the invention provides a control device, which is used for releasing the transportation mode of the electronic equipment and improving the user experience.
Fig. 1 is a schematic structural diagram of a control device according to an embodiment of the present invention, and as shown in fig. 1, the control device may include a controller 100, and the controller 100 may be provided with a first interface a1And a second interface a2. Wherein, the first interface a1The external interface 201 may be connected to an external interface 201 on the electronic device, and the external interface 201 may be an interface provided with a power module, such as a Universal Serial Bus (USB) interface, a display interface, a power interface, and the like, which is not limited specifically; accordingly, the second interface a2A first power source 202 in the electronic device may be connected, the first power source 202 may be electronicThe built-in power source of the device, such as a battery.
In the embodiment of the present invention, if the electronic device is in the transportation mode, the first power supply 202 may be in an inoperative state, and correspondingly, if the electronic device is in the user mode, the first power supply 202 needs to be in an operative state. In one embodiment, the controller 100 may be connected to the first interface a1Whether the external interface 201 is connected to an external device is determined, and if the external interface 201 is a USB interface, the external device may be any one of a mobile hard disk, a mouse, and a USB flash memory. Further, if it is determined that the external interface 201 is connected to the external device, the controller 100 may access the external device through the second interface a2The first power supply 202 is controlled to be in an operating state, so that the first power supply 202 can supply power to the electronic device, thereby enabling the electronic device to be in a user mode.
In one example, if the controller 100 determines that the external interface 201 is connected to the external device, it may generate a control signal to pass through the second interface a2Sending a control signal to the first power supply 202; accordingly, after the first power supply 202 receives the control signal, the working state of the first power supply 202 may be switched from the inactive state to the active state, so that the first power supply 202 may supply power to the electronic device, and at this time, if the user clicks a power key of the electronic device, the electronic device may be normally powered on.
In the embodiment of the invention, if the control device detects that the external equipment is connected with the external interface of the electronic equipment, the transportation mode of the electronic equipment can be released, and an external power supply is not required to be used for charging the electronic equipment, so that the operation is simple and the implementation is convenient; moreover, since the electronic device usually carries an external device, such as a mouse, when leaving the factory, the user can conveniently acquire the external device, and then the electronic device can be normally started up by accessing the external device to an external interface of the electronic device, so that the user experience is better.
It should be noted that fig. 1 is only an exemplary and simple illustration, the control device 100 is only illustrated for convenience of description and does not constitute a limitation to the embodiment, and in a specific implementation, the control device may be disposed inside the electronic device or may be disposed outside the electronic device, and is not limited specifically.
In one possible implementation manner, as shown in fig. 1, the control device may further include a second power source 110, and the second power source 110 may output a preset electrical signal; the preset electrical signal may be a fixed voltage value, for example, a preset voltage of 3.3V, or may also be a fixed current value, for example, a preset current of 1.5A, which is not limited specifically. It should be noted that the second power source 110 can output a preset electrical signal when the electronic device is in the transportation mode and when the electronic device is in the user mode. Correspondingly, the controller 100 may further be provided with a third interface a3A third interface a3A second power supply 110 may be connected.
In one embodiment, the controller 100 may be connected to the first interface a1Obtain the first electrical signal at the external interface 201, and may pass through the third interface a3Acquiring a preset electric signal output by the second power supply 110; generally, if the external device is connected to the external interface 201, the first electrical signal at the external interface 201 may be pulled down (for example, the voltage value is pulled down from 3V to 1.5V, or the current value is pulled down from 1.5A to 0.5A); therefore, if the controller 100 detects that the difference between the first electrical signal and the preset electrical signal is greater than the first preset threshold, it may be determined that the external interface 201 is connected to the external device, and thus, the controller 100 may access the external device through the second interface a2The first power supply 202 is controlled to be in an operating state. The first preset threshold may be set by a person skilled in the art based on experience, or may also be set according to actual needs, and is not limited specifically.
In the embodiment of the invention, if the external interface is connected to the external device, the electric signal at the external interface can be pulled down generally, so that the control device can acquire the first electric signal through the first interface and acquire the preset electric signal to be provided by the second power supply through the third interface by connecting the first interface and the third interface to the external interface and the second power supply respectively, and thus the control device can determine whether the external device is connected to the external interface currently or not by comparing the first electric signal with the preset electric signal, so that the control process is more flexible, and the processing efficiency of the control process is improved.
In a possible implementation manner, as shown in fig. 1, the controller 100 may further be provided with a power interface b, and the power interface b may be connected to the first line l1A second power supply 110 is connected. Thus, when the electronic device is in the transportation mode, the preset electrical signal output by the second power source 110 can pass through the first line l1And transmitted to the controller 100, so that the second power source 110 can supply power to the controller 100. In the embodiment of the invention, when the electronic equipment is in the transportation mode, the first power supply is generally in the non-operating state, so that the second power supply can be used for supplying power to the controller by arranging the second power supply in the control device, thereby realizing the control process of the controller and improving the control accuracy.
In one example, the first line l1A first switch 101 may be disposed thereon, and when the electronic device is in the transportation mode, the controller 100 may control the first switch 101 to be in a closed state; thus, the second power source 110 may pass through the first line l1The controller 100 is powered, so that the controller 100 can realize a detection process of accessing the external device at the external interface 201. Accordingly, when the electronic device is in the user mode, the controller 100 may control the first switch 101 to be in an off state; as such, since the second power source 110 cannot supply power to the controller 100 (and the first power source 202 cannot supply power to the controller 100), the controller 100 may not operate, so that the controller 100 does not interfere with the normal operation of the electronic device.
In the embodiment of the present invention, the type of the first switch 101 may be various, and specifically, the first switch 101 may be a mechanical switch, such as a button switch, a toggle switch, a membrane switch, or the like; or may be a contact switch such as an a-contact switch, a b-contact switch, a c-contact switch, etc.; or, the Transistor may be a Metal-Oxide-Semiconductor Field-Effect Transistor (MOSFET), and is not particularly limited.
In one example, the first switch 101 may be a MOSFET, and since the MOSFET is simple to control on and off, flexibility of a control process may be improved and cost may be reduced by using the MOSFET as the first switch 101.
In the embodiment of the invention, the first switch is arranged in the control device, the connection and disconnection between the second power supply and the controller can be controlled by controlling the working state of the first switch, the operation is simpler, the cost is lower, and the electric quantity can be saved while the transportation mode and the user mode of the electronic equipment are switched. The satisfaction degree of the user is improved.
Further, as shown in fig. 1, the second power source 110 may pass through the second line l2Is connected to the external interface 201, such that when the electronic device is in the transportation mode, the predetermined electrical signal output by the second power source 110 can pass through the second line l2The power is transmitted to the external interface 201, so that the second power source 110 can supply power to the external interface 201. In the embodiment of the invention, when the electronic equipment is in the transportation mode, the first power supply is generally in the non-operating state, so that the control device can accurately detect whether the external interface is connected to the external equipment or not by using the second power supply to supply power to the external interface, thereby improving the accuracy of control.
In one example, the second line l2A second switch 102 may be provided, and when the electronic device is in the transportation mode, the controller 100 may control the second switch 101 to be in a closed state, that is, the second power source 110 may be connected to the second line l2Power is supplied to the external interface 201; thus, if the external interface 201 is connected to the external device, the second line l is used2Is conducted so that the second line l2The first electrical signal may be pulled low, so that the controller 100 may accurately detect whether the external device is connected to the external interface 201. Accordingly, when the electronic device is in the user mode, the controller 100 may control the second switch 102 to be in the off state; therefore, the second power source 110 cannot supply power to the external interface 201, and the first power source 202 is in a working state in the user mode, so that the first power source 202 can supply power to the external interface 201, and normal operation of the electronic device can be realized.
In the embodiment of the invention, the second switch is arranged in the control device, so that the connection between the second power supply and the external interface can be controlled by controlling the working state of the second switch; therefore, when the electronic equipment is in a transportation state, the second power supply and the external interface are connected through the second switch, the second power supply can supply power for the external interface, the control device can accurately acquire the electric signal at the external interface, correspondingly, when the electronic equipment is in a user state, the second power supply is disconnected from the external interface through the second switch, the first power supply can supply power for the external interface, the control device and the external interface can be isolated, the control device is prevented from interfering the normal use process of the electronic equipment by a user, and the user experience is improved.
It should be noted that in the embodiment of the present invention, the types of the first switch 101 and the second switch 102 may be the same or different, for example, the first switch 101 and the second switch 102 may be both mechanical switches, or both contact switches, or both MOSFET transistors, or the first switch 101 is a mechanical switch and the second switch 102 is a MOSFET transistor, or the first switch 101 is a MOSFET transistor and the second switch 102 is a contact switch, which is not limited specifically.
According to the above, it can be seen that: the embodiment of the invention provides a control device, which comprises a controller, wherein the controller is provided with a first interface and a second interface, the first interface is connected with an external interface of electronic equipment, and the second interface is connected with a first power supply; when the electronic equipment is in a transportation mode, if the controller detects that the external interface is connected to external equipment through the first interface, the controller controls the first power supply to be in a working state through the second interface, so that the electronic equipment is in a user mode; wherein, when the electronic device is in a transport mode, the first power supply is in an off state. In the embodiment of the invention, if the control device detects that the external equipment is connected with the external interface of the electronic equipment, the transportation mode of the electronic equipment can be released, and an external power supply is not required to be used for charging the electronic equipment, so that the operation is simple and the implementation is convenient; moreover, since the electronic device usually carries an external device, such as a mouse, when leaving the factory, the user can conveniently acquire the external device, and then the electronic device can be normally started up by accessing the external device to an external interface of the electronic device, so that the user experience is better.
The control apparatus in the embodiment of the present invention is described below in terms of hardware implementation.
Fig. 2 is a schematic diagram of a hardware implementation of a control device according to an embodiment of the present invention, and as shown in fig. 2, the control device may include a controller 100 and an N-type MOSFET Q1N-type MOSFET Q2P-type MOSFET Q3And P-type MOSFET Q4. Wherein the controller 100 may be a comparator, and the output terminal a of the controller 1002Can be connected to a first power supply 202, input a3Can be connected to a second power supply 110, input a1Can be connected with an external interface 201, and the power end b can pass through a P-type MOSFET Q4Connecting a second power supply 110; accordingly, the first power source 202 may be through an N-type MOSFET Q1N-type MOSFET Q2And P-type MOSFET Q3The external interface 201 is connected, and the first power supply 202 can pass through the N-type MOSFET Q1N-type MOSFET Q2And P-type MOSFET Q4A controller 100 is connected.
In one embodiment, the first power source 202 is in a non-operational state when the electronic device is in the transportation mode, such that the N-type MOSFET Q is turned on1Can be low level at the control end g, so that the N-type MOSFET Q is ensured1Cutting off; accordingly, N-type MOSFET Q1The terminal d of the N-type MOSFET Q can be enabled by a predetermined electrical signal output from the second power source 1102Is high at the control terminal g, and the N-type MOSFET Q2The terminal d of the N-type MOSFET Q can be enabled by a predetermined electrical signal output from the second power source 1102Is turned on, thus, c1Is low. Further, the P-type MOSFET Q3At the control end g and a P-type MOSFET Q4Is low, and therefore, the P-type MOSFET Q3The second power source 110 connected to the s terminal outputs a predetermined electrical signal to make the P-type MOSFET Q3Conducting P-type MOSFET Q4The second power source 110 connected to the s terminal outputs a predetermined electrical signal to make the P-type MOSFET Q4And conducting.
Therefore, when the electronic equipment is in the transportation mode, the N-type MOSFET Q1In the off state, N-type MOSFET Q2In the on state, P-type MOSFET Q3In the on state, P-type MOSFET Q4Is in a conducting state, so that the N-type MOSFET Q2The second power source 110 connected to the d terminal can sequentially pass through the conducting N-type MOSFET Q2And P-type MOSFET Q3For supplying power to the external interface 201, and an N-type MOSFET Q2The second power source 110 connected to the d terminal can sequentially pass through the conducting N-type MOSFET Q2And P-type MOSFET Q4To power the controller 100. In this case, since the second power source 110 can supply power to the external interface 201, if the external interface 201 is connected to an external device, the electrical signal at the external interface 201 is pulled down, so that the input end a of the controller 100 is enabled to be connected to the external device1The detected electrical signal is low; accordingly, input terminal a of controller 1001The detected electrical signal is a preset electrical signal (fixed value) output by the second power supply 110, i.e. the input terminal a of the controller 1001Detected electrical signal and input terminal a3The difference between the detected electric signals becomes large, and thus, the controller 100 can generate a control signal and can pass through the output terminal a1The information is sent to the first power supply 202, so that the first power supply 202 is in an operating state, and the electronic device is successfully switched from the transportation mode to the user mode.
Further, when the electronic device is in the user mode, the first power source 202 may be in an operating state, and thus, the N-type MOSFET Q is used1The control end g can be a high-level N-type MOSFET Q1The terminal d of the N-type MOSFET Q can be enabled by a predetermined electrical signal output from the second power source 1101Conducting, thereby N-type MOSFET Q2The control end g can be a low-level N-type MOSFET Q2And (6) cutting off. Further, N-type MOSFET Q2The terminal d of the P-type MOSFET Q can be enabled by a preset electrical signal output by the second power supply 1103Control terminal g of (1) and P type MOSFET tube Q4Is high, so that the P-type MOSFET Q3And P-type MOSFET Q4And (6) cutting off.
Therefore, when the electronic device is in the user mode, the N-type MOSFET Q1In the on state, N-type MOSFET Q2P-type MOSFET Q3And P-type MOSFET Q4Are all in the off state, thus, the N-type MOSFET Q2The second power source 110 connected to the d-terminal of the power supply cannot pass through the turned-off N-type MOSFET Q2And P-type MOSFET Q3Power is supplied to the external interface 201; that is, when the electronic device is in the user mode, the control device may be isolated from the external interface 201, and the first power supply 202 may supply power to the external interface through the chip U, so that the control device may not affect the normal operation of the first power supply 202 in the electronic device. Accordingly, N-type MOSFET Q2The second power source 110 connected to the d-terminal of the power supply cannot pass through the turned-off N-type MOSFET Q2And P-type MOSFET Q4Power is supplied to the controller 100; that is, when the electronic device is in the user mode, the second power source 110 is isolated from the controller 100, and the power source terminal b of the controller 100 is connected to only the second power source 110, that is, the controller 100 may be in the off state, so that when the electronic device is in the user mode, even if the user connects the external device to the external port 201, the controller 100 does not send the control signal to the first power source 202.
The embodiment of the invention provides a control device, which comprises a controller, wherein the controller is provided with a first interface and a second interface, the first interface is connected with an external interface of electronic equipment, and the second interface is connected with a first power supply; when the electronic equipment is in a transportation mode, if the controller detects that the external interface is connected to external equipment through the first interface, the controller controls the first power supply to be in a working state through the second interface, so that the electronic equipment is in a user mode; wherein, when the electronic device is in a transport mode, the first power supply is in an off state. In the embodiment of the invention, if the control device detects that the external equipment is connected with the external interface of the electronic equipment, the transportation mode of the electronic equipment can be released, and an external power supply is not required to be used for charging the electronic equipment, so that the operation is simple and the implementation is convenient; moreover, since the electronic device usually carries an external device, such as a mouse, when leaving the factory, the user can conveniently acquire the external device, and then the electronic device can be normally started up by accessing the external device to an external interface of the electronic device, so that the user experience is better.
It should be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (8)

1. A control device is characterized in that the control device is arranged in an electronic device and comprises a controller, wherein a first interface and a second interface are arranged on the controller, the first interface is connected with an external interface of the electronic device, and the second interface is connected with a first power supply of the electronic device;
the controller is configured to control the first power supply to be in a working state through the second interface to enable the electronic device to be in a user mode if it is detected that the external interface is connected to an external device through the first interface when the electronic device is in a transportation mode; wherein when the electronic device is in a transport mode, the first power supply is in an off state;
the control device also comprises a second power supply, and the second power supply outputs a preset electric signal; the second power supply is also connected with the external interface through a second line; the second power supply is further used for supplying power to the external interface through the second line when the electronic equipment is in a transportation mode;
the controller is also provided with a third interface, and the third interface is connected with the second power supply; the controller is specifically configured to obtain a first electrical signal through the first interface, obtain the preset electrical signal through the third interface, and determine that the external interface is connected to the external device if it is detected that a difference between the first electrical signal and the preset electrical signal is greater than a first preset threshold.
2. The control device of claim 1, wherein the controller is further provided with a power interface, and the second power supply is connected with the power interface through a first line;
the second power supply is used for supplying power to the controller through the first line when the electronic equipment is in a transportation mode.
3. The control device according to claim 2, wherein a first switch is provided on the first line;
the controller is further configured to control the first switch to be in a closed state when the electronic device is in a transport mode; and controlling the first switch to be in an off state when the electronic device is in a user mode.
4. The control device of claim 3, wherein the first switch comprises a first Metal Oxide Semiconductor Field Effect Transistor (MOSFET), a second MOSFET and a third MOSFET, the first MOSFET and the second MOSFET are N-type MOSFET, and the third MOSFET is P-type MOSFET;
the drain electrode of the first MOSFET, the drain electrode of the second MOSFET and the source electrode of the third MOSFET are respectively connected with the second power supply; the grid electrode of the first MOSFET is connected with the first power supply, the grid electrode of the second MOSFET is connected with the drain electrode of the first MOSFET, and the grid electrode of the third MOSFET is connected with the drain electrode of the second MOSFET; the source electrode of the first MOSFET and the source electrode of the second MOSFET are respectively grounded, and the drain electrode of the third MOSFET is connected with the external interface;
when the electronic equipment is in a transportation mode, the first MOSFET is in a cut-off state, the second MOSFET and the third MOSFET are in a conducting state, and the second power supply supplies power to the external interface through the second MOSFET and the third MOSFET.
5. The control device according to claim 1, wherein a second switch is provided on the second line; the external interface is also connected with the first power supply;
the controller is further configured to control the second switch to be in a closed state when the electronic device is in a transportation mode, so that the second power supply supplies power to the external interface; and when the electronic equipment is in a user mode, controlling the second switch to be in an off state so as to enable the first power supply to supply power for the external interface.
6. The control device of claim 4, wherein the second switch comprises the first MOSFET, the second MOSFET, and a fourth MOSFET, the fourth MOSFET being a P-type MOSFET;
the grid electrode of the fourth MOSFET is connected with the drain electrode of the second MOSFET, the source electrode of the fourth MOSFET is connected with the second power supply, and the drain electrode of the fourth MOSFET is connected with the controller;
when the electronic equipment is in a transportation mode, the fourth MOSFET is in a conducting state, and the second power supply supplies power to the controller through the second MOSFET and the fourth MOSFET.
7. An electronic device, characterized in that the electronic device comprises a control apparatus according to any one of claims 1 to 6.
8. The electronic device according to claim 7, wherein an external interface is provided on the electronic device, and the external interface is a Universal Serial Bus (USB) interface.
CN201910549922.0A 2019-06-24 2019-06-24 Control device Active CN110262992B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910549922.0A CN110262992B (en) 2019-06-24 2019-06-24 Control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910549922.0A CN110262992B (en) 2019-06-24 2019-06-24 Control device

Publications (2)

Publication Number Publication Date
CN110262992A CN110262992A (en) 2019-09-20
CN110262992B true CN110262992B (en) 2020-12-04

Family

ID=67920928

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910549922.0A Active CN110262992B (en) 2019-06-24 2019-06-24 Control device

Country Status (1)

Country Link
CN (1) CN110262992B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101266587A (en) * 2008-04-22 2008-09-17 惠州市德赛汽车电子有限公司 USB equipment detection circuit
US8473153B1 (en) * 2011-12-22 2013-06-25 Honda Motor Co., Ltd. Key fob battery life preservation system and method
CN103869927A (en) * 2012-12-17 2014-06-18 联想(北京)有限公司 Information processing method and electronic device
WO2014198231A1 (en) * 2013-06-14 2014-12-18 Mediatek Inc. Method for reading, writing, or updating information for battery cell via connecting interface between portable device and battery pack including battery cell so as to obtain precise information
CN105375549A (en) * 2014-08-14 2016-03-02 联发科技股份有限公司 Method and system for controlling a state of a battery, and battery
CN205121472U (en) * 2015-11-19 2016-03-30 合肥联宝信息技术有限公司 Electronic equipment
CN109546743A (en) * 2018-11-16 2019-03-29 北汽福田汽车股份有限公司 The power control and board information terminal and vehicle of board information terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101266587A (en) * 2008-04-22 2008-09-17 惠州市德赛汽车电子有限公司 USB equipment detection circuit
US8473153B1 (en) * 2011-12-22 2013-06-25 Honda Motor Co., Ltd. Key fob battery life preservation system and method
CN103869927A (en) * 2012-12-17 2014-06-18 联想(北京)有限公司 Information processing method and electronic device
WO2014198231A1 (en) * 2013-06-14 2014-12-18 Mediatek Inc. Method for reading, writing, or updating information for battery cell via connecting interface between portable device and battery pack including battery cell so as to obtain precise information
CN105375549A (en) * 2014-08-14 2016-03-02 联发科技股份有限公司 Method and system for controlling a state of a battery, and battery
CN205121472U (en) * 2015-11-19 2016-03-30 合肥联宝信息技术有限公司 Electronic equipment
CN109546743A (en) * 2018-11-16 2019-03-29 北汽福田汽车股份有限公司 The power control and board information terminal and vehicle of board information terminal

Also Published As

Publication number Publication date
CN110262992A (en) 2019-09-20

Similar Documents

Publication Publication Date Title
US11023030B2 (en) Electronic device and control method thereof
US20100060233A1 (en) Charger with USB detection
JP2022068168A (en) Reverse direction charging device, and reverse direction charging current adjustment method and device
US11641124B2 (en) Electronic device and charging method thereof
CN109167420B (en) Charging control circuit, charging circuit and charging control method
US20170269659A1 (en) Disconnecting a battery from a system
CN106647539A (en) Electronic device having waterproof circuit
CN106325454B (en) Power supply control device and method and electronic equipment
US20220278535A1 (en) Charging/discharging protection circuit, terminal device, and battery discharging control method
CN115208041A (en) Dual battery switching circuit, battery switching method, electronic device, and storage medium
US20140285006A1 (en) Electric Energy Control Module, Apparatus and Device
CN114498831A (en) Electronic device and charging control method
KR102498254B1 (en) Method for reducing standby-power and electronic device thereof
CN104953631A (en) Current control method and terminal device
US9570922B2 (en) Charging method and electronic device
CN110262992B (en) Control device
CN113659663A (en) Charging device
CN107147168B (en) Charging device and terminal equipment
KR20170098467A (en) Apparatus and method for providing usb interface between potable device and external device
CN107370196B (en) Charging device and charging method
EP2988391B1 (en) Mobile power supply terminal and power supply method therefor
CN103149983A (en) Matching method of expanding peripheral device and expanding peripheral device
CN105404467A (en) Portable electronic device and user data access method therefor
CN105531901A (en) Battery-driven electronic apparatus
CN210405082U (en) 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
GR01 Patent grant
GR01 Patent grant