Printing equipment and USB devices
The USB controller in the printing apparatus and USB device addresses unstable communication by switching between host and device states based on electrical signals, ensuring stable connectivity in devices with USB-Type-B and USB-Type-C interfaces.
Patent Information
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- SEIKO EPSON CORP
- Filing Date
- 2021-10-26
- Publication Date
- 2026-05-26
AI Technical Summary
Printing devices equipped with both USB-Type-B and USB-Type-C interfaces can experience unstable communication when external devices acting as both host and device are connected simultaneously, leading to mixed device and host states.
The printing apparatus and USB device are designed with a USB controller that switches between host and device states based on electrical signals from connected external devices, using first and second receptacle connectors for communication with external devices functioning as hosts or devices, ensuring stable communication.
This solution stabilizes communication by accurately determining and adapting to the host or device state of connected external devices, preventing communication instability.
Smart Images

Figure 0007864992000001 
Figure 0007864992000002 
Figure 0007864992000003
Abstract
Description
Technical Field
[0001] The present invention relates to a printing apparatus and a USB device.
Background Art
[0002] In recent years, the USB-Type-C interface has become widely popular, and various devices are being equipped with the USB-Type-C interface. With the spread of such USB-Type-C interfaces, products equipped with the USB-Type-C interface in addition to the USB-Type-B interface are also becoming popular in electronic devices such as printing apparatuses and projectors.
[0003] An external device connected to a USB-Type-C interface can be in either a host or a device state. Therefore, an electronic device such as a printing apparatus or a projector needs to switch its own host or device state according to the host or device state of the connected external device. Patent Document 1 discloses a printing apparatus that functions as a device with respect to an external device that functions as a host connected to a USB-Type-B interface.
Prior Art Documents
Patent Documents
[0004]
Patent Document 1
Summary of the Invention
Problems to be Solved by the Invention
[0005] However, in printing devices equipped with both USB-Type-B and USB-Type-C interfaces, it is possible for an external device acting as a host and another external device acting as a device to be connected simultaneously. In such cases, the printing device may experience a mix of device and host states, leading to unstable communication and other issues that need improvement. [Means for solving the problem]
[0006] One aspect of the printing apparatus according to the present invention is: A first receptacle connector that connects a first external device, which functions as a host, and a processing unit in a way that enables communication between them, A second receptacle connector that connects a second external device functioning as a host or device to the arithmetic unit in a communicative manner, A USB controller that causes the calculation unit to function as the device or the host based on a first electrical signal input from the first external device via the first receptacle connector and a second electrical signal input from the second external device via the second receptacle connector, A printing apparatus having, When the first external device is connected to the first receptacle connector, The aforementioned USB controller is When the second external device, which functions as the aforementioned device, is connected to the second receptacle connector, the arithmetic unit is made to function as the device, rather than as the host. When the second external device, which functions as the host, is connected to the second receptacle connector, the arithmetic unit is made to function as the device. When the second external device is not connected to the second receptacle connector, the calculation The part is made to function as the aforementioned device.
[0007] One embodiment of the USB device according to the present invention is: A first external device that functions as a host and a first receptacle connector that enables communication between the USB device, A second external device that functions as a host or device and a second receptacle connector that connects the USB device to each other in a communicative manner, A USB controller that causes the USB device to function as the device or the host based on a first electrical signal input from the first external device via the first receptacle connector and a second electrical signal input from the second external device via the second receptacle connector, USB devices having, When the first external device is connected to the first receptacle connector, The aforementioned USB controller is When the second external device, which functions as the aforementioned device, is connected to the second receptacle connector, the USB device is made to function as the aforementioned device, rather than as the aforementioned host. When the second external device, which functions as the host, is connected to the second receptacle connector, the USB device is made to function as the device. When the second external device is not connected to the second receptacle connector, the USB device is made to function as the device. [Brief explanation of the drawing]
[0008] [Figure 1] This is a diagram illustrating the schematic configuration of the printing system. [Figure 2] This is a block diagram of a printing device system. [Figure 3] This is a block diagram of the control unit of the printing device. [Figure 4] This is a block diagram of the USB controller and USB interface. [Figure 5] This is a block diagram of the USB controller and USB-Type-C interface. [Figure 6]It is a block diagram of a USB controller and a USB-Type-A interface. [Figure 7] It is a block diagram of a USB controller and a USB-Type-A interface. [Figure 8] It is a block diagram of a USB controller and a USB-Type-B interface. [Figure 9] It is a perspective view of a printing device. [Figure 10] It is a perspective view of the printing device when viewed from the back. [Figure 11] It is a perspective view of the printing device with the bottom cover and the back cover removed. [Figure 12] It is a plan view of the first connector surface and the second connector surface. [Figure 13] It is a diagram showing various USB cables and a part of the connector unit 220. [Figure 14] It is a state transition diagram of the host or device of the printing device. [Figure 15] It is a diagram showing the hardware configuration of a modified USB controller.
Embodiments for Carrying Out the Invention
[0009] Hereinafter, preferred embodiments of the present invention will be described with reference to the drawings. The drawings used are for convenience of explanation. Note that the embodiments described below do not unduly limit the content of the present invention described in the claims. Also, not all of the configurations described below are essential constituent elements of the present invention.
[0010] 1. First Embodiment 1-1. Schematic Configuration of Printing System Figure 1 shows a schematic configuration of the printing system 1 according to this embodiment. Such a printing system 1 is used, for example, in a store and has the functions of accounting according to the goods or services purchased by the customer, informing the customer of accounting information, and issuing a receipt according to the accounting. For example, the printing system 1 is an example of a POS (Point of Sale) system.
[0011] The printing system 1 comprises a printing device 2, a smart device 3a, a customer display 3b, and a handheld scanner 3c. The printing system 1 may also be configured by omitting or modifying some of these elements, or by adding other elements.
[0012] The printing device 2 is powered by being connected to a commercial AC power source (not shown) via a power cable 5. Once powered, the printing device 2 prints on the medium P, which is then discharged from the medium discharge port 13. That is, the printed portion of the medium P is discharged from the medium discharge port 13.
[0013] The smart device 3a, customer display 3b, and handheld scanner 3c are examples of external devices that can be connected to the printer 2 via the USB interface 60 provided by the printer 2, as described later. Specifically, the smart device 3a is connected to the printer 2 via USB cable 4a, the customer display 3b is connected to the printer 2 via USB cable 4b, and the handheld scanner 3c is connected to the printer 2 via USB cable 4c.
[0014] Note that Figure 1 shows an example where a smart device 3a, a customer display 3b, and a handheld scanner 3c are connected to the printer 2, but the number of external devices that can be connected to the printer 2 is not necessarily 3. For example, the number of external devices that can be connected to the printer 2 depends on the USB standard. According to the USB standard, the maximum number of connectable external devices is 127, so the maximum number of external devices that can be connected to the printer 2 is 127.
[0015] The smart device 3a is a terminal that the user can carry with them. For example, the smart device 3a is a tablet or a smartphone, and the smart device 3a is equipped with a communication unit that transmits data according to a predetermined communication standard, and communicates with the printing device 2 via this communication unit.
[0016] Here, unless otherwise specified, "user" refers to a store employee who provides goods or services to customers, or a business that installs the printing system 1 in a store and sets up external equipment such as the printing device 2 and smart devices 3a.
[0017] The smart device 3a is equipped with a battery and operates using the power stored in the battery. The smart device 3a receives power from the printing device 2, which also charges the battery. The smart device 3a also incorporates various applications that generate commands to control the printing device 2 and print data. For example, the applications installed on such a smart device 3a are applications compatible with a POS system.
[0018] The smart device 3a transmits control commands and printing commands to the printing device 2. Upon receiving these commands, the printing device 2 stores them in a receiving buffer (not shown).
[0019] Control commands include, for example, setting commands that instruct formatting settings and status request commands that instruct the request for information regarding the status of printer 2. In response to a command request, for example, the printing device 2 sends information to the smart device 3a indicating that printing is complete.
[0020] Printing commands include, for example, a print command to instruct printing, a newline command to instruct a newline, a line feed command to instruct line feed, and a cutter command to instruct cutting of the medium P. Printing commands also include commands to instruct the driving of any of the thermal head 21, transport unit 23, and cutting unit 24 shown in Figure 2.
[0021] Smart device 3a generates print data such as characters and images to be printed by the printing device 2. Smart device 3a sends a print command containing the generated print data to the printing device 2 according to a predetermined communication standard. The printing device 2 executes the print command and prints characters, images, etc., onto the medium P based on the print data.
[0022] The customer display 3b can be used, for example, by placing it on a store counter table. Customers who purchase products at the store can check the amount displayed on the customer display 3b to recognize the amount they have paid. The customer display 3b may also display the name of the product purchased by the customer, the payment method, the date and time of purchase, the name of the store where the purchase was made, etc.
[0023] For example, in cases where customers themselves handle the accounting and payment for their purchases, such as with self-checkout systems, the store employee using the system may omit the customer display 3b from the printing system 1. In this case, it is preferable that the content displayed on the customer display 3b is displayed on the smart device 3a.
[0024] For example, it is preferable that the name of the product purchased by the customer, the payment method, the date and time of purchase, and the name of the store where the purchase was made are displayed on the smart device 3a. In this way, the store employee, as the user, can reduce the power consumption of the printing system 1 and simplify the configuration of the printing system 1 by omitting the customer display 3b depending on the situation and reducing the number of external devices.
[0025] The handheld scanner 3c operates by receiving power from the printer 2. The printer 2 receives information about the image scanned by the handheld scanner 3c.
[0026] For example, the user scans the barcode attached to the product using a handheld scanner 3c. Information about the scanned image is output to the smart device 3a via the printing device 2. The smart device 3a can obtain information about the product, as well as information about the price, etc.
[0027] For example, a store employee, acting as the user, uses a handheld scanner 3c to scan a barcode presented by a customer via a smartphone or similar device. Information regarding the scanned image is output to a smart device 3a via the printing device 2.
[0028] Smart device 3a can obtain information regarding payment methods and payment amounts. Based on this information, smart device 3a may complete payment via an online payment service and display information regarding payment completion on customer display 3b via printing device 2. This allows the customer to confirm that payment has been completed.
[0029] 1-2. Printing System Functions The functional configuration of the printing system 1 will be explained with reference to Figure 2. Figure 2 is a block diagram of the printing system 1.
[0030] The printing system 1 comprises external devices 10a, 10b, 10c, 10d, and a printing device 2. The smart device 3a, customer display 3b, and handheld scanner 3c mentioned above are examples of external devices 10a, 10b, 10c, and 10d.
[0031] The printing device 2 comprises a display unit 11, a power supply circuit 12, a media outlet 13, a printing unit 20, and a control unit 30.
[0032] The display unit 11 includes, for example, a plurality of LEDs. The display unit 11 is electrically connected to the control unit 30 and controlled by the control unit 30. The display unit 11 displays, for example, information regarding the status of the printing device 2 by flashing the LEDs. The display unit 11 may also be a liquid crystal display device.
[0033] The power supply circuit 12 can supply power to the display unit 11, the printing unit 20, and the control unit 30. The power supply circuit 12 can be 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.
[0034] The power supply circuit 12 includes, for example, a DC-DC converter, a resistor, a switching element, and a transistor. The power supply circuit 12 can supply power to external devices 10a, 10b, 10c, and 10d that are electrically connected to the printing device 2 via the USB interface 60. For example, the power supply circuit 12 can supply power to a smart device 3a, a customer display 3b, and a handheld scanner 3c.
[0035] The printing unit 20 includes a thermal head 21 and a print head drive unit 22. The printing unit 20 is also electrically connected to a transport unit 23 and a cutting unit 24. The transport unit 23 has transport rollers (not shown), and the cutting unit 24 has a cutter including a first blade and a second blade. The first blade is a movable blade that moves between a standby position and a cutting position, and the second blade is a fixed blade that meshes with the first blade when it moves to the cutting position to cut the recording paper. The printing unit 20 is electrically connected to a power supply circuit 12 and operates by receiving power from the power supply circuit 12. The printing unit 20 is also controlled by a control unit 30. The printing unit 20 performs printing on the medium P based on print data output from, for example, a smart device 3a, which is an example of an external device. Thus, the printing device 2 is an example of an electronic device that includes a printing unit 20 that performs printing on the medium P.
[0036] The thermal head 21 has a number of heating elements 25. The number of heating elements 25 are arranged in a direction perpendicular to the transport direction of the thermal roll paper 26, which is the medium P. When the heating elements 25 are energized, heat is applied to the printing surface of the thermal roll paper 26. As a result, the thermal head 21 can print characters, images, etc., on the thermal roll paper 26. The portion drawn out from the thermal roll paper 26 may be referred to as recording paper. Furthermore, the printing unit 20 is not limited to printing with the thermal head 21, but may also perform inkjet, impact dot matrix, or laser printing. The medium P is not limited to thermal roll paper 26, but may also be sheet paper, label paper, etc.
[0037] The print head drive unit 22 is controlled by the control unit 30 and controls the supply of power to the heating element 25 of the thermal head 21. The transport unit 23 is controlled by the control unit 30 and rotates the transport rollers to transport the thermal roll paper 26. The cutting unit 24 is controlled by the control unit 30 and drives the first blade to slide toward the second blade to cut the thermal roll paper 26.
[0038] Figure 3 is a block diagram of the control unit 30 of the printing device 2. As shown in Figure 3, the control unit 30 includes a CPU (Central Processing Unit) 31, RAM (Random Access Memory) 32, ROM (Read-only memory) 33, USB controller 34, non-volatile memory 35, wireless communication unit 36, USB communication unit 50, BUS-IF 37, device IF 38, and 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 be composed of hardware such as an FPGA (Field Programmable Gate Array) in addition to or instead of a CPU.
[0039] The CPU 31 is responsible for the main control of the printing device 2. The CPU 31 is electrically connected to the RAM 32, ROM 33, USB controller 34, non-volatile memory 35, wireless communication unit 36, USB communication unit 50, and BUS-IF 37 via the system bus 41.
[0040] RAM32 is a read / write memory that provides a workspace for the CPU31. RAM32 can also be used as image memory for temporarily storing image data. ROM33 is a boot ROM and stores the system's boot program. Non-volatile memory35 stores system software and setting data that need to be retained even after the power to the printer 2 is cut off.
[0041] The USB controller 34 controls the USB interface 60 via the system bus 41. In other words, the USB controller 34 controls external devices 10a, 10b, 10c, and 10d connected to the USB interface 60. For example, the USB controller 34 may be composed of hardware such as a SoC (System on a chip).
[0042] As an example of the hardware configuration of the USB controller 34, Figure 4 shows a configuration example in which the USB controller 34 includes an integrated circuit 346. This integrated circuit 346 receives electrical signals from external devices 10a, 10b, and 10c via signal path 349, and electrical signals from external device 10d via signal path 348. Based on the electrical signals received via signal paths 348 and 349, the integrated circuit 346 generates control signals and transmits them to the CPU 31 via the system bus 41. The CPU 31 controls the state of the printer 2 according to these control signals. Specifically, the printer 2 can be either a host or a device.
[0043] The electrical signals transmitted via signal path 348 are electrical signals from external device 10d transmitted via USB-Type-B interface 60d. Generally, external device 10d functions as a host. On the other hand, the electrical signals transmitted via signal path 349 are electrical signals from external device 10a transmitted via USB-Type-C interface 60a. Generally, external device 10a functions as either a host or a device. Similarly, the electrical signals transmitted via signal path 349 are electrical signals transmitted via USB-Type-A interfaces 60b and 60c. Generally, external devices 10b and 10c function as hosts.
[0044] For example, the electrical signals transmitted via signal path 349 may be electrical signals from external device 10a functioning as a host or device, and electrical signals from external devices 10b and 10c functioning as hosts. Also, the electrical signals transmitted via signal path 348 may be electrical signals from external device 10d functioning as a host. In this way, the signal paths for electrical signals may be separated depending on the host or device status of the external device connected to the USB interface 60. The various controllers included in the USB controller 34 will be described later.
[0045] The wireless communication unit 36 can connect to external devices using wireless communication. The wireless communication unit 36 can communicate with external devices according to standards such as Wi-Fi® and Bluetooth®. BUS-IF37 is an interface that electrically connects the system bus 41 and the image bus 42. BUS-IF37 can operate as a bus bridge that converts data structures.
[0046] In addition to BUS-IF37, the image bus 42 is electrically connected to device IF38 and image processing unit 39. Device IF38 is an interface that connects the control unit 30 with the printing unit 20 and the display unit 11. Device IF38 can perform synchronous and asynchronous data conversion. The image processing unit 39 can perform predetermined processing on the print-related data output to the printing unit 20.
[0047] 1-3. USB Interface Figure 4 is a block diagram of the USB communication unit 50 and the USB interface 60. Figures 5 to 8 are diagrams showing each interface included in the USB interface 60. As shown in Figure 4, the USB communication unit 50 includes the USB interface 60 and the USB hub 53.
[0048] The USB hub 53 is electrically connected to the USB interface 60. The USB hub 53 also receives instructions from the USB controller 34 via the system bus 41 and operates between the USB controller 34 and the USB interface 60. For example, the USB hub 53 may include hardware such as an integrated circuit. Furthermore, the USB hub 53 acts as a concentrator or relay device in the USB network.
[0049] Furthermore, the USB interface 60 includes a USB-Type-C interface 60a, USB-Type-A interfaces 60b, 60c, and a USB-Type-B interface 60d.
[0050] Figure 4 shows an example in which a USB-Type-C interface 60a is connected to an external device 10a, a USB-Type-A interface 60b is connected to an external device 10b, a USB-Type-A interface 60c is connected to an external device 10c, and a USB-Type-B interface 60d is connected to an external device 10d, but is not limited to this. The USB interface 60 may include other USB interfaces of different standards, such as mini-USB-Type-A or micro-USB-Type-A.
[0051] The power supply circuit 12 shown in Figure 3 supplies power to the USB-Type-C interface 60a, USB-Type-A interfaces 60b and 60c, and USB-Type-B interface 60d. The power supply circuit 12 may also be configured to supply power to the USB hub 53. Furthermore, the power supply circuit 12 may not supply power to the USB-Type-B interface 60d.
[0052] The USB communication unit 50 may also be configured to include a PD controller. This PD controller, for example, controls the supply of power compliant with the USB PD (Power Delivery) standard to the external device 10a connected to the USB-Type-C interface 60a. The power supply circuit 12 may be configured to supply power to the USB-Type-C interface 60a, or a separate power supply circuit may be configured to supply power to the USB-Type-C interface 60a. In any case, it is sufficient that power compliant with the USB PD standard is supplied to the USB-Type-C interface 60a.
[0053] For example, a power supply circuit that provides power compliant with the USB PD standard to a USB-Type-C interface 60a generates different voltages such as 5V, 9V, and 12V, and supplies multiple different voltages to an external device 10a. Furthermore, this power supply circuit may be configured to supply a constant current regardless of the voltage supplied to the external device 10a, or it may be configured to supply different currents depending on the supplied voltage.
[0054] The USB-Type-C interface 60a will be described with reference to Figure 5. Figure 5 is a block diagram of the USB controller 34 and the USB-Type-C interface 60a.
[0055] The USB controller 34 includes a device controller 341, a host controller 342, and a DRP (Dual Role Port) controller 343. The USB-Type-C interface 60a is controlled by the DRP controller 343 of the USB controller 34 via the system bus 41 and the USB hub 53.
[0056] The USB-Type-C interface 60a includes a VBUS terminal 61a, a D+ / D- terminal 62a, and a CC (Configuration Channel) terminal 63a.
[0057] The DRP controller 343 controls the transmission and reception of data from the external device 10a connected to the USB-Type-C interface 60a. The DRP controller 343 also controls data transmission to send data such as print commands to the CPU 31 via the system bus 41.
[0058] The DRP controller 343 mediates the communication between the USB controller 34 and the USB interface 60, for example, by synchronous serial communication. Synchronous serial communication may also be I2C (Inter-Integrated Circuit) communication.
[0059] The VBUS terminal 61a is a so-called power input / output terminal. The VBUS terminal 61a is a terminal for sending and receiving power to and from the external device 10a. Therefore, power can be supplied and received between the printing device 2 and the external device 10a.
[0060] A port that supplies power is the source, and a port that receives power is the sink. A device that functions as a source is the provider, and a device that functions as a sink is the consumer. The USB-Type-C interface 60a can switch between supplying and receiving power depending on the situation. For example, if printer 2 is the source, then external device 10a connected to the USB-Type-C interface 60a is the sink. Conversely, if printer 2 is the sink, then external device 10a connected to the USB-Type-C interface 60a is the source.
[0061] The D+ / D- terminal 62a is a so-called data transmission and reception terminal. The D+ / D- terminal 62a is a terminal for transmitting and receiving data signals with the external device 10a. Therefore, it is possible to transmit and receive data signals between the printing device 2 and the external device 10a.
[0062] The CC terminal 63a is a so-called state identification terminal. The CC terminal 63a identifies whether the D+ / D- terminal 62a is in a state where it can receive data signals from the external device 10a or is in a state where it can transmit data signals to the external device 10a. For example, the CC terminal 63a identifies whether the VBUS terminal 61a is in a state where it can receive power from the external device 10a or is in a state where it can supply power to the external device 10a. Therefore, the USB controller 34 can identify the state of the external device 10a. It becomes possible.
[0063] When no external device 10a is connected to the USB-Type-C interface 60a, the CC terminal 63a alternates between a first potential E1 and a second potential E2 at regular intervals within a unit of time. When an external device 10a is connected to the USB-Type-C interface 60a, the potential of the CC terminal 63a is fixed. For example, the potential of the CC terminal 63a may be fixed to the first potential E1 when the external device 10a functions as a host, and to the second potential E2 when it functions as a device, or vice versa.
[0064] Next, the USB-Type-A interface 60b will be described with reference to Figure 6. Figure 6 is a block diagram of the USB controller 34 and the USB-Type-A interface 60b.
[0065] The USB-Type-A interface 60b includes a VBUS terminal 61b and D+ / D- terminals 62b. Unlike the USB-Type-C interface 60a described above, the CC terminal 63a is omitted. Therefore, the USB-Type-A interface 60b does not have the function to identify the status of the connected external device 10b.
[0066] The USB-Type-A interface 60b is powered by the power supply circuit 12 and supplies power to the external device 10b via the VBUS terminal 61b. For example, the voltage supplied to the USB-Type-A interface 60b by the power supply circuit 12 is 5V. The USB-Type-A interface 60b also transmits signals to the external device 10b via the D+ / D- terminal 62b. The external device 10b generally functions as a host.
[0067] The USB hub 53, which is electrically connected to the USB-Type-A interface 60b, is controlled by the host controller 342 of the USB controller 34 via the system bus 41. In other words, the USB-Type-A interface 60b is controlled by the host controller 342.
[0068] Note that the USB-Type-A interface 60c shown in Figure 7 has the same configuration as the USB-Type-A interface 60b shown in Figure 6, so its explanation is omitted.
[0069] Next, the USB-Type-B interface 60d will be described with reference to Figure 8. Figure 8 is a block diagram of the USB controller 34 and the USB-Type-B interface 60d.
[0070] The USB-Type-B interface 60d is equipped with a VBUS terminal 61d and a D+ / D- terminal 62d. Unlike the USB-Type-C interface 60a described above, the CC terminal 63a is omitted. Therefore, the USB-Type-B interface 60d does not have the function to identify the status of the connected external device 10d.
[0071] The USB-Type-B interface 60d is powered by the power supply circuit 12 and supplies power to the external device 10d via the VBUS terminal 61d. For example, the voltage supplied to the USB-Type-B interface 60d by the power supply circuit 12 is 5V. The USB-Type-B interface 60d also transmits signals to the external device 10d via the D+ / D- terminal 62d. The external device 10d generally functions as a host.
[0072] The USB-Type-B interface 60d is connected to the system bus 41 via USB. It is controlled by the device controller 341 of the controller 34.
[0073] In other words, unlike the USB-Type-B interfaces 60b and 60c, the USB-Type-B interface 60d is controlled by the USB controller 34 without going through the USB hub 53. However, the USB-Type-B interface 60d may also be configured to be controlled by the USB controller 34 via the USB hub 53.
[0074] 1-4.Printing device The schematic configuration of the printing device 2 will be described with reference to Figures 9 to 11.
[0075] In Figures 9 to 11, the +X direction is the front direction of the printing device 2, the -X direction is the rear direction of the printing device 2, the +Y direction is the right direction of the printing device 2, the -Y direction is the left direction of the printing device 2, the +Z direction is the up direction of the printing device 2, and the -Z direction is the down direction of the printing device 2.
[0076] The printing device 2 is, for example, a thermal printer. As shown in Figure 9, the printing device 2 has a main body case 200 that is rectangular in shape overall, except for protrusions such as buttons. As shown in Figure 11, the bottom cover 241 and rear cover 246 of the printing device 2 are removable, and the main body frame 208 is covered by the bottom cover 241 and the rear cover 246.
[0077] Inside the main case 200 are the printing unit 20, the media storage unit 210 for storing the media P, and the connector unit 220, as shown in Figure 2. When the opening / closing door 203 is closed, the printed media P travels through the transport path formed between the opening / closing door 203 and the main case 200 and is discharged from the media discharge port 13.
[0078] The opening / closing door 203 constitutes the first case surface 200a of the main case 200 and is connected to the rear of the main case 200 so as to be openable and closable. In Figure 9, the first case surface 200a is the front of the main case 200. The opening / closing door 203 is provided with, for example, a transport roller at its front end, which is positioned opposite the thermal head 21 provided on the main case 200 when the opening / closing door 203 is closed. When the opening / closing door 203 is closed, the transport roller and the thermal head 21 hold the medium P between them, and the medium P is transported by the rotation of the transport roller, and the thermal head 21 prints on the printing surface of the medium P. The first case surface 200a of the main case 200 is provided with a display unit 11, a medium discharge port 13, a power switch 201, an opening / closing lever 202, and a feed switch 204. In other words, the display unit 11, media outlet 13, power switch 201, opening / closing lever 202, and feed switch 204 are arranged on the first case surface 200a of the main body case 200.
[0079] Furthermore, the connector section 220 faces the third case surface 200c of the main body case 200 and is provided in the routing section 215 formed between the third case surface 200c and the first main body frame surface 205. In Figure 9, the third case surface 200c is the bottom surface of the main body case 200. As will be described later, the connector section 220 includes a circuit board 300 on which various receptacle connectors are provided. The circuit board 300 is parallel to the third case surface 200c of the main body case 200. For example, the circuit board 300 is connected to a main circuit board housed inside the main body case 200 and is arranged to be parallel to the third case surface 200c of the main body case 200.
[0080] The power switch 201 is a switch for turning the power of the printing device 2 on or off. As shown in Figure 1, the printing device 2 is connected to a commercial AC power supply via a power cable 5 and powered by it. When the power is on, the printing device 2 performs printing on the medium P and communicates with external devices such as a smart device 3a.
[0081] The opening / closing lever 202 is for opening and closing the opening / closing door 203. The user uses the opening / closing lever The operator operates the 202 to open the door 203 and store the thermal roll paper 26, which is the medium P, in the medium storage section 210 provided in the main case 200. The door 203 seals the medium storage section 210 from above.
[0082] The feed switch 204 is a switch for feeding the thermal roll paper 26, which is the medium P stored in the medium storage unit 210. Specifically, the user can feed the thermal roll paper 26 to a desired position by operating the feed switch 204. For example, the roll paper may be transported while the user is pressing the feed switch 204, and the transport of the roll paper may stop when the user is not pressing the feed switch 204.
[0083] The display unit 11 may display, for example, information regarding the communication status, information prompting replenishment of the media P, etc. Since the display unit 11 has the role of informing the user of the status of the printing device 2, it is preferable that the display unit 11 be placed in a position that is easily visible to the user. For example, if the printing device 2 is positioned so that the second case surface 200b of the main body case 200 is facing forward, the user can easily see the display unit 11 and the media outlet 13.
[0084] The media outlet 13 discharges, for example, a medium P on which characters, images, etc., are printed based on print data. As described above, for example, if a user is in front of the printing device 2 and the printing device 2 is positioned so that the second case surface 200b of the main case 200 is facing forward, the printed surface of the medium P faces the user. Therefore, the user can check the contents printed on the medium P while watching it being discharged from the media outlet 13. For this reason, the user can check the printed contents without waiting for the discharge of the medium P from the media outlet 13 to be completed.
[0085] Therefore, it is preferable that the media outlet 13 be located in a position that is easily visible to the user, similar to the display unit 11. Furthermore, it is even more preferable that the media outlet 13 be located near the display unit 11 so that it can be seen by the user at the same time as the display unit 11. Specifically, it is preferable that the media outlet 13 and the display unit 11 are arranged side by side on the first case surface 200a of the main body case 200, and that the longitudinal direction of the media outlet 13 and the display unit 11 is the Y direction, which is the width direction of the main body case 200.
[0086] As shown in Figure 10, the bottom cover 241, which constitutes the third case surface 200c of the main case 200, is detachable and covers the routing section 215. The bottom cover 241 has a substantially rectangular shape. The bottom cover 241 has a plurality of elastic members 251 that serve as the legs of the printing device 2. The bottom cover 241 also has a plurality of holes 252. The holes 252 discharge water droplets that have entered the inside of the main case 200 to the outside of the main case 200. In addition to being used on a table or floor, the printing device 2 can also be used by hanging it on a wall. In this case, the holes 252 engage with a wall-mounting member (not shown), and the printing device 2 is hung on the wall. This allows the printing device 2 to be used in a so-called wall-mounted state, making it possible to use a larger area on the table or floor.
[0087] As shown in Figure 10, the rear cover 246, which constitutes the fourth case surface 200d of the main case 200, is detachable and covers the second main frame surface 206. In Figure 9, the fourth case surface 200d is the rear surface of the main case 200. The rear cover 246 has a substantially rectangular shape. The rear cover 246 covers the main frame 208 from the rear. The rear cover 246 has cable outlets 255 for routing various cables that connect the printing device 2 to various external devices.
[0088] As shown in Figure 11, the fifth case surface 200e and the sixth case surface 200f of the main case 200 are provided with a first mounting portion 271 for attaching the bottom cover 241. In Figure 9, the fifth case surface 200e is the left side of the main case 200, and the sixth case surface 200f is the right side of the main case 200. Similarly, the fifth case surface 200e and the sixth case surface 200f of the main case 200 are provided with a second mounting portion 276 for attaching the rear cover 246.
[0089] The first mounting portion 271 is formed at the lower ends of the fifth case surface 200e and the sixth case surface 200f of the main case 200. The first mounting portion 271 is provided with a case-side engaging portion 272. The bottom cover 241 is attached to the main case 200 by the engagement of this case-side engaging portion 272 with a cover-side engaging portion 242 provided on the bottom cover 241.
[0090] The second mounting portion 276 is formed at the rear ends of the fifth case surface 200e and the sixth case surface 200f of the main case 200. The second mounting portion 276 is provided with a case-side engaging portion 277. The case-side engaging portion 277 engages with a cover-side engaging portion 247 provided on the rear cover 246, thereby attaching the rear cover 246 to the main case 200.
[0091] Furthermore, circular notches 261 and 262 are provided at the corners where the first mounting portion 271 and the second mounting portion 276, which are located on the fifth case surface 200e and the sixth case surface 200f of the main case 200, intersect. The notches 261 and 262 are also in communication with the routing portion 215.
[0092] The routing section 215 is the space between the third case surface 200c and the first main frame surface 205 of the main case 200, and is further defined by the fourth case surface 200d, fifth case surface 200e, sixth case surface 200f, and connector section 220 of the main case 200.
[0093] The routing section 215 is defined by referring to the X, Y, and Z directions shown in Figures 9 to 11. The X direction is defined between the rear cover 246 and the first connector surface 221 and the second connector surface 222 of the connector section 220, the Y direction is defined between the fifth case surface 200e and the sixth case surface 200f of the main body case 200, and the Z direction is defined between the bottom cover 241 and the first main body frame surface 205. The first connector surface 221 or the second connector surface 222 is a flat surface, and is one example of sheet metal. The flat surface is not limited to a metal plate such as sheet metal, but may also be a resin plate.
[0094] The various cables connected to the connector section 220 are routed through the routing section 215. Then, the various cables connected to the connector section 220 are pulled out to the outside of the main body case 200 through the notches 261, 262, or the cable outlet 255 provided in the rear cover 246.
[0095] The printing device 2 can be installed in a first orientation where the media outlet 13 of the media P faces upward, or in a second orientation where the media outlet 13 of the media P faces forward. In other words, in the first orientation, the printed media P is discharged from the media outlet 13 in the +Z direction, and in the second orientation, the printed media P is discharged from the media outlet 13 in the +X direction. Also, in the first orientation, the first case surface 200a is the top surface of the main case 200, and in the second orientation, the first case surface 200a is the front surface of the main case 200.
[0096] Specifically, in the first orientation, the connector section 220 is covered by the bottom cover 241, while in the second orientation, the connector section 220 is covered by the rear cover 246.
[0097] In both the first and second orientations, multiple elastic members 251, which serve as the legs of the printing device 2, are arranged on the bottom surface of the printing device 2, allowing the printing device 2 to be installed stably. Furthermore, since no multiple elastic members 251 are arranged on the back of the printing device 2, the appearance of the printing device 2 is not spoiled. Alternatively, a simpler configuration may be adopted in which only one of the bottom cover 241 and rear cover 246, which covers the connector section 220, is detachable, and the other cover is integrated with the main body case 200. In this case, in the first orientation, the cover covering the connector section 220 becomes the bottom surface, and in the second orientation, the cover covering the connector section 220 becomes the back surface.
[0098] 1-5. Connector section As shown in Figure 12, the connector portion 220 has a first connector surface 221 and a second connector surface 222. The connector portion 220, including the first connector surface 221 and the second connector surface 222, is formed from a flat plate, and the outer and inner surfaces of the first connector surface 221 and the second connector surface 222 are formed to be flat. Here, unless otherwise specified, the flat plate is a metal sheet metal.
[0099] Furthermore, as shown in Figure 12, the first connector surface 221 has openings 220a, 220b, and 220c, and the second connector surface 222 has openings 220d, 220e, and 220f.
[0100] The opening 220a formed on the first connector surface 221 corresponds to a USB-Type-C receptacle connector 320a, the opening 220b formed on the first connector surface 221 corresponds to a USB-Type-A receptacle connector 320b, and the opening 220c formed on the first connector surface 221 corresponds to a USB-Type-A receptacle connector 320c.
[0101] The opening 220d formed on the second connector surface 222 corresponds to the USB-Type-B receptacle connector 320d.
[0102] The opening 220d formed on the second connector surface 222 corresponds to a USB-Type-B receptacle connector 320d, the opening 220e formed on the second connector surface 222 corresponds to a power connector 320e, and the opening 220f formed on the second connector surface 222 corresponds to a DK (Drawer Kick) receptacle connector 320f. The opening 220f may also correspond to a LAN (Local Area Network) receptacle connector.
[0103] The USB-Type-C receptacle connector 320a is electrically connected to the external device 10a, enabling communication between the external device 10a and the control unit 30. The USB-Type-C receptacle connector 320a is mounted on the circuit board 300, and the outer circumference of its insertion opening coincides with the inner circumference of the opening 220a. This reduces the risk of foreign objects such as dust and insects entering the inside of the connector part 220. The insertion opening of the USB-Type-C receptacle connector 320a is positioned along the first connector surface 221.
[0104] The USB-Type-C receptacle connector 320a is equipped with a CC terminal 63a, and unlike other USB standards, the host and device are not clearly defined between the printer 2 and the external device 10a connected to the printer 2. In other words, the printer 2 may receive commands from the external device 10a and operate, or it may issue commands to the external device 10a and the external device 10a operates. For example, the printer 2 may supply power to the external device 10a. Thus, because the printer 2 equipped with the USB-Type-C receptacle connector 320a can operate as either a host or a device, the printer 2 This improves convenience for users of version 2.
[0105] The USB-Type-A receptacle connector 320b is electrically connected to the external device 10b, enabling communication between the external device 10b and the control unit 30. The USB-Type-A receptacle connector 320b is mounted on the circuit board 300, and the outer circumference of its insertion opening coincides with the inner circumference of the opening 220b. This reduces the risk of foreign objects such as dust and insects entering the inside of the connector part 220. The insertion opening of the USB-Type-A receptacle connector 320b is positioned along the first connector surface 221.
[0106] The USB-Type-A receptacle connector 320c is electrically connected to the external device 10c, enabling communication between the external device 10c and the control unit 30. The USB-Type-A receptacle connector 320c is mounted on the circuit board 300, and the outer circumference of its insertion opening coincides with the inner circumference of the opening 220c. This reduces the risk of foreign objects such as dust and insects entering the inside of the connector part 220. The insertion opening of the USB-Type-A receptacle connector 320c is positioned along the first connector surface 221.
[0107] The USB-Type-B receptacle connector 320d is electrically connected to the external device 10d, enabling communication between the external device 10d and the control unit 30. The USB-Type-B receptacle connector 320d is mounted on the circuit board 300, and the outer circumference of its insertion opening coincides with the inner circumference of the opening 220d. This reduces the risk of foreign objects such as dust and insects entering the inside of the connector part 220. The insertion opening of the USB-Type-B receptacle connector 320d is positioned along a second connector surface 222, which is different from the first connector surface 221.
[0108] The power connector 320e is connected to a commercial AC power supply (not shown) and supplies power to the control unit 30. The power connector 320e is mounted on the circuit board 300 such that the outer circumference of its insertion opening coincides with the inner circumference of the opening 220e. This reduces the risk of foreign objects such as dust and insects entering the inside of the connector part 220. The insertion opening of the power connector 320e is positioned along a second connector surface 222, which is different from the first connector surface 221.
[0109] The DK receptacle connector 320f is electrically connected to the cash drawer 270, for example, as shown in Figure 15, enabling communication between the cash drawer 270 and the control unit 30. The DK receptacle connector 320f is mounted on the substrate 300 such that the outer circumference of its insertion opening coincides with the inner circumference of the opening 220f. This reduces the risk of foreign objects such as dust and insects entering the inside of the connector part 220. The insertion opening of the DK receptacle connector 320f is positioned along a second connector surface 222, which is different from the first connector surface 221.
[0110] The inner circumferences of openings 220a, 220b, 220c, 220d, 220e, and 220f are designed to match the outer circumferences of the USB-Type-C receptacle connector 320a, USB-Type-A receptacle connectors 320b and 320c, USB-Type-B receptacle connector 320d, power connector 320e, and DK receptacle connector 320f, respectively. Therefore, the outer circumference of the insertion port and the inner circumference of the opening will match. However, if manufacturing errors occur, the inner circumference of each opening and the outer circumference of the corresponding connector will be approximately the same, but this is not a design error. Therefore, the aforementioned approximate match shall be considered as a match.
[0111] 1-6. USB cable Refer to Figure 13 for an explanation of various USB cables. Figure 13 is a diagram showing various USB cables and a portion of the cross-section of the connector part 220.
[0112] The USB-Type-C cable 400a comprises a plug 401a, a sheath 402a, and a connecting cable 407a. The plug 401a is electrically connected to the connecting cable 407a, and its connection portion is covered by the sheath 402a. The plug 401a is exposed from the end 403a of the sheath 402a and is connected to the USB-Type-C receptacle connector 320a. Specifically, the plug 401a of the USB-Type-C cable 400a is inserted into the USB-Type-C receptacle connector 320a through the opening 220a.
[0113] The USB-Type-A cable 400b comprises a plug 401b, a sheath 402b, and a connecting cable 407b. The plug 401b is electrically connected to the connecting cable 407b, and its connection portion is covered by the sheath 402b. The plug 401b is exposed from the end 403b of the sheath 402b and is connected to the USB-Type-A receptacle connector 320b. Specifically, the plug 401b of the USB-Type-A cable 400b is inserted into the USB-Type-A receptacle connector 320b through the opening 220b.
[0114] The USB-Type-A cable 400c comprises a plug 401c, a sheath 402c, and a connecting cable 407c. The plug 401c is electrically connected to the connecting cable 407c, and its connection portion is covered by the sheath 402c. The plug 401c is exposed from the end 403c of the sheath 402c and connects to the USB-Type-A receptacle connector 320c. Specifically, the plug 401c of the USB-Type-A cable 400c is inserted into the USB-Type-A receptacle connector 320c through the opening 220c.
[0115] The USB-Type-B cable 400d comprises a plug 401d, a sheath 402d, and a connecting cable 407d. The plug 401d is electrically connected to the connecting cable 407d, and its connection portion is covered by the sheath 402d. The plug 401d is exposed from the end 403d of the sheath 402d and is connected to the USB-Type-B receptacle connector 320d. Specifically, the plug 401d of the USB-Type-B cable 400d is inserted into the USB-Type-B receptacle connector 320d through the opening 220d.
[0116] 2. Switching between the host and device states of the printing device. Referring to Figure 14, the switching of the host or device state of the printing device 2 will be explained. Figure 14 is a state transition diagram of the host or device of the printing device 2.
[0117] 2-1. Case 1: Host Case 1 is when an external device 10a, for example, which functions as a device, is connected to the USB-Type-C receptacle connector 320a. In this case, the printer 2 is in host mode.
[0118] In case 1, the USB controller 34, which can communicate with the external device 10a that functions as a device, sends a control signal to the CPU 31, and the CPU 31 controls the printer 2 to enter a host state. In this case, for example, the printer 2 is connected to the external device 10a Power can be supplied to it. Also, for example, if the external device 10a is the customer display 3b described above, the printing device 2 can display the amount of the product purchased by the customer on the customer display 3b. In other words, the printing device 2 can display the content to be printed on the medium P on the customer display 3b.
[0119] 2-2. Case 2: Disconnection Case 2 is when the USB-Type-C receptacle connector 320a is disconnected from, for example, an external device 10a that functions as a device. In this case, the printer 2 is not connected to any of the external devices 10a to 10d and becomes disconnected. In other words, the printer 2 becomes a so-called standalone device.
[0120] In case 2, the printer 2 may be in either a device or host state. For example, it is preferable that the USB controller 34 sends a control signal to the CPU 31, and the CPU 31 controls the printer 2 to be in either a host or device state. However, when the printer 2 is in an undefined state and is not fixed in either a host or device state, the operation of the printer 2 may become unstable.
[0121] 2-3. Case 3 Device Case 3 is when an external device 10a or 10d, which functions as a host, is connected to the USB-Type-C receptacle connector 320a or the USB-Type-B receptacle connector 320d. In this case, the printer 2 enters device mode.
[0122] In case 3, the USB controller 34, which can communicate with the external device 10a or 10d acting as a host, sends control signals to the CPU 31, and the CPU 31 controls the printer 2 to enter a device state. For example, if the external device 10a is the smart device 3a described above, the smart device 3a sends commands related to control and printing to the printer 2, thereby controlling the printer 2. Alternatively, the external device 10d could be a host computer or the like for controlling the printer 2. In this case, the printer 2 performs printing according to instructions from, for example, the host computer, which is the external device 10d.
[0123] 2-4. Case 4: Disconnection Case 4 is when the connection between the USB-Type-C receptacle connector 320a or the USB-Type-B receptacle connector 320d and, for example, an external device 10a or 10d acting as a host is disconnected. In this case, the printer 2 becomes disconnected. In other words, the printer 2 becomes a so-called standalone device.
[0124] In case 4, the printer 2 may be in either a device or host state. For example, it is preferable that the USB controller 34 sends a control signal to the CPU 31, and the CPU 31 controls the printer 2 to be in either a host or device state. However, when the printer 2 is in an undefined state and is not fixed in either a host or device state, the operation of the printer 2 may become unstable.
[0125] 2-5. Case 5: Device Priority Case 5 is when, with an external device 10a functioning as a device connected to the USB-Type-C receptacle connector 320a, an external device 10d functioning as a host is connected to the USB-Type-B receptacle connector 320d. In other words, it is the case where, in addition to Case 1, an external device 10d is connected. In this case, the printer 2 enters device mode.
[0126] In case 5, the USB controller 34 stops communication with the external device 10a, which functions as a device, and starts communication with the external device 10d, which functions as a host. The USB controller 34 then sends a control signal to the CPU 31, and the CPU 31 controls the printer 2 to enter a device state. In other words, the USB controller 34 prioritizes the printer 2 being in a device state rather than a host state.
[0127] Thus, when an external device 10a, which functions as a device, and an external device 10d, which functions as a host, are connected simultaneously, the printer 2 stops communication with the external device 10a and enters device mode. Therefore, the printer 2 can maintain stable communication with the external device 10d, which functions as a host, as there is no mix of host and device states.
[0128] 2-6. Case 6: Host Priority Case 6 is when, for example, an external device 10a or 10d, which functions as a host, is connected to the USB-Type-C receptacle connector 320a or the USB-Type-B receptacle connector 320d, and the external device 10a switches from host mode to device mode, or when the external device 10a, which functions as a host, is replaced by an external device 10a, which functions as a device. In this case, the printer 2 enters host mode.
[0129] In case 6, the USB controller 34 stops communication with the external device 10d, which functions as a host, and starts communication with the external device 10a, which functions as a device. The USB controller 34 then sends a control signal to the CPU 31, and the CPU 31 causes the printer 2 to function as a host. In other words, the USB controller 34 prioritizes the printer 2 being in host mode rather than device mode.
[0130] Thus, when an external device 10a, which functions as a device, and an external device 10d, which functions as a host, are connected simultaneously, the printer 2 stops communication with the external device 10d, which functions as a host, and enters host mode. Therefore, the printer 2 does not have a mix of host and device states, and can perform stable communication with the external device 10a, which functions as a device.
[0131] As described above, in each of the cases 1 to 6 described above, the USB controller 34 controls the printer 2 to be either a host or a device. Therefore, the printer 2 can communicate stably with externally connected devices without any mix of host and device states.
[0132] 2-7. CC terminal As described above, the USB-Type-C receptacle connector 320a has a CC terminal 63a, which is a terminal for identifying whether the connected external device 10a is in host mode or device mode. Therefore, the USB controller 34 can identify whether the external device 10a connected to the printing device 2 is in device mode or host mode.
[0133] For example, if the external device 10a is not connected to the USB-Type-C receptacle connector 320a, and the external device 10d is connected to the USB-Type-B receptacle connector 320d, the USB controller 34 fixes the potential of the CC terminal 63a. In other words, the USB controller 34 disables the function of the DRP controller 343.
[0134] In this case, the printer 2 is controlled to enter a device state, but furthermore, USB -When an external device 10a is connected to the Type-C receptacle connector 320a, the USB controller 34 prioritizes the device state of the printer 2 and does not communicate with the external device 10a acting as a device, but communicates with the external device 10a acting as a host. In this way, by the USB controller 34 prioritizing the device state of the printer 2, it is possible to prevent the device state and host state from being mixed in the printer 2.
[0135] Furthermore, if the external device 10a is not connected to the USB-Type-C receptacle connector 320a, and the external device 10d is connected to the USB-Type-B receptacle connector 320d, the printer 2 is controlled to enter a device state.
[0136] In this case, the USB controller 34 may alternately switch the potential of the CC terminal 63a between a first potential E1 and a second potential E2 at regular intervals. For example, if an external device 10a that functions as a device is connected to the USB-Type-C receptacle connector 320a, the USB controller 34 may switch the printer 2 from a device state to a host state. By prioritizing the host state of the printer 2, the USB controller 34 can prevent the printer 2 from having a mix of device and host states.
[0137] Furthermore, if the external device 10a is not connected to the USB-Type-C receptacle connector 320a and the external device 10d is not connected to the USB-Type-B receptacle connector 320d, the printer 2 is controlled to be either a host or a device.
[0138] In this case, the USB controller 34 may alternately switch the potential of the CC terminal 63a between a first potential E1 and a second potential E2 at regular intervals. If an external device 10a is connected to the USB-Type-C receptacle connector 320a without stopping the DRP controller 343, the USB controller 34 may switch the host or device state of the printer 2 according to the host or device state of the external device 10a.
[0139] Specifically, the USB controller 34 controls the printer 2 to be in a device state when the external device 10a is functioning as a host, and controls the printer 2 to be in a host state when the external device 10a is functioning as a device.
[0140] Furthermore, external devices that function as either a host or a device are not limited to external device 10a connected to USB-Type-C receptacle connector 320a. External devices 10a, 10c, and 10d connected to USB-Type-A receptacle connectors 320b, 320c or USB-Type-B receptacle connector 320d via so-called special receptacle connectors may also have both host and device functions.
[0141] Furthermore, even in USB devices equipped with a USB device, the configuration may be such that the host or device state of the USB device is switched, as described above. In this case, the USB device corresponds to the printer 2, and the USB device corresponds to the CPU 31.
[0142] 3. Variant Figure 15 shows the hardware configuration of modified USB controllers 34a and 34b.
[0143] Unlike the first embodiment, the control unit 30 of the printing apparatus 2 includes a USB controller 34a including a first integrated circuit 346a and a USB controller 34b including a second integrated circuit 346b.
[0144] The USB controller 34a includes the device controller 341a and the host controller 342a, but does not include the DRP controller. In other words, the USB controller 34a cannot recognize the potential of the CC terminal 63a of the USB-Type-C receptacle connector 320a, and therefore is not configured to communicate with the USB-Type-C interface 60a.
[0145] Therefore, for example, the electrical signals transmitted via the signal path 348 are electrical signals from external devices 10b and 10c that are electrically connected to the USB-Type-A interfaces 60b and 60c, and from external device 10d that is electrically connected to the USB-Type-B interface 60d. In this case, the electrical signals transmitted via the signal path 348 are electrical signals from an external device that functions as a host.
[0146] This electrical signal is input to the first integrated circuit 346a. Based on the input electrical signal, the first integrated circuit 346a generates a control signal and transmits the generated control signal to the CPU 31 via the system bus 41. Based on this control signal, the USB controller 34a controls the printer 2 to enter a device state.
[0147] The USB controller 34b includes a device controller 341b, a host controller 342b, and a DRP controller 343b. In other words, the USB controller 34b can recognize the potential of the CC terminal 63a and may be configured to communicate with the USB-Type-C interface 60a.
[0148] Therefore, for example, the electrical signal transmitted via the signal path 349 is an electrical signal from an external device 10a that is electrically connected to the USB-Type-C interface 60a. In this case, the electrical signal transmitted via the signal path 349 is an electrical signal from an external device that functions as a host or device.
[0149] This electrical signal is input to the second integrated circuit 346b. Based on the input electrical signal, the second integrated circuit 346b generates a control signal and transmits the generated control signal to the CPU 31 via the system bus 41. Based on this control signal, the USB controller 34b controls the printer 2 to enter a host or device state.
[0150] Furthermore, the second integrated circuit 346b may be configured to transmit the generated control signal to the first integrated circuit 346a via the signal path 350, and then to the CPU 31 via the first integrated circuit 346a and the system bus 41. In other words, the USB controller 34b may transmit the generated control signal to the CPU 31, or it may be configured to transmit the generated control signal to the CPU 31 via the USB controller 34a.
[0151] In the modified configuration, the USB controller 34a is connected to the USB-Type-A interfaces 60b, 60c and the USB-Type-B interface 60d in a communicative manner, and the USB controller 34b is connected to the USB-Type-C interface 60a in a communicative manner.
[0152] Since external devices 10b, 10c, and 10d do not need to be connected to the DRP controller for communication, the USB controller 34a can omit the DRP controller. In this way, external devices that require control by the DRP controller are not connected. Because the USB controllers are separated depending on whether or not they are configured to function, the role of each USB controller can be clearly defined, and the configuration of each USB controller can be simplified. Furthermore, by separating the USB controllers in this way, the host or device state of the printer 2 can be appropriately controlled according to the state of each external device that is communicatively connected to the printer 2.
[0153] USB-Type-B receptacle connector 320d is an example of a first receptacle connector. USB-Type-C receptacle connector 320a is an example of a second receptacle connector. External device 10a is an example of a first external device. External device 10d is an example of a second external device. CPU 31 is an example of an arithmetic unit. The electrical signal transmitted via signal path 348 is an example of a first electrical signal. The electrical signal transmitted via signal path 349 is an example of a second electrical signal.
[0154] Although embodiments and modifications have been described above, the present invention is not limited to these embodiments and can be implemented in various forms without departing from its spirit. For example, the above embodiments can be combined as appropriate.
[0155] The present invention includes configurations that are substantially identical to those described in the embodiments (for example, configurations with the same function, method, and result, or configurations with the same purpose and effect). Furthermore, the present invention includes configurations in which non-essential parts of the configurations described in the embodiments are replaced. Furthermore, the present invention includes configurations that produce the same effects or achieve the same purpose as those described in the embodiments. Furthermore, the present invention includes configurations that add known technology to the configurations described in the embodiments.
[0156] The following can be derived from the embodiments and modifications described above.
[0157] One aspect of a printing apparatus is: A first receptacle connector that connects a first external device, which functions as a host, and a processing unit in a way that enables communication between them, A second receptacle connector that connects a second external device functioning as a host or device to the arithmetic unit in a communicative manner, A USB controller that causes the calculation unit to function as the device or the host based on a first electrical signal input from the first external device via the first receptacle connector and a second electrical signal input from the second external device via the second receptacle connector, A printing apparatus having, When the first external device is connected to the first receptacle connector, The aforementioned USB controller is When the second external device, which functions as the aforementioned device, is connected to the second receptacle connector, the arithmetic unit is made to function as the device, rather than as the host. When the second external device, which functions as the host, is connected to the second receptacle connector, the arithmetic unit is made to function as the device. When the second external device is not connected to the second receptacle connector, the calculation unit is made to function as the device.
[0158] According to this printer, if a first external device acting as a host is connected to the printer, the USB controller can cause the arithmetic unit to function as a device, and the printer can be put into device mode, regardless of whether a second external device connected to the printer acts as a host or a device. Furthermore, if the second external device is not connected to the printer, the USB controller can cause the arithmetic unit to function as a device, and the printer can be put into device mode. This allows the state of the printing device to be fixed. In other words, when a first external device acting as a host is connected to the printing device, the printing device can maintain its state and communicate stably with the connected external device.
[0159] One embodiment of the printing apparatus is: The second receptacle connector has a CC terminal, If the second external device is not connected to the second receptacle connector, and the first external device is connected to the first receptacle connector, The USB controller fixes the potential of the CC terminal, If the second external device is not connected to the second receptacle connector and the first external device is not connected to the first receptacle connector, The USB controller may change the potential of the CC terminal at a constant period.
[0160] According to this printer, when a first external device acting as a host is connected, even if a second external device acting as a device is connected, the USB controller causes the processing unit to function as a device, putting the printer into device mode. In other words, when the first external device is connected as a host, the printer maintains a device-like state and can communicate stably with the connected external device. Furthermore, when the first external device is not connected, the USB controller changes the potential of the CC terminal at a constant period, allowing the second external device to function as either a host or a device. As a result, the printer can operate as either a host or a device depending on the host or device function of the second external device, improving convenience for the user of the printer.
[0161] One embodiment of the printing apparatus is: In a state where the first external device is not connected to the first receptacle connector, the second external device which functions as a device is connected to the second receptacle connector, and the arithmetic unit functions as the host, When the first external device is connected to the first receptacle connector, The USB controller may stop communication between the second external device, which functions as the device, and the arithmetic unit, and resume communication between the first external device and the arithmetic unit.
[0162] According to this printer, when a second external device is connected, whether it is functioning as a host or a device, if a first external device that functions as a host is connected, the USB controller can stop communication with the second external device and prioritize communication with the first external device. This allows the printer to be locked into a device state and stabilize the printer's state.
[0163] One embodiment of the printing apparatus is: The USB controller has a first integrated circuit, The first electrical signal and the second electrical signal are input to the first integrated circuit. The first integrated circuit outputs a control signal to the arithmetic unit, The calculation unit may function as the device or the host based on the control signal.
[0164] With this printing device, the first electrical signal from the first external device and the second electrical signal from the second external device are integrated into a single first integrated circuit, thus simplifying the control mechanism by the USB controller. This makes it easier to fix the state of the printing device.
[0165] One embodiment of the printing apparatus is: The USB controller has a first integrated circuit and a second integrated circuit, The first electrical signal is input to the first integrated circuit. The second electrical signal is input to the second integrated circuit. The second integrated circuit outputs a control signal to the arithmetic unit via the first integrated circuit. The calculation unit may function as the device or the host based on the control signal.
[0166] In this printing apparatus, the first electrical signal from the first external device and the second electrical signal from the second external device are input separately to the first integrated circuit and the second integrated circuit, respectively. Therefore, the first and second integrated circuits only need to have the necessary circuits. In other words, the first integrated circuit only needs to have a circuit with a function corresponding to the first external device, and the second integrated circuit only needs to have a circuit with a function corresponding to the second external device, making it easy to control the first and second external devices. Furthermore, since the control signal is output from the second integrated circuit to the arithmetic unit via the first integrated circuit, the state of the first external device, the second external device, and the host or device of the printing apparatus can be appropriately controlled.
[0167] One form of USB device is, A first external device that functions as a host and a first receptacle connector that enables communication between the USB device, A second external device that functions as a host or device and a second receptacle connector that connects the USB device to each other in a communicative manner, A USB controller that causes the USB device to function as the device or the host based on a first electrical signal input from the first external device via the first receptacle connector and a second electrical signal input from the second external device via the second receptacle connector, USB devices having, When the first external device is connected to the first receptacle connector, The aforementioned USB controller is When the second external device, which functions as the aforementioned device, is connected to the second receptacle connector, the USB device is made to function as the aforementioned device, rather than as the aforementioned host. When the second external device, which functions as the host, is connected to the second receptacle connector, the USB device is made to function as the device. When the second external device is not connected to the second receptacle connector, the USB device is made to function as the device.
[0168] According to this USB device, when a first external device acting as a host is connected to the printer, the USB controller can cause the USB device to function as a device and set the printer to device state, regardless of whether the second external device connected to the printer functions as a host or a device. Furthermore, if the second external device is not connected to the printer, the USB controller can cause the USB device to function as a device, set the printer to device state, and fix the printer's state. In other words, when the first external device acting as a host is connected to the printer, the printer maintains its device state and can communicate stably with connected external devices.
[0169] One embodiment of the aforementioned USB device is: The second receptacle connector has a CC terminal, If the second external device is not connected to the second receptacle connector, and the first external device is connected to the first receptacle connector, The USB controller fixes the potential of the CC terminal, If the second external device is not connected to the second receptacle connector and the first external device is not connected to the first receptacle connector, The USB controller may change the potential of the CC terminal at a constant period.
[0170] According to this USB device, when a first external device acting as a host is connected, even if a second external device acting as a device is connected, the USB controller will cause the USB device to function as a device, putting the printer into device mode. In other words, when the first external device is connected as a host, the printer maintains a device state and can communicate stably with connected external devices. Furthermore, when the first external device is not connected, the USB controller changes the potential of the CC terminal at a constant interval, allowing the second external device to function as either a host or a device. As a result, the printer can operate as either a host or a device depending on the host or device function of the second external device, improving convenience for the user of the printer.
[0171] One embodiment of the aforementioned USB device is: In a state where the first external device is not connected to the first receptacle connector, the second external device which functions as the device is connected to the second receptacle connector, and the USB device functions as the host, When the first external device is connected to the first receptacle connector, The USB controller may stop communication between the second external device, which operates as the device, and the USB device, and resume communication between the first external device and the USB device.
[0172] According to this USB device, when a second external device is connected, whether it is functioning as a host or a device, if a first external device acting as a host is connected, the USB controller can stop communication with the second external device and prioritize communication with the first external device. This allows the printer to be locked into a device state and stabilize the printer's state.
[0173] One embodiment of the aforementioned USB device is: The USB controller has a first integrated circuit, The first electrical signal and the second electrical signal are input to the first integrated circuit. The first integrated circuit outputs a control signal to the USB device. The USB device may function as the device or the host based on the control signal.
[0174] With this USB device, the first electrical signal from the first external device and the second electrical signal from the second external device are integrated into a single first integrated circuit, thus simplifying the control mechanism by the USB controller. This makes it easier to fix the state of the printing device.
[0175] One embodiment of the aforementioned USB device is: The USB controller has a first integrated circuit and a second integrated circuit, The first electrical signal is input to the first integrated circuit. The second electrical signal is input to the second integrated circuit. The second integrated circuit outputs a control signal to the USB device via the first integrated circuit. The USB device may function as the device or the host based on the control signal.
[0176] With this USB device, the first electrical signal from the first external device and the second electrical signal from the second external device are input separately to the first integrated circuit and the second integrated circuit, respectively. Therefore, the first and second integrated circuits only need to have the necessary circuits. In other words, the first integrated circuit only needs to have a circuit with a function corresponding to the first external device, and the second integrated circuit only needs to have a circuit with a function corresponding to the second external device, making it easy to control the first and second external devices. Furthermore, since the control signal is output from the second integrated circuit to the arithmetic unit via the first integrated circuit, the status of the first external device, the second external device, and the host or device of the printing apparatus can be appropriately controlled. [Explanation of Symbols]
[0177] 1…Printing system, 2…Printing device, 3a…Smart device, 3b…Customer display, 3c…Handheld scanner, 4a…USB cable, 4b…USB cable, 4c…USB cable, 5…Power cable, 10a…External device, 10b…External device, 10c…External device, 10d…External device, 11…Display unit, 12…Power circuit, 13…Media output port, 20…Printing unit, 21…Thermal head, 22…Print head drive unit, 23…Transport unit, 24…Cutting unit, 25…Heating element, 26…Thermal roll paper, 30…Control unit, 31…CPU, 32…RAM, 33…ROM, 34…USB controller, 35…Non-volatile memory -, 36... Wireless communication unit, 39... Image processing unit, 41... System bus, 42... Image bus, 50... USB communication unit, 53... USB hub, 60... USB interface, 200... Main case, 201... Power switch, 202... Opening / closing lever, 203... Opening / closing door, 204... Feed switch, 208... Main frame, 210... Media storage unit, 220... Connector unit, 221... First connector side, 222... Second connector side, 241... Bottom cover, 246... Rear cover, 251... Elastic member, 300... Circuit board, 341... Device controller, 342... Host controller, 343... DRP controller, 346... Integrated circuit,
Claims
1. A first receptacle connector that connects a first external device, which functions as a host, and a processing unit in a way that enables communication between them, A second receptacle connector that connects a second external device functioning as a host or device to the arithmetic unit in a communicative manner, A USB controller that causes the calculation unit to function as the device or the host based on a first electrical signal input from the first external device via the first receptacle connector and a second electrical signal input from the second external device via the second receptacle connector, A printing apparatus having, When the first external device is connected to the first receptacle connector, The aforementioned USB controller is When the second external device, which functions as the aforementioned device, is connected to the second receptacle connector, the arithmetic unit is made to function as the device, rather than as the host. When the second external device, which functions as the host, is connected to the second receptacle connector, the arithmetic unit is made to function as the device. A printing apparatus characterized in that, when the second external device is not connected to the second receptacle connector, the calculation unit functions as the device.
2. The second receptacle connector has a CC terminal, If the second external device is not connected to the second receptacle connector, and the first external device is connected to the first receptacle connector, The USB controller fixes the potential of the CC terminal, If the second external device is not connected to the second receptacle connector and the first external device is not connected to the first receptacle connector, The printing apparatus according to claim 1, characterized in that the USB controller changes the potential of the CC terminal at a constant period.
3. In a state where the first external device is not connected to the first receptacle connector, the second external device which functions as a device is connected to the second receptacle connector, and the arithmetic unit functions as the host, When the first external device is connected to the first receptacle connector, The printing apparatus according to claim 1 or 2, characterized in that the USB controller stops communication between the second external device, which functions as the device, and the calculation unit, and resumes communication between the first external device and the calculation unit.
4. The USB controller has an integrated circuit, The first electrical signal and the second electrical signal are input to the integrated circuit. The integrated circuit outputs a control signal to the calculation unit, The printing apparatus according to any one of claims 1 to 3, characterized in that the calculation unit functions as the device or the host based on the control signal.
5. The USB controller has a first integrated circuit and a second integrated circuit, The first electrical signal is input to the first integrated circuit. The second electrical signal is input to the second integrated circuit. The second integrated circuit outputs a control signal to the calculation unit via the first integrated circuit. The printing apparatus according to any one of claims 1 to 3, characterized in that the calculation unit functions as the device or the host based on the control signal.
6. A first receptacle connector that enables communication between a first external device that functions as a host and a USB device, A second external device that functions as a host or device and a second receptacle connector that connects the USB device to each other in a communicative manner, A USB controller that causes the USB device to function as the device or the host based on a first electrical signal input from the first external device via the first receptacle connector and a second electrical signal input from the second external device via the second receptacle connector, A USB device having, When the first external device is connected to the first receptacle connector, The aforementioned USB controller is When the second external device, which functions as the aforementioned device, is connected to the second receptacle connector, the USB device is made to function as the aforementioned device, rather than as the host. When the second external device, which functions as the host, is connected to the second receptacle connector, the USB device is made to function as the device. A USB device characterized in that it allows the USB device to function as the device when the second external device is not connected to the second receptacle connector.
7. The second receptacle connector has a CC terminal, If the second external device is not connected to the second receptacle connector, and the first external device is connected to the first receptacle connector, The USB controller fixes the potential of the CC terminal, If the second external device is not connected to the second receptacle connector and the first external device is not connected to the first receptacle connector, The USB device according to claim 6, characterized in that the USB controller changes the potential of the CC terminal at a constant period.
8. In a state where the first external device is not connected to the first receptacle connector, the second external device which functions as the device is connected to the second receptacle connector, and the USB device functions as the host, When the first external device is connected to the first receptacle connector, The USB device according to claim 6 or 7, characterized in that the USB controller stops communication between the second external device, which operates as the device, and the USB device, and resumes communication between the first external device and the USB device.
9. The USB controller has an integrated circuit, The first electrical signal and the second electrical signal are input to the integrated circuit. The aforementioned integrated circuit outputs a control signal to the USB device. The USB device according to any one of claims 6 to 8, characterized in that the USB device functions as the device or the host based on the control signal.
10. The USB controller has a first integrated circuit and a second integrated circuit, The first electrical signal is input to the first integrated circuit. The second electrical signal is input to the second integrated circuit. The second integrated circuit outputs a control signal to the USB device via the first integrated circuit. The USB device according to any one of claims 6 to 8, characterized in that the USB device functions as the device or the host based on the control signal.