WO2022218107A1 - 数据传输方法、装置、设备及存储介质 - Google Patents

数据传输方法、装置、设备及存储介质 Download PDF

Info

Publication number
WO2022218107A1
WO2022218107A1 PCT/CN2022/082053 CN2022082053W WO2022218107A1 WO 2022218107 A1 WO2022218107 A1 WO 2022218107A1 CN 2022082053 W CN2022082053 W CN 2022082053W WO 2022218107 A1 WO2022218107 A1 WO 2022218107A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
target
middleware
service
communication
Prior art date
Application number
PCT/CN2022/082053
Other languages
English (en)
French (fr)
Inventor
郭桦
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2022218107A1 publication Critical patent/WO2022218107A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the embodiments of the present application relate to the field of wearable devices, and in particular, to a data transmission method, apparatus, device, and storage medium.
  • a wearable device is a portable electronic device that can be directly worn or integrated on clothes or accessories.
  • Common wearable devices include smart watches, smart bracelets, smart glasses and so on.
  • a communication connection (such as a Bluetooth connection) is established between the wearable device and the terminal, so that data transmission is performed with the terminal through the Bluetooth connection, so as to realize the linkage between the wearable device and the terminal.
  • the terminal may send a notification message to the wearable device through a Bluetooth connection, and the wearable device will notify and remind.
  • Embodiments of the present application provide a data transmission method, apparatus, device, and storage medium.
  • the technical solution is as follows:
  • an embodiment of the present application provides a data transmission method, the method is used for a wearable device, the wearable device includes a first system and a second system, the first system is processed by a first a system run by a processor, the second system being a system run by a second processor;
  • the method includes:
  • the first communication data is processed by target middleware (Middleware) to obtain the service data included in the first communication data, and the target middleware is the middleware set in the first system;
  • target middleware Middleware
  • the service data is sent to a target application through the target middleware, so that the target application processes the service data, and the target application is an application in the first system or the second system.
  • an embodiment of the present application provides a data transmission apparatus, the apparatus is used in a wearable device, the wearable device includes a first system and a second system, and the first system is composed of a first system. a processor-run system, the second system being a system run by a second processor;
  • the device includes:
  • a communication data receiving module configured to receive first communication data sent by a terminal, where the first communication data is transmitted through a data communication connection established between the first system and the terminal;
  • a communication data processing module configured to process the first communication data through a target middleware to obtain business data contained in the first communication data, where the target middleware is the middleware set in the first system;
  • a service data sending module configured to send the service data to a target application through the target middleware, so that the target application processes the service data, and the target application is in the first system or the second system Applications.
  • an embodiment of the present application provides a wearable device, the wearable device includes a processor and a memory; the processor includes at least a first processor and a second processor, the second processor The power consumption of the processor is higher than the power consumption of the first processor, and the memory stores at least one instruction, and the at least one instruction is used to be executed by the processor to implement the data transmission method described in the above aspects.
  • an embodiment of the present application provides a computer-readable storage medium, where the storage medium stores at least one instruction, and the at least one instruction is configured to be executed by a processor to implement the data transmission method described in the above aspect .
  • an embodiment of the present application provides a computer program product, where the computer program product includes computer instructions, and the computer instructions are stored in a computer-readable storage medium.
  • the processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the data transmission method provided by the above aspects.
  • FIG. 1 is a schematic diagram of a dual-core communication software framework corresponding to a second processor according to an exemplary embodiment of the present application
  • FIG. 2 is a schematic diagram of a dual-core communication software framework corresponding to a first processor according to an exemplary embodiment of the present application
  • FIG. 3 shows a flowchart of a data transmission method provided by an exemplary embodiment of the present application
  • FIG. 4 is a schematic interface diagram of an implementation process of a data transmission method according to an exemplary embodiment of the present application.
  • FIG. 5 shows a flowchart of a data transmission method provided by another exemplary embodiment of the present application.
  • Fig. 6 is the sequence diagram of the implementation process of the data transmission method shown in Fig. 5;
  • FIG. 7 shows a flowchart of a data transmission method provided by another exemplary embodiment of the present application.
  • Fig. 8 is the sequence diagram of the implementation process of the data transmission method shown in Fig. 7;
  • FIG. 9 shows a flowchart of a data transmission method provided by another exemplary embodiment of the present application.
  • Fig. 10 is the sequence diagram of the implementation process of the data transmission method shown in Fig. 9;
  • FIG. 11 is a software framework diagram provided by an exemplary embodiment of the present application.
  • FIG. 12 shows a structural block diagram of a data transmission apparatus provided by another embodiment of the present application.
  • FIG. 13 shows a structural block diagram of a wearable device provided by an exemplary embodiment of the present application.
  • plural refers to two or more.
  • “And/or”, which describes the association relationship of the associated objects, means that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone.
  • the character “/” generally indicates that the associated objects are an "or" relationship.
  • a wearable device is provided with a single processor, and an operating system running on the processor processes all system events generated during the operation of the device.
  • the communication module such as the Bluetooth module
  • the wearable device needs to be mounted on the processor, so that the data received by the communication module is sent to the operating system in real time, and the The operating system handles and responds.
  • the wearable device can feed back the data processing result to the terminal through the communication module, so as to realize the two-way linkage between the terminal and the wearable device. Therefore, in order to ensure the normal transmission and timely response of business data, the processor needs to have strong data processing capabilities, and it needs to maintain a working state during the operation of the device.
  • wearable devices only need to implement some functions with low processing performance requirements in most cases, or to achieve some simple linkage with the terminal, for example, for smart watches or smart bracelets , in most cases, the smart watch or smart bracelet only needs to display the time, or display the notification message sent by the terminal. Therefore, keeping the processor in operation for a long time will not improve the performance of the wearable device, but will increase the power consumption of the device, resulting in a shorter battery life of the wearable device.
  • the wearable device is provided with at least a first processor and a second processor with different processing performance and power consumption, which are respectively used to run the first system and the second system (that is, dual-core dual-system), and can
  • the communication module of the wearable device is mounted on the first processor.
  • the first system running on the low-power processor processes events requiring low-performance processing, and keeps the high-power processor in a dormant state (correspondingly, the high-power processor is The second system run by the processor is in a dormant state), which reduces the power consumption of the wearable device while implementing the basic functions of the wearable device.
  • the wearable device can receive the communication data sent by the terminal in real time through the data communication connection established between the first system and the terminal, and use the middleware set in the first system to interpret the communication data. Perform unified analysis to obtain the business data contained in the communication data, and then distribute the business data to the applications in the first system or the second system based on the processing requirements of the business data, so as to ensure that the business data can be processed in time, and realize the terminal and wearable linkage between devices.
  • the first processor and the second processor work asynchronously, and the first system and the second system need to implement system communication (or referred to as dual-core communication).
  • the first system is a Real Time Operating System (RTOS) running on a Micro Controller Unit (MCU)
  • the second system is a real-time operating system (RTOS) running on a central processing unit ( The Android operating system on the Central Processing Unit (CPU).
  • RTOS Real Time Operating System
  • MCU Micro Controller Unit
  • RTOS Real-time operating system
  • CPU Central Processing Unit
  • FIG. 1 it shows a dual-core communication software framework of an Android operating system shown in an exemplary embodiment of the present application.
  • the dual-core communication software framework includes modules of Kernel (kernel), HIDL (Hardware Abstraction Layer Interface Description Language), Native Service (local service), Framework Service (framework service), Framework API (framework interface) and APP (application).
  • the APP module includes functional modules such as Launcher (desktop launcher), Setting (setting) and SystemUI (system user interface);
  • the Framework API module includes MCUManager (MCU management), SensorManager (sensor management), LocationManager (location management), etc.
  • Management module Framework Service module includes MCUManagerService (MCU management service), SystemSensorManager (system sensor management), LocationManagerService (location management service) and other service modules
  • Native Service module includes dccservice (dcc service), Sensorservice (sensor service) and other service modules
  • HIDL modules include Sensor HAL (sensor hardware abstraction layer), GPS HAL (global positioning system hardware abstraction layer) and other modules.
  • the Kernel module includes DCC Transfer Drivers such as dcc_datah, dcc_data, Mcu_sensor, Mcu_gps, and Mcu_factory.
  • the transport layer as the interface layer connecting the upper and lower layers in the dual-core communication software framework, shields the application layer from the transmission details of the communication of the lower layer (data link layer) of the system, and provides a service channel for application scenarios;
  • the application layer as the main body of service provision, responds to people It communicates with the computer and transmits the data generated in the process of human-computer interaction through the transport layer, and responds to external data requests.
  • FIG. 2 shows the dual-core communication software framework of RTOS shown in an exemplary embodiment of the present application.
  • the dual-core communication software framework of RTOS is divided into application layer, service layer, framework layer, hardware abstraction layer and platform layer.
  • the application layer includes watch face (dial), Daily Tracker (daily tracking), Message center (message center), Voice around Apps (sound application), Health Apps (health application), Settings (settings) and other application modules; service layer Including Sport&health task (sports health task), System manager task (system management task), AMS (activity management service), AudioService (audio service), Log Service (log service), OFTP Service (Odette file transfer protocol service), BT Service (Bluetooth service), Delegate Service (transfer service), RPC Service (remote call service), sensor Service (sensor service), storage Service (storage service) and other service modules; the framework layer includes Message Pub (message center), UI Framework ( User interface framework), G2D Engine (G2D engine), Audio Middleware (audio middleware), Preference (preference), File system (file system), Algorithms (algorithm), Aios, AsycEvent (in-process asynchronous event) and other framework modules;
  • the hardware abstraction layer includes hardware abstraction modules such as Screen/TP (screen
  • FIG. 3 shows a flowchart of a data transmission method provided by an exemplary embodiment of the present application. This embodiment is described by taking the method applied to a wearable device as an example, and the method may include the following steps.
  • Step 301 Receive first communication data sent by the terminal, and the first communication data is transmitted through a data communication connection established between the first system and the terminal.
  • the wearable device is provided with a first processor and a second processor, respectively running the first system and the second system.
  • the processing performance of the first processor is lower than that of the second processor (the processing capability and processing speed of the first processor are both lower than those of the second processor), and the power consumption of the first processor is lower than Power consumption of the second processor.
  • the second system (run by the second processor) can process events handled by the first system (run by the first processor), while the first system is not necessarily capable of handling events handled by the second system.
  • the first processor is an MCU
  • the second processor is a CPU
  • the first system is an RTOS
  • the second system is an Android system.
  • the events that the first system can handle include dial display, dial interface switching, notification message display, and other scenarios with low processing performance requirements or weak interaction scenarios; the events that the second system can handle include answering incoming calls, launching applications, etc. , dial editing, function settings and other scenarios that require high processing performance or strong interaction scenarios.
  • wearable devices as an auxiliary electronic device, only have weak interactions with users in most usage scenarios. For example, in most scenarios, users only raise their wrists through smart watches to check the time or message prompts. Therefore, during the operation of the wearable device, the first system remains in a running state, while the second system only runs in a scenario requiring high processing performance or a strong interaction scenario, and remains in a dormant state in other scenarios.
  • the communication component of the wearable device is mounted on the first processor, so that the wearable device can be The terminal and the first system can maintain a data communication connection while maintaining low power consumption. It should be noted that, when the second system is awakened and is in the foreground running state (at this time, the first system is switched to the background running state), the data communication connection between the first system and the terminal is still maintained, that is, during the operation of the wearable device. , the wearable devices all perform communication data transmission through the data communication connection between the first system and the terminal.
  • the data communication connection is a Bluetooth connection
  • the first processor communicates with the Bluetooth communication component through a physical serial port.
  • the physical serial port may be a Universal Asynchronous Receiver/Transmitter (UART).
  • the service data is encapsulated into first communication data, and the first communication data is sent to the wearable device through a data communication connection.
  • the first communication data can be obtained by encapsulating the service data by calling the middleware set in the system by the application program in the terminal (through the middleware SDK).
  • middleware as a type of software between the system and the application, is used to connect the operating system layer and the application program layer. By standardizing the interface and protocol provided by the operating system, it provides a standard and unified common service, which helps to reduce the development workload of upper-layer applications.
  • the middleware in this embodiment of the present application is used to provide communication support for the first system and applications installed in the first system, or to provide communication support for the second system and applications installed in the second system.
  • step 302 the first communication data is processed by the target middleware, and the service data included in the first communication data is obtained, and the target middleware is the middleware set in the first system.
  • target middleware is set in the first system, but no middleware is set in the second system, and the target middleware is responsible for uniformly processing data connected through data communication to obtain business data, and Based on the processing requirements of the business data (that is, which application in the system needs to be processed), the business data is distributed to the upper-layer application in the corresponding system for processing, that is, whether the communication data sent by the terminal needs to be processed by the first system or the second system , all need to be processed by the target middleware in the first system.
  • the target middleware is also responsible for processing the data fed back by the upper-layer application in the system into communication data, so that the communication data can be reversely transmitted to the terminal through the communication component, so as to realize the bidirectional transmission of data between the terminal and the wearable device.
  • the wearable device processes the first communication data through the target middleware to obtain service data.
  • the wearable device decapsulates the first communication data through a communication protocol stack (such as a Bluetooth protocol stack) in the first system.
  • the target middleware is set in the first system, and the first system is in the running state (switching between the foreground and background) during the operation of the wearable device, it can ensure that the communication data is processed in time and keep a low level. Power consumption (if the middleware is set in the second system, the second system needs to be woken up frequently, resulting in increased power consumption).
  • middleware is also set in the second system, but the middleware in the second system does not need to be used when implementing the data transmission method provided by the embodiment of the present application.
  • the middleware in the second system for other functions.
  • each of the following embodiments is described by taking an example that no middleware is provided in the second system, but this does not constitute a limitation.
  • Step 303 Send service data to the target application through the target middleware, so that the target application processes the service data, and the target application is an application in the first system or the second system.
  • the target middleware sends the business data to the target application in the first system where the target middleware is located according to the processing requirements of the business data, or the target middleware forwards the business data to the second system
  • the target application that is, the target application can be located in the same system as the target middleware, or it can be located in a different system.
  • a middleware SDK is set in the target application, and the target middleware is invoked through the middleware SDK, thereby realizing data interaction with the target middleware.
  • the processing result is displayed through the system where it is located.
  • the wearable device 42 when the terminal 41 sends the communication data including the short message notification to the wearable device 42, if the RTOS is in the foreground running state, the wearable device 42 is on the upper layer of the dial interface of the RTOS. A short message notification 43 is displayed; when the terminal 41 sends communication data including an incoming call notification to the wearable device 42, if the Android system is in the foreground running state, the wearable device 42 displays an incoming call alert 44 through the Android system's calling application.
  • the wearable device is provided with dual processors, the first processor runs the first system, and the second processor runs the second system.
  • the middleware set in the first system processes the communication data to obtain the business data contained therein, and then sends the business data to the first system through the middleware Or the application in the second system for business processing; because the wearable device maintains data communication with the terminal through the first system, it can avoid the impact of system switching on data communication and ensure the stability of data communication between the wearable device and the terminal.
  • the data processing and data distribution are performed by the middleware set in the first system to ensure that the services in the first system and the second system can be processed in time, and the service response speed of the wearable device side is improved.
  • the power consumption of the first processor is lower than the power consumption of the second processor, since the data communication connection is established between the low-power first system and the terminal, under the premise of ensuring normal data transmission , which can reduce the running power consumption of the wearable device.
  • send business data to the target application through the target middleware including:
  • send business data to the target application in the target system through the target middleware including:
  • the target system is the first system
  • the service data is sent to the middleware proxy in the second system through the target middleware; the service data is sent to the target application in the second system through the middleware proxy.
  • the method further includes:
  • the second processor When the first system is in the foreground running state, and when the second system is in the dormant state, the second processor is switched from the dormant state to the wake-up state.
  • sending business data to the target application in the target system through the target middleware further includes:
  • service data is sent to the target application in the target system in the foreground running state through the target middleware.
  • send business data to the target application in the target system in the foreground running state through the target middleware including:
  • the target middleware is used to send service data to the middleware proxy in the second system; the service data is sent to the target application in the second system through the middleware proxy.
  • the method further includes:
  • the second communication data is sent to the terminal so that the terminal can process the service response data, and the second communication data is transmitted through the data communication connection.
  • the service response data of the target application is processed by the target middleware to obtain second communication data, including:
  • the service response data is processed by the target middleware to obtain the second communication data.
  • the data communication connection is a Bluetooth connection
  • the first processor communicates with the Bluetooth communication component through a physical serial port.
  • the power consumption of the second processor is higher than the power consumption of the first processor.
  • the communication data sent by the terminal to the wearable device can be divided into the following three types:
  • the unique data of the first system can only be processed by the first system
  • the business data included in this type of communication data is data in a scenario with low processing performance requirements or weak interaction, and only the processing result needs to be displayed on the first system side.
  • the unique data of the second system can only be processed by the second system
  • the business data included in this type of communication data is data in a scenario with high processing performance or strong interaction, which requires a specific application in the second system to respond to the business and display the processing result.
  • the communication data including the notification of the incoming call needs to be notified by the calling application in the second system.
  • the data shared by the first system and the second system can be processed by the first system and the second system
  • the business data contained in this type of communication data is data in scenarios with low processing performance requirements or weak interaction, and can be processed by the first system or the second system according to the foreground operating status of the system, and the processing results are displayed. .
  • the communication data including the SMS notification will be prompted by the SMS notification banner by the system in the foreground running state.
  • the communication data can also be divided into two types (that is, the second and third two above). species), which is not limited in this embodiment.
  • the target middleware has the function of determining the target system corresponding to the business data , the target system is the system responsible for processing the business data.
  • the target middleware has the function of identifying the unique data of the first system, the unique data of the second system and the data shared by the first/second system, or, has the unique data of the second system and the first/second system unique data The two systems share the function of data.
  • the embodiment of the present application does not limit the specific service data identification capability of the target middleware.
  • the wearable device determines the target system responsible for processing the business data, so as to send the business data to the target application in the target system through the target middleware.
  • FIG. 5 shows a flowchart of a data transmission method provided by another exemplary embodiment of the present application. This embodiment is described by taking the method applied to a wearable device as an example, and the method may include the following steps.
  • Step 501 Receive first communication data sent by the terminal, and the first communication data is transmitted through a data communication connection established between the first system and the terminal.
  • step 502 the first communication data is processed by the target middleware, and the service data included in the first communication data is obtained, and the target middleware is the middleware set in the first system.
  • Step 503 Determine the target system responsible for processing the business data through the target middleware.
  • the target middleware is preconfigured with a corresponding relationship between business data and the system, and after processing the first communication data to obtain the business data, the target middleware determines from the corresponding relationship to be responsible for processing the business data target system.
  • system business data first system Business A second system Business B, Business C, Business D, Business E First System/Second System Business F, Business G
  • the target middleware may determine the target system from the above-mentioned corresponding relationship based on the application package name and/or activity (Activity) name corresponding to the service data.
  • the target middleware determines the first system as the target system.
  • Step 504 when the target system is the first system, send service data to the target application in the first system through the target middleware.
  • the wearable device can directly send business data to the target application in the first system through the target middleware, and the target application performs the business data processing. deal with.
  • the processing result may be displayed through the first system, so as to remind the user on the wearable device side.
  • the middleware of the first system distributes the processed service data to the applications in the first system, and the applications respond to the service.
  • Step 505 Process the service response data of the target application through the target middleware to obtain second communication data.
  • the target application processes the service data
  • service response data is generated, and the service response data can be generated by user interaction or by the application? automatically generated during the process.
  • the target application processes the service response data through the target middleware to obtain the second communication data.
  • the target application processes the service response data through the first middleware to obtain the second communication data.
  • the process of processing the service response data to obtain the second communication data may be understood as the inverse process of processing the first communication data to obtain the service data.
  • a middleware SDK is set in the target application.
  • the target application calls the target middleware through the middleware SDK, and the target middleware processes the service response data.
  • Step 506 Send the second communication data to the terminal so that the terminal can process the service response data, and the second communication data is transmitted through the data communication connection.
  • the wearable device (the first system) sends the second communication data to the terminal through the data communication connection, and accordingly, the terminal processes the second communication data through the middleware after receiving the second communication data through the data communication connection. , obtain the service response data, and distribute the service response data to the corresponding application in the terminal.
  • the wearable device Before sending the second communication data to the terminal, the wearable device performs protocol encapsulation on the second communication data through the communication protocol stack in the first system, so that it satisfies the communication transmission protocol, so that the protocol-encapsulated data is transmitted through the communication component. second communication data.
  • the target middleware when the target middleware identifies that the first system is responsible for processing the business data, it distributes the business data obtained after processing to the applications in the first system for data processing, thereby improving the timeliness and efficiency of the first system processing business data.
  • the second system keeps the sleep state during the whole process, which helps to reduce the power consumption of the terminal.
  • FIG. 7 shows a flowchart of a data transmission method provided by another exemplary embodiment of the present application. This embodiment is described by taking the method applied to a wearable device as an example, and the method may include the following steps.
  • Step 701 Receive first communication data sent by the terminal, and the first communication data is transmitted through a data communication connection established between the first system and the terminal.
  • step 702 the first communication data is processed by the target middleware, and the service data included in the first communication data is obtained, and the target middleware is the middleware set in the first system.
  • the application in the terminal After the application in the terminal generates service data, it first sends the service data to the middleware, and the middleware processes the service data into communication data. Then, the communication data is sent to the Bluetooth, so that the communication data is transmitted to the Bluetooth of the first system through the Bluetooth connection. After receiving the communication data through the Bluetooth connection, the first system sends the communication data to the middleware in the first system for processing, and obtains service data.
  • Step 703 Determine the target system responsible for processing the business data through the target middleware.
  • the wearable device when the wearable device receives the first communication data, the second system may be in a dormant state, and the second system in the dormant state cannot process the service data. Therefore, when it is determined that the target system responsible for processing the business data is the second system, the wearable device needs to detect whether the second system (ie, the second processor) is in the foreground running state, and if it is in the foreground running state, then execute step 705, If it is in a dormant state, step 704 is executed.
  • the second system ie, the second processor
  • Step 704 when the target system is the second system, the first system is in the foreground running state, and the second system is in the sleep state, switch the second processor from the sleep state to the wake-up state.
  • the first processor wakes up the second processor by generating an interrupt, and the second processor receives the After interruption, switch from sleep state to wake-up state.
  • the second system is in the foreground running state after waking up, and the first system is switched to the background running state, or the second system after waking up is in the background running state, and the first system is still in the foreground running state.
  • Step 705 Send business data to the middleware agent in the second system through the target middleware.
  • the second system since only the first system is provided with middleware, in order to enable the application in the second system to correctly receive service data, the second system is provided with a middleware corresponding to the target middleware in the first system Middleware Proxy.
  • the middleware agent as a data communication medium between the target middleware and the application in the second system, only has the function of data forwarding, and does not have the function of processing business data.
  • the wearable device sends the processed business data to the middleware agent in the second system through the target middleware, and the middleware agent forwards the business data to the upper-layer application.
  • the target middleware sends service data to the middleware agent through the UART between the first system and the second system.
  • the middleware in the first system sends the business data to the middleware agent of the second system.
  • Step 706 Send service data to the target application in the second system through the middleware proxy.
  • the middleware agent forwards the received service data to the target application in the second system, and the target application processes and responds to the service data.
  • the middleware agent forwards the service data to the application in the second system, and the application responds to the service.
  • Step 707 Process the service response data of the target application through the target middleware to obtain second communication data.
  • the target application After the target application processes the business data, it generates business response data.
  • the business response data can be generated by user interaction, or can be processed by the application? automatically generated during the process. For example, when the service data is an incoming call notification, after the call application displays an incoming call reminder interface, the user can perform an answering or hanging up operation on the interface, and the answering or hanging up operation will generate corresponding service response data.
  • the target application processes the service response data through the target middleware to obtain second communication data that meets the transmission requirements of the communication connection.
  • the target application in the second system needs to forward the service response data to the target in the first system Middleware, the target middleware processes the business response data in order to perform subsequent data transmission.
  • the wearable device when the target application is an application in the second system, the wearable device obtains the service response data generated by the target application through the middleware agent in the second system, so as to send the target application to the target through the middleware agent.
  • the middleware sends the service response data, and then processes the service response data through the target middleware to obtain second communication data.
  • the call application in the second system sends an answering instruction to the middleware agent by calling the middleware SDK, and the middleware agent sends the answering instruction to the middleware agent.
  • the listening command is forwarded to the middleware in the first system.
  • the middleware processes the answering instruction to obtain the second communication data.
  • Step 708 Send the second communication data to the terminal so that the terminal can process the service response data, and the second communication data is transmitted through the data communication connection.
  • the wearable device Since the wearable device only establishes a data communication connection with the terminal through the first system, the wearable device further sends second communication data to the terminal through the data communication connection.
  • the first system before sending the second communication data to the terminal, the first system needs to process (protocol encapsulation) the second communication data through the communication protocol stack, so as to send the processed second communication data to the terminal.
  • the first system first processes the second communication data through the Bluetooth protocol stack, so as to send the processed second communication data to the terminal.
  • the target middleware when the target middleware recognizes that the business data is processed by the second system, it sends the business data obtained after processing to the middleware agent in the second system, and the middleware agent forwards the business data to the second system.
  • the application in the system ensures the timely response of the second system to the business; and by setting the middleware agent, there is no need to set the middleware in the second system, which helps to reduce the system complexity of the second system.
  • FIG. 9 shows a flowchart of a data transmission method provided by another exemplary embodiment of the present application. This embodiment is described by taking the method applied to a wearable device as an example, and the method may include the following steps.
  • Step 901 Receive first communication data sent by the terminal, and the first communication data is transmitted through a data communication connection established between the first system and the terminal.
  • step 902 the first communication data is processed by the target middleware, and the service data included in the first communication data is obtained, and the target middleware is the middleware set in the first system.
  • the application in the terminal After the application in the terminal generates service data, it first sends the service data to the middleware, and the middleware processes the service data into communication data. Then, the communication data is sent to the Bluetooth, so that the communication data is transmitted to the Bluetooth of the first system through the Bluetooth connection. After receiving the communication data through the Bluetooth connection, the first system sends the communication data to the middleware in the first system for processing, and obtains service data.
  • Step 903 Determine the target system responsible for processing the business data through the target middleware.
  • Step 904 when the target system is the first system or the second system, send service data to the target application in the target system in the foreground running state through the target middleware.
  • the wearable device determines the system currently in the foreground running state as the system responsible for processing the business data, and responds to the business data processing through the target application in the system.
  • the wearable device when the first system is in the foreground running state, sends service data to the target application in the first system through the target middleware;
  • the wearable device When the second system is in the foreground running state, the wearable device sends service data to the middleware agent in the second system through the target middleware, thereby sending service data to the target application in the second system through the middleware agent.
  • the middleware proxy For the relevant description of the middleware proxy, reference may be made to the foregoing embodiment, which will not be repeated in this embodiment.
  • the middleware in the first system when it is detected that the first system is in the foreground running state and the second system is in the dormant state, the middleware in the first system distributes the business data to the applications in the first system, and the first system is in the first system.
  • An application in one system responds to business processing; when it is detected that the second system is running in the foreground and the first system is running in the background, the middleware in the first system sends business data to the middleware agent in the second system , the middleware agent further forwards the business data to the application in the second system, and finally the application in the second system performs a business processing response.
  • the target middleware may also send the service data to the first application in the first system, and when detecting that the second system is in the foreground running state, send the service data to the first system through the application in the first system.
  • the data is sent to the second application (ie, the target application) in the second system.
  • the first application may send the service data to the second application through the physical serial port between the first system and the second system.
  • the physical serial port may be a serial peripheral interface (Serial Peripheral Interface, SPI).
  • the target middleware if it is detected that the system running in the foreground is switched from the first system to the second system within a preset time period, in order to avoid service omission due to the rapid system switching, the target middleware sends the service to the application in the first system After the data is collected, the service data can be sent to the application in the second system again, so that the application in the second system can process and display the service data.
  • Step 905 Process the service response data of the target application through the target middleware to obtain second communication data.
  • the target application target middleware when the target application target middleware is located in the same system (that is, the application in the first system), the target application directly sends service response data to the target middleware; when the target application and the target middleware are located in different system (ie, the application in the second system), the target application sends service response data to the target middleware through the middleware proxy.
  • the target application may also forward the service response data to the target middleware through the application in the first system (the system responsible for processing the service data may be the first processing by one system or the second system), which is not repeated in this embodiment.
  • Step 906 Send the second communication data to the terminal so that the terminal can process the service response data, and the second communication data is transmitted through the data communication connection.
  • the target middleware when the target middleware recognizes that the business data can be processed by the first system or the second system, it sends the business data obtained after processing to the application in the foreground running system, so that the business is processed by the foreground running system. Respond in a timely manner to improve the timeliness of business response.
  • the software framework of the terminal and the wearable device is shown in FIG. 11 .
  • An application is installed in the terminal 1110, and a middleware SDK is installed in the application. Through this middleware SDK, the application can send data to the BT API, so that the terminal can send data to other devices through BT, or obtain the data received by the terminal through BT.
  • the wearable device 1120 is provided with a first system 1121 and a second system 1122 .
  • the first system 1121 communicates with the terminal 1110 through a Bluetooth connection (both the terminal 1110 and the first system 1121 are provided with a BT Stack, while the second system is not provided with a BT Stack), while the first system 1121 and the second system 1122 Communication between them is carried out through physical serial ports (SPI and UART).
  • the terminal 1110 sends the unique data of the first system to the wearable device 1120 through the Bluetooth connection
  • the first system processes the data through the target middleware, and distributes the processed service data to the applications in the first system, Business responses are made by the application.
  • the terminal 1110 sends the shared data of the first system and the second system to the wearable device 1120 through the Bluetooth connection
  • the first system processes the data through the target middleware, and based on the foreground of the first system 1121 and the second system 1122 In the running state, the business data obtained by processing is distributed to the applications in the first system or the second system.
  • the first system 1121 when the first system 1121 is in the foreground running state, the first system 1121 distributes the business data to the applications in the first system; when the second system 1122 is in the foreground running state, the first system sends the business data through the middleware To the middleware proxy (via UART), the service data is forwarded by the middleware proxy to the application in the second system, or the service data is forwarded (via SPI) by the application in the first system to the application in the second system.
  • the terminal 1110 sends the unique data of the second system to the wearable device 1120 through the Bluetooth connection
  • the first system 1121 sends the service data processed by the middleware to the middleware agent of the second system 1122 through the UART, and the middleware
  • the agent forwards the service data to the application in the second system, and the application responds to the service.
  • FIG. 12 shows a structural block diagram of a data transmission apparatus provided by an embodiment of the present application.
  • the apparatus can be implemented as all or a part of the wearable device through software, hardware or a combination of the two.
  • the device includes:
  • a communication data receiving module 1201 configured to receive first communication data sent by a terminal, where the first communication data is transmitted through a data communication connection established between the first system and the terminal;
  • a communication data processing module 1202 configured to process the first communication data through target middleware, and obtain service data included in the first communication data, where the target middleware is the middleware set in the first system;
  • a service data sending module 1203, configured to send the service data to a target application through the target middleware, so that the target application processes the service data, and the target application is the first system or the second system applications in .
  • the service data sending module 1203 includes:
  • a system determination unit configured to determine a target system responsible for processing the business data through the target middleware
  • a service data sending unit configured to send the service data to the target application in the target system through the target middleware.
  • the service data sending unit is specifically used for:
  • If the target system is the first system, send the service data to the target application in the first system through the target middleware;
  • the target system is the second system
  • the target application in sends the service data.
  • the device further includes:
  • a wake-up module configured to switch the second processor from a sleep state to a wake-up state when the first system is in a foreground running state and the second system is in a sleep state.
  • the service data sending unit is further used for:
  • the service data is sent to the target application in the target system in the foreground running state through the target middleware.
  • the service data sending unit is specifically used for:
  • the device further includes:
  • a response data processing module configured to process the service response data of the target application through the target middleware to obtain second communication data
  • a communication data sending module configured to send the second communication data to the terminal, so that the terminal can process the service response data, and the second communication data is transmitted through the data communication connection.
  • the response data processing module is specifically used for:
  • the target application is an application in the second system
  • the service response data is processed by the target middleware to obtain the second communication data.
  • the data communication connection is a Bluetooth connection
  • the first processor communicates with the Bluetooth communication component through a physical serial port.
  • the power consumption of the second processor is higher than the power consumption of the first processor.
  • the wearable device is provided with dual processors, the first processor runs the first system, and the second processor runs the second system.
  • the middleware set in the first system processes the communication data to obtain the business data contained therein, and then sends the business data to the first system through the middleware Or the application in the second system for business processing; because the wearable device maintains data communication with the terminal through the first system, it can avoid the impact of system switching on data communication, and ensure the data communication between the wearable device and the terminal. It is stable, and the middleware set in the first system performs data processing and data distribution, ensuring that the services in the first system and the second system can be processed in time, and improving the service response speed on the wearable device side.
  • FIG. 13 shows a structural block diagram of a wearable device provided by an exemplary embodiment of the present application.
  • the wearable device in this application may include one or more of the following components: a processor 1310 and a memory 1320 .
  • the processor 1310 includes at least a first processor 1311 and a second processor 1312, wherein the first processor 1311 is used to run the first system, the second processor 1312 is used to run the second system, and the first processor 1311 is used to run the second system.
  • the power consumption is lower than the power consumption of the second processor 1312
  • the performance of the first processor 1311 is lower than that of the second processor 1312 .
  • the processor 1310 uses various interfaces and lines to connect various parts of the entire electronic device, and executes the electronic device by running or executing the instructions, programs, code sets or instruction sets stored in the memory 1320, and calling the data stored in the memory 1320. Various functions of the device and processing data.
  • the processor 1310 may employ at least one of digital signal processing (Digital Signal Processing, DSP), field-programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). implemented in a hardware form.
  • the processor 1310 may integrate one or more of a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU), a neural network processor (Neural-network Processing Unit, NPU), and a modem, etc. The combination.
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA programmable logic array
  • the CPU mainly handles the operating system, user interface, and applications; the GPU is used to render and draw the content that needs to be displayed on the touch screen; the NPU is used to implement artificial intelligence (AI) functions; the modem is used to process Wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 1310, but is implemented by a single chip.
  • the memory 1320 may include random access memory (Random Access Memory, RAM), or may include read-only memory (Read-Only Memory, ROM).
  • the memory 1320 includes a non-transitory computer-readable storage medium.
  • Memory 1320 may be used to store instructions, programs, codes, sets of codes, or sets of instructions.
  • the memory 1320 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), Instructions and the like for implementing the following various method embodiments; the storage data area may store data (such as audio data, phone book) and the like created according to the use of the wearable device.
  • the wearable device in this embodiment of the present application further includes a communication component 1330 and a display component 1340 .
  • the communication component 1330 may be a Bluetooth component, an Ultra Wide Band (UWB) component, etc., for communicating with external devices through a wired or wireless network;
  • the display component 1340 is used for displaying a graphical user interface, and/or , to receive user interaction.
  • UWB Ultra Wide Band
  • the first processor 1311 and the communication component 1330 are connected through a physical serial port, that is, when the first system is in a running state, the first system and other devices can maintain a data communication connection, so as to connect through data communication data communication.
  • the structure of the wearable device shown in the above drawings does not constitute a limitation on the wearable device, and the wearable device may include more or less than shown in the figure. components, or a combination of certain components, or a different arrangement of components.
  • the wearable device also includes components such as a radio frequency circuit, an input unit, a sensor, an audio circuit, a speaker, a microphone, and a power supply, which will not be repeated here.
  • Embodiments of the present application further provide a computer-readable storage medium, where at least one instruction is stored in the storage medium, and at least one instruction is used to be executed by a processor to implement the data transmission method described in the foregoing embodiments.
  • Embodiments of the present application provide a computer program product, where the computer program product includes computer instructions, and the computer instructions are stored in a computer-readable storage medium.
  • the processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the data transmission methods provided in the above embodiments.
  • Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another.
  • a storage medium can be any available medium that can be accessed by a general purpose or special purpose computer.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

一种数据传输方法、装置、设备及存储介质,属于可穿戴式设备领域。该方法包括:接收终端发送的第一通信数据,第一通信数据通过第一系统与终端之间建立的数据通信连接传输(301);通过目标中间件处理第一通信数据,得到第一通信数据中包含的业务数据,目标中间件为第一系统中设置的中间件(302);通过目标中间件向目标应用发送业务数据,以便目标应用处理业务数据,目标应用是第一系统或第二系统中的应用(303)。

Description

数据传输方法、装置、设备及存储介质
本申请要求于2021年4月14日提交的申请号为202110401922.3、发明名称为“数据传输方法、装置、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及可穿戴式设备领域,特别涉及一种数据传输方法、装置、设备及存储介质。
背景技术
可穿戴式设备是一种可以直接穿戴或者整合在衣服或配件上的便携式电子设备,常见的可穿戴式设备包括智能手表、智能手环、智能眼镜等等。
相关技术中,可穿戴式设备与终端建立有通信连接(比如蓝牙连接),从而通过该蓝牙连接与终端进行数据传输,实现可穿戴式设备与终端联动。比如,终端可以通过蓝牙连接向可穿戴式设备发送通知消息,由可穿戴式设备进行通知提醒。
发明内容
本申请实施例提供了一种数据传输方法、装置、设备及存储介质。所述技术方案如下:
一方面,本申请实施例提供了一种数据传输方法,所述方法用于可穿戴式设备,所述可穿戴式设备包括第一系统和第二系统,所述第一系统是由第一处理器运行的系统,所述第二系统是由第二处理器运行的系统;
所述方法包括:
接收终端发送的第一通信数据,所述第一通信数据通过所述第一系统与所述终端之间建立的数据通信连接传输;
通过目标中间件(Middleware)处理所述第一通信数据,得到所述第一通信数据中包含的业务数据,所述目标中间件为所述第一系统中设置的中间件;
通过所述目标中间件向目标应用发送所述业务数据,以便所述目标应用处理所述业务数据,所述目标应用是所述第一系统或所述第二系统中的应用。
另一方面,本申请实施例提供了一种数据传输装置,所述装置用于可穿戴式设备,所述可穿戴式设备包括第一系统和第二系统,所述第一系统是由第一处理器运行的系统,所述第二系统是由第二处理器运行的系统;
所述装置包括:
通信数据接收模块,用于接收终端发送的第一通信数据,所述第一通信数据通过所述第一系统与所述终端之间建立的数据通信连接传输;
通信数据处理模块,用于通过目标中间件处理所述第一通信数据,得到所述第一通信数据中包含的业务数据,所述目标中间件为所述第一系统中设置的中间件;
业务数据发送模块,用于通过所述目标中间件向目标应用发送所述业务数据,以便所述目标应用处理所述业务数据,所述目标应用是所述第一系统或所述第二系统中的应用。
另一方面,本申请实施例提供了一种可穿戴式设备,所述可穿戴式设备包括处理器和存储器;所述处理器至少包括第一处理器和第二处理器,所述第二处理器的功耗高于所述第一处理器的功耗,所述存储器存储有至少一条指令,所述至少一条指令用于被所述处理器执行以实现上述方面所述的数据传输方法。
另一方面,本申请实施例提供了一种计算机可读存储介质,所述存储介质存储有至少一条指令,所述至少一条指令用于被处理器执行以实现如上述方面所述的数据传输方法。
另一方面,本申请实施例提供了一种计算机程序产品,该计算机程序产品包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述方面提供的数据传输方法。
附图说明
图1是本申请一个示例性实施例示出的第二处理器对应双核通信软件框架的示意图;
图2是本申请一个示例性实施例示出的第一处理器对应双核通信软件框架的示意图;
图3示出了本申请一个示例性实施例提供的数据传输方法的流程图;
图4是本申请一个示例性实施例示出的数据传输方法实施过程的界面示意图;
图5示出了本申请另一个示例性实施例提供的数据传输方法的流程图;
图6是图5所示数据传输方法的实施过程的时序图;
图7示出了本申请另一个示例性实施例提供的数据传输方法的流程图;
图8是图7所示数据传输方法的实施过程的时序图;
图9示出了本申请另一个示例性实施例提供的数据传输方法的流程图;
图10是图9所示数据传输方法的实施过程的时序图;
图11是本申请一个示例性实施例提供的软件框架图;
图12示出了本申请另一个实施例提供的数据传输装置的结构框图;
图13示出了本申请一个示例性实施例提供的可穿戴式设备的结构方框图。
具体实施方式
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。
在本文中提及的“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。
相关技术中,可穿戴式设备中设置有单一处理器,并通过运行在处理器上的操作系统,对设备运行过程中产生的所有系统事件进行处理。此外,为了实现与终端之间的数据联动,可穿戴式设备的通信模组(比如蓝牙模组)需要挂载在处理器上,从而将通信模组接收到的数据实时发送给操作系统,由操作系统进行处理和响应。进一步的,可穿戴式设备可以通过通信模组将数据处理结果反馈给终端,实现终端与可穿戴式设备之间的双向联动。因此,为了能够保证业务数据的正常传输和及时响应,处理器需要具备较强的数据处理能力,且在设备运行过程中需要保持工作状态。
然而,在日常使用过程中,可穿戴式设备在大多数情况下只需要实现一些对处理性能要求较低的功能,或者,与终端实现一些简单联动,比如,对于智能手表或智能手环来说,大多数情况下,智能手表或智能手环只需要进行时间显示,或者,对终端发送的通知消息进行显示。因此,长时间保持处理器处于工作状态并不会提高可穿戴式设备的性能,反而会增加设备功耗,导致可穿戴式设备的续航时间较短。
本申请实施例中,可穿戴式设备至少设置具有不同处理性能以及功耗的第一处理器和第二处理器,分别用于运行第一系统和第二系统(即双核双系统),且可穿戴式设备的通信模组挂载在第一处理器上。
可穿戴式设备运行过程中,通过运行在低功耗处理器上的第一系统,对低性能处理需求的事件进行处理,并保持高功耗处理器处于休眠状态(相应的,由高功耗处理器运行的第二系统处于休眠状态),在实现可穿戴式设备基础功能的同时,降低了可穿戴式设备的功耗。
同时,由于第一系统处于运行状态,因此可穿戴式设备能够通过第一系统与终端之间建立的数据通信连接实时接收终端发送的通信数据,并通过第一系统中设置的中间件对通信数据进行统一解析,得到通信数据中包含的业务数据,进而基于业务数据的处理需求,将业务数据分发至第一系统或第二系统中的应用,保证业务数据能够被及时处理,实现终端与可穿戴式设备之间的联动。
当存在高性能处理需求的事件时(比如启动应用程序时),通过唤醒高功耗处理器,并切换第二系统对事件进行处理,保证触发的事件能够被及时响应并处理,满足可穿戴式设备的性能需求。
本申请实施例中,由于第一处理器和第二处理器异步工作,且第一系统和第二系统需要实现系统通信(或称为双核通信)。在一种可能的应用场景下,第一系统为运行在微控制单元(Micro Controller Unit,MCU)上的实时操作系统(Real Time Operating System,RTOS),且第二系统为运行在中央处理器(Central Processing Unit,CPU)上的安卓(Android)操作系统。
如图1所示,其示出了本申请一个示例性实施例示出的安卓操作系统的双核通信软件框架。该双核通信软件框架包括Kernel(内核)、HIDL(硬件抽象层接口描述语言)、Native Service(本地服务)、Framework Service(框架服务)、Framework API(框架接口)和APP(应用)部分的模块。
其中,APP模块包括Launcher(桌面启动器)、Setting(设置)和SystemUI(系统用户界面)等功能模块;Framework API模块中包括MCUManager(MCU管理)、SensorManager(传感器管理)、LocationManager(位置管理)等管理模块,Framework Service模块中包括MCUManagerService(MCU管理服务)、SystemSensorManager(系统传感器管理)、LocationManagerService(位置管理服务)等服务模块,Native Service模块包括dccservice(dcc服务)、Sensorservice(传感器服务)等服务模块,HIDL模块包括Sensor HAL(传感器硬件抽象层)、GPS HAL(全球定位系统硬件抽象层)等模块。Kernel模块包括dcc_datah、dcc_data、Mcu_sensor、Mcu_gps、Mcu_factory等DCC Transfer Driver(DCC传输驱动)。
传输层作为双核通信软件框架中衔接上下层的接口层,向应用层屏蔽系统下层(数据链路层)通信的传输细节,为应用场景提供服务通道;应用层作为服务提供的主体,响应于人机交互并通过传输层对人机 交互过程中产生的数据进行传输,以及对外部数据请求进行响应。
以可穿戴式设备为智能手表为例,如图2所示,其示出了本申请一个示例性实施例示出的RTOS的双核通信软件框架。
RTOS的双核通信软件框架分为应用层(Application Layer)、服务层(Service Layer)、框架层(Framework Layer)、硬件抽象层(Hardware abstraction layer)和平台层(Platform Layer)。
其中,应用层包括watch face(表盘)、Daily Tracker(日常追踪)、Message center(消息中心)、Voice around Apps(声音应用)、Health Apps(健康应用)、Settings(设置)等应用模块;服务层包括Sport&health task(运动健康任务)、System manager task(系统管理任务)、AMS(活动管理服务)、AudioService(音频服务)、Log Service(日志服务)、OFTP Service(Odette文件传输协议服务)、BT Service(蓝牙服务)、Delegate Service(转交服务)、RPC Service(远程调用服务)、sensor Service(传感器服务)、storage Service(存储服务)等服务模块;框架层包括Message Pub(消息中心)、UI Framework(用户界面框架)、G2D Engine(G2D引擎)、Audio Middleware(音频中间件)、Preference(偏好)、File system(文件系统)、Algorithms(算法)、Aios、AsycEvent(进程内异步事件)等框架模块;硬件抽象层包括Screen/TP(屏幕/触控屏)、Audio(音频)、GPS(全球定位系统)、sensors(传感器)、Keypad(键盘)、Motor(马达)等硬件抽象模块;平台层包括板级支持包(Board Support Package,BSP)以及低等级驱动(LOW level Driver),其中,BSP包括Screen/TP、Keys(按键)、GPS、Codec(编码译码器)、sensors、Flash(闪存)、Motor、PSRAM(伪静态随机存储器)等等,低等级驱动包括Uart(通用异步收发传输器)、ADC(模数转换器)、GPIO(通用输入输出)、SPI(串行外设接口)、I2C(集成电路总线)、IOS(输入输出系统)、PCM(脉冲编码调制)、I2S(集成音频总线)、HWTimer(硬件定时器)。
需要说明的是,上述双核通信软件框架仅用于示意性说明,本领域技术人员还可以根据实际需求,对上述框架进行增加、删除或修改,本申请实施例并不对双核通信软件框架的具体结构构成限定。
请参考图3,其示出了本申请一个示例性实施例提供的数据传输方法的流程图,本实施例以该方法应用可穿戴式设备为例进行说明,该方法可以包括如下步骤。
步骤301,接收终端发送的第一通信数据,第一通信数据通过第一系统与终端之间建立的数据通信连接传输。
本申请实施例中,可穿戴式设备设置有第一处理器和第二处理器,分别运行有第一系统和第二系统。可选的,第一处理器的处理性能低于第二处理器的处理性能(第一处理器的处理能力和处理速度均低于第二处理器),且第一处理器的功耗低于第二处理器的功耗。相应的,第二系统(由第二处理器运行)能够处理第一系统(由第一处理器运行)所处理的事件,而第一系统并不一定能够处理第二系统所处理的事件。
以可穿戴式设备为智能手表为例,第一处理器为MCU,第二处理器为CPU,第一系统为RTOS,第二系统为安卓系统。相应的,第一系统所能处理的事件包括表盘显示、表盘界面切换、通知消息显示等对处理性能要求较低的场景或弱交互场景;第二系统所能处理的事件包括来电接听、启动应用、表盘编辑、功能设置等对处理性能要求较高的场景或强交互场景。
不同于智能手机一类具有强交互属性的电子设备,可穿戴式设备作为一种辅助性的电子设备,在绝大多数使用场景下与用户之间仅存在弱交互。比如,用户在大部分场景下仅通过智能手表进行抬腕查看时间或消息提示。因此,可穿戴式设备运行过程中,第一系统保持运行状态,而第二系统仅在对处理性能要求较高的场景或强交互场景下运行,在其他场景下则保持休眠状态。
并且,为了保证终端发送的数据能够被及时接收和处理,在一种可能的实施方式中,可穿戴式设备的通信组件挂载在第一处理器上,使可穿戴式设备在运行过程中,终端与第一系统能够保持数据通信连接,同时保持较低的功耗。需要说明的是,第二系统被唤醒且处于前台运行状态(此时第一系统切换为后台运行状态),第一系统与终端之间的数据通信连接仍旧保持,即可穿戴式设备运行过程中,可穿戴式设备均通过第一系统与终端之间的数据通信连接进行通信数据传输。
可选的,该数据通信连接为蓝牙连接,第一处理器与蓝牙通信组件通过物理串口通信。其中,该物理串口可以为通用异步收发传输器(Universal Asynchronous Receiver/Transmitter,UART)。
可选的,当终端需要向可穿戴式设备发送业务数据,以便可穿戴式设备进行处理时,即将业务数据封装为第一通信数据,并通过数据通信连接将该第一通信数据发送至可穿戴式设备的第一系统。其中,该第一通信数据可以由终端中的应用程序(通过中间件SDK)调用系统中设置的中间件对业务数据进行封装得到。
其中,中间件作为介于系统与应用之间的一类软件,用于连接操作系统层与应用程序层,通过将操作系统提供的接口标准化、协议统一化,为上层应用提供标准、统一的公共服务,有助于减少上层应用的开发工作量。本申请实施例中的中间件即用于为第一系统以及第一系统中安装的应用提供通信支持,或,为第二系统以及第二系统中安装的应用提供通信支持。
步骤302,通过目标中间件处理第一通信数据,得到第一通信数据中包含的业务数据,目标中间件为第一系统中设置的中间件。
在一种可能的实施方式中,第一系统中设置有目标中间件,而第二系统中并未设置中间件,目标中间件负责对通过数据通信连接的数据进行统一处理,得到业务数据,并基于业务数据的处理需求(即需要通过哪一系统中的应用进行处理),将业务数据分发至相应系统中的上层应用进行处理,即不论终端发送的通信数据需要第一系统还是第二系统处理,均需要经过第一系统中目标中间件的处理。
此外,目标中间件还负责将系统中上层应用反馈的数据处理为通信数据,以便通过通信组件将通信数据反向传输至终端,实现终端与可穿戴式设备之间数据的双向传输。
可选的,可穿戴式设备通过第一系统接收到第一通信数据后,即通过目标中间件对第一通信数据进行处理,得到业务数据。其中,通过中间件进行处理前,可穿戴式设备通过第一系统中的通信协议栈(比如蓝牙协议栈)对第一通信数据进行解封装。
由于目标中间件设置在第一系统中,而第一系统在可穿戴式设备运行过程中均处于运行状态(在前后台之间切换),因此能够保证通信数据得到及时处理,并保持较低的功耗(若将中间件设置在第二系统中,则需要频繁唤醒第二系统,导致功耗增加)。
在另一种可能的实施方式中,第二系统中也设置有中间件,但是在实现本申请实施例提供的数据传输方法时无需借助第二系统中的中间件,第二系统中的中间件用于实现其他功能。且为了方便描述,下述各个实施例均以第二系统中未设置中间件为例进行说明,但并不对此构成限定。
步骤303,通过目标中间件向目标应用发送业务数据,以便目标应用处理业务数据,目标应用是第一系统或第二系统中的应用。
在一种可能的实施方式中,目标中间件根据业务数据的处理需求,将业务数据发送至目标中间件所在第一系统中的目标应用,或,目标中间件将业务数据转发至第二系统中的目标应用,即目标应用可以与目标中间件位于同一系统,也可以位于不同系统。
可选的,目标应用中设置有中间件SDK,并通过该中间件SDK实现对目标中间件的调用,进而实现与目标中间件之间的数据交互。
可选的,目标应用处理业务数据后,通过所在的系统对处理结果进行展示。
在一个示意性的例子中,如图4所示,终端41向可穿戴式设备42发送包含短信通知的通信数据时,若RTOS处于前台运行状态,可穿戴式设备42即在RTOS的表盘界面上层显示短信通知43;终端41向可穿戴式设备42发送包含来电通知的通信数据时,若安卓系统处于前台运行状态,可穿戴式设备42即通过安卓系统的通话应用显示来电提醒44。
综上所述,本申请实施例中,可穿戴式设备中设置有双处理器,且由第一处理器运行第一系统,由第二处理器运行第二系统,当第一系统通过与终端之间建立的数据通信连接接收到终端发送的通信数据后,由第一系统中设置的中间件对通信数据进行处理,得到其中包含的业务数据,进而通过中间件将业务数据发送至第一系统或第二系统中的应用以进行业务处理;由于可穿戴式设备通过第一系统与终端保持数据通信,因此能够避免系统切换对数据通信的影响,保证可穿戴式设备与终端间数据通信的稳定性,且由第一系统中设置的中间件进行数据处理以及数据派发,保证第一系统和第二系统中的业务均能够得到及时处理,提高可穿戴式设备侧的业务响应速度。
此外,在第一处理器的功耗低于第二处理器的功耗的情况下,由于数据通信连接建立在低功耗的第一系统以及终端之间,因此在保证数据正常传输的前提下,能够降低可穿戴式设备的运行功耗。
可选的,通过目标中间件向目标应用发送业务数据,包括:
通过目标中间件确定负责处理业务数据的目标系统;
通过目标中间件向目标系统中的目标应用发送业务数据。
可选的,通过目标中间件向目标系统中的目标应用发送业务数据,包括:
在目标系统为第一系统的情况下,通过目标中间件向第一系统中的目标应用发送业务数据;
在目标系统为第二系统的情况下,通过目标中间件向第二系统中的中间件代理发送业务数据;通过中间件代理向第二系统中的目标应用发送业务数据。
可选的,在目标系统为第二系统的情况下,通过目标中间件向第二系统中的中间件代理发送业务数据之前,方法还包括:
在第一系统处于前台运行状态的情况下,在第二系统处于休眠状态的情况下,将第二处理器由休眠状态切换为唤醒状态。
可选的,通过目标中间件向目标系统中的目标应用发送业务数据,还包括:
在目标系统为第一系统或第二系统的情况下,通过目标中间件向处于前台运行状态的目标系统中的目标应用发送业务数据。
可选的,通过目标中间件向处于前台运行状态的目标系统中的目标应用发送业务数据,包括:
在第一系统处于前台运行状态的情况下,通过目标中间件向第一系统中的目标应用发送业务数据;
在第二系统处于前台运行状态的情况下,通过目标中间件向第二系统中的中间件代理发送业务数据;通过中间件代理向第二系统中的目标应用发送业务数据。
可选的,通过目标中间件向目标应用发送业务数据之后,方法还包括:
通过目标中间件对目标应用的业务响应数据进行处理,得到第二通信数据;
向终端发送第二通信数据,以便终端处理业务响应数据,第二通信数据通过数据通信连接传输。
可选的,通过目标中间件对目标应用的业务响应数据进行处理,得到第二通信数据,包括:
在目标应用为第二系统中的应用的情况下,通过第二系统中的中间件代理获取业务响应数据;
通过中间件代理向目标中间件发送业务响应数据;
通过目标中间件对业务响应数据进行处理,得到第二通信数据。
可选的,数据通信连接为蓝牙连接,第一处理器与蓝牙通信组件通过物理串口通信。
可选的,第二处理器的功耗高于第一处理器的功耗。
在一种可能的实施方式中,根据不同的数据处理需求,终端向可穿戴式设备发送的通信数据可以分为如下三种:
1、第一系统独有数据,只能由第一系统处理;
此类通信数据中包含的业务数据是对处理性能要求较低或弱交互场景下的数据,且只需要在第一系统侧对处理结果进行展示即可。
2、第二系统独有数据,只能由第二系统处理;
此类通信数据中包含的业务数据是对处理性能要求较高或强交互场景下的数据,需要第二系统中的特定应用进行业务响应,并对处理结果进行展示。比如,包含来电通知的通信数据,需要第二系统中的通话应用进行来电提醒。
3、第一系统和第二系统共有的数据,第一系统和第二系统均可处理;
此类通信数据中包含的业务数据是对处理性能要求较低或弱交互场景下的数据,且根据系统的前台运行状态,可以由第一系统或第二系统进行处理,并对处理结果进行展示。比如,包含短信通知的通信数据,由处于前台运行状态的系统进行短信通知横幅提示。
当然,由于第一系统所需实现的功能通常为第二系统所需实现功能的子集,因此在其他可能的实施方式中,通信数据还可以被分为两种(即上述第2、3两种),本实施例对此不作限定。
为了保证目标中间件进行业务数据分发后,接收到该业务数据的系统能够通过应用正确处理该业务数据,在一种可能的实施方式中,目标中间件具备确定业务数据所对应的目标系统的功能,该目标系统即为负责处理该业务数据的系统。
在一些实施例中,目标中间件具有识别第一系统独有数据、第二系统独有数据以及第一/第二系统共有数据的功能,或者,具有第二系统独有数据以及第一/第二系统共有数据的功能。本申请实施例并不对目标中间件的具体业务数据识别能力进行限定。
相应的,可穿戴式设备通过目标中间件处理得到业务数据后,确定负责处理该业务数据的目标系统,从而通过目标中间件向目标系统中的目标应用发送业务数据。
下面将采用示例性的实施例分别对上述三种处理需求下业务数据的分发过程进行说明。
请参考图5,其示出了本申请另一个示例性实施例提供的数据传输方法的流程图,本实施例以该方法应用可穿戴式设备为例进行说明,该方法可以包括如下步骤。
步骤501,接收终端发送的第一通信数据,第一通信数据通过第一系统与终端之间建立的数据通信连接传输。
步骤502,通过目标中间件处理第一通信数据,得到第一通信数据中包含的业务数据,目标中间件为第一系统中设置的中间件。
上述步骤501至502的实施方式可以参考上述步骤301至302,本实施例在此不再赘述。
示意性的,如图6所示,以终端与可穿戴式设备进行蓝牙通信为例,终端中的应用产生业务数据后,首先向中间件发送业务数据,由中间件将业务数据处理为通信数据后,将通信数据发送至蓝牙,从而通过蓝牙连接向第一系统的蓝牙传输该通信数据。第一系统通过蓝牙连接接收到通信数据后,将通信数据发送至第一系统中的中间件进行处理,得到业务数据。
步骤503,通过目标中间件确定负责处理业务数据的目标系统。
在一种可能的实施方式中,目标中间件中预先配置有业务数据与系统之间对应关系,处理第一通信数据得到业务数据后,目标中间件从该对应关系中,确定负责处理该业务数据的目标系统。
示意性的,业务数据与系统之间的对应关系如表一所示。
表一
系统 业务数据
第一系统 业务A
第二系统 业务B、业务C、业务D、业务E
第一系统/第二系统 业务F、业务G
可选的,目标中间件可以基于业务数据对应的应用包名和/或活动(Activity)名,从上述对应关系中确定出目标系统。
比如,当处理得到的业务数据对应业务A时,目标中间件将第一系统确定为目标系统。
步骤504,在目标系统为第一系统的情况下,通过目标中间件向第一系统中的目标应用发送业务数据。
当目标系统为第一系统时,由于目标中间件设置在第一系统中,因此可穿戴式设备可以直接通过目标中间件向第一系统中的目标应用发送业务数据,由目标应用对业务数据进行处理。
可选的,目标应用进行数据处理过程中,可以通过第一系统对处理结果进行展示,从而实现在可穿戴式设备侧提醒用户。
示意性的,如图6所示,第一系统的中间件将处理得到的业务数据分发至第一系统中的应用,由应用进行业务响应。
步骤505,通过目标中间件对目标应用的业务响应数据进行处理,得到第二通信数据。
在一种可能的实施方式中,目标应用对业务数据进行处理后产生业务响应数据,该业务响应数据可以由用户交互产生,也可以由应用在进行数据?过程中自动产生。当需要将业务响应数据反馈至终端时,目标应用即通过目标中间件对业务响应数据进行处理,得到第二通信数据。本实施例中,目标应用即通过第一中间件对业务响应数据进行处理,得到第二通信数据。其中,对业务响应数据进行处理得到第二通信数据的过程可以理解为对第一通信数据进行处理得到业务数据的逆过程。
可选的,目标应用中设置有中间件SDK,当需要向终端传输业务响应数据时,目标应用即通过中间件SDK调用目标中间件,由目标中间件对业务响应数据进行处理。
步骤506,向终端发送第二通信数据,以便终端处理业务响应数据,第二通信数据通过数据通信连接传输。
进一步的,可穿戴式设备(第一系统)通过数据通信连接向终端发送第二通信数据,相应的,终端通过数据通信连接接收到第二通信数据后,通过中间件对第二通信数据进行处理,得到业务响应数据,并将业务响应数据分发给终端中相应的应用。
其中,向终端发送第二通信数据前,可穿戴式设备通过第一系统中的通信协议栈对第二通信数据进行协议封装,使其满足通信传输协议,从而通过通信组件传输经过协议封装后的第二通信数据。
本实施例中,目标中间件识别出业务数据由第一系统负责处理时,将处理后得到的业务数据分发至第一系统中的应用进行数据处理,提高第一系统处理业务数据的及时性和准确性,并且,整个过程中第二系统保持休眠状态,有助于降低终端的功耗。
请参考图7,其示出了本申请另一个示例性实施例提供的数据传输方法的流程图,本实施例以该方法应用可穿戴式设备为例进行说明,该方法可以包括如下步骤。
步骤701,接收终端发送的第一通信数据,第一通信数据通过第一系统与终端之间建立的数据通信连接传输。
步骤702,通过目标中间件处理第一通信数据,得到第一通信数据中包含的业务数据,目标中间件为第一系统中设置的中间件。
上述步骤701至702的实施方式可以参考上述步骤301至302,本实施例在此不再赘述。
示意性的,如图8所示,以终端与可穿戴式设备进行蓝牙通信为例,终端中的应用产生业务数据后,首先向中间件发送业务数据,由中间件将业务数据处理为通信数据后,将通信数据发送至蓝牙,从而通过蓝牙连接向第一系统的蓝牙传输该通信数据。第一系统通过蓝牙连接接收到通信数据后,将通信数据发送至第一系统中的中间件进行处理,得到业务数据。
步骤703,通过目标中间件确定负责处理业务数据的目标系统。
本步骤的实施方式可以参考上述步骤503,本实施例在此不再赘述。
在一种可能的实施方式中,由于可穿戴式设备接收到第一通信数据时,第二系统可能处于休眠状态,而处于休眠状态的第二系统无法对业务数据进行处理。因此当确定出负责处理业务数据的目标系统为第二系统时,可穿戴式设备需要检测第二系统(即第二处理器)是否处于前台运行状态,若处于前台运行状态,则执行步骤705,若处于休眠状态,则执行步骤704。
步骤704,在目标系统为第二系统,且第一系统处于前台运行状态,第二系统处于休眠状态的情况下, 将第二处理器由休眠状态切换为唤醒状态。
在一种可能的实施方式中,若第二处理器处于休眠状态(此时第一系统处于前台运行状态),第一处理器通过产生中断的方式唤醒第二处理器,第二处理器接收到中断后,由休眠状态切换为唤醒状态。
可选的,第二系统唤醒后处于前台运行状态,而第一系统则切换为后台运行状态,或者,唤醒后的第二系统处于后台运行状态,第一系统仍旧处于前台运行状态。
步骤705,通过目标中间件向第二系统中的中间件代理发送业务数据。
本申请实施例中,由于仅在第一系统中设置有中间件,因此为了使第二系统中的应用能够正确接收到业务数据,第二系统中设置有第一系统中目标中间件对应的中间件代理(Middleware Proxy)。其中,中间件代理作为目标中间件与第二系统中应用之间的数据通信媒介,仅具有数据转发功能,并不具有对业务数据的处理功能。
相应的,当目标系统为第二系统时,可穿戴式设备通过目标中间件向第二系统中的中间件代理发送处理得到的业务数据,由中间件代理将业务数据转发至上层应用。可选的,目标中间件通过第一系统与第二系统之间的UART向中间件代理发送业务数据。
示意性的,如图8所示,当业务数据只能由第二系统中的应用处理时,第一系统中的中间件将业务数据发送至第二系统的中间件代理。
步骤706,通过中间件代理向第二系统中的目标应用发送业务数据。
进一步的,中间件代理将接收到的业务数据转发给第二系统中的目标应用,由目标应用对业务数据进行处理响应。
示意性的,如图8所示,中间件代理将业务数据转发至第二系统中的应用,由该应用进行业务响应。
步骤707,通过目标中间件对目标应用的业务响应数据进行处理,得到第二通信数据。
目标应用对业务数据进行处理后产生业务响应数据,该业务响应数据可以由用户交互产生,也可以由应用在进行数据?过程中自动产生。比如,当业务数据为来电通知时,通话应用显示来电提醒界面后,用户可以在界面上执行接听或挂断操作,接听或挂断操作将产生对应的业务响应数据。
当需要将业务响应数据反馈至终端时(比如需要向终端反馈接听或挂断指令),目标应用即通过目标中间件对业务响应数据进行处理,得到满足通信连接传输要求的第二通信数据。
本实施例中,由于第二系统中并未设置中间件,且第二系统并未与终端建立数据通信连接,因此第二系统中的目标应用需要将业务响应数据转发至第一系统中的目标中间件,由目标中间件对业务响应数据进行处理,以便执行后续的数据传输。
在一种可能的实施方式中,当目标应用为第二系统中的应用时,可穿戴式设备通过第二系统中的中间件代理获取目标应用产生的业务响应数据,从而通过中间件代理向目标中间件发送业务响应数据,进而通过目标中间件对业务响应数据进行处理,得到第二通信数据。
在一个示意性的例子中,当业务数据为来电通知,且业务响应数据为接听指令时,第二系统中的通话应用通过调用中间件SDK,向中间件代理发送接听指令,由中间件代理将听指令转发至第一系统中的中间件。中间件接收到该接听指令后,即对接听指令进行处理,得到第二通信数据。
步骤708,向终端发送第二通信数据,以便终端处理业务响应数据,第二通信数据通过数据通信连接传输。
由于可穿戴式设备仅通过第一系统与终端建立数据通信连接,因此可穿戴式设备进一步通过该数据通信连接向终端发送第二通信数据。
需要说明的是,第一系统向终端发送第二通信数据前,需要通过通信协议栈对第二通信数据进行处理(协议封装),从而向终端发送处理后的第二通信数据。比如,第一系统首先通过蓝牙协议栈对第二通信数据进行处理,从而将处理后的第二通信数据发送至终端。
本实施例中,目标中间件识别出业务数据由第二系统负责处理时,将处理后得到的业务数据发送至第二系统中的中间件代理,由该中间件代理将业务数据转发至第二系统中的应用,保证第二系统对业务的及时响应;并且,通过设置中间件代理,无需在第二系统中设置中间件,有助于降低第二系统的系统复杂度。
请参考图9,其示出了本申请另一个示例性实施例提供的数据传输方法的流程图,本实施例以该方法应用可穿戴式设备为例进行说明,该方法可以包括如下步骤。
步骤901,接收终端发送的第一通信数据,第一通信数据通过第一系统与终端之间建立的数据通信连接传输。
步骤902,通过目标中间件处理第一通信数据,得到第一通信数据中包含的业务数据,目标中间件为第一系统中设置的中间件。
上述步骤901至902的实施方式可以参考上述步骤301至302,本实施例在此不再赘述。
示意性的,如图10所示,以终端与可穿戴式设备进行蓝牙通信为例,终端中的应用产生业务数据后, 首先向中间件发送业务数据,由中间件将业务数据处理为通信数据后,将通信数据发送至蓝牙,从而通过蓝牙连接向第一系统的蓝牙传输该通信数据。第一系统通过蓝牙连接接收到通信数据后,将通信数据发送至第一系统中的中间件进行处理,得到业务数据。
步骤903,通过目标中间件确定负责处理业务数据的目标系统。
本步骤的实施方式可以参考上述步骤503,本实施例在此不再赘述。
步骤904,在目标系统为第一系统或第二系统的情况下,通过目标中间件向处于前台运行状态的目标系统中的目标应用发送业务数据。
由于同一时刻下,仅单一系统具有可穿戴式设备的图形用户界面控制权限(即可穿戴式设备的显示屏在同一时刻下仅能被一个系统使用),因此对于第一系统和第二系统的共有数据,可穿戴式设备基于双系统的系统运行状态,将当前处于前台运行状态的系统确定为负责处理该业务数据的系统,并通过该系统中的目标应用进行业务数据处理响应。
可选的,在第一系统处于前台运行状态的情况下,可穿戴式设备通过目标中间件向第一系统中的目标应用发送业务数据;
在第二系统处于前台运行状态的情况下,可穿戴式设备通过目标中间件向第二系统中的中间件代理发送业务数据,从而通过中间件代理向第二系统中的目标应用发送业务数据。其中,中间件代理的相关说明可以参考上述实施例,本实施例在此不再赘述。
示意性的,如图10所示,当检测到第一系统处于前台运行状态,而第二系统处于休眠状态时,第一系统中的中间件向第一系统中的应用分发业务数据,由第一系统中的应用进行业务处理响应;当检测到第二系统处于前台运行状态,而第一系统处于后台运行状态时,第一系统中的中间件向第二系统中的中间件代理发送业务数据,由中间件代理进一步将业务数据转发至第二系统中的应用,最终由第二系统中的应用进行业务处理响应。
在其他可能的实施方式中,目标中间件也可以先将业务数据发送至第一系统中的第一应用,并在检测到第二系统处于前台运行状态时,通过第一系统中的应用将业务数据发送至第二系统中的第二应用(即目标应用)。其中,第一应用可以通过第一系统与第二系统之间的物理串口向第二应用发送该业务数据。比如,该物理串口可以为串行外设接口(Serial Peripheral Interface,SPI)。
在一些实施例中,若检测到前台运行的系统在预设时长内由第一系统切换为第二系统,为了避免因快速切换系统导致业务遗漏,目标中间件向第一系统中的应用发送业务数据后,可以再次向第二系统中的应用发送业务数据,以便第二系统中的应用进行业务数据处理和展示。
步骤905,通过目标中间件对目标应用的业务响应数据进行处理,得到第二通信数据。
在一种可能的实施方式中,当目标应用目标中间件位于同一系统时(即第一系统中的应用),目标应用直接向目标中间件发送业务响应数据;当目标应用与目标中间件位于不同系统时(即第二系统中的应用),目标应用通过中间件代理向目标中间件发送业务响应数据。
在其他可能的实施方式中,当目标应用与目标中间件位于不同系统时,目标应用还可以通过第一系统中的应用,向目标中间件转发业务响应数据(负责处理业务数据的系统可以是第一系统或第二系统处理),本实施例在此不再赘述。
步骤906,向终端发送第二通信数据,以便终端处理业务响应数据,第二通信数据通过数据通信连接传输。
本步骤的实施方式可以参考上述步骤708,本实施例在此不再赘述。
本实施例中,目标中间件识别出业务数据可以由第一系统或第二系统负责处理时,将处理后得到的业务数据发送至处于前台运行系统中的应用,从而通过前台运行系统对业务进行及时相应,提高业务响应的及时性。
结合上述实施例中,在一个示例性的例子中,当终端与可穿戴式设备之间通过蓝牙(BT)连接进行通信,终端与可穿戴式设备的软件框架如图11所示。
其中,终端1110中安装有应用,且该应用中设置有中间件SDK。通过该中间件SDK,应用可以向BT API发送数据,以便终端通过BT向其他设备发送数据,或者,获取终端通过BT接收到的数据。
可穿戴式设备1120中设置有第一系统1121和第二系统1122。其中,第一系统1121与终端1110通过蓝牙连接进行通信(终端1110和第一系统1121中均设置有BT Stack,而第二系统则未设置BT Stack),而第一系统1121和第二系统1122之间则通过物理串口进行通信(SPI和UART)。
终端1110通过蓝牙连接向可穿戴式设备1120发送第一系统的独有数据时,第一系统即通过目标中间件对数据进行处理,并将处理得到的业务数据分发至第一系统中的应用,由该应用进行业务响应。
终端1110通过蓝牙连接向可穿戴式设备1120发送第一系统和第二系统的共有数据时,第一系统即通过目标中间件对数据进行处理,并基于第一系统1121和第二系统1122的前台运行状态,将处理得到的业 务数据分发至第一系统或第二系统中的应用。其中,当第一系统1121处于前台运行状态时,第一系统1121将业务数据分发至第一系统中的应用;当第二系统1122处于前台运行状态时,第一系统通过中间件将业务数据发送至中间件代理(通过UART),由中间件代理将业务数据转发至第二系统中的应用,或者,通过第一系统中的应用向第二系统中的应用转发该业务数据(通过SPI)。
终端1110通过蓝牙连接向可穿戴式设备1120发送第二系统的独有数据时,第一系统1121即通过UART将中间件处理得到的业务数据发送至第二系统1122的中间件代理,由中间件代理向第二系统中的应用转发给业务数据,由该应用进行业务响应。
请参考图12,其示出了本申请一个实施例提供的数据传输装置的结构框图。该装置可以通过软件、硬件或者两者的结合实现成为可穿戴式设备的全部或一部分。该装置包括:
通信数据接收模块1201,用于接收终端发送的第一通信数据,所述第一通信数据通过所述第一系统与所述终端之间建立的数据通信连接传输;
通信数据处理模块1202,用于通过目标中间件处理所述第一通信数据,得到所述第一通信数据中包含的业务数据,所述目标中间件为所述第一系统中设置的中间件;
业务数据发送模块1203,用于通过所述目标中间件向目标应用发送所述业务数据,以便所述目标应用处理所述业务数据,所述目标应用是所述第一系统或所述第二系统中的应用。
可选的,所述业务数据发送模块1203,包括:
系统确定单元,用于通过所述目标中间件确定负责处理所述业务数据的目标系统;
业务数据发送单元,用于通过所述目标中间件向所述目标系统中的所述目标应用发送所述业务数据。
可选的,所述业务数据发送单元,具体用于:
在所述目标系统为所述第一系统的情况下,通过所述目标中间件向所述第一系统中的所述目标应用发送所述业务数据;
在所述目标系统为所述第二系统的情况下,通过所述目标中间件向所述第二系统中的中间件代理发送所述业务数据;通过所述中间件代理向所述第二系统中的所述目标应用发送所述业务数据。
可选的,所述装置还包括:
唤醒模块,用于在所述第一系统处于前台运行状态,所述第二系统处于休眠状态的情况下,将所述第二处理器由休眠状态切换为唤醒状态。
可选的,所述业务数据发送单元,还用于:
在所述目标系统为所述第一系统或所述第二系统的情况下,通过所述目标中间件向处于前台运行状态的所述目标系统中的所述目标应用发送所述业务数据。
可选的,所述业务数据发送单元,具体用于:
在所述第一系统处于前台运行状态的情况下,通过所述目标中间件向所述第一系统中的所述目标应用发送所述业务数据;
在所述第二系统处于前台运行状态的情况下,通过所述目标中间件向所述第二系统中的中间件代理发送所述业务数据;通过所述中间件代理向所述第二系统中的所述目标应用发送所述业务数据。
可选的,所述装置还包括:
响应数据处理模块,用于通过所述目标中间件对所述目标应用的业务响应数据进行处理,得到第二通信数据;
通信数据发送模块,用于向所述终端发送所述第二通信数据,以便所述终端处理所述业务响应数据,所述第二通信数据通过所述数据通信连接传输。
可选的,所述响应数据处理模块,具体用于:
在所述目标应用为所述第二系统中的应用的情况下,通过所述第二系统中的中间件代理获取所述业务响应数据;
通过所述中间件代理向所述目标中间件发送所述业务响应数据;
通过所述目标中间件对所述业务响应数据进行处理,得到所述第二通信数据。
可选的,所述数据通信连接为蓝牙连接,所述第一处理器与蓝牙通信组件通过物理串口通信。
可选的,所述第二处理器的功耗高于所述第一处理器的功耗。
综上所述,本申请实施例中,可穿戴式设备中设置有双处理器,且由第一处理器运行第一系统,由第二处理器运行第二系统,当第一系统通过与终端之间建立的数据通信连接接收到终端发送的通信数据后,由第一系统中设置的中间件对通信数据进行处理,得到其中包含的业务数据,进而通过中间件将业务数据发送至第一系统或第二系统中的应用以进行业务处理;由于可穿戴式设备通过第一系统与终端保持数据通信,因此能够避免因系统切换对数据通信的影响,保证可穿戴式设备与终端间数据通信的稳定性,且由第一系统中设置的中间件进行数据处理以及数据派发,保证第一系统和第二系统中的业务均能够得到及时处 理,提高可穿戴式设备侧的业务响应速度。
请参考图13,其示出了本申请一个示例性实施例提供的可穿戴式设备的结构方框图。本申请中的可穿戴式设备可以包括一个或多个如下部件:处理器1310和存储器1320。
处理器1310至少包括第一处理器1311和第二处理器1312,其中,第一处理器1311用于运行第一系统,第二处理器1312用于运行第二系统,且第一处理器1311的功耗低于第二处理器1312的功耗,第一处理器1311的性能低于第二处理器1312的性能。处理器1310利用各种接口和线路连接整个电子设备内的各个部分,通过运行或执行存储在存储器1320内的指令、程序、代码集或指令集,以及调用存储在存储器1320内的数据,执行电子设备的各种功能和处理数据。可选地,处理器1310可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器1310可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)、神经网络处理器(Neural-network Processing Unit,NPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责触摸显示屏所需要显示的内容的渲染和绘制;NPU用于实现人工智能(Artificial Intelligence,AI)功能;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器1310中,单独通过一块芯片进行实现。
存储器1320可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory,ROM)。可选地,该存储器1320包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。存储器1320可用于存储指令、程序、代码、代码集或指令集。存储器1320可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等;存储数据区可存储根据可穿戴式设备的使用所创建的数据(比如音频数据、电话本)等。
本申请实施例中的可穿戴式设备还包括通信组件1330和显示组件1340。其中,通信组件1330可以为蓝牙组件、超宽带(Ultra Wide Band,UWB)组件等等,用于通过有线或无线网络与外部设备进行通信;显示组件1340用于进行图形用户界面展示,和/或,接收用户交互操作。
本申请实施例中,第一处理器1311与通信组件1330之间通过物理串口通信连接,即在第一系统处于运行状态时,第一系统与其他设备可以保持数据通信连接,从而通过数据通信连接进行数据通信。
除此之外,本领域技术人员可以理解,上述附图所示出的可穿戴式设备的结构并不构成对可穿戴式设备的限定,可穿戴式设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。比如,可穿戴式设备中还包括射频电路、输入单元、传感器、音频电路、扬声器、麦克风、电源等部件,在此不再赘述。
本申请实施例还提供了一种计算机可读存储介质,该存储介质存储有至少一条指令,至少一条指令用于被处理器执行以实现如上述实施例所述的数据传输方法。
本申请实施例提供了一种计算机程序产品,该计算机程序产品包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述实施例提供的数据传输方法。
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请实施例所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。
以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。

Claims (23)

  1. 一种数据传输方法,所述方法用于可穿戴式设备,所述可穿戴式设备包括第一系统和第二系统,所述第一系统是由第一处理器运行的系统,所述第二系统是由第二处理器运行的系统;
    所述方法包括:
    接收终端发送的第一通信数据,所述第一通信数据通过所述第一系统与所述终端之间建立的数据通信连接传输;
    通过目标中间件处理所述第一通信数据,得到所述第一通信数据中包含的业务数据,所述目标中间件为所述第一系统中设置的中间件;
    通过所述目标中间件向目标应用发送所述业务数据,以便所述目标应用处理所述业务数据,所述目标应用是所述第一系统或所述第二系统中的应用。
  2. 根据权利要求1所述的方法,其中,所述通过所述目标中间件向目标应用发送所述业务数据,包括:
    通过所述目标中间件确定负责处理所述业务数据的目标系统;
    通过所述目标中间件向所述目标系统中的所述目标应用发送所述业务数据。
  3. 根据权利要求2所述的方法,其中,所述通过所述目标中间件向所述目标系统中的所述目标应用发送所述业务数据,包括:
    在所述目标系统为所述第一系统的情况下,通过所述目标中间件向所述第一系统中的所述目标应用发送所述业务数据;
    在所述目标系统为所述第二系统的情况下,通过所述目标中间件向所述第二系统中的中间件代理发送所述业务数据;通过所述中间件代理向所述第二系统中的所述目标应用发送所述业务数据。
  4. 根据权利要求3所述的方法,其中,所述响应于所述目标系统为所述第二系统,通过所述目标中间件向所述第二系统中的中间件代理发送所述业务数据之前,所述方法还包括:
    在所述第一系统处于前台运行状态,所述第二系统处于休眠状态的情况下,将所述第二处理器由休眠状态切换为唤醒状态。
  5. 根据权利要求2所述的方法,其中,所述通过所述目标中间件向所述目标系统中的所述目标应用发送所述业务数据,还包括:
    在所述目标系统为所述第一系统或所述第二系统的情况下,通过所述目标中间件向处于前台运行状态的所述目标系统中的所述目标应用发送所述业务数据。
  6. 根据权利要求5所述的方法,其中,所述通过所述目标中间件向处于前台运行状态的所述目标系统中的所述目标应用发送所述业务数据,包括:
    在所述第一系统处于前台运行状态的情况下,通过所述目标中间件向所述第一系统中的所述目标应用发送所述业务数据;
    在所述第二系统处于前台运行状态的情况下,通过所述目标中间件向所述第二系统中的中间件代理发送所述业务数据;通过所述中间件代理向所述第二系统中的所述目标应用发送所述业务数据。
  7. 根据权利要求1至6任一所述的方法,其中,所述通过所述目标中间件向目标应用发送所述业务数据之后,所述方法还包括:
    通过所述目标中间件对所述目标应用的业务响应数据进行处理,得到第二通信数据;
    向所述终端发送所述第二通信数据,以便所述终端处理所述业务响应数据,所述第二通信数据通过所述数据通信连接传输。
  8. 根据权利要求7所述的方法,其中,所述通过所述目标中间件对所述目标应用的业务响应数据进行处理,得到第二通信数据,包括:
    在所述目标应用为所述第二系统中的应用的情况下,通过所述第二系统中的中间件代理获取所述业务响应数据;
    通过所述中间件代理向所述目标中间件发送所述业务响应数据;
    通过所述目标中间件对所述业务响应数据进行处理,得到所述第二通信数据。
  9. 根据权利要求1至6任一所述的方法,其中,所述数据通信连接为蓝牙连接,所述第一处理器与蓝牙通信组件通过物理串口通信。
  10. 根据权利要求1至6任一所述的方法,其中,所述第二处理器的功耗高于所述第一处理器的功耗。
  11. 一种数据传输装置,所述装置用于可穿戴式设备,所述可穿戴式设备包括第一系统和第二系统,所述第一系统是由第一处理器运行的系统,所述第二系统是由第二处理器运行的系统;
    所述装置包括:
    通信数据接收模块,用于接收终端发送的第一通信数据,所述第一通信数据通过所述第一系统与所述终端之间建立的数据通信连接传输;
    通信数据处理模块,用于通过目标中间件处理所述第一通信数据,得到所述第一通信数据中包含的业务数据,所述目标中间件为所述第一系统中设置的中间件;
    业务数据发送模块,用于通过所述目标中间件向目标应用发送所述业务数据,以便所述目标应用处理所述业务数据,所述目标应用是所述第一系统或所述第二系统中的应用。
  12. 根据权利要求11所述的装置,其中,所述业务数据发送模块,包括:
    系统确定单元,用于通过所述目标中间件确定负责处理所述业务数据的目标系统;
    业务数据发送单元,用于通过所述目标中间件向所述目标系统中的所述目标应用发送所述业务数据。
  13. 根据权利要求12所述的装置,其中,所述业务数据发送单元,具体用于:
    在所述目标系统为所述第一系统的情况下,通过所述目标中间件向所述第一系统中的所述目标应用发送所述业务数据;
    在所述目标系统为所述第二系统的情况下,通过所述目标中间件向所述第二系统中的中间件代理发送所述业务数据;通过所述中间件代理向所述第二系统中的所述目标应用发送所述业务数据。
  14. 根据权利要求13所述的装置,其中,所述装置还包括:
    唤醒模块,用于在所述第一系统处于前台运行状态,所述第二系统处于休眠状态的情况下,将所述第二处理器由休眠状态切换为唤醒状态。
  15. 根据权利要求12所述的装置,其中,所述业务数据发送单元,还用于:
    在所述目标系统为所述第一系统或所述第二系统的情况下,通过所述目标中间件向处于前台运行状态的所述目标系统中的所述目标应用发送所述业务数据。
  16. 根据权利要求15所述的装置,其中,所述业务数据发送单元,具体用于:
    在所述第一系统处于前台运行状态的情况下,通过所述目标中间件向所述第一系统中的所述目标应用发送所述业务数据;
    在所述第二系统处于前台运行状态的情况下,通过所述目标中间件向所述第二系统中的中间件代理发送所述业务数据;通过所述中间件代理向所述第二系统中的所述目标应用发送所述业务数据。
  17. 根据权利要求11至16任一所述的装置,其中,所述装置还包括:
    响应数据处理模块,用于通过所述目标中间件对所述目标应用的业务响应数据进行处理,得到第二通信数据;
    通信数据发送模块,用于向所述终端发送所述第二通信数据,以便所述终端处理所述业务响应数据,所述第二通信数据通过所述数据通信连接传输。
  18. 根据权利要求17所述的装置,其中,所述响应数据处理模块,具体用于:
    在所述目标应用为所述第二系统中的应用的情况下,通过所述第二系统中的中间件代理获取所述业务响应数据;
    通过所述中间件代理向所述目标中间件发送所述业务响应数据;
    通过所述目标中间件对所述业务响应数据进行处理,得到所述第二通信数据。
  19. 根据权利要求11至16任一所述的装置,其中,所述数据通信连接为蓝牙连接,所述第一处理器与蓝牙通信组件通过物理串口通信。
  20. 根据权利要求11至16任一所述的装置,其中,所述第二处理器的功耗高于所述第一处理器的功耗。
  21. 一种可穿戴式设备,所述可穿戴式设备包括处理器和存储器;所述处理器至少包括第一处理器和第二处理器,所述存储器存储有至少一条指令,所述至少一条指令用于被所述处理器执行以实现如权利要求1至10任一所述的数据传输方法。
  22. 一种计算机可读存储介质,所述存储介质存储有至少一条指令,所述至少一条指令用于被处理器执行以实现如权利要求1至10任一所述的数据传输方法。
  23. 一种计算机程序产品,所述计算机程序产品包括计算机指令,所述计算机指令存储在计算机可读存储介质中;计算机设备的处理器从所述计算机可读存储介质读取所述计算机指令,所述处理器执行所述计算机指令,使得所述计算机设备执行如权利要求1至10任一所述的数据传输方法。
PCT/CN2022/082053 2021-04-14 2022-03-21 数据传输方法、装置、设备及存储介质 WO2022218107A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110401922.3 2021-04-14
CN202110401922.3A CN115226048A (zh) 2021-04-14 2021-04-14 数据传输方法、装置、设备及存储介质

Publications (1)

Publication Number Publication Date
WO2022218107A1 true WO2022218107A1 (zh) 2022-10-20

Family

ID=83605652

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/082053 WO2022218107A1 (zh) 2021-04-14 2022-03-21 数据传输方法、装置、设备及存储介质

Country Status (2)

Country Link
CN (1) CN115226048A (zh)
WO (1) WO2022218107A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115622592A (zh) * 2022-12-20 2023-01-17 翱捷科技(深圳)有限公司 音频数据获取方法、系统及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150301858A1 (en) * 2014-04-21 2015-10-22 National Tsing Hua University Multiprocessors systems and processes scheduling methods thereof
CN106406494A (zh) * 2016-08-29 2017-02-15 深圳市金立通信设备有限公司 一种处理器调度的方法及终端
CN106604369A (zh) * 2016-10-26 2017-04-26 惠州Tcl移动通信有限公司 一种具有双模式切换功能的终端设备
CN108271116A (zh) * 2017-12-30 2018-07-10 广州柏颐信息科技有限公司 一种用于智能穿戴设备的实时通讯系统和方法

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6483387B2 (ja) * 2014-09-25 2019-03-13 綜合警備保障株式会社 警備業務支援システム及び警備業務支援方法
CN106611310B (zh) * 2015-08-14 2020-12-08 华为终端有限公司 数据处理的方法、穿戴式电子设备和系统
CN109102854A (zh) * 2018-08-28 2018-12-28 苏州德品医疗科技股份有限公司 一种基于穿戴检测的医疗物联网检测系统
CN110535978B (zh) * 2019-10-08 2021-06-25 湖南新云网科技有限公司 数据传输方法、装置、系统及智能穿戴式设备和存储介质
CN112492564B (zh) * 2020-12-08 2023-01-24 Oppo广东移动通信有限公司 系统切换方法和装置、电子设备、可读存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150301858A1 (en) * 2014-04-21 2015-10-22 National Tsing Hua University Multiprocessors systems and processes scheduling methods thereof
CN106406494A (zh) * 2016-08-29 2017-02-15 深圳市金立通信设备有限公司 一种处理器调度的方法及终端
CN106604369A (zh) * 2016-10-26 2017-04-26 惠州Tcl移动通信有限公司 一种具有双模式切换功能的终端设备
CN108271116A (zh) * 2017-12-30 2018-07-10 广州柏颐信息科技有限公司 一种用于智能穿戴设备的实时通讯系统和方法

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115622592A (zh) * 2022-12-20 2023-01-17 翱捷科技(深圳)有限公司 音频数据获取方法、系统及存储介质

Also Published As

Publication number Publication date
CN115226048A (zh) 2022-10-21

Similar Documents

Publication Publication Date Title
KR102148948B1 (ko) 전자 장치의 멀티 태스킹 방법 및 그 전자 장치
WO2021052413A1 (zh) 节能信号监听时刻的确定方法、配置方法及相关设备
EP3598727B1 (en) Message acquisition method and apparatus
WO2020156432A1 (zh) 指示信号的传输方法、终端和网络设备
JP7459438B2 (ja) モバイル端末の消費電力を削減するための方法およびモバイル端末
WO2021017935A1 (zh) 一种唤醒锁的管理方法及电子设备
WO2020006711A1 (zh) 一种消息的播放方法及终端
WO2018040813A1 (zh) 音视频通信方法、终端、服务器及存储介质
WO2022218107A1 (zh) 数据传输方法、装置、设备及存储介质
WO2022127341A1 (zh) 系统切换方法、装置、设备及存储介质
WO2019128586A1 (zh) 应用程序处理方法、电子设备、计算机可读存储介质
JP2019185771A (ja) ブルートゥーススピーカーデータ処理の方法、装置及びブルートゥーススピーカー
WO2022218106A1 (zh) 数据传输方法、装置、设备及存储介质
WO2023185152A1 (zh) 来电处理方法、装置、设备及存储介质
WO2022213757A1 (zh) 应用界面的显示方法、装置、设备及存储介质
WO2023124622A1 (zh) 通信连接的维持方法、装置、设备、存储介质及程序产品
WO2023236516A1 (zh) 语音识别方法、装置、设备及存储介质
WO2020001450A1 (zh) 省电管理方法、图形用户界面以及终端
WO2022213743A1 (zh) 用户界面的显示方法、装置、设备及存储介质
WO2024032140A1 (zh) 息屏显示方法、装置、设备及存储介质
WO2023116237A1 (zh) 界面显示方法、装置、设备、存储介质及程序产品
CN112449327A (zh) 无线数据交互终端工作状态切换方法和装置
CN106445692B (zh) 一种网络服务控制方法及装置
CN110543333B (zh) 针对处理器的休眠处理方法、装置、移动终端和存储介质
WO2023116236A1 (zh) 应用启动方法、装置、设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22787336

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22787336

Country of ref document: EP

Kind code of ref document: A1