CN106412814A - Bluetooth device identifying method and wireless router - Google Patents

Bluetooth device identifying method and wireless router Download PDF

Info

Publication number
CN106412814A
CN106412814A CN201611103504.1A CN201611103504A CN106412814A CN 106412814 A CN106412814 A CN 106412814A CN 201611103504 A CN201611103504 A CN 201611103504A CN 106412814 A CN106412814 A CN 106412814A
Authority
CN
China
Prior art keywords
bluetooth equipment
broadcast packet
identified
mark
bluetooth
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
CN201611103504.1A
Other languages
Chinese (zh)
Other versions
CN106412814B (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.)
Aigo Electronic Technology Co Ltd
Original Assignee
Aigo Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Aigo Electronic Technology Co Ltd filed Critical Aigo Electronic Technology Co Ltd
Priority to CN201611103504.1A priority Critical patent/CN106412814B/en
Publication of CN106412814A publication Critical patent/CN106412814A/en
Application granted granted Critical
Publication of CN106412814B publication Critical patent/CN106412814B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/60Router architectures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals

Abstract

The invention discloses a Bluetooth device identifying method and a wireless router, which belongs to the field of communication. The method comprises the steps that a Bluetooth device within a Bluetooth communication distance range is scanned; a designated identifier included in the broadcast packet of the scanned Bluetooth device is identified; and whether the Bluetooth device is an identifiable Bluetooth device is determined. The wireless router comprises a scanning module and an identification module. According to the invention, man-made manual operation is prevented; automatic Bluetooth device management is realized; different Bluetooth devices are fast searched and connected through an identification authentication method; and the efficiency and effectiveness of Bluetooth communication are improved.

Description

The method of identification bluetooth equipment and wireless router
Technical field
The present invention relates to the communications field, more particularly, it relates to a kind of method of identification bluetooth equipment and wireless router.
Background technology
Rapidly develop with informationalized, people exchange to information and the demand of communication is increasingly strong.Along with bluetooth skill The gradually maturation of art, occurs in that the bluetooth equipment more and more adopting Bluetooth communication.For example there are bluetooth motion detection bracelet, indigo plant Tooth doctor's type scale, bluetooth sphygomanometer, blue-tooth intelligence home equipment etc..People can obtain corresponding information by these bluetooth equipments Data or carry out corresponding Based Intelligent Control, thus the experience and improving the quality of living of making the life better.
It is necessary to artificial manual operation on intelligent terminal when being communicated between existing bluetooth equipment and intelligent terminal, Open Bluetooth function to be scanned, then reconnect bluetooth equipment and carry out data transmission.These search bluetooth equipment and unlatching The data transfer of bluetooth equipment, is required to manual hand manipulation, leads to using upper very inconvenient, and expends the time, in time Property poor, increase bluetooth equipment management cost, reduce the service efficiency of bluetooth equipment.
Content of the invention
The goal of the invention of the present invention is the defect for prior art, proposes a kind of method of identification bluetooth equipment and wireless Router, in order to realize the automated management of bluetooth equipment, improves efficiency and the effectiveness of Bluetooth communication.
On the one hand, the invention provides a kind of method of identification bluetooth equipment, methods described includes:
Bluetooth equipment in scanning Bluetooth communication distance range;
Identify the designated identification included in the broadcast packet of bluetooth equipment scanning, it is determined whether for the indigo plant that can be identified Tooth equipment.
Preferably, the designated identification included in the broadcast packet of the bluetooth equipment that described identification scans, it is determined whether be The bluetooth equipment that can be identified, including:
Whether comprise the first mark in the broadcast packet scanning described in identification, if so, determine the indigo plant sending described broadcast packet Tooth equipment is the bluetooth equipment that can be identified, if it is not, continuing to scan on bluetooth equipment.
Preferably, after the described bluetooth equipment determining the described broadcast packet of transmission is the bluetooth equipment that can be identified, also wrap Include:
The second mark included in the broadcast packet of bluetooth equipment being identified described in identification, determines in described broadcast packet Whether comprise data available, if so, then report the broadcast packet of the described bluetooth equipment that can be identified.
Preferably, the second mark included in the broadcast packet of bluetooth equipment being identified described in described identification, determines Whether data available is comprised in described broadcast packet, including:
The second mark included in broadcast packet according to the described bluetooth equipment being identified is judged, if described Second mark is included for the 3rd mark identifying the data that whether there is bluetooth equipment in described broadcast packet it is determined that described Data available is comprised in broadcast packet.
Preferably, the second mark included in the broadcast packet of bluetooth equipment being identified described in described identification, determines Whether data available is comprised in described broadcast packet, including:
The second mark included in broadcast packet according to the described bluetooth equipment being identified is judged, if described Second mark includes obtaining with the presence or absence of needing first to connect bluetooth equipment for identifying in the described bluetooth equipment that can be identified again The 4th mark of data taking bluetooth equipment is it is determined that comprise data available in described broadcast packet.
On the other hand, present invention also offers a kind of wireless router, described wireless router includes:
Scan module, for scanning the bluetooth equipment in Bluetooth communication distance range;
Identification module, for identifying the designated identification included in the broadcast packet of the bluetooth equipment scanning, it is determined whether For the bluetooth equipment that can be identified.
Preferably, described identification module includes:
Whether the first recognition unit, comprise the first mark in the broadcast packet that scans described in identifying, if so, determine and send out The bluetooth equipment sending described broadcast packet is the bluetooth equipment that can be identified, if it is not, then triggering described scan module to continue to scan on indigo plant Tooth equipment.
Preferably, described identification module also includes:
Second recognition unit, for determine the bluetooth equipment sending described broadcast packet be the bluetooth equipment that can be identified it Afterwards, identify that included in the described broadcast packet of bluetooth equipment that can be identified second identifies, whether determine in described broadcast packet Comprise data available, if so, then triggering communication module reports the broadcast packet of the described bluetooth equipment that can be identified;
Described wireless router also includes:Described communication module, for reporting the wide of the described bluetooth equipment that can be identified Broadcast bag.
Preferably, described second recognition unit is used for:
The second mark included in broadcast packet according to the described bluetooth equipment being identified is judged, if described Second mark is included for the 3rd mark identifying the data that whether there is bluetooth equipment in described broadcast packet it is determined that described Data available is comprised in broadcast packet;And/or,
The second mark included in broadcast packet according to the described bluetooth equipment being identified is judged, if described Second mark includes obtaining with the presence or absence of needing first to connect bluetooth equipment for identifying in the described bluetooth equipment that can be identified again The 4th mark of data taking bluetooth equipment is it is determined that comprise data available in described broadcast packet.
Preferably, described communication module is specifically for reporting the broadcast packet of the described bluetooth equipment that can be identified to take to high in the clouds Business device.
The beneficial effect brought of technique scheme that the present invention provides is:By scanning bluetooth equipment, and identification is blue Designated identification in tooth device broadcasts bag, to determine whether bluetooth equipment can be identified, to do further to bluetooth equipment Process, without manually operated it is achieved that the automated management of bluetooth equipment, it is right to be capable of by way of identification authenticates The quick lookup of different Bluetooth devices be connected, improve efficiency and the effectiveness of Bluetooth communication.Furthermore, provided by the present invention Wireless router, can very easily different bluetooth equipments be managed, can automatically identify need identification bluetooth Equipment simultaneously obtains its required related data, extends the application of wireless router.
Brief description
Fig. 1 shows the method flow diagram of identification bluetooth equipment according to an embodiment of the invention;
Fig. 2 shows the method flow diagram of identification bluetooth equipment in accordance with another embodiment of the present invention;
Fig. 3 illustrates that the wireless router according to an embodiment of the present invention is used for executing the identification bluetooth equipment of the present invention The schematic diagram of the structure of method.
Specific embodiment
For being fully understood by purpose, feature and effect of the present invention, by following specific embodiments, the present invention is done in detail Describe in detail bright, but the present invention is not restricted to this.
Embodiment 1
Referring to Fig. 1, present embodiments provide a kind of method of identification bluetooth equipment, including:
101:Bluetooth equipment in scanning Bluetooth communication distance range;
102:Identify the designated identification included in the broadcast packet of bluetooth equipment scanning, it is determined whether for being identified Bluetooth equipment.
In the present embodiment, by ceaselessly carrying out the scanning of bluetooth equipment, to the bluetooth equipment scanning, identify its broadcast Designated identification included in bag, according to the judgement to designated identification, the bluetooth equipment recognizing the need for, such that it is able to further Ground and bluetooth devices.
In the present embodiment, the designated identification included in broadcast packet, by the self-defined setting of bluetooth equipment manufacturer, can include The MAC Address of bluetooth equipment, the title of bluetooth equipment and other any marks that can be identified by Bluetooth communication equipment.This bluetooth Communication equipment can be for example to have the wireless router of function of Bluetooth communication, mobile phone, panel computer etc..This designated identification is for example Specifically may include the first mark flag1, this first mark, by the self-defined setting of bluetooth equipment manufacturer, sends this broadcast for judgement Whether the bluetooth equipment of bag can be identified, as long as the broadcast packet of bluetooth equipment includes the first mark of the self-defined setting of manufacturer, Communication equipment for identifying this broadcast packet just can identify this bluetooth equipment.Thus, step 102 can specifically include:Know Whether comprise the first mark in the broadcast packet not scanned, if so, determine that the bluetooth equipment sending this broadcast packet is to be identified Bluetooth equipment, if it is not, then continuing to scan on bluetooth equipment.
Wherein, the first mark flag1 is can be identified mark, as long as the broadcast packet of bluetooth equipment includes this mark, just Can be identified in identification process, to confirm that the bluetooth equipment sending this broadcast packet is the bluetooth equipment that can be identified.Otherwise, directly Connect and ignore this broadcast packet, proceed to scan other bluetooth equipments.So, self-defined by adding in bluetooth equipment broadcast packet Mark such as flag1 mark, can easily realize the identification to miscellaneous bluetooth equipment, in multiple bluetooth equipments automatically Coupling need the bluetooth equipment that connects, no matter solve the problems, such as that bluetooth equipment production firm is different and None- identified coupling The bluetooth equipment which manufacturer produces, as long as the broadcast packet of its bluetooth equipment includes the first mark flag1, all can be identified. For example, flag1 can be 0x197F, and it comes from each alphabetical ascii code (a of aigo:0x61, i:0x69, g:0x67, o: 0x6F), each ascii takes rear 4bit naturally it is also possible to be set to other values, and the application is not especially limited.
In the present embodiment, optionally, to the bluetooth equipment that can be identified, bag can also be broadcasted and report to cloud service Device, is further processed analysis by cloud server to its broadcast packet, judges the broadcast of this bluetooth equipment that can be identified Whether comprise the data of bluetooth equipment in bag, and be first attached obtaining the number of bluetooth equipment again the need of with bluetooth equipment According to etc..
The said method that the present embodiment provides, by scanning the finger in bluetooth equipment, and identification bluetooth equipment broadcast packet Calibration is known, and determining whether bluetooth equipment can be identified, further to be processed to bluetooth equipment, need not artificially grasp manually Make, it is achieved that the automated management of bluetooth equipment, to be capable of quick to different Bluetooth devices by way of identification authenticates Search and be connected, improve efficiency and the effectiveness of Bluetooth communication.
Embodiment 2
Referring to Fig. 2, present embodiments provide a kind of method of identification bluetooth equipment, including:
201:Bluetooth equipment in scanning Bluetooth communication distance range;
The method that the present embodiment provides can be executed by wireless router, and this wireless router can be on existing road To be realized by function of Bluetooth communication is increased on device.
Wherein, the broadcast packet of bluetooth equipment transmission can be received during scanning bluetooth equipment, when surrounding has multiple indigo plants The broadcast packet of multiple bluetooth equipments during tooth equipment, can be received, the application does not limit the number of bluetooth equipment.
202:Identifying in the broadcast packet scanning and whether comprise the first mark, sending this broadcast packet if it is, determining Bluetooth equipment is the bluetooth equipment that can be identified, and executes 203, otherwise, it determines the bluetooth equipment sending this broadcast packet is cannot Identified bluetooth equipment, returns execution 201;
In the present embodiment, optionally, described first mark flag1 be used for judging bluetooth equipment be whether can be identified according to According to the concrete form of the first mark flag1 can be represented by the identifier that manufacturer is arranged as required to, the application does not limit.
203:The second mark comprising in the broadcast packet of the bluetooth equipment being identified according to this is judged, judge this Whether include the 3rd mark for identifying the data that whether there is bluetooth equipment in broadcast packet in two marks, if include this It is determined that there is the data of bluetooth equipment in this broadcast packet in three marks;
204:Judge whether include in this second mark needing first to connect bluetooth for identifying to whether there is in bluetooth equipment Equipment obtains the 4th mark of the data of bluetooth equipment again, if including the 4th mark it is determined that comprise in this broadcast packet can Use data;
205:Report the broadcast packet of this bluetooth equipment.
In the present embodiment, the designated identification in bluetooth equipment broadcast packet, by the self-defined setting of bluetooth equipment manufacturer, for example may be used To include MAC Address, the title of equipment and other any marks that can be identified by wireless router of equipment.
Specifically, this designated identification can include the first mark flag1, the second mark flag2.Second mark flag2 For identifying the data available whether comprising bluetooth equipment in broadcast packet, two marks can be subdivided into:3rd mark flag21 With the 4th mark flag22.Wherein, the 3rd mark flag21 is used for identifying whether there is in broadcast packet needs the bluetooth reporting to set Standby data, the 4th mark flag22 is used for identifying after which type of data needs wireless router to connect bluetooth equipment Report.Wherein, judge that the implementation whether including the 3rd mark in the second mark has many kinds, specific it can be determined that second A field, a byte or a bit of specifying etc. whether is included, if including it is determined that this broadcast in mark There is the data of bluetooth equipment, if do not included it is determined that there is not the data of bluetooth equipment in this broadcast packet in bag.Or Whether the value that may determine that certain bit in the second mark is the value specified, if the first specified value it is determined that this is wide Broadcast the data that there is bluetooth equipment in bag, if specified second value it is determined that there is not bluetooth equipment in this broadcast packet Data.Judgement for the 4th mark in broadcast packet is referred to the mode of the 3rd mark or other mode, this Bright it is not specifically limited.
For example, it is possible to realize the work(of above-mentioned flag21 and flag22 by arranging different bit in the second mark Energy.Second mark can be set and include 16 bits, wherein bit15 identifies as flag21, bit0-bit14 conduct Flag22 is such that it is able to realize differentiation and the transmission of most 15 class data.It is specifically as follows and judge bit15 in the second mark Value, if 1 it is determined that there is the data of this bluetooth equipment in this broadcast packet, if 0 it is determined that not depositing in this broadcast packet Data in this bluetooth equipment.Meanwhile, judge the value of the bit0-bit14 in the second mark, if the value on some bit For 1 it is determined that needing wireless router first to connect the data that the corresponding bluetooth equipment of this bit obtains bluetooth equipment again, if The value of all bits is 0, then no data obtains after needing to connect bluetooth equipment.Therefore, if include flag21 and The bit value of flag22 is not all 0, then comprise data available in the broadcast packet that can determine that bluetooth equipment.
In the present embodiment, optionally, the broadcast packet of this bluetooth equipment can be reported cloud server to be processed.
In addition, it is necessary to explanation, in the present embodiment, step 203 and 204 can also only execute one therein, and permissible It is any one.When only executing one therein, if broadcast packet does not include the 3rd mark or the 4th mark, wireless router will May proceed to scan;When two steps all include, the order of this two step can be exchanged, and such as first carry out 204 and execute 203 again, or Person can also be carried out simultaneously, as long as broadcast packet includes the 3rd mark and any one of the 4th mark, you can determine this broadcast packet Comprise data available.
In the present embodiment, specifically, the first mark flag1 is can be identified mark, as long as in the broadcast packet of bluetooth equipment Including this mark so that it may identify in identification process, to determine that the bluetooth equipment sending this broadcast packet is the bluetooth that can be identified Equipment.Otherwise, directly ignore this broadcast packet, proceed to scan other bluetooth equipments.
To the bluetooth equipment being identified determined by the identification by flag1, can be by included in its broadcast packet The second mark do and identify further, identify the broadcast packet including data available, and this broadcast packet reported to cloud service Device or other-end or server etc..Can be arranged as required to for the second mark flag2, specifically not limit.
In the present embodiment, comprising data available in the broadcast packet determining by the second mark flag2, to specifically refer to this wide Broadcast the data of bluetooth equipment comprising directly to obtain from broadcast packet in bag and/or needs connect the bluetooth sending this broadcast packet The data of the bluetooth equipment that could obtain after equipment.In a particular embodiment, for the data of bluetooth equipment, specifically which data Directly obtained by broadcast packet, which data is uploaded to by reconnecting after being judged by broadcast packet after bluetooth equipment obtains further Cloud server, can be set by manufacturer oneself, specifically not limit.For example, the data such as weather, ambient temperature, humidity can be by It is included in broadcast packet, when comprising data in this broadcast packet of identification, then report this broadcast packet, cloud server receives this broadcast Direct access related data after bag;And heart rate, blood pressure, sleep etc. represent the data of human body physiological state, because these data pair Detect extremely important in Human Physiology, if directly receive by the broadcast packet of bluetooth equipment obtaining these data it would be possible to meeting The situation that data-transmission interruptions or leakage pass occurs, lead to not complete and comprehensively analysis human body physiological data it is possible to elder generation By the identification of broadcast packet is judged with whether have such data to need to upload, if having, reconnect the bluetooth sending this broadcast packet Cloud server is reported after devices collect data.
In the present embodiment, optionally, when not comprising data in broadcast packet, this broadcast packet can be abandoned and do not processed, Do not do excessive explanation herein.
In addition, in the present embodiment, it is also possible to this broadcast packet is sent to cloud when not comprising data in determining broadcast packet End server is analyzed, and to be determined the need for by cloud server being connected acquisition data again with bluetooth equipment, if high in the clouds Determine after the second mark in this broadcast packet of server analysis that this bluetooth equipment obtains data after needing to connect again, then can basis The instruction execution that cloud server is sent be connected with bluetooth equipment and transmission data operation.Can be specifically:When receiving During the instruction of acquisition data that cloud server is sent, set up with this bluetooth equipment and be connected, receive the data of this bluetooth equipment.This The mode of kind can ensure that, by the management of cloud server, the effectiveness that bluetooth equipment connects, to avoid invalid connection.
Citing below illustrates how to arrange the first mark and the second mark.Wherein, broadcast packet manufacturer can be arranged extensively The data form broadcasting bag includes:Length, type and self-defining data block, this self-defining data block includes manufacturer id and first mark Know, second identifies and MAC Address, and meet following rule:
A, manufacturer id take the first and second bytes totally two bytes.
B, the second mark flag2 take the third and fourth byte totally two bytes, wherein it is possible to setting second mark Flag2 further includes flag21 and flag22.Bit15 (flag21) identifies the number that whether there is bluetooth equipment in this broadcast packet According to needing to upload in real time, bit0-bit14 (flag22) then has which class data obtains, at most after needing to connect in mark equipment Support 15 class data.
C, the broadcast data that need to report, wherein, when flag21 identifies and there is effective broadcast data in this broadcast packet, take Byte be more than 0;When flag21 identifies and there is not effective broadcast data in this broadcast packet, the byte of occupancy is 0.
D, the first mark flag1 take two bytes, flag1 as the mark being identified of bluetooth equipment, no matter which The bluetooth equipment of individual manufacturer, as long as comprise this first mark it is possible to confirm as the bluetooth equipment that can be identified;
E, with MAC Address (6 byte) ending.
Therefore, the shortest in the self-defining data field that broadcast packet includes is 12 byte datas, concrete form such as table 1 below and Shown in table 2, wherein, table 1 is broadcast packet data form, and table 2 is the form of self-defining data.
Table 1
Table 2
Specifically, flag1 is the first mark, is specifically as follows 0x197F, comes from each alphabetical ascii code (a of aigo: 0x61, i:0x69, g:0x67, o:0x6F), each ascii takes rear 4bit.Other values can certainly be set to, the present invention has Body does not limit.Flag2 is made up of flag21 and flag22, is identified by flag21 and flag22 in the broadcast packet of bluetooth equipment The whether data available reporting in need.Flag21 identifies in this broadcast packet the data of the whether bluetooth equipment reporting in need, and 0 As do not have, 1 is to have naturally it is also possible to be 1 to be not have, and 0 is to have or differentiate by other means.Flag22 is then used for identifying indigo plant Have in tooth equipment which data is obtained after needing to connect bluetooth equipment, common 15bit, could support up 15 class data, wherein often One bit represents a kind of data type, when value is 0 then it represents that this type no data reports, when value is 1 then it represents that there being number Report according to needs, such as the information such as heart rate, sleep.Analysis can be made beyond the clouds on server and identify and issue command adapted thereto and carry out even Obtain and fetch data, 0 reports for this type no data, 1 needs to connect acquisition for the type data.Due to there may be multiple data Update, therefore, it can the priority arranging to obtain, it is higher to be defined herein as higher bit priority, such as bit14>bit13>…> Naturally it is also possible to adopt alternate manner, the present invention does not specifically limit bit0 etc..Bluetooth equipment manufacturer should voluntarily determine inhomogeneity The renewal position of type data, such as represents heart rate with bit14, and bit13 represents blood pressure etc., and cloud server obtains preferential according to this during data Level issues instruction accordingly, first obtains heart rate data and then obtains blood pressure data again, thus realizing different according to priority acquisition Blue-teeth data.
Therefore, in the present embodiment, the value of flag21 and flag22 included by as flag2 is all when 0 then it represents that this indigo plant No data available in the broadcast packet of tooth equipment, otherwise then it represents that comprising data available in the broadcast packet of this bluetooth equipment.Concrete ginseng See below example 1 and example 2.
Example 1:
The self-defined broadcast packet of manufacturer is:0x0D FF 0157 4001 197F AAAAAAAAAAAA
After then disassembling it is:
Length:13 bytes (0x0D);
Type:Manufacturer's self-defining data (0xFF);
Manufacturer:Vendor id (0x0157, citing uses, and this Chu Xu equipment vendors makes by oneself);
0x4001 binary system is 0,100 0,000 0,000 0001:Bit15 is 0, and no data needs to pass in real time by broadcast Defeated, bit14, bit0 are 1, have two class data to need to connect bluetooth equipment upload;
0x197F:Flag1 identifies, and determines whether, by this, the bluetooth equipment that can be identified;
MAC Address:0xAAAAAAAAAAAA.
Wireless router detects aigo flag flag1 and is designated 0x197F, and meanwhile, 0x4001 is not all 0, then by this Initial data (0,157 4001 197F AAAAAAAAAAAA) in broadcast packet is uploaded to high in the clouds and is processed.
Example 2:
The self-defined broadcast packet of manufacturer is:0x0F FF 0000 8001 1F22 197F AAAAAAAAAAAA
After then disassembling it is:
Length:15 bytes (0x0F);
Type:Manufacturer's self-defining data (0xFF);
Manufacturer:Vendor id (0x0000, citing uses, and this Chu Xu equipment vendors makes by oneself);
0x8001 binary system is 1,000 0,000 0,000 0001:Bit15 is 1, has data to need to pass in real time by broadcast Defeated, bit0 is 1, has 1 class data to need to connect bluetooth equipment upload;
0x1F22:Real time data using broadcast transmission;
0x197F:Flag1 identifies, and determines whether, by this, the bluetooth equipment that can be identified;
MAC Address:0xAAAAAAAAAAAA.
Wireless router detects aigo flag flag1 and is designated 0x197F, and meanwhile, 0x8001 is not all 0, that is, have number According to needing to transmit, then the initial data (0,000 8001 1F22 197F AAAAAAAAAAAA) in this broadcast packet is uploaded to cloud End is processed.
The said method that the present embodiment provides, by scanning the finger in bluetooth equipment, and identification bluetooth equipment broadcast packet Calibration is known, and to determine what whether bluetooth equipment can be identified, further to be processed to bluetooth equipment, need not be artificially manual Operation, it is achieved that the automated management of bluetooth equipment, can carry out the renewal of data to multiple bluetooth equipments and control is checked.Logical The mode crossing identification authentication is capable of the quick lookup to different Bluetooth devices and is connected, it is to avoid collection useless bluetooth sets Standby, save the time that the lookup of bluetooth equipment and data upload, reduce the resource occupation of wireless router, improve bluetooth and lead to The efficiency of letter and effectiveness.
In addition, wireless router only takies when needing data interaction, after the completion of interaction, just disconnect bluetooth equipment, reduce The consume of wireless router is it is possible to manage more bluetooth equipments.The dissection process of data and corresponding is realized by high in the clouds Process, know connection status, the effectiveness of bluetooth equipment, decrease the loaded down with trivial details one-tenth updating one by one at each bluetooth equipment end This, be conducive to the management of each bluetooth equipment facilitation, realize the fast development of Internet of Things.
Embodiment 3
Referring to Fig. 3, a kind of method of the identification bluetooth equipment for executing the present invention providing for the present embodiment wireless The structural representation of router.This wireless router includes:
Scan module 301, for scanning the bluetooth equipment in Bluetooth communication distance range;
Identification module 302, for identifying the designated identification included in the broadcast packet of the bluetooth equipment scanning, determination is The no bluetooth equipment for being identified.
In the present embodiment, optionally, identification module 302 includes:
Whether the first recognition unit, comprise the first mark in the broadcast packet that scans described in identifying, if it is determined that The bluetooth equipment sending described broadcast packet is the bluetooth equipment that can be identified, if it is not, then trigger described scan module continuing to scan on Bluetooth equipment.
In the present embodiment, optionally, identification module 302 also includes:
Second recognition unit, for determine the bluetooth equipment sending described broadcast packet be the bluetooth equipment that can be identified it Afterwards, identify that included in the described broadcast packet of bluetooth equipment that can be identified second identifies, whether determine in described broadcast packet Comprise data available, if so, then triggering communication module reports the broadcast packet of the described bluetooth equipment that can be identified;
Described wireless router also includes:Described communication module, for reporting the wide of the described bluetooth equipment that can be identified Broadcast bag.
In the present embodiment, optionally, described second recognition unit is used for:
The second mark included in broadcast packet according to the described bluetooth equipment being identified is judged, if described Second mark is included for the 3rd mark identifying the data that whether there is bluetooth equipment in described broadcast packet it is determined that described Data available is comprised in broadcast packet;And/or,
The second mark included in broadcast packet according to the described bluetooth equipment being identified is judged, if described Second mark includes obtaining with the presence or absence of needing first to connect bluetooth equipment for identifying in the described bluetooth equipment that can be identified again The 4th mark of data taking bluetooth equipment is it is determined that comprise data available in described broadcast packet.
In the present embodiment, optionally, described communication module is specifically for reporting the wide of the described bluetooth equipment that can be identified Broadcast bag to cloud server.
The above-mentioned wireless router that the present embodiment provides, by scanning bluetooth equipment, and identification bluetooth equipment broadcast packet In designated identification, to determine whether bluetooth equipment can be identified further to be processed to bluetooth equipment, need not be artificial Manual operation, it is achieved that the automated management of bluetooth equipment, is capable of to different Bluetooth devices by way of identification authenticates Quick lookup be connected, improve efficiency and the effectiveness of Bluetooth communication.Furthermore, the wireless routing being provided by the present invention Device, can very easily be managed to different bluetooth equipments, can automatically identify the bluetooth equipment needing identification and obtain Its required related data, extends the application of wireless router.
Finally it should be noted that be:Listed above is only the example that is embodied as of the present invention, the technology of certain this area Personnel can be modified to the present invention and modification, if these modifications and modification belong to the claims in the present invention and its equivalent skill Within the scope of art, all it is considered as protection scope of the present invention.

Claims (10)

1. a kind of method of identification bluetooth equipment is it is characterised in that methods described includes:
Bluetooth equipment in scanning Bluetooth communication distance range;
Identify the designated identification included in the broadcast packet of bluetooth equipment scanning, it is determined whether the bluetooth for being identified sets Standby.
2. method according to claim 1 is it is characterised in that institute in the broadcast packet of bluetooth equipment that scans of described identification The designated identification comprising, it is determined whether for the bluetooth equipment that can be identified, including:
Whether comprise the first mark in the broadcast packet scanning described in identification, if so, determine that the bluetooth sending described broadcast packet sets The standby bluetooth equipment for being identified, if it is not, continue to scan on bluetooth equipment.
3. method according to claim 2 is it is characterised in that the bluetooth equipment that described determination sends described broadcast packet is can After identified bluetooth equipment, also include:
Whether second included in the described broadcast packet of bluetooth equipment that can be identified of identification identifies, determine in described broadcast packet Comprise data available, if so, then report the broadcast packet of the described bluetooth equipment that can be identified.
4. method according to claim 3 is it is characterised in that the broadcast of the bluetooth equipment being identified described in described identification The second mark included in bag, determines in described broadcast packet whether comprise data available, including:
The second mark included in broadcast packet according to the described bluetooth equipment being identified is judged, if described second Mark is included for the 3rd mark identifying the data that whether there is bluetooth equipment in described broadcast packet it is determined that described broadcast Data available is comprised in bag.
5. method according to claim 3 is it is characterised in that the broadcast of the bluetooth equipment being identified described in described identification The second mark included in bag, determines in described broadcast packet whether comprise data available, including:
The second mark included in broadcast packet according to the described bluetooth equipment being identified is judged, if described second Mark includes obtaining indigo plant for identifying in the described bluetooth equipment that can be identified again with the presence or absence of needing first to connect bluetooth equipment 4th mark of the data of tooth equipment is it is determined that comprise data available in described broadcast packet.
6. a kind of wireless router is it is characterised in that described wireless router includes:
Scan module, for scanning the bluetooth equipment in Bluetooth communication distance range;
Identification module, for identifying the designated identification included in the broadcast packet of bluetooth equipment scanning, it is determined whether for can Identified bluetooth equipment.
7. wireless router according to claim 6 is it is characterised in that described identification module includes:
Whether the first recognition unit, comprise the first mark in the broadcast packet that scans described in identifying, if so, determine and send institute The bluetooth equipment stating broadcast packet is the bluetooth equipment that can be identified, and sets if it is not, then triggering described scan module and continuing to scan on bluetooth Standby.
8. wireless router according to claim 7 is it is characterised in that described identification module also includes:
Second recognition unit, after determining that the bluetooth equipment sending described broadcast packet is the bluetooth equipment that can be identified, knows The second mark included in the broadcast packet of the not described bluetooth equipment being identified, determines that whether comprise in described broadcast packet can With data, if so, then triggering communication module reports the broadcast packet of the described bluetooth equipment that can be identified;
Described wireless router also includes:Described communication module, for reporting the broadcast packet of the described bluetooth equipment that can be identified.
9. wireless router according to claim 8 is it is characterised in that described second recognition unit is used for:
The second mark included in broadcast packet according to the described bluetooth equipment being identified is judged, if described second Mark is included for the 3rd mark identifying the data that whether there is bluetooth equipment in described broadcast packet it is determined that described broadcast Data available is comprised in bag;And/or,
The second mark included in broadcast packet according to the described bluetooth equipment being identified is judged, if described second Mark includes obtaining indigo plant for identifying in the described bluetooth equipment that can be identified again with the presence or absence of needing first to connect bluetooth equipment 4th mark of the data of tooth equipment is it is determined that comprise data available in described broadcast packet.
10. wireless router according to claim 8 or claim 9 it is characterised in that
Described communication module is used for reporting the broadcast packet of the described bluetooth equipment that can be identified to cloud server.
CN201611103504.1A 2016-12-05 2016-12-05 Identify the method and wireless router of bluetooth equipment Active CN106412814B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611103504.1A CN106412814B (en) 2016-12-05 2016-12-05 Identify the method and wireless router of bluetooth equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611103504.1A CN106412814B (en) 2016-12-05 2016-12-05 Identify the method and wireless router of bluetooth equipment

Publications (2)

Publication Number Publication Date
CN106412814A true CN106412814A (en) 2017-02-15
CN106412814B CN106412814B (en) 2019-11-22

Family

ID=58085604

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611103504.1A Active CN106412814B (en) 2016-12-05 2016-12-05 Identify the method and wireless router of bluetooth equipment

Country Status (1)

Country Link
CN (1) CN106412814B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102983890A (en) * 2012-11-14 2013-03-20 北京小米科技有限责任公司 Method and device of pairing connection of equipment
CN104378145A (en) * 2014-11-27 2015-02-25 北京深思数盾科技有限公司 Pairing method and system of Bluetooth device
CN104780499A (en) * 2015-04-01 2015-07-15 惠州Tcl移动通信有限公司 Multi-device intelligent interconnection method and system based on Bluetooth
CN105338472A (en) * 2015-09-29 2016-02-17 爱国者电子科技有限公司 Wireless routing equipment, wireless routing system and communication method
CN105611488A (en) * 2015-12-31 2016-05-25 福建联迪商用设备有限公司 Automatic Bluetooth connection method and master device, slave device and system
CN105744466A (en) * 2016-01-26 2016-07-06 广东欧珀移动通信有限公司 Bluetooth equipment connection method and Bluetooth equipment
CN105792109A (en) * 2016-03-26 2016-07-20 上海斐讯数据通信技术有限公司 Bluetooth equipment connection processing method and system based on Linux system
CN105897309A (en) * 2015-08-17 2016-08-24 乐视致新电子科技(天津)有限公司 Intelligent device matching device and intelligent device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102983890A (en) * 2012-11-14 2013-03-20 北京小米科技有限责任公司 Method and device of pairing connection of equipment
CN104378145A (en) * 2014-11-27 2015-02-25 北京深思数盾科技有限公司 Pairing method and system of Bluetooth device
CN104780499A (en) * 2015-04-01 2015-07-15 惠州Tcl移动通信有限公司 Multi-device intelligent interconnection method and system based on Bluetooth
CN105897309A (en) * 2015-08-17 2016-08-24 乐视致新电子科技(天津)有限公司 Intelligent device matching device and intelligent device
CN105338472A (en) * 2015-09-29 2016-02-17 爱国者电子科技有限公司 Wireless routing equipment, wireless routing system and communication method
CN105611488A (en) * 2015-12-31 2016-05-25 福建联迪商用设备有限公司 Automatic Bluetooth connection method and master device, slave device and system
CN105744466A (en) * 2016-01-26 2016-07-06 广东欧珀移动通信有限公司 Bluetooth equipment connection method and Bluetooth equipment
CN105792109A (en) * 2016-03-26 2016-07-20 上海斐讯数据通信技术有限公司 Bluetooth equipment connection processing method and system based on Linux system

Also Published As

Publication number Publication date
CN106412814B (en) 2019-11-22

Similar Documents

Publication Publication Date Title
CN106793007B (en) Interactive communication method and system of cloud and Bluetooth device and wireless router
CN105208583B (en) Method and device for configuring intelligent household electrical appliance to access network and intelligent equipment
CN105319973B (en) A kind of method and device that smart home device is replaced by scanning the two-dimensional code
CN109041140B (en) Method for rapidly switching wireless network, intelligent hardware and terminal equipment
CN106658756A (en) Method and device for recognizing connection between terminal device and hotspot
CN102006588A (en) Method and system for monitoring network behavior of smart mobile phone
CN103726881A (en) System and method for acquiring and processing safety hidden trouble signals of coal mine
CN103957580A (en) Rapid WIFI networking matching method and module for smart hardware
CN104333913A (en) Electronic device and online setting method of external network and electronic device
CN104869621B (en) A kind of Network Recognition method and apparatus
CN106792678A (en) A kind of method and system of radio node automatic matching search
CN110198533B (en) Method for remotely controlling BLE Bluetooth device and BLE Bluetooth device
CN106302519A (en) The method of a kind of internet security management and terminal
CN109195199A (en) A kind of management method and device of AP
CN106162928A (en) Information transmission system and method
CN106412814A (en) Bluetooth device identifying method and wireless router
CN107426014A (en) A kind of management system of EOC equipment
CN101340630B (en) Model number automatic recognition method for mobile information terminal
CN103987017B (en) A kind of method and system for being used to set up service access in a wlan
CN108322935A (en) A kind of region wireless location system and its method based on smart mobile phone
CN105915975B (en) The asynchronous control system and method for LED screen content are updated with mobile device
CN204856582U (en) A certification system for power equipment maintenance task
CN204145510U (en) Communication module group detection system and checkout equipment
CN103906148B (en) System information block method of reseptance and device and residence reselecting
CN106506504A (en) A kind of intelligent protocol conversion 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