CROSS-REFERENCE TO RELATED APPLICATIONS

This application claims priority under 35 U.S.C. § 119 from Japanese Patent Application No. 2020-052815 filed on Mar. 24, 2020. The entire subject matter of the application is incorporated herein by reference.

BACKGROUND

Technical Field

The present disclosures relate to a printing device.

Related Art

There has been conventionally known a printing equipped with a controller and a secondary battery. The controller is configured to calculate the power required for printing based on printing data and printing conditions. The controller is further configured to obtain a charged amount of the secondary battery. The controller calculates, based on the power required for the printing and the charged amount of the secondary battery, a waiting time until the secondary battery is sufficiently charged so that printing of the print data can be performed.

SUMMARY

The conventional printing device as described above is typically configured such that the controller repeatedly obtains the charged amount of the secondary battery and calculates the waiting time while charging the secondary battery. Therefore, in the conventional printing device, the controller constantly consumes the power required to drive the device. Incidentally, when charging the secondary battery, there are cases where only a limited amount of power is supplied to the printing device, such as when the power is supplied through a USB standard cable. In such a case, the power consumed by the controller reduces the power needed to charge the secondary battery, and the waiting time tends to be increased.

According to aspects of the present disclosure, there is provided a printing device, comprising a print head configured to perform printing on a printing medium, a battery configured to be charged by a supplied power which is an electrical power supplied from an external power source, the battery being capable of supplying an electrical power to the print head, a supplied power amplitude obtaining device configured to obtain an amplitude of the supplied power, and a controller configured to operate in one operation mode of multiple operation modes with consuming an operating electrical power from the supplied power. The controller includes a comparing part configured to compare an amplitude of a total power that is a sum of an electrical power to charge the battery and the operating electrical power with an amplitude of the supplied power obtained by the supplied power amplitude obtaining device, and a mode determining part configured to determine an operation mode of the multiple operation modes when the battery is being charged based on a comparison result of the comparing part.

