CN103916839B - The method and apparatus of issuing service information - Google Patents
The method and apparatus of issuing service information Download PDFInfo
- Publication number
- CN103916839B CN103916839B CN201210592417.2A CN201210592417A CN103916839B CN 103916839 B CN103916839 B CN 103916839B CN 201210592417 A CN201210592417 A CN 201210592417A CN 103916839 B CN103916839 B CN 103916839B
- Authority
- CN
- China
- Prior art keywords
- service information
- service
- information
- publishing
- sta
- 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.)
- Expired - Fee Related
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
本发明提供一种发布服务信息的方法和设备。第一设备获取来自第二设备的服务信息发布能力指示信息;所述第一设备向所述第二设备发送登记服务信息请求消息,所述登记服务信息请求消息中包括所述第一设备的服务信息,以使所述第二设备登记并向第三设备知会所述服务信息。采用本发明提供的发布服务信息的方法和设备,能够实现对于服务信息的发布。
The invention provides a method and equipment for distributing service information. The first device acquires service information publishing capability indication information from the second device; the first device sends a registration service information request message to the second device, and the registration service information request message includes the service of the first device information, so that the second device registers and notifies the third device of the service information. By adopting the method and device for publishing service information provided by the present invention, the publishing of service information can be realized.
Description
技术领域technical field
本发明涉及移动通信技术,尤其涉及一种的发布服务信息的方法和设备。The present invention relates to mobile communication technology, in particular to a method and device for publishing service information.
背景技术Background technique
无线保真(Wireless Fidelity,简称WiFi)技术以部署快速、使用便利和传输速率高等优势,获得迅猛发展。笔记本电脑、掌上电脑(Personal DigitalAssistant,简称PDA)和移动电话等设备都支持WiFi技术。WiFi技术被广泛应用于各个行业。WiFi网络的接入点(Access Point,简称AP)遍布于酒店、咖啡厅、学校和医院等场所。Wireless Fidelity (WiFi for short) technology has achieved rapid development due to its advantages of fast deployment, convenient use, and high transmission rate. Devices such as notebook computers, PDAs (Personal Digital Assistant, PDA for short) and mobile phones all support WiFi technology. WiFi technology is widely used in various industries. Access Points (AP for short) of WiFi networks are located in hotels, cafes, schools, hospitals and other places.
目前,在WiFi网络中,存在采用一个AP为多个设备服务的情形。例如:扫描仪作为一个设备连接到AP,该AP向WiFi网络中的其它设备知会:本AP可以提供扫描服务;同时,还可以有打印机等多个其它设备连接到该AP上。在上述情形下,由于AP需要为多个设备服务,每个设备均需要与该AP进行发现、认证、关联等过程,从而使设备与AP之间具有连接和信任关系。在现有的关联过程中,设备将自身的设备类型携带在关联请求消息中发给AP,从而在AP中登记设备信息,然后AP将该设备信息发布给其它设备。Currently, in a WiFi network, there is a situation where one AP is used to serve multiple devices. For example: a scanner is connected to an AP as a device, and the AP informs other devices in the WiFi network that this AP can provide scanning services; at the same time, multiple other devices such as printers can also be connected to the AP. In the above situation, because the AP needs to serve multiple devices, each device needs to perform processes such as discovery, authentication, and association with the AP, so that there is a connection and trust relationship between the device and the AP. In the existing association process, the device carries its own device type in the association request message and sends it to the AP, so as to register the device information in the AP, and then the AP publishes the device information to other devices.
发明人在实现本发明的过程中发现,采用上述现有的信息发布方法,只能实现设备信息的登记和发布,即,只能登记和发布打印机、扫描仪、显示器等设备的名字。上述现有的信息发布方法登记和发布的信息有限,无法满足更多的需求。In the process of realizing the present invention, the inventor found that the above-mentioned existing information release method can only realize the registration and release of device information, that is, only the names of printers, scanners, monitors and other devices can be registered and released. The information registered and released by the above-mentioned existing information publishing methods is limited and cannot meet more demands.
发明内容Contents of the invention
本发明实施例提供一种发布服务信息的方法及设备,用以解决现有技术中的缺陷,实现对于服务信息的发布。Embodiments of the present invention provide a method and device for distributing service information, which are used to solve the defects in the prior art and realize the dissemination of service information.
第一方面,提供一种发布服务信息的方法,包括:In the first aspect, a method for publishing service information is provided, including:
第一设备获取来自第二设备的服务信息发布能力指示信息;The first device acquires service information publishing capability indication information from the second device;
所述第一设备向所述第二设备发送登记服务信息请求消息,所述登记服务信息请求消息中包括所述第一设备的服务信息,以使所述第二设备登记并向第三设备知会所述服务信息。The first device sends a registration service information request message to the second device, and the registration service information request message includes the service information of the first device, so that the second device registers and notifies the third device The service information will be described.
在第一种可能的实现方式中,所述服务信息包括:In a first possible implementation manner, the service information includes:
服务名称,和/或,服务的摘要信息,和/或,设备名称,和/或,设备的地址信息,和/或,服务的持续时间。Service name, and/or, service summary information, and/or, device name, and/or, device address information, and/or, service duration.
结合第一方面的第一种可能的实现方式,在第二种可能的实现方式中,所述服务信息还包括:With reference to the first possible implementation of the first aspect, in a second possible implementation, the service information further includes:
服务发布开始时间,和/或,服务发布结束时间,和/或,服务发布持续时间。Service release start time, and/or, service release end time, and/or, service release duration.
结合第一方面或第一方面的第一种可能的实现方式,在第三种可能的实现方式中,所述第一设备获取来自第二设备的服务信息发布能力指示信息包括:With reference to the first aspect or the first possible implementation manner of the first aspect, in a third possible implementation manner, the acquisition by the first device of the service information publication capability indication information from the second device includes:
所述第一设备接收所述第二设备广播的携带所述服务信息发布能力指示信息的广播帧;The first device receives the broadcast frame carrying the service information publishing capability indication information broadcast by the second device;
和/或,所述第一设备向所述第二设备发送服务信息发布能力查询请求帧并接收所述第二设备返回的携带所述服务信息发布能力指示信息的服务信息发布能力查询应答帧;And/or, the first device sends a service information publishing capability query request frame to the second device and receives a service information publishing capability query response frame carrying the service information publishing capability indication information returned by the second device;
和/或,所述第一设备向所述第二设备发送通用查询请求帧并接收所述第二设备返回的携带所述服务信息发布能力指示信息的通用查询应答帧。And/or, the first device sends a general query request frame to the second device and receives a general query response frame that carries the service information publishing capability indication information returned by the second device.
结合第一方面或第一方面的第一至三种可能的实现方式中的任意一种,在第四种可能的实现方式中,所述第一设备向第二设备发送登记服务信息请求消息之前,还包括:With reference to the first aspect or any one of the first to third possible implementations of the first aspect, in a fourth possible implementation, before the first device sends the registration service information request message to the second device ,Also includes:
所述第一设备与所述第二设备进行发布服务信息的权限确认。The first device confirms with the second device the authority to publish service information.
结合第一方面的第四种可能的实现方式,在第五种可能的实现方式中,所述第一设备与所述第二设备进行发布服务信息的权限确认包括:With reference to the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner, the confirming the right of publishing service information by the first device and the second device includes:
所述第一设备向所述第二设备发送通过预授权方式或通过蜂窝通信网络获取的认证码信息,以使所述第二设备根据所述认证码信息确认所述第一设备具备发布服务信息的权限。The first device sends to the second device authentication code information obtained through pre-authorization or through a cellular communication network, so that the second device confirms that the first device is capable of publishing service information according to the authentication code information permission.
结合第一方面或第一方面的第一至五种可能的实现方式中的任意一种,在第六种可能的实现方式中,所述第二设备向所述第三设备知会所述服务信息包括:With reference to the first aspect or any one of the first to fifth possible implementations of the first aspect, in a sixth possible implementation, the second device notifies the third device of the service Information includes:
所述第二设备广播携带所述服务信息的广播帧;The second device broadcasts a broadcast frame carrying the service information;
和/或,所述第二设备接收来自所述第三设备的订阅所述服务信息的服务信息查询请求帧并返回携带所述服务信息的服务信息查询应答帧;And/or, the second device receives a service information query request frame for subscribing to the service information from the third device and returns a service information query response frame carrying the service information;
和/或,所述第二设备接收来自所述第三设备的通用查询请求帧并返回携带所述服务信息的通用查询应答帧;And/or, the second device receives a general query request frame from the third device and returns a general query response frame carrying the service information;
和/或,所述第二设备根据接收到的来自所述第三设备的订阅所述服务信息的服务信息订阅请求消息,向所述第三设备发送携带所述服务信息的消息帧。And/or, the second device sends a message frame carrying the service information to the third device according to the received service information subscription request message from the third device for subscribing to the service information.
第二方面,提供一种发布服务信息的方法,包括:In the second aspect, a method for publishing service information is provided, including:
第二设备向第一设备发送服务信息发布能力指示信息;The second device sends service information publishing capability indication information to the first device;
所述第二设备接收来自第一设备的登记服务信息请求消息,所述登记服务信息请求消息中包括所述第一设备的服务信息;The second device receives a registration service information request message from the first device, and the registration service information request message includes the service information of the first device;
所述第二设备登记所述第一设备的服务信息;The second device registers the service information of the first device;
所述第二设备向第三设备知会所述服务信息。The second device notifies the third device of the service information.
在第一种可能的实现方式中,所述服务信息包括:In a first possible implementation manner, the service information includes:
服务名称,和/或,服务的摘要信息,和/或,设备名称,和/或,设备的地址信息,和/或,服务的持续时间。Service name, and/or, service summary information, and/or, device name, and/or, device address information, and/or, service duration.
结合第二方面的第一种可能的实现方式,在第二种可能的实现方式中,所述服务信息还包括:With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner, the service information further includes:
服务发布开始时间,和/或,服务发布结束时间,和/或,服务发布持续时间。Service release start time, and/or, service release end time, and/or, service release duration.
结合第二方面或第二方面的第一或二种可能的实现方式,在第三种可能的实现方式中,所述第二设备向第一设备发送服务信息发布能力指示信息包括:With reference to the second aspect or the first or second possible implementation manner of the second aspect, in a third possible implementation manner, the sending of the service information publication capability indication information by the second device to the first device includes:
所述第二设备广播携带所述服务信息发布能力指示信息的广播帧;The second device broadcasts a broadcast frame carrying the service information publishing capability indication information;
和/或,所述第二设备接收来自所述第一设备的服务信息发布能力查询请求帧并返回携带所述服务信息发布能力指示信息的服务信息发布能力查询应答帧;And/or, the second device receives a service information publishing capability query request frame from the first device and returns a service information publishing capability query response frame carrying the service information publishing capability indication information;
和/或,所述第二设备接收来自所述第一设备的通用查询请求帧并返回携带所述服务信息发布能力指示信息的通用查询应答帧。And/or, the second device receives the general query request frame from the first device and returns a general query response frame carrying the service information publishing capability indication information.
结合第二方面或第二方面的第一至三种可能的实现方式中的任意一种,在第四种可能的实现方式中,所述第二设备向第三设备知会所述服务信息包括:With reference to the second aspect or any one of the first to third possible implementation manners of the second aspect, in a fourth possible implementation manner, the second device notifies the third device that the service information includes :
所述第二设备广播携带所述服务信息的广播帧;The second device broadcasts a broadcast frame carrying the service information;
和/或,所述第二设备接收来自所述第三设备的订阅所述服务信息的服务信息查询请求帧并返回携带所述服务信息的服务信息查询应答帧;And/or, the second device receives a service information query request frame for subscribing to the service information from the third device and returns a service information query response frame carrying the service information;
和/或,所述第二设备接收来自所述第三设备的通用查询请求帧并返回携带所述服务信息的通用查询应答帧;And/or, the second device receives a general query request frame from the third device and returns a general query response frame carrying the service information;
和/或,所述第二设备根据接收到的来自所述第三设备的订阅所述服务信息的服务信息订阅请求消息,向所述第三设备发送携带所述服务信息的消息帧。And/or, the second device sends a message frame carrying the service information to the third device according to the received service information subscription request message from the third device for subscribing to the service information.
结合第二方面或第二方面的第一至四种可能的实现方式中的任意一种,在第五种可能的实现方式中,所述第二设备接收来自第一设备的登记服务信息请求消息之前,还包括:With reference to the second aspect or any one of the first to four possible implementations of the second aspect, in a fifth possible implementation, the second device receives the registration service information request message from the first device Previously, also included:
所述第二设备与所述第一设备进行发布服务信息的权限确认。The second device confirms with the first device the authority to publish service information.
结合第二方面的第五种可能的实现方式,在第六种可能的实现方式中,所述第二设备与所述第一设备进行发布服务信息的权限确认包括:With reference to the fifth possible implementation manner of the second aspect, in a sixth possible implementation manner, the second device confirming with the first device the right to publish service information includes:
所述第二设备接收来自所述第一设备的通过预授权方式或通过蜂窝通信网络获取的认证码信息,根据所述认证码信息确认所述第一设备具备发布服务信息的权限;The second device receives authentication code information obtained from the first device through pre-authorization or through a cellular communication network, and confirms that the first device has the authority to publish service information according to the authentication code information;
和/或,所述第二设备调整功率,以使所述第二设备仅覆盖设定的允许发布服务信息的区域。And/or, the second device adjusts the power so that the second device only covers a set area that is allowed to publish service information.
第三方面,提供一种设备,所述设备为第一设备,包括:In a third aspect, a device is provided, the device is a first device, including:
接收器,用于获取来自第二设备的服务信息发布能力指示信息;a receiver, configured to acquire service information publishing capability indication information from the second device;
发送器,用于向所述第二设备发送登记服务信息请求消息,所述登记服务信息请求消息中包括所述第一设备的服务信息,以使所述第二设备登记并向第三设备知会所述服务信息。a sender, configured to send a registration service information request message to the second device, where the registration service information request message includes the service information of the first device, so that the second device registers and notifies the third device The service information will be described.
在第一种可能的实现方式中,所述服务信息包括:In a first possible implementation manner, the service information includes:
服务名称,和/或,服务的摘要信息,和/或,设备名称,和/或,设备的地址信息,和/或,服务的持续时间。Service name, and/or, service summary information, and/or, device name, and/or, device address information, and/or, service duration.
结合第三方面的第一种可能的实现方式,在第二种可能的实现方式中,所述服务信息还包括:With reference to the first possible implementation manner of the third aspect, in a second possible implementation manner, the service information further includes:
服务发布开始时间,和/或,服务发布结束时间,和/或,服务发布持续时间。Service release start time, and/or, service release end time, and/or, service release duration.
结合第三方面或第三方面的第一或二种可能的实现方式,在第三种可能的实现方式中,In combination with the third aspect or the first or second possible implementation of the third aspect, in the third possible implementation,
所述接收器具体用于接收所述第二设备广播的携带所述服务信息发布能力指示信息的广播帧;The receiver is specifically configured to receive a broadcast frame carrying the service information publishing capability indication information broadcast by the second device;
和/或,所述发送器还用于向所述第二设备发送服务信息发布能力查询请求帧,所述接收器具体用于接收所述第二设备返回的携带所述服务信息发布能力指示信息的服务信息发布能力查询应答帧;And/or, the transmitter is further configured to send a service information publishing capability query request frame to the second device, and the receiver is specifically configured to receive the service information publishing capability indication information returned by the second device The service information release capability query response frame;
和/或,所述发送器还用于向所述第二设备发送通用查询请求帧,所述接收器具体用于接收所述第二设备返回的携带所述服务信息发布能力指示信息的通用查询应答帧。And/or, the transmitter is further configured to send a general query request frame to the second device, and the receiver is specifically configured to receive the general query that carries the service information publishing capability indication information returned by the second device Acknowledgment frame.
结合第三方面或第三方面的第一至三种可能的实现方式中的任意一种,在第四种可能的实现方式中,In combination with the third aspect or any one of the first to third possible implementation manners of the third aspect, in a fourth possible implementation manner,
所述发送器还用于与所述第二设备进行发布服务信息的权限确认。The transmitter is further configured to confirm with the second device the authority to publish service information.
结合第三方面的第四种可能的实现方式,在第五种可能的实现方式中,In combination with the fourth possible implementation of the third aspect, in the fifth possible implementation,
所述发送器具体用于向所述第二设备发送通过预授权方式或通过蜂窝通信网络获取的认证码信息,以使所述第二设备根据所述认证码信息确认所述第一设备具备发布服务信息的权限。The transmitter is specifically configured to send to the second device authentication code information obtained through a pre-authorization method or through a cellular communication network, so that the second device confirms that the first device is capable of issuing Access to Service Information.
第四方面,提供一种设备,所述设备为第二设备,包括:In a fourth aspect, a device is provided, the device is a second device, including:
接收器,用于接收来自第一设备的登记服务信息请求消息,所述登记服务信息请求消息中包括所述第一设备的服务信息;a receiver, configured to receive a registration service information request message from the first device, where the registration service information request message includes service information of the first device;
发送器,用于向所述第一设备发送服务信息发布能力指示信息并向第三设备知会所述服务信息;a transmitter, configured to send service information publishing capability indication information to the first device and notify a third device of the service information;
处理器,用于登记所述服务信息。A processor, configured to register the service information.
在第一种可能的实现方式中,所述服务信息包括:In a first possible implementation manner, the service information includes:
服务名称,和/或,服务的摘要信息,和/或,设备名称,和/或,设备的地址信息,和/或,服务的持续时间。Service name, and/or, service summary information, and/or, device name, and/or, device address information, and/or, service duration.
结合第四方面的第一种可能的实现方式,在第二种可能的实现方式中,所述服务信息还包括:With reference to the first possible implementation manner of the fourth aspect, in a second possible implementation manner, the service information further includes:
服务发布开始时间,和/或,服务发布结束时间,和/或,服务发布持续时间。Service release start time, and/or, service release end time, and/or, service release duration.
结合第四方面或第四方面的第一或二种可能的实现方式,在第三种可能的实现方式中,所述发送器具体用于广播携带所述服务信息发布能力指示信息的广播帧;With reference to the fourth aspect or the first or second possible implementation manner of the fourth aspect, in a third possible implementation manner, the transmitter is specifically configured to broadcast a broadcast frame carrying the service information publishing capability indication information;
和/或,所述接收器具体用于接收来自所述第一设备的服务信息发布能力查询请求帧,所述发送器具体用于向所述第一设备返回携带所述服务信息发布能力指示信息的服务信息发布能力查询应答帧;And/or, the receiver is specifically configured to receive a service information publishing capability query request frame from the first device, and the transmitter is specifically configured to return information carrying the service information publishing capability indication to the first device The service information release capability query response frame;
和/或,所述接收器具体用于接收来自所述第一设备的通用查询请求帧,所述发送器具体用于向所述第一设备返回携带所述服务信息发布能力指示信息的通用查询应答帧。And/or, the receiver is specifically configured to receive a general query request frame from the first device, and the transmitter is specifically configured to return the general query carrying the service information publishing capability indication information to the first device Acknowledgment frame.
结合第四方面或第四方面的第一至三种可能的实现方式中的任意一种,在第四种可能的实现方式中,In combination with the fourth aspect or any one of the first to third possible implementation manners of the fourth aspect, in the fourth possible implementation manner,
所述发送器具体用于广播携带所述服务信息的广播帧;The transmitter is specifically configured to broadcast a broadcast frame carrying the service information;
和/或,所述接收器还用于接收来自所述第三设备的订阅所述服务信息的服务信息查询请求帧,所述发送器具体用于返回携带所述服务信息的服务信息查询应答帧;And/or, the receiver is further configured to receive a service information query request frame for subscribing to the service information from the third device, and the transmitter is specifically configured to return a service information query response frame carrying the service information ;
和/或,所述接收器还用于接收来自所述第三设备的通用查询请求帧,所述发送器具体用于返回携带所述服务信息的通用查询应答帧;And/or, the receiver is further configured to receive a general query request frame from the third device, and the transmitter is specifically configured to return a general query response frame carrying the service information;
和/或,所述接收器还用于接收来自所述第三设备的订阅所述服务信息的服务信息订阅请求消息,所述发送器具体用于向所述第三设备发送携带所述服务信息的消息帧。And/or, the receiver is further configured to receive a service information subscription request message from the third device for subscribing to the service information, and the sender is specifically configured to send a message carrying the service information to the third device message frame.
结合第四方面或第四方面的第一至四种可能的实现方式中的任意一种,在第五种可能的实现方式中,In combination with the fourth aspect or any one of the first to four possible implementations of the fourth aspect, in a fifth possible implementation,
所述接收器和所述处理器还用于与所述第一设备进行发布服务信息的权限确认。The receiver and the processor are further configured to confirm with the first device the authority to publish service information.
结合第四方面的第五种可能的实现方式,在第六种可能的实现方式中,In combination with the fifth possible implementation of the fourth aspect, in the sixth possible implementation,
所述接收器具体用于接收来自所述第一设备的通过预授权方式或通过蜂窝通信网络获取的认证码信息,所述处理器具体用于根据所述认证码信息确认所述第一设备具备发布服务信息的权限;The receiver is specifically configured to receive authentication code information obtained from the first device in a pre-authorized manner or through a cellular communication network, and the processor is specifically configured to confirm that the first device has The authority to publish service information;
和/或,所述处理器具体用于调整所述第二设备的功率,以使所述第二设备仅覆盖设定的允许发布服务信息的区域。And/or, the processor is specifically configured to adjust the power of the second device, so that the second device only covers a set area that is allowed to publish service information.
由上述发明内容可见,通过第一设备向第二设备发送登记服务信息请求消息,在该登记服务信息请求消息中携带第一设备的服务信息,从而使得第二设备登记第一设备的服务信息,并将该服务信息发布给第三设备,从而实现对于服务信息的发布。It can be seen from the content of the above invention that the first device sends a registration service information request message to the second device, and the registration service information request message carries the service information of the first device, so that the second device registers the service information of the first device, And release the service information to the third device, so as to realize the release of the service information.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1为本发明实施例一的发布服务信息的方法的流程图;FIG. 1 is a flowchart of a method for publishing service information in Embodiment 1 of the present invention;
图2为本发明实施例二的发布服务信息的方法的流程图;FIG. 2 is a flowchart of a method for publishing service information according to Embodiment 2 of the present invention;
图3为本发明实施例三的发布服务信息的方法的信令流程图;FIG. 3 is a signaling flowchart of a method for publishing service information according to Embodiment 3 of the present invention;
图4为本发明实施例三的服务信息发布能力指示信息的信息元素结构示意图;FIG. 4 is a schematic diagram of an information element structure of service information release capability indication information according to Embodiment 3 of the present invention;
图5为本发明实施例三的与服务信息相关的信息元素的结构示意图;FIG. 5 is a schematic structural diagram of information elements related to service information in Embodiment 3 of the present invention;
图6为本发明实施例三的与登记服务信息应答相关的信息元素的第一种结构示意图;FIG. 6 is a schematic diagram of a first structure of information elements related to registration service information responses according to Embodiment 3 of the present invention;
图7为本发明实施例三的与登记服务信息应答相关的信息元素的第二种结构示意图;FIG. 7 is a schematic diagram of a second structure of information elements related to registration service information responses according to Embodiment 3 of the present invention;
图8为本发明实施例三的与知会第一STA的服务信息相关的信息元素的结构示意图;8 is a schematic structural diagram of information elements related to service information notified to the first STA according to Embodiment 3 of the present invention;
图9为本发明实施例四的第一设备的结构示意图;FIG. 9 is a schematic structural diagram of a first device according to Embodiment 4 of the present invention;
图10为本发明实施例五的第二设备的结构示意图。FIG. 10 is a schematic structural diagram of a second device according to Embodiment 5 of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
本发明的发布服务信息的方法用于第一设备向第二设备登记第一设备上运行的服务信息,并由第二设备将该第一设备上运行的服务信息发布给第三设备。例如,第一站(Station,简称STA)向AP登记该STA的服务信息,AP向第二STA发布第一STA的服务信息;又例如,第一STA向第二STA登记该第一STA的服务信息,第二STA向第三STA发布第一STA的服务信息;还可以包括其它任何两个设备之间进行登记的情形。在下述各个本发明实施例中,第一设备可以是STA,第二设备可以AP,第三设备可以是另一STA,但是并不局限于此情形。The method for publishing service information of the present invention is used for the first device to register the service information running on the first device with the second device, and the second device releases the service information running on the first device to the third device. For example, the first station (Station, STA for short) registers the service information of the STA with the AP, and the AP publishes the service information of the first STA to the second STA; another example, the first STA registers the service information of the first STA with the second STA information, the second STA publishes the service information of the first STA to the third STA; it may also include any other situation of registration between two devices. In each of the following embodiments of the present invention, the first device may be an STA, the second device may be an AP, and the third device may be another STA, but they are not limited to this situation.
图1为本发明实施例一的发布服务信息的方法的流程图。如图1所示,该方法包括以下过程。FIG. 1 is a flowchart of a method for publishing service information according to Embodiment 1 of the present invention. As shown in Figure 1, the method includes the following processes.
步骤100:第一设备获取来自第二设备的服务信息发布能力指示信息。Step 100: the first device acquires service information publishing capability indication information from the second device.
在本步骤中,具体地,该服务信息发布能力指示信息用于向接收该信息的设备告知:发送该信息的设备具有服务信息发布能力。In this step, specifically, the service information publishing capability indication information is used to inform the device receiving the information that the device sending the information has the service information publishing capability.
在本发明实施例以及下述各个实施例中,一个设备的服务信息可以包括该设备本身带有的服务或者该设备携带的与用户相关的功能。设备本身带有的服务例如:打印功能,传真功能等;设备携带的与用户相关的功能例如:用户的名称、用户的ID信息、或者用户当前正在运行的游戏信息等。In the embodiments of the present invention and the following embodiments, the service information of a device may include services provided by the device itself or user-related functions carried by the device. The services provided by the device itself, such as: printing function, fax function, etc.; the functions related to the user carried by the device, such as: user name, user ID information, or game information that the user is currently running, etc.
步骤101:第一设备向第二设备发送登记服务信息请求消息。Step 101: the first device sends a registration service information request message to the second device.
在本步骤中,第一设备向第二设备发送登记服务信息请求消息,该登记服务信息请求消息中包括所述第一设备的服务信息。具体地,该服务信息可以包括以下信息的任意一种或几种的组合:服务名称、服务的摘要信息、设备名称、设备的地址信息、服务的持续时间,在此基础上,进一步地,该服务信息还可以包括以下信息的任意一种或几种的组合:服务发布开始时间、服务发布结束时间、服务发布持续时间。第一设备通过向第二设备发送登记服务信息请求消息,以使所述第二设备登记并向第三设备知会所述服务信息。具体地,第二设备登记并向第三设备知会的服务信息包括第一设备的服务信息。In this step, the first device sends a registration service information request message to the second device, and the registration service information request message includes the service information of the first device. Specifically, the service information may include any one or a combination of several of the following information: service name, service summary information, device name, device address information, and service duration. On this basis, further, the The service information may also include any one or a combination of several of the following information: service release start time, service release end time, and service release duration. The first device sends a registration service information request message to the second device, so that the second device registers and notifies the third device of the service information. Specifically, the service information registered by the second device and notified to the third device includes the service information of the first device.
在本发明实施例一中,第一设备通过向第二设备发送登记服务信息请求消息,在该登记服务信息请求消息中携带第一设备的服务信息,从而使得第二设备登记该服务信息,并将该服务信息发布给第三设备,从而实现对于服务信息的登记和发布。In Embodiment 1 of the present invention, the first device sends a registration service information request message to the second device, and the registration service information request message carries the service information of the first device, so that the second device registers the service information, and The service information is released to the third device, so as to realize the registration and release of the service information.
图2为本发明实施例二的发布服务信息的方法的流程图。如图2所示,该方法包括以下过程。FIG. 2 is a flowchart of a method for publishing service information according to Embodiment 2 of the present invention. As shown in Figure 2, the method includes the following processes.
步骤200:第二设备向第一设备发送服务信息发布能力指示信息。Step 200: the second device sends service information publishing capability indication information to the first device.
在本步骤中,具体地,该服务信息发布能力指示信息用于向接收该信息的设备告知:发送该信息的设备具有服务信息发布能力。In this step, specifically, the service information publishing capability indication information is used to inform the device receiving the information that the device sending the information has the service information publishing capability.
步骤201:第二设备接收来自第一设备的登记服务信息请求消息。Step 201: the second device receives a registration service information request message from the first device.
在本步骤中,第二设备接收来自第一设备的登记服务信息请求消息,该登记服务信息请求消息中包括所述第一设备的服务信息。具体地,该服务信息可以包括以下信息的任意一种或几种的组合:服务名称、服务的摘要信息、设备名称、设备的地址信息、服务的持续时间,在此基础上,进一步地,该服务信息还可以包括以下信息的任意一种或几种的组合:服务发布开始时间、服务发布结束时间、服务发布持续时间。In this step, the second device receives a registration service information request message from the first device, and the registration service information request message includes the service information of the first device. Specifically, the service information may include any one or a combination of several of the following information: service name, service summary information, device name, device address information, and service duration. On this basis, further, the The service information may also include any one or a combination of several of the following information: service release start time, service release end time, and service release duration.
步骤202:所述第二设备登记所述服务信息。Step 202: The second device registers the service information.
在本步骤中,具体地,所述第二设备登记所述服务信息,该服务信息包括所述第一设备的服务信息。In this step, specifically, the second device registers the service information, where the service information includes the service information of the first device.
步骤203:所述第二设备向第三设备知会所述服务信息。Step 203: the second device notifies the third device of the service information.
在本步骤中,具体地,所述第二设备向第三设备知会所述服务信息,该服务信息包括所述第一设备的服务信息。In this step, specifically, the second device notifies the third device of the service information, where the service information includes the service information of the first device.
在本发明实施例二中,第二设备接收第一设备发送的登记服务信息请求消息,在该登记服务信息请求消息中携带第一设备的服务信息,第二设备根据该请求消息获得并登记第一设备的服务信息,并将该服务信息发布给第三设备,从而实现对于服务信息的登记和发布。In Embodiment 2 of the present invention, the second device receives the registration service information request message sent by the first device, and the registration service information request message carries the service information of the first device, and the second device obtains and registers the first device according to the request message. Service information of a device, and release the service information to a third device, so as to realize the registration and release of service information.
图3为本发明实施例三的发布服务信息的方法的信令流程图。在本发明实施例中,仅以第一STA向AP登记服务信息,然后AP向第二STA知会第一STA的服务信息的过程为例,其中,第一STA对应上述本发明实施例一和实施例二中的第一设备,AP对应上述本发明实施例一和实施例二中的第二设备,第二STA对应上述本发明实施例一和实施例二中的第三设备。如图3所示,该方法包括以下过程。FIG. 3 is a signaling flowchart of a method for publishing service information according to Embodiment 3 of the present invention. In this embodiment of the present invention, only the process in which the first STA registers service information with the AP, and then the AP notifies the second STA of the service information of the first STA is taken as an example, wherein the first STA corresponds to the above-mentioned Embodiment 1 and The first device in the second embodiment, the AP corresponds to the second device in the first and second embodiments of the present invention, and the second STA corresponds to the third device in the first and second embodiments of the present invention. As shown in Figure 3, the method includes the following processes.
步骤301:AP向第一STA发送服务信息发布能力指示信息。Step 301: The AP sends service information publishing capability indication information to the first STA.
在本步骤中,AP向第一STA发送服务信息发布能力指示信息,相应地,第一STA获取来自AP的服务信息发布能力指示信息。具体地,可以采用如下两种方式中的任意一种或几种的组合来实现本步骤。方式一,AP将所述服务信息发布能力指示信息携带到广播帧中,AP广播携带所述服务信息发布能力指示信息的广播帧,STA接收AP广播的携带所述服务信息发布能力指示信息的广播帧,从该广播帧中获取所述服务信息发布能力指示信息。其中,该广播帧可以采用信标帧(简称beacon)。在本发明各个实施例中,AP可以周期性地广播携带所述服务信息发布能力指示信息的广播帧,也可以非周期性地广播携带所述服务信息发布能力指示信息的广播帧。方式二,第一STA向AP发送服务信息发布能力查询请求帧,AP将所述服务信息发布能力指示信息携带到服务信息发布能力查询应答帧中,AP向第一STA返回携带所述服务信息发布能力指示信息的服务信息发布能力查询应答帧,STA接收AP返回的携带所述服务信息发布能力指示信息的服务信息发布能力查询应答帧,从该服务信息发布能力查询应答帧中获取所述服务信息发布能力指示信息。具体地,该服务信息发布能力查询请求帧可以采用探测请求帧(简称proberequest)或者通用广告服务初始请求帧(Generic Advertisement Service initialrequest,简称GAS initial request),该服务信息发布能力查询应答帧可以采用探测应答帧(简称probe response)或者通用广告服务初始应答帧(GenericAdvertisement Service initial response,简称GAS initialresponse)。方式三,第一STA向AP发送通用查询请求帧,AP将能够向第一STA返回的各种信息全部携带到通用查询应答帧中返回给第一STA,其中,上述各种信息中可以包括所述服务信息发布能力指示信息,即,AP向第一STA返回携带所述服务信息发布能力指示信息的通用查询应答帧,STA接收AP返回的携带所述服务信息发布能力指示信息的通用查询应答帧,从该通用查询应答帧中获取所述服务信息发布能力指示信息。In this step, the AP sends the service information publishing capability indication information to the first STA, and accordingly, the first STA acquires the service information publishing capability indication information from the AP. Specifically, any one or a combination of several of the following two ways may be used to implement this step. Mode 1, the AP carries the service information publishing capability indication information into a broadcast frame, the AP broadcasts the broadcast frame carrying the service information publishing capability indication information, and the STA receives the broadcast carrying the service information publishing capability indication information broadcast by the AP frame, and obtain the service information publishing capability indication information from the broadcast frame. Wherein, the broadcast frame may be a beacon frame (beacon for short). In each embodiment of the present invention, the AP may periodically broadcast the broadcast frame carrying the service information publishing capability indication information, or broadcast the broadcast frame carrying the service information publishing capability indication information aperiodically. Method 2: The first STA sends a service information release capability query request frame to the AP, and the AP carries the service information release capability indication information into the service information release capability query response frame, and the AP returns to the first STA a frame carrying the service information release capability. The service information publishing capability query response frame of the capability indication information, the STA receives the service information publishing capability query response frame carrying the service information publishing capability indication information returned by the AP, and obtains the service information from the service information publishing capability query response frame Publish capability indication information. Specifically, the service information release capability query request frame may be a probe request frame (proberequest for short) or a generic advertisement service initial request frame (Generic Advertisement Service initial request, GAS initial request for short), and the service information release capability query response frame may be a probe request frame. Response frame (referred to as probe response) or generic advertisement service initial response frame (GenericAdvertisement Service initial response, referred to as GAS initialresponse). Method 3: The first STA sends a general query request frame to the AP, and the AP carries all kinds of information that can be returned to the first STA into a general query response frame and returns it to the first STA. The service information publishing capability indication information, that is, the AP returns to the first STA a general query response frame carrying the service information publishing capability indication information, and the STA receives the general query response frame carrying the service information publishing capability indication information returned by the AP , acquiring the service information publishing capability indication information from the general query response frame.
在本步骤中,所述服务信息发布能力指示信息可以采用一个或者多个比特位实现,也可以采用一个信息元素实现。以采用信息元素实现为例。图4为本发明实施例三的服务信息发布能力指示信息的信息元素结构示意图。如图4所示,该信息元素中可以包括:信息元素标识(identity,简称ID)、信息元素长度、服务信息发布能力指示(简称ServiceInfoCapa)。其中,信息元素标识为该信息元素的ID号,这个号码由802.11标准统一编号,在该标准内唯一识别该信息元素。信息元素长度为该信息元素的长度,表示该信息元素中除了信息元素标识和信息元素长度以外的长度。在本发明实施例的信息元素中,该信息元素长度的值可以为1。服务信息发布能力指示用于表示该AP是否支持服务登记的能力。一种具体实现方式为,上述信息元素标识、信息元素长度、服务信息发布能力指示均占用一个字节。当服务信息发布能力指示的字节为第一值时,表示该AP具有支持服务登记的能力;当服务信息发布能力指示的字节为第一值以外的其它值时,表示该AP不具有支持服务登记的能力。另一种具体实现方式为,上述信息元素标识、信息元素长度各自占用一个字节,服务信息发布能力指示占用一个比特位。当服务信息发布能力指示的比特位为第一值时,表示该AP具有支持服务登记的能力;当服务信息发布能力指示的比特位为第二值时,表示该AP不具有支持服务登记的能力。例如,该比特位为1时,表示该AP具有支持服务登记的能力;该比特位为0时,表示该AP不具有支持服务登记的能力。只采用该字节中的1个比特位表示服务信息发布能力指示,该字节的其它7个比特位是保留的。在其它的实现方式中,该信息元素也可以采用其它的结构。另一种具体实现方式为,以发送该信息元素表示该AP具有支持服务登记的能力,以没有发送该信息元素表示该AP不具有支持服务登记的能力。在上述各个具体实现方式中,该信息元素可以包含在广播帧中,也可以包含在服务信息发布能力查询应答帧中,还可以包含在其它任何消息帧中。In this step, the service information release capability indication information may be implemented by using one or more bits, or may be implemented by using one information element. Take the implementation of information elements as an example. FIG. 4 is a schematic diagram of an information element structure of service information publishing capability indication information according to Embodiment 3 of the present invention. As shown in FIG. 4 , the information element may include: an information element identifier (identity, ID for short), an information element length, and a service information publishing capability indication (ServiceInfoCapa for short). Wherein, the ID of the information element is the ID number of the information element, which is uniformly numbered by the 802.11 standard, and uniquely identifies the information element in the standard. The information element length is the length of the information element, indicating the length of the information element except for the information element identifier and the information element length. In the information element in this embodiment of the present invention, the value of the length of the information element may be 1. The service information publishing capability indication is used to indicate whether the AP supports the capability of service registration. A specific implementation manner is that the above-mentioned information element identifier, information element length, and service information publishing capability indication all occupy one byte. When the byte indicated by the service information publishing capability is the first value, it means that the AP has the ability to support service registration; when the byte indicated by the service information publishing capability is other than the first value, it means that the AP does not support Ability to service registry. Another specific implementation manner is that the above-mentioned information element identifier and information element length each occupy one byte, and the service information publishing capability indication occupies one bit. When the bit indicated by the service information publishing capability is the first value, it means that the AP has the ability to support service registration; when the bit indicated by the service information publishing capability is the second value, it means that the AP does not have the ability to support service registration . For example, when the bit is 1, it indicates that the AP has the ability to support service registration; when the bit is 0, it indicates that the AP does not have the ability to support service registration. Only 1 bit in this byte is used to indicate the service information distribution capability indication, and the other 7 bits of this byte are reserved. In other implementation manners, the information element may also adopt other structures. Another specific implementation manner is that sending the information element indicates that the AP has the ability to support service registration, and not sending the information element indicates that the AP does not have the ability to support service registration. In each of the above specific implementation manners, the information element may be included in a broadcast frame, or in a service information publishing capability inquiry response frame, or in any other message frame.
步骤301为本发明实施例的可选步骤。如果WiFi系统中的一部分AP具有登记服务信息的能力,而另一部分AP不具有登记服务信息的能力,则可以先执行步骤301,通过步骤301向各个STA告知各个AP是否具有登记服务信息的能力。如果WiFi系统中的全部AP均具有登记服务信息的能力,则可以不必执行步骤301,直接执行后续步骤即可。在其它实现方式中,也可以通过AP名称体现其是否具有登记服务信息的能力,从而在各个STA获知某个AP名称时,即可获知该AP是否具有登记服务信息的能力,因此则不必执行步骤301。Step 301 is an optional step in the embodiment of the present invention. If some APs in the WiFi system have the ability to register service information, while other APs do not have the ability to register service information, step 301 can be performed first, and through step 301, each STA is notified whether each AP has the ability to register service information. If all the APs in the WiFi system have the capability of registering service information, step 301 may not be performed, and subsequent steps may be directly performed. In other implementations, the AP name can also be used to reflect whether it has the ability to register service information, so that when each STA learns a certain AP name, it can know whether the AP has the ability to register service information, so there is no need to perform steps 301.
步骤302:第一STA与AP进行发布服务信息的权限确认。Step 302: The first STA confirms with the AP the authority to publish service information.
步骤302为本发明实施例的可选步骤。因为本发明实施例的登记服务信息的过程,可以在现有的第一STA与AP进行关联的过程之前执行,也可以在现有的第一STA与AP进行关联的过程之后执行,由于在现有的第一STA与AP进行关联的过程中包括第一STA与AP之间的发布服务信息的权限确认过程,因此,对于在现有的第一STA与AP进行关联的过程之后执行本发明实施例的登记服务信息的过程的情况,可以不执行步骤302,直接执行后续步骤。对于在现有的第一STA与AP进行关联的过程之前执行本发明实施例的登记服务信息的过程的情况,为了提高安全性,可以先执行步骤302,经过发布服务信息的权限确认之后,再执行后续步骤。该发布服务信息的权限确认过程的目的是,为了防止有人不停地登记和广播自己的服务信息,导致系统资源的浪费,以及给其他人带来虚假信息,因此,需要一个发布服务信息的权限确认过程提供服务安全保障。对于在现有的第一STA与AP进行关联的过程之前执行本发明实施例的登记服务信息的过程的情况,如果对于安全性要求不高,或者确认当前WiFi系统整体是安全的,也可以不执行步骤302,而直接执行后续步骤。Step 302 is an optional step in the embodiment of the present invention. Because the process of registering service information in the embodiment of the present invention can be performed before the process of associating the existing first STA with the AP, or after the process of associating the existing first STA with the AP. The process of associating the first STA with the AP includes the authority confirmation process of publishing service information between the first STA and the AP. Therefore, for the implementation of the present invention after the existing process of associating the first STA with the AP In the case of the process of registering service information in the example, step 302 may not be performed, and subsequent steps may be directly performed. For the case where the process of registering service information of the embodiment of the present invention is performed before the process of associating the existing first STA with the AP, in order to improve security, step 302 can be performed first, and after the authorization of issuing service information is confirmed, then Follow the next steps. The purpose of the permission confirmation process for publishing service information is to prevent someone from continuously registering and broadcasting their own service information, resulting in waste of system resources and bringing false information to others. Therefore, a permission to publish service information is required The validation process provides service security. For the case where the process of registering service information in the embodiment of the present invention is performed before the existing process of associating the first STA with the AP, if the security requirements are not high, or if it is confirmed that the current WiFi system as a whole is safe, it may not Step 302 is executed, and subsequent steps are directly executed.
具体地,步骤302中的发布服务信息的权限确认过程可以采用多种具体实现方式,以下仅对其中的三种方式进行举例说明,在实际应用中,并不局限于以下三种方式,任何能够实现发布服务信息的权限确认的具体实现方式均可采用。Specifically, the authority confirmation process for publishing service information in step 302 can be implemented in a variety of specific ways, and the following three ways are only described as examples. In practical applications, it is not limited to the following three ways. The specific implementation manners for realizing the authority confirmation of publishing service information can be adopted.
方式一,第一STA首先通过蜂窝通信网络获取的认证码信息,第一STA向AP发送通过蜂窝通信网络获取的认证码信息,AP根据所述认证码信息确认所述第一STA具备发布服务信息的权限,即所述第一STA是安全的。具体,上述蜂窝通信网络可以是普遍使用的手机网络,例如全球移动通讯系统(Global System ofMobile communication,简称GSM)网络、第三代移动通信技术(3rd-generation,简称3G)网络等,第一STA预先向上述蜂窝通信网络的运营商申请登记服务信息的服务,通过蜂窝通信网络获得一个认证码信息,当第一STA需要登记自己的服务信息时,第一STA把自己的认证码信息发送给AP。在本发明各个实施例中,既可以采用明文方式发送认证码信息,该认证码信息是认证码本身,第一STA直接向AP发送认证码;也可以采用密文方式发送认证码信息,该认证码信息是对认证码进行预设运算后的数值,例如,对认证码进行哈希运算,该认证码信息是认证码的哈希值,第一STA向AP发送认证码的哈希值。对于明文方式发送的认证码信息,在AP侧预先存储表示允许进行服务信息登记的上述认证码,当收到第一STA发送的认证码后,将第一STA发送的认证码与AP预先存储的认证码进行核对,当认证码一致时,该AP就获知第一STA可信,从而确认第一STA安全,即第一STA具备发布服务信息的权限。对于密文方式发送的认证码信息,在AP侧可以预先存储表示允许进行服务信息登记的上述认证码。当AP收到第一STA发送的认证码进行预设运算后的数值后,对该数值进行预设运算的逆运算,获得第一STA发送的认证码,将第一STA发送的认证码与AP预先存储的认证码进行核对,当认证码一致时,该AP就获知第一STA可信,从而确认第一STA安全,即第一STA具备发布服务信息的权限。或者,当AP收到第一STA发送的认证码进行预设运算后的数值后,对AP预先存储的认证码进行预设运算,获得AP预先存储的认证码进行预设运算后的数值,将第一STA发送的认证码进行预设运算后的数值与AP预先存储的认证码进行预设运算后的数值进行核对,当上述两个数值一致时,该AP就获知第一STA可信,从而确认第一STA安全,即第一STA具备发布服务信息的权限。Mode 1, the first STA first obtains the authentication code information through the cellular communication network, the first STA sends the authentication code information obtained through the cellular communication network to the AP, and the AP confirms that the first STA is capable of publishing service information according to the authentication code information authority, that is, the first STA is safe. Specifically, the above-mentioned cellular communication network may be a commonly used mobile phone network, such as a Global System of Mobile communication (Global System of Mobile communication, GSM for short) network, a third-generation mobile communication technology (3rd-generation, 3G for short) network, etc., the first STA Apply for the service of registering service information to the operator of the above-mentioned cellular communication network in advance, obtain an authentication code information through the cellular communication network, when the first STA needs to register its own service information, the first STA sends its own authentication code information to the AP . In each embodiment of the present invention, the authentication code information can be sent in plain text, and the authentication code information is the authentication code itself, and the first STA directly sends the authentication code to the AP; the authentication code information can also be sent in cipher text, and the authentication The code information is a value after a preset operation is performed on the authentication code, for example, a hash operation is performed on the authentication code, the authentication code information is a hash value of the authentication code, and the first STA sends the hash value of the authentication code to the AP. For the authentication code information sent in clear text, the AP side pre-stores the above-mentioned authentication code indicating that service information registration is allowed. After receiving the authentication code sent by the first STA, combine the authentication code sent by the first STA with the pre-stored The authentication codes are checked, and when the authentication codes are consistent, the AP knows that the first STA is trustworthy, thereby confirming that the first STA is safe, that is, the first STA has the authority to publish service information. For the authentication code information sent in ciphertext, the above-mentioned authentication code indicating that service information registration is allowed can be stored in advance on the AP side. When the AP receives the value after the preset operation of the authentication code sent by the first STA, it performs the inverse operation of the preset operation on the value to obtain the authentication code sent by the first STA, and compares the authentication code sent by the first STA with the AP The pre-stored authentication codes are checked, and when the authentication codes are consistent, the AP knows that the first STA is trustworthy, thereby confirming that the first STA is safe, that is, the first STA has the authority to publish service information. Or, after the AP receives the value after the preset calculation of the authentication code sent by the first STA, it performs the preset calculation on the authentication code stored in the AP to obtain the value after the preset calculation of the authentication code stored in the AP. The value of the authentication code sent by the first STA after the preset calculation is checked with the value of the authentication code stored in advance by the AP after the preset calculation. When the above two values are consistent, the AP knows that the first STA is credible, and thus Confirm that the first STA is safe, that is, the first STA has the authority to publish service information.
方式二,通过预授权方式,对特定区域进行限制。比如,某个咖啡馆部署了一个AP,该AP仅为该咖啡馆中的STA进行服务登记。可以通过预授权方式向该咖啡馆中使用STA的人提供认证码信息。例如,在使用STA的顾客进入咖啡馆后,为该顾客发放印有认证码信息的卡片,该顾客使用第一STA向AP发送通过预授权方式获取的认证码信息,即该卡片上印有得认证码信息,AP根据所述认证码信息确认第一STA安全。在本发明各个实施例中,该认证码信息既可以是认证码本身,也可以是对认证码进行预设运算后的数值,其相应地验证方式如上述方式一所述,在此不再赘述。The second way is to restrict specific areas through pre-authorization. For example, an AP is deployed in a cafe, and the AP only performs service registration for STAs in the cafe. The authentication code information can be provided to the person using the STA in the cafe through pre-authorization. For example, after a customer using an STA enters a cafe, a card printed with authentication code information is issued to the customer, and the customer uses the first STA to send the authentication code information obtained through pre-authorization to the AP, that is, the card is printed with the authentication code information. Authentication code information, the AP confirms that the first STA is safe according to the authentication code information. In each embodiment of the present invention, the authentication code information can be the authentication code itself, or a value obtained by performing a preset operation on the authentication code, and the corresponding verification method is as described in the above-mentioned method 1, and will not be repeated here. .
方式三,通过调整AP覆盖范围的方式,对特定区域进行限制,使AP仅覆盖设定的允许发布服务信息的区域。将设定的允许发布服务信息的区域称为安全区域,AP通过调整功率,使该AP仅覆盖安全区域,从而只有在安全区域内的STA才可能发现该AP,向该AP进行服务登记。比如,某个咖啡馆部署了一个AP,该AP仅为该咖啡馆中的STA进行服务登记。可以通过调整AP的功率,使该AP仅仅覆盖咖啡馆内的区域,因此,只有进入该咖啡馆的人使用的STA才能发现这个AP,从而起到了发布服务信息的权限确认的作用。The third way is to restrict the specific area by adjusting the coverage of the AP, so that the AP only covers the set area where service information is allowed to be published. The set area where service information is allowed to be released is called a security area. By adjusting the power of the AP, the AP only covers the security area, so that only STAs in the security area can discover the AP and register with the AP. For example, an AP is deployed in a cafe, and the AP only performs service registration for STAs in the cafe. The power of the AP can be adjusted so that the AP only covers the area within the cafe. Therefore, only the STAs used by people entering the cafe can discover the AP, thus playing the role of authority confirmation for publishing service information.
步骤303:第一STA向AP发送登记服务信息请求消息。Step 303: the first STA sends a registration service information request message to the AP.
在本步骤中,第一STA向AP发送登记服务信息请求消息,所述登记服务信息请求消息中包括所述第一STA的服务信息,其中,所述服务信息中可以包括以下信息的任意一种或几种的组合:服务名称、服务的摘要信息、设备名称、设备的地址信息、服务的持续时间,在此基础上,进一步地,该服务信息还可以包括以下信息的任意一种或几种的组合:服务发布开始时间、服务发布结束时间、服务发布持续时间。In this step, the first STA sends a registration service information request message to the AP, and the registration service information request message includes the service information of the first STA, wherein the service information may include any of the following information Or a combination of several: service name, service summary information, device name, device address information, service duration, on this basis, further, the service information can also include any one or several of the following information A combination of: service release start time, service release end time, service release duration.
具体地,登记服务信息请求消息采用约定的帧结构。在第一STA与AP之间可以预先约定一个通信接口,例如,预先约定在某个时刻AP能够接受登记服务信息的帧,第一STA在该约定的时刻,按照约定的帧结构,把携带有第一STA的服务信息的帧发送给AP,该携带有第一STA的服务信息的帧即登记服务信息请求消息。该登记服务信息请求消息可以采用改进的现有消息,在现有消息中增加与服务信息相关的信息元素;也可以在通信过程中增加新的消息,该消息包括与服务信息相关的信息元素,以该消息作为该登记服务信息请求消息。Specifically, the registration service information request message adopts an agreed frame structure. A communication interface can be pre-agreed between the first STA and the AP. For example, it is pre-agreed that the AP can accept a frame of registration service information at a certain time, and the first STA will carry the The frame of the service information of the first STA is sent to the AP, and the frame carrying the service information of the first STA is a registration service information request message. The registration service information request message may adopt an improved existing message, and add information elements related to service information to the existing message; or add a new message during the communication process, and the message includes information elements related to service information, This message is used as the registration service information request message.
以下介绍在上述消息中包含与服务信息相关的信息元素的一种具体实现方式。图5为本发明实施例三的与服务信息相关的信息元素的结构示意图。该结构仅为信息元素的一种具体实现方式,在实际应用中,也可以采用其它的具体实现方式。如图5所示,该信息元素中包括:信息元素标识、信息元素长度、服务发布开始时间(简称StartTime)、服务发布结束时间(简称EndTime)、服务名称(简称ServiceName)。其中,一种具体实现方式为,信息元素标识和信息元素长度各自占用1字节,服务发布开始时间和服务发布结束时间各自占用4字节,服务名称占用n个字节,n的取值可以根据实际情况灵活设置。其中,服务名称还可以为以下信息中的一种或几种的组合:服务的摘要信息、设备名称、设备的地址信息、服务的持续时间。服务发布开始时间或服务发布结束时间还可以为服务发布持续时间。A specific implementation manner of including information elements related to service information in the above message is introduced below. FIG. 5 is a schematic structural diagram of information elements related to service information according to Embodiment 3 of the present invention. This structure is only a specific implementation manner of the information element, and other specific implementation manners may also be used in practical applications. As shown in Figure 5, the information element includes: information element identifier, information element length, service release start time (referred to as StartTime), service release end time (abbreviated as EndTime), and service name (abbreviated as ServiceName). Among them, a specific implementation method is that the information element identifier and the length of the information element each occupy 1 byte, the service release start time and the service release end time each occupy 4 bytes, and the service name occupies n bytes, and the value of n can be Set flexibly according to the actual situation. Wherein, the service name may also be one or a combination of several of the following information: service summary information, device name, device address information, and service duration. The service release start time or the service release end time may also be the service release duration.
具体地,服务名称可以为该服务的具体的名字,还可以为该服务的名字的指示信息,例如:该服务对应的分类或者编号等。相应地,如果服务名称为该服务的名字的指示信息,则在AP和第二STA中,预先设置服务的具体名字与该指示信息的对应关系,例如,在AP和第二STA中预先设置分类或者编号与服务的具体名字的对应关系。Specifically, the service name may be a specific name of the service, and may also be indication information of the name of the service, for example, a category or number corresponding to the service. Correspondingly, if the service name is the indication information of the name of the service, then in the AP and the second STA, the corresponding relationship between the specific name of the service and the indication information is preset, for example, the category is preset in the AP and the second STA Or the corresponding relationship between the number and the specific name of the service.
通过服务发布开始时间和服务发布结束时间,可以体现服务发布要求。具体地,服务发布开始时间和服务发布结束时间构成一个时间段,该时间段指示该服务发布的时间,表示在这个时间段内,AP可以发布该第一STA提供的该服务名称对应的服务信息。服务发布开始时间和服务发布结束时间组成的时间段,可以体现该服务是新登记的服务、还是需要调整发布时间的已经登记的服务。例如,如果服务名称与AP已登记的相同,且服务发布开始时间和服务发布结束时间组成的时间段是一个新的时间段,之前在AP中没有登记过的该时间段,则表示这是一个新登记的服务;如果服务名称与AP已登记的相同,且服务发布开始时间跟已登记的服务发布开始时间一致,服务发布结束时间比已登记的服务发布结束时间晚,则表示这是需要延长发布时间的已经登记的服务;如果服务名称与AP已登记的相同,且服务发布开始时间跟已登记的服务发布开始时间一致,服务发布结束时间比已登记的服务发布结束时间早,则表示这是需要缩短发布时间的已经登记的服务。Service release requirements can be reflected through the service release start time and service release end time. Specifically, the service publishing start time and the service publishing end time constitute a time period, and the time period indicates the time of the service publishing, indicating that within this time period, the AP can publish the service information corresponding to the service name provided by the first STA . The time period composed of the service release start time and the service release end time can reflect whether the service is a newly registered service or an already registered service whose release time needs to be adjusted. For example, if the service name is the same as that registered by the AP, and the time period composed of the service publishing start time and the service publishing end time is a new time period, which has not been registered in the AP before, it means that this is a new time period. Newly registered service; if the service name is the same as that registered by the AP, and the service release start time is the same as the registered service release start time, and the service release end time is later than the registered service release end time, it means that this needs to be extended The registered service at the release time; if the service name is the same as that registered by the AP, and the service release start time is consistent with the registered service release start time, and the service release end time is earlier than the registered service release end time, it means this Is a registered service that needs to shorten the release time.
具体地,服务发布开始时间和服务发布结束时间的数值是STA跟AP的时钟同步以后计算的。例如,服务发布开始时间表示告诉AP在经过服务发布开始时间的数值指示的时间长度以后,开始向第二STA知会该服务信息,然后再经过服务发布结束时间的数值指示的时间长度以后,停止向第二STA知会该服务信息。服务发布结束时间可以从服务发布开始时间指示的时刻开始计算,也可以从发送登记服务信息请求消息的时刻开始计算,只要AP与第一STA统一约定,按照一致的计算方式计算即可。本发明对第一STA与AP进行同步的方式不做限制,任何能够实现STA与AP同步的方式均可适用。其中,一种具体实现方式为,第一STA醒来接收AP广播的广播帧,该广播帧中携带有AP的时间信息,其中,第一STA可以周期性地醒来接收AP周期性地广播的广播帧,第一STA也可以非周期性地醒来接收AP非周期性地广播的广播帧,第一STA每次收到广播以后,都把自身的本地时间设置为与AP时间相同,从而实现第一STA与AP的时间同步。其中,该广播帧可以采用信标帧(简称beacon)。Specifically, the values of the service release start time and the service release end time are calculated after the clocks of the STA and the AP are synchronized. For example, the service publishing start time means telling the AP to start notifying the service information to the second STA after the time length indicated by the value of the service publishing start time, and then stop after passing the time length indicated by the value of the service publishing end time. Notify the service information to the second STA. The service publication end time can be calculated from the time indicated by the service publication start time, or can be calculated from the time when the registration service information request message is sent, as long as the AP and the first STA agree uniformly, it can be calculated according to the same calculation method. The present invention does not limit the manner in which the first STA and the AP synchronize, and any manner that can realize the synchronization between the STA and the AP is applicable. Wherein, a specific implementation manner is that the first STA wakes up to receive the broadcast frame broadcast by the AP, and the broadcast frame carries the time information of the AP, wherein the first STA may wake up periodically to receive the broadcast frame periodically broadcast by the AP. broadcast frame, the first STA can also wake up aperiodically to receive broadcast frames broadcast aperiodically by the AP, and each time the first STA receives the broadcast, it sets its own local time to be the same as the AP time, thereby realizing Time synchronization between the first STA and the AP. Wherein, the broadcast frame may be a beacon frame (beacon for short).
以上介绍了在消息中包含与服务信息相关的信息元素的实现方式,在其它的实现方式中,也可以采用一个专门的消息携带服务信息。如果采用专门的消息携带服务信息,则该消息中不必包括图5所示的信息元素标识和信息元素的长度,而是采用专门的消息头结构替代图5所示的信息元素标识和信息元素的长度。在该消息头结构之后,包括服务发布开始时间、服务发布结束时间、服务名称等内容。其中,服务名称还可以为以下信息中的一种或几种的组合:服务的摘要信息、设备名称、设备的地址信息、服务的持续时间。服务发布开始时间或服务发布结束时间还可以为服务发布持续时间。The above describes the implementation of including information elements related to the service information in the message. In other implementations, a special message may also be used to carry the service information. If a special message is used to carry service information, the message does not have to include the ID of the information element and the length of the information element shown in Figure 5, but a special message header structure is used to replace the ID of the information element and the length of the information element shown in Figure 5. length. After the message header structure, content such as service release start time, service release end time, and service name are included. Wherein, the service name may also be one or a combination of several of the following information: service summary information, device name, device address information, and service duration. The service release start time or the service release end time may also be the service release duration.
步骤304:AP登记第一STA的服务信息。Step 304: The AP registers the service information of the first STA.
在本步骤中,AP接收到第一STA发送的登记服务信息请求消息后,存储该消息中的服务信息,从而对第一STA的服务信息进行登记。In this step, after receiving the registration service information request message sent by the first STA, the AP stores the service information in the message, thereby registering the service information of the first STA.
步骤305:AP向第一STA发送登记服务信息应答消息。Step 305: The AP sends a registration service information response message to the first STA.
在本步骤中,AP向第一STA发送登记服务信息应答消息,该应答消息中至少包括:登记结果,即,指示本次登记成功或本次登记失败的信息,进一步地,还可以包括以下信息中的一种或几种的组合:服务名称、服务的摘要信息、设备名称、设备的地址信息、服务的持续时间、服务发布开始时间、服务发布结束时间、服务发布持续时间。In this step, the AP sends a registration service information response message to the first STA, and the response message includes at least: the registration result, that is, the information indicating that the current registration is successful or the current registration fails, and further, the following information may also be included One or a combination of several: service name, service summary information, device name, device address information, service duration, service release start time, service release end time, and service release duration.
具体地,该登记服务信息应答消息可以采用改进的现有消息,在现有消息中增加与登记服务信息应答相关的信息元素;也可以在通信过程中增加新的消息,该消息包括与登记服务信息应答相关的信息元素,以该消息作为该登记服务信息应答消息。Specifically, the registration service information response message can adopt an improved existing message, and add information elements related to the registration service information response to the existing message; or add a new message during the communication process, and the message includes The related information elements of the information response, take this message as the registration service information response message.
以下介绍在上述消息中包含与登记服务信息应答相关的信息元素的一种具体实现方式。图6为本发明实施例三的与登记服务信息应答相关的信息元素的第一种结构示意图。该结构仅为信息元素的一种具体实现方式,在实际应用中,也可以采用其它的具体实现方式。如图6所示,该信息元素中包括:信息元素标识(简称Elenment ID)、信息元素长度(简称Length)、服务发布开始时间(简称StartTime)、服务发布结束时间(简称EndTime)、服务名称(简称ServiceName)和登记结果(简称Result)。其中,一种具体实现方式为,信息元素标识和信息元素长度各自占用1字节,服务发布开始时间和服务发布结束时间各自占用4字节,服务名称占用n个字节,n的取值可以根据实际情况灵活设置,登记结果占用1字节。登记结果的1字节中携带表示登记成功与否的信息,以便于第一STA知道AP的执行结果。在登记服务信息应答消息的上述信息元素中,服务发布开始时间、服务发布结束时间和服务名称都是复制登记服务信息请求消息中的内容。其中,服务名称还可以为以下信息中的一种或几种的组合:服务的摘要信息、设备名称、设备的地址信息、服务的持续时间。服务发布开始时间或服务发布结束时间还可以为服务发布持续时间。A specific implementation manner of including information elements related to the registration service information response in the above message is introduced below. FIG. 6 is a schematic diagram of a first structure of information elements related to registration service information responses according to Embodiment 3 of the present invention. This structure is only a specific implementation manner of the information element, and other specific implementation manners may also be used in practical applications. As shown in Figure 6, the information element includes: information element identification (referred to as Elenment ID), information element length (abbreviated as Length), service publishing start time (referred to as StartTime), service publishing end time (referred to as EndTime), service name ( ServiceName for short) and registration result (Result for short). Among them, a specific implementation method is that the information element identifier and the length of the information element each occupy 1 byte, the service release start time and the service release end time each occupy 4 bytes, and the service name occupies n bytes, and the value of n can be It can be flexibly set according to the actual situation, and the registration result occupies 1 byte. One byte of the registration result carries information indicating whether the registration is successful or not, so that the first STA can know the execution result of the AP. Among the above information elements of the registration service information response message, the service release start time, service release end time and service name are all contents in the copy registration service information request message. Wherein, the service name may also be one or a combination of several of the following information: service summary information, device name, device address information, and service duration. The service release start time or the service release end time may also be the service release duration.
以下介绍在上述消息中包含与登记服务信息应答相关的信息元素的另一种具体实现方式。图7为本发明实施例三的与登记服务信息应答相关的信息元素的第二种结构示意图。该结构仅为信息元素的一种具体实现方式,在实际应用中,也可以采用其它的具体实现方式。如图7所示,该信息元素中包括:信息元素标识(简称Elenment ID)、信息元素长度(简称Length)和登记结果(简称Result)。其中,一种具体实现方式为,信息元素标识和信息元素长度各自占用1字节,登记结果占用1字节。登记结果的1字节中携带表示登记成功与否的信息,以便于第一STA知道AP的执行结果。Another specific implementation manner of including information elements related to the registration service information response in the above message is introduced below. FIG. 7 is a schematic diagram of a second structure of information elements related to registration service information responses according to Embodiment 3 of the present invention. This structure is only a specific implementation manner of the information element, and other specific implementation manners may also be used in practical applications. As shown in FIG. 7 , the information element includes: an information element identifier (referred to as Elenment ID), an information element length (referred to as Length) and a registration result (referred to as Result). Wherein, a specific implementation manner is that the ID of the information element and the length of the information element each occupy 1 byte, and the registration result occupies 1 byte. One byte of the registration result carries information indicating whether the registration is successful or not, so that the first STA can know the execution result of the AP.
步骤305为本发明实施例的可选步骤。第一STA可以在向AP发送登记服务信息请求消息后,默认AP登记成功,从而不必执行步骤305,AP不必向第一STA返回登记服务信息应答消息,直接执行后续步骤。Step 305 is an optional step in the embodiment of the present invention. After the first STA sends a registration service information request message to the AP, it defaults that the AP registration is successful, so that step 305 does not need to be performed, and the AP does not need to return a registration service information response message to the first STA, and directly performs subsequent steps.
步骤306:AP向第二STA知会第一STA的服务信息。Step 306: The AP notifies the second STA of the service information of the first STA.
在本步骤中,AP在登记第一STA的服务信息后,向第二STA知会第一STA的服务信息。具体地,AP向第二STA知会第一STA的服务信息的实现方式可以采用如下三种实现方式中的任意一种或几种的组合。方式一:AP广播携带第一STA的服务信息的广播帧,第二AP接收AP广播的携带第一STA的服务信息的广播帧,从该广播帧中获取第一STA的服务信息。其中,该广播帧可以采用信标帧(简称beacon)。在本发明各个实施例中,AP可以周期性地广播携带第一STA的服务信息的广播帧,第二AP接收AP周期性地广播的携带第一STA的服务信息的广播帧,或者,AP非周期性地广播携带第一STA的服务信息的广播帧,第二AP接收AP非周期性地广播的携带第一STA的服务信息的广播帧。方式二:第二STA向AP发送订阅所述服务信息的服务信息查询请求帧,AP接收来自第二STA的订阅所述服务信息的服务信息查询请求帧并返回携带第一STA的服务信息的服务信息查询应答帧,第二STA从该服务信息查询应答帧中获取第一STA的服务信息。具体地,该服务信息查询请求帧可以采用探测请求帧,该服务信息查询应答帧可以采用探测应答帧。方式三:第二STA向AP发送通用查询请求帧,AP接收来自第二STA的通用查询请求帧,AP将能够向第二STA返回的各种信息全部携带到通用查询应答帧中返回给第二STA,其中,上述各种信息中可以包括第一STA的服务信息,即AP向第二STA返回携带所述服务信息的通用查询应答帧,第二STA从该通用查询应答帧中获取第一STA的服务信息。方式四:第二STA预先向AP订阅服务信息,AP向预先订阅服务信息的第二STA发送携带第一STA的服务信息的消息帧。具体地,在任意时刻,第二STA可以向AP发送订阅所述服务信息的服务信息订阅请求消息,该AP接收来自第二STA的订阅所述服务信息的服务信息订阅请求消息之后,在该AP完成对第一STA的服务信息的登记后,该AP向第二STA发送携带第一STA的服务信息的消息帧。第二STA向AP发送订阅所述服务信息的服务信息订阅请求消息的步骤可以在上述步骤301至步骤305的任意时刻执行,也可以在步骤301之前或者在步骤305与步骤306之间执行,本发明实施例对此不做限定。In this step, after registering the service information of the first STA, the AP notifies the second STA of the service information of the first STA. Specifically, an implementation manner in which the AP notifies the second STA of the service information of the first STA may adopt any one or a combination of several of the following three implementation manners. Mode 1: The AP broadcasts a broadcast frame carrying the service information of the first STA, and the second AP receives the broadcast frame carrying the service information of the first STA broadcast by the AP, and obtains the service information of the first STA from the broadcast frame. Wherein, the broadcast frame may be a beacon frame (beacon for short). In various embodiments of the present invention, the AP may periodically broadcast a broadcast frame carrying the service information of the first STA, and the second AP receives the broadcast frame carrying the service information of the first STA periodically broadcast by the AP, or the AP is not The broadcast frame carrying the service information of the first STA is broadcast periodically, and the second AP receives the broadcast frame carrying the service information of the first STA broadcast aperiodically by the AP. Mode 2: The second STA sends a service information query request frame for subscribing to the service information to the AP, and the AP receives the service information query request frame for subscribing to the service information from the second STA and returns the service information carrying the service information of the first STA. In the information query response frame, the second STA obtains the service information of the first STA from the service information query response frame. Specifically, the service information query request frame may be a probe request frame, and the service information query response frame may be a probe response frame. Mode 3: The second STA sends a general query request frame to the AP, and the AP receives the general query request frame from the second STA, and the AP carries all the information that can be returned to the second STA into the general query response frame and returns it to the second STA. STA, wherein the above various information may include the service information of the first STA, that is, the AP returns a general inquiry response frame carrying the service information to the second STA, and the second STA obtains the information of the first STA from the general inquiry response frame. service information. Way 4: The second STA subscribes to the AP in advance for service information, and the AP sends a message frame carrying the service information of the first STA to the second STA that pre-subscribes for the service information. Specifically, at any time, the second STA may send a service information subscription request message for subscribing to the service information to the AP. After the AP receives the service information subscription request message for subscribing the service information from the second STA, the AP After completing the registration of the service information of the first STA, the AP sends a message frame carrying the service information of the first STA to the second STA. The step of the second STA sending a service information subscription request message for subscribing to the service information to the AP may be performed at any time from step 301 to step 305, or may be performed before step 301 or between step 305 and step 306. The embodiments of the invention do not limit this.
在本步骤中,AP向第二STA知会第一STA的服务信息所采用的消息可以采用改进的现有消息,在现有消息中增加与知会第一STA的服务信息相关的信息元素;也可以在通信过程中增加新的消息,该消息包括与知会第一STA的服务信息相关的信息元素,以该消息作为AP向第二STA知会第一STA的服务信息所采用的消息。In this step, the message used by the AP to inform the second STA of the service information of the first STA may adopt an improved existing message, and add information elements related to the service information of the first STA to the existing message; A new message may also be added during the communication process, the message includes information elements related to notifying the first STA of the service information, and this message is used as the message used by the AP to notify the second STA of the first STA's service information.
以下介绍在上述消息中包含与知会第一STA的服务信息相关的信息元素的一种具体实现方式。图8为本发明实施例三的与知会第一STA的服务信息相关的信息元素的结构示意图。该结构仅为信息元素的一种具体实现方式,在实际应用中,也可以采用其它的具体实现方式。如图8所示,该信息元素中包括:信息元素标识(简称Element ID)、信息元素长度(简称Length)、服务名称(简称ServiceName)。其中,一种具体实现方式为,信息元素标识和信息元素长度各自占用1字节,服务名称占用n个字节,n的取值可以根据实际情况灵活设置。其中,服务名称还可以为以下信息中的一种或几种的组合:服务的摘要信息、设备名称、设备的地址信息、服务的持续时间。A specific implementation manner of including information elements related to the service information notified to the first STA in the above message is introduced below. FIG. 8 is a schematic structural diagram of information elements related to service information notified to a first STA according to Embodiment 3 of the present invention. This structure is only a specific implementation manner of the information element, and other specific implementation manners may also be used in practical applications. As shown in FIG. 8 , the information element includes: an information element identifier (referred to as Element ID), an information element length (referred to as Length), and a service name (referred to as ServiceName). Wherein, a specific implementation manner is that the ID of the information element and the length of the information element each occupy 1 byte, and the service name occupies n bytes, and the value of n can be flexibly set according to the actual situation. Wherein, the service name may also be one or a combination of several of the following information: service summary information, device name, device address information, and service duration.
以上介绍了在消息中包含与知会第一STA的服务信息相关的信息元素的实现方式,在其它的实现方式中,也可以采用一个专门的消息携带第一STA的服务信息。如果采用专门的消息携带第一STA的服务信息,则该消息中不必包括图8所示的信息元素标识和信息元素的长度,而是采用专门的消息头结构替代图8所示的信息元素标识和信息元素的长度。在该消息头结构之后,包括服务名称等内容。其中,服务名称还可以为以下信息中的一种或几种的组合:服务的摘要信息、设备名称、设备的地址信息、服务的持续时间。The above describes the implementation manner of including information elements related to the service information notified to the first STA in the message. In other implementation manners, a special message may also be used to carry the service information of the first STA. If a special message is used to carry the service information of the first STA, the message does not need to include the information element identifier and the length of the information element shown in Figure 8, but a special message header structure is used instead of the information element identifier shown in Figure 8 and the length of the information element. After the message header structure, content such as the service name is included. Wherein, the service name may also be one or a combination of several of the following information: service summary information, device name, device address information, and service duration.
在本发明实施例三中,通过第一STA向AP发送登记服务信息请求消息,在该登记服务信息请求消息中携带第一STA的服务信息,从而使得AP登记第一STA的服务信息,实现对于服务信息的登记。进一步地,AP在登记第一STA的服务信息之后,还可以向第二STA知会该第一STA的服务信息,实现对于服务信息的发布。并且,上述第一STA向AP登记服务信息的过程可以在关联过程之前或之后执行,因此不受关联操作的限制,相应地,在第一STA向AP登记服务信息之前,还可以在第一STA与AP之间进行发布服务信息的权限确认过程,保证了网络的安全性。In Embodiment 3 of the present invention, the first STA sends a registration service information request message to the AP, and the registration service information request message carries the service information of the first STA, so that the AP registers the service information of the first STA to realize Registration of service information. Further, after the AP registers the service information of the first STA, it may also notify the second STA of the service information of the first STA, so as to implement publishing of the service information. Moreover, the above-mentioned process for the first STA to register service information with the AP can be performed before or after the association process, so it is not limited by the association operation. Correspondingly, before the first STA registers service information with the AP, the first STA can also The authority confirmation process of publishing service information is carried out between AP and AP, which ensures the security of the network.
图9为本发明实施例四的第一设备的结构示意图。如图9所示,该第一设备至少包括:发送器41和接收器42。FIG. 9 is a schematic structural diagram of a first device according to Embodiment 4 of the present invention. As shown in FIG. 9 , the first device at least includes: a transmitter 41 and a receiver 42 .
其中,接收器42用于获取来自第二设备的服务信息发布能力指示信息。Wherein, the receiver 42 is configured to obtain service information publishing capability indication information from the second device.
发送器41用于向第二设备发送登记服务信息请求消息,所述登记服务信息请求消息中包括所述第一设备的服务信息,以使所述第二设备登记并向第三设备知会所述服务信息。具体地,所述第二设备登记并向第三设备知会的所述服务信息包括:所述第一设备的服务信息。The transmitter 41 is configured to send a registration service information request message to the second device, the registration service information request message including the service information of the first device, so that the second device registers and notifies the third device of all service information. Specifically, the service information registered by the second device and notified to the third device includes: service information of the first device.
在上述技术方案的基础上,具体地,所述服务信息可以包括以下信息中的一种或几种的组合:服务名称、服务的摘要信息、设备名称、设备的地址信息、服务的持续时间。在此基础上,进一步地,所述服务信息还可以包括以下信息中的一种或几种的组合:服务发布开始时间、服务发布结束时间、服务发布持续时间。On the basis of the above technical solution, specifically, the service information may include one or a combination of several of the following information: service name, service summary information, device name, device address information, and service duration. On this basis, further, the service information may also include one or a combination of several of the following information: service release start time, service release end time, and service release duration.
在上述技术方案的基础上,具体地,接收器42获取来自所述第二设备的服务信息发布能力指示信息可以采用以下三种方式中的任意一种或几种的组合。方式一,所述接收器42具体用于接收所述第二设备广播的携带所述服务信息发布能力指示信息的广播帧。其中,该广播帧可以采用信标帧(简称beacon)。方式二,所述发送器41还用于向所述第二设备发送服务信息发布能力查询请求帧,相应地,所述接收器42具体用于接收所述第二设备返回的携带所述服务信息发布能力指示信息的服务信息发布能力查询应答帧。具体地,该服务信息发布能力查询请求帧可以采用探测请求帧或者通用广告服务初始请求帧,该服务信息发布能力查询应答帧可以采用探测应答帧或者通用广告服务初始应答帧。方式三,所述发送器41还用于向所述第二设备发送通用查询请求帧,相应地,所述接收器42具体用于接收所述第二设备返回的携带所述服务信息发布能力指示信息的通用查询应答帧。On the basis of the above technical solution, specifically, the receiver 42 may use any one or a combination of several of the following three ways to acquire the service information publishing capability indication information from the second device. Way 1, the receiver 42 is specifically configured to receive a broadcast frame broadcast by the second device that carries the service information publishing capability indication information. Wherein, the broadcast frame may be a beacon frame (beacon for short). In the second way, the transmitter 41 is further configured to send a service information release capability query request frame to the second device, and correspondingly, the receiver 42 is specifically configured to receive a message carrying the service information returned by the second device. The service information release capability query response frame of the release capability indication information. Specifically, the service information release capability query request frame may be a probe request frame or a general advertisement service initial request frame, and the service information release capability query response frame may be a probe response frame or a general advertisement service initial response frame. Mode 3, the transmitter 41 is further configured to send a general query request frame to the second device, and correspondingly, the receiver 42 is specifically configured to receive the service information publishing capability indication returned by the second device Generic query-response frame for information.
在上述技术方案的基础上,进一步地,所述发送器41还用于与所述第二设备进行发布服务信息的权限确认。具体地,所述发送器41具体用于向所述第二设备发送通过预授权方式或通过蜂窝通信网络获取的认证码信息,以使所述第二设备根据所述认证码信息确认所述第一设备具备发布服务信息的权限。On the basis of the above technical solution, further, the sender 41 is further configured to confirm with the second device the authority to publish service information. Specifically, the transmitter 41 is specifically configured to send to the second device authentication code information obtained through a pre-authorization method or through a cellular communication network, so that the second device confirms that the second device according to the authentication code information A device has the authority to publish service information.
本发明实施例四的第一设备可以用于执行本发明实施例一所述的发布服务信息的方法,其具体实现过程和技术效果可以参照本发明实施例一,此处不再赘述。The first device in Embodiment 4 of the present invention can be used to execute the method for publishing service information described in Embodiment 1 of the present invention. For its specific implementation process and technical effects, reference can be made to Embodiment 1 of the present invention, which will not be repeated here.
图10为本发明实施例五的第二设备的结构示意图。如图10所示,该第二设备至少包括:接收器51和处理器52和发送器53。FIG. 10 is a schematic structural diagram of a second device according to Embodiment 5 of the present invention. As shown in FIG. 10 , the second device at least includes: a receiver 51 , a processor 52 and a transmitter 53 .
其中,接收器51用于接收来自第一设备的登记服务信息请求消息,所述登记服务信息请求消息中包括所述第一设备的服务信息。具体地,接收器51可以在发送器53向第一设备发送服务信息发布能力指示信息之后,接收来自所述第一设备的登记服务信息请求消息。Wherein, the receiver 51 is configured to receive a registration service information request message from the first device, and the registration service information request message includes the service information of the first device. Specifically, the receiver 51 may receive the service information registration request message from the first device after the sender 53 sends the service information publication capability indication information to the first device.
处理器52用于登记所述服务信息。具体地,处理器52登记的服务信息包括所述第一设备的服务信息。The processor 52 is used for registering the service information. Specifically, the service information registered by the processor 52 includes the service information of the first device.
发送器53用于向所述第一设备发送服务信息发布能力指示信息并向第三设备知会所述服务信息。具体地,发送器53向第三设备知会的服务信息包括:所述第一设备的服务信息。发送器53可以在处理器52登记所述第一设备的服务信息之后,向第三设备知会所述第一设备的服务信息。The transmitter 53 is configured to send service information publishing capability indication information to the first device and notify the third device of the service information. Specifically, the service information notified by the transmitter 53 to the third device includes: the service information of the first device. The transmitter 53 may notify the third device of the service information of the first device after the processor 52 registers the service information of the first device.
在上述技术方案的基础上,具体地,所述服务信息包括以下信息中的一种或几种的组合:服务名称、服务的摘要信息、设备名称、设备的地址信息、服务的持续时间。在此基础上,进一步地,所述服务信息还可以包括以下信息中的一种或几种的组合:服务发布开始时间、服务发布结束时间、服务发布持续时间。On the basis of the above technical solution, specifically, the service information includes one or a combination of several of the following information: service name, service summary information, device name, device address information, and service duration. On this basis, further, the service information may also include one or a combination of several of the following information: service release start time, service release end time, and service release duration.
在上述技术方案的基础上,具体地,发送器53向第三设备知会所述第一设备的服务信息可以采用以下三种方式中的任意一种或几种的组合。方式一,所述发送器53具体用于广播携带所述第一设备的服务信息的广播帧。其中,该广播帧可以采用信标帧(简称beacon)。方式二,所述接收器51还用于接收来自所述第三设备的订阅所述服务信息的服务信息查询请求帧,相应地,所述发送器53具体用于返回携带所述第一设备的服务信息的服务信息查询应答帧。具体地,该服务信息查询请求帧可以采用探测请求帧,该服务信息查询应答帧可以采用探测应答帧。方式三,所述接收器51还用于接收来自所述第三设备的通用查询请求帧,相应地,所述发送器53具体用于返回携带所述第一设备的服务信息的通用查询应答帧。方式四,接收器51还用于接收来自所述第三设备的订阅所述服务信息的服务信息订阅请求消息,所述发送器53具体用于向所述第三设备发送携带所述服务信息的消息帧,该消息帧中携带的服务信息包括所述第一设备的服务信息。其中,接收器51可以在任意时刻接收来自所述第三设备的订阅所述服务信息的服务信息订阅请求消息。On the basis of the above technical solution, specifically, the transmitter 53 may adopt any one or a combination of several of the following three ways to notify the third device of the service information of the first device. Manner 1, the transmitter 53 is specifically configured to broadcast a broadcast frame carrying service information of the first device. Wherein, the broadcast frame may be a beacon frame (beacon for short). Mode 2, the receiver 51 is further configured to receive a service information query request frame for subscribing to the service information from the third device, and correspondingly, the transmitter 53 is specifically configured to return the message carrying the first device Service information inquiry response frame of service information. Specifically, the service information query request frame may be a probe request frame, and the service information query response frame may be a probe response frame. Mode 3, the receiver 51 is further configured to receive a general query request frame from the third device, and correspondingly, the transmitter 53 is specifically configured to return a general query response frame carrying service information of the first device . Mode 4, the receiver 51 is further configured to receive a service information subscription request message from the third device for subscribing to the service information, and the sender 53 is specifically configured to send a message carrying the service information to the third device. A message frame, where the service information carried in the message frame includes the service information of the first device. Wherein, the receiver 51 may receive a service information subscription request message for subscribing to the service information from the third device at any time.
在上述技术方案的基础上,具体地,发送器53向所述第一设备发送服务信息发布能力指示信息可以采用以下三种方式中的任意一种或几种的组合。方式一,所述发送器53具体用于广播携带所述服务信息发布能力指示信息的广播帧。其中,该广播帧可以采用信标帧(简称beacon)。方式二,所述接收器51具体用于接收来自所述第一设备的服务信息发布能力查询请求帧,相应地,所述发送器53具体用于向所述第一设备返回携带所述服务信息发布能力指示信息的服务信息发布能力查询应答帧。具体地,该服务信息发布能力查询请求帧可以采用探测请求帧或者通用广告服务初始请求帧,该服务信息发布能力查询应答帧可以采用探测应答帧或者通用广告服务初始应答帧。方式三,所述接收器51具体用于接收来自所述第一设备的通用查询请求帧,相应地,所述发送器53具体用于向所述第一设备返回携带所述服务信息发布能力指示信息的通用查询应答帧。On the basis of the above technical solution, specifically, the sender 53 may use any one or a combination of several of the following three ways to send the service information publishing capability indication information to the first device. Manner 1, the transmitter 53 is specifically configured to broadcast a broadcast frame carrying the service information publishing capability indication information. Wherein, the broadcast frame may be a beacon frame (beacon for short). Mode 2, the receiver 51 is specifically configured to receive a service information publishing capability query request frame from the first device, and correspondingly, the transmitter 53 is specifically configured to return a message carrying the service information to the first device. The service information release capability query response frame of the release capability indication information. Specifically, the service information release capability query request frame may be a probe request frame or a general advertisement service initial request frame, and the service information release capability query response frame may be a probe response frame or a general advertisement service initial response frame. Mode 3, the receiver 51 is specifically configured to receive a general query request frame from the first device, and correspondingly, the transmitter 53 is specifically configured to return the service information publishing capability indication to the first device Generic query-response frame for information.
在上述技术方案的基础上,进一步地,所述接收器51和所述处理器52还用于与所述第一设备进行发布服务信息的权限确认。具体地,所述接收器51和所述处理器52与所述第一设备进行发布服务信息的权限确认可以采用以下三种方式中的任意一种或几种的组合。方式一,所述接收器51具体用于接收来自所述第一设备的通过预授权方式或通过蜂窝通信网络获取的认证码信息,所述处理器52具体用于根据所述认证码信息确认所述第一设备具备发布服务信息的权限。方式二,所述处理器52具体用于调整所述第二设备的功率,以使所述第二设备仅覆盖设定的允许发布服务信息的区域。On the basis of the above technical solution, further, the receiver 51 and the processor 52 are further configured to confirm with the first device the authority to publish service information. Specifically, the receiver 51 , the processor 52 and the first device may adopt any one or a combination of several of the following three ways to confirm the right to publish service information. Mode 1, the receiver 51 is specifically configured to receive the authentication code information obtained from the first device in a pre-authorized manner or through a cellular communication network, and the processor 52 is specifically configured to confirm the authentication code information according to the authentication code information. The above-mentioned first device has the authority to publish service information. In a second manner, the processor 52 is specifically configured to adjust the power of the second device, so that the second device only covers a set area that is allowed to publish service information.
本发明实施例五的第二设备可以用于执行本发明实施例二所述的发布服务信息的方法,其具体实现过程和技术效果可以参照本发明实施例二,此处不再赘述。The second device in Embodiment 5 of the present invention can be used to execute the method for distributing service information described in Embodiment 2 of the present invention. For its specific implementation process and technical effects, reference can be made to Embodiment 2 of the present invention, which will not be repeated here.
上述本发明各个实施例的方法或设备均可以适用于WiFi网络。The above method or device in each embodiment of the present invention may be applicable to a WiFi network.
需要说明的是:对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence. Because of the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above method embodiments can be completed by program instructions and related hardware. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the above-mentioned method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than limiting them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: It is still possible to modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the various embodiments of the present invention. scope.
Claims (23)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210592417.2A CN103916839B (en) | 2012-12-31 | 2012-12-31 | The method and apparatus of issuing service information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210592417.2A CN103916839B (en) | 2012-12-31 | 2012-12-31 | The method and apparatus of issuing service information |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103916839A CN103916839A (en) | 2014-07-09 |
CN103916839B true CN103916839B (en) | 2018-08-14 |
Family
ID=51042155
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210592417.2A Expired - Fee Related CN103916839B (en) | 2012-12-31 | 2012-12-31 | The method and apparatus of issuing service information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103916839B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105656971B (en) * | 2014-11-24 | 2019-02-05 | 中国移动通信集团公司 | A method, device and system for establishing a message subscription relationship between nodes |
CN106713253B (en) * | 2015-11-18 | 2020-10-13 | 中兴通讯股份有限公司 | Method and device for sending and receiving information in peripheral perception networking |
CN106921715B (en) * | 2015-12-28 | 2020-08-25 | 阿里巴巴集团控股有限公司 | Method and apparatus for providing service publishing capabilities on a mobile device |
CN109429378B (en) * | 2017-07-18 | 2022-04-29 | 中兴通讯股份有限公司 | Networking method and device, and terminal |
CN109005200B (en) * | 2018-10-12 | 2021-10-29 | 浙江工业大学 | A covert file transfer method in a WiFi physical isolation environment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101951392A (en) * | 2009-07-08 | 2011-01-19 | 诺基亚公司 | Information on services exchange in the wireless network |
CN102104841A (en) * | 2009-12-22 | 2011-06-22 | 英特尔公司 | Enhanced service discovery mechanism in wireless communication system |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7587517B2 (en) * | 2002-07-08 | 2009-09-08 | Precache Inc. | Packet routing via payload inspection for quality of service management |
CN101523911B (en) * | 2006-10-31 | 2013-08-28 | Tivo有限公司 | Method and apparatus for downloading ancillary program data to dvr |
CN101370028A (en) * | 2008-07-09 | 2009-02-18 | 中国网通集团宽带业务应用国家工程实验室有限公司 | Method and system for implementing remote message synchronization |
CN102546792B (en) * | 2011-12-30 | 2016-03-30 | 华为终端有限公司 | A kind of service information pushing and method of reseptance, relevant apparatus and system |
CN102595348A (en) * | 2012-02-20 | 2012-07-18 | 华为技术有限公司 | Method for acquiring forwarding report of massages, device of sender and massage handling system |
-
2012
- 2012-12-31 CN CN201210592417.2A patent/CN103916839B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101951392A (en) * | 2009-07-08 | 2011-01-19 | 诺基亚公司 | Information on services exchange in the wireless network |
CN102104841A (en) * | 2009-12-22 | 2011-06-22 | 英特尔公司 | Enhanced service discovery mechanism in wireless communication system |
Also Published As
Publication number | Publication date |
---|---|
CN103916839A (en) | 2014-07-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5452822B2 (en) | Method and apparatus for authenticating a request for network capability to connect to an access network | |
JP5593442B2 (en) | Method and apparatus for discovering network capabilities for connecting to an access network | |
US9462457B2 (en) | Subscription transfer method, apparatus, and system | |
EP3429274B1 (en) | Methods and apparatus to provide network capabilities for connecting to an access network | |
EP2919527B1 (en) | Device association methods and systems | |
EP3200490B1 (en) | System and method for online sign up provider selection | |
CN103857037B (en) | mobile wireless device and operating method | |
EP2740299B1 (en) | Method and apparatus for distributing wireless local area network access information | |
CN103916839B (en) | The method and apparatus of issuing service information | |
WO2022079572A1 (en) | Relay ue and remote ue authorization | |
JP5545368B2 (en) | Wireless communication method, wireless communication apparatus, and wireless communication system | |
JP2017533660A (en) | Device-to-device discovery method and apparatus | |
KR20150051568A (en) | Security supporting method and system for proximity based service device to device discovery and communication in mobile telecommunication system environment | |
JP2023547926A (en) | Service authentication method, communication device, and system | |
WO2016177106A1 (en) | Dedicated core network selection method and device | |
CN111418221A (en) | Public alert messages through N3GPP access | |
KR20140125785A (en) | Method and apparatus for efficient security management of disaster message in mobile communication system | |
WO2010028603A1 (en) | Key generation method and system when a tracking area is updated | |
JP2015535153A (en) | Method and apparatus for updating CA public key, UE and CA | |
JP5156460B2 (en) | Broadcast information notification method, mobile station and certification authority system | |
WO2014071602A1 (en) | Message validation method and terminal | |
US20240380730A1 (en) | Enabling distributed non-access stratum terminations | |
TW201811090A (en) | Apparatuses and methods for providing assistance information for calls under isolated E-UTRAN operation for public safety (IOPS) | |
WO2024064682A1 (en) | Roaming validation method for access network providers | |
WO2015154406A1 (en) | Monitoring information sending method and apparatus, and monitoring method and apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20171030 Address after: Metro Songshan Lake high tech Industrial Development Zone, Guangdong Province, Dongguan City Road 523808 No. 2 South Factory (1) project B2 -5 production workshop Applicant after: Huawei terminal (Dongguan) Co.,Ltd. Address before: 518129 Longgang District, Guangdong, Bantian HUAWEI base B District, building 2, building No. Applicant before: HUAWEI DEVICE Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province Patentee after: HUAWEI DEVICE Co.,Ltd. Address before: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province Patentee before: Huawei terminal (Dongguan) Co.,Ltd. |
|
CP01 | Change in the name or title of a patent holder | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180814 |
|
CF01 | Termination of patent right due to non-payment of annual fee |