Method for upgrading and related device
By triggering the upgrade process while the terminal device is in a screen-off state, the issue of Pogo Pin keyboard upgrades affecting user experience has been resolved, achieving a seamless upgrade process and improving the user experience.
Patent Information
- Application Number
- CN202211666748.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-23
- Publication Date
- 2026-02-06
- Estimated Expiration
- 2042-12-23
AI Technical Summary
When a terminal device is connected to a Pogo Pin keyboard, software upgrades in existing technologies can affect user experience, causing keyboard input delays, stuttering, or unavailability, thus impacting the user experience.
When a terminal device switches to screen-off mode, it triggers the upgrade process, initiating the packet search, download, transmission, and installation process through a screen-off broadcast message. This ensures that the upgrade is performed when the user is not in use, avoiding channel congestion and impacting the user experience.
The software upgrade of the Pogo Pin keyboard was completed without affecting user experience, avoiding keyboard input lag, stuttering, and unavailability issues, thus improving the user experience.
Smart Images

Figure CN118245078B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of terminal, in particular to an upgrading method and related equipment thereof. BACKGROUND
[0002] With the development of computer and communication technology, the function of terminal device is more and more powerful. When the terminal device is matched with an external device, more functions can be realized and more application scenarios can be applied. For example, taking a tablet computer (PAD) as an example, when a keyboard is connected to the tablet computer, the tablet computer can be used as a notebook computer, and the user can input text on the tablet computer by using the keyboard.
[0003] A Pogo Pin keyboard is provided in the prior art, and the tablet computer is connected through the connection point of the Pogo Pin interface and the Pogo Pin keyboard. In some scenarios, the software version of the Pogo Pin keyboard can be upgraded through the tablet computer, but the upgrading of the software version of the Pogo Pin keyboard will affect the user's use. SUMMARY
[0004] The present application provides an upgrading method and related equipment thereof, and the terminal device runs the upgrading method when switching to the screen-off state, so as to realize the purpose of upgrading without disturbing the user's use.
[0005] In a first aspect, an upgrading method is provided, which is applied to a terminal device, the terminal device is electrically connected with a Pogo Pin keyboard, and the terminal device is in communication connection with a server. The method comprises the following steps:
[0006] The terminal device is restored to the factory setting, the terminal device is switched from a screen-on state to a screen-off state at a first time point, and the software version of the Pogo Pin keyboard is a first version before the first time point;
[0007] The terminal device remains in the screen-off state within a preset time period from the first time point;
[0008] The software version of the Pogo Pin keyboard is a second version after the preset time period from the first time point;
[0009] The terminal device is restored to the factory setting, the terminal device is switched from the screen-on state to the screen-off state at a second time point, and the software version of the Pogo Pin keyboard is the first version before the second time point;
[0010] The terminal device is switched from the screen-off state to the screen-on state at a third time point, and the third time point is after the second time point;
[0011] In response to a first operation after a preset time length from the second time point, the terminal device displays a software update interface, the software update interface including a first icon, the software version of the Pogo Pin keyboard being the first version, a length of time between the second time point and the third time point being less than the preset time length.
[0012] In response to a second operation on the first icon, the software version of the Pogo Pin keyboard is upgraded to the second version.
[0013] The screen-on state can indicate that the display screen of the terminal device is powered on and displays all or part of the content. The screen-off state can indicate that the display screen of the terminal device is powered off and does not display any content. Alternatively, in some embodiments, the display interface of the display screen of the terminal device can be locked, and the terminal device displays a lock screen interface. The state of the terminal device displaying the lock screen interface can be the screen-on state, or the state of the terminal device displaying the lock screen interface can be the screen-off state.
[0014] The upgrade method provided in the embodiments of the present application uses the switching of the terminal device from the screen-on state to the screen-off state at the first time point as a trigger operation for upgrading, that is, the upgrade process for the Pogo Pin keyboard is started when the terminal device switches from the screen-on state to the screen-off state. When the terminal device remains in the screen-off state from the first time point, the complete upgrade process can be performed, and the upgrade is successful. Since the entire upgrade process is performed in the screen-off state, the upgrade can be performed without affecting the use of the user, thereby achieving the purpose of upgrading without user awareness. In this way, the transmission of the upgrade package during the normal use of the user can be avoided, thereby avoiding the occupation of the channel and causing the problem of keyboard input delay and lag. In addition, the installation of the upgrade package during the normal use of the user can also be avoided, thereby avoiding the problem of keyboard unavailability and affecting the user experience.
[0015] At the second time point, the terminal device switches from the screen-on state to the screen-off state, and during the upgrade, the terminal device switches from the screen-off state to the screen-on state. At this time, the user can need to use the terminal device and the Pogo Pin keyboard, and therefore, the upgrade process is stopped. When the software update interface is opened, the software update interface can include a first icon, to indicate that the user performs a second operation on the first icon. In response to the second operation on the first icon, the upgrade process is continued until the upgrade of the software version is completed.
[0016] With reference to the first aspect, in some implementations of the first aspect, the method further includes:
[0017] The terminal device is restored to factory settings, and at a fourth time point, the terminal device is switched from a screen-on state to a screen-off state, and before the fourth time point, the software version of the Pogo Pin keyboard is the first version;
[0018] At a fifth time point, the terminal device is switched from the screen-off state to the screen-on state, the fifth time point is after the fourth time point, a time length between the second time point and the third time point is less than a time length between the fourth time point and the fifth time point;
[0019] After the fifth time point, in response to a third operation, the terminal device displays a software update interface, and the software update interface displays an installation progress;
[0020] From the fourth time point, after a preset time length, the software version of the Pogo Pin keyboard is the second version, and a time length between the fourth time point and the fifth time point is less than the preset time length.
[0021] In this implementation, at a fourth time point, the terminal device is switched from a screen-on state to a screen-off state, and the upgrading process for the Pogo Pin keyboard is started to be performed. At a fifth time point, the terminal device is switched from the screen-off state to the screen-on state, at this time, since the upgrading package of the second version has been installed, the state switching of the terminal device does not affect the installation, and therefore, the upgrading process can continue to be performed. When the software update interface is opened, the software update interface can display an installation progress.
[0022] With reference to the first aspect, in some implementations of the first aspect, the method further includes:
[0023] The terminal device is restored to factory settings, and at a sixth time point, the terminal device is in a screen-on state, and before the sixth time point, the software version of the Pogo Pin keyboard is the first version;
[0024] From the sixth time point, within a preset time length, the terminal device remains in the screen-on state;
[0025] From the sixth time point, after the preset time length, the software version of the Pogo Pin keyboard is the first version.
[0026] In this implementation, since the terminal device is in the screen-on state from the sixth time point and after the sixth time point, the upgrading is not triggered, and therefore, even if a long time elapses, the software version of the Pogo Pin keyboard is still the first version since no upgrading is performed.
[0027] With reference to the first aspect, in some implementations of the first aspect, the method further includes:
[0028] after the first time point, downloading a second version of the upgrade package;
[0029] after the downloading is completed, when the terminal device is in the screen-off state, transmitting the second version of the upgrade package to the Pogo Pin keyboard;
[0030] after the transmitting is completed, when the terminal device is in the screen-off state, sending an installation instruction to the Pogo Pin keyboard.
[0031] In this implementation manner, since the terminal device is always in the screen-off state, after the downloading is completed, the transmitting can be performed, and after the transmitting is completed, the installation instruction can be sent to the Pogo Pin keyboard for installation.
[0032] With reference to the first aspect, in some implementations of the first aspect, the method further includes:
[0033] at a third time point, the terminal device is downloading the second version of the upgrade package;
[0034] after the downloading is completed, when the terminal device is in the screen-on state, not transmitting the second version of the upgrade package to the Pogo Pin keyboard.
[0035] In this implementation manner, when the terminal device switches from the screen-off state to the screen-on state after the downloading is completed, since the user can need to use the terminal device and the Pogo Pin keyboard, in order to avoid affecting the use of the user, the transmitting is not performed at this time.
[0036] With reference to the first aspect, in some implementations of the first aspect, the method further includes:
[0037] at a third time point, the terminal device is transmitting the second version of the upgrade package;
[0038] after the transmitting is completed, when the terminal device is in the screen-on state, not sending an installation instruction to the Pogo Pin keyboard;
[0039] when the night installation button is in the open state, sending the installation instruction to the Pogo Pin keyboard at a preset night time period.
[0040] In this implementation manner, when the terminal device switches from the screen-off state to the screen-on state after the transmitting is completed, since the user can need to use the terminal device and the Pogo Pin keyboard, in order to avoid affecting the use of the user, the installation is not performed at this time. Since the upgrade package has been transmitted to the Pogo Pin keyboard, the installation can be performed at a subsequent idle time period at night, and the use of the user is not affected.
[0041] In a second aspect, an upgrading method is provided, applied to a terminal device, the terminal device being electrically connected with a Pogo Pin keyboard, and the terminal device being in communication connection with a server, and the method comprises the following steps.
[0042] When the terminal device switches from a screen-on state to a screen-off state, a first instruction is sent to the Pogo Pin keyboard, the first instruction being used to acquire device information of the Pogo Pin keyboard, and a software version of the Pogo Pin keyboard being a first version;
[0043] The device information is received, and the device information comprises the first version.
[0044] A package searching condition is met, and the terminal device sends a package searching request information to the server.
[0045] A downloading condition is met, and after receiving an upgrading package information returned by the server, the terminal device sends a downloading request information to the server, the upgrading package information comprising a second version, and the downloading request information being used to request downloading of the upgrading package of the second version.
[0046] The upgrading package of the second version sent by the server is received.
[0047] A transmission condition is met, and the terminal device and the Pogo Pin keyboard send the upgrading package of the second version to the Pogo Pin keyboard.
[0048] A installing condition is met, and the terminal device sends an installing instruction to the Pogo Pin keyboard to complete the upgrading of the software version, and after the upgrading, the software version of the Pogo Pin keyboard is the second version.
[0049] The upgrading method provided by the embodiments of the present application triggers the upgrading by switching the terminal device to the screen-off state, that is, the terminal device starts the upgrading process for the Pogo Pin keyboard when switching to the screen-off state, so that the upgrading can be performed without affecting the use of the user, and the purpose of upgrading the user without awareness is achieved. In this way, the transmission of the upgrading package in the process of normal use of the user can be avoided, and the channel is occupied, thereby avoiding the problem of keyboard input delay and lag. In addition, the installation of the upgrading package in the process of normal use of the user can also be avoided, thereby avoiding the problem of keyboard unavailability and affecting the user experience.
[0050] In combination with the second aspect, in some implementations of the second aspect, the package searching condition comprises at least one of the following: no package searching is initiated within a third preset time period before the device information is received, the terminal device is connected with the Internet or a mobile communication network.
[0051] In the implementation manner, since the cloud server can not maintain a new version of the upgrade package in a short time, in order to avoid frequently initiating the package searching and related processes and reduce repeated steps, whether the package searching is initiated in the previous third preset time period is detected and judged before the package searching is initiated. In addition, since the package searching cannot be implemented even if the server is initiated when there is no connection to the Internet or the mobile communication network, whether the terminal device is connected to the Internet is detected and judged. Therefore, the package searching can be initiated only when the package searching is not initiated in the previous third preset time period and the terminal device is connected to the Internet, so that the efficiency of the package searching is improved.
[0052] With reference to the second aspect, in some implementations of the second aspect, the download condition comprises that the terminal device is connected to the WiFi, the switch of the WLAN automatic download is in the open state, and the remaining storage space of the terminal device is sufficient; or the terminal device is connected to the mobile communication network, the switch of the mobile communication network download is in the open state, and the remaining storage space of the terminal device is sufficient.
[0053] In the implementation manner, the switch of the WLAN automatic download is in the open state, which indicates that the user hopes to download in the WLAN; and the switch of the WLAN automatic download is in the closed state, which indicates that the user does not hope to download in the WLAN.
[0054] The switch of the mobile communication network download is in the open state, which indicates that the user hopes to download in the mobile communication network, that is, the user does not care about the use of the mobile data flow; and the switch of the mobile communication network download is in the closed state, which indicates that the user does not hope to download in the mobile communication network.
[0055] With reference to the second aspect, in some implementations of the second aspect, the transmission condition comprises that the terminal device is in the screen-off state or the terminal device displays a software update interface.
[0056] In the implementation manner, by detecting the state of the terminal device again before querying whether the Pogo Pin keyboard can be upgraded, problems in the transmission process can be avoided, for example, the use of the terminal device by the user after the downloading is completed or the use of the keyboard can be avoided, the occupation of the single channel by the upgrade package transmission, and thus the problems of the keyboard input delay and lag and the reduction of the user experience.
[0057] With reference to the second aspect, in some implementations of the second aspect, the sending of the second version of the upgrade package to the Pogo Pin keyboard comprises:
[0058] sending a query instruction to the Pogo Pin keyboard, the query instruction indicating whether the Pogo Pin keyboard can be upgraded;
[0059] When the query result returned by the Pogo Pin keyboard indicates that the upgrade is allowed, a negotiation instruction is sent to the Pogo Pin keyboard, the negotiation instruction being used to instruct to negotiate the upgrade parameter;
[0060] The upgrade parameter returned by the Pogo Pin keyboard is received;
[0061] The application data request sent by the Pogo Pin keyboard is received, and the application data is sent to the Pogo Pin keyboard;
[0062] The above step is repeatedly executed multiple times;
[0063] The data reception completion identifier sent by the Pogo Pin keyboard is received.
[0064] In this implementation, because of the limited transmission capability, the data related to the upgrade package needs to be sent to the Pogo Pin keyboard in multiple times, therefore, the receiving of the application data request and the sending of the requested application data need to be repeatedly executed multiple times, and the specific number of times can be selected and adjusted as needed, and the embodiments of the present application do not make any limitation on this. Then, after the transmission is completed, the data reception completion identifier sent by the Pogo Pin keyboard is received to determine that the second version of the upgrade has been completely sent.
[0065] In combination with the second aspect, in some implementation of the second aspect, the installation condition includes that before the installation instruction is sent to the Pogo Pin keyboard, the terminal device is in the screen-off state, or the software update interface is displayed.
[0066] In this implementation, by determining whether the terminal device meets the installation condition, the inconvenience caused to the user by installing the second version of the upgrade package can be avoided. If the terminal device is in the screen-off state, it indicates that the user does not need to use the keyboard for operation at this time, and if the software update interface is displayed, it indicates that the user knows that the Pogo Pin keyboard needs to be operated at this time, and therefore, the installation step in the upgrade process triggered by the screen-off broadcast information at the first time point can be continued to be executed.
[0067] In a third aspect, a terminal device is provided, the terminal device including one or more processors, a memory, the memory being coupled to the one or more processors, the memory being used to store computer program codes, the computer program codes including computer instructions, the one or more processors invoking the computer instructions to cause the terminal device to execute any one of the upgrade methods in the first aspect or any one of the upgrade methods in the second aspect.
[0068] It should be understood that the expansion, limitation, explanation and description of the related content in the above first aspect and second aspect also apply to the same content in the third aspect.
[0069] Fourthly, an upgrade apparatus is provided, including a unit for performing any of the upgrade methods in the first aspect.
[0070] In one possible implementation, when the upgrade device is a terminal device, the processing unit may be a processor, and the input unit may be a communication interface; the terminal device may also include a memory for storing computer program code, which, when the processor executes the computer program code stored in the memory, causes the terminal device to perform any of the methods in the first aspect.
[0071] Fifthly, an upgrade apparatus is provided, including a unit for performing any of the upgrade methods in the second aspect.
[0072] In one possible implementation, when the upgrade device is a terminal device, the processing unit may be a processor, and the input unit may be a communication interface; the terminal device may also include a memory for storing computer program code, which, when the processor executes the computer program code stored in the memory, causes the terminal device to perform any of the methods in the second aspect.
[0073] In a sixth aspect, a chip system is provided, comprising: a processor for retrieving and running a computer program from a memory, causing a device equipped with the chip system to perform any of the upgrade methods of the first or second aspect.
[0074] In a seventh aspect, a computer-readable storage medium is provided, the computer-readable storage medium storing computer program code, which, when executed by a terminal device, causes the terminal device to perform any of the upgrade methods in the first aspect or any of the upgrade methods in the second aspect.
[0075] Eighthly, a computer program product is provided, the computer program product comprising: computer program code, which, when executed by a terminal device, causes the terminal device to perform any of the upgrade methods in the first aspect or any of the upgrade methods in the second aspect. Attached Figure Description
[0076] Figure 1 This is a structural diagram of a tablet computer and a Pogo Pin keyboard.
[0077] Figure 2 yes Figure 1 The diagram shows the tablet and Pogo Pin keyboard before and after connection.
[0078] Figure 3 This is a schematic diagram illustrating an application scenario provided in an embodiment of this application;
[0079] Figure 4 is Figure 5 the corresponding timeline diagram;
[0080] Figure 5 is a flow diagram of an upgrading method provided by the embodiments of the present application;
[0081] Figure 6 is a diagram of a related display interface provided by the embodiments of the present application;
[0082] Figure 7 is a diagram of a related display interface provided by the embodiments of the present application;
[0083] Figure 8 is a diagram of a related display interface provided by the embodiments of the present application;
[0084] Figure 9 is a diagram of a related display interface provided by the embodiments of the present application;
[0085] Figure 10 is a diagram of a related display interface provided by the embodiments of the present application;
[0086] Figure 11 is Figure 12 the corresponding timeline diagram;
[0087] Figure 12 is a flow diagram of another upgrading method provided by the embodiments of the present application;
[0088] Figure 13 is a diagram of a download progress prompt provided by the embodiments of the present application;
[0089] Figure 14 is Figure 15 the corresponding timeline diagram;
[0090] Figure 15 is a flow diagram of another upgrading method provided by the embodiments of the present application;
[0091] Figure 16 is a diagram of an installation progress prompt provided by the embodiments of the present application;
[0092] Figure 17 is Figure 18 the corresponding timeline diagram;
[0093] Figure 18 is a flow diagram of another upgrading method provided by the embodiments of the present application;
[0094] Figure 19 is Figure 20 the corresponding timeline diagram;
[0095] Figure 20 is a flowchart of another upgrading method provided by an embodiment of the present application;
[0096] Figure 21 is a prompt interface provided by an embodiment of the present application;
[0097] Figure 22 is a schematic diagram of a hardware system of a terminal device suitable for the present application;
[0098] Figure 23 is a schematic diagram of a software system of a terminal device suitable for the present application;
[0099] Figure 24 is a structural schematic diagram of a terminal device provided by the present application.
[0100] Reference Signs:
[0101] 100-terminal device; 101-Pogo Pin interface; 102-keyboard manager; 103-software updating application; 104-power button; 200-Pogo Pin keyboard; 201-protection sleeve; 202-keyboard body; 203-Pogo Pin connecting point; 300-server. DETAILED DESCRIPTION
[0102] The technical solutions in the embodiments of the present application will be described below with reference to the drawings.
[0103] With the development of computer and communication technologies, the functions of terminal devices are becoming more and more powerful. When a terminal device is coupled with an external device, more functions can be realized, and more application scenarios can be applied. For example, taking a tablet computer as an example, when a keyboard is externally connected to the tablet computer, the tablet computer can be used as a notebook computer, and the user can input text and other content on the tablet computer by using the keyboard.
[0104] A Pogo Pin keyboard is provided in the prior art. The tablet computer can be connected with the Pogo Pin keyboard through the Pogo Pin interface and the Pogo Pin connecting point of the Pogo Pin keyboard, so as to realize data communication, power transmission and other functions between the two. The Pogo Pin connecting point is a spring type probe formed by a needle shaft, a spring and a needle tube. The Pogo Pin interface refers to a connecting port matched with the Pogo Pin connecting point. The Pogo Pin interface and the Pogo Pin connecting point are usually arranged in pairs in the same number.
[0105] Reference Figure 1 and Figure 2 , Figure 1 shows a structural schematic diagram of a tablet computer and a Pogo Pin keyboard.Figure 2 Fig. 1 shows a schematic diagram of a tablet computer and a Pogo Pin keyboard. Figure 1 Fig. 2 shows schematic diagrams of the tablet computer and the Pogo Pin keyboard before and after connection.
[0106] For example, as shown in (a) of Fig. 1, a Pogo Pin interface 101 is arranged at the lower side of the back of a tablet computer 100 (the side away from the display screen); as shown in (b) of Fig. 1, a Pogo Pin keyboard 200 includes a protective sleeve 201, a keyboard body 202 arranged on one side of the protective sleeve 201, and a Pogo Pin connecting point 203 arranged on the other side of the protective sleeve 201. The Pogo Pin interface 101 on the tablet computer 100 and the Pogo Pin connecting point 203 are connected, and the Pogo Pin connecting point 203 is electrically connected with the keyboard body 202. Figure 1 Figure 1
[0107] Based on the above structure of the tablet computer 100 and the Pogo Pin keyboard 200, during use, the user can lay the side of the protective sleeve 201 where the keyboard body 202 is arranged on a table, and fold the other side where the Pogo Pin connecting point 203 is arranged as a k-line to form a support body inclined relative to the table; then, as shown in (a) of Fig. 2, the back of the tablet computer 100 can be moved downward along the support body to make the Pogo Pin interface 101 arranged on the back of the tablet computer 100 contact with the Pogo Pin connecting point 203 arranged on the protective sleeve 201, so that the tablet computer 100 and the Pogo Pin keyboard 200 are connected, as shown in (b) of Fig. 2. Figure 2 Figure 2
[0108] However, in the prior art, the Pogo Pin keyboard is not foldable, and the Pogo Pin keyboard and the tablet computer are not connected in a way that is convenient for the user. Figure 2 The connection mode shown is that the connection channel of the tablet computer 100 and the Pogo Pin keyboard 200 is a single channel (at a certain moment, only one of the read or write operations can be performed, and data cannot be read and written at the same time), so when the tablet computer 100 transmits the upgrade file to the Pogo Pin keyboard 200, the Pogo Pin keyboard 200 cannot transmit the data input by the user to the tablet computer 100. In addition, after the tablet computer 100 transmits the upgrade file to the Pogo Pin keyboard 200, the Pogo Pin keyboard 200 cannot be used during the process of installing the upgrade package by the Pogo Pin keyboard 200, and these situations will limit the use of the user. If the upgrade is performed during the use of the tablet computer 100 by the user, the situation of lag or non-response of the keyboard will occur, which affects the use experience of the user.
[0109] Therefore, the embodiment of the present application provides an upgrade method, which uses the screen-off broadcast information as a trigger operation for upgrade, that is, when the terminal device receives the screen-off broadcast information, the upgrade process for the Pogo Pin keyboard is started to be performed, so that the upgrade can be performed without affecting the use of the user, and the purpose of upgrading the user without awareness is achieved. In this way, the transmission of the upgrade package during the normal use of the user can be avoided, and the channel is occupied, so that the problem of input delay and lag of the Pogo Pin keyboard occurs; the installation of the upgrade package during the normal use of the user can also be avoided, so that the Pogo Pin keyboard is unavailable, and the problem of affecting the user experience is avoided.
[0110] The application embodiments will be described in detail below. Figures 3 to 18 The upgrade method provided by the application embodiments will be described in detail.
[0111] Reference Figure 3 , Figure 3 A schematic diagram of an application scenario to which the upgrade method provided by the application embodiments is applicable is shown. As shown in Figure 3 , in the application scenario, the terminal device can be a tablet computer as shown in (a) of Figure 1 , and can also be a mobile phone or other devices; the keyboard can be a Pogo Pin keyboard as shown in (b) of Figure 1 . The terminal device is connected with the Pogo Pin keyboard, and the specific connection mode can be connected in the form shown in Figure 2 , or other forms based on the Pogo Pin technology, which is not limited by the application.
[0112] In this application scenario, server 300 is also included, which can also be referred to as the cloud or cloud server. Server 300 can be an independent service device on the Internet, or a cluster service device composed of multiple independent service devices on the Internet. Terminal devices can communicate and connect with server 300 and transmit data after connection. It should be understood that in order to optimize the Pogo Pin keyboard function, the Pogo Pin keyboard software version needs to be upgraded from time to time, and the corresponding upgrade package for the Pogo Pin keyboard will be maintained in the database of server 300.
[0113] In addition, the terminal device 100 may also include a keyboard manager 102 and a software update application 103. The keyboard manager 102 is connected to the software update application 103, with the keyboard manager 102 managing the interaction between the terminal device and the Pogo Pin keyboard, and the software update application 103 managing the interaction between the terminal device 100 and the server 200.
[0114] The upgrade method provided in this application will be described below with reference to specific embodiments.
[0115] refer to Figure 4 and Figure 5 , Figure 5 This is a flowchart illustrating an upgrade method provided in an embodiment of this application. Figure 4 for Figure 5 The corresponding timeline. (See below for details.) Figure 4 right Figure 5 The upgrade method shown will be introduced.
[0116] In one scenario, a user can use the Pogo Pin keyboard to input information on a terminal device, which is in a lit-up state and responds to the user's input. For example... Figure 4 As shown, at the first time point, when the terminal device receives the user's first operation, or when the terminal device does not receive any operation within a first preset time period, the terminal device can switch from a screen-on state to a screen-off state. At this time, the terminal device triggers a packet search process to upgrade the Pogo Pin keyboard's software. If, after triggering the packet search process, that is, after the first time point, the terminal device remains in a screen-off state without change, the terminal device can interact with the server and the Pogo Pin keyboard to complete the software upgrade of the Pogo Pin keyboard. It should be noted that the software upgrade process for the Pogo Pin keyboard includes a packet search process, a download process, a transmission process, and an installation process.
[0117] The package searching process refers to a process in which the terminal device interacts with the Pogo Pin keyboard and the server to query whether there is a new version of the upgrade package, and the new version of the upgrade package can be referred to as a second version of the upgrade package. The downloading process refers to a process in which the terminal device interacts with the server to download the second version of the upgrade package to the terminal device. The transmission process refers to a process in which the terminal device interacts with the Pogo Pin keyboard to transmit the second version of the upgrade package from the terminal device to the Pogo Pin keyboard. The installation process refers to a process in which the terminal device interacts with the Pogo Pin keyboard to install the second version of the upgrade package on the Pogo Pin keyboard.
[0118] Before the first time point, that is, before switching to the screen-off state, the Pogo Pin keyboard is in a screen-on state, and the software version of the Pogo Pin keyboard is a first version. From the first time point, within a preset time length, the terminal device remains in a screen-off state. After the first time point, within the preset time length, the software version of the Pogo Pin keyboard is a second version. The preset time length can be understood as a time length for the terminal device to perform a software upgrade process once.
[0119] Exemplarily, in order to illustrate the switching of the terminal device from the screen-on state to the screen-off state, Figure 6 a related display interface schematic diagram is shown.
[0120] As shown in (a) of FIG. 1, Figure 6 , it can be indicated that the terminal device is in a screen-on state. In the screen-on state, the terminal device can display a lock screen interface, or can also display a related interface in a desktop or an application, and the present application does not make any limitation in this regard. As shown in (b) of FIG. 1, Figure 6 , it can be indicated that the terminal device is in a screen-off state, and in the screen-off state, the terminal device does not display any content. When the terminal device switches from the state shown in (a) of FIG. 1 to the state shown in (b) of FIG. 1, that is, from the screen-on state to the screen-off state. Conversely, when switching from the state shown in (b) of FIG. 1 to the state shown in (a) of FIG. 1, that is, from the screen-off state to the screen-on state. Figure 6 Figure 6 Figure 6 Figure 6
[0121] Optionally, as shown in FIG. 4, Figure 5 , the package searching process in the upgrade method provided by the present application can include the following S401 to S406.
[0122] S401, the terminal device acquires screen-off broadcast information.
[0123] Optionally, the terminal device can include a keyboard manager (Pogo Pin Manager), a window manager (Window Manager Server, WMS), and a software update application. The window manager can send the screen-off broadcast information, and the keyboard manager can listen to the screen-off broadcast information or can receive the screen-off broadcast information. In this application, when the terminal device switches from the screen-on state to the screen-off state, the window manager can send the screen-off broadcast information to the keyboard manager, and after the keyboard manager receives the screen-off broadcast information, the keyboard manager can trigger the software update application to start, and the software update application performs the package searching process.
[0124] It should be understood that in this application, the keyboard manager, the window manager, and the software update application are all software modules, and the sending and receiving between the software modules are essentially function calls.
[0125] Optionally, as an implementation manner, when the terminal device receives a first operation performed by a user, the terminal device switches from the screen-on state to the screen-off state in response to the first operation, and the keyboard manager in the terminal device receives the screen-off broadcast information.
[0126] The first operation can indicate that the user performs a short press operation on a physical button on the terminal device, and can also be a voice operation, etc., and the specific form can be set as needed, and the embodiments of this application have no any limitation thereon. For example, the first operation can be a short press operation performed by the user on the power button of the terminal device, and the short press operation refers to an operation with a press time less than a preset press time. Taking 1 second as the preset press time, the press time less than 1 second can be referred to as a short press operation.
[0127] Exemplarily, as shown in (a) of FIG. 1, Figure 6 When the terminal device is in the screen-on state and displays the lock screen interface, if the user performs a short press operation on the power button 104 arranged on the side frame of the terminal device; in response to the short press operation, the terminal device switches from the screen-on state to the screen-off state as shown in (b) of FIG. 1. Figure 6 When the terminal device switches from the screen-on state to the screen-off state, the window manager can send the screen-off broadcast information to the keyboard manager; when the keyboard manager receives the screen-off broadcast information, the keyboard manager can trigger the software update application to start, and the software update application performs the package searching process.
[0128] Optionally, as another implementation manner, when the terminal device does not receive any operation within a first preset time period, the terminal device switches from the screen-on state to the screen-off state, and the keyboard manager in the terminal device receives the screen-off broadcast information.
[0129] The starting time of the first preset time period is the time of the last operation. The length of the first preset time period can be set as needed. For example, it can be set to 10 seconds, 15 seconds, 20 seconds, or 30 seconds, and the like, and can be set and changed as needed, and the embodiments of the present application do not limit this.
[0130] For example, taking 10 seconds as the first preset time period, if no other operation is received within 10 seconds after the last time the user receives the click operation for the terminal device, when the 10th second is reached, the terminal device can switch from the screen-on state to the screen-off state, and the window manager sends the screen-off broadcast information to the keyboard manager. When the keyboard manager receives the screen-off broadcast information, the software update application is triggered to start, and the software update application performs the package searching process.
[0131] It should be noted that the terminal device switches to the screen-off state, which triggers the package searching process provided by the present application, and does not affect other application programs running in the background of the terminal device. In other words, the application programs running in the background can normally run. For example, the terminal device switches to the screen-off state to trigger the package searching process, and the terminal device can normally play music in the background.
[0132] S402, the terminal device sends a first instruction to the Pogo Pin keyboard. The first instruction is used to instruct to obtain the device information of the Pogo Pin keyboard.
[0133] Optionally, the keyboard manager in the terminal device can send the first instruction to the Pogo Pin keyboard.
[0134] Optionally, after the keyboard manager receives the screen-off broadcast information, the terminal device can first determine whether other operations, such as a short press operation or a voice operation, are received again within a second preset time period. If no other operation is received within the second preset time period, the terminal device can send the first instruction to the Pogo Pin keyboard. If the terminal device receives other operations within the second preset time period, it indicates that the user may need to continue using the terminal device, and the terminal device does not send the first instruction to the Pogo Pin keyboard. Without sending the first instruction, the package searching process is not triggered, and the upgrade package version installed by the Pogo Pin keyboard is still the first version.
[0135] The starting time of the second preset time period is the time when the keyboard manager receives the screen-off broadcast information. The length of the second preset time period can be set as needed. For example, it can be set to 1 second, 2 seconds, or 3 seconds, and the like, and can be set as needed, and the embodiments of the present application do not limit this. Here, two examples are given to illustrate how the keyboard manager determines whether to send the first instruction after receiving the screen-off broadcast information.
[0136] Exemplary one, taking 3 seconds as the second preset time period for example, the terminal device switches from the screen-on state to the screen-off state in response to the short press operation of the user on the power button 104 of the terminal device; if no other operation is received within 3 seconds after switching to the screen-off state, the keyboard manager sends the first instruction to the Pogo Pin keyboard. If the terminal device receives other operation before the 3 seconds elapses, such as an operation of switching from the screen-off state to the screen-on state, at this time, it is indicated that the user needs to continue using the terminal device, and in this case, the terminal device does not send the first instruction to the Pogo Pin keyboard.
[0137] Exemplary two, taking 5 seconds as the second preset time period for example, the terminal device switches from the screen-on state to the screen-off state in response to the short press operation of the user on the power button 104 of the terminal device; if no other operation is received within 5 seconds after switching to the screen-off state, the keyboard manager sends the first instruction to the Pogo Pin keyboard. If the terminal device receives other operation before the 5 seconds elapses, such as a long press operation (taking 1 second as the preset pressing time for example, a pressing time greater than 1 second can be referred to as a long press operation) on the power button, at this time, it is indicated that the user may need to shut down, and the operation of switching from the screen-on state to the screen-off state before that can be a misoperation, and in this case, the terminal device does not send the first instruction to the Pogo Pin keyboard.
[0138] S403, after the Pogo Pin keyboard receives the first instruction, the Pogo Pin keyboard returns device information to the terminal device.
[0139] Optionally, after the keyboard manager in the terminal device receives the device information, the keyboard manager can start a software update application, and the keyboard manager transmits the device information to the software update application. Starting the software update application can also be referred to as running the software update application.
[0140] Exemplarily, the device information can include software version information and hardware information of the Pogo Pin keyboard. The software version information includes, for example, a current software version number, such as a software version number of 2.0.0.66. The software version currently installed on the Pogo Pin keyboard can be referred to as a first version. The hardware information can include, for example, a name, a manufacturer, a model, and a hardware version number.
[0141] S404, after the terminal device receives the device information, the terminal device determines whether a package searching condition is met.
[0142] S405, in the case where the package searching condition is met, the terminal device sends upgrade package request information to a server; the sending of the upgrade package request information is used to initiate package searching.
[0143] In addition, in the case that the package searching condition is not met, the terminal device does not send the upgrade package request information to the server, and the package searching process ends. In this way, the server does not receive the upgrade package request information, and thus the server does not initiate the package searching without receiving the upgrade package request information.
[0144] Optionally, after the keyboard manager in the terminal device receives the device information, the keyboard manager can start the software update application. The keyboard manager transmits the device information to the software update application. After the software update application receives the device information, the software update application determines whether the current package searching condition is met. In the case that the package searching condition is met, the software update application in the terminal device sends the upgrade package request information to the server. In the case that the package searching condition is not met, the software update application in the terminal device does not send the upgrade package request information to the server.
[0145] Optionally, the package searching condition includes at least one of the following: no package searching is initiated within a third preset time period before the device information is received, and the terminal device is connected to the Internet or a mobile communication network. For example, the terminal device can access the Internet by connecting to WiFi. Of course, the package searching condition can also include other contents, which can be set and adjusted as needed, and the embodiments of the present application do not make any limitation in this regard. Here, three examples are listed to illustrate how to determine whether the package searching condition is met.
[0146] Example 1: The package searching condition includes that no package searching is initiated within a third preset time period before the device information is received. In this way, in S404, after the terminal device receives the device information, the terminal device can first determine whether the package searching is initiated within the third preset time period before the device information is received. If the package searching is initiated, the terminal device does not initiate the package searching to the server. If the package searching is not initiated, the terminal device initiates the package searching to the server.
[0147] Example 2: The package searching condition includes that the terminal device is connected to the Internet or a mobile communication network. In this way, in S404, after the terminal device receives the device information, the terminal device can first determine whether the terminal device is connected to the Internet or a mobile communication network, that is, whether the terminal device is connected to the Internet. If the terminal device is connected to the Internet, the terminal device can initiate the package searching to the server. If the terminal device is not connected to the Internet, the terminal device cannot initiate the package searching to the server.
[0148] Example 3: The package searching condition includes that the terminal device does not initiate the package searching within a third preset time period before the device information is received, and the terminal device is connected to the Internet or a mobile communication network. In this way, in S404, after the terminal device receives the device information, the terminal device can determine whether the package searching is initiated within the third preset time period before the device information is received, and determine whether the terminal device is connected to the Internet at this time. If the package searching is not initiated, and the terminal device is connected to the Internet, the terminal device can initiate the package searching to the server. In addition, in other three cases, the terminal device cannot initiate the package searching to the server.
[0149] In the above three examples, the third preset time period can be, for example, 24 hours, 48 hours, etc., and the specific length can be set as needed, and the embodiments of the present application do not make any limitation in this regard.
[0150] It should be understood that, since the cloud server can not maintain a new version of the upgrade package in a short time, in order to avoid frequently initiating the package search and reduce repeated steps, it can be detected and judged whether the package search is initiated in the previous third preset time period before initiating the package search. In addition, since there is no network connection, even if the server initiates the package search, the package search cannot be implemented, and therefore it is necessary to detect and judge whether the terminal device has a network. After the judgment, the package search can be initiated only in the case that the package search is not initiated in the third preset time period before the device information is received and the terminal device is currently connected to the network, thereby improving the efficiency of the package search.
[0151] S406, in the case that there is an upgrade package, the server returns the upgrade package information to the terminal device.
[0152] Exemplarily, in the case that there is an upgrade package, the upgrade package information returned by the server to the terminal device can include the version number, memory occupation and download address of the new version of the upgrade package, etc. The embodiments of the present application take the second version as an example for illustration.
[0153] It should be noted that, if the server does not obtain the new version of the upgrade package after initiating the package search, the server can return the information that there is no new version of the upgrade package to the terminal device, and the terminal device can end the package search process after receiving the information.
[0154] Optionally, as shown in Figure 5 The downloading process in the upgrading method provided by the present application can include the following S501 to S503.
[0155] S501, the terminal device judges whether the downloading condition is met.
[0156] Optionally, after S406, if the upgrade package information received by the terminal device contains the second version, the terminal device can judge whether the downloading condition is met at this time.
[0157] S502, in the case that the downloading condition is met, the terminal device sends the downloading request information to the server, and the downloading request information is used to request to download the new version of the upgrade package.
[0158] In the embodiments of the present application, the downloading request information is used to request to download the second version of the upgrade package.
[0159] S503, the terminal device downloads the upgrade package, that is, the server sends the upgrade package to the terminal device.
[0160] Optionally, in the case that the download condition is met, the software updating application in the terminal device can download the upgrade package of the second version to the local based on the download address, that is, to the terminal device and store.
[0161] In addition, in the case that the download condition is not met, the terminal device does not send the download request information to the server, and the download process ends. In this way, the server also does not receive the download request information, and therefore, without receiving the download request information, the server does not initiate the download.
[0162] Optionally, the software updating application in the terminal device can determine whether the download condition is met at present; in the case that the download condition is met, the software updating application in the terminal device sends the download request information to the server; in the case that the download condition is not met, the software updating application in the terminal device does not send the download request information to the server.
[0163] Optionally, the download condition can include that the terminal device is connected with WiFi, the WLAN automatic download switch is in the open state, and the remaining storage space of the terminal device is sufficient; or the terminal device is connected with a mobile communication network, the mobile communication network download switch is in the open state, and the remaining storage space of the terminal device is sufficient. Of course, the download condition can also include other contents, for example, it can also include that the power of the terminal device is sufficient; the specific setting and adjustment can be made as needed, and the embodiments of the present application do not make any limitation on this. Here, two examples are listed to illustrate how to determine whether the download condition is met.
[0164] Example one, the download condition includes that the terminal device is connected with WiFi, the WLAN automatic download switch is in the open state, and the remaining storage space of the terminal device is sufficient. In this way, after S406, after the terminal device receives the upgrade package information including the second version, the terminal device can first determine whether the terminal device is connected with WiFi, whether the WLAN automatic download switch is in the open state, and whether the remaining storage space of the terminal device is sufficient; if the terminal device is connected with WiFi, the WLAN automatic download switch is in the open state, and the remaining storage space of the terminal device is sufficient, the download can be initiated; if any of the conditions is not met, the download cannot be initiated.
[0165] It should be understood that the WLAN automatic download switch in the open state means that the user allows to automatically perform the download process under WLAN, and therefore, when the condition is met, the download can be initiated; the WLAN automatic download switch in the closed state means that the user does not allow to automatically perform the download process under WLAN, and therefore, when the condition is met, the download cannot be initiated.
[0166] Exemplarily, the download condition comprises that the terminal device is connected with the mobile communication network, the switch for downloading via the mobile communication network is in the open state, and the remaining storage space of the terminal device is sufficient. Thus, after S406, the terminal device can first determine whether the terminal device is connected with the mobile communication network, whether the switch for downloading via the mobile communication network is in the open state, and whether the remaining storage space of the terminal device is sufficient; if the terminal device is connected with the mobile communication network, the switch for downloading via the mobile communication network is in the open state, and the remaining storage space of the terminal device is sufficient, the downloading can be initiated; if any of the conditions is not met, the downloading cannot be initiated.
[0167] It should be understood that, when the switch for downloading via the mobile communication network is in the open state, it means that the user allows the downloading process to be performed via the mobile communication network, i.e., it does not matter that mobile data traffic is used, and thus the downloading can be initiated when the condition is met; when the switch for downloading via the mobile communication network is in the closed state, it means that the user does not allow the downloading process to be performed via the mobile communication network, and thus the downloading cannot be initiated when the condition is met.
[0168] In the above two examples, whether the remaining storage space of the terminal device is sufficient means that the size of the remaining storage space of the terminal device is compared with the occupation amount of the upgrade package of the second version; if the size of the remaining storage space is greater than the occupation amount of the upgrade package of the second version, it means that the remaining storage space is sufficient; if the size of the remaining storage space is less than or equal to the occupation amount of the upgrade package of the second version, it means that the remaining storage space is insufficient.
[0169] Optionally, before the upgrade method provided in the present application is performed, the user can set the switch for downloading via WLAN and / or the switch for downloading via the mobile communication network to be in the open state or the closed state.
[0170] Exemplarily, in order to illustrate the setting manner of the switch for downloading via WLAN and the switch for downloading via the mobile communication network involved in the above downloading process, Figure 7 、 Figure 8 、 Figure 9 and Figure 10 a related display interface schematic diagram is shown.
[0171] As shown in (a) of FIG. 3, Figure 7 , taken as a tablet computer, the desktop 310 of the tablet computer displays a setting APP icon 311; when the user needs to set the switch for downloading via WLAN, the user can first click the icon 311 corresponding to the setting APP, as shown in (b) of FIG. 3; Figure 7 ; in response to the click operation of the user, the tablet computer can display a setting interface 320, as shown in (c) of FIG. 3. Figure 7The settings interface 312 shown in (c) is shown in the left menu bar of the settings interface 312. The system and update options 313 are displayed, as well as other options such as user information, WLAN, mobile communication network, and more connections.
[0172] like Figure 8 As shown in (a), when a user clicks on the system and update option 313, the right-side display area of the tablet computer can display the system and update interface 314 in response to the user's click. This system and update interface 314 includes a software update option 315, as well as other options such as system navigation mode, language and input method, date and time. The user can click on the software update option 315, such as... Figure 8 As shown in (b); in response to a user's click, the right-side display area of the tablet can display the software update interface 316, as shown in [image 1]. Figure 8 As shown in (c) above. The software update interface 316 includes the tablet's name, current software version number, and the names and current software versions of other devices connected to the tablet. For example, if a Pogo Pin keyboard is connected to the tablet, then the Pogo Pin keyboard's name and current software version number will be displayed.
[0173] like Figure 8 As shown in (c), more options 317 are also displayed in the upper right corner of the software update interface 316; users can click on these more options 317, such as... Figure 9 As shown in (a); in response to the user's click, the right-side display area of the terminal device can display a window menu 318 above the software update interface 316, as shown in (a). Figure 9 As shown in (b) of the image. This window menu 318 includes Native Settings 319, which indicates to the user that further settings are available for the tablet. The user can click on Native Settings 319, such as... Figure 9 As shown in (c); in response to the user's click, the right-side display area of the terminal device can display the local settings interface 320, as shown in [image / image]. Figure 10 As shown in (a) in the figure.
[0174] like Figure 10 As shown in (a), a WLAN automatic download switch 321 is displayed in the device settings interface 320. If the switch 321 is currently in the off state, the user can slide the switch 321 to the right, as shown in (a). Figure 10As shown in (b) of FIG. 13, after the switch 321 is turned on, and the terminal device is connected with the WiFi, and the remaining storage space of the terminal device is sufficient, the terminal device can initiate the downloading after receiving the upgrade package information returned by the server, such as initiating the downloading of the upgrade package of the second version of the Pogo Pin keyboard.
[0175] As shown in (a) of FIG. 14, the switch 322 for downloading the mobile communication network is displayed in the local setting interface 320. If the switch 322 is in the off state, the user can perform the opening operation of rightward sliding on the switch 322, as shown in (b) of FIG. 14. Figure 10 Figure 10 As shown in (b) of FIG. 14, after the switch 322 is turned on, and the terminal device is connected with the mobile communication network, and the remaining storage space of the terminal device is sufficient, the terminal device can initiate the downloading after receiving the upgrade package information returned by the server, such as initiating the downloading of the upgrade package of the second version of the Pogo Pin keyboard.
[0176] Optionally, as shown in (a) of FIG. 15, the transmission process in the upgrade method provided in the present application can include the following S601-S608. Figure 5
[0177] S601, the terminal device judges whether the transmission condition is met.
[0178] Optionally, after S503, after the terminal device downloads the upgrade package of the second version, the terminal device can judge whether the transmission condition is met at this time.
[0179] S602, in the case that the transmission condition is met, the terminal device sends a query instruction to the Pogo Pin keyboard, and the query instruction is used to query whether the Pogo Pin keyboard can be upgraded.
[0180] In addition, in the case that the transmission condition is not met, the terminal device does not send the query instruction to the Pogo Pin keyboard, and the transmission process is ended. In this way, the Pogo Pin keyboard also does not receive the query instruction, and then, without receiving the query instruction, the terminal device and the Pogo Pin keyboard do not perform the transmission of the upgrade package of the second version.
[0181] Optionally, the software update application in the terminal device can judge whether the transmission condition is met; in the case that the transmission condition is met, the software update application in the terminal device transmits the query instruction to the Pogo Pin manager, the Pogo Pin manager sends the query instruction to the Pogo Pin keyboard to query whether the Pogo Pin keyboard can be upgraded; in the case that the transmission condition is not met, the software update application in the terminal device does not transmit the query instruction to the Pogo Pin manager, and the Pogo Pin manager also does not send the query instruction to the Pogo Pin keyboard.
[0182] Optionally, the transmission condition can include that the terminal device is in a screen-off state, or the terminal device displays a software update interface. Of course, the transmission condition can also include other contents, for example, whether the terminal device has sufficient power; the specific content can be set and adjusted as needed, and the embodiments of the present application do not make any limitation thereto. Here, two examples are listed to illustrate how to determine whether the transmission condition is met.
[0183] Example 1: The transmission condition includes that the terminal device is in a screen-off state. In this way, after the terminal device downloads the upgrade package of the second version locally, it can determine again whether the terminal device is in a screen-off state; if it is in a screen-off state, it means that the terminal device has not received other operations since receiving the screen-off broadcast information, and the user does not need to use the terminal device and the Pogo Pin keyboard, so the transmission process in the upgrade method can be continued. If it is not in a screen-off state, for example, in a screen-on state (displaying a lock screen interface or a software update interface, etc.), it means that the terminal device has switched the state in response to other operations since receiving the screen-off broadcast information, and the user may need to use the terminal device and the Pogo Pin keyboard, so the terminal device cannot perform transmission at this time, and the subsequent transmission can be performed under the trigger of the user.
[0184] For example, in the above example, the terminal device can determine whether the terminal device is in a screen-off state by obtaining whether the assignment of the power service function power manager is screen off. When the assignment of the power manager is is screen off, it can indicate that the terminal device is in a screen-off state; when the assignment of the power manager is is screen on, it can indicate that the terminal device is in a screen-on state.
[0185] Example 2: The transmission condition includes that the terminal device displays a software update interface. In this way, after the terminal device downloads the upgrade package of the second version locally, it can determine whether the terminal device displays a software update interface; if it is a software update interface, it is considered that the user allows transmission, so the transmission process in the upgrade method can be continued. If it is not a software update interface, for example, it displays a desktop or other application-related interface, it means that the user may need to use the terminal device at this time, in order to avoid misoperation and affect the user experience, the terminal device only stores the downloaded upgrade package, and does not perform transmission.
[0186] For example, in the above example, the terminal device can determine whether the software update interface is displayed according to the running result of the Set Top Activity. For example, in the running result of the Set Top Activity, the name corresponding to the Activity is the software update interface, when the result of Is top activity is true, it indicates that the software update interface is running in the foreground, that is, the software update interface is currently displayed on the terminal device. When the result of Is Top Activity is false, it indicates that the software update interface is not running in the foreground, that is, the software update interface is not currently displayed on the terminal device.
[0187] It should be understood that, before inquiring whether the Pogo Pin keyboard can be upgraded, detecting the state of the terminal device itself again can avoid the situation that the terminal device and the Pogo Pin keyboard are still transmitting the upgrade package and occupying a single channel when the user needs to use the Pogo Pin keyboard, thereby avoiding the problem of delay and lag during the use of the Pogo Pin keyboard by the user.
[0188] S603, the Pogo Pin keyboard receives the inquiry instruction and returns the inquiry result to the terminal device.
[0189] If the inquiry result is to allow upgrading, S604 can be continued after S603. If the inquiry result is not to allow upgrading, the transmission process ends and subsequent transmission is not performed; or, the transmission process ends, but according to a pre-setting on the terminal device, subsequent transmission can be performed at night.
[0190] For example, when the Pogo Pin keyboard is in a low power state; the Pogo Pin keyboard is in a self-recovery process, such as the Pogo Pin keyboard is performing verification or processing problematic data, the inquiry result can indicate that upgrading is not allowed. In addition, when the Pogo Pin keyboard is in a high power state and the like, the inquiry result can indicate that upgrading is allowed.
[0191] Optionally, before performing the upgrading method provided in the present application, the user can set a switch for controlling the transmission at night to be in an open state or a closed state. When the switch is in the open state, during the execution of the transmission process, when the inquiry result returned in S603 indicates that upgrading is not allowed, the transmission process ends and subsequent transmission is performed at night. When the switch is in the closed state, during the execution of the transmission process, when the inquiry result returned in S603 indicates that upgrading is not allowed, the transmission process ends and subsequent transmission is not performed.
[0192] For example, in order to illustrate the setting mode of the switch for the transmission at night involved in the above transmission process, Figure 10A relevant display interface schematic diagram is shown.
[0193] As shown in Figure 10 , taking a tablet computer as an example, when the native setting interface 320 is opened in response to a user's click operation, a night installation switch 323 is displayed in the native setting interface 320. Currently, the switch 323 is in an open state, so when the query result returned by the Pogo Pin keyboard to the terminal device indicates that the upgrade is not allowed in the process of performing the transmission process of the upgrade method, the transmission process ends, but subsequent transmission can be performed at night, such as in the time period from 2:00 to 4:00 in the morning.
[0194] In addition, the user can perform a leftward sliding operation on the switch 323, so that the switch 323 will be changed to a closed state, similar to the closed state of the switch 322 shown in (b) of Figure 10 . When the switch 323 is in the closed state, when the query result returned by the Pogo Pin keyboard to the terminal device indicates that the upgrade is not allowed in the process of performing the transmission process of the upgrade method, the transmission process ends, and subsequent transmission will not be performed.
[0195] S604, the terminal device sends a negotiation instruction to the Pogo Pin keyboard, and the negotiation instruction is used to instruct to negotiate the upgrade parameter.
[0196] Optionally, the software update application in the terminal device can transmit the negotiation instruction to the Pogo Pin manager, and the Pogo Pin manager can issue the transmission negotiation instruction to the Pogo Pin keyboard.
[0197] S605, the Pogo Pin keyboard returns the upgrade parameter to the software update application.
[0198] Optionally, the Pogo Pin keyboard can return the upgrade parameter to the keyboard manager in the terminal device, and the keyboard manager indirectly returns the upgrade parameter to the software update application.
[0199] It should be understood that since the upgrade package data needs to be divided into multiple transmissions due to the transmission capacity of the channel during transmission, the operation process of subsequent transmission can be preset before transmission by using the upgrade parameter. For example, the upgrade parameter can include time intervals for dividing into multiple transmissions, installation time, and other information.
[0200] S606, the Pogo Pin keyboard sends an application data request to the terminal device. The application data request is used to request the terminal device to transmit part of the upgrade package data.
[0201] Optionally, the Pogo Pin keyboard can send a request for application data to a keyboard manager in the terminal device, and the keyboard manager transmits the request for application data to the software update application.
[0202] S607. The terminal device sends a request for application data to the Pogo Pin keyboard.
[0203] Optionally, the software update application in the terminal device returns corresponding application data to the keyboard manager according to the request for application data sent by the Pogo Pin keyboard, and the keyboard manager then distributes the application data to the Pogo Pin keyboard.
[0204] S608. S606 and S607 are repeatedly executed, and when the Pogo Pin keyboard completes the reception of the data of the upgrade package, the Pogo Pin keyboard can return a data reception completion identifier to the terminal device. The data reception completion identifier is used to indicate that the Pogo Pin keyboard has completed the reception of all the data of the upgrade package.
[0205] It should be understood that, due to the transmission capacity limited to a single channel, the data of the second version of the upgrade package needs to be sent to the Pogo Pin keyboard multiple times, and therefore, S606 and S607 need to be repeatedly executed multiple times. The specific number of times can be adjusted according to the data, and the embodiments of the present application do not make any limitation in this regard.
[0206] Optionally, when the Pogo Pin keyboard completes the reception of the data of the upgrade package, the Pogo Pin keyboard can return a data reception completion identifier to the keyboard manager in the terminal device, and the keyboard manager then returns the data reception completion identifier to the software update application.
[0207] Optionally, as shown in FIG. 7B, the installation process in the upgrade method provided in the present application can include the following S701 to S703. Figure 5
[0208] S701. The terminal device determines whether an installation condition is met.
[0209] Optionally, after S608, after the Pogo Pin keyboard returns the data reception completion identifier to the terminal device, the terminal device can determine whether the installation condition is met at this time.
[0210] S702. When the installation condition is met, the terminal device sends an installation instruction to the Pogo Pin keyboard, and the installation instruction is used to instruct the Pogo Pin keyboard to install the upgrade package of the new version. In the embodiments of the present application, the installation instruction is used to instruct the Pogo Pin keyboard to install the upgrade package of the second version.
[0211] In addition, if the installation condition is not met, the terminal device will not send the installation instruction to the Pogo Pin keyboard, and the process ends. In this way, the Pogo Pin keyboard will not receive the installation instruction, and the Pogo Pin keyboard will not install the second version of the upgrade package without receiving the installation instruction.
[0212] Optionally, if the installation condition is met, the software update application in the terminal device can transmit the installation instruction to the keyboard manager, and then the keyboard manager issues the installation instruction to the Pogo Pin keyboard.
[0213] Optionally, the installation condition can include that the terminal device is in a screen-off state, or that the terminal device displays a software update interface. Of course, the installation condition can also include other content, for example, whether the Pogo Pin keyboard has sufficient power. The specific content can be set and adjusted as needed, and the embodiments of the present application do not make any limitation on this. Here, two examples are listed to illustrate how to determine whether the installation condition is met.
[0214] Example 1: The installation condition includes that the terminal device is in a screen-off state. In this way, after S608, the terminal device can determine whether the terminal device is in a screen-off state after sending the second version of the upgrade package to the Pogo Pin keyboard. If it is in a screen-off state, it means that the terminal device has not received other operations, and the user does not need to use the terminal device and the Pogo Pin keyboard at this time, and thus the installation process can be continued. If it is not in a screen-off state, it means that the user may need to use the terminal device and the Pogo Pin keyboard, and thus the terminal device will not send the installation instruction to the Pogo Pin keyboard.
[0215] Example 2: The installation condition includes that the terminal device displays a software update interface. In this way, after S608, the terminal device can determine whether the terminal device displays a software update interface after sending the second version of the upgrade package to the Pogo Pin keyboard. If it displays a software update interface, it means that the user allows the Pogo Pin keyboard to be installed at this time, and thus the installation process can be continued. If it is not a software update interface, such as a related interface of other application programs, it means that the user needs to use the terminal device and the Pogo Pin keyboard, and thus the terminal device will not send the installation instruction to the Pogo Pin keyboard.
[0216] S703, after the Pogo Pin keyboard receives the installation instruction, the installation is performed.
[0217] Optionally, the Pogo Pin keyboard will restart and install during the restart process. The Pogo Pin keyboard is in a disconnected state with the terminal device when it restarts.
[0218] It should be noted that if the Pogo Pin keyboard does not receive the installation instruction after receiving the upgrade package data, the subsequent installation can be performed at night, so as to avoid installation in the process of use of the user. When the installation is completed, that is, after the execution of the upgrade method, the software version of the Pogo Pin keyboard is the second version, and the version of the software package on the Pogo Pin keyboard is upgraded from the first version to the second version.
[0219] In the upgrade method provided in the present application, when the terminal device receives the screen-off broadcast information, that is, when the terminal device switches from the screen-on state to the screen-off state, it can be analyzed that the user does not need to use the Pogo Pin keyboard to perform any operation on the terminal device at this time, and the terminal device will not respond to the operation received on the Pogo Pin keyboard in the screen-off state. Therefore, the present application can use the screen-off broadcast information received by the terminal device as a trigger operation for upgrading; when the terminal device receives the screen-off broadcast information, the upgrade of the Pogo Pin keyboard is triggered, so that the purpose of not affecting the use of the user can be achieved while upgrading.
[0220] In addition, during the upgrading process, since the terminal device always remains in the screen-off state, it indicates that the user does not need to use the terminal device all the time, so that the steps of searching for a package, downloading, transmitting and installing the upgrade package can be performed in sequence under the condition that the package searching condition, the downloading condition, the transmission condition and the installation condition are met, and during the entire upgrading process, no user experience is affected.
[0221] In combination with the upgrade method shown in Figures 4 to 5 , reference is made to Figure 11 and Figure 12 , Figure 12 a flowchart of another upgrade method provided by an embodiment of the present application is shown, Figure 12 which shows the upgrading process when the screen is on during the downloading of the upgrade package. Optionally, after S503, the downloading flowchart can further include S504-S506. Figure 11 for Figure 12 a corresponding time axis diagram. In the following, the upgrade method shown in Figure 11 is introduced. Figure 12 As shown in
[0222] , after the corresponding method, the terminal device can be restored to the state of the first time point. Optionally, the terminal device can be restored to the factory settings. Figure 11 Figure 5 At the second time point, the terminal device is in the state of the first time point.
[0223] At the second time point, the terminal device is in the state of the first time point. Figure 4 Similarly, when the terminal device switches from the screen-on state to the screen-off state, the terminal device triggers an upgrading method for upgrading the software of the Pogo Pin keyboard. If after the triggering, i.e., after the second time point, the terminal device is in the screen-off state, the terminal device can interact with the server and the Pogo Pin keyboard, and sequentially perform a package searching process and a downloading process. As shown in Figure 12 the package searching process provided in this embodiment of this application can be the same as the package searching process shown in S401 to S406, and the downloading process can be the same as the downloading process shown in S501 to S503. For details, refer to the description of S401 to S406 and S501 to S503 above, which will not be repeated here.
[0224] However, unlike Figure 4 , in the process of downloading the upgrade package, i.e., before the downloading is completed, at a third time point, the terminal device switches from the screen-off state to the screen-on state in response to a first operation of the user (for example, including a short pressing operation on the power button and a clicking operation on the display screen), and displays a software update interface. At this time, in the software update interface, the downloading progress of the upgrade package can be displayed; the downloading progress is used to indicate the proportion of the upgrade package data sent by the server to the terminal device in the entire upgrade package. After the downloading is completed (the downloading progress is 100%), the software update interface can display an installation button.
[0225] That is, in the process of downloading with the screen on, after the terminal device downloads the upgrade package of the second version, the terminal device does not continue to perform the transmission process and the installation process, but only displays the installation button. If the user does not perform any operation, after the second time point, a preset time length (a time length in which a software upgrading process should be performed once) elapses, the software update interface still displays the installation button, and the software version of the Pogo Pin keyboard is the first version. If the user performs a clicking operation on the installation button, the transmission process is triggered.
[0226] Therefore, next, the terminal device performs the transmission process and the installation process in response to the clicking operation of the user on the installation button. As shown in Figure 12 the transmission process provided in this embodiment of this application can be the same as the transmission process shown in S601 to S608, and the installation process can be the same as the installation process shown in S701 to S703. For details, refer to the description of S601 to S608 and S701 to S703 above, which will not be repeated here.
[0227] It should be understood that, before the first time point, i.e., before switching to the screen-off state, the software version of the Pogo Pin keyboard is the first version; after the installation process is completed, the software version of the Pogo Pin keyboard is the second version.
[0228] Optionally, as shown inFigure 11 As shown in (a) of FIG. 7, in the process of executing the transmission process, if the terminal device switches from the screen-on state to the screen-off state again at the seventh time point, the switching to the screen-off state does not affect the transmission process and the installation process triggered by the user clicking the installation button, that is, after the transmission process is executed, the subsequent installation process can also be executed normally.
[0229] Optionally, as shown in (b) of FIG. 7, in the process of executing the installation process after the transmission process is executed, if the terminal device switches from the screen-on state to the screen-off state at the eighth time point, the switching to the screen-off state does not affect the installation process after the transmission process triggered by the user clicking the installation button, that is, the installation process can be executed normally until the installation is completed. Figure 11 As shown in (b) of FIG. 7, in the process of executing the installation process after the transmission process is executed, if the terminal device switches from the screen-on state to the screen-off state at the eighth time point, the switching to the screen-off state does not affect the installation process after the transmission process triggered by the user clicking the installation button, that is, the installation process can be executed normally until the installation is completed.
[0230] As shown in (b) of FIG. 7, in the process of executing the installation process after the transmission process is executed, if the terminal device switches from the screen-on state to the screen-off state at the eighth time point, the switching to the screen-off state does not affect the installation process after the transmission process triggered by the user clicking the installation button, that is, the installation process can be executed normally until the installation is completed. Figure 12 As shown in (b) of FIG. 7, in the process of executing the installation process after the transmission process is executed, if the terminal device switches from the screen-on state to the screen-off state at the eighth time point, the switching to the screen-off state does not affect the installation process after the transmission process triggered by the user clicking the installation button, that is, the installation process can be executed normally until the installation is completed. Figure 5 For example, as shown in FIG. 8, after S503, S504-S506 can also be included.
[0231] S504, in response to the first operation of the user, switching from the screen-off state to the screen-on state, and displaying a software update interface; displaying the download progress of the upgrade package in the software update interface.
[0232] The first operation can be a short press operation, a long press operation, etc.
[0233] For example, taking a tablet computer as an example, when the user performs a short press operation on the power button of the tablet computer, the tablet computer can switch from the screen-off state to the screen-on state in response to the short press operation.
[0234] S505, when the download is completed, displaying the installation button in the software update interface.
[0235] S506, the terminal device receives the clicking operation of the user on the installation button.
[0236] It should be noted that when the terminal device switches from the screen-off state to the screen-on state again, the user may need to use the terminal device and the Pogo Pin keyboard, therefore, after the terminal device downloads the upgrade package, the subsequent transmission process and installation process cannot be executed, but the installation button needs to be displayed, and then under the clicking operation of the user on the installation button, the subsequent transmission process and installation process can be executed to complete the software version upgrade.
[0237] For example, in order to illustrate the download progress displayed when the screen is on during the download of the upgrade package, and the installation button after the download is completed, Figure 13 a related interface schematic diagram is shown.
[0238] When the terminal device is downloading an upgrade package, in response to a third user action, it can switch from a screen-off state to a screen-on state and display the software update interface 316 in the settings app. At this time, as... Figure 13 As shown in (a), the terminal device can display the words "Downloading 31%" 325 in the software update interface 316 to inform the user that the upgrade package for the new version of the Pogo Pin keyboard is being downloaded and that 31% of the upgrade package data has been downloaded.
[0239] It should be noted that, in response to the user's third action, when the software update interface is displayed, the terminal device can also trigger a new packet search to the server and execute the corresponding packet search process. However, when determining whether the packet search conditions are met, it will be determined that the time interval between the packet search initiated when the software update interface is displayed and the packet search initiated when the screen is turned off broadcast information is less than a preset time period (such as 24 hours), and therefore the packet search conditions are not met. Thus, a new packet search will not be executed.
[0240] When the terminal device is on and displays the software update interface 316, after the terminal device has finished downloading the new version upgrade package, the install button 326 can be displayed on the software update interface 316 to notify the user that the new version upgrade package corresponding to the Pogo Pin keyboard has been downloaded to the terminal device. The user can then trigger the install button 326 to transfer the package to the Pogo Pin keyboard. Subsequent clicks on the install button 326 by the user can continue the transfer and installation processes.
[0241] Combination Figures 4 to 5 The upgrade method shown is for reference only. Figure 14 and Figure 15 , Figure 15 This is a flowchart illustrating another upgrade method provided in an embodiment of this application. Figure 15 The upgrade process is shown when the screen is on during the transmission process. Figure 14 for Figure 15 The corresponding timeline diagram. (See below for reference.) Figure 14 right Figure 15 The upgrade method shown will be introduced.
[0242] like Figure 14 As shown, with Figure 4 Similarly, at the initial time point, when the terminal device switches from screen-on to screen-off state, it triggers an upgrade method for the Pogo Pin keyboard's software. If, after triggering this upgrade, the terminal device remains in screen-off state, it can interact with the server and the Pogo Pin keyboard to execute the packet search and download processes. Figure 15As shown, the package searching process provided in the embodiments of the present application is the same as the package searching process shown in S401 to S406, and details can be referred to the description of S401 to S406, which will not be repeated here. The downloading process provided in the embodiments of the present application can be the same as the downloading process shown in S501 to S503, and details can be referred to the description of S501 to S503, which will not be repeated here.
[0243] After the downloading process is performed, the terminal device is in the screen-off state, and the terminal device can interact with the Pogo Pin keyboard to perform a transmission process. As shown in Figure 15 , the part of the transmission process provided in the embodiments of the present application is the same as the transmission process shown in S601 to S607, and details can be referred to the description of S601 to S607, which will not be repeated here.
[0244] Optionally, as an implementation manner, different from Figure 4 , after S607, that is, in the process of transmitting the upgrade package, before the transmission is completed, as shown in (a) of Figure 14 , at a third time point, the terminal device switches from the screen-off state to the screen-on state, at this time, the transmission is stopped. In response to a fourth operation, a software update interface is displayed, and the terminal device state is rolled back, and in the software update interface, an installation button is displayed. Then, at a tenth time point, when the terminal device receives the screen-off broadcast information again, a new round of upgrade method can be triggered to be performed, which can be taken as Figure 5 for example.
[0245] It should be understood that, before the first time point, that is, before switching to the screen-off state, in the screen-on state, the software version of the Pogo Pin keyboard is the first version; at the third time point, because the transmission is stopped, the software version of the Pogo Pin keyboard is still the first version; at the tenth time point, the software version of the Pogo Pin keyboard is also the first version.
[0246] As shown in Figure 15 , the upgrade method provided in the embodiments of the present application is taken as Figure 5 for example, after S607, S608, S609 and S801 can also be included.
[0247] S608, the terminal device switches from the screen-off state to the screen-on state, and the transmission is stopped.
[0248] S609, in response to a fourth operation, the terminal device displays a software update interface, and displays an installation button in the software update interface.
[0249] The fourth operation can be a click operation.
[0250] It should be understood that, since the terminal device switches from the screen-off state to the screen-on state in the process of the upgrade package transmission, at this time, the transmission of the second version of the upgrade package has not been completed, and the user may need to use the terminal device and the Pogo Pin keyboard, so the data transmission can be terminated under the screen-on state, and the upgrade can be cancelled; the state on the terminal device will be rolled back to the state of completing the download of the upgrade package, and thus the software update interface can display an installation button to prompt the user that the new version of the upgrade package can be installed by clicking the installation button, and the subsequent transmission to the Pogo Pin keyboard can be performed when the user clicks the installation button.
[0251] S801, the screen-off broadcast information is received again.
[0252] The screen-off broadcast information is received again, and the terminal device can trigger the start of the new upgrade method.
[0253] Optionally, as another implementation manner, different from Figure 4 after S607, that is, in the process of transmitting the upgrade package, before the transmission is completed, as shown in (b) of Figure 14 , at the third time point, the terminal device switches from the screen-off state to the screen-on state, in response to the fifth operation, the software update interface is displayed, and the installation progress can be displayed on the software update interface. At this time, the transmission can be continued until the transmission is completed. When the transmission is completed, the terminal device no longer performs the installation process. The subsequent installation can be completed at night.
[0254] It should be understood that, before the first time point, that is, before switching to the screen-off state, the software version of the Pogo Pin keyboard is the first version; at the third time point, the software version of the Pogo Pin keyboard is still the first version; after the subsequent installation is completed, the software version of the Pogo Pin keyboard is changed from the first version to the second version.
[0255] Exemplarily, in order to illustrate the installation progress and the situation after the installation is completed, Figure 16 the related interface schematic diagram is shown.
[0256] When the terminal device is in the process of transmitting the upgrade package to the Pogo Pin keyboard, the terminal device switches from the screen-off state to the screen-on state, and in response to the fifth operation of the user, the software update interface 316 is displayed, at this time, as shown in (a) of Figure 16 , the terminal device can display the word “44% of installation” 327 in the software update interface 316 to prompt the user that the Pogo Pin keyboard corresponding to the new software version is actually in normal transmission.
[0257] After the installation is completed, as shown in Figure 16As shown in (b), if the user opens the software update interface, it can display "Already the latest version" to indicate that the upgrade is complete and the software on the Pogo Pin keyboard is the latest version.
[0258] It should be noted that, in response to the user's fourth action, when the software application update interface is opened, the terminal device can trigger a new packet search process to the server. However, because the interval between the two packet searches is within the third preset time period (such as 24 hours), the packet search conditions are not met, and thus the packet search process ends.
[0259] In the embodiments provided in this application, during the transmission of the upgrade package to the Pogo Pin keyboard, if the user switches the terminal device from a screen-off state to a screen-on state, the transmission can be stopped, the upgrade can be canceled, and the terminal device's state can be reverted to the pending installation state; if the terminal device displays the software update interface, the install button will be displayed.
[0260] Alternatively, the transmission can continue until it is complete; however, to avoid affecting user experience, the terminal device may not immediately execute the installation process after the transmission is complete. In this way, the Pogo Pin keyboard can complete the installation later at night if it does not receive the installation instruction.
[0261] Combination Figures 4 to 5 The upgrade method shown is for reference only. Figure 17 and Figure 18 , Figure 18 This is a flowchart illustrating another upgrade method provided in an embodiment of this application. Figure 18 This illustrates the upgrade process when the screen is on during the installation process. Optionally, after S703, steps S704 and S801 can be executed. Figure 17 for Figure 18 The corresponding timeline. (See below for details.) Figure 17 right Figure 18 The upgrade method shown will be introduced.
[0262] like Figure 17 As shown, it is possible to Figure 5 After the corresponding method is followed, the terminal device is restored to the state at the first point in time. Optionally, the terminal device can be restored to factory settings.
[0263] At the fourth time point, with Figure 4 Similarly, when the terminal device switches from a screen-on state to a screen-off state, it triggers an upgrade method for the Pogo Pin keyboard's software. If, after this trigger, the terminal device is in a screen-off state, it can interact with the server and the Pogo Pin keyboard, sequentially executing the packet search, download, and transfer processes. Figure 18As shown, the packet search process provided in this embodiment is the same as the packet search processes shown in S401 to S406 above. For details, please refer to the descriptions of S401 to S406 above, which will not be repeated here. The download process provided in this embodiment is the same as the download process shown in S501 to S503 above. For details, please refer to the descriptions of S501 to S503 above, which will not be repeated here. The transmission process provided in this embodiment is the same as the transmission process shown in S601 to S608 above. For details, please refer to the descriptions of S601 to S608 above, which will not be repeated here.
[0264] After the transfer process is complete, the terminal device can interact with the Pogo Pin keyboard to execute the installation process. For example... Figure 18 As shown, some of the installation processes provided in this application embodiment are the same as the transmission processes shown in S701 to S703 above. For details, please refer to the above description of S701 to S703, which will not be repeated here.
[0265] However, with Figure 4 The difference lies in the timing of the upgrade package installation. At the fifth time point, the terminal device switches from a screen-off state to a screen-on state. After the fifth time point, in response to the third operation, the terminal device displays the software update interface, showing the installation progress. At this time, receiving the third operation on the terminal device does not affect the installation process; that is, the installation process can continue until completion. Then, at the ninth time point, when the terminal device receives the screen-off broadcast message again, it can trigger a new round of upgrade methods. This method can... Figure 5 For example.
[0266] It should be understood that before the fourth time point, that is, in the screen-on state before switching to the off state, the Pogo Pin keyboard software package version is version one; at the fifth time point, the installation is still in progress and not yet complete, therefore, the Pogo Pin keyboard software package is still version one. After the installation is completed, the Pogo Pin keyboard software package changes from version one to version two, therefore, at the ninth time point, the Pogo Pin keyboard software package is version two.
[0267] like Figure 18 As shown, the upgrade method provided in this application embodiment uses Figure 5 For example, after any of the steps S701 to S703, S704 may also be included; after installation is complete, S801 may also be included.
[0268] S704. During the installation process, the terminal device switches from a screen-off state to a screen-on state, and the installation continues.
[0269] It should be understood that since the software package on the Pogo Pin keyboard is already being installed, the third operation has no impact on the installation process.
[0270] S801, received the screen-off broadcast message again.
[0271] Upon receiving the screen-off broadcast message again, the terminal device can trigger the execution of a new upgrade method.
[0272] It should be noted that receiving a screen-off broadcast message again can trigger a new upgrade process. If the interval between two screen-off broadcast messages is less than a third preset time period, the packet search condition is not met, and a new packet search process will not be initiated. If the interval between two screen-off broadcast messages is greater than the third preset time period (e.g., 24 hours), the packet search condition is met, and a new packet search can be initiated. If the server returns new upgrade package information to the terminal device after the new packet search, the subsequent upgrade process can continue; if the server does not return new upgrade package information after the new packet search, the process can be terminated.
[0273] In the embodiments provided in this application, after the Pogo Pin keyboard upgrade package is installed, if the user switches the terminal device from a screen-off state to a screen-on state, the screen-on operation has no impact on the installation process, and the installation can continue until it is completed. Subsequently, if the user performs a second screen-off operation, since the Pogo Pin keyboard software version is already version two, the second screen-off operation has no impact on the upgrade process triggered by the first screen-off operation.
[0274] Combination Figures 4 to 5 The upgrade method shown is for reference only. Figure 19 and Figure 20 , Figure 20 This is a flowchart illustrating another upgrade method provided in an embodiment of this application. Figure 20 The upgrade process is shown when the screen lights up after the download conditions are not met. Figure 19 for Figure 20 The corresponding timeline. (See below for details.) Figure 19 right Figure 20 The upgrade method shown will be introduced.
[0275] like Figure 19 As shown, it is possible to Figure 5 After the corresponding method is followed, the terminal device is restored to the state at the first point in time. Optionally, the terminal device can be restored to factory settings.
[0276] At the first point in time, such as Figure 4 As shown, with Figure 20Similarly, when the terminal device switches from the screen-on state to the screen-off state, the terminal device triggers an upgrading method for upgrading the software of the Pogo Pin keyboard. If the terminal device is in the screen-off state after the triggering, that is, after the first time point, the terminal device can interact with the server and the Pogo Pin keyboard to perform a package searching process. As shown in FIG. 6, Figure 4 The package searching process provided by the embodiments of the present application can be the same as the package searching process shown in S401 to S406, and details can be referred to the description of S401 to S406, which will not be repeated here.
[0277] However, unlike Figure 20 , when the downloading process is performed after the package searching process, the terminal device needs to determine whether the downloading condition is met before initiating the downloading, such as Figure 19 The determination step provided by the embodiments of the present application is the same as the content shown in S501 in the above embodiments, and details can be referred to the description of S501, which will not be repeated here. When the terminal device determines that the downloading condition is not met at present, for example, there is not enough remaining storage space, the terminal device will not send the downloading request information to the server, and the downloading process ends here.
[0278] It should be understood that, before the first time point, that is, in the screen-on state before switching to the screen-off state, the software version of the Pogo Pin keyboard is the first version; and when the downloading of the upgrading package is not performed, the software version of the Pogo Pin keyboard is still the first version.
[0279] After that, as shown in FIG. 6, Figure 21 At the eleventh time point after the end, when the terminal device switches from the screen-off state to the screen-on state, the terminal device will not continue the above-mentioned ended downloading process, but in response to the sixth operation of the user, the terminal device displays a software update interface, and can prompt the user that there is a new version of the software of the Pogo Pin keyboard that can be upgraded in the software update interface.
[0280] It should be understood that, at the eleventh time point and after, the software version of the Pogo Pin keyboard is the first version.
[0281] Exemplarily, in order to illustrate the case that after the downloading process is ended due to not meeting the downloading condition, the terminal device is in the screen-on state and prompts the user that there is a new version that can be upgraded, Figure 21 a related interface schematic diagram is shown.
[0282] When the terminal device is in the screen-off state, after the downloading process is ended due to not meeting the downloading condition, if the terminal device switches from the screen-off state to the screen-on state again in response to the multiple click operations of the user, and displays the software update interface 316 in the setting APP. At this time, as shown in FIG. 6, Figure 21As shown in (a) of FIG. 3, the terminal device can display "New version", a marker, and the like in the software update interface 316 to prompt the user that the Pogo Pin keyboard has a new version of upgrade package. The terminal device can also display the version number of the new version of upgrade package, for example, 2.0.0.67.
[0283] In addition, the terminal device can also display an update button 324 to prompt the user to click the update button 324 to trigger the download. Thus, when the user performs a click operation on the update button 323, as shown in (b) of FIG. 3, the terminal device no longer needs to continue to judge the download condition, but can directly initiate the download of the second version of upgrade package. The download process can refer to the description of S502 and S503 in the foregoing embodiments, and will not be described here. Figures 1 to 18
[0284] The foregoing describes the upgrade method and applicable scenarios in several embodiments provided by the present application. Figures 22 to 24 The following describes the software system, hardware system, apparatus, and chip of the terminal device applicable to the present application. Figure 22 The software system, hardware system, apparatus, and chip in the embodiments of the present application can execute the various methods of the foregoing embodiments of the present application, that is, the specific working processes of the various products can refer to the corresponding processes in the foregoing method embodiments.
[0285] Figure 1 A hardware system of a terminal device applicable to the present application is shown. The terminal device 100 can be used to implement the processing steps corresponding to the terminal device in the upgrade method described in the foregoing method embodiments.
[0286] In the embodiments of the present application, the terminal device 100 can be a tablet computer as shown in (a) of FIG. 4, or a mobile phone as shown in (b) of FIG. 4. Figure 2 or Figure 22 The terminal device 100 can also be a mobile phone, a smart screen, a wearable electronic device, a vehicle-mounted electronic device, an augmented reality device, a virtual reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), a projector, and the like, which has a Pogo Pin interface. The specific type of the terminal device 100 is not limited in the embodiments of the present application.
[0287] The terminal device 100 can include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a loudspeaker 170A, a receiver 170B, a microphone 170C, a headset interface 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 can include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0288] It should be noted that Figure 22 The structures shown do not constitute specific limitations on the terminal device 100. In other embodiments of the present application, the terminal device 100 can include more or fewer components than those shown, or the terminal device 100 can include a combination of some of the components shown, or the terminal device 100 can include sub-components of some of the components shown. Figure 22 The structures shown do not constitute specific limitations on the terminal device 100. In other embodiments of the present application, the terminal device 100 can include more or fewer components than those shown, or the terminal device 100 can include a combination of some of the components shown, or the terminal device 100 can include sub-components of some of the components shown. Figure 22 The structures shown do not constitute specific limitations on the terminal device 100. In other embodiments of the present application, the terminal device 100 can include more or fewer components than those shown, or the terminal device 100 can include a combination of some of the components shown, or the terminal device 100 can include sub-components of some of the components shown. Figure 22 The structures shown do not constitute specific limitations on the terminal device 100. In other embodiments of the present application, the terminal device 100 can include more or fewer components than those shown, or the terminal device 100 can include a combination of some of the components shown, or the terminal device 100 can include sub-components of some of the components shown. Figure 22 The components shown can be implemented in hardware, software, or a combination of software and hardware.
[0289] The processor 110 can include one or more processing units. For example, the processor 110 can include at least one of the following processing units: an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, a neural-network processing unit (NPU). Different processing units can be independent devices or integrated devices. The controller can generate operation control signals according to instruction operation codes and timing signals, and complete the control of fetching and executing instructions.
[0290] The processor 110 can also include memory that stores instructions and data used, generated, or created during the execution of software programs. In some embodiments, the memory within the processor 110 is a cache memory. The cache memory can hold instructions or data that the processor 110 has recently accessed, or instructions or data that are frequently accessed. When the processor 110 needs to access this data again, it is available in the cache memory, rather than in the main memory, thus reducing the access time of the processor 110 and improving the efficiency of the system.
[0291] Figure 23 The connection relationship between the modules shown is only illustrative and does not constitute a limitation on the connection relationship between the modules of the terminal device 100. Alternatively, the modules of the terminal device 100 can also adopt a combination of the various connection manners described in the above embodiments.
[0292] The charging management module 140 is configured to receive power from a charger. The charging management module 140 can supply power to the terminal device 100 through the power management module 141 while charging the battery 142. The power management module 141 is configured to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to supply power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be configured to monitor parameters such as the battery capacity, the number of battery cycles, and the battery health status (e.g., leakage, impedance). Alternatively, the power management module 141 can be disposed in the processor 110, or the power management module 141 and the charging management module 140 can be disposed in the same device.
[0293] The wireless communication function of the terminal device 100 can be implemented through devices such as the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor. The antenna 1 and the antenna 2 are configured to transmit and receive electromagnetic wave signals. Each antenna in the terminal device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization rate of the antennas.
[0294] The mobile communication module 150 can provide a solution for wireless communication applied to the terminal device 100, such as at least one of the following solutions: a second generation (2 th generation (3G) mobile communication solution, a fourth generation (4 th generation (3G) mobile communication solution, a fourth generation (4 th generation (3G) mobile communication solution, a fourth generation (4 tha 5th generation, 5G) mobile communication solution.
[0295] The modem processor can include a modulator and a demodulator. The modulator is configured to modulate a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is configured to demodulate a received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal processed by the baseband processor is transmitted to the application processor. The application processor outputs a sound signal through an audio device (e.g., a speaker 170A, a microphone 170B), or displays an image or a video through a display screen 194. In some embodiments, the modem processor can be a separate device. In other embodiments, the modem processor can be independent of the processor 110, and be disposed in the same device as the mobile communication module 150 or other functional modules.
[0296] Similar to the mobile communication module 150, the wireless communication module 160 can also provide a wireless communication solution applied to the terminal device 100, such as at least one of the following solutions: a wireless local area network (WLAN), a Bluetooth (BT), a Bluetooth low energy (BLE), an ultra wide band (UWB), a global navigation satellite system (GNSS), a frequency modulation (FM), a near field communication (NFC), and an infrared (IR) technology.
[0297] In some embodiments, the antenna 1 of the terminal device 100 is coupled with the mobile communication module 150, and the antenna 2 of the terminal device 100 is coupled with the wireless communication module 160, so that the terminal device 100 can communicate with a network and other terminal devices through wireless communication technologies.
[0298] The external memory interface 120 can be used to connect an external memory card, such as a secure digital (SD) card, to expand the storage capacity of the terminal device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to realize a data storage function. For example, music, video, and other files are saved in the external memory card.
[0299] The internal memory 121 can be used to store computer executable program codes including instructions. The internal memory 121 can include a program storage area and a data storage area.
[0300] In some embodiments, the pressure sensor 180A can be disposed on the display screen 194. The pressure sensor 180A can be of various types, such as a resistive pressure sensor, an inductive pressure sensor, or a capacitive pressure sensor. The capacitive pressure sensor can include at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes, and the terminal device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation is applied to the display screen 194, the terminal device 100 detects the touch operation according to the pressure sensor 180A. The terminal device 100 can also calculate the position of the touch according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities can correspond to different operation instructions. For example, when a touch operation with an intensity less than a first pressure threshold is applied to a short message application icon, an instruction to view short messages is executed; when a touch operation with an intensity greater than or equal to the first pressure threshold is applied to the short message application icon, an instruction to create a new short message is executed.
[0301] The fingerprint sensor 180H is used to collect fingerprints. The terminal device 100 can use the characteristics of the collected fingerprints to implement functions such as unlocking, accessing application locks, taking photos, and answering incoming calls.
[0302] The touch sensor 180K, also known as a touch device. The touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 together form a touch screen, also known as a touch screen. The touch sensor 180K is used to detect touch operations applied to it or in its vicinity. The touch sensor 180K can pass the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the terminal device 100 and disposed in a different position from the display screen 194.
[0303] The keys 190 include a power-on key and a volume key. The keys 190 can be mechanical keys or touch keys. The terminal device 100 can receive key input signals to implement functions related to the key input signals.
[0304] The hardware system of the terminal device 100 is described in detail above, and the software system of the terminal device 100 is described below. The software system can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiments of the present application take the layered architecture as an example to describe the software system of the terminal device 100.
[0305] As Figure 23As shown, a software system using a layered architecture is divided into several layers, each of which has a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the software system can be divided into four layers, from top to bottom, application layer, application framework layer, Android Runtime and system library, and kernel layer.
[0306] The application layer can include applications such as calls, navigation, music, video, short messages, etc.
[0307] Exemplarily, the application layer also includes the software update application provided by the embodiments of the present application.
[0308] The application framework layer provides application programming interfaces (APIs) and programming frameworks for the applications of the application layer. The application framework layer can include some predefined functions.
[0309] For example, the application framework layer includes a window manager, a content provider, a view system, a phone manager, a resource manager, and a notification manager. The window manager is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, a lock screen, and a screen capture.
[0310] The content provider is used to store and obtain data, and make the data accessible to applications. The data can include videos, images, audios, dialed and received calls, browsing history and bookmarks, and phone books.
[0311] The view system includes visual controls, such as controls for displaying text and controls for displaying pictures. The view system can be used to build applications. A display interface can be composed of one or more views, for example, a display interface including a short message notification icon can include a view for displaying text and a view for displaying pictures.
[0312] The phone manager is used to provide communication functions of the terminal device 100, such as management of call states (connected or hung up).
[0313] The resource manager provides various resources for applications, such as localized strings, icons, pictures, layout files, and video files.
[0314] The notification manager enables applications to display notification information in the status bar, which can be used to convey messages of the notification type, which can be displayed briefly and then disappear without user interaction.
[0315] Exemplarily, as Figure 3As shown, the application framework layer also includes a keyboard manager provided in embodiments of the present application. The keyboard manager can be used to interact with the software update application.
[0316] The Android Runtime includes a core library and a virtual machine. The Android runtime is responsible for scheduling and managing the Android system.
[0317] The core library contains two parts: one part is a function function that the java language needs to call, and the other part is the core library of Android.
[0318] The application layer and the application framework layer run in the virtual machine. The virtual machine executes the java files of the application layer and the application framework layer into binary files. The virtual machine is used to perform functions such as management of object life cycle, stack management, thread management, security and exception management, and garbage collection.
[0319] The system library can include a plurality of functional modules, for example: a surface manager, media libraries, a three-dimensional graphics processing library (for example: open graphics library for embedded systems (OpenGL ES) and a 2D graphics engine (for example: skia graphics library (SGL)).
[0320] The surface manager is used to manage the display subsystem, and provides a fusion of 2D layers and 3D layers for a plurality of applications.
[0321] The media library supports playback and recording of a plurality of audio formats, playback and recording of a plurality of video formats, and static image files. The media library can support a plurality of audio and video encoding formats, for example: MPEG4, H.264, moving picture experts group audio layer III (MP3), advanced audio coding (AAC), adaptive multi-rate (AMR), joint photographic experts group (JPG), and portable network graphics (PNG).
[0322] The three-dimensional graphics processing library can be used to implement three-dimensional graphics drawing, image rendering, synthesis, and layer processing.
[0323] A two-dimensional graphics engine is a drawing engine for 2D drawing.
[0324] The kernel layer is a layer between hardware and software. The kernel layer can include display drivers, camera drivers, audio drivers, and sensor drivers, and the like.
[0325] The working process of the keyboard manager and the software update application of the terminal device 100 will be described below in conjunction with the scenario shown in FIG. 1. Figure 24
[0326] When the user short presses the power button, the window manager generates screen-off broadcast information in response to the short pressing operation, and sends the screen-off broadcast information to the keyboard manager. When the keyboard manager receives the screen-off broadcast information, the keyboard manager sends a first instruction to the Pogo Pin keyboard. Then, the keyboard manager receives device information returned by the Pogo Pin keyboard and sends the device information to the software update application.
[0327] After receiving the device information, the software update application initiates a package search to a server, receives upgrade package information returned by the server, initiates downloading according to a download address in the upgrade package information, and performs downloading of the second version of the upgrade package. After the downloading is completed, the software update application can send a query instruction to the Pogo Pin keyboard through the keyboard manager to query whether the Pogo Pin keyboard can be upgraded. If the query result returned by the Pogo Pin keyboard is that the Pogo Pin keyboard allows upgrading, the software update application can send a negotiation instruction to the Pogo Pin keyboard through the keyboard manager, and receive returned upgrade parameters. Then, the software update application can receive a data request sent by the Pogo Pin keyboard through the keyboard manager, and send requested data to the Pogo Pin keyboard through the keyboard manager according to the request. The above process is repeated multiple times until all data is sent. The software update application can receive a data reception completion identifier through the keyboard manager, and then sends an installation instruction to the Pogo Pin keyboard through the keyboard manager to instruct the Pogo Pin keyboard to install the second version of the upgrade package.
[0328] Figure 24 FIG. 1 shows a structural schematic diagram of a terminal device provided in the present application. The dashed line in FIG. 4 indicates that the unit or the module is optional, and the terminal device 400 can be used to implement the upgrade method described in the above method embodiments.
[0329] The terminal device 400 comprises one or more processors 401, which can support the terminal device 400 to implement the method in the method embodiments. The processor 401 can be a general-purpose processor or a special-purpose processor. For example, the processor 401 can be a central processing unit (CPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices such as discrete gates or transistor logic devices, or discrete hardware components.
[0330] The processor 401 can be used to control the terminal device 400, execute a software program, and process data of the software program. The terminal device 400 can further comprise a communication unit 405 to realize input (reception) and output (transmission) of signals.
[0331] For example, the terminal device 400 can be a chip, and the communication unit 405 can be an input and / or output circuit of the chip, or the communication unit 405 can be a communication interface of the chip, and the chip can be a component of the terminal device or other terminal devices.
[0332] For another example, the terminal device 400 can be a terminal device, and the communication unit 405 can be a transceiver of the terminal device, or the communication unit 405 can be a transceiver circuit of the terminal device.
[0333] The terminal device 400 can comprise one or more memories 402, which store programs 404 that can be run by the processor 401 to generate instructions 403, so that the processor 401 executes the upgrading method described in the above method embodiments according to the instructions 403.
[0334] Optionally, the memory 402 can further store data. Optionally, the processor 401 can further read the data stored in the memory 402, and the data can be stored in the same storage address as the program 404, or the data can be stored in a different storage address from the program 404.
[0335] The processor 401 and the memory 402 can be separately arranged or integrated together, for example, integrated on a system on chip (SOC) of the terminal device.
[0336] Exemplarily, the memory 402 can be used to store a related program 404 of the upgrading method provided in the embodiments of the present application, and the processor 401 can be used to invoke the related program 404 of the upgrading method stored in the memory 402 during upgrading, and execute the upgrading method of the embodiments of the present application. For example:
[0337] The terminal device is restored to factory settings, at a first time point, the terminal device is switched from a screen-on state to a screen-off state, before the first time point, the software version of the Pogo Pin keyboard is a first version;
[0338] From the first time point, within a preset time length, the terminal device maintains the screen-off state;
[0339] After the preset time length from the first time point, the software version of the Pogo Pin keyboard is a second version;
[0340] The terminal device is restored to factory settings, at a second time point, the terminal device is switched from the screen-on state to the screen-off state, before the second time point, the software version of the Pogo Pin keyboard is the first version;
[0341] At a third time point, the terminal device is switched from the screen-off state to the screen-on state, the third time point is after the second time point;
[0342] After the preset time length from the second time point, in response to a first operation, the terminal device displays a software update interface, the software update interface contains a first icon, the software version of the Pogo Pin keyboard is the first version, and the length of time between the second time point and the third time point is less than the preset time length;
[0343] In response to a second operation on the first icon, the software version of the Pogo Pin keyboard is upgraded to the second version. Or, for another example:
[0344] When the terminal device is switched from the screen-on state to the screen-off state, a first instruction is sent to the Pogo Pin keyboard, the first instruction is used to obtain device information of the Pogo Pin keyboard, and the software version of the Pogo Pin keyboard is a first version;
[0345] The device information is received, and the device information includes the first version;
[0346] The package searching condition is met, and the terminal device sends an upgrading package request information to the server;
[0347] Satisfying a download condition, the terminal device sends download request information to the server after receiving the upgrade package information returned by the server, the upgrade package information comprises a second version, and the download request information is used for requesting to download the upgrade package of the second version;
[0348] Receiving the upgrade package of the second version sent by the server;
[0349] Satisfying a transmission condition, the terminal device sends the upgrade package of the second version to the Pogo Pin keyboard;
[0350] Satisfying an installation condition, the terminal device sends an installation instruction to the Pogo Pin keyboard to complete the upgrade of the software version, and after the upgrade, the software version of the Pogo Pin keyboard is the second version.
[0351] The application further provides a computer program product, which, when executed by a processor 401, implements the upgrade method described in any of the method embodiments of the application.
[0352] The computer program product can be stored in the memory 402, for example, a program 404, which is finally converted into an executable object file capable of being executed by the processor 401 through preprocessing, compiling, assembling and linking and other processing processes.
[0353] The application further provides a computer readable storage medium, which stores a computer program, and the computer program, when executed by a computer, implements the upgrade method described in any of the method embodiments of the application. The computer program can be a high-level language program or an executable target program.
[0354] Optionally, the computer readable storage medium is, for example, the memory 402. The memory 402 can be a volatile memory or a nonvolatile memory, or the memory 402 can include both volatile and nonvolatile memory. The nonvolatile memory can be a read-only memory (ROM), a programmable ROM (PROM), an erasable PROM (EPROM), an electrically EPROM (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as the external cache. By way of example, and not limitation, many forms of RAM are available, for example, a static RAM (SRAM), a dynamic RAM (DRAM), a synchronous DRAM (SDRAM), a double data rate SDRAM (DDR SDRAM), an enhanced SDRAM (ESDRAM), a synchlink DRAM (SLDRAM), and a direct rambus RAM (DR RAM).
[0355] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described apparatus and device and the generated technical effects can refer to the corresponding process and technical effects in the foregoing method embodiments, and will not be described here.
[0356] In several embodiments provided in the present application, the disclosed system, device and method can be implemented in other ways. For example, some features of the above-described method embodiments can be omitted or not executed. The above-described device embodiments are merely illustrative, and the division of units is merely a logical function division. In actual implementation, another division manner can be used, and multiple units or components can be combined or integrated into another system. In addition, the coupling between units or the coupling between components can be direct coupling or indirect coupling. The above coupling includes electrical, mechanical or other forms of connection.
[0357] It should be understood that the size of the serial number of each process in various embodiments of the present application does not mean the order of execution, the execution order of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0358] In addition, the terms "system" and "network" are often used interchangeably herein. The term "and / or" herein is only a description of the associated relationship between the objects, which means that there can be three relationships, for example, A and / or B, which can represent the three cases of A alone, A and B together, and B alone. In addition, the character " / " herein generally represents a "or" relationship between the front and rear associated objects.
[0359] In summary, the above only describes the preferred embodiments of the technical scheme of the present application, and is not used to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. An upgrade method, characterized in that, Applied to a terminal device electrically connected to a Pogo Pin keyboard and communicatively connected to a server, the terminal device includes a tablet computer, the tablet computer includes a keyboard manager, and the method includes: The terminal device is restored to factory settings. At the second time point, the terminal device switches from a screen-on state to a screen-off state. Before the second time point, the software version of the Pogo Pin keyboard is the first version. At the third time point, the terminal device switches from the screen-off state to the screen-on state, and the third time point is after the second time point; Starting from the second time point, after a preset duration, in response to the first operation, the terminal device displays a software update interface; the first operation includes a short press of the power button on the terminal device; the software update interface includes a first icon, which includes an install button; the software version of the Pogo Pin keyboard is the first version, and the time length between the second time point and the third time point is less than the preset duration; In response to a second operation on the first icon, the software version of the Pogo Pin keyboard is upgraded to a second version; the second operation includes a click operation on the installation key; After the second time point, the second version of the upgrade package is downloaded; if the terminal device is in the screen-on state during the download process, the software update interface displays the download progress, and after the download is completed, the software update interface displays the install button; Once the download is complete and the transmission conditions are met, a query command is sent to the Pogo Pin keyboard to check whether the Pogo Pin keyboard allows the upgrade. Receive the query result returned by the Pogo Pin keyboard; if the query result indicates that the upgrade is allowed, send a negotiation instruction to the Pogo Pin keyboard, the negotiation instruction being used to indicate the negotiation upgrade parameters; receive the upgrade parameters returned by the Pogo Pin keyboard to the keyboard manager; receive the application data request sent by the Pogo Pin keyboard to the keyboard manager, and return the corresponding application data to the keyboard manager; send the upgrade package data to the Pogo Pin keyboard through the keyboard manager; During the data transmission of the upgrade package, if the terminal device is in the screen-on state, the data transmission of the upgrade package is terminated, the upgrade is canceled, the state on the terminal device reverts to the state after the upgrade package has been downloaded, and the software update interface displays the install button; After the transmission is completed, if the terminal device is in a screen-off state, an installation command is sent to the Pogo Pin keyboard. The installation command is used to instruct the Pogo Pin keyboard to install the second version of the upgrade package. Alternatively, if the terminal device is in a lit state after the transmission is completed, no installation command will be sent to the Pogo Pin keyboard; when the night installation button is in an on state, an installation command will be sent to the Pogo Pin keyboard during a preset night time period.
2. The method according to claim 1, characterized in that, The method further includes: The terminal device is restored to factory settings. At the fourth time point, the terminal device switches from a screen-on state to a screen-off state. Before the fourth time point, the software version of the Pogo Pin keyboard is the first version. At the fifth time point, the terminal device switches from a screen-off state to a screen-on state. The fifth time point is after the fourth time point, and the duration between the second time point and the third time point is less than the duration between the fourth time point and the fifth time point. After the fifth time point, in response to the third operation, the terminal device displays a software update interface, which shows the installation progress. Starting from the fourth time point, after a preset duration, the software version of the Pogo Pin keyboard is the second version, and the time length between the fourth time point and the fifth time point is less than the preset duration.
3. The method according to claim 1, characterized in that, The method further includes: At the third time point, the terminal device is downloading the second version upgrade package; Once the download is complete, the second version of the upgrade package will not be transmitted to the Pogo Pin keyboard when the terminal device is in a screen-on state.
4. The method according to any one of claims 1 to 3, characterized in that, The method further includes: When the terminal device switches from a screen-on state to a screen-off state, a first instruction is sent to the Pogo Pin keyboard. The first instruction is used to obtain the device information of the Pogo Pin keyboard, and the software version of the Pogo Pin keyboard is the first version. Receive the device information, which includes a first version; If the packet search conditions are met, the terminal device sends an upgrade packet request to the server; If the download conditions are met, after receiving the upgrade package information returned by the server, the terminal device sends a download request to the server. The upgrade package information includes a second version, and the download request is used to request the download of the second version of the upgrade package. Receive the second version upgrade package sent by the server; If the transmission conditions are met, the terminal device sends the second version upgrade package to the Pogo Pin keyboard; the transmission conditions include the terminal device being in the screen-off state, or the terminal device displaying a software update interface; Once the installation conditions are met, the terminal device sends an installation command to the Pogo Pin keyboard, instructing the Pogo Pin keyboard to install the upgrade package and complete the software version upgrade. After the upgrade, the software version of the Pogo Pin keyboard is version two.
5. The method according to claim 4, characterized in that, The packet search conditions include at least one of the following: no packet search has been initiated within a second preset time period before the device information is received; or the terminal device is connected to the Internet or a mobile communication network.
6. The method according to claim 4, characterized in that, The download conditions include having WiFi or WLAN connected and the automatic download switch being turned on, and the terminal device having sufficient remaining storage space; or having a mobile communication network connected and the mobile communication network download switch being turned on, and the terminal device having sufficient remaining storage space.
7. The method according to claim 4, characterized in that, The installation conditions include: before sending the installation command to the Pogo Pin keyboard, the terminal device is in the off-screen state, or the software update interface is displayed.
8. A terminal device, characterized in that, Including processor and memory; The memory is used to store computer programs that can run on the processor; The processor is configured to perform the upgrade method as described in any one of claims 1 to 7.
9. A chip system, characterized in that, Includes: a processor for retrieving and running a computer program from memory, causing a device equipped with the chip system to perform the upgrade method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, the computer program including program instructions that, when executed by a processor, cause the processor to perform the upgrade method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Intelligent television and upgrade method and device thereof
CN103596049A
Display device and upgrading method
CN114610349A