The content of the invention
The invention provides a kind of service discovery method, access point and website, to solve in the prior art in service type
In the very big scene of many data volumes, all information on services are put into a beacon and broadcasted by AP, and STA needs to be constantly in prison
Listen state, and receive a large amount of unwanted information, the problem of so as to cause the power consumption of STA sides very high, using AP by all services
STA is sent to after information classification, and STA receives the information on services needed at the time of knowing, without receiving all clothes
Business information, reduce STA power consumption, it would be preferable to support the passive service of big data quantity is found.
In a first aspect, the invention provides a kind of service discovery method, methods described includes:Access point is according to each clothes
The content of business information is carried out classification and obtains different information on services groups, and each information on services group has a message identification, often
The content of information on services in one information on services group belongs to the service type corresponding with described information mark;Described access point is true
The broadcast time of fixed each information on services group, and clothes are established according to the broadcast time of the information on services group and message identification
Business catalogue, the service catalogue include broadcast time and the message identification of all information on services groups;Described access point is by the clothes
Business information group and the service catalogue are added in broadcast frame;Described access point determines the broadcast cycle of the broadcast frame, and root
Periodically the broadcast frame, the information on services group to the website from the broadcast frame are sent according to the broadcast cycle to website
The middle information on services found needed for itself knows the service letter needed for itself from the service catalogue of the broadcast frame
The broadcast time of information on services group where ceasing.
In the first possible implementation, the service catalogue also includes the service in each information on services group
The summary info of information, it is described that the information on services group and the service catalogue are added in broadcast frame, including:By the clothes
Business information parts are not added in each broadcast frame, and the service catalogue is respectively added in each broadcast frame, make
It is all different to obtain the information on services group of each broadcast frame carrying, and the service catalogue all phases that each broadcast frame carries
Together, wherein, each broadcast frame carries service catalogue and a type of information on services group.
In second of possible implementation, the broadcast time for determining each information on services group, and according to
The broadcast time of the information on services group and message identification establish service catalogue, in addition to:According to each information on services group
The broadcast time determine broadcast time of the service catalogue.
With reference to second of possible implementation of first aspect, in the third possible implementation, the broadcast
Frame includes:First broadcast frame and the second broadcast frame;It is described that the information on services group and the service catalogue are added to broadcast frame
In, including:The service catalogue is added in the first broadcast frame, and by the broadcast time of the service catalogue and the service
Information group is added in the second different broadcast frames so that the information on services group that each second broadcast frame carries all differs.
In second aspect, the invention provides a kind of service discovery method, methods described includes:Website receives access point hair
That send carries service catalogue and the broadcast frame of information on services group, and the service catalogue includes message identification and the service of information on services
The broadcast time of information group;Information on services needed for itself is found from the information on services group of the broadcast frame or from described wide
Broadcast the broadcast time that the information on services group where the information on services needed for itself is known in the service catalogue of frame.
In the first possible implementation, found in the information on services group from the broadcast frame needed for itself
Information on services knows information on services where the information on services needed for itself from the service catalogue of the broadcast frame
The broadcast time of group, including:When including the clothes needed for itself in the information on services group of the broadcast frame received
During information of being engaged in, then the website stops receiving other broadcast frames that described access point is sent;When the broadcast frame received
The information on services group in when not including the information on services needed for itself, then the website obtains from the service catalogue
After the broadcast time for knowing the information on services group where the information on services needed for itself, into resting state, it is described itself
The broadcast time of information on services group where required information on services enters reception state, and institute is found from the broadcast frame received
State the information on services needed for itself.
In second of possible implementation, found in the information on services group from the broadcast frame needed for itself
Information on services knows information on services where the information on services needed for itself from the service catalogue of the broadcast frame
The broadcast time of group, including:When including the clothes needed for itself in the information on services group of the broadcast frame received
During information of being engaged in, then the website no longer receives other information on services of described access point transmission, is sent for described access point
Other broadcast frames make discard processing;When not including itself institute in the information on services group of the broadcast frame received
The information on services needed, and the information on services corresponding with the information on services needed for itself in the service catalogue be present
Message identification and information on services group the broadcast time, then the information on services group the broadcast time receive broadcast frame, and from
The information on services needed for itself, other broadcast frames sent for described access point are found in the broadcast frame received
Make discard processing;When not including the service letter needed for itself in the information on services group of the broadcast frame received
Breath, and the information mark of the information on services corresponding with the information on services needed for itself is not present in the service catalogue
Know the broadcast time with information on services group, then the website no longer receives the information on services of described access point transmission, for described
Other broadcast frames that access point is sent make discard processing.
In the third possible implementation, the broadcast frame includes the first broadcast frame and the second broadcast frame, the station
Point receives the broadcast frame for carrying information on services group and service catalogue that access point is sent, including:Receive what described access point was sent
Carry the first broadcast frame of service catalogue and receive and carry the broadcast time of the service catalogue and the information on services
Second broadcast frame of group, wherein, the information on services group that each second broadcast frame carries all differs.
In the third aspect, the invention provides a kind of access point, described access point includes:Taxon, for according to every
The content of one information on services is classified, and obtains different information on services groups, and each information on services group has an information mark
Know the summary info of each information on services, the content of the information on services in each information on services group belongs to and described information mark phase
Corresponding service type, and the information on services group is transferred to processing unit;Processing unit, for from the taxon
The information on services group is received, determines the broadcast time of each information on services group, and according to the wide of the information on services group
Between sowing time and message identification establishes service catalogue, and the service catalogue includes broadcast time and the information mark of all information on services groups
Know, and the information on services group and the service catalogue are transferred to adding device;Adding device, for single from the processing
Member receives the information on services group and the service catalogue, and the information on services group and the service catalogue are added into broadcast frame
In, and the broadcast frame is transferred to transmitting element;Transmitting element, for receiving the broadcast frame from adding device, it is determined that
The broadcast cycle of the broadcast frame, and the broadcast frame is periodically sent to website according to the broadcast cycle, to the station
Point finds the information on services needed for itself or the service catalogue from the broadcast frame from the information on services group of the broadcast frame
In know broadcast time of information on services group where the information on services needed for itself.
In the first possible implementation, the service catalogue also includes the service in each information on services group
The summary info of information, the adding device are used to the information on services group being respectively added in each broadcast frame, and by institute
State service catalogue to be respectively added in each broadcast frame so that the information on services group that each broadcast frame carries is neither
Together, and the service catalogue that carries of each broadcast frame is all identical, wherein, each broadcast frame carries service catalogue and one
The information on services group of type.
In second of possible implementation, the service catalogue also includes the service in each information on services group
The summary info of information, the processing unit are additionally operable to determine the service according to the broadcast time of each information on services group
The broadcast time of catalogue.
With reference to second of possible implementation of the third aspect, in the third possible implementation, the broadcast
Frame includes:First broadcast frame and the second broadcast frame;The adding device is used to the service catalogue being added to the first broadcast frame
In, and the broadcast time of the service catalogue and the information on services group are added in the second different broadcast frames so that it is each
The information on services group that individual second broadcast frame carries all differs.
In fourth aspect, the invention provides a kind of website, the website includes:Receiving unit, for receiving access point
Transmission carries service catalogue and the broadcast frame of information on services group, and the service catalogue includes the message identification kimonos of information on services
The broadcast time for information group of being engaged in, and the broadcast frame is transferred to discovery unit;It was found that unit, for from the receiving unit
The broadcast frame is received, information on services needed for itself is found from the information on services group of the broadcast frame or from the broadcast
The broadcast time of the information on services group where the information on services needed for itself is known in the service catalogue of frame.
It is described to find that unit is used for when the clothes of the broadcast frame received in the first possible implementation
When in information group of being engaged in comprising the information on services needed for itself, then the website stops receiving other that described access point sends
Broadcast frame;When not including the information on services needed for itself in the information on services group of the broadcast frame received
When, then the website knows the broadcast of the information on services group where the information on services needed for itself from the service catalogue
After time, into resting state, enter in the broadcast time of the information on services group where the information on services needed for itself and connect
Receipts state, the information on services needed for itself is found from the broadcast frame received.
It is described to find that unit is used for when the clothes of the broadcast frame received in second of possible implementation
When in information group of being engaged in comprising the information on services needed for itself, then the website no longer receives other of described access point transmission
Information on services, for described access point send other broadcast frames make discard processing;When the institute of the broadcast frame received
State and do not include the information on services needed for itself in information on services group, and exist in the service catalogue with described needed for itself
The corresponding message identification of the information on services of information on services and the broadcast time of information on services group, then in the service letter
Broadcast time of breath group receives broadcast frame, and finds from the broadcast frame received the information on services needed for itself,
Other broadcast frames sent for described access point make discard processing;When the information on services group of the broadcast frame received
In do not include the information on services needed for itself, and be not present in the service catalogue and the information on services needed for itself
The message identification of the corresponding information on services and the broadcast time of information on services group, then the website no longer receive described connect
The information on services that access point is sent, other broadcast frames sent for described access point make discard processing.
In the third possible implementation, the broadcast frame includes the first broadcast frame and the second broadcast frame, described to connect
Unit is received to be used to receive the first broadcast frame for carrying service catalogue of described access point transmission and receive to carry the clothes
The broadcast time for catalogue of being engaged in and the second broadcast frame of the information on services group, wherein, the service letter that each second broadcast frame carries
Breath group all differs.
By application service discovery method disclosed by the invention, access point and website, access point is according to each information on services
Summary info by information on services according to different information on services component classes, the information on services in each information on services group belongs to same
One service type, the broadcast time of each information on services group is determined, and according to the broadcast time of information on services group and message identification
Service catalogue is established, the service catalogue includes broadcast time and the message identification of all information on services groups, by the information on services
Group and the service catalogue are added in broadcast frame, and the broadcast frame is sent to website, when website receives access point transmission
After carrying service catalogue and the broadcast frame of information on services group, the service catalogue and service that are carried according to the broadcast frame are believed
Breath group, the information on services needed for itself is found, realize and be sent to STA after all information on services are classified using AP, and STA exists
The information on services needed is received at the time of knowing, without receiving all information on services, reduces STA power consumption, can
The passive service of big data quantity is supported to find.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
Part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
Service discovery method, access point and website provided in an embodiment of the present invention, access point is to the website from described
The information on services needed for itself is found in the information on services group of broadcast frame or institute is known from the service catalogue of the broadcast frame
The broadcast time of the information on services group where the information on services needed for itself is stated, determines the broadcast time of each information on services group,
And the broadcast time of the summary info of each information on services and each information on services group is formed into service catalogue, by institute
State information on services group and the service catalogue is added in broadcast frame, send the broadcast frame to website, connect when website receives
After the broadcast frame for carrying service catalogue and information on services group that access point is sent, according to the service mesh of broadcast frame carrying
Record and information on services group, find the information on services needed for itself, realize and are sent to after all information on services are classified using AP
STA, and STA receives the information on services needed at the time of knowing, without receiving all information on services, reduces STA
Power consumption, it would be preferable to support the passive service of big data quantity is found.
Wherein, the mode for the passive discovery service being related in all embodiments of the invention refers to:Access point AP is to station
Point STA sends broadcast frame, such as, the broadcast frame is beacon Beacon, and site STA waits and receives the broadcast of access point AP transmissions
Frame, therefrom find the information on services needed for itself.Wherein, beacon (Beacon) is a kind of management frame as defined in 802.11 standards,
Sent by AP periodic broadcasts.
Fig. 1 is the flow chart for the service discovery method that the embodiment of the present invention one provides.As illustrated, the embodiment of the present invention has
Body comprises the following steps:
Step 110, access point is carried out classification according to the content of each information on services and obtains different information on services groups,
Each information on services group has a message identification, and the information on services in the content of each information on services group belongs to and message identification phase
Corresponding service type.Wherein, the content of information on services refers to the detailed content of information on services, the summary info of information on services
Refer to the simple content of information on services.
Specifically, the information on services of access point is provided by one or more STA, and the STA is AP websites and non-ap stations
Information on services is reported to AP by point, i.e., one or more the AP websites for providing service and non-ap stations point.Access point will be collected into institute
There is information on services to be classified according to the summary info of each information on services.Such as by cafe, all kinds of restaurants, Food Supermarket
Etc. being grouped into food and drink class.Wherein, the summary info of each information on services refers to the simple information of the information on services, simple according to this
Information can identify the service type that the information on services belongs to, while can also know the detailed of the information on services according to the simple information
A part for content.For example access point will obtain three information on services groups after the classification of all information on services:The service letter of food and drink class
The information on services group of breath group, the information on services group for entertaining class and traffic class.Wherein, the information of the information on services group of food and drink class
It is identified as food and drink;The message identification for entertaining the information on services group of class is amusement;The message identification of the information on services group of traffic class is
Traffic.
In addition, each information on services group includes the detailed of all information on services of the service type corresponding with its message identification
Thin content, such as, carrying the information on services group of food and drink class includes belonging to the corresponding service type of food and drink this message identification
The detailed content of all information on services.
Step 120, access point determines the broadcast time of each information on services group, and according to the broadcast time of information on services group
Service catalogue is established with message identification, the service catalogue includes broadcast time and the message identification of all information on services groups.
Specifically, the broadcast time of each information on services group, such as, three information on services groups:The information on services of food and drink class
The information on services group of group, the information on services group for entertaining class and traffic class, determine the broadcast time of these three information on services groups.
The message identification of the information on services group of food and drink class is food and drink;The message identification for entertaining the information on services group of class is amusement;Traffic class
The message identification of information on services group be traffic.Service is established according to the broadcast time of these three information on services groups and message identification
Catalogue.
In addition, service catalogue can also include the summary info of the information on services in each information on services group.Therefore service mesh
Record not only includes the message identification of all information on services groups, includes the simple letter of all information on services of access point AP offers
Breath is the summary info of the information on services in each information on services group, and the corresponding information on services group broadcast time is to be somebody's turn to do
The exact time of the detailed content broadcast for each information on services that information on services group includes, such as, the information on services group of food and drink class
Sent after the 1st beacon period.
Step 130, information on services group and service catalogue are added in broadcast frame by access point.
Step 140, access point determines the broadcast cycle of broadcast frame, and is periodically sent and broadcasted to website according to broadcast cycle
Frame, the information on services needed for itself or the service catalogue from broadcast frame are found from the information on services group of broadcast frame to website
In know broadcast time of information on services group where information on services needed for itself.
In one embodiment, service catalogue also includes the information on services in each information on services group in step 130
Summary info, information on services group is respectively added in each broadcast frame by access point, and service catalogue is respectively added to respectively
In individual broadcast frame so that the information on services group that each broadcast frame carries is all different, and the service catalogue that each broadcast frame carries is all
It is identical.
Specifically, each broadcast frame carries service catalogue and a type of information on services group.Wherein, each broadcast
The type for the information on services group that frame carries is different, such as, such as first broadcast frame carries a service catalogue and and food and drink
A related information on services group, second broadcast frame include a service catalogue information on services group related to amusement,
3rd broadcast frame includes a service catalogue information on services group related to mode of transportation.Wherein, in all broadcast frames
Including service catalogue it is all identical.
In one embodiment, step 140, each broadcast frame carries service catalogue and a type of information on services
Group.
Specifically, information unit (Information Element, IE) form definition of the broadcast frame is as shown in table 1.Letter
Interest statement member IE is the part of 802.11 management frames, and the management frame is by frame head and frame entity (frame body) two parts group
Into.Wherein frame entity includes fixed field and range of information unit two parts.Information unit IE is made up of three parts:1 word
The Element ID domains of section, the Length domains of 1 byte, and elongated Information domains.
Table 1
Element ID |
Length |
ServiceContent |
ServiceInfo |
Service catalogue is carried in above-mentioned broadcast frame and it is a type of service letter with the detailed service information of certain class service
Breath group.Wherein, Element ID are used for uniquely tagged IE;Length marks IE length;ServiceContent is service mesh
Record;ServiceInfo is the i.e. a type of information on services group of detailed service information of certain class service.
In addition, when access point is to website transmission broadcast frame in step 140, there can be the transmission broadcast frame of scheduling.Such as three
Individual information on services group:The information on services group of the information on services group of food and drink class, the information on services group for entertaining class and traffic class.Connect
Access point to website send carry above three information on services group broadcast frame sending method have it is a variety of, such as, as shown in Fig. 2
The broadcast frame 21 for carrying the information on services group of food and drink class makes number one transmissions, carries the broadcast frame for the information on services group for entertaining class
22 after the 1st beacon period, carries the broadcast frame 23 of information on services group of traffic class after the 2nd beacon period.Its
In, the broadcast frame of the information on services group of carrying food and drink class, carry the broadcast frame for the information on services group for entertaining class and carry traffic
The broadcast frame of the information on services group of class forms a broadcast cycle, and the broadcast cycle is 3 beacon periods.In addition, the broadcast is all
Phase circulation can circulate multiple transmission according to actual conditions, and the length of the broadcast cycle can be according to the increase of service type
Change with reduction.
It is worth noting that, beacon period is defined as in all embodiments of the invention:Opened from first broadcast frame is sent
This period before sending second broadcast frame beginning is a beacon period.
Therefore, service discovery method provided in an embodiment of the present invention, access point is according to the summary info of each information on services
By the information on services according to different information on services component classes, the broadcast time of each information on services group is determined, and according to clothes
The broadcast time for information group of being engaged in and message identification establish service catalogue, when the service catalogue includes the broadcast of all information on services groups
Between and message identification, the information on services group and the service catalogue are added in broadcast frame, the broadcast is sent to website
Frame, realize in the case of service catalogue very little, each detailed service letter comprising different service types can be put it to
In the broadcast frame of breath, no matter which broadcast frame so received, the wide of the broadcast frame comprising other information on services can be known
Between sowing time, so as to reduce the number for receiving broadcast frame under certain situation, it can faster find to service.
Fig. 3 is the flow chart for the service discovery method that the embodiment of the present invention three provides.Hold the website side that the embodiment provides
The service discovery method that the access point side that capable service discovery method is with embodiment one provides performs is corresponding.As schemed
Show, the embodiment of the present invention specifically includes following steps:
Step 310, website receives the carrying service catalogue of access point transmission and the broadcast frame of information on services group.Wherein, take
Catalogue of being engaged in includes the message identification of information on services and the broadcast time of information on services group.
Step 320, website finds information on services needed for itself from the information on services group of broadcast frame or from broadcast frame
Service catalogue in know broadcast time of information on services group where information on services needed for itself.
In one embodiment, each broadcast frame in step 310 carries service catalogue and a type of service
Information group, the information on services group that each broadcast frame carries is all different, and the service catalogue that each broadcast frame carries is all identical.At this
Service catalogue and information on services group are in a broadcast frame in embodiment, but service catalogue and information on services group can not also
In a broadcast frame, such case is described in detail in other embodiment.In step 320, when website receives access point
After the broadcast frame of transmission, a series of processing, each processing side are carried out using two kinds of different processing modes to the broadcast frame
The processing procedure of formula is as follows:
(1) STA obtain the detailed service information comprising its desired service be information on services group needed for itself just
Stop scanning, STA can enter resting state at the time of need not receive under this mode.Its detailed process is:
When including the information on services needed for itself in the information on services group of the broadcast frame received, then website stops receiving
Other broadcast frames.
When not including the information on services needed for itself in the information on services group of the broadcast frame received, then website is from service
The detailed clothes of broadcast time of the information on services group where the information on services needed for itself i.e. required for itself are known in catalogue
After the definite broadcast time of the broadcast frame for information of being engaged in, into resting state, the only service where the information on services needed for itself
The broadcast time of information group enters reception state, so as to from the reception to broadcast frame in find needed for itself service letter
Breath.
(2) STA needs to scan always until obtaining all comprising needed for its desired detailed service information serviced i.e. itself
Information on services group, the STA under this mode must be constantly in listening state.Its detailed process is:
When including the information on services needed for itself in the information on services group of the broadcast frame received, then website is no longer
Other information on services of access point transmission are received, and carry out discard processing, still can receive the broadcast of other access points transmission
Frame.Herein, the discard processing being related in the embodiment of the present invention, it can be not understand bag, directly throw away, or only solution is situated between
Matter access control (Medium Access Control, MAC) frame head, confirmation be the AP send broadcast frame after throw away.Wherein,
Mac frame is divided into data frame, control frame, management frame.Our Beacon mentioned here are a kind of management frames.As for the present invention other
The discard processing being related in embodiment is same, is not repeated to describe in detail.
When not including the information on services needed for itself in the information on services group of the broadcast frame received, and deposited in service catalogue
With itself needed for the corresponding message identification of information on services of information on services and the broadcast time of information on services group, then website
Receive broadcast frame in the broadcast time of the information on services group, and from the reception to broadcast frame in find clothes needed for itself
Business information, and other information on services of the access point are no longer received, and discard processing is done to other broadcast frames of the access point.
Because there may be multiple access point broadcast messages, website still can receive the information of other access points
But when in the information on services group of the broadcast frame received do not include itself needed for information on services, and service mesh
Be not present in record with itself needed for the corresponding information on services of information on services message identification and information on services group broadcast when
Between, then website no longer receives the information on services of access point transmission, makees discard processing for other broadcast frames of the access point.
Therefore, service discovery method provided in an embodiment of the present invention, website receive the carrying service mesh of access point transmission
After the broadcast frame of record and information on services group, found from the information on services group of the broadcast frame information on services needed for itself or
When person knows the broadcast of the information on services group where the information on services needed for itself from the service catalogue of the broadcast frame
Between, realize in the case of service catalogue very little, each detailed service letter comprising different service types can be put it to
In the broadcast frame of breath, no matter which broadcast frame such website receives, the broadcast frame for including other information on services can be known
The broadcast time, so as to reduce under certain situation receive broadcast frame number, can faster find to service.
Fig. 4 is the flow chart for the service discovery method that the embodiment of the present invention four provides.As illustrated, the embodiment of the present invention has
Body comprises the following steps:
Step 410, access point is carried out classification according to the content of each information on services and obtains different information on services groups,
Each information on services group has a message identification, and the information on services in the content of each information on services group belongs to and message identification phase
Corresponding service type believes all information on services of access point according to different services according to the summary info of each information on services
Cease component class.Wherein, the information on services in information on services group belongs to same service type, and information on services group includes belonging to same clothes
The content information of all information on services of service type.But the type of the information on services in different information on services groups is different.The step
Suddenly it is identical with step 110, repeat no more herein.
Step 420, access point determines the broadcast time of each information on services group, and according to the broadcast time of information on services group
Service catalogue is established with message identification, the service catalogue includes broadcast time and the message identification of all information on services groups, and really
Determine the broadcast time of service catalogue.The step is identical with step 120, repeats no more herein.Wherein, service catalogue also includes every
The summary info of information on services in one information on services group.
Step 430, service catalogue is added in the first broadcast frame by access point, and by the broadcast time kimonos of service catalogue
Business information group is added in the second different broadcast frames so that the information on services group that each second broadcast frame carries all differs.
Specifically, service catalogue and information on services group are in different broadcast frames in embodiments of the present invention, will be serviced
Broadcast frame where catalogue is defined as:First broadcast frame, the broadcast frame where information on services group is defined as:Second broadcast frame.
Because information on services group may be multiple, all second broadcast frames may also be multiple.For example carry the information on services of food and drink class
Second broadcast frame of group, the second broadcast frame of information on services group and the information on services group of carrying traffic class for carrying amusement class
The second broadcast frame.
Wherein, the information unit IE forms definition for carrying the first broadcast frame of service catalogue is as shown in table 2.Element ID
For uniquely tagged IE;Length marks IE length;ServiceContent is service catalogue information.
Table 2
Element ID |
Length |
ServiceContent |
The information unit IE forms definition for carrying the second broadcast frame of information on services group is as shown in table 3.Element ID are used
In uniquely tagged IE;Length marks IE length;ServiceInfo is the detailed service information i.e. information on services of certain class service
The content of group;Time is the exact time for the Beacon broadcast for carrying service catalogue.
Table 3
Element ID |
Length |
ServiceInfo |
Time |
Step 440, access point determines the broadcast cycle of the first broadcast frame and the second broadcast frame, and according to broadcast cycle week
Phase property sends the first broadcast frame and the second broadcast frame to website, knows to website from the service catalogue of the first broadcast frame and states certainly
The broadcast time of information on services group where information on services needed for body, and found certainly from the information on services group of the second broadcast frame
The broadcast time of information on services or service catalogue needed for body.Wherein, access point sends the first broadcast frame and second to website
The mode of broadcast frame has many kinds, can there is the broadcast frame of transmission first and the second broadcast frame of scheduling.
In one embodiment, in broadcast cycle, the first broadcast frame is only sent once, each to carry different service letters
Second broadcast frame of breath group is sent once respectively.For example after access point sends first broadcast frame, it is wide to retransmit described second
Frame is broadcast, until all second broadcast frames are sent as a broadcast cycle, then performs next broadcast cycle again.In addition, connect
Access point can also first send the second broadcast frame, retransmit the first broadcast frame.Wherein, regardless of the first broadcast frame or the second broadcast
Frame, the beacon period between each two broadcast frame are identical.
Specifically, access point sends the mode of the first broadcast frame and the second broadcast frame to website, such as, serviced for carrying
First broadcast frame of catalogue, carry food and drink class information on services group the second broadcast frame, carry the information on services group of amusement class
The sending method of second broadcast frame of the information on services group of the second broadcast frame and carrying traffic class is a lot.As shown in figure 5, take
The first broadcast frame 51 with service catalogue makes number one transmission, carries the row of the second broadcast frame 52 of the information on services group of food and drink class
After the 1st beacon period, the second broadcast frame 53 of information on services group of amusement class is carried after the 2nd beacon period,
The second broadcast frame 54 of the information on services group of traffic class is carried after the 3rd beacon period.Wherein, the of service catalogue is carried
One broadcast frame 51, carry food and drink class information on services group the second broadcast frame 52, carry amusement class information on services group second
Second broadcast frame 54 of the information on services group of broadcast frame 53 and carrying traffic class forms a broadcast cycle, the broadcast cycle
For 4 beacon periods.In addition, the broadcast cycle can circulate multiple transmission according to actual conditions.Wherein, service catalogue is carried
The transmission cycle of first broadcast frame 51 is 4 beacon periods.
In still further embodiment, in broadcast cycle, the first broadcast frame is sent repeatedly, each to carry different service letters
Second broadcast frame of breath group is sent once respectively, and one or more first is sent before or after the transmission of each second broadcast frame
Broadcast frame, wherein, the byte number that the first broadcast frame takes is less than the byte number that second broadcast frame takes.For example first is wide
Broadcast frame and its IE frame format of the second broadcast frame is as shown in table 3.Access point can send the second broadcast frame successively, and each second
The first broadcast frame is sent between broadcast frame, until all second broadcast frames are sent as a broadcast cycle, is then performed down again
One broadcast cycle.Wherein, one or more first broadcast frames are sent between two the second broadcast frames, are used in the present embodiment
The first higher broadcast frame of transmission frequency carries service catalogue, in order to improves website and receives the general of service catalogue
Rate so that website faster finds to service.
Specifically, in embodiments of the present invention, the first fewer broadcast frame of byte number will be taken and is customized for short beacon;
The second more broadcast frame of byte number will be taken and be customized for long beacon.When access point sends the second broadcast frame successively, such as,
Second broadcast frame of the information on services group for carrying food and drink class according to first sending, retransmit the information on services group for carrying amusement class the
Two broadcast frames, the order for the second broadcast frame for finally sending the information on services group for carrying traffic class are sent.But at two second
Broadcast frame is that one or more first broadcast frame i.e. short beacons are also sent between long beacon.Food and drink is carried as shown in fig. 6, sending
After second broadcast frame 61 of the information on services group of class, the first broadcast frame 60 of 5 carrying service catalogues is continuously transmitted, then,
Send the second broadcast frame 62 of the information on services group for carrying amusement class and then continuously transmit 5 and carry the first of service catalogue
Broadcast frame 60, finally, send the second broadcast frame 63 of the information on services group for carrying traffic class and then continuously transmit 5 carryings
First broadcast frame 60 of service catalogue, so far forms a complete broadcast cycle, and the broadcast cycle can be with according to actual conditions
Circulation is repeatedly sent.Wherein, no matter the first broadcast frame or the second broadcast frame, the beacon period between each two broadcast frame is short
Beacon period, but the beacon period between the broadcast frame of each two second is long beacon period.
Therefore, service discovery method provided in an embodiment of the present invention, access point is according to the summary info of each information on services
By the information on services according to different information on services component classes, determine the broadcast time of each information on services group, and will described in
The broadcast time of the summary info of each information on services and each information on services group forms service catalogue, and service catalogue is added
It is added in the first broadcast frame, and the broadcast time and service information group of service catalogue is added in the second different broadcast frames,
So that the information on services group that each second broadcast frame carries all differs, the first broadcast frame and the second broadcast frame are sent to website,
When website receives the first broadcast frame or the second broadcast frame of access point transmission, realize all information on services point using AP
Class, and service catalogue is added in the first broadcast frame, and the broadcast time and service information group of service catalogue is added to not
With the second broadcast frame in, and send the first broadcast frame and the second broadcast frame to website so that website according to the first broadcast frame and
Second broadcast frame receives the information on services needed at the time of knowing, without receiving all information on services, reduces STA
Power consumption, it would be preferable to support the passive service of big data quantity is found.
Fig. 7 is the flow chart for the service discovery method that the embodiment of the present invention seven provides.Hold the website side that the embodiment provides
The service discovery method that the access point side that capable service discovery method is with example IV provides performs is corresponding.As schemed
Show, the embodiment of the present invention specifically includes following steps:
Step 710, website receives the carrying service catalogue of access point transmission and the broadcast frame of information on services group, wherein, clothes
Catalogue of being engaged in includes the message identification of information on services and the broadcast time of information on services group, and the broadcast frame received includes the first broadcast
Frame and the second broadcast frame.
Specifically, what website reception access point was sent carries the first broadcast frame of service catalogue or carries service catalogue
Broadcast time and service information group the second broadcast frame, wherein, the information on services group neither phase that each second broadcast frame carries
Together.
Step 720, website finds the information on services or service catalogue needed for itself from the information on services group of broadcast frame
The broadcast time or information on services group where the information on services needed for itself is known from the service catalogue of broadcast frame
The broadcast time.Wherein, the broadcast frame received includes the first broadcast frame and the second broadcast frame.First broadcast frame carries service
Catalogue, the second broadcast frame carry the broadcast time of a type of information on services group and service catalogue.
Specifically, after website receives the broadcast frame of access point transmission, to first broadcast frame or the second broadcast frame
A series of processing is carried out using two kinds of different processing modes, the processing procedure of each processing mode is as follows:
(1) STA obtain the detailed service information comprising its desired service be information on services group needed for itself just
Stop scanning, STA can enter resting state at the time of need not receive under this mode.Its detailed process is:
When what is received is the first broadcast frame, then the clothes needed for itself are known in the service catalogue carried from the first broadcast frame
After the broadcast time of information on services group where information of being engaged in, into resting state, only where the information on services needed for itself
The broadcast time of information on services group enters reception state, so as to find the service letter needed for itself from the broadcast frame received
Breath.
When what is received is the second broadcast frame, and the clothes in the information on services group that carries of the second broadcast frame needed for comprising itself
During information of being engaged in, then website stops receiving other broadcast frames that the access point is sent;
When what is received is the second broadcast frame, and do not include in the information on services group that carries of the second broadcast frame needed for itself
During information on services, then after knowing the broadcast time of service catalogue according to the second broadcast frame, into resting state, only in service catalogue
The broadcast time enter reception state, and know from the first broadcast frame for carrying service catalogue received needed for itself
After the broadcast time of information on services group where information on services, resting state is then entered back into, only the service letter needed for itself
Broadcast time of information on services group where ceasing enters reception state, so that from carry information on services group second received
The information on services needed for itself is found in broadcast frame.
(2) STA needs to scan always until obtaining all comprising needed for its desired detailed service information serviced i.e. itself
Information on services group, the STA under this mode must be constantly in listening state.Its detailed process is:
When what is received is the first broadcast frame for carrying service catalogue, and the clothes needed for itself in service catalogue be present
The corresponding message identification of information on services of information of being engaged in and the broadcast time of information on services group, then in the broadcast of information on services group
Between receive the second broadcast frame, and the information on services needed for itself is found from the second broadcast frame received, for the access point
Other broadcast frames, such as, the first broadcast frame or the second broadcast frame, make discard processing;
When what is received is the first broadcast frame for carrying service catalogue, and be not present in service catalogue with itself needed for
The message identification of the corresponding information on services of information on services and the broadcast time of information on services group, then website no longer receive access point
The information on services of transmission, for other broadcast frames of the access point, such as, the first broadcast frame or the second broadcast frame, make at discarding
Reason.
When what is received is the second broadcast frame, and the clothes in the information on services group that carries of the second broadcast frame needed for comprising itself
During information of being engaged in, then website no longer receives other information on services, for other broadcast frames of the access point, such as, the first broadcast
Frame or the second broadcast frame, make discard processing.
When what is received is the second broadcast frame, and do not include in the information on services group that carries of the second broadcast frame needed for itself
During information on services, then the broadcast time of service catalogue is known according to the second broadcast frame, to website in the broadcast of service catalogue
Between receive the first broadcast frame.
In addition, when the first broadcast frame is beacon, the second broadcast frame is also beacon, but the byte number that the first broadcast frame takes
Less than second broadcast frame take byte number when, website to the processing procedure of the first broadcast frame or the second broadcast frame with it is above-mentioned
It is identical, repeat no more herein.
Therefore, service discovery method provided in an embodiment of the present invention, website receive the carrying service catalogue that access point is sent
With the broadcast frame of information on services group, wherein, during the broadcast of the message identification of service catalogue including information on services and information on services group
Between, the broadcast frame received includes the first broadcast frame and the second broadcast frame, the service catalogue carried according to the broadcast frame received
With information on services group, the information on services needed for itself is found, website is realized and is being obtained according to the first broadcast frame and the second broadcast frame
The information on services needed is received at the time of knowing, without receiving all information on services, reduces STA power consumption, Neng Gouzhi
The passive service for holding big data quantity is found.
Fig. 8 is the schematic diagram for the access point that the embodiment of the present invention eight provides.The access point is used to perform the embodiment of the present invention
One to seven service discovery method provided.As illustrated, the embodiment of the present invention specifically includes:Taxon 81, processing unit 82,
Adding device 83 and transmitting element 84.
The content that taxon 81 is used for each information on services is classified, and obtains different information on services groups, often
Individual information on services group has a summary info of an each information on services of message identification, the information on services in each information on services group
Content belongs to the service type corresponding with message identification, and information on services group is transferred into processing unit 82;Processing unit
82 are used to receive information on services group from taxon 81, determine the broadcast time of each information on services group, and according to information on services
The broadcast time and message identification of group establish service catalogue, and the service catalogue includes broadcast time and the letter of all information on services groups
Breath mark, and information on services group and service catalogue are transferred to adding device 83;Adding device 83 is used for from processing unit 82
Information on services group and service catalogue are received, information on services group and service catalogue are added in broadcast frame, and broadcast frame is passed
It is defeated by transmitting element 84;Transmitting element 84 is used to receive broadcast frame from adding device 83, determines the broadcast cycle of broadcast frame, and root
Broadcast frame periodically is sent to website according to broadcast cycle, is found certainly from the information on services group of the broadcast frame to the website
Information on services needed for body or where knowing the information on services needed for itself from the service catalogue of the broadcast frame
The broadcast time of information on services group.
In one embodiment, service catalogue also includes the summary info of the information on services in each information on services group, adds
Add unit 83 to be used to information on services group being respectively added in each broadcast frame, and service catalogue is respectively added to each broadcast
In frame so that the information on services group that each broadcast frame carries is all different, and the service catalogue that each broadcast frame carries is all identical, its
In, each broadcast frame carries service catalogue and a type of information on services group.
In another embodiment, service catalogue also includes the summary info of the information on services in each information on services group,
Processing unit 82 is additionally operable to determine the broadcast time of service catalogue.The broadcast frame being related in this embodiment includes:First is wide
Broadcast frame and the second broadcast frame.Adding device 83 is used to service catalogue being added in the first broadcast frame, and by the wide of service catalogue
Broadcast time and service information group to be added in the second different broadcast frames so that the information on services group that each second broadcast frame carries
All differ.Transmitting element 84 is used to send the first broadcast frame to website, knows that access point is sent out from the first broadcast frame to website
The broadcast time of the information on services needed for itself is given, and to the broadcast frame of website second, is found to website from the second broadcast frame
Information on services needed for itself.
Wherein, in the broadcast cycle of transmitting element 84, the first broadcast frame is only sent once, each to carry different service letters
Second broadcast frame of breath group is sent once respectively;Or first broadcast frame send it is multiple, it is each to carry different information on services groups
The second broadcast frame send respectively once, send one or more first broadcast frames before the transmission of each second broadcast frame, its
In, the byte number that first broadcast frame takes is less than the byte number that second broadcast frame takes.Therefore, access point has a variety of
The form of the first broadcast frame and the second broadcast frame is sent, such as:After sending the first broadcast frame, the second broadcast frame is retransmited, until
All second broadcast frames are sent as a broadcast cycle, then perform next broadcast cycle again;Or second is sent successively
Broadcast frame, and one or more first broadcast frames are sent between each second broadcast frame, until all second broadcast frames are sent
Finish as a broadcast cycle, then perform next broadcast cycle again.
Therefore, access point provided in an embodiment of the present invention, the service is believed according to the summary info of each information on services
Breath determines the broadcast time of each information on services group according to different information on services component classes, and by each information on services
Summary info and each information on services group the broadcast time composition service catalogue, by the information on services group and the clothes
Business catalogue is added in broadcast frame, sends the broadcast frame to website, realizes and sent out after all information on services are classified using AP
STA is given, and STA receives the information on services needed at the time of knowing, without receiving all information on services, reduces
STA power consumption, it would be preferable to support the passive service of big data quantity is found.
Fig. 9 is the schematic diagram for the website that the embodiment of the present invention nine provides.The website be used for perform the embodiment of the present invention one to
Seven service discovery methods provided.As illustrated, the embodiment of the present invention specifically includes:Receiving unit 91 and discovery unit 92.
Receiving unit 91 is used to receive the carrying service catalogue of access point transmission and the broadcast frame of information on services group, services mesh
Record includes the message identification of information on services and the broadcast time of information on services group, and broadcast frame is transferred to and finds unit 92;
It was found that unit 92 is used to receive broadcast frame from receiving unit, the service letter needed for itself is found from the information on services group of broadcast frame
Breath or the broadcast time that the information on services group where information on services needed for itself is known from the service catalogue of broadcast frame.
When existing service catalogue has information on services group in broadcast frame again, in one embodiment, it is found that unit 92 is used for
When including the information on services needed for itself in the information on services group of the broadcast frame received, then website stops receiving access point hair
The other broadcast frames sent;When not including the information on services needed for itself in the information on services group of the broadcast frame received, then
After website knows the broadcast time of the information on services group where the information on services needed for itself from service catalogue, into dormancy shape
State, only the broadcast time of the information on services group where information on services needed for itself enter reception state so that from receiving
Broadcast frame in find information on services needed for itself.
In another embodiment, find to include itself in information on services group of the unit 92 for working as the broadcast frame received
During required information on services, then website no longer receives other information on services of access point transmission, send for access point its
He makees discard processing by broadcast frame;When in the information on services group of the broadcast frame received do not include itself needed for information on services, and
Exist in service catalogue with itself needed for the corresponding information on services of information on services message identification and information on services group it is wide
Between sowing time, then broadcast frame is received in the broadcast time of information on services group, and found from the broadcast frame received needed for itself
Information on services, other broadcast frames sent for the access point make discard processing.Received additionally, it was found that unit 92 is additionally operable to work as
Broadcast frame information on services group in do not include itself needed for information on services, and in service catalogue be not present with itself needed for
The message identification of the corresponding information on services of information on services and the broadcast time of information on services group, then website no longer receive access point
The information on services of transmission, other broadcast frames sent for access point make discard processing.
When broadcast frame includes the first broadcast frame and the second broadcast frame, receiving unit 91 is used for the carrying for receiving access point transmission
Second broadcast frame of the first broadcast frame for having service catalogue or the broadcast time and service information group for carrying service catalogue, its
In, the information on services group that each second broadcast frame carries all differs.
In one embodiment, discovery unit 92 is then taken for being the first broadcast frame when what is received from the first broadcast frame
After the broadcast time that the information on services group where the information on services needed for itself is known in the service catalogue of band, into dormancy shape
State, only the broadcast time of the information on services group where information on services needed for itself enter reception state so that from receiving
Broadcast frame in find information on services needed for itself;When what is received is the second broadcast frame, and the clothes that the second broadcast frame carries
When in information group of being engaged in comprising the information on services needed for itself, then website stops receiving other broadcast frames.Additionally, it was found that unit 92
Be additionally operable to receive is the second broadcast frame, and does not include the clothes needed for itself in the information on services group of the second broadcast frame carrying
During information of being engaged in, then after knowing the broadcast time of service catalogue according to the second broadcast frame, into resting state, only in service catalogue
The broadcast time enters reception state, and the clothes needed for itself are known from the first broadcast frame for carrying service catalogue received
After the broadcast time of information on services group where information of being engaged in, resting state is then entered back into, only the information on services needed for itself
The broadcast time of the information on services group at place enters reception state, so as to carry the second wide of information on services group from what is received
Broadcast and information on services needed for itself is found in frame.
In another embodiment, it is found that unit 92 is used for when what is received is to carry the first of service catalogue to broadcast
Frame, and exist in service catalogue with itself needed for the corresponding information on services of information on services message identification and information on services group
The broadcast time, then receive the second broadcast frame in the broadcast time of information on services group, and sent out from the second broadcast frame received
The now information on services needed for itself, other first broadcast frames or the second broadcast frame sent for the access point are made at discarding
Reason;When what is received is the first broadcast frame for carrying service catalogue, and the service needed for itself is not present in service catalogue
The message identification of the corresponding information on services of information and the broadcast time of information on services group, then website no longer receive access point transmission
Information on services, for the access point send other broadcast frames, the first broadcast frame or the second broadcast frame make discard processing.Separately
Outside, discovery unit 92 is for being the second broadcast frame when what is received, and is included certainly in the information on services group of the second broadcast frame carrying
During information on services needed for body, then website no longer receives other information on services, other broadcast sent for the access point
Frame, such as, the second broadcast frame or the first broadcast frame make discard processing;When what is received is the second broadcast frame, and the second broadcast frame
When not including the information on services needed for itself in the information on services group of carrying, then the wide of service catalogue is known according to the second broadcast frame
Between sowing time, the first broadcast frame is received to broadcast time of the website in service catalogue.
Therefore, website provided in an embodiment of the present invention, website receive carrying service catalogue and the service of access point transmission
After the broadcast frame of information group, information on services needed for itself is found from the information on services group of broadcast frame or from broadcast frame
The broadcast time of the information on services group where the information on services needed for itself is known in service catalogue, realizing will own using AP
STA is sent to after information on services classification, and STA receives the information on services needed at the time of knowing, it is all without receiving
Information on services, reduce STA power consumption, it would be preferable to support the passive service of big data quantity is found.
Figure 10 is the schematic diagram for the access point that the embodiment of the present invention ten provides.The access point is used to perform the embodiment of the present invention
One to seven passive service provided finds method.As illustrated, the embodiment of the present invention specifically includes:As illustrated, the access point
100 include:Radiating circuit 102, receiving circuit 103, power controller 104, decoding processor 105, processing unit 106, storage
Device 107 and antenna 101.Processing unit 106 controls the operation of access point 100, and processing unit 106 can also be referred to as CPU.Memory
107 can include read-only storage and random access memory, and provide instruction and data to processing unit 106.Memory 107
A part of can also include non-volatile row random access memory (NVRAM).In specific application, access point 100 can be with embedding
Enter or itself can be exactly the Wireless Telecom Equipment of such as mobile phone etc, can also include accommodating the He of radiating circuit 102
The carrier of receiving circuit 103, to allow to carry out data transmitting and reception between access point 100 and remote location.Radiating circuit 102
Antenna 101 is may be coupled to receiving circuit 103.Each component of access point 100 is coupled by bus system 1000,
Wherein, bus system 1000 is in addition to including data/address bus, in addition to power bus, controlling bus and status signal bus in addition.But
It is for the sake of clearly bright, various buses is all designated as bus system 1000 in figure.Access point 100 can also include being used to locate
Manage the processing unit 106 of signal, additionally include power controller 104, decoding processor 105.Solved in specific different product
Code device 105 may become one with processing unit 106.
Disclosed each step and logic diagram in the inventive method embodiment can be realized or performed to processor.It is general
Processor can be microprocessor or the processor can also be any conventional processor, decoder etc..With reference to the present invention
The step of method disclosed in embodiment, can be embodied directly in hardware processor and perform completion, or with decoding processor
Hardware and software module combination perform completion.Software module can be located at random access memory, flash memory, read-only storage, may be programmed
In the ripe storage medium in this area such as read-only storage or electrically erasable programmable memory, register.The storage medium
Positioned at memory 107, the information in decoding unit or processing unit reading memory 107, the present invention is completed with reference to its hardware
The passive service that embodiment one to seven provides finds the step of method.
Figure 11 is the schematic diagram for the website that the embodiment of the present invention 11 provides.The website is used to perform the embodiment of the present invention one
The passive service provided to seven finds method.As illustrated, the website 110 includes:Radiating circuit 112, receiving circuit 113, work(
Rate controller 114, decoding processor 115, processing unit 116, memory 117 and antenna 111.Processing unit 116 controls website
110 operation, processing unit 116 can also be referred to as CPU.Memory 117 can include read-only storage and random access memory
Device, and provide instruction and data to processing unit 116.The a part of of memory 117 can also include non-volatile row arbitrary access
Memory (NVRAM).In specific application, website 110 can be embedded in or itself can be exactly such as mobile phone etc
Wireless Telecom Equipment, the carrier for accommodating radiating circuit 112 and receiving circuit 113 can also be included, to allow website 110 and long-range
Data transmitting and reception are carried out between position.Radiating circuit 112 and receiving circuit 113 may be coupled to antenna 111.Website 110
Each component be coupled by bus system 1100, wherein, bus system 1100 is also wrapped in addition to including data/address bus
Include power bus, controlling bus and status signal bus in addition.But for the sake of clearly bright, various buses are all designated as always in figure
Linear system system 1100.Website 110 can also include the processing unit 116 for process signal, additionally include power controller
114th, decoding processor 115.Decoder 115 may become one with processing unit 116 in specific different product.
Disclosed each step and logic diagram in the inventive method embodiment can be realized or performed to processor.It is general
Processor can be microprocessor or the processor can also be any conventional processor, decoder etc..With reference to the present invention
The step of method disclosed in embodiment, can be embodied directly in hardware processor and perform completion, or with decoding processor
Hardware and software module combination perform completion.Software module can be located at random access memory, flash memory, read-only storage, may be programmed
In the ripe storage medium in this area such as read-only storage or electrically erasable programmable memory, register.The storage medium
Positioned at memory 117, the information in decoding unit or processing unit reading memory 117, the present invention is completed with reference to its hardware
The passive service that embodiment one to seven provides finds the step of method.
Professional should further appreciate that, each example described with reference to the embodiments described herein
Unit and algorithm steps, it can be realized with electronic hardware, computer software or the combination of the two, it is hard in order to clearly demonstrate
The interchangeability of part and software, the composition and step of each example are generally described according to function in the above description.
These functions are performed with hardware or software mode actually, application-specific and design constraint depending on technical scheme.
Professional and technical personnel can realize described function using distinct methods to each specific application, but this realization
It is it is not considered that beyond the scope of this invention.
The method that is described with reference to the embodiments described herein can use hardware, computing device the step of algorithm
Software module, or the two combination are implemented.Software module can be placed in random access memory (RAM), internal memory, read-only storage
(ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field
In any other form of storage medium well known to interior.
Above-described embodiment, the purpose of the present invention, technical scheme and beneficial effect are carried out further
Describe in detail, should be understood that the embodiment that the foregoing is only the present invention, be not intended to limit the present invention
Protection domain, within the spirit and principles of the invention, any modification, equivalent substitution and improvements done etc., all should include
Within protection scope of the present invention.