CN110191447A - The filter method and relevant apparatus of Bluetooth broadcast packet in a kind of ESL - Google Patents
The filter method and relevant apparatus of Bluetooth broadcast packet in a kind of ESL Download PDFInfo
- Publication number
- CN110191447A CN110191447A CN201910451939.2A CN201910451939A CN110191447A CN 110191447 A CN110191447 A CN 110191447A CN 201910451939 A CN201910451939 A CN 201910451939A CN 110191447 A CN110191447 A CN 110191447A
- Authority
- CN
- China
- Prior art keywords
- expression
- broadcast packet
- data
- bluetooth broadcast
- filter
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/903—Querying
- G06F16/90335—Query processing
- G06F16/90344—Query processing by using string matching techniques
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
This application discloses a kind of filter methods of Bluetooth broadcast packet in ESL, comprising: carries out transcoding processing to the Bluetooth broadcast packet received, filter data packet is obtained;Type expression, regular expression and expression formula symbol are parsed according to compound expression;The filter area of filtering data packet is filtered out according to type expression;It is matched according to regular expressions with data of the expression formula symbol to filter area in filtering data packet;When fitting through, subsequent processing is carried out to Bluetooth broadcast packet.It is realized by each subexpression in compound expression and the smaller data filtering of range is carried out to Bluetooth broadcast packet, rather than all data can only matched, improve the accuracy of data filtering.Disclosed herein as well is the filter device of Bluetooth broadcast packet, Bluetooth gateway equipment and computer readable storage mediums in a kind of ESL, have the above beneficial effect.
Description
Technical field
This application involves blue-tooth technology field, in particular to filter method, the ESL of Bluetooth broadcast packet in a kind of ESL
Filter device, Bluetooth gateway equipment and the computer readable storage medium of middle Bluetooth broadcast packet.
Background technique
Bluetooth data communication technology is often used in various application environments as common close range communication techniques, tool
There is the advantages that at low cost, data transmission bauds is efficient.
At present during being filtered to bluetooth data packets, generally using traditional regular expression to receiving
All the elements of Bluetooth broadcast packet are matched, still, due to the format of of Bluetooth broadcast packet itself, only by canonical
Expression formula matches all data of broadcast packet, and matched precision is not high, and the effect being filtered is also very poor.
Therefore, the Important Problems that the filter effect of Bluetooth broadcast packet is those skilled in the art's concern how to be improved.
Summary of the invention
The purpose of the application be to provide the filter method of Bluetooth broadcast packet in a kind of ESL, in ESL Bluetooth broadcast packet filtering
Device, Bluetooth gateway equipment and computer readable storage medium pass through each subexpression realization pair in compound expression
Bluetooth broadcast packet carries out the smaller data filtering of range, rather than can only match to all data, improves data filtering
Accuracy.
In order to solve the above technical problems, the application provides a kind of filter method of Bluetooth broadcast packet in ESL, comprising:
Transcoding processing is carried out to the Bluetooth broadcast packet received, filter data packet is obtained;
Type expression, regular expression and expression formula symbol are parsed according to compound expression;
The filter area of the filtering data packet is filtered out according to the type expression;
According to the regular expression and the expression formula symbol to the number for filtering filter area described in data packet
According to being matched;
When fitting through, subsequent processing is carried out to the Bluetooth broadcast packet.
Optionally, transcoding processing is carried out to the Bluetooth broadcast packet received, filter data packet is obtained, comprising:
The Bluetooth broadcast packet received is subjected to 16 system conversions, obtains 16 system broadcast packets;
The data content of the address information of the 16 system broadcast packet and the 16 system broadcast packet is merged, is obtained
The filtering data packet.
Optionally, type expression, regular expression and expression formula symbol are parsed according to compound expression, comprising:
Receive the compound expression of user's input;
The compound expression is parsed to obtain the type expression, the regular expression and the expression
Formula symbol.
Optionally, when fitting through, subsequent processing is carried out to the Bluetooth broadcast packet, comprising:
When fitting through, the Bluetooth broadcast packet is sent in server.
Optionally, further includes:
It is obstructed out-of-date when matching, the Bluetooth broadcast packet is deleted.
The application also provides a kind of filter device of Bluetooth broadcast packet in ESL, comprising:
Filter data packet is obtained for carrying out transcoding processing to the Bluetooth broadcast packet received in transcoded data module;
Expression parsing module, for parsing type expression, regular expression and expression according to compound expression
Formula symbol;
Filter area determining module, for filtering out the filtering model of the filtering data packet according to the type expression
It encloses;
Data match module is used for according to the regular expression and the expression formula symbol in the filtering data packet
The data of the filter area are matched;
Processing module is fitted through, for carrying out subsequent processing to the Bluetooth broadcast packet when fitting through.
Optionally, the transcoded data module, comprising:
It is wide to obtain 16 systems for the Bluetooth broadcast packet received to be carried out 16 system conversions for system converting unit
Broadcast packet;
Data combination unit, for by the data of the address information of the 16 system broadcast packet and the 16 system broadcast packet
Content merges, and obtains the filtering data packet.
Optionally, the expression parsing module, comprising:
Expression formula acquiring unit, for receiving the compound expression of user's input;
Expression parsing unit, for the compound expression parsed to obtain the type expression, it is described just
Then expression formula and the expression formula symbol.
The application also provides a kind of Bluetooth gateway equipment, comprising:
Memory, for storing computer program;
Processor, the step of filter method as described above is realized when for executing the computer program.
The application also provides a kind of computer readable storage medium, and calculating is stored on the computer readable storage medium
The step of machine program, the computer program realizes filter method as described above when being executed by processor.
The filter method of Bluetooth broadcast packet in a kind of ESL provided herein, comprising: to the Bluetooth broadcast packet received
Transcoding processing is carried out, filter data packet is obtained;Type expression, regular expression and expression are parsed according to compound expression
Formula symbol;The filter area of the filtering data packet is filtered out according to the type expression;According to the regular expression and
The expression formula symbol matches the data of filter area described in the filtering data packet;When fitting through, to institute
It states Bluetooth broadcast packet and carries out subsequent processing.
By the way that the Bluetooth broadcast packet received is first carried out transcoded data, filter data packet is obtained, then from compound expression
Type expression, regular expression and expression formula symbol are parsed in formula, are first passed through type expression and are filtered out to filtering number
Matched filter area is carried out according to packet, then by the cooperation between regular expression and expression formula symbol to the mistake in filter area
Filter data packet is matched, rather than is matched by regular expression to all the elements of the Bluetooth broadcast packet received,
The range of matched data is reduced, the accuracy being filtered to data is improved, improves the effect being filtered to Bluetooth broadcast packet.
The application also provides the filter device of Bluetooth broadcast packet in a kind of ESL, Bluetooth gateway equipment and computer-readable
Storage medium has the above beneficial effect, and therefore not to repeat here.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is the flow chart of the filter method of Bluetooth broadcast packet in the first ESL provided by the embodiment of the present application;
Fig. 2 is the flow chart of the filter method of Bluetooth broadcast packet in second of ESL provided by the embodiment of the present application;
Fig. 3 is the structural schematic diagram of the filter device of Bluetooth broadcast packet in a kind of ESL provided by the embodiment of the present application.
Specific embodiment
The core of the application be to provide the filter method of Bluetooth broadcast packet in a kind of ESL, in ESL Bluetooth broadcast packet filtering
Device, Bluetooth gateway equipment and computer readable storage medium pass through each subexpression realization pair in compound expression
Bluetooth broadcast packet carries out the smaller data filtering of range, rather than can only match to all data, improves data filtering
Accuracy.
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application
In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is
Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art
Every other embodiment obtained without making creative work, shall fall in the protection scope of this application.
At present during being filtered to bluetooth data packets, generally using traditional regular expression to receiving
All the elements of Bluetooth broadcast packet are matched, still, due to the format of of Bluetooth broadcast packet itself, only by canonical
Expression formula matches all data of broadcast packet, and matched precision is not high, and the effect being filtered is also very poor.
Therefore, the application provides a kind of filter method of Bluetooth broadcast packet in ESL, passes through the Bluetooth broadcast that will first receive
Packet carry out transcoded data, filter data packet is obtained, then parsed from compound expression type expression, regular expression with
And expression formula symbol, it first passes through type expression and filters out to the matched filter area of filtering data packet progress, then pass through canonical
Cooperation between expression formula and expression formula symbol matches the filtering data packet in filter area, rather than passes through canonical table
It is matched up to all the elements of formula to the Bluetooth broadcast packet received, reduces the range of matched data, improved and data are carried out
The accuracy of filtering improves the effect being filtered to Bluetooth broadcast packet.
Referring to FIG. 1, Fig. 1 is the filter method of Bluetooth broadcast packet in the first ESL provided by the embodiment of the present application
Flow chart.
In the present embodiment, which may include:
S101 carries out transcoding processing to the Bluetooth broadcast packet received, filter data packet is obtained;
The Bluetooth broadcast packet that this step is intended to receive carries out transcoding processing, and filter data packet is obtained.It is primarily due to
The Bluetooth broadcast packet got is mainly raw data packets, and the content of raw data packets mainly encodes actual data
Data afterwards.Therefore, the data by Bluetooth broadcast packet are needed to be turned in order to be filtered to Bluetooth broadcast packet in the present embodiment
Code, the filtering data packet after obtaining transcoding realize data so as to match to the data content in Bluetooth broadcast packet
Filter operation.
Further, the transcoding that Bluetooth broadcast packet carries out is handled in this step, can be being transmitted according to Bluetooth broadcast packet
The encoding operation carried out in the process determines the transcoding processing executed.In general, in this step transcoding processing can use it is existing
Any one transcoding processing that technology provides, is specifically not specifically limited herein.
It should be noted that the structure of general Bluetooth broadcast packet includes length field, type field and data field field.
S102 parses type expression, regular expression and expression formula symbol according to compound expression;
On the basis of S101, this step is intended to parse the compound expression received, obtain type expression,
Regular expression and expression formula symbol.
Wherein, compound expression can be the compound expression of user's input, be also possible to receive from other clients
Compound expression, can also be the compound expression got from local data base or network data base.As it can be seen that in this step
The mode for getting compound expression is not unique, and every kind of different acquisition modes all represent different objects to Bluetooth broadcast
The filter type of packet.In specific application environment, suitable compound expression can be selected to obtain according to specific application environment
Mode is not specifically limited herein.
S103 filters out the filter area of filtering data packet according to type expression;
This step is intended to according to the type expression got in previous step on the basis of S102, from filtering data packet
In filter out filter area.Namely determine that regular expression carries out matched data area, rather than just using canonical table
All data contents are matched up to formula.It reduces regular expression and carries out matched range, so that regular expression can
To carry out more accurate matching operation.It is, in the next steps according to filter area to the data in filtering data packet
It is matched.
Further, so that it may determine that carrying out matched range is all data by filter area, or only to indigo plant
Address information in tooth broadcast packet is matched, and also or is only matched to the actual data content in Bluetooth broadcast packet,
Or the particular state data in Bluetooth broadcast packet are matched.The data of all of above different range can be by class
Type expression formula is set, and is defined to filtering data packet.
For example, type expression can be set as type, as type=mac, indicate to limit regular expression only
Only match the part of address information in Bluetooth broadcast packet;As type=raw, indicate that limiting regular expression only matches bluetooth
The part of actual data content in broadcast packet;As type=all, indicate to limit in the data of regular expression matching whole
Hold, comprising: the address information of Bluetooth broadcast packet and the actual data content of Bluetooth broadcast packet;As type=0x01, limit is indicated
Determine regular expression and only matches data field when Type (type field) in Bluetooth broadcast packet is 0x01.
S104 is matched with data of the expression formula symbol to filter area in filtering data packet according to regular expressions;
On the basis of S103, that is, on the basis of define in S103 the range for carrying out Data Matching, this step
In the data in filter area are matched with expression formula symbol according to regular expressions.Wherein, regular expression is mainly
The field of data is matched, judges whether to fit through.And expression formula symbol is used for type expression and regular expressions
It is attached between formula.There are different marks for expression formula symbol, represent different logical relations, illustrate regular expression
The different execution relationship between type expression.
For example, can only will be only attached between type expression and regular expression with &, before & is type
Expression formula, after & is regular expression.Or the relationship of logical AND, i.e. expression before symbol can also be indicated with &&
When expression formula after formula and symbol is simultaneously true, the entire expression formula of expression formula connection is just true.Further, it is also possible to according to
Different filtration needs provide different expression formula symbols, for connecting the relationship for indicating different.But no matter expression formula is accorded with
Number which kind of logical relation be set as, different expression formulas can be connected as compound expression by expression formula symbol, with table
Show more complicated logical relation, for being filtered to more accurate data, rather than all data can only be matched.
It improves and is filtered matched precision and accuracy.
For example, the expression formula symbol in the present embodiment may be arranged as (), indicate the expression between the symbol
The highest priority of formula equally can also also set expression formula symbol to | |, logical relation is indicated or, the namely expression formula
As long as meeting one of condition in two formulas of connection is true Shi Weizhen.
Further, it after by expression formula symbol connection type expression formula and regular expression, can also be formed different
Compound expression.It is illustrated below by way of the example of multiple compound expressions.
Compound expression is type=mac®ex=^AC233FC.* $, is indicated only when BLE MAC Address matches just
When then expression formula is ^AC233FC.* $, indicate to fit through, gateway will receive Bluetooth broadcast packet and be sent to server.
Compound expression is type=raw®ex=.*E1FF.*, indicates the data content only when Bluetooth broadcast packet
When matching regular expression is .*E1FF.*, indicate to fit through, gateway will receive Bluetooth broadcast packet and be sent to server.
Compound expression is type=all®ex=.*020106.*, is indicated only when BLE MAC Address and BLE are wide
Broadcast packet matching regular expression be .*020106.* when, indicate to fit through, gateway will receive Bluetooth broadcast packet and be sent to clothes
Business device.
Compound expression is type=0x03®ex=E1FF, is indicated only when in the data content of Bluetooth broadcast packet
When data field matching regular expression when Type (type field) is 0x03, and at this time is E1FF, indicate that matching is logical
It crosses, gateway will receive Bluetooth broadcast packet and be sent to server.
Wherein, what BLE MAC Address indicated is the address information part of Bluetooth broadcast packet.
Further, multiple compound expressions can also be attached by expression formula symbol.Below by way of multiple examples
Son is illustrated.
When compound expression is (type=mac®ex=^AC233FC.* $) && (type=raw®ex=.*
When E1FF.*), the both sides expression formula of Zhi You && is all matched, and just indicates to fit through, and gateway will receive the transmission of Bluetooth broadcast packet
To server.
When compound expression is (type=raw®ex=.*E1FF.*) | | (type=raw®ex=.*
When 020106.*), as long as | | one side expression formula matching, just indicate fit through, gateway will receive Bluetooth broadcast packet send
To server.
When compound expression is (type=mac®ex=^AC233FC.* $) && ((type=raw®ex=.*
E1FF.*) | | (type=raw®ex=.*020106.*)) when, according to the different priority progress indicated between symbol
Judgement just indicates to fit through when meeting the logical relation of each expression formula symbol, and gateway will receive Bluetooth broadcast packet hair
It send to server.
S105 carries out subsequent processing to Bluetooth broadcast packet when fitting through.
On the basis of S104, this step is intended to when fitting through, and carries out subsequent processing to the Bluetooth broadcast packet, also
Refer to the step of needing to be implemented after being filtered through.It is that the Bluetooth broadcast packet is sent in server under normal circumstances, with housecoat
Business device handles Bluetooth broadcast packet.It is in the prior art usually that all Bluetooth broadcast packets are sent in server,
But be redundancy there are more Bluetooth broadcast packet for server, it does not need to handle.Therefore, when these Bluetooth broadcast packets
It is sent to the performance that will increase server after server, reduces process performance.
And in the present embodiment, more accurate mistake is carried out to Bluetooth broadcast packet by each expression formula in compound expression
Filter, reduces the quantity for being sent to the Bluetooth broadcast packet of server, improves the runnability of server.
In addition it is also necessary to explanation, since application method of the different manufacturers for Bluetooth broadcast packet is different, there are differences
Prefix information, so needing to carry out corresponding filter operation by defining different filtering rule, but do not have in the prior art
There is method to provide a kind of more accurate filter method, reduces the effect of data filtering.
It is contemplated that yes, the technical solution of the present embodiment can be applied in low-power consumption bluetooth.
Optionally, the present embodiment can also include:
It is obstructed out-of-date when matching, the Bluetooth broadcast packet is deleted.
To sum up, by the way that the Bluetooth broadcast packet received is first carried out transcoded data filter data packet is obtained, so in the present embodiment
Type expression, regular expression and expression formula symbol are parsed from compound expression afterwards, first passes through type expression sieve
It selects and matched filter area is carried out to filtering data packet, then by the cooperation between regular expression and expression formula symbol to mistake
Filtering data packet in filter range is matched, rather than by regular expression to all interior of the Bluetooth broadcast packet received
Appearance is matched, and the range of matched data is reduced, and improves the accuracy being filtered to data, is improved and is carried out to Bluetooth broadcast packet
The effect of filtering.
Below by way of one embodiment, to the filter method of Bluetooth broadcast packet in a kind of ESL provided by the present application carry out into
One step explanation.
Referring to FIG. 2, Fig. 2 is the filter method of Bluetooth broadcast packet in second of ESL provided by the embodiment of the present application
Flow chart.
In the present embodiment, this method may include:
The Bluetooth broadcast packet received is carried out 16 system conversions, obtains 16 system broadcast packets by S201;
The data content of the address information of 16 system broadcast packets and 16 system broadcast packets is merged, is obtained by S202
Filter data packet;
As it can be seen that the S201 to S202 in the present embodiment is mainly to do the transcoding processing that how to carry out in the present embodiment into one
Walk explanation.Important is Bluetooth broadcast packet is first carried out 16 system conversions, obtain 16 system broadcast packets, then by address information and
Data content merges.By to the address information and data content for needing Bluetooth broadcast packet while sieving in this present embodiment
Choosing, therefore, merges address information and data content in this step, very easily can be compared place to the two simultaneously
Reason or matching treatment.
S203 receives the compound expression of user's input;
S204 parses compound expression to obtain type expression, regular expression and expression formula symbol;
As it can be seen that in the present embodiment S203 to S204 mainly in the present embodiment how to compound expression carry out parsing do
It illustrates, the compound expression is mainly got by different channels, type is then parsed from compound expression
Expression formula, regular expression and expression formula symbol.
S205 filters out the filter area of filtering data packet according to type expression;
S206 is matched with data of the expression formula symbol to filter area in filtering data packet according to regular expressions;
S207 carries out subsequent processing to Bluetooth broadcast packet when fitting through.
The present embodiment by first by the Bluetooth broadcast packet received carry out transcoded data, filter data packet is obtained, then from
Type expression, regular expression and expression formula symbol are parsed in compound expression, are first passed through type expression and are filtered out
Matched filter area is carried out to filtering data packet, then by the cooperation between regular expression and expression formula symbol to filtering model
Filtering data packet in enclosing is matched, rather than by regular expression to all the elements of the Bluetooth broadcast packet received into
Row matching, reduces the range of matched data, improves the accuracy being filtered to data, and raising is filtered Bluetooth broadcast packet
Effect.
The filter device of Bluetooth broadcast packet in a kind of ESL provided by the embodiments of the present application is introduced below, is hereafter retouched
The filter method of Bluetooth broadcast packet can in the filter device of Bluetooth broadcast packet and a kind of above-described ESL in a kind of ESL stated
Correspond to each other reference.
Referring to FIG. 3, knot of the Fig. 3 for the filter device of Bluetooth broadcast packet in a kind of ESL provided by the embodiment of the present application
Structure schematic diagram.
In the present embodiment, the apparatus may include:
Filter data packet is obtained for carrying out transcoding processing to the Bluetooth broadcast packet received in transcoded data module 100;
Expression parsing module 200, for parsing type expression, regular expression and table according to compound expression
Up to formula symbol;
Filter area determining module 300, for filtering out the filter area of filtering data packet according to type expression;
Data match module 400, for according to regular expressions with expression formula symbol to filter area in filtering data packet
Data matched;
Processing module 500 is fitted through, for carrying out subsequent processing to Bluetooth broadcast packet when fitting through.
Optionally, the transcoded data module 100 may include:
System converting unit, the Bluetooth broadcast packet for will receive carry out 16 system conversions, obtain 16 system broadcast packets;
Data combination unit, for carrying out the data content of the address information of 16 system broadcast packets and 16 system broadcast packets
Merge, filter data packet is obtained.
Optionally, the expression parsing module 200 may include:
Expression formula acquiring unit, for receiving the compound expression of user's input;
Expression parsing unit, for compound expression parsed to obtain type expression, regular expression and
Expression formula symbol.
The embodiment of the present application also provides a kind of Bluetooth gateway equipment, comprising:
Memory, for storing computer program;
Processor, when for executing computer program the step of the realization such as filter method of above embodiments.
The embodiment of the present application also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium
Calculation machine program, when computer program is executed by processor the step of the realization such as filter method of above embodiments.
The computer readable storage medium may include: USB flash disk, mobile hard disk, read-only memory (Read-Only
Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. is various to deposit
Store up the medium of program code.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities
The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment
Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration
?.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These
Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond scope of the present application.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor
The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
Above to the mistake of Bluetooth broadcast packet in the filter method of Bluetooth broadcast packet in a kind of ESL provided herein, ESL
Filter device, Bluetooth gateway equipment and computer readable storage medium are described in detail.Specific case used herein
The principle and implementation of this application are described, the side for the application that the above embodiments are only used to help understand
Method and its core concept.It should be pointed out that for those skilled in the art, not departing from the application principle
Under the premise of, can also to the application, some improvement and modification can also be carried out, these improvement and modification also fall into the claim of this application
In protection scope.
Claims (10)
1. the filter method of Bluetooth broadcast packet in a kind of ESL characterized by comprising
Transcoding processing is carried out to the Bluetooth broadcast packet received, filter data packet is obtained;
Type expression, regular expression and expression formula symbol are parsed according to compound expression;
The filter area of the filtering data packet is filtered out according to the type expression;
According to the regular expression and the expression formula symbol to the data of filter area described in the filtering data packet into
Row matching;
When fitting through, subsequent processing is carried out to the Bluetooth broadcast packet.
2. filter method according to claim 1, which is characterized in that carried out at transcoding to the Bluetooth broadcast packet received
Reason, is obtained filter data packet, comprising:
The Bluetooth broadcast packet received is subjected to 16 system conversions, obtains 16 system broadcast packets;
The data content of the address information of the 16 system broadcast packet and the 16 system broadcast packet is merged, is obtained described
Filter data packet.
3. filter method according to claim 1 or 2, which is characterized in that parse type expression according to compound expression
Formula, regular expression and expression formula symbol, comprising:
Receive the compound expression of user's input;
The compound expression is parsed to obtain the type expression, the regular expression and expression formula symbol
Number.
4. filter method according to claim 3, which is characterized in that when fitting through, to the Bluetooth broadcast packet into
Row subsequent processing, comprising:
When fitting through, the Bluetooth broadcast packet is sent in server.
5. filter method according to claim 4, which is characterized in that further include:
It is obstructed out-of-date when matching, the Bluetooth broadcast packet is deleted.
6. the filter device of Bluetooth broadcast packet in a kind of ESL characterized by comprising
Filter data packet is obtained for carrying out transcoding processing to the Bluetooth broadcast packet received in transcoded data module;
Expression parsing module is accorded with for parsing type expression, regular expression and expression formula according to compound expression
Number;
Filter area determining module, for filtering out the filter area of the filtering data packet according to the type expression;
Data match module is used for according to the regular expression and the expression formula symbol to described in the filtering data packet
The data of filter area are matched;
Processing module is fitted through, for carrying out subsequent processing to the Bluetooth broadcast packet when fitting through.
7. filter device according to claim 6, which is characterized in that the transcoded data module, comprising:
System converting unit obtains 16 system broadcast packets for the Bluetooth broadcast packet received to be carried out 16 system conversions;
Data combination unit, for by the data content of the address information of the 16 system broadcast packet and the 16 system broadcast packet
It merges, obtains the filtering data packet.
8. filter device according to claim 7, which is characterized in that the expression parsing module, comprising:
Expression formula acquiring unit, for receiving the compound expression of user's input;
Expression parsing unit obtains the type expression, the canonical table for being parsed to the compound expression
Up to formula and the expression formula symbol.
9. a kind of Bluetooth gateway equipment characterized by comprising
Memory, for storing computer program;
Processor realizes the step such as filter method described in any one of claim 1 to 5 when for executing the computer program
Suddenly.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program realizes the step such as filter method described in any one of claim 1 to 5 when the computer program is executed by processor
Suddenly.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910451939.2A CN110191447A (en) | 2019-05-28 | 2019-05-28 | The filter method and relevant apparatus of Bluetooth broadcast packet in a kind of ESL |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910451939.2A CN110191447A (en) | 2019-05-28 | 2019-05-28 | The filter method and relevant apparatus of Bluetooth broadcast packet in a kind of ESL |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110191447A true CN110191447A (en) | 2019-08-30 |
Family
ID=67718233
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910451939.2A Pending CN110191447A (en) | 2019-05-28 | 2019-05-28 | The filter method and relevant apparatus of Bluetooth broadcast packet in a kind of ESL |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110191447A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113965889A (en) * | 2020-07-03 | 2022-01-21 | 阿里巴巴集团控股有限公司 | Data processing, filtering information quantity determining and configuring method, equipment and medium |
CN115334486A (en) * | 2022-10-18 | 2022-11-11 | 成都锐成芯微科技股份有限公司 | Bluetooth communication method and Bluetooth system |
CN115474164A (en) * | 2022-08-17 | 2022-12-13 | 上海磐启微电子有限公司 | Bluetooth broadcast filtering method and system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7861304B1 (en) * | 2004-05-07 | 2010-12-28 | Symantec Corporation | Pattern matching using embedded functions |
CN103491069A (en) * | 2013-09-05 | 2014-01-01 | 北京科能腾达信息技术股份有限公司 | Filtering method for network data package |
CN106649831A (en) * | 2016-12-29 | 2017-05-10 | 北京奇艺世纪科技有限公司 | Data filtering method and device |
CN107733972A (en) * | 2017-08-28 | 2018-02-23 | 阿里巴巴集团控股有限公司 | A kind of short linking analytic method, device and equipment |
CN109766483A (en) * | 2018-12-28 | 2019-05-17 | 平安科技(深圳)有限公司 | Regular expression generation method, device, computer equipment and storage medium |
-
2019
- 2019-05-28 CN CN201910451939.2A patent/CN110191447A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7861304B1 (en) * | 2004-05-07 | 2010-12-28 | Symantec Corporation | Pattern matching using embedded functions |
CN103491069A (en) * | 2013-09-05 | 2014-01-01 | 北京科能腾达信息技术股份有限公司 | Filtering method for network data package |
CN106649831A (en) * | 2016-12-29 | 2017-05-10 | 北京奇艺世纪科技有限公司 | Data filtering method and device |
CN107733972A (en) * | 2017-08-28 | 2018-02-23 | 阿里巴巴集团控股有限公司 | A kind of short linking analytic method, device and equipment |
CN109766483A (en) * | 2018-12-28 | 2019-05-17 | 平安科技(深圳)有限公司 | Regular expression generation method, device, computer equipment and storage medium |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113965889A (en) * | 2020-07-03 | 2022-01-21 | 阿里巴巴集团控股有限公司 | Data processing, filtering information quantity determining and configuring method, equipment and medium |
CN115474164A (en) * | 2022-08-17 | 2022-12-13 | 上海磐启微电子有限公司 | Bluetooth broadcast filtering method and system |
CN115334486A (en) * | 2022-10-18 | 2022-11-11 | 成都锐成芯微科技股份有限公司 | Bluetooth communication method and Bluetooth system |
CN115334486B (en) * | 2022-10-18 | 2023-03-03 | 成都锐成芯微科技股份有限公司 | Bluetooth communication method and Bluetooth system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110191447A (en) | The filter method and relevant apparatus of Bluetooth broadcast packet in a kind of ESL | |
CN109669442B (en) | Protocol conversion method and conversion device | |
CN104904309B (en) | A kind of method and mobile terminal sending heartbeat message | |
CN109901888B (en) | Design method of automatic configuration file generation tool | |
CN110347708A (en) | A kind of data processing method and relevant device | |
CN107341096A (en) | The generation method and device of journal file, computer equipment and storage medium | |
CN108076017A (en) | The protocol analysis method and device of a kind of data packet | |
CN104702638A (en) | Event subscribing and dispatching method and device | |
CN108429764A (en) | A method of the data transmission based on proprietary protocol and parsing | |
US20100169298A1 (en) | Method And An Apparatus For Information Collection | |
EP2741449B1 (en) | Processing of call data records | |
CN105005496B (en) | A kind of processing system and method for across language conversion network data package definition file | |
CN105872063A (en) | IPV6 address coding method and IPV6 address decoding method based on DCC protocol, and IPV6 address coding system and IPV6 address decoding system based on DCC protocol | |
CN101697546A (en) | Method for implementing protocol data unit (PDU) used for packing and unpacking network bytes | |
CN106027521B (en) | Compression method, decompressing method, compression set and decompression device | |
CN109510745A (en) | A kind of configuration method and system of I/O data acquisition | |
CN104471888B (en) | Processing method, equipment and the system of free block IDLE in block of burst data | |
CN106612309B (en) | The update method of configuration file, apparatus and system | |
CN108171640A (en) | Marine communication system data storage system and statistical method | |
WO2022134697A1 (en) | Interface data interaction method, distributed unit, and central unit | |
CN112988740B (en) | Power distribution network data storage method based on multiple data sources | |
CN108629048A (en) | A kind of routing parameter transmits optimization method and system | |
CN103701666A (en) | Deep packet detection method and system | |
CN103246671A (en) | Processing method and device for abstract syntax notation files | |
WO2019223006A1 (en) | Data frame transmission method and apparatus based on power line channel |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190830 |
|
RJ01 | Rejection of invention patent application after publication |