Service mode switching method and apparatus, electronic device, and storage medium
By utilizing inter-core communication in a dual-core system, the first system acquires and transmits mode operation information, while the second system controls service mode switching. This solves the problem of lack of service mode switching in a dual-core system and achieves overall consistency in mode switching.
Patent Information
- Application Number
- CN202210474661.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-29
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2042-04-29
AI Technical Summary
In the existing technology, the service mode switching scheme under dual-core system is mainly aimed at single-core system, and there is a lack of effective service mode control methods under dual-core system.
The system obtains the target service mode operation information through the first system, and receives and processes this information through the second system to control the electronic devices to switch to the target service mode within a specified time period, and maintains the overall consistency of the dual-core system through inter-core communication.
It enables flexible switching of service modes under a dual-core system, maintaining overall consistency and user experience of the target service mode across different systems.
Smart Images

Figure CN117014549B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to the technical field of terminals, and in particular, relate to a service mode switching method and device, an electronic device, and a storage medium. BACKGROUND
[0002] With the development of terminal technology, the functions of terminals are becoming richer and richer, and the types of user groups using terminals are becoming more and more extensive. Providing different service modes for different types of groups has become an important means to improve user experience. In related technologies, in order to improve the performance of terminals, developers have developed a dual-core system based on the cooperative work of two processors. However, the current solutions for service mode switching are generally only for single-core systems, that is, only in one system to control the terminal to switch to a target service mode. Therefore, there is an urgent need for a service mode control method implemented under a dual-core system. SUMMARY
[0003] Embodiments of the present application provide a service mode switching method and device, an electronic device, and a storage medium, which can implement service mode switching under a dual-core system. The technical solution is as follows:
[0004] In one aspect, a service mode switching method is provided, applied to a first electronic device capable of running a first system and a second system, and the method comprises:
[0005] acquiring, by the first system, mode running information of a target service mode in the first electronic device, the mode running information comprising a running time period and application configuration information of the target service mode;
[0006] receiving, by the second system, the mode running information sent by the first system based on the running time period;
[0007] controlling, by the second system, the first electronic device to switch to the target service mode within the running time period based on the running time period and the application configuration information of the target service mode.
[0008] In another aspect, a service mode switching device is provided, applied to a first electronic device capable of running a first system and a second system, and the device comprises:
[0009] an acquisition module configured to acquire, by the first system, mode running information of a target service mode in the first electronic device, the mode running information comprising a running time period and application configuration information of the target service mode;
[0010] a receiving module configured to receive, by the second system, the mode running information sent by the first system based on the running time period;
[0011] The control module is configured to control the first electronic device to switch to the target service mode within a running time period of the target service mode based on the running time period and the application configuration information of the target service mode by the second system.
[0012] In another aspect, an electronic device is provided, which includes a processor and a memory; the memory stores at least one program code for being executed by the processor to implement the service mode switching method according to the above aspect.
[0013] In another aspect, a computer readable storage medium is provided, which stores at least one program code for being executed by a processor to implement the service mode switching method according to the above aspect.
[0014] In another aspect, a computer program product is provided, which stores at least one program code for being executed by a processor to implement the service mode switching method according to the above aspect.
[0015] In the embodiments of the present application, the first electronic device processes mode running information by the first system, and sends the mode running information to the second system based on the running time of the target service mode, so that the second system can control the first electronic device to switch to the target service mode within the running time period based on the running time period of the target service mode and the application configuration information. In this way, the time period for the first electronic device of the dual-core system to switch the service mode is determined by the first system, and the first electronic device is controlled by the second system to switch to the target service mode, thereby maintaining the consistency of the target service mode in the overall use of the dual-core system. BRIEF DESCRIPTION OF DRAWINGS
[0016] Figure 1 A schematic diagram of an implementation environment involved in a service mode switching method provided by an example embodiment of the present application is shown;
[0017] Figure 2 A structural block diagram of a first electronic device according to an example embodiment of the present application is shown;
[0018] Figure 3 A flowchart of a service mode switching method according to an example embodiment of the present application is shown;
[0019] Figure 4 A schematic diagram of a service mode setting interface according to an example embodiment of the present application is shown;
[0020] Figure 5A structural framework diagram of a first electronic device is shown according to an example embodiment of the present application.
[0021] Figure 6 A flow chart of a service mode switching method is shown according to an example embodiment of the present application.
[0022] Figure 7 A flow chart of a service mode switching method is shown according to an example embodiment of the present application.
[0023] Figure 8 A display interface of a target service mode is shown according to an example embodiment of the present application.
[0024] Figure 9 A flow chart of a service mode switching method is shown according to an example embodiment of the present application.
[0025] Figure 10 A flow chart of a service mode switching method is shown according to an example embodiment of the present application.
[0026] Figure 11 A flow chart of a service mode switching method is shown according to an example embodiment of the present application.
[0027] Figure 12 A block diagram of a service mode switching apparatus is shown according to an example embodiment of the present application. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical scheme and advantages of the present application clearer, the embodiments of the present application will be described in further detail below with reference to the drawings.
[0029] In the present application, "a plurality of" refers to two or more. The "and / or" describes the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B, which can represent the three cases of A alone, A and B together, and B alone. The character " / " generally represents an "or" relationship between the associated objects. In addition, the related data involved in the present application can be data authorized by the user or fully authorized by all parties.
[0030] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.) and signals involved in the present application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of related data need to comply with relevant laws, regulations and standards of relevant countries and regions. For example, the mode running information and the working state of the electronic device involved in the present application are obtained under full authorization.
[0031] Please refer to Figure 1 Fig. 1 shows a schematic diagram of an implementation environment involved in a service mode switching method provided by an example embodiment of the present application. The implementation environment includes a first electronic device 100 and a second electronic device 200. The first electronic device 100 is connected with the second electronic device 200 through a Bluetooth link.
[0032] The second electronic device 200 can set mode running information of a target service mode through the Bluetooth link connection, so as to control the first electronic device 100 to switch between the target service mode and other service modes. The first electronic device 100 can switch its service mode based on the mode running information set by the second electronic device 200. In some embodiments, a target application for setting the mode running information of the target service is installed in the second electronic device 200. A target application is also installed in the first electronic device 100, and the target application in the first electronic device 100 is used to control the first electronic device to switch between the target service mode and other service modes based on the mode running information. In some embodiments, the target applications installed in the first electronic device and the second electronic device are the same or different applications. In the embodiments of the present application, this is not specifically limited.
[0033] In the case that the target applications installed in the first electronic device and the second electronic device are the same application, the target application performs the above different functions on the first electronic device 100 and the second electronic device 200 respectively. The target applications on the first electronic device 100 and the second electronic device 200 log in the same account, so that the first electronic device 100 can switch modes according to the mode running information set by the second electronic device 200.
[0034] In the case that the target applications installed in the first electronic device and the second electronic device are different applications, the target applications in the first electronic device and the second electronic device can be bound by an account, so that the first electronic device 100 can determine the mode running information through the bound second electronic device 200, so as to switch modes based on the mode running information.
[0035] The first electronic device 100 can be a wearable electronic device, such as a watch, glasses, etc. The second electronic device 200 can be at least one of a mobile phone, a tablet computer, a PC (Personal Computer), etc.
[0036] In the embodiments of the present application, the first electronic device 100 can run a first system and a second system, please refer to Figure 2FIG. 1 shows a structural block diagram of a first electronic device according to an example embodiment of the present application. The first electronic device 100 in the present application includes one or more of the following components: a first processor 110, a second processor 120, and a memory 130.
[0037] In some embodiments, the first processor 110 and the second processor 120 can each include one or more processing cores. The first processor 110 and the second processor 120 connect various parts within the entire first electronic device 100 through various interfaces and lines, execute various functions of the first electronic device 100 and process data by running or executing instructions, programs, code sets or instruction sets stored in the memory 130, and calling data stored in the memory 130. Optionally, the first processor 110 and the second processor 120 can each be implemented in at least one of a hardware form of a digital signal processing (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The first processor 110 and the second processor 120 can each be integrated with a combination of one or more of a central processing unit (CPU), a graphics processing unit (GPU), a neural-network processing unit (NPU), and a modem. Among them, the CPU is mainly used to process operating systems, user interfaces, and application programs; the GPU is used to render and draw the content required to be displayed on the display screen; the NPU is used to implement artificial intelligence (AI) functions; and the modem is used to process wireless communication. It can be understood that the above-mentioned modem can also not be integrated into the first processor 110 or the second processor 120, but be implemented by a separate chip.
[0038] In the embodiments of the present application, the first electronic device 100 can use different processors to run different systems in different use scenarios, so as to maintain the running state of the first electronic device 100. For example, when the first electronic device 100 does not need to run an application program, such as when the first electronic device 100 is in a lock screen state, the electronic device 100 can run the first processor 110 to implement a first system. When the first electronic device 100 runs an application program, the running processor can be switched from the first processor 110 to the second processor 120, so as to switch from the first system to a second system.
[0039] In some embodiments, the memory 130 includes a Random Access Memory (RAM) and can also include a Read-Only Memory (ROM). Optionally, the memory 130 includes a non-transitory computer-readable storage medium. The memory 130 can be used to store instructions, programs, codes, code sets, or instruction sets. The memory 130 can include a program storage area and a data storage area, where the program storage area can store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing each of the method embodiments described below, etc., and the data storage area can store data created based on the use of the first electronic device 100 (such as audio data, a phone book, etc.).
[0040] In some embodiments, the first electronic device 100 further includes a display screen. The display screen is a display component for displaying a user interface. Optionally, the display screen is a display screen with a touch function, through which a user can perform a touch operation on the display screen using a finger, a stylus, or any suitable object. The display screen is usually arranged on the front panel of the first electronic device 100. The display screen can be designed as a full-screen, a curved screen, a special-shaped screen, a double-sided screen, or a folding screen. The display screen can also be designed as a combination of a full-screen and a curved screen, a combination of a special-shaped screen and a curved screen, etc., and the present embodiments are not limited in this regard.
[0041] In addition, those skilled in the art can understand that the structure of the first electronic device 100 shown in the above-described figures does not constitute a limitation on the first electronic device 100, and the first electronic device 100 can include more or fewer components than those shown, or combine certain components, or different component arrangements. For example, the first electronic device 100 further includes a microphone, a speaker, a radio frequency circuit, an input unit, a sensor, an audio circuit, a Wireless Fidelity (Wi-Fi) module, a power supply, a Bluetooth module, etc., which are not described herein again.
[0042] It should be noted that the second electronic device 200 can run the first system and the second system, or the second electronic device 200 can only run one system. In the embodiments of the present application, the manner in which the second electronic device runs the system is not specifically limited. Accordingly, the second electronic device 200 and the first electronic device 100 can have the same or different structures, and the present embodiments are not specifically limited in this regard.
[0043] For reference Figure 3FIG. 1 shows a flowchart of a service mode switching method according to an example embodiment of the present application. The method comprises:
[0044] In step S301, the first electronic device acquires mode running information of a target service mode in the first electronic device through the first system. The mode running information comprises a running time period and application configuration information of the target service mode.
[0045] The target service mode is a service mode that allows invocation of a specified service. The mode running information is used to indicate the time when the first electronic device starts and exits the target service mode. In some embodiments, the mode running information can be sent to the first electronic device by a second electronic device. Accordingly, the second electronic device establishes a Bluetooth connection with the first electronic device and sends the mode running information to the first electronic device based on the Bluetooth connection. The second electronic device displays a service mode setting interface, which comprises a target service mode start control, a time period setting control, and a service setting control. Accordingly, a user sets the mode running information of the target service mode through the second electronic device, and the second electronic device sends the mode running information to the first terminal. In some embodiments, the service mode setting interface displays the target service mode start control. In response to the target service mode start control being triggered, the time period setting control and the service setting control corresponding to the target service mode are displayed. See Figure 4 In the setting interface, a target scene usage control, e.g., "campus usage", is displayed. In response to the target scene usage control being triggered, the target service mode start control, e.g., "campus mode", is displayed. In response to the target service mode start control being triggered, the time period setting control and the allowed applications of the target service are displayed.
[0046] It should be noted that the first electronic device can implement multiple target service modes. In response to the setting interface being able to display multiple service mode start controls, in response to any service mode being triggered, the time period setting control and the allowed applications corresponding to the service mode are displayed.
[0047] In some embodiments, the second system of the first electronic device is in an active state, and the first system is in a dormant state. Accordingly, the first electronic device receives the mode running information sent by the second electronic device through the second system, and sends the mode running information to the first system through inter-core communication. See Figure 5The second electronic device installs a target application program, and the second electronic device communicates with the application framework of the second system in the first electronic device based on the application framework of the target application program, so as to send the mode running information to the second system. The first electronic device receives the mode running information sent by the second electronic device through the second system. The mode running information is sent to the first system through communication between the second system communication module and the first communication system communication module. For example, when the terminal works in the second system in the high-performance mode or the full-intelligent mode, the second system of the first electronic device is in the working state, and the first system is in the sleep state. Then, the first electronic device interacts with the second electronic device through the second system. In this way, the first electronic device can also obtain the mode running information when the first system is in the sleep state.
[0048] In some embodiments, the first system of the second electronic device is in the working state, and the second system is in the sleep state. Correspondingly, the first electronic device receives the mode running information sent by the second electronic device through the first system. Referring to Figure 5 The first electronic device receives the mode running information sent by the second electronic device through the first system, so as to subsequently control the service mode of the first electronic device according to the mode running information. In this way, the first electronic device can also obtain the mode running information when the second system is in the sleep state.
[0049] In the embodiments of the present application, the first system and the second system can obtain the mode running information sent by the second electronic device through Bluetooth connection, so that the first electronic device obtains the mode running information in the first system and the second system, and the consistency of obtaining the mode running information is ensured, which provides a condition for realizing the target service mode in any system.
[0050] It should be noted that, in the present implementation, the second electronic device obtains the mode running information of the target service based on the service mode setting interface. In some embodiments, the mode running information includes the running time period and the application configuration information of the target service mode. The running time period can be set through a time period setting control. For example, the time period setting space includes a start time setting button and an end time setting button. The user sets the start time of the running time period through the start time setting button and sets the end time of the running time period through the end time setting button. Correspondingly, the second electronic device determines the running time period of the target service mode based on the set start time and end time.
[0051] The application configuration information includes application programs that the first electronic device is prohibited to run in the target service mode, or the application configuration information includes application programs that the first electronic device is allowed to run in the target service mode. It should be noted that the application configuration information includes application programs corresponding to the first system and the second system of the first electronic device. In some embodiments, the second electronic device acquires the application programs that can be invoked in the first electronic device, and displays the application programs in the service setting interface, so that the user determines the application programs allowed to run or prohibited to run through the service setting interface.
[0052] The second electronic device acquires the application programs that can be invoked in the first system and the second system of the first electronic device, where the application programs that can be invoked include application programs that can invoke at least one service. The application programs can be system-provided application programs or application programs installed through application download and application installation, which are not limited in the embodiments of the present application. For example, the application programs that can be invoked are system-provided alarm, notification, incoming call reminder, etc. Before this step, the second electronic device sends an acquisition request to the first electronic device, and the first electronic device sends the application programs installed in the first system and the second system of the first electronic device to the second electronic device based on the acquisition request. Accordingly, the first system and the second system of the first electronic device can acquire the services that can be invoked in the first system or the second system through inter-core communication.
[0053] In some embodiments, when the first electronic device sends the application programs installed in the first system and the second system to the second electronic device, the first electronic device sends the application programs installed in the first system and the second system to the second electronic device through the first system and the second system respectively. In some embodiments, when the first electronic device sends the application programs installed in the first system or the second system to the second electronic device, the first electronic device can send the application programs installed in the first system and the second system to the second electronic device through the first system or the second system. Wherein, the first system and the second system send the application programs installed in the first system or the second system through inter-core communication.
[0054] In some embodiments, the first electronic device displays a service mode setting interface, and the user sets the mode running information of the target service mode through the service mode setting interface. Wherein, the process of setting the mode running information by the user through the first electronic device is the same as the process of setting the mode running information by the user through the second electronic device, which is not described herein.
[0055] Step S302: The first electronic device receives the mode running information sent by the first system based on the running time period through the second system.
[0056] The first electronic device parses the mode running information through the first system, and determines a running time period of a target service mode of the first electronic device based on the mode running information, the running time period being used to control the first electronic device to switch service modes. Accordingly, the first electronic device determines the running time period of the target service mode based on the mode running information through the first system, and sends the mode running information to the second system based on the running time period, so that the second system controls the first electronic device to switch service modes.
[0057] The first electronic device determines a time to start or exit the target service mode based on the running time period. For example, the target service mode is a campus mode, and the user sets the campus mode state from 8:00 am to 12:00 pm and from 2:00 pm to 6:00 pm on Monday to Friday. The running time period is from 8:00 am to 12:00 pm and from 2:00 pm to 6:00 pm on Monday to Friday, and the first electronic device switches from other service modes to the campus mode at 8:00 am and 2:00 pm on Monday to Friday, respectively, and switches from the campus mode to other modes at 12:00 pm and 6:00 pm.
[0058] The first electronic device determines whether the current time is the running time period of the target service mode through the first system, and sends the mode running information to the second system based on the running time period of the target service mode, so that the second system controls the first electronic device to switch between the target service mode and other service modes based on the mode running information. In some embodiments, the first system sends the mode running information to the second system at the start time of the running time period. In some embodiments, the first system sends the mode running information to the second system at the start time and the end time of the running time period, so that the second system can exit the target application in time. In some embodiments, the first system sends the mode running information to the second system at a preset time before the start time and / or the end time of the running time period. In this way, the second system is prompted to switch the target service mode through the first system, so that the first electronic device with double systems can run the target service mode.
[0059] Step S303: The first electronic device controls the first electronic device to switch to the target service mode within the running time period based on the running time period of the target service mode and the application configuration information through the second system.
[0060] In the target service mode, the first electronic device determines the application configuration information corresponding to the target service mode, and configures the disabling conditions of the application programs of the first system and the second system based on the application configuration information. In some embodiments, the first system and the second system of the first electronic device are respectively provided with a service module for managing service modes, and the first system and the second system manage the corresponding application programs based on the service management modules thereof, respectively. For example, please continue to refer toFigure 5 The first electronic device includes a target service mode management service and a target service mode processing service. The target service mode management service is installed under the second system, and the target service mode processing service is installed under the first system. The first electronic device manages the application programs in the second system based on the target service mode management service and manages the application programs under the first system based on the target service mode processing service.
[0061] The two systems of the first electronic device correspond to a plurality of working states. For example, the first system is in a working mode, and the second system is in a sleep mode; or the first system is in a background running mode, and the second system is in a working mode. In some embodiments, when the first electronic device is in a large core mode or a high performance mode of a full intelligent mode, the second system of the first electronic device is in a working mode, and the first system is in a background running mode. Therefore, the second system needs to be instructed to switch the service mode. Accordingly, referring to Figure 5 The first electronic device synchronizes the application configuration information of the current target service mode to the second system through the first system. In some embodiments, the first system determines a running time period of the target service mode through the mode running information, determines a target time for mode switching based on the running time period, sends a switching notification to the second system when the system time reaches the target time, and accordingly, the second system switches to the target service mode based on the switching notification and configures the disabled state of the application programs of the second system in the target service mode. In some embodiments, the target time is a time corresponding to a preset time period before the service mode switching. Accordingly, the first system sends the switching notification to the second system at the target time, and the second system switches the service mode after the preset time period. The target time is the start time of the running time period.
[0062] It should be noted that the target time is the time for service mode switching, or the target time is a time corresponding to a preset time period before the service mode switching. The preset time period is set as needed, and in the embodiments of the present application, the preset time period is not specifically limited. For example, the preset time period is 30 seconds, 10 seconds, or 5 seconds.
[0063] In some embodiments, the first electronic device manages the application programs under the first system and the second system based on the target service mode management service in the second system. Accordingly, the second system sends a disable instruction to the first system through inter-core communication. The disable instruction includes the application programs that are not allowed to be used in the first system in the target mode.
[0064] In the embodiment of the present application, the first electronic device processes the mode running information through the first system, and sends the mode running information to the second system based on the running time of the target service mode, so that the second system can control the first electronic device to switch to the target service mode in the running time period based on the running time period of the target service mode and the application configuration information. In this way, the time period for the first electronic device of the dual-core system to switch the service mode is determined through the first system, and the first electronic device is controlled by the second system to switch to the target service mode, thereby maintaining the consistency of the target service mode in the overall use of the dual-core system.
[0065] Referring to Figure 6 which shows a flowchart of a service mode switching method according to an example embodiment of the present application. In the embodiment of the present application, the second system is taken as an example to control the first electronic device to switch to the target service mode. The method comprises:
[0066] Step S601: The first electronic device acquires mode running information of a target service mode in the first electronic device through the first system, wherein the mode running information comprises a running time period of the target service mode and application configuration information.
[0067] The principle of this step is the same as that of step S301, and will not be repeated here.
[0068] Step S602: The first electronic device receives the mode running information sent by the first system based on the running time period through the second system.
[0069] The principle of this step is the same as that of step S302, and will not be repeated here.
[0070] Step S603: The first electronic device determines a first target application program based on the application configuration information through the second system.
[0071] The first target application program is an application program running in the first electronic device. In some embodiments, the first target application program comprises an application program running under the second system. In some embodiments, the first target application program comprises an application program running under the first system. In some embodiments, the first target application program comprises an application program running under the first system and the second system. In the embodiment of the present application, this is not specifically limited.
[0072] In this step, the first electronic device parses the application configuration information through the second system to obtain the first target application program in the application configuration information.
[0073] Step S604: The first electronic device prohibits the first target application program from running in the target service mode.
[0074] In some embodiments, referring to Figure 7 The second system comprises a service mode management service, through which the second system writes the service mode state into a Settings Provider of the second system; and through a system service (System Server) registered in the Settings Provider, the service mode state and data of applications allowed to run in the corresponding service mode are listened to and registered. For example, the data of the applications allowed to run changes, and the low power application shutdown switch state.
[0075] In some embodiments, each application in the second system listens to the service mode state, the change of the applications allowed to run, or calls the service mode management service interface to obtain the target service mode state, the application shutdown switch state, and the start duration of the target service mode, and performs corresponding functions. For example, in the target service mode, the application not allowed to run listens to the service mode state to prohibit the use of data services, prohibit the answering of a phone call and make a phone call only, kill the non-allowed application process, prohibit the left and right swiping on the screen, hide the notification, shield the status bar long press, stop the current task, save the data, and return to the home interface, and return to the home interface after the execution of the current interface task is completed.
[0076] In the embodiments of the present application, when the second system is in the working state, the first electronic device determines whether to perform service mode switching based on the mode running information through the first system, so as to ensure that the first electronic device can perform service mode switching when the second system is in the working state, and the target service mode retains the use scenario when the second system is in the working state.
[0077] It should be noted that in the target service mode, the first electronic device can also display the running duration of the target service mode, the applications allowed to run in the target service mode, and the applications prohibited to run in the target service mode. Referring to Figure 8 In response to the application viewing operation, the application prohibited to run is displayed.
[0078] In the embodiments of the present application, when the second system is in the running mode, the first electronic device performs corresponding functions based on the data change of the application through the second system. For example, the data change of the application includes a trigger instruction of the application.
[0079] In some embodiments, in the target service mode under the second system, if a trigger instruction for a second target application program running in the foreground by the first system is received, the first electronic device runs the second target application program in the foreground by the first system. In some embodiments, the second application program is directly triggered by the user. In some embodiments, the trigger instruction is used to trigger the first target application program which is prohibited under the second system, and the first electronic device determines the second target application program based on the first target application program. Accordingly, in the target service mode, if a trigger instruction for the first target application program is received, the first electronic device determines the second application program based on the first target application program, the second target application program is an application program running under the first system, the first target application program is an application program prohibited to run in the target service mode; and the second target application program is run under the first system. For example, the first application program triggered under the second system is an application program such as alarm, sleep, daily activity, sports health, heart rate, blood oxygen, etc. It is necessary to switch to the first system to realize the functions of the alarm, sleep, daily activity, sports health, heart rate, blood oxygen, etc. application program through the first system. Or, the second system prohibits the use of telephone function, but when receiving important notification or Bluetooth call, such as incoming call reminder, alarm notification, etc., the corresponding application program under the first system is determined to realize the notification. In this way, in the case that the first application program is disabled under the second system, the corresponding function is realized by calling the corresponding application program under the first system, so as to prevent the user from missing important notifications and the like in the target service mode.
[0080] In some embodiments, in the target service mode, if a trigger instruction for the first target application program is received, a prompt interface is displayed, and the prompt interface is used to prompt that the first target application program has been disabled. For example, in the target service mode, if it is detected that the user wants to start an application program which is not allowed to be used, a pop-up message is displayed, and the pop-up message prompts the user that the current is the target service mode and the application program is not allowed to be used. In this implementation, the prompt interface is displayed, so as to prevent the user from using the disabled application program in the target service mode.
[0081] In the embodiments of the present application, the first electronic device processes the mode running information through the first system, so as to send the mode running information to the second system based on the running time of the target service mode, so that the second system can control the first electronic device to switch to the target service mode in the running time period based on the running time period of the target service mode and the application configuration information. In this way, the first electronic device switches the service mode of the dual-core system by the first system, and the first electronic device switches the target service mode by the second system, which maintains the consistency of the target service mode in the overall use of the dual-core system.
[0082] Referring toFigure 9 which shows a flowchart of a service mode switching method according to an example embodiment of the present application. In the example embodiment of the present application, the first system is in the working mode and the second system is in the dormant mode. The method comprises the following steps:
[0083] Step S901: The first electronic device acquires mode running information of a target service mode in the first electronic device through the first system. The mode running information comprises a running time period and application configuration information of the target service mode.
[0084] This step has the same principle as step S301, and thus will not be repeated here.
[0085] Step S902: The first electronic device receives the mode running information sent by the first system based on the running time period through the second system.
[0086] This step has the same principle as step S302, and thus will not be repeated here.
[0087] Step S903: The first electronic device determines a third target application program based on the application configuration information through the first system in the dormant state of the second system. The third target application program is an application program running under the first system.
[0088] In the small core mode or the light intelligent mode of the full intelligent mode, the first system of the first electronic device is in the working mode and the second system is in the dormant mode. Therefore, the first system needs to be instructed to switch the service mode.
[0089] The process of the service mode switching of the first system has the same principle as the process of the service mode switching of the second system based on the switching notification in step S606, and thus will not be repeated here.
[0090] In the example embodiment of the present application, the first electronic device detects whether to switch the service mode through the first system in the working state of the first system. Thus, the first electronic device can switch the service mode in the working state of the first system, so that the target service mode retains the use scenario in the working state of the first system.
[0091] Step S904: The first electronic device prohibits the third target application program from running in the target service mode.
[0092] This step has the same principle as step S604, and thus will not be repeated here.
[0093] In the embodiment of the present application, the first electronic device processes the mode running information through the first system, and sends the mode running information to the second system based on the running time of the target service mode, so that the second system can control the first electronic device to switch to the target service mode in the running time period based on the running time period of the target service mode and the application configuration information. In this way, the time period of the first electronic device of the dual-core system switching the service mode is determined by the first system, and the first electronic device switches to the target service mode is controlled by the second system, thereby maintaining the consistency of the target service mode in the overall use of the dual-core system.
[0094] In some embodiments, when the first system is in the working mode and the second system is in the sleep mode, there can be a service that needs to be implemented by the second system, therefore, the first electronic device activates the second system and then switches the service mode of the second system. Referring to Figure 10 FIG. 10 shows a flowchart of a service mode switching method according to an example embodiment of the present application. The method includes the following steps:
[0095] Step S1001: The first electronic device acquires mode running information of a target service mode in the first electronic device through the first system, the mode running information including a running time period of the target service mode and application configuration information.
[0096] This step has the same principle as step S301, and will not be repeated here.
[0097] Step S1002: The first electronic device receives the mode running information sent by the first system based on the running time period through the second system.
[0098] This step has the same principle as step S302, and will not be repeated here.
[0099] Step S1003: When the second system is in sleep, the first electronic device determines a third target application program based on the application configuration information through the first system, the third target application program being an application program running under the first system.
[0100] This step has the same principle as step S903, and will not be repeated here.
[0101] Step S1004: In the target service mode, the first electronic device prohibits the third target application program from running.
[0102] This step has the same principle as step S904, and will not be repeated here.
[0103] Step S1005: In the target service mode, if a trigger instruction for a fourth target application program is received, the first electronic device wakes up the second system through the first system.
[0104] The first electronic device can switch between the first system and the second system in the full smart mode. Accordingly, in the presence of a service implemented by the second system, the first electronic device exits the first system and wakes up the second system. In some embodiments, after the first electronic device switches to the second system, the second system actively sends a mode state request to the first system, the mode state request being used to request the first system to send the current service mode to the second system. If the current service mode is the target service mode, the second system switches the mode; if the current service mode is not the target service mode, the second system keeps the current service mode and provides the service. In the embodiments of the present application, after the first electronic device switches the system, the second system actively acquires the current service mode, so that the consistency of the service mode is maintained after the system is switched.
[0105] In some embodiments, after the first electronic device switches to the second system, the first system determines the current service mode of the second system, and when the mode needs to be switched, step S1006 is performed.
[0106] Step S1006: The first electronic device runs the fourth target application program in the foreground through the second system, the fourth application program being an application program running under the second system.
[0107] In the embodiments of the present application, the first electronic device processes the mode running information through the first system, so that the mode running information is sent to the second system based on the running time of the target service mode, so that the second system can control the first electronic device to switch to the target service mode in the running time period based on the running time period of the target service mode and the application configuration information. In this way, the first electronic device of the dual-core system switches the service mode in the time period determined by the first system, and the first electronic device is controlled by the second system to switch to the target service mode, so that the consistency of the target service mode in the overall use of the dual-core system is maintained.
[0108] Referring to FIG. 11, Figure 11 which shows a flowchart of a service mode switching method according to an example embodiment of the present application. In this embodiment, the second system is taken as an example in the case of being turned off, and the method includes the following steps:
[0109] Step S1101: The first electronic device acquires mode running information of a target service mode in the first electronic device through the first system, the mode running information including a running time period of the target service mode and application configuration information.
[0110] This step has the same principle as step S301, and will not be described here.
[0111] Step S1102: In the case that the second system is closed, the first electronic device determines a fifth target application program based on the application configuration information through the first system.
[0112] This step has the same principle as step S603, and will not be repeated here.
[0113] Step S1103: The first electronic device prohibits the running of the fifth target application program in the target service mode through the first system.
[0114] This step has the same principle as step S604, and will not be repeated here.
[0115] In the embodiments of the present application, the first electronic device processes the mode running information through the first system, and sends the mode running information to the second system based on the running time of the target service mode, so that the second system can control the first electronic device to switch to the target service mode in the running time period based on the running time period of the target service mode and the application configuration information. In this way, the first electronic device of the dual-core system switches the service mode time period through the first system, and the first electronic device switches the target service mode controlled by the second system, which maintains the consistency of the target service mode in the overall use of the dual-core system.
[0116] Please refer to Figure 12 which shows the structure block diagram of the service mode switching device provided by an embodiment of the present application. The service mode switching device can be realized by software, hardware or a combination of both to become all or part of the processor. The device includes:
[0117] The acquisition module 1201 is configured to acquire mode running information of a target service mode in the first electronic device through the first system, the mode running information including a running time period of the target service mode and application configuration information;
[0118] The receiving module 1202 is configured to receive the mode running information sent by the first system based on the running time period through the second system;
[0119] The control module 1203 is configured to control the first electronic device to switch to the target service mode in the running time period based on the running time period of the target service mode and the application configuration information through the second system.
[0120] In some embodiments, the control module 1203 includes:
[0121] The determination unit is configured to determine a first target application program based on the application configuration information through the second system;
[0122] The prohibition unit is configured to prohibit the running of the first target application program in the target service mode by the first electronic device.
[0123] In some embodiments, the apparatus further includes:
[0124] The running module is configured to, in the target service mode, run, by the first system, the second target application program in the foreground if a trigger instruction for the second target application program is received, the second target application program being an application program running under the first system in the target service mode.
[0125] In some embodiments, the apparatus further includes:
[0126] The display module is configured to, in the target service mode, display a prompt interface if a trigger instruction for the first target application program is received, the prompt interface being used to prompt that the first target application program has been disabled.
[0127] In some embodiments, the apparatus further includes:
[0128] The first determining module is configured to, in a case where the second system is in sleep, determine, by the first system based on the application configuration information, a third target application program, the third target application program being an application program running under the first system.
[0129] The first disabling module is configured to, in the target service mode, disable, by the first electronic device, running of the third target application program.
[0130] In some embodiments, the apparatus further includes:
[0131] The wake-up module is configured to, in the target service mode, wake up, by the first system, the second system if a trigger instruction for a fourth target application program is received.
[0132] The running module is configured to run, by the second system, the fourth target application program in the foreground, the fourth application program being an application program running under the second system.
[0133] In some embodiments, the apparatus further includes:
[0134] The second determining module is configured to, in a case where the second system is off, determine, by the first system based on the application configuration information, a fifth target application program.
[0135] The second disabling module is configured to, in the target service mode, disable, by the first system, running of the fifth target application program.
[0136] In some embodiments, the obtaining module 1201 includes:
[0137] The first receiving unit is configured to receive the mode running information sent by the second electronic device through the second system, and send the mode running information to the first system through inter-core communication.
[0138] The second receiving unit is configured to receive the mode running information sent by the second electronic device through the first system.
[0139] The second electronic device is an electronic device in Bluetooth connection with the first electronic device.
[0140] In the embodiments of the present application, the first electronic device processes the mode running information through the first system, and sends the mode running information to the second system based on the running time of the target service mode, so that the second system can control the first electronic device to switch to the target service mode in the running time period based on the running time period of the target service mode and the application configuration information. In this way, the time period for the first electronic device of the dual-core system to switch the service mode is determined through the first system, and the first electronic device is controlled to switch to the target service mode by the second system, thereby maintaining the consistency of the target service mode in the overall use of the dual-core system.
[0141] The embodiments of the present application also provide a computer readable medium, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the service mode switching method shown in the above various embodiments.
[0142] The embodiments of the present application also provide a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the service mode switching method shown in the above various embodiments.
[0143] Those skilled in the art should be aware that the functions described in the above one or more examples can be implemented in hardware, software, firmware or any combination thereof. When implemented in software, the functions can be stored in a computer readable medium or transmitted as one or more instructions or codes on a computer readable medium. The computer readable medium includes computer storage medium and communication medium, and the communication medium includes any medium that facilitates the transfer of computer programs from one place to another. The storage medium can be any available medium accessible by a general or special purpose computer.
[0144] The above description is only optional embodiments of the present application, and does not limit the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A service mode switching method, applied to a first electronic device, the first electronic device being capable of running a first system and a second system, characterized in that, The method comprises: acquiring, by the first system, mode running information of a target service mode in the first electronic device, the mode running information comprising an application configuration information and a running time period of the target service mode; receiving, by the second system, the mode running information sent by the first system based on the running time period; determining, by the second system, a first target application based on the application configuration information; in the target service mode, the first electronic device prohibits the first target application from running.
2. The method of claim 1, wherein, The method further comprises: in the target service mode, if a trigger instruction for a second target application is received, running the second target application in the foreground by the first system, the second target application being an application running under the first system in the target service mode.
3. The method of claim 1, wherein, The method further comprises: in the target service mode, if a trigger instruction for the first target application is received, displaying a prompt interface, the prompt interface being used to prompt that the first target application has been disabled.
4. The method of claim 1, wherein, The method further comprises: when the second system is in a dormant state, determining, by the first system based on the application configuration information, a third target application, the third target application being an application running under the first system; in the target service mode, the first electronic device prohibits the third target application from running.
5. The method of claim 4, wherein, The method further comprises: in the target service mode, if a trigger instruction for a fourth target application is received, waking up the second system by the first system; running the fourth target application in the foreground by the second system, the fourth target application being an application running under the second system.
6. The method of claim 1, wherein, The method further comprises: when the second system is in an off state, determining, by the first system based on the application configuration information, a fifth target application; in the target service mode, the first system prohibits the fifth target application from running.
7. The method of claim 1, wherein, The acquiring, by the first system, mode running information of a target service mode in the first electronic device comprises: receiving, by the second system, the mode running information sent by a second electronic device; sending the mode running information to the first system through inter-core communication; or receiving, by the first system, the mode running information sent by a second electronic device; wherein the second electronic device is an electronic device in Bluetooth connection with the first electronic device. 8.A service mode switching method applied to a first electronic device, wherein the first electronic device is capable of running a first system and a second system, and the method comprises: The method comprises: acquiring, by the first system, mode running information of a target service mode in the first electronic device, the mode running information comprising an application configuration information and a running time period of the target service mode; receiving, by the second system, the mode running information sent by the first system based on the running time period; controlling, by the second system based on the running time period of the target service mode and the application configuration information, the first electronic device to switch to the target service mode within the running time period; The second system is in a dormant state, and the first system determines a third target application based on the application configuration information, the third target application being an application running under the first system; In the target service mode, the first electronic device prohibits the third target application from running.
9. The method of claim 8, wherein, The method further includes: In the target service mode, if a trigger instruction for a fourth target application is received, the second system is woken up by the first system; The fourth target application is run in the foreground by the second system, the fourth target application being an application running under the second system. 10.A service mode switching method applied to a first electronic device, wherein the first electronic device is capable of running a first system and a second system, and the method comprises: receiving a first service mode switching instruction from a second electronic device; and switching the first electronic device from the first system to the second system according to the first service mode switching instruction. The method includes: The first system obtains mode running information of a target service mode in the first electronic device, the mode running information including a running time period of the target service mode and application configuration information; The second system receives the mode running information sent by the first system based on the running time period; The second system controls the first electronic device to switch to the target service mode within the running time period based on the running time period of the target service mode and the application configuration information; In the case where the second system is off, the first system determines a fifth target application based on the application configuration information; in the target service mode, the first system prohibits the running of the fifth target application. 11.A service mode switching method applied to a first electronic device, wherein the first electronic device is capable of running a first system and a second system, and the method comprises: The method includes: The first system obtains mode running information of a target service mode in the first electronic device, the mode running information including a running time period of the target service mode and application configuration information; The second system receives the mode running information sent by the first system based on the running time period; The second system controls the first electronic device to switch to the target service mode within the running time period based on the running time period of the target service mode and the application configuration information; The first system obtains mode running information of a target service mode in the first electronic device, including: The second system receives the mode running information sent by the second electronic device; the mode running information is sent to the first system through inter-core communication; or The first system receives the mode running information sent by the second electronic device; The second electronic device is an electronic device in Bluetooth connection with the first electronic device.
12. A service mode switching device, applied to a first electronic device, the first electronic device being capable of running a first system and a second system, characterized in that, The device includes: An obtaining module configured to obtain, by the first system, mode running information of a target service mode in the first electronic device, the mode running information including a running time period of the target service mode and application configuration information; A receiving module configured to receive, by the second system, the mode running information sent by the first system based on the running time period; A control module configured to determine, by the second system, a first target application based on the application configuration information; in the target service mode, the first electronic device prohibits the first target application from running.
13. The apparatus of claim 12, wherein, The device further includes: The running module is configured to, in the target service mode, run, by the first system, the second target application program in the foreground if a trigger instruction for the second target application program is received, the second target application program being an application program running under the first system in the target service mode.
14. The apparatus of claim 12, wherein, The device further includes: The display module is configured to, in the target service mode, display a prompt interface if a trigger instruction for the first target application program is received, the prompt interface being used to prompt that the first target application program has been disabled.
15. The apparatus of claim 12, wherein, The device further includes: The first determination module is configured to, in the case where the second system is in hibernation, determine, by the first system, a third target application program based on the application configuration information, the third target application program being an application program running under the first system. The first disabling module is configured to, in the target service mode, disable, by the first electronic device, the third target application program from running.
16. The apparatus of claim 15, wherein, The device further includes: The wake-up module is configured to, in the target service mode, wake up, by the first system, the second system if a trigger instruction for a fourth target application program is received. The running module is configured to run, by the second system, the fourth target application program in the foreground, the fourth target application program being an application program running under the second system.
17. The apparatus of claim 12, wherein, The device further includes: The second determination module is configured to, in the case where the second system is off, determine, by the first system, a fifth target application program based on the application configuration information. The second disabling module is configured to, in the target service mode, disable, by the first system, the fifth target application program from running.
18. The apparatus of claim 12, wherein, The acquisition module includes: The first receiving unit is configured to receive, by the second system, the mode running information sent by a second electronic device, and send the mode running information to the first system through inter-core communication, or The second receiving unit is configured to receive, by the first system, the mode running information sent by a second electronic device. The second electronic device is an electronic device in Bluetooth connection with the first electronic device.
19. A service mode switching device, applied to a first electronic device, the first electronic device being capable of running a first system and a second system, characterized in that, The device includes: The acquisition module is configured to acquire, by the first system, mode running information of a target service mode in the first electronic device, the mode running information including a running time period of the target service mode and application configuration information. The receiving module is configured to receive, by the second system, the mode running information sent by the first system based on the running time period. The control module is configured to control, by the second system, the first electronic device to switch to the target service mode within the running time period based on the running time period of the target service mode and the application configuration information. The first determination module is configured to, in the case where the second system is in hibernation, determine, by the first system, a third target application program based on the application configuration information, the third target application program being an application program running under the first system. The first disabling module is configured to, in the target service mode, disable, by the first electronic device, the third target application program from running.
20. The apparatus of claim 19, wherein, The device further comprises: a wake-up module, configured to wake up the second system by the first system if a trigger instruction for a fourth target application program is received in the target service mode; a running module, configured to run the fourth target application program in the foreground by the second system, the fourth target application program being an application program running under the second system. 21.A service mode switching apparatus applied to a first electronic device, wherein the first electronic device is capable of running a first system and a second system, and the apparatus comprises: The device comprises: an acquisition module, configured to acquire mode running information of a target service mode in the first electronic device by the first system, the mode running information comprising a running time period and application configuration information of the target service mode; a receiving module, configured to receive the mode running information sent by the first system based on the running time period by the second system; a control module, configured to control the first electronic device to switch to the target service mode within the running time period based on the running time period and the application configuration information of the target service mode by the second system; a second determination module, configured to determine a fifth target application program based on the application configuration information by the first system if the second system is off; a second prohibition module, configured to prohibit running of the fifth target application program by the first system in the target service mode.
22. A service mode switching device, applied to a first electronic device, the first electronic device being capable of running a first system and a second system, characterized in that, The device comprises: an acquisition module, configured to acquire mode running information of a target service mode in the first electronic device by the first system, the mode running information comprising a running time period and application configuration information of the target service mode; a receiving module, configured to receive the mode running information sent by the first system based on the running time period by the second system; a control module, configured to control the first electronic device to switch to the target service mode within the running time period based on the running time period and the application configuration information of the target service mode by the second system; The acquisition module comprises: a first receiving unit, configured to receive the mode running information sent by a second electronic device by the second system, and send the mode running information to the first system through inter-core communication; or a second receiving unit, configured to receive the mode running information sent by a second electronic device by the first system; The second electronic device is an electronic device in Bluetooth connection with the first electronic device.
23. An electronic device, comprising: The electronic device comprises a processor and a memory; the memory stores at least one program code, the at least one program code being used to be executed by the processor to implement the service mode switching method according to any one of claims 1 to 11.
24. A computer-readable storage medium, characterized in that, The computer readable storage medium stores at least one program code, the at least one program code being used to be executed by the processor to implement the service mode switching method according to any one of claims 1 to 11.
25. A computer program product, characterised in that, The computer program product stores at least one program code, the at least one program code being used to be executed by the processor to implement the service mode switching method according to any one of claims 1 to 11.
Citation Information
Patent Citations
Message synchronization method and device and storage medium
CN112583977A
Control method and device of wearable equipment and electronic equipment
CN112835413A