Electronic device, control method, and program

The electronic device addresses the challenge of USB charging by using a control unit and dual connection means to ensure battery charging even when enumeration processing does not begin with the power supply device's power, achieving reliable and efficient charging.

JP7608590B2Active Publication Date: 2025-01-06CANON KK
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2023222553
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2023-12-28
Publication Date
2025-01-06
Estimated Expiration
2040-01-31

AI Technical Summary

Technical Problem

Existing technologies fail to properly charge batteries via USB when the controller that performs enumeration processing does not start with the power supplied by the power supply device before the enumeration process is performed.

Method used

An electronic device with a control unit capable of executing enumeration processing, a first connection means for USB standard connection, and a second connection means for AC power, allowing power reception from a battery when the AC power source is not connected, and executing enumeration and power supply settings based on USB standards.

Benefits of technology

Enables proper battery charging via USB even when the enumeration process does not start with the power supplied by the power supply device, ensuring reliable power supply and efficient charging.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007608590000001
    Figure 0007608590000001
  • Figure 0007608590000002
    Figure 0007608590000002
  • Figure 0007608590000003
    Figure 0007608590000003
Patent Text Reader

Abstract

To provide a technique that appropriately charges a battery by using a USB even in a form where a controller performing enumeration processing is not started up.SOLUTION: A first processing unit performs enumeration processing in a specific state where a connection with a partner apparatus conforming to the USB standard is established and a connection with an AC power supply is not established. A second processing unit performs the enumeration processing in a predetermined state where the connection with the partner apparatus conforming to the USB standard and the connection with the AC power supply are both established. An execution unit, when the enumeration processing is completed in the specific state, performs settings for power supply conforming to the USB standard in the specific state, and when the enumeration processing is completed in the predetermined state, performs the settings for power supply conforming to the USB standard in the predetermined state. A starting unit, when the connection between the AC power supply and a second connection unit is cut off in the predetermined state, starts supply of power conforming to the USB standard based on settings before the connection between the AC power supply and the second connection unit is cut off.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an electronic device, a control method, and a program. [Background technology]

[0002] In recent years, devices that support USB charging, which charges batteries (auxiliary power sources) via USB (Universal Serial Bus), have been increasing. In USB charging, an enumeration process can be performed between a power supply device and the electronic device that performs the charging. In one protocol of the USB 2.0 standard, the power that the power supply device can supply is up to 100 mA at the time of connection with the electronic device. In this protocol, an enumeration process is performed after USB connection, and when the electronic device becomes configured by the power supply device, the power that the power supply device can supply can be increased to a maximum of 500 mA.

[0003] Patent Document 1 discloses a technique for charging a battery with a first power when enumeration is complete, and charging the battery with a second power greater than the first power when it is determined that enumeration is not complete. This makes it possible to charge the battery with a large power even when enumeration is not complete. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] Patent Application No. 2011-69318 Summary of the Invention [Problem to be solved by the invention]

[0005] However, the technology disclosed in Patent Document 1 assumes a mode in which the controller performing the enumeration process can be started with the power that the power supply device can supply via USB before the enumeration process is performed. Therefore, the technology disclosed in Patent Document 1 cannot properly charge the battery via USB in a mode in which the controller performing the enumeration process does not start with the power that the power supply device can supply via USB before the enumeration process is performed.

[0006] The present invention has been made in consideration of the above-mentioned problems, and aims to provide a technology that properly charges a battery via USB, even in a configuration in which the controller performing the enumeration process is not started, with the power that a power supply device can supply via USB before the enumeration process is performed. [Means for solving the problem]

[0007] The present invention relates to an electronic device having a battery capable of storing power, a control unit capable of executing an enumeration process based on the Universal Serial Bus (USB) standard, a first connection means for connecting to a counterpart device according to the USB standard, and a second connection means for connecting to an AC power source, wherein when the counterpart device and the first connection means are connected according to the USB standard with the second connection means not connected to the AC power source, the control unit is started up by being supplied with power from the battery, and when the counterpart device and the first connection means are connected according to the USB standard with the second connection means not connected to the AC power source, a connection between the counterpart device and the first connection means according to the USB standard is established but a connection between the AC power source and the second connection means is not established, a first processing unit for executing the enumeration process by the control unit in a specific state, and The device is characterized in that it comprises: a second processing means for executing the enumeration process by the control unit in a predetermined state in which, when one connection means is connected to the other device according to the USB standard, both the connection between the other device and the first connection means according to the USB standard and the connection between the AC power source and the second connection means are established; an execution means for executing settings related to power supply according to the USB standard in the predetermined state when the enumeration process is completed in the specific state, and for executing settings related to power supply according to the USB standard in the predetermined state when the enumeration process is completed in the specific state; and an initiation means for starting power supply according to the USB standard based on the settings executed before the connection between the AC power source and the second connection means was disconnected when the connection between the AC power source and the second connection means is disconnected in the specified state. Effect of the Invention

[0008] According to the present invention, it is possible to properly charge a battery via USB even in a configuration in which the controller performing the enumeration process is not started up with the power that the power supply device can supply via USB before the enumeration process is performed. [Brief description of the drawings]

[0009] [Figure 1] 1 is an external perspective view of an electronic device according to an embodiment of the present invention. [Diagram 2] 2 is a perspective view showing an internal structure of the electronic device shown in FIG. [Diagram 3] FIG. 2 is a block diagram showing a control configuration of the electronic device. [Figure 4] 13 is a flowchart showing a UFB charging process. [Diagram 5] 11 is a flowchart showing a USB connection process during AC charging. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] Further, electronic devices according to the embodiments of the present invention will be described in detail with reference to the drawings. In this embodiment, an inkjet type recording device that ejects ink to perform a recording operation (printing operation) will be described as an example of the electronic device. However, the electronic device is not limited to the above-mentioned form, and may be any device that can receive power supply via a USB cable. Specifically, for example, the electronic device may be a recording device that performs a recording operation by a method other than the inkjet method. Furthermore, the electronic device may be a device other than a recording device (personal computer, smartphone, scanner, digital camera, smart speaker, etc.). Furthermore, the following embodiments do not limit the present invention according to the claims, and all of the features and combinations thereof described in the present embodiment are not necessarily essential to the solution of the present invention.

[0011] 1 is a perspective view showing the appearance of the recording apparatus PRI according to the present embodiment. The recording apparatus PRI has a recording apparatus main body 10 and a battery module 20 that is detachable from the recording apparatus main body 10.

[0012] The recording device main body 10 has a housing section 10a that forms the outer shell thereof, which is composed of an upper case 11, a lower case 12, a paper feed cover 13, and a paper discharge cover 14. A drive mechanism 40 (FIG. 2), which will be described later, is housed within the housing section 10a. FIG. 1 shows the state of the recording device PRI when not in use (when stationary, when carried, etc.). When the recording device PRI is in use, the paper feed cover 13 can be opened to the rear side to become a supply tray on which recording sheets are placed.

[0013] In addition, an I / F (interface) connector 15 and a DCin jack (a jack for inputting direct current power) 16 are provided on the side of the recording device main body 10. The I / F (interface) connector 15 is for connecting a USB (Universal Serial Bus) cable. The DCin jack (a jack for inputting direct current power) 16 is used to insert an AC adapter cable (not shown) used when receiving power from an AC power source.

[0014] The battery module 20 has a housing 20a that forms its outer shell and is composed of a main case 21, a cover case 22, and a battery lid 23. A battery pack 54 (not shown) with a built-in lithium ion battery is housed inside the housing 20a. By removing the battery lid 23 and opening the main case 21, the battery pack 54 can be removed from the housing 20a. In addition, a body connector 24 for electrically connecting to the recording device body 10 and fixing screws 25 and 26 for mechanically fixing to the recording device body 10 are provided on the mounting surface (connection surface) of the battery module 20 to the recording device body 10.

[0015] By mounting the battery module 20 on the recording device main body 10 in the direction of the arrow A in FIG. 1, the main body connector 24 is electrically connected to the recording device main body. In this state, by connecting the AC adapter 53 to the DCin jack 16, charging (AC charging) of the battery pack 54 using the AC adapter 53 as a power source becomes possible. The AC adapter 53 is a device that converts AC power supplied from a commercial power source outside the recording device main body 10 into DC power and supplies the converted DC power to the recording device main body 10. In a state in which the AC adapter 53 connected to the recording device main body 10 is connected via a connector such as an outlet or a plug, power is supplied from the AC adapter 53 to the recording device main body 10. In addition, when the AC adapter 53 is connected to the recording device main body 10, the recording device main body 10 is driven by power supplied from the AC adapter 53, not by power supplied from the battery pack 54. Then, when the AC adapter 53 is connected to the recording device main body 10 and the recording device main body 10 is in a hard-off state, the battery pack 54 is charged by power supplied from the AC adapter 53. In this embodiment, the AC adapter 53 is connected to the recording device main body 10 by an interface other than USB. Therefore, the recording device main body 10 can receive a sufficiently large supply of power from the AC adapter 53 without performing an enumeration process based on the USB standard.

[0016] In this embodiment, the power supply device and the I / F connector 15 are connected via a USB cable, so that the battery pack 54 can be charged (USB charging) from the power supply device via the USB bus. After the battery pack 54 is charged, even if the power supply from the outside is cut off, the recording device PRI can be driven by the power supplied from the battery. A charging display unit 27 that indicates the charging state of the battery is provided on the top surface of the battery module 20. The power supply device is, for example, a device as an external power source, such as a host PC (personal computer) or a mobile battery. When the host PC and the recording device main body 10 are connected via a USB cable, an enumeration process based on the USB standard can be executed. The enumeration process is a series of data communications for the OS (operating system) of the host PC to recognize the device (here, the recording device main body 10) connected via the USB. When the enumeration process is completed, the OS of the host PC can recognize various information of the device connected via the USB. Furthermore, when the host PC and the recording device main body 10 are connected via a USB cable, not only charging via the USB cable but also any data communication (print data communication, etc.) via the USB cable is possible between the host PC and the recording device main body 10. That is, in this embodiment, when the recording device main body 10 is in the soft-on state, the recording device main body 10 can receive print data from the host PC via the USB cable and execute printing based on the received print data.

[0017] 2 is a perspective view showing a drive mechanism 40 of the recording device PRI. The recording device PRI has a transport roller 31, a guide rail 33, a carriage 34, an ink tank 35a, a recording head (recording means) 35b, a carriage belt 43, a carriage motor 44, a transport motor 48, and a flexible cable 49. The recording head 35b is mounted on the carriage 34 and can move back and forth in the main scanning direction (X direction) along the guide rail 33. Ejection data representing ejection or non-ejection of ink, which is generated based on input image data, is supplied to the recording head 35b via the flexible cable 49. The recording head 35b ejects ink based on this ejection data. The ejected ink lands on the recording medium 32 supported at a small interval from the recording head 35b, and records (prints) an image on the recording medium 32.

[0018] The carriage motor 44 is a motor for scanning the carriage 34 along the guide rail 33. The driving force of the carriage motor 44 is transmitted to the carriage 34 via the carriage belt 43. The transport motor 48 is a motor for rotating the transport roller 31 so as to move the recording medium 32 in a direction (Y direction) intersecting the main scanning direction, and the transport motor 48 and the transport roller 31 constitute a transport means (moving means) for transporting the recording medium. In this way, the recording device in this embodiment is a serial type recording device that performs recording by reciprocating the recording head 35b that ejects ink along the main scanning direction while intermittently transporting the recording medium in the Y direction.

[0019] In this embodiment, the recording head 35b is combined with the ink tank 35a to form a head cartridge. This head cartridge may be configured so that the recording head 35b and the ink tank 35a are separable, or may be configured so that they are integrated together.

[0020] 3 is a block diagram showing the control configuration of the recording device PRI. The recording device main body 10 is provided with an ASIC (Application Specific Integrated Circuit) 50 as a control unit for controlling the recording device PRI, a head unit 51, a power supply switching circuit 66, a boost circuit 67, a heat voltage SW (switch) 68, a step-down circuit 70, and a bus SW 56. In this embodiment, the ASIC 50 (or a CPU 58 mounted on the ASIC 50) is a controller that executes the enumeration process. The recording device main body 10 is also provided with the aforementioned I / F connector 15 for connecting a power supply device (here, a host PC 52) serving as a first external power source, and a DCin jack 16 for detachably connecting an AC adapter 53 serving as a second external power source.

[0021] The host PC 52 transmits image data relating to an image to be recorded by the recording device main body 10 and various control commands to the recording device main body 10 via a USB cable. The control commands and recording data transmitted from the host PC 52 are received by an interface (I / F) circuit 55 provided in the ASIC 50 via an I / F connector 15 and a bus SW 56. The bus SW 56 is controlled by a bus SW control unit 57, and is configured so that the D+D- pins of the host PC 52 can be selectively connected to either the ASIC 50 or a battery pack 54 serving as an auxiliary power source.

[0022] The control command received by the interface (I / F) circuit 55 is analyzed by a CPU (Central Processing Unit) 58, and the printing device PRI is controlled in accordance with this control command. The print data received by the interface (I / F) circuit 55 is sent to an image processing unit 59. The image processing unit 59 performs image processing according to the printing method to be executed among various printing methods, and stores the data in an image memory 60 as ejection data indicating whether or not ink is ejected. The stored ejection data is read out from the image memory 60 when printing.

[0023] The data transmission unit 61 provided in the ASIC 50 transmits the recording data read from the image memory 60 to the head unit 51. The ASIC 50 also includes an enumeration processing unit 77 for performing an enumeration process between the host PC 52 and the recording device main body 10 when the host PC 52 is connected to the recording device main body 10. The processing result of the enumeration processing unit 77 is notified to a BMU 73 (described later) provided in the battery pack 54 via a battery interface (I / F) 78. The heat voltage control unit 69 provided in the ASIC 50 also outputs an instruction to control the ON / OFF of the heat voltage SW 68. In this embodiment, the ASIC 50 includes a CPU 58 that controls the ASIC 50. Therefore, the processing performed by the ASIC 50 in the description of this embodiment is performed by the CPU 58 controlling the AISC 50.

[0024] The head unit 51 is also composed of the above-mentioned recording head 35b, the ink tank 35a, and a head driving section 70 that drives the recording head. The head driving section 70 receives the ejection data transmitted from the data transmitting section 61 at the data receiving section 62, and then inputs the data to the shift register 63. The shift register 63 outputs the ejection data to the data latch 64 as serial data. The data latch 64 temporarily stores the ejection data output from the shift register 63, converts it to parallel data, and outputs it to the heat circuit 65. The heat circuit 65 receives the ejection data output from the data latch 64 and heat pulse width information corresponding to the time for which the ejection energy generating element (heater) of the recording head is heated, and selectively drives the ejection energy generating element based on the received information to eject ink.

[0025] The recording device main body 10 can be driven using the output voltage VDC from the AC adapter 53 and the output voltage VBAT from the battery pack 54. The output voltage VDC and the output voltage VBAT used to drive the recording device main body 10 are selectively switched by a power supply switching circuit 66. In this embodiment, when both the AC adapter 53 and the battery pack 54 are connected to the recording device main body 10, the power supply switching circuit 66 is controlled so that the recording device is driven by the output voltage VDC from the AC adapter 53. The voltage output from the power supply switching circuit 66 is boosted by a boost circuit 67 to a voltage (heat voltage VI1) for heating the recording head by the heater (ejection energy generating element). The heat voltage SW 68 supplies / cuts off (ON / OFF) the heat voltage VII to the heat circuit 65. The ON / OFF control of the heat voltage SW 68 is performed by an instruction from a heat voltage control unit 69 mounted on the ASIC 50. Furthermore, the step-down circuit 70 steps down the voltage VM output from the step-up circuit 67 to generate a logic power supply voltage VDD used by the ASIC 50 and the head unit 51 .

[0026] The battery pack 54 also includes a LiB (Litium Ion Battery) 71 as a power source, a protection IC 72, a BMU 70 (Battery Management Unit) 73, a charging IC 74, a discharge switch 75, and a VBUS detection circuit 76. The protection IC 72 is an IC having a function for protecting the LiB 71 from abnormal operations such as over-discharging, over-charging, and over-current. The BMU 73 is a unit for mainly controlling discharging and charging the LiB 71, and is a processor mounted on the battery pack 54. The LiB 71, the BMU 73, the discharge switch 75, and the VBUS detection circuit 76 constitute an output means for outputting a predetermined power from the charging means to the ASIC 50 in response to a connection between the power supply device and the ASIC 50.

[0027] In addition, the BMU 73 communicates via a battery I / F (communication means) 78 mounted on the ASIC 50, and controls discharging and charging of the LiB 71 according to commands from the ASIC 50. In this embodiment, communication between the BMU 73 and the ASIC 50 is performed using a UART (Universal Asynchronous Receiver / Transmitter) method.

[0028] The charging IC 74 controls the charging current to the LiB 71 and controls ON / OFF of charging according to instructions from the BMU 73, and can charge using both the output voltage VDC from the AC adapter 53 and the voltage VBUS from the USB of the power supply device as power sources. The charging IC 74 is also connected to the D+D- pins via the bus SW 56, and judges the charging current according to the power supply device and the USB device that supplies power during USB charging. In this embodiment, judgment is made in accordance with the USB-BC (USB Battery Charge) standard (hereinafter referred to as BCS judgment). The BCS judgment is a process for judging which protocol is used for the USB connection between the power supply device and the recording device main body 10. Note that there are three types of protocols used for the USB connection between the power supply device and the recording device main body 10, for example, SDP (Standard Downstream Port), CDP (Charging Downstream Port), and DCP (Dedicated Charging Port). The SDP is a protocol used when the USB connection is made between the host PC 52 and the recording device main body 10 via a port other than the charge port of the host PC 52. When SDP is used, only power equivalent to 100 mA is permitted to be supplied to the recording device main body 10 until the enumeration process between the host PC 52 and the recording device main body 10 is completed. After the enumeration process is completed, power equivalent to a current greater than 100 mA (for example, 500 mA) is permitted to be supplied to the recording device main body 10. CDP is a protocol used when a USB connection is made between the host PC 52 and the recording device main body 10 via the charge port of the host PC 52. When CDP is used, power equivalent to a sufficiently large current (for example, 1.5 A) is permitted to be supplied before the enumeration process is completed between the host PC 52 and the recording device main body 10. DCP is a protocol used when a USB connection is made between a charging device such as a mobile battery and the recording device main body 10. When DCP is used, enumeration does not need to be performed between the mobile battery and the recording device main body 10.That is, even if the enumeration process is not performed, the supply of power equivalent to a sufficiently large current (for example, 1.5 A) is permitted. Therefore, in this embodiment, when the result of the BCS determination is SDP, charging with a charging current of 500 mA is permitted after the enumeration process is completed, and when the result of the BCS determination is CDP or DCP, charging with a charging current of 1.5 A is permitted. Note that in this embodiment, the ASIC50, which is the controller that performs the enumeration process, cannot be started with a power equivalent to 100 mA, but can be started with a power equivalent to a current sufficiently larger than 100 mA (for example, 500 mA).

[0029] The timing of the BCS determination can be controlled by the ASIC 50 via the battery I / F 78. The BCS determination result is transmitted to the ASIC 50 via the BMU 7073 and the battery I / F 78. The discharge SW 75 is a switch for turning on / off the voltage of the LiB 71, and is controlled by the BMU 7073. The VBUS detection circuit 76 is a circuit for detecting that a USB-compatible device such as a power supply device is connected to the I / F connector 15 of the recording device main body 10, and the detection result is transmitted to the BMU 70. The ASIC 50 is also equipped with an enumeration processing unit 77 for performing an enumeration process with the host PC 52 when the host PC 52 is connected. Information indicating the completion of the enumeration process is notified to the BMU 7073 via the battery I / F 78. In this embodiment, the BMU 7073 sets the charging current for the charging IC 74 based on the information indicating the completion of the enumeration process and the information indicating the BCS determination result.

[0030] Next, a charging process for the battery pack 54 connected to the recording device main body 10 will be described. First, a USB charging process for charging the battery pack 54 connected to the recording device main body 10 with power supplied from the recording device main body 10 will be described with reference to the flowchart shown in FIG. 4. The power state of the recording device main body 10 includes a hard-off state and a soft-on state, and the power state is switched by pressing the power button provided on the recording device main body 10. The hard-off state is a state in which power is not supplied to the head unit 51, etc., and a printing operation cannot be performed. On the other hand, the soft-on state is a state in which power is supplied to the head unit 51, etc., and a printing operation can be performed according to a print instruction. In the flowchart shown in FIG. 4, the recording device main body 10 is in a hard-off state, and the AC adapter 53 is not connected to the recording device main body 10. In the flowcharts of FIG. 4 and FIG. 5 referred to in this specification, the letter S attached to each process number means a step.

[0031] In S101, it is determined whether or not a power supply device is connected to the recording device main body 10 in the hard-off state via a USB cable. This determination is made by the BMU 73 based on the output from the VBUS detection circuit 76, which detects the state in which the power supply device is connected to the recording device main body 10. Note that the BMU 73 is supplied with the power remaining in the LiB 71. If it is determined in S101 that a power supply device is connected to the recording device main body 10 via a USB cable, the charging process shown in S102 and subsequent steps is started.

[0032] In S102, the BMU 70 sets the VBUS input current to the charging IC 74 to 100 mA. However, the ASIC 50 of the recording device PRI cannot be started with 100 mA of power. Therefore, in S103, the BMU 70 turns on the discharge SW 75 and supplies a predetermined power from the LiB 71 to the recording device main body 10 via the discharge SW 75. For this reason, it is assumed that at least the power for starting the ASIC 50 is stored in the LiB 71 in advance. Also, it is assumed that the power supplied at this time is equivalent to a current sufficiently larger than 100 mA. This predetermined power supplied from the LiB 71 is supplied to the ASIC 50 via the power supply switching circuit 66, the boost circuit 67, and the step-down circuit 70, and this starts up the ASIC 50 (S104).

[0033] Thereafter, in S105, the bus SW control unit 57 of the ASIC 50 switches the bus SW to the battery pack 54 side. Furthermore, in S106, the ASIC 50 transmits a command for starting the BCS judgment (hereinafter, BSC command) to the BMU 70 via the battery I / F 78. Upon receiving the judgment start command, the BMU 73 starts the BCS judgment. Here, the ASIC 50 performs a wait operation to wait for the BCS judgment result by the BMU 73 to be issued (S107), and then judges whether the BCS judgment has been normally ended (S108). If it is judged that the BCS judgment has been normally ended in the BMU 70, the bus SW control unit 57 switches the bus SW 56 to the ASIC 50 side (S109), enabling communication between the host PC 52 and the ASIC 50. In this state, the enumeration processing unit (enumeration processing means) 77 of the ASIC 50 executes a process for starting the enumeration process with the power supply device (S110), and then proceeds to S111. Note that when the protocol for the USB connection with the power supply device is DCP, even if the process of S110 is executed, the enumeration process does not actually start. The enumeration process actually starts when the protocol for the USB connection with the power supply device is SDP or CDP.

[0034] In S111, the BMU 73 judges whether the result of the BCS judgment is SDP or other (DCP or CDP), and transmits the judgment result to the ASIC 50. The transmitted judgment result is input to the CPU 58 via the battery I / F 78, the enumeration processing unit 77, and the I / F circuit 55. Thereafter, the ASIC 50 judges whether the enumeration process performed between the enumeration processing unit 77 and the host PC is completed (S112). If it is determined that the enumeration process is completed, the ASIC 50 transmits an enumeration completion command to the BMU 73 via the battery I / F 78 (S113).

[0035] Upon receiving the enumeration completion command, the BMU 73 changes the setting of the VBUS input current for the charging IC 74 from 100 mA to 500 mA (S114). After this, the BMU 73 issues a notification of charging permission to the charging IC 74 (S115). As a result, the BMU 73 starts charging the LiB 71 from the charging IC 74 with a charging current of 500 mA (S116), and charging ends when the specified charge amount is obtained.

[0036] On the other hand, if the result of the BCS determination is determined to be other than SDP, that is, DCP or CDP in S111, the ASIC 50 that has received the determination result transmits a command to stop the enumeration process by the enumeration processing unit 77. As a result, the enumeration process by the enumeration processing unit 77 stops (S117), and an enumeration stop command is transmitted to the BMU 73 via the battery I / F 78. As described above, even if the protocol for the USB connection with the power supply device is CDP, the enumeration process needs to be executed in order to make the power supply device recognize the recording device PRI. Therefore, even if the protocol for the USB connection with the power supply device is CDP, the enumeration process is completed in a sequence other than the charging sequence as shown in FIG. 4. In response to the enumeration stop command, the BMU 73 changes the setting of the VBUS input current for the charging IC from 100 mA to 1500 mA (S118). After that, the BMU 70 issues a notification of charging permission to the charging IC 74 (S119). As a result, the BMU 73 starts charging the LiB 71 from the charging IC 74 with a charging current of 1500 mA (S120), and the charging ends when a predetermined charged amount is obtained.

[0037] Also, if it is determined in S110 that the BCS determination did not end normally, the determination result is transmitted from the BMU 73 to the ASIC 50, and the ASIC 50, receiving the determination result, performs processing to stop charging. That is, in response to the determination result, the bus SW control unit 57 of the ASIC 50 switches the bus SW 56 to the ASIC 50 side (S121). After this, the CPU 58 transmits a discharge stop command to stop the discharge SW to the BMU 73 via the battery I / F 78 (S122). The BMU 73, having received the discharge stop command, switches the discharge SW 75 to the OFF state (S123) and cuts off the supply of power from the LiB 71 to the ASIC 50. After this, the CPU 58 puts the recording device into a hard-off state (S124).

[0038] In the above description, the BCS determination result is referred to (S111) after the ASIC 50 is started up with the power supplied from the LiB 71 in S104. However, for example, the BCS determination result may be referred to before the ASIC 50 is started up, and if the determination result is SDP, the ASIC 50 may be started up with the power supplied from the LiB 71, and if the determination result is not SDP, the ASIC 50 may be started up with the power (1500 mA) supplied directly from the USB. Such a relationship between each process is also the same in the flowchart of FIG. 5 described later.

[0039] In the above description, the BCS determination result is referred to (S111) after the enumeration process is started in S110. However, for example, the BCS determination result may be referred to before the enumeration process is started, and if the determination result is SDP, the enumeration process may be started, and if the determination result is not SDP, the enumeration process may not be started. The relationship between each process is similar to that in the flowchart of FIG. 5 described later. Next, a USB connection process during AC charging will be described based on the flowchart shown in FIG. 5. In this process, after USB connection during AC charging, the AC adapter 53 connected to the host PC 52 is removed, and a process of switching to USB charging is performed. Note that, at the start of the flowchart shown in FIG. 5, the ASIC is already activated by power supplied from the AC adapter 53 or power supplied from the LiB 71 charged by power supplied from the AC adapter 53.

[0040] In S201, it is determined whether or not a power supply device is connected to the recording device main body 10 in the hard-off state via a USB cable. This determination is made by the BMU 73 based on the output from the VBUS detection circuit 76, similar to S101 in Fig. 4. If it is determined in S201 that a power supply device is connected to the recording device main body 10 via a USB cable, the process proceeds to S202. Here, in S202, the BMU 70 sets the VBUS input current for the charging IC 74 to 100 mA.

[0041] Next, in S203, the ASIC 50 switches the bus SW to the battery pack 54 side via the bus SW control unit 57. After that, the ASIC 50 transmits a command (BSC command) to the BMU 73 to start BCS determination (S204).

[0042] Next, ASIC 50 performs a wait operation to wait for the BCS judgment result by BMU 73 to be output (S205), and then judges whether or not the BCS judgment has been normally completed (S206). If the BCS judgment has been normally completed in BMU 70, the process proceeds to S207, where bus SW control unit 57 switches the bus SW to the ASIC 50 side. Thereafter, in S208, a process for starting the enumeration process is performed, and the process proceeds to S209.

[0043] In S209, the BMU 73 judges whether the result of the BCS judgment is SDP or something else (DCP or CDP), and transmits the result to the ASIC 50. After that, the ASIC 50 judges whether the enumeration process is completed (S210), and if completed, transmits an enumeration completion command to the BMU 70 (S211). The BMU 70, which receives this enumeration completion command, changes the setting of the VBUS input current for the charging IC 74 from 100 mA to 500 mA (S212).

[0044] After this, the BMU 73 judges whether the AC adapter 53 has been removed from the recording device main body 10 (S213), and if it has been removed, stops AC charging and proceeds to S214. In S214, the BMU 70 notifies the charging IC 74 that charging is permitted, and causes the charging IC 74 to start charging the LiB 71 with a charging current of 500 mA (S215). Thereafter, charging ends when a predetermined amount of charge is obtained.

[0045] On the other hand, if the BCS judgment in S210 determines that the battery is not an SDP, that is, that the battery is a DCP or a CDP, the ASIC 50 transmits a command to stop the enumeration processing by the enumeration processing unit 77. As a result, the enumeration processing unit 77 stops the enumeration (S216), and transmits an enumeration stop command to the BMU 73 via the battery I / F 78. In response to the enumeration stop command, the BMU 73 changes the setting of the VBUS input current to the charging IC from 100 mA to 1500 mA (S217). After that, the BMU 73 judges whether the AC adapter 53 has been removed from the recording device main body 10 (S218), and if the AC adapter 53 has been removed, the process proceeds to S219. In S219, a charging permission notice is issued by the BMU 70, and charging of the LiB 71 from the charging IC 74 is started with a charging current of 1500 mA (S220).

[0046] Also, if it is determined in S210 that the BCS determination did not end normally, the bus SW control unit 57 of the ASIC 50 switches the bus SW 56 to the ASIC 50 side (S221). After that, the BMU 73 determines whether the AC adapter 53 has been removed from the recording device main body 10 (S222), and if it has been removed, proceeds to S223. After this, the CPU 58 transmits a discharge stop command to the BMU 73 to stop the discharge SW (S223). The BMU 73 that has received the discharge stop command switches the discharge SW 75 to the OFF state (S224) and cuts off the supply of power from the LiB 71 to the ASIC 50. After this, the CPU 58 puts the recording device into a hard-off state (S225).

[0047] As described above, in the recording device PRI according to this embodiment, when the host PC 52 is connected while the AC adapter 53, which is the second external power source, is not connected, this is detected and power from the battery pack 54, which is the auxiliary power source, is supplied to the recording device main body 10. This makes it possible to start the recording device main body 10, which cannot be started with the power supplied from the host PC 52 before the enumeration process, with the power from the battery pack 54. This makes it possible to reliably perform the enumeration process between the host PC 52 and the recording device PRI. After the enumeration process is completed, an appropriate current value of the charging current according to the battery charging specifications is set, which makes it possible to efficiently USB charge the LiB 71.

[0048] (Other embodiments) In the above embodiment, an example was shown in which the battery pack 54, which can be connected to and disconnected from the control unit (ASIC) 50 of the recording device main body 10, is used as the first external power source. However, the first external power source may be one that is constantly connected to the control unit, and there is no particular limitation on the connection between the first external power source and the control unit.

[0049] In the above embodiment, the electronic device is described as a serial type inkjet type recording device that records with ink ejected from a recording head, but the present invention is not limited to this. For example, the present invention can be applied to a full-line type recording device that ejects ink from a long recording head corresponding to the width of the recording medium onto a recording medium that is continuously transported. The present invention can also be applied to a recording device using a recording method other than the inkjet method, such as a thermal transfer type recording device.

[0050] Furthermore, the present invention is applicable not only to recording devices but also to other electronic devices such as cameras and portable scanners, and is suitable for relatively small, portable devices that can be driven by power supplied from an external power source such as a battery pack.

[0051] The present invention can also be realized by a process in which a program for implementing one or more of the functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., ASIC) that implements one or more of the functions. [Explanation of symbols]

[0052] 50 ASIC (control unit) 52 Host PC (first external power source) 54 Battery pack (auxiliary power source) 71 LiB 73 BMU 74 Charging IC 75 Discharge SW 76 VBUS detection circuit PRI Recording Device (Electronic Device)

Claims

1. An electronic device having a battery capable of storing power, a control unit capable of executing an enumeration process based on the Universal Serial Bus (USB) standard, a first connection means for connecting to a counterpart device based on the USB standard, and a second connection means for connecting to an AC power source, When the second connection means is not connected to the AC power source and the first connection means is connected to the other device according to the USB standard, the control unit is started up by being supplied with power from the battery, a first processing means for executing the enumeration process by the control unit in a specific state in which, when the other device and the first connection means are connected according to the USB standard in a state in which the second connection means is not connected to the AC power source, a connection between the other device and the first connection means according to the USB standard is established but a connection between the AC power source and the second connection means is not established; a second processing means for executing the enumeration process by the control unit in a predetermined state in which, when the first connection means is connected to the other device according to the USB standard while the second connection means is connected to the AC power source, both the connection between the other device and the first connection means according to the USB standard and the connection between the AC power source and the second connection means are established; an execution means for executing a setting related to power supply according to the USB standard in the specific state when the enumeration process is completed in the specific state, and for executing a setting related to power supply according to the USB standard in the predetermined state when the enumeration process is completed in the predetermined state; an initiation means for initiating, when the connection between the AC power source and the second connection means is cut off in the predetermined state, the supply of power according to the USB standard based on the setting executed before the connection between the AC power source and the second connection means is cut off; An electronic device comprising:

2. 2. The electronic device according to claim 1, further comprising a receiving means for receiving a supply of power from the other device via the connection according to the USB standard when the other device and the first connection means are connected according to the USB standard while the second connection means is not connected to the AC power source.

3. The control unit is capable of being activated by power equal to or greater than a first value, when the counterpart device and the first connection means are connected according to the USB standard, the acceptance means is capable of accepting a supply of power of a second value smaller than the first value via the connection according to the USB standard before the enumeration process is completed; 3. The electronic device according to claim 2, wherein after the enumeration process is completed, the electronic device is capable of accepting a supply of power of a third value equal to or greater than the first value via the connection according to the USB standard.

4. 4. The electronic device according to claim 3, wherein when a protocol used for the connection based on the USB standard is Standard Downstream Port, the accepting unit accepts the supply of power of the third value via the connection based on the USB standard based on completion of the enumeration process.

5. 4. The electronic device according to claim 3, wherein when a protocol used for the connection based on the USB standard is Charging Downstream Port, the accepting unit accepts the supply of the third value of power through the connection based on the USB standard, not based on completion of the enumeration process.

6. 4. The electronic device according to claim 3, wherein when a protocol used for the connection according to the USB standard is a Dedicated Charging Port, the acceptance means accepts the supply of power of the third value via the connection according to the USB standard, not based on completion of the enumeration process.

7. 7. The electronic device according to claim 6, wherein when a protocol used for the connection based on the USB standard is a Dedicated Charging Port, the control unit does not execute the enumeration process.

8. 8. The electronic device according to claim 2, wherein the power supplied through the connection based on the USB standard is used to charge the battery.

9. Further, a printing means for executing printing based on the print data is provided, 9. The electronic device according to claim 2, wherein the power supplied through the connection based on the USB standard is used for executing the printing.

10. 10. The electronic device according to claim 1, further comprising a communication unit for executing communication of predetermined data via the connection according to the USB standard.

11. The predetermined data is print data. The electronic device according to claim 10 , wherein printing is executed by the electronic device based on the print data.

12. 12. The electronic device according to claim 1, wherein the control unit is an Application Specific Integrated Circuit (ASIC).

13. 7. The electronic device according to claim 3, wherein the setting is a setting for accepting a supply of power of the third value.

14. 14. The electronic device according to claim 1, wherein when a connection is established between the AC power source and the second connection means, the control unit is started up by being supplied with power from the AC power source.

15. The electronic device according to any one of claims 1 to 14, characterized in that when the first connection means is connected to the other device according to the USB standard while the second connection means is connected to the AC power source, the enumeration process is executed by the control unit, which is activated by power being supplied from the AC power source, in the specified state.

16. A method for controlling an electronic device having a battery capable of storing power, a control unit capable of executing an enumeration process based on the Universal Serial Bus (USB) standard, a first connection means for connecting to a counterpart device based on the USB standard, and a second connection means for connecting to an AC power source, comprising: When the second connection means is not connected to the AC power source and the first connection means is connected to the other device according to the USB standard, the control unit is started up by being supplied with power from the battery, a first processing step of executing the enumeration processing by the control unit in a specific state in which, when the other device and the first connection means are connected according to the USB standard in a state in which the second connection means is not connected to the AC power source, a connection between the other device and the first connection means according to the USB standard is established but a connection between the AC power source and the second connection means is not established; a second processing step of executing the enumeration processing by the control unit in a predetermined state in which, when the first connection means is connected to the other device according to the USB standard while the second connection means is connected to the AC power source, both the connection between the other device and the first connection means according to the USB standard and the connection between the AC power source and the second connection means are established; an execution step of executing a setting related to power supply according to the USB standard in the specific state when the enumeration process is completed in the specific state, and executing a setting related to power supply according to the USB standard in the predetermined state when the enumeration process is completed in the predetermined state; a start step of starting a supply of power according to the USB standard based on the setting executed before the connection between the AC power source and the second connection means is disconnected when the connection between the AC power source and the second connection means is disconnected in the predetermined state; A control method comprising:

17. A program for causing a computer to operate as each of the means of the electronic device according to any one of claims 1 to 15.

Citation Information

Patent Citations

  • Oil supply pipe, crosshead pin, crosshead diesel engine provided therewith, and ship provided with crosshead diesel engine

    JP2011069318A

  • Method for detecting or screening interaction between highly compatible proteins

    JP2011155839A

  • Electronic device

    JP2016004516A

  • Electronic equipment and method of controlling the same

    JP2017085853A

  • Electronic apparatus and program

    JP2017112811A