CN116634006A - Multi-system bluetooth state adjustment method, device, electronic equipment and storage medium - Google Patents
Multi-system bluetooth state adjustment method, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN116634006A CN116634006A CN202310597436.2A CN202310597436A CN116634006A CN 116634006 A CN116634006 A CN 116634006A CN 202310597436 A CN202310597436 A CN 202310597436A CN 116634006 A CN116634006 A CN 116634006A
- Authority
- CN
- China
- Prior art keywords
- bluetooth
- bluetooth state
- state
- foreground
- physical address
- Prior art date
- Legal status (The legal status 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 status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/485—Task life-cycle, e.g. stopping, restarting, resuming execution
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/54—Presence management, e.g. monitoring or registration for receipt of user log-on information, or the connection status of the users
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
- H04W48/10—Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本申请实施例提供了一种多系统蓝牙状态调整方法、装置、电子设备及存储介质,涉及计算机技术领域。该方法包括:当接收到用户将系统从前台切换为后台的触发操作时,获取该系统的蓝牙状态,对蓝牙状态进行记录;当接收到用户将该系统从后台切换为前台的触发操作时,获取最后一次记录的蓝牙状态,基于记录的蓝牙状态对该系统的蓝牙状态进行调整。每当有系统由前台切换到后台时,对该系统的蓝牙状态进行记录,在该系统再次切换回前台时,根据记录将该系统的蓝牙状态调整至其上一次处于前台的状态。通过上述方式,能保证处于前台的系统的蓝牙状态与其上次处于前台时的蓝牙状态保持一致,进而可以实现系统切换时前台的系统的蓝牙功能持续保持开启状态。
Embodiments of the present application provide a multi-system Bluetooth state adjustment method, device, electronic equipment, and storage medium, which relate to the technical field of computers. The method includes: when receiving the user's trigger operation of switching the system from the foreground to the background, acquiring the Bluetooth state of the system, and recording the Bluetooth state; when receiving the user's trigger operation of switching the system from the background to the foreground, Obtain the last recorded Bluetooth state, and adjust the system's Bluetooth state based on the recorded Bluetooth state. Whenever a system switches from the foreground to the background, record the bluetooth state of the system, and when the system switches back to the foreground again, adjust the bluetooth state of the system to its last state in the foreground according to the record. Through the above method, it can be ensured that the bluetooth state of the system in the foreground is consistent with the bluetooth state when it was in the foreground last time, and then the bluetooth function of the system in the foreground can be continuously turned on when the system is switched.
Description
技术领域technical field
本申请涉及计算机技术领域,具体而言,本申请涉及一种多系统蓝牙状态调整方法、装置、电子设备及存储介质。The present application relates to the field of computer technology, in particular, the present application relates to a multi-system bluetooth state adjustment method, device, electronic equipment and storage medium.
背景技术Background technique
目前,很多移动智能终端能够支持多系统模式,即在同一终端上同时运行多个操作系统,但在同一终端上蓝牙芯片等蓝牙设备一般只有一个。因此,如何使运行在同一终端上的多个操作系统能较好地共同使用同一个蓝牙设备是需要解决的问题。At present, many smart mobile terminals can support multi-system mode, that is, multiple operating systems can run simultaneously on the same terminal, but generally there is only one Bluetooth device such as a Bluetooth chip on the same terminal. Therefore, how to enable multiple operating systems running on the same terminal to better use the same bluetooth device is a problem that needs to be solved.
现有技术的方案中,为了保证多个操作系统在资源占用上不发生冲突,蓝牙设备在同一时间点上只能与当前处于前台的操作系统建立连接(即在同一时间点上只能有一个操作系统开启蓝牙功能)。举例来说,当需要处于后台的操作系统A打开蓝牙功能时,终端用户需要将操作系统A切换为前台系统,此时若当前处于前台的操作系统B中已将蓝牙功能开启,则终端用户需要先将操作系统B中的蓝牙功能关闭并将操作系统B切换到后台,等待操作系统A切换到前台后才能在操作系统A中重新开启蓝牙功能。In the solution of the prior art, in order to ensure that multiple operating systems do not conflict in resource occupation, the Bluetooth device can only establish a connection with the operating system currently in the foreground at the same time point (that is, there can only be one operating system at the same time point) operating system to enable the Bluetooth function). For example, when the operating system A in the background needs to enable the Bluetooth function, the end user needs to switch the operating system A to the foreground system. First turn off the Bluetooth function in operating system B and switch operating system B to the background, wait for operating system A to switch to the foreground before re-enabling the Bluetooth function in operating system A.
但是,现有技术的方案中,如果在操作系统A蓝牙状态处于开启时先将操作系统A从前台切换至后台后,再将操作系统A从后台切换至前台,操作系统A的蓝牙状态将默认为关闭,即无法保证操作系统A在两次切换后仍处于前台时蓝牙状态的一致性,需要终端用户将操作系统A中的蓝牙功能开启,因此这种方式不能满足某些较为特殊场景下的业务需求,如当频繁切换操作系统且需要保证操作系统A处于前台时其蓝牙功能始终保持开启状态的场景。However, in the solution of the prior art, if the operating system A is switched from the foreground to the background when the Bluetooth state of the operating system A is turned on, and then the operating system A is switched from the background to the foreground, the Bluetooth state of the operating system A will default to In order to close, that is, it cannot guarantee the consistency of the Bluetooth state when the operating system A is still in the foreground after two switchings. The end user needs to turn on the Bluetooth function in the operating system A, so this method cannot meet the needs of some special scenarios. Business requirements, such as the scenario where the operating system is frequently switched and the Bluetooth function of operating system A needs to be kept on when it is in the foreground.
发明内容Contents of the invention
本申请的目的旨在至少能解决上述的技术缺陷之一,本申请实施例所提供的技术方案如下:The purpose of this application is to at least solve one of the above-mentioned technical defects. The technical solutions provided by the embodiments of this application are as follows:
第一方面,本申请实施例提供了一种多系统蓝牙状态调整方法,包括:In the first aspect, the embodiment of the present application provides a multi-system Bluetooth state adjustment method, including:
当接收到用户将第一系统从前台切换为后台的触发操作时,获取第一系统的第一蓝牙状态,并对第一蓝牙状态进行记录;When receiving the trigger operation of switching the first system from the foreground to the background by the user, acquire the first bluetooth state of the first system, and record the first bluetooth state;
当接收到用户将第一系统从后台切换为前台的触发操作时,获取最后一次记录的第一蓝牙状态,并基于记录的第一蓝牙状态对第一系统的蓝牙状态进行调整。When a trigger operation of switching the first system from the background to the foreground is received, the last recorded first bluetooth state is obtained, and the bluetooth state of the first system is adjusted based on the recorded first bluetooth state.
在本申请的一种可选实施例中,当接收到用户将第一系统从后台切换为前台的触发操作时,获取最后一次记录的第一蓝牙状态,并基于记录的第一蓝牙状态对第一系统的蓝牙状态进行调整,具体包括:In an optional embodiment of the present application, when the trigger operation of switching the first system from the background to the foreground by the user is received, the last recorded first Bluetooth state is obtained, and the first bluetooth state is recorded based on the first recorded Bluetooth state. Adjust the bluetooth status of a system, including:
当接收到用户将第一系统从后台切换为前台的触发操作时,通过预设计时器开始计时;When a trigger operation of switching the first system from the background to the foreground by the user is received, timing is started by a preset timer;
当计时时长达到预设时长时,获取最后一次记录的第一蓝牙状态和切换到后台的第二系统的第二蓝牙状态,若第二蓝牙状态为关闭,则根据最后一次记录的第一蓝牙状态,对第一系统的蓝牙状态进行调整。When the timing reaches the preset duration, obtain the last recorded first bluetooth state and the second bluetooth state of the second system switched to the background, if the second bluetooth state is off, then according to the last recorded first bluetooth state to adjust the Bluetooth status of the first system.
在本申请的一种可选实施例中,通过预设计时器开始计时,具体包括:In an optional embodiment of the present application, timing is started by a preset timer, which specifically includes:
当计时时长小于预设时长且再次接收到任一其他系统从前台切换为后台的触发操作时,重置预设计时器并重新开始计时。When the timing duration is less than the preset duration and the trigger operation of any other system switching from the foreground to the background is received again, the preset timer is reset and timing is restarted.
在本申请的一种可选实施例中,对第一系统的蓝牙状态进行调整,具体包括:In an optional embodiment of the present application, adjusting the Bluetooth state of the first system specifically includes:
若第一蓝牙状态为开启或正在开启,则将第一系统的蓝牙状态调整为开启;If the first bluetooth state is turned on or is turning on, then adjust the bluetooth state of the first system to be turned on;
若第一蓝牙状态为关闭或正在关闭,则将第一系统的蓝牙状态调整为关闭。If the first bluetooth state is closed or is closing, adjust the bluetooth state of the first system to be closed.
在本申请的一种可选实施例中,获取第一系统当前的第一蓝牙状态,具体包括:In an optional embodiment of the present application, acquiring the current first Bluetooth status of the first system specifically includes:
通过预设蓝牙监听广播获取第一系统的第一蓝牙状态。The first Bluetooth state of the first system is acquired by preset Bluetooth listening broadcast.
在本申请的一种可选实施例中,该方法还可以包括:In an optional embodiment of the present application, the method may also include:
获取蓝牙设备的第一物理地址;Obtain the first physical address of the Bluetooth device;
根据第一物理地址获取至少一个第二物理地址,并从第一物理地址和各第二物理地址中确定出第一系统对应的物理地址;Obtaining at least one second physical address according to the first physical address, and determining a physical address corresponding to the first system from the first physical address and each second physical address;
当第一系统处于前台且蓝牙状态为开启并需要与目标外置设备进行蓝牙连接时,将第一系统对应的物理地址发送至目标外置设备,以使目标外置设备根据物理地址与第一系统建立蓝牙连接。When the first system is in the foreground and the Bluetooth status is turned on and needs to be connected with the target external device through Bluetooth, the physical address corresponding to the first system is sent to the target external device, so that the target external device matches the first system according to the physical address. The system establishes a Bluetooth connection.
在本申请的一种可选实施例中,每一第二物理地址经修改第一物理地址的末尾数值得到。In an optional embodiment of the present application, each second physical address is obtained by modifying the last value of the first physical address.
第二方面,本申请实施例提供了一种多系统蓝牙状态调整装置,包括:In the second aspect, the embodiment of the present application provides a multi-system Bluetooth state adjustment device, including:
蓝牙状态记录模块,用于当接收到用户将第一系统从前台切换为后台的触发操作时,获取第一系统的第一蓝牙状态,并对第一蓝牙状态进行记录;The bluetooth state recording module is used to obtain the first bluetooth state of the first system when receiving the trigger operation that the user switches the first system from the foreground to the background, and records the first bluetooth state;
蓝牙状态恢复模块,用于当接收到用户将第一系统从后台切换为前台的触发操作时,获取最后一次记录的第一蓝牙状态,并基于记录的第一蓝牙状态对第一系统的蓝牙状态进行调整。The bluetooth state recovery module is used to obtain the last recorded first bluetooth state when receiving the trigger operation of switching the first system from the background to the foreground by the user, and update the bluetooth state of the first system based on the recorded first bluetooth state Make adjustments.
在本申请的一种可选实施例中,蓝牙状态恢复模块具体用于:In an optional embodiment of the present application, the Bluetooth state restoration module is specifically used for:
当接收到用户将第一系统从后台切换为前台的触发操作时,通过预设计时器开始计时;When a trigger operation of switching the first system from the background to the foreground by the user is received, timing is started by a preset timer;
当计时时长达到预设时长时,获取最后一次记录的第一蓝牙状态和切换到后台的第二系统的第二蓝牙状态,若第二蓝牙状态为关闭,则根据最后一次记录的第一蓝牙状态,对第一系统的蓝牙状态进行调整。When the timing reaches the preset duration, obtain the last recorded first bluetooth state and the second bluetooth state of the second system switched to the background, if the second bluetooth state is off, then according to the last recorded first bluetooth state to adjust the Bluetooth status of the first system.
在本申请的一种可选实施例中,蓝牙状态恢复模块进一步用于:In an optional embodiment of the present application, the Bluetooth state recovery module is further used for:
当计时时长小于预设时长且再次接收到任一其他系统从前台切换为后台的触发操作时,重置预设计时器并重新开始计时。When the timing duration is less than the preset duration and the trigger operation of any other system switching from the foreground to the background is received again, the preset timer is reset and timing is restarted.
在本申请的一种可选实施例中,蓝牙状态恢复模块进一步用于:In an optional embodiment of the present application, the Bluetooth state recovery module is further used for:
若第一蓝牙状态为开启或正在开启,则将第一系统的蓝牙状态调整为开启;If the first bluetooth state is turned on or is turning on, then adjust the bluetooth state of the first system to be turned on;
若第一蓝牙状态为关闭或正在关闭,则将第一系统的蓝牙状态调整为关闭。If the first bluetooth state is closed or is closing, adjust the bluetooth state of the first system to be closed.
在本申请的一种可选实施例中,蓝牙状态记录模块用于:In an optional embodiment of the present application, the Bluetooth state recording module is used for:
通过预设蓝牙监听广播获取第一系统的第一蓝牙状态。The first Bluetooth state of the first system is acquired by preset Bluetooth listening broadcast.
在本申请的一种可选实施例中,该装置还包括蓝牙连接模块,用于:In an optional embodiment of the present application, the device also includes a bluetooth connection module for:
获取蓝牙设备的第一物理地址;Obtain the first physical address of the Bluetooth device;
根据第一物理地址获取至少一个第二物理地址,并从第一物理地址和各第二物理地址中确定出第一系统对应的物理地址;Obtaining at least one second physical address according to the first physical address, and determining a physical address corresponding to the first system from the first physical address and each second physical address;
当第一系统处于前台且蓝牙状态为开启并需要与目标外置设备进行蓝牙连接时,将第一系统对应的物理地址发送至目标外置设备,以使目标外置设备根据物理地址与第一系统建立蓝牙连接。When the first system is in the foreground and the Bluetooth status is turned on and needs to be connected with the target external device through Bluetooth, the physical address corresponding to the first system is sent to the target external device, so that the target external device matches the first system according to the physical address. The system establishes a Bluetooth connection.
在本申请的一种可选实施例中,每一第二物理地址经修改第一物理地址的末尾数值得到。In an optional embodiment of the present application, each second physical address is obtained by modifying the last value of the first physical address.
第三方面,本申请实施例提供了一种电子设备,包括存储器、处理器及存储在存储器上的计算机程序;In a third aspect, the embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory;
处理器执行计算机程序以实现第一方面实施例或第一方面任一可选实施例中所提供的方法。The processor executes the computer program to implement the method provided in the embodiment of the first aspect or any optional embodiment of the first aspect.
第四方面,本申请实施例提供了一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现第一方面实施例或第一方面任一可选实施例中所提供的方法。In a fourth aspect, the embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it can realize the embodiment of the first aspect or any option of the first aspect. The methods provided in the examples.
本申请实施例提供的技术方案带来的有益效果是:The beneficial effects brought by the technical solutions provided by the embodiments of the present application are:
每当终端的任一操作系统由前台切换到后台时,对该操作系统当前的蓝牙状态进行记录,在该操作系统再次切换回前台时根据记录将该操作系统的蓝牙状态调整至其最后一次处于前台时的状态。通过上述方式可以保证操作系统进行切换时,每一处于前台的操作系统的蓝牙状态与其上次处于前台时的蓝牙状态保持一致,进而可以实现操作系统切换过程中处于前台的操作系统的蓝牙功能持续保持开启状态。Whenever any operating system of the terminal is switched from the foreground to the background, the current Bluetooth state of the operating system is recorded, and when the operating system is switched back to the foreground again, the Bluetooth state of the operating system is adjusted to its last state according to the record. The state of the foreground. The above method can ensure that when the operating system is switched, the Bluetooth state of each operating system in the foreground is consistent with the Bluetooth state when it was in the foreground last time, and then the Bluetooth function of the operating system in the foreground during the operating system switching process can be continuously Leave it on.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对本申请实施例描述中所需要使用的附图作简单地介绍。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings that need to be used in the description of the embodiments of the present application.
图1为本申请实施例提供的一种多系统蓝牙状态调整方法的流程示意图;FIG. 1 is a schematic flow diagram of a multi-system Bluetooth state adjustment method provided by an embodiment of the present application;
图2为本申请实施例的一个示例中系统蓝牙状态调整逻辑的流程示意图;Fig. 2 is a schematic flow diagram of the system bluetooth state adjustment logic in an example of the embodiment of the present application;
图3为本申请实施例的一个示例中一种双系统终端中系统交互结构的流程示意图;FIG. 3 is a schematic flowchart of a system interaction structure in a dual-system terminal in an example of an embodiment of the present application;
图4为本申请实施例提供的一种多系统蓝牙状态调整装置的结构框图;FIG. 4 is a structural block diagram of a multi-system Bluetooth state adjustment device provided by an embodiment of the present application;
图5为本申请实施例提供的一种电子设备的结构示意图。FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面结合本申请中的附图描述本申请的实施例。应理解,下面结合附图所阐述的实施方式,是用于解释本申请实施例的技术方案的示例性描述,对本申请实施例的技术方案不构成限制。Embodiments of the present application are described below with reference to the drawings in the present application. It should be understood that the implementation manner described below in conjunction with the accompanying drawings is an exemplary description for explaining the technical solutions of the embodiments of the present application, and does not limit the technical solutions of the embodiments of the present application.
本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式。应该进一步理解的是,本申请实施例所使用的术语“包括”以及“包含”是指相应特征可以实现为所呈现的特征、信息、数据、步骤、操作、元件和/或组件,但不排除实现为本技术领域所支持其他特征、信息、数据、步骤、操作、元件、组件和/或它们的组合等。应该理解,当我们称一个元件被“连接”或“耦接”到另一元件时,该一个元件可以直接连接或耦接到另一元件,也可以指该一个元件和另一元件通过中间元件建立连接关系。此外,这里使用的“连接”或“耦接”可以包括无线连接或无线耦接。这里使用的术语“和/或”指示该术语所限定的项目中的至少一个,例如“A和/或B”可以实现为“A”,或者实现为“B”,或者实现为“A和B”。Those skilled in the art will understand that unless otherwise stated, the singular forms "a", "an", "said" and "the" used herein may also include plural forms. It should be further understood that the terms "comprising" and "comprising" used in the embodiments of the present application mean that the corresponding features can be implemented as the presented features, information, data, steps, operations, elements and/or components, but do not exclude The realization is other features, information, data, steps, operations, elements, components and/or their combinations etc. supported by the technical field. It should be understood that when we say that an element is "connected" or "coupled" to another element, the one element can be directly connected or coupled to the other element, or it can mean that the one element and another element pass through intermediate elements. Establish a connection relationship. Additionally, "connected" or "coupled" as used herein may include wireless connection or wireless coupling. The term "and/or" used herein indicates at least one of the items defined by the term, for example, "A and/or B" can be implemented as "A", or as "B", or as "A and B ".
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the purpose, technical solution and advantages of the present application clearer, the implementation manners of the present application will be further described in detail below in conjunction with the accompanying drawings.
下面通过对几个示例性实施方式的描述,对本申请实施例的技术方案以及本申请的技术方案产生的技术效果进行说明。需要指出的是,下述实施方式之间可以相互参考、借鉴或结合,对于不同实施方式中相同的术语、相似的特征以及相似的实施步骤等,不再重复描述。The following describes the technical solutions of the embodiments of the present application and the technical effects produced by the technical solutions of the present application by describing several exemplary implementations. It should be pointed out that the following embodiments may refer to, learn from or combine with each other, and the same terms, similar features, and similar implementation steps in different embodiments will not be described repeatedly.
图1为本申请实施例提供一种多系统蓝牙状态调整方法的流程示意图,该方法的执行主体可以是终端(例如电脑、手机)等电子设备,如图1所示,该方法可以包括:Fig. 1 provides a schematic flow diagram of a multi-system bluetooth state adjustment method provided by an embodiment of the present application. The execution subject of the method may be an electronic device such as a terminal (such as a computer, a mobile phone), as shown in Fig. 1 , the method may include:
步骤S101,当接收到用户将第一系统从前台切换为后台的触发操作时,获取第一系统的第一蓝牙状态,并对第一蓝牙状态进行记录。Step S101 , when a trigger operation of switching the first system from the foreground to the background is received, acquire the first Bluetooth status of the first system, and record the first Bluetooth status.
其中,当操作系统A处于前台时,表示终端正通过操作系统A与用户进行交互。当操作系统A处于后台时,表示终端并没有通过操作系统A与用户进行交互。第一系统可以是终端中已安装的任一操作系统,在不引起歧义的情况下可以将操作系统简称为系统。第一蓝牙状态为第一系统切换至后台前处于前台时的蓝牙状态。Wherein, when the operating system A is in the foreground, it means that the terminal is interacting with the user through the operating system A. When the operating system A is in the background, it means that the terminal does not interact with the user through the operating system A. The first system may be any operating system installed in the terminal, and the operating system may be referred to simply as the system if there is no ambiguity. The first bluetooth state is the bluetooth state when the first system is in the foreground before switching to the background.
具体地,当用户将当前处于前台的第一系统切换至后台时(即执行将第一系统从前台切换为后台的触发操作时),终端会将第一系统的第一蓝牙状态进行记录。具体来说,以安卓系统为例,蓝牙状态可分为以下七种:STATE_OFF(蓝牙关闭)、STATE_TURNING_ON(蓝牙正在开启)、STATE_ON(蓝牙已开启)、STATE_TURNING_OFF(蓝牙正在关闭)、STATE_BLE_TURNING_ON(蓝牙低功耗模式正在开启)、STATE_BLE_ON(蓝牙低功耗模式已开启)、STATE_BLE_TURNING_OFF(蓝牙低功耗模式正在关闭)。第一蓝牙状态可以是以上七种状态中的任意一个。Specifically, when the user switches the first system currently in the foreground to the background (that is, when performing a trigger operation of switching the first system from the foreground to the background), the terminal will record the first Bluetooth state of the first system. Specifically, taking the Android system as an example, the Bluetooth status can be divided into the following seven types: STATE_OFF (Bluetooth is turned off), STATE_TURNING_ON (Bluetooth is turning on), STATE_ON (Bluetooth is turned on), STATE_TURNING_OFF (Bluetooth is turning off), STATE_BLE_TURNING_ON (Bluetooth is turning off Power mode is turning on), STATE_BLE_ON (Bluetooth low energy mode is turned on), STATE_BLE_TURNING_OFF (Bluetooth low energy mode is turning off). The first Bluetooth state may be any one of the above seven states.
步骤S102,当接收到用户将第一系统从后台切换为前台的触发操作时,获取最后一次记录的第一蓝牙状态,并基于记录的第一蓝牙状态对第一系统的蓝牙状态进行调整。Step S102, when receiving the user's trigger operation to switch the first system from the background to the foreground, obtain the last recorded first Bluetooth state, and adjust the Bluetooth state of the first system based on the recorded first Bluetooth state.
具体地,当用户将当前处于后台的第一系统切换至前台时(即执行将第一系统从后台切换为前台的触发操作时),终端会读取最后一次记录的第一蓝牙状态(即第一系统上次处于前台时的蓝牙状态),然后根据记录的第一蓝牙状态将本次切换至前台后的第一系统的蓝牙状态进行调整。Specifically, when the user switches the first system currently in the background to the foreground (that is, when the trigger operation of switching the first system from the background to the foreground is performed), the terminal will read the last recorded first Bluetooth state (that is, the first The bluetooth state when the first system was in the foreground last time), and then adjust the bluetooth state of the first system after switching to the foreground this time according to the recorded first bluetooth state.
本申请提供的方案,每当终端的任一操作系统由前台切换到后台时,对该操作系统当前的蓝牙状态进行记录,在该操作系统再次切换回前台时根据记录将该操作系统的蓝牙状态调整至其最后一次处于前台时的状态。通过上述方式可以保证操作系统进行切换时,每一处于前台的操作系统的蓝牙状态与其上次处于前台时的蓝牙状态保持一致,进而可以实现操作系统切换过程中处于前台的操作系统的蓝牙功能持续保持开启状态。In the solution provided by this application, whenever any operating system of the terminal is switched from the foreground to the background, the current Bluetooth state of the operating system is recorded, and when the operating system is switched back to the foreground again, the Bluetooth state of the operating system is recorded according to the record. Adjust to the state it was in when it was last in the foreground. The above method can ensure that when the operating system is switched, the Bluetooth state of each operating system in the foreground is consistent with the Bluetooth state when it was in the foreground last time, and then the Bluetooth function of the operating system in the foreground during the operating system switching process can be continuously Leave it on.
在本申请的一种可选实施例中,当接收到用户将第一系统从后台切换为前台的触发操作时,获取最后一次记录的第一蓝牙状态,并基于记录的第一蓝牙状态对第一系统的蓝牙状态进行调整,具体包括:In an optional embodiment of the present application, when the trigger operation of switching the first system from the background to the foreground by the user is received, the last recorded first Bluetooth state is obtained, and the first bluetooth state is recorded based on the first recorded Bluetooth state. Adjust the bluetooth status of a system, including:
当接收到用户将第一系统从前台切换为后台的触发操作时,通过预设计时器开始计时;When receiving a trigger operation of switching the first system from the foreground to the background by the user, start counting time by a preset timer;
当计时时长达到预设时长时,获取最后一次记录的第一蓝牙状态和切换到后台的第二系统的第二蓝牙状态,若第二蓝牙状态为关闭,则根据最后一次记录的第一蓝牙状态,对第一系统的蓝牙状态进行调整。When the timing reaches the preset duration, obtain the last recorded first bluetooth state and the second bluetooth state of the second system switched to the background, if the second bluetooth state is off, then according to the last recorded first bluetooth state to adjust the Bluetooth status of the first system.
其中,预设计时器用于在检测到系统切换的触发操作时,开始进行计时。计时的作用在于,当系统切换前处于前台的系统A蓝牙状态为开启时,若系统A统切换至后台,需要将系统A的蓝牙状态调整为关闭;此时若处于前台的系统B需要将蓝牙状态调整为开启,则需要先等待系统A的蓝牙状态调整为关闭后再将系统B的蓝牙状态调整为开启,此时则需要预设计时器对等待时间进行计时,以防止多个系统同时开启蓝牙造成资源冲突。预设时长一般为保证系统切换时不发生资源冲突的等待时长,示例性的,本申请实施例中可以设置为1.5秒。第二系统为系统切换操作中切换到后台的系统。第二蓝牙状态为切换到后台时第二系统的蓝牙状态。Wherein, the preset timer is used to start timing when a trigger operation of system switching is detected. The function of timing is that when the Bluetooth status of system A in the foreground is turned on before the system is switched, if system A is switched to the background, the Bluetooth status of system A needs to be adjusted to off; at this time, if system B in the foreground needs to turn on the Bluetooth If the state is turned on, you need to wait for the bluetooth state of system A to be turned off before turning on the bluetooth state of system B. At this time, you need to preset the timer to time the waiting time to prevent multiple systems from turning on at the same time Bluetooth is causing a resource conflict. The preset duration is generally a waiting duration to ensure that no resource conflict occurs during system switching. Exemplarily, in this embodiment of the application, it can be set to 1.5 seconds. The second system is the system switched to the background during the system switching operation. The second bluetooth state is the bluetooth state of the second system when switching to the background.
具体地,当用户将第一系统从后台切换至前台时,终端的预设计时器会开始计时,当计时的时长达到预设时长后,终端将获取最后一次记录的第一蓝牙状态和第二系统的第二蓝牙状态。此时若第二蓝牙状态为关闭,则根据第一蓝牙状态对系统切换后处于前台的第一系统的蓝牙状态进行调整。Specifically, when the user switches the first system from the background to the foreground, the preset timer of the terminal will start timing, and when the timing reaches the preset duration, the terminal will obtain the last recorded first Bluetooth status and second The second Bluetooth state of the system. At this time, if the second bluetooth state is off, the bluetooth state of the first system that is in the foreground after system switching is adjusted according to the first bluetooth state.
需要说明的是,若获取到第二蓝牙状态不为关闭,则预设计时器将重新进行一次预设时长的计时,直至获取到第二蓝牙状态为关闭为止。It should be noted that, if the obtained second bluetooth state is not off, the preset timer will re-time the preset duration until the second bluetooth state is obtained to be off.
在本申请的一种可选实施例中,通过预设计时器开始计时,具体包括:In an optional embodiment of the present application, timing is started by a preset timer, which specifically includes:
当计时时长小于预设时长且再次接收到任一其他系统从前台切换为后台的触发操作时,重置预设计时器并重新开始计时。When the timing duration is less than the preset duration and the trigger operation of any other system switching from the foreground to the background is received again, the preset timer is reset and timing is restarted.
具体地,当计时时长未达到预设时长时,若此时用户再次进行了系统的切换操作,那么预设计时器将计时时长重置并重新开始新的计时。Specifically, when the timing duration does not reach the preset duration, if the user switches the system again at this time, the preset timer resets the timing duration and starts a new timing.
可以理解的是,当计时时长未达到预设时长再次进行系统切换操作时,该切换操作是一次新的切换操作,此时就需要重新等待当前处于后台的系统的蓝牙状态调整为关闭。It can be understood that when the system switching operation is performed again when the timing time does not reach the preset time length, the switching operation is a new switching operation, and at this time, it is necessary to wait for the Bluetooth status of the system currently in the background to be adjusted to off.
如图2所示,当终端接收到第一系统由后台切换为前台的触发操作时,将通过预设计时器开始计时。若未达到计时器预设时长就再次接收到了其他系统切换的触发操作,那么将重置预设计时器的计时时长并重新开始计时;若达到了计时器预设时长,则获取处于后台的第二系统的第二蓝牙状态,若获取到的第二蓝牙状态为关闭,则根据对第一系统最后一次记录的第一蓝牙状态对当前处于前台的第一系统的蓝牙状态进行调整;若获取到的第二蓝牙状态不为关闭,则重新通过预设计时器再次进行一次预设时长的计时。As shown in FIG. 2 , when the terminal receives a trigger operation of switching the first system from the background to the foreground, it will start counting time through a preset timer. If the trigger operation of other system switching is received again before the preset timer duration is reached, the preset timer duration will be reset and timing will be restarted; if the timer preset duration is reached, the first The second bluetooth state of the second system, if the obtained second bluetooth state is closed, then adjust the bluetooth state of the first system currently in the foreground according to the first bluetooth state recorded last time by the first system; If the second bluetooth status is not off, the preset timer is used to time the preset duration again.
在本申请的一种可选实施例中,对第一系统的蓝牙状态进行调整,具体包括:In an optional embodiment of the present application, adjusting the Bluetooth state of the first system specifically includes:
若第一蓝牙状态为开启或正在开启,则将第一系统的蓝牙状态调整为开启;If the first bluetooth state is turned on or is turning on, then adjust the bluetooth state of the first system to be turned on;
若第一蓝牙状态为关闭或正在关闭,则将第一系统的蓝牙状态调整为关闭。If the first bluetooth state is closed or is closing, adjust the bluetooth state of the first system to be closed.
具体地,以安卓系统为例,蓝牙的开启过程需要依次经过以下几个状态的变化:STATE_BLE_TURNING_ON、STATE_BLE_ON、STATE_TURNING_ON、STATE_ON;蓝牙的关闭过程需要依次经过以下几个状态的变化:STATE_TURNING_OFF、STATE_BLE_ON、STATE_BLE_TURNING_OFF、STATE_OFF。因此,若蓝牙状态处于开启过程,则属于正在开启状态;若蓝牙状态处于关闭过程,则属于正在关闭状态。第一蓝牙状态会根据蓝牙状态的变化过程对蓝牙状态进行记录,若第一蓝牙状态为开启或正在开启,则当第一系统从后台切换至前台后,第一系统的蓝牙状态将自动调整为开启;若第一蓝牙状态为关闭或正在关闭,则当第一系统从后台切换至前台后,第一系统的蓝牙状态将保持关闭。Specifically, taking the Android system as an example, the turn-on process of Bluetooth needs to go through the following changes in sequence: STATE_BLE_TURNING_ON, STATE_BLE_ON, STATE_TURNING_ON, STATE_ON; the turn-off process of Bluetooth needs to go through the following changes in turn: STATE_TURNING_OFF, STATE_BLE_ON, STATE_BLE_TURNING_OFF , STATE_OFF. Therefore, if the bluetooth state is in the opening process, it belongs to the opening state; if the bluetooth state is in the closing process, it belongs to the closing state. The first bluetooth state will record the bluetooth state according to the change process of the bluetooth state. If the first bluetooth state is on or is being turned on, when the first system switches from the background to the foreground, the bluetooth state of the first system will be automatically adjusted to Open; if the first Bluetooth status is off or closing, when the first system switches from the background to the foreground, the Bluetooth status of the first system will remain off.
在本申请的一种可选实施例中,获取第一系统当前的第一蓝牙状态,具体包括:In an optional embodiment of the present application, acquiring the current first Bluetooth status of the first system specifically includes:
通过预设蓝牙监听广播获取第一系统的第一蓝牙状态。The first Bluetooth state of the first system is acquired by preset Bluetooth listening broadcast.
其中,预设蓝牙监听广播用于监听系统的蓝牙状态。Among them, the preset Bluetooth monitoring broadcast is used to monitor the Bluetooth status of the system.
具体地,当用户将第一系统从前台切换至后台时,终端通过预设蓝牙监听广播获取系统切换时第一系统的蓝牙状态,并将获取到的蓝牙状态作为第一蓝牙状态记录。Specifically, when the user switches the first system from the foreground to the background, the terminal acquires the Bluetooth status of the first system when the system is switched through the preset Bluetooth monitoring broadcast, and records the acquired Bluetooth status as the first Bluetooth status.
需要说明的是,通常终端中的蓝牙设备是唯一的,每个系统在处于前台时可以通过调整自己的蓝牙状态来实现对终端的蓝牙设备的状态进行调整。It should be noted that usually there is only one bluetooth device in the terminal, and each system can adjust the state of the bluetooth device of the terminal by adjusting its own bluetooth state when it is in the foreground.
可选的,在本申请提供的实施例中,还可以在每个系统中设置预设标记,预设标记用于指示任一系统将蓝牙状态变更请求发送至终端蓝牙设备的过程。示例性的,预设标记默认为0,当任一系统向终端的蓝牙设备发送蓝牙状态变更请求而终端的蓝牙设备还未处理该变更请求时,可以将该预设标记设置为1,当蓝牙设备根据变更请求对蓝牙状态进行调整时该预设标记可设置为2,当蓝牙设备将蓝牙状态调整完成后该预设标记再次变回0。设置预设标记可以更好地防止发生资源冲突的问题。在上述示例中,当任一系统中的预设标记为1或2时,说明蓝牙设备准备处理或正在处理该系统的蓝牙状态变更请求,此时将不再处理其他系统的蓝牙状态变更请求(即其他系统中的预设标记只能为0)。Optionally, in the embodiments provided in this application, a preset flag can also be set in each system, and the preset flag is used to indicate the process of any system sending the Bluetooth state change request to the terminal Bluetooth device. Exemplarily, the preset flag is 0 by default. When any system sends a Bluetooth status change request to the terminal's Bluetooth device but the terminal's Bluetooth device has not yet processed the change request, the preset flag can be set to 1. When the Bluetooth When the device adjusts the Bluetooth state according to the change request, the preset flag can be set to 2, and after the Bluetooth device adjusts the Bluetooth state, the preset flag changes back to 0 again. Setting preset flags can better prevent resource conflict issues. In the above example, when the preset flag in any system is 1 or 2, it means that the Bluetooth device is ready to process or is processing the Bluetooth state change request of this system, and will not process the Bluetooth state change requests of other systems at this time ( That is, the preset flag in other systems can only be 0).
在本申请的一种可选实施例中,该方法还可以包括:In an optional embodiment of the present application, the method may also include:
获取蓝牙设备的第一物理地址;Obtain the first physical address of the Bluetooth device;
根据第一物理地址获取至少一个第二物理地址,并从第一物理地址和各第二物理地址中确定出第一系统对应的物理地址;Obtaining at least one second physical address according to the first physical address, and determining a physical address corresponding to the first system from the first physical address and each second physical address;
当第一系统处于前台且蓝牙状态为开启并需要与目标外置设备进行蓝牙连接时,将第一系统对应的物理地址发送至目标外置设备,以使目标外置设备根据物理地址与第一系统建立蓝牙连接。When the first system is in the foreground and the Bluetooth status is turned on and needs to be connected with the target external device through Bluetooth, the physical address corresponding to the first system is sent to the target external device, so that the target external device matches the first system according to the physical address. The system establishes a Bluetooth connection.
其中,第一物理地址和第二物理地址都为mac地址(Media Access ControlAddress,物理地址),可以由终端的生产商申请得到。目标外置设备为需要与终端建立蓝牙连接的终端之外的设备(如蓝牙耳机等)。Wherein, both the first physical address and the second physical address are mac addresses (Media Access Control Address, physical addresses), which can be obtained by the manufacturer of the terminal upon application. The target external device is a device other than the terminal that needs to establish a Bluetooth connection with the terminal (such as a Bluetooth headset, etc.).
具体地,终端生产商将申请到的第一物理地址输入到终端中作为终端蓝牙设备的第一物理地址进行存储,然后在终端的hardware.bluetooth(蓝牙硬件接口)服务中设置根据第一物理地址获取至少一个第二物理地址的方式,终端根据设置的方式获取到至少一个第二蓝牙地址,每一系统将与其中一个物理地址确定出对应关系。当任一第一系统处于前台且蓝牙为开启状态,并且需要与目标外置设备进行蓝牙连接时,终端将当前处于前台的第一系统对应的物理地址发送至目标外置设备,目标外置设备接收到物理地址后,根据物理地址与第一系统建立蓝牙连接。Specifically, the terminal manufacturer inputs the applied first physical address into the terminal as the first physical address of the terminal Bluetooth device for storage, and then sets the first physical address according to the first physical address in the terminal's hardware.bluetooth (Bluetooth hardware interface) service. In the way of obtaining at least one second physical address, the terminal obtains at least one second Bluetooth address according to the set method, and each system will determine a corresponding relationship with one of the physical addresses. When any first system is in the foreground and Bluetooth is turned on, and needs to establish a Bluetooth connection with the target external device, the terminal sends the physical address corresponding to the first system currently in the foreground to the target external device, and the target external device After receiving the physical address, establish a Bluetooth connection with the first system according to the physical address.
需要说明的是,现有技术的方案中由于终端的物理地址是唯一的,因此终端的物理地址只能对应其中一个系统(如系统A),当其他系统(如系统B)需要通过终端的蓝牙设备与目标外置设备建立蓝牙连接时,虽然显示已连接,但是实际上系统B并没有成功与目标外置设备建立蓝牙连接。因此,本申请实施例提供的方案通过获取多个物理地址,使每个系统都有自己对应的物理地址,保证目标外置设备可以根据当前前台系统对应的物理地址成功地与当前前台系统建立蓝牙连接。It should be noted that, because the physical address of the terminal is unique in the solution of the prior art, the physical address of the terminal can only correspond to one of the systems (such as system A). When other systems (such as system B) need to pass the Bluetooth When the device establishes a Bluetooth connection with the target external device, although it is displayed as connected, in fact System B does not successfully establish a Bluetooth connection with the target external device. Therefore, the solution provided by the embodiment of the present application obtains multiple physical addresses so that each system has its own corresponding physical address, ensuring that the target external device can successfully establish Bluetooth with the current foreground system according to the physical address corresponding to the current foreground system. connect.
在本申请的一种可选实施例中,每一第二物理地址经修改第一物理地址的末尾数值得到。In an optional embodiment of the present application, each second physical address is obtained by modifying the last value of the first physical address.
其中,每一物理地址由6个字节构成,前3个字节由电气与电子工程师协会分配,无法修改,后3个字节可由终端生产商自定义得到。因此,可以对第一物理地址的末尾数值进行修改从而得到多个对应的第二物理地址。Among them, each physical address consists of 6 bytes, the first 3 bytes are assigned by the Institute of Electrical and Electronics Engineers and cannot be modified, and the last 3 bytes can be customized by the terminal manufacturer. Therefore, the last value of the first physical address can be modified to obtain multiple corresponding second physical addresses.
具体地,终端生产商会先向电气与电子工程师协会申请若干个物理地址,然后从所有申请到的物理地址中选取其中一个作为第一物理地址存储至终端中,并在终端中写入相关方法使终端能够根据第一物理地址获取其他申请到的第二物理地址。由于每一物理地址都与终端中的各系统存在一一对应关系,因此第二物理地址的数量可以为终端安装的系统数量减一(即第一物理地址也对应其中一个系统)。示例性的,对于一个双系统的终端,申请到两个连续的物理地址,此时将两个物理地址中末尾数值(即末位数字)较小的那个作为第一物理地址存储至终端中(通常存储在终端的非易失性存储器中),并在hardware.bluetooth服务中写入“第二物理地址由第一物理地址对应的末位数字加一得到”对应的方法,终端会将第一物理地址的末位数字自动加一得到对应的第二物理地址,并将第一物理地址和第二物理地址分别分配给终端的两个系统。Specifically, the terminal manufacturer will first apply to the Institute of Electrical and Electronics Engineers for several physical addresses, then select one of all the applied physical addresses as the first physical address and store it in the terminal, and write related methods in the terminal to use The terminal can acquire other applied-for second physical addresses according to the first physical address. Since each physical address has a one-to-one correspondence with each system in the terminal, the number of second physical addresses may be the number of systems installed in the terminal minus one (that is, the first physical address also corresponds to one of the systems). Exemplarily, for a dual-system terminal, two consecutive physical addresses are applied for, and at this time, the smaller end value (ie, the last digit) of the two physical addresses is stored as the first physical address in the terminal ( It is usually stored in the non-volatile memory of the terminal), and write the method corresponding to "the second physical address is obtained by adding one to the last digit corresponding to the first physical address" in the hardware.bluetooth service, and the terminal will convert the first The last digit of the physical address is automatically increased by one to obtain the corresponding second physical address, and the first physical address and the second physical address are assigned to the two systems of the terminal respectively.
图3为本申请提供的一个双系统终端中两个系统之间的交互示例,如图3所示,系统1和系统2均为安卓系统,可以以容器等方式实现,共同受到Kernel(内核)的管控。系统1和系统2中分别存在需要使用蓝牙的APP(Application,应用程序),该APP可以通过各自系统中的SettingsLib(一种设置功能的依赖库)调用BluetoothManagerService(蓝牙管理服务)中的enable()和disable()函数(分别对应开启和关闭)实现对各自系统中蓝牙功能的开启和关闭。系统1和系统2可以通过各自的状态通道将各自的蓝牙状态发送至内核,内核可以获取系统1和系统2的蓝牙状态并分别对系统1和系统2的蓝牙状态进行调整。Fig. 3 is an example of interaction between two systems in a dual-system terminal provided by the present application. As shown in Fig. 3, both system 1 and system 2 are Android systems, which can be implemented in containers, etc., and are jointly subject to Kernel (kernel) control. In System 1 and System 2, there are APPs (Applications) that need to use Bluetooth respectively. The APPs can call enable() in BluetoothManagerService (Bluetooth Management Service) through SettingsLib (a dependent library for setting functions) in their respective systems. and disable() functions (respectively corresponding to opening and closing) to realize the opening and closing of the Bluetooth function in their respective systems. System 1 and System 2 can send their Bluetooth status to the kernel through their respective status channels, and the kernel can obtain the Bluetooth status of System 1 and System 2 and adjust the Bluetooth status of System 1 and System 2 respectively.
BluetoothManagerService可以向Hardware.bluetooth.service发送目标外置设备的蓝牙连接请求,Hardware.bluetooth.service接收到蓝牙连接请求后获取该系统对应的物理地址并发送至内核,内核再将物理地址发送给目标外置设备并与目标外置设备建立蓝牙连接。BluetoothManagerService can send the Bluetooth connection request of the target external device to Hardware.bluetooth.service. After receiving the Bluetooth connection request, Hardware.bluetooth.service obtains the corresponding physical address of the system and sends it to the kernel, and the kernel then sends the physical address to the target external device. device and establish a Bluetooth connection with the target external device.
图4为本申请实施例提供的一种多系统蓝牙状态调整装置的结构框图,如图4所示,该多系统蓝牙状态调整装置400可以包括:蓝牙状态记录模块401、蓝牙状态恢复模块402,其中,Fig. 4 is a structural block diagram of a multi-system Bluetooth state adjustment device provided by an embodiment of the present application. As shown in Fig. 4, the multi-system Bluetooth state adjustment device 400 may include: a Bluetooth state recording module 401, a Bluetooth state restoration module 402, in,
蓝牙状态记录模块401用于当接收到用户将第一系统从前台切换为后台的触发操作时,获取第一系统的第一蓝牙状态,并对第一蓝牙状态进行记录;The bluetooth state recording module 401 is used to obtain the first bluetooth state of the first system when receiving the trigger operation that the user switches the first system from the foreground to the background, and records the first bluetooth state;
蓝牙状态恢复模块402用于当接收到用户将第一系统从后台切换为前台的触发操作时,获取最后一次记录的第一蓝牙状态,并基于记录的第一蓝牙状态对第一系统的蓝牙状态进行调整。The bluetooth state restoration module 402 is used for when receiving the trigger operation that the user switches the first system from the background to the foreground, obtains the last recorded first bluetooth state, and based on the recorded first bluetooth state to the bluetooth state of the first system Make adjustments.
本申请提供的方案,每当终端的任一操作系统由前台切换到后台时,对该操作系统当前的蓝牙状态进行记录,在该操作系统再次切换回前台时根据记录将该操作系统的蓝牙状态调整至其最后一次处于前台时的状态。通过上述方式可以保证操作系统进行切换时,每一处于前台的操作系统的蓝牙状态与其上次处于前台时的蓝牙状态保持一致,进而可以实现操作系统切换过程中处于前台的操作系统的蓝牙功能持续保持开启状态。In the solution provided by this application, whenever any operating system of the terminal is switched from the foreground to the background, the current Bluetooth state of the operating system is recorded, and when the operating system is switched back to the foreground again, the Bluetooth state of the operating system is recorded according to the record. Adjust to the state it was in when it was last in the foreground. The above method can ensure that when the operating system is switched, the Bluetooth state of each operating system in the foreground is consistent with the Bluetooth state when it was in the foreground last time, and then the Bluetooth function of the operating system in the foreground during the operating system switching process can be continuously Leave it on.
在本申请的一种可选实施例中,蓝牙状态恢复模块具体用于:In an optional embodiment of the present application, the Bluetooth state restoration module is specifically used for:
当接收到用户将第一系统从后台切换为前台的触发操作时,通过预设计时器开始计时;When a trigger operation of switching the first system from the background to the foreground by the user is received, timing is started by a preset timer;
当计时时长达到预设时长时,获取最后一次记录的第一蓝牙状态和切换到后台的第二系统的第二蓝牙状态,若第二蓝牙状态为关闭,则根据最后一次记录的第一蓝牙状态,对第一系统的蓝牙状态进行调整。When the timing reaches the preset duration, obtain the last recorded first bluetooth state and the second bluetooth state of the second system switched to the background, if the second bluetooth state is off, then according to the last recorded first bluetooth state to adjust the Bluetooth status of the first system.
在本申请的一种可选实施例中,蓝牙状态恢复模块进一步用于:In an optional embodiment of the present application, the Bluetooth state recovery module is further used for:
当计时时长小于预设时长且再次接收到任一其他系统从前台切换为后台的触发操作时,重置预设计时器并重新开始计时。When the timing duration is less than the preset duration and the trigger operation of any other system switching from the foreground to the background is received again, the preset timer is reset and timing is restarted.
在本申请的一种可选实施例中,蓝牙状态恢复模块进一步用于:In an optional embodiment of the present application, the Bluetooth state recovery module is further used for:
若第一蓝牙状态为开启或正在开启,则将第一系统的蓝牙状态调整为开启;If the first bluetooth state is turned on or is turning on, then adjust the bluetooth state of the first system to be turned on;
若第一蓝牙状态为关闭或正在关闭,则将第一系统的蓝牙状态调整为关闭。If the first bluetooth state is closed or is closing, adjust the bluetooth state of the first system to be closed.
在本申请的一种可选实施例中,蓝牙状态记录模块用于:In an optional embodiment of the present application, the Bluetooth state recording module is used for:
通过预设蓝牙监听广播获取第一系统的第一蓝牙状态。The first Bluetooth state of the first system is acquired by preset Bluetooth listening broadcast.
在本申请的一种可选实施例中,该装置还包括蓝牙连接模块,用于:In an optional embodiment of the present application, the device also includes a bluetooth connection module for:
获取蓝牙设备的第一物理地址;Obtain the first physical address of the Bluetooth device;
根据第一物理地址获取至少一个第二物理地址,并从第一物理地址和各第二物理地址中确定出第一系统对应的物理地址;Obtaining at least one second physical address according to the first physical address, and determining a physical address corresponding to the first system from the first physical address and each second physical address;
当第一系统处于前台且蓝牙状态为开启并需要与目标外置设备进行蓝牙连接时,将第一系统对应的物理地址发送至目标外置设备,以使目标外置设备根据物理地址与第一系统建立蓝牙连接。When the first system is in the foreground and the Bluetooth status is turned on and needs to be connected with the target external device through Bluetooth, the physical address corresponding to the first system is sent to the target external device, so that the target external device matches the first system according to the physical address. The system establishes a Bluetooth connection.
在本申请的一种可选实施例中,每一第二物理地址经修改第一物理地址的末尾数值得到。In an optional embodiment of the present application, each second physical address is obtained by modifying the last value of the first physical address.
下面参考图5,其示出了适于用来实现本申请实施例的电子设备(例如执行图1所示方法的终端设备或服务器)500的结构示意图。本申请实施例中的电子设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)、可穿戴设备等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图5示出的电子设备仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。Referring now to FIG. 5 , it shows a schematic structural diagram of an electronic device (for example, a terminal device or a server executing the method shown in FIG. 1 ) 500 suitable for implementing the embodiment of the present application. The electronic equipment in the embodiment of the present application may include but not limited to such as mobile phone, notebook computer, digital broadcast receiver, PDA (personal digital assistant), PAD (tablet computer), PMP (portable multimedia player), vehicle-mounted terminal (such as Car navigation terminals), mobile terminals such as wearable devices, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in FIG. 5 is only an example, and should not limit the functions and scope of use of this embodiment of the present application.
电子设备包括:存储器以及处理器,存储器用于存储执行上述各个方法实施例所述方法的程序;处理器被配置为执行存储器中存储的程序。其中,这里的处理器可以称为下文所述的处理装置501,存储器可以包括下文中的只读存储器(ROM)502、随机访问存储器(RAM)503以及存储装置508中的至少一项,具体如下所示:The electronic device includes: a memory and a processor, where the memory is used to store a program for executing the method described in each of the foregoing method embodiments; the processor is configured to execute the program stored in the memory. Wherein, the processor here may be referred to as the processing device 501 described below, and the memory may include at least one of the following read-only memory (ROM) 502, random access memory (RAM) 503, and storage device 508, specifically as follows Shown:
如图5所示,电子设备500可以包括处理装置(例如中央处理器、图形处理器等)501,其可以根据存储在只读存储器(ROM)502中的程序或者从存储装置508加载到随机访问存储器(RAM)503中的程序而执行各种适当的动作和处理。在RAM503中,还存储有电子设备500操作所需的各种程序和数据。处理装置501、ROM 502以及RAM503通过总线504彼此相连。输入/输出(I/O)接口505也连接至总线504。As shown in FIG. 5, an electronic device 500 may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 501, which may be randomly accessed according to a program stored in a read-only memory (ROM) 502 or loaded from a storage device 508. Various appropriate actions and processes are executed by programs in the memory (RAM) 503 . In the RAM 503, various programs and data necessary for the operation of the electronic device 500 are also stored. The processing device 501 , ROM 502 , and RAM 503 are connected to each other through a bus 504 . An input/output (I/O) interface 505 is also connected to the bus 504 .
通常,以下装置可以连接至I/O接口505:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置506;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置507;包括例如磁带、硬盘等的存储装置508;以及通信装置509。通信装置509可以允许电子设备500与其他设备进行无线或有线通信以交换数据。虽然图5示出了具有各种装置的电子设备,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。Typically, the following devices can be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speaker, vibration an output device 507 such as a computer; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication means 509 may allow the electronic device 500 to perform wireless or wired communication with other devices to exchange data. While FIG. 5 shows an electronic device having various means, it should be understood that implementing or having all of the means shown is not a requirement. More or fewer means may alternatively be implemented or provided.
特别地,根据本申请的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本申请的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置509从网络上被下载和安装,或者从存储装置508被安装,或者从ROM 502被安装。在该计算机程序被处理装置501执行时,执行本申请实施例的方法中限定的上述功能。In particular, according to the embodiments of the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments of the present application include a computer program product, which includes a computer program carried on a non-transitory computer readable medium, where the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network via communication means 509 , or from storage means 508 , or from ROM 502 . When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present application are executed.
需要说明的是,本申请上述的计算机可读存储介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the computer-readable storage medium mentioned above in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. A computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In this application, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can transmit, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted by any appropriate medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
在一些实施方式中,客户端、服务器可以利用诸如HTTP(HyperText TransferProtocol,超文本传输协议)之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。In some embodiments, the client and the server can communicate using any currently known or future-developed network protocols such as HTTP (HyperText Transfer Protocol, Hypertext Transfer Protocol), and can communicate with digital data in any form or medium (eg, communication network) interconnections. Examples of communication networks include local area networks ("LANs"), wide area networks ("WANs"), internetworks (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network of.
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。The above-mentioned computer-readable medium may be included in the above-mentioned electronic device, or may exist independently without being incorporated into the electronic device.
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device:
当接收到用户将第一系统从前台切换为后台的触发操作时,获取第一系统的第一蓝牙状态,并对第一蓝牙状态进行记录;When receiving the trigger operation of switching the first system from the foreground to the background by the user, acquire the first bluetooth state of the first system, and record the first bluetooth state;
当接收到用户将第一系统从后台切换为前台的触发操作时,获取最后一次记录的第一蓝牙状态,并基于记录的第一蓝牙状态对第一系统的蓝牙状态进行调整。When a trigger operation of switching the first system from the background to the foreground is received, the last recorded first bluetooth state is obtained, and the bluetooth state of the first system is adjusted based on the recorded first bluetooth state.
可以以一种或多种程序设计语言或其组合来编写用于执行本申请的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out the operations of this application may be written in one or more programming languages, or combinations thereof, including but not limited to object-oriented programming languages—such as Java, Smalltalk, C++, and Includes conventional procedural programming languages - such as the "C" language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as through an Internet service provider). Internet connection).
附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or portion of code that contains one or more logical functions for implementing specified executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified functions or operations , or may be implemented by a combination of dedicated hardware and computer instructions.
描述于本申请实施例中所涉及到的模块或单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,模块或单元的名称在某种情况下并不构成对该单元本身的限定,例如,第一约束获取模块还可以被描述为“获取第一约束的模块”。The modules or units involved in the embodiments described in the present application may be implemented by means of software or by means of hardware. Wherein, the name of a module or unit does not constitute a limitation of the unit itself under certain circumstances, for example, the first constraint obtaining module may also be described as "a module for obtaining the first constraint".
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。The functions described herein above may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), System on Chips (SOCs), Complex Programmable Logical device (CPLD) and so on.
在本申请的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer discs, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
应该理解的是,虽然附图的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,其可以以其他的顺序执行。而且,附图的流程图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,其执行顺序也不必然是依次进行,而是可以与其他步骤或者其他步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flow chart of the accompanying drawings are displayed sequentially according to the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some of the steps in the flowcharts of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages may not necessarily be executed at the same time, but may be executed at different times, and the order of execution is also It is not necessarily performed sequentially, but may be performed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps.
以上所述仅是本发明的部分实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above descriptions are only part of the embodiments of the present invention. It should be pointed out that those skilled in the art can make some improvements and modifications without departing from the principles of the present invention. It should be regarded as the protection scope of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310597436.2A CN116634006B (en) | 2023-05-24 | 2023-05-24 | Multi-system Bluetooth state adjustment method, device, electronic device and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310597436.2A CN116634006B (en) | 2023-05-24 | 2023-05-24 | Multi-system Bluetooth state adjustment method, device, electronic device and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN116634006A true CN116634006A (en) | 2023-08-22 |
| CN116634006B CN116634006B (en) | 2025-10-21 |
Family
ID=87637752
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310597436.2A Active CN116634006B (en) | 2023-05-24 | 2023-05-24 | Multi-system Bluetooth state adjustment method, device, electronic device and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116634006B (en) |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104618584A (en) * | 2015-01-09 | 2015-05-13 | 深圳市前海富达科技有限公司 | Method and system for switching intelligent terminal safe work mode |
| CN105530376A (en) * | 2015-12-11 | 2016-04-27 | 北京元心科技有限公司 | Method and device for carrying out call during multi-system switching |
| US20180120927A1 (en) * | 2014-06-11 | 2018-05-03 | Mediatek Singapore Pte. Ltd. | Devices and methods for switching and communication among multiple operating systems and application management methods thereof |
| WO2021169147A1 (en) * | 2020-02-26 | 2021-09-02 | 深圳市岍丞技术有限公司 | Method and system for connecting bluetooth earphones to terminal, and storage medium |
| CN113630751A (en) * | 2020-05-06 | 2021-11-09 | 成都鼎桥通信技术有限公司 | Bluetooth using method and device based on dual systems |
| CN113947883A (en) * | 2021-10-11 | 2022-01-18 | 青岛豪江智能科技股份有限公司 | Multi-system wireless cooperative work system and use method thereof |
| CN113965895A (en) * | 2021-12-16 | 2022-01-21 | 深圳市晨北科技有限公司 | Bluetooth connection switching method, device and storage medium |
| CN114422992A (en) * | 2020-12-08 | 2022-04-29 | Oppo广东移动通信有限公司 | Dual system bluetooth device and electronic equipment |
-
2023
- 2023-05-24 CN CN202310597436.2A patent/CN116634006B/en active Active
Patent Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20180120927A1 (en) * | 2014-06-11 | 2018-05-03 | Mediatek Singapore Pte. Ltd. | Devices and methods for switching and communication among multiple operating systems and application management methods thereof |
| CN104618584A (en) * | 2015-01-09 | 2015-05-13 | 深圳市前海富达科技有限公司 | Method and system for switching intelligent terminal safe work mode |
| CN105530376A (en) * | 2015-12-11 | 2016-04-27 | 北京元心科技有限公司 | Method and device for carrying out call during multi-system switching |
| WO2021169147A1 (en) * | 2020-02-26 | 2021-09-02 | 深圳市岍丞技术有限公司 | Method and system for connecting bluetooth earphones to terminal, and storage medium |
| CN113630751A (en) * | 2020-05-06 | 2021-11-09 | 成都鼎桥通信技术有限公司 | Bluetooth using method and device based on dual systems |
| CN114422992A (en) * | 2020-12-08 | 2022-04-29 | Oppo广东移动通信有限公司 | Dual system bluetooth device and electronic equipment |
| WO2022121522A1 (en) * | 2020-12-08 | 2022-06-16 | Oppo广东移动通信有限公司 | System switching method and apparatus, electronic device, and readable storage medium |
| CN113947883A (en) * | 2021-10-11 | 2022-01-18 | 青岛豪江智能科技股份有限公司 | Multi-system wireless cooperative work system and use method thereof |
| CN113965895A (en) * | 2021-12-16 | 2022-01-21 | 深圳市晨北科技有限公司 | Bluetooth connection switching method, device and storage medium |
Non-Patent Citations (2)
| Title |
|---|
| AREFIN, KS (AREFIN, KAZI SHAMSUL): "Prospect of DTMF Keypad as Computer\'s Keyboard", 《 PROCEEDINGS OF 2010 3RD IEEE INTERNATIONAL CONFERENCE ON COMPUTER SCIENCE AND INFORMATION TECHNOLOGY (ICCSIT 2010), VOL 5 PAGE1-7》, 1 January 2010 (2010-01-01) * |
| 武琼: "基于容器技术的多OS的研究与实现", 《中国优秀硕士学位论文全文库》, 15 February 2018 (2018-02-15) * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN116634006B (en) | 2025-10-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2022237744A1 (en) | Method and apparatus for presenting video, and device and medium | |
| WO2023165370A1 (en) | Information exchange method and apparatus, display device, and storage medium | |
| WO2021073205A1 (en) | Video processing method and apparatus, storage medium, and electronic device | |
| WO2020258782A1 (en) | Data transmission method applicable to bluetooth card reader, and electronic apparatus | |
| CN110865846A (en) | Application management method, device, terminal, system and storage medium | |
| CN109710167A (en) | Soft keyboard control method, device and terminal | |
| WO2023072070A1 (en) | Display control method and apparatus, and electronic device | |
| WO2023134509A1 (en) | Video stream pushing method and apparatus, and terminal device and storage medium | |
| CN112636971B (en) | Service degradation method and device, electronic equipment and storage medium | |
| CN112418389A (en) | Data processing method and device, electronic equipment and computer readable storage medium | |
| CN116634006A (en) | Multi-system bluetooth state adjustment method, device, electronic equipment and storage medium | |
| CN114765691A (en) | Live video function component loading method, data processing method and equipment | |
| US12537906B2 (en) | Video effect packet generation method and apparatus, device, and storage medium | |
| CN113518183B (en) | Camera calling method and device and electronic equipment | |
| US11962929B2 (en) | Method, apparatus, and device for configuring video special effect, and storage medium | |
| US12093203B2 (en) | System and method for supporting communications between management controllers and devices | |
| CN118784463A (en) | Local network collaborative control method, device, equipment and storage medium | |
| CN110704767B (en) | Page opening method and device, electronic equipment and storage medium | |
| CN115941740A (en) | Vehicle active notification method and device and related equipment | |
| CN115373998A (en) | Application program optimization method, device, equipment and medium | |
| CN111324512B (en) | Method, apparatus, electronic device, and computer-readable medium for generating text | |
| CN118227081A (en) | Virtual machine audio playing method, system, device, equipment and storage medium | |
| CN116419371A (en) | Method, apparatus, device, storage medium and program product for establishing communication connection | |
| WO2019140578A1 (en) | Data backup instruction management method and system | |
| WO2023116522A1 (en) | Process management method and apparatus, and storage medium and electronic device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |