CN104318741B - Bluetooth equipment control method and device - Google Patents

Bluetooth equipment control method and device Download PDF

Info

Publication number
CN104318741B
CN104318741B CN201410559302.2A CN201410559302A CN104318741B CN 104318741 B CN104318741 B CN 104318741B CN 201410559302 A CN201410559302 A CN 201410559302A CN 104318741 B CN104318741 B CN 104318741B
Authority
CN
China
Prior art keywords
control
broadcast packet
bluetooth equipment
instruction
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.)
Active
Application number
CN201410559302.2A
Other languages
Chinese (zh)
Other versions
CN104318741A (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.)
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 disclosure is directed to a kind of bluetooth equipment control method and device.Methods described includes:Judge whether the control device is established with the bluetooth equipment to connect;When the control device is not established with the bluetooth equipment to be connected, the button that the control device is pressed is determined;Control broadcast packet is generated according to the button, control instruction corresponding to the button is included in the control broadcast packet;The control broadcast packet is sent with non-directional broadcast mode, the bluetooth equipment parses the control instruction from the control broadcast packet received, and performs control operation corresponding to the control instruction.The disclosure is used to be controlled bluetooth equipment using blue Tooth remote controller in the case where not setting up bluetooth connection.

Description

Bluetooth equipment control method and device
Technical field
This disclosure relates to Bluetooth technology field, more particularly to a kind of bluetooth equipment control method and device.
Background technology
Bluetooth low energy consumption (Bluetooth Low Energy, BLE) technology is low cost, short distance, the Shandong of interoperable Rod wireless technology.The remote control of BLE equipment uses the broadcast (Advertising) in SPEC to go to realize button operation.Broadcast It can be received by all BLE equipment, therefore can go to realize the straighforward operation of BLE equipment using this broadcast, while can also utilize RSSI coaptations in BLE Advertising go out the opereating specification that distance limits BLE remote control equipments.
In correlation technique, the remote control of BLE equipment be established based on bluetooth link after sent by the form of packet, it is necessary to The operation that bluetooth is carried out in the process base of complete protocol stack.Android equipment is when entering upgrade-system recovery at present Often by the way of physical button or infrared remote control.
There are the following problems in correlation technique:The button operation of blue Tooth remote controller is all based on ability after bluetooth is linked Operation, bluetooth can not be used in the case where some do not have bluetooth protocol repertory, bluetooth not to link, such as in android Start selects into upgrading engineering mode (recovery) or in recovery to be the blue Tooth remote controller that can not be used.
The content of the invention
To overcome problem present in correlation technique, the embodiment of the present disclosure provides a kind of bluetooth equipment control method and dress Put.
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of bluetooth equipment control method, methods described include:
Judge whether the control device is established with the bluetooth equipment to connect;
When the control device is not established with the bluetooth equipment to be connected, determine that the control device is pressed by Key;
Control broadcast packet is generated according to the button, referred in the control broadcast packet comprising control corresponding to the button Order;
The control broadcast packet is sent with non-directional broadcast mode, the bluetooth equipment is broadcasted from the control received The control instruction is parsed in bag, and performs control operation corresponding to the control instruction.
In the present embodiment, by what is broadcasted for controlling the control instruction of bluetooth equipment by using the non-directional of Bluetooth protocol Mode is sent to bluetooth equipment so that do not need bluetooth link and without bluetooth protocol repertory in the case of realize to bluetooth equipment Control operation, bluetooth equipment start selection into recovery or enter recovery after still can use Bluetooth remote control Device, it is easy to use without by the way of physical button infrared remote control, improve Consumer's Experience.
Optionally, it is described that the control broadcast packet is sent with non-directional broadcast mode, including:
Before the button is released, the control broadcast packet at least twice is sent with non-directional broadcast mode.
In alternative, in order to avoid bluetooth equipment does not receive broadcast packet, pressed from user on blue Tooth remote controller In the period that button is released to the button, can continuous several times send broadcast packet, receive broadcast packet to improve bluetooth equipment Possibility, improve to bluetooth equipment control accuracy.
Optionally, it is described that control broadcast packet is generated according to the button, including:
Obtain control instruction corresponding to the button;
According to the control instruction and the mapping table of key assignments to prestore, key assignments corresponding to the control instruction is inquired about;
The control broadcast packet is generated, described control in broadcast packet represents the key assignments with preset byte.
In alternative, in broadcast packet, it is corresponding to pre-define one or more of byte representation control instructions Key assignments, the control instruction can be key assignments corresponding to some button on blue Tooth remote controller, as control direction button Key assignments or button value etc. for entering recovery, the mode broadcasted by using the non-directional of Bluetooth protocol, are realized Do not need bluetooth to link and without bluetooth protocol repertory in the case of realize to the control operation of bluetooth equipment.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of bluetooth equipment control method, methods described include:
Control broadcast packet is received, the control device for controlling broadcast packet as the bluetooth equipment is with non-directional broadcast mode What is sent is used to control the packet of the bluetooth equipment;
The control broadcast packet is parsed, obtains control instruction;
Perform control operation corresponding to the control instruction.
In the present embodiment, bluetooth equipment is broadcasted to obtain control instruction by receiving the non-directional of Bluetooth protocol so that Do not need bluetooth link and without bluetooth protocol repertory in the case of realize to the control operation of bluetooth equipment, started shooting in bluetooth equipment Selection still can use blue Tooth remote controller into recovery or after entering recovery, without infrared using physical buttonization The mode of remote control, it is easy to use, improve Consumer's Experience.
Optionally, when receiving the control of identical first broadcast packet at least twice, methods described also includes:
The the first control broadcast packet received for the first time is parsed, obtains control instruction, and perform the control Control operation corresponding to system instruction;
The the first control broadcast packet received after ignoring for the first time, is broadcasted until receiving with the described first control Wrap the second different control broadcast packets.
In alternative, in order to avoid bluetooth equipment does not receive broadcast packet, pressed from user on blue Tooth remote controller In the period that button is released to the button, blue Tooth remote controller can continuous several times send broadcast packet, bluetooth equipment is only to first The secondary broadcast packet received is handled, and ignores other broadcast packets received afterwards, is received extensively improving bluetooth equipment While broadcasting the possibility of bag, ensure the accuracy to bluetooth equipment control.
Optionally, it is described that the control broadcast packet is parsed, control instruction is obtained, including:
Extract the preset byte of the control broadcast packet;
Obtain key assignments corresponding to the preset byte;
According to the control instruction and the mapping table of key assignments to prestore, control instruction corresponding to the key assignments is inquired about.
In alternative, in broadcast packet, it is corresponding to pre-define one or more of byte representation control instructions Key assignments, the control instruction can be key assignments corresponding to some button on blue Tooth remote controller, as control direction button Key assignments or button value etc. for entering recovery, bluetooth equipment are broadcasted to obtain by receiving the non-directional of Bluetooth protocol Take control instruction, realize do not need bluetooth link and without bluetooth protocol repertory in the case of realize to bluetooth equipment control behaviour Make.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of bluetooth equipment control device, the control for bluetooth equipment Control equipment, including:
Judge module, connected for judging whether the control device is established with the bluetooth equipment;
Determining module, for when the control device is not established with the bluetooth equipment and connected, determining that the control is set The standby button being pressed;
Generation module, for generating control broadcast packet according to the button, the button is included in the control broadcast packet Corresponding control instruction;
Sending module, for sending the control broadcast packet with non-directional broadcast mode, the bluetooth equipment is from receiving The control broadcast packet in parse the control instruction, and perform control operation corresponding to the control instruction.
Optionally, the sending module, for before the button is released, being sent at least with non-directional broadcast mode The control broadcast packet twice.
Optionally, the generation module includes:
Acquisition submodule, for obtaining control instruction corresponding to the button;
Submodule is inquired about, for according to the control instruction and the mapping table of key assignments to prestore, inquiring about the control instruction Corresponding key assignments;
Generate submodule, represented for generating the control broadcast packet, in the control broadcast packet with preset byte described in Key assignments.
According to the fourth aspect of the embodiment of the present disclosure, there is provided a kind of bluetooth equipment control device, for bluetooth equipment, bag Include:
Receiving module, for receive control broadcast packet, it is described control broadcast packet for the bluetooth equipment control device with The packet for being used to control the bluetooth equipment that non-directional broadcast mode is sent;
Parsing module, for being parsed to the control broadcast packet, obtain control instruction;
Execution module, for performing control operation corresponding to the control instruction.
Optionally, the parsing module, for when receive at least twice identical first control broadcast packet when, to first Secondary the first control broadcast packet received is parsed, and obtains control instruction;Received after ignoring for the first time described First control broadcast packet, until receiving the second control broadcast packet different from the described first control broadcast packet;
The execution module, for performing control operation corresponding to the control instruction.
Optionally, the parsing module includes:
Extracting sub-module, for extracting the preset byte of the control broadcast packet;
Acquisition submodule, for obtaining key assignments corresponding to the preset byte;
Submodule is inquired about, for according to the control instruction and the mapping table of key assignments to prestore, inquiring about the key-value pair should Control instruction.
According to the 5th of the embodiment of the present disclosure the aspect, there is provided a kind of bluetooth equipment control device, including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
Judge whether the control device is established with the bluetooth equipment to connect;
When the control device is not established with the bluetooth equipment to be connected, determine that the control device is pressed by Key;
Control broadcast packet is generated according to the button, referred in the control broadcast packet comprising control corresponding to the button Order;
The control broadcast packet is sent with non-directional broadcast mode, the bluetooth equipment is broadcasted from the control received The control instruction is parsed in bag, and performs control operation corresponding to the control instruction.
According to the 6th of the embodiment of the present disclosure the aspect, there is provided a kind of bluetooth equipment control device, including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
Control broadcast packet is received, the control device for controlling broadcast packet as the bluetooth equipment is with non-directional broadcast mode What is sent is used to control the packet of the bluetooth equipment;
The control broadcast packet is parsed, obtains control instruction;
Perform control operation corresponding to the control instruction.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the disclosure Example, and be used to together with specification to explain the principle of the disclosure.
Fig. 1 is a kind of flow chart of bluetooth equipment control method according to an exemplary embodiment;
Fig. 2 is a kind of flow chart of bluetooth equipment control method according to an exemplary embodiment;
Fig. 3 is a kind of flow chart of bluetooth equipment control method according to an exemplary embodiment;
Fig. 4 is a kind of flow chart of bluetooth equipment control method according to another exemplary embodiment;
Fig. 5 is a kind of block diagram 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 a kind of block diagram 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 a kind of block diagram of device 900 for bluetooth equipment control according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of bluetooth equipment control method according to an exemplary embodiment, as shown in figure 1, Bluetooth equipment control method is used in the control device such as blue Tooth remote controller of bluetooth equipment, comprises the following steps.
In step s 11, judge whether control device is established with bluetooth equipment to connect;
In step s 12, when control device is not established with bluetooth equipment to be connected, determine that control device is pressed by Key;
In step s 13, control broadcast packet is generated according to button, controls in broadcast packet and refer to comprising control corresponding to button Order;
In step S14, control broadcast packet is sent with non-directional broadcast mode, bluetooth equipment is broadcasted from the control received Control instruction is parsed in bag, and performs control operation corresponding to control instruction.
For example, the TV box controlled using blue Tooth remote controller, the broadcast packet sent by monitoring blue Tooth remote controller, Android start selections enter upgrading recovery or when in recovery, without Bluetooth pairing, without bluetooth protocol repertory In the case of, perform the control operation of blue Tooth remote controller.Blue Tooth remote controller connects it is first determined whether establishing bluetooth with TV box Connect, if bluetooth connection is not set up, user is pushed button into corresponding control instruction progress by the way of non-directional broadcast Broadcast.After TV box listens to the broadcast packet, the control instruction is performed.
In the present embodiment, by what is broadcasted for controlling the control instruction of bluetooth equipment by using the non-directional of Bluetooth protocol Mode is sent to bluetooth equipment so that do not need bluetooth link and without bluetooth protocol repertory in the case of realize to bluetooth equipment Control operation, bluetooth equipment start selection into recovery or enter recovery after still can use Bluetooth remote control Device, it is easy to use without by the way of physical button infrared remote control, improve Consumer's Experience.
Fig. 2 is a kind of flow chart of bluetooth equipment control method according to an exemplary embodiment, as shown in Fig. 2 Optionally, above-mentioned steps S13 includes:
In the step s 21, control instruction corresponding to button is obtained;
In step S22, according to the control instruction and the mapping table of key assignments to prestore, key corresponding to control instruction is inquired about Value;
In step S23, generation control broadcast packet, control in broadcast packet and key assignments is represented with preset byte.
In alternative, in broadcast packet, it is corresponding to pre-define one or more of byte representation control instructions Key assignments, the control instruction can be key assignments corresponding to some button on blue Tooth remote controller, as control direction button Key assignments or button value etc. for entering recovery, the mode broadcasted by using the non-directional of Bluetooth protocol, are realized Do not need bluetooth to link and without bluetooth protocol repertory in the case of realize to the control operation of bluetooth equipment.
Optionally, step S14 includes:
Before button is released, is sent with non-directional broadcast mode and control broadcast packet at least twice.
In alternative, in order to avoid bluetooth equipment does not receive broadcast packet, pressed from user on blue Tooth remote controller In the period that button is released to the button, can continuous several times send broadcast packet, receive broadcast packet to improve bluetooth equipment Possibility, improve to bluetooth equipment control accuracy.
Fig. 3 is a kind of flow chart of bluetooth equipment control method according to an exemplary embodiment, as shown in figure 3, Bluetooth equipment control method is used in bluetooth equipment, comprises the following steps.
In step S31, control broadcast packet is received, the control device for controlling broadcast packet to be bluetooth equipment is broadcasted with non-directional The packet for being used to control bluetooth equipment that mode is sent;
In step s 32, control broadcast packet is parsed, obtains control instruction;
In step S33, control operation corresponding to control instruction is performed.
For example, TV box opens Bluetooth chip in the Booting sequence of System guides, Bluetooth chip is set to be in BLE scannings Enabled (Scan enable) state, it can go to monitor bluetooth non-directional broadcast mode, parsing broadcast in uboot Booting sequences Specific byte in bag, judge whether to receive the control instruction of blue Tooth remote controller, be used to enter if included in broadcast packet Recovery button value, the selection of TV box enters recovery, and also would know that the address of Bluetooth broadcast equipment simultaneously Identify bt_addr.
In the present embodiment, bluetooth equipment is broadcasted to obtain control instruction by receiving the non-directional of Bluetooth protocol so that Do not need bluetooth link and without bluetooth protocol repertory in the case of realize to the control operation of bluetooth equipment, started shooting in bluetooth equipment Selection still can use blue Tooth remote controller into recovery or after entering recovery, without infrared using physical buttonization The mode of remote control, it is easy to use, improve Consumer's Experience.
Optionally, when receiving the control of identical first broadcast packet at least twice, this method also includes:
The the first control broadcast packet received for the first time is parsed, obtains control instruction, and perform control instruction pair The control operation answered;
The the first control broadcast packet received after ignoring for the first time, it is different from the first control broadcast packet until receiving Second control broadcast packet.
In alternative, in order to avoid bluetooth equipment does not receive broadcast packet, pressed from user on blue Tooth remote controller In the period that button is released to the button, blue Tooth remote controller can continuous several times send broadcast packet, bluetooth equipment is only to first The secondary broadcast packet received is handled, and ignores other broadcast packets received afterwards, is received extensively improving bluetooth equipment While broadcasting the possibility of bag, ensure the accuracy to bluetooth equipment control.
Fig. 4 is a kind of flow chart of bluetooth equipment control method according to another exemplary embodiment, such as Fig. 4 institutes Show, optionally, control broadcast packet is parsed, obtains control instruction, including:
In step S41, the preset byte of extraction control broadcast packet;
In step S42, key assignments corresponding to preset byte is obtained;
In step S43, according to the control instruction and the mapping table of key assignments to prestore, control corresponding to inquiry key assignments refers to Order.
In alternative, in broadcast packet, it is corresponding to pre-define one or more of byte representation control instructions Key assignments, the control instruction can be key assignments corresponding to some button on blue Tooth remote controller, as control direction button Key assignments or button value etc. for entering recovery, bluetooth equipment are broadcasted to obtain by receiving the non-directional of Bluetooth protocol Take control instruction, realize do not need bluetooth link and without bluetooth protocol repertory in the case of realize to bluetooth equipment control behaviour Make.
Fig. 5 is a kind of block diagram of bluetooth equipment control device according to an exemplary embodiment.As shown in figure 5, should Device is used for the control device of bluetooth equipment, including judge module 51, determining module 52, generation module 53 and sending module 54.
Judge module 51 is configured as judging whether control device connects with bluetooth equipment foundation;
When determining module 52 is configured as control device not with bluetooth equipment foundation connection, determine that control device is pressed Button;
Generation module 53 is configured as generating control broadcast packet according to button, controls to include in broadcast packet and is controlled corresponding to button System instruction;
Sending module 54 is configured as sending the control broadcast packet with non-directional broadcast mode, and the bluetooth equipment is from connecing The control instruction is parsed in the control broadcast packet received, and performs control operation corresponding to the control instruction.
Optionally, the sending module 54 is configured as before the button is released, and is sent out with non-directional broadcast mode Send the control broadcast packet at least twice.
Fig. 6 is the block diagram of the generation module according to an exemplary embodiment.As shown in fig. 6, optional, generation module 54 include:
Acquisition submodule 61 is configured as obtaining control instruction corresponding to the button;
Inquiry submodule 62 is configured as, according to the control instruction and the mapping table of key assignments to prestore, inquiring about the control Key assignments corresponding to instruction;
Generation submodule 63 is configurable to generate the control broadcast packet, is represented in the control broadcast packet with preset byte The key assignments.
Fig. 7 is a kind of block diagram of bluetooth equipment control device according to an exemplary embodiment.As shown in fig. 7, should Device is used for bluetooth equipment, including:Receiving module 71, parsing module 72 and execution module 73.
Receiving module 71 is configured as receiving control broadcast packet, and the control for controlling broadcast packet to be the bluetooth equipment is set The standby packet for being used to control the bluetooth equipment sent with non-directional broadcast mode;
Parsing module 72 is configured as parsing the control broadcast packet, obtains control instruction;
Execution module 73 is configured as performing control operation corresponding to the control instruction.
Optionally, parsing module 72 is configured as receiving when identical first controls broadcast packet at least twice, to the The the first control broadcast packet once received is parsed, and obtains control instruction;The institute received after ignoring for the first time The first control broadcast packet is stated, until receiving the second control broadcast packet different from the described first control broadcast packet;Execution module 73 are configured as performing control operation corresponding to the control instruction.
Fig. 8 is the block diagram of the parsing module according to an exemplary embodiment.As shown in figure 8, optional, parsing module 72 include:
Extracting sub-module 81 is configured as extracting the preset byte of the control broadcast packet;
Acquisition submodule 82 is configured as obtaining key assignments corresponding to the preset byte;
Inquiry submodule 83 is configured as, according to the control instruction and the mapping table of key assignments to prestore, inquiring about the key assignments Corresponding control instruction.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
The disclosure also provides a kind of bluetooth equipment control device, including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
Judge whether the control device is established with the bluetooth equipment to connect;
When the control device is not established with the bluetooth equipment to be connected, determine that the control device is pressed by Key;
Control broadcast packet is generated according to the button, referred in the control broadcast packet comprising control corresponding to the button Order;
The control broadcast packet is sent with non-directional broadcast mode, the bluetooth equipment is broadcasted from the control received The control instruction is parsed in bag, and performs control operation corresponding to the control instruction.
The disclosure also provides a kind of bluetooth equipment control device, including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
Control broadcast packet is received, the control device for controlling broadcast packet as the bluetooth equipment is with non-directional broadcast mode What is sent is used to control the packet of the bluetooth equipment;
The control broadcast packet is parsed, obtains control instruction;
Perform control operation corresponding to the control instruction.
Fig. 9 is a kind of block diagram of device 900 for bluetooth equipment control according to an exemplary embodiment.Example Such as, device 900 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, and flat board is set It is standby, Medical Devices, body-building equipment, personal digital assistant etc..
As shown in figure 9, device 900 can include following one or more assemblies:Processing component 902, memory 904, electricity Source component 906, multimedia groupware 908, audio-frequency assembly 910, the interface 912 of input/output (I/O), sensor cluster 914, with And communication component 916.
The integrated operation of the usual control device 900 of processing component 902, such as communicated with display, call, data, phase The operation that machine operates and record operation is associated.Processing component 902 can refer to including one or more processors 920 to perform Order, to complete all or part of step of above-mentioned method.In addition, processing component 902 can include one or more modules, just Interaction between processing component 902 and other assemblies.For example, processing component 902 can include multi-media module, it is more to facilitate Interaction between media component 908 and processing component 902.
Memory 904 is configured as storing various types of data to support the operation in equipment 900.These data are shown Example includes the instruction of any application program or method for being operated on device 900, contact data, telephone book data, disappears Breath, picture, video etc..Memory 904 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) are erasable to compile Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 906 provides electric power for the various assemblies of device 900.Power supply module 906 can include power management system System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 900.
Multimedia groupware 908 is included in the screen of one output interface of offer between described device 900 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensings Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action Border, but also detect and touched or the related duration and pressure of slide with described.In certain embodiments, more matchmakers Body component 908 includes a front camera and/or rear camera.When equipment 900 is in operator scheme, such as screening-mode or During video mode, front camera and/or rear camera can receive outside multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio-frequency assembly 910 is configured as output and/or input audio signal.For example, audio-frequency assembly 910 includes a Mike Wind (MIC), when device 900 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone by with It is set to reception external audio signal.The audio signal received can be further stored in memory 904 or via communication set Part 916 is sent.In certain embodiments, audio-frequency assembly 910 also includes a loudspeaker, for exports audio signal.
I/O interfaces 912 provide interface between processing component 902 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor cluster 914 includes one or more sensors, and the state for providing various aspects for device 900 is commented Estimate.For example, sensor cluster 914 can detect opening/closed mode of equipment 900, and the relative positioning of component, for example, it is described Component is the display and keypad of device 900, and sensor cluster 914 can be with 900 1 components of detection means 900 or device Position change, the existence or non-existence that user contacts with device 900, the orientation of device 900 or acceleration/deceleration and device 900 Temperature change.Sensor cluster 914 can include proximity transducer, be configured to detect in no any physical contact The presence of neighbouring object.Sensor cluster 914 can also include optical sensor, such as CMOS or ccd image sensor, for into As being used in application.In certain embodiments, the sensor cluster 914 can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 916 is configured to facilitate the communication of wired or wireless way between device 900 and other equipment.Device 900 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation In example, communication component 916 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 916 also includes near-field communication (NFC) module, to promote junction service.Example Such as, in NFC module radio frequency identification (RFID) technology can be based on, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 900 can be believed by one or more application specific integrated circuits (ASIC), numeral Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 904 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 920 of device 900.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of mobile terminal When device performs so that mobile terminal is able to carry out a kind of bluetooth equipment control method, and methods described includes:
Judge whether the control device is established with the bluetooth equipment to connect;
When the control device is not established with the bluetooth equipment to be connected, determine that the control device is pressed by Key;
Control broadcast packet is generated according to the button, referred in the control broadcast packet comprising control corresponding to the button Order;
The control broadcast packet is sent with non-directional broadcast mode, the bluetooth equipment is broadcasted from the control received The control instruction is parsed in bag, and performs control operation corresponding to the control instruction.
Optionally, it is described that the control broadcast packet is sent with non-directional broadcast mode, including:
Before the button is released, the control broadcast packet at least twice is sent with non-directional broadcast mode.
Optionally, it is described that control broadcast packet is generated according to the button, including:
Obtain control instruction corresponding to the button;
According to the control instruction and the mapping table of key assignments to prestore, key assignments corresponding to the control instruction is inquired about;
The control broadcast packet is generated, described control in broadcast packet represents the key assignments with preset byte.
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is held by the processor of terminal During row so that terminal is able to carry out a kind of bluetooth equipment control method, and methods described includes:
Control broadcast packet is received, the control device for controlling broadcast packet as the bluetooth equipment is with non-directional broadcast mode What is sent is used to control the packet of the bluetooth equipment;
The control broadcast packet is parsed, obtains control instruction;
Perform control operation corresponding to the control instruction.
Optionally, when receiving the control of identical first broadcast packet at least twice, methods described also includes:
The the first control broadcast packet received for the first time is parsed, obtains control instruction, and perform the control Control operation corresponding to system instruction;
The the first control broadcast packet received after ignoring for the first time, is broadcasted until receiving with the described first control Wrap the second different control broadcast packets.
Optionally, it is described that the control broadcast packet is parsed, control instruction is obtained, including:
Extract the preset byte of the control broadcast packet;
Obtain key assignments corresponding to the preset byte;
According to the control instruction and the mapping table of key assignments to prestore, control instruction corresponding to the key assignments is inquired about.
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice invention disclosed herein Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledges in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following Claim is pointed out.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.

Claims (10)

  1. A kind of 1. bluetooth equipment control method, it is characterised in that for the control device of bluetooth equipment, including:
    Judge whether the control device is established with the bluetooth equipment to connect;
    When the control device is not established with the bluetooth equipment to be connected, the button that the control device is pressed is determined;
    Control broadcast packet is generated according to the button, control instruction corresponding to the button is included in the control broadcast packet;
    The control broadcast packet is sent with non-directional broadcast mode, the bluetooth equipment is from the control broadcast packet received The control instruction is parsed, and performs control operation corresponding to the control instruction;
    It is described that control broadcast packet is generated according to the button, including:
    Obtain control instruction corresponding to the button;
    According to the control instruction and the mapping table of key assignments to prestore, key assignments corresponding to the control instruction is inquired about;
    The control broadcast packet is generated, described control in broadcast packet represents the key assignments with preset byte.
  2. 2. according to the method for claim 1, it is characterised in that described that the control broadcast is sent with non-directional broadcast mode Bag, including:
    Before the button is released, the control broadcast packet at least twice is sent with non-directional broadcast mode.
  3. A kind of 3. bluetooth equipment control method, it is characterised in that for bluetooth equipment, including:
    Control broadcast packet is received, it is described to control the control device that broadcast packet is the bluetooth equipment to be sent with non-directional broadcast mode Be used for control the packet of the bluetooth equipment;
    The control broadcast packet is parsed, obtains control instruction;
    Perform control operation corresponding to the control instruction;
    It is described that the control broadcast packet is parsed, control instruction is obtained, including:
    Extract the preset byte of the control broadcast packet;
    Obtain key assignments corresponding to the preset byte;
    According to the control instruction and the mapping table of key assignments to prestore, control instruction corresponding to the key assignments is inquired about.
  4. 4. according to the method for claim 3, it is characterised in that control broadcast packet when receiving identical first at least twice When, methods described also includes:
    The the first control broadcast packet received for the first time is parsed, obtains control instruction, and performs the control and refers to Control operation corresponding to order;
    The the first control broadcast packet received after ignoring for the first time, until receiving with the described first control broadcast packet not The second same control broadcast packet.
  5. A kind of 5. bluetooth equipment control device, it is characterised in that for the control device of bluetooth equipment, including:
    Judge module, connected for judging whether the control device is established with the bluetooth equipment;
    Determining module, for when the control device is not established with the bluetooth equipment and connected, determining the control device quilt The button pressed;
    Generation module, for generating control broadcast packet according to the button, corresponded in the control broadcast packet comprising the button Control instruction;
    Sending module, for sending the control broadcast packet with non-directional broadcast mode, the bluetooth equipment is from the institute received State in control broadcast packet and parse the control instruction, and perform control operation corresponding to the control instruction;
    The generation module includes:
    Acquisition submodule, for obtaining control instruction corresponding to the button;
    Submodule is inquired about, for according to the control instruction and the mapping table of key assignments to prestore, it is corresponding to inquire about the control instruction Key assignments;
    Submodule is generated, for generating the control broadcast packet, described control in broadcast packet represents the key assignments with preset byte.
  6. 6. device according to claim 5, it is characterised in that the sending module, for being released it in the button Before, the control broadcast packet at least twice is sent with non-directional broadcast mode.
  7. A kind of 7. bluetooth equipment control device, it is characterised in that for bluetooth equipment, including:
    Receiving module, broadcast packet is controlled for receiving, the control device for controlling broadcast packet as the bluetooth equipment is with non-fixed The packet for being used to control the bluetooth equipment sent to broadcast mode;
    Parsing module, for being parsed to the control broadcast packet, obtain control instruction;
    Execution module, for performing control operation corresponding to the control instruction;
    The parsing module includes:
    Extracting sub-module, for extracting the preset byte of the control broadcast packet;
    Acquisition submodule, for obtaining key assignments corresponding to the preset byte;
    Submodule is inquired about, for according to the control instruction and the mapping table of key assignments to prestore, inquiring about and being controlled corresponding to the key assignments System instruction.
  8. 8. device according to claim 7, it is characterised in that
    The parsing module, for when receive at least twice identical first control broadcast packet when, to what is received for the first time The first control broadcast packet is parsed, and obtains control instruction;First control received after ignoring for the first time is wide Bag is broadcast, until receiving the second control broadcast packet different from the described first control broadcast packet;
    The execution module, for performing control operation corresponding to the control instruction.
  9. A kind of 9. bluetooth equipment control device, it is characterised in that including:
    Processor;
    For storing the memory of processor-executable instruction;
    Wherein, the processor is configured as:
    Judge whether the control device is established with the bluetooth equipment to connect;
    When the control device is not established with the bluetooth equipment to be connected, the button that the control device is pressed is determined;
    Control broadcast packet is generated according to the button, control instruction corresponding to the button is included in the control broadcast packet;
    The control broadcast packet is sent with non-directional broadcast mode, the bluetooth equipment is from the control broadcast packet received The control instruction is parsed, and performs control operation corresponding to the control instruction;
    It is described that control broadcast packet is generated according to the button, including:
    Obtain control instruction corresponding to the button;
    According to the control instruction and the mapping table of key assignments to prestore, key assignments corresponding to the control instruction is inquired about;
    The control broadcast packet is generated, described control in broadcast packet represents the key assignments with preset byte.
  10. A kind of 10. bluetooth equipment control device, it is characterised in that including:
    Processor;
    For storing the memory of processor-executable instruction;
    Wherein, the processor is configured as:
    Control broadcast packet is received, it is described to control the control device that broadcast packet is the bluetooth equipment to be sent with non-directional broadcast mode Be used for control the packet of the bluetooth equipment;
    The control broadcast packet is parsed, obtains control instruction;
    Perform control operation corresponding to the control instruction;
    It is described that the control broadcast packet is parsed, control instruction is obtained, including:
    Extract the preset byte of the control broadcast packet;
    Obtain key assignments corresponding to the preset byte;
    According to the control instruction and the mapping table of key assignments to prestore, control instruction corresponding to the key assignments is inquired about.
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 CN104318741A (en) 2015-01-28
CN104318741B true 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)

Families Citing this family (25)

* 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
CN104835304B (en) * 2015-05-25 2019-01-01 中颖电子股份有限公司 Bluetooth remote control device and its configuration method
CN107041170B (en) * 2015-12-03 2020-11-03 华为技术有限公司 Data sending method, 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
CN106681774B (en) * 2016-12-30 2021-01-12 Tcl通力电子(惠州)有限公司 Software upgrading method of Bluetooth loudspeaker and intelligent terminal
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
CN107087221A (en) * 2017-05-27 2017-08-22 环球智达科技(北京)有限公司 Remote control thereof for many equipment
CN107222777B (en) * 2017-07-19 2019-02-26 深圳创维数字技术有限公司 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
CN108415385B (en) * 2018-02-11 2021-05-14 张戈零 Intelligent home control system based on Bluetooth communication
CN108449741A (en) * 2018-03-12 2018-08-24 深圳前海智联逗号科技有限公司 The method of bluetooth equipment quickly connected
CN108449746B (en) * 2018-06-14 2021-06-01 歌尔科技有限公司 BT connection establishing method, wireless earphone and TWS earphone
CN109151788A (en) * 2018-09-28 2019-01-04 咪付(广西)网络技术有限公司 A kind of data in mobile phone transmission method and system based on bluetooth low energy device
CN109788330A (en) * 2018-12-25 2019-05-21 深圳康佳电子科技有限公司 TV bluetooth standby wakeup processing method, TV and remote controler
CN109982304A (en) * 2019-01-08 2019-07-05 深圳市华曦达科技股份有限公司 A kind of blue Tooth remote controller and set-top box automatic matching method and intelligent terminal
CN113132962B (en) * 2019-04-16 2022-12-06 华为技术有限公司 Bluetooth scanning method and electronic equipment
CN112530149B (en) * 2019-09-17 2023-09-22 青岛海信宽带多媒体技术有限公司 Remote control method and device
CN110691332A (en) * 2019-09-17 2020-01-14 湖南简成信息技术有限公司 Data processing method, device and storage medium based on Bluetooth broadcast
CN112202969A (en) * 2020-09-27 2021-01-08 珠海格力电器股份有限公司 Bluetooth control method and device
CN112907930A (en) * 2021-03-12 2021-06-04 江门市征极光兆科技有限公司 Remote controller, controlled equipment and method for realizing code matching based on Bluetooth broadcast packet

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7587207B2 (en) * 2000-06-26 2009-09-08 Ipg Electronics 503 Limited Data delivery through beacons
EP1411686A3 (en) * 2002-10-18 2006-10-11 Samsung Electronics Co., Ltd. Wireless communication device and method capable of connectionless broadcast
CN102298833A (en) * 2011-09-14 2011-12-28 中兴通讯股份有限公司 Remote controller
CN103985234B (en) * 2014-04-23 2016-08-24 杭州微纳科技股份有限公司 Remote control thereof based on Bluetooth broadcast bag
CN104036628A (en) * 2014-05-22 2014-09-10 杭州微纳科技有限公司 Intelligent remote controller based on Bluetooth and quick pairing method
CN104035403B (en) * 2014-05-23 2017-01-18 四川长虹电器股份有限公司 Ibeacon technology based intelligent home control system and method

Also Published As

Publication number Publication date
CN104318741A (en) 2015-01-28

Similar Documents

Publication Publication Date Title
CN104318741B (en) Bluetooth equipment control method and device
CN104038263B (en) Method and device for establishing Bluetooth connection
CN104159218B (en) Internetwork connection establishing method and device
EP3151507A1 (en) Methods and apparatuses for controlling device
CN104703295A (en) Network access method and network access device
CN105049416A (en) Method and apparatus for accessing to wifi network
CN104540184A (en) Equipment networking method and device
CN105228147A (en) Method for connecting network, Apparatus and system
CN104853336A (en) Method for discovering intelligent equipment, method for accessing to internet and devices thereof
CN105338399A (en) Image acquisition method and device
CN105068467B (en) Control the method and device of smart machine
CN104735670A (en) Network access method and device
CN106792448A (en) Bluetooth connecting method and device, system
CN104506443A (en) Router setting interface display method and device
CN103970576A (en) Installation information displaying method, obtaining method and device
CN104636110A (en) Method and device for controlling volume
CN104950838A (en) Network account binding method and device
CN107682538A (en) The display methods and device of application interface
CN105224171A (en) icon display method, device and terminal
CN104159283A (en) Method and device for controlling message transmission
CN104881342A (en) Terminal testing method and device
CN104503762A (en) Device and method for identifying electronic accessory
CN105208673A (en) Communication establishing method and device
CN106358064A (en) Method and equipment for controlling television
CN104539497B (en) Method for connecting network 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