[go: up one dir, main page]

CN106658365A - Communication method and apparatus based on low-loss Bluetooth protocol - Google Patents

Communication method and apparatus based on low-loss Bluetooth protocol Download PDF

Info

Publication number
CN106658365A
CN106658365A CN201611020876.8A CN201611020876A CN106658365A CN 106658365 A CN106658365 A CN 106658365A CN 201611020876 A CN201611020876 A CN 201611020876A CN 106658365 A CN106658365 A CN 106658365A
Authority
CN
China
Prior art keywords
terminal
message
low
power consumption
type
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.)
Pending
Application number
CN201611020876.8A
Other languages
Chinese (zh)
Inventor
李秀勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201611020876.8A priority Critical patent/CN106658365A/en
Publication of CN106658365A publication Critical patent/CN106658365A/en
Pending legal-status Critical Current

Links

Classifications

    • 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. Transmission Power Control [TPC] 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
    • 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

Landscapes

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

Abstract

The embodiments of the invention provide a communication method and apparatus based on a low-loss Bluetooth protocol. The method comprises the following steps: a first terminal, as a center device, when receiving a message, detecting state identification of a second terminal as a peripheral device; when the first terminal detects that the state identification is dormancy identification, identifying the type of the message; and the first terminal, according to a synchronization frequency corresponding to the type, sending the message to the second terminal through the low-loss Bluetooth protocol. According to the embodiments of the invention, the synchronization frequency is set based on the type of the message, immediate synchronization with the second terminal at a dormancy state each time when the message is received is avoided, the frequency of synchronization is reduced, the frequency of wakening the second terminal is reduced, and resource loss of the second terminal is reduced.

Description

A kind of communication means and device based on low-power consumption bluetooth agreement
Technical field
The present invention relates to communication technical field, more particularly to a kind of communication means based on low-power consumption bluetooth agreement and A kind of communicator based on low-power consumption bluetooth agreement.
Background technology
With the development of communication science and technology, the intelligent terminal such as mobile phone, bracelet, wrist-watch is in the work of people, study, daily The utilization rate also more and more higher of each side such as exchange.
With the progressively rise of wearable device, such as bracelet, wrist-watch etc., these wearable devices typically pass through Bluetooth protocol It is connected with other intelligent terminal (such as mobile phone) of user, carries out the synchronization of notification message and reporting for data.
Bluetooth protocol is divided into conventional Bluetooth agreement (also known as classical bluetooth, Classic Bluetooth) again and low-power consumption is blue Two kinds of tooth agreement (Bluetooth Low Energy, BLE).
Wherein, low-power consumption bluetooth agreement is widely available with its low power consumption levels, under low-power consumption bluetooth agreement, side end If end receives or generate message, by the message synchronization or another lateral terminal can be reported in real time, if opposite side terminal is in Resting state, continually synchronization or reporting message another lateral terminal can be caused continually to wake up, cause the resource of another lateral terminal Consuming increases.
For example, wrist-watch is connected by low-power consumption bluetooth agreement with mobile phone, there are two kinds of situations:
A kind of situation is, mobile phone is notified or during the message such as incoming call, by message synchronization to wrist-watch.
Another kind of situation is the message such as the exercise data that wrist-watch is produced, positional information, uploads to mobile phone terminal.
If wrist-watch is in a dormant state, certain application in mobile phone had a new notice every 10 seconds, then mobile phone will be every New notice was synchronized in wrist-watch by low-power consumption bluetooth agreement every 10 seconds, i.e., wrist-watch was waken up once every 10 seconds.
If mobile phone is in a dormant state, wrist-watch produced exercise data, a positional information per 1 second, then wrist-watch will be every Exercise data, positional information are reported to by mobile phone by low-power consumption bluetooth agreement every 1 second, i.e., every 1 second wake-up mobile phone once.
The content of the invention
In view of the above problems, it is in order to solve the problems, such as above-mentioned wake-up terminal frequent under low-power consumption bluetooth agreement, of the invention Embodiment proposes a kind of communication means based on low-power consumption bluetooth agreement and corresponding a kind of based on low-power consumption bluetooth agreement Communicator.
According to one aspect of the present invention, there is provided a kind of communication means based on low-power consumption bluetooth agreement, including:
First terminal when message is received, detects the state of the second terminal as ancillary equipment as central apparatus Mark;
First terminal recognizes the type of the message when it is dormancy identification to detect the status indicator;First terminal Sent to second terminal by low-power consumption bluetooth agreement according to the corresponding synchronizing frequency of the type, by the message.
Alternatively, include the step of the type of the identification message:
It is determined that receiving the application of the message;
Inquiry is described using corresponding tag along sort;
The type of the message is determined according to the tag along sort.
Alternatively, the type includes the first kind and Second Type;
The first terminal is sent out by low-power consumption bluetooth agreement according to the corresponding synchronizing frequency of the type, by the message The step of delivering to second terminal includes:
The message is cached a period of time when it is determined that the message belongs to the first kind by first terminal;
First terminal will belong to the message of the first kind by low work(when more than the time in the time period Consumption Bluetooth protocol is to transmission to second terminal;
First terminal will belong to the message of the Second Type by low work(when it is determined that the message belongs to Second Type Consumption Bluetooth protocol is sent to second terminal.
Alternatively, the first terminal is when it is determined that the message belongs to the first kind, when the message is cached one section Between the step of include:
First terminal when it is determined that the message belongs to the first kind stores the message for belonging to the first kind to slow Deposit in queue;
First terminal starts intervalometer, with timing for a period of time.
Alternatively, the first terminal will belong to the first kind in the time period when more than the time Message by low-power consumption bluetooth agreement to send to second terminal the step of include:
First terminal will belong to the message of the first kind at the end of the intervalometer timing in the buffer queue Sent to second terminal by low-power consumption bluetooth agreement;
First terminal cancels the intervalometer.
Alternatively, the first terminal, will by low-power consumption bluetooth agreement when it is determined that the message belongs to Second Type The step of message is sent to second terminal includes:
First terminal when it is determined that the message belongs to Second Type judges whether to be cached with and belongs to the first kind Message;
If so, then the message for belonging to the first kind, the message for belonging to the Second Type are passed through low by first terminal Power consumption Bluetooth protocol is together sent to second terminal.
Alternatively, when it is determined that the message belongs to Second Type, judge whether to be stored with belongs to institute to the first terminal The step of message for stating the first kind, includes:
First terminal when it is determined that the message belongs to Second Type judges whether to start intervalometer;
If, it is determined that it is cached with the message for belonging to the first kind.
Alternatively, the message for belonging to the first kind, the message for belonging to the Second Type are led to by the first terminal Crossing the step of low-power consumption Bluetooth protocol is together sent to second terminal includes:
The message for belonging to the first kind in buffer queue, the message for belonging to the Second Type are passed through by first terminal Low-power consumption bluetooth agreement is together sent to the second terminal as ancillary equipment;
First terminal cancels the intervalometer.
Alternatively, also include:
First terminal receives the dormancy identification that second terminal is sent when into resting state by low-power consumption bluetooth agreement;
The dormancy identification is recorded as first terminal the status indicator of second terminal;
And/or,
First terminal receives the activity mark that second terminal is sent when into active state by low-power consumption bluetooth agreement;
First terminal by the movable identification record for second terminal status indicator.
Alternatively, also include:
First terminal the status indicator for activity mark when, by the message by low-power consumption bluetooth agreement send to Second terminal.
According to a further aspect in the invention, there is provided a kind of communication means based on low-power consumption bluetooth agreement, including:
Second terminal when message is generated, detects the state mark of the first terminal as central apparatus as ancillary equipment Know;
The message is cached a period of time when it is dormancy identification to detect the status indicator by second terminal;
The message is sent to first terminal when more than the time by second terminal by low-power consumption bluetooth agreement.
Alternatively, it is described to include the step of the message is cached a period of time:
The message is stored into buffer queue;
Start intervalometer, with timing for a period of time.
Alternatively, the message is sent when more than the time by the second terminal by low-power consumption bluetooth agreement The step of to first terminal, includes:
Message in the buffer queue is assisted at the end of the intervalometer timing by second terminal by low-power consumption bluetooth View is sent to the first terminal as central apparatus;
Second terminal cancels the intervalometer.
Alternatively, also include:
Second terminal receives the dormancy identification that first terminal is sent when into resting state by low-power consumption bluetooth agreement;
The dormancy identification is recorded as second terminal the status indicator of first terminal;
And/or,
Second terminal receives the activity mark that first terminal is sent when into active state by low-power consumption bluetooth agreement;
Second terminal by the movable identification record for first terminal status indicator.
Alternatively, also include:
Second terminal the status indicator for activity mark when, by the message by low-power consumption bluetooth agreement send to First terminal.
According to a further aspect in the invention, there is provided a kind of communicator based on low-power consumption bluetooth agreement, apply In one terminal, described device includes:
Peripheral state detection module, for as central apparatus, when message is received, detects the as ancillary equipment The status indicator of two terminals;
Type of message identification module, for when it is dormancy identification to detect the status indicator, recognizing the message Type;
Peripheral message dormancy synchronization module, for passing through low according to the corresponding synchronizing frequency of the type, by the message Power consumption Bluetooth protocol is sent to second terminal.
Alternatively, the type of message identification module includes:
Using determination sub-module, for determining the application for receiving the message;
Tag along sort inquires about submodule, described using corresponding tag along sort for inquiring about;
Type of message determination sub-module, for the type of the message is determined according to the tag along sort.
Alternatively, the type includes the first kind and Second Type;The peripheral message dormancy synchronization module includes:
Central cache submodule, for when it is determined that the message belongs to the first kind, when the message is cached one section Between;
Middle heart septum sending submodule, for, when more than the time, the first kind will be belonged in the time period The message of type is by low-power consumption bluetooth agreement to transmission to second terminal;
The real-time sending submodule in center, for, when it is determined that the message belongs to Second Type, the Equations of The Second Kind will be belonged to The message of type is sent to second terminal by low-power consumption bluetooth agreement.
Alternatively, the central cache submodule includes:
Central cache queue storage location, for first terminal when it is determined that the message belongs to the first kind, will belong to The message of the first kind is stored into buffer queue;
Center intervalometer start unit, for starting intervalometer, with timing for a period of time.
Alternatively, the middle heart septum sending submodule includes:
Center timing transmitting element, it is described for, at the end of the intervalometer timing, will belong in the buffer queue The message of the first kind is sent to second terminal by low-power consumption bluetooth agreement;
First center intervalometer cancels unit, for cancelling the intervalometer.
Alternatively, the real-time sending submodule in the center includes:
Buffered message judging unit, belongs to for, when it is determined that the message belongs to Second Type, judging whether to be cached with The message of the first kind;If so, then call center collaboration transmitting element;
Center cooperates with transmitting element, for belonging to the message of the first kind, belonging to the message of the Second Type Together sent to second terminal by low-power consumption bluetooth agreement.
Alternatively, the buffered message judging unit includes:
Trigger starts judgment sub-unit, and for first terminal when it is determined that the message belongs to Second Type, judgement is No startup intervalometer;If so, then message call caches determination subelement;
Message caches determination subelement, is cached with the message for belonging to the first kind for determining.
Alternatively, the center collaboration transmitting element includes:
Center double-type sends subelement, for belonging to the message of the first kind in buffer queue, belonging to described The message of Second Type is together sent to second terminal by low-power consumption bluetooth agreement;
Second center intervalometer cancels subelement, for cancelling the intervalometer.
Alternatively, also include:
Peripheral dormancy identification receiver module, is entering resting state for receiving second terminal by low-power consumption bluetooth agreement When the dormancy identification that sends;
Peripheral resting state logging modle, for the dormancy identification to be recorded as the status indicator of second terminal;
And/or,
Peripheral activity mark receiver module, is entering active state for receiving second terminal by low-power consumption bluetooth agreement When send activity mark;
Peripheral active state logging modle, for by the movable identification record for second terminal status indicator.
Alternatively, also include:
Peripheral messaging activity synchronization module, for when the status indicator is identified for activity, by the message by low Power consumption Bluetooth protocol is sent to second terminal.
According to a further aspect in the invention, there is provided a kind of communicator based on low-power consumption bluetooth agreement, apply In two terminals, described device includes:
Center situation detection module, for as ancillary equipment, when message is generated, detects as the first of central apparatus The status indicator of terminal;
Peripheral cache module, for when it is dormancy identification to detect the status indicator, the message being cached one section Time;
Central Message dormancy reporting module, for, when more than the time, the message being assisted by low-power consumption bluetooth View is sent to first terminal.
Alternatively, the peripheral cache module includes:
Peripheral buffer queue sub-module stored, for when the status indicator is dormancy identification, the message being stored Into buffer queue;
Peripheral intervalometer starts submodule, for starting intervalometer, with timing for a period of time.
Alternatively, the Central Message dormancy reporting module includes:
Peripheral timing sending submodule, at the end of the intervalometer timing, by the message in the buffer queue Sent to first terminal by low-power consumption bluetooth agreement;
Peripheral intervalometer cancels submodule, for cancelling the intervalometer.
Alternatively, also include:
Center dormancy identification receiver module, is entering resting state for receiving first terminal by low-power consumption bluetooth agreement When the dormancy identification that sends;
Center resting state logging modle, for the dormancy identification to be recorded as the status indicator of first terminal;
And/or,
Central movable identifies receiver module, is entering active state for receiving first terminal by low-power consumption bluetooth agreement When send activity mark;
Central movable state recording module, for by the movable identification record for first terminal status indicator.
Alternatively, also include:
Central Message activity reporting module, for when the status indicator is identified for activity, by the message by low Power consumption Bluetooth protocol is sent to first terminal.
The embodiment of the present invention includes advantages below:
The communication of embodiment of the present invention application low-power consumption bluetooth agreement, centered on first terminal, equipment, second terminal are outer Peripheral equipment, first terminal detect the status indicator of second terminal, if the status indicator of second terminal is when message is received During dormancy identification, then first terminal recognize message type, according to the corresponding synchronizing frequency of the type, by the message by low work( Consumption Bluetooth protocol is sent to second terminal, and message based type flexibly arranges synchronizing frequency, it is to avoid receive message every time Just synchronize with second terminal in a dormant state immediately, reduce the synchronous frequency, second is waken up eventually so as to reduce The frequency at end, reduces the resource consumption of second terminal.
The communication of embodiment of the present invention application low-power consumption bluetooth agreement, centered on first terminal, equipment, second terminal are outer Peripheral equipment, second terminal detect the status indicator of first terminal when message is generated, if the status indicator of first terminal is for not Sleep and identify, then the message when more than the time, is passed through low-power consumption bluetooth agreement by message caching a period of time by second terminal Send to first terminal, by buffered message, it is to avoid it is each generate message just report to immediately in a dormant state first Terminal, reduces the synchronous frequency, so as to reduce the frequency for waking up first terminal, reduces the resource consumption of first terminal.
Description of the drawings
The step of Fig. 1 is a kind of communication means embodiment based on low-power consumption bluetooth agreement of present invention flow chart;
The step of Fig. 2 is communication means embodiment of the another kind of the present invention based on low-power consumption bluetooth agreement flow chart;
The step of Fig. 3 is communication means embodiment of the another kind of the present invention based on low-power consumption bluetooth agreement flow chart;
The step of Fig. 4 is communication means embodiment of the another kind of the present invention based on low-power consumption bluetooth agreement flow chart;
Fig. 5 is a kind of structured flowchart of communication device embodiment based on low-power consumption bluetooth agreement of the present invention;
Fig. 6 is structured flowchart of the another kind of the present invention based on the communication device embodiment of low-power consumption bluetooth agreement.
Specific embodiment
It is understandable to enable the above objects, features and advantages of the present invention to become apparent from, it is below in conjunction with the accompanying drawings and concrete real The present invention is further detailed explanation to apply mode.
In actual applications, smart machine extensively applies 4.0 standard of bluetooth, 4.0 standard of bluetooth to include two bluetooth standards, Accurately say, be the standard of a bimodulus, it includes conventional Bluetooth part (also having referred to as classical bluetooth) and low-power consumption bluetooth Part BLE.
The two parts are applied to different applications or application conditions, and conventional Bluetooth is the 1.0.1.2 before, 2.0+ Develop on the basis of EDR, 2.1+EDR, 3.0+EDR etc. and improve, low-power consumption bluetooth is developed in Wibree standards Come.
Conventional Bluetooth can be used for data volume than larger transmission, such as voice, music, the transmission of higher data amount etc..
Low-power consumption bluetooth can apply to that requirement of real-time is higher, but data rate is than relatively low product, such as remote control The mouse of class, keyboard, remote control mouse (Air Mouse), the heart beating band of the data is activation of sensing equipment, sphygomanometer, temperature sensing Device etc..
In BLE, the role of support has:
Broadcaster (BroadCaster) --- advertisement sender, is not attachable equipment
Observer (Observer) --- scanning advertisement, it is impossible to enough to start connection
Ancillary equipment (Peripheral) --- advertisement sender, is attachable equipment, when single link layer connects As a slave
Central apparatus (Center) --- scanning advertisement starts connection, when single or multilink layer connects as master Machine, supports that three connect simultaneously
Broadcaster (BroadCaster) is with observer Observer) pairing use can not set up connection.One application show Example is, temperature sensor and temperature indicator.
Central apparatus (Center) can be attached with ancillary equipment (Peripheral), initiate pairing (Pairing), After link is successfully established, double can be entered row data communication.The example of one application is, wrist-watch and mobile phone, bracelet and mobile phone.
The process of BLE connections is as follows:
1st, one advertisement of ancillary equipment (Peripheral) transmission allows any central apparatus (Center) to know ancillary equipment (Peripheral) it is an attachable equipment.
The content of advertisement can include device address, can also include some extra specified number evidences, such as device name, clothes Business ID etc..
2nd, after central apparatus (Center) receive advertisement, a searching request is sent to ancillary equipment (Peripheral), ancillary equipment (Peripheral) returns scanning and responds to central equipment (Center), such central equipment (Center) it is known that this is an attachable equipment.
3rd, central equipment (Center) can send a request for setting up connection and give ancillary equipment (Peripheral).Enter Row pairing connection, carries out bindings if necessary (connection can be by either one termination of slave or main frame).
Pairing (Pairing):Connection is set up, row data communication after the completion of pairing, can be entered.
Binding (Banding):Unpaired message is recorded, such as device address, avoided the need for again when so next time connects The process (quick to connect) of secondary pairing.
BLE does broadcast channel with 3 channels, it is allowed to which Millisecond quickly sets up connection, efficiency far above conventional Bluetooth 32 Individual channel fashion.
Conventional Bluetooth has 79 data channels, and channel spacing is 1MHz, and BLE has 40 data channels, and channel spacing is 2MHz。
The peak working load electric current of conventional Bluetooth is usually 35mA, and sleep state electric current is 0.01mA, and the peak working load of BLE Electric current is less than 15mA, and sleep state electric current is 0.004mA.
Before the communication mode of BLE is introduced, the technical specification in BLE is first introduced:
1、Profile
Profile can be understood as a kind of specification, and the communication protocol of a standard, Profile are present in ancillary equipment (Peripheral) in, a series of standard Profile of bluetooth organization prescribed, for example, HID OVERGATT, anti-loss device, the heart Rate meter etc., can include multiple Service in each Profile, each Service represents the one of ancillary equipment (Peripheral) The ability of kind.
2、Service
Service can be understood as a service, in ancillary equipment (Peripheral), generally have multiple Service, For example, information about power service, system information service etc., include multiple Characteristic features again inside each Service Value.Each Characteristic eigenvalue, is the main body of BLE communications, and such as, current electricity is 80%, by by electricity Characteristic eigenvalues be stored in the Profile of ancillary equipment (Peripheral), such central apparatus (Center) 80% this data just can be read by this Characteristic eigenvalue.
3、Characteristic
Characteristic eigenvalues can be understood as a label, can be obtained or be write by this label and be thought The content wanted, central apparatus (Center) pass through Characteristic eigenvalues with the communication of ancillary equipment (Peripheral) To realize.
4、UUID
UUID is to unify identification code, and Service and Characteristic is required for a unique UUID to identify.
The GAP (Generic Access Profile) and GATT (Generic defined in BLE protocol stacks Attribute) two basic configuration files.
GAP layers in protocol stack are responsible for equipment access module and process, including equipment finds, sets up connection, terminates connection, Initialization security feature and device configuration.
The data communication that GATT layers in protocol stack are used between the equipment for having connected.
Data communication in BLE protocol stacks is divided into two aspects, one be GATT client (clients, from service The equipment of device read/write data) actively number is sent to server (server needs the equipment of the data of read/write comprising client) According to another is that the server of GATT actively sends data to client.
Communication between central apparatus (Center) and ancillary equipment (Peripheral):
1st, central apparatus (Center) peripheral device (Peripheral) sends data:
Central apparatus (Center) can call GATT_WwrtiCharValue function peripheral devices (Peripheral) Data are sent, central apparatus (Center) play the part of the role of client in this case.
Inside GATT_WwrtiCharValue functions meeting invocation protocol stack, hardware-related function most lead at last by data Cross antenna to send, be related to the operation to radio-frequency module here, for example, open transmitter, adjust the transmission work(of transmitter The contents such as rate, these operations are realized in protocol stack.
In GATT_WwrtiCharValue functions, the data for sending are needed to be filled in value, data length filling To in len.
2nd, ancillary equipment (Peripheral) receives the data that central apparatus (Center) send:
Ancillary equipment (Peripheral) receives the data that central apparatus (Center) send, in this case ancillary equipment (Peripheral) play the part of the role of server.
Ancillary equipment (Peripheral) can produce a GATT Profile Callback and call, this Callback It is, as Profile is registered, to receive central apparatus in this Callback when ancillary equipment (Peripheral) is initialized (Center) data for sending.
3rd, ancillary equipment (Peripheral) sends data to central apparatus (Center):
Ancillary equipment (Peripheral) can call GATT_Notification functions to send out to central apparatus (Center) Data are sent, ancillary equipment (Peripheral) plays the part of the role of server in this case.
In GATT_Notification functions, the data for sending are needed to be filled in value, data length is filled into In len.
4th, central apparatus (Center) receive the data that ancillary equipment (Peripheral) sends:
Central apparatus (Center) receive the data that ancillary equipment (Peripheral) sends, in this case central apparatus (Center) play the part of the role of client.
Central apparatus (Center) appoint reading gattMsgEvent_t structures by the triggering of GATT_MSG_EVENT events In the corresponding Indication and Notification messages of msg realize data receiver.
With reference to Fig. 1, flow the step of a kind of communication means embodiment based on low-power consumption bluetooth agreement for showing the present invention Cheng Tu, specifically may include steps of:
Step 101, first terminal detect the second end as ancillary equipment as central apparatus when message is received The status indicator at end.
In embodiments of the present invention, first terminal (such as mobile phone, panel computer etc.) and second terminal (such as bracelet, wrist-watch etc.) Can be connected by BLE.
In BLE, equipment (Center) centered on first terminal, second terminal are ancillary equipment (Peripheral).
Same application is installed in first terminal with second terminal, such as immediate communication tool, note application, phone is answered With, mailbox client etc., the application probably due to terminal difference causes version different, but, the application can be in first terminal With same account, such as instant messaging account, telephone number, Email Accounts etc. are logged in second terminal.
Application in first terminal is main application, typically with external server direct interaction, receives corresponding message, Such as instant communication information, incoming call, note, Email, etc., and the application in second terminal is the application of subordinate, typically not With external server direct interaction, therefore, if user enables second terminal, can by the message received in first terminal, It is synchronized to second terminal.
In actual applications, a background service service can be started in first terminal, when answering in first terminal During with receiving the message such as applicative notifications, incoming call, note, the application can inform system other application by the form broadcasted, should Background service service can receive this broadcast, know the message for receiving.
If first terminal is receiving new message, the status indicator of second terminal can be detected, i.e., mark second is whole The information of end status, knows the state that second terminal is presently in.
Step 102, first terminal recognize the type of the message when it is dormancy identification to detect the status indicator.
Dormancy identification, index know second terminal information in a dormant state, such as " sleep ".
If it is dormancy identification that first terminal inquires the status indicator of second terminal, represent that second terminal is in dormancy shape State, to avoid continually waking up second terminal, then can carry out corresponding synchronization process according to the type of the message for receiving.
In one embodiment of the invention, step 102 can include following sub-step:
Sub-step S11, it is determined that receiving the application of the message;
Sub-step S12, inquires about described using corresponding tag along sort;
Sub-step S13, determines the type of the message according to the tag along sort.
In implementing, the type belonging to the message of certain application, can be that default, or user set Put, the embodiment of the present invention is not any limitation as to this.
In embodiments of the present invention, key words sorting can be carried out to application (can identify with bag name package name), Its tag along sort is recorded, if being truncated to the message of certain application, the tag along sort of the application can be inquired about, the message is entered The corresponding synchronization process of row.
Step 103, first terminal are assisted by low-power consumption bluetooth according to the corresponding synchronizing frequency of the type, by the message View is sent to second terminal.
In implementing, first terminal can inquire about different synchronizing frequencies, as according to the different type of message Related specifications of the heart equipment (Center) by BLE, send the message to second as ancillary equipment (Peripheral) Terminal.
Second terminal can be shown to message accordingly according to the different type of message.
In one embodiment of the invention, type includes the first kind and Second Type.
Wherein, the first kind is the relatively low type of message requirement of real-time, such as Email etc., and synchronizing frequency is relatively low, such as A period of time is synchronous once, and second terminal can be pointed out the message as similar short message mode, and user can select to see or not See;Second Type is the higher type of message requirement of real-time, such as incoming call, note etc., and synchronizing frequency is higher, such as real-time synchronization, The message can be skipped to foreground by second terminal, and user generally first processes this message, then carry out other operations.
Then in embodiments of the present invention, step 103 can include following sub-step:
Sub-step S21, first terminal when it is determined that the message belongs to the first kind, by the message cache one section when Between;
If the message that first terminal is received belongs to the relatively low first kind of requirement of real-time, in order to avoid continually calling out Awake second terminal, then can carry out one with certain interval of time and second terminal subsynchronous.
It should be noted that this is to start time for being cached between synchronization from a piece of news for a period of time, to this section The message received in time is cached, then whole message is disposably synchronized, and not every message is required for delaying Deposit this period.
For example, first terminal is spaced the message of 10 minutes synchronous first kind, it is assumed that 12:00 receives first Message, then start timing, 12:00-12:Receive 20 message 10 this periods altogether and cached, then 12:10 will This 20 message synchronizations are to second terminal.
In implementing, the message for belonging to the first kind is deposited when it is determined that message belongs to the first kind by first terminal Store up into buffer queue.
Additionally, first terminal starts intervalometer, with timing for a period of time.
After i.e. first terminal receives the message of the first kind, except the message of the first kind is stored to buffer queue Outside, can also detect whether to start intervalometer, if do not started, start intervalometer.
Sub-step S22, first terminal will belong to disappearing for the first kind in the time period when more than the time Breath is by low-power consumption bluetooth agreement to transmission to second terminal;
In implementing, first terminal at the end of intervalometer timing, as central apparatus (Center), by low work( The message for belonging to the first kind in buffer queue is sent to second as ancillary equipment (Peripheral) by consumption Bluetooth protocol Terminal.
Additionally, first terminal cancels intervalometer, in order to carry out timing next time.
Sub-step S23, first terminal will belong to disappearing for the Second Type when it is determined that the message belongs to Second Type Breath is sent to second terminal by low-power consumption bluetooth agreement.
If the message that first terminal is received belongs to the higher Second Type of requirement of real-time, in order to remind use in time Family, then directly can carry out one with second terminal subsynchronous.
In one embodiment of the invention, sub-step S23 can further include following sub-step:
Sub-step S231, first terminal when it is determined that the message belongs to Second Type judge whether to be cached with and belong to institute State the message of the first kind;If so, then perform sub-step S232;
In implementing, first terminal when it is determined that message belongs to Second Type judges whether to start intervalometer;If It is, it is determined that be cached with the message for belonging to the first kind.
As intervalometer carries out timing for the time to caching, therefore, if intervalometer starts, then it represents that be cached with category In the message of the first kind.
The message for belonging to the first kind, the message for belonging to the Second Type are led to by sub-step S232, first terminal Cross low-power consumption Bluetooth protocol together to send to second terminal.
In actual applications, first terminal will cache team as central apparatus (Center), by low-power consumption bluetooth agreement The message for belonging to the first kind in row, the message for belonging to Second Type are together sent to as ancillary equipment (Peripheral) Second terminal.
Additionally, first terminal cancels intervalometer, in order to carry out timing next time.
In embodiments of the present invention, in order to reduce the frequency for waking up second terminal, first terminal is in synchronous Second Type During message, can detect whether to be cached with the message of the first kind.
If it has, then the message of both types is disposably synchronized, it is to avoid synchronous Second Type message it Afterwards, the message of the synchronous first kind again.
If it is not, the message of direct synchronization Second Type.
Certainly, the type of above-mentioned message is intended only as example, when the embodiment of the present invention is implemented, can be according to practical situation The type of other message is set, such as the 3rd type, the message of the 3rd type forbids being synchronized to second terminal, etc., the present invention Embodiment is not any limitation as to this.In addition, in addition to the type of above-mentioned message, those skilled in the art can be with according to actual need The type of other message, the embodiment of the present invention is adopted also not to be any limitation as this.
The communication of embodiment of the present invention application low-power consumption bluetooth agreement, centered on first terminal, equipment, second terminal are outer Peripheral equipment, first terminal detect the status indicator of second terminal, if the status indicator of second terminal is when message is received During dormancy identification, then first terminal recognize message type, according to the corresponding synchronizing frequency of the type, by the message by low work( Consumption Bluetooth protocol is sent to second terminal, and message based type flexibly arranges synchronizing frequency, it is to avoid receive message every time Just synchronize with second terminal in a dormant state immediately, reduce the synchronous frequency, second is waken up eventually so as to reduce The frequency at end, reduces the resource consumption of second terminal.
With reference to Fig. 2, the step of show communication means embodiment of the another kind of the present invention based on low-power consumption bluetooth agreement Flow chart, specifically may include steps of:
Step 201, first terminal receive what second terminal was sent when into resting state by low-power consumption bluetooth agreement Dormancy identification.
The dormancy identification is recorded as the status indicator of second terminal for step 202, first terminal.
In embodiments of the present invention, if second terminal will enter resting state, can be used as ancillary equipment (Peripheral), dormancy identification (as " sleep ") is sent to the as central apparatus (Center) by the specification of BLE One terminal.
First terminal is received by the specification of BLE and is used as ancillary equipment as central apparatus (Center) (Peripheral) dormancy identification (such as " sleep ") that second terminal sends, then can store the dormancy identification (such as " sleep ") as the current status indicator of second terminal.
It should be noted that resting state is generally referred to by the real-time data memory of operation on internal memory (medium), and Unnecessary hardware is closed as far as possible in the hope of power saving, and for different type, the terminal of different system, the resting state has difference Implication, the embodiment of the present invention is not any limitation as to this.
For example, in linux system, dormancy (suspend) mainly divides three main steps:
1st, User space process and kernel state task are freezed
2nd, the call back function of the suspend of the equipment of registration is called, is sequentially according to registration order
3rd, dormancy nucleus equipment and CPU (Central Processing Unit, central processing unit) is made to enter dormant state, Freeze process, i.e. kernel all of state of a process in process list is both configured to stop, and all processes under preserving Context.
Step 203, first terminal receive what second terminal was sent when into active state by low-power consumption bluetooth agreement Activity mark.
Step 204, first terminal by the movable identification record for second terminal status indicator.
In embodiments of the present invention, if second terminal in resting state is interrupted or wakes up, into active state.
Now, activity mark (can be referred to by the specification of BLE by second terminal as ancillary equipment (Peripheral) Information of the mark second terminal in normal condition, such as " active ") send to first as central apparatus (Center) eventually End.
First terminal is received by the specification of BLE and is used as ancillary equipment as central apparatus (Center) (Peripheral) activity mark (as " active ") for sending, then can store the dormancy identification (such as " sleep ") as the The current status indicator of two terminals.
It should be noted that active state is generally referred to by the state of normal operation of terminal, for different type, non-homology The terminal of system, the active state have different implications, and the embodiment of the present invention is not any limitation as to this.
For example, in linux system, if system is interrupted in dormancy (suspend) or other events wake up, this It is usually contrary with dormancy in proper order that the order of individual wake-up is, so system equipment and bus can be waken up first, enabled systems Interrupt, non-start up CPU that stopping is fallen when enabling dormancy, and call the finish () function of suspend_ops, Er Qie Also may proceed to wake up each terminal in suspend_devices_and_enter () function, enable virtual terminal, finally call The end () function of suspend_ops.
In enter_state () function is returned to, when suspend_devices_and_enter () function is returned After, peripheral hardware has waken up, but process and task are all or frozen state, can call suspend_finish () here Come these processes and the task of thawing, and send Notify to represent that system is exited from suspend states, wake up terminal, System is continued to run with.
Step 205, first terminal detect the second end as ancillary equipment as central apparatus when message is received The status indicator at end.
Step 206, first terminal recognize the type of the message when it is dormancy identification to detect the status indicator.
Step 207, first terminal are assisted by low-power consumption bluetooth according to the corresponding synchronizing frequency of the type, by the message View is sent to second terminal.
The message is assisted by low-power consumption bluetooth by step 208, first terminal when the status indicator is identified for activity View is sent to second terminal.
If the status indicator that first terminal inquires second terminal is activity mark, represent that second terminal is in moving type State, normal to run, then first terminal can be as central apparatus (Center), by the related specifications of BLE, directly by the message Send to the second terminal as ancillary equipment (Peripheral).
With reference to Fig. 3, the step of show communication means embodiment of the another kind of the present invention based on low-power consumption bluetooth agreement Flow chart, specifically may include steps of:
Step 301, second terminal detect the first terminal as central apparatus as ancillary equipment when message is generated Status indicator.
In embodiments of the present invention, first terminal (such as mobile phone, panel computer etc.) and second terminal (such as bracelet, wrist-watch etc.) Can be connected by BLE.
In BLE, equipment (Center) centered on first terminal, second terminal are ancillary equipment (Peripheral).
Be configured with sensor in second terminal, such as temperature sensor, GPS (Global Positioning System, Global positioning system) module, acceleration transducer etc., user is during carrying second terminal is moved, it will usually produce Raw sensing data, these sensing datas generally require and report to first terminal and carry out follow-up process, such as measurement step number, survey Amount running distance, the calorie of measurement consumption, statistics sack time etc..
If second terminal is generating new message, the status indicator of first terminal can be detected, that is, identifies first terminal The information of status, knows the state that first terminal is presently in.
Step 302, second terminal detect the status indicator for dormancy identification when, by the message cache one section when Between.
Dormancy identification, index know first terminal information in a dormant state, such as " sleep ".
If it is dormancy identification that second terminal inquires the status indicator of first terminal, represent that first terminal is in dormancy shape State, due to second terminal generate message requirement of real-time it is typically relatively low, to avoid continually waking up first terminal, then can with A first terminal is reported every a period of time.
It should be noted that this is to start time for being cached between synchronization from a piece of news for a period of time, to this section The message received in time is cached, then whole message is disposably synchronized, and not every message is required for delaying Deposit this period.
For example, second terminal interval reports the message for once generating in 10 minutes, it is assumed that 12:00 generates first sensor Data, then start timing, 12:00-12:It is generated to the data of 20 sensors 10 this periods altogether and is cached, Then 12:The data of this 20 sensors are reported to first terminal by 10.
In implementing, second terminal stores message to caching team when it is dormancy identification to detect status indicator In row.
Additionally, second terminal starts intervalometer, with timing for a period of time.
I.e. second terminal status indicator be dormancy identification after, in addition to the message of generation is stored to buffer queue, Can also detect whether to start intervalometer, if do not started, start intervalometer.
The message is sent to the when more than the time by step 303, second terminal by low-power consumption bluetooth agreement One terminal.
If it exceeds the time of caching, the correlation that second terminal can be as ancillary equipment (Peripheral) by BLE Specification, sends the message to the first terminal as central apparatus (Center).
In implementing, second terminal as ancillary equipment (Peripheral), will be delayed at the end of intervalometer timing The message deposited in queue is sent by low-power consumption bluetooth agreement to the first terminal as central apparatus (Center).
Additionally, second terminal cancels intervalometer, in order to carry out timing next time.
The communication of embodiment of the present invention application low-power consumption bluetooth agreement, centered on first terminal, equipment, second terminal are outer Peripheral equipment, second terminal detect the status indicator of first terminal when message is generated, if the status indicator of first terminal is for not Sleep and identify, then the message when more than the time, is passed through low-power consumption bluetooth agreement by message caching a period of time by second terminal Send to first terminal, by buffered message, it is to avoid it is each generate message just report to immediately in a dormant state first Terminal, reduces the synchronous frequency, so as to reduce the frequency for waking up first terminal, reduces the resource consumption of first terminal.
With reference to Fig. 4, the step of show communication means embodiment of the another kind of the present invention based on low-power consumption bluetooth agreement Flow chart, specifically may include steps of:
Step 401, second terminal receive what first terminal was sent when into resting state by low-power consumption bluetooth agreement Dormancy identification.
The dormancy identification is recorded as the status indicator of first terminal for step 402, second terminal.
In embodiments of the present invention, if first terminal will enter resting state, can be used as central apparatus (Center), dormancy identification (as " sleep ") is sent to the as ancillary equipment (Peripheral) by the specification of BLE Two terminals.
Second terminal is received by the specification of BLE and is used as central apparatus as ancillary equipment (Peripheral) (Center) dormancy identification (such as " sleep ") that first terminal sends, then can store the dormancy identification (such as " sleep ") and make For the current status indicator of first terminal.
It should be noted that resting state is generally referred to by the real-time data memory of operation on internal memory (medium), and Unnecessary hardware is closed as far as possible in the hope of power saving, and for different type, the terminal of different system, the resting state has difference Implication, the embodiment of the present invention is not any limitation as to this.
For example, in linux system, dormancy (suspend) mainly divides three main steps:
1st, User space process and kernel state task are freezed
2nd, the call back function of the suspend of the equipment of registration is called, is sequentially according to registration order
3rd, dormancy nucleus equipment and CPU (Central Processing Unit, central processing unit) is made to enter dormant state, Freeze process, i.e. kernel all of state of a process in process list is both configured to stop, and all processes under preserving Context.
Step 403, second terminal receive what first terminal was sent when into active state by low-power consumption bluetooth agreement Activity mark.
Step 404, second terminal by the movable identification record for first terminal status indicator.
In embodiments of the present invention, if first terminal in resting state is interrupted or wakes up, into active state.
Now, first terminal can be used as central apparatus (Center), and by the specification of BLE, by activity mark, (index is known Information of the first terminal in normal condition, such as " active ") send to second as ancillary equipment (Peripheral) eventually End.
Second terminal is received by the specification of BLE and is used as central apparatus as ancillary equipment (Peripheral) (Center) the activity mark (such as " active ") for sending, then can store the dormancy identification (such as " sleep ") whole as first The current status indicator in end.
It should be noted that active state is generally referred to by the state of normal operation of terminal, for different type, non-homology The terminal of system, the active state have different implications, and the embodiment of the present invention is not any limitation as to this.
For example, in linux system, if system is interrupted in dormancy (suspend) or other events wake up, this It is usually contrary with dormancy in proper order that the order of individual wake-up is, so system equipment and bus can be waken up first, enabled systems Interrupt, non-start up CPU that stopping is fallen when enabling dormancy, and call the finish () function of suspend_ops, Er Qie Also may proceed to wake up each terminal in suspend_devices_and_enter () function, enable virtual terminal, finally call The end () function of suspend_ops.
In enter_state () function is returned to, when suspend_devices_and_enter () function is returned After, peripheral hardware has waken up, but process and task are all or frozen state, can call suspend_finish () here Come these processes and the task of thawing, and send Notify to represent that system is exited from suspend states, wake up terminal, System is continued to run with.
Step 405, second terminal detect the first terminal as central apparatus as ancillary equipment when message is generated Status indicator.
Step 406, second terminal detect the status indicator for dormancy identification when, by the message cache one section when Between.
The message is sent to the when more than the time by step 407, second terminal by low-power consumption bluetooth agreement One terminal.
The message is assisted by low-power consumption bluetooth by step 408, second terminal when the status indicator is identified for activity View is sent to first terminal.
If the status indicator that second terminal inquires first terminal is activity mark, represent that first terminal is in moving type State, normal to run, then second terminal can be as ancillary equipment (Peripheral), by the related specifications of BLE, directly should Message is sent to the first terminal as central apparatus (Center).
It should be noted that for embodiment of the method, in order to be briefly described, therefore which to be all expressed as a series of action group Close, but those skilled in the art should know, the embodiment of the present invention is not limited by described sequence of movement, because according to According to the embodiment of the present invention, some steps can adopt other orders or while carry out.Secondly, those skilled in the art also should Know, embodiment described in this description belongs to preferred embodiment, the involved action not necessarily present invention is implemented Example is necessary.
With reference to Fig. 5, a kind of structural frames of communication device embodiment based on low-power consumption bluetooth agreement of the present invention are shown Figure, applies in first terminal 500, and the device specifically can include such as lower module:
Peripheral state detection module 501, for as central apparatus, when message is received, detects as ancillary equipment Second terminal status indicator;
Type of message identification module 502, for when it is dormancy identification to detect the status indicator, recognizing the message Type;
Peripheral message dormancy synchronization module 503, for passing through according to the corresponding synchronizing frequency of the type, by the message Low-power consumption bluetooth agreement is sent to second terminal.
In one embodiment of the invention, the type of message identification module 502 can include following submodule:
Using determination sub-module, for determining the application for receiving the message;
Tag along sort inquires about submodule, described using corresponding tag along sort for inquiring about;
Type of message determination sub-module, for the type of the message is determined according to the tag along sort.
In one embodiment of the invention, the type includes the first kind and Second Type;
The peripheral message dormancy synchronization module 503 can include following submodule:
Central cache submodule, for when it is determined that the message belongs to the first kind, when the message is cached one section Between;
Middle heart septum sending submodule, for, when more than the time, the first kind will be belonged in the time period The message of type is by low-power consumption bluetooth agreement to transmission to second terminal;
The real-time sending submodule in center, for, when it is determined that the message belongs to Second Type, the Equations of The Second Kind will be belonged to The message of type is sent to second terminal by low-power consumption bluetooth agreement.
In one embodiment of the invention, the central cache submodule can be included such as lower unit:
Central cache queue storage location, for first terminal when it is determined that the message belongs to the first kind, will belong to The message of the first kind is stored into buffer queue;
Center intervalometer start unit, for starting intervalometer, with timing for a period of time;
The middle heart septum sending submodule can be included such as lower module:
Center timing transmitting element, it is described for, at the end of the intervalometer timing, will belong in the buffer queue The message of the first kind is sent to second terminal by low-power consumption bluetooth agreement;
First center intervalometer cancels unit, for cancelling the intervalometer.
In one embodiment of the invention, the real-time sending submodule in the center can be included such as lower unit:
Buffered message judging unit, belongs to for, when it is determined that the message belongs to Second Type, judging whether to be cached with The message of the first kind;If so, then call center collaboration transmitting element;
Center cooperates with transmitting element, for belonging to the message of the first kind, belonging to the message of the Second Type Together sent to second terminal by low-power consumption bluetooth agreement.
In one embodiment of the invention, the buffered message judging unit can include following subelement:
Trigger starts judgment sub-unit, and for first terminal when it is determined that the message belongs to Second Type, judgement is No startup intervalometer;If so, then message call caches determination subelement;
Message caches determination subelement, is cached with the message for belonging to the first kind for determining;
The center collaboration transmitting element can include following subelement:
Center double-type sends subelement, for belonging to the message of the first kind in buffer queue, belonging to described The message of Second Type is together sent to second terminal by low-power consumption bluetooth agreement;
Second center intervalometer cancels subelement, for cancelling the intervalometer.
In one embodiment of the invention, the device can also be included such as lower module:
Peripheral dormancy identification receiver module, is entering resting state for receiving second terminal by low-power consumption bluetooth agreement When the dormancy identification that sends;
Peripheral resting state logging modle, for the dormancy identification to be recorded as the status indicator of second terminal;
And/or,
Peripheral activity mark receiver module, is entering active state for receiving second terminal by low-power consumption bluetooth agreement When send activity mark;
Peripheral active state logging modle, for by the movable identification record for second terminal status indicator.
In one embodiment of the invention, the device can also be included such as lower module:
Peripheral messaging activity synchronization module, for when the status indicator is identified for activity, by the message by low Power consumption Bluetooth protocol is sent to second terminal.
With reference to Fig. 6, structure of the another kind of the present invention based on the communication device embodiment of low-power consumption bluetooth agreement is shown Block diagram, applies in second terminal 600, and the device specifically can include such as lower module:
Center situation detection module 601, for as ancillary equipment, when message is generated, detects as central apparatus The status indicator of first terminal;
Peripheral cache module 602, for when it is dormancy identification to detect the status indicator, the message being cached one The section time;
Central Message dormancy reporting module 603, for when more than the time, as ancillary equipment, by the message Sent to first terminal by low-power consumption bluetooth agreement.
In one embodiment of the invention, the peripheral cache module 602 can include following submodule:
Peripheral buffer queue sub-module stored, for when the status indicator is dormancy identification, the message being stored Into buffer queue;
Peripheral intervalometer starts submodule, for starting intervalometer, with timing for a period of time.
In one embodiment of the invention, the Central Message dormancy reporting module 603 can include following submodule:
Peripheral timing sending submodule, at the end of the intervalometer timing, by the message in the buffer queue Sent to first terminal by low-power consumption bluetooth agreement;
Peripheral intervalometer cancels submodule, for cancelling the intervalometer.
In one embodiment of the invention, the device can also be included such as lower module:
Center dormancy identification receiver module, is entering resting state for receiving first terminal by low-power consumption bluetooth agreement When the dormancy identification that sends;
Center resting state logging modle, for the dormancy identification to be recorded as the status indicator of first terminal;
And/or,
Central movable identifies receiver module, is entering active state for receiving first terminal by low-power consumption bluetooth agreement When send activity mark;
Central movable state recording module, for by the movable identification record for first terminal status indicator.
In one embodiment of the invention, the device can also be included such as lower module:
Central Message activity reporting module, for when the status indicator is identified for activity, by the message by low Power consumption Bluetooth protocol is sent to first terminal.
For device embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, it is related Part is illustrated referring to the part of embodiment of the method.
Each embodiment in this specification is described by the way of progressive, what each embodiment was stressed be with The difference of other embodiment, between each embodiment identical similar part mutually referring to.
Those skilled in the art are it should be appreciated that the embodiment of the embodiment of the present invention can be provided as method, device or calculate Machine program product.Therefore, the embodiment of the present invention can using complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.And, the embodiment of the present invention can using wherein include computer at one or more can With in the computer-usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.) of program code The form of the computer program of enforcement.
The embodiment of the present invention is with reference to method according to embodiments of the present invention, terminal unit (system), and computer program The flow chart and/or block diagram of product is describing.It should be understood that can be by computer program instructions flowchart and/or block diagram In each flow process and/or square frame and flow chart and/or flow process and/or square frame in block diagram combination.These can be provided Computer program instructions are set to general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is producing a machine so that held by the processor of computer or other programmable data processing terminal equipments Capable instruction is produced for realizing in one flow process of flow chart or one square frame of multiple flow processs and/or block diagram or multiple square frames The device of the function of specifying.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing terminal equipments In the computer-readable memory for working in a specific way so that the instruction being stored in the computer-readable memory produces bag The manufacture of command device is included, the command device is realized in one side of one flow process of flow chart or multiple flow processs and/or block diagram The function of specifying in frame or multiple square frames.
These computer program instructions can be also loaded in computer or other programmable data processing terminal equipments so that On computer or other programmable terminal equipments perform series of operation steps to produce computer implemented process, so as to The instruction performed on computer or other programmable terminal equipments is provided for realizing in one flow process of flow chart or multiple flow processs And/or specify in one square frame of block diagram or multiple square frames function the step of.
Although having been described for the preferred embodiment of the embodiment of the present invention, those skilled in the art once know base This creative concept, then can make other change and modification to these embodiments.So, claims are intended to be construed to Including preferred embodiment and fall into the had altered of range of embodiment of the invention and change.
Finally, in addition it is also necessary to explanation, herein, such as first and second or the like relational terms be used merely to by One entity or operation are made a distinction with another entity or operation, and are not necessarily required or implied these entities or operation Between there is any this actual relation or order.And, term " including ", "comprising" or its any other variant are anticipated Covering including for nonexcludability, so that a series of process, method, article or terminal unit including key elements is not only wrapped Those key elements are included, but also including other key elements being not expressly set out, or also include for this process, method, article Or the key element that terminal unit is intrinsic.In the absence of more restrictions, by wanting that sentence "including a ..." is limited Element, it is not excluded that also there is other identical element in the process including the key element, method, article or terminal unit.
Low-power consumption is based on to a kind of communication means based on low-power consumption bluetooth agreement provided by the present invention and one kind above The communicator of Bluetooth protocol, is described in detail, principle and embodiment party of the specific case used herein to the present invention Formula is set forth, and the explanation of above example is only intended to help and understands the method for the present invention and its core concept;Meanwhile, it is right In one of ordinary skill in the art, according to the thought of the present invention, change is had in specific embodiments and applications Part, in sum, this specification content should not be construed as limiting the invention.

Claims (10)

1. a kind of communication means based on low-power consumption bluetooth agreement, it is characterised in that include:
First terminal when message is received, detects the status indicator of the second terminal as ancillary equipment as central apparatus;
First terminal recognizes the type of the message when it is dormancy identification to detect the status indicator;First terminal according to The corresponding synchronizing frequency of the type, the message is sent to second terminal by low-power consumption bluetooth agreement.
2. method according to claim 1, it is characterised in that include the step of the type of the identification message:
It is determined that receiving the application of the message;
Inquiry is described using corresponding tag along sort;
The type of the message is determined according to the tag along sort.
3. method according to claim 1 and 2, it is characterised in that the type includes the first kind and Second Type;
The first terminal according to the corresponding synchronizing frequency of the type, by the message by low-power consumption bluetooth agreement send to The step of second terminal, includes:
The message is cached a period of time when it is determined that the message belongs to the first kind by first terminal;
First terminal, will be the message for belonging to the first kind in the time period blue by low-power consumption when more than the time Tooth agreement is to transmission to second terminal;
First terminal, will be the message for belonging to the Second Type blue by low-power consumption when it is determined that the message belongs to Second Type Tooth agreement is sent to second terminal.
4. method according to claim 3, it is characterised in that
The first terminal is wrapped the step of the message is cached a period of time when it is determined that the message belongs to the first kind Include:
First terminal when it is determined that the message belongs to the first kind stores the message for belonging to the first kind to caching team In row;
First terminal starts intervalometer, with timing for a period of time;
The first terminal will belong to the message of the first kind by low work(when more than the time in the time period The step of consumption Bluetooth protocol is to transmission to second terminal includes:
The message for belonging to the first kind in the buffer queue is passed through at the end of the intervalometer timing by first terminal Low-power consumption bluetooth agreement is sent to second terminal;
First terminal cancels the intervalometer;
The message is sent when it is determined that the message belongs to Second Type by the first terminal by low-power consumption bluetooth agreement The step of to second terminal, includes:
First terminal when it is determined that the message belongs to Second Type judges whether to be cached with and belongs to disappearing for the first kind Breath;
If so, then the message for belonging to the first kind, the message for belonging to the Second Type are passed through low-power consumption by first terminal Bluetooth protocol is together sent to second terminal.
5. the method according to claim 1 or 2 or 4, it is characterised in that also include:
The message is sent to second by low-power consumption bluetooth agreement by first terminal when the status indicator is identified for activity Terminal.
6. a kind of communication means based on low-power consumption bluetooth agreement, it is characterised in that include:
Second terminal when message is generated, detects the status indicator of the first terminal as central apparatus as ancillary equipment;
The message is cached a period of time when it is dormancy identification to detect the status indicator by second terminal;
The message is sent to first terminal when more than the time by second terminal by low-power consumption bluetooth agreement.
7. method according to claim 6, it is characterised in that described to wrap the step of the message is cached a period of time Include:
The message is stored into buffer queue;
Start intervalometer, with timing for a period of time.
8. the method according to claim 6 or 7, it is characterised in that also include:
The message is sent to first by low-power consumption bluetooth agreement by second terminal when the status indicator is identified for activity Terminal.
9. a kind of communicator based on low-power consumption bluetooth agreement, it is characterised in that apply in first terminal, described device bag Include:
Peripheral state detection module, for as central apparatus, when message is received, detects the second end as ancillary equipment The status indicator at end;
Type of message identification module, for when it is dormancy identification to detect the status indicator, recognizing the type of the message;
Peripheral message dormancy synchronization module, for passing through low-power consumption according to the corresponding synchronizing frequency of the type, by the message Bluetooth protocol is sent to second terminal.
10. a kind of communicator based on low-power consumption bluetooth agreement, it is characterised in that apply in second terminal, described device Including:
Center situation detection module, for as ancillary equipment, when message is generated, detects the first terminal as central apparatus Status indicator;
Peripheral cache module, for when it is dormancy identification to detect the status indicator, by message caching a period of time;
Central Message dormancy reporting module, for, when more than the time, the message being sent out by low-power consumption bluetooth agreement Deliver to first terminal.
CN201611020876.8A 2016-11-18 2016-11-18 Communication method and apparatus based on low-loss Bluetooth protocol Pending CN106658365A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611020876.8A CN106658365A (en) 2016-11-18 2016-11-18 Communication method and apparatus based on low-loss Bluetooth protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611020876.8A CN106658365A (en) 2016-11-18 2016-11-18 Communication method and apparatus based on low-loss Bluetooth protocol

Publications (1)

Publication Number Publication Date
CN106658365A true CN106658365A (en) 2017-05-10

Family

ID=58808084

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611020876.8A Pending CN106658365A (en) 2016-11-18 2016-11-18 Communication method and apparatus based on low-loss Bluetooth protocol

Country Status (1)

Country Link
CN (1) CN106658365A (en)

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108184193A (en) * 2017-12-28 2018-06-19 西安Tcl软件开发有限公司 Control method for playing back, bluetooth equipment and the computer storage media of bluetooth playback terminal
CN108551668A (en) * 2018-03-29 2018-09-18 青岛海信电器股份有限公司 Information transferring method, device, equipment and storage medium
CN109348431A (en) * 2018-11-14 2019-02-15 Oppo广东移动通信有限公司 Bluetooth scanning method, device, equipment and storage medium
CN109640308A (en) * 2019-01-23 2019-04-16 成都怡康科技有限公司 A kind of bracelet wireless communication system and its method
CN109992401A (en) * 2017-12-29 2019-07-09 广东欧珀移动通信有限公司 Information processing method, device, mobile terminal, and computer-readable storage medium
CN110032398A (en) * 2018-01-12 2019-07-19 广东欧珀移动通信有限公司 Application processing method and device, electronic equipment, computer readable storage medium
CN110390940A (en) * 2018-04-16 2019-10-29 北京松果电子有限公司 audio distribution system
CN110417511A (en) * 2019-07-11 2019-11-05 深圳前海达闼云端智能科技有限公司 Data transmission method, device, computing device and computer storage medium
CN110839247A (en) * 2018-08-16 2020-02-25 云丁智能科技(北京)有限公司 Binding method and device of low-power-consumption terminal equipment
CN110891259A (en) * 2019-11-27 2020-03-17 出门问问信息科技有限公司 Low-power consumption Bluetooth BLE data transmission method and device of smart watch
CN111314147A (en) * 2020-02-25 2020-06-19 浙江大华技术股份有限公司 Intelligent device configuration method, cloud platform and storage medium
CN111356132A (en) * 2018-12-20 2020-06-30 上海银基信息安全技术股份有限公司 Bluetooth access control method, system, electronic device and storage medium
CN111869228A (en) * 2018-03-09 2020-10-30 三星电子株式会社 Display device and control method thereof
CN112243286A (en) * 2019-07-19 2021-01-19 瑞昱半导体股份有限公司 Low-power-consumption energy detection method and communication device thereof
CN112689320A (en) * 2020-12-25 2021-04-20 杭州当贝网络科技有限公司 Power consumption optimization method and system for 2.4G wireless audio system and readable storage medium
US11523341B2 (en) 2018-03-09 2022-12-06 Samsung Electronics Co., Ltd. Display device and control method thereof
CN115499792A (en) * 2018-08-08 2022-12-20 三星电子株式会社 Electronic device for providing notification message and method thereof
CN116095882A (en) * 2023-01-31 2023-05-09 北京雷石天地电子技术有限公司 Non-inductive pairing method, device and equipment
WO2023206693A1 (en) * 2022-04-29 2023-11-02 华为技术有限公司 System sleep method and apparatus and system wake-up method and apparatus
US11871478B2 (en) 2018-12-26 2024-01-09 Huawei Technologies Co., Ltd. Bluetooth low energy-based communication method and related apparatus
US11928002B2 (en) 2019-11-27 2024-03-12 Mobvoi Information Technology Company Limited Data transmission method, apparatus and smart watch device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103327585A (en) * 2013-05-27 2013-09-25 深圳市中兴移动通信有限公司 Communication terminal and communication method thereof
CN103809730A (en) * 2014-02-18 2014-05-21 上海新储集成电路有限公司 Low-power-consumption wearable equipment system
CN104035543A (en) * 2014-06-23 2014-09-10 华为技术有限公司 Power saving management method and device for intelligent terminal
US20150139057A1 (en) * 2007-04-05 2015-05-21 Microsoft Corporation Signaling over cellular networks to reduce the wi-fi energy consumption of mobile devices
CN105677033A (en) * 2016-01-04 2016-06-15 广东欧珀移动通信有限公司 Information pushing method and system
CN105979088A (en) * 2016-05-06 2016-09-28 北京小米移动软件有限公司 Message pushing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150139057A1 (en) * 2007-04-05 2015-05-21 Microsoft Corporation Signaling over cellular networks to reduce the wi-fi energy consumption of mobile devices
CN103327585A (en) * 2013-05-27 2013-09-25 深圳市中兴移动通信有限公司 Communication terminal and communication method thereof
CN103809730A (en) * 2014-02-18 2014-05-21 上海新储集成电路有限公司 Low-power-consumption wearable equipment system
CN104035543A (en) * 2014-06-23 2014-09-10 华为技术有限公司 Power saving management method and device for intelligent terminal
CN105677033A (en) * 2016-01-04 2016-06-15 广东欧珀移动通信有限公司 Information pushing method and system
CN105979088A (en) * 2016-05-06 2016-09-28 北京小米移动软件有限公司 Message pushing method and device

Cited By (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108184193A (en) * 2017-12-28 2018-06-19 西安Tcl软件开发有限公司 Control method for playing back, bluetooth equipment and the computer storage media of bluetooth playback terminal
CN108184193B (en) * 2017-12-28 2021-03-30 西安Tcl软件开发有限公司 Play control method of Bluetooth play terminal, Bluetooth device and computer storage medium
CN109992401B (en) * 2017-12-29 2021-08-17 Oppo广东移动通信有限公司 Information processing method, device, mobile terminal, and computer-readable storage medium
CN109992401A (en) * 2017-12-29 2019-07-09 广东欧珀移动通信有限公司 Information processing method, device, mobile terminal, and computer-readable storage medium
CN110032398A (en) * 2018-01-12 2019-07-19 广东欧珀移动通信有限公司 Application processing method and device, electronic equipment, computer readable storage medium
CN111869228A (en) * 2018-03-09 2020-10-30 三星电子株式会社 Display device and control method thereof
US11523341B2 (en) 2018-03-09 2022-12-06 Samsung Electronics Co., Ltd. Display device and control method thereof
CN108551668A (en) * 2018-03-29 2018-09-18 青岛海信电器股份有限公司 Information transferring method, device, equipment and storage medium
WO2019184455A1 (en) * 2018-03-29 2019-10-03 青岛海信电器股份有限公司 Information transmission method and apparatus, device and storage medium
CN108551668B (en) * 2018-03-29 2020-06-09 海信视像科技股份有限公司 Information transmission method, device, equipment and storage medium
CN110390940A (en) * 2018-04-16 2019-10-29 北京松果电子有限公司 audio distribution system
CN115499792A (en) * 2018-08-08 2022-12-20 三星电子株式会社 Electronic device for providing notification message and method thereof
CN110839247B (en) * 2018-08-16 2023-06-09 云丁智能科技(北京)有限公司 Binding method and device for low-power-consumption terminal equipment
CN110839247A (en) * 2018-08-16 2020-02-25 云丁智能科技(北京)有限公司 Binding method and device of low-power-consumption terminal equipment
CN109348431B (en) * 2018-11-14 2021-09-17 Oppo广东移动通信有限公司 Bluetooth scanning method, device, equipment and storage medium
CN109348431A (en) * 2018-11-14 2019-02-15 Oppo广东移动通信有限公司 Bluetooth scanning method, device, equipment and storage medium
CN111356132A (en) * 2018-12-20 2020-06-30 上海银基信息安全技术股份有限公司 Bluetooth access control method, system, electronic device and storage medium
CN111356132B (en) * 2018-12-20 2023-04-25 上海银基信息安全技术股份有限公司 Bluetooth access control method, system, electronic device and storage medium
US11871478B2 (en) 2018-12-26 2024-01-09 Huawei Technologies Co., Ltd. Bluetooth low energy-based communication method and related apparatus
CN109640308B (en) * 2019-01-23 2023-07-04 成都怡康科技有限公司 Bracelet wireless communication system and method thereof
CN109640308A (en) * 2019-01-23 2019-04-16 成都怡康科技有限公司 A kind of bracelet wireless communication system and its method
CN110417511A (en) * 2019-07-11 2019-11-05 深圳前海达闼云端智能科技有限公司 Data transmission method, device, computing device and computer storage medium
CN110417511B (en) * 2019-07-11 2023-03-31 达闼机器人股份有限公司 Data transmission method and device, computing equipment and computer storage medium
CN112243286A (en) * 2019-07-19 2021-01-19 瑞昱半导体股份有限公司 Low-power-consumption energy detection method and communication device thereof
CN110891259B (en) * 2019-11-27 2021-11-09 出门问问信息科技有限公司 Low-power consumption Bluetooth BLE data transmission method and device of smart watch
CN110891259A (en) * 2019-11-27 2020-03-17 出门问问信息科技有限公司 Low-power consumption Bluetooth BLE data transmission method and device of smart watch
US11928002B2 (en) 2019-11-27 2024-03-12 Mobvoi Information Technology Company Limited Data transmission method, apparatus and smart watch device
CN111314147B (en) * 2020-02-25 2022-11-18 浙江大华技术股份有限公司 Intelligent device configuration method, cloud platform and storage medium
CN111314147A (en) * 2020-02-25 2020-06-19 浙江大华技术股份有限公司 Intelligent device configuration method, cloud platform and storage medium
CN112689320A (en) * 2020-12-25 2021-04-20 杭州当贝网络科技有限公司 Power consumption optimization method and system for 2.4G wireless audio system and readable storage medium
WO2023206693A1 (en) * 2022-04-29 2023-11-02 华为技术有限公司 System sleep method and apparatus and system wake-up method and apparatus
CN116095882A (en) * 2023-01-31 2023-05-09 北京雷石天地电子技术有限公司 Non-inductive pairing method, device and equipment

Similar Documents

Publication Publication Date Title
CN106658365A (en) Communication method and apparatus based on low-loss Bluetooth protocol
US12105736B2 (en) Multi-device context store
CN101981531B (en) Aggregating recurrent schedules to optimize resource consumption
US20190075037A1 (en) Scheduling processing tasks based on predicted context
US10732696B2 (en) Method and apparatus for wake-up control of intelligent terminal
CN106713226B (en) A kind of remote procedure call processing method and system for distributed system
US9699593B2 (en) Scanning enhancements for short-range wireless devices
EP3499786B1 (en) Data synchronization method, apparatus, storage medium and electronic device
CN113656490B (en) Data synchronization method, device, terminal and storage medium
CA2556862A1 (en) System and method for communicating asynchronously with web services using message set definitions
KR101828295B1 (en) Terminal and method for managing application thereof
US10075409B2 (en) Terminal and application synchronization method therefor
KR20150053932A (en) Apparatus and method for delivery control of application data to a mobile device in a communication network
CN108900855B (en) Live content recording method and device, computer readable storage medium and server
CN112566281A (en) Information reporting and receiving method, terminal and network side equipment
CN107534950A (en) A method and device for transmitting information
WO2024017156A1 (en) Lp-wus monitoring and sending methods, terminal and network side device
US10003617B2 (en) Terminal and application synchronization method thereof
WO2024017051A1 (en) Wake-up signal monitoring method and apparatus, monitoring indication method and apparatus, terminal, and network side device
WO2023221909A1 (en) Signal processing method, terminal, and network device
WO2024037514A1 (en) Information transmission method and apparatus, and communication device
CN109792747A (en) Method, device, base station and terminal for transmitting uplink information
WO2024002350A1 (en) Method and apparatus for transmitting sidelink positioning reference signal
CN110837439A (en) File backup method, terminal and communication system
CN104753969B (en) The synchronous method and device of Contents of clipboard information

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170510