WO2020078383A1 - Bluetooth connection-based mode switching method, apparatus and system, and bluetooth device - Google Patents

Bluetooth connection-based mode switching method, apparatus and system, and bluetooth device Download PDF

Info

Publication number
WO2020078383A1
WO2020078383A1 PCT/CN2019/111474 CN2019111474W WO2020078383A1 WO 2020078383 A1 WO2020078383 A1 WO 2020078383A1 CN 2019111474 W CN2019111474 W CN 2019111474W WO 2020078383 A1 WO2020078383 A1 WO 2020078383A1
Authority
WO
WIPO (PCT)
Prior art keywords
bluetooth
paired
bluetooth device
connection
current
Prior art date
Application number
PCT/CN2019/111474
Other languages
French (fr)
Chinese (zh)
Inventor
张家玮
Original Assignee
深圳Tcl新技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳Tcl新技术有限公司 filed Critical 深圳Tcl新技术有限公司
Publication of WO2020078383A1 publication Critical patent/WO2020078383A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0212Power saving arrangements in terminal devices managed by the network, e.g. network or access point is master and terminal is slave
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0248Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal dependent on the time of the day, e.g. according to expected transmission activity
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • This application relates to the field of Bluetooth applications, and in particular, to a method, device, storage medium, and system for mode switching based on Bluetooth connections.
  • Bluetooth is commonly used in many devices as data transmission. From mobile phones, wearable devices to home appliances in the Internet of Things, many devices that choose to use the Bluetooth solution for communication can be seen. This application hopes Through the communication between Bluetooth, the device provides an active mode switching mode based on the Bluetooth connection, so that the device saves energy and brings the convenience of instant use when the user needs it.
  • the step of reading device information of the Bluetooth device to be paired to confirm whether the Bluetooth device to be paired is connectable further includes:
  • the current standby mode is maintained.
  • the read device information of the Bluetooth device to be paired confirm whether the Bluetooth device to be paired has a historical connection record
  • the Bluetooth device to be paired has a historical connection record, it is confirmed that the Bluetooth device to be paired can be connected.
  • the step of confirming whether the Bluetooth device to be paired has a historical connection record according to the read device information of the Bluetooth device to be paired further includes:
  • the step of searching for the device information in the preset historical connection record storage area further includes:
  • the step of reading the historical connection record to confirm whether the historical connection record contains the device information further includes:
  • the historical connection record does not include the device information, it is confirmed that there is no historical connection record of the Bluetooth device to be paired.
  • the method further includes:
  • the control module is used to start the power supply of the device and switch the current standby mode to the working mode.
  • the connection module is used to establish a Bluetooth connection with the Bluetooth device to be paired when receiving the response information of the Bluetooth device to be paired;
  • This application provides a solution to initiate a Bluetooth device detection instruction through the current standby mode operation to detect the Bluetooth device to be configured, and after establishing a Bluetooth connection with the Bluetooth device to be paired, start the device to switch to the working mode based on the Bluetooth connection mode, Compared with the working mode, the standby mode does not require much power, so switching the working mode through the Bluetooth connection state achieves the beneficial effect of reducing energy consumption.
  • FIG. 1 does not constitute a limitation on the terminal, and may include more or less components than those shown in the figure, or a combination of certain components, or a different component arrangement.
  • Reading device information of the Bluetooth device to be paired to confirm whether the Bluetooth device to be paired can be connected;
  • the current standby mode is maintained.
  • the processor 1001 may call the Bluetooth connection-based mode switching application stored in the memory 1005, and also perform the following operations:
  • FIG. 2 is a schematic flowchart of a first embodiment of a method for mode switching based on Bluetooth connection of the present application.
  • the method for mode switching based on Bluetooth connection includes:
  • Step S10 Initiate a Bluetooth device detection instruction to detect whether there is currently a Bluetooth device to be paired;
  • Step S20 when receiving the response information of the Bluetooth device to be paired, establishing a Bluetooth connection with the Bluetooth device to be paired;
  • Reading device information of the Bluetooth device to be paired to confirm whether the Bluetooth device to be paired can be connected;
  • the Bluetooth device to be paired has a historical connection record, it is confirmed that the Bluetooth device to be paired can be connected.
  • the current standby mode is maintained.
  • the Bluetooth device detection instruction is initiated through the operation of the current standby mode to detect the Bluetooth device to be configured, and after the Bluetooth connection is established with the Bluetooth device to be paired, the device is started to switch to the working mode based on the Bluetooth connection mode, compared to working Mode, standby mode does not require too much power, so switching the working mode through the Bluetooth connection state achieves the beneficial effect of reducing energy consumption.
  • the present application also provides a Bluetooth connection-based mode switching system that implements the content of an embodiment of the Bluetooth connection-based mode switching method described above during operation.
  • the methods in the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware, but in many cases the former is better Implementation.
  • the technical solution of the present application can be embodied in the form of a software product in essence or part that contributes to the existing technology, and the computer software product is stored in a storage medium (such as ROM / RAM) as described above , Magnetic disks, optical disks), including several instructions to enable a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to perform the method described in each embodiment of the present application.

Landscapes

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

Abstract

Disclosed in the present application is a Bluetooth connection-based mode switching method, comprising: initiating a Bluetooth device detection instruction, so as to detect whether a Bluetooth device to be paired currently exists; when response information of the Bluetooth device to be paired is received, establishing a Bluetooth connection with the Bluetooth device to be paired; and turning on a power supply of the device, and switching the current standby mode to an operation mode. Further disclosed in the present application are a Bluetooth device, and a Bluetooth connection-based mode switching apparatus and system. According to the present application, the Bluetooth device detection instruction is initiated by means of the operation of the current standby mode, so as to detect the Bluetooth device to be paired; after the Bluetooth connection is established with the Bluetooth device to be paired, the device is turned on, and the current standby mode is switched to the operation mode based on Bluetooth connection-base mode switching; compared with the operation mode, the standby mode does not require too much power, and therefore, the switching of the operation mode by means of a Bluetooth connection state achieves energy consumption reduction.

Description

基于蓝牙连接的模式切换方法、蓝牙设备、装置及系统  Mode switching method based on bluetooth connection, bluetooth equipment, device and system The
技术领域Technical field
本申请涉及蓝牙应用领域,尤其涉及一种基于蓝牙连接的模式切换方法、装置、存储介质及系统。This application relates to the field of Bluetooth applications, and in particular, to a method, device, storage medium, and system for mode switching based on Bluetooth connections.
背景技术Background technique
目前蓝牙装置的功耗较低,在许多设备上均普遍应用蓝牙来作为数据传输使用,包含手机、穿戴设备到物联网的家居设备,均可见到许多选择使用蓝牙方案通信的设备,本申请希望透过蓝牙间的通讯提供设备一种主动的基于蓝牙连接的模式切换模式,使设备节能的同时带给用户需要时能即时使用的便利性。At present, the power consumption of Bluetooth devices is low, and Bluetooth is commonly used in many devices as data transmission. From mobile phones, wearable devices to home appliances in the Internet of Things, many devices that choose to use the Bluetooth solution for communication can be seen. This application hopes Through the communication between Bluetooth, the device provides an active mode switching mode based on the Bluetooth connection, so that the device saves energy and brings the convenience of instant use when the user needs it.
目前使用蓝牙通信的设备,需要两个设备双向通信建立连接,两个设备需要预先经过配对,使用时两个设备的蓝牙模块均需开启,并由其中一个设备先发出回连请求,另一设备收到请求后反馈,确认协议后连接。如果在请求时另一端设备未启动电源,连接失败,可能需要重新开启蓝牙尝试连接。At present, devices using Bluetooth communication need two devices to establish a connection in two-way communication. The two devices need to be paired in advance. When using, the Bluetooth modules of both devices must be turned on, and one of the devices will first send back the connection request, and the other device Receive feedback after receiving the request, connect after confirming the agreement. If the other device does not turn on the power when requested, the connection fails, you may need to turn on Bluetooth again to try to connect.
目前家庭中越来越多的智能设备出现,如智能电视、音箱、路由等,这些设备在提供完整功能的同时也造成启动时需要较长的时间,当用户想随时使用时十分不便,因此许多设备一但接上电源就不再关机,也一定程度增加设备损耗及耗电量。At present, more and more smart devices in the home appear, such as smart TVs, speakers, routers, etc. These devices provide full functions and also cause a long time to start, which is very inconvenient when users want to use at any time, so many devices Once it is connected to the power supply, it will not shut down, which will increase the loss and power consumption of the equipment to a certain extent.
上述内容仅用于辅助理解本申请的技术方案,并不代表承认上述内容是现有技术。The above content is only used to help understand the technical solution of the present application, and does not mean that the above content is recognized as prior art.
申请内容Application content
本申请的主要目的在于提供一种基于蓝牙连接的模式切换方法,旨在解决现有技术的蓝牙设备为提供使用效果在非连接情况下不能主动开关机造成能耗大的技术问题。The main purpose of the present application is to provide a mode switching method based on Bluetooth connection, aiming to solve the technical problem that the prior art Bluetooth device cannot actively switch the machine on and off in a non-connected state to cause a large energy consumption.
为实现上述目的,本申请提供一种基于蓝牙连接的模式切换方法,包括以下内容:In order to achieve the above purpose, the present application provides a method for mode switching based on Bluetooth connection, including the following:
发起蓝牙设备检测指令,以检测当前是否有待配对蓝牙设备;Initiate Bluetooth device detection instruction to detect whether there is currently a Bluetooth device to be paired;
在接收到待配对蓝牙设备的响应信息时,与所述待配对蓝牙设备建立蓝牙连接;When receiving the response information of the Bluetooth device to be paired, establish a Bluetooth connection with the Bluetooth device to be paired;
启动设备电源并切换当前的待机模式至工作模式。Turn on the power of the device and switch the current standby mode to the working mode.
在一些实施方式中,所述蓝牙设备为待机状态。In some embodiments, the Bluetooth device is in a standby state.
在一些实施方式中,所述发起蓝牙设备检测指令,以检测当前是否有待配对蓝牙设备的步骤,还包括:In some embodiments, the step of initiating a Bluetooth device detection instruction to detect whether there is currently a Bluetooth device to be paired further includes:
启动蓝牙模块,发起蓝牙设备检测指令。Start the Bluetooth module, and initiate the Bluetooth device detection instruction.
在一些实施方式中,所述发起蓝牙设备检测指令,以检测当前是否有待配对蓝牙设备的步骤,还包括:In some embodiments, the step of initiating a Bluetooth device detection instruction to detect whether there is currently a Bluetooth device to be paired further includes:
确认当前时间是否在预设的时间周期内;Confirm whether the current time is within the preset time period;
在确认所述当前时间为预设的时间周期内时,执行发起蓝牙设备检测指令的步骤。When it is confirmed that the current time is within a preset time period, the step of initiating a Bluetooth device detection instruction is performed.
在一些实施方式中,所述在接收到待配对蓝牙设备的响应信息时,与所述待配对蓝牙设备建立蓝牙连接的步骤,包括:In some embodiments, the step of establishing a Bluetooth connection with the Bluetooth device to be paired when receiving the response information of the Bluetooth device to be paired includes:
读取所述待配对蓝牙设备的设备信息,以确认所述待配对蓝牙设备是否可连接;Reading device information of the Bluetooth device to be paired to confirm whether the Bluetooth device to be paired can be connected;
在确认所述待配对蓝牙设备可连接时,与所述待配对蓝牙设备建立蓝牙连接。When it is confirmed that the Bluetooth device to be paired can be connected, a Bluetooth connection is established with the Bluetooth device to be paired.
在一些实施方式中,所述读取所述待配对蓝牙设备的设备信息,以确认所述待配对蓝牙设备是否可连接的步骤,还包括:In some embodiments, the step of reading device information of the Bluetooth device to be paired to confirm whether the Bluetooth device to be paired is connectable further includes:
在确认所述待配对蓝牙设备不可连接时,保持当前的待机模式不变。When confirming that the Bluetooth device to be paired is not connectable, the current standby mode is maintained.
在一些实施方式中,所述读取所述待配对蓝牙设备的设备信息,以确认所述待配对蓝牙设备是否可连接的步骤,还包括:In some embodiments, the step of reading device information of the Bluetooth device to be paired to confirm whether the Bluetooth device to be paired is connectable further includes:
获取所述蓝牙设备的蓝牙设置,读取所述蓝牙设备的设置信息;Acquiring the Bluetooth settings of the Bluetooth device, and reading the setting information of the Bluetooth device;
根据读取到的所述设置信息确认所述待配对蓝牙设备是否可连接。Confirm whether the Bluetooth device to be paired can be connected according to the read setting information.
在一些实施方式中,所述在确认所述待配对蓝牙设备不可连接时,保持当前的待机模式不变的步骤之后,还包括:In some embodiments, after the step of confirming that the Bluetooth device to be paired is not connectable, maintaining the current standby mode unchanged, the method further includes:
根据预设的时间周期发起蓝牙设备检测指令。The Bluetooth device detection instruction is initiated according to a preset time period.
在一些实施方式中,所述读取所述待配对蓝牙设备的设备信息,以确认所述待配对蓝牙设备是否可连接的步骤,还包括:In some embodiments, the step of reading device information of the Bluetooth device to be paired to confirm whether the Bluetooth device to be paired is connectable further includes:
根据读取到的待配对蓝牙设备的设备信息,确认所述待配对蓝牙设备是否有历史连接记录;According to the read device information of the Bluetooth device to be paired, confirm whether the Bluetooth device to be paired has a historical connection record;
在确认所述待配对蓝牙设备有历史连接记录时,确认所述待配对蓝牙设备可连接。When it is confirmed that the Bluetooth device to be paired has a historical connection record, it is confirmed that the Bluetooth device to be paired can be connected.
在一些实施方式中,所述根据读取到的待配对蓝牙设备的设备信息,确认所述待配对蓝牙设备是否有历史连接记录的步骤,还包括:In some embodiments, the step of confirming whether the Bluetooth device to be paired has a historical connection record according to the read device information of the Bluetooth device to be paired further includes:
在预设的历史连接记录存储区域中查找所述设备信息;Search for the device information in a preset historical connection record storage area;
根据查找结果确认所述待配对蓝牙设备是否有历史连接记录。According to the search result, confirm whether the Bluetooth device to be paired has a historical connection record.
在一些实施方式中,所述在预设的历史连接记录存储区域中查找所述设备信息的步骤,还包括:In some embodiments, the step of searching for the device information in the preset historical connection record storage area further includes:
将所述设备信息与所述预设的历史连接记录存储区域中存储的历史连接记录比对,根据比对结果确认所述待配对蓝牙设备是否存在历史连接记录。Comparing the device information with the historical connection records stored in the preset historical connection record storage area, and confirming whether there is a historical connection record for the Bluetooth device to be paired according to the comparison result.
在一些实施方式中,所述将所述设备信息与所述预设的历史连接记录存储区域中存储的历史连接记录比对,根据比对结果确认所述待配对蓝牙设备是否存在历史连接记录的步骤之后,还包括:In some embodiments, the device information is compared with the historical connection records stored in the preset historical connection record storage area, and according to the comparison result, it is confirmed whether there is a historical connection record in the Bluetooth device to be paired After the steps, it also includes:
读取所述历史连接记录,确认所述历史连接记录是否包含所述设备信息;Reading the historical connection record to confirm whether the historical connection record contains the device information;
在确认所述历史连接记录包含所述设备信息时,确认所述待配对蓝牙设备存在历史连接记录。When it is confirmed that the historical connection record includes the device information, it is confirmed that there is a historical connection record of the Bluetooth device to be paired.
在一些实施方式中,所述读取所述历史连接记录,确认所述历史连接记录是否包含有所述设备信息的步骤,还包括:In some embodiments, the step of reading the historical connection record to confirm whether the historical connection record contains the device information further includes:
在确认所述历史连接记录不包含所述设备信息时,确认所述待配对蓝牙设备不存在历史连接记录。When it is confirmed that the historical connection record does not include the device information, it is confirmed that there is no historical connection record of the Bluetooth device to be paired.
在一些实施方式中,所述启动设备电源并切换当前的待机状态至工作状态的步骤之后,还包括:In some embodiments, after the step of turning on the power of the device and switching the current standby state to the working state, the method further includes:
在检测到蓝牙连接断开时,切断当前的设备电源。When it detects that the Bluetooth connection is disconnected, the current device power is turned off.
在一些实施方式中,所述在检测到蓝牙连接断开时,切换当前的设备电源的步骤,还包括:In some embodiments, the step of switching the current device power when it is detected that the Bluetooth connection is disconnected further includes:
切换当前的工作模式至待机模式。Switch the current working mode to standby mode.
在一些实施方式中,所述在检测到蓝牙连接断开时,切断当前的设备电源的步骤,还包括:In some embodiments, the step of cutting off the power of the current device when the Bluetooth connection is detected to be disconnected further includes:
统计所述蓝牙连接断开的断开时间,并在确认所述断开时间大于预设时间时,执行切断当前的设备电源的步骤。Count the disconnection time of the Bluetooth connection disconnection, and when it is confirmed that the disconnection time is greater than the preset time, perform the step of cutting off the power of the current device.
在一些实施方式中,所述统计所述蓝牙连接断开的断开时间,并在确认所述断开时间大于预设时间时,执行切断当前的设备电源的步骤,还包括:In some embodiments, the counting of the disconnection time of the Bluetooth connection is disconnected, and when it is confirmed that the disconnection time is greater than a preset time, the step of cutting off the power of the current device is performed, further including:
获取预设时间,将统计到的所述断开时间与所述预设时间比对;Obtaining a preset time, and comparing the statistical disconnected time with the preset time;
在确认所述断开时间大于预设时间时,执行切断当前的设备电源的步骤。When it is confirmed that the disconnection time is greater than the preset time, the step of cutting off the power of the current device is performed.
此外,为实现上述目的,本申请还提供一种蓝牙设备,所述蓝牙设备包括:In addition, to achieve the above purpose, the present application also provides a Bluetooth device, the Bluetooth device includes:
检测模块,用于发起蓝牙设备检测指令,以检测当前是否有待配对蓝牙设备;The detection module is used to initiate a Bluetooth device detection instruction to detect whether there is currently a Bluetooth device to be paired;
连接模块,用于在接收到待配对蓝牙设备的响应信息时,与所述待配对蓝牙设备建立蓝牙连接;The connection module is used to establish a Bluetooth connection with the Bluetooth device to be paired when receiving the response information of the Bluetooth device to be paired;
控制模块,用于启动设备电源并切换当前的待机模式至工作模式。The control module is used to start the power supply of the device and switch the current standby mode to the working mode.
本申请还提供一种基于蓝牙连接的模式切换装置,所述基于蓝牙连接的模式切换装置包括:The present application also provides a mode switching device based on Bluetooth connection. The mode switching device based on Bluetooth connection includes:
检测模块,用于发起蓝牙设备检测指令,以检测当前是否有待配对蓝牙设备;The detection module is used to initiate a Bluetooth device detection instruction to detect whether there is currently a Bluetooth device to be paired;
连接模块,用于在接收到待配对蓝牙设备的响应信息时,与所述待配对蓝牙设备建立蓝牙连接;The connection module is used to establish a Bluetooth connection with the Bluetooth device to be paired when receiving the response information of the Bluetooth device to be paired;
控制模块,用于启动设备电源并切换当前的待机模式至工作模式。The control module is used to start the power supply of the device and switch the current standby mode to the working mode.
本申请还提供一种基于蓝牙连接的模式切换系统,所述基于蓝牙连接的模式切换系统包括:The present application also provides a mode switching system based on Bluetooth connection. The mode switching system based on Bluetooth connection includes:
发起蓝牙设备检测指令,以检测当前是否有待配对蓝牙设备;Initiate Bluetooth device detection instruction to detect whether there is currently a Bluetooth device to be paired;
在接收到待配对蓝牙设备的响应信息时,与所述待配对蓝牙设备建立蓝牙连接;When receiving the response information of the Bluetooth device to be paired, establish a Bluetooth connection with the Bluetooth device to be paired;
启动设备电源并切换当前的待机模式至工作模式。Turn on the power of the device and switch the current standby mode to the working mode.
本申请实施例提出的一种基于蓝牙连接的模式切换方法,基于当前的待机模式保证蓝牙模块工作,以发起蓝牙设备检测指令,检测当前是否有待配对蓝牙设备;在接收到待配对蓝牙设备的响应信息时,与所述待配对蓝牙设备建立蓝牙连接;启动设备电源并切换当前的待机模式至工作模式。通过当前的待机模式的运行发起蓝牙设备检测指令以检测待配置蓝牙设备,并在与待配对蓝牙设备建立蓝牙连接后启动设备基于蓝牙连接的模式切换至工作模式,相比工作模式,待机模式并不需要太多的电量,因此通过蓝牙连接状态切换工作模式,实现了降低能耗的有益效果。A mode switching method based on a Bluetooth connection provided by an embodiment of the present application, based on the current standby mode to ensure that the Bluetooth module works, to initiate a Bluetooth device detection command to detect whether there is currently a Bluetooth device to be paired; When information is available, establish a Bluetooth connection with the Bluetooth device to be paired; turn on the power of the device and switch the current standby mode to the working mode. Initiate the Bluetooth device detection command through the current standby mode operation to detect the Bluetooth device to be configured, and start the device to switch to the working mode based on the Bluetooth connection mode after establishing the Bluetooth connection with the Bluetooth device to be paired. Not much power is needed, so the working mode is switched through the Bluetooth connection state, which achieves the beneficial effect of reducing energy consumption.
附图说明BRIEF DESCRIPTION
图1是本申请实施例方案涉及的硬件运行环境的终端\装置结构示意图;FIG. 1 is a schematic diagram of a terminal \ device structure of a hardware operating environment involved in an embodiment of the present application;
图2为本申请基于蓝牙连接的模式切换方法第一实施例的流程示意图。FIG. 2 is a schematic flowchart of a first embodiment of a method for mode switching based on Bluetooth connection of the present application.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional characteristics and advantages of the present application will be further described in conjunction with the embodiments and with reference to the drawings.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described herein are only used to explain the present application, and are not used to limit the present application.
本申请实施例的主要解决方案是:发起蓝牙设备检测指令,以检测当前是否有待配对蓝牙设备;在接收到待配对蓝牙设备的响应信息时,与所述待配对蓝牙设备建立蓝牙连接;启动设备电源并切换当前的待机模式至工作模式。The main solution of the embodiments of the present application is to initiate a Bluetooth device detection instruction to detect whether there is currently a Bluetooth device to be paired; upon receiving the response information of the Bluetooth device to be paired, establish a Bluetooth connection with the Bluetooth device to be paired; Power supply and switch the current standby mode to working mode.
由于目前家庭中越来越多的智能设备出现,如智能电视、音箱、路由等,这些设备在提供完整功能的同时也造成启动时需要较长的时间,当用户想随时使用时十分不便,因此许多设备一但接上电源就不再关机,也一定程度增加设备损耗及耗电量。Since more and more smart devices appear in the family at present, such as smart TVs, speakers, routers, etc., these devices provide full functions and also cause a long time to start, which is very inconvenient when users want to use at any time, so many Once the device is connected to the power supply, it will not shut down, which will increase the loss and power consumption of the device to a certain extent.
本申请提供一种解决方案,通过当前的待机模式的运行发起蓝牙设备检测指令以检测待配置蓝牙设备,并在与待配对蓝牙设备建立蓝牙连接后启动设备基于蓝牙连接的模式切换至工作模式,相比工作模式,待机模式并不需要太多的电量,因此通过蓝牙连接状态切换工作模式,实现了降低能耗的有益效果。This application provides a solution to initiate a Bluetooth device detection instruction through the current standby mode operation to detect the Bluetooth device to be configured, and after establishing a Bluetooth connection with the Bluetooth device to be paired, start the device to switch to the working mode based on the Bluetooth connection mode, Compared with the working mode, the standby mode does not require much power, so switching the working mode through the Bluetooth connection state achieves the beneficial effect of reducing energy consumption.
如图1所示,图1是本申请实施例方案涉及的硬件运行环境的终端结构示意图。As shown in FIG. 1, FIG. 1 is a schematic diagram of a terminal structure of a hardware operating environment involved in a solution of an embodiment of the present application.
本申请实施例终端可以是PC,也可以是智能手机、平板电脑、电子书阅读器,便携计算机等具有蓝牙功能的可移动式或不可移动式终端设备。In this embodiment of the present application, the terminal may be a PC, or may be a mobile or non-removable terminal device with Bluetooth function, such as a smart phone, a tablet computer, an e-book reader, and a portable computer.
如图1所示,该终端可以包括:处理器1001,例如CPU,网络接口1004,用户接口1003,存储器1005,通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in FIG. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to implement connection communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as disk storage. The memory 1005 may optionally be a storage device independent of the foregoing processor 1001.
本领域技术人员可以理解,图1中示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。A person skilled in the art may understand that the terminal structure shown in FIG. 1 does not constitute a limitation on the terminal, and may include more or less components than those shown in the figure, or a combination of certain components, or a different component arrangement.
如图1所示,作为一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及基于蓝牙连接的模式切换应用程序。As shown in FIG. 1, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a mode switching application program based on a Bluetooth connection.
在图1所示的终端中,网络接口1004主要用于连接后台服务器,与后台服务器进行数据通信;用户接口1003主要用于连接客户端(用户端),与客户端进行数据通信;而处理器1001可以用于调用存储器1005中存储的基于蓝牙连接的模式切换应用程序,并执行以下操作:In the terminal shown in FIG. 1, the network interface 1004 is mainly used to connect to the background server and perform data communication with the background server; the user interface 1003 is mainly used to connect to the client (user side) and perform data communication with the client; and the processor 1001 can be used to call the Bluetooth-based mode switching application stored in the memory 1005 and perform the following operations:
发起蓝牙设备检测指令,以检测当前是否有待配对蓝牙设备;Initiate Bluetooth device detection instruction to detect whether there is currently a Bluetooth device to be paired;
在接收到待配对蓝牙设备的响应信息时,与所述待配对蓝牙设备建立蓝牙连接;When receiving the response information of the Bluetooth device to be paired, establish a Bluetooth connection with the Bluetooth device to be paired;
启动设备电源并切换当前的待机模式至工作模式。Turn on the power of the device and switch the current standby mode to the working mode.
进一步地,处理器1001可以调用存储器1005中存储的基于蓝牙连接的模式切换应用程序,还执行以下操作:Further, the processor 1001 may call the Bluetooth connection-based mode switching application stored in the memory 1005, and also perform the following operations:
读取所述待配对蓝牙设备的设备信息,以确认所述待配对蓝牙设备是否可连接;Reading device information of the Bluetooth device to be paired to confirm whether the Bluetooth device to be paired can be connected;
在确认所述待配对蓝牙设备可连接时,与所述待配对蓝牙设备建立蓝牙连接。When it is confirmed that the Bluetooth device to be paired can be connected, a Bluetooth connection is established with the Bluetooth device to be paired.
进一步地,处理器1001可以调用存储器1005中存储的基于蓝牙连接的模式切换应用程序,还执行以下操作:Further, the processor 1001 may call the Bluetooth connection-based mode switching application stored in the memory 1005, and also perform the following operations:
在确认所述待配对蓝牙设备不可连接时,保持当前的待机模式不变。When confirming that the Bluetooth device to be paired is not connectable, the current standby mode is maintained.
进一步地,处理器1001可以调用存储器1005中存储的基于蓝牙连接的模式切换应用程序,还执行以下操作:Further, the processor 1001 may call the Bluetooth connection-based mode switching application stored in the memory 1005, and also perform the following operations:
根据读取到的待配对蓝牙设备的设备信息,确认所述待配对蓝牙设备是否有历史连接记录;According to the read device information of the Bluetooth device to be paired, confirm whether the Bluetooth device to be paired has a historical connection record;
在确认所述待配对蓝牙设备有历史连接记录时,确认所述待配对蓝牙设备可连接。When it is confirmed that the Bluetooth device to be paired has a historical connection record, it is confirmed that the Bluetooth device to be paired can be connected.
进一步地,处理器1001可以调用存储器1005中存储的基于蓝牙连接的模式切换应用程序,还执行以下操作:Further, the processor 1001 may call the Bluetooth connection-based mode switching application stored in the memory 1005, and also perform the following operations:
在检测到蓝牙连接断开时,切断当前的设备电源;When it detects that the Bluetooth connection is disconnected, cut off the current device power;
并切换当前的工作模式至待机模式。And switch the current working mode to standby mode.
进一步地,处理器1001可以调用存储器1005中存储的基于蓝牙连接的模式切换应用程序,还执行以下操作:Further, the processor 1001 may call the Bluetooth connection-based mode switching application stored in the memory 1005, and also perform the following operations:
统计所述蓝牙连接断开的断开时间,并在确认所述断开时间大于预设时间时,执行切断当前的设备电源的步骤。Count the disconnection time of the Bluetooth connection disconnection, and when it is confirmed that the disconnection time is greater than the preset time, perform the step of cutting off the power of the current device.
参照图2,图2为本申请基于蓝牙连接的模式切换方法第一实施例的流程示意图,所述基于蓝牙连接的模式切换方法包括:Referring to FIG. 2, FIG. 2 is a schematic flowchart of a first embodiment of a method for mode switching based on Bluetooth connection of the present application. The method for mode switching based on Bluetooth connection includes:
步骤S10,发起蓝牙设备检测指令,以检测当前是否有待配对蓝牙设备;Step S10: Initiate a Bluetooth device detection instruction to detect whether there is currently a Bluetooth device to be paired;
在当前蓝牙设备在没有蓝牙连接时,即所述蓝牙设备没有对应的待配对蓝牙设备进行蓝牙连接时,进入待机状态。所述蓝牙设备的待机模式在运行时,会切断设备电源,通过所述蓝牙设备的剩余电源支持所述蓝牙设备的待机模式运行。所述蓝牙设备在待机模式运行时仅仅支持蓝牙模块启动,以预设的时间周期发出待配对蓝牙设备的检测信号。通过发出的蓝牙设备检测信号确认附近有没有可配对的待配对蓝牙设备,以实现蓝牙连接操作。When the current Bluetooth device does not have a Bluetooth connection, that is, the Bluetooth device does not have a corresponding Bluetooth device to be paired for Bluetooth connection, it enters a standby state. When the standby mode of the Bluetooth device is in operation, the power supply of the device is cut off, and the remaining power supply of the Bluetooth device supports the operation of the Bluetooth device in the standby mode. The Bluetooth device only supports the activation of the Bluetooth module in the standby mode, and sends out a detection signal of the Bluetooth device to be paired in a preset time period. Confirm whether there is a Bluetooth device to be paired nearby by the detection signal of the Bluetooth device sent out, so as to realize the Bluetooth connection operation.
步骤S20,在接收到待配对蓝牙设备的响应信息时,与所述待配对蓝牙设备建立蓝牙连接;Step S20, when receiving the response information of the Bluetooth device to be paired, establishing a Bluetooth connection with the Bluetooth device to be paired;
根据发起的蓝牙设备的检测指令,若所述蓝牙设备的检测指令的检测范围内有待配对蓝牙设备时,所述待配对蓝牙设备在接收到的所述蓝牙设备的检测指令时,返回响应信息。接收待配对蓝牙设备的响应信息,并根据所述相应信息与所述待配对蓝牙设备建立蓝牙连接。所述蓝牙连接的操作为现有的蓝牙连接操作,在此不多赘述。另外,在建立与所述待配对蓝牙设备的蓝牙连接时,确认所述待配对蓝牙设备是否允许连接,即所述在接收到待配对蓝牙设备的响应信息时,与所述待配对蓝牙设备建立蓝牙连接的步骤,包括:According to the initiated Bluetooth device detection instruction, if there is a Bluetooth device to be paired within the detection range of the Bluetooth device detection instruction, the Bluetooth device to be paired returns response information when receiving the Bluetooth device detection instruction. Receiving the response information of the Bluetooth device to be paired, and establishing a Bluetooth connection with the Bluetooth device to be paired according to the corresponding information. The operation of the Bluetooth connection is an existing Bluetooth connection operation, which will not be repeated here. In addition, when establishing a Bluetooth connection with the Bluetooth device to be paired, it is confirmed whether the Bluetooth device to be paired is allowed to connect, that is, when the response information of the Bluetooth device to be paired is received, the Bluetooth device to be paired is established with the Bluetooth device to be paired The steps of Bluetooth connection include:
读取所述待配对蓝牙设备的设备信息,以确认所述待配对蓝牙设备是否可连接;Reading device information of the Bluetooth device to be paired to confirm whether the Bluetooth device to be paired can be connected;
在确认所述待配对蓝牙设备可连接时,与所述待配对蓝牙设备建立蓝牙连接。When it is confirmed that the Bluetooth device to be paired can be connected, a Bluetooth connection is established with the Bluetooth device to be paired.
读取所述待配对蓝牙设备的设备信息,所述设备信息包括设备ID、网络ID等相关的与蓝牙连接相关的设备信息。根据读取到的设备信息确认所述待配对蓝牙设备是否可实现蓝牙连接操作。其具体的确认待配对蓝牙设备是否可实现蓝牙连接的操作,与所述待配对蓝牙设备的蓝牙设置相关,所述蓝牙设置包括连接密码、配对限制等功能,具体的与设备功能设定相关。而在实际应用中,不考虑蓝牙设置的蓝牙连接操作,主要与历史连接记录相关。因此,所述读取所述待配对蓝牙设备的设备信息,以确认所述待配对蓝牙设备是否可连接的步骤,还包括:Read device information of the Bluetooth device to be paired, where the device information includes device information related to Bluetooth connection, such as a device ID, a network ID, and the like. Confirm whether the Bluetooth device to be paired can implement the Bluetooth connection operation according to the read device information. It specifically confirms whether the Bluetooth device to be paired can realize the operation of Bluetooth connection, which is related to the Bluetooth setting of the Bluetooth device to be paired, and the Bluetooth setting includes connection password, pairing restriction and other functions, and is specifically related to the device function setting. In practical applications, the Bluetooth connection operation regardless of the Bluetooth settings is mainly related to the historical connection records. Therefore, the step of reading the device information of the Bluetooth device to be paired to confirm whether the Bluetooth device to be paired can be connected further includes:
根据读取到的待配对蓝牙设备的设备信息,确认所述待配对蓝牙设备是否有历史连接记录;According to the read device information of the Bluetooth device to be paired, confirm whether the Bluetooth device to be paired has a historical connection record;
在确认所述待配对蓝牙设备有历史连接记录时,确认所述待配对蓝牙设备可连接。When it is confirmed that the Bluetooth device to be paired has a historical connection record, it is confirmed that the Bluetooth device to be paired can be connected.
根据所述待配对蓝牙设备的设备信息,确认当前蓝牙设备中是否有与所述待配对蓝牙设备的设备信息一致的历史连接记录信息。所述历史连接记录可能存储在当前蓝牙设备的历史连接记录的对应存储区域中,其确认方式是将所述待配对蓝牙设备的设备信息与已存储的历史连接记录进行一一比对,在确认已存储的历史连接记录中有与所述待配对蓝牙设备的设备信息一致的历史连接记录时,确认所述待配对蓝牙设备可连接。According to the device information of the Bluetooth device to be paired, confirm whether there is historical connection record information in the current Bluetooth device that is consistent with the device information of the Bluetooth device to be paired. The historical connection record may be stored in the corresponding storage area of the historical connection record of the current Bluetooth device. The confirmation method is to compare the device information of the Bluetooth device to be paired with the stored historical connection record one by one. When there is a history connection record in the stored history connection record that is consistent with the device information of the Bluetooth device to be paired, it is confirmed that the Bluetooth device to be paired can be connected.
如此,在确认接收到的响应信息的对应待配对蓝牙设备可连接时,建立与所述待配对蓝牙设备的蓝牙连接。In this way, when it is confirmed that the corresponding Bluetooth device to be paired of the received response information can be connected, a Bluetooth connection with the Bluetooth device to be paired is established.
另外,所述确认与所述待配对蓝牙设备是否有历史连接记录的步骤之后,还包括:In addition, after the step of confirming whether there is a historical connection record with the Bluetooth device to be paired, it also includes:
在确认所述待配对蓝牙设备不可连接时,保持当前的待机模式不变。When confirming that the Bluetooth device to be paired is not connectable, the current standby mode is maintained.
在确认所述待配对蓝牙设备不可连接时,即所述待配对蓝牙设备不允许蓝牙连接或者所述待配对蓝牙设备没有历史连接记录时,确认所述待配对蓝牙设备不可连接,保持当前蓝牙设备的待机模式不变,并持续以预设周期发起蓝牙设备检测指令,以重新发现可连接的待配对蓝牙设备。When confirming that the Bluetooth device to be paired is not connectable, that is, when the Bluetooth device to be paired does not allow Bluetooth connection or the Bluetooth device to be paired has no historical connection record, confirm that the Bluetooth device to be paired is not connectable, and keep the current Bluetooth device The standby mode remains unchanged and continues to initiate Bluetooth device detection instructions at a preset cycle to rediscover the connectable Bluetooth device to be paired.
步骤S30,启动设备电源并切换当前的待机模式至工作模式。In step S30, the device power is turned on and the current standby mode is switched to the working mode.
根据当前的蓝牙连接,启动当前蓝牙设备的设备电源并切换当前运行的待机模式至工作模式,以基于当前的蓝牙操作执行设备应用操作。According to the current Bluetooth connection, the device power of the current Bluetooth device is activated and the currently running standby mode is switched to the working mode to execute the device application operation based on the current Bluetooth operation.
进一步的,基于当前的蓝牙连接以及连接的待配对蓝牙设备的蓝牙应用操作,所述启动设备电源并切换当前的待机状态至工作状态的步骤之后,还包括:Further, based on the current Bluetooth connection and the operation of the Bluetooth application of the connected Bluetooth device to be paired, the step of starting the power of the device and switching the current standby state to the working state further includes:
在检测到蓝牙连接断开时,切断当前的设备电源;When it detects that the Bluetooth connection is disconnected, cut off the current device power;
并切换当前的工作模式至待机模式。And switch the current working mode to standby mode.
基于当前的蓝牙连接,在检测到蓝牙连接断开时。为降低能耗,切断当前蓝牙设备的设备电源,并切换当前蓝牙设备的工作模式至待机模式,使得当前蓝牙设备处于低能耗的状态下运行,并通过支持的蓝牙模块运行发起蓝牙设备检测指令。进一步的,基于蓝牙连接的连接状况,为避免蓝牙连接在非正常的状态下断开影响用户使用,通过记录蓝牙连接断开的断开时间确定是否要切换至待机模式运行,即所述在检测到蓝牙连接断开时,切断当前的设备电源的步骤,还包括:Based on the current Bluetooth connection, when it is detected that the Bluetooth connection is disconnected. In order to reduce energy consumption, the power supply of the current Bluetooth device is cut off, and the working mode of the current Bluetooth device is switched to the standby mode, so that the current Bluetooth device operates in a state of low energy consumption, and the Bluetooth device detection instruction is initiated through the operation of the supported Bluetooth module. Further, based on the connection status of the Bluetooth connection, in order to prevent the Bluetooth connection from being disconnected in an abnormal state and affecting the user's use, it is determined whether to switch to the standby mode operation by recording the disconnection time of the Bluetooth connection is disconnected. When the Bluetooth connection is disconnected, the steps to power off the current device also include:
统计所述蓝牙连接断开的断开时间,并在确认所述断开时间大于预设时间时,执行切断当前的设备电源的步骤。Count the disconnection time of the Bluetooth connection disconnection, and when it is confirmed that the disconnection time is greater than the preset time, perform the step of cutting off the power of the current device.
在检测到蓝牙连接断开时,记录所述蓝牙连接断开的断开时间。并将记录到的断开时间与预设时间比对,根据比对结果确认当前蓝牙设备是否要切换至待机模式,所述预设时间为已定义的蓝牙断开上限时间,其具体的设置可根据当前蓝牙设备的蓝牙连接端口或者设备信息设定对应的预设时间,以便更精准的定义蓝牙连接及断开的时间。在确认记录到的所述断开时间大于所述预设时间时,确认当前的蓝牙断开操作为正常断开,为降低当前蓝牙设备的能耗,切换当前运行的工作模式至待机模式。When it is detected that the Bluetooth connection is disconnected, the disconnection time of the Bluetooth connection is recorded. Compare the recorded disconnection time with the preset time, and confirm whether the current Bluetooth device is to be switched to the standby mode according to the comparison result. The preset time is a defined Bluetooth disconnection upper limit time, and its specific setting can be Set the corresponding preset time according to the Bluetooth connection port or device information of the current Bluetooth device, so as to more accurately define the time of Bluetooth connection and disconnection. When it is confirmed that the recorded disconnection time is greater than the preset time, it is confirmed that the current Bluetooth disconnection operation is a normal disconnection, and in order to reduce the energy consumption of the current Bluetooth device, the currently running working mode is switched to the standby mode.
本实施例中,通过当前的待机模式的运行发起蓝牙设备检测指令以检测待配置蓝牙设备,并在与待配对蓝牙设备建立蓝牙连接后启动设备基于蓝牙连接的模式切换至工作模式,相比工作模式,待机模式并不需要太多的电量,因此通过蓝牙连接状态切换工作模式,实现了降低能耗的有益效果。In this embodiment, the Bluetooth device detection instruction is initiated through the operation of the current standby mode to detect the Bluetooth device to be configured, and after the Bluetooth connection is established with the Bluetooth device to be paired, the device is started to switch to the working mode based on the Bluetooth connection mode, compared to working Mode, standby mode does not require too much power, so switching the working mode through the Bluetooth connection state achieves the beneficial effect of reducing energy consumption.
本申请还提供一种基于蓝牙连接的模式切换系统,所述基于蓝牙连接的模式切换系统在运行时实现如上所述的基于蓝牙连接的模式切换方法的实施例的内容。The present application also provides a Bluetooth connection-based mode switching system that implements the content of an embodiment of the Bluetooth connection-based mode switching method described above during operation.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、药品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、药品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、药品或者系统中还存在另外的相同要素。It should be noted that in this article, the terms "include", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, drug or system that includes a series of elements includes not only those elements, It also includes other elements that are not explicitly listed, or include elements inherent to this process, method, drug, or system. In the absence of more restrictions, the element defined by the sentence "include one ..." does not exclude that there are other identical elements in the process, method, drug, or system that includes the element.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The sequence numbers of the above embodiments of the present application are for description only, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods in the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware, but in many cases the former is better Implementation. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or part that contributes to the existing technology, and the computer software product is stored in a storage medium (such as ROM / RAM) as described above , Magnetic disks, optical disks), including several instructions to enable a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to perform the method described in each embodiment of the present application.
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only the preferred embodiments of the present application, and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made by the description and drawings of this application, or directly or indirectly used in other related technical fields , The same reason is included in the scope of patent protection of this application.

Claims (20)

  1. 一种基于蓝牙连接的模式切换方法,其中,所述基于蓝牙连接的模式切换方法包括以下步骤: A mode switching method based on Bluetooth connection, wherein the mode switching method based on Bluetooth connection includes the following steps:
    发起蓝牙设备检测指令,以检测当前是否有待配对蓝牙设备;Initiate Bluetooth device detection instruction to detect whether there is currently a Bluetooth device to be paired;
    在接收到待配对蓝牙设备的响应信息时,与所述待配对蓝牙设备建立蓝牙连接;When receiving the response information of the Bluetooth device to be paired, establish a Bluetooth connection with the Bluetooth device to be paired;
    启动设备电源并切换当前的待机模式至工作模式。Turn on the power of the device and switch the current standby mode to the working mode.
  2. 如权利要求1所述的基于蓝牙连接的模式切换方法,其中,所述待配对蓝牙设备为待机状态。The method for switching modes based on Bluetooth connection according to claim 1, wherein the Bluetooth device to be paired is in a standby state.
  3. 如权利要求1所述的基于蓝牙连接的模式切换方法,其中,所述发起蓝牙设备检测指令,以检测当前是否有待配对蓝牙设备的步骤,还包括:The method for switching modes based on Bluetooth connection according to claim 1, wherein the step of initiating a Bluetooth device detection instruction to detect whether there is currently a Bluetooth device to be paired further comprises:
    启动蓝牙模块,执行发起蓝牙设备检测指令的步骤。Activate the Bluetooth module and execute the steps of initiating the Bluetooth device detection instruction.
  4. 如权利要求1所述的基于蓝牙连接的模式切换方法,其中,所述发起蓝牙设备检测指令,以检测当前是否有待配对蓝牙设备的步骤,还包括:The method for switching modes based on Bluetooth connection according to claim 1, wherein the step of initiating a Bluetooth device detection instruction to detect whether there is currently a Bluetooth device to be paired further comprises:
    确认当前时间是否在预设的时间周期内;Confirm whether the current time is within the preset time period;
    在确认所述当前时间为预设的时间周期内时,执行发起蓝牙设备检测指令的步骤。When it is confirmed that the current time is within a preset time period, the step of initiating a Bluetooth device detection instruction is performed.
  5. 如权利要求1所述的基于蓝牙连接的模式切换方法,其中,所述在接收到待配对蓝牙设备的响应信息时,与所述待配对蓝牙设备建立蓝牙连接的步骤,包括:The method for switching modes based on a Bluetooth connection according to claim 1, wherein the step of establishing a Bluetooth connection with the Bluetooth device to be paired upon receiving the response information of the Bluetooth device to be paired includes:
    读取所述待配对蓝牙设备的设备信息,以确认所述待配对蓝牙设备是否可连接;Reading device information of the Bluetooth device to be paired to confirm whether the Bluetooth device to be paired can be connected;
    在确认所述待配对蓝牙设备可连接时,与所述待配对蓝牙设备建立蓝牙连接。When it is confirmed that the Bluetooth device to be paired can be connected, a Bluetooth connection is established with the Bluetooth device to be paired.
  6. 如权利要求5所述的基于蓝牙连接的模式切换方法,其中,所述读取所述待配对蓝牙设备的设备信息,以确认所述待配对蓝牙设备是否可连接的步骤,还包括:The method for switching modes based on Bluetooth connection according to claim 5, wherein the step of reading device information of the Bluetooth device to be paired to confirm whether the Bluetooth device to be paired is connectable, further comprising:
    在确认所述待配对蓝牙设备不可连接时,保持当前的待机模式不变。When confirming that the Bluetooth device to be paired is not connectable, the current standby mode is maintained.
  7. 如权利要求5所述的基于蓝牙连接的模式切换方法,其中,所述读取所述待配对蓝牙设备的设备信息,以确认所述待配对蓝牙设备是否可连接的步骤,还包括:The method for switching modes based on Bluetooth connection according to claim 5, wherein the step of reading device information of the Bluetooth device to be paired to confirm whether the Bluetooth device to be paired is connectable, further comprising:
    获取所述待配对蓝牙设备的蓝牙设置,读取所述待配对蓝牙设备的设置信息;Acquiring the Bluetooth settings of the Bluetooth device to be paired, and reading the setting information of the Bluetooth device to be paired;
    根据读取到的所述设置信息确认所述待配对蓝牙设备是否可连接。Confirm whether the Bluetooth device to be paired can be connected according to the read setting information.
  8. 如权利要求6所述的基于蓝牙连接的模式切换方法,其中,所述在确认所述待配对蓝牙设备不可连接时,保持当前的待机模式不变的步骤之后,还包括:The method for switching modes based on Bluetooth connection according to claim 6, wherein after the step of confirming that the Bluetooth device to be paired is not connectable, the step of keeping the current standby mode unchanged, further comprising:
    根据预设的时间周期发起蓝牙设备检测指令。The Bluetooth device detection instruction is initiated according to a preset time period.
  9. 如权利要求5所述的基于蓝牙连接的模式切换方法,其中,所述读取所述待配对蓝牙设备的设备信息,以确认所述待配对蓝牙设备是否可连接的步骤,还包括:The method for switching modes based on Bluetooth connection according to claim 5, wherein the step of reading device information of the Bluetooth device to be paired to confirm whether the Bluetooth device to be paired is connectable, further comprising:
    根据读取到的待配对蓝牙设备的设备信息,确认所述待配对蓝牙设备是否有历史连接记录;According to the read device information of the Bluetooth device to be paired, confirm whether the Bluetooth device to be paired has a historical connection record;
    在确认所述待配对蓝牙设备有历史连接记录时,确认所述待配对蓝牙设备可连接。When it is confirmed that the Bluetooth device to be paired has a historical connection record, it is confirmed that the Bluetooth device to be paired can be connected.
  10. 如权利要求9所述的基于蓝牙连接的模式切换方法,其中,所述根据读取到的待配对蓝牙设备的设备信息,确认所述待配对蓝牙设备是否有历史连接记录的步骤,还包括:The method for switching modes based on a Bluetooth connection according to claim 9, wherein the step of confirming whether the Bluetooth device to be paired has a historical connection record according to the read device information of the Bluetooth device to be paired further includes:
    在预设的历史连接记录存储区域中查找所述设备信息;Search for the device information in a preset historical connection record storage area;
    根据查找结果确认所述待配对蓝牙设备是否有历史连接记录。According to the search result, confirm whether the Bluetooth device to be paired has a historical connection record.
  11. 如权利要求10所述的基于蓝牙连接的模式切换方法,其中,所述在预设的历史连接记录存储区域中查找所述设备信息的步骤,还包括:The method for switching modes based on a Bluetooth connection according to claim 10, wherein the step of searching for the device information in a preset historical connection record storage area further comprises:
    将所述设备信息与所述预设的历史连接记录存储区域中存储的历史连接记录比对,根据比对结果确认所述待配对蓝牙设备是否存在历史连接记录。Comparing the device information with the historical connection records stored in the preset historical connection record storage area, and confirming whether there is a historical connection record for the Bluetooth device to be paired according to the comparison result.
  12. 如权利要求11所述的基于蓝牙连接的模式切换方法,其中,所述将所述设备信息与所述预设的历史连接记录存储区域中存储的历史连接记录比对,根据比对结果确认所述待配对蓝牙设备是否存在历史连接记录的步骤之后,还包括:The Bluetooth connection-based mode switching method according to claim 11, wherein the device information is compared with the historical connection records stored in the preset historical connection record storage area, and the results are confirmed according to the comparison result. After describing whether the Bluetooth device to be paired has a historical connection record, it also includes:
    读取所述历史连接记录,确认所述历史连接记录是否包含所述设备信息;Reading the historical connection record to confirm whether the historical connection record contains the device information;
    在确认所述历史连接记录包含所述设备信息时,确认所述待配对蓝牙设备存在历史连接记录。When it is confirmed that the historical connection record includes the device information, it is confirmed that there is a historical connection record of the Bluetooth device to be paired.
  13. 如权利要求12所述的基于蓝牙连接的模式切换方法,其中,所述读取所述历史连接记录,确认所述历史连接记录是否包含有所述设备信息的步骤,还包括:The method for switching modes based on a Bluetooth connection according to claim 12, wherein the step of reading the historical connection record to confirm whether the historical connection record contains the device information further comprises:
    在确认所述历史连接记录不包含所述设备信息时,确认所述待配对蓝牙设备不存在历史连接记录。When it is confirmed that the historical connection record does not include the device information, it is confirmed that there is no historical connection record of the Bluetooth device to be paired.
  14. 如权利要求1所述的基于蓝牙连接的模式切换方法,其中,所述启动设备电源并切换当前的待机状态至工作状态的步骤之后,还包括:The method for switching modes based on Bluetooth connection according to claim 1, wherein after the step of starting the power of the device and switching the current standby state to the working state, further comprising:
    在检测到蓝牙连接断开时,切断当前的设备电源。When it detects that the Bluetooth connection is disconnected, the current device power is turned off.
  15. 如权利要求14所述的基于蓝牙连接的模式切换方法,其中,所述在检测到蓝牙连接断开时,切换当前的设备电源的步骤,还包括:The method for switching modes based on a Bluetooth connection according to claim 14, wherein the step of switching the current device power when the Bluetooth connection is detected to be disconnected further comprises:
    切换当前的工作模式至待机模式。Switch the current working mode to standby mode.
  16. 如权利要求14所述的基于蓝牙连接的模式切换方法,其中,所述在检测到蓝牙连接断开时,切断当前的设备电源的步骤,还包括:The method for switching modes based on a Bluetooth connection according to claim 14, wherein the step of cutting off the power of the current device when the Bluetooth connection is detected to be disconnected further comprises:
    统计所述蓝牙连接断开的断开时间,并在确认所述断开时间大于预设时间时,执行切断当前的设备电源的步骤。Count the disconnection time of the Bluetooth connection disconnection, and when it is confirmed that the disconnection time is greater than the preset time, perform the step of cutting off the power of the current device.
  17. 如权利要求16所述的基于蓝牙连接的模式切换方法,其中,所述统计所述蓝牙连接断开的断开时间,并在确认所述断开时间大于预设时间时,执行切断当前的设备电源的步骤,还包括:The method for switching modes based on a Bluetooth connection according to claim 16, wherein the counting of the disconnection time of the Bluetooth connection is disconnected, and when it is confirmed that the disconnection time is greater than a preset time, the current device is cut The power supply steps also include:
    获取预设时间,将统计到的所述断开时间与所述预设时间比对;Obtaining a preset time, and comparing the statistical disconnected time with the preset time;
    在确认所述断开时间大于预设时间时,执行切断当前的设备电源的步骤。When it is confirmed that the disconnection time is greater than the preset time, the step of cutting off the power of the current device is performed.
  18. 一种蓝牙设备,其中,所述蓝牙设备包括:A Bluetooth device, wherein the Bluetooth device includes:
    检测模块,用于发起蓝牙设备检测指令,以检测当前是否有待配对蓝牙设备;The detection module is used to initiate a Bluetooth device detection instruction to detect whether there is currently a Bluetooth device to be paired;
    连接模块,用于在接收到待配对蓝牙设备的响应信息时,与所述待配对蓝牙设备建立蓝牙连接;The connection module is used to establish a Bluetooth connection with the Bluetooth device to be paired when receiving the response information of the Bluetooth device to be paired;
    控制模块,用于启动设备电源并切换当前的待机模式至工作模式。The control module is used to start the power supply of the device and switch the current standby mode to the working mode.
  19. 一种基于蓝牙连接的模式切换装置,其中,所述基于蓝牙连接的模式切换装置包括:A mode switching device based on Bluetooth connection, wherein the mode switching device based on Bluetooth connection includes:
    检测模块,用于发起蓝牙设备检测指令,以检测当前是否有待配对蓝牙设备;The detection module is used to initiate a Bluetooth device detection instruction to detect whether there is currently a Bluetooth device to be paired;
    连接模块,用于在接收到待配对蓝牙设备的响应信息时,与所述待配对蓝牙设备建立蓝牙连接;The connection module is used to establish a Bluetooth connection with the Bluetooth device to be paired when receiving the response information of the Bluetooth device to be paired;
    控制模块,用于启动设备电源并切换当前的待机模式至工作模式。The control module is used to start the power supply of the device and switch the current standby mode to the working mode.
  20. 一种基于蓝牙连接的模式切换系统,其中,所述基于蓝牙连接的模式切换系统包括:A mode switching system based on Bluetooth connection, wherein the mode switching system based on Bluetooth connection includes:
    发起蓝牙设备检测指令,以检测当前是否有待配对蓝牙设备;Initiate Bluetooth device detection instruction to detect whether there is currently a Bluetooth device to be paired;
    在接收到待配对蓝牙设备的响应信息时,与所述待配对蓝牙设备建立蓝牙连接;When receiving the response information of the Bluetooth device to be paired, establish a Bluetooth connection with the Bluetooth device to be paired;
    启动设备电源并切换当前的待机模式至工作模式。 Turn on the power of the device and switch the current standby mode to the working mode.
PCT/CN2019/111474 2018-10-16 2019-10-16 Bluetooth connection-based mode switching method, apparatus and system, and bluetooth device WO2020078383A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811207764.2 2018-10-16
CN201811207764.2A CN109286996A (en) 2018-10-16 2018-10-16 Mode switching method, bluetooth equipment, apparatus and system based on bluetooth connection

Publications (1)

Publication Number Publication Date
WO2020078383A1 true WO2020078383A1 (en) 2020-04-23

Family

ID=65177882

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/111474 WO2020078383A1 (en) 2018-10-16 2019-10-16 Bluetooth connection-based mode switching method, apparatus and system, and bluetooth device

Country Status (2)

Country Link
CN (1) CN109286996A (en)
WO (1) WO2020078383A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109286996A (en) * 2018-10-16 2019-01-29 深圳Tcl新技术有限公司 Mode switching method, bluetooth equipment, apparatus and system based on bluetooth connection
CN113630751B (en) * 2020-05-06 2023-10-20 成都鼎桥通信技术有限公司 Bluetooth using method and device based on dual systems

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105786157A (en) * 2016-03-04 2016-07-20 合肥联宝信息技术有限公司 Electronic device and control method thereof
CN107493595A (en) * 2017-08-23 2017-12-19 北京中电华大电子设计有限责任公司 A kind of low-power consumption safety certification device and control method
US20180020404A1 (en) * 2016-07-14 2018-01-18 Po-Kai Huang Wake-up packet backoff procedure
CN107613546A (en) * 2017-07-21 2018-01-19 青岛海信电器股份有限公司 BLE chips and its in specify element control method, Bluetooth Low Energy equipment
CN109286996A (en) * 2018-10-16 2019-01-29 深圳Tcl新技术有限公司 Mode switching method, bluetooth equipment, apparatus and system based on bluetooth connection

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102053686A (en) * 2009-11-04 2011-05-11 上海华博信息服务有限公司 Method for automatically controlling computer based on Bluetooth
CN102983890B (en) * 2012-11-14 2015-08-12 小米科技有限责任公司 A kind of method that device pairing connects and device
CN104244239A (en) * 2013-06-06 2014-12-24 中兴通讯股份有限公司 Mobile hotspot starting device, method and system
CN103746727B (en) * 2014-01-24 2016-05-04 宇龙计算机通信科技(深圳)有限公司 A kind of Bluetooth communication method and Bluetooth communication system
CN104540091A (en) * 2014-12-27 2015-04-22 深圳市中易腾达科技股份有限公司 Automatic pairing system and automatic pairing method based on bluetooth equipment
CN105911900A (en) * 2015-10-21 2016-08-31 乐卡汽车智能科技(北京)有限公司 Information processing system applied to vehicle-mounted system
CN105472776B (en) * 2015-11-17 2018-08-28 飞天诚信科技股份有限公司 A kind of method that establishing bluetooth connection and blue-tooth intelligence key devices
CN105516901B (en) * 2015-12-21 2019-01-04 飞天诚信科技股份有限公司 A kind of bluetooth low energy device and its working method
CN105406923B (en) * 2015-12-28 2018-07-17 惠州Tcl移动通信有限公司 A kind of Bluetooth interconnection method and system of mobile terminal
CN105744466B (en) * 2016-01-26 2019-04-26 Oppo广东移动通信有限公司 A kind of connection method of Bluetooth device and bluetooth equipment
CN106102129A (en) * 2016-05-23 2016-11-09 深圳Tcl数字技术有限公司 Connect the method and device of bluetooth equipment
CN106412909B (en) * 2016-10-19 2019-09-27 广东欧珀移动通信有限公司 A kind of method and device of equipment connection
CN106712811A (en) * 2016-11-29 2017-05-24 深圳天珑无线科技有限公司 Bluetooth connection method based on Hall switch and apparatus thereof
CN106973361A (en) * 2017-04-11 2017-07-21 成都步共享科技有限公司 A kind of method for managing power supply of shared bicycle intelligent bicycle lock
CN107770758A (en) * 2017-09-21 2018-03-06 深圳市汉普电子技术开发有限公司 The bluetooth of Baffle Box of Bluetooth returns even method, Baffle Box of Bluetooth and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105786157A (en) * 2016-03-04 2016-07-20 合肥联宝信息技术有限公司 Electronic device and control method thereof
US20180020404A1 (en) * 2016-07-14 2018-01-18 Po-Kai Huang Wake-up packet backoff procedure
CN107613546A (en) * 2017-07-21 2018-01-19 青岛海信电器股份有限公司 BLE chips and its in specify element control method, Bluetooth Low Energy equipment
CN107493595A (en) * 2017-08-23 2017-12-19 北京中电华大电子设计有限责任公司 A kind of low-power consumption safety certification device and control method
CN109286996A (en) * 2018-10-16 2019-01-29 深圳Tcl新技术有限公司 Mode switching method, bluetooth equipment, apparatus and system based on bluetooth connection

Also Published As

Publication number Publication date
CN109286996A (en) 2019-01-29

Similar Documents

Publication Publication Date Title
WO2020155360A1 (en) Network distribution method for household appliance, household appliance, mobile terminal and storage medium
WO2012016473A1 (en) Wireless fidelity access method, access point and wireless fidelity access system
WO2014200240A1 (en) Method and apparatus for registering wireless device in wireless communication system
WO2018214320A1 (en) Database service logic monitoring method and system, and storage medium
WO2021071032A1 (en) Device access control method and apparatus for internet of things
WO2020224246A1 (en) Block chain-based data management method and apparatus, device and storage medium
WO2018233352A1 (en) Data transmission method, device, terminal and computer-readable storage medium
WO2018076841A1 (en) Data sharing method, apparatus, storage medium and server
WO2017107561A1 (en) Method and system for event reminding based on multiple associated devices
WO2020199332A1 (en) Home appliance networking control method, module, control terminal, terminal, and medium
WO2018072567A1 (en) Emergency call-for-help method and system based on fingerprint identification for mobile terminal, and mobile terminal
WO2012100607A1 (en) Terminal desktop processing system, terminal, server and method
WO2016101441A1 (en) File synchronization method and system
WO2021042566A1 (en) Quick charging system and method for handheld device, and handheld device
WO2020078383A1 (en) Bluetooth connection-based mode switching method, apparatus and system, and bluetooth device
WO2018090465A1 (en) Video monitoring method and system, and monitoring device
WO2020007099A1 (en) Television terminal control method and device, and computer readable storage medium
WO2019161598A1 (en) Method, apparatus and device for interacting instant messaging with mail, and storage medium
WO2020019405A1 (en) Database monitoring method, device and apparatus, and computer storage medium
WO2016090775A1 (en) Synchronous operation method and system for short message data
WO2019233190A1 (en) Display terminal-based text-to-speech conversion method, display terminal, and storage medium
WO2020097995A1 (en) Electricity consumption amount monitoring method for household appliance, and air conditioner and storage medium
WO2016192589A1 (en) Information transmission method, apparatus and system
EP3763164A1 (en) Electronic device supporting multiple wireless communication protocols and method therefor
EP2666256A2 (en) Method and apparatus for phone communication using home network

Legal Events

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

Ref document number: 19874719

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19874719

Country of ref document: EP

Kind code of ref document: A1