Printing device
The printing device's USB-Type-C interface, capable of switching between DFP and UFP states, addresses the limitations of conventional interfaces by enabling efficient power delivery and data communication, enhancing compatibility with external devices.
Patent Information
- Application Number
- JP2021031756
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-03-01
- Publication Date
- 2025-02-04
- Estimated Expiration
- 2041-03-01
AI Technical Summary
Conventional USB Type-C interfaces for printing devices are not configured as Dual Role Ports (DRP), limiting their functionality and compatibility with external devices.
The printing device incorporates a USB-Type-C interface that can switch between Downstream Facing Port (DFP) and Upstream Facing Port (UFP) states, utilizing state identification terminals to manage power supply and data communication with external devices, enabling DRP functionality suitable for printing devices.
Enables efficient power delivery and data communication with external devices, enhancing compatibility and functionality of printing devices by allowing them to operate as either a power source or sink, and supporting various connection scenarios.
Smart Images

Figure 0007625898000001 
Figure 0007625898000002 
Figure 0007625898000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a printing device. [Background technology]
[0002] There are cases where a host device and a device are connected via a Universal Serial Bus (USB) Type-C cable that complies with the USB Type-C standard (see, for example, Patent Document 1). The USB Type-C cable includes a Configuration Channel (CC) line. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2020-52959 A Summary of the Invention [Problem to be solved by the invention]
[0004] Some USB Type-C interfaces to which a USB Type-C cable is connected have a DRP (Dual role Port) that can function as both a DFP (Downstream Facing Port), which is a port that functions as a host and supplies power, and a UFP (Upstream Facing Port), which is a port that functions as a device and receives power. However, the USB Type-C interface according to the prior art is not set as a DRP suitable for a printing device. [Means for solving the problem]
[0005] A printing device according to the present invention is a printing device including a printing unit that prints on a medium, a power supply circuit that supplies power to the printing unit, a control circuit that controls the printing unit and the power supply circuit, and a USB-Type-C interface that can be connected to an external device and can be switched between a first state in which the printing unit can perform a printing operation in response to a request from the external device, and a second state in which the power supply circuit can supply power to the external device. The USB-Type-C interface includes a state identification terminal that is held at a first potential indicating that the interface is connected in the first state, or a second potential indicating that the interface is connected in the second state. When no external device is connected to the USB-Type-C interface, the state identification terminal is periodically switched between the first potential and the second potential during a unit time, and the time during which the terminal is held at the second potential during the unit time is longer than the time during which the terminal is held at the first potential. [Brief description of the drawings]
[0006] [Figure 1] FIG. 1 is a schematic diagram showing a POS system according to a first embodiment. [Diagram 2] FIG. 1 is a block diagram showing a POS system. [Diagram 3] FIG. 2 is a block diagram showing a main controller of the printer. [Figure 4] FIG. 2 is a block diagram showing a USB communication unit. [Diagram 5] FIG. 2 is a schematic diagram showing the arrangement of terminals of a USB-Type-C interface. [Figure 6] FIG. 2 is a circuit diagram showing the electrical connection between a DFP and a UFP. [Figure 7] 4 is a graph showing switching of potentials at CC terminals according to the first embodiment. [Figure 8] 11 is a graph showing switching of potentials at CC terminals according to the second embodiment. [Figure 9] 13 is a graph showing switching of potentials at CC terminals according to the third embodiment. [Figure 10] 10 is a flowchart showing a processing procedure in the printer. [Figure 11]10 is a flowchart showing a processing procedure in the printer. [Figure 12] 10 is a flowchart showing a processing procedure in the printer. [Figure 13] FIG. 11 is a block diagram showing a POS system according to a second embodiment. [Figure 14] 10 is a flowchart showing a processing procedure in the printer. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0007] Hereinafter, the embodiments of the present invention will be described with reference to the drawings. However, in each drawing, the dimensions and scale of each part are appropriately different from the actual ones. In addition, since the embodiments described below are preferred specific examples of the present invention, various technically preferable limitations are attached, but the scope of the present invention is not limited to these embodiments unless otherwise specified in the following description to the effect that the present invention is limited.
[0008] Fig. 1 is a schematic diagram showing a POS system 1 according to a first embodiment. Fig. 2 is a block diagram showing the POS system 1. The POS system 1 shown in Figs. 1 and 2 is used, for example, in a store, and has a function of carrying out a transaction according to the product or service purchased by a customer, and a function of issuing a receipt according to the transaction.
[0009] The POS system 1 includes a printer 10, a smart device 3, a customer display 4, and a handheld scanner 5.
[0010] The smart device 3 is an example of an external device. The smart device 3 is a terminal that the user can carry around. The smart device 3 is, for example, a tablet terminal or a smartphone. The smart device 3 has a communication unit (not shown) that communicates data according to a specific communication standard. The smart device 3 communicates with the printer 10 via the communication unit. As described below, the smart device 3 can be connected to the printer 10 via a USB interface. The smart device 3 can communicate with the printer 10 using wireless communication.
[0011] The smart device 3 includes a battery and can operate using power stored in the battery. The smart device 3 can charge the battery using power supplied from the printer 10, as described below. The smart device 3 is equipped with an application for creating print data. The smart device 3 is equipped with a POS application.
[0012] The smart device 3 is triggered by a user's instruction or the like and sends control commands and printing commands to the printer 10. When the printer 10 receives these commands, it stores them in a receive buffer, which will be described later. The control commands include, for example, a setting command that instructs the printer 10 to set a format and a status request command that requests information showing the printer 10's status. The printing commands include, for example, a print command that instructs printing, a line feed command that instructs the printer 10 to feed a line, a line feed command that instructs the printer 10 to feed a line, a cutter command that instructs the printer 10 to cut the medium, and the like. The printing commands include commands that correspond to drive commands for the thermal head 21, the transport motor 23, and the cutter drive motor 24, which will be described later.
[0013] The smart device 3 is triggered by a user's instruction or the like to generate print data such as characters and images to be printed by the printer 10. The smart device 3 sends a print command including the generated print data to the printer 10 in accordance with a specific communication standard. The printer 10 executes the print command and prints characters, images, etc. on a medium based on the print data.
[0014] The customer display 4 is an example of an external device. The customer display 4 can be placed on a counter table in a store, for example. A customer who purchases an item in the store can visually check the amount displayed on the customer display 4 and recognize the amount to be paid.
[0015] The customer display 4 is electrically connected to the printer 10. The customer display 4 operates by receiving power from the printer 10. The customer display 4 displays the amount based on the information output by the printer 10.
[0016] The handheld scanner 5 is an example of an external device. The handheld scanner 5 is electrically connected to the printer 10. The handheld scanner 5 operates by receiving power from the printer 10. The printer 10 inputs information about an image scanned by the handheld scanner 5. For example, a store clerk, who is a user, uses the handheld scanner 5 to scan a barcode attached to a product. Information about the scanned image is output to the smart device 3 via the printer 10. The smart device 3 can obtain information about the product and the price.
[0017] The printer 10 is, for example, a thermal printer. The printer 10 includes a display unit 11, a power supply circuit 12, a printing unit 20, and a main controller 30.
[0018] The display unit 11 is, for example, a liquid crystal display device. As shown in Fig. 2, the display unit 11 is electrically connected to the main controller 30 and is controlled by the main controller 30. The display unit 11 displays, for example, information related to the status of the printer 10. The display unit 11 may also display, for example, information related to the communication status, information encouraging the user to replenish thermal roll paper, etc.
[0019] The power supply circuit 12 can supply power to the display unit 11, the printing unit 20, and the main controller 30. The power supply circuit 12 is connected to a commercial AC power source, for example, and can convert the power supplied from the commercial AC power source into appropriate power and supply it to each unit. The power supply circuit 12 includes, for example, a DC-DC converter, a resistive element, a switching element, a transistor, etc. As will be described later, the power supply circuit 12 can supply power to an external device electrically connected to the printer 10. Examples of external devices include a smart device 3, a customer display 4, and a handheld scanner 5.
[0020] The printing unit 20 includes a thermal head 21, a print head drive unit 22, a transport motor 23, and a cutter drive motor 24. The printing unit 20 has a transport roller and a cutter (not shown). The cutter includes a fixed blade and a movable blade. The thermal head 21, the print head drive unit 22, and the transport motor 23 are electrically connected to the power supply circuit 12, and operate by receiving power from the power supply circuit 12. The printing unit 20 is controlled by a main controller 30. The printing unit 20 executes printing based on print data output from the smart device 3.
[0021] The thermal head 21 has a large number of heating elements 25. The large number of heating elements 25 are arranged in a direction perpendicular to the transport direction of thermal roll paper 26, which is the medium PA. When electricity is applied to the heating elements 25, heat is applied to the printing surface of the thermal roll paper 26. This enables the thermal head 21 to print characters, images, and the like on the thermal roll paper.
[0022] The print head drive unit 22 is controlled by the main controller 30 and controls the supply of electricity to the heating elements 25 of the thermal head 21. The transport motor 23 is controlled by the main controller 30 and rotates the transport roller to transport the thermal roll paper 26. The cutter drive motor 24 is controlled by the main controller 30 and drives the movable blade to slide toward the fixed blade, cutting the thermal roll paper.
[0023] 3 is a block diagram showing the main controller 30 of the printer 10. As shown in FIG. 3, the main controller 30 includes a CPU 31, a RAM 32, a ROM 33, a non-volatile memory 34, a wireless communication unit 35, a USB communication unit 50, and a BUS-IF 36. The main controller 30 includes a device IF 38 and an image processing unit 39. The CPU 31 is an example of a control circuit. Although a CPU is shown as an example of a control circuit, the control circuit may include hardware such as an FPGA instead of or in addition to the CPU. FPGA is an abbreviation for Field Programmable Gate Array.
[0024] The CPU 31 performs main control of the printer 10. The CPU 31 is electrically connected to the RAM 32, the ROM 33, the non-volatile memory 34, the wireless communication unit 35, the USB communication unit 50, and the BUS-IF 36 via a system bus 41.
[0025] The RAM 32 is a memory that can be read and written at any time and provides a working area for the CPU 31. The RAM 32 can also be used as an image memory for temporarily storing image data. The ROM 33 is a boot ROM and stores the boot program for the system. The non-volatile memory 34 stores system software, setting value data, and the like that need to be retained even after the power to the printer 10 is turned off.
[0026] The wireless communication unit 35 can connect to an external device using wireless communication. The wireless communication unit 35 can communicate with the external device in accordance with standards such as Wi-Fi (registered trademark) and Bluetooth (registered trademark). The BUS-IF 36 is an interface that electrically connects the system bus 41 and the image bus 42. The BUS-IF 36 can operate as a bus bridge that converts a data structure.
[0027] In addition to the BUS-IF 36, a device IF 38 and an image processing unit 39 are electrically connected to the image bus 42. The device IF 38 is an interface that connects the main controller 30 with the printing unit 20 and the display unit 11. The device IF 38 can convert data between synchronous and asynchronous systems. The image processing unit 39 can perform predetermined processing on data related to printing that is output to the printing unit 20.
[0028] 4 is a block diagram showing the USB communication unit 50. As shown in FIG. 4, the USB communication unit 50 includes a USB-Type-C interface 60, a USB data communication unit 51, a host IF 52, and a USB control unit 53.
[0029] The USB data communication unit 51 performs data transmission / reception control and communication protocol control. The USB data communication unit 51 can perform control related to data reception from an external device such as the USB-connected smart device 3. The USB data communication unit 51 can perform data transmission control for transmitting data such as commands related to printing to the system bus 41.
[0030] The host IF 52 is a communication interface with the CPU 31. The host IF 52 mediates intercommunication between the CPU 31 and the USB control unit 53, for example, by synchronous serial communication. The synchronous serial communication may be, for example, I2C (Inter-Integrated Circuit) communication.
[0031] The USB control unit 53 can execute processing in the USB communication unit 50 based on a control instruction received via the host IF 52. The USB control unit 53 may include an MCU (Micro Control Unit) 54, a RAM 55, and a ROM 56.
[0032] The RAM 55 can store setting information for a power profile that indicates the amount of power that the printer 10 can supply. The MCU 54 can use a regulator (not shown) to increase or decrease the voltage of the power supplied from the power supply circuit 12 based on the setting information for this power profile. This allows the printer 10 to BUS A desired amount of power can be supplied to an external device via terminal 61.
[0033] The USB control unit 53 can detect commands related to printing sent from an external device while the printer 10 is in sleep mode. The USB control unit 53 can notify the CPU 31 of the detection of a command and change the state of the printer 10.
[0034] The printer 10 may include multiple USB-Type-C interfaces 60. A USB-Type-C cable 90 is connected to the USB-Type-C interface 60. The smart device 3, which is an external device, is connected to the USB-Type-C interface 60 via the USB-Type-C cable 90.
[0035] The USB-Type-C interface 60 is BUS The V BUS The terminal 61 is an example of a power input / output terminal. BUS The terminal 61 can receive power from an external device. BUSThe terminal 61 is capable of transmitting a data signal to an external device. The D+ / D- terminal 62 is an example of a data transmission / reception terminal. The D+ / D- terminal 62 is capable of receiving a data signal from an external device. The data transmission / reception terminal is capable of transmitting a data signal to an external device.
[0036] The CC terminal 63 is an example of a state identification terminal. The CC terminal 63 can identify whether the D+ / D- terminal 62 is in a state where it can receive a data signal from an external device, or in a state where it can transmit a data signal to an external device. The CC terminal 63 is a V BUS It is possible to identify whether the terminal 61 is in a state in which it can receive power from an external device or in a state in which it can supply power to an external device.
[0037] Fig. 5 is a schematic diagram showing the arrangement of terminals of a USB Type-C interface 60. The USB Type-C interface 60 shown in Fig. 5 includes a first row of terminals A1 to A12 and a second row of terminals B1 to B12. These terminals A1 to A12 and terminals B1 to B12 comply with the USB Type-C standard.
[0038] Terminals A2, A3, A10, A11 and terminals B2, B3, B10, B11 are included in the D+ / D- terminals 62 and are terminals that support high-speed data communication. The high-speed data communication may be, for example, high-speed data communication by USB3.1. Terminals A6, A7 and terminals B6, B7 are included in the D+ / D- terminals 62 and are terminals that support low-speed data communication. The low-speed data communication may be, for example, low-speed data communication by USB2.0.
[0039] Terminals A4, A9 and terminals B4, B9 are V BUS Terminal 61 is a power supply terminal. Terminals A1, A12 and terminals B1, B12 are GND terminals that transmit a ground voltage. Terminals A8 and B8 are SBU (sideband use) terminals. Terminals A8 and B8 are terminals used to support ALT mode, and are connected to cables equipped with Thunder Bolt (registered trademark), DisplayPort, HDMI (registered trademark), or the like.
[0040] Terminal A5 and terminal B5 are CC terminals 63. Devices equipped with a USB-Type-C interface 60 conforming to the USB Type-C standard can perform bidirectional communication. The USB-Type-C interface 60 can be switched to a DFP (Downstream Facing Port) or a UFP (Upstream Facing Port).
[0041] The USB-Type-C interface 60 can be switched between a first state and a second state. When the USB-Type-C interface 60 is in the first state, it can operate as a UFP. When the USB-Type-C interface 60 is in the second state, it can operate as a DFP. When the USB-Type-C interface 60 is in the first state, it can operate as a sink. When the USB-Type-C interface 60 is in the second state, it can operate as a source.
[0042] When the USB-Type-C interface 60 is in the first state, the printer 10 can cause the printing unit 20 to perform a printing operation in response to a request from the smart device 3. A command related to printing output from the smart device 3 connected via the USB-Type-C interface 60 is transmitted to the CPU 31. The CPU 31 can output a command signal to the printing unit 20 to perform the printing operation.
[0043] FIG. 6 is a circuit diagram showing the electrical connection between a USB-Type-C interface operating as a DFP70 and a USB-Type-C interface operating as a UFP80. FIG. 6 shows only the connection of the CC terminals. When the USB-Type-C interface 60 of the printer 10 operates as a DFP70, the USB-Type-C interface of the connected external device operates as a UFP80. When the USB-Type-C interface 60 of the printer 10 operates as a UFP80, the USB-Type-C interface of the connected external device operates as a DFP70. The USB-Type-C interface operating as a DFP70 is referred to as a DFP70. The USB-Type-C interface operating as a UFP80 is referred to as a USB-Type-C interface.
[0044] The DFP 70 and the UFP 80 are connected via a USB-Type-C cable 90. The DFP 70 has, as CC terminals, a CC1 terminal 71 and a CC2 terminal 72. A resistive element 73 is connected to the CC1 terminal 71, and a resistive element 74 is connected to the CC2 terminal 72. The resistive elements 73 and 74 are pull-up resistors Rp.
[0045] The UFP 80 has a CC1 terminal 81 and a CC2 terminal 82 as CC terminals. A resistive element 83 is connected to the CC1 terminal 81, and a resistive element 84 is connected to the CC2 terminal 82. The resistive elements 83 and 84 are pull-down resistors Rd. When the printer 10 is a DFP 70, the CC1 terminal 71 and CC2 terminal 72 are included in the CC terminals 63. When the printer 10 is a UFP 80, the CC1 terminal 81 and CC2 terminal 82 are included in the CC terminals 63.
[0046] The USB-Type-C cable 90 includes a CC line 91 connected to the CC terminal. The USB-Type-C cable 90 has a resistive element 92 connected to the CC terminal of the DFP 70, and a resistive element 93 connected to the CC terminal of the UFP 80. The resistive elements 92 and 93 are resistors Ra.
[0047] In a state in which the DFP 70 and the UFP 80 are not connected, the CC1 terminal 71 and the CC2 terminal 72 of the DFP 70 are regarded as being at, for example, the second potential E2 by the resistive elements 73 and 74. The second potential E2 is, for example, 5V.
[0048] In a state in which the DFP 70 and the UFP 80 are not connected, the CC1 terminal 81 and the CC2 terminal 82 of the UFP 80 are set to, for example, a first potential E1 by the resistive element 83 and the resistive element 84. The first potential E1 is, for example, 0V.
[0049] When the DFP70 and the UFP80 are connected via the USB-Type-C cable 90, the CC1 terminal 71 of the DFP70 is connected to the CC2 terminal 82 of the UFP80 via the CC line 91. The CC1 terminal 71 of the DFP70 is set to a constant voltage by a resistive voltage division of the resistive element 73 and the resistive element 84. For example, the CC1 terminal 71 is held at the third potential E3.
[0050] When the DFP 70 and the UFP 80 are connected via the USB-Type-C cable 90, the CC2 terminal 72 of the DFP 70 is connected to a resistive element 92 of the USB-Type-C cable 90. The CC2 terminal 72 is set to a constant voltage by a resistive voltage division between the resistive element 74 and the resistive element 92. The voltage at this time is stipulated by, for example, the USB-Type-C specifications, and can be defined according to a corresponding current value.
[0051] When the DFP 70 and the UFP 80 are connected via the USB-Type-C cable 90, the CC1 terminal 81 of the UFP 80 is connected to the resistive element 93 of the USB-Type-C cable 90.
[0052] The DFP 70 can handle a signal transmitted through a CC line 91 to which the pull-up resistor Rp and the pull-down resistor Rd are connected as a CC signal. CONNIn this case, the voltage supplied to the USB-Type-C cable 90 may be regulated by, for example, the USB-Type-C specifications.
[0053] The presence of the resistive element 84 enables the DFP 70 to detect that the UFP 80 is connected via the USB-Type-C cable 90. BUS Terminal 61 is turned ON to supply 5 V. The UFP 80 is BUS It detects that it is receiving power via the terminal and establishes a connection with the DFP70.
[0054] When no external device is connected to the USB-Type-C interface 60, the CC terminal 63 is periodically alternately switched between the first potential E1 and the second potential E2. When an external device connected to the USB-Type-C interface 60 is detected, the CC terminal 63 is held at the third potential E3. The third potential E3 is a potential different from the first potential E1 and the second potential E2. The third potential E3 may be an intermediate potential between the first potential E1 and the second potential E2.
[0055] The first potential E1 is a signal indicating that the USB Type-C interface 60 is connected in a first state. The second potential E2 is a signal indicating that the USB Type-C interface 60 is connected in a second state.
[0056] When the CC terminal 63 is at the first potential E1 and the DFP 70 is connected to the USB Type-C interface 60, the USB Type-C interface 60 recognizes the external device and is connected in the first state. In this case, the USB Type-C interface 60 can operate as a UFP 80.
[0057] When the CC terminal 63 is at the first potential E1, if the UFP 80 is connected to the USB Type-C interface 60, the CC terminal 63 does not recognize the external device.
[0058] When the CC terminal 63 is at the second potential E2 and the UFP 80 is connected to the USB-Type-C interface 60, the USB-Type-C interface 60 recognizes the external device and is connected in the second state. In this case, the printer 10 can operate as a DFP 70.
[0059] When the CC terminal 63 is at the second potential E2, if the DFP 70 is connected to the USB-Type-C interface 60, the CC terminal 63 does not recognize the external device.
[0060] When no external device is connected to the USB-Type-C interface 60, the CC terminal 63 alternates periodically between the first potential E1 and the second potential E2 during a unit time. When no external device is connected to the USB-Type-C interface 60, the time T2 during which the CC terminal 63 is held at the second potential E2 during the unit time is longer than the time T1 during which the CC terminal 63 is held at the first potential E1 during the unit time. The time T2 during which the CC terminal 63 is held at the second potential E2 during the unit time may be a continuous period or a total time of a plurality of periods. Similarly, the time T1 during which the CC terminal 63 is held at the first potential E1 during the unit time may be a continuous period or a total time of a plurality of periods.
[0061] 7 is a graph showing switching of the potential at the CC terminal 63 according to the first embodiment. In FIG. 7, the horizontal axis indicates the passage of time, and the vertical axis indicates the potential. At the CC terminal 63, the first potential E1 and the second potential E2 are alternately repeated. The time T21 during which the second potential E2 is held is 70% of the unit time TU. The time T1 during which the first potential E1 is held is 30% of the unit time TU.
[0062] FIG. 8 is a graph showing switching of the potential at the CC terminal 63 according to the second embodiment. In FIG. 8, the horizontal axis indicates the passage of time, and the vertical axis indicates the potential. At the CC terminal 63, the first potential E1 and the second potential E2 are alternately repeated. First, in the unit time TU1, the time T21 during which the second potential E2 is held is 70% of the unit time TU1. In the unit time TU1, the time T11 during which the first potential E1 is held is 30% of the unit time TU1. In the unit time TU2 after the unit time TU1, the time T22 during which the second potential E2 is held is 60% of the unit time TU2. In the unit time TU2, the time T12 during which the first potential E1 is held is 40% of the unit time TU2. After the unit time TU2 has elapsed, the time T21 during which the second potential E2 is held in the unit time TU1 again becomes 70% of the unit time TU1, and the time T11 during which the first potential E1 is held becomes 30% of the unit time TU1. The unit time TU1 and the unit time TU2 have the same length.
[0063] FIG. 9 is a graph showing the switching of the potential at the CC terminal 63 according to the third embodiment. In FIG. 9, the horizontal axis indicates the passage of time, and the vertical axis indicates the potential. At the CC terminal 63, the first potential E1 and the second potential E2 are alternately repeated. First, in the unit time TU1, the time T21 during which the second potential E2 is held is 70% of the unit time TU1, and the time T11 during which the first potential E1 is held is 30% of the unit time TU1. In the unit time TU3 after the unit time TU1, the time T23 during which the second potential E2 is held is 50% of the unit time TU3. In the unit time TU3, the time T13 during which the first potential E1 is held is 50% of the unit time TU3. After the unit time TU3 has elapsed, in the unit time TU1 again, the time T21 during which the second potential E2 is held is 70% of the unit time TU1, and the time T11 during which the first potential E1 is held is 30% of the unit time TU1. The lengths of the unit times TU1 and TU3 are the same. When the connected external device periodically switches between the first potential and the second potential, it is possible to prevent the switching cycle of the USB-Type-C interface 60 of the printer 10 from matching with the switching cycle of the USB-Type-C interface of the external device. If the switching cycle of the connected external device matches, there is a risk that the external device connected to the USB-Type-C interface 60 of the printer 10 cannot be detected.
[0064] When the USB-Type-C interface 60 is a sink, the V BUS Power can be supplied via the terminal 61. In this case, the USB-Type-C interface of the external device operates as a source.
[0065] When the USB-Type-C interface 60 is a source, the USB-Type-C interface 60 outputs a V BUS Power can be supplied via the terminal 61. In this case, the USB-Type-C interface 60 of the external device operates as a sink.
[0066] Generally, the printer 10 spends a longer time in a standby state where no printing operation is being performed than in a state where a printing operation is being performed. Therefore, it is preferable that the time that the CC terminal 63 is held at the second potential E2 is longer than the time that it is held at the first potential E1.
[0067] When the USB-Type-C interface 60 is a sink, it can receive a data signal from an external device connected to the USB-Type-C interface 60 via the D+ / D- terminals 62. In this case, the USB-Type-C interface 60 of the external device operates as a source.
[0068] When the USB-Type-C interface 60 is a source, a data signal can be transmitted from an external device connected to the USB-Type-C interface 60 via the D+ / D- terminals 62. In this case, the USB-Type-C interface 60 of the external device operates as a sink.
[0069] Power delivery in the USB-Type-C interface 60 is a standard defined by USB Power Delivery (USB PD). Before starting power delivery, the USB-Type-C interface 60 transmits information about the voltage, direction, and function to be supplied or received between the printer 10 and an external device. In power delivery, power can be supplied or received based on a contract between the connected devices. The port that supplies power is the source, and the port that receives power is the sink. A device that functions as a source is a provider, and a device that functions as a sink is a consumer. The USB-Type-C interface 60 can change the amount of power it supplies depending on the situation, and can change the supply or reception of power.
[0070] Next, a description will be given of an example of a power delivery process in the USB-Type-C interface 60. The source checks the ID of the USB-Type-C cable 90 connected to the USB-Type-C interface 60, and confirms whether or not a current exceeding 3 A can be passed.
[0071] The source notifies the sink of the power profiles it can support. The sink requests the desired profile by number from the power profiles it can support. The source notifies that it can support the requested power profile. The source then BUS Terminal 61 is turned ON to start supplying power to the sink.
[0072] Next, an example of processing in the printer 10 will be described with reference to Fig. 10. Fig. 10 is a flowchart showing the procedure of processing executed by the printer 10. First, in step S11, the USB control unit 53 determines whether or not an external device connected to the USB-Type-C interface 60 has been detected. The USB control unit 53 can detect an external device connected to the USB-Type-C interface 60 based on the identification information received at the CC terminal 63.
[0073] If an external device is detected, the process proceeds to step S12, where the CC terminal 63 is held at the third potential. If an external device is not detected, the process proceeds to step S13. If an external device is not connected to the USB-Type-C interface 60, the process proceeds to step S13, where the CC terminal 63 is periodically switched alternately between the first potential E1 and the second potential E2. After the process of step S12 or step S13 is performed, the process here ends. If an external device is connected to the USB-Type-C interface 60 and held at the third potential, and then the external device is removed, the external device is not detected again in step S11. In this case, the process proceeds to step S13, where the CC terminal 63 is periodically switched alternately between the first potential E1 and the second potential E2.
[0074] Next, an example of processing in the printer 10 will be described with reference to FIG. 11. FIG. 11 is a flow chart showing the procedure of processing executed by the printer 10. First, in step S21, the CPU 31 determines whether the USB-Type-C interface 60 is in the first state. For example, when the DFP 70 is connected to the USB-Type-C interface 60 with the CC terminal 63 at the first potential E1, the USB-Type-C interface 60 goes into the first state. When the UFP 80 is connected to the USB-Type-C interface 60 with the CC terminal 63 at the second potential E2, the USB-Type-C interface 60 goes into the second state.
[0075] If the USB-Type-C interface 60 is in the first state, the process proceeds to step S22, and if the USB-Type-C interface 60 is in the second state, the process proceeds to step S23. In step S22, the CPU 31 determines whether or not print data has been received from an external device connected to the USB-Type-C interface 60. If print data has been received, the process proceeds to step S24, and if print data has not been received, the process ends here.
[0076] The printer 10 can receive print data sent from an external device via the D+ / D- terminals 62. The print data may be communicated using wireless communication. In step S24, the CPU 31 sends a command signal to the printing unit 20 to execute printing based on the print data. After printing, the printer 10 ends this process.
[0077] In step S23, the printer 10 transmits a V BUS Power is supplied to the external device via the terminal 61. The power supply circuit 12 supplies power in accordance with commands from the CPU 31. The external device can operate by receiving power from the printer 10. A battery built into the external device can be charged by receiving power from the printer 10.
[0078] Next, an example of processing in the printer 10 will be described with reference to Fig. 12. Fig. 12 is a flowchart showing the procedure of processing executed by the printer 10. First, in step S31, the CPU 31 determines whether or not the external device connected to the USB-Type-C interface 60 is a charger. The CPU 31 can determine whether or not the external device is a charger based on the identification information of the external device received via the CC terminal 63.
[0079] If the external device connected to the USB-Type-C interface 60 is a charger, the printer 10 proceeds to step S32. If the external device connected to the USB-Type-C interface 60 is not a charger, the printer 10 ends the process here.
[0080] In step S32, the CPU 31 displays a warning on the display unit 11. For example, the display unit 11 displays a warning indicating that the printer 10 is not equipped with a battery module. This allows the user to recognize that the printer 10 cannot be charged even if a charger is connected to the printer 10.
[0081] Next, a case where a smart device 3 is connected to the USB-Type-C interface 60 of the printer 10 will be described. When no external device is connected, the CC terminal 63 is periodically alternately switched between a first potential E1 and a second potential E2. The USB-Type-C interface of the smart device 3 can operate as both a UFP80 and a DFP70. When the smart device 3 is recognized as an external device connected to the USB-Type-C interface 60, the CC terminal 63 becomes the third potential.
[0082] When the CC terminal 63 is at the second potential E2 and the smart device 3 is recognized as an external device, the USB-Type-C interface of the smart device 3 can operate as a UFP, and the USB-Type-C interface 60 of the printer 10 can operate as a DFP70.
[0083] The USB-Type-C interface 60 acting as a power source can supply power to the smart device 3. BUS Power is supplied to the smart device 3 via the terminal 61.
[0084] The USB-Type-C interface 60 of the printer 10 operating as a source can transmit a data signal to the USB-Type-C interface 60 of the smart device 3 operating as a sink. The CPU 31 can transmit a data signal to the smart device 3 via the D+ / D- terminal 62. For example, product data acquired by the handheld scanner 5 can be transmitted to the smart device 3. The printer 10 can transmit a data signal to the smart device 3 using the wireless communication unit 35. The smart device 3 can calculate the total price of the products based on the received data signal. The smart device 3 can display information on the display of the smart device 3 based on the received data signal.
[0085] When the CC terminal 63 is at the first potential E1, if the smart device 3 can be recognized as an external device, the USB-Type-C interface 60 of the smart device 3 can operate as a DFP70, and the USB-Type-C interface 60 of the printer 10 can operate as a UFP80.
[0086] The USB-Type-C interface 60 of the printer 10 operating as a UFP80 can receive data signals from the USB-Type-C interface of the smart device 3 operating as a DFP70. The CPU 31 can receive data signals sent from the smart device 3 via the D+ / D- terminals 62. For example, when printing a receipt, the smart device 3 can send print data to the printer 10. The CPU 31 can cause the printing unit 20 to perform a printing operation based on the print data, and print the receipt. The smart device 3 can send print data to the printer 10 using wireless communication. The printer 10 can receive data signals using the wireless communication unit 35.
[0087] When the smart device 3 is removed from the USB-Type-C interface 60, the CC terminal 63 is again periodically alternately switched between the first potential E1 and the second potential E2.
[0088] In such a printer 10, when no external device is connected to the USB Type-C interface 60, the CC terminal 63 is periodically switched to the first potential E1 or the second potential E2. In this case, in the printer 10, the time T21 during which the second potential E2 is held is longer than the time T11 during which the first potential E1 is held within the unit time TU.
[0089] If the time at the second potential E2 is long when no external device is connected to the USB-Type-C interface 60, there is a high probability that the USB-Type-C interface 60 of the printer 10 will become the DFP 70 when an external device is connected. In this case, the printer 10 can supply power from the power supply circuit 12 to the external device. When no external device is connected, the printer 10 is likely to be kept in a state that makes it easy to supply power to the external device. Since external devices connected to the printer 10 often mainly serve to supply power, it is possible to set the USB-Type-C interface 60 to be suitable for the printer 10.
[0090] In this way, in the printer 10, the USB-Type-C interface 60 has a DRP setting suitable for the printing device.
[0091] Next, a case where the customer display 4 is connected to the USB-Type-C interface 60 of the printer 10 will be described. The customer display 4 may be connected to the USB-Type-C interface 60. When no external device is connected, the CC terminal 63 is periodically alternately switched between the first potential E1 and the second potential E2. The USB-Type-C interface of the customer display 4 operates only as a UFP80. The USB-Type-C interface of the customer display 4 does not operate as a DFP70. When the customer display 4 is recognized as an external device connected to the USB-Type-C interface 60, the CC terminal 63 becomes the third potential.
[0092] When the CC terminal 63 is at the second potential E2 and the customer display 4 is connected to the USB Type-C interface 60, the USB Type-C interface 60 operates as a DFP 70. The USB Type-C interface 60 operating as a source can supply power to the customer display 4. BUS Power is supplied to the customer display 4 via terminal 61.
[0093] The USB-Type-C interface 60 of the printer 10 acting as a source can send data signals to the USB-Type-C interface of the customer display 4 acting as a sink. The CPU 31 can send data signals to the customer display 4 via the D+ / D- terminals 62. For example, product data acquired by the handheld scanner 5 can be sent to the customer display 4. The customer display 4 can display the product price, etc. based on the received data signal. In this way, the printer 10 can be connected to the customer display 4.
[0094] Next, a case where the handheld scanner 5 is connected to the USB-Type-C interface 60 of the printer 10 will be described. The handheld scanner 5 may be connected to the USB-Type-C interface 60. When no external device is connected, the CC terminal 63 is periodically alternately switched between the first potential E1 and the second potential E2. The USB-Type-C interface of the handheld scanner 5 operates as a DFP 70. When the handheld scanner 5 is recognized as an external device connected to the USB-Type-C interface 60, the CC terminal 63 becomes the third potential.
[0095] When the CC terminal 63 is at the second potential E2 and the handheld scanner 5 is connected to the USB-Type-C interface 60, the USB-Type-C interface 60 of the printer 10 operates as a DFP 70. The printer 10 operating as a source can supply power to the handheld scanner 5. BUS Power is supplied to the handheld scanner 5 via the terminal 61 .
[0096] The handheld scanner 5 operates by receiving power from the printer 10. The handheld scanner 5 can read barcodes attached to products and transmit the acquired data to the printer 10. The printer 10 can transmit the acquired data to the smart device 3 and the customer display 4. In this way, the printer 10 can be connected to the handheld scanner 5.
[0097] Next, a POS system 1B according to a second embodiment will be described. FIG. 13 is a block diagram showing the POS system 1B according to the second embodiment. The POS system 1B according to the second embodiment differs from the POS system 1 according to the first embodiment in that the printer 10 is equipped with a battery module 13, and in that the processing performed when a charger 14 is connected to the USB-Type-C interface 60 is different. In the state shown in FIG. 13, the charger 14 is connected to the printer 10. Note that in the description of the second embodiment, descriptions similar to those of the first embodiment will be omitted.
[0098] The printer 10 is equipped with a battery module 13. The battery module 13 is a storage battery that can be charged and discharged. The battery module 13 is electrically connected to a power supply circuit 12. The power supply circuit 12 can supply power output from the battery module 13 to the display unit 11, the printing unit 20, and the main controller 30.
[0099] The charger 14 is, for example, a portable mobile battery. The charger 14 is connected to the USB-Type-C interface 60.
[0100] 14 is a flowchart showing the procedure of the process executed by the printer 10. First, in step S41, the CPU 31 determines whether or not the external device connected to the USB-Type-C interface 60 is the charger 14. The CPU 31 can determine whether or not the external device is the charger 14 based on the identification information of the external device received via the CC terminal 63.
[0101] If the external device connected to the USB-Type-C interface 60 is the charger 14, the printer 10 proceeds to step S42. If the external device connected to the USB-Type-C interface 60 is not the charger 14, the printer 10 ends the process here.
[0102] In step S42, the printer 10 receives power from the charger 14 and charges the battery module 13. The power charged in the battery module 13 is passed through the power supply circuit 12 and can be used by the display unit 11, the printing unit 20, and the main controller 30. BUS Power can be supplied to an external device such as the smart device 3 via the terminal 61.
[0103] The printer 10 according to the second embodiment provides the same advantageous effects as the printer 10 according to the first embodiment. The printer 10 according to the second embodiment includes a battery module 13, and can charge the battery module 13 by receiving power from a charger 14 connected to the USB-Type-C interface 60.
[0104] It should be noted that the above-described embodiment merely illustrates a typical form of the present invention, and the present invention is not limited to the above-described embodiment, and various modifications and additions are possible without departing from the gist of the present invention.
[0105] In the above embodiment, a part of the processing executed by the CPU 31 may be executed by another control unit such as the USB control unit 53. Similarly, a part of the processing executed by the USB control unit 53 may be executed by the CPU 31.
[0106] In the above embodiment, the printer 10 is configured to include a printing element that is a heat generating element, but the printer 10 is not limited to a printer that includes a heat generating element, and may be a printer that includes other printing elements. The printing device may be an inkjet printer that includes a piezoelectric element as a printing element and ejects ink onto a medium. The printing device may be a dot compact printer, a laser printer, or other printers.
[0107] In the above embodiment, a POS system 1 including a printer 10 has been described, but the use of the printer 10 is not limited to the POS system 1. The printing device of the present disclosure may be a home printing device, a commercial printing device, or a printing device used for other purposes.
[0108] Furthermore, the external devices connected to the printing device are not limited to the smart device 3, the customer display 4, the handheld scanner 5, and the charger 14, and may be other external devices. The external devices may be, for example, audio output devices, image display devices, game terminals, smart watches, scanners, card readers, input devices, and other external devices. [Explanation of symbols]
[0109] 3...Smart device (external device), 4...Customer display (external device), 5...Handheld scanner (external device), 10...Printer, 11...Display unit, 12...Power supply circuit, 13...Battery module, 14...Charger, 20...Printing unit, 31...CPU (control circuit), 35...Wireless communication unit, 60...USB-Type-C interface, 61...V BUS Terminal (power input / output terminal), 62...D+ / D- terminal (data transmission / reception terminal), 63...CC terminal (status identification terminal).
Claims
1. A printing unit that prints on the medium; a power supply circuit for supplying power to the printing unit; a control circuit for controlling the printing unit and the power supply circuit; a USB-Type-C interface that can be switched between a first state in which an external device can be connected and in which the printing unit can perform a printing operation in response to a request from the external device, and a second state in which the power supply circuit can supply power to the external device; A printing device comprising: The USB-Type-C interface is a state identification terminal that is held at a first potential indicating that the connection is made in the first state or a second potential indicating that the connection is made in the second state; The state identification terminal is When the external device is not connected to the USB-Type-C interface, the potential is periodically switched between the first potential and the second potential during a unit time; In the unit time, the time during which the second potential is held is longer than the time during which the first potential is held, The control circuit includes: when the external device is connected to the USB-Type-C interface, determine whether the state of the USB-Type-C interface is the first state, and when the state of the USB-Type-C interface is the first state, determine whether print data is being received from the external device, and when the print data is being received from the external device, cause the printing unit to execute printing based on the print data, and when the state of the USB-Type-C interface is not the first state, control the power supply circuit to supply power to the external device; Printing device.
2. The USB-Type-C interface is Including power input / output terminals; When in the first state, it is possible to receive power from the external device via the power input / output terminal, When in the second state, power can be supplied to the external device via the power input / output terminal. The printing device of claim 1 .
3. The USB-Type-C interface is Includes a data transmission / reception terminal, When in the first state, a data signal can be received from the external device via the data transmission / reception terminal; When in the second state, a data signal can be transmitted to the external device via the data transmission / reception terminal.
3. The printing device according to claim 1 or 2.
4. When data requesting a printing operation is received from the external device connected to the USB-Type-C interface and the printing operation is performed by the printing unit via the control circuit, the state identification terminal is held at a third potential different from the first potential and the second potential; The printing device according to any one of claims 1 to 3.
5. When the external device is connected to the USB-Type-C interface and the state identification terminal is held at the third potential, the external device is removed. the state identification terminal is periodically switched between the first potential and the second potential; The printing device according to claim 4.
6. A battery module connected to the power supply circuit is mounted on the When the external device connected to the USB-Type-C interface is a charger, the state identification terminal is maintained at the third potential, and the battery module is charged by receiving power from the external device; 6. The printing device according to claim 4 or 5.
7. It does not have a battery module. A display unit is provided, When the external device connected to the USB-Type-C interface is a charger, the state identification terminal is held at the third potential; The display unit displays a warning.
6. The printing device according to claim 4 or 5.
8. During the unit time, the ratio of the time held at the second potential to the time held at the first potential is 7:
3. The printing device according to any one of claims 1 to 7.
9. the ratio of the time held at the second potential to the time held at the first potential during said unit time is variable between 7:3 and 5:5; The printing device according to any one of claims 1 to 7.
10. a wireless communication unit that receives a data signal output from the external device connected to the USB-Type-C interface; The printing device according to any one of claims 1 to 9.
Citation Information
Patent Citations
Electronic apparatus and control method thereof
JP2018147123A
Electronic equipment and control method therefor, communication system
JP2019134334A
State notification method in USB type-c interface circuit, device having USB type-c interface circuit, type-c cable, and information processing system
JP2020052959A
Information processing device, method for controlling information processing device, and program
JP2020121456A
Apparatuses to resolve roles for dual role serial bus devices
US20180060261A1