CN104615016B - A kind of method and device based on low-power consumption bluetooth technical controlling main frame - Google Patents

A kind of method and device based on low-power consumption bluetooth technical controlling main frame Download PDF

Info

Publication number
CN104615016B
CN104615016B CN201410739898.4A CN201410739898A CN104615016B CN 104615016 B CN104615016 B CN 104615016B CN 201410739898 A CN201410739898 A CN 201410739898A CN 104615016 B CN104615016 B CN 104615016B
Authority
CN
China
Prior art keywords
main frame
slave
moment
blue tooth
wireless blue
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.)
Active
Application number
CN201410739898.4A
Other languages
Chinese (zh)
Other versions
CN104615016A (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201410739898.4A priority Critical patent/CN104615016B/en
Publication of CN104615016A publication Critical patent/CN104615016A/en
Application granted granted Critical
Publication of CN104615016B publication Critical patent/CN104615016B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers

Abstract

The embodiment of the invention discloses a kind of method and device based on low-power consumption bluetooth technical controlling main frame, the method includes that slave opens monitor function when moment arrival is monitored, and when the synchronization packets of main frame transmission are listened to the clock information in synchronization packets be synchronous according to main frame row clock is entered, and send the response data packet for synchronization packets to main frame, when do not stored in slave user input for main frame control instruction when, slave closes monitor function, and open monitor function when next monitoring moment arrival is detected, wherein, next monitoring moment is since upper one is monitored the moment, by the moment after m default connection interval T, n is the number of times that the slave for pre-setting ignores default connection interval T.Implementing the embodiment of the present invention can make slave only open monitor function when moment arrival is monitored, and reduce power consumption during slave control main frame, extend the use time of battery in slave.

Description

A kind of method and device based on low-power consumption bluetooth technical controlling main frame
Technical field
The present invention relates to low-power consumption bluetooth technical field, and in particular to a kind of based on low-power consumption bluetooth technical controlling main frame Method and device.
Background technology
Currently, due to having the advantages that low-power consumption, low-power consumption bluetooth (BLE, Bluetooth Low Energy) technology should In for increasing controller, and the controller being attached by terminals (also known as " main frame ") such as BLE technologies and mobile phones (also known as " slave ") is also increasingly popularized.In actual applications, user using slave control main frame when, main frame must keep with Wireless blue tooth connection between slave, i.e., may turn on monitor function and monitor main frame transmission every a connection interval T slave Synchronization packets, it is wireless to indicate after slave listens to the synchronization packets of main frame transmission to main frame to send response data packet The connection validity (i.e. wireless blue tooth is connected as effectively connection) of bluetooth connection, the process is referred to as the connection between slave and main frame Event.User is exactly the operation for timely responding to user for the most important experience of slave, in order to ensure that slave timely responds to use The operation at family, connection interval T need to shorten as far as possible.But, when without sending control instruction to main frame, between slave and main frame Connection event can still occur, the power consumption which results in slave is excessive, shortens the use time of battery in slave.
The content of the invention
The embodiment of the invention discloses a kind of method and device based on low-power consumption bluetooth technical controlling main frame, can reduce Power consumption during slave control main frame.
Embodiment of the present invention first aspect discloses a kind of method based on low-power consumption bluetooth technical controlling main frame, including:
Slave opens monitor function when the arrival of monitoring moment is detected;
When listen to main frame transmission the first synchronization packets when, the slave with first synchronization packets when Clock information is that row clock is synchronous according to entering with the main frame, and sends the sound for first synchronization packets to the main frame Answer packet, the main frame is advance to set up the main frame that wireless blue tooth is connected with the slave;
When do not stored in the slave user input for the main frame the first control instruction when, the slave is closed The monitor function, and the monitor function is opened when next monitoring moment arrival is detected, during next monitoring Quarter is that the m is more than or equal to 1 and small since upper one is monitored the moment, by the moment after m default connection interval T In the integer equal to n+1, the n is the number of times that the slave for pre-setting ignores the default connection interval T.
Embodiment of the present invention second aspect discloses a kind of slave, and the slave includes that detection unit, monitor function are controlled Unit, synchronization unit and the first communication unit, wherein:
Whether the detection unit, arrive for the Anti-Sniffer moment;
The monitor function control unit, for when the detection unit detects the monitoring moment and arrives, opening and monitoring Function;
The synchronization unit, during for the first synchronization packets that main frame transmission is listened to when the slave, with described the Clock information in one synchronization packets be it is synchronous according to the main frame row clock is entered, the main frame in advance with the slave Set up the main frame of wireless blue tooth connection;
First communication unit, for sending the response data for first synchronization packets to the main frame Bag;
The monitor function control unit, be additionally operable to not store in the slave user input for the main frame During the first control instruction, the monitor function is closed;
The detection unit, is additionally operable to detect whether next monitoring moment arrives;
The monitor function control unit, is additionally operable to when the detection unit detects next monitoring moment and arrives, The monitor function is opened, next monitoring moment is since upper one is monitored the moment, by m default connection interval Moment after T, the m is the integer more than or equal to 1 and less than or equal to n+1, and the n is that the slave for pre-setting is ignored The number of times of the default connection interval T.
In the embodiment of the present invention, slave opens monitor function when moment arrival is monitored, and is listening to main frame transmission With the clock information in synchronization packets it is synchronous according to main frame row clock is entered during synchronization packets, and is sent to main frame and be directed to The response data packet of synchronization packets, when do not stored in slave user input for main frame control instruction when, slave close Monitor function, and detect next monitoring moment arrive when open monitor function, wherein, next monitoring moment is from upper One monitoring moment starts, is spaced the moment after T by m default connection, and n is that the slave for pre-setting ignores default connection It is spaced the number of times of T.Implement the embodiment of the present invention can make slave only monitor the moment arrive when open monitor function, reduce from Power consumption during machine control main frame, extends the use time of battery in slave.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below by to be used needed for embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for ability For the those of ordinary skill of domain, on the premise of not paying creative work, can also obtain other attached according to these accompanying drawings Figure.
Fig. 1 is that a kind of flow of method based on low-power consumption bluetooth technical controlling main frame disclosed in the embodiment of the present invention is illustrated Figure;
Fig. 2 is that the flow of another method based on low-power consumption bluetooth technical controlling main frame disclosed in the embodiment of the present invention is shown It is intended to;
Fig. 3 is that the flow of disclosed another method for being based on low-power consumption bluetooth technical controlling main frame of the embodiment of the present invention is shown It is intended to;
Fig. 4 is a kind of structural representation of slave disclosed in the embodiment of the present invention;
Fig. 5 is the structural representation of another slave disclosed in the embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
The embodiment of the invention discloses a kind of method and device based on low-power consumption bluetooth technical controlling main frame, can make from Machine only opens monitor function when moment arrival is monitored, and reduces power consumption during slave control main frame, extends battery in slave Use time.It is described in detail individually below.
Fig. 1 is referred to, Fig. 1 is a kind of method based on low-power consumption bluetooth technical controlling main frame disclosed in the embodiment of the present invention Schematic flow sheet.As shown in figure 1, the method may comprise steps of:
S101, slave open monitor function when the arrival of monitoring moment is detected.
In the embodiment of the present invention, slave is set up wireless blue tooth and is connected with main frame in advance, sets up wireless with main frame in first time During bluetooth connection, it is synchronous that slave and main frame enter row clock, and starts whether the Anti-Sniffer moment arrives, and the moment is monitored when detecting During arrival, slave opens monitor function, and the monitor function is used to monitor the synchronization packets of main frame transmission.
S102, when listen to main frame transmission synchronization packets when, slave with the clock information in synchronization packets be according to It is synchronous according to main frame row clock is entered.
S103, slave send the response data packet for synchronization packets to main frame.
In the embodiment of the present invention, slave sends response data packet to main frame, to indicate the wireless indigo plant between slave and main frame Tooth is connected as effectively connection.
S104, when do not stored in slave user input for main frame control instruction when, slave close monitor function.
In the embodiment of the present invention, when control instruction of the user input that is stored with slave for main frame, slave is first Connected by wireless blue tooth and control instruction is sent to main frame, so that main frame performs Action Events corresponding with control instruction, so Afterwards, slave closes monitor function, to save the power consumption of slave.
S106, slave open monitor function when next monitoring moment arrival is detected.
In the embodiment of the present invention, next monitoring moment (i.e. detects from upper one monitoring moment in step S101 Monitor the moment) start, the moment connected after the T of interval is preset by m, wherein, m is more than or equal to 1 and less than or equal to n+1's Integer, n is the number of times that the slave for pre-setting ignores default connection interval T.
In the embodiment of the present invention, when m is less than n+1, then slave is monitoring the moment (i.e. detection in step S101 from upper one To the monitoring moment) start, (walked to monitoring the moment from upper one by the first moment after the default connection interval T of m-1 The monitoring moment detected in rapid S101) start, preset by m in the time period at the second moment after the T of connection interval, from Machine receives the control instruction for main frame of user input, and initiates the moment of next connection event (i.e. from upper in main frame One monitoring moment starts, presets the moment connected after the T of interval by m is individual) unlatching monitor function, and sent out main frame is being listened to Enter with main frame row clock during the synchronization packets sent synchronous, and by control instruction by wireless blue tooth linkup transmit to main frame.
In the embodiment of the present invention, slave is spaced T with default connection that be stored with main frame, and when slave and main frame are carried out After clock synchronization, main frame starts timing with slave, and as the default connection interval T of main frame timing, main frame sends same step number to slave According to bag, after slave timing default connection interval T, if do not received in default connection interval T user input for main frame Control instruction, then slave be not turned on the monitor function of slave, that is, ignore main frame transmission synchronization packets, if slave is once The control instruction for main frame that user input is not received in the continuous n after the moment default connection interval T is monitored, then upper Monitor function is closed after stating a monitoring moment, and is always maintained at supervising within the ensuing n time period of default connection interval T The closed mode of auditory function, and since it is above-mentioned once monitor the moment, by the moment after the default connection interval T of n+1 be from Machine new monitoring moment once, slave reopens monitor function at the new monitoring moment once.
Optionally, if not hearing synchronization packets at the above-mentioned new monitoring moment once, from the new monitoring once Moment starts, is spaced in the time period of T by continuous h default connection, and per one default connection interval T of timing, slave can Monitor function is opened, if within the continuous h time period of default connection interval T, slave is opening each moment of monitor function Synchronization packets are not heard, and slave then assert that the wireless blue tooth and main frame between is connected as invalid connection, wherein, (n+1+ H) it is the integer more than or equal to 0 that * T are equal to the maximum time interval and h that do not hear synchronization packets pre-set in slave. When slave identification wireless blue tooth is connected as invalid connection, the wireless blue tooth that slave can be re-established actively between main frame connects Connect, it is also possible to export the prompt message for pointing out user radio bluetooth connection to be invalid connection to user so that user according to Self-demand decides whether to re-establish the wireless blue tooth connection between slave and main frame, and optionally, prompt message can be language Any one in sound prompt message, text prompt information and vibration prompt information, the embodiment of the present invention is not limited.
Optionally, the value for presetting connection interval T can be the smaller value that low-power consumption bluetooth agreement is allowed, and can so make Slave receive user input for main frame control instruction when control instruction is quickly sent to main frame so that main frame and Shi Zhihang Action Events corresponding with control instruction, it is ensured that the experience of user.
In the embodiment of the present invention, slave opens monitor function when moment arrival is monitored, and is listening to main frame transmission With the clock information in synchronization packets it is synchronous according to main frame row clock is entered during synchronization packets, and is sent to main frame and be directed to The response data packet of synchronization packets, when do not stored in slave user input for main frame control instruction when, slave close Monitor function, and detect next monitoring moment arrive when open monitor function, wherein, next monitoring moment is from upper One monitoring moment starts, is spaced the moment after T by m default connection, and n is that the slave for pre-setting ignores default connection It is spaced the number of times of T.Implement the embodiment of the present invention can make slave only monitor the moment arrive when open monitor function, reduce from Power consumption during machine control main frame, extends the use time of battery in slave.
Fig. 2 is referred to, Fig. 2 is another side based on low-power consumption bluetooth technical controlling main frame disclosed in the embodiment of the present invention The schematic flow sheet of method.As shown in Fig. 2 the method may comprise steps of:
Whether S201, slave Anti-Sniffer moment arrive.
In the embodiment of the present invention, if the testing result of step S201 is yes, slave performs step S202, if step S201 Testing result be no, then slave can continue executing with step S201.
S202, slave open monitor function.
S203, when listen to main frame transmission synchronization packets when, slave with the clock information in synchronization packets be according to It is synchronous according to main frame row clock is entered.
S204, slave send the response data packet for synchronization packets to main frame.
In the embodiment of the present invention, slave sends response data packet to main frame, to indicate the wireless indigo plant between slave and main frame Tooth is connected as effectively connection.
The control instruction for main frame of S205, the user input that whether is stored with from machine testing slave.
In the embodiment of the present invention, if the testing result of step S205 is yes, slave performs step S206, if step S205 Testing result be no, then slave performs step S207.
S206, slave are connected by the wireless blue tooth set up with main frame in advance and send control instruction to main frame.
S207, slave close monitor function.
In the embodiment of the present invention, slave continues executing with step S201 after performing step S207.
Implementing the embodiment of the present invention can make slave only open monitor function when moment arrival is monitored, and reduce slave control Power consumption during main frame processed, extends the use time of battery in slave, and when be stored with slave control instruction when, by wireless Control instruction is sent to main frame by bluetooth connection, so that main frame performs Action Events corresponding with control instruction in time, it is ensured that The experience of user.
Fig. 3 is referred to, Fig. 3 is disclosed another side based on low-power consumption bluetooth technical controlling main frame of the embodiment of the present invention The schematic flow sheet of method.As shown in figure 3, the method may comprise steps of:
Whether S301, slave Anti-Sniffer moment arrive.
In the embodiment of the present invention, if the testing result of step S301 is yes, slave performs step S302, if step S301 Testing result be no, then slave can continue executing with step S301.
S302, slave open monitor function.
S303, slave detect whether to listen to synchronization packets.
In the embodiment of the present invention, if the testing result of step S303 is yes, slave can be assumed that between slave and main frame Wireless blue tooth be connected as effectively connection, slave performs step S304, if the testing result of step S303 is no, slave can be with Assert that the wireless blue tooth between slave and main frame is connected as invalid connection, slave performs step S310.
S304, slave are synchronous according to main frame row clock is entered with the clock information in synchronization packets.
S305, slave send the response data packet for synchronization packets to main frame.
The control instruction for main frame of S306, the user input that whether is stored with from machine testing slave.
In the embodiment of the present invention, if the testing result of step S306 is yes, slave performs step S307, if step S306 Testing result be no, then slave performs step S308.
S307, slave send control instruction by being connected with the wireless blue tooth that main frame is set up to main frame.
S308, slave close monitor function.
S309, slave receive the control instruction for main frame of user input, and control store instruction.
S310, slave export the prompt message for pointing out wireless blue tooth to be connected as invalid connection to user.
In the embodiment of the present invention, when slave is not when the synchronization packets of main frame transmission are heard at the monitoring moment, slave can Invalid connection is connected as with the wireless blue tooth assert between slave and main frame, then slave is exported for pointing out wireless blue tooth to user The prompt message of invalid connection is connected as, so that user decides whether to re-establish between slave and main frame according to self-demand Wireless blue tooth is connected.
S311, slave receive response message of the user for prompt message input.
In the embodiment of the present invention, response message is used to indicate whether slave re-establishes the company of the wireless blue tooth between main frame Connect, and when response message indicates the wireless blue tooth that slave is re-established between main frame to be connected, slave performs step S312.
The wireless blue tooth that S312, slave are re-established between main frame is connected.
In the embodiment of the present invention, slave can perform step S307 after having performed S312.
Implementing the embodiment of the present invention can make slave only open monitor function when moment arrival is monitored, and reduce slave control Power consumption during main frame processed, extends the use time of battery in slave, when be stored with slave control instruction when, by wireless blue Control instruction is sent to main frame by tooth connection, so that main frame performs Action Events corresponding with control instruction in time, it is ensured that use The experience at family, when slave is not when the synchronization packets of main frame transmission are heard at the monitoring moment, exports for pointing out nothing to user Line bluetooth connection is the prompt message of invalid connection, so that user decides whether to re-establish slave and main frame according to self-demand Between wireless blue tooth connection, improve Consumer's Experience.
Fig. 4 is referred to, Fig. 4 is a kind of structural representation of slave disclosed in the embodiment of the present invention.As shown in figure 4, should be from Machine 400 can include detection unit 401, monitor function control unit 402, synchronization unit 403 and communication unit 404, wherein:
Whether detection unit 401 arrives for the Anti-Sniffer moment.
In the embodiment of the present invention, slave 400 is set up wireless blue tooth and is connected with main frame in advance, and nothing is set up with main frame in first time During line bluetooth connection, it is synchronous that slave 400 and main frame enter row clock, and starts whether the Anti-Sniffer moment arrives, when detecting prison Listen when arriving constantly, slave 400 opens monitor function, the monitor function is used to monitor the synchronization packets of main frame transmission.
Monitor function control unit 402 is used to, when detection unit 401 detects the monitoring moment and arrives, open and monitor work( Energy.
Synchronization unit 403 is used for when slave 400 listens to the synchronization packets of main frame transmission, with synchronization packets Clock information is synchronous according to main frame row clock is entered.
Communication unit 404 is used to send the response data packet for synchronization packets to main frame.
In the embodiment of the present invention, slave 400 sends response data packet by communication unit 404 to main frame, to indicate slave Wireless blue tooth between 400 and main frame is connected as effectively connection.
Monitor function control unit 402 can be also used for not stored in slave 400 control for main frame of user input During system instruction, monitor function is closed.
Detection unit 401 can be also used for detecting whether next monitoring moment arrives.
Monitor function control unit 402 can be also used for when detection unit 401 detects next monitoring moment and arrives, Open monitor function.
In the embodiment of the present invention, next monitoring moment is since upper one is monitored the moment, by between m default connection Moment after T, wherein, m is the integer more than or equal to 1 and less than or equal to n+1, and n is that the slave 400 for pre-setting ignores pre- If the number of times of connection interval T.
Optionally, the value for presetting connection interval T can be the smaller value that low-power consumption bluetooth agreement is allowed, and can so make Slave 400 receive user input for main frame control instruction when control instruction is quickly sent to main frame so that main Machine performs Action Events corresponding with control instruction in time, it is ensured that the experience of user.
Implementing the embodiment of the present invention can make slave only open monitor function when moment arrival is monitored, and reduce slave control Power consumption during main frame processed, extends the use time of battery in slave.
Fig. 5 is referred to, Fig. 5 is the structural representation of another slave disclosed in the embodiment of the present invention.As shown in figure 5, should Slave 500 can include wireless blue tooth connection unit 501, detection unit 502, monitor function control unit 503, synchronization unit 504th, the first communication unit 505, the second communication unit 506 and memory cell 507, wherein:
Wireless blue tooth connection unit 501 is used to set up and the wireless blue tooth connection between main frame.
Whether detection unit 502 arrives for the Anti-Sniffer moment.
Monitor function control unit 503 is used to, when detection unit 502 detects the monitoring moment and arrives, open and monitor work( Energy.
Synchronization unit 504 is used for when slave 500 listens to the synchronization packets of main frame transmission, with synchronization packets Clock information is synchronous according to main frame row clock is entered.
First communication unit 505 is used to send the response data packet for synchronization packets to main frame.
Second communication unit 506 is used to receive the control instruction for main frame of user input.
Memory cell 507 is used to store the control instruction that the second communication unit 506 is received.
Monitor function control unit 503 can be also used for when be not stored with memory cell 507 control instruction when, close prison Auditory function.
Detection unit 502 can be also used for detecting whether next monitoring moment arrives.
Monitor function control unit 503 can be also used for when detection unit 502 detects next monitoring moment and arrives, Open monitor function.
In the embodiment of the present invention, next monitoring moment is since upper one is monitored the moment, by between m default connection Moment after T, wherein, m is the integer more than or equal to 1 and less than or equal to n+1, and n is that the slave 500 for pre-setting ignores pre- If the number of times of connection interval T.
Used as a kind of optional implementation method, the first communication unit 505 can be also used for being stored with memory cell 507 User input for main frame control instruction when, the wireless blue tooth set up by wireless blue tooth connection unit 501 and main frame is connected Connect and send control instruction to main frame, so that main frame performs Action Events corresponding with control instruction.
Used as a kind of optional implementation method, the second communication unit 506 can be also used for when m is less than n+1, from upper one It is individual monitor the moment start, by the first moment after the default connection interval T of m-1 to since upper one is monitored the moment, pass through In the time period at the second moment crossed after m default connection interval T, the control instruction for main frame of user input is received, Memory cell 507 can be also used for storing the control instruction that the second communication unit 506 is received.
As a kind of optional implementation method, when the second communication unit 506 is since upper one is monitored the moment, by m- The first moment after 1 default connection interval T is to after since upper one is monitored the moment, by m default connection interval T The second moment time period in, receive user input for main frame control instruction when, and slave 500 from upper one prison Listen when starting constantly, being not detected by the synchronization packets of main frame transmission by the moment after the default connection interval T of m, wirelessly The wireless blue tooth that bluetooth connection unit 501 can also be re-established between main frame is connected, and can so ensure that wireless blue tooth connects Effectively connection is connected in, and can make slave 500 that control instruction timely are sent into main frame by valid wireless bluetooth connection, So that main frame performs Action Events corresponding with control instruction in time, the experience of user is improve.
As a kind of optional implementation method, the second communication unit 506 can be also used for when the second communication unit 506 from A upper monitoring moment starts, is opened to from upper one monitoring moment by the first moment after m-1 default connection interval T Begin, in the time period by the second moment after m default connection interval T, receive the control for main frame of user input During system instruction, and slave 500 is not detected since upper one is monitored the moment, by the moment after m default connection interval T To main frame send synchronization packets when, export the prompt message for pointing out wireless blue tooth to be connected as invalid connection to user, And response message of the user for prompt message input is received, wherein, response message is used to indicate wireless blue tooth connection unit 501 Whether the wireless blue tooth re-established between main frame is connected.
Optionally, wireless blue tooth connection unit 501 can be also used for indicating wireless blue tooth connection unit 501 when response message When re-establishing the wireless blue tooth between main frame and being connected, the wireless blue tooth re-established between main frame is connected.
Implementing the embodiment of the present invention can make slave only open monitor function when moment arrival is monitored, and reduce slave control Power consumption during main frame processed, extends the use time of battery in slave, when be stored with slave control instruction when, by wireless blue Control instruction is sent to main frame by tooth connection, so that main frame performs Action Events corresponding with control instruction in time, it is ensured that use The experience at family, when slave is not when the synchronization packets of slave transmission are heard at the monitoring moment, exports for pointing out nothing to user Line bluetooth connection is the prompt message of invalid connection, so that user decides whether to re-establish slave and main frame according to self-demand Between wireless blue tooth connection, improve Consumer's Experience.
It should be noted that in the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, in certain embodiment The part being not described in, may refer to the associated description of other embodiment.Secondly, those skilled in the art should also know Know, embodiment described in this description belongs to preferred embodiment, involved action and unit not necessarily this hair Necessary to bright.
Step in present invention method can according to actual needs carry out order adjustment, merge and delete.
Unit in embodiment of the present invention slave can according to actual needs be merged, divides and deleted.
Unit described in the embodiment of the present invention can be by universal integrated circuit, such as CPU (Central Processing Unit, central processing unit), or by ASIC (Application Specific Integrated Circuit, it is special integrated Circuit) realize.
One of ordinary skill in the art will appreciate that all or part of flow in realizing above-described embodiment method, can be The hardware of correlation is instructed to complete by computer program, described program can be stored in computer read/write memory medium In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
A kind of method and device based on low-power consumption bluetooth technical controlling main frame for being provided the embodiment of the present invention above It is described in detail, instantiation used herein is set forth to principle of the invention and implementation method, above reality The explanation for applying example is only intended to help and understands the method for the present invention and its core concept;Simultaneously for the general technology of this area Personnel, according to thought of the invention, will change in specific embodiments and applications, in sum, this theory Bright book content should not be construed as limiting the invention.

Claims (10)

1. a kind of method based on low-power consumption bluetooth technical controlling main frame, it is characterised in that including:
Slave opens monitor function when the arrival of monitoring moment is detected;
When the first synchronization packets of main frame transmission are listened to, the slave is believed with the clock in first synchronization packets Breath is that row clock is synchronous according to entering with the main frame, and sends the number of responses for first synchronization packets to the main frame According to bag, the main frame is advance to set up the main frame that wireless blue tooth is connected with the slave;The response data packet is used to indicate institute State the wireless blue tooth between slave and the main frame and be connected as effectively connection;
When do not stored in the slave user input for the main frame the first control instruction when, the slave is closed described Monitor function, and detect next monitoring moment arrive when open the monitor function, next monitoring moment is Since upper one is monitored the moment, by the moment after the default connection interval T of m, the m be more than or equal to 1 and less than etc. In the integer of n+1, the n is the number of times that the slave for pre-setting ignores the default connection interval T;
Wherein, slave is spaced T with default connection that be stored with main frame, and when slave and main frame enter row clock it is synchronous after, main frame Start timing with slave, as the default connection interval T of main frame timing, main frame sends synchronization packets to slave.
2. method according to claim 1, it is characterised in that methods described also includes:
When the first control instruction of the user input that is stored with the slave for the main frame, the slave is by described Wireless blue tooth is connected and sends first control instruction to the main frame, so that the main frame is performed and first control instruction Corresponding Action Events;
The slave closes the monitor function, and opens the monitor function when next monitoring moment arrival is detected.
3. method according to claim 1, it is characterised in that when the m is less than n+1, in a monitoring from described Moment starts, by the first moment after the m-1 default connection interval T to since described upper one is monitored the moment, In time period by the second moment after the described default connection interval T of m, the slave receive user input for institute The second control instruction of main frame is stated, and stores second control instruction;
Methods described also includes:
When the slave listens to the second synchronization packets that the main frame sends, the slave is with second synchrodata Clock information in bag is synchronous according to the main frame row clock is entered, and is sent to the main frame and be directed to the described second same step number According to the response data packet of bag;
The slave is connected by the wireless blue tooth and sends second control instruction to the main frame, so that the main frame is held Row Action Events corresponding with second control instruction.
4. method according to claim 3, it is characterised in that methods described also includes:
When the slave does not hear the second synchronization packets that the main frame sends, the slave is re-established and the master Wireless blue tooth connection between machine, and connected to main frame transmission second control by the wireless blue tooth for re-establishing System instruction, so that the main frame performs Action Events corresponding with second control instruction.
5. method according to claim 4, it is characterised in that when the slave does not hear the main frame sends second During synchronization packets, the slave is re-established before being connected with the wireless blue tooth between the main frame, and methods described also includes:
The slave exports the prompt message for pointing out the wireless blue tooth to be connected as invalid connection to user;
The slave receives response message of the user for prompt message input, the response message be used to indicating it is described from Whether machine re-establishes is connected with the wireless blue tooth between the main frame;
When the response message instruction slave is re-established to be connected with the wireless blue tooth between the main frame, the slave The operation being connected with the wireless blue tooth between the main frame is re-established described in performing.
6. a kind of slave, it is characterised in that the slave include detection unit, monitor function control unit, synchronization unit and First communication unit, wherein:
Whether the detection unit, arrive for the Anti-Sniffer moment;
The monitor function control unit, for when the detection unit detects the monitoring moment and arrives, opening monitor function;
The synchronization unit, it is same with described first during for the first synchronization packets that main frame transmission is listened to when the slave Clock information in step data bag is synchronous according to the main frame row clock is entered, and the main frame with the slave to set up in advance The main frame of wireless blue tooth connection;
First communication unit, for sending the response data packet for first synchronization packets to the main frame;Institute Response data packet is stated for indicating the wireless blue tooth between the slave and the main frame to be connected as effectively connection;
The monitor function control unit, be additionally operable to not store in the slave user input for the first of the main frame During control instruction, the monitor function is closed;
The detection unit, is additionally operable to detect whether next monitoring moment arrives;
The monitor function control unit, is additionally operable to, when the detection unit detects next monitoring moment and arrives, open The monitor function, next monitoring moment be since upper one is monitored the moment, by the default connection interval T of m it Moment afterwards, the m is the integer more than or equal to 1 and less than or equal to n+1, and the n is that the slave for pre-setting ignores institute State the number of times of default connection interval T;
Wherein, slave is spaced T with default connection that be stored with main frame, and when slave and main frame enter row clock it is synchronous after, main frame Start timing with slave, as the default connection interval T of main frame timing, main frame sends synchronization packets to slave.
7. slave according to claim 6, it is characterised in that first communication unit, is additionally operable to when in the slave The user input that is stored with for the main frame the first control instruction when, by the wireless blue tooth connect to the main frame send out First control instruction is sent, so that the main frame performs Action Events corresponding with first control instruction.
8. slave according to claim 6, it is characterised in that the slave also includes that the second communication unit and storage are single Unit, wherein:
Second communication unit, for when the m is less than n+1, monitoring the moment at one since described, by m-1 The first moment after the individual default connection interval T is to since described upper one is monitored the moment, by the m default company Connect in the time period at the second moment after the T of interval, receive second control instruction for the main frame of user input;
The memory cell, for storing second control instruction;
The synchronization unit, is additionally operable to when the slave listens to the second synchronization packets that the main frame sends, with described Clock information in second synchronization packets is synchronous according to the main frame row clock is entered;
First communication unit, is additionally operable to be sent to the main frame response data packet for being directed to second synchronization packets, And connected by the wireless blue tooth and send second control instruction to the main frame, so that the main frame is performed and described the The corresponding Action Events of two control instructions.
9. slave according to claim 8, it is characterised in that the slave also includes wireless blue tooth connection unit, wherein:
The wireless blue tooth connection unit, for not hearing the second synchronization packets that the main frame sends when the slave When, re-establish and be connected with the wireless blue tooth between the main frame;
First communication unit, is additionally operable to the wireless blue tooth by re-establishing and connects send described the to the main frame Two control instructions, so that the main frame performs Action Events corresponding with second control instruction.
10. slave according to claim 9, it is characterised in that second communication unit, is additionally operable in the slave not When listening to the second synchronization packets that the main frame sends and the wireless blue tooth connection unit is re-established and the main frame Between wireless blue tooth connection before, to user export for point out the wireless blue tooth to be connected as invalid connection prompting believe Breath, and response message of the user for prompt message input is received, the response message is used to indicate the wireless blue tooth Whether connection unit re-establishes is connected with the wireless blue tooth between the main frame;
The wireless blue tooth connection unit, is additionally operable to indicate the wireless blue tooth connection unit to re-establish when the response message When being connected with the wireless blue tooth between the main frame, re-establish and be connected with the wireless blue tooth between the main frame.
CN201410739898.4A 2014-12-08 2014-12-08 A kind of method and device based on low-power consumption bluetooth technical controlling main frame Active CN104615016B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410739898.4A CN104615016B (en) 2014-12-08 2014-12-08 A kind of method and device based on low-power consumption bluetooth technical controlling main frame

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410739898.4A CN104615016B (en) 2014-12-08 2014-12-08 A kind of method and device based on low-power consumption bluetooth technical controlling main frame

Publications (2)

Publication Number Publication Date
CN104615016A CN104615016A (en) 2015-05-13
CN104615016B true CN104615016B (en) 2017-06-30

Family

ID=53149518

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410739898.4A Active CN104615016B (en) 2014-12-08 2014-12-08 A kind of method and device based on low-power consumption bluetooth technical controlling main frame

Country Status (1)

Country Link
CN (1) CN104615016B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107820325B (en) * 2017-11-24 2020-11-24 珠海市杰理科技股份有限公司 Wireless communication method and system, computer storage medium and device
CN108091402A (en) * 2017-11-30 2018-05-29 上海京颐科技股份有限公司 A kind of medical terminal and data receiver method and device for it, storage medium
CN107947889B (en) * 2017-12-18 2019-07-02 京信通信系统(中国)有限公司 A kind of method and apparatus of clock frequency deviation calibration
CN111149313B (en) * 2018-04-04 2021-05-18 华为技术有限公司 Data transmission method and equipment
CN111342945B (en) * 2020-02-19 2022-09-27 广东乐心医疗电子股份有限公司 Master-slave communication method and device
CN111683396B (en) * 2020-05-28 2023-10-03 为麦智能科技(天津)有限公司 Information processing method, system and electronic equipment
CN114040368A (en) * 2021-10-25 2022-02-11 中通服中睿科技有限公司 Data transmission method and system based on BLE Bluetooth and Bluetooth module
CN114025406B (en) * 2021-11-04 2024-02-02 杭州老板电器股份有限公司 Communication method and device of smoke exhaust system and smoke exhaust system

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102065526B (en) * 2010-11-25 2013-07-03 北京合众天恒科技有限公司 Power-saving operation mode of wireless transceiver
GB2490974B (en) * 2011-09-08 2014-10-29 Nordic Semiconductor Asa Radio communication system
CN103249121A (en) * 2012-02-13 2013-08-14 电信科学技术研究院 Trigger control method, device and system of machine type communication terminal
CN102625428B (en) * 2012-04-24 2015-01-07 苏州摩多物联科技有限公司 Time synchronization method of wireless sensor networks
CN102821354A (en) * 2012-08-10 2012-12-12 章晓芸 Positioning and alarming system and method
WO2014029106A1 (en) * 2012-08-24 2014-02-27 华为终端有限公司 Method, device, terminal, computer program and storage medium for adjusting wake-up period of terminal
US9037086B2 (en) * 2012-11-30 2015-05-19 Mediatek Inc. Method for controlling bluetooth device for power conservation
CN103338500A (en) * 2012-12-24 2013-10-02 上海华为技术有限公司 Method, device and system for data transmission, network side equipment and terminal equipment

Also Published As

Publication number Publication date
CN104615016A (en) 2015-05-13

Similar Documents

Publication Publication Date Title
CN104615016B (en) A kind of method and device based on low-power consumption bluetooth technical controlling main frame
EP3468068B1 (en) Method for establishing classic bluetooth connection between dual-mode bluetooth devices, and dual-mode bluetooth device
JP2020014233A5 (en)
WO2009051458A3 (en) Method for operating control sleep mode in a communication system
CN113038634B (en) Wake-up signal configuration method, wake-up signal processing method and related equipment
CN108156651B (en) Switching control method and system between radio silent state and transmission state
CN102695257A (en) Terminal and power consumption optimizing method thereof
CN108777862B (en) Bluetooth transmission method, Bluetooth controller and Bluetooth device
US10701631B2 (en) Method for receiving D2D discovery information and apparatus
EP3920560A1 (en) Information transmission method, terminal device, and network-side device
WO2013023484A1 (en) Method and system for implementing drx
WO2021129508A1 (en) Wake up signal processing method, wake up signal configuration method, and related device
CN106230645A (en) A kind of for the low-consumption wireless communication means between monitoring node and aggregation gateway
CN105264970A (en) Method, device and mobile terminal for reducing power consumption
CN106465269A (en) Method and apparatus for indicating user equipment power saving mode configuration to a network
CN105872246B (en) A kind of Anti-addiction method, Anti-addiction device and terminal
CN110352616A (en) Discontinuous receiving method and device, electronic equipment and computer readable storage medium
CN110536389A (en) A kind of method, apparatus and terminal device reducing terminal device power consumption
CN107809789A (en) Communication means, communicator, access point and the website of WLAN
CN106941711A (en) Method, the device of a kind of base station and base station energy-saving with detecting user
CN104113900A (en) Dormancy control method and device of terminal device
CN106793150A (en) The method for building up and terminal of Radio Link
CN105472539A (en) Bluetooth connection transmission method based on power consumption
CN106714281A (en) Equipment wake-up method, system and equipment
CN108834204A (en) Paging method, system and the network equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: Guangdong Opel Mobile Communications Co., Ltd.