Power supply device, control method, and program
Patent Information
- Application Number
- JP2021157237
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2021-09-27
- Publication Date
- 2024-10-04
- Estimated Expiration
- 2041-09-27
AI Technical Summary
Existing power supply systems require users to manually check and set the power feeding direction every time devices are connected, imposing a significant burden.
A power supply device with storage means to store power supply direction information and control means to automatically match the power direction with previously connected devices, reducing the need for manual intervention.
Automatically adjusts power feeding directions based on stored information, minimizing user interaction and improving workflow efficiency by reducing the frequency of manual power roll settings.
Abstract
Description
[Technical Field]
[0001] The present invention relates to a power supply device that supplies power to an external device, and a method for controlling the power supply device. [Background technology]
[0002] Patent Document 1 describes a method for switching the power supply direction from an external device with a large remaining battery power to an external device with a small remaining battery power. Patent Document 2 describes a method for controlling the power supply direction based on the power for data transfer and the remaining battery power of each device, in order to prevent interruption of data transfer between an imaging device and an accessory device. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] Japanese Patent Application Laid-Open No. 2015-174375 [Patent Document 2] Japanese Patent Application Publication No. 2019-86726 Summary of the Invention [Problem to be solved by the invention]
[0004] A method in which the user himself / herself checks whether the power supply direction of the power supply device and the external device is the power supply direction desired by the user every time the power supply device and the external device are connected places a heavy burden on the user.
[0005] Therefore, an object of the present invention is to reduce the burden on the user when setting the power feeding direction of the power feeding device and the external device. [Means for solving the problem]
[0006] In order to solve this problem, the power supply device according to the present invention includes a storage means for storing, as power supply direction information, a power role of the power supply device with respect to an external device when the external device is connected to a connection part of the power supply device, and a control means for controlling, when the external device is newly connected to the connection part, the power role of the power supply device to match the power role of the power supply device with respect to the external device in the power supply direction information. [Effects of the Invention]
[0007] According to the present invention, it is possible to reduce the burden on the user when setting the power feeding direction of the power feeding device and the external device. [Brief explanation of the drawings]
[0008] [Figure 1] 1 is a block diagram illustrating components of a power supply device 100 according to a first embodiment. [Figure 2] 1 is a diagram showing the pin arrangement of a USB Type-C connector. [Figure 3] 4 is a flowchart illustrating a power supply control process in the first embodiment. [Figure 4] FIG. 10 is a diagram for explaining an example of power supply direction information in the second embodiment. [Figure 5] 10 is a flowchart illustrating a power supply control process in the second embodiment. DETAILED DESCRIPTION OF THE INVENTION
[0009] Hereinafter, embodiments of the present invention will be described with reference to the drawings, but the present invention is not limited to the following embodiments.
[0010] [Embodiment 1] 1 is a block diagram illustrating components of a power supply device 100 according to the first embodiment. The power supply device 100 is a device that can operate as, for example, a digital camera or a smartphone. Each component of the power supply device 100 has an electronic circuit for realizing the functions described below.
[0011] The external device 120 is a device capable of bidirectionally supplying power to the power supply device 100. In the example of the first embodiment, a device that operates on power from a battery or an AC power source is described as an example, but the external device 120 may also be an AC adapter or a mobile battery. The USB cable 130 is a cable with a plug that complies with the USB (Universal Serial Bus) Type-C standard. The USB cable 130 enables communication and power supply between the power supply device 100 and the external device 120.
[0012] The power supply device 100 can supply power bidirectionally to the external device 120 via a cable 130. The connection unit 101 includes a connector for connecting the cable 130. The connection unit 101 includes a receptacle that complies with the USB Type-C standard. The connection unit 101 has pins as shown in FIG. 2. The connection unit 101 includes a VBUS terminal for supplying power, a CC (Configuration Channel) terminal for acquiring information about the power supply capacity of the external device 120, a GND (Ground) terminal that serves as a signal reference, and the like.
[0013] The control unit 107 includes one or more processors and a memory such as a RAM. The control unit 107 controls the operation of each component of the power supply device 100 by executing a program stored in the storage unit 108. In the first embodiment, the control unit 107 may have some or all of the functions of the PD communication unit 102 and the power supply setting unit 104.
[0014] The PD communication unit 102 may be composed of, for example, one or more circuits. The PD communication unit 102 is connected to the CC terminal of the connection unit 101 and executes communication compliant with the USB PD (USB Power Deliverly) standard in response to instructions from the control unit 107. The PD communication unit 102 also determines whether the connected external device 120 is capable of bidirectional power supply compliant with the USB PD standard and notifies the control unit 107 of the result. When both the power supply device 100 and the external device 120 are capable of bidirectional power supply compliant with the USB PD standard, the signal lines of the CC terminals of the connection unit 101 are periodically switched between pull-up and pull-down in both devices. Therefore, the power role of the device (indicating whether the device is a power supply device (SRC) or a power receiving device (SNK)) is randomly determined based on the signal level when the connection is established. Here, the power supply direction is determined based on the power role of the device. After the initial power supply direction is determined in this way, the control unit 107 performs negotiation communication based on a communication protocol compliant with the USB PD standard to determine power supply conditions, including the power supply voltage and current, with the external device 120. Note that, since the power supply direction is determined once the power role of the device is determined, in the following explanation, determining the power supply direction and determining the power role of the device are essentially the same thing.
[0015] Power supply unit 103 may be configured with, for example, one or more circuits. Power supply unit 103 is connected to a VBUS terminal of connection unit 101, and can supply power supplied from external device 120 to each component of power supply device 100. Power supply unit 103 can also supply power to external device 120 using power supplied from battery 105 inside the power supply device.
[0016] Power supply setting unit 104 may be composed of, for example, one or more circuits. Power supply setting unit 104 sets the power supply direction of power supply unit 103 in response to an instruction from control unit 107. When control unit 107 switches the power supply direction with external device 120 by performing power supply direction switching communication based on a communication protocol compliant with the USB PD standard using PD communication unit 102, power supply setting unit 104 sets the power supply direction of power supply unit 103 in response to an instruction from control unit 107.
[0017] The power supply control unit 106 may be configured by, for example, one or more circuits. The power supply control unit 106 supplies power supplied from the battery 105 or the power supply unit 103 to each component of the power supply device 100.
[0018] The storage unit 108 may include, for example, a semiconductor memory such as an electrically rewritable nonvolatile memory (EEPROM). The storage unit 108 stores various information acquired from the external device 120, power supply direction information, and the like. The power supply direction information is information indicating the direction of power supply to the external device 120. The power supply direction information includes, for example, individual identification information of the external device 120 and information on the power role of the power supply device 100 with respect to the external device 120. The power role information indicates, for example, whether the external device 120 is a power supply device (SRC) or a power receiving device (SNK). In other embodiments, the power role information in the power supply direction information may include, for example, information on the power role of the external device 120. The various pieces of information acquired from the external device 120 are acquired, for example, when the control unit 107 communicates with the external device 120 via the PD communication unit 102 based on a communication protocol compliant with the USB PD standard.
[0019] The load 109 is configured by various modules, and includes a load that operates by consuming power from the power supply control unit 106. The power consumed by the load 109 varies depending on the operating state of the power supply device 100. In the power supply device 100, which is a digital camera, the various modules that configure the load 109 include, for example, an imaging element that converts a subject image into electrical image information, a display unit (such as an LCD) that displays the captured image and notifications to the user, and an operation unit with various switches. The various modules may also include an imaging lens that can drive a lens to zoom and focus the subject image.
[0020] Next, a power supply control process 300 in the power supply device 100 will be described with reference to Fig. 3. The power supply control process 300 is controlled by the control unit 107 executing a program stored in the storage unit 108. The power supply control process 300 is started, for example, when the external device 120 is connected to the connection unit 101 via the cable 130.
[0021] In S301, when the external device 120 is connected to the connection unit 101 via the cable 130, the control unit 107 randomly determines the power role based on the CC terminal signal level at the time of connection establishment, in accordance with the USB PD standard. Note that the following description will be given taking as an example a case where the power roles are determined such that the power supply device 100 becomes a power supply device (SRC) and the external device 120 becomes a power receiving device (SNK).
[0022] The control unit 107 performs negotiation communication based on a communication protocol conforming to the USB PD standard using the PD communication unit 102, and determines power supply conditions including the voltage and current to be supplied to the external device 120. Thereafter, the control unit 107 controls the power supply unit 103 via the power supply setting unit 104 so as to start power supply in accordance with the determined power supply conditions.
[0023] In S302, the control unit 107 acquires a PID (Product ID) from the external device 120 via the PD communication unit 102 as individual identification information of the external device 120. Note that the individual identification information of the external device 120 may be information unique to the external device 120, such as a serial number or a vendor ID, in addition to the PID.
[0024] In S303, the control unit 107 checks the PID to determine whether power supply direction information for the external device 120 is stored in the storage unit 108. If it is determined that power supply direction information for the external device 120 does not exist, the control unit 107 advances the process 300 to S304. If it is determined that power supply direction information for the external device 120 exists, the control unit 107 advances the process 300 to S310.
[0025] In S304, control unit 107 displays the current power role of power supply device 100 determined in S301 on a display unit included in load 109 to present it to the user. Also, in S305, control unit 107 displays a notice on a display unit included in load 109 to prompt the user to indicate whether or not to request a power role change (here, from SRC to SNK), to present it to the user.
[0026] In S306, the control unit 107 determines whether or not a power role change request has been received from the user. If a power role change request has not been received from the user, the control unit 107 advances the process 300 to S309. If a power role change request has been received from the user, the control unit 107 advances the process 300 to S307.
[0027] In S307, the control unit 107 changes the power role by making a power supply direction switch request (role swap) based on a communication protocol conforming to the USB PD standard to the external device 120 via the PD communication unit 102. With this change in power role, for example, the power supply device 100 becomes SNK and the external device 120 becomes SRC. In S308, the control unit 107 displays the changed current power role on a display unit included in the load 109 to present it to the user.
[0028] In S309, the control unit 107 stores the PID of the external device 120 and the current power role of the power supply device 100 in the storage unit 108 as power supply direction information for the external device 120.
[0029] On the other hand, if the power supply direction information for the external device 120 exists in the storage unit 108 (Yes in S303), the control unit 107 reads out the power supply direction information for the external device 120 in S310. Then, in S311, the control unit 107 determines whether the current power role of the power supply apparatus 100 determined in S301 matches the power role in the power supply direction information read out in step S310. If it is determined that the current power role of the power supply apparatus 100 determined in S301 matches the power role read out in S310, the control unit 107 advances the process 300 to S313. If it is determined that the current power role of the power supply apparatus 100 determined in S301 does not match the power role read out in S310, the control unit 107 advances the process 300 to S312.
[0030] In S312, similarly to S307, the control unit 107 changes the power role by making a power supply direction switching request (role swap) to the external device 120. In S313, the control unit 107 displays the current power role of the power supply apparatus 100 determined in S301 on a display unit included in the load 109 to present it to the user. Thereafter, as described above, in S309, the control unit 107 stores the PID of the external device 120 and the current power role of the power supply apparatus 100 in the storage unit 108 as power supply direction information for the external device 120.
[0031] As described above, in the first embodiment, the control unit 107 stores, as power supply direction information, the identification information of the previously connected external device 120 and the power role of the power supply device 100 with respect to the external device in the storage unit 108. Then, when a new external device 120 is connected and power supply direction information with respect to the external device 120 is stored, the control unit 107 controls the power role of the power supply device 100 to automatically match the power role stored in the power supply device 100. This can reduce the effort required for the user to check and reset the power role that is randomly determined immediately after connection with the external device 120.
[0032] In the first embodiment, the power supply device 100 and the external device 120 are connected one-to-one. However, the first embodiment is not limited to this. For example, as shown in FIG. 4 , a plurality of PIDs and power role information associated with each PID may be stored in the storage unit 108 as power supply direction information. The control unit 107 uses identification information of a newly connected external device to identify the power role for the external device in the power supply direction information, and matches the power role of the power supply device 100 to the identified power role. This reduces the effort required to reset the power role each time the power supply device 100 is connected to a plurality of external devices 120 in turn. This makes it possible to accommodate use cases in which a user switches between connecting and using a plurality of external devices 120. If the power supply device 100 of the first embodiment is assumed to be a digital camera, various accessories such as an external flash device or a wireless image transfer device may be used as the external device 120. According to the first embodiment, it is possible to avoid or reduce the frequency of resetting the power roll every time these accessories are connected, thereby improving the work efficiency of the imaging workflow that involves connecting and disconnecting accessories.
[0033] [Embodiment 2] Next, a second embodiment will be described. In the first embodiment, the power supply direction information stored in the storage unit 108 is continuously held and valid thereafter. However, in the second embodiment, the power supply device 100 automatically changes the power supply direction information when a predetermined time has elapsed since the power supply direction information was stored. For example, as shown in FIG. 4 , the power supply direction information further associates and stores information indicating whether the power roll is valid or invalid with information on the date and time when the power roll was stored, and invalidates the power roll information in the power supply direction information when a predetermined time has elapsed. Note that in the second embodiment, part of the power supply control process 300 described in the first embodiment and part of the configuration of the power supply direction information are different, but the configuration of the power supply device 100 is substantially the same. Therefore, the same configurations and processes are denoted by the same reference numerals, and their description will be omitted, and the differences will be mainly described.
[0034] In the power supply control process 400 shown in FIG. 5, when a predetermined time has elapsed since the power role information for the external device 120 in the power supply direction information was stored, the control unit 107 invalidates the power role information in the power supply direction information.
[0035] For example, the control unit 107 executes the processes of S301 to S309 and S310 in the same manner as in the first embodiment. After executing the process of S310, in S501, the control unit 107 compares the date and time information at which the power role information corresponding to the PID in the power supply direction information stored in the external device 120 was stored with the current date and time information, and determines whether a predetermined time has passed. If the predetermined time has passed since the date and time at which the power role information was stored, the control unit 107 advances the process 400 to S304. If the predetermined time has not passed since the date and time at which the power role information was stored, the control unit 107 advances the process 400 to S311. Thereafter, the control unit 107 executes the processes of S311 to S313 in the same manner as in the first embodiment.
[0036] In this way, when the same external device 120 is reconnected within a predetermined time, the control unit 107 automatically resets the power role so that it matches the power role of the power supply direction information stored in the storage unit 108. On the other hand, when a certain period of time has elapsed, the control unit 107 causes the display unit of the load 109 to display a notice urging the user to set the power role again. In this way, when the external device 120 is reconnected within a relatively short period of time, it is possible to save the trouble of setting the power role every time the external device 120 is reconnected. Furthermore, it is possible to prevent the power role from being automatically continued unintentionally by the user.
[0037] [Embodiment 3] At least one of the various functions, processes, and methods described in the above embodiments can also be realized by a personal computer, a microcomputer, a CPU (Central Processing Unit), or a microprocessor executing a program. Hereinafter, in embodiment 3, the personal computer, microcomputer, CPU, or microprocessor will be referred to as "computer X." In embodiment 3, a program for controlling computer X and for realizing at least one of the various functions, processes, and methods described in the above embodiments will be referred to as "program Y."
[0038] At least one of the various functions, processes, and methods described in the above embodiments is realized by computer X executing program Y. In this case, program Y is supplied to computer X via a computer-readable storage medium. The computer-readable storage medium in embodiment 3 includes at least one of a hard disk drive, a magnetic storage device, an optical storage device, a magneto-optical storage device, a memory card, a volatile memory, a non-volatile memory, etc. The computer-readable storage medium in embodiment 3 is a non-transitory storage medium. [Explanation of symbols]
[0039] 100 power supply device, 120 external device, 130 cable, 101 connector, 102 PD communication unit, 103 bidirectional power supply unit, 104 power supply setting unit, 107 control unit, 108 memory unit, 109 load
Claims
1. A power supply device, A connection means for connecting an external device; A storage means for storing power supply direction information regarding a power role of the power supply device relative to an external device; a control means for controlling, when the external device is newly connected to the connection means, a power role of the power supply device to be consistent with a power role corresponding to the power supply direction information; A power supply device comprising:
2. The power supply device described in Claim 1, characterized in that when the external device is connected to the connection means, the control means determines a power role of the power supply device with respect to the connected external device, and, if the determined power role does not match the power role of the power supply device corresponding to the power supply direction information, performs control to change the power role of the power supply device so that the power role of the power supply device matches the power role corresponding to the power supply direction information.
3. The power supply direction information includes identification information of the external device and power role information indicating a power role of the power supply device with respect to the external device, The communication means further includes a communication means for communicating with the external device connected to the connection means, the control means determines a power role of the power supply device in response to the external device being connected to the connection means, and, after the determination, specifies a power role of the power supply device corresponding to the external device using identification information of the external device acquired from the external device through communication by the communication means; 3. The power supply device according to claim 2, wherein the control means controls the communication means so as to automatically perform a predetermined communication for matching the power role of the power supply device to the specified power role when the determined power role of the power supply device differs from a power role specified based on the power supply direction information.
4. The power supply device supplies and receives power in accordance with the USB Power Delivery (USB PD) standard, 4. The power supply device according to claim 3, wherein the predetermined communication is a communication for requesting the external device to switch a power role in accordance with a USB PD standard.
5. When the predetermined communication for matching the specified power role is performed, the control means controls a display unit to display the specified power role based on the power supply direction information, The power supply device according to claim 3 or 4, characterized in that, when the power role information corresponding to the identification information of the connected external device is not stored in the storage means, the control means controls the display unit to display the determined power role.
6. A power supply device as described in any one of claims 2 to 5, characterized in that when the power supply direction information related to the power supply device for an external device connected to the connection means is not stored in the memory means, the control means stores power supply direction information indicating the determined power role of the power supply device.
7. The power supply direction information includes identification information of the external device and power role information indicating a power role of the power supply device with respect to the external device, 2. The power supply device according to claim 1, wherein the control means uses identification information of the external device newly connected to the connection means to specify a power role for the external device corresponding to the identification information of the external device in the power supply direction information, and controls the power role of the power supply device to match the specified power role.
8. The communication means further includes a communication means for communicating with the external device connected to the connection means, 8. The power supply device according to claim 7, wherein the control means specifies a power role of the power supply device with respect to the external device in the power supply direction information, by using identification information of the external device acquired from the external device through communication by the communication means.
9. The power supply device supplies and receives power in accordance with the USB Power Delivery (USB PD) standard, 3. The power supply device according to claim 2, wherein, when the determined power role of the power supply device is a source of USB PD and the power role of the power supply device indicated by the power supply direction information is a sink of USB PD, the control means determines that the determined power role does not match the power role indicated by the power supply direction information, and performs control to change the power role of the power supply device to a sink of USB PD.
10. The power supply device described in Claim 9, characterized in that when the determined power role of the power supply device is a USB PD sink and the power role of the power supply device indicated by the power supply direction information is a USB PD source, the control means determines that the determined power role does not match the power role indicated by the power supply direction information, and performs control to change the power role of the power supply device to a USB PD source.
11. A method for controlling a power supply device having a connection means to which an external device is connected, comprising: storing power supply direction information relating to a power role of the power supply device relative to an external device in a storage means; When the external device is newly connected to the connection means, controlling a power role of the power supply device so as to match a power role corresponding to the power supply direction information. A control method comprising the steps of:
12. A computer of a power supply device having a connection means to which an external device is connected, storing power supply direction information relating to a power role of the power supply device relative to an external device in a storage means; When the external device is newly connected to the connection means, controlling a power role of the power supply device so as to match a power role corresponding to the power supply direction information. A program for executing the above.
