The present invention relates to a printer, a program for controlling communication of the printer, and a communication system including the printer.
There has been conventionally known a technology configured to detect a line or device failure in a network and switch between communication routes (see e.g., Japan Laid-open Patent Application Publication No. 2009-182526).
Incidentally, chances are that a user identification module (e.g., a SIM (Subscriber
Identification Module) card), storing a user ID for using a mobile communication network, is set in a printer and steady communication is performed between the printer and an external server. In this case, a default gateway of the printer is set to use the mobile communication network. This poses a drawback that the printer cannot simultaneously perform communication with the aforementioned external server and that with another device connected to an external network existing outside a network to which the printer belongs.
In view of the above, it is an object of the present invention to enable a printer to simultaneously perform communication with an external device through a mobile communication network and that with a device connected to an external LAN.
An embodiment of the present invention is a printer including: a communication unit configured to perform communication based on a first gateway and a second gateway; and a control unit configured to control the communication unit to perform the communication through the first gateway in communication with a first device connected to a mobile communication network and to perform the communication through the second gateway in communication with a second device connected to a local area network (LAN), wherein the control unit is configured to control the communication unit such that the communication with the first device and the communication with the second device are performed independently from each other.
According to the aspect of the present invention, the printer is enabled to simultaneously perform communication with the external device through the mobile communication network and that with the device connected to the external LAN.
This application claims priority to Japanese Patent Application No. 2017-147865 filed on Jul. 31, 2017, the entirety of which is hereby incorporated by reference in its entirety.
In the present disclosure, “LAN (Local Area Network)” may be any size of network as long as it is a network (subnetwork) uniquely defined by a network address. The LAN may be a wired network, or alternatively, may be a wireless network. When made in the form of wireless network, the LAN complies with, for instance, a standard such as IEEE802a/b/g/j/n/ac/ad.
In the present disclosure, “first and second gateways” are nodes that relay communication when a printer performs communication with another device across a LAN to which the printer is connected. Besides, “first and second gateways” may be realized by physical devices such as routers, servers, etc., or alternatively, may be realized by software.
In the present disclosure, “mobile communication network” is not particularly limited in specification, and is not limited in particular as long as it complies with a wireless communication system that is being operated or is planted to be operated by a mobile network operator. The following can be exemplified as such a wireless communication system: a wireless communication system complying with a standard IMT-2000, so-called 3G; a wireless communication system complying with a standard IMT-Advanced, so-called 4G; and a wireless communication system, so-called 5G, standardization of which has been in progress in 3GPP (Third Generation Partnership Project).
In the present disclosure, “first device” may be any type of device as long as it is a device connected to the mobile communication network. For example, “first device” is a device accessible to the mobile communication network such as a computer device, a server, etc. In the present disclosure, “second device” may be any type of device as long as it is a device connected to the LAN. For example, a computer device, a smart phone, a tablet terminal, etc. can be exemplified as “second device.”
(1) Configuration of Communication System
First, a configuration of a communication system 100 according to the present embodiment will be explained with reference to
In
Each host PC is an example of a second device. Each host PC network may be a wired LAN, or alternatively, may be a wireless LAN.
The printers 1a and 1b and a server 3 are each capable of using a mobile communication network MN. The server 3 is an example of a first device.
The printers 1a and 1b and the server 3 are each configured to enable a SIM (Subscriber Identity Module) card to be attached thereto in order to use a mobile communication service provided by a telecommunication carrier.
It should be noted that in the following explanation, the term “printer 1” will be used on an as-needed basis in describing matters common to the printers 1a and 1b. The term “host PC2” will be used on an as-needed basis in describing matters common to the host PCs 2a and 2b. The term “host PC network HPN” will be used on an as-needed basis in describing matters common to the host PC networks HPN1 and HPN2. The term “printer network PN” will be used on an as-needed basis in describing matters common to the printer networks PN1 and PN2.
(2) Configurations of Respective Devices Included in Communication system 100
Next, configurations of the respective devices included in the communication system 100 shown in
(2-1) Printer 1
As shown in
The printer 1 may be a stationary printer, or alternatively, may be a portable printer.
The control unit 11 is mainly composed of a microprocessor, and controls the entirety of the printer 1. For example, the microprocessor included in the control unit 11 realizes a variety of functions by loading and executing firmware stored in the storage unit 14. For example, the control unit 11 performs generation of printing data based on a printing request transmitted thereto from the host PC 2, control of the feeding unit 12 and the printing unit 13 for the purpose of printing, and so forth. The printing request contains printing information.
The storage unit 14 is a non-volatile memory, and may be an SSD (Solid State Drive) such as a flash memory, etc. The storage unit 14 stores, aside from the aforementioned firmware, a variety of formats of data compatible with the printing information to be obtained from the host PC 2.
The feeding unit 12 includes a platen roller, a motor drive circuit and a stepping motor, which are not shown in the drawings, and performs feeding of the continuous paper inside the printer 1. For example, based on a feeding request by the control unit 11, the motor drive circuit drives the stepping motor that controls rotation of the platen roller, whereby feeding of the continuous paper is performed.
When performing printing on a label based on the printing information, the control unit 11 retrieves data, having a format compatible with the printing information, from the storage unit 14. The control unit 11 generates printing data by embedding character information contained in the printing information and/or a bar code into the retrieved data, and sequentially transmits data sets of respective lines of the printing data, i.e., line data, to the printing unit 13.
The printing unit 13 includes a thermal head and a head drive circuit, both of which are not shown in the drawings. The thermal head sandwiches the continuous paper together with the aforementioned platen roller therebetween. The head drive circuit performs printing by electrifying or not electrifying respective heating elements of the thermal head (by causing or not causing respective heating elements of the thermal head to generate heat) based on the line data sequentially transmitted by the control unit 11.
The printer 1 is provided with, for instance, a cutter, albeit this is not shown in the drawings. After label printing, the cutter cuts the continuous paper on a label basis. It should be noted that printed labels may be configured to be peeled from the paper mount.
The communication unit 15 includes a communication circuit for connection with the mobile communication network MN, an antenna, and a slot into which a SIM card (not shown in the drawings) is insertable. In other words, the SIM card is attachable to the printer 1 according to the present embodiment.
The SIM card is an example of a user identification module that stores a user ID for managing usage of a mobile communication network on a user basis. A universal subscriber identity module (UIM) can be exemplified as another example of the user identification module. The user ID is an example of user identification information, and is user-specifiable information, for instance, a telephone number, a subscriber number, etc.
When the SIM card has been inserted into the slot, the communication unit 15 obtains the user ID stored in the SIM card, and accesses a default gateway (a first gateway). The default gateway performs user authentication based on the user ID. When usage by a user is permitted, the communication unit 15 accesses the server 3 connected to the mobile communication network MN through the default gateway, and performs communication with the accessed server 3. In the example of the present embodiment, software performs setting of the default gateway for accessing the mobile communication network MN.
Additionally, albeit this will be described below, when the default gateway is set to access the mobile communication network MN, the control unit 11 is capable of setting a static route for performing communication with the host PC 2 connected to the host PC network HPN based on an input operation performed by the user. When the static route has been set, the control unit 11 performs control such that communication with the server 3 through the default gateway and communication with the host PC 2 in the static route are performed independently from each other.
For example, the control unit 11 can be triggered to control the display unit 17 to display a screen for setting the static route by either reception of a predetermined input operation from the user or insertion of the SIM card into the slot (i.e., when the SIM card has been connected). The static route is set based on a user input regarding an IP address of a network in which the host PC 2 as a recipient is included (“access point IP address” to be described) and a user input regarding an IP address of a router to be set as a static gateway (an example of a second gateway). Setting information of the static route is stored in the storage unit 14.
Each IP address is an example of address information.
The communication unit 15 includes an Ethernet (registered trademark) cable connector and a communication circuit for performing Ethernet (registered trademark) communication with the router RT and another printer 1 in the printer network PN to which the printer 1 belongs. The communication unit 15 periodically transmits printer status information exemplified below to the server 3 so as to be provided with a predetermined service or services by the server 3. Transmission timing is not particularly limited, but for instance, is set to predetermined timing of 10-30 minute intervals (e.g., 15 minute intervals).
[Examples of Printer Status Information]
Total travel distance (rotational distance) of the platen roller
Frequency of cutting
Operating time of the printer
Number of label issuance
When an error event occurs, the communication unit 15 transmits error information to the host PC 2 and the server 3. The error information contains, for instance, information for specifying at least any of error types exemplified below.
[Examples of Error Types]
Ribbon error . . . where no ink ribbon has been set or where an ink ribbon has been damaged or broken
Printer overheating . . . where printer temperature has exceeded an allowable value
Machine error . . . where a board is defective
Printing head error . . . where the thermal head has not been completely attached yet
Cutter error . . . where paper gets stuck in a cutter unit or where a cutter blade is not in place
Paper Jamming . . . where labels have been wound about the platen roller or where labels have not been set correctly
When an event of changing the setting of the printer 1 occurs, the communication unit 15 transmits setting change information to the host PC 2 and the server 3. The setting change information contains, for instance, information for specifying at least any of change contents exemplified below.
[Examples of Setting]
Feeding speed
Printing density
Sensor type (e.g., which of a reflective sensor and a transmission sensor is used for detecting a label position on the continuous paper)
(2-2) Host PC 2
As shown in
The control unit 21 is mainly composed of a microprocessor, and controls the entirety of the host PC 2. For example, the microprocessor included in the control unit 21 loads and executes a printer driver stored in the storage unit 22.
The storage unit 22 is a non-volatile memory, and may be an SSD such as a flash memory, etc. The storage unit 22 stores, aside from the printer driver, a variety of application programs. The control unit 21 retrieves, from the storage unit 22, an application program specified in response to a predetermined operational input performed by the user with respect to the operational input unit 24, and executes the retrieved program.
The display unit 25 includes, for instance, a liquid crystal display panel having a touch input function, and displays a result of execution of the aforementioned application program. In this case, the touch input function of the display unit 25 composes part of the operational input unit 24.
The communication unit 23 performs communication with the printer 1 under the control by the control unit 21. For example, when the control unit 21 receives a printing instruction from the user through the operational input unit 24 during execution of the application program, the communication unit 23 transmits a printing request to the printer 1 under the control by the control unit 21.
The communication unit 23 includes an Ethernet (registered trademark) cable connector and a communication circuit for performing Ethernet (registered trademark) communication with the router RT and with another host PC 2 in the host PC network HPN to which the host PC 2 belongs.
(2-3) Server 3
The server 3 is configured to perform communication with the respective printers 1 included in the printer networks PN1 and PN2 and provide a predetermined service or services to the respective printers 1. The server 3 provides services exemplified below when receiving the aforementioned printer status information, error information and setting change information from the printer 1.
[Examples of Services to Be Provided]
Informing the host PC or an administrator PC (not shown in the drawings) of an operating status and a load status of each printer 1
Sending the host PC or the administrator PC a notice to encourage replacement of an expendable component, if necessary, depending on a usage status of each printer 1
Sending the administrator PC a notice of error in occurrence of an error in each printer 1
As shown in
(3) Method of Setting Static Route in Printer
The printer 1 of the present embodiment is set so that the default gateway communicates with the server 3 through the mobile communication network MN in the condition that the SIM card has been inserted. In view of the above, the printer 1 is configured to enable the user to set the static route so as to be capable of communicating with the host PC 2 even during communication through the mobile communication network MN.
A method of setting the static route in the printer 1 will be explained with reference to
Static route settings shown in
In a screen G1 of
In an example of the present embodiment, when “SIM card disabled” is displayed as the setting of the item “interface selection”, the user attaches a SIM card to the slot, and thereafter, performs an input operation of tapping a part in which the item “interface selection” is displayed so as to switch the displayed setting into “SIM card enabled”. Thereafter, items “access point IP address” and “static gateway” appear as shown in a screen G2. This is triggered when the user taps a row in which the item “interface selection” is displayed in the screen G1 (an example of performance of a predetermined input operation by a user). In short, when recognizing the aforementioned tapping operation by the user, the control unit 11 of the printer 1 is capable of controlling the display unit 17 to display the screen for setting the items “access point IP address” and “static gateway.” This enables the user to immediately start setting the static route.
It should be noted that when a SIM card is attached to the slot while “SIM card disabled” is displayed as the setting of the item “interface selection”, the printer 1 may be configured to automatically change the displayed setting from “SIM card disabled” to “SIM card enabled”.
Here, “access point IP address” is an IP address of the host PC network HPN including a recipient of data to be transmitted from the printer 1 in the static route. “Static gateway” is an IP address of a printer network PN-side port of the router functioning as the gateway when data is transmitted from the printer 1 to the host PC 2 in the static route. The static route is specified by “access point IP address” and “static gateway.”
In setting “access point IP address”, when a tapping operation is performed with respect to “access point IP address” in the screen G2, a screen for inputting or changing a decimal number value of the access point IP address on a digit-by-digit basis is displayed as shown in a screen G3. When the user inputs the access point IP address and then taps “OK”, the access point IP address is set.
When “OK” is tapped in the screen G3, a screen G4 is displayed. The screen G4 is a screen having the same display content as the screen G2. When a tapping operation is performed with respect to “static gateway” in the screen G4, a screen for inputting or changing a decimal number value of the IP address of the static gateway on a digit-by-digit basis is displayed as shown in the screen G54. When the user inputs the IP address of the static gateway and then taps “OK”, the static gateway is set.
It should be noted that as a modification, displaying the item “SIM card enabled” shown in the screen G1 and the items “access point IP address” and “static gateway” shown in the screen G2 may be configured to be triggered by insertion of the SIM card into the slot during operation of the printer 1 (i.e., attachment of the SIM card to the printer 1). A subsequent procedure for inputting “access point IP address” and “static gateway” is the same as the aforementioned procedure in recognition of the tapping operation performed by the user.
Next, examples of setting the static route will be explained with reference to
The example shown in
Destination IP address: 10.107.1.0
Static gateway: 10.107.2.1
The static gateway is herein the IP address of the printer network PN1-side port of the router RT1.
It should be noted that a subnet mask may use a value that has been preset on the host PC network HPN1 side. In this case, the subnet mask is set as follows.
Subnet mask: 255.255.255.0
The example shown in
Destination IP address: 10.107.1.0
Static gateway: 10.107.3.2
The static gateway is herein the IP address of the printer network PN1-side port of the router RT1.
It should be noted that a subnet mask may use a value that has been preset on the host PC network HPN1 side. In this case, the subnet mask is set as follows.
Subnet mask: 255.255.255.0
Regardless of the number of networks via which communication is performed between the printer network PN1 and the host PC network HPN1, setting similar to the above may be performed. In other words, the static gateway herein set in the printer 1 is the router RT1 as the gateway of the printer network PN1 to which the printer 1 is connected, i.e., the IP address of the printer network PN1-side port of the router RT1.
(4) Communication Control in Printer 1
Next, communication control to be performed in the printer 1 according to the present embodiment will be explained with reference to
In
Next, the control unit 11 refers to the storage unit 14 and determines whether or not a static route has been stored therein (step S12). When a static route has been stored therein (step S12: YES), the stored static route is determined as the setting of static route (step S18), and the process of the present flowchart ends. When no static route has been stored therein, a standby state remains until a static route is inputted (step S14: NO). Then, when the user has inputted a static route as shown in the screens G2 to G5 of
When the printer 1 transmits data (packets), the control unit 11 of the printer 1 changes a communication route based on a destination (recipient) of data
As shown in
On the other hand, when the recipient of the data to be transmitted is the host PC, the control unit 11 controls the communication unit 15 such that the data can be transmitted in the static route set in step S18 of
(5) Examples of Data Transmission
As described above, the printer 1 of the communication system 100 of the present embodiment sets the default gateway so as to perform communication with the server 3 via the mobile communication network MN and perform communication with the host PC 2 in the static route. Moreover, the communication in the static route and the communication through the default gateway are controlled to be performed independently from each other.
An example of a configuration for simultaneously performing the communication in the static route and the communication through the default gateway will be hereinafter explained with reference to
As described above, the printer 1 is programmed to transmit the printer status information to the server 3 at predetermined time intervals. On the other hand, the printing request is transmitted from the host PC 2 to the printer 1 at given clock time based on an instruction of the user of the host PC 2, and the printer 1 transmits the printing status in response to the printing request. Because of this, chances could be that transmitting the printing status to the host PC 2 and transmitting the printer status information to the server 3 are performed at the same timing, albeit this depends on the timing of receiving the printing request from the host PC 2.
The printing status is information for indicating a status of the printer 1 made in response to the printing request (e.g., ongoing printing, ongoing label peeling, etc.), and is an example of printing related information.
When at least any of events including change in setting of the printer 1 and an error of the printer 1 occurs in the printer 1, the communication unit 15 of the printer 1 transmits the error information and/or setting change information simultaneously to the host PC 2 and the server 3 as event information related to the occurred event. In other words, chances are that transmitting the event information to the host PC 2 and transmitting the event information to the server 3 are performed at the same timing.
Conventionally, one default gateway has been set in a printer, and setting a static route has not been assumed in situations except for occurrence of a line or device failure. By contrast, in the printer 1 according to the present embodiment, the static route, aside from the default gateway, is settable at desired timing, and communication through the default gateway and communication in the static route are enabled to be performed independently from each other. Because of this, even when the default gateway is occupied to perform communication with the mobile communication network MN, data can be transmitted to the host PC 2 in the static route as exemplified in
One embodiment of the printer, the program and the communication system according to the present invention has been explained above in detail. However, the present invention is not limited to the aforementioned embodiment. Additionally, a variety of improvements and changes can be made for the aforementioned embodiment without departing from the gist of the present invention.
For example, the aforementioned embodiment has explained the configuration of setting one static route (i.e., one static gateway) for performing communication with the host PC connected to the printer network. However, static route setting is not limited to this. A plurality of static routes may be set for the printer. For example, when a single router is limited in number of printers connectable thereto, a plurality of routers may be provided as gateways for a single printer network and a plurality of static routes may be set. In this case, depending on the degrees of congestion in the respective routers, the printer may be configured to be capable of selecting a static route used for data transmission to the host PC among the plurality of static routes.
Number | Date | Country | Kind |
---|---|---|---|
2017-147865 | Jul 2017 | JP | national |
This application is a continuation application of U.S. application Ser. No. 16/611,261, filed Nov. 6, 2019, which is the National Stage of Application No. PCT/JP2018/025455 filed on Jul. 5, 2018, which is based upon and claims the benefit of priority from Japanese Application No. 2017-147865, filed Jul. 31, 2017, the entire contents of all of which are incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
Parent | 16611261 | Nov 2019 | US |
Child | 17189619 | US |