Program, information processing apparatus, and method for controlling information processing apparatus
Patent Information
- Application Number
- JP2021161331
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2021-09-30
- Publication Date
- 2024-10-16
- Estimated Expiration
- 2041-09-30
AI Technical Summary
Toast displays in UIs automatically disappear after a certain time, leading to reduced visibility for users when the number of characters to be displayed is large.
A program that installs in an information processing device to control UI display, allowing for automatic closure of character strings less than a threshold value, or dividing and sequentially displaying character strings when the threshold is exceeded.
Ensures user visibility even with large amounts of displayed characters by preventing premature disappearance of UI elements.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
Technical Field
[0006] ,
[0001] This disclosure relates to a technology for displaying a UI.
Background Art
[0002] As a UI display in a smartphone, there is a UI display called Toast display. The Toast display is a notification area displayed on the frontmost surface of the smartphone screen. Incidentally, the Toast display is also simply called Toast.
[0003] Toast automatically disappears after a certain period of time. Also, even while Toast is being displayed, by operating an area other than Toast, it is possible to execute an operation on the screen displayed behind Toast, so the interference with user operations can be minimized. Also, since the function of displaying Toast is a function of the OS, when displaying Toast, a request for displaying Toast is sent to the OS together with the content of the message to be included in Toast. Thereby, Toast display is realized.
Prior Art Documents
Patent Documents
[0004]
Patent Document 1
Summary of the Invention
Problems to be Solved by the Invention
[0005] As described in Patent Document 1, Toast display can provide an excellent user experience (UX) that other display UIs such as other Dialog displays do not have. However, on the other hand, due to the nature of automatically disappearing after a certain period of time, when the number of characters to be displayed on Toast is large, for example, the visibility may deteriorate, such as the Toast display disappearing before the user finishes reading the characters.
[0006] Therefore, the present invention aims to provide a UI display that ensures visibility to the user even when there are many characters to display. [Means for solving the problem]
[0007] One embodiment of the present invention is a program installed in an information processing device that communicates with a communication device, which causes the CPU of the information processing device to function as a display control means for displaying a pop-up that closes automatically without user operation, wherein the display control means is characterized in that, if the unique value of the displayed string is less than a first threshold, the string is displayed as a pop-up, and if the unique value is equal to or greater than the first threshold, the string is divided and the divided strings are sequentially displayed as pop-ups. [Effects of the Invention]
[0008] According to one embodiment of the present invention, it becomes possible to provide a UI display that ensures visibility to the user even when there are many characters to display. [Brief explanation of the drawing]
[0009] [Figure 1] Block diagram of a communication system [Figure 2] Flowchart of the pairing process performed by the information processing device [Figure 3] Screen displayed when launching a printing application [Figure 4] An example of the Bluetooth settings screen displayed by the settings app. [Figure 5] PIN code display screen shown on the display unit of the communication device [Figure 6] The BT settings screen displayed by the settings app and the Toast displayed by the printing app. [Figure 7] This screen shows the user's operating procedures on the BT settings screen and the name of the communication device to be selected on the BT settings screen. [Figure 8] A diagram illustrating the process of broadcasting advertisement information and receiving connection request information. [Figure 9] A diagram to explain advertising in BLE. [Figure 10] Diagram showing the structure of advertising information [Figure 11] Flowchart of UI display processing in the first embodiment [Figure 12] UI display of Toast as a result of the first embodiment [Figure 13] Flowchart of UI display processing in the second embodiment [Modes for carrying out the invention]
[0010] The embodiments of this disclosure will be described in detail below. Note that the following embodiments are illustrative examples for illustrating the technology of this disclosure and are not intended to limit the present invention to the following. Furthermore, the present invention can be modified in various ways without departing from its essence.
[0011] [First Embodiment] <System Configuration> The communication system in this embodiment will now be described. This communication system comprises an information processing device and a communication device. In the following embodiment, a smartphone is assumed as the information processing device, but the information processing device is not limited to a smartphone. Various devices can be used as the information processing device, such as a mobile terminal, notebook PC, tablet terminal, PDA (Personal Digital Assistant), digital camera, etc.
[0012] In the following embodiments, a printer is assumed as the communication device, but the communication device is not limited to a printer. Any device capable of performing wireless communication with an information processing device can be adopted. For example, if it is a printer, an inkjet printer, a full-color laser beam printer, a monochrome printer, etc. can be adopted. Further, not only printers, but also copiers, facsimile devices, mobile terminals, smartphones, notebook PCs, tablet terminals, PDAs, digital cameras, music playback devices, televisions, etc. can be adopted. Furthermore, a multi-function device having a plurality of functions such as a copying function, a FAX function, a printing function, etc. can also be adopted.
[0013] First, the configuration of the communication system in this embodiment will be described with reference to FIG. 1. As shown in FIG. 1, the communication system includes an information processing device 101 and a communication device 151.
[0014] The information processing device 101 includes an input interface 102, a CPU 103, a ROM 104, a RAM 105, an external storage device 106, an output interface 107, a communication unit 111, and a short-range communication unit 112. Further, a display unit 108 is connected to the information processing device 101. Note that in FIG. 1, the information processing device 101 and the display unit 108 are shown in a separate form, but the information processing device 101 may have the display unit 108.
[0015] The input interface 102 is an interface for receiving data input and operation instructions from the user when a mouse 110 or a keyboard 109 is operated.
[0016] The CPU 103 is a system control unit that controls each part of the information processing device 101 and controls the overall operation of the information processing device 101.
[0017] ROM 104 stores fixed data such as control programs executed by CPU 103, data tables, and embedded operating system (hereinafter referred to as OS) programs. In this embodiment, each control program stored in ROM 104 performs software execution control such as scheduling, task switching, and interrupt handling under the management of the embedded OS stored in ROM 104. In this embodiment, the OS of the information processing device 101 is assumed to be Android®. However, it is not limited to this form, and other OSs such as iOS®, macOS®, and Linux® may also be used.
[0018] In this embodiment, the OS of the information processing device 101 has a notification function for displaying various information on the display unit 108 and notifying the user of various information. In this embodiment, the notification function includes a Toast function. Each notification function is executed by the OS when an application program requests a notification from the OS using that notification function. The content notified (displayed in the notification area) by each notification function can be arbitrarily determined by the application program. When a notification is requested from the OS using each notification function, the content is also notified to the OS.
[0019] The Toast function displays a notification area called a Toast. A Toast is a notification area that pops up and then disappears after a certain period of time. There is no limit to the size of the Toast, but it is preferable that it be sized to correspond to a portion of the display area so that it does not completely cover the screen of the application program displayed below it. Even if user interaction is received via the Toast, no processing corresponding to the notification area is performed. Processing corresponding to the notification area includes, for example, launching the application program that requested the notification, processing based on the message notified by the notification area, and processing in response to buttons displayed in the notification area. Furthermore, even when a Toast is displayed, the screen of the application program displayed below the Toast can still accept user interaction. In addition, notifications via the Toast function can be executed even if the application program that requested the notification is not running in the foreground (running in the background) and another application program is running in the foreground.
[0020] Furthermore, the notification functions provided by the OS may include features other than Toast. Specifically, for example, they may include Notification, SnackBar, and Dialog functions.
[0021] The Notification function displays a notification area called a Notification. A Notification is a notification area that appears via push notifications, etc., and disappears when the user acknowledges the notification. When a user action is received in response to a Notification, the corresponding process is executed. Notifications issued by the Notification function can be executed even if the application program that requested the notification is not running in the foreground (running in the background) and another application program is running in the foreground.
[0022] The SnackBar feature displays a notification area called a SnackBar. The SnackBar is a notification area that disappears after a certain period of time has elapsed since it was displayed. Whether or not the corresponding process is executed when user interaction is received via the SnackBar can be arbitrarily configured by the application program that requested the notification via the SnackBar feature. Notifications via the SnackBar feature cannot be executed if the application program that requested the notification is not running in the foreground (running in the background) and another application program is running in the foreground. In other words, notifications via the SnackBar feature can only be executed when the application program that requested the notification via the SnackBar feature is running in the foreground.
[0023] The Dialog feature displays a notification area called a Dialog. The Dialog is a notification area that disappears after the user confirms the notification. Specifically, the Dialog may display buttons, and the Dialog disappears when the user operates on one of these buttons. The application program that requested the notification then executes the corresponding process for the button that was clicked. Notifications via the Dialog feature cannot be executed if the application program that requested the notification is not running in the foreground (it is running in the background) and other application programs are running in the foreground. In other words, notifications via the Dialog feature can only be executed when the application program that requested the notification is running in the foreground.
[0024] RAM105 consists of SRAM (Static Random Access Memory) and other components that require a backup power supply. Since RAM105 retains data using a primary battery (not shown) for data backup, it can store important data such as program control variables without losing them. RAM105 also includes a memory area for storing configuration information and management data for the information processing device 101. Furthermore, RAM105 is used as both the main memory and work memory for the CPU 103.
[0025] The external storage device 106 stores application programs that provide print execution functions, print job creation programs that create print jobs that can be interpreted by the communication device 151, and the like. The external storage device 106 also stores various programs, such as information transmission and reception control programs that are transmitted and received with the communication device 151 connected via the communication unit 111, as well as various information used by these programs.
[0026] The output interface 107 is an interface that controls the display unit 108 to display data-based content and to notify the status of the information processing device 101.
[0027] The display unit 108 consists of LEDs (light-emitting diodes), LCDs (liquid crystal displays), etc., and displays data and notifies the status of the information processing device 101. Alternatively, operation buttons such as numerical input keys, mode setting keys, select keys, cancel keys, and power keys may be installed on the display unit 108 to accept user input via the display unit 108.
[0028] The communication unit 111 is a component for performing data communication by connecting to the communication device 151, or to an external access point (not shown) located outside both the information processing device 101 and the communication device 151. For example, the communication unit 111 can connect to an access point (not shown) within the communication device 151. By connecting the communication unit 111 to the access point within the communication device 151, the information processing device 101 and the communication device 151 become able to communicate with each other. The communication unit 111 may communicate directly with the communication device 151 via wireless communication, or it may communicate with the communication device 151 via an external device located outside the information processing device 101 or the communication device 151. The external device includes an external access point and a device other than an access point that can relay communication. Examples of wireless communication methods include Wi-Fi (WirelessFidelity) (registered trademark) and Bluetooth (registered trademark). Examples of external access points include devices such as wireless LAN routers. In this embodiment, the method by which the information processing device 101 and the communication device 151 are directly connected without going through an external access point is called the direct connection method. The method by which the information processing device 101 and the communication device 151 are connected via an external access point is called the infrastructure connection method.
[0029] The short-range communication unit 112 is a component for wirelessly connecting to a device such as the communication device 151 at a short distance and performing data communication, and communicates using a different communication method than the communication unit 111. The short-range communication unit 112 can connect to, for example, the short-range communication unit 157 in the communication device 151. Examples of communication methods include Bluetooth® and WiFi Aware. In this embodiment, the short-range communication unit 112 is capable of performing communication using Bluetooth Low Energy (BLE) and Bluetooth Classic as Bluetooth functions.
[0030] In this embodiment, the communication unit 111 is capable of faster communication than the short-range communication unit 112. Furthermore, the communication distance covered by the communication unit 111 is longer than the communication distance covered by the short-range communication unit 112.
[0031] The communication device 151 includes a ROM 152, a RAM 153, a CPU 154, a print engine 155, a communication unit 156, and a short-range communication unit 157.
[0032] The communication unit 156 has an access point within the communication device 151 for connecting to devices such as the information processing device 101. This access point can be connected to the communication unit 111 of the information processing device 101. The communication unit 156 may communicate directly with the information processing device 101 via wireless communication, or it may communicate with the information processing device 101 via an external access point. Examples of communication methods include Wi-Fi (registered trademark) and Bluetooth (registered trademark). Furthermore, the communication unit 156 may have hardware that functions as an access point, or it may operate as an access point through software that enables it to function as an access point.
[0033] The short-range communication unit 157 is a component for performing data communication by wirelessly connecting to a device such as the information processing device 101 at a short distance. For example, it can connect to the short-range communication unit 112 within the information processing device 101. Examples of communication methods include Bluetooth and WiFi Aware. In this embodiment, the short-range communication unit 157 is capable of performing communication using BLE and Bluetooth Classic as its Bluetooth function.
[0034] In this embodiment, the communication unit 156 is capable of faster communication than the short-range communication unit 157. Furthermore, the communication distance covered by the communication unit 156 is longer than the communication distance covered by the short-range communication unit 157.
[0035] RAM 153 is composed of SRAM and other components that require a backup power supply. Furthermore, since data in RAM 153 is maintained by a primary battery for data backup (not shown), important data such as program control variables can be stored without being lost. RAM 153 also includes a memory area for storing setting information and management data for the communication device 151. In addition, RAM 153 is used as the main memory and work memory of the CPU 154, functioning as a receive buffer for temporarily storing print information received from the information processing device 101, etc., and various types of information are stored there.
[0036] ROM152 stores fixed data such as control programs executed by CPU154, data tables, and OS programs. In this embodiment, each control program stored in ROM152 performs software execution control such as scheduling, task switching, and interrupt handling under the management of the embedded OS also stored in ROM152.
[0037] The CPU 154 is the system control unit, which controls each part of the communication device 151 and controls the overall operation of the communication device 151.
[0038] The print engine 155 performs image formation processing to form an image on a recording medium such as paper by adding a recording material such as ink to the recording medium, based on information stored in the RAM 153 or print jobs received from the information processing device 101, and outputs the print result. A print job is a job that causes the communication device 151 to perform image formation processing. When performing image formation processing based on a print job, the print job transmitted from the information processing device 101, etc., has a large amount of data and requires high-speed communication, so the print job is received via the communication unit 156, which can communicate at a higher speed than the short-range communication unit 157.
[0039] Furthermore, the communication device 151 may be equipped with an external HDD or SD card as an optional memory device, and the information stored in the communication device 151 may be stored in the equipped memory.
[0040] Furthermore, the communication device of this embodiment has a connection mode set by a connection setting process, and communicates with the information processing device according to the connection configuration based on the set connection mode. For example, when the communication device of this embodiment communicates via infrastructure connection, the infrastructure connection mode is set as the connection mode, and when it communicates via direct connection, the direct connection mode is set as the connection mode.
[0041] Here, the division of processing between the information processing device 101 and the communication device 151 is shown as an example, but other configurations are also acceptable, not limited to the one shown here.
[0042] Furthermore, in this embodiment, the short-range communication unit 112 and the short-range communication unit 157 will be described as communicating via BLE. In this embodiment, the short-range communication unit 157 functions as an advertiser (or slave) that broadcasts the advertisement information described later, and the short-range communication unit 112 functions as a scanner (or master) that receives the advertisement information. Also, the communication unit 111 and the communication unit 156 will be described as communicating via wireless LAN (Wi-Fi). Now, using Figure 8, the process of transmitting advertisement information and receiving BLE connection requests in the BLE standard will be explained. In this embodiment, as described above, the short-range communication unit 157 operates as a slave device, so the short-range communication unit 157 will perform the above processing.
[0043] The short-range communication unit 157 divides the 2.4GHz frequency band into 40 channels (0-39ch) according to the BLE communication method for communication. The short-range communication unit 157 uses channels 37-39 for transmitting advertisement information and receiving BLE connection requests, and channels 0-36 for data communication (GATT communication, etc.) after BLE connection. In Figure 8, the vertical axis represents the power consumption of the short-range communication unit 157, and the horizontal axis represents time, showing the power consumption for each process when transmitting advertisement information using one channel. Tx805 represents the total power consumption in the transmission process, which is the process of broadcasting advertisement information, and Rx806 represents the total power consumption in the reception process, which is the process of enabling the receiver for receiving BLE connection requests. Transmission power 802 represents the instantaneous power consumption due to the transmission process. Received power 803 represents the instantaneous power consumption due to the reception process. Microcontroller operating power 801 represents the instantaneous power consumption when the microcontroller in the short-range communication unit 157 is operating. Furthermore, the microcontroller operates before, during, and between Tx805 and Rx806 because it needs to be started beforehand in order to execute and stop the transmission and reception processes. Also, when transmitting advertisement information on multiple channels, the power consumption increases by the number of channels on which the advertisement information is transmitted. In addition, when the microcontroller is not operating and the short-range communication unit 157 is in a power-saving state, the sleep power 804 becomes the instantaneous power consumption of the short-range communication unit 157. In this way, after performing transmission processing using a predetermined channel, the short-range communication unit 157 performs reception processing using the same channel for a certain period of time, waiting for a BLE connection request to be sent from the information processing device 101. When the short-range communication unit 157 receives a BLE connection request from the information processing device 101, it establishes a BLE connection and performs GATT communication with the information processing device 101.
[0044] Furthermore, as shown in Figure 9, the short-range communication unit 157 repeats the transmission and reception of advertisement information three times for each channel, then stops the operation of the microcontroller and enters a power-saving state for a certain period of time. Hereinafter, the combination of the transmission and reception of advertisement information on a predetermined channel will be referred to as "advertising." The time interval at which advertisement information is transmitted on a predetermined channel will be referred to as the "advertising interval." Note that the number of advertisements repeated from the first advertisement until entering the power-saving state can be arbitrarily changed as long as it is three times or less.
[0045] Figure 10 shows an example of the structure of advertisement information broadcast by the short-range communication unit 157 to the vicinity of the communication device 151.
[0046] When power is supplied, the short-range communication unit 157 performs an initialization process and enters an advertising state. When the short-range communication unit 157 is in the advertising state, it periodically broadcasts advertising information to the surrounding area based on the advertising interval. The advertising information is a signal that includes basic header information (such as identification information to identify the device transmitting the advertising information), and consists of a header 1001 and a payload 1002. By receiving this advertising information, the information processing device 101 can recognize the presence of the communication device 151. Furthermore, the information processing device 101 can establish a BLE connection with the communication device 151 by sending a BLE connection request to the communication device 151. The header 1001 is an area that stores information such as the type of advertising information and the size of the payload 1002. Payload 1002 stores information such as the device name 1003 as identification information, the installed profile information, connection information 1004 for establishing a BLE connection with the communication device 151, and the transmission power (Tx Power) 1005 as advertising information. The communication device identification information 1006 may also be included in the advertising information. Examples of communication device identification information 1006 include the MAC address of the communication device, the service information of the communication device, the SSID of the access point within the communication device, and the password.
[0047] In this embodiment, the short-range communication unit 157 enters an advertising state and begins transmitting advertised information when the power of the communication device 151 is turned ON. However, the timing at which the short-range communication unit 157 begins transmitting advertised information is not limited to the above-described form, and may be, for example, at the timing when a predetermined operation to enable the BLE function is performed.
[0048] For example, the short-range communication unit 157 may first transmit first advertisement information, and upon receiving a response from the information processing device 101 to the first advertisement information, transmit second advertisement information that differs in content from the first advertisement information. For example, the first advertisement information may include information regarding the transmission power of the advertisement information and identification information of the short-range communication unit 157. The second advertisement information may include identification information of the communication device 151 and information regarding the functions and hardware of the communication device 151. In this configuration, for example, the printing application is designed to handle the second advertisement information. Therefore, in the following explanation, the advertisement information handled by the printing application will be the second advertisement information.
[0049] Furthermore, in this embodiment, authentication is performed between the information processing device 101 and the communication device 151, and a pairing process is performed to enable data reading and writing between the devices using GATT (Generic Attribute Profile) communication. GATT is a profile in the BLE standard that governs the reading and writing (transmission and reception) of information. GATT communication is a communication in which the information processing device 101 acts as the GATT client and the communication device 151 acts as the GATT server, and information is read and written from the information processing device 101 to the communication device 151 using a GATT-based profile. When pairing has not been performed between the information processing device 101 and the communication device 151, the communication device 151 is configured not to allow reading and writing of information via GATT communication. This prevents the information processing device 101 and the communication device 151 from communicating without being paired, thus preventing, for example, the unintentional acquisition of information held by the communication device 151 by the information processing device 101 without being paired. In this embodiment, it is assumed that there are GATT communications that are permitted when pairing is not performed, and GATT communications that are not permitted when pairing is not performed. By allowing less confidential information to be transmitted via GATT communications permitted when pairing is not performed, the convenience of communication can be improved. On the other hand, by allowing highly confidential information to be transmitted only via GATT communications that are not permitted when pairing is not performed, the security of communication can be improved.
[0050] In this embodiment, the information processing device 101 is assumed to store a predetermined application in a ROM 104 or an external storage device 106. The predetermined application is, for example, a printing application program for sending a print job to the communication device 151 for printing image data or document data stored in the information processing device 101. An application having such a function will be hereafter referred to as a "printing app". Note that the printing app may have functions other than printing. For example, if the communication device 151 has a scanning function, the printing app may have a function to scan a document set in the communication device 151, a function to configure other settings of the communication device 151, a function to check the status of the communication device 151, etc. That is, the printing app may have a function to send scan jobs or setting jobs to the communication device 151 in addition to print jobs. Furthermore, the predetermined application is not limited to a printing app, and may be an application program with functions other than printing.
[0051] The information processing device 101 may communicate with the communication device 151, for example, via BLE, in order to use the functions of the printing application. Specifically, for example, when the information processing device 101 executes processing using the printing function, it first exchanges WiFi communication connection information via BLE communication, and then sends the print job to the communication device 151 via WiFi communication. Therefore, in order for the information processing device 101 to use the functions of the printing application, it is preferable to perform a pairing process in BLE and make it possible to perform BLE communication with the communication device 151. Accordingly, in this embodiment, the printing application is assumed to also have a function to perform a pairing process between the information processing device 101 and the communication device 151. The following describes an embodiment in which the pairing process is performed via the printing application.
[0052] Figure 3 shows an example of a screen displayed on the display unit 108 when the printing application is launched. Through the launch screen 300, the user can utilize the functions of the communication device, such as printing the desired image or configuring the communication device. When the CPU 103 of the information processing device 101 detects that the photo print button 301 is pressed, it displays a screen to the communication device 151 prompting it to execute printing. Also, when the CPU 103 of the information processing device 101 detects that the scan button 302 is pressed, it displays a screen to the communication device 151 prompting it to execute scanning, which is the process of reading the document and creating image data. Furthermore, when the CPU 103 of the information processing device 101 detects that the BLE pairing button 303 is pressed, it starts the pairing process.
[0053] The information processing device 101 of this embodiment is assumed to have a configuration application (hereinafter referred to as the "configuration app"). The configuration app is an application program for configuring functions executed by the OS. The configuration app is an application program that is installed together with the OS during a series of processes in which the OS is installed on the information processing device 101, or is pre-installed on the information processing device 101 along with the OS when the information processing device 101 is delivered. When the information processing device 101 of this embodiment pairs with the communication device 151, it accepts input from the user for pairing on the Bluetooth settings screen (hereinafter referred to as the "BT settings screen") displayed by the configuration app. Specifically, the information processing device 101 accepts input from the user for pairing on the BT settings screen displayed by the configuration app. This is because, for example, depending on the type of OS installed on the information processing device 101 or the model of the information processing device 101, it may not be possible to perform the pairing process on a screen displayed by a program other than the configuration app, i.e., a printing app. Therefore, the information processing device 101 also uses the BT settings screen displayed by the settings application when performing pairing processing via the printing application. This embodiment describes a configuration that can improve the usability of pairing processing, which is performed via both the screen displayed by the printing application and the screen displayed by a program other than the printing application (in this case, the settings application).
[0054] Figure 2 is a flowchart of the pairing process executed by the information processing device 101. The flowchart shown in Figure 2 is realized, for example, by the CPU 103 reading a program stored in the ROM 104 or external storage device 106 into the RAM 105 and executing it. In this embodiment, the process shown in the flowchart in Figure 2 is executed by the printing application. In this embodiment, the printing application is configured to receive notifications of various events such as "pairing," "pairing complete," and "pairing failed" via the BT settings screen displayed by the settings application. Whether or not the printing application actually receives event notifications can be switched by the notification settings described later. Details of the various events will be described later. The process shown in the flowchart in Figure 2 is started when the BLE pairing button 303 is pressed by the user.
[0055] First, in step S201, the CPU 103 determines whether the Bluetooth function of the information processing device 101 is enabled or disabled. The state in which the Bluetooth function is enabled means that the information processing device 101 is capable of performing communication via Bluetooth or BLE. As mentioned above, the short-range communication unit 112 operates as a scanner in the BLE communication standard. Therefore, when the information processing device 101 is capable of performing communication via BLE, the CPU 103 transitions the short-range communication unit 112 to a state where it can receive advertised information (scan state) and searches for advertised information. If the CPU 103 determines that the Bluetooth function is enabled, it proceeds to step S203; if it determines that the Bluetooth function is not enabled (disabled), it proceeds to step S202. Hereafter, "step S~" will be abbreviated as "S~".
[0056] In S202, the CPU 103 enables the disabled Bluetooth function. At this time, the CPU 103 may display a dialog on the display unit 108 to allow the user to choose whether or not to enable the Bluetooth function, and enable the Bluetooth function only after receiving instructions from the user via the dialog.
[0057] Next, in S203, the CPU 103, after receiving confirmation that the BLE pairing button 303 has been pressed, determines whether or not the short-range communication unit 112 has received the advertisement information. If the CPU 103 determines that the advertisement information has been received, it proceeds to S204. If it determines that the advertisement information has not been received, it waits for a predetermined amount of time and then repeats the process of S203, waiting for the advertisement information to be received.
[0058] Next, in S204, the CPU 103 determines whether the received advertisement information contains specific identification information. In this embodiment, when the information processing device 101 performs pairing processing via a printing application, it communicates with a communication device of a model or vendor that is compatible with the printing application. Therefore, the specific identification information is identification information that indicates that the communication device that sent the received advertisement information is a communication device of a model compatible with the printing application, or a communication device provided by a predetermined vendor that is compatible with the printing application. More specifically, the specific identification information is information that indicates that the communication device that sent the received advertisement information is capable of providing printing services (image forming functions), or information such as the model name and vendor name of the communication device that sent the received advertisement information. Note that the identification information only needs to be information that can uniquely identify a communication device compatible with the printing application, and may include, for example, an IP address, MAC address, or ID information. If the CPU 103 determines that specific identification information is included, it proceeds to S205. If it determines that specific identification information is not included, it waits for a predetermined time and then performs the process of S203 again, waiting for the advertisement information to be received. If the short-range communication unit 112 has received multiple advertisement information after the BLE pairing button 303 has been pressed, the CPU 103 performs the determination in S204 for each advertisement information. If the CPU 103 finds that at least one advertisement information contains specific identification information, it proceeds to S205.
[0059] In S205, the CPU 103 displays information on the display unit 108 regarding the communication device that sent the advertisement information containing specific identification information. This communication device information is included in the advertisement information containing specific identification information, such as the communication device's name, IP address, and MAC address. If multiple advertisements containing specific identification information are received, the CPU 103 displays information on the communication device that sent each advertisement. The screen displaying information on the communication device that sent the advertisement information containing specific identification information is a screen for the user to select the communication device to be paired. In other words, this screen displays a screen for the user to select the communication device to be paired using the printing application. Furthermore, because filtering is performed in S204, information on communication devices compatible with the printing application (those capable of performing various functions using the printing application) is displayed, while information on communication devices not compatible with the printing application is not displayed.
[0060] Next, in S206, the CPU 103 determines whether it has received a selection from the user for the communication device to be paired, via the screen displayed in S205. Specifically, the CPU 103 determines whether any of the information regarding the communication device included in the screen displayed in S205 has been selected. If the CPU 103 determines that it has received a selection from the user, it proceeds to S207. If it determines that it has not received a selection from the user, it repeats the processes from S203 to S206 and waits for a selection from the user. If the CPU 103 determines that it has not received a selection from the user, it may continue the processes from S203 onwards while displaying the screen on the display unit 108 for the user to select the communication device to be paired. This allows newly received information regarding the source of the advertised information to be added to the screen for the user to select the communication device to be paired. Furthermore, when the CPU 103 determines that it has received a selection from the user, it considers it to have received an instruction from the user to execute the pairing process and identifies the communication device corresponding to the selected information as the communication device to be paired. Here, we will proceed with the explanation assuming that the user has selected a communication device named "PrinterA".
[0061] In S207, the CPU 103 stores information about the communication device to be paired in a predetermined storage area such as the external storage device 106 or ROM 104. This information about the communication device to be paired is, for example, the advertisement information transmitted by the communication device.
[0062] Next, in S208, the CPU 103 sends a request to initiate GATT communication to the communication device to be paired, based on the information stored in S207. As a result, for information that can be communicated without pairing, the information processing device 101 and the communication device to be paired enter a state where GATT communication is possible.
[0063] Next, in S209, the CPU 103 transmits identification information about the information processing device 101 to the communication device to be paired via GATT communication. At this time, the CPU 103 transmits the identification information via GATT communication, which is permitted when pairing is not performed. Specifically, the CPU 103 writes the identification information to the area of the GATT profile of the communication device to be paired that is writable when pairing is not performed. The identification information about the information processing device 101 includes, for example, the name, IP address, and MAC address of the information processing device 101. If the CPU 103 successfully transmits the identification information, it terminates the GATT communication and proceeds to S210. Here, the CPU 103 may repeatedly transmit the identification information until it is successfully transmitted. Alternatively, during this time, a dialog box or the like may be displayed on the display unit 108 to accept interruption of processing by the user, or processing may be interrupted as a timeout after a predetermined period of time has elapsed.
[0064] Furthermore, when the communication device to be paired receives identification information transmitted from the information processing device 101 via GATT communication, it stores the received identification information in its own memory. The communication device to be paired will only accept pairing requests while this identification information is stored in its memory. In addition, the communication device to be paired will only accept pairing requests from the information processing device corresponding to the identification information stored in its memory. This restricts the communication device to only receive pairing requests when the pairing process is performed via the printing application. The communication device to be paired determines whether the pairing process is complete and whether a predetermined amount of time has elapsed since the identification information was stored. If the result of either determination is true, it deletes the identification information from its memory.
[0065] Furthermore, the processing performed by the communication device to be paired upon receiving a pairing processing request is not limited to the above-described form. For example, the communication device to be paired may receive identification information from the information processing device 101 after receiving a pairing processing request from the information processing device 101. In this case, the communication device to be paired determines whether the identification information received from the information processing device 101 after receiving the pairing processing request from the information processing device 101 matches the information about the information processing device 101 included in the pairing processing request. If the two match, the communication device to be paired accepts the pairing processing request and starts the pairing process; if they do not match, it does not accept the pairing processing request and does not start the pairing process.
[0066] Next, in S210, the CPU 103 displays a screen on the display unit 108 showing the steps of the operations to be performed by the user during the pairing process. As described above, in this embodiment, the operations necessary for the pairing process, such as inputting the information necessary for pairing, are performed on the BT settings screen of the setting application running on the information processing device 101. Therefore, in S208, the CPU 103 displays the steps of the operations to be performed by the user on the BT settings screen and the name of the communication device to be selected on the BT settings screen on the display unit 108 using a Dialog or the like. Furthermore, the CPU 103 displays an element (for example, a button) for receiving instructions from the user to proceed to the next step. Specifically, for example, in S210, the CPU 103 displays a screen as shown in Figure 7. In S210, when the CPU 103 detects that it has received instructions from the user to proceed to the next step, it closes the Dialog displayed on the display unit 108 and proceeds to S211.
[0067] Next, in S211, CPU103 enables event notification settings for the printing application. Specifically, CPU103 configures the printing application to receive notifications of events that occur in response to operations on the BT settings screen displayed by the settings application. This allows the printing application to recognize when events such as "pairing," "pairing complete," or "pairing failed" occur in response to operations on the BT settings screen, and to execute predefined processes in response to the occurrence of events.
[0068] Next, in S212, the CPU 103 displays a Toast message prompting the user to select the communication device selected by the user via the screen displayed in S205 on the BT settings screen displayed on the display unit 108 in S211. Specifically, the CPU 103 displays a Toast message prompting the user to select the communication device named "PrinterA" on the BT settings screen. As will be described later, the Toast displayed at this time remains displayed in front of the BT settings screen even after the BT settings screen is displayed. In other words, the user can select the communication device on the BT settings screen while confirming the message displayed in this Toast, allowing them to quickly and accurately determine which communication device to select on the BT settings screen.
[0069] As mentioned above, the Toast function is an OS function, so when the CPU 103 displays a Toast using a printing application, it sends a request to the OS to display the Toast along with the content of the message to be included in the Toast. This allows the CPU 103 to display the Toast using the printing application. Furthermore, as mentioned above, the CPU 103 can display the Toast even if the program requesting the Toast display has moved to the background. A state in which a program has moved to the background refers to a state in which that program is running while a screen displayed by a program other than that program is displayed on the display unit 108. On the other hand, a state in which a program has moved to the foreground refers to a state in which that program is running while a screen displayed by that program is displayed on the display unit 108.
[0070] Next, in S213, the CPU 103 switches the screen displayed on the display unit 108 from the screen displayed by the printing application to the BT settings screen displayed by the settings application. Then, the CPU 103 moves the printing application to the background. Specifically, the CPU 103, in response to an instruction from the printing application, keeps the printing application running and displays the screen displayed by the settings application on the display unit 108. Here, we have described a configuration in which the screen displayed on the display unit 108 is switched from the screen shown in Figure 7 to the BT settings screen. However, this configuration is not limited to this configuration; for example, after receiving an instruction to execute the pairing process on the screen shown in Figure 3, the system may switch directly from the screen shown in Figure 3 to the BT settings screen.
[0071] Figure 4 shows an example of the BT settings screen displayed by the configuration application. The BT settings screen is a screen for configuring the Bluetooth function of the information processing device 101. Specifically, for example, it is a screen for receiving the user's selection of a communication device to be paired with the information processing device 101.
[0072] First, the CPU 103 displays the BT setting screen 400 shown in Figure 4(a) on the display unit 108. The BT setting screen 400 includes a paired device list 410, a pairable device list 420, and a scan button 430.
[0073] The paired device list 410 is an area that displays a list of information about communication devices that have already been paired with the information processing device 101 (i.e., devices that have already been paired with the information processing device 101).
[0074] The Pairable Device List 420 is an area where information about communication devices that the information processing device 101 can pair is displayed in a list. The communication devices that the information processing device 101 can pair are those that send the advertisement information received by the information processing device 101. No filtering is performed on the communication devices displayed in the Pairable Device List 420. Therefore, the Pairable Device List 420 also displays communication devices that are not compatible with the printing application (for example, devices other than printers, or printers that are not compatible with the printing application that is instructing the pairing process). When a user selects one of the communication devices displayed in the Pairable Device List 420, the pairing process with the selected communication device begins.
[0075] The scan button 430 is a button that allows the information processing device 101 to start searching (scanning) for advertisement information transmitted from the communication devices of BLE-compatible devices around the information processing device 101 in order to update the contents of the pairable device list 420.
[0076] The back button 440 is used to display the screen that was displayed on the display unit 108 immediately before the currently displayed screen. As mentioned above, the BT settings screen 400, which includes the back button 440, is a screen displayed by a settings application. If the screen displayed immediately before the BT settings screen 400 was a program other than the settings application, pressing the back button 440 will display the screen displayed by the program other than the settings application again. In this embodiment, the screen displayed immediately before the BT settings screen 400 is a screen displayed by a printing application, so pressing the back button 440 will display the screen displayed by the printing application again.
[0077] The home button 441 is a button used to display the home screen, which is shown by the OS. The home screen is a screen where icons for launching application programs (such as a printing application) on the information processing device 101 are arranged.
[0078] The Task List button 442 is a button that displays a screen for selecting a program to run in the foreground. Therefore, if the printing application is selected on the screen displayed when the Task List button 442 is pressed, the screen displayed by the printing application will be displayed again.
[0079] When the scan button 430 is pressed, the CPU 103 transitions the information processing device 101 to a scanning state, which is a state in which it can receive advertisement information transmitted from communication devices in the vicinity of the information processing device 101. Next, when the CPU 103 receives the advertisement information, it identifies the name (Complete Local Name) of the communication device that sent the advertisement information, which is included in the received advertisement information. Then, the CPU 103 updates the display of the pairable device list 420 by adding the identified name to the pairable device list 420 and displaying it.
[0080] The names of the communication devices displayed in the paired device list 410 and the pairable device list 420 are those included in the received advertisement information. In addition to the name of the communication device, the advertisement information includes identification information (Bluetooth device address: BD_ADDR) for identifying the individual short-range communication unit of the communication device that sent the advertisement information. Therefore, this identification information may also be displayed in the paired device list 410 and the pairable device list 420. The CPU 103 appropriately stores the advertisement information received from the communication devices displayed in the paired device list 410 and the pairable device list 420 in the memory area of the information processing device 101 (RAM 105, external storage device 106, etc.).
[0081] As described above, the pairing process with the selected communication device begins when the user selects one of the communication devices displayed in the pairable device list 420. However, as also described above, the BT settings screen is a screen displayed by the settings application, and no filtering is performed to display communication devices suitable for the printing application when displaying candidates for pairing. Therefore, the pairable device list 420 will also display information on communication devices other than the one selected by the user via the screen displayed in S205, and communication devices that do not have printing capabilities and are therefore not compatible with the printing application. Consequently, in this case, it is difficult for the user to determine which communication device to select as the target communication device for the pairing process via the printing application.
[0082] Therefore, in this embodiment, when the BT setting screen is displayed on the display unit 108, the CPU 103 displays a Toast in front of the BT setting screen using the printing application, indicating the user operation procedure. Specifically, for example, the CPU 103 displays the BT setting screen 600 shown in Figure 6(a), which is a screen in which a Toast 601 is displayed in front of the BT setting screen 400 shown in Figure 4(a). The Toast 601 displays a message prompting the user to select "PrinterA," which is the communication device selected by the user on the screen displayed by the printing application in S205. This configuration can suppress errors and improve user convenience. It should be noted that the Toast displayed at this time may also include information (name) of the communication device corresponding to the printing application, rather than the communication device selected by the user on the screen displayed by the printing application in S205.
[0083] In this embodiment, the Toast message is displayed first in S212, and then the BT settings screen is displayed in S213. However, the display order is not limited to this configuration. That is, the BT settings screen may be displayed first, followed by the Toast message.
[0084] Next, in S214, the CPU 103 determines whether the printing application, which is in the background, has moved to the foreground. Specifically, the CPU 103 determines whether the screen displayed on the display unit 108 has switched from the BT settings screen to the screen displayed by the printing application. For example, if the back button 440 is pressed or the task list button 442 is pressed, and a screen displayed by the printing application is selected, the printing application will move to the foreground. If the CPU 103 determines that the printing application has moved to the foreground, it proceeds to S223; if it determines that the printing application has not moved to the foreground, it proceeds to S215.
[0085] Next, in S215, the CPU 103 determines whether or not an event has been notified to the printing application via the BT settings screen displayed by the settings application. If the CPU 103 determines that an event has been notified, it performs the following processing according to the content of the notified event. Specifically, if the notified event indicates "pairing in progress", the CPU 103 proceeds to S216. If the notified event indicates "pairing complete", the CPU 103 proceeds to S218. If the notified event indicates "pairing failed", the CPU 103 proceeds to S220. On the other hand, if the CPU 103 determines that no event has been notified, it executes the processing in S214 again.
[0086] Here, we will explain the details of the various events. The event indicating "Pairing" occurs when the user is instructed to perform the pairing process via the BT settings screen 600. Specifically, the event indicating "Pairing" occurs when the user selects one of the communication devices displayed in the pairable device list 420. When the user is instructed to perform the pairing process, the settings application reads the advertisement information received from the communication device selected by the user from its storage area and uses the read advertisement information to identify the information necessary for the pairing process, such as identification information. The settings application then sends a pairing request to the communication device selected by the user based on the identified information and the BLE communication standard. The communication device that receives the pairing request displays a PIN code display screen 500, as shown in Figure 5, on its display unit (not shown). The PIN code display screen 500 displays the PIN code 501, which is the authentication information used for the pairing process, and a Cancel button 502 for canceling the pairing process.
[0087] Then, when the configuration app sends a pairing request due to an event indicating "pairing in progress," it displays the PIN code input screen 450 shown in Figure 4(b) on the display unit 108. The PIN code input screen 450 is a screen in which the PIN code input dialog 454 is displayed in front of the BT configuration screen 400 shown in Figure 4(a). The PIN code input dialog 454 also displays a PIN code input area 451, an OK button 452, and a Cancel button 453. The PIN code input area 451 is an area for accepting PIN code input from the user. The OK button 452 is a button for sending the entered PIN code to the communication device selected by the user. The Cancel button 453 is a button for canceling the pairing process.
[0088] Furthermore, depending on the OS specifications, there may be a fixed period during which the PIN code 501 can be entered into the PIN code input area 451 (the period during which the entry must be successful). For example, the period during which the PIN code 501 can be entered into the PIN code input area 451 may be 30 seconds. In this case, if the PIN code 501 is not entered and the OK button 452 is not pressed within 30 seconds of the PIN code input screen 450 being displayed, the PIN code 501 will not be sent to the communication device selected by the user. In other words, the pairing process will fail.
[0089] If the OK button 452 is pressed while the PIN code 501 is entered in the PIN code input area 451 within the above period, the setup application sends information including the entered PIN code 501 to the communication device selected by the user. The communication device selected by the user determines whether the PIN code 501 included in the received information matches the PIN code 501 displayed on the PIN code display screen 500 (the PIN code corresponding to the communication device). If the communication device selected by the user determines that they match, it grants permission to pair to the information processing device 101. Specifically, the communication device selected by the user sends a link key, created in a predetermined manner based on the PIN code 501, to the information processing device 101 using the BLE standard's SMP (Security Manager Protocol). In this way, the link key is stored in the memory area of the information processing device 101 (ROM 104, etc.) and in the memory area of the communication device selected by the user (ROM 152, etc.). This completes the pairing and allows BLE communication between the devices. Then, when the pairing process is completed (successfully) in this way, an event indicating "pairing complete" is generated.
[0090] Once the pairing process is complete, the configuration app displays the BT configuration screen 460 shown in Figure 4(c), with the PIN code input dialog 454 hidden. The occurrence of the "Pairing Complete" event means that the communication device indicated as "PrinterA" and the information processing device 101 are now paired. Therefore, the configuration app adds "PrinterA" to the paired device list 410 and removes "PrinterA" from the pairable device list 420.
[0091] On the other hand, if it is determined that the PIN code 501 included in the received information does not match the PIN code 501 displayed on the PIN code display screen 500, pairing fails. Therefore, the communication device selected by the user does not send the aforementioned link key to the information processing device 101. In this case, the communication device selected by the user also sends information to the information processing device 101 indicating that pairing has failed. Since it is preferable to perform the pairing process again when it fails, the setting application displays the BT setting screen 400 shown in Figure 4(a) again on the display unit 108. Note that pairing failure is not limited to cases where the PIN codes do not match. For example, pairing also fails if the Cancel button 453 is pressed on the PIN code input screen 450 in Figure 4(b) or if the Cancel button 502 is pressed on the PIN code display screen 500 in Figure 5. Also, pairing fails if, for example, no input is made in the PIN code input area 451 for a long time. When the pairing process fails in this way, an event indicating "pairing failed" is generated.
[0092] Based on the above, let's return to the explanation of the process in Figure 2.
[0093] In S216, the CPU 103 determines whether the communication device selected on the BT settings screen 600 displayed by the settings application matches the communication device selected on the screen displayed by the printing application in S205. The notification of the event indicating "Pairing in progress" includes identification information of the communication device selected on the BT settings screen 600 displayed by the settings application. Specifically, the CPU 103 performs the determination process in this step by comparing the identification information included in the notification of the event indicating "Pairing in progress" with the information saved in S207. If the CPU 103 determines that they match, it proceeds to S217; otherwise, it returns to S214. If the CPU 103 determines that they do not match, it may display a Toast indicating that the communication device selected on the BT settings screen 600 does not match the communication device selected on the screen displayed in S205. Alternatively, the CPU 103 may display a Toast prompting the user to cancel the pairing process with the communication device selected on the BT settings screen 600. Furthermore, the CPU 103 may, for example, redisplay a Toast message indicating the selected communication device on the screen displayed in S205.
[0094] As described above, when an event indicating "pairing" occurs, the setting application displays the PIN code input screen 450 shown in Figure 4(b) on the display unit 108. Also, as described above, depending on the OS specifications, there may be a fixed period during which the PIN code 501 can be entered in the PIN code input area 451 (the period during which the input is successful). Therefore, in S217, the CPU 103 performs display control to display a Toast 603 containing information about the period during which the PIN code 501 can be entered successfully in front of the PIN code input screen 450. As a result, the display unit 108 displays the BT setting screen 602 shown in Figure 6(b). Specifically, the Toast 603 displays a message prompting the user to enter the PIN code 501 within 30 seconds of the PIN code input screen 450 being displayed, and also displays the number of digits of the PIN code 501 to be entered. This allows the user to perform the operation while taking into account the precautions for entering the PIN code 501, thus improving the usability of entering the PIN code 501. After S217, CPU103 executes process S214 again.
[0095] In S218, the CPU 103 determines whether the communication device that has completed the pairing process with the information processing device 101 matches the communication device selected on the screen displayed by the printing application in S205. The notification of the event indicating "pairing complete" includes identification information of the communication device that has completed the pairing process with the information processing device 101. Specifically, the CPU 103 performs the determination process in this step by comparing the identification information included in the notification of the event indicating "pairing in progress" with the information saved in S207. If the CPU 103 determines that they match, it proceeds to S219; otherwise, it returns to S214. If the CPU 103 determines that they do not match, it may display a Toast indicating that the communication device that has completed the pairing process with the information processing device 101 does not match the communication device selected on the screen displayed in S205.
[0096] As described above, when an event indicating "pairing complete" occurs, the setting application displays the BT setting screen 460 shown in Figure 4(c) on the display unit 108. If the pairing process is successfully completed (the communication device that has completed the pairing process with the information processing device 101 matches the communication device selected on the screen displayed in S205), it is preferable that the screen displayed by the printing application is displayed again. That is, it is preferable that the back button 440 is pressed and the printing application moves to the foreground. Therefore, in S219, the CPU 103 displays a Toast 605 containing a notification to move the printing application to the foreground in front of the BT setting screen 460. As a result, the display unit 108 displays the BT setting screen 604 shown in Figure 6(c). Specifically, the Toast 605 displays a message indicating that pairing with the selected communication device has been successful, and instructions on how to move the printing application to the foreground (an instruction to press the back button 440). This allows the user to smoothly perform the operation to bring the printing application to the foreground. After S219, CPU 103 executes the process of S214 again.
[0097] In S220, the CPU 103 determines whether the communication device that failed to pair with the information processing device 101 matches the communication device selected on the screen displayed by the printing application in S205. The notification of the event indicating "pairing failure" includes identification information of the communication device that failed to pair with the information processing device 101. Specifically, the CPU 103 performs the determination process in this step by comparing the identification information included in the notification of the event indicating "pairing failure" with the information saved in S207. If the CPU 103 determines that they match, it proceeds to S221; otherwise, it returns to S214. If the CPU 103 determines that they do not match, it may display a Toast indicating that the communication device that failed to pair with the information processing device 101 does not match the communication device selected on the screen displayed in S205.
[0098] As described above, if an event indicating "pairing failure" occurs, the setting application displays the BT setting screen 400 shown in Figure 4(a) again on the display unit 108 in order to allow the pairing process to be executed again. In other words, the BT setting screen is displayed in a state where the pairing process with the communication device indicated by "PrinterA" has not been completed. Therefore, in S221, the CPU 103 displays a Toast 607 containing a notification prompting the user to execute the pairing process again in front of the BT setting screen 400. As a result, the display unit 108 displays the BT setting screen 606 shown in Figure 6(d). Specifically, the Toast 607 displays a notification indicating that pairing has failed and instructions on how to perform the pairing process successfully (a notification instructing the user to enter the correct password within 30 seconds). This allows the user to smoothly execute the pairing process again even if the pairing process has failed. The CPU 103 may also include a notification in the Toast 607 indicating the reason why the pairing process failed.
[0099] Next, in S222, the CPU 103 displays a Toast 601 containing a message prompting the user to select the communication device selected by the user via the screen displayed in S205 on the BT settings screen. As a result, the BT settings screen 600 shown in Figure 6(a) is displayed again on the display unit 108. This allows the user to be notified again which communication device to select. After S222, the CPU 103 executes the process in S214 again.
[0100] In S223, the CPU 103 obtains information from the OS regarding the pairing status between the communication device selected on the screen displayed by the printing application in S205 and the information processing device 101. This allows the CPU 103 to determine whether or not pairing between the communication device selected on the screen displayed by the printing application in S205 and the information processing device 101 has been completed. However, the method of determination is not limited to this method. For example, the CPU 103 may store events indicating "pairing complete" and "pairing failed" received via a configuration application. Then, the CPU 103 may determine whether or not pairing between the communication device and the information processing device 101 has been completed according to the stored events.
[0101] Next, in S224, the CPU 103 displays a notification area on the display unit 108 using one of the notification functions based on the result identified in S223. At this time, since the screen displayed by the printing application is shown on the display unit 108, the CPU 103 can display any notification area in front of that screen. If the CPU 103 determined in S205 that the pairing between the communication device selected on the screen displayed by the printing application and the information processing device 101 has been completed, it displays a notification area containing a message indicating that the pairing process has been completed. If the CPU 103 determined in S205 that the pairing between the communication device selected on the screen displayed by the printing application and the information processing device 101 has not been completed, it displays a notification area containing a message indicating that the pairing process has failed. If the pairing process has failed, the CPU may, for example, repeat the process from S204, and execute the pairing process again.
[0102] Next, in the S225, CPU103 is configured so that the printing application does not receive notifications of events that occur in response to operations on the BT settings screen displayed by the configuration application (disabling the reception of event notifications). As a result, the printing application only receives event notifications during the pairing process via the BT settings screen displayed by the configuration application, and displays a Toast message corresponding to the event that occurred, thus enabling timely Toast notifications.
[0103] Subsequently, the CPU 103 terminates processing. At this point, the display unit 108 shows a screen displayed by the printing application, so the CPU 103 may continue to execute functions of the printing application in response to user instructions. For example, it may perform setting processing related to the connection between the paired communication device and the information processing device 101 via BLE, or send a print job to the paired communication device. In this configuration, the user can continue to use the printing application even after the pairing process is completed.
[0104] As explained above, in this embodiment, user interaction is prompted by Toast 601, Toast 603, Toast 605, and Toast 607. As shown in Figure 6, Toast 605 has a larger number of characters than Toast 601 or Toast 603, and due to the nature of Toast displays, which automatically disappear after a certain period of time, there was a possibility of reduced visibility. Also, depending on the type and version of the OS, there may be a limit to the number of characters that can be displayed in a Toast at once, and if the number of characters in the message is large, a problem may arise in which some of the content is not displayed in the Toast. Therefore, in this embodiment, when a message exceeding a certain number of characters is to be displayed by the Toast function, the system determines whether or not to automatically split the display by executing a series of processes shown in the flowchart of Figure 11. The flowchart of Figure 11 is executed by the printing application when a notification is made by the Toast function and the Toast to be displayed is identified by the printing application based on the Toast notification. In the following process, the Toast identified as the Toast of interest will be processed. At the start of this flowchart, the Toast identified here will be the Toast of interest.
[0105] In S1101, CPU 103 determines whether or not to split the Toast of interest. Specifically, CPU 103 determines whether the number of newline characters in the string contained in the Toast of interest is greater than or equal to a predetermined threshold. If the number of newline characters in the string contained in the Toast of interest is less than the predetermined threshold, it determines to split the Toast of interest and proceeds to S1104. On the other hand, if the number of newline characters in the string contained in the Toast of interest is greater than or equal to the predetermined threshold, it determines to split the Toast of interest and proceeds to S1102. Here, as an example, the predetermined threshold used in this step is set to the number of newline characters = 1, but any single value (integer) of 2 or more may be used as such a threshold. Also, although this determination is based on the number of newline characters, it is not limited to this form. For example, it may be determined whether the number of characters contained in the string contained in the Toast of interest is greater than or equal to a predetermined threshold, and if the number of characters is greater than or equal to the predetermined threshold, it may be determined to split the Toast of interest. Alternatively, for example, a value calculated based on the number of characters and newline characters in the string may be used as a string-specific value. The system may then determine whether this string-specific value is above a predetermined threshold, and if it is above the predetermined threshold, it may be determined to split the Toast of interest.
[0106] In S1102, CPU103 splits the Toast of interest. Specifically, CPU103 performs a process to split the string contained in the Toast of interest at the positions where newline characters are included. This generates a split Toast containing the first half of the split string and another split Toast containing the second half of the split string.
[0107] In S1103, CPU 103 identifies the split Toast containing the latter half of the string from the split Toast generated in S1102 as the Toast of interest. Then CPU 103 proceeds to S1101 and performs processing on the split Toast containing the latter half of the string.
[0108] In S1104, CPU103 identifies the Toast of Interest. Specifically, if the initially identified Toast of Interest is split, the split Toast containing the first half of the split string is identified as the Toast of Interest. If the initially identified Toast of Interest is not split, the initially identified Toast of Interest is identified as is.
[0109] In S1105, the CPU 103 determines whether any other Toasts besides the one of interest are already displayed on the screen. If no other Toasts are displayed, the CPU 103 proceeds to S1106. If other Toasts are displayed, the CPU 103 repeats this determination until the currently displayed Toast disappears. This determination process is necessary to control the display of multiple Toasts consecutively, preventing them from overlapping.
[0110] In S1106, CPU103 requests and instructs the OS to display the noteworthy Toast using the Toast function.
[0111] In S1107, CPU 103 determines whether all Toasts corresponding to the initially identified Toast of Interest have been displayed. All Toasts corresponding to the initially identified Toast of Interest are all divided Toasts generated when the initially identified Toast of Interest is divided. If the initially identified Toast of Interest has not been divided, then all Toasts corresponding to the initially identified Toast of Interest are the initially identified Toast of Interest itself. If CPU 103 determines that all Toasts corresponding to the initially identified Toast of Interest have been displayed, it terminates the processing of this flowchart. On the other hand, if CPU 103 determines that all Toasts corresponding to the initially identified Toast of Interest have not been displayed, it proceeds to S1108. In S1108, among all Toasts corresponding to the initially identified Toast of Interest, the divided Toast that has not yet been displayed and contains the first half of the string is identified as the Toast of Interest. After that, the process returns to S1105.
[0112] Through the above series of processes, for example, instead of displaying Toast605 as shown in Figure 12, Toast605a will be displayed, and after Toast605a disappears, 605b will be displayed. In this way, the pop-ups generated by splitting the string to be displayed are displayed sequentially. Therefore, user visibility can be improved compared to displaying Toast605 as is.
[0113] In this embodiment, in order to perform BLE communication using the printing application, the pairing process is carried out using the BT settings screen displayed by the settings application. In this case, when the printing application displays various information as Toast messages on the BT settings screen, it automatically determines whether each Toast message can be displayed as is or divided and displayed separately. Therefore, according to this embodiment, user visibility can be improved, and consequently, user errors can be suppressed and convenience can be improved.
[0114] Furthermore, while the above description refers to the form in which a Toast message is displayed on the BT settings screen, the program is not limited to this form. The timing of the Toast message display and the content of the message notified by the Toast can be arbitrarily determined by the application program that displays the Toast. For example, in order for a printing application to perform Wi-Fi communication, a Toast message containing a message indicating the operation to be performed on the Wi-Fi settings screen displayed by the settings application may be displayed. Alternatively, for example, when a print setting operation is performed for a print job sent by the printing application, a Toast message containing a message regarding that print setting operation may be displayed. These Toast messages may also be split and displayed by executing a process as shown in Figure 11.
[0115] [Second Embodiment] In the first embodiment, an example was described in which a Toast message is split and displayed when the number of characters to be displayed is large. In this embodiment, an example is described in which a new threshold is set for the number of Toast messages to be split, and the display format is changed to a different format, such as display using a dialog function. Note that the following description mainly describes the differences from the first embodiment. Descriptions of the same content as in the first embodiment will be omitted as appropriate.
[0116] Figure 13 is a flowchart illustrating the processing according to this embodiment. The flowchart in Figure 13 is executed by the printing application when a notification is sent via the Toast function and the Toast to be displayed is identified by the printing application based on the Toast notification. In the following processing, processing is executed for the Toast identified as the Toast of interest, but at the start of this flowchart, the Toast identified here becomes the Toast of interest. Note that the same processing as in the flowchart of Figure 11 is assigned the step numbers shown in Figure 11.
[0117] In S1301, CPU 103 determines whether or not to notify the message notified by the Toast function. Specifically, CPU 103 determines whether the number of newline characters in the string included in the Toast is greater than or equal to a specific threshold. The specific threshold is a value greater than a predetermined threshold used in the determination in S1101. Specifically, for example, suppose the predetermined threshold is 1 and the specific threshold is 2. This allows CPU 103 to determine whether determining the number of divisions by the determination in S1101 would result in an excessive number of divisions. If CPU 103 determines that the number of newline characters in the string included in the Toast is greater than or equal to the specific threshold, it determines that the message notified by the Toast function will not be notified and proceeds to S1302. On the other hand, if CPU 103 determines that the message notified by the Toast function will be notified and proceeds to S1101, it determines that the message notified by the Toast function will be notified and proceeds to S1101. The processing from S1101 onwards is the same as described in Figure 11. While this determination is based on the number of newline characters, it is not limited to this form. For example, one could determine whether the number of characters in the string contained in the Toast item is greater than or equal to a certain threshold, and if so, decide not to notify the message in the Toast item using the Toast function. Alternatively, one could use a string-specific value calculated based on the number of characters in the string and the number of newline characters, and determine whether this string-specific value is greater than or equal to a certain threshold. If this string-specific value is greater than or equal to a certain threshold, decide not to notify the message in the Toast item using the Toast function.
[0118] In S1302, CPU103 notifies the message displayed in the Toast notification using a notification function other than the Toast function. Specifically, this other notification function is, for example, the Dialog function. However, it is not limited to this form; it could also be the Notification function or the SnackBar function. Furthermore, the notification function used may be controlled depending on the content of the message and the timing of the notification. Specifically, for example, if the message is intended to elicit confirmation from the user, it may be controlled to be notified by the Dialog function. Also, if the notification occurs while the printing application is running in the background, it may be controlled to be notified by the Notification function. And if the notification occurs while the printing application is running in the foreground, it may be controlled to be notified by the SnackBar function or the Dialog function. Note that the number of characters that can be displayed at once by the Notification function, SnackBar function, and Dialog function is all greater than the number of characters that can be displayed at once by the Toast function. Therefore, the message displayed in the Toast notification is displayed all at once by the notification function other than the Toast function without being split. Furthermore, if the number of characters in the message notified by the Toast notification is large and exceeds the number of characters that can be displayed at once by the Notification function or the SnackBar function, the notification may be controlled to be displayed by the Dialog function. This is because the Dialog has the function of controlling the content of the message displayed by scrolling, so there is effectively no limit to the number of characters that can be displayed at once. After the processing of S1302, the processing of this flowchart ends.
[0119] As explained above, in this embodiment, a new threshold is set for the number of Toast displays to be divided, and based on this threshold, it is determined whether or not to change to another display format such as a dialog display. Therefore, according to this embodiment, user visibility can be improved, which in turn can suppress user errors and improve convenience, and furthermore, by preventing multiple Toasts from being displayed, a decline in UX can be prevented.
[0120] [Other embodiments] As mentioned above, the function to display Toast messages is an OS function, so the display specifications may differ depending on the type and version of the OS. Specifically, for example, the number of characters that can be displayed at once by the Toast function may differ depending on the version of Android. The embodiments shown so far may be changed depending on the type and version of the OS. Specifically, for example, the version of the information processing device 101 may be determined before S1101 or S1301. If the determined version is one that can display a large number of characters at once by the Toast function, the Toast of interest may be notified by the Toast function without splitting the Toast of interest. If the determined version is not one that can display a large number of characters at once by the Toast function, the process may proceed to S1101 or S1301. A version that can display a large number of characters at once by the Toast function is, for example, a version prior to Android 12 (a version below a specified version). A version that can display a small number of characters at once by the Toast function is, for example, an Android 12 or later version (a version above a specified version).
[0121] This disclosure can also be implemented by supplying a program that implements one or more of the functions of the embodiments described above to a system or device via a network or storage medium, and by having one or more processors in the computer of that system or device read and execute the program. It can also be implemented by a circuit (e.g., an ASIC) that implements one or more functions. [Explanation of symbols]
[0122] 101 Information Processing Device 151 Communication equipment
Claims
1. A computer of an information processing device, a step of identifying the content of the notification; a notification step of executing a process for notifying the specified notification content by a predetermined notification method based on at least one of the number of line breaks included in the specified notification content and the number of characters included in the specified notification content; Run the command, The program is characterized in that the specified notification method is a notification method in which a first part of the specified notification content is displayed, and after the display of the first part is terminated, a second part of the specified notification content that is different from the first part is displayed.
2. The program described in claim 1, characterized in that a process is executed to notify the identified notification content by the specified notification method based on at least one of the number of line breaks contained in the identified notification content being greater than or equal to a threshold and the number of characters contained in the identified notification content being greater than or equal to a threshold.
3. The program described in claim 1 or 2, characterized in that the processing for notifying the identified notification content by the specified notification method is a processing for requesting the OS of the information processing device to display the first part, and then requesting the OS of the information processing device to display the second part.
4. Based on at least one of the number of line breaks included in the identified notification content and the number of characters included in the identified notification content, whether to execute a process for notifying the identified notification content by the predetermined notification method, or to execute a process for notifying the identified notification content by a specific notification method different from the predetermined notification method, 4. The program according to claim 1, wherein the specific notification method is a notification method in which the specified notification content is displayed without being divided.
5. The program described in Claim 4, characterized in that a process is executed to notify the identified notification content by the specific notification method based on at least one of the number of line breaks contained in the identified notification content being less than a threshold and the number of characters contained in the identified notification content being less than a threshold.
6. A program described in any one of claims 1 to 5, characterized in that the processing for notifying the identified notification content by the specific notification method is processing for requesting the OS of the information processing device to display the entire identified notification content.
7. Whether to execute a process for notifying the specified notification content by the predetermined notification method or to execute a process for notifying the specified notification content by a specific notification method different from the predetermined notification method is controlled based on a type or version of an OS of the information processing device, 7. The program according to claim 1, wherein the specific notification method is a notification method in which the specified notification content is displayed without being divided.
8. The computer includes: a determination step of executing a determination process to determine whether to execute a process for notifying the specified notification content by the predetermined notification method, or to execute a process for notifying the specified notification content by a specific notification method different from the predetermined notification method, based on at least one of the number of line breaks included in the specified notification content and the number of characters included in the specified notification content; Then, whether to execute a process for notifying the specified notification content by the specific notification method without executing the determination process, or to execute a process for notifying the specified notification content by the predetermined notification method or a process for notifying the specified notification content by a specific notification method different from the predetermined notification method based on a result of the determination process, based on a type or version of an OS of the information processing device; 8. The program according to claim 1, wherein the specific notification method is a notification method in which the specified notification content is displayed without being divided.
9. When an OS of the information processing device is a version lower than a predetermined version, a process for notifying the specified notification content by the specified notification method is executed without executing the determination process, The program described in claim 8, characterized in that when the OS of the information processing device is a version equal to or higher than the specified version, a process for notifying the identified notification content by the specified notification method or a process for notifying the identified notification content by a specific notification method different from the specified notification method is executed based on the result of the judgment process.
10. The program described in Claim 9, characterized in that the specified version is Android 12.
11. The program according to any one of claims 1 to 10, characterized in that the notification content is displayed by Toast.
12. The program described in Claim 11, characterized in that whether the notification content is displayed using a Toast function or a function other than the Toast function is controlled based on at least one of the number of line breaks contained in the identified notification content and the number of characters contained in the identified notification content.
13. Based on at least one of the fact that the number of line breaks included in the specified notification content is equal to or greater than a first threshold value and the fact that the number of characters included in the specified notification content is equal to or greater than a second threshold value, the notification content is controlled to be displayed by a function other than a Toast function; The program according to claim 12, characterized in that the notification content is controlled to be displayed by a Toast function based on at least one of the fact that the number of line breaks included in the specified notification content is less than the first threshold value and the fact that the number of characters included in the specified notification content is less than the second threshold value.
14. When the notification content is controlled to be displayed by a Toast function, a process is executed to notify the specified notification content by the predetermined notification method based on at least one of the following: the number of line breaks included in the specified notification content is equal to or greater than a third threshold value that is smaller than the first threshold value, and the number of characters included in the specified notification content is equal to or greater than a fourth threshold value that is smaller than the second threshold value; When the notification content is controlled to be displayed by a Toast function, a process is executed to notify the specified notification content by a specific notification method different from the predetermined notification method, based on at least one of the fact that the number of line breaks included in the specified notification content is less than the third threshold value and the fact that the number of characters included in the specified notification content is less than the fourth threshold value; 14. The program according to claim 13, wherein the specific notification method is a notification method in which the specified notification content is displayed without being divided.
15. The program according to claim 13 or 14, characterized in that the other function used to display the notification content is any one of a Dialog function, a Notification function, and a SnackBar function.
16. When the program is running in the background, the other function used to display the notification content is a Notification function, 16. The program according to claim 15, wherein when the program is running in the foreground, the other function used to display the notification content is a Dialog function or a SnackBar function.
17. The program described in Claim 15 or 16, characterized in that when the notification content is controlled to be displayed by the other function and the number of characters contained in the identified notification content exceeds the number of characters that can be displayed at one time by the Notification function or the number of characters that can be displayed at one time by the SnackBar function, the other function used to display the notification content is a Dialog function.
18. A program described in any one of claims 1 to 17, characterized in that it further executes a transmission step of transmitting to the communication device at least one of a print job for causing the communication device to perform printing and a scan job for causing the communication device to perform scanning.
19. A method for controlling an information processing device, comprising: a step of identifying the content of the notification; a notification step of executing a process for notifying the specified notification content by a predetermined notification method based on at least one of the number of line breaks included in the specified notification content and the number of characters included in the specified notification content; having The control method is characterized in that the specified notification method is a notification method in which a first part of the specified notification content is displayed, and after the display of the first part is terminated, a second part of the specified notification content that is different from the first part is displayed.
20. An information processing device, A means for identifying the content of the notification; a notification means for executing a process for notifying the specified notification content by a predetermined notification method based on at least one of the number of line breaks included in the specified notification content and the number of characters included in the specified notification content; having The information processing device is characterized in that the specified notification method is a notification method in which a first part of the specified notification content is displayed, and after the display of the first part is finished, a second part of the specified notification content that is different from the first part is displayed.
