Electronic device, control method, and storage medium
By introducing authentication units and control units into electronic devices, authenticating communication of external devices and requesting appropriate power, the problem that the power supply equipment without additional cables cannot respond correctly to USB cable authentication communication, and appropriate control of power supply for power receiving equipment is achieved.
Patent Information
- Application Number
- CN202111294546.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-11-04
- Filing Date
- 2021-11-03
- Publication Date
- 2025-06-20
- Estimated Expiration
- 2041-11-03
AI Technical Summary
No additional cable-type power supply equipment cannot correctly respond to the certified communication of USB cables when connected to the power receiving device, resulting in limited power supply.
By introducing an authentication unit and a control unit into the electronic device, authentication communication of an external device is performed, whether the device is a predetermined device is determined, and when it is determined that it is not necessary to add a cable-type power supply device, a second power greater than the initial power is requested.
It is realized that even if the power supply equipment is not required for additional cables, the power supply from the power supply equipment to the power receiving equipment can be appropriately controlled to avoid power supply limitations.
Smart Images

Figure CN114448020B_ABST
Abstract
Description
Technical Field
[0001] Aspects of the present disclosure generally relate to electronic devices, control methods, and storage media. Background Art
[0002] The USB (Universal Serial Bus) Type-C and USB PD (Power Delivery) standards are known as standards related to USB. A USB interface compliant with the USB PD standard can provide power of up to 100W.
[0003] Japanese Patent Application Laid-Open No. 2018-097643 describes a power supply device that performs authentication communication with each of a power receiving device and a USB cable.
[0004] Hereinafter, a power supply device having an integrated USB cable and a power supply device having a connector capable of connecting to a power receiving device without using a USB cable are collectively referred to as a cableless power supply device.
[0005] Assume that a cableless power supply device can correctly respond to authentication communication for the power supply device, but cannot correctly respond to authentication communication for the USB cable. If the cableless power supply device is connected to the power receiving device described in Japanese Patent Application Laid-Open No. 2018-097643 and the cableless power supply device cannot perform authentication communication for the USB cable, then in many cases, for example, power supply from the cableless power supply device to the power receiving device will be restricted. Summary of the Invention
[0006] According to various embodiments, even if the power supply device is a cableless power supply device, power supply from the power supply device to a power receiving device connected thereto will be appropriately controlled.
[0007] According to various embodiments, there is provided an electronic device including: an authentication unit configured to perform authentication communication with an external device to determine whether the external device is a predetermined device; and a control unit configured to request second power greater than first power from the external device when the external device is determined to be the predetermined device and the external device is determined to be a cableless power supply device.
[0008] According to various embodiments, there is provided a control method including the steps of: performing authentication communication with an external device to determine whether the external device is a predetermined device; and requesting second power greater than first power from the external device when the external device is determined to be the predetermined device and the external device is determined to be a cableless power supply device.
[0009] According to various embodiments, a storage medium is provided that stores a program for causing a computer to execute a method, the method including the steps of: performing authentication communication with an external device to determine whether the external device is a predetermined device; and requesting, from the external device, second power greater than first power when the external device is determined to be the predetermined device and the external device is determined to be a non-additional cable type power supply device.
[0010] Other aspects of the present disclosure will become clear from the description of the following exemplary embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 is a diagram for showing a configuration example of a power supply system according to various embodiments.
[0012] Figure 2 is a block diagram for showing a configuration example of a power receiving device 100 and a power supply device 120 according to the first embodiment.
[0013] Figure 3 is a flowchart related to the processing performed.
[0014] Figure 4 is a diagram for showing an example of the data format of device information according to the first embodiment.
[0015] Figure 5 is a flowchart related to the processing performed according to the second embodiment.
[0016] Figure 6 is a diagram for showing an example of the data format of a message for communication of device information according to the second embodiment.
[0017] Figure 7 is a block diagram for showing a configuration example of a power receiving device 100' and a power supply device 120' according to the third embodiment.
[0018] Figures 8A to 8D is a block diagram for showing a configuration example of a notification unit 803 according to the third embodiment.
[0019] Figure 9 is a flowchart related to the processing performed according to the third embodiment. DETAILED DESCRIPTION
[0020] Exemplary embodiments, features, and aspects of the present disclosure will be described below with reference to the drawings. However, embodiments of the present invention are not limited to the following exemplary embodiments.
[0021] [First Embodiment]
[0022] Figure 1This is a diagram for showing an example configuration of a power supply system according to various embodiments.
[0023] As Figure 1 shown, the power supply systems in the first to third embodiments described herein include a power supply device 120 and a power receiving device 100 that can operate using the power provided by the power supply device 120. Both the power supply device 120 and the power receiving device 100 are electronic devices compliant with the USB (Universal Serial Bus) PD (Power Delivery) standard and the USB Type-C standard.
[0024] The power receiving device 100 is an electronic device that can serve as, for example, a digital camera, a digital video camera, a personal computer, a tablet computer, a media player, a PDA, a cellular phone, a smart phone, a game console, a robot, or a drone.
[0025] The power supply device 120 is an electronic device that can serve as, for example, a USB-AC adapter, a mobile battery, a personal computer, or a tablet computer. The power supply device 120 is a cableless power supply device. Here, it is assumed that the power supply device 120 has an integrated cable 130 integrated therewith. A plug 140 is provided at an end of the integrated cable 130. The plug 140 engages with a socket 110 provided in the power receiving device 100.
[0026] Note that the cableless power supply device can be a power supply device having an integrated cable 130 or a power supply device having a connector that can be connected to the power receiving device without using a USB cable. Therefore, although the power supply device 120 having an integrated cable 130 will be described in this specification, in other embodiments, the device can be a power supply device 120 having a plug 140 provided in a housing.
[0027] Figure 2 This is a block diagram for showing an example configuration of the power supply system Figure 1 shown. In Figure 2 this, the same components as in Figure 1 are denoted by the same reference numerals.
[0028] Power from the power supply device 120 as an external device is supplied to the VBUS terminal of the socket 110. The CC (Configuration Channel) terminal of the socket 110 is used for communication (PD communication) compliant with the USB PD standard. The GND terminal of the socket 110 is connected to the ground potential (GND) of the power receiving device 100.
[0029] The pull - down resistor 101 connects the CC terminal of the socket 110 and the GND of the power receiving device 100. The pull - down resistor 101 is used for the power supply device 120 to detect the connection of the power receiving device 100, and for the power receiving device 100 to determine the power supply capacity of the power supply device 120 based on the voltage. According to the USB Type - C standard, a device with the CC terminal connected to a pull - down resistor is recognized as a power receiving device (sink), while a device with the CC terminal connected to a pull - up resistor is recognized as a power supply device (source).
[0030] The PD communication unit 102 is connected to the CC terminal of the socket 110 and performs PD communication with the power supply device 120 through the CC terminal. The PD communication unit 102 determines whether the power supply device 120 is a device capable of performing PD communication.
[0031] If it is determined that the power supply device 120 is a device capable of performing PD communication, the power receiving device 100 performs negotiation communication with the power supply device 120 through the PD communication unit 102. The power receiving device 100 requests the power supply device 120 to provide the desired power through the negotiation communication. In addition, the power receiving device 100 performs authentication communication according to the USB Type - C authentication standard (hereinafter referred to as the USB AUTH standard) with at least the power supply device 120 among the power supply device 120 and the cable 130 through the PD communication unit 102. The authentication communication is performed to determine whether the partner device is a predetermined device (i.e., a device compliant with the USB PD standard). According to the first embodiment, the power receiving device 100 operates as an authentication initiator according to the USB AUTH standard.
[0032] According to the first embodiment, the PD communication unit 102 has at least two types of options for the power requested from the power supply device 120. One option can be the minimum power at which the power receiving device 100 can operate until the result of the authentication communication is obtained.
[0033] The authentication unit 103 authenticates whether the power supply device 120 is a predetermined device (i.e., a device compliant with the USB PD standard). For example, the authentication unit 103 performs authentication communication compliant with the USB Type - C authentication standard (USB AUTH standard) with each of the power supply device 120 and the cable 130 through the PD communication unit 102. The authentication unit 103 determines whether each of the power supply device 120 and the cable 130 is a predetermined device (i.e., a device compliant with the USB PD standard) based on the predetermined information obtained through the authentication communication. The authentication unit 103 notifies the control unit 107 of the determination result (authentication result).
[0034] The power receiving unit 104 is connected to the VBUS terminal of the socket 110 and supplies the power provided from the power supply device 120 via the VBUS terminal to the components of the power receiving device 100. The power receiving unit 104 is also controlled based on the information obtained from the PD communication unit 102 so that the power provided from the power supply device 120 does not exceed a predetermined value.
[0035] The load 105 includes a circuit or the like that operates by consuming the power provided from the power receiving unit 104. The configuration of the load 105 varies depending on what device the power receiving device 100 can operate as. The power consumption of the load 105 changes depending on the operation being performed by the power receiving device 100. For example, if the power receiving device 100 can operate as a digital camera, the load 105 includes a motor for driving a lens unit, an image sensor and its peripheral circuits, an image processing circuit, a display device, a storage device, a speaker, a touch panel, buttons, switches, and the like. For example, if the power receiving device 100 can operate as a digital camera, the power consumption of the load 105 varies depending on whether a live view image is being displayed on the display device, whether the lens unit is being driven, and the like.
[0036] The control unit 107 is configured to control the respective components of the power receiving device 100. The control unit 107 includes, for example, a hardware processor (such as a CPU or the like) that controls the respective components of the power receiving device 100 and a memory that stores programs executable by the hardware processor. The memory of the control unit 107 stores, for example, programs for implementing the processing performed in the power receiving device 100 (which will be described later).
[0037] The power supply device 120 has a pull-up resistor 121 connected between the CC terminal of the plug 140 and a reference power supply. The pull-up resistor 121 is used by the power supply device 120 to determine the connection of the power receiving device 100 and is used by the power supply device 120 to present a power supply capacity to the power receiving device 100. The reference power supply is, for example, a constant voltage source of 5V.
[0038] The PD communication unit 122 is connected to the CC terminal of the plug 140 and performs PD communication with the power receiving device 100 via the CC terminal. The PD communication unit 122 determines whether the power receiving device 100 is a device capable of performing PD communication.
[0039] If it is determined that the power receiving device 100 is a device capable of performing PD communication, the power supply device 120 performs negotiation communication with the power receiving device 100 through the PD communication unit 122. In the negotiation communication, the power supply device 120 transmits information related to the power that can be provided to the power receiving device 100. In addition, the power supply device 120 can perform authentication communication according to the USB AUTH standard through the PD communication unit 122. According to the first embodiment, the power supply device 120 operates as an authentication responder according to the USB AUTH standard.
[0040] The storage unit 123 stores information (such as a certificate chain and XID, etc.) required for the power supply device 120 to be used as an authentication responder specified in the USB AUTH standard. The storage unit 123 stores the device information of the power supply device 120. The storage unit 123 can be, for example, a rewritable non-volatile memory. The device information includes, for example, information that can be used by the power receiving device to determine that the power supply device 120 is a cable-free type power supply device. This information can be the model number (model name) of the power supply device, or a specific string or numerical value. The information required for the power supply device to be used as an authentication responder can be used as device information. Any description format of this information can be used as long as the power receiving device 100 can determine that the power supply device 120 is a cable-free type power supply device based on this information.
[0041] The power supply unit 124 is connected to the VBUS terminal of the plug 140 and supplies power to the power receiving device 100. The power supply unit 124 can supply power at a voltage and current that conforms to the USB PD standard. The power supply unit 124 controls the power supplied to the power receiving device 100 based on the PD communication with the power receiving device 100.
[0042] Next, the processing performed in the power receiving device 100 will be described with reference to Figure 3 the flowchart. For example, if the power receiving unit 104 detects that the power supply device 120 is connected to the socket 110 of the power receiving device 100, this processing is started. If the voltage of the VBUS terminal exceeds a predetermined voltage level, the power receiving unit 104 detects that the power supply device 120 is connected to the socket 110. The power receiving unit 104 notifies the control unit 107 that it has detected that the power supply device 120 is connected to the socket 110.
[0043] In step S301, the control unit 107 instructs the PD communication unit 102 to start communication (PD communication) that conforms to the USB PD standard.
[0044] In step S302, when a predetermined message conforming to the USB PD standard is received from the power supply device 120 within a predetermined time period, the PD communication unit 102 determines that the power supply device 120 is a device capable of PD communication. In addition, the PD communication unit 102 determines that the power supply device 120 is a device that can operate as a source device according to the USB PD standard. The predetermined message is, for example, a message (Source_Capabilities) including information indicating the power that can be provided by the power supply device 120.
[0045] On the other hand, if a predetermined message conforming to the USB PD standard is not received from the power supply device 120 within a predetermined amount of time, the PD communication unit 102 determines that the power supply device 120 is not a device capable of PD communication. The PD communication unit 102 notifies the control unit 107 that it has been determined that the power supply device 120 is not a device capable of PD communication. If it is determined that the power supply device 120 is a device capable of communicating conforming to the USB PD standard, the control unit 107 proceeds with the process of step S303. If it is determined that the power supply device 120 is not a device capable of PD communication, the control unit 107 proceeds with the process of step S312.
[0046] In step S303, the control unit 107 causes the PD communication unit 102 to send a message that requests the power supply device 120 to provide first power, regardless of whether the power supply device 120 is a predetermined device (i.e., a device conforming to the USB PD standard). For example, the control unit 107 selects one of the powers that the power supply device 120 can provide, and this one power is indicated by the information received by the PD communication unit 102 in the predetermined message from the power supply device 120 in step S301. Then, the control unit 107 causes the PD communication unit 102 to send a message (Request) that requests the power supply device 120 to provide the selected power.
[0047] As an example, the control unit 107 can select, as the first power, the minimum power that the power receiving device 100 can use to authenticate the power supply device 120 from the powers that the power supply device 120 can provide. Authenticating the power supply device 120 is used for the power receiving device 100 to determine whether the power supply device 120 is a predetermined device (i.e., a device conforming to the USB PD standard), and this authentication corresponds to the operations of steps S305 to S308 described later. For example, assume that the power supply device 120 can provide 2.5W (5V, 500mA), 15W (5V, 3A), 27W (9V, 3A), and 30W (15V, 2A), and 2.5W (5V, 500mA) is required for authentication. In this case, the control unit 107 selects 2.5W (5V, 500mA) as the first power.
[0048] In step S304, when the control unit 107 receives a message indicating acceptance of the power supply request from the power supply device 120 via the PD communication unit 102, it sets the operation of the power receiving unit 104. For example, the control unit 107 sets the power receiving unit 104 to control the current to 500 mA or less so that the supplied power does not exceed the first power. The power receiving unit 104 supplies the first power supplied from the power supply device 120 to a predetermined component such as the load 105. The control unit 107 can reduce the power consumption of the load 105 by restricting the functions or operations of the load 105 (such as switching to the power saving mode, etc.) when necessary.
[0049] In step S305, the control unit 107 instructs the authentication unit 103 to start authentication communication with the power supply device 120. Then, the authentication unit 103 performs authentication communication with the power supply device 120 via the PD communication unit 102. In the authentication communication, the power receiving device 100 operates as the authentication initiator, while the power supply device 120 operates as the authentication responder.
[0050] The authentication unit 103 determines whether the power supply device 120 is a predetermined device (i.e., a device compliant with the USB PD standard). For example, the authentication unit 103 can make the determination based on whether it receives the predetermined authentication information specified in the USBAUTH standard from the power supply device 120 within a predetermined period. If the predetermined authentication information is received within the predetermined period, the authentication unit 103 determines that the power supply device 120 is a predetermined device. If the predetermined authentication information is not received within the predetermined period, the authentication unit 103 determines that the power supply device 120 is not a predetermined device. The authentication unit 103 notifies the control unit 107 of the determination result (authentication result).
[0051] The predetermined authentication information can be any information specified in the USB AUTH standard. Here, it is assumed that the information is unique information assigned to each product, called XID. In addition, the authentication unit 103 includes a non-volatile memory that stores a list of XIDs of devices that have been authenticated as compliant with the USB PD standard. If a response message including the XID (which is included in the list) is received from the power supply device 120 within a predetermined period after sending a message requesting authentication information (such as a certificate chain), the authentication unit 103 can determine that the power supply device 120 is a predetermined device. The predetermined period can be any period specified in the USB PD standard, for example, it can be 4.5 seconds.
[0052] The authentication unit 103 obtains device information from the power supply device 120 during authentication communication. For example, the authentication unit 103 sends a Security_Request PD message to the power supply device 120 through the PD communication unit 102. The control unit 125 of the power supply device 120 generates a Security_Response PD message, which includes information corresponding to the Security_Request PD message received through the PD communication unit 122. At this time, the control unit 125 reads the device information from the storage unit 123 and includes the device information in the Security_Response PD message. This enables the authentication unit 103 to obtain device information from the power supply device 120 through authentication communication.
[0053] The device information can be included in a vendor extension TLV field of an ACD (Additional Certificate Data) included in, for example, the Security_Response PD message. TLV is an abbreviation for Type, Length, and Value.
[0054] Figure 4 The construction of the TLV field of the PD message is shown. The TLV field includes a type field 501, a length field 502, and a data field 503.
[0055] The type field 501 is an area for storing a hexadecimal number indicating the type of TLV information. The number FEh indicates that the information stored in the data field 503 is vendor extension information.
[0056] The length field 502 is an area for storing a hexadecimal number indicating the data size of the information stored in the data field 503. The number 04h indicates that the data size is 4 bytes.
[0057] The data field 503 is an area for storing information in hexadecimal format. In these 4 bytes, the upper 2 bytes (04A9h) are the vendor IDs assigned to each device vendor. The lower 2 bytes (0001h) indicate that the power supply device 120 is a cable-free type power supply device. If the lower 2 bytes are 0000h, it indicates that the power supply device 120 is not a cable-free type power supply device. Note that the value of the lower 2 bytes can be made different according to the type of cable-free type power supply device (i.e., whether it is a power supply device with an integrated USB cable or a power supply device with a connector that can connect to a power receiving device without using a USB cable).
[0058] Having Figure 4The device information in the format is encrypted by the PD communication unit 122 through processing conforming to the USB AUTH standard, and then included in the Security_Response PD message. For example, the device information can be included as leaf certificate information in the Security_Response PD message in response to the Security_Request PD message requesting a certificate chain.
[0059] In step S306, the control unit 107 determines whether the power supply device 120 has been successfully authenticated. If it is determined that the power supply device 120 has been successfully authenticated, the control unit 107 proceeds to the process of step S307. If it is determined that the power supply device 120 has not been successfully authenticated, the control unit 107 proceeds to the process of step S312. If the authentication unit 103 determines that the power supply device 120 is a predetermined device, the control unit 107 determines that the power supply device 120 has been successfully authenticated.
[0060] In step S307, the control unit 107 instructs the authentication unit 103 to start authentication communication with the cable 130. Then, the authentication unit 103 performs authentication communication with the cable 130 via the PD communication unit 102. In the authentication communication, the power receiving device 100 operates as the authentication initiator, and the cable 130 operates as the authentication responder.
[0061] The authentication unit 103 determines whether the cable 130 is a predetermined device (i.e., a device conforming to the USB PD standard). For example, the authentication unit 103 can make the determination based on whether the predetermined authentication information specified in the USB AUTH standard is received from the cable 130 within a predetermined time period through the authentication communication. The authentication unit 103 notifies the control unit 107 of the determination result. Step S307 can be performed similarly to step S305 except that the partner of the authentication communication is different.
[0062] In step S308, the control unit 107 determines whether the cable 130 has been successfully authenticated. If it is determined that the cable 130 has been successfully authenticated, the control unit 107 proceeds to the process of step S310. If it is determined that the cable 130 has not been successfully authenticated, the control unit 107 proceeds to the process of step S309. If the authentication unit 103 determines that the cable 130 is a predetermined device, the control unit 107 determines that the cable 130 has been successfully authenticated.
[0063] In step S309, the authentication unit 103 determines whether the power supply device 120 is a cableless power supply device based on the device information obtained in step S305. In Figure 4In the case of the device information shown, if the lower 2 bytes of the value stored in the data field 503 are 0001h, the authentication unit 103 determines that the power supply device 120 is a cableless type power supply device. If the lower 2 bytes of the value stored in the data field 503 are 0000h, the authentication unit 103 determines that the power supply device 120 is not a cableless type power supply device. The authentication unit 103 notifies the control unit 107 of the determination result.
[0064] If it is determined that the power supply device 120 is a cableless type power supply device, the control unit 107 proceeds to step S310. If it is determined that the power supply device 120 is not a cableless type power supply device, the control unit 107 proceeds to the process of step S312.
[0065] If the power supply device 120 is not a cableless type power supply device, the cable 130 is a separate cable (i.e., a cable separated from the power supply device 120). Therefore, if it is determined that the cable 130 is not a predetermined device, the cable 130 is considered inappropriate.
[0066] On the other hand, if the power supply device 120 is a cableless type power supply device, it is considered that the authentication result indication of the power supply device 120 includes the authentication result of the configuration including the cable 130. Therefore, if it is determined that the power supply device 120 is a predetermined device, it can be considered that it is also determined that the cable 130 is a predetermined device.
[0067] In step S310, the control unit 107 causes the PD communication unit 102 to send a message requesting the power supply device 120 to supply second power. The second power can be greater than the first power and is generally the power required when the functions of the power receiving device 100 are not restricted. The control unit 107 also selects the second power from the powers that the power supply device 120 can supply. The control unit 107 selects, for example, 30W (15V, 2A) as the second power.
[0068] In step S311, when the control unit 107 receives a message indicating acceptance of the power supply request from the power supply device 120 via the PD communication unit 102, it sets the operation of the power receiving unit 104. For example, the control unit 107 sets the power receiving unit 104 to control the current to 2A or less so that the power to be supplied does not exceed the second power. The power receiving unit 104 supplies the second power supplied from the power supply device 120 to components such as the load 105. Note that at this time, the function restrictions during the period when the first power is being supplied can be removed or reduced.
[0069] In step S312, the control unit 107 causes the PD communication unit 102 to stop PD communication. Accordingly, the supply of the first power from the power supply device 120 is stopped. As a result, the power supply device 120 and the power receiving device 100 return to the states they were in before the start of PD communication. When the process of step S312 is performed based on the determination result of step S306, the control unit 107 can continue the operation of the power receiving device 100 with the first power without stopping the communication conforming to the USB PD standard. Accordingly, a part of the functions of the power receiving device 100 can be continued while ensuring a certain level of safety.
[0070] In Figure 3 In the flowchart of, if the cable 130 has not been successfully authenticated ("No" in step S308), it is determined whether the power supply device 120 is a cableless type (step S309). However, if the power supply device 120 has been successfully authenticated ("Yes" in step S306), it can be determined whether the power supply device 120 is a cableless type (step S309). In this case, if the power supply device 120 is determined to be a cableless type, the authentication communication with the cable 130 can be omitted.
[0071] In this case, the control unit 107 performs the process of step S309 before step S307. Then, if it is determined that the power supply device 120 is a cableless type, the control unit 107 performs step S310. If it is not determined that the power supply device 120 is a cableless type, the control unit 107 performs the authentication communication with the cable in step S307. If the cable has not been successfully authenticated ("No" in step S308), the control unit 107 performs the process of step S312.
[0072] As described above, if it is determined that the power supply device 120 is a cableless type power supply device and the power supply device 120 has been successfully authenticated, the power receiving device 100 according to the first embodiment can appropriately control the power supply from the power supply device 120 to the power receiving device 100. For example, if it is determined that the power supply device 120 is a cableless type, it can be considered that the cable 130 has been successfully authenticated or the authentication communication with the cable 130 is not performed.
[0073] [Second Embodiment]
[0074] Next, reference will be made to Figure 5 and Figure 6 to describe the second embodiment. Since the configurations of the power supply device 120 and the power receiving device 100 according to the second embodiment are the same as those in the first embodiment, their descriptions will be omitted.
[0075] Reference will be made to Figure 5The flowchart describes the processing performed by the power receiving device 100 according to the second embodiment. In Figure 5 , the same reference numerals as those in Figure 3 where the same processing as in the first embodiment is performed are assigned, and their descriptions will be omitted.
[0076] After starting to receive the supply of the first power in step S304, the control unit 107 instructs the authentication unit 103 to start authentication communication with the power supply device 120 in step S501. Then, the authentication unit 103 performs authentication communication with the power supply device 120 via the PD communication unit 102. The content of the authentication communication is the same as that in the first embodiment, but the power supply device 120 does not include the device information in the response message (Security_Response PD message) in the authentication communication. Therefore, at the time point when the authentication communication is completed, the power receiving device 100 has not acquired the device information of the power supply device 120.
[0077] According to the second embodiment, when it is determined in step S308 that the cable 130 has not been successfully authenticated, the control unit 107 performs the processing of step S502. Note that since the processing when it is determined in step S308 that the cable 130 has been successfully authenticated is the same as that in the first embodiment, their descriptions will be omitted.
[0078] In step S502, the control unit 107 performs PD communication with the power supply device 120 via the PD communication unit 102 and acquires the device information from the power supply device 120. The control unit 107 can acquire the device information from the power supply device 120 using, for example, the Vendor_Defined message (VDM) specified in the USB PD standard.
[0079] Figure 6 An example of the VDM format that can be used in step S502 and an example of the VDM message for sending the device information from the power supply device 120 to the power receiving device 100 are shown. The preamble 701 indicates the start of the message and is used for communication synchronization. A fixed value is stored in the preamble 701. The data specifying the message destination is stored in the SOP (Start of Packet) 702. Here, the value indicating that the communication is addressed to the power receiving device 100 (port partner) is included.
[0080] The message header 703 is a message header that indicates communication-related information such as the message type, and although not shown, a value conforming to the USB PD standard indicating that the message is a VDM is stored in the message header 703. The data to be sent in the message (here, device information) is stored in the VDM 704. The device information can be the same as or different from that in the first embodiment, as long as the device information includes information that can identify whether the power supply device 120 is a cable-free type. The cyclic redundancy code for verifying whether the message has been correctly sent is stored in the CRC 705. A value indicating the end of the message is stored in the EOP 706.
[0081] The VDM 704 includes a vendor ID 7041, a VDM type 7042, and vendor use 7043. A 16-bit value assigned to each device vendor is stored in the vendor ID 7041. A 1-bit value indicating the VDM type is stored in the VDM type 7042. The value 0h indicates that the type of the VDM is an unstructured VDM. The vendor use 7043 is a 15-bit area, and the device information is stored in this area. The value 001h is device information indicating that the power supply device 120 is a cable-free type device. If the power supply device 120 is not a cable-free type, the value 000h is stored in the vendor use 7043.
[0082] Here, although the device information is stored in the message in plain text, the device information can be encrypted and stored in the message. The device information can be encrypted by any method that can be decrypted in the power receiving device 100. For example, the key information used in the authentication communication in step S305 can be used to encrypt the device information.
[0083] In step S309, the authentication unit 103 of the power receiving device 100 determines whether the power supply device 120 is a cable-free type power supply device based on the device information obtained from the power supply device 120 in step S502. Since the subsequent processing is the same as that in the first embodiment, the description thereof will be omitted.
[0084] In Figure 5 In the flowchart of, if the cable 130 has not been successfully authenticated ("No" in step S308), the device information of the power supply device 120 is obtained and a determination is made as to whether the power supply device 120 is a cable-free type (i.e., steps S502 and S309). However, if the power supply device has been successfully authenticated ("Yes" in step S306), steps S502 and S309 can be performed to determine whether the power supply device 120 is a cable-free type. Then, if the power supply device 120 is determined to be a cable-free type, the authentication communication with the cable 130 (step S307) can be omitted.
[0085] In this case, the control unit 107 performs the processes of steps S502 and S309 before step S307. Then, if it is determined that the power supply device 120 is a no-extra-cable type, the control unit 107 proceeds to step S310. If it is not determined that the power supply device 120 is a no-extra-cable type, in step S307, the control unit 107 performs authentication communication with the cable 130. If the cable 130 has not been successfully authenticated ("No" in step S308), the control unit 107 performs the process of step S312.
[0086] As described above, the power receiving device 100 according to the second embodiment can obtain information indicating whether the power supply device 120 is a no-extra-cable type power supply device through communication different from the authentication communication related to power supply. Therefore, similar to the first embodiment, even if the power supply device 120 is a no-extra-cable type power supply device, the second embodiment can appropriately control the power supply from the power supply device 120 to the power receiving device 100.
[0087] [Third Embodiment]
[0088] Next, the third embodiment will be described with reference to Figures 7 to 9 is a block diagram for showing a configuration example of the power receiving device 100' and the power supply device 120' according to the third embodiment. Among the components of the power supply device 120' according to the third embodiment, the same reference numerals as those
[0089] Figure 7 in are assigned to the components described in the first embodiment, and their descriptions will be omitted. Among the components of the power receiving device 100' according to the third embodiment, the same reference numerals as those Figure 2 in are assigned to the components described in the first embodiment, and their descriptions will be omitted. Figure 2
[0090] The detection unit 801 included in the power receiving device 100' is connected to one or both of the SBU1 terminal and the SBU2 terminal of the socket 110. The detection unit 801 detects whether the power supply device 120 connected through the cable 130 is a no-extra-cable type. The detection unit 801 notifies the control unit 107 of the detection result.
[0091] The notification unit 803 included in the power supply device 120' is connected to one or both of the SBU1 terminal and the SBU2 terminal of the plug 140. The notification unit 803 notifies the power receiving device 100' whether the power supply device 120' is a no-extra-cable type. The notification unit 803 can be composed of a plurality of passive components or the like.
[0092] Since both the detection unit 801 and the notification unit 803 are connected to the (one or more) SBU terminals, when the plug 140 of the power supply device 120' is connected to the socket 110 of the power receiving device 100', the notification unit 803 is electrically connected to the detection unit 801.
[0093] Figures 8A to 8D FIG. is a diagram showing a configuration example of the notification unit 803. Figures 8A to 8D The illustrated configuration example is merely an example, and the notification unit 803 may adopt any configuration that uses at least one of the SBU1 terminal and the SBU2 terminal to notify the device information of the power supply device 120' to the power receiving device 100'. The device information may be any information that the power receiving device 100' can use to at least be able to identify whether the power supply device 120' is a cableless type.
[0094] Figure 8A The illustrated notification unit 803 has a resistor 8031 for connecting the SBU1 terminal and the SBU2 terminal. The value of the resistor 8031 is arbitrary. In addition, assume the following configuration, which causes the detection unit 801 to supply a constant current to the SBU1 terminal (or the SBU2 terminal) and monitor the voltage of the SBU2 terminal (or the SBU1 terminal). In this case, when the plug 140 of the power supply device 120' is connected to the socket 110 of the power receiving device 100', the detection unit 801 detects that the SBU1 terminal and the SBU2 terminal are connected through the resistor in the notification 803 unit.
[0095] Figure 8B The illustrated notification unit 803 has a pull-up resistor 8032 connected to the SBU1 terminal. The value of the pull-up resistor 8032 and the potential of the power supply are both arbitrary. The SBU2 terminal (or the SBU1 terminal) is open. In addition, assume the following configuration, which causes the detection unit 801 to monitor the potential of the SBU1 terminal. In this case, when the plug 140 of the power supply device 120' is connected to the socket 110 of the power receiving device 100', the detection unit 801 detects that the potential of the SBU1 terminal has reached a predetermined value or higher. The pull-up resistor 8032 may be connected to the SBU2 terminal instead of the SBU1 terminal, or the pull-up resistor 8032 may be connected to each of the SBU1 terminal and the SBU2 terminal.
[0096] Figure 8CThe notification unit 803 shown has resistors 8033 and 8034 connected in series between a power supply and GND, and the SBU1 terminal is connected to the connection point between resistors 8033 and 8034. The potential of the power supply and the values of resistors 8033 and 8034 are arbitrary. Assuming that the value of resistor 8033 is R1 and the value of resistor 8034 is R2, the SBU1 terminal has a voltage corresponding to the values of R1 and R2. Further, assume the following configuration that enables the detection unit 801 to monitor the potential of the SBU1 terminal. In this case, when the plug 140 of the power supply device 120' is connected to the socket 110 of the power receiving device 100', the detection unit 801 detects that the potential of the SBU1 terminal has reached a predetermined value. Note that instead of the SBU1 terminal, the SBU2 terminal may be connected to resistors 8033 and 8034. Additionally, each of the SBU2 terminal and the SBU1 terminal may be connected to resistors 8033 and 8034.
[0097] In Figure 8D the notification unit 803 shown, both the SBU1 terminal and the SBU2 terminal are in an open state. In this case, even when the plug 140 of the power supply device 120' is connected to the socket 110 of the power receiving device 100', the detection unit 801 cannot detect a change in the potential of the SBU1 terminal and the SBU2 terminal.
[0098] According to the third embodiment, assume that when the power supply device 120' is a no-extra-cable type, the power supply device 120' has a notification unit 803 having Figures 8A to 8C the configuration shown in any of Figure 8D In addition, assume that when the power supply device 120' is not a no-extra-cable type, the power supply device 120' has a notification unit 803 having Figure 8D the configuration shown. Further, the detection unit 801 is configured to be able to detect whether the connected power supply device 120' is a no-extra-cable type based on the potential of at least one of the SBU1 terminal and the SBU2 terminal. Here, assume that the notification unit 803 uses the potential of the SBU1 terminal and / or the SBU2 terminal to notify device information, and the detection unit 801 performs detection based on the potential of the SBU1 terminal and / or the SBU2 terminal. However, if the notification unit 803 is to notify device information in other ways, the method by which the detection unit 801 detects whether the power supply device 120' is a no-extra-cable type may be correspondingly different.
[0099] Next, the processing performed by the power receiving device 100' according to the third embodiment will be described with reference to the Figure 9 flowchart. In Figure 9 the same reference numerals as in Figure 3 are assigned to the steps that perform the same processing as in the first embodiment, and inFigure 5 The same reference numerals in the drawings are assigned to the steps that perform the same processing as in the second embodiment, and their descriptions will be omitted.
[0100] In Figure 9 up to step S301 to S308, the processing is the same as that in the second embodiment. When it is determined in step S308 that the cable 130 has not been successfully authenticated, the control unit 107 performs the processing of step S901. Note that since the processing when it is determined in step S308 that the cable 130 has been successfully authenticated is the same as that in the first embodiment, their descriptions will be omitted.
[0101] In step S901, the detection unit 801 detects whether the power supply device 120' is a cableless type from the notification unit 803 based on the potentials of the SBU1 terminal and the SBU2 terminal. For example, if it is detected that the notification unit 803 having the configuration shown in any of Figures 8A to 8C is connected, the detection unit 801 detects that the power supply device 120' is a cableless type. For example, if it is detected that the notification unit 803 having the configuration shown in Figure 8D is connected, the detection unit 801 detects that the power supply device 120' is not a cableless type.
[0102] Here, it is assumed that the detection unit 801 notifies the control unit 107 of the detection result when it detects that the power supply device 120' is a cableless type, and does not notify the control unit 107 of the detection result when it detects that the power supply device 120' is not a cableless type.
[0103] In step S902, the control unit 107 determines whether the power supply device 120' is a cableless type power supply device based on whether there is a notification from the detection unit 801. Then, if it is determined that the power supply device 120' is a cableless type power supply device, the control unit 107 performs step S310. In addition, if it is determined that the power supply device 120' is not a cableless type power supply device, the control unit 107 performs the processing of step S312.
[0104] In Figure 9 's flowchart, if the cable 130 has not been successfully authenticated ("No" in step S308), the detection unit 801 determines whether the power supply device 120' is a cableless type (step S901). However, the following configuration can be adopted to perform step S901 when the power supply device 120' has been successfully authenticated ("Yes" in step S306) and determine whether the power supply device 120' is a cableless type. Then, the following configuration can be adopted so that when the power supply device 120' is determined to be a cableless type, the authentication communication with the cable 130 is not performed.
[0105] In this case, the detection unit 801 performs the process of step S901 at any point in time from when the power supply device 120' is connected until before step S307. Then, the control unit 107 performs the process of step S902 between steps S306 and S307. If it is determined that the power supply device 120' is a cableless type, the control unit 107 performs step S310. Further, if it is not determined that the power supply device 120' is a cableless type, in step S307, the control unit 107 performs authentication communication with the cable 130. If the cable 130 has not been successfully authenticated ("No" in step S308), the control unit 107 performs the process of step S312.
[0106] As described above, the power receiving device 100' according to the third embodiment can use terminals different from those used in the authentication communication related to power supply to obtain information indicating whether the power supply device 120' is a cableless type power supply device. Therefore, similar to the first embodiment, even if the power supply device 120' is a cableless type power supply device, the third embodiment can appropriately control the power supply from the power supply device 120' to the power receiving device 100'.
[0107] [Fourth Embodiment]
[0108] The various functions, processes, or methods described in the above embodiments can also be implemented by a personal computer, a microcomputer, a CPU (Central Processing Unit), or a microprocessor executing a program. Hereinafter, in the fourth embodiment, a personal computer, a microcomputer, a CPU (Central Processing Unit), or a microprocessor is referred to as "computer X". In the fourth embodiment, a program for controlling computer X and implementing the various functions, processes, or methods described in the above embodiments is referred to as "program Y".
[0109] The various functions, processes, or methods described in the above embodiments are implemented by computer X executing program Y. In this case, program Y can be provided to computer X via a computer-readable storage medium. The computer-readable storage medium in the fourth embodiment includes at least one of a hard disk device, a magnetic storage device, an optical storage device, a magneto-optical storage device, a memory card, a volatile memory, a non-volatile memory, and the like. The computer-readable storage medium of the fourth embodiment is a non-transitory storage medium.
[0110] Although various embodiments of the present disclosure have been described with reference to exemplary embodiments, it should be understood that aspects of the present disclosure are not limited to the exemplary embodiments. The scope of the appended claims should be given the broadest interpretation to cover all such modifications and equivalent structures.
Claims
1. An electronic device, comprising: An authentication unit for performing a first authentication communication with a power supply device to determine whether the power supply device is a predetermined device, and performing a second authentication communication with a cable connecting the power supply device to the electronic device to determine whether the cable is the predetermined device; and A control unit for requesting a second power greater than a first power from the power supply device when the first authentication communication and the second authentication communication are successful; wherein, when the first authentication communication is successful and the power supply device is determined to be a cableless power supply device, even if the second authentication communication is unsuccessful, the control unit requests the second power from the power supply device; wherein the cableless power supply device is a first power supply device having an integrated cable; or a second power supply device having a connector capable of connecting to a power receiving device without using a cable.
2. The electronic device according to claim 1, wherein, The authentication unit determines whether the power supply device is a cableless power supply device based on information obtained in the first authentication communication with the power supply device.
3. The electronic device according to claim 1, wherein, The authentication unit determines whether the power supply device is a cableless power supply device based on information obtained in a communication different from the first authentication communication.
4. The electronic device according to claim 1, wherein, The authentication unit determines whether the power supply device is a cableless power supply device based on information obtained through other terminals different from the terminals used in the first authentication communication with the power supply device.
5. The electronic device according to claim 4, wherein, The information obtained through the other terminals is the voltage of the other terminals.
6. The electronic device according to claim 1, wherein, The electronic device is a power receiving device.
7. The electronic device according to claim 1, wherein, The first authentication communication and the second authentication communication comply with the USB Type-C authentication standard, and the predetermined device is a device compliant with the USB Power Delivery standard.
8. A control method, comprising the following steps: Perform a first authentication communication with a power supply device to determine whether the power supply device is a predetermined device, and perform a second authentication communication with a cable connecting the power supply device to an electronic device to determine whether the cable is the predetermined device; When the first authentication communication and the second authentication communication are successful, request a second power greater than a first power from the power supply device; and When the first authentication communication is successful and the power supply device is determined to be a cableless power supply device, even if the second authentication communication is unsuccessful, request the second power from the power supply device; wherein the cableless power supply device is a first power supply device having an integrated cable; or a second power supply device having a connector capable of connecting to a power receiving device without using a cable.
9. A storage medium storing a program for causing a computer to execute a method, the method comprising the following steps: Perform a first authentication communication with a power supply device to determine whether the power supply device is a predetermined device, and perform a second authentication communication with a cable connecting the power supply device to an electronic device to determine whether the cable is the predetermined device; When the first authentication communication and the second authentication communication are successful, request a second power greater than a first power from the power supply device; and In the case where the first authentication communication is successful and the power supply device is determined to be a cableless additional power supply device, even if the second authentication communication is unsuccessful, request the second power from the power supply device. wherein, the cableless additional power supply device is a first power supply device having an integrated cable; or a second power supply device having a connector capable of connecting to a power receiving device without using a cable.
10. A computer program product comprising a program for causing a computer to execute a method, the method comprising the following steps: Perform a first authentication communication with the power supply device to determine whether the power supply device is a predetermined device, and perform a second authentication communication with the cable connecting the power supply device to the electronic device to determine whether the cable is the predetermined device; In the case where the first authentication communication and the second authentication communication are successful, request a second power greater than the first power from the power supply device; and In the case where the first authentication communication is successful and the power supply device is determined to be a cableless additional power supply device, even if the second authentication communication is unsuccessful, request the second power from the power supply device. wherein, the cableless additional power supply device is a first power supply device having an integrated cable; or a second power supply device having a connector capable of connecting to a power receiving device without using a cable.
Citation Information
Patent Citations
Power supply device, power supply system, and control method for power supply device
JP2018097643A
Power feeding system and power feed control method
CN106445860A
Electronic device, and control method thereof
US20190212795A1