CN104318741A - Bluetooth device control method and device - Google Patents

Bluetooth device control method and device Download PDF

Info

Publication number
CN104318741A
CN104318741A CN201410559302.2A CN201410559302A CN104318741A CN 104318741 A CN104318741 A CN 104318741A CN 201410559302 A CN201410559302 A CN 201410559302A CN 104318741 A CN104318741 A CN 104318741A
Authority
CN
China
Prior art keywords
control
broadcast packet
steering order
bluetooth equipment
button
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410559302.2A
Other languages
Chinese (zh)
Other versions
CN104318741B (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.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201410559302.2A priority Critical patent/CN104318741B/en
Publication of CN104318741A publication Critical patent/CN104318741A/en
Application granted granted Critical
Publication of CN104318741B publication Critical patent/CN104318741B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention relates to a Bluetooth device control method and a Bluetooth device control device. The method comprises the following steps: judging whether control equipment is connected with the Bluetooth device or not; determining the pressed key of the control equipment when the control equipment is not connected with the Bluetooth device; generating a control broadcast packet according to the key, wherein the control broadcast packet contains a control instruction which corresponds to the key; and transmitting the control broadcast packet in a non-directed broadcast mode, parsing the control instruction by the Bluetooth device from the received control broadcast packet, and executing the control operation which corresponds to the control instruction. The method and the device disclosed by the invention are used for controlling the Bluetooth device under the condition that Bluetooth connection is not established by using a Bluetooth remote control.

Description

Bluetooth equipment control method and device
Technical field
The disclosure relates to Bluetooth technology field, particularly relates to a kind of bluetooth equipment control method and device.
Background technology
Bluetooth low energy consumption (Bluetooth Low Energy, BLE) technology is the robustness wireless technology of low cost, short distance, interoperable.The telepilot of BLE equipment uses the broadcast (Advertising) in SPEC to go to realize button operation.Broadcast can accept by all BLE equipment, this broadcast therefore can be utilized to go to realize the straighforward operation of BLE equipment, the RSSI coaptation in BLE Advertising simultaneously also can be utilized to go out opereating specification that distance limits BLE remote control equipment.
In correlation technique, the remote control of BLE equipment is sent by the form of packet after setting up link based on bluetooth, needs the operation that bluetooth is carried out at the process base of complete protocol stack.Current android equipment often adopts the mode of physical button or infrared remote control when entering upgrade-system recovery.
In correlation technique, there are the following problems: could operate after the button operation of blue Tooth remote controller all links based on bluetooth, bluetooth protocol repertory is not had at some, cannot bluetooth be used when bluetooth does not link, such as enter upgrading engineering mode (recovery) in android selection of starting shooting or be the blue Tooth remote controller that cannot use in recovery.
Summary of the invention
For overcoming Problems existing in correlation technique, disclosure embodiment provides a kind of bluetooth equipment control method and device.
According to the first aspect of disclosure embodiment, provide a kind of bluetooth equipment control method, described method comprises:
Judge whether described opertaing device connects with described bluetooth equipment;
When described opertaing device does not connect with described bluetooth equipment, determine the button that described opertaing device is pressed;
Generate according to described button and control broadcast packet, in described control broadcast packet, comprise steering order corresponding to described button;
Send described control broadcast packet with non-directional broadcast mode, described bluetooth equipment parses described steering order from the described control broadcast packet received, and performs control operation corresponding to described steering order.
In the present embodiment, the steering order being used for controlling bluetooth equipment is sent to bluetooth equipment by adopting the mode of the non-directional of Bluetooth protocol broadcast, make when do not need bluetooth link and without the need to realizing the control operation to bluetooth equipment when bluetooth protocol repertory, enter recovery in bluetooth equipment start selection or still can use blue Tooth remote controller after entering recovery, without the need to adopting the mode of physical button infrared remote control, easy to use, improve Consumer's Experience.
Optionally, describedly send described control broadcast packet with non-directional broadcast mode, comprising:
Before described button is released, sends described at least twice with non-directional broadcast mode and control broadcast packet.
In possibility, in order to avoid bluetooth equipment does not receive broadcast packet, button blue Tooth remote controller is pressed in this button d/d time period from user, continuous several times can send broadcast packet, to improve the possibility that bluetooth equipment receives broadcast packet, improve the accuracy that bluetooth equipment is controlled.
Optionally, described generation according to described button controls broadcast packet, comprising:
Obtain the steering order that described button is corresponding;
According to the mapping table of the steering order prestored and key assignments, inquire about the key assignments that described steering order is corresponding;
Generate described control broadcast packet, with key assignments described in default byte representation in described control broadcast packet.
In possibility, in broadcast packet, the key assignments that one or more byte representation steering order pre-defined is corresponding, this steering order can be the key assignments that on blue Tooth remote controller, certain button is corresponding, as for controlling party to the key assignments of button or the button value etc. for entering recovery, by adopt Bluetooth protocol non-directional broadcast mode, realize when do not need bluetooth link and without the need to realizing the control operation to bluetooth equipment when bluetooth protocol repertory.
According to the second aspect of disclosure embodiment, provide a kind of bluetooth equipment control method, described method comprises:
Receive and control broadcast packet, described control broadcast packet is the packet for controlling described bluetooth equipment that the opertaing device of described bluetooth equipment sends with non-directional broadcast mode;
Described control broadcast packet is resolved, obtains steering order;
Perform the control operation that described steering order is corresponding.
In the present embodiment, bluetooth equipment obtains steering order by the non-directional broadcast receiving Bluetooth protocol, make when do not need bluetooth link and without the need to realizing the control operation to bluetooth equipment when bluetooth protocol repertory, enter recovery in bluetooth equipment start selection or still can use blue Tooth remote controller after entering recovery, without the need to adopting the mode of physical button infrared remote control, easy to use, improve Consumer's Experience.
Optionally, when receiving at least twice identical first and controlling broadcast packet, described method also comprises:
The described first control broadcast packet that first time receives is resolved, obtains steering order, and perform control operation corresponding to described steering order;
Receive after ignoring first time described first controls broadcast packet, until receive to control from described first broadcast packet different second control broadcast packet.
In possibility, in order to avoid bluetooth equipment does not receive broadcast packet, button blue Tooth remote controller is pressed in this button d/d time period from user, blue Tooth remote controller continuous several times can send broadcast packet, bluetooth equipment only processes the broadcast packet that first time receives, and other broadcast packets received after ignoring, while raising bluetooth equipment receives the possibility of broadcast packet, ensure the accuracy that bluetooth equipment is controlled.
Optionally, described described control broadcast packet to be resolved, obtains steering order, comprising:
Extract the default byte of described control broadcast packet;
Obtain the key assignments that described default byte is corresponding;
According to the mapping table of the steering order prestored and key assignments, inquire about the steering order that described key-value pair is answered.
In possibility, in broadcast packet, the key assignments that one or more byte representation steering order pre-defined is corresponding, this steering order can be the key assignments that on blue Tooth remote controller, certain button is corresponding, as for controlling party to the key assignments of button or the button value etc. for entering recovery, bluetooth equipment by receive Bluetooth protocol non-directional broadcast obtain steering order, realize when do not need bluetooth link and without the need to realizing the control operation to bluetooth equipment when bluetooth protocol repertory.
According to the third aspect of disclosure embodiment, a kind of bluetooth equipment control device is provided, for the opertaing device of bluetooth equipment, comprises:
Judge module, for judging whether described opertaing device connects with described bluetooth equipment;
Determination module, for when described opertaing device does not connect with described bluetooth equipment, determines the button that described opertaing device is pressed;
Generation module, controlling broadcast packet for generating according to described button, comprising steering order corresponding to described button in described control broadcast packet;
Sending module, for sending described control broadcast packet with non-directional broadcast mode, described bluetooth equipment parses described steering order from the described control broadcast packet received, and performs control operation corresponding to described steering order.
Optionally, described sending module, before being released at described button, sending described at least twice with non-directional broadcast mode and controls broadcast packet.
Optionally, described generation module comprises:
Obtain submodule, for obtaining steering order corresponding to described button;
Inquiry submodule, for the mapping table according to the steering order prestored and key assignments, inquires about the key assignments that described steering order is corresponding;
Generate submodule, for generating described control broadcast packet, with key assignments described in default byte representation in described control broadcast packet.
According to the fourth aspect of disclosure embodiment, a kind of bluetooth equipment control device is provided, for bluetooth equipment, comprises:
Receiver module, for receiving control broadcast packet, described control broadcast packet is the packet for controlling described bluetooth equipment that the opertaing device of described bluetooth equipment sends with non-directional broadcast mode;
Parsing module, for resolving described control broadcast packet, obtains steering order;
Execution module, for performing control operation corresponding to described steering order.
Optionally, described parsing module, for when receiving at least twice identical first and controlling broadcast packet, to first time receive described first control broadcast packet and resolve, obtain steering order; Receive after ignoring first time described first controls broadcast packet, until receive to control from described first broadcast packet different second control broadcast packet;
Described execution module, for performing control operation corresponding to described steering order.
Optionally, described parsing module comprises:
Extract submodule, for extracting the default byte of described control broadcast packet;
Obtain submodule, for obtaining key assignments corresponding to described default byte;
Inquiry submodule, for the mapping table according to the steering order prestored and key assignments, inquires about the steering order that described key-value pair is answered.
According to the 5th aspect of disclosure embodiment, a kind of bluetooth equipment control device is provided, comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Judge whether described opertaing device connects with described bluetooth equipment;
When described opertaing device does not connect with described bluetooth equipment, determine the button that described opertaing device is pressed;
Generate according to described button and control broadcast packet, in described control broadcast packet, comprise steering order corresponding to described button;
Send described control broadcast packet with non-directional broadcast mode, described bluetooth equipment parses described steering order from the described control broadcast packet received, and performs control operation corresponding to described steering order.
According to the 6th aspect of disclosure embodiment, a kind of bluetooth equipment control device is provided, comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Receive and control broadcast packet, described control broadcast packet is the packet for controlling described bluetooth equipment that the opertaing device of described bluetooth equipment sends with non-directional broadcast mode;
Described control broadcast packet is resolved, obtains steering order;
Perform the control operation that described steering order is corresponding.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in instructions and to form the part of this instructions, shows and meets embodiment of the present disclosure, and is used from instructions one and explains principle of the present disclosure.
Fig. 1 is the process flow diagram of a kind of bluetooth equipment control method according to an exemplary embodiment;
Fig. 2 is the process flow diagram of a kind of bluetooth equipment control method according to an exemplary embodiment;
Fig. 3 is the process flow diagram of a kind of bluetooth equipment control method according to an exemplary embodiment;
Fig. 4 is the process flow diagram of a kind of bluetooth equipment control method according to another exemplary embodiment;
Fig. 5 is the block diagram of a kind of bluetooth equipment control device according to an exemplary embodiment;
Fig. 6 is the block diagram of the generation module according to an exemplary embodiment;
Fig. 7 is the block diagram of a kind of bluetooth equipment control device according to an exemplary embodiment;
Fig. 8 is the block diagram of the parsing module according to an exemplary embodiment;
Fig. 9 is the block diagram of a kind of device 900 for bluetooth equipment control according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the disclosure.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present disclosure are consistent.
Fig. 1 is the process flow diagram of a kind of bluetooth equipment control method according to an exemplary embodiment, and as shown in Figure 1, bluetooth equipment control method is used for the opertaing device of bluetooth equipment as in blue Tooth remote controller, comprises the following steps.
In step s 11, judge whether opertaing device connects with bluetooth equipment;
In step s 12, when opertaing device does not connect with bluetooth equipment, determine the button that opertaing device is pressed;
In step s 13, generate according to button and control broadcast packet, control to comprise steering order corresponding to button in broadcast packet;
In step S14, send with non-directional broadcast mode and control broadcast packet, bluetooth equipment parses steering order from the control broadcast packet received, and performs control operation corresponding to steering order.
Such as, adopt the TV box that blue Tooth remote controller controls, by monitoring the broadcast packet that blue Tooth remote controller sends, android start shooting selection enter upgrading recovery or in recovery time, when need not Bluetooth pairing, there is no a bluetooth protocol repertory, perform the control operation of blue Tooth remote controller.First blue Tooth remote controller judges whether that setting up bluetooth with TV box is connected, and does not set up if bluetooth connects, then adopt the mode of the non-directional broadcast corresponding steering order that user pushed button to broadcast.After TV box listens to this broadcast packet, perform this steering order.
In the present embodiment, the steering order being used for controlling bluetooth equipment is sent to bluetooth equipment by adopting the mode of the non-directional of Bluetooth protocol broadcast, make when do not need bluetooth link and without the need to realizing the control operation to bluetooth equipment when bluetooth protocol repertory, enter recovery in bluetooth equipment start selection or still can use blue Tooth remote controller after entering recovery, without the need to adopting the mode of physical button infrared remote control, easy to use, improve Consumer's Experience.
Fig. 2 is the process flow diagram of a kind of bluetooth equipment control method according to an exemplary embodiment, and as shown in Figure 2, optionally, above-mentioned steps S13 comprises:
In the step s 21, steering order corresponding to button is obtained;
In step S22, according to the mapping table of the steering order prestored and key assignments, the key assignments that inquiry steering order is corresponding;
In step S23, generate and control broadcast packet, control in broadcast packet with default byte representation key assignments.
In possibility, in broadcast packet, the key assignments that one or more byte representation steering order pre-defined is corresponding, this steering order can be the key assignments that on blue Tooth remote controller, certain button is corresponding, as for controlling party to the key assignments of button or the button value etc. for entering recovery, by adopt Bluetooth protocol non-directional broadcast mode, realize when do not need bluetooth link and without the need to realizing the control operation to bluetooth equipment when bluetooth protocol repertory.
Optionally, step S14 comprises:
Before button is released, sends at least twice with non-directional broadcast mode and control broadcast packet.
In possibility, in order to avoid bluetooth equipment does not receive broadcast packet, button blue Tooth remote controller is pressed in this button d/d time period from user, continuous several times can send broadcast packet, to improve the possibility that bluetooth equipment receives broadcast packet, improve the accuracy that bluetooth equipment is controlled.
Fig. 3 is the process flow diagram of a kind of bluetooth equipment control method according to an exemplary embodiment, and as shown in Figure 3, bluetooth equipment control method is used for, in bluetooth equipment, comprising the following steps.
In step S31, receive and control broadcast packet, control broadcast packet is the packet for controlling bluetooth equipment that the opertaing device of bluetooth equipment sends with non-directional broadcast mode;
In step s 32, control broadcast packet is resolved, obtains steering order;
In step S33, perform the control operation that steering order is corresponding.
Such as, TV box opens Bluetooth chip in the Booting sequence of System guides, Bluetooth chip is made to be in BLE scan enable (Scan enable) state, can go to monitor bluetooth non-directional broadcast mode in uboot Booting sequence, resolve specific byte in broadcast packet, judge whether the steering order receiving blue Tooth remote controller, if comprise the button value for entering recovery in broadcast packet, TV box is selected to enter recovery, and also can know the address designation bt_addr of Bluetooth broadcast equipment simultaneously.
In the present embodiment, bluetooth equipment obtains steering order by the non-directional broadcast receiving Bluetooth protocol, make when do not need bluetooth link and without the need to realizing the control operation to bluetooth equipment when bluetooth protocol repertory, enter recovery in bluetooth equipment start selection or still can use blue Tooth remote controller after entering recovery, without the need to adopting the mode of physical button infrared remote control, easy to use, improve Consumer's Experience.
Optionally, when receiving at least twice identical first and controlling broadcast packet, the method also comprises:
The first control broadcast packet that first time receives is resolved, obtains steering order, and perform control operation corresponding to steering order;
Receive after ignoring first time first controls broadcast packet, until receive to control from first broadcast packet different second control broadcast packet.
In possibility, in order to avoid bluetooth equipment does not receive broadcast packet, button blue Tooth remote controller is pressed in this button d/d time period from user, blue Tooth remote controller continuous several times can send broadcast packet, bluetooth equipment only processes the broadcast packet that first time receives, and other broadcast packets received after ignoring, while raising bluetooth equipment receives the possibility of broadcast packet, ensure the accuracy that bluetooth equipment is controlled.
Fig. 4 is the process flow diagram of a kind of bluetooth equipment control method according to another exemplary embodiment, as shown in Figure 4, optionally, resolves, obtain steering order, comprising control broadcast packet:
In step S41, extract the default byte controlling broadcast packet;
In step S42, obtain and preset key assignments corresponding to byte;
In step S43, according to the mapping table of the steering order prestored and key assignments, the steering order that inquiry key assignments is corresponding.
In possibility, in broadcast packet, the key assignments that one or more byte representation steering order pre-defined is corresponding, this steering order can be the key assignments that on blue Tooth remote controller, certain button is corresponding, as for controlling party to the key assignments of button or the button value etc. for entering recovery, bluetooth equipment by receive Bluetooth protocol non-directional broadcast obtain steering order, realize when do not need bluetooth link and without the need to realizing the control operation to bluetooth equipment when bluetooth protocol repertory.
Fig. 5 is the block diagram of a kind of bluetooth equipment control device according to an exemplary embodiment.As shown in Figure 5, this device is used for the opertaing device of bluetooth equipment, comprises judge module 51, determination module 52, generation module 53 and sending module 54.
Judge module 51 is configured to judge whether opertaing device connects with bluetooth equipment;
Determination module 52 is configured to when opertaing device does not connect with bluetooth equipment, determines the button that opertaing device is pressed;
Generation module 53 is configured to generate according to button control broadcast packet, controls to comprise steering order corresponding to button in broadcast packet;
Sending module 54 is configured to send described control broadcast packet with non-directional broadcast mode, and described bluetooth equipment parses described steering order from the described control broadcast packet received, and performs control operation corresponding to described steering order.
Optionally, described sending module 54 is configured to before described button is released, and sends described at least twice control broadcast packet with non-directional broadcast mode.
Fig. 6 is the block diagram of the generation module according to an exemplary embodiment.As shown in Figure 6, optionally, generation module 54 comprises:
Obtain submodule 61 to be configured to obtain steering order corresponding to described button;
Inquiry submodule 62 is configured to the mapping table according to the steering order prestored and key assignments, inquires about the key assignments that described steering order is corresponding;
Generate submodule 63 to be configured to generate described control broadcast packet, with key assignments described in default byte representation in described control broadcast packet.
Fig. 7 is the block diagram of a kind of bluetooth equipment control device according to an exemplary embodiment.As shown in Figure 7, this device is used for bluetooth equipment, comprising: receiver module 71, parsing module 72 and execution module 73.
Receiver module 71 is configured to receive and controls broadcast packet, and described control broadcast packet is the packet for controlling described bluetooth equipment that the opertaing device of described bluetooth equipment sends with non-directional broadcast mode;
Parsing module 72 is configured to resolve described control broadcast packet, obtains steering order;
Execution module 73 is configured to perform control operation corresponding to described steering order.
Optionally, parsing module 72 is configured to when receiving at least twice identical first and controlling broadcast packet, to first time receive described first control broadcast packet and resolve, obtain steering order; Receive after ignoring first time described first controls broadcast packet, until receive to control from described first broadcast packet different second control broadcast packet; Execution module 73 is configured to perform control operation corresponding to described steering order.
Fig. 8 is the block diagram of the parsing module according to an exemplary embodiment.As shown in Figure 8, optionally, parsing module 72 comprises:
Extract submodule 81 and be configured to the default byte extracting described control broadcast packet;
Obtain submodule 82 to be configured to obtain key assignments corresponding to described default byte;
Inquiry submodule 83 is configured to the mapping table according to the steering order prestored and key assignments, inquires about the steering order that described key-value pair is answered.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
The disclosure also provides a kind of bluetooth equipment control device, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Judge whether described opertaing device connects with described bluetooth equipment;
When described opertaing device does not connect with described bluetooth equipment, determine the button that described opertaing device is pressed;
Generate according to described button and control broadcast packet, in described control broadcast packet, comprise steering order corresponding to described button;
Send described control broadcast packet with non-directional broadcast mode, described bluetooth equipment parses described steering order from the described control broadcast packet received, and performs control operation corresponding to described steering order.
The disclosure also provides a kind of bluetooth equipment control device, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Receive and control broadcast packet, described control broadcast packet is the packet for controlling described bluetooth equipment that the opertaing device of described bluetooth equipment sends with non-directional broadcast mode;
Described control broadcast packet is resolved, obtains steering order;
Perform the control operation that described steering order is corresponding.
Fig. 9 is the block diagram of a kind of device 900 for bluetooth equipment control according to an exemplary embodiment.Such as, device 900 can be mobile phone, computing machine, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc.
As shown in Figure 9, device 900 can comprise following one or more assembly: processing components 902, storer 904, power supply module 906, multimedia groupware 908, audio-frequency assembly 910, the interface 912 of I/O (I/O), sensor module 914, and communications component 916.
The integrated operation of the usual control device 900 of processing components 902, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 902 can comprise one or more processor 920 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 902 can comprise one or more module, and what be convenient between processing components 902 and other assemblies is mutual.Such as, processing components 902 can comprise multi-media module, mutual with what facilitate between multimedia groupware 908 and processing components 902.
Storer 904 is configured to store various types of data to be supported in the operation of equipment 900.The example of these data comprises for any application program of operation on device 900 or the instruction of method, contact data, telephone book data, message, picture, video etc.Storer 904 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), ROM (read-only memory) (ROM), magnetic store, flash memory, disk or CD.
The various assemblies that power supply module 906 is device 900 provide electric power.Power supply module 906 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 900 and be associated.
Multimedia groupware 908 is included in the screen providing an output interface between described device 900 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 908 comprises a front-facing camera and/or post-positioned pick-up head.When equipment 900 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 910 is configured to export and/or input audio signal.Such as, audio-frequency assembly 910 comprises a microphone (MIC), and when device 900 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal received can be stored in storer 904 further or be sent via communications component 916.In certain embodiments, audio-frequency assembly 910 also comprises a loudspeaker, for output audio signal.
I/O interface 912 is for providing interface between processing components 902 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor module 914 comprises one or more sensor, for providing the state estimation of various aspects for device 900.Such as, sensor module 914 can detect the opening/closing state of equipment 900, the relative positioning of assembly, such as described assembly is display and the keypad of device 900, the position of all right pick-up unit 900 of sensor module 914 or device 900 1 assemblies changes, the presence or absence that user contacts with device 900, the temperature variation of device 900 orientation or acceleration/deceleration and device 900.Sensor module 914 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 914 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor module 914 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 916 is configured to the communication being convenient to wired or wireless mode between device 900 and other equipment.Device 900 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 916 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communications component 916 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 900 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD) (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the storer 904 of instruction, above-mentioned instruction can perform said method by the processor 920 of device 900.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of mobile terminal, make mobile terminal can perform a kind of bluetooth equipment control method, described method comprises:
Judge whether described opertaing device connects with described bluetooth equipment;
When described opertaing device does not connect with described bluetooth equipment, determine the button that described opertaing device is pressed;
Generate according to described button and control broadcast packet, in described control broadcast packet, comprise steering order corresponding to described button;
Send described control broadcast packet with non-directional broadcast mode, described bluetooth equipment parses described steering order from the described control broadcast packet received, and performs control operation corresponding to described steering order.
Optionally, describedly send described control broadcast packet with non-directional broadcast mode, comprising:
Before described button is released, sends described at least twice with non-directional broadcast mode and control broadcast packet.
Optionally, described generation according to described button controls broadcast packet, comprising:
Obtain the steering order that described button is corresponding;
According to the mapping table of the steering order prestored and key assignments, inquire about the key assignments that described steering order is corresponding;
Generate described control broadcast packet, with key assignments described in default byte representation in described control broadcast packet.
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of terminal, make terminal can perform a kind of bluetooth equipment control method, described method comprises:
Receive and control broadcast packet, described control broadcast packet is the packet for controlling described bluetooth equipment that the opertaing device of described bluetooth equipment sends with non-directional broadcast mode;
Described control broadcast packet is resolved, obtains steering order;
Perform the control operation that described steering order is corresponding.
Optionally, when receiving at least twice identical first and controlling broadcast packet, described method also comprises:
The described first control broadcast packet that first time receives is resolved, obtains steering order, and perform control operation corresponding to described steering order;
Receive after ignoring first time described first controls broadcast packet, until receive to control from described first broadcast packet different second control broadcast packet.
Optionally, described described control broadcast packet to be resolved, obtains steering order, comprising:
Extract the default byte of described control broadcast packet;
Obtain the key assignments that described default byte is corresponding;
According to the mapping table of the steering order prestored and key assignments, inquire about the steering order that described key-value pair is answered.
Those skilled in the art, at consideration instructions and after putting into practice invention disclosed herein, will easily expect other embodiment of the present disclosure.The application is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Instructions and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
Should be understood that, the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.

Claims (14)

1. a bluetooth equipment control method, is characterized in that, for the opertaing device of bluetooth equipment, comprising:
Judge whether described opertaing device connects with described bluetooth equipment;
When described opertaing device does not connect with described bluetooth equipment, determine the button that described opertaing device is pressed;
Generate according to described button and control broadcast packet, in described control broadcast packet, comprise steering order corresponding to described button;
Send described control broadcast packet with non-directional broadcast mode, described bluetooth equipment parses described steering order from the described control broadcast packet received, and performs control operation corresponding to described steering order.
2. method according to claim 1, is characterized in that, describedly sends described control broadcast packet with non-directional broadcast mode, comprising:
Before described button is released, sends described at least twice with non-directional broadcast mode and control broadcast packet.
3. method according to claim 1, is characterized in that, described generation according to described button controls broadcast packet, comprising:
Obtain the steering order that described button is corresponding;
According to the mapping table of the steering order prestored and key assignments, inquire about the key assignments that described steering order is corresponding;
Generate described control broadcast packet, with key assignments described in default byte representation in described control broadcast packet.
4. a bluetooth equipment control method, is characterized in that, for bluetooth equipment, comprising:
Receive and control broadcast packet, described control broadcast packet is the packet for controlling described bluetooth equipment that the opertaing device of described bluetooth equipment sends with non-directional broadcast mode;
Described control broadcast packet is resolved, obtains steering order;
Perform the control operation that described steering order is corresponding.
5. method according to claim 4, is characterized in that, when receiving at least twice identical first and controlling broadcast packet, described method also comprises:
The described first control broadcast packet that first time receives is resolved, obtains steering order, and perform control operation corresponding to described steering order;
Receive after ignoring first time described first controls broadcast packet, until receive to control from described first broadcast packet different second control broadcast packet.
6. method according to claim 4, is characterized in that, describedly resolves described control broadcast packet, obtains steering order, comprising:
Extract the default byte of described control broadcast packet;
Obtain the key assignments that described default byte is corresponding;
According to the mapping table of the steering order prestored and key assignments, inquire about the steering order that described key-value pair is answered.
7. a bluetooth equipment control device, is characterized in that, for the opertaing device of bluetooth equipment, comprising:
Judge module, for judging whether described opertaing device connects with described bluetooth equipment;
Determination module, for when described opertaing device does not connect with described bluetooth equipment, determines the button that described opertaing device is pressed;
Generation module, controlling broadcast packet for generating according to described button, comprising steering order corresponding to described button in described control broadcast packet;
Sending module, for sending described control broadcast packet with non-directional broadcast mode, described bluetooth equipment parses described steering order from the described control broadcast packet received, and performs control operation corresponding to described steering order.
8. device according to claim 7, is characterized in that, described sending module, before being released at described button, sending described at least twice control broadcast packet with non-directional broadcast mode.
9. device according to claim 7, is characterized in that, described generation module comprises:
Obtain submodule, for obtaining steering order corresponding to described button;
Inquiry submodule, for the mapping table according to the steering order prestored and key assignments, inquires about the key assignments that described steering order is corresponding;
Generate submodule, for generating described control broadcast packet, with key assignments described in default byte representation in described control broadcast packet.
10. a bluetooth equipment control device, is characterized in that, for bluetooth equipment, comprising:
Receiver module, for receiving control broadcast packet, described control broadcast packet is the packet for controlling described bluetooth equipment that the opertaing device of described bluetooth equipment sends with non-directional broadcast mode;
Parsing module, for resolving described control broadcast packet, obtains steering order;
Execution module, for performing control operation corresponding to described steering order.
11. devices according to claim 10, is characterized in that,
Described parsing module, for when receiving at least twice identical first and controlling broadcast packet, to first time receive described first control broadcast packet and resolve, obtain steering order; Receive after ignoring first time described first controls broadcast packet, until receive to control from described first broadcast packet different second control broadcast packet;
Described execution module, for performing control operation corresponding to described steering order.
12. devices according to claim 10, is characterized in that, described parsing module comprises:
Extract submodule, for extracting the default byte of described control broadcast packet;
Obtain submodule, for obtaining key assignments corresponding to described default byte;
Inquiry submodule, for the mapping table according to the steering order prestored and key assignments, inquires about the steering order that described key-value pair is answered.
13. 1 kinds of bluetooth equipment control device, is characterized in that, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Judge whether described opertaing device connects with described bluetooth equipment;
When described opertaing device does not connect with described bluetooth equipment, determine the button that described opertaing device is pressed;
Generate according to described button and control broadcast packet, in described control broadcast packet, comprise steering order corresponding to described button;
Send described control broadcast packet with non-directional broadcast mode, described bluetooth equipment parses described steering order from the described control broadcast packet received, and performs control operation corresponding to described steering order.
14. 1 kinds of bluetooth equipment control device, is characterized in that, comprising:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
Receive and control broadcast packet, described control broadcast packet is the packet for controlling described bluetooth equipment that the opertaing device of described bluetooth equipment sends with non-directional broadcast mode;
Described control broadcast packet is resolved, obtains steering order;
Perform the control operation that described steering order is corresponding.
CN201410559302.2A 2014-10-20 2014-10-20 Bluetooth equipment control method and device Active CN104318741B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410559302.2A CN104318741B (en) 2014-10-20 2014-10-20 Bluetooth equipment control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410559302.2A CN104318741B (en) 2014-10-20 2014-10-20 Bluetooth equipment control method and device

Publications (2)

Publication Number Publication Date
CN104318741A true CN104318741A (en) 2015-01-28
CN104318741B CN104318741B (en) 2018-02-02

Family

ID=52373965

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410559302.2A Active CN104318741B (en) 2014-10-20 2014-10-20 Bluetooth equipment control method and device

Country Status (1)

Country Link
CN (1) CN104318741B (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104754494A (en) * 2015-02-28 2015-07-01 江苏惠通集团有限责任公司 Communicating method and device
CN104751617A (en) * 2015-04-08 2015-07-01 江苏惠通集团有限责任公司 Remote controller and main machine connecting method and remote control device
CN104835304A (en) * 2015-05-25 2015-08-12 中颖电子股份有限公司 Bluetooth remote control apparatus and configuration method thereof
CN106060619A (en) * 2016-06-27 2016-10-26 乐视控股(北京)有限公司 Method for controlling Bluetooth signal response in television and related device
CN106303057A (en) * 2016-08-24 2017-01-04 惠州Tcl移动通信有限公司 The method and system of bluetooth equipment are controlled by mobile terminal simulation bluetooth mouse
CN106658661A (en) * 2016-11-10 2017-05-10 江苏惠通集团有限责任公司 Master device, slave device and method for rebuilding connection
CN106681774A (en) * 2016-12-30 2017-05-17 Tcl通力电子(惠州)有限公司 Software upgrading method for blue-tooth loudspeaker and intelligent terminal
CN107041170A (en) * 2015-12-03 2017-08-11 华为技术有限公司 Data transmission method for uplink, device and terminal
CN107087221A (en) * 2017-05-27 2017-08-22 环球智达科技(北京)有限公司 Remote control thereof for many equipment
CN107135466A (en) * 2017-04-28 2017-09-05 四川长虹电器股份有限公司 The method for realizing the upper electric bluetooth start of exchange
CN107222777A (en) * 2017-07-19 2017-09-29 深圳创维数字技术有限公司 A kind of set top box WiFi and Bluetooth coexistence optimization method and device
CN107682746A (en) * 2017-09-01 2018-02-09 北京小米移动软件有限公司 Awakening method and device
CN108198393A (en) * 2017-12-12 2018-06-22 深圳市浩博高科技有限公司 A kind of self power generation remote control thereof and system
CN108415385A (en) * 2018-02-11 2018-08-17 张戈零 Intelligent home control system based on Bluetooth communication
CN108449741A (en) * 2018-03-12 2018-08-24 深圳前海智联逗号科技有限公司 The method of bluetooth equipment quickly connected
CN108449746A (en) * 2018-06-14 2018-08-24 歌尔科技有限公司 A kind of method that establishing BT connections, wireless headset and TWS earphones
CN108512574A (en) * 2017-02-28 2018-09-07 深圳市中科汉天下电子有限公司 The method and device that mobile terminal is communicated with self-defined 2.4G wireless devices
CN109788330A (en) * 2018-12-25 2019-05-21 深圳康佳电子科技有限公司 TV bluetooth standby wakeup processing method, TV and remote controler
CN110691332A (en) * 2019-09-17 2020-01-14 湖南简成信息技术有限公司 Data processing method, device and storage medium based on Bluetooth broadcast

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002001813A2 (en) * 2000-06-26 2002-01-03 Koninklijke Philips Electronics N.V. Data delivery through beacons
CN1510846A (en) * 2002-10-18 2004-07-07 三星电子株式会社 Wireless communicaton apparatus without connecting broadcast and method thereof
CN102298833A (en) * 2011-09-14 2011-12-28 中兴通讯股份有限公司 Remote controller
CN103985234A (en) * 2014-04-23 2014-08-13 杭州微纳科技有限公司 Remote control method based on bluetooth broadcast packet
CN104036628A (en) * 2014-05-22 2014-09-10 杭州微纳科技有限公司 Intelligent remote controller based on Bluetooth and quick pairing method
CN104035403A (en) * 2014-05-23 2014-09-10 四川长虹电器股份有限公司 Ibeacon technology based intelligent home control system and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002001813A2 (en) * 2000-06-26 2002-01-03 Koninklijke Philips Electronics N.V. Data delivery through beacons
CN1510846A (en) * 2002-10-18 2004-07-07 三星电子株式会社 Wireless communicaton apparatus without connecting broadcast and method thereof
CN102298833A (en) * 2011-09-14 2011-12-28 中兴通讯股份有限公司 Remote controller
CN103985234A (en) * 2014-04-23 2014-08-13 杭州微纳科技有限公司 Remote control method based on bluetooth broadcast packet
CN104036628A (en) * 2014-05-22 2014-09-10 杭州微纳科技有限公司 Intelligent remote controller based on Bluetooth and quick pairing method
CN104035403A (en) * 2014-05-23 2014-09-10 四川长虹电器股份有限公司 Ibeacon technology based intelligent home control system and method

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104754494A (en) * 2015-02-28 2015-07-01 江苏惠通集团有限责任公司 Communicating method and device
CN104751617A (en) * 2015-04-08 2015-07-01 江苏惠通集团有限责任公司 Remote controller and main machine connecting method and remote control device
CN104835304A (en) * 2015-05-25 2015-08-12 中颖电子股份有限公司 Bluetooth remote control apparatus and configuration method thereof
CN104835304B (en) * 2015-05-25 2019-01-01 中颖电子股份有限公司 Bluetooth remote control device and its configuration method
US10791521B2 (en) 2015-12-03 2020-09-29 Huawei Technologies Co., Ltd. Data sending method and apparatus, and terminal
CN107041170A (en) * 2015-12-03 2017-08-11 华为技术有限公司 Data transmission method for uplink, device and terminal
CN106060619A (en) * 2016-06-27 2016-10-26 乐视控股(北京)有限公司 Method for controlling Bluetooth signal response in television and related device
CN106303057A (en) * 2016-08-24 2017-01-04 惠州Tcl移动通信有限公司 The method and system of bluetooth equipment are controlled by mobile terminal simulation bluetooth mouse
CN106658661A (en) * 2016-11-10 2017-05-10 江苏惠通集团有限责任公司 Master device, slave device and method for rebuilding connection
CN106681774A (en) * 2016-12-30 2017-05-17 Tcl通力电子(惠州)有限公司 Software upgrading method for blue-tooth loudspeaker and intelligent terminal
CN106681774B (en) * 2016-12-30 2021-01-12 Tcl通力电子(惠州)有限公司 Software upgrading method of Bluetooth loudspeaker and intelligent terminal
CN108512574A (en) * 2017-02-28 2018-09-07 深圳市中科汉天下电子有限公司 The method and device that mobile terminal is communicated with self-defined 2.4G wireless devices
CN108512574B (en) * 2017-02-28 2021-01-29 深圳昂瑞微电子技术有限公司 Method and device for communication between mobile terminal and user-defined 2.4G wireless equipment
CN107135466B (en) * 2017-04-28 2019-08-13 四川长虹电器股份有限公司 Realize the method that exchange powers on bluetooth booting
CN107135466A (en) * 2017-04-28 2017-09-05 四川长虹电器股份有限公司 The method for realizing the upper electric bluetooth start of exchange
CN107087221A (en) * 2017-05-27 2017-08-22 环球智达科技(北京)有限公司 Remote control thereof for many equipment
CN107222777A (en) * 2017-07-19 2017-09-29 深圳创维数字技术有限公司 A kind of set top box WiFi and Bluetooth coexistence optimization method and device
WO2019015016A1 (en) * 2017-07-19 2019-01-24 深圳创维数字技术有限公司 Set top box-based coexistence optimization method, device and system for wifi and bluetooth
CN107682746A (en) * 2017-09-01 2018-02-09 北京小米移动软件有限公司 Awakening method and device
CN108198393A (en) * 2017-12-12 2018-06-22 深圳市浩博高科技有限公司 A kind of self power generation remote control thereof and system
WO2019114091A1 (en) * 2017-12-12 2019-06-20 深圳市浩博高科技有限公司 Remote control method and system for self-generation of electricity
CN108415385A (en) * 2018-02-11 2018-08-17 张戈零 Intelligent home control system based on Bluetooth communication
CN108449741A (en) * 2018-03-12 2018-08-24 深圳前海智联逗号科技有限公司 The method of bluetooth equipment quickly connected
CN108449746A (en) * 2018-06-14 2018-08-24 歌尔科技有限公司 A kind of method that establishing BT connections, wireless headset and TWS earphones
CN109788330A (en) * 2018-12-25 2019-05-21 深圳康佳电子科技有限公司 TV bluetooth standby wakeup processing method, TV and remote controler
CN110691332A (en) * 2019-09-17 2020-01-14 湖南简成信息技术有限公司 Data processing method, device and storage medium based on Bluetooth broadcast

Also Published As

Publication number Publication date
CN104318741B (en) 2018-02-02

Similar Documents

Publication Publication Date Title
CN104038263B (en) Method and device for establishing Bluetooth connection
CN105160854A (en) Equipment control method, device and terminal equipment
CN104219092B (en) The compatibility method of a kind of router administration application and router firmware and device
CN104657099A (en) Method, device and system for screen projection
US20160295625A1 (en) Method and apparatus for network access
CN104407592A (en) Method and device for regulating running state of smart home device
CN105262452A (en) Method and apparatus for adjusting volume, and terminal
CN104936304A (en) Intelligent equipment binding method, intelligent equipment, and server
CN104065836A (en) Method and device for monitoring calls
US20160255521A1 (en) Method and apparatus for testing a smart device
CN104506772A (en) Method and device for regulating shooting parameters
CN104363631A (en) Connection method, device and system of wireless router
CN104159230B (en) Call recognition methods and device
CN105451369A (en) Method and apparatus for updating connection parameter of Bluetooth device with low power consumption
CN104281432A (en) Method and device for regulating sound effect
CN105205955A (en) Method and device for sending out warning signal
CN104540184A (en) Equipment networking method and device
CN104780155A (en) Method and device for binding equipment
CN104836897A (en) Method and device for controlling terminal communication through wearable device
CN104598093A (en) Method and device for prompting message during screen locking
CN104460365A (en) Equipment control method and device
CN105468152A (en) Terminal operation control method and device based on wearable equipment, and equipment
CN104461304A (en) Application control method and device
CN104219388A (en) Voice control method and device
CN104318741B (en) Bluetooth equipment control method and device

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