Application programs for terminal devices

The application program optimizes communication intervals to reduce Internet usage, leveraging LAN connections for cost-effective communication in devices capable of both Internet and LAN communication, addressing the higher costs associated with data-limited Internet services.

JP7533070B2Active Publication Date: 2024-08-14BROTHER KOGYO KK
View PDF 14 Cites 0 Cited by

Patent Information

Application Number
JP2020160728
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-09-25
Publication Date
2024-08-14
Estimated Expiration
2040-09-25

AI Technical Summary

Technical Problem

Communication via the Internet (e.g., 3G, 4G) often has higher costs due to monthly data limits, while LAN communication typically lacks such limits, leading to increased expenses for users with devices capable of both types of connections.

Method used

An application program for a terminal device that manages communication intervals, prioritizing LAN-based communication for status updates and using Internet-based communication less frequently to reduce overall data usage.

Benefits of technology

This approach reduces communication costs by minimizing Internet-based communication, leveraging the cost-effective nature of LAN connections while ensuring timely status updates are maintained.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007533070000004
    Figure 0007533070000004
  • Figure 0007533070000005
    Figure 0007533070000005
  • Figure 0007533070000003
    Figure 0007533070000003
Patent Text Reader

Abstract

To provide an application program that reduces communication costs in a terminal device capable of both of the communication via the Internet and not via the Internet.SOLUTION: An application program in a communication system causes a computer of a terminal device to function as a first communication section that uses a first type of communication via the Internet (e.g. cellular communication) to repeatedly execute a first type of communication processing for receiving related information relating to a communication device and a second communication section that uses a second type of communication not via the Internet (e.g. Wi-Fi communication) to repeatedly execute a second type of communication processing for receiving the related information. A first interval that is an interval for repeatedly executing the first type of communication processing may be longer than a second interval that is an interval for repeatedly executing the second type of communication processing.SELECTED DRAWING: Figure 8
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The technology disclosed in this specification relates to a terminal device capable of performing both communication via the Internet and communication without using the Internet. [Background technology]

[0002] Patent Document 1 discloses a smartphone that can connect to the Internet via a mobile communication line such as 3G or 4G, and can also connect to an external device via a wireless LAN (abbreviation of Local Area Network) communication line such as Wi-Fi. In this smartphone, when connections via multiple communication lines are established in parallel, the communication line connected to the Internet is used preferentially. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2019-169947 A Summary of the Invention [Problem to be solved by the invention]

[0004] Usually, communication using a LAN is realized by a flat-rate service. In addition, in many cases, such services do not set an upper limit on communication volume. On the other hand, communication using the Internet such as 3G and 4G is also realized by a flat-rate service, but the carrier providing the service often sets an upper limit on the monthly communication volume. For this reason, it can be said that communication using the Internet such as 3G and 4G generally has a higher communication cost than communication using a LAN. This specification provides a technology that can reduce communication costs in a terminal device capable of performing both communication via the Internet and communication not via the Internet. [Means for solving the problem]

[0005] This specification discloses an application program for a terminal device. The application program may cause a computer of the terminal device to function as the following units: a first communication unit that repeatedly executes a first type of communication process for receiving related information related to a communication device different from the terminal device using a first type of communication via the Internet, the first type of communication process including sending a first information request to a first external device; and a second communication unit that repeatedly executes a second type of communication process for receiving the related information using a second type of communication not via the Internet, the second type of communication process including sending a second information request to a second external device. A first interval that is an interval for repeatedly executing the first type of communication process may be longer than a second interval that is an interval for repeatedly executing the second type of communication process.

[0006] According to the above configuration, the first interval corresponding to the first type of communication processing using the first type of communication via the Internet is longer than the second interval corresponding to the second type of communication processing using the second type of communication not via the Internet. Therefore, compared to a configuration in which the first interval is equal to the second interval or the first interval is shorter than the second interval, the number of times of the first type of communication via the Internet can be reduced, and communication costs can be reduced.

[0007] A computer-readable recording medium storing the above application program, a terminal device implemented by the application program, and a method executed by the terminal device are also novel and useful. [Brief description of the drawings]

[0008] [Figure 1] 1 shows the configuration of a communication system. [Diagram 2] A block diagram showing the configuration of each device in a communication system is shown. [Diagram 3] A sequence diagram of the setup process is shown. [Figure 4]The sequence diagram continues from Figure 3. [Diagram 5] 1 shows a flowchart of a process executed by an application. [Figure 6] 1 shows a flowchart of a remote information acquisition process. [Figure 7] FIG. 13 shows a sequence diagram for acquiring application status information. [Figure 8] The sequence diagram continues from FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0009] (Configuration of communication system 2; Figure 1) 1, the communication system 2 includes a terminal 10, two printers 100, 200, and a server 300. The terminal 10 and the two printers 100, 200 are connected to a LAN (abbreviation of Local Area Network) 4 and can communicate with each other via the LAN 4. The terminal 10 and the server 300 are connected to the Internet 6 and can communicate with each other via the Internet 6. The LAN 4 is a wireless LAN and is connected to the Internet 6. The devices 10, 100, 200, 300 can communicate with each other via the LAN 4 and the Internet 6.

[0010] (Configuration of terminal 10; Figure 2) The terminal 10 is a portable terminal device such as a mobile phone (e.g., a smartphone), a PDA, or a tablet PC. In a modified example, the terminal 10 may be a stationary PC, a notebook PC, or the like. The terminal 10 includes an operation unit 12, a display unit 14, a cellular interface 16, a Wi-Fi interface 18, and a control unit 30. Hereinafter, the interface will be referred to as "I / F." Each unit 12 to 30 is connected to a bus line (reference numerals omitted).

[0011] The operation unit 12 includes a plurality of keys. A user can input various instructions to the terminal 10 by operating the operation unit 12. The display unit 14 is a display for displaying various information. The display unit 14 is a so-called touch panel, and also functions as an operation unit.

[0012] The cellular I / F 16 is a wireless interface for performing cellular communication according to a cellular system. The cellular system is a wireless communication system in which an area is divided into certain sections (i.e., cells) and a base station arranged in each cell is used. The cellular system includes 3G, 4G, 5G, etc. defined by the International Telecommunication Union. In other words, the cellular system is a mobile communication system. The cellular I / F 16 is usually connected to any one of the base stations. The cellular I / F 16 is connected to the Internet 6. Therefore, the terminal 10 can usually perform cellular communication with a device (e.g., the server 300) on the Internet 6 via the cellular I / F 16.

[0013] The Wi-Fi I / F 18 is a wireless interface for performing Wi-Fi communication according to the Wi-Fi standard. The Wi-Fi standard is a wireless communication standard for performing wireless communication according to, for example, the IEEE (The Institute of Electrical and Electronics Engineers, Inc.) 802.11 standard and standards equivalent thereto (for example, 802.11a, 11b, 11g, 11n, etc.). The Wi-Fi I / F 18 is connected to the LAN 4. That is, the Wi-Fi I / F 18 is an I / F for performing Wi-Fi communication via the LAN 4.

[0014] Typically, cellular communication is realized by a flat-rate service provided by a so-called carrier. In cellular communication services, an upper limit on communication volume for a certain period (for example, one month) is often set. If this communication volume limit is exceeded, the cellular communication service is restricted, or an additional fee must be paid to continue the service. On the other hand, Wi-Fi communication is realized by a flat-rate service provided by a provider. In Wi-Fi communication services, there is often no upper limit on communication volume for a certain period. For this reason, it can generally be said that cellular communication has higher communication costs than Wi-Fi communication.

[0015] The control unit 30 includes a CPU 32 and a memory 34. The CPU 32 executes various processes in accordance with programs 36, 38 stored in the memory 34. The memory 34 is configured with a volatile memory, a non-volatile memory, etc., and stores an OS program 36 and an application 38. Hereinafter, the application will be referred to as an "app."

[0016] The OS program 36 is a program for controlling the basic operations of the terminal 10. The application 38 is a program for acquiring information related to the printer (e.g., 100) and displaying the information. The application 38 is installed in the terminal 10 from a server (not shown) on the Internet 6 provided by the vendor of the printer 100, for example.

[0017] The application 38 stores a device table 40. The device table 40 is a table for storing a serial number, which is information for identifying a printer, an access token, and printer status information (e.g., normal, error, etc.), in association with each other. The access token is authentication information for using the server 300.

[0018] (Configuration of Printer 100) Printer 100 is a peripheral device (for example, a peripheral device of terminal 10) capable of executing a printing function, and has a serial number SN1. Note that printer 100 may be a multi-function device capable of executing a scanning function, a facsimile function, etc. in addition to a printing function. Printer 100 includes an operation unit 112, a display unit 114, a LAN I / F 116, a print execution unit 118, and a control unit 130. Each unit 112 to 130 is connected to a bus line (reference numerals omitted).

[0019] The operation unit 112 has a plurality of keys. A user can input various instructions to the printer 100 by operating the operation unit 112. The display unit 114 is a display for displaying various information. The LAN I / F 116 is connected to the LAN 4 (see FIG. 1). The print execution unit 118 has a printing mechanism such as an inkjet type or a laser type.

[0020] The control unit 130 includes a CPU 132 and a memory 134. The CPU 132 executes various processes in accordance with a program 136 stored in the memory 134. The memory 134 is configured by a volatile memory, a non-volatile memory, or the like.

[0021] (Configuration of Printer 200) Printer 200 has a similar configuration to printer 100, except that printer 200 has serial number SN2.

[0022] (Configuration of Server 300) The server 300 is a server for managing information (for example, status information) of each of the printers 100 and 200. The server 300 is installed on the Internet 6 by the vendor of each of the printers 100 and 200.

[0023] The server 300 establishes an XMPP (short for eXtensible Messaging and Presence Protocol) session with each of the printers 100 and 200. The XMPP session is a so-called always-on session. By using the XMPP session, the server 300 can send a request to the printer across a firewall (e.g., a firewall formed by a router) of the LAN to which the printer belongs, even if the server 300 does not receive a request from the printer. In other words, the XMPP session is a session that can execute server-push type communication.

[0024] The server 300 includes a network I / F 316 and a control unit 330. The units 316, 330 are connected to a bus line (reference numerals omitted). The network I / F 316 is connected to the Internet 6 (see FIG. 1). The control unit 330 includes a CPU 332 and a memory 334. The CPU 332 executes various processes in accordance with a program 336 stored in the memory 334. The memory 334 is composed of a volatile memory, a non-volatile memory, etc. The memory 334 stores a management table 340 in addition to the above program 336.

[0025] The management table 340 is a table for storing a serial number, a management ID for managing the printer, an access token, and printer status information in association with each other.

[0026] (Setup process; Figure 3) A setup process for registering each printer 100, 200 in the server 300 will be described with reference to FIG. 3. In the description of FIG. 3, the process executed by each CPU of each device (e.g., CPU 332 of server 300) will be described as being mainly each device (e.g., server 300) rather than each CPU, from the viewpoint of ease of understanding. This also applies to FIGS. 4, 7, and 8 described below. In the following, communication is performed between printer 100 and server 300 via LAN 4 and Internet 6. In the following, unless otherwise specified, the descriptions "via LAN 4" and "via Internet 6" will be omitted.

[0027] When the printer 100 accepts a printer registration operation for registering the printer 100 in the server 300 from the user at T5, the printer 100 transmits a registration request for requesting registration of the printer 100 to the server 300 at T10. The registration request includes the serial number SN1 of the printer 100.

[0028] When the server 300 receives a registration request from the printer 100 in T10, the server 300 generates a management ID "a01" in T12. Then, in T14, the server 300 associates the serial number SN1 in the registration request in T10 with the management ID "a01" generated in T12 and stores them in the management table 340. At this point in time, the access token and status information have not been stored in the management table 340 in association with the serial number SN1.

[0029] Next, in T20, the server 300 generates a PIN code C. The server 300 associates the management ID "a01" with the PIN code C and stores them in the memory 334. Then, in T22, the server 300 transmits the PIN code C to the printer 100.

[0030] When the printer 100 receives the PIN code C from the server 300 in T22, the printer 100 transmits an establishment request for requesting establishment of an XMPP session to the server 300 in T30. The establishment request includes the serial number SN1 and the PIN code C.

[0031] When the server 300 receives an establishment request from the printer 100 in T30, it authenticates the PIN code C in the establishment request in T32. In this case, the PIN code C in the establishment request matches the PIN code C in the memory 334, so authentication of the PIN code C is successful. The server 300 then executes the process from T34 onwards. If the PIN code authentication fails, the server 300 does not execute the process from T34 onwards.

[0032] In T34, the server 300 generates an access token AT1. The server 300 identifies, from the memory 334, the management ID "a01" that is stored in association with the PIN code C. Next, the server 300 stores the generated access token AT1 in the management table 340 in association with the identified management ID "a01". Then, in T40, the server 300 transmits the access token AT1 to the printer 100.

[0033] When the printer 100 receives the access token AT1 from the server 300 in T40, the printer 100 stores the access token AT1. Then, in T50, the printer 100 establishes an XMPP session with the server 300 using the access token AT1.

[0034] Furthermore, when the XMPP session with the server 300 is established, at T52 the printer 100 transmits a status signal indicating the current status of the printer 100 to the server 300. In this case, the status signal includes the serial number SN1 of the printer 100 and status information indicating that the current status of the printer is normal.

[0035] When the server 300 receives a status signal from the printer 100 at T52, at T54 the server 300 stores the status information "normal" contained in the status signal in the management table 340 in association with the serial number SN1 contained in the status signal.

[0036] At T60, a paper jam occurs in printer 100. In this case, printer 100 transmits a status signal including status information indicating that a paper jam has occurred to server 300 at T62.

[0037] When the server 300 receives a status signal from the printer 100 in T62, in T64 the server 300 stores the status information "paper jam" included in the status signal in association with the serial number SN1 included in the status signal in the management table 340. In this way, the printer 100 transmits a status signal indicating the current status of the printer 100 to the server 300 every time a status change occurs in the printer 100. In a modified example, the printer 100 may transmit a status signal to the server 300 every time a preset predetermined time arrives.

[0038] Thereafter, processing similar to that from T5 to T54 is executed between the printer 200 and the server 300. As a result, the printer 200 stores the access token AT2. The server 300 also stores in the management table 340 the serial number SN2 of the printer 200, the management ID "a02", the access token AT2, and the status information in association with each other.

[0039] (Continuation of Figure 3; Figure 4) When the terminal 10 accepts an application start operation from the user in T100 of FIG. 4, the terminal 10 starts the application 38 in T102.

[0040] When the terminal 10 accepts a device registration operation from the user in T110, in T112, the terminal 10 broadcasts a search signal for searching for a printer to the LAN 4.

[0041] When the printer 100 receives a search signal from the terminal 10 in T112, the printer 100 transmits a search response to the terminal 10 in T114. The search response includes the serial number SN1 of the printer 100 and the access token AT1 of the printer 100.

[0042] When the printer 200 receives a search signal from the terminal 10 in T112, the printer 200 transmits a search response to the terminal 10 in T116. The search response includes the serial number SN2 of the printer 200 and the access token AT2 of the printer 200. The communication from T112 to T116 is not communication using the Internet 4, but communication using only the LAN 4.

[0043] When the terminal 10 receives the search responses from the printers 100, 200 in T114 and T116, in T120, it displays a search result screen SC1 on the display unit 14. The search result screen SC1 includes a message prompting the user to select a device to be registered in the application 38, each of the received serial numbers SN1, SN2, and an OK button.

[0044] After accepting the selection of both serial numbers SN1 and SN2 from the user in T122, the terminal 10 accepts the selection of the OK button. As a result, in T130, the terminal 10 stores the serial number SN1 and the access token AT1 in association with each other in the device table 40, and also stores the serial number SN2 and the access token AT2 in association with each other in the device table 40.

[0045] When the terminal 10 accepts an operation to display the selection screen SC2 from the user in T132, in T134, the terminal 10 displays the selection screen SC2 on the display unit 14. The selection screen SC2 is a screen for selecting one serial number from a plurality of registered serial numbers, and includes the registered serial numbers SN1 and SN2 and an OK button.

[0046] In T136, the terminal 10 accepts the selection of one serial number in the selection screen SC2 from the user, and then accepts the selection of the OK button. In this case, the serial number SN1 is selected. In this manner, the user can check the status information of a desired printer by specifying the desired printer from among one or more printers stored in the application 38.

[0047] At T138, the terminal 10 displays a status screen SC3 on the display unit 14. The status screen SC3 includes status information associated with the serial number SN1 and stored in the device table 40. However, at the current stage, since status information has not yet been stored associated with the serial number SN1, the status screen SC3 including only the serial number SN1 is displayed.

[0048] Thereafter, when the terminal 10 accepts an operation to stop the application 38 from the user in T140, the terminal 10 stops the application 38 in T142.

[0049] (Processing application 38; Figure 5) Next, referring to FIG. 5, a process realized by the CPU 32 of the terminal 10 executing the application 38 will be described. In the following, when describing the process of FIG. 5, the process will be described mainly with respect to the application 38, not the CPU 32. The process of FIG. 5 is started when the application 38 is started in the foreground. In this way, the application 38 executes the process of FIG. 5 when the application 38 is started in the foreground, and does not execute the process of FIG. 5 when the application 38 is not started or when the application 38 is started in the background. The reason why the process of FIG. 5 is not executed when the application 38 is started in the background is because the information acquired by the process of FIG. 5 cannot be displayed. Since the process of FIG. 5 is not executed when the application 38 is started in the background, the processing load of the terminal 10 can be reduced.

[0050] In S10, the application 38 displays a status screen on the display unit 14. The status screen includes status information of one printer selected by the user from among the printers registered in the application 38 (see T130 in FIG. 4) (see status screen SC3 in FIG. 4). In the following, the one printer selected by the user is referred to as the "target printer." The status screen includes the serial number of the target printer (hereinafter referred to as the "target serial number"), information indicating the status of the target printer, and information indicating the communication environment of the target printer.

[0051] In S12, the application 38 acquires the current time and stores the acquired current time as time T1.

[0052] In S14, the application 38 determines whether or not the terminal 10 is establishing Wi-Fi communication via the Wi-Fi I / F 18. Specifically, the application 38 inquires of the OS program 36 whether or not Wi-Fi communication is being established. When the application 38 acquires information indicating that Wi-Fi communication is being established from the OS program 36, the application 38 determines that Wi-Fi communication is being established (YES in S14) and proceeds to S16. On the other hand, when the application 38 acquires information indicating that Wi-Fi communication is not being established from the OS program 36, the application 38 determines that Wi-Fi communication is not being established (NO in S14) and proceeds to S40.

[0053] In S16, the application 38 transmits a polling message to the target printer via the Wi-Fi I / F 18. The polling message includes the target serial number. The application 38 stores the number of times the polling message has been transmitted, and increments the number of times the polling message has been transmitted by 1 each time the polling message is transmitted.

[0054] In S18, the application 38 determines whether or not target printer information has been received from the target printer via the Wi-Fi I / F 18. Hereinafter, the target printer information will be referred to as "printer information." The printer information includes the target serial number and status information (e.g., normal, error, etc.) indicating the current status of the target printer. If the application 38 has received printer information from the target printer, it determines YES in S18 and proceeds to S30. In this case, the value of the polling transmission count is reset (i.e., set to 0). On the other hand, if the application 38 determines that it has not received printer information from the target printer, it determines NO in S18 and proceeds to S20.

[0055] In S20, the application 38 monitors whether one second has passed since the polling was sent in S16. If one second has passed, the application 38 determines YES in S20 and proceeds to S22.

[0056] In S22, the application 38 determines whether or not the polling has been transmitted three times. Specifically, the application 38 determines whether or not the stored number of transmissions (see S16) is three. If the number of transmissions is three, the application 38 determines YES in S22 and proceeds to S40. In this case, the value of the number of polling transmissions is reset (i.e., set to 0). On the other hand, if the number of transmissions is less than three, the application 38 determines NO in S22 and returns to S16.

[0057] In S30, the application 38 determines that the local connection is online. Here, the local connection means a connection within the LAN 4 via the Wi-Fi I / F 18 (i.e., a connection not via the Internet 6). The local connection being online means that the application 38 can obtain printer information from the target printer via the Wi-Fi I / F 18. When the processing of S30 ends, the process proceeds to S32.

[0058] In S40, the application 38 determines that the local connection is offline. The local connection being offline means that the application 38 is unable to acquire printer information from the target printer via the Wi-Fi I / F 18.

[0059] In S42, the application 38 determines whether or not an access token is stored in association with the target serial number in the device table 40. If an access token is stored in association with the target serial number, the application 38 determines YES in S42 and proceeds to S60. On the other hand, if an access token is not stored in association with the target serial number, the application 38 determines NO in S42 and proceeds to S50.

[0060] In S50, the application 38 determines that the remote connection is offline. The remote connection means a connection via the cellular I / F 16 (i.e., a connection via the Internet 6). The remote connection being offline means that the application 38 cannot acquire printer information from the server 300 via the cellular I / F 16. As will be described later in the description of FIG. 6, when the application 38 cannot acquire printer information from the target printer via the Wi-Fi I / F 18, the application 38 attempts to acquire printer information from the server 300 via the cellular I / F 16. At this time, the application 38 acquires printer information from the server 300 using an access token. That is, the application 38 cannot acquire printer information from the server 300 unless the application 38 stores an access token in association with the target serial number. Therefore, the application 38 determines that the remote connection is offline in S50. When the process of S50 ends, the process proceeds to S32.

[0061] In S60, the application 38 executes a remote information acquisition process. The remote information acquisition process is a process for acquiring printer information from the server 300 via the cellular I / F 16. When S60 ends, the process proceeds to S36.

[0062] In S32, the application 38 updates (i.e., overwrites and stores) the status associated with the target serial number in the device table 40. In S32 after YES in S18, the status is updated using the printer information already received in S18 and the local online determination in S30. In S32 after NO in S18 (i.e., S32 executed after S50), the status is updated using the local offline determination in S40 and the remote offline determination in S50.

[0063] In S34, the application 38 updates the status screen using the status updated in S32, so that the user can check the status information of the target printer by looking at the terminal 10.

[0064] In S36, the application 38 acquires the current time, and stores the acquired current time as time T2.

[0065] In S38, the application 38 monitors whether (5-(time T2 (see S36)-time T1 (see S12))) seconds have elapsed from the current time. Specifically, the application 38 starts a timer, and when the timer value reaches (5-(T2-T1)) seconds, the application 38 determines YES in S38 and returns to S12. Here, (T2-T1) means the time required to execute a series of processes from S12 to S36 and S40 to S60. Therefore, the passage of (5-(T2-T1)) seconds means that 5 seconds have elapsed since time T1 (i.e., S12). In other words, when the application 38 is operating in the foreground, the processes from S12 to S38 and S40 to S60 are repeatedly executed every 5 seconds.

[0066] (Remote information acquisition process; Figure 6) Next, the remote information acquisition process of S60 in Fig. 5 will be described with reference to Fig. 6. In S100, the application 38 acquires the current time, and stores the acquired current time as time T_NOW.

[0067] In S102, the application 38 judges whether or not (time T_NOW (see S100)-time T_RE (see S116 described later)) is greater than 90 seconds. The time T_RE is the time when the series of processes from S102 to S120 was completed the previous time. If (T_NOW-T_RE) is greater than 90 seconds, the application 38 judges YES in S102 and proceeds to S104. On the other hand, if (T_NOW-T_RE) is 90 seconds or less, the application 38 judges NO in S102 and ends the process of FIG. 6 without executing the processes from S104 onwards. In this way, the application 38 executes the series of processes from S102 to S120 every 90 seconds. For this reason, the application 38 does not transmit polling (see S106) to the server 300 when 90 seconds have not elapsed since the previous process. Therefore, the number of cellular communications is relatively small, and communication costs are low. In addition, in a situation where the time T_RE is not stored at the stage of S102 (that is, in a situation where the process of FIG. 6 is not executed after the application 38 is started in the foreground), the application 38 determines YES in S102.

[0068] In S104, the application 38 determines whether the terminal 10 is establishing cellular communication with a base station via the cellular I / F 16. Specifically, the application 38 inquires of the OS program 36 whether the terminal 10 is establishing cellular communication. When the application 38 acquires information indicating that cellular communication is being established from the OS program 36, the application 38 determines that cellular communication is being established (YES in S104) and proceeds to S106. On the other hand, when the application 38 acquires information indicating that cellular communication is not being established from the OS program 36, the application 38 determines that cellular communication is not being established (NO in S104) and proceeds to S120.

[0069] In S106, the application 38 transmits a polling to the server 100 via the cellular I / F 16. The polling includes the target serial number and the access token stored in association with the target serial number.

[0070] In S108, the application 38 determines whether or not the printer information has been received from the server 300. If the printer information has been received from the server 300, the application 38 determines YES in S108 and proceeds to S110. On the other hand, if the application 38 determines that the printer information has not been received from the server 100, the application 38 determines NO in S108 and proceeds to S120.

[0071] In S110, the application 38 determines that the remote connection is online. The remote connection being online means that the application 38 is able to obtain printer information from the server 300 via the cellular I / F 16.

[0072] In S120, the application 38 determines that the remote connection is offline. When the process of S120 ends, the process proceeds to S112.

[0073] In S112, the application 38 updates (i.e., overwrites and stores) the status associated with the target serial number in the device table 40. In S122 after YES in S108, the application 38 updates the status using the printer information already received in S108 and the remote online determination in S110. In S112 after NO in S108 (i.e., S112 executed after S120), the application 38 updates the status using the local offline determination in S40 in FIG. 5 and the remote offline determination in S120.

[0074] In S114, the application 38 updates the status screen using the status updated in S112.

[0075] In S116, the application 38 acquires the current time and stores the acquired current time as the time T_RE. When the process of S116 ends, the process of FIG.

[0076] As described above, the application 38 executes the process (S12 to S22 in FIG. 5) for acquiring printer information from the target printer via the Wi-Fi I / F 18 every 5 seconds, and executes the process (S104 to S108 in FIG. 6) for acquiring printer information from the server 300 via the cellular I / F 16 every 90 seconds. Therefore, the number of cellular communications is less than the number of Wi-Fi communications, and communication costs are therefore reduced.

[0077] Furthermore, in the process of acquiring printer information from the target printer via the Wi-Fi I / F 18, the application 38 sends a maximum of three polls to the target printer every second (S20, S22). A situation may arise in which it is not possible to acquire printer information from the target printer by one or two polls due to temporary unstable communication. In such a situation, the application 38 can properly acquire printer information from the target printer by sending another poll to the target printer.

[0078] (Specific cases: Figures 7 and 8) Next, a specific case realized by the processing in Figures 5 and 6 will be described. In the initial state of Figure 7, serial numbers SN1 and SN2 are registered in the application 38 (see T130 in Figure 4), and serial number SN1 is selected by the user (see T136). That is, Figure 7 is a continuation of the processing in Figure 4. In addition, in the initial state of Figure 7, the terminal 10 is establishing Wi-Fi communication. The thin line arrows in Figure 7 indicate communication via the Wi-Fi I / F 18 of the terminal 10, and the thick line arrows indicate communication via the cellular I / F 16 of the terminal 10.

[0079] The processes of T200 and T202 are similar to the processes of T100 and T102 in Fig. 4, respectively. Moreover, the process of T204 is similar to the process of T138 in Fig. 4. In T206, since the terminal 10 is establishing Wi-Fi communication (YES in S14 in Fig. 5), the terminal 10 transmits a polling to the printer 100 via the Wi-Fi I / F 18 (S16). The polling includes the serial number SN1 of the printer 100.

[0080] When the printer 100 receives polling from the terminal 10 in T206, the printer 100 transmits printer information including status information indicating the current status of the printer 100 to the terminal 10 in T208. At the time of T208, a paper jam has occurred in the printer 100, so the status information indicates "paper jam."

[0081] When the terminal 10 receives the printer information from the printer 100 in T208 (YES in S18), it determines that the local connection is online (S30 in FIG. 5), and in T210 updates the status information stored in the device table 40 in association with the serial number SN1 (S32). Specifically, the terminal 10 stores the status information "paper jam" in association with the serial number SN1 in the device table 40.

[0082] At T212, the terminal 10 updates the status screen SC3 using the status information updated at T210 (S34). In particular, the status screen SC3 updated at T212 includes information indicating that a paper jam has occurred and a mark M1 indicating that the local connection is online. By looking at the status screen SC3, the user can know that a paper jam has occurred in the printer 100. This allows the user to perform maintenance on the printer 100 to resolve the paper jam. The user can also know that the local connection of the printer 100 is online (i.e., the status information is being obtained using Wi-Fi communication).

[0083] When the paper jam is cleared by the user's maintenance in T220, the printer 100 transmits to the server 300 in T222 a status signal including information indicating that the paper jam has been cleared.

[0084] When the server 300 receives a status signal from the printer 100 in T222, it stores the status information "normal" in the management table 340 in association with the serial number SN1 included in the status signal in T224.

[0085] After that, when five seconds have elapsed since the polling was transmitted in T206, the terminal 10 transmits the polling again to the printer 100 via the Wi-Fi I / F 18 in T230 (S16). At this time, the printer 100 does not receive the polling from the terminal 10 due to the unstable Wi-Fi communication in the printer 100. Specifically, when one second has elapsed since the terminal 10 transmitted the polling to the printer 100 without receiving any printer information from the printer 100 (NO in S18, NO in S20, NO in S22), the terminal 10 transmits the polling again to the printer 100 (S16). Similarly, even if the terminal 10 transmits the second and third polling to the printer 100, it does not receive any printer information from the printer 100 (YES in S22).

[0086] The terminal 10 has already stored the access token AT1 in association with the serial number SN1 of the printer 100 in the device table 40 (YES in S42), and therefore establishes cellular communication with the base station. In this case, the terminal 10 does not store the time T_RE (YES in S102 of FIG. 6), and has already established cellular communication with the base station (YES in S104), and therefore at T232, transmits a polling to the server 300 via the cellular I / F 16 (S106). The polling includes the serial number SN1 of the printer 100 and the access token AT1 associated with the serial number SN1.

[0087] When the server 300 receives polling from the terminal 10 in T232, in T234, the server 300 transmits printer information including status information indicating the current status of the printer 100 to the terminal 10. At the time of T234, the paper jam in the printer 100 has been resolved (see T222), so the status information indicates “normal.”

[0088] When the terminal 10 receives the printer information from the server 300 in T234, it determines that the remote connection is online (S110), and in T236 updates the status information stored in the device table 40 in association with the serial number SN1 (S112). Specifically, the terminal 10 stores the status information "normal" in association with the serial number SN1 in the device table 40.

[0089] At T238, the terminal 10 updates the status screen SC3 using the status information updated at T236 (S114). In particular, the status screen SC3 updated at T238 includes information indicating that the printer 100 is operating normally, and a mark M2 indicating that the remote connection is online. By looking at the status screen SC3, the user can know that the paper jam has been resolved in the printer 100. In addition, the user can know that the remote connection of the printer 100 is online (i.e., the status information is being obtained using cellular communication).

[0090] (Continuation of Figure 7; Figure 8) After that, the terminal 10 stores the current time as time T_RE (S116) and establishes Wi-Fi communication. At this time, the terminal 10 establishes Wi-Fi communication, but the Wi-Fi communication in the printer 100 is unstable. When 5 seconds have elapsed since the first polling was transmitted at T230 in FIG. 7, the terminal 10 transmits a polling to the printer 100 via the Wi-Fi I / F 18 at T240 in FIG. 8 (S16). The process of T240 is the same as the process of T230. In this case, since (T_NOW-T_RE) is 90 seconds or less (NO in S102), the terminal 10 does not transmit a polling to the server 300 and does not update the status information and the status screen. In this way, the application 38 does not transmit a polling to the server 300 again when 90 seconds have not elapsed since the application 38 transmitted a polling to the server 300. In this case, the application 38 cannot obtain the latest status information of the printer 100, but maintains the display of the status screen SC3 using the status information previously received from the server 300, without displaying any information indicating that the latest status information cannot be obtained. Therefore, even if the application 38 cannot obtain the latest status information, it can continue to display the status screen SC3 using the previously obtained status information.

[0091] Thereafter, after 90 seconds have elapsed since the polling was transmitted to the server 300 in T232, the terminal 10 transmits a polling to the printer 100 via the Wi-Fi I / F 18 in T250 (S16). The process of T250 is the same as the process of T230.

[0092] In this case, since (T_NOW-T_RE) is greater than 90 seconds (YES in S102), in T252, the terminal 10 transmits a polling to the server 300 via the cellular I / F 16. The processing from T252 to T258 is similar to the processing from T232 to T238 in FIG.

[0093] After that, when five seconds have elapsed since the first polling was transmitted in T250, the terminal 10 transmits a polling to the printer 100 via the Wi-Fi I / F 18 in T260 (S16).

[0094] At this time, due to the stability of the Wi-Fi communication of the printer 100, when the printer 100 receives polling from the terminal 10 in T260, the printer 100 transmits printer information including status information to the terminal 10 in T262. The processing from T260 to T266 is similar to the processing from T206 to T212 in FIG.

[0095] (Effects of this embodiment) According to the above configuration, the processes of S106 and S108 in Fig. 6 using cellular communication via the Internet 6 are executed every 90 seconds, and the processes of S16 to S22 in Fig. 5 using Wi-Fi communication not via the Internet 6 are executed every 5 seconds. That is, the intervals corresponding to the processes of S106 and S108 in Fig. 6 using cellular communication are longer than the intervals corresponding to the processes of S16 to S22 in Fig. 5 using Wi-Fi communication. Therefore, the number of times cellular communication via the Internet 6 is performed is reduced, and communication costs are reduced.

[0096] In particular, in this embodiment, the application 38 prioritizes obtaining status information using Wi-Fi communication not via the Internet 6 over obtaining status information using cellular communication via the Internet 6 (if YES is determined in S14 and YES is determined in S18 in FIG. 5, the process of S60 is not executed). This reduces the number of times cellular communication is performed via the Internet 6, and therefore reduces communication costs.

[0097] (Correspondence) The terminal 10 and the printer 100 are examples of a "terminal device" and a "communication device", respectively. The server 300 and the printer 100 are examples of a "first external device" and a "second external device", respectively. The serial number is an example of "identification information". The cellular communication and the Wi-Fi communication are examples of a "first type of communication" and a "second type of communication", respectively. The polling transmitted to the server 300 in S106 of FIG. 6 and the polling transmitted to the printer 100 in S16 of FIG. 5 are examples of a "first information request" and a "second information request", respectively. The processes of S106 and S108 of FIG. 6 are examples of a "first type of communication process". The processes of S16 to S22 of FIG. 5 are examples of a "second type of communication process". The status information is an example of "related information". 90 seconds and 5 seconds are examples of a "first interval" and a "second interval", respectively. 1 second and "3" are examples of a "predetermined time" and a "predetermined number", respectively. The status screen SC3 is an example of a “specific screen.” The mark M2 indicating that the remote connection is online, which is displayed on the status screen SC3 displayed at T238 in Fig. 7, is an example of “predetermined information.”

[0098] The processes of S106 and S108 in FIG. 6 are an example of a process executed by a "first communication unit." The processes of S16 to S22 in FIG. 5 are an example of a process executed by a "second communication unit." The processes of S34 in FIG. 5 and S114 in FIG. 6 are an example of a process executed by a "display control unit." The process of S14 in FIG. 5, the processes of S18 to S22 in FIG. 5, and the process of S102 in FIG. 6 are an example of a process executed by a "first determination unit," a "second determination unit," and a "third determination unit," respectively. The process of T130 in FIG. 4 is an example of a process executed by a "storage control unit."

[0099] Although specific examples of the technology disclosed in this specification have been described in detail above, these are merely examples and do not limit the scope of the claims. The technology described in the claims includes various modifications and variations of the specific examples exemplified above. Modifications of the above embodiments are listed below.

[0100] (Modification 1) In the above embodiment, the terminal 10 executes cellular communication with the server 300 via the Internet 6 using the cellular I / F 16, and executes Wi-Fi communication with the printer 100 without using the Internet 6 using the Wi-Fi I / F 18. However, the terminal 10 may not have the cellular I / F 16, and may have only the Wi-Fi I / F 18. In this modification, the terminal 10 may execute both communication via the Internet 6 and communication without using the Internet 6 using the Wi-Fi I / F 18. In another modification, the terminal 10 may have a Bluetooth I / F for executing Bluetooth communication according to the Bluetooth (registered trademark) method, instead of the Wi-Fi I / F 18. In this modification, the Bluetooth communication is an example of the "second type of communication". In another modification, the terminal 10 may have a LAN I / F for connecting to the LAN 4, instead of the Wi-Fi I / F 18. In this case, the LAN 4 may be a wireless LAN or a wired LAN. In this modification, the communication via the LAN 4 is an example of the "second type of communication."

[0101] (Variation 2) The status information included in the printer information that the application 38 receives from the printer 100 or the server 300 is not limited to "Normal" and "Paper Jam" in the above embodiment, and may be, for example, status information such as "Low ink level" indicating that the ink level is low. Furthermore, the information included in the printer information is not limited to the status information of the printer 100, and may be any information related to the printer 100, such as the subscription status of a subscription service, the security lock status, etc. In this variation, the information related to the printer 100 is an example of "related information."

[0102] (Modification 3) The interval for executing the process for acquiring the status information of the printer 100 from the server 300 via the cellular I / F 16 is not limited to 90 seconds as in the above embodiment, and may be less than 90 seconds or more than 90 seconds. Also, the interval for executing the process for acquiring the status information from the printer 100 via the Wi-Fi I / F 18 is not limited to 5 seconds as in the above embodiment, and may be less than 5 seconds or more than 5 seconds. It is sufficient that the interval for executing the process for acquiring the status information of the printer 100 from the server 300 via the LAN I / F 16 is longer than the interval for executing the process for acquiring the status information from the printer 100 via the Wi-Fi I / F 18.

[0103] (Variation 4) The application 38 does not need to update the status screen when receiving printer information from the printer 100 or the server 300. In this variation, the process of S34 in FIG. 5 and the process of S114 in FIG. 6 can be omitted. In this variation, for example, the status screen may be displayed when an operation to instruct the display of the status screen is performed by the user. Generally speaking, the "display control unit" can be omitted.

[0104] (Variation 5) In the above embodiment, the application 38 prioritizes acquisition of status information using Wi-Fi communication not via the Internet 6 over acquisition of status information using cellular communication via the Internet 6. In a variation, the application 38 may prioritize acquisition of status information using cellular communication via the Internet 6 over acquisition of status information using Wi-Fi communication not via the Internet 6. In this variation, the "first determination unit" and the "second determination unit" can be omitted.

[0105] (Variation 6) In the above embodiment, if the application 38 does not receive status information from the printer 100 even after one second has elapsed since sending a polling to the printer 100, the application 38 sends a polling to the printer 100 again (S20 in FIG. 5). Furthermore, the application 38 sends polling to the printer up to three times for each process for acquiring status information from the printer 100 (S22). The threshold number of seconds "one second" in the above embodiment may be less than one second or more than one second. Furthermore, the threshold number of times "three times" may be less than three times or more than three times. Generally speaking, the "predetermined time" and the "predetermined number" are not limited to the forms of the above embodiment.

[0106] (Variation 7) If the terminal 10 does not obtain printer information from the printer 100 after sending polling to the printer 100 at T240 in FIG. 8, the terminal 10 may display a status screen including information indicating that the status information could not be obtained.

[0107] (Modification 8) The application 38 may execute the processes in FIG. 5 and FIG. 6 while the application 38 is running in the background.

[0108] (Variation 9) In the above embodiment, the application 38 executes the processes in Fig. 5 and Fig. 6 for one printer selected by the user from among one or more printers registered in the device table 40 of the application 38. In a variation, the application 38 may execute the processes in Fig. 5 and Fig. 6 in parallel for each of one or more printers registered in the device table 40 of the application 38.

[0109] (Variation 10) When the printer 100 is connected to the Internet 6, the app 38 may use cellular communication to send polling to the printer 100 via the Internet 6. In this variation, the printer 100 is an example of a "first external device." Also, when the server 300 is installed in the LAN 4, the app 38 may use Wi-Fi communication to send polling to the server 300 without using the Internet 6. In this variation, the server 300 is an example of a "second external device."

[0110] (Modification 11) In the above embodiment, each process in FIG. 2 to FIG. 8 is realized by software (for example, application 38), but at least one of these processes may be realized by hardware such as a logic circuit.

[0111] The technical elements described in this specification or drawings have technical utility either alone or in various combinations, and are not limited to the combinations described in the claims at the time of filing. In addition, the technologies illustrated in this specification or drawings can achieve multiple objectives simultaneously, and achieving one of these objectives is itself technically useful. [Explanation of symbols]

[0112] 2: communication system, 4: LAN, 6: Internet, 10: terminal, 12, 112: operation unit, 14, 114: display unit, 16: cellular I / F, 18: Wi-Fi I / F, 30, 130, 330: control unit, 32, 132, 332: CPU, 34, 134, 334: memory, 36: OS program 36, 38: application, 40: device table, 100, 200: printer, 116: LAN I / F, 118: print execution unit, 136, 336: program, 300: server, 316: network I / F, 340: management table

Claims

1. An application program for a terminal device, The terminal device computer is composed of the following parts: a first communication unit that repeatedly executes a first type of communication process for receiving related information related to a communication device different from the terminal device by using a first type of communication via the Internet, the first type of communication process including transmitting a first information request to a first external device; a second communication unit that repeatedly executes a second type of communication process for receiving the related information by using a second type of communication not via the Internet, the second type of communication process including transmitting a second information request to a second external device; an application program, wherein a first interval, which is an interval for repeatedly executing the first type of communication process, is longer than a second interval, which is an interval for repeatedly executing the second type of communication process.

2. The application program further causes the computer to The application program according to claim 1 , further comprising a display control unit that, when the related information is received from the first external device or the second external device, causes a specific screen showing the related information to be displayed on a display unit of the terminal device.

3. The application program further causes the computer to a first determination unit that determines whether the terminal device is capable of executing the second type of communication; the first communication unit executes the first type of communication process when it is determined that the second type of communication is not executable; the second communication unit executes the second type of communication process when it is determined that the second type of communication is executable; The application program according to claim 1 , wherein when it is determined that the second type of communication is executable, the first type of communication process is not executed.

4. The application program further causes the computer to when it is determined that the second type of communication is executable, the second determination unit functions as a second determination unit that determines whether or not the related information has been received from the second external device; The application program according to claim 3 , wherein the first communication unit executes the first type of communication process when it is determined that the related information has not been received from the second external device.

5. the second type of communication process includes, when a predetermined time has elapsed since the second information request was transmitted to the second external device without the related information being received from the second external device, transmitting the second information request again to the second external device; 5. The application program according to claim 4, wherein the second determination unit determines that the related information has not been received from the second external device when a predetermined number of the second information requests, which is two or more, are sent to the second external device and the related information is not received from the second external device.

6. The application program further causes the computer to when it is determined that the related information has not been received from the second external device, the third determination unit determines whether or not the first interval has elapsed since the first type of communication process was previously executed; the first communication unit executes the first type of communication process when it is determined that the first interval has elapsed since the first type of communication process was last executed; When it is determined that the first interval has not elapsed since the first type of communication process was last executed, the first type of communication process is not executed; 6. The application program according to claim 4 or 5, wherein the second communication unit executes the second type of communication processing when it is determined that the first interval has not elapsed since the first type of communication processing was last executed and the second interval has elapsed since the second type of communication processing was last executed.

7. The application program further causes the computer to when the related information is received from the first external device or the second external device, the terminal device functions as a display control unit that causes a specific screen showing the related information to be displayed on a display unit of the terminal device; The display control unit is when the related information is received from the first external device, displaying the specific screen on the display unit, the specific screen including predetermined information indicating that the related information has been received by the first type of communication process; 7. The application program of claim 6, further comprising: an application program for displaying, on a display unit, a specific screen including the specified information, the specific screen including the specified information, the application program causing, when the second type of communication processing is executed and it is determined that the related information has not been received from the second external device, the specific screen including the specified information to continue to be displayed on the display unit without displaying information indicating that the second type of communication processing has failed in place of the specified information.

8. the first communication unit executes the first type of communication process when the application program is running in the foreground; the second communication unit executes the second type of communication process when the application program is running in the foreground; 8. The application program according to claim 1, wherein the first type of communication process and the second type of communication process are not executed when the application program is running in the background.

9. The application program further causes the computer to a storage control unit that stores one or more pieces of identification information for identifying one or more communication devices in a memory of the terminal device; 9. The application program according to claim 1, wherein the communication device is a device identified by one piece of identification information selected by a user from the one or more pieces of identification information in the memory.

10. the first external device is a server different from the terminal device and the communication device, The application program according to any one of claims 1 to 9, wherein the second external device is the communication device.

Citation Information

Patent Citations

  • Status response device

    JP1998003450A

  • Power monitoring method of peripheral device, power monitoring device, power monitoring system and information recording medium

    JP2000056868A

  • Information processor, information processing method, program and computer-readable storage medium

    JP2005044080A

  • Communication apparatus for vehicle

    JP2005204218A

  • Electronic camera

    JP2007020038A