Terminal device control method, terminal device, and program

The terminal device control method and program adapt to screen modes, enabling simultaneous execution of applications with background operations, addressing limitations in existing devices by allowing multi-screen mode operations.

JP7579667B2Active Publication Date: 2024-11-08SEIKO INSTR INC
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
JP2020169198
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-10-06
Publication Date
2024-11-08
Estimated Expiration
2040-10-06

AI Technical Summary

Technical Problem

Existing terminal devices, such as iPads and iPhones, limit applications to those displayed on the screen, preventing simultaneous execution of applications that require background operations, like monitoring printer status, due to single-screen mode limitations.

Method used

A terminal device control method and program that acquires screen mode information to enable or disable background operations based on single-screen or multi-screen modes, allowing simultaneous execution of applications.

Benefits of technology

Enables simultaneous execution of applications with background operations, such as printer status monitoring, by adapting to terminal device screen modes, enhancing functionality and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007579667000001
    Figure 0007579667000001
  • Figure 0007579667000002
    Figure 0007579667000002
  • Figure 0007579667000003
    Figure 0007579667000003
Patent Text Reader

Abstract

To execute an operation concerning information transmitted from an external device to a terminal device according to a screen mode of the terminal device simultaneously while an application for causing the external device to perform an operation is operating.SOLUTION: A terminal device control method has: a screen mode information acquisition step of acquiring screen mode information indicating one of a one screen mode being a mode in which one application operates for a screen of a terminal device and a plural screen mode being a mode in which a plurality of applications operate in parallel; a switching step of, when the screen mode information indicates the plural screen mode, switching between enabling and disabling a first operation operating at least in a period during which the first application operates, the operation being an operation concerning information transmitted from an external device to the terminal device; and a first operation execution step of executing the first operation when the switching step switches to enable the first operation.SELECTED DRAWING: Figure 4
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a terminal device control method, a terminal device, and a program. [Background technology]

[0002] There is known an application (hereinafter referred to as the second application) that receives print data from an application such as a web browser (hereinafter referred to as the first application) and sends the print data to a printer either directly or after converting it into data for the printer (Patent Document 1). [Prior art documents] [Patent documents]

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

[0004] In the technology described in Patent Document 1, it is often assumed that a mobile terminal such as an iPad (registered trademark) or an iPhone (registered trademark) is used as a terminal device. In these terminal devices, the applications that can be operated are basically limited to those displayed on the screen, and the operation of applications other than the application displayed on the screen is stopped.

[0005] When the second application described in Patent Document 1 is operated on the above-mentioned terminal device in which the applications that can be operated are limited to those displayed on the screen, the second application is stopped while the first application is running. Therefore, the second application does not have a "function that requires background operation" such as constantly monitoring the printer error status.

[0006] Therefore, in a terminal device having a single-screen mode in which the applications that can be operated are limited to those displayed on the screen, and a multiple-screen mode in which multiple applications can be operated simultaneously, even if a first application and a second application were executed simultaneously in the multiple-screen mode, the second application did not have a "function that requires background operation," and therefore the function could not be realized.

[0007] The present invention has been made in consideration of the above points, and provides a terminal device control method, a terminal device, and a program that can simultaneously execute operations on information transmitted from an external device to a terminal device in accordance with the screen mode of the terminal device while an application for causing an external device to perform an operation is running. [Means for solving the problem]

[0008] The present invention has been made to solve the above-mentioned problems, and one aspect of the present invention is a terminal device control method having a screen mode information acquisition step of acquiring screen mode information indicating either a single-screen mode, in which one application runs on a screen of a terminal device that causes an external device to perform an operation by communicating with the external device, or a multiple-screen mode, in which multiple applications run in parallel; a switching step of switching between enabling and disabling a first operation, which is an operation that runs at least during a period when a first application for causing the external device to perform an operation is running, and which is an operation regarding information transmitted from the external device to the terminal device; and a first operation execution step of executing the first operation when the first operation has been switched to be enabled by the switching step.

[0009] In addition, according to one aspect of the present invention, in the above terminal device control method, the method further includes a received information output step of outputting information received from the external device to the first application.

[0010] In addition, one aspect of the present invention, in the above-mentioned terminal device control method, further includes a response step of making a different response to an operation by the first application when the first operation is switched to be enabled by the switching step and when the first operation is switched to be disabled by the switching step.

[0011] In addition, one aspect of the present invention, in the above terminal device control method, further includes a notification step of issuing a notification regarding a mode for the screen of the terminal device.

[0012] Also, one aspect of the present invention is a terminal device comprising: a screen mode information acquisition unit that acquires screen mode information indicating either a single-screen mode, in which one application runs on a screen of a terminal device that causes an external device to perform an operation by communicating with the external device, or a multiple-screen mode, in which multiple applications run in parallel; a switching unit that switches between enabling and disabling a first operation, when the screen mode information acquired by the screen mode information acquisition unit indicates the multiple-screen mode, which is an operation that runs at least during a period when a first application for causing the external device to perform an operation is running, and which is an operation regarding information transmitted from the external device to the terminal device; and a first operation execution unit that executes the first operation when the switching unit has switched to enabling the first operation.

[0013] Also, one aspect of the present invention is a program for causing a computer to execute a screen mode information acquisition step of acquiring screen mode information indicating either a single-screen mode, in which one application runs on the screen of a terminal device that causes an external device to perform an operation by communicating with the external device, or a multiple-screen mode, in which multiple applications run in parallel; a switching step of switching between enabling and disabling a first operation, which is an operation that runs at least during the period when a first application for causing the external device to perform an operation is running, and which is an operation regarding information transmitted from the external device to the terminal device; and a first operation execution step of executing the first operation when the first operation has been switched to be enabled by the switching step. Effect of the Invention

[0014] According to the present invention, while an application for causing an external device to perform an operation is running, an operation can be simultaneously performed on information transmitted from the external device to the terminal device in accordance with the screen mode of the terminal device. [Brief description of the drawings]

[0015] [Figure 1] FIG. 1 is a diagram illustrating an example of a configuration of a printing system according to an embodiment of the present invention. [Diagram 2] FIG. 1 is a diagram illustrating an example of a hardware configuration of a printing system according to an embodiment of the present invention. [Diagram 3] FIG. 2 is a diagram illustrating an example of a functional configuration of a printing system according to an embodiment of the present invention. [Figure 4] FIG. 11 is a diagram showing an example of a terminal device control method by a second application according to an embodiment of the present invention. [Diagram 5] FIG. 11 is a diagram showing an example of a background operation according to the present embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0016] (First embodiment) DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described in detail below with reference to the drawings. Fig. 1 is a diagram showing an example of the configuration of a printing system PS according to this embodiment. The printing system PS includes a terminal device 1, a server 2, and a printer 3. The terminal device 1 reads a web application stored in the server 2, and generates print data in a web browser based on the execution result of the read web application. The terminal device 1 transmits the generated print data to the printer 3. The printer 3 executes printing of the print data received from the terminal device 1. As described above, the terminal device 1 communicates with an external device to cause the external device to perform an operation.

[0017] 2 is a diagram showing an example of a hardware configuration of the printing system PS according to the present embodiment. The terminal device 1 includes a communication unit 10, a display unit 11, an operation reception unit 12, a CPU (Central Processing Unit) 13, a ROM (Read Only Memory) 14, a RAM (Random Access Memory) 15, and a storage unit 16.

[0018] The communication unit 10 transmits and receives various information via the network. The terminal device 1 transmits and receives various information to and from the server 2 and the printer 3 via the communication unit 10. The communication unit 10 includes a communication interface (I / F) for communicating via the network. As an example, the communication unit 10 communicates with the printer 3 using a Universal Serial Bus (USB). The communication unit 10 may use short-range wireless communication such as Bluetooth Classic (registered trademark) or Bluetooth Low Energy (registered trademark) to communicate with the printer 3. The communication unit 10 may also use a wired or wireless Local Area Network (LAN) to communicate with the printer 3. The communication unit 10 may also use serial communication to communicate with the printer 3. The communication unit 10 may also use a type of communication other than the above-mentioned communication to communicate with the printer 3. The communication unit 10 uses, for example, a wireless LAN to communicate with the server 2. The communication unit 10 may use a type of communication other than a wireless LAN to communicate with the server 2.

[0019] The display unit 11 displays various types of information and includes, for example, a liquid crystal display or an organic electroluminescence (EL) display. The operation reception unit 12 receives various operations from a user. The operation reception unit 12 includes, for example, a touch panel. The touch panel included in the operation reception unit 12 may be integrated with a liquid crystal display included in the display unit 11. The operation reception unit 12 may include an operation button, a mouse, a keyboard, or the like.

[0020] CPU 13 reads programs from ROM 14 and executes various types of control in accordance with the read programs. CPU 13 has multiple built-in internal storage media such as registers. CPU 13 temporarily stores data from ROM 14 in the internal storage media and processes it. CPU 13 outputs the results of the calculations to the register, and further outputs the results from the register to RAM 14 or an external storage medium. ROM 14 is a main storage device that stores various programs, data, parameters, etc. for CPU 13 to perform various calculations and controls.

[0021] The storage unit 16 stores various types of information such as applications. The storage unit 16 is configured using a storage device such as a semiconductor storage device. The storage unit 16 may include a magnetic hard disk device. Storage unit 16 stores, for example, a web browser 160 and a relay application 161. Web browser 160 communicates with web application 20 provided in server 2 and displays the execution result of web application 20. For example, a program that runs on the web browser, such as JavaScript, is used on web browser 160 to run a POS (Point of Sale) program. A language other than JavaScript may be used for the program that runs on the web browser.

[0022] Note that, other than a web browser, for example, an application created by a user may be used as the first application 133. Also, various programs such as scripts, intermediate representations, and plug-ins may be used as the first application 133. These various programs may be included in web page data WP (described later) acquired (downloaded) from the server 2.

[0023] The relay application 161 converts the print data PD1 based on the HTTP protocol generated in the web browser 160 into a format that can be printed by the printer 3. The relay application 161 also performs background operations. In this embodiment, the background operations are operations that are performed at least while the first application 133 for causing the printer 3 to perform an operation is operating, and are operations regarding information transmitted from the printer 3 to the terminal device 1. In other words, in this embodiment, the background operations are operations or processes that are executed in the background while the first application 133 is operating in the multiple screen mode. The background operations are an example of the first operations.

[0024] The server 2 includes a web application 20. The server 2 also stores web page data 21 to be displayed in the web application 20.

[0025] FIG. 3 is a diagram showing an example of the functional configuration of the printing system PS according to the present embodiment. The terminal device 1 includes a display control unit 130, a screen mode switching unit 131, an operation information supply unit 132, a first application 133, and a second application 136. The display control unit 130, the screen mode switching unit 131, the operation information supply unit 132, the first application 133, and the second application 136 are each realized, for example, by the CPU 13 reading a program from the ROM 14 and / or the storage unit 16 and executing a process. The display control unit 130, the screen mode switching unit 131, and the operation information supply unit 132 are realized, for example, by being incorporated into an OS (Operating System) of the terminal device 1.

[0026] The display control unit 130 controls the display unit 11 . Screen mode switching unit 131 switches the mode of the screen displayed on display unit 11. There are a single screen mode and a multiple screen mode for the screen displayed on display unit 11. The single screen mode is a mode in which a screen by one application is displayed on display unit 11 and one application operates. The multiple screen mode is a mode in which screens by multiple applications are displayed on display unit 11 and the multiple applications operate in parallel. Screen mode switching unit 131 generates screen mode information indicating either the single screen mode or the multiple screen mode according to the result of switching the mode.

[0027] In the multiple screen mode, the display control unit 130 may, for example, divide the entire screen of the display unit 11 to display screens by multiple applications on each of the divided areas of the screen of the display unit 11.

[0028] The operation information supply unit 132 conveys to other functional units various operations received by the operation reception unit 12. The various operations received by the operation reception unit 12 are performed, for example, via a user interface in each application.

[0029] One example of the first application 133 is a web browser. The first application 133 is realized by the CPU 13 executing a web browser 160 stored in the storage unit 16. The first application 133 includes a web browser display unit 134, a print control unit 135, and a print data generation unit 143.

[0030] The web browser display unit 134 communicates with the web application 20 provided on the server 2, and displays the results of the execution of the web application 20. The print control unit 135 receives an operation in which a print button displayed on the web browser 160 is pressed by the user (the area on the touch panel where the print button is displayed is tapped). When the print control unit 135 receives an operation of pressing a print button displayed on the web browser 160, the print data generating unit 143 generates print data PD1.

[0031] The second application 136 is a relay application. The second application 136 is realized by the CPU 13 executing the relay application 161 stored in the storage unit 16. The second application 136 includes a print data acquisition unit 137, a print data conversion unit 138, a print data transmission unit 139, a printer status management unit 140, a screen mode information acquisition unit 141, and a switching unit 142.

[0032] The print data acquisition unit 137 acquires the print data PD1 from the first application 133. Here, the print data PD1 is exchanged between the first application 133 and the second application 136, for example, using a URL scheme. That is, the print data acquisition unit 137 acquires the print data PD1 from the first application 133 based on the URL scheme. Note that the print data PD1 may be exchanged between the first application 133 and the second application 136 as inter-process communication within the terminal device 1, or another method may be used.

[0033] Furthermore, the print data PD1 may not be supplied directly from the first application 133 to the second application 136, but may be supplied via the server 2. In this case, the print data PD1 is once output from the first application 133 to the server 2, and then converted as necessary, and the print data PD1 is supplied from the server 2 to the second application 136. In this case, the print data acquisition unit 137 acquires the print data PD1 or the converted print data PD2 from the server 2.

[0034] The print data conversion unit 138 converts the print data PD1 acquired by the print data acquisition unit 137 into a format that can be printed by the printer 3. The print data transmission unit 139 transmits the print data PD2 obtained by conversion by the print data conversion unit 138 to the printer 3.

[0035] Note that the second application 136 may transmit the print data PD1 acquired from the first application 133 to the printer 3 without converting it. In this case, the print data acquisition unit 137 supplies the print data PD1 acquired from the first application 133 to the print data transmission unit 139. The print data transmission unit 139 transmits the print data PD1 supplied from the print data acquisition unit 137 to the printer 3.

[0036] The printer status management unit 140 operates in the background. In this embodiment, the printer status management unit 140 performs a polling process on the printer 3 as an example of the background operation.

[0037] The screen mode information acquisition unit 141 acquires the screen mode information from the screen mode switching unit 131 . When the screen mode information indicates the multi-screen mode, the switching unit 142 switches the operation of the printer status management unit 140 between enabled and disabled.

[0038] The server 2 supplies the web page data WP to the terminal device 1. Here, in response to a request from the web browser display unit 134 of the terminal device 1, the server 2 supplies the web page data WP from among the web page data 21 to the web browser display unit 134 of the terminal device 1.

[0039] The printer 3 receives the print data PD2 sent from the terminal device 1 and executes printing based on the received print data PD2. The printer 3 receives the print data PD2 in a protocol corresponding to the communication standard of the printer 3 from the terminal device 1. Therefore, the printing system PS does not need to be configured to support HTTP by, for example, providing an HTTP server. Furthermore, if an error occurs in the process of receiving the print data PD2 or in the process of printing the print data PD2, the printer 3 notifies the terminal device 1 of the occurrence of the error together with the content of the error.

[0040] Here, the details of the terminal device control method by the second application 136 will be described with reference to Fig. 4 and Fig. 5. Fig. 4 is a diagram showing an example of the terminal device control method by the second application 136 according to this embodiment.

[0041] Step S10 (screen mode information acquisition step): The screen mode information acquisition unit 141 acquires screen mode information from the screen mode switching unit 131. When the screen mode switching unit 131 switches the screen mode, the switched screen mode information is supplied from the screen mode switching unit 131 to the screen mode information acquisition unit 141. The screen mode information acquisition unit 141 supplies the acquired screen mode information to the switching unit 142.

[0042] Step S20 (switching step): The switching unit 142 determines whether the screen mode is the multiple screen mode. The switching unit 142 makes the determination based on the screen mode information acquired by the screen mode information acquisition unit 141. When the switching unit 142 determines that the screen mode is the multiple screen mode (step S20; YES), the switching unit 142 switches to enable background operation (step S30). On the other hand, when the switching unit 142 determines that the screen mode is the single screen mode (step S20; NO), the second application 136 executes the process of step S40.

[0043] In the present embodiment, an example has been described in which in steps S20 and 30, switching unit 142 determines whether or not the screen mode is the multi-screen mode based on screen mode information supplied from screen mode information acquisition unit 141. That is, in the present embodiment, an example has been described in which second application 136 automatically detects the screen mode using information from the OS, but the present embodiment is not limited to this. A user may perform an operation on a user interface of second application 136 to switch between enabling and disabling background operation, and switching unit 142 may switch between enabling and disabling of polling processing based on the operation. The operation is supplied from operation information supply unit 132 to switching unit 142. In this case, second application 136 may determine the screen mode based on screen mode information supplied from screen mode information acquisition unit 141, and if the screen mode is the single screen mode, the operation of switching between enabling and disabling background operation from the user interface may be disabled.

[0044] Furthermore, the switching unit 142 may switch between enabled and disabled for the background operation based on a command by communication from the first application 133. In this case, when the second application 136 determines the screen mode based on the screen mode information supplied from the screen mode information acquisition unit 141 to be the single screen mode, if the switching unit 142 receives a command to enable the background operation from the first application 133, for example, the switching unit 142 displays an error. Alternatively, if the switching unit 142 receives a command to enable the background operation from the first application 133 in the single screen mode, the switching unit 142 may notify the first application 133 that the background operation cannot be enabled because of the single screen mode.

[0045] Step S40: The printer status management unit 140 determines whether the background operation is enabled. The printer status management unit 140 makes the determination based on the result of the switching by the switching unit 142. When the printer status management unit 140 determines that the background operation is enabled (step S40; YES), it executes the background operation (step S90). That is, the printer status management unit 140 executes the background operation when the switching unit 142 has switched to enable the background operation. Step S90 is an example of a first operation execution step. After executing the background operation, the second application 136 executes the process of step 50.

[0046] On the other hand, if the printer status management unit 140 determines that the background operation is not enabled (step S40; NO), the printer status management unit 140 does not execute the background operation, and the second application 136 executes the process of step S50.

[0047] When the printer status management unit 140 determines that the background operation is not enabled, it may notify the first application 133 that the background operation is not enabled. When the background operation is disabled, the first application 133 may perform processing appropriate to the case. In other words, the operation of the first application 133 may differ depending on whether the background operation of the second application 136 is enabled or disabled.

[0048] Step S50: The print data acquisition unit 137 determines whether or not print data PD1 has been acquired from the first application 133. When the print data generation unit 143 generates the print data PD1, it supplies the generated print data PD1 to the print data acquisition unit 137. When the print data PD1 is supplied from the print data generation unit 143, the print data acquisition unit 137 acquires the print data PD1. When the print data acquisition unit 137 determines that it has acquired the print data PD1 (step S50; YES), it supplies the acquired print data PD1 to the print data conversion unit 138. On the other hand, when the print data acquisition unit 137 determines that it has not acquired the print data PD1 (step S50; NO), it executes the process of step S40 again.

[0049] Step S60: The print data conversion unit 138 converts the print data PD1 acquired by the print data acquisition unit 137 into a format that can be printed by the printer 3. Here, the print data conversion unit 138 converts the print data PD1 based on the HTTP protocol generated in the first application 133, which is a web browser, into print data PD2 of a protocol corresponding to the communication standard of the printer 3. The print data conversion unit 138 generates the print data PD2 as a result of the conversion.

[0050] Step S70: The print data transmission unit 139 transmits the print data PD2 obtained by conversion by the print data conversion unit 138 to the printer 3 via the communication unit 10.

[0051] Step S80: The second application 136 determines whether or not the end condition is satisfied. The end condition is, for example, that the user performs an operation to end the second application 136, and that operation is transmitted from the operation information supply unit 132 to the second application 136. If the second application 136 determines that the end condition is satisfied (step S80; YES), it ends the process. On the other hand, if the second application 136 determines that the end condition is not satisfied (step S80; NO), it executes the process of step S40 again.

[0052] Here, the background operation shown in step S90 will be described in detail with reference to Fig. 5. As described above, in this embodiment, the printer status management unit 140 performs a polling process on the printer 3 as a background operation. The polling process includes, for example, a process of monitoring the connection status of the printer 3, a process of monitoring an error status of the printer 3, a process of monitoring various data transmitted from the printer 3, and a process when a change in the status of the printer 3 is detected.

[0053] In the process of monitoring the connection status of the printer 3, the connection status of the communication between the terminal device 1 and the printer 3 is detected in the terminal device 1. In the process of monitoring the error status of the printer 3, status data transmitted from the printer 3 when an error occurs in the printer 3 is detected. In the process of monitoring various data transmitted from the printer 3, response data to various commands transmitted to the printer 3, or data transmitted from a peripheral device or accessory connected to the printer 3 via the printer 3 is detected. In the process of detecting a change in the status of the printer 3, the detected change is notified to the first application 133, the detected change is displayed on the web browser of the second application 136, or the operation when the print data PD1 is subsequently obtained from the first application 133 is changed based on the detected change. For example, when it is detected that the server 2 is in an error state, the printer status management unit 140 notifies the first application 133 of the error.

[0054] 5 is a diagram showing an example of a background operation according to the present embodiment. Each process of step S110, step S120, and step S130 shown in FIG. 5 is executed as the background operation of step S90 shown in FIG.

[0055] Step S110: The printer status management unit 140 acquires printer status information from the communication unit 10. The printer status information is information that indicates the status of the printer 3. The printer status information is generated and updated by the communication unit 10. For example, when the terminal device 1 receives new data such as an error message from the printer 3, information indicating that the data has been received is added to the printer status information by the communication unit 10. Alternatively, when communication between the terminal device 1 and the printer 3 is disconnected, information indicating that communication has been disconnected is added to the printer status information by the communication unit 10. Note that instead of adding the newly received data from the printer 3 to the printer status information, the printer status information may be updated by the data.

[0056] Step S120: The printer status management unit 140 determines whether the status of the printer 3 has changed. The printer status management unit 140 makes this determination based on the printer status information acquired from the communication unit 10. If the printer status management unit 140 determines that the status of the printer 3 has changed (Step S120; YES), it executes the process of Step 30. On the other hand, if the printer status management unit 140 determines that the status of the printer 3 has not changed (Step S120; NO), it ends the background operation.

[0057] Step S130: The printer status management unit 140 notifies the first application 133 of the change in the status of the printer 3. For example, the printer status management unit 140 notifies the first application 133 of an error message received from the printer 3. Alternatively, the printer status management unit 140 may display the change in the status of the printer 3 on the second application 136. In this case, the printer status management unit 140 causes the display unit 11 to display, for example, an error message received from the printer 3 via the display control unit 130. Thereafter, the printer status management unit 140 ends the background operation.

[0058] As described above, the printer status management unit 140 outputs information such as an error message received from the printer 3 to the first application 133. This operation by the printer status management unit 140 is an example of a received information output step. The first application 133 may monitor the status of the printer 3 based on the notified information such as an error message.

[0059] The process when it is determined that the background operation is valid is not limited to the process described above. For example, the printer status management unit 140 may execute an operation similar to the polling process described above as a background operation, as an event process. Alternatively, the printer status management unit 140 may execute a combination of the polling process and the event process as a background operation.

[0060] Furthermore, as a process when it is determined that the background operation is enabled, for example, the following process may be executed. For example, in communication that switches between a connected state and a disconnected state, such as TCP / IP communication or Bluetooth (registered trademark), when the second application 136 determines that the background operation is enabled, it maintains the communication with the printer 3 without disconnecting it, and performs the background operation. On the other hand, when the second application 136 determines that the background operation is disabled, upon acquiring the print data PD1 from the first application 133, it establishes a connection for communication with the printer 3, transmits the print data PD2 to the printer 3, and then disconnects the communication with the printer 3. This process makes it possible to reduce the power consumption associated with communication with the printer 3 when it is determined that the background operation is disabled.

[0061] That is, the second application 136 responds differently to the operation by the first application 133 when the background operation is enabled by the switching unit 142 and when the background operation is disabled by the switching unit 142. This operation of the second application 136 is an example of a response step.

[0062] The second application 136 may notify the user that background operation will stop if the screen mode is switched. In the case where background operation will stop if the screen mode is switched from the multiple screen mode to the single screen mode by the user, the second application 136 may display an alert (text such as "Maintain multiple screen mode, do not switch to single screen mode") on the display unit 11 for a predetermined time immediately after the second application 136 is started. Alternatively, the second application 136 may continue to display the alert on the display unit 11 while the second application 136 is running.

[0063] That is, the second application 136 may perform a notification regarding the mode of the screen of the display unit 11 of the terminal device 1. This operation by the second application 136 is an example of a notification step.

[0064] In addition, in the terminal device 1, if the second application 136 can operate for a predetermined time after the screen mode is switched to the single-screen mode, an alert urging the user to return the screen mode to the multiple-screen mode may be displayed on the display unit 11 for the predetermined time.

[0065] As described above, the terminal device control method according to the present embodiment includes a screen mode information obtaining step, a switching step, and a first operation executing step. In a screen mode information acquisition step (step S10 in this embodiment), the second application 136 acquires screen mode information indicating either a single-screen mode in which one application runs on the screen (display unit 11 in this embodiment) of the terminal device 1 that communicates with an external device (printer 3 in this embodiment) and causes the external device (printer 3 in this embodiment) to operate, or a multiple-screen mode in which multiple applications run in parallel. In a switching step (step S30 in this embodiment), when the screen mode information acquired in the screen mode information acquisition step (step S10 in this embodiment) indicates the multi-screen mode, the second application 136 switches between enabling and disabling a first operation (a background operation in this embodiment), which is an operation that is performed at least while the first application 133 for causing an external device (printer 3 in this embodiment) to perform an operation is operating, and is an operation regarding information transmitted from the external device (printer 3 in this embodiment) to the terminal device 1. In a first operation execution step (in this embodiment, step S90), the second application 136 executes the first operation (in this embodiment, background operation) if the first operation (in this embodiment, background operation) has been switched to be enabled in the switching step (in this embodiment, step S30).

[0066] With this configuration, in the terminal device control method according to this embodiment, it is possible to switch between enabling and disabling the first operation (in this embodiment, a background operation), which is an operation on information transmitted from an external device (in this embodiment, the printer 3) to the terminal device 1, according to the screen mode of the terminal device 1, so that while the first application 133 for causing the external device (in this embodiment, the printer 3) to perform an operation is running, the first operation (in this embodiment, a background operation) can be executed simultaneously according to the screen mode of the terminal device 1. In the terminal device control method according to this embodiment, it is possible to provide a user who creates the first application 133 with a more sophisticated operation, that is, the first operation (in this embodiment, a background operation).

[0067] The terminal device control method according to this embodiment can realize functions that require background operations in the multi-screen mode, such as constantly monitoring the connection status of the printer 3, constantly monitoring the error status of the printer 3, or constantly monitoring data sent from the printer 3. For example, it can realize the acquisition of response data to a sent command, and the monitoring of data acquired from a device connected to the printer, such as a barcode scanner.

[0068] In the terminal device control method of this embodiment, the terminal device 1 can communicate bidirectionally with an external device (in this embodiment, printer 3) through a first operation (in this embodiment, a background operation) which is an operation on information transmitted from an external device (in this embodiment, printer 3) to the terminal device 1, without stopping the operation of a first application 133 for causing the external device (in this embodiment, printer 3) to perform an operation. In addition, since the second application 136 is switched when the first operation (in this embodiment, background operation) is enabled by the switching step, it can also operate on a terminal device (e.g., iPhone (registered trademark)) that only has a single screen mode.

[0069] Moreover, the terminal device control method according to this embodiment may further include a received information output step. In the received information output step, the second application 136 outputs to the first application 133 the information (in this embodiment, an error message, etc.) received from the external device (in this embodiment, the printer 3). With this configuration, in the terminal device control method according to the present embodiment, information received from an external device (such as an error message in this embodiment) can be output to the first application 133, so that the state of the terminal device 1 can be monitored by the first application 133. Therefore, the terminal device control method according to the present embodiment is preferably used when the first application 133 is a POS application.

[0070] The terminal device control method according to the present embodiment may further include a response step, in which the second application 136 responds differently to the operation by the first application 133 depending on whether the first operation (background operation in the present embodiment) is switched to be enabled by the switching step (step S30 in the present embodiment) or whether the first operation (background operation in the present embodiment) is switched to be disabled. With this configuration, in the terminal device control method of this embodiment, unnecessary operations can be omitted when the first operation is invalid for the operation by the first application 133, thereby improving the efficiency of operations compared to a case where the same response is made to the operation by the first application 133 regardless of whether the first operation is valid or invalid.

[0071] The terminal device control method according to the present embodiment may further include a notification step in which the second application 136 performs a notification regarding the mode of the screen of the terminal device 1 (in the present embodiment, a display provided in the display unit 11). With this configuration, the terminal device control method of this embodiment can notify the user to maintain the screen mode of the terminal device 1 in multi-screen mode, thereby preventing the screen mode from being switched from multi-screen mode when the first operation is performed.

[0072] In the above embodiment, an example has been described in which a POS program runs in the first application 133, which is the web browser 160, but the present invention is not limited to this. In the first application 133, a cash register application, an inventory management application for logistics or the like, an ATM application, an unmanned terminal application, a meter reading business application, or the like may run.

[0073] In the above embodiment, an example of the printing system PS including the terminal device 1 and the printer 3 has been described, but the present invention is not limited to this. The control system may include an external device and a terminal device that communicates with the external device to cause the external device to perform an operation. For example, in the control system (printing system PS) of the above embodiment, a customer display, a barcode scanner, or a cash drawer may be provided instead of the printer 3.

[0074] In addition, a part of the terminal device 1 in the above-mentioned embodiment, for example, the printer status management unit 140, the screen mode information acquisition unit 141, and the switching unit 142, may be realized by a computer. In that case, a program for realizing this control function may be recorded in a computer-readable recording medium, and the program recorded in the recording medium may be read into a computer system and executed to realize the control function. In addition, the "computer system" here refers to a computer system built into the terminal device 1, and includes hardware such as an OS and peripheral devices. In addition, the "computer-readable recording medium" refers to a portable medium such as a flexible disk, an optical magnetic disk, a ROM, a CD-ROM, and a storage device such as a hard disk built into the computer system. Furthermore, the "computer-readable recording medium" may also include a medium that dynamically holds a program for a short time, such as a communication line when a program is transmitted via a network such as the Internet or a communication line such as a telephone line, and a medium that holds a program for a certain period of time, such as a volatile memory inside a computer system that is a server or client in that case. In addition, the above-mentioned program may be a program for realizing a part of the above-mentioned function, and may further be a program that can realize the above-mentioned function in combination with a program already recorded in the computer system. In addition, a part or all of the terminal device 1 in the above-mentioned embodiment may be realized as an integrated circuit such as an LSI (Large Scale Integration). Each functional block of the terminal device 1 may be individually made into a processor, or a part or all of the functional blocks may be integrated into a processor. The integrated circuit method is not limited to LSI, and may be realized by a dedicated circuit or a general-purpose processor. In addition, when an integrated circuit technology that replaces LSI appears due to the progress of semiconductor technology, an integrated circuit based on that technology may be used.

[0075] Although one embodiment of the present invention has been described in detail above with reference to the drawings, the specific configuration is not limited to the above, and various design changes, etc. are possible within the scope that does not deviate from the gist of the present invention. [Explanation of symbols]

[0076] 1... terminal device, 2... server, 3... printer, 11... display unit, 133... first application, 136... second application, 140... printer status management unit, 141... screen mode information acquisition unit, 142... switching unit

Claims

1. a screen mode information acquisition step of acquiring screen mode information indicating either a single screen mode in which one application runs on a screen of a terminal device that communicates with an external device to cause the external device to perform an operation, or a multiple screen mode in which a plurality of applications run in parallel; a switching step of switching whether a first operation, which is an operation performed at least during a period when a first application for causing the external device to perform an operation is running and is an operation regarding information transmitted from the external device to the terminal device, according to the screen mode when the screen mode information acquired by the screen mode information acquisition step indicates the multiple screen mode, is enabled or disabled in accordance with the screen mode; a first operation execution step of executing the first operation when the first operation is switched to be enabled by the switching step; a response step of performing a different response to the operation by the first application when the first operation has been switched to be enabled by the switching step and when the first operation has been switched to be disabled by the switching step; A terminal device control method comprising the steps of:

2. a received information output step of outputting the information received from the external device to the first application The terminal device control method according to claim 1 , further comprising:

3. A notification step of notifying a mode of the screen of the terminal device.

3. The terminal device control method according to claim 1, further comprising:

4. a screen mode information acquisition unit that acquires screen mode information indicating either a single screen mode in which one application runs on a screen of a terminal device that communicates with an external device to cause the external device to perform an operation, or a multiple screen mode in which a plurality of applications run in parallel; a switching unit that switches between enabling and disabling a first operation, which is an operation that is performed at least during a period when a first application for causing the external device to perform an operation is running, and is an operation regarding information transmitted from the external device to the terminal device, in accordance with the screen mode when the screen mode information acquired by the screen mode information acquisition unit indicates the multiple screen mode; and a first operation execution unit that executes the first operation when the first operation is switched to be enabled by the switching unit; a response execution unit that executes a different response to the operation by the first application when the first operation is switched to be enabled and when the first operation is switched to be disabled in the switching step; A terminal device comprising:

5. On the computer, a screen mode information acquisition step of acquiring screen mode information indicating either a single screen mode in which one application runs on a screen of a terminal device that communicates with an external device to cause the external device to perform an operation, or a multiple screen mode in which a plurality of applications run in parallel; a switching step of switching whether a first operation, which is an operation performed at least during a period when a first application for causing the external device to perform an operation is running and is an operation regarding information transmitted from the external device to the terminal device, according to the screen mode when the screen mode information acquired by the screen mode information acquisition step indicates the multiple screen mode, is enabled or disabled in accordance with the screen mode; a first operation execution step of executing the first operation when the first operation is switched to be enabled by the switching step; a response step of performing a different response to the operation by the first application when the first operation is switched to be enabled by the switching step and when the first operation is switched to be disabled by the switching step; A program for executing the above.

Citation Information

Patent Citations

  • Automatic unnecessary window end system

    JP1998069366A

  • Image processing apparatus, control method thereof, and program

    JP2007243923A

  • Data transmission system and program for data transmission

    JP2014139718A

  • Information processing apparatus, display control method and program, and reading system

    JP2015060400A

  • Printer program, terminal, and method of controlling terminal

    JP2019117531A