Terminal equipment and equipment control method

By introducing an NFC module into the terminal device to receive power-on commands and control the device to enter the power-on state, the problem of the terminal device being unable to upgrade when powered off is solved, and data transmission and upgrades can be performed without button operation.

CN121997965APending Publication Date: 2026-05-08GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
Filing Date
2024-11-08
Publication Date
2026-05-08

AI Technical Summary

Technical Problem

Terminal devices cannot transmit data when they are powered off, such as when they are packaged, and cannot be upgraded by pressing the power button, resulting in a cumbersome upgrade process and wasted resources.

Method used

The NFC module receives the power-on command when the device is powered off, controls the terminal device to power on, and establishes a target communication connection through the data communication module to transmit data.

Benefits of technology

This enables terminal devices to perform data transmission and upgrades without relying on a power button, simplifying the upgrade process and avoiding resource waste.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121997965A_ABST
    Figure CN121997965A_ABST
Patent Text Reader

Abstract

The invention discloses terminal equipment and an equipment control method. The terminal equipment comprises a near field communication (NFC) module and a data communication module, the NFC module is configured to receive a power-on instruction sent by a card reader when the terminal equipment is in a power-off state; the NFC module is further configured to control the terminal equipment to enter a power-on state based on a power-on instruction; the data communication module is configured to establish a target communication connection when the terminal device is in a power-on state, and the target communication connection is used for data transmission between the terminal device and a server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to equipment control technology, and more particularly to a terminal device and an equipment control method. Background Technology

[0002] In related technologies, data transmission methods for scenarios such as software version upgrades in terminal devices include data transmission via a Universal Serial Bus (USB) interface and Over-the-Air (OTA) technology. Specifically, terminal devices are upgraded via USB during the production, testing, or R&D phases; once the terminal device reaches the user, it is upgraded via OTA. However, if the device is packaged and unopened, the distributor needs to unpack it for the upgrade. After the upgrade, it needs to be repackaged and then either inserted into a USB port for another upgrade or the device needs to be powered on for an OTA upgrade.

[0003] Therefore, in related technologies, when the terminal device is in a powered-off state such as being packaged, it cannot transmit data due to the limitation that the power button cannot be operated. Summary of the Invention

[0004] This application provides a terminal device and a device control method that enable the terminal device to be powered on without relying on a power button.

[0005] The technical solution of this application embodiment is implemented as follows:

[0006] This application provides a terminal device, which includes: a Near Field Communication (NFC) module and a data communication module;

[0007] The NFC module is configured to receive a power-on command sent by the card reader when the terminal device is in a powered-off state.

[0008] The NFC module is also configured to control the terminal device to enter the power-on state based on a power-on command;

[0009] The data communication module is configured to establish a target communication connection when the terminal device is powered on, and the target communication connection is used for data transmission between the terminal device and the server.

[0010] This application provides a device control method applied to a terminal device, the terminal device including: an NFC module and a data communication module; the method includes:

[0011] When the terminal device is powered off, it receives a power-on command sent by the card reader via the NFC module;

[0012] Based on the power-on command, the terminal device is controlled to enter the power-on state via the NFC module;

[0013] When the terminal device is powered on, a target communication connection is established through the data communication module. The target communication connection is used for data transmission between the terminal device and the server.

[0014] The terminal device and device control method provided in this application embodiment, when the terminal device is in a powered-off state, receive a power-on command sent by an NFC card reader based on the NFC chip, and control the terminal device to enter a powered-on state based on the power-on command. In the powered-on state, the terminal device, based on the data communication module, proposes a target communication connection, thereby enabling data transmission with the server based on the target communication connection. In this application embodiment, the trigger condition for the terminal device to enter a powered-off state from the powered-on state is that the NFC chip in the terminal device receives a power-on command. Therefore, the terminal device can be controlled to enter a powered-on state without the need for a power button, eliminating the dependence on a power button for power-on. This allows the terminal device to enter a powered-on state and perform data transmission even when it is packaged or otherwise unable to perform a power button operation. Attached Figure Description

[0015] Figure 1 This is an optional structural diagram of the terminal device provided in an embodiment of this application;

[0016] Figure 2 This is an optional flowchart illustrating the device control method provided in the embodiments of this application;

[0017] Figure 3 This is an optional structural diagram of the terminal device provided in an embodiment of this application;

[0018] Figure 4 This is an optional structural diagram of the terminal device provided in an embodiment of this application;

[0019] Figure 5 This is an optional structural diagram of the terminal device provided in an embodiment of this application;

[0020] Figure 6 This is an optional structural diagram of the terminal device provided in an embodiment of this application;

[0021] Figure 7 This is an optional flowchart illustrating the device control method provided in an embodiment of this application;

[0022] Figure 8 This is an optional structural diagram of the terminal device provided in an embodiment of this application;

[0023] Figure 9This is an optional flowchart illustrating the device control method provided in an embodiment of this application;

[0024] Figure 10 This is an optional structural diagram of the terminal device provided in an embodiment of this application;

[0025] Figure 11 This is an optional structural diagram of the power-on circuit provided in an embodiment of this application;

[0026] Figure 12 This is an optional structural diagram of the power-on circuit provided in an embodiment of this application;

[0027] Figure 13 This is an optional flowchart illustrating the device control method provided in an embodiment of this application;

[0028] Figure 14 This is an optional structural diagram of the power-on circuit provided in an embodiment of this application;

[0029] Figure 15 This is an optional schematic structural diagram of the terminal device provided in the embodiments of this application. Detailed Implementation

[0030] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0031] The following describes various embodiments of the terminal device and device control method provided in this application.

[0032] The terminal device provided in this application embodiment can be as follows: Figure 1 As shown, it includes: an NFC module 101 and a data communication module 102; the NFC module 101 is configured to receive a power-on command sent by a card reader when the terminal device is in a powered-off state; the NFC module 101 is also configured to control the terminal device to enter a powered-on state based on the power-on command; the data communication module 102 is configured to establish a target communication connection when the terminal device is in a powered-on state, the target communication connection being used for data transmission between the terminal device and the server.

[0033] NFC module 101 may be an NFC chip capable of exchanging information with a designated card reader based on NFC.

[0034] The data communication module 102 is a communication chip capable of establishing wireless communication connections such as Bluetooth and WiFi. When the established communication connection is a Bluetooth connection, the data communication module 102 can be a classic Bluetooth chip or BLE. When the established communication connection is a WiFi connection, the data communication module 102 can be a WiFi chip.

[0035] In practical applications, it can be understood that the terminal device includes a device control circuit, which includes... Figure 1 The NFC module 101 and data communication module 102 are shown.

[0036] based on Figure 1 The terminal device described herein, in this application embodiment, provides a device control method, such as... Figure 2 As shown, it includes:

[0037] S201. When the terminal device is powered off, the power-on command sent by the card reader is received via the NFC module.

[0038] S202. Based on the power-on command, the terminal device is controlled to enter the power-on state via the NFC module;

[0039] S203. When the terminal device is powered on, a target communication connection is established. The target communication connection is used for data transmission between the terminal device and the server.

[0040] In this embodiment, the NFC module 101 operates when the terminal device is powered off, and can receive the field strength and NFC signal from the card reader. The NFC module 101 is powered by the power supply in the terminal device. Even when the terminal device is normally powered off or powered off due to low battery, the power supply still has sufficient power to support the operation of the NFC module.

[0041] When the terminal device is powered off, and the card reader approaches the terminal device, it recognizes the NFC module through interaction with the NFC module and sends a power-on command to the NFC module. In this embodiment, the power-on command is a custom command based on the NFC protocol, which can be called a wake-up command. The NDC protocol followed by the NFC module in interacting with the card reader may include, but is not limited to, standards ISO / IEC 14443A or 14443B specified by the International Organization for Standardization (ISO) / International Electrotechnical Commission (IEC).

[0042] The NFC module receives a power-on command from the card reader and controls the terminal device to switch from the power-off state to the power-on state based on the power-on command. When the terminal device enters the power-on state, the data communication module in the terminal device establishes a target communication connection. The terminal device can establish a target communication connection with a specified device. If the target communication connection is a Bluetooth connection, the specified device can be a server with Bluetooth functionality; if the target communication connection is a WiFi connection, the specified device can be a WiFi hotspot device.

[0043] Taking a server with Bluetooth functionality as an example, the terminal device establishes a Bluetooth connection with the server through a data communication module, and then transmits data with the server based on the established Bluetooth connection.

[0044] Taking a designated device as a hotspot device with WiFi functionality as an example, the terminal device establishes a WiFi connection with the hotspot device through a data communication module, thereby transmitting data between the hotspot device and the server.

[0045] In this embodiment of the application, the terminal device can receive data sent by the server and perform operations such as adding, updating, and deleting data in the terminal device.

[0046] In this application embodiment, the scenarios in which the terminal device performs data transmission may include, but are not limited to, the following scenarios: version upgrade, information modification, information query, etc.

[0047] The terminal device and device control method provided in this application embodiment, when the terminal device is in a powered-off state, receive a power-on command sent by an NFC card reader based on the NFC chip, and control the terminal device to enter a powered-on state based on the power-on command. In the powered-on state, the terminal device, based on the data communication module, proposes a target communication connection, thereby enabling data transmission with the server based on the target communication connection. In this application embodiment, the trigger condition for the terminal device to enter a powered-off state from the powered-on state is that the NFC chip in the terminal device receives a power-on command. Therefore, the terminal device can be controlled to enter a powered-on state without the need for a power button, eliminating the dependence on a power button for power-on. This allows the terminal device to enter a powered-on state and perform data transmission even when it is packaged or otherwise unable to perform a power button operation.

[0048] In some embodiments, such as Figure 3 As shown, the terminal device also includes: a power management module 103;

[0049] The NFC module is also configured to send a first power-on signal to the power management module based on a power-on command;

[0050] The power management module is configured to control the terminal device to enter the power-on state based on the first power-on signal.

[0051] based on Figure 3 The terminal device shown in this embodiment, in step S202, controls the terminal device to enter the power-on state via the NFC module based on the power-on command, including the following steps:

[0052] S2021. Based on the power-on command, a first power-on signal is sent to the power management module via the NFC chip;

[0053] S2022. Based on the first power-on signal, the power management module controls the terminal device to enter the power-on state.

[0054] exist Figure 3 In this configuration, the NFC chip is connected to a power management module. The power management module is used to manage the power of the terminal device, and this module can be a power management IC (PMIC).

[0055] The NFC module can be configured with a general-purpose input / output (GPIO) interface that connects to the power management module. The NFC module sends a first power-on signal to the power management module through the GPIO interface. The first power-on signal is used to instruct the power management module to perform a power-on operation.

[0056] When the power management module receives the first power-on signal, it triggers the terminal device to enter the power-on process based on the first power-on signal, thereby enabling the terminal device to enter the power-on state.

[0057] In one possible implementation, the NFC module outputs a first power-on signal, which is received by the power management module. The first power-on signal can be either a high-level signal or a low-level signal. The level or phase of the first power-on signal can be determined based on the power management module's requirement for the power-on signal level.

[0058] When the NFC module outputs a first power-on signal and the power management module receives the first power-on signal, the NFC module and the power management module are directly connected, or a module that does not affect the first power-on signal is connected between them, such as: Figure 4As shown, a power-on control module 104 connects the NFC module 101 and the power management module 103, and is also connected to a power-on button module 105. The power-on control module 104 is configured to AND the power-on signal output by the NFC module and the power-on signal generated by the power-on button module, thereby controlling the power management module to power on the terminal device based on these two signals. The power-on button module can be understood as a module that generates a power-on signal based on the power button.

[0059] In one possible implementation, such as Figure 5 As shown, the terminal device further includes: an inverter module 106;

[0060] The NFC module is configured to output a second power-on signal to the inverter module;

[0061] The inverting module is configured to change the phase of the second power-on signal to obtain the first power-on signal, wherein the phase of the first power-on signal is opposite to that of the second power-on signal;

[0062] The inverting module is configured to output the first power-on signal to the power management module.

[0063] based on Figure 5 The terminal device shown in this embodiment, in step S2021, sends a first power-on signal to the power management module through the NFC chip based on the power-on command, including the following steps:

[0064] S2211. Output a second power-on signal to the inverter module via the NFC module;

[0065] S2212. The phase of the second power-on signal is changed by the inverting module to obtain the first power-on signal, wherein the phase of the first power-on signal is opposite to that of the second power-on signal.

[0066] In this embodiment, the inverting module is configured to invert the input signal and output a signal with the opposite phase to the input signal. The inverting module can be a dedicated inverter chip or an inverting circuit built from analog devices.

[0067] Here, the NFC module outputs a second power-on signal, and the output second power-on signal is input to the inverter module. After the inverter module changes the phase of the first power-on signal, it obtains the first power-on signal and outputs the first power-on signal to the power management module.

[0068] The first power-on signal and the second power-on signal are two signals with opposite phases. In one example, the first power-on signal is a low-level signal and the second power-on signal is a high-level signal.

[0069] It should be noted that when the phase of the power-on signal output by the NFC module is the same as the phase of the power-on signal required by the power management module, there is no need to connect an inverting module between the NFC module and the power management module. When the phase of the power-on signal output by the NFC module is opposite to the phase of the power-on signal required by the power management module, an inverting module is connected between the NFC module and the power management module to invert the phase of the power-on signal output by the NFC module.

[0070] In this embodiment, based on the relationship between the power-on signal output by the NFC module and the power-on signal required by the power management chip, a corresponding device control circuit is provided to adapt to different hardware requirements.

[0071] In some embodiments, such as Figure 6 As shown, the NFC module includes: a first application 106, which is configured with a first associated identifier AID;

[0072] The NFC module is also configured to receive an application selection instruction sent by the card reader;

[0073] The NFC module is also configured to send a confirmation command to the card reader when the application selection command includes the first AID;

[0074] The confirmation command is used to trigger the card reader to send the power-on command.

[0075] based on Figure 6 The terminal device shown, and the device control method provided in this application embodiment, such as Figure 7 As shown, it also includes the following steps:

[0076] S701. Receive the application selection instruction sent by the card reader through the NFC module;

[0077] S702, if the application selection instruction includes a first AID, a confirmation instruction is sent to the card reader via the NFC module; wherein, the first AID is the AID of the first application included in the NFC module, and the confirmation instruction is used to trigger the card reader to send the power-on instruction.

[0078] The first application can be understood as the program code pre-installed in the NFC module. The first application can be used to manage the sending and receiving of information between the terminal device and the card reader. The AID configured for the first application is the first AID. The first AID is stored in the NFC module.

[0079] Before receiving the power-on command from the card reader, the NFC module receives an application selection command from the card reader, which carries the AID of the target application to be selected. In this embodiment, the card reader is specifically designed for the NFC module; therefore, when the card reader is this dedicated card reader, the AID in the application selection command sent by the card reader is the first AID.

[0080] When the NFC module receives an application selection command, it determines whether the application selection command contains the first AID based on its stored first AID. Specifically, it checks whether the AID carried in the application selection command includes the first AID. If the application selection command contains the first AID, it indicates that the card reader is a dedicated NFC reader capable of sending a power-on command to the NFC module, and the NFC module returns a confirmation command to the card reader. Otherwise, it considers the card reader not to be a dedicated NFC reader capable of sending a power-on command to the NFC module, and the NFC module returns an exception command to the card reader.

[0081] Confirmation and exception commands can use different status codes. In one example, the confirmation command uses status code 9000.

[0082] In this embodiment, the NFC module confirms the reader's permission to send a power-on command to the NFC module by comparing the first AID of the built-in first application with the AID included in the received application selection instruction, thereby realizing the reader's verification of the terminal device's power-on permission and ensuring the security of device control.

[0083] In some embodiments, such as Figure 8 As shown, the terminal device further includes: a first processing module 107;

[0084] NFC module 101 is also configured to set the power-on flag to a first value when the terminal device is controlled to enter the power-on state based on a power-on command;

[0085] The first processing module 107 is configured to request the power-on flag bit, and activate the data communication function of the data communication module when the power-on flag bit is the first value.

[0086] The data communication module is further configured to determine connection configuration information and establish the target communication connection based on the connection configuration information when the data communication function is activated.

[0087] based on Figure 8 The terminal device shown, and the device control method provided in this application embodiment, such as Figure 9 As shown, it also includes the following steps:

[0088] S901. When the terminal device is controlled to enter the power-on state based on the power-on command, the power-on flag is set to the first value through the NFC module.

[0089] S902. The power-on flag is requested through the first processing module, and if the power-on flag is set to the first value, the data communication function of the data communication module is activated through the first processing module.

[0090] Accordingly, establishing a target communication connection in S230 includes:

[0091] S2031. When the data communication function of the data communication module is activated, the connection configuration information is determined by the data communication module, and the target communication connection is established based on the connection configuration information.

[0092] When the NFC module controls the terminal device to enter the power-on state, the power-on flag is set to the first value. The power-on flag is used to indicate whether the reason for power-on is the NFC module. The power-on flag with the first value indicates that the reason for power-on is the NFC module.

[0093] In this embodiment of the application, the NFC module may have a built-in register unit, and the identifier bit in the register unit is a power-on identifier bit.

[0094] In one example, the power-on flag is used to indicate whether the power-on is triggered by the NFC module or the power button. A value of 1 indicates the power-on was triggered by the NFC module, while a value of 0 indicates the power-on was triggered by the power button. After the NFC module touches the terminal device to enter the power-on state, the NFC module sets the power-on flag to 1.

[0095] The number of bits in the power-on flag can be set according to actual needs, and the first value can vary depending on the number of bits in the power-on flag.

[0096] After the terminal device enters the power-on state, the first processing module requests a power-on flag from the NFC module and confirms the reason for powering on based on the requested flag. If the reason for powering on is triggered by the NFC module, the data communication function of the data communication module is activated. With the data communication function of the data communication module activated, a target communication connection is established based on preset connection configuration information.

[0097] In this application embodiment, the first processing module can be understood as a processor, such as a combination of one or more of the following: a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MPU), an application processor (AP), a digital signal processor (DSP), and a field programmable gate array (FPGA).

[0098] When the data communication function of the data communication module is activated, a target communication connection is established.

[0099] If the target communication connection is a Bluetooth connection, the data communication module activates the Bluetooth function. After the Bluetooth function is activated, it obtains the preset Bluetooth pairing information, pairs with the specified device based on the preset Bluetooth configuration information, and thus establishes a Bluetooth connection.

[0100] If the target communication connection is a WiFi connection, the data communication module activates the WiFi function. After the WiFi function is activated, it obtains the preset WiFi access information, accesses the corresponding hotspot device based on the preset WiFi access information, and thus establishes a WiFi connection.

[0101] The connection configuration information can be pre-configured in the data communication module or the first processing module. In this embodiment of the application, the storage location of the connection configuration information is not limited.

[0102] In this embodiment, based on the power-on flag, the terminal device is determined to be powered on by the NFC chip. The preset connection configuration information of the terminal device is then obtained, thereby enabling the automatic establishment of the target communication connection. This avoids the invalid acquisition of the preset connection configuration information, which would otherwise trigger the invalid communication connection establishment process and improve the resource utilization of the terminal device.

[0103] It should be noted that, in one possible implementation, when the terminal device is powered off, the data communication module is also powered off, and its data communication function is deactivated. The activation conditions for the data communication module may also include, but are not limited to, the activation of the data communication module as the terminal device transitions from a powered-off state to a powered-on state.

[0104] In some embodiments, such as Figure 10 As shown, the terminal device further includes: a second processing module 108;

[0105] The data communication module is further configured to receive upgrade data for the second application sent by the server based on the target communication connection;

[0106] The data communication module is further configured to send the upgrade data to the second processing module;

[0107] The second processing module is configured to upgrade the version of the second application installed on the terminal device.

[0108] based on Figure 10 The terminal device shown in this application, and the device control method provided in this embodiment, further include the following steps:

[0109] The data communication module receives upgrade data for the second application sent by the server based on the target communication connection; the data communication module sends the upgrade data to the second processing module; and the second processing module upgrades the version of the second application installed on the terminal device.

[0110] The second application is any application installed on the terminal device that is capable of version upgrades. This application may include system programs or applications installed on top of system programs.

[0111] The data communication module receives upgrade data for the second application sent by the server through the target communication connection, and sends the received upgrade data to the second processing module.

[0112] The second processing module can be a processor capable of upgrading terminal devices, such as CPU, GPU, MPU, AP, DSP, FPGA, etc.

[0113] The second processing module and the first processing module can be the same processor or different processors.

[0114] After receiving the upgrade data, the second processing module automatically upgrades the second application based on the upgrade data.

[0115] In this embodiment, the terminal device can be powered on without the power button being actually operated, and after powering on, the application can be automatically upgraded, eliminating the dependence of the upgrade process on the USC interface and OTA upgrade. The terminal device can also upgrade the application version even when it is sealed.

[0116] In some embodiments, the data communication module is configured to receive version information sent by the server based on the target communication connection, the version information being used to indicate the software version of the second application to which the upgrade data is targeted;

[0117] The data communication module is configured to send the version information to the second processing module;

[0118] The second processing module is further configured to match the version information with the device information of the terminal device;

[0119] The second processing module is further configured to upgrade the version of the second application installed on the terminal device when the version information matches the device information.

[0120] The device control method provided in this application embodiment further includes the following steps:

[0121] The data communication module receives version information sent by the server based on the target communication connection. The version information is used to indicate the version of the second application to which the upgrade data is targeted.

[0122] The version information is sent to the second processing module through the data communication module;

[0123] The second processing module matches the version information with the device information of the terminal device.

[0124] Accordingly, the second processing module upgrades the version of the second application installed on the terminal device, including:

[0125] The second processing module upgrades the second application installed on the terminal device when the version information matches the device information.

[0126] In this embodiment of the application, the terminal device can receive version information sent by the server through the target communication connection. This version information is used to indicate the version of the upgrade data stored in the server.

[0127] After receiving the version information, the data communication module sends it to the second processing module. The second processing module verifies the version information based on the terminal device's device information to determine whether the upgrade data is applicable to the terminal device. The terminal device's device information includes, but is not limited to, the terminal device's model, the type of system program, and the version of the system program.

[0128] If the version information matches the device information, the second processing module determines that the terminal device supports the upgrade data to be distributed, and then upgrades the second application based on the upgrade data; if the version information does not match the device information, the second processing module determines that the terminal device does not support the upgrade data to be distributed, and then does not upgrade the second application based on the upgrade data.

[0129] In this embodiment of the application, version information can be carried in the upgrade data and sent to the terminal device, or it can be sent to the terminal device independently of the upgrade data.

[0130] When version information is carried in the upgrade data, if the second processing module determines that the version information matches the device information, it can directly upgrade the second application based on the received upgrade data. If it determines that the version information does not match the device information, it can discard the received upgrade data.

[0131] When the version information carries data independent of the upgrade data, if the second processing module determines that the version information matches the device information, it can send a first response indicating that the upgrade can be performed to the server through the target communication connection. The server then sends the upgrade data to the terminal device based on the received first response, thereby realizing the version upgrade of the second application. If the version information does not match the device information, the second processing module can send a second response indicating that the upgrade is rejected to the server through the target communication connection. The server then stops sending upgrade data to the terminal device based on the received second response.

[0132] In one possible implementation, the terminal device may have pre-set version information for matching device information, thereby comparing the version information for matching device information with the received version information to confirm whether the received version information matches the device information.

[0133] The device control method provided in this application embodiment matches the version information of the upgrade data with the device information of the terminal device before upgrading the second application, thereby verifying the terminal device's support for the upgrade data and determining the next step of processing to avoid the transmission of invalid upgrade data.

[0134] In some embodiments, the second processing module is further configured to obtain the battery information of the terminal device;

[0135] The second processing module is further configured to upgrade the second application installed on the terminal device if the terminal device's battery level is greater than a set battery level based on the battery information.

[0136] The device control method provided in this application embodiment further includes the following steps:

[0137] The power information of the terminal device is obtained through the second processing module;

[0138] Accordingly, the second processing module upgrades the version of the second application installed on the terminal device, including:

[0139] If the second processing module determines that the battery level of the terminal device is greater than a set battery level based on the battery information, it will upgrade the second application installed on the terminal device.

[0140] A preset power threshold is set for comparison with the current power supply level. The device's power information represents the current power supply level. If the current power supply level is greater than or equal to the preset threshold, it indicates that the power supply has sufficient power to support the terminal device in upgrading the second application. If the power supply level is less than the preset threshold, it indicates that the power supply does not have sufficient power to support the terminal device in upgrading the second application.

[0141] In this embodiment of the application, after the terminal device enters the power-on state, the second processing module can obtain power information from the power management module.

[0142] In one possible implementation, if the power supply is less than a set power level, the second processing module instructs the data communication unit to send a low power report to the server, indicating that the current power level of the terminal device does not allow the terminal device to upgrade the second application; upon receiving the low power report, the server does not send version information and / or upgrade data to the terminal device.

[0143] The device control method provided in this application embodiment allows the terminal device to perform a power check after entering the power-on state and before upgrading the second application. This prevents the terminal device from upgrading the second application when the power is too low, ensuring that the upgrade is performed when the terminal device has sufficient power. This avoids data loss and invalid upgrade processes caused by interruptions during the upgrade process due to low power.

[0144] In some embodiments, the data communication module is further configured to receive a shutdown command issued by the server after the second application completes a version upgrade;

[0145] The data communication module is also configured to control the terminal device to enter a shutdown state based on the shutdown command.

[0146] The device control method provided in this application embodiment further includes the following steps:

[0147] After the second application completes its version upgrade, the data communication module receives a shutdown command sent by the server.

[0148] The data communication module controls the terminal device to enter a shutdown state based on the shutdown command.

[0149] In this embodiment of the application, after the data communication module completes the version upgrade of the second application based on the upgrade data, it can receive a shutdown command issued by the server.

[0150] It should be noted that the data communication module can also receive a shutdown command from the server even if the version upgrade of the second application is not completed. At this time, the version upgrade based on the second application is in progress, and the received shutdown command can be ignored.

[0151] Based on the received shutdown command, the data communication module controls the terminal device to switch from the power-on state to the power-off state.

[0152] Here, the data communication module can forward the power-on command to the second processing unit, which then controls the terminal device to enter the power-off state.

[0153] In one possible implementation, after completing the version upgrade of the second application, the second processing unit can directly control the terminal device to enter a shutdown state.

[0154] In this embodiment, the second processing unit can send a shutdown signal to the power management unit, and the power management unit controls the terminal device to enter the shutdown state based on the shutdown signal.

[0155] In this embodiment of the application, after the version upgrade of the second application is completed, the terminal device can be controlled to enter the shutdown state based on the shutdown command, thereby realizing the switch from the power-on state to the shutdown state and realizing shutdown without operation of the power button.

[0156] In this embodiment of the application, when the NFC module includes a first application, the data communication module activates the first application after establishing a target communication connection, and the first application is activated when the terminal device enters a power-off state.

[0157] The following description, using an upgrade scenario as an example, further illustrates the terminal device and device control method provided in the embodiments of this application.

[0158] In related technologies, when a phone needs an upgrade after it has been packaged but not yet sold, the packaging needs to be removed for the upgrade, and then the phone needs to be repackaged afterward. Even worse, if a phone needs an upgrade after being shipped to distributors in various regions, and the distributors are unable to complete the upgrade, the phone must be returned to the manufacturer for the upgrade before being reshipped to the distributors. This process results in a waste of resources and time, including logistics time and costs, packaging costs, etc.

[0159] The device control method provided in this application embodiment utilizes the mobile phone's NFC to power on the phone when it is powered off.

[0160] In related technologies, the power-on circuit, such as Figure 11 As shown, the device includes a power supply 1104 connected to button 1101 and PMIC 1102 via resistor R1103. Button 1101 is the power button. The principle of powering on the phone is as follows: When the button is not pressed, the power-on signal is pulled up to the power supply through resistor R, resulting in a high-level signal. At this time, the PMIC receives the high-level signal and does not perform any action. When the power button is pressed, the power-on signal is grounded through the button, resulting in a low-level signal. At this time, the PMIC receives the low-level signal and enters the power-on process.

[0161] The device control method provided in this application embodiment can be applied to... Figure 12 The power-on circuit shown is as follows: Figure 12 As shown, the power-on signal comes from two sources: one is from button 1101, and the other is from NFC chip 1105, which is connected to NFC antenna 1106. The NFC chip outputs a low-level signal to AND gate 1107 through a specific GPIO interface. This power-on signal and the button-triggered power-on signal are logically ANDed by AND gate 1107, and then used as the PMIC's power-on signal. That is, a low level on either source will trigger a low-level power-on signal. This logical AND circuit can be implemented using a dedicated AND gate integrated circuit (IC) or built from discrete analog devices. Figure 12 In this configuration, the NFC chip 1105 uses the NFC antenna 1106 and the NFC reader 1108 to detect the field strength and transmit / receive commands. The buttons 1101 to AND gate 1107 are included in the mobile phone, which can be located in the mobile phone packaging 1109.

[0162] In this embodiment, a dedicated NFC reader is required to enable the NFC chip to output a power-on signal. This reader and the NFC chip in the mobile phone can exchange pre-agreed commands and responses, ultimately triggering the mobile phone's NFC chip to output the required level signal on a specific GPIO interface. A small applet is pre-installed in the mobile phone's NFC chip to manage information transmission and reception between the phone and the specific reader. The reader is pre-configured with commands to select the mobile phone's applet and to send a Wakeup host command. The mobile phone activates the applet before powering off. After powering off, if the mobile phone's NFC receives the command to select the applet, it responds with a 9000 signal according to the General Partner (GP) protocol. Upon receiving this response signal, the reader sends a Wakeup host command. Upon receiving this command, the mobile phone's NFC chip outputs a low-level signal on a specific GPIO port. The software flow is as follows: Figure 13 As shown, it includes:

[0163] The S1301, NFC reader, and NFC chip are used for identification.

[0164] The NFC reader and NFC chip identify each other based on ISO1442 instructions and responses.

[0165] Before executing S1301, the NFC reader enables NFC field strength.

[0166] S1302, The NFC card reader sends a select AID command to the NFC chip.

[0167] S1303, the NFC chip returns status code 9000 to the NFC reader.

[0168] S1304, the NFC reader sends a wake-up host command to the NFC chip.

[0169] The S1305 NFC chip returns status code 9000 to the NFC reader.

[0170] The NFC reader can disable the NFC scenario after receiving status code 9000.

[0171] After S1305, the NFC chip outputs a low-level signal at a specific GOPI, which is the power-on signal.

[0172] S1301 is used for identification between the NFC reader and the NFC chip. S1301 can use NFC interaction protocols in related technologies, such as ISO14443. The Select AID in S1302 and the Wakeup host command in S1304 are new commands. The status code 9000 in S1303 and S1305 indicates a normal response.

[0173] In this embodiment of the application, in order to distinguish between powering on the mobile phone via a button and powering on via NFC, when powering on via NFC, a register bit is set inside the NFC chip, for example, the register is set to 1, to indicate that the power-on is via NFC; after the mobile phone is powered on, the CPU requests the status of the flag bit from the NFC chip. If it is 1, it indicates that the power-on is via NFC, and if it is 0, it indicates that the power-on is via a button.

[0174] In this embodiment, after the mobile phone is powered on, if it is determined that it was powered on via NFC, it automatically turns on Wi-Fi, searches for and connects to a pre-set Wi-Fi hotspot. After connection, the server sends a software version update corresponding to the phone model. The phone performs software version verification and battery level checks (e.g., if the battery level is below 20%, software updates are not allowed, the phone reports the low battery status to the server, and then shuts down) before performing the software upgrade. After the upgrade is complete, the phone reports the completion status to the server, and then automatically shuts down. The phone software version verification can be understood as verifying whether the software version sent by the server matches the phone model; for example, software version A is suitable for phone model A, and software version B is suitable for phone model B.

[0175] The power-on circuit provided in this application embodiment can also be as follows: Figure 14 As shown, the NFC chip outputs a low-level signal from the GPIO after receiving the NFC power-on command. If the NFC chip outputs a high-level signal, an inverter 1120 is added to the signal line. The inverter circuit can be built using a dedicated inverter chip or analog devices.

[0176] In the device control method provided in this application embodiment, multiple mobile phones can be upgraded simultaneously without unpacking, based on the throughput of the WIFI server.

[0177] The device control method provided in this application adds an NFC contactless (non-contact) power-on method to the existing button-based power-on method. This enables the phone to automatically power on without opening the packaging, thereby completing automatic WIFI connection and phone software version upgrade. This solves the problem of performing software upgrades without opening the packaging of the phone, improving efficiency and saving upgrade costs.

[0178] This application provides a schematic structural diagram of a terminal device 1500. Figure 15 The terminal device 1500 shown includes a processor 1510. The processor 1510 can call and run computer programs from memory to implement the device control method in the embodiments of this application.

[0179] Optionally, such as Figure 15 As shown, the terminal device 1500 may further include a memory 1520. The processor 1510 can retrieve and run computer programs from the memory 1520 to implement the device control method described in this embodiment.

[0180] The memory 1520 can be a separate device independent of the processor 1210, or it can be integrated into the processor 1510.

[0181] Optionally, such as Figure 15 As shown, the terminal device 1500 may further include a transceiver 1530, which the processor 1510 can control to communicate with other devices, specifically, to receive signals sent by other devices. Here, the transceiver may include at least two antennas.

[0182] Understandably, a transceiver includes multiple physical paths for receiving or transmitting signals, and the physical components on one or more physical paths for transmitting signals constitute a transmitter. The MPR value of each physical path in the transmitter is independent.

[0183] Optionally, the terminal device 1200 can implement the corresponding processes implemented by the terminal device in the various methods of the embodiments of this application. For simplicity, these will not be elaborated here. It should be understood that the processor in the embodiments of this application may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiments can be completed by the integrated logic circuit in the hardware of the processor or by instructions in the form of software. The processor mentioned above may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software module can reside in a mature storage medium in the field, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above method.

[0184] It is understood that the memory in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct Rambus RAM (DR RAM). It should be noted that the memory used in the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0185] It should be understood that the above-described memory is exemplary but not restrictive. For example, the memory in the embodiments of this application may also be static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DR RAM), etc. That is to say, the memory in the embodiments of this application is intended to include, but is not limited to, these and any other suitable types of memory.

[0186] This application also provides a computer-readable storage medium for storing computer programs.

[0187] Optionally, the computer-readable storage medium can be applied to the terminal device in the embodiments of this application, and the computer program causes the computer to execute the corresponding processes implemented by the terminal device in the various methods of the embodiments of this application. For the sake of brevity, it will not be described in detail here.

[0188] This application also provides a computer program product, including computer program instructions.

[0189] Optionally, the computer program can be applied to the terminal device in the embodiments of this application. When the computer program is run on the computer, it causes the computer to execute the corresponding processes implemented by the terminal device in the various methods of the embodiments of this application. For the sake of brevity, it will not be described in detail here.

[0190] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0191] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0192] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or target communication connection shown or discussed may be through some interfaces; the indirect coupling or target communication connection of apparatuses or units may be electrical, mechanical, or other forms.

[0193] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0194] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0195] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0196] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A terminal device, characterized in that, The terminal device includes: a near-field communication (NFC) module and a data communication module; The NFC module is configured to receive a power-on command sent by the card reader when the terminal device is in a powered-off state. The NFC module is also configured to control the terminal device to enter the power-on state based on a power-on command; The data communication module is configured to establish a target communication connection when the terminal device is powered on, and the target communication connection is used for data transmission between the terminal device and the server.

2. The terminal device according to claim 1, characterized in that, The terminal device also includes: a power management module; The NFC module is also configured to send a first power-on signal to the power management module based on a power-on command; The power management module is configured to control the terminal device to enter the power-on state based on the first power-on signal.

3. The terminal device according to claim 2, characterized in that, The terminal device further includes: an inverter module; The NFC module is configured to output a second power-on signal to the inverter module; The inverting module is configured to change the phase of the second power-on signal to obtain the first power-on signal, wherein the phase of the first power-on signal is opposite to that of the second power-on signal; The inverting module is configured to output the first power-on signal to the power management module.

4. The terminal device according to claim 1, characterized in that, The NFC module includes: a first application, which is configured with a first associated identifier (AID); The NFC module is also configured to receive an application selection instruction sent by the card reader; The NFC module is also configured to send a confirmation command to the card reader when the application selection command includes the first AID; The confirmation command is used to trigger the card reader to send the power-on command.

5. The terminal device according to claim 1, characterized in that, The terminal device further includes: a first processing module; The NFC module is also configured to set the power-on flag to a first value when the terminal device is controlled to enter the power-on state based on a power-on command; The first processing module is configured to request the power-on flag bit, and activate the data communication function of the data communication module when the power-on flag bit is the first value. The data communication module is further configured to determine connection configuration information and establish the target communication connection based on the connection configuration information when the data communication function is activated.

6. The terminal device according to claim 1, characterized in that, The terminal device further includes: a second processing module; The data communication module is further configured to receive upgrade data for the second application sent by the server based on the target communication connection; The data communication module is further configured to send the upgrade data to the second processing module; The second processing module is configured to upgrade the version of the second application installed on the terminal device.

7. The terminal device according to claim 6, characterized in that, The data communication module is configured to receive version information sent by the server based on the target communication connection, wherein the version information is used to indicate the software version of the second application to which the upgrade data is targeted; The data communication module is configured to send the version information to the second processing module; The second processing module is further configured to match the version information with the device information of the terminal device; The second processing module is further configured to upgrade the version of the second application installed on the terminal device when the version information matches the device information.

8. The terminal device according to claim 6, characterized in that, The second processing module is further configured to acquire the power information of the terminal device; The second processing module is further configured to upgrade the second application installed on the terminal device if the terminal device's battery level is greater than a set battery level based on the battery information.

9. The terminal device according to claim 6, characterized in that, The data communication module is further configured to receive a shutdown command sent by the server after the second application completes a version upgrade; The data communication module is also configured to control the terminal device to enter a shutdown state based on the shutdown command.

10. A device control method, characterized in that, The method is applied to a terminal device, the terminal device including: a near-field communication (NFC) module and a data communication module; the method includes: When the terminal device is powered off, it receives a power-on command sent by the card reader via the NFC module; Based on the power-on command, the terminal device is controlled to enter the power-on state via the NFC module; When the terminal device is powered on, a target communication connection is established, which is used for data transmission between the terminal device and the server.