Network data processing method, device, and electronic device
By adopting a dual-core dual-system architecture in smart wearable devices and utilizing a low-power second processor and short-range communication technology, the high power consumption problem of network data processing in low-performance systems is solved, and low-power network data processing is achieved.
Patent Information
- Application Number
- CN202110032344.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-11
- Publication Date
- 2025-09-05
- Estimated Expiration
- 2041-02-28
AI Technical Summary
Traditional smart wearable devices cannot effectively process network data under low-performance systems, resulting in high power consumption.
It adopts a dual-core dual-system architecture and uses a low-power second processor to obtain network data through short-range communication, including Bluetooth or NFC technology, to achieve network data processing under low-performance systems.
The network data processing is controlled by a low-power second processor, which reduces the power consumption of the device and extends the standby time.
Smart Images

Figure CN114765759B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a network data processing method, device, electronic device, and computer-readable storage medium. Background Art
[0002] Smart wearable devices are becoming increasingly popular, especially smart watches and wristbands, which are becoming increasingly popular among young people. Smart wearable devices not only have the functions of traditional watches, such as clocks, but also some of the functions of other electronic devices, such as network data display and playback.
[0003] However, the traditional method of using smart wearable devices to process network data can only complete network data processing through systems with higher performance, and cannot obtain network data under low-performance systems, and consumes high power. Summary of the Invention
[0004] The embodiments of the present application provide a network data processing method, device, electronic device, and computer-readable storage medium. The entire network data processing process is in a second system state, controlled by a low-power processor, requests network data from a terminal through short-range communication, and completes network data processing through a low-performance system, saving power consumption.
[0005] A network data processing method is applied to a wearable device, wherein the wearable device includes a first processor and a second processor, wherein the first processor controls a first system and the second processor controls a second system. When the wearable device is in the second system state, the power consumption of the second processor is lower than the power consumption of the first processor. The method includes:
[0006] Obtaining a network data request issued by an application, and sending the network data request to a terminal connected to the wearable device via a short-range communication method;
[0007] receiving target network data returned by the terminal according to the network data request;
[0008] The target network data is delivered to the application.
[0009] A network data processing device is applied to a wearable device, the wearable device comprising a first processor and a second processor, wherein the first processor controls a first system and the second processor controls a second system. When the wearable device is in the second system state, the power consumption of the second processor is lower than that of the first processor. The device comprises:
[0010] a request sending module, configured to obtain a network data request issued by an application, and send the network data request to a terminal connected to the wearable device via a short-range communication method;
[0011] A receiving module, configured to receive target network data returned by the terminal according to the network data request;
[0012] A delivery module is configured to deliver the target network data to the application.
[0013] An electronic device includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the above method.
[0014] A computer-readable storage medium stores a computer program, which implements the steps of the above method when executed by a processor.
[0015] The above-mentioned network data processing method, device, electronic device and computer-readable storage medium are applied to wearable devices. The wearable device includes a first processor and a second processor. The first processor controls the first system and the second processor controls the second system. The wearable device is in the second system state. The power consumption of the second processor is lower than the power consumption of the first processor. The network data request issued by the application is obtained, and the network data request is sent to a terminal that has established a connection with the wearable device through a short-range communication method; the target network data returned by the terminal according to the network data request is received; the target network data is passed to the application, and communication is carried out between the wearable device and the terminal through a short-range communication method. The network data required by the application is returned with the help of the terminal. The entire network data processing process is in the second system state and is controlled by a low-power processor. The network data processing is completed through a low-performance system, which can save power consumption. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0017] Figure 1 A diagram showing an application environment of a network data processing method in one embodiment;
[0018] Figure 2 is a flow chart of a network data processing method in one embodiment;
[0019] Figure 3A flowchart of uplink data packet transmission in one embodiment;
[0020] Figure 4 is a schematic diagram of the internal structure of a wearable device in one embodiment;
[0021] Figure 5 is an interactive schematic diagram of a network data processing method in a specific embodiment;
[0022] Figure 6 is a structural block diagram of a network data processing device in one embodiment;
[0023] Figure 7 FIG. 1 is a schematic diagram of the internal structure of an electronic device in one embodiment. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solutions and advantages of this application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0025] It is understood that the terms "first," "second," and the like used herein may be used to describe various elements, but these elements are not limited by these terms. These terms are used solely to distinguish a first element from another element. For example, a first processor may be referred to as a second processor, and vice versa, without departing from the scope of this application; both are processors, but they are not the same processor.
[0026] Figure 1 FIG. 1 is a schematic diagram of an application environment of a network data processing method in an embodiment. Figure 1As shown, the application environment includes a wearable device 100 and a terminal 200, and the wearable device includes a first processor 110 and a second processor 120. The first processor 110 and the second processor 120 are both microprocessors, wherein the first processor 110 can be used as a main processor and the second processor 120 can be used as a coprocessor. The first processor 110 and the second processor 120 can be configured with corresponding microprocessors according to actual applications, such as the first processor 110 is configured as a Qualcomm processor and the second processor 120 is configured as an MCU processor. The first processor 110 and the second processor 120 are not limited here. The first processor 110 and the second processor 120 respectively integrate different operating systems, the first processor controls the first system, and the second processor controls the second system. The power consumption of the first system integrated by the first processor 110 is higher than the power consumption of the second system integrated by the second processor 120. The second processor has lower power consumption than the first processor and cannot directly access the Internet via the WiFi module. The first processor can communicate with the WiFi module and access the Internet via the WiFi module. For example, the first processor 110 can be a CPU (Central Process Unit) processor, and the corresponding first system can be an Android system; the second processor 120 can be an MCU (Microcontroller Unit) processor; and the corresponding second system can be an RTOS (Real Time Operating System). That is, the wearable device is a dual-core dual-system electronic device.
[0027] Among them, the wearable device can be but is not limited to a smart watch, a smart bracelet, etc. The wearable device may include multiple operating states. The first system state refers to the wearable device running the systems in the first processor 110 and the second processor 120 at the same time, such as running the Android system and the RTOS system at the same time, which can not only ensure the operation of the basic functions of the wearable device, but also ensure the operation of the extended functions of the wearable device, providing more complete functions. The second system state refers to the wearable device mainly running or only running the system in the second processor 120, such as turning off the Android system and only running the RTOS system, which can provide low-power ultra-long standby capability. Among them, the main frequency of the CPU can reach 1.2GHz (gigahertz), and the main frequency of the MCU is about 320MHz (megahertz), so the power consumption of the first processor is higher than that of the second processor, and the power consumption of the first system is higher than that of the second system.
[0028] Figure 2 Flowchart of a network data processing method in one embodiment. The network data processing method in this embodiment, which runs in the second system state and is controlled by the second processor, includes the following steps:
[0029] Step 202: Obtain a network data request issued by an application, and send the network data request to a terminal that has established a connection with the wearable device via a short-range communication method.
[0030] Among them, the wearable device is currently running in the second system state, and the data processing of the wearable device is controlled by the second processor in this state. The wearable device can automatically switch from the first system state to the second system state according to the current running state, such as when it is detected that the current power of the wearable device is lower than a preset threshold, it automatically switches to the second system state. It can also receive user operations and control the wearable device to run in the second system state according to the user operations. When running in the second system state, various functions are completed by a low-performance system, which can save power of the wearable device and increase standby time. In one embodiment, when it is detected that the screen is turned off, the first system controlled by the first processor will enter a dormant state, so that the wearable device is currently running in the second system state. The network data request is used to obtain the network data required by the application, which can be text data, audio data, video data, a combination of multiple types of data, etc., for processing in the application, and can be intermediate processing data or display data.
[0031] Specifically, the application runs on a second processor, such as an MCU. The second processor monitors the network data requests issued by the application through the second system. Different applications can issue different network data requests that match the application functions to request different network data. The network data request may include request auxiliary data and request content. The request auxiliary data is used to determine information related to the request content. For example, the request auxiliary data may include an application identifier, an information identifier, etc. In one embodiment, the request auxiliary data includes auxiliary data for determining the key corresponding to the request content. The request content is used to describe the data to be requested, and may include user identification, time information, geographic location information, and other indicative information for determining the request content.
[0032] For example, when the application is a weather application, the network data request can be used to request current weather information; when the application is a game application, the network data request can be used to request game data; and when the application is a multimedia playback application, the network data request can be used to request multimedia data. In one embodiment, the wearable device is an electronic watch, and the network data request is sent to the second processor through user operations on the current display interface of the electronic watch, where the operations include but are not limited to touch operations, gesture operations, voice operations, etc.
[0033] Among them, short-range communication refers to transmission via short-range wireless communication when the wearable device and the terminal are within a preset distance, including but not limited to Bluetooth transmission and NFC (Near Field Communication) transmission. In one embodiment, the second processor establishes a Bluetooth connection channel before data transmission, thereby sending the network data request from the wearable device to the corresponding terminal via Bluetooth transmission.
[0034] Step 204: receiving the target network data returned by the terminal according to the network data request.
[0035] The target network data may be local data of the terminal or network data obtained from a server according to a network data request. When the corresponding target network data is directly found locally on the terminal according to the network data request, the target network data may be directly returned to the wearable device.
[0036] When the terminal does not have the corresponding target network data locally, the terminal forwards the network data request to the corresponding server and searches for the corresponding target network data on the server. The server may be a preset server or a corresponding application server determined according to the application identifier in the network data request.
[0037] Specifically, the terminal sends the target network data to the second processor via short-range communication, where the target network data may be encrypted data. It is understood that when an application issues multiple network data requests, each corresponding to a different target network data, the target network data may carry auxiliary request data such as an application identifier to determine the target application corresponding to the target network data, thereby preventing the network data from being sent to the wrong application and causing the wearable device to obtain incorrect network data.
[0038] In one embodiment, the RSA encryption algorithm is used to prevent encrypted target network data from being stolen and to ensure the secure use of target network data in a small system state. The RSA encryption algorithm is an asymmetric encryption algorithm that can complete decryption without directly transferring the key, ensuring the security of the information and avoiding the risk of being cracked by directly transferring the key. The encryption and decryption process is performed by a pair of keys, namely a public key and a private key. The private key is stored by one party for decryption, and the public key is sent to the other party to encrypt the information. For example, the public key is stored on the server and the private key is stored on the wearable device.
[0039] Step 206: Deliver the target network data to the application.
[0040] Specifically, the target network data can be passed to the matching target application based on the application identifier carried by the target network data, and different applications use the corresponding target network data based on the network data request. The target network data can be processed to obtain the processing result, or the target network data can be directly displayed through the corresponding interface. When the target network data is encrypted data, the application can first decrypt the target network data before using it. When the target network data includes data corresponding to multiple different request contents, the application identifies the target content corresponding to the different request contents, and thus displays the corresponding target content in different locations. For example, when the target network data includes time content, regional content, and weather content, the corresponding target content is identified respectively, and the matching network data is displayed in the corresponding location of the application, thereby realizing the network application function of the wearable device.
[0041] In this embodiment, a network data processing method is applied to a wearable device, which includes a first processor and a second processor. The first processor controls the first system, and the second processor controls the second system. The wearable device is in the second system state, and the power consumption of the second processor is lower than that of the first processor. The network data request issued by the application is obtained, and the network data request is sent to a terminal that has established a connection with the wearable device through a short-range communication method; the target network data returned by the terminal according to the network data request is received; the target network data is passed to the application, and communication is carried out between the wearable device and the terminal through a short-range communication method. The network data required by the application is returned with the help of the terminal. The entire network data processing process is in the second system state and is controlled by a low-power processor. The network data processing is completed through a low-performance system, which can save power consumption.
[0042] In one embodiment, the target network data is generated by the terminal forwarding a network data request to a corresponding server and based on response data returned by the server.
[0043] Specifically, the terminal forwards the network data request to the corresponding server via a wireless or wired network. The server can be a preset data processing server or an application server determined based on the application identifier in the network data request. If the network data request carries a weather application identifier, the network data request is forwarded to the weather data processing server. If the network data request carries a game application identifier, the network data request is forwarded to the corresponding game data processing server. The server searches for corresponding response data based on the request information carried in the network data request. For example, if the network data request carries date information, region information, and weather request information, the server searches for the weather for the target date and target region and obtains the response data. If the network data request carries a user identifier and game identity level information, the server searches for the game permission information corresponding to the target user's target game identity level and obtains the response data. It will be understood that different network data requests, depending on the content of the request, will result in different network data corresponding to different application service functions. The target network data can be obtained by filtering the response data, where the filtering criteria can be determined by auxiliary information in the network data request. The data format can be modified or adjusted to obtain the target network data, or the response data returned by the server can be directly used as the target network data.
[0044] In this embodiment, the target network data is obtained from the server through the terminal, and then the target network data is sent to the wearable device through short-range communication, so that the wearable device can obtain the required network data through a low-performance system and complete network data processing.
[0045] In one embodiment, the method further includes: detecting the operating state of the wearable device; when the operating state meets the low power consumption condition, switching the wearable device to the second system state and controlling the first system to enter a sleep state.
[0046] Specifically, the operating status of the wearable device includes the device information status of the wearable device itself, and may also include the user information status collected by the wearable device. The device information status includes the display screen status, power information status, device temperature status, device motion status, etc. The display screen status includes the screen-on status and the screen-off status, the power information status includes the low power status and the high power status, the device temperature status includes the normal temperature status and the abnormal temperature status, and the device motion status includes the device motion speed, the device rotation angle, etc. The user information status includes the user's heart rate, attention information, such as at least one of eye position information and cardiopulmonary data, but not limited thereto. Low power consumption conditions can be customized. In one embodiment, in smart mode, the first processor will enter sleep mode after the screen is turned off. After the screen is turned on again, the first processor will not be woken up as long as the application list menu is not entered and the application that the second processor cannot handle is not processed. In one embodiment, low power status, abnormal temperature status, device motion speed greater than a preset threshold status, heart rate lower than a preset threshold status, etc. can all be considered to meet low power consumption conditions.
[0047] In one embodiment, a state vector is formed from each state in the device information state and user information state. Based on the state vector, whether a low-power condition is met is determined. For example, a standard state vector corresponding to the low-power condition is pre-set. The current state vector formed from each state of the wearable device is matched with the standard state vector. If a match is successful, the low-power condition is considered met. This can be flexibly determined based on the various state settings of the wearable device to determine whether the wearable device meets the low-power condition, thereby switching the wearable device to the second system state and controlling the first system to enter a dormant state, thereby saving power.
[0048] In this embodiment, the operating state of the wearable device is automatically detected. When the operating state meets the low power consumption condition, the operation of the wearable device is automatically switched to the second system state, and the first system is controlled to enter the sleep state, thereby saving power consumption.
[0049] In one embodiment, before sending the network data request to the terminal that has established a connection with the wearable device via a short-range communication method, it also includes: establishing a short-range communication connection with the terminal, and the short-range communication method includes one of Bluetooth transmission and NFC short-range wireless communication technology transmission.
[0050] Specifically, through the second processor in the second system state, a short-range communication connection can be established with the terminal without waking up the first processor. Bluetooth technology is a radio technology that supports short-range communication between devices. It can exchange wireless information between a variety of wireless terminal devices including smart phones, personal computers, laptops, tablets, portable wearable devices, wireless headphones, wireless speakers, etc. NFC (Near Field Communication) technology, devices using NFC technology can exchange data when they are close to each other. For Bluetooth wearable devices that support NFC, you can use NFC to quickly connect to a terminal, such as a mobile phone. The wearable device transmits the device address to the mobile phone through NFC. The mobile phone can directly initiate a connection to the address device to transmit data, eliminating the process of searching for the device.
[0051] In this embodiment, before sending data, a short distance communication connection is established with the terminal in the second system state to prepare for subsequent data transmission and save power consumption.
[0052] In one embodiment, after step 206, the method further includes: displaying the target network data through an application interface.
[0053] Specifically, the second system sends the target network data to the UI user interface for parsing and display, completing the network data function in low power mode. In one embodiment, the display screen of the wearable device is connected to the first processor and the second processor via MIPI (Mobile Industry Processor Interface), and the data output by the first processor or the second processor can be displayed. The parsing and display of the target network data are completed by the low-power processor, that is, the second processor, which saves the power consumption of the wearable device. The target network data can be displayed through the preset interface of the corresponding application, or the target network data can carry an information identifier, and the corresponding display interface is determined by the information identifier, where the display interface can be one or more. When the target network data includes multiple data contents, it can be displayed through different areas on the interface, and the displayed content can be in text form, audio and video form or animation form, including static display and dynamic display.
[0054] In this embodiment, in the second system state, the target network data can be displayed through the low-performance system, which ensures the use of network applications of the wearable device in the low-performance system and reduces the power consumption of the wearable device.
[0055] In one embodiment, the network data request includes an application identifier, a message identifier, and request content of the application, and the target network data includes an application identifier, a message identifier, and request data corresponding to the request content. Step 206 includes: determining the corresponding application based on the application identifier; obtaining the corresponding key based on the message identifier, decoding the request data based on the key, and obtaining decoded request data; and passing the decoded request data to the application.
[0056] The application identifier uniquely identifies the corresponding application, and the message identifier identifies the message and determines the key associated with the message. Messages with different contents can be classified into different levels based on their importance. Different levels correspond to different message identifiers, and thus keys of varying complexity. More important messages are assigned keys of higher complexity to ensure message security. The request content describes the content to be requested and can be one or more different contents.
[0057] Specifically, the application identifier determines the corresponding application, thereby determining the target application to which the target network data should be provided. The corresponding key is obtained through the message identifier, and the request data is decoded using the key. Different messages correspond to different keys. Only after successful decoding can the request data be used, ensuring the security of the request data. The decoded request data is then passed to the application for use.
[0058] In this embodiment, the security of network data is improved through message identification, and different security levels of protection can be configured for different network data, thereby improving the flexibility of data security protection.
[0059] In one embodiment, the method further includes: receiving an operation instruction acting on the wearable device; when the operation instruction is an operation instruction to trigger waking up the first system, controlling the first system to enter a working state.
[0060] Specifically, an operation instruction to wake up the first system requires the first system to enter an operating state before the corresponding operation can be completed, requiring the first processor to wake up and begin operation. This can be an operation instruction required to complete a relatively complex function, such as the operation instruction corresponding to entering the application list menu being an operation instruction to wake up the first system, or the operation instruction corresponding to a payment being an operation instruction to wake up the first system. The operation instruction can be received in various forms, such as a click operation, a voice operation, a gesture operation, etc.
[0061] In this embodiment, the first system is controlled to enter the working state by waking up the operating instruction of the first system, so that more complex business functions can be completed when the first processor is working, and convenient switching between different system states can be achieved.
[0062] In one embodiment, the uplink data packet is a data packet transmitted from the second processor to the first processor, such as Figure 3As shown, the second processor sends the uplink data packet to the first processor including the following steps:
[0063] Step 302: Send a controlled interrupt signal to the first processor, so that the first processor sends a master response signal according to the controlled interrupt signal and reads the uplink data packet from the second processor.
[0064] The uplink data packet may include at least one of an operation instruction and service data received or generated by the second processor. For example, the uplink data packet may include an application function instruction obtained by the second system, a response message generated after receiving application network data, a corresponding public key generated based on an encryption algorithm, etc.
[0065] The controlled interrupt signal is used to interrupt and indicate to the first processor that there is uplink data to be transmitted to the first processor. Specifically, when an uplink data packet is detected, the second processor of the electronic device can generate a corresponding controlled interrupt signal based on the uplink data packet, and after locking the data transmission interface, send the generated controlled interrupt signal to the first processor via the controlled interrupt interface.
[0066] The first processor can read the uplink data packet from the second processor according to the controlled interrupt signal and send a master response signal to the second processor. The master response signal is used to indicate that the first processor is in a data transmission state.
[0067] Step 304: After the uplink data packet transmission is completed, a reset controlled interrupt signal is sent to the first processor, so that the first processor resets the master response signal after completing reading of the uplink data packet according to the reset controlled interrupt signal.
[0068] Specifically, the second processor may reset the controlled interrupt signal after completing the uplink data packet transmission. The first processor may receive the reset controlled interrupt signal. The reset controlled interrupt signal may indicate that the second processor has completed the data transmission. The first processor may reset the master control response signal upon receiving the reset controlled interrupt signal.
[0069] In the above embodiment, the first processor can read the data packet when receiving the controlled interrupt signal, and reset the master response signal according to the controlled interrupt signal reset by the second processor after the data reading is completed. The reset master response signal indicates that a single data transmission is completed, which can reduce the delay of processor communication and improve the efficiency of processor communication.
[0070] Specifically, if Figure 4, which is a schematic diagram of the internal structure of a wearable device in one embodiment. The wearable device includes a first processor 310 corresponding to the first system and a second processor 320 corresponding to the second system. The wearable device may include one or more sensors such as a heart rate sensor 321, an accelerometer + gyroscope 322, an atmospheric pressure sensor 323, a touch sensor 324, a magnetic sensor 325, and a micro-pressure differential sensor 326. The second processor 320 can be connected to the sensors included in the wearable device to obtain data collected by the sensors. The second processor 320 can also be connected to a GPS (Global Positioning System) module 327 to obtain positioning data received by the GPS antenna; and to a debug (DEBUG) module 328 to output debug data of the wearable device. The first processor 310 and the second processor 320 are connected via an SPI (Serial Peripheral Interface), so that the first system and the second system can transmit communication data through the SPI bus. The display screen 330 is connected to the first processor 310 and the second processor 320 via the MIPI (Mobile Industry Processor Interface), and can display data output by the first processor 310 or the second processor 320. The first processor 310 also includes a sensor hub driver that can be used to drive data collection and processing from various sensors.
[0071] In a specific embodiment, Figure 5 As shown, the wearable device is a watch, the terminal connected to the wearable device is a mobile phone, the first processor 310 in the wearable device is a Qualcomm chip running an Android system, the second processor 320 is an MCU chip running an RTOS system, and the network data processing method includes the following steps:
[0072] 1. Check that the watch is in smart mode and connected to the phone via Bluetooth or NFC.
[0073] Smart mode is a configurable mode state of the watch, which can be set in the mode selection in the settings. Standard mode is smart mode. In smart mode, the first processor will go into sleep when the screen goes off. When the screen comes back on, the first processor will not be woken up unless the application list menu is entered or an application that the second processor cannot handle is used. It can be understood that in smart small core mode, the first processor is dormant, which is equivalent to a bracelet. Entering the application list menu will wake up the first processor. The second processor is responsible for setting up a Bluetooth connection channel and connecting to the mobile phone via Bluetooth or NFC.
[0074] 2. The MCU will monitor the network data requests sent by the application in a low-power state. If it monitors the network data requests sent by the application, it will send the network data requests to the mobile phone that has established a connection with the watch via Bluetooth or NFC.
[0075] Among them, the network data request may include application ID + message ID + request content. The application ID is used to notify the mobile health APP application which application sent the request, and the message ID is used to notify the mobile health APP application which function instruction of the application is sent. The request content is a specific description of the request content. For example, if you request the current weather conditions, the weather application ID is 1, and the message ID for requesting weather details is 1, then the content of this network data request is: 1+1+highest temperature+lowest temperature+air quality.
[0076] 3. The phone processes the request from the watch, obtains the target network data corresponding to the network data request, and transmits the target network data to the watch via Bluetooth or NFC.
[0077] For example, the weather application will first send a network data request to request the weather details of the day, including the highest and lowest temperatures, air quality, etc., and then send it to the mobile phone health application through the second processor Bluetooth. After the health application receives this request, it will obtain the corresponding data through the mobile phone's network in the background. If the acquisition is successful, it will return detailed weather data, including the highest and lowest temperatures, air quality, etc., and transmit the target network data to the watch via Bluetooth or NFC. If it fails within a timeout, a failure error code will be returned.
[0078] 4. After the watch's second processor receives the target network data, it transmits it to the watch application. After the watch application receives the target network data, it displays it in the APP.
[0079] Among them, after the weather application receives the data corresponding to the weather details of the day, it displays the detailed weather data on the corresponding interface, including the highest temperature, lowest temperature, air quality, etc.
[0080] In this embodiment, the screen is mainly controlled by the second processor. In order to access the Internet, low-power Bluetooth technology or NFC technology is used to connect to the mobile phone, and the network data is transmitted to the watch via Bluetooth or NFC, thereby realizing Internet access under the control of the second processor, that is, the small core, and completing the network data processing function.
[0081] It should be understood that although Figure 2-Figure 3 and Figure 5 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. In addition, Figure 2-Figure 3 and Figure 5 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0082] Figure 6 FIG. 1 is a structural block diagram of a network data processing device according to an embodiment of the present invention. Figure 6 As shown, a network data processing device 600 is provided, which is applied to a wearable device. The wearable device includes a first processor and a second processor, wherein the first processor controls a first system and the second processor controls a second system. When the wearable device is in the second system state, the power consumption of the second processor is lower than the power consumption of the first processor. The device includes: a request sending module 602, a receiving module 604, and a transmission module 606, wherein:
[0083] The request sending module 602 is used to obtain the network data request sent by the application and send the network data request to the terminal that has established a connection with the wearable device through a short-range communication method.
[0084] The receiving module 604 is configured to receive target network data returned by the terminal according to the network data request.
[0085] The delivery module 606 is configured to deliver the target network data to the application.
[0086] The above-mentioned network data processing device obtains the network data request issued by the application, and sends the network data request to the terminal that has established a connection with the wearable device through a short-range communication method; receives the target network data returned by the terminal according to the network data request; passes the target network data to the application, communicates between the wearable device and the terminal through a short-range communication method, and uses the terminal to return the network data required by the application. The entire network data processing process is in the second system state, controlled by a low-power processor, and completes network data processing through a low-performance system, which can save power consumption.
[0087] In one embodiment, the target network data is generated by the terminal forwarding the network data request to the corresponding server and according to the response data returned by the server.
[0088] In this embodiment, the target network data is obtained from the server through the terminal, and then the target network data is sent to the wearable device through short-range communication, so that the wearable device can obtain the required network data through a low-performance system and complete network data processing.
[0089] In one embodiment, the apparatus further comprises:
[0090] The switching module 608 is configured to detect the operating state of the wearable device; when the operating state meets the low power consumption condition, the wearable device is switched to the second system state and the first system is controlled to enter the sleep state.
[0091] In this embodiment, the operating state of the wearable device is automatically detected. When the operating state meets the low power consumption condition, the operation of the wearable device is automatically switched to the second system state, and the first system is controlled to enter the sleep state, thereby saving power consumption.
[0092] In one embodiment, the apparatus further comprises:
[0093] The connection module 610 is used to establish a short-range communication connection with the terminal, where the short-range communication mode includes one of Bluetooth transmission and NFC short-range wireless communication technology transmission.
[0094] In this embodiment, before sending data, a short distance communication connection is established with the terminal in the second system state to prepare for subsequent data transmission and save power consumption.
[0095] In one embodiment, the apparatus further comprises:
[0096] The display module 612 is used to display the target network data through the application interface.
[0097] In this embodiment, in the second system state, the target network data can be displayed through the low-performance system, which ensures the use of network applications of the wearable device in the low-performance system and reduces the power consumption of the wearable device.
[0098] In one embodiment, the network data request includes the application identifier, message identifier and request content of the application, and the target network data includes the application identifier, the message identifier and request data corresponding to the request content. The delivery module 606 is also used to determine the corresponding application based on the application identifier; obtain the corresponding key based on the message identifier, decode the request data based on the key to obtain the decoded request data; and deliver the decoded request data to the application.
[0099] In this embodiment, the security of network data is improved through message identification, and different security levels of protection can be configured for different network data, thereby improving the flexibility of data security protection.
[0100] In one embodiment, the apparatus further comprises:
[0101] The awakening module 614 is configured to receive an operation instruction acting on the wearable device; when the operation instruction is an operation instruction for triggering awakening of the first system, control the first system to enter a working state.
[0102] In this embodiment, by waking up the operating instructions of the first system, the first system is controlled to enter the working state, so that more complex business functions can be completed when the first processor is working, and convenient switching between different system states can be achieved.
[0103] In one embodiment, the uplink data packet is a data packet transmitted by the second processor to the first processor, and the apparatus further includes:
[0104] The uplink data communication module 616 is used to send a controlled interrupt signal to the first processor, so that the first processor sends a master response signal according to the controlled interrupt signal and reads the uplink data packet from the second processor; after the uplink data packet transmission is completed, send a reset controlled interrupt signal to the first processor, so that the first processor resets the master response signal according to the reset controlled interrupt signal after completing the reading of the uplink data packet.
[0105] In this embodiment, the first processor can read the data packet when it receives the controlled interrupt signal, and reset the master response signal according to the controlled interrupt signal reset by the second processor after the data reading is completed. The reset master response signal indicates that a single data transmission is completed, which can reduce the delay of processor communication and improve the efficiency of processor communication.
[0106] The division of the various modules in the above-mentioned network data processing device is only for illustration. In other embodiments, the network data processing device may be divided into different modules as needed to complete all or part of the functions of the above-mentioned network data processing device.
[0107] The specific definition of the network data processing device can be found in the definition of the network data processing method above and will not be repeated here. Each module in the above-mentioned network data processing device can be implemented in whole or in part through software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in hardware form, or can be stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of each of the above modules.
[0108] Figure 7 FIG. 1 is a schematic diagram of the internal structure of an electronic device in one embodiment. Figure 7As shown, the electronic device includes a processor and a memory connected via a system bus. The processor is used to provide computing and control capabilities to support the operation of the entire electronic device. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by the processor to implement a network data processing method provided in each of the following embodiments. The internal memory provides a cached operating environment for the operating system computer program in the non-volatile storage medium. The electronic device can be various wearable devices.
[0109] The various modules in the network data processing apparatus provided in the embodiments of the present application may be implemented in the form of a computer program. The computer program may be executed on a terminal or server. The program modules comprising the computer program may be stored in a memory of an electronic device. When the computer program is executed by a processor, the steps of the method described in the embodiments of the present application are implemented.
[0110] The present application also provides a computer-readable storage medium, one or more non-volatile computer-readable storage media containing computer-executable instructions, which, when executed by one or more processors, cause the processors to perform the steps of the network data processing method.
[0111] A computer program product comprising instructions, when running on a computer, causes the computer to execute a network data processing method.
[0112] As used herein, any reference to memory, storage, database, or other medium may include nonvolatile and / or volatile memory. Nonvolatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which serves as an external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM).
[0113] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present invention, all of which fall within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be determined by the appended claims.
Claims
1. A network data processing method, characterized in that: The method is applied to a wearable device, the wearable device including a first processor and a second processor, wherein the first processor controls a first system and the second processor controls a second system, and the wearable device is in the second system state; the power consumption of the second processor is lower than that of the first processor, and the second processor cannot directly access the Internet through a WiFi module. The method includes: Obtaining a network data request issued by an application, and sending the network data request to a terminal connected to the wearable device via a near field communication method; the network data request includes an application identifier of the application; Receiving target network data returned by the terminal according to the network data request via a short-range communication method; the target network data includes an application identifier; The target network data is delivered to the application corresponding to the application identifier, and the target network data is displayed through the interface of the application.
2. The method according to claim 1, characterized in that The target network data is generated by the terminal forwarding the network data request to the corresponding server and according to the response data returned by the server.
3. The method according to claim 1, characterized in that The method further comprises: Detecting the operating status of the wearable device; When the operating state meets the low power consumption condition, the wearable device is switched to the second system state and the first system is controlled to enter a dormant state.
4. The method according to claim 1, wherein Before sending the network data request to the terminal connected to the wearable device via short-range communication, the method further includes: Establish a short-range communication connection with the terminal, wherein the short-range communication mode includes one of Bluetooth transmission and NFC short-range wireless communication technology transmission.
5. The method according to claim 1, wherein After delivering the target network data to the application, the method further includes: The target network data is displayed through the interface of the application.
6. The method according to any one of claims 1 to 5, characterized in that The network data request further includes a message identifier and request content, the target network data further includes the message identifier and request data corresponding to the request content, and the delivering the target network data to the application includes: Determining the corresponding application according to the application identifier; Obtaining a corresponding key according to the message identifier, and decoding the request data according to the key to obtain decoded request data; The decoded request data is passed to the application.
7. The method according to claim 1, characterized in that The method further comprises: Receiving an operation instruction acting on the wearable device; When the operation instruction is an operation instruction for triggering and waking up the first system, the first system is controlled to enter a working state.
8. A network data processing device, characterized in that: Applied to a wearable device, the wearable device includes a first processor and a second processor, wherein the first processor controls a first system and the second processor controls a second system, and the wearable device is in the second system state; the power consumption of the second processor is lower than that of the first processor, and the second processor cannot directly access the Internet through a WiFi module, the device includes: a request sending module, configured to obtain a network data request issued by an application, and send the network data request to a terminal connected to the wearable device via a short-range communication method; the network data request includes an application identifier of the application; A receiving module, configured to receive target network data returned by the terminal according to the network data request via short-range communication; the target network data includes an application identifier; A transfer module, configured to transfer the target network data to the application corresponding to the application identifier; A display module is used to display the target network data through the interface of the application.
9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
11. A computer program product comprising instructions which, when run on a computer, cause the computer to perform the steps of the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Voice data processing method, device and system
CN110427097A
Information processing method and device
CN111736658A
Voice interaction smart bracelet
CN210248680U