WO2013178137A1 - Service authorization method, system and related device for wi-fi direct terminal device - Google Patents

Service authorization method, system and related device for wi-fi direct terminal device Download PDF

Info

Publication number
WO2013178137A1
WO2013178137A1 PCT/CN2013/079211 CN2013079211W WO2013178137A1 WO 2013178137 A1 WO2013178137 A1 WO 2013178137A1 CN 2013079211 W CN2013079211 W CN 2013079211W WO 2013178137 A1 WO2013178137 A1 WO 2013178137A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
authorization
authorization code
code
matching
Prior art date
Application number
PCT/CN2013/079211
Other languages
French (fr)
Chinese (zh)
Inventor
沙爽
马岚
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2013178137A1 publication Critical patent/WO2013178137A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a wireless fidelity direct connection (Wi-Fi Direct) terminal device service authorization method, system, and related device.
  • Wi-Fi Direct wireless fidelity direct connection
  • Wi-Fi Direct Wireless Fidelity Direct, Wi-Fi Direct standard means that devices in a wireless network can be connected to each other without using a wireless router, enabling direct interconnection of Wi-Fi devices, helping users to be simpler and more convenient.
  • the way to complete the tasks of printing, sharing, synchronizing and displaying The terminal establishes a connection in a one-to-one or one-to-many topology by forming a group, and the working form of the group is similar to the infrastructure BSS.
  • the entire team is responsible for a Wi-Fi Direct device, including controlling which devices join, when the team starts and terminates, and so on. This device is an access point for traditional client devices and provides some of the services provided by the infrastructure access point.
  • Wi-Fi Direct devices are interconnected via Wi-Fi Protected Setu (WPS).
  • WPS Wi-Fi Protected Setu
  • PBC Push Button Config
  • the PBC button can be established at the same time by confirming on the terminal; however, the current Wi-Fi Direct connection protocol only defines the service discovery mechanism, and there is no authorization management mechanism at the service level, which causes the problem of uneven distribution of service resources. Summary of the invention
  • the embodiment of the present invention provides a Wi-Fi Direct terminal device service authorization method, related device and system, which are used to solve the service resource distribution of the Wi-Fi Direct connection protocol in the related art.
  • the problem of unevenness is a Wi-Fi Direct terminal device service authorization method, related device and system, which are used to solve the service resource distribution of the Wi-Fi Direct connection protocol in the related art. The problem of unevenness.
  • a Wi-Fi Direct terminal device service 4 authorized method including:
  • the service authorization device pre-configures the authorization code
  • the service authorization device After the service authorization device receives the service authorization request of the service application device, according to the The authorization code in the service authorization request is matched with the pre-configured authorization code. When the confirmation is successful, the corresponding service is provided to the service application device according to the service type of the authorization code.
  • the service authorization device sends a message indicating that the matching fails to the service requesting device.
  • the method further comprises
  • the service authorization device After the authorization code is successfully matched, the service authorization device further determines whether it is fully loaded, and provides the corresponding service to the service application device only when the load is not full;
  • the service authorization device determines whether it is fully loaded, and triggers the process of matching the authorization code only when it is not full.
  • the authorization code further includes a level of the service requesting device, and the service authorization device preferentially responds to the service authorization request of the high priority service requesting device according to the level.
  • the embodiment of the invention further provides a method for service authorization of a Wi-Fi Direct terminal device, which comprises:
  • the service application device pre-configures the authorization code
  • the service requesting device sends a service authorization request including an authorization code to the service authorization device that is scanned by the service requesting device, where the authorization code includes: a service type;
  • the service application device After the service authorization device successfully matches the authorization code in the service authorization request with the pre-configured authorization code, the service application device receives the corresponding service provided by the service authorization device according to the service type of the authorization code. service.
  • the method further includes: after receiving the matching failure message sent by the service authorization device, the service requesting device determines the matching result, and when the confirmation is that the application code fails because the authorization code does not match, further determining whether The authorization code is set incorrectly. If yes, the authorization code is reconfigured with the service authorization device. If not, the service authorization request is resent to the service authorization device.
  • An embodiment of the present invention further provides a service requesting device, including:
  • the authorization code management module is configured to pre-configure an authorization code, and send a service authorization request including an authorization code to the service authorization device scanned by the search module, where the authorization code includes: a service type;
  • a receiving module configured to receive a corresponding service that is sent by the service authorization device scanned by the search module according to the service type of the authorization code.
  • the judging module is configured to: after receiving the message that the service authorization device sends a matching failure, determine the matching result, if the application fails due to the unmatched authorization code, further determine whether the authorization code is set incorrectly, if not And triggering the authorization code management module to resend the service authorization request to the service authorization device, and if yes, triggering the authorization code management module to reconfigure the authorization code with the service authorization device.
  • the embodiment of the invention further provides a service authorization device, which includes:
  • Authorization code management module set to pre-configure authorization code
  • the matching processing module is configured to match the authorization code in the service authorization request of the service requesting device with the pre-configured authorization code, and when the confirmation is successful, the notification execution module sends the service according to the service type of the authorization code.
  • the application device provides a corresponding service, and when the confirmation fails, the notification execution module sends a message indicating that the matching fails to the service requesting device;
  • an execution module configured to provide a corresponding service to the service requesting device according to the service type of the authorization code according to the notification of the matching processing module, or send a message that the matching request fails to the service requesting device.
  • the matching processing module is configured to: when the acknowledgment is successful, the notification execution module provides a corresponding service to the service requesting device according to the service type of the authorization code, including: the matching processing module is set to be After the authorization code is successfully matched, it is determined whether the service authorization device is fully loaded, and only when the load is not full, the execution module is notified to provide the corresponding service to the service application device;
  • the matching processing module is further configured to determine whether the service authorization device is fully loaded before the authorization code is matched, and trigger the process of performing the authorization code matching only when the device is not full.
  • the service authorization device further includes: a priority response connected to the execution module And a module, configured to preferentially respond to the service authorization request of the high priority service requesting device according to the level of the service requesting device included in the authorization code.
  • the embodiment of the present invention further provides a system for service authorization of a Wi-R Direct terminal device, including: the service Shenqian device as described above and the service authorization device as described above.
  • the Wi-Fi Direct terminal device service authorization method, system and related device provided by the embodiment of the present invention, the service application device and the service authorization device are pre-configured with an authorization code, and when the service application device needs a service, the service authorization device needs to be sent a service.
  • Authorization request the request carries the authorization code of the required service type, and the service authorization device completes the service of the service application device only if the verification authorization code matches, and does not match, and sends the authorization code to the service application device to match.
  • the message of failure The method can effectively reduce the uneven distribution of service equipment and service congestion, and can effectively control resource waste, and can also improve the working efficiency of the system to a certain extent.
  • FIG. 1 is a flowchart of a Wi-Fi Direct terminal device service authorization method according to Embodiment 1 of the present invention
  • FIG. 2 is a flowchart of a Wi-Fi Direct terminal device service authorization method according to Embodiment 2 of the present invention
  • FIG. 4 is a schematic structural diagram of a Wi-Fi Direct service application device according to Embodiment 5 of the present invention
  • FIG. 5 is a schematic structural diagram of a Wi-Fi Direct service authorization device according to Embodiment 6 of the present invention; schematic diagram.
  • Wi-Fi Direct is Wireless Fidelity Direct
  • Wi-Fi Direct standard refers to allowing devices in a wireless network to connect to each other without using a wireless router. It enables direct interconnection of Wi-Fi devices, helping users to complete tasks such as printing, sharing, synchronizing and displaying in a simpler and more convenient way.
  • the method for service authorization of a Wi-Fi Direct terminal device includes the following steps:
  • the service application device and the service authorization device are pre-configured with an authorization code.
  • the service requesting device sends a service authorization request including an authorization code to the service authorization device that is scanned by the service requesting device, where the authorization code includes: a service type;
  • the service authorization device After receiving the service authorization request of the service requesting device, the service authorization device performs matching according to the authorization code in the service authorization request and the pre-configured authorization code. When the confirmation is successful, according to the authorization code.
  • the service type provides the corresponding service to the service application device.
  • the method for granting service authorization of the Wi-Fi Direct terminal device provided by the embodiment of the present invention, the service requesting device and the service authorization device are pre-configured with an authorization code, and when the service application device needs the service, the service authorization device needs to send a service authorization request, in the request
  • the authorization code of the required service type is carried, and the service authorization device completes the service requesting device service only if the authentication authorization code matches, and the service requesting device sends a message that the authorization code fails to match.
  • the method can effectively reduce the uneven distribution of service equipment and the congestion of services, and can effectively control the waste of resources, and can also improve the working efficiency of the system to a certain extent.
  • An embodiment of the present invention provides a method for service authorization of a Wi-Fi Direct terminal device.
  • the method includes: 5201.
  • the service application device and the service authorization device are pre-configured with an authorization code.
  • the service requesting device sends a service authorization request that includes an authorization code to the service authorization device that is scanned by the service requesting device, where the authorization code includes: a service type;
  • the service authorization device After receiving the service authorization request of the service application device, the service authorization device performs matching according to the authorization code in the service authorization request and the pre-configured authorization code. When the confirmation is successful, the process proceeds to the next step. If the matching is unsuccessful, the service authorization device sends a message that the authorization code matching fails to the service requesting device;
  • the matching result is judged.
  • the confirmation is that the application code fails because the authorization code does not match, further determining whether the authorization code is set incorrectly, and if yes, re-assigning the service authorization.
  • the device configures the authorization code, if not, resends the service authorization request.
  • the service authorization device determines whether it is fully loaded. If it is full, it refuses to provide the corresponding service to the service application device according to the service type of the authorization code; if not, the process proceeds to the next step;
  • the authorization code further includes a level of the service requesting device, and the service authorization device preferentially responds to the service authorization request of the service application device with a high priority according to the level.
  • step 203 and step 204 are not limited to the foregoing execution sequence, and may be: before the authorization code is matched, the service authorization device determines whether it is fully loaded, and if it is full, rejects the service type according to the authorization code. The service application device provides the corresponding service. If it is not full, the process of matching the authorization code is triggered.
  • the service application device may find another service capable of servicing the authorized device to complete the service, and avoiding the service. Authorized devices wait, improving work efficiency.
  • the service authorization device responds to the service authorization request of the service application device according to the level of the service application device, and the priority response is high, and the high priority service authorization device service needs to be the fastest. carry out.
  • Example 3 An embodiment of the present invention provides a system for service authorization of a Wi-Fi Direct terminal device. Referring to FIG. 3, the system includes:
  • the service requesting device 301 is configured to pre-configure an authorization code, and send a service authorization request including an authorization code to the service authorization device scanned by the service authorization device, where the authorization code includes: a service type;
  • the service authorization device 302 is configured to pre-configure an authorization code, and the authorization code in the service authorization request is matched with the pre-configured authorization code. When the confirmation is successful, the corresponding service type is provided according to the service type of the authorization code. service.
  • the system for granting service authorization of the Wi-Fi Direct terminal device provided by the embodiment of the present invention, the service requesting device and the service authorization device are pre-configured with an authorization code, and when the service application device requires, sending a service authorization request to the service authorization device, requesting The authorization code of the service to be used is carried, and the service authorization device only completes the service of the service application device if the authentication authorization code matches, and the service requesting device sends a message that the authorization code fails to match.
  • the method can effectively reduce the uneven distribution of service equipment and service congestion by controlling and managing the service of the service authorization device, and can effectively control the waste of resources, and can also improve the working efficiency of the system to a certain extent.
  • the embodiment of the invention provides a system for service authorization of a Wi-Fi Direct terminal device, the system comprising:
  • the service requesting device is configured to pre-configure an authorization code, and send, to the service authorization device that is scanned, a service authorization request that includes an authorization code, where the authorization code includes: a service type, and is further configured to receive the service application device If the authorization code matches the unsuccessfully sent authorization code to match the failed message, the matching result is judged. If the application fails because the authorization code does not match, it is further determined whether the authorization code is set incorrectly. If not, the service is resent. Authorization request, if yes, re-configure the authorization code with the service authorization device.
  • the service authorization device is configured to match the authorization code in the service authorization request with a pre-configured authorization code, and send a message that the authorization code fails to be matched to the service application device when the matching is unsuccessful.
  • it is further determined whether the service authorization device is fully loaded, and if full, refuses to provide a corresponding service according to the service type of the authorization code if If the load is not full, the service authorization request of the service priority device of the high priority is preferentially responded according to the level of the service requesting device; or before the authorization code is matched, it is determined whether the service authorization device is fully loaded, for example, full load, Refusing to provide a corresponding service according to the service type of the authorization code, for example, a process of triggering the authorization code matching, and when the matching is successful, the service request of the high priority is preferentially responded according to the level of the service application device.
  • the service authorization request of the device when the confirmation match is unsuccessful, the service authorization request of the service requesting device is rejected.
  • the embodiment of the present invention further provides a service application device.
  • the service application device includes:
  • the searching module 401 is configured to scan and discover the service authorization device
  • the authorization code management module 402 is configured to pre-configure an authorization code, and send a service authorization request including an authorization code to the service authorization device scanned by the service authorization device, where the authorization code includes: a service type;
  • the receiving module 403 is configured to: after the authorization code of the service authorization request in the service authorization device matches the pre-configured authorization code, receive the service authorization device according to the service type of the authorization code. The corresponding service.
  • the determining module 404 is configured to: after receiving the matching failure message sent by the service authorization device, determine the matching result, if the application fails due to the unmatched authorization code, further determine whether the authorization code is set incorrectly, if If not, the authorization code management module 402 is triggered to resend the service authorization request to the service authorization device. If yes, the authorization code management module 402 is triggered to re-configure the authorization code with the service authorization device.
  • the service requesting device of the embodiment of the present invention is provided with an authorization code management module, and the authorization code management module generates an authorization code in advance with the service authorization device, where the authorization code carries the level of the service application device and the type of the required service, and the service is required.
  • the authorization code is sent to the service authorization device, and the service authorization device performs matching according to the authorization code, and if the matching is unsuccessful, the service requesting device sends a message that the authorization code fails to match, and the determining module
  • the reason for the failure of the matching is judged based on the matching result sent.
  • the present invention further provides a service authorization device.
  • the service authorization device includes: an authorization code management module 501, configured to pre-configure an authorization code;
  • the matching processing module 502 is configured to match the authorization code in the service authorization request of the service requesting device with the pre-configured authorization code.
  • the notification execution module applies to the service according to the service type of the authorization code.
  • the device provides a corresponding service, and when it is determined that the matching is unsuccessful, the notification execution module sends a message that the matching request fails to the service requesting device;
  • the executing module 503 is configured to provide a corresponding service to the service requesting device according to the service type of the authorization code according to the notification of the matching processing module, or send a message that the matching request fails to the service requesting device;
  • the matching processing module 502 is configured to: when the matching is successful, the notification execution module provides a corresponding service to the service requesting device according to the service type of the authorization code, including: after the authorization code is successfully matched, further determining Whether the service authorization device is fully loaded, and if the load is full, notifying the execution module to refuse to provide a corresponding service to the service application device according to the service type of the authorization code, and if not, the notification module is notified to the execution module.
  • Said service application equipment provides corresponding services;
  • the executing module 503 is further configured to: according to the notification of the determining module, refuse to provide a corresponding service to the service requesting device according to the service type of the authorization code; or provide a corresponding service to the service application device.
  • the matching processing module 502 is further configured to determine whether the service authorization device is fully loaded before the authorization code is matched, and if the load is full, notify the execution module to refuse to apply to the service according to the service type of the authorization code.
  • the device provides the corresponding service, and if it is not full, triggers the process of performing the authorization code matching;
  • the executing module 503 is further configured to refuse to provide a corresponding service to the service requesting device according to the service type of the authorization code according to the notification of the determining module.
  • the service authorization device further includes: a priority response module 504 connected to the execution module 503, configured to preferentially respond to a high priority according to a level of the service requesting device included in the authorization code The service authorization request of the service application device.
  • a priority response module 504 connected to the execution module 503, configured to preferentially respond to a high priority according to a level of the service requesting device included in the authorization code The service authorization request of the service application device.
  • the service authorization device provided by the embodiment of the present invention is provided with an authorization code management module, and the authorization code management module manages the authorization code, thereby effectively improving the problem of uneven distribution of service devices, service congestion and resource waste, and effectively improving the problem. Work efficiency.
  • the method, system and related device for service authorization of a Wi-Fi Direct terminal device provided by the embodiment of the present invention can at least bring about the following beneficial effects:
  • a service authorization method, system and related device for a Wi-Fi Direct terminal device provided by an embodiment of the present invention, the service requesting device needs to send a service authorization request to the service authorization device, and the request carries the authorization code of the required service, The service authorization device completes the service requesting device service only if the authentication authorization code matches, and sends a message indicating that the authorization code fails to be matched to the service application device.
  • the method controls and manages the operation of the service authorization device, and can compete for the uneven distribution of the service device and the service congestion, and can effectively control the waste of resources.
  • the Wi-Fi Direct terminal device service authorization method, system and related device provided by the embodiment of the present invention, the service authorization device responding to the service application according to the level of the service application device and the working status of the service authorization device.
  • the service required by the device when the service authorization device is fully loaded, requesting the service to fill the message full of the device, the service requesting device may find another serviceable authorized device, or wait for the service authorization device to be busy, and continue to send the request.
  • the service authorization device may also respond to the service required by the service authorization device according to the level of the service application device, and improve work efficiency to a certain extent.
  • the service requesting device and the service authorization device are pre-configured with the authorization code.
  • the service authorization device needs to send a service authorization request, and the request carries the authorization code of the required service type, and the service Authorized devices only have conditions to verify that the authorization code matches
  • the service requesting device sends a message that the authorization code fails to match.
  • the method can effectively reduce the uneven distribution of service equipment and service congestion, and can effectively control resource waste, and can also improve the working efficiency of the system to a certain extent.

Abstract

A service authorization method, system and related device for a Wi-Fi Direct terminal device can effectively reduce the phenomena of uneven distribution and service congestion of serving devices. The method comprises: a service application device and a service authorization device configuring an authorization code in advance; the service application device sending to the service authorization device which is scanned thereby a service authorization request containing an authorization code, the authorization code comprising service type; and the service authorization device matching the authorization code configured in advance with the authorization code in the service authorization request, and when it is determined that the matching is successful, providing a corresponding service according to the service type of the authorization code. The system comprises a service application device and a service authorization device.

Description

一种 Wi-Fi Direct终端设备服务授权的方法、 系统及相关设备  Method, system and related device for Wi-Fi Direct terminal device service authorization
技术领域 Technical field
本发明涉及通信技术领域, 尤其涉及一种无线保真直连(Wi-Fi Direct) 终端设备服务授权方法、 系统及相关设备。 背景技术  The present invention relates to the field of communications technologies, and in particular, to a wireless fidelity direct connection (Wi-Fi Direct) terminal device service authorization method, system, and related device. Background technique
Wi-Fi Direct ( Wireless Fidelity Direct, Wi-Fi Direct标准是指允许无线网 络中的设备无需通过无线路由器即可相互连接, 能够实现 Wi-Fi设备的直接 互联, 帮助用户以更为简单而便捷的方式完成打印、 共享、 同步和显示等任 务)终端通过组建小组,以一对一或一对多的拓朴形式来建立连接, 小组的工 作形式与基础设施 BSS类似。 由一部 Wi-Fi Direct设备负责整个小组, 包括 控制哪部设备加入、 小组何时启动和终止等。 这种设备对于传统客户设备而 言就是一部接入点, 能够提供基础设施接入点所提供的部分服务。  Wi-Fi Direct (Wireless Fidelity Direct, Wi-Fi Direct standard means that devices in a wireless network can be connected to each other without using a wireless router, enabling direct interconnection of Wi-Fi devices, helping users to be simpler and more convenient. The way to complete the tasks of printing, sharing, synchronizing and displaying) The terminal establishes a connection in a one-to-one or one-to-many topology by forming a group, and the working form of the group is similar to the infrastructure BSS. The entire team is responsible for a Wi-Fi Direct device, including controlling which devices join, when the team starts and terminates, and so on. This device is an access point for traditional client devices and provides some of the services provided by the infrastructure access point.
Wi-Fi Direct的设备通过 Wi-Fi保护设置 ( Wi-Fi Protected Setu , WPS ) 进行互联, 比较常用的是按钮配置方式(Push Button Config, PBC ) , 即用户 在目标设备上按下一个专用的 PBC按钮, 同时再在终端上确认下就可以建立 连接; 但目前的 Wi-Fi Direct连接协议只定义了服务发现机制, 没有服务层面 的授权管理机制, 造成了服务资源分布不均的问题。 发明内容  Wi-Fi Direct devices are interconnected via Wi-Fi Protected Setu (WPS). The more common one is Push Button Config (PBC), which means that the user presses a dedicated one on the target device. The PBC button can be established at the same time by confirming on the terminal; however, the current Wi-Fi Direct connection protocol only defines the service discovery mechanism, and there is no authorization management mechanism at the service level, which causes the problem of uneven distribution of service resources. Summary of the invention
鉴于上述的分析, 本发明实施例 在提供一种无线保真直连 (Wi-Fi Direct )终端设备服务授权方法、相关设备及系统,用以解决相关技术中 Wi-Fi Direct连接协议的服务资源分布不均的问题。  In view of the above analysis, the embodiment of the present invention provides a Wi-Fi Direct terminal device service authorization method, related device and system, which are used to solve the service resource distribution of the Wi-Fi Direct connection protocol in the related art. The problem of unevenness.
本发明实施例的目的主要是通过以下技术方案实现的:  The purpose of the embodiments of the present invention is mainly achieved by the following technical solutions:
一种 Wi-Fi Direct终端设备服务 4受权的方法, 包括:  A Wi-Fi Direct terminal device service 4 authorized method, including:
服务授权设备预先配置授权码;  The service authorization device pre-configures the authorization code;
所述服务授权设备收到所述服务申请设备的服务授权请求后, 根据所述 良务授权请求中的授权码与预先配置的所述授权码进行匹配, 当确认匹配成 功时, 根据所述授权码的服务类型向所述服务申请设备提供相应的服务。 After the service authorization device receives the service authorization request of the service application device, according to the The authorization code in the service authorization request is matched with the pre-configured authorization code. When the confirmation is successful, the corresponding service is provided to the service application device according to the service type of the authorization code.
优选地, 如果匹配不成功, 所述服务授权设备给所述服务申请设备发送 匹配失败的消息。  Preferably, if the matching is unsuccessful, the service authorization device sends a message indicating that the matching fails to the service requesting device.
优选地, 该方法还包括,  Preferably, the method further comprises
当授权码匹配成功之后, 所述服务授权设备进一步判断其是否满载, 仅 在不满载时, 向所述服务申请设备提供相应的服务;  After the authorization code is successfully matched, the service authorization device further determines whether it is fully loaded, and provides the corresponding service to the service application device only when the load is not full;
或者,  Or,
在进行授权码匹配之前, 所述服务授权设备判断其是否满载, 仅在不满 载时, 触发授权码匹配的流程。  Before the authorization code is matched, the service authorization device determines whether it is fully loaded, and triggers the process of matching the authorization code only when it is not full.
优选地, 所述授权码中还包括所述服务申请设备的级别, 所述服务授权 设备根据所述级别优先响应高优先级的所述服务申请设备的服务授权请求。  Preferably, the authorization code further includes a level of the service requesting device, and the service authorization device preferentially responds to the service authorization request of the high priority service requesting device according to the level.
本发明实施例还提供了一种 Wi-Fi Direct终端设备服务授权的方法, 包 括:  The embodiment of the invention further provides a method for service authorization of a Wi-Fi Direct terminal device, which comprises:
服务申请设备预先配置授权码;  The service application device pre-configures the authorization code;
所述服务申请设备向其扫描到的所述服务授权设备发送包含授权码的服 务授权请求, 所述授权码包括: 服务类型;  The service requesting device sends a service authorization request including an authorization code to the service authorization device that is scanned by the service requesting device, where the authorization code includes: a service type;
在所述服务授权设备对所述服务授权请求中的授权码与预先配置的所述 授权码匹配成功后, 所述服务申请设备接收所述服务授权设备根据所述授权 码的服务类型提供的相应服务。  After the service authorization device successfully matches the authorization code in the service authorization request with the pre-configured authorization code, the service application device receives the corresponding service provided by the service authorization device according to the service type of the authorization code. service.
优选地, 该方法还包括: 所述服务申请设备接收到所述服务授权设备发 送的匹配失败的消息后, 对匹配结果进行判断, 当确认是由于授权码不匹配 导致申请失败时, 进一步判断是否是授权码设置错误, 如果是, 则重新与服 务授权设备配置授权码, 如果不是, 则重新向所述服务授权设备发送服务授 权请求。  Preferably, the method further includes: after receiving the matching failure message sent by the service authorization device, the service requesting device determines the matching result, and when the confirmation is that the application code fails because the authorization code does not match, further determining whether The authorization code is set incorrectly. If yes, the authorization code is reconfigured with the service authorization device. If not, the service authorization request is resent to the service authorization device.
本发明实施例还提供了一种服务申请设备, 其包括:  An embodiment of the present invention further provides a service requesting device, including:
查找模块, 设置为扫描并发现所述服务授权设备; 授权码管理模块, 设置为预先配置授权码, 向所述查找模块扫描到的所 述服务授权设备发送包含授权码的服务授权请求, 所述授权码包括: 服务类 型; a lookup module configured to scan and discover the service authorization device; The authorization code management module is configured to pre-configure an authorization code, and send a service authorization request including an authorization code to the service authorization device scanned by the search module, where the authorization code includes: a service type;
接收模块, 设置为接收从查找模块扫描到的所述服务授权设备发送的根 据所述授权码的服务类型提供的相应服务。  And a receiving module, configured to receive a corresponding service that is sent by the service authorization device scanned by the search module according to the service type of the authorization code.
优选地, 还包括,  Preferably, further comprising
判断模块,设置为在接收到所述服务授权设备发送的匹配失败的消息后, 对匹配结果进行判断, 如果是由于授权码不匹配导致申请失败, 则进一步判 断是否是授权码设置错误, 如果不是, 则触发所述授权码管理模块重新向所 述服务授权设备发送服务授权请求, 如果是, 则触发所述授权码管理模块重 新与所述服务授权设备配置授权码。  The judging module is configured to: after receiving the message that the service authorization device sends a matching failure, determine the matching result, if the application fails due to the unmatched authorization code, further determine whether the authorization code is set incorrectly, if not And triggering the authorization code management module to resend the service authorization request to the service authorization device, and if yes, triggering the authorization code management module to reconfigure the authorization code with the service authorization device.
本发明实施例还提供了一种服务授权设备, 其包括:  The embodiment of the invention further provides a service authorization device, which includes:
授权码管理模块, 设置为预先配置授权码;  Authorization code management module, set to pre-configure authorization code;
匹配处理模块, 设置为根据服务申请设备的服务授权请求中的授权码与 预先配置的所述授权码进行匹配, 当确认匹配成功时, 通知执行模块根据所 述授权码的服务类型向所述服务申请设备提供相应的服务, 当确认匹配失败 时, 通知执行模块给所述服务申请设备发送匹配失败的消息;  The matching processing module is configured to match the authorization code in the service authorization request of the service requesting device with the pre-configured authorization code, and when the confirmation is successful, the notification execution module sends the service according to the service type of the authorization code. The application device provides a corresponding service, and when the confirmation fails, the notification execution module sends a message indicating that the matching fails to the service requesting device;
执行模块, 设置为根据所述匹配处理模块的通知根据所述授权码的服务 类型向所述服务申请设备提供相应的服务, 或者给所述服务申请设备发送匹 配失败的消息。  And an execution module, configured to provide a corresponding service to the service requesting device according to the service type of the authorization code according to the notification of the matching processing module, or send a message that the matching request fails to the service requesting device.
优选地, 所述匹配处理模块, 设置为当确认匹配成功时, 通知执行模块 根据所述授权码的服务类型向所述服务申请设备提供相应的服务, 包括: 所述匹配处理模块, 设置为当授权码匹配成功之后, 判断所述服务授权 设备是否满载, 仅在不满载时, 通知所述执行模块向所述服务申请设备提供 相应的 i 务;  Preferably, the matching processing module is configured to: when the acknowledgment is successful, the notification execution module provides a corresponding service to the service requesting device according to the service type of the authorization code, including: the matching processing module is set to be After the authorization code is successfully matched, it is determined whether the service authorization device is fully loaded, and only when the load is not full, the execution module is notified to provide the corresponding service to the service application device;
或者所述匹配处理模块, 还设置为在进行授权码匹配之前, 判断所述服 务授权设备是否满载, 仅在不满栽时, 触发执行授权码匹配的流程。  Or the matching processing module is further configured to determine whether the service authorization device is fully loaded before the authorization code is matched, and trigger the process of performing the authorization code matching only when the device is not full.
优选地, 所述服务授权设备还包括: 与所述执行模块相连的优先级响应 模块, 设置为根据所述授权码中包含的所述服务申请设备的级别优先响应高 优先级的所述服务申请设备的服务授权请求。 Preferably, the service authorization device further includes: a priority response connected to the execution module And a module, configured to preferentially respond to the service authorization request of the high priority service requesting device according to the level of the service requesting device included in the authorization code.
本发明实施例还提供了一种 Wi-R Direct终端设备服务授权的系统, 包 括: 如上所述的服务申倩设备和如上所述的服务授权设备。  The embodiment of the present invention further provides a system for service authorization of a Wi-R Direct terminal device, including: the service Shenqian device as described above and the service authorization device as described above.
本发明实施例有益效果如下: The beneficial effects of the embodiments of the present invention are as follows:
本发明实施例提供的一种 Wi-Fi Direct终端设备服务授权方法、系统及相 关设备, 服务申请设备和服务授权设备预先配置好授权码, 服务申请设备需 要服务时, 需要向服务授权设备发送服务授权的请求, 请求中携带所需使用 服务类型的授权码, 服务授权设备只有验证授权码匹配的条件下, 才完成服 务申请设备的服务, 不匹配, 则给所述服务申请设备发送授权码匹配失败的 消息。 该方法能够有效降低服务设备分布不均、 服务拥挤的现象, 还能有效 的控制资源浪费, 在一定程度上也能提高系统的工作效率。  The Wi-Fi Direct terminal device service authorization method, system and related device provided by the embodiment of the present invention, the service application device and the service authorization device are pre-configured with an authorization code, and when the service application device needs a service, the service authorization device needs to be sent a service. Authorization request, the request carries the authorization code of the required service type, and the service authorization device completes the service of the service application device only if the verification authorization code matches, and does not match, and sends the authorization code to the service application device to match. The message of failure. The method can effectively reduce the uneven distribution of service equipment and service congestion, and can effectively control resource waste, and can also improve the working efficiency of the system to a certain extent.
本发明实施例的其他特征和优点将在随后的说明书中阐述, 并且, 部分 的从说明书中变得显而易见, 或者通过实施本发明实施例而了解。 本发明实 施例的目的和其他优点可通过在所写的说明书、 权利要求书、 以及附图中所 特别指出的结构来实现和获得。 附图概述  Other features and advantages of the embodiments of the present invention will be set forth in the description in the description. The objectives and other advantages of the embodiments of the present invention can be realized and obtained by the structure particularly pointed in the appended claims. BRIEF abstract
图 1为本发明实施例 1的 Wi-Fi Direct终端设备服务授权方法的流程图; 图 2为本发明实施例 2的 Wi-Fi Direct终端设备服务授权方法的流程图; 图 3为本发明实施例 3的 Wi-Fi Direct终端设备服务授权系统示意图; 图 4为本发明实施例 5的 Wi-Fi Direct服务申请设备结构示意图; 图 5为本发明实施例 6的 Wi-Fi Direct服务授权设备结构示意图。 本发明的较佳实施方式  1 is a flowchart of a Wi-Fi Direct terminal device service authorization method according to Embodiment 1 of the present invention; FIG. 2 is a flowchart of a Wi-Fi Direct terminal device service authorization method according to Embodiment 2 of the present invention; FIG. 4 is a schematic structural diagram of a Wi-Fi Direct service application device according to Embodiment 5 of the present invention; FIG. 5 is a schematic structural diagram of a Wi-Fi Direct service authorization device according to Embodiment 6 of the present invention; schematic diagram. Preferred embodiment of the invention
下面结合附图来具体描述本发明的优选实施例, 其中, 附图构成本申请 一部分, 并与本发明实施例一起用于阐释本发明的原理。 为了清楚和简化目 的, 当其可能使本发明的主题模糊不清时, 将省略本文所描述的器件中已知 功能和结构的详细具体说明。 DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, preferred embodiments of the present invention will be specifically described with reference to the accompanying drawings, wherein A portion, together with the embodiments of the invention, is used to illustrate the principles of the invention. For the sake of clarity and simplicity, detailed descriptions of known functions and structures in the devices described herein will be omitted when they may obscure the subject matter of the present invention.
本发明实施例提供了一种 Wi-Fi Direct冬端设备服务授权的方法, Wi-Fi Direct即 Wireless Fidelity Direct, Wi-Fi Direct标准是指允许无线网络中的设 备无需通过无线路由器即可相互连接, 能够实现 Wi-Fi设备的直接互联, 帮 助用户以更为简单而便捷的方式完成打印、 共享、 同步和显示等任务。  The embodiment of the invention provides a method for Wi-Fi Direct winter end device service authorization, Wi-Fi Direct is Wireless Fidelity Direct, and the Wi-Fi Direct standard refers to allowing devices in a wireless network to connect to each other without using a wireless router. It enables direct interconnection of Wi-Fi devices, helping users to complete tasks such as printing, sharing, synchronizing and displaying in a simpler and more convenient way.
实施例 1 Example 1
如图 1所示的本发明实施例的 Wi-Fi Direct终端设备服务授权的方法包括 以下步骤:  The method for service authorization of a Wi-Fi Direct terminal device according to an embodiment of the present invention as shown in FIG. 1 includes the following steps:
5101、 服务申请设备和服务授权设备预先配置授权码;  5101. The service application device and the service authorization device are pre-configured with an authorization code.
5102、 所述服务申请设备向其扫描到的所述服务授权设备发送包含授权 码的服务授权请求, 所述授权码包括: 服务类型;  The service requesting device sends a service authorization request including an authorization code to the service authorization device that is scanned by the service requesting device, where the authorization code includes: a service type;
S103、 所述服务授权设备收到所述服务申请设备的服务授权请求后, 根 据所述服务授权请求中的授权码与预先配置的授权码进行匹配, 当确认匹配 成功时, 根据所述授权码的服务类型向所述服务申请设备提供相应的服务。  S103. After receiving the service authorization request of the service requesting device, the service authorization device performs matching according to the authorization code in the service authorization request and the pre-configured authorization code. When the confirmation is successful, according to the authorization code. The service type provides the corresponding service to the service application device.
本发明实施例提供的 Wi-Fi Direct终端设备服务授权的方法,服务申请设 备和服务授权设备预先配置好授权码, 服务申请设备需要服务时, 需要向服 务授权设备发送服务授权的请求, 请求中携带所需使用服务类型的授权码, 服务授权设备只有验证授权码匹配的条件下, 才完成服务申请设备的服务, 不匹配, 则给所述服务申请设备发送授权码匹配失败的消息。 该方法能够有 效的降低服务设备分布不均、 服务拥挤的现象, 还能有效的控制资源浪费, 在一定程度上也能提高系统的工作效率。 实施例 2  The method for granting service authorization of the Wi-Fi Direct terminal device provided by the embodiment of the present invention, the service requesting device and the service authorization device are pre-configured with an authorization code, and when the service application device needs the service, the service authorization device needs to send a service authorization request, in the request The authorization code of the required service type is carried, and the service authorization device completes the service requesting device service only if the authentication authorization code matches, and the service requesting device sends a message that the authorization code fails to match. The method can effectively reduce the uneven distribution of service equipment and the congestion of services, and can effectively control the waste of resources, and can also improve the working efficiency of the system to a certain extent. Example 2
本发明实施例提供了一种 Wi-Fi Direct终端设备服务授权的方法,参见图 2, 该方法包括: 5201、 服务申请设备和服务授权设备预先配置授权码;An embodiment of the present invention provides a method for service authorization of a Wi-Fi Direct terminal device. Referring to FIG. 2, the method includes: 5201. The service application device and the service authorization device are pre-configured with an authorization code.
5202、 所述服务申请设备向其扫描到的所述服务授权设备发送包含授权 码的服务授权请求, 所述授权码包括: 服务类型; 5202. The service requesting device sends a service authorization request that includes an authorization code to the service authorization device that is scanned by the service requesting device, where the authorization code includes: a service type;
5203、 所述服务授权设备收到所述服务申请设备的服务授权请求后, 根 据所述服务授权请求中的授权码与预先配置的授权码进行匹配, 当确认匹配 成功时, 进入下一步, 如果匹配不成功, 所述服务授权设备给所述服务申请 设备发送授权码匹配失败的消息;  After receiving the service authorization request of the service application device, the service authorization device performs matching according to the authorization code in the service authorization request and the pre-configured authorization code. When the confirmation is successful, the process proceeds to the next step. If the matching is unsuccessful, the service authorization device sends a message that the authorization code matching fails to the service requesting device;
其中, 所述服务申请设备接收匹配失败的消息后, 对匹配结果进行判断, 当确认是由于授权码不匹配导致申请失败时, 进一步判断是否是授权码设置 错误, 如果是, 则重新与服务授权设备配置授权码, 如果不是, 重新发服务 授权请求。  After the service requesting device receives the message that the matching fails, the matching result is judged. When the confirmation is that the application code fails because the authorization code does not match, further determining whether the authorization code is set incorrectly, and if yes, re-assigning the service authorization. The device configures the authorization code, if not, resends the service authorization request.
S204、 服务授权设备判断自身是否满载, 如果满载, 拒绝根据所述授权 码的服务类型向所述服务申请设备提供相应的服务; 如果不满载, 进入下一 步;  S204: The service authorization device determines whether it is fully loaded. If it is full, it refuses to provide the corresponding service to the service application device according to the service type of the authorization code; if not, the process proceeds to the next step;
S205、 所述授权码中还包括所述服务申请设备的级别, 所述服务授权设 备根据所述级别优先响应高优先级的所述服务申请设备的服务授权请求。  S205. The authorization code further includes a level of the service requesting device, and the service authorization device preferentially responds to the service authorization request of the service application device with a high priority according to the level.
需要说明的是, 步骤 203和步骤 204并不限于上述执行顺序,还可以为: 在授权码匹配之前, 服务授权设备判断自身是否满载, 如果满载, 拒绝根据 所述授权码的服务类型向所述服务申请设备提供相应的服务, 如果不满载, 触发授权码匹配的流程。  It should be noted that, step 203 and step 204 are not limited to the foregoing execution sequence, and may be: before the authorization code is matched, the service authorization device determines whether it is fully loaded, and if it is full, rejects the service type according to the authorization code. The service application device provides the corresponding service. If it is not full, the process of matching the authorization code is triggered.
通过查询所述服务授权设备的工作状态, 如果所述服务授权设备满载则 通知所述服务申请设备, 所述服务申请设备可以再查找其他能够服务授权设 备完成其需要的服务, 避免了所述服务授权设备等待, 提高了工作效率。  Querying the working status of the service authorization device, and notifying the service application device if the service authorization device is full, the service application device may find another service capable of servicing the authorized device to complete the service, and avoiding the service. Authorized devices wait, improving work efficiency.
所述服务授权设备根据所述服务申请设备的级别响应所述服务申请设备 的服务授权请求, 对于优先级高的, 优先响应, 保证了高优先级的所述服务 授权设备服务需要能最快的完成。  The service authorization device responds to the service authorization request of the service application device according to the level of the service application device, and the priority response is high, and the high priority service authorization device service needs to be the fastest. carry out.
实施例 3 本发明实施例提供了一种 Wi-Fi Direct终端设备服务授权的系统,参见图 3 , 该系统包括: Example 3 An embodiment of the present invention provides a system for service authorization of a Wi-Fi Direct terminal device. Referring to FIG. 3, the system includes:
服务申诗设备 301 , 设置为预先配置授权码, 向其扫描到的所述服务授 权设备发送包含授权码的服务授权请求, 所述授权码包括: 服务类型;  The service requesting device 301 is configured to pre-configure an authorization code, and send a service authorization request including an authorization code to the service authorization device scanned by the service authorization device, where the authorization code includes: a service type;
所述服务授权设备 302, 设置为预先配置授权码, 根据所述服务授权请 求中的授权码与预先配置的授权码进行匹配, 当确认匹配成功时, 根据所述 授权码的服务类型提供相应的服务。  The service authorization device 302 is configured to pre-configure an authorization code, and the authorization code in the service authorization request is matched with the pre-configured authorization code. When the confirmation is successful, the corresponding service type is provided according to the service type of the authorization code. service.
本发明实施例提供的 Wi-Fi Direct终端设备服务授权的系统,服务申请设 备和服务授权设备预先配置好授权码, 当所述服务申请设备需要时, 向服务 授权设备发送服务授权的请求, 请求中携带所需使用服务的授权码, 服务授 权设备只有验证授权码匹配的条件下, 才完成服务申请设备的服务, 不匹配, 则给所述服务申请设备发送授权码匹配失败的消息。 该方法通过服务授权设 备对其工作与否的控制和管理, 能够有效降低服务设备分布不均、 服务拥挤 的现象, 还能有效的控制资源浪费, 在一定程度上也能提高系统的工作效率。 实施例 4  The system for granting service authorization of the Wi-Fi Direct terminal device provided by the embodiment of the present invention, the service requesting device and the service authorization device are pre-configured with an authorization code, and when the service application device requires, sending a service authorization request to the service authorization device, requesting The authorization code of the service to be used is carried, and the service authorization device only completes the service of the service application device if the authentication authorization code matches, and the service requesting device sends a message that the authorization code fails to match. The method can effectively reduce the uneven distribution of service equipment and service congestion by controlling and managing the service of the service authorization device, and can effectively control the waste of resources, and can also improve the working efficiency of the system to a certain extent. Example 4
本发明实施例提供了一种 Wi-Fi Direct终端设备服务授权的系统,该系统 包括:  The embodiment of the invention provides a system for service authorization of a Wi-Fi Direct terminal device, the system comprising:
服务申请设备, 设置为预先配置授权码, 向其扫描到的所述服务授权设 备发送包含授权码的服务授权请求, 所述授权码包括: 服务类型; 还设置为 当接收所述服务申请设备由于授权码匹配不成功发送的授权码匹配失败的消 息时, 对匹配结果进行判断, 如杲是由于授权码不匹配导致申请失败, 则进 一步判断是否是授权码设置错误, 如果不是, 则重新发服务授权请求, 如果 是, 则重新与服务授权设备配置授权码。  The service requesting device is configured to pre-configure an authorization code, and send, to the service authorization device that is scanned, a service authorization request that includes an authorization code, where the authorization code includes: a service type, and is further configured to receive the service application device If the authorization code matches the unsuccessfully sent authorization code to match the failed message, the matching result is judged. If the application fails because the authorization code does not match, it is further determined whether the authorization code is set incorrectly. If not, the service is resent. Authorization request, if yes, re-configure the authorization code with the service authorization device.
所述服务授权设备, 设置为根据所述服务授权请求中的授权码与预先配 置的授权码进行匹配, 在匹配不成功的条件下, 给所述服务申请设备发送授 权码匹配失败的消息, 当确认匹配成功时, 进一步判断所述服务授权设备是 否满载, 如果满载, 拒绝根据所述授权码的服务类型提供相应的服务, 如果 不满载, 根据所述服务申请设备的级别优先响应高优先级的所述服务申奇设 备的服务授权请求; 或者是在授权码匹配之前, 先判断所述服务授权设备是 否满载, 如杲满载, 拒绝根据所述授权码的服务类型提供相应的服务, 如杲 不满载, 触发授权码匹配的流程, 当确认匹配成功时, 根据所述服务申请设 备的级别优先响应高优先级的所述服务申请设备的服务授权请求, 当确认匹 配不成功时, 拒绝服务申请设备的服务授权请求。 The service authorization device is configured to match the authorization code in the service authorization request with a pre-configured authorization code, and send a message that the authorization code fails to be matched to the service application device when the matching is unsuccessful. When it is confirmed that the matching is successful, it is further determined whether the service authorization device is fully loaded, and if full, refuses to provide a corresponding service according to the service type of the authorization code, if If the load is not full, the service authorization request of the service priority device of the high priority is preferentially responded according to the level of the service requesting device; or before the authorization code is matched, it is determined whether the service authorization device is fully loaded, for example, full load, Refusing to provide a corresponding service according to the service type of the authorization code, for example, a process of triggering the authorization code matching, and when the matching is successful, the service request of the high priority is preferentially responded according to the level of the service application device. The service authorization request of the device, when the confirmation match is unsuccessful, the service authorization request of the service requesting device is rejected.
实施例 5 Example 5
本发明实施例还提供一种服务申请设备, 参见图 4 , 该服务申请设备包 括:  The embodiment of the present invention further provides a service application device. Referring to FIG. 4, the service application device includes:
查找模块 401, 设置为扫描并发现所述服务授权设备;  The searching module 401 is configured to scan and discover the service authorization device;
授权码管理模块 402 , 设置为预先配置授权码, 向其扫描到的服务授权 设备发送包含授权码的服务授权请求, 所述授权码包括: 服务类型;  The authorization code management module 402 is configured to pre-configure an authorization code, and send a service authorization request including an authorization code to the service authorization device scanned by the service authorization device, where the authorization code includes: a service type;
接收模块 403 , 设置为在所述服务授权设备对所述服务授权请求中的授 权码与预先配置的所述授权码匹配成功后, 接收所述服务授权设备根据所述 授权码的服务类型提供的相应服务。  The receiving module 403 is configured to: after the authorization code of the service authorization request in the service authorization device matches the pre-configured authorization code, receive the service authorization device according to the service type of the authorization code. The corresponding service.
判断模块 404 , 设置为在接收到所述服务授权设备发送的匹配失败的消 息后, 对匹配结果进行判断, 如果是由于授权码不匹配导致申请失败, 则进 一步判断是否是授权码设置错误,如果不是,则触发所述授权码管理模块 402 重新向所述服务授权设备发送服务授权请求, 如果是, 则触发所述授权码管 理模块 402重新与服务授权设备配置授权码。  The determining module 404 is configured to: after receiving the matching failure message sent by the service authorization device, determine the matching result, if the application fails due to the unmatched authorization code, further determine whether the authorization code is set incorrectly, if If not, the authorization code management module 402 is triggered to resend the service authorization request to the service authorization device. If yes, the authorization code management module 402 is triggered to re-configure the authorization code with the service authorization device.
本发明实施例的服务申请设备设有授权码管理模块, 通过授权码管理模 块预先与服务授权设备生成授权码, 授权码中携带有所述服务申请设备的级 别和所需服务的类型, 需要服务授权设备提供服务时, 将所述授权码发送给 服务授权设备, 服务授权设备根据授权码进行匹配, 在匹配不成功的条件下, 给所述服务申请设备发送授权码匹配失败的消息, 判断模块根据发送来的匹 配结果进行判断匹配失败的原因。 通过在服务申请设备设置以上模块, 能够 有效的降低服务设备分布不均和效率低的问题。 实施例 6 The service requesting device of the embodiment of the present invention is provided with an authorization code management module, and the authorization code management module generates an authorization code in advance with the service authorization device, where the authorization code carries the level of the service application device and the type of the required service, and the service is required. When the authorized device provides the service, the authorization code is sent to the service authorization device, and the service authorization device performs matching according to the authorization code, and if the matching is unsuccessful, the service requesting device sends a message that the authorization code fails to match, and the determining module The reason for the failure of the matching is judged based on the matching result sent. By setting the above modules in the service application device, the problem of uneven distribution and low efficiency of the service device can be effectively reduced. Example 6
本发明还提供了一种服务授权设备, 参见图 5, 该服务授权设备包括: 授权码管理模块 501 , 设置为预先配置授权码;  The present invention further provides a service authorization device. Referring to FIG. 5, the service authorization device includes: an authorization code management module 501, configured to pre-configure an authorization code;
匹配处理模块 502, 设置为根据服务申请设备的服务授权请求中的授权 码与预先配置的授权码进行匹配, 当确认匹配成功时, 通知执行模块根据所 述授权码的服务类型向所述服务申请设备提供相应的服务, 当确认匹配不成 功时, 通知执行模块给所述服务申请设备发送匹配失败的消息;  The matching processing module 502 is configured to match the authorization code in the service authorization request of the service requesting device with the pre-configured authorization code. When the confirmation is successful, the notification execution module applies to the service according to the service type of the authorization code. The device provides a corresponding service, and when it is determined that the matching is unsuccessful, the notification execution module sends a message that the matching request fails to the service requesting device;
执行模块 503 , 设置为根据所述匹配处理模块的通知根据所述授权码的 服务类型向所述服务申请设备提供相应的服务, 或者给所述服务申请设备发 送匹配失败的消息;  The executing module 503 is configured to provide a corresponding service to the service requesting device according to the service type of the authorization code according to the notification of the matching processing module, or send a message that the matching request fails to the service requesting device;
其中, 所述匹配处理模块 502, 设置为当确认匹配成功时, 通知执行模 块根据所述授权码的服务类型向所述服务申请设备提供相应的服务, 包括: 当授权码匹配成功之后, 进一步判断所述服务授权设备是否满载, 如果 满载, 则通知所述执行模块拒绝根据所述授权码的服务类型向所述服务申请 设备提供相应的服务, 如杲不满栽, 则通知所述执行模块向所述服务申请设 备提供相应的服务;  The matching processing module 502 is configured to: when the matching is successful, the notification execution module provides a corresponding service to the service requesting device according to the service type of the authorization code, including: after the authorization code is successfully matched, further determining Whether the service authorization device is fully loaded, and if the load is full, notifying the execution module to refuse to provide a corresponding service to the service application device according to the service type of the authorization code, and if not, the notification module is notified to the execution module. Said service application equipment provides corresponding services;
所述执行模块 503, 还设置为根据所述判断模块的通知拒绝根据所述授 权码的服务类型向所述服务申请设备提供相应的服务; 或者, 向所述服务申 请设备提供相应的服务。  The executing module 503 is further configured to: according to the notification of the determining module, refuse to provide a corresponding service to the service requesting device according to the service type of the authorization code; or provide a corresponding service to the service application device.
或者, 所述匹配处理模块 502, 还设置为在进行授权码匹配之前, 判断 所述服务授权设备是否满载, 如果满载, 通知所述执行模块拒绝根据所述授 权码的服务类型向所述服务申请设备提供相应的服务, 如果不满载, 触发执 行授权码匹配的流程;  Alternatively, the matching processing module 502 is further configured to determine whether the service authorization device is fully loaded before the authorization code is matched, and if the load is full, notify the execution module to refuse to apply to the service according to the service type of the authorization code. The device provides the corresponding service, and if it is not full, triggers the process of performing the authorization code matching;
所述执行模块 503 , 还设置为根据所述判断模块的通知拒绝根据所述授 权码的服务类型向所述服务申请设备提供相应的服务。  The executing module 503 is further configured to refuse to provide a corresponding service to the service requesting device according to the service type of the authorization code according to the notification of the determining module.
服务授权设备还包括: 与所述执行模块 503相连的优先级响应模块 504 , 设置为根据所述授权码中包含的所述服务申请设备的级别优先响应高优先级 的所述服务申请设备的服务授权请求。 The service authorization device further includes: a priority response module 504 connected to the execution module 503, configured to preferentially respond to a high priority according to a level of the service requesting device included in the authorization code The service authorization request of the service application device.
本发明实施例提供的服务授权设备设有授权码管理模块, 通过授权码管 理模块对授权码进行管理, 有效的提高了服务设备分布不均, 服务拥挤和资 源浪费的问题, 还有效的提高了工作效率。  The service authorization device provided by the embodiment of the present invention is provided with an authorization code management module, and the authorization code management module manages the authorization code, thereby effectively improving the problem of uneven distribution of service devices, service congestion and resource waste, and effectively improving the problem. Work efficiency.
综上所述,本发明实施例提供的一种 Wi-Fi Direct终端设备服务授权的方 法、 系统及相关设备, 至少能够带来以下一种有益效果:  In summary, the method, system and related device for service authorization of a Wi-Fi Direct terminal device provided by the embodiment of the present invention can at least bring about the following beneficial effects:
1、 本发明实施例提供的一种 Wi-Fi Direct终端设备服务授权方法、 系统 及相关设备, 服务申请设备需要向服务授权设备发送服务授权的请求, 请求 中携带所需使用服务的授权码,服务授权设备只有验证授权码匹配的条件下, 才完成服务申请设备的服务, 不匹配, 则给所述服务申请设备发送授权码匹 配失败的消息。 该方法通过服务授权设备对其工作与否的控制和管理, 能够 P争低服务设备分布不均、 服务拥挤的现象, 还能有效地控制资源浪费。  A service authorization method, system and related device for a Wi-Fi Direct terminal device provided by an embodiment of the present invention, the service requesting device needs to send a service authorization request to the service authorization device, and the request carries the authorization code of the required service, The service authorization device completes the service requesting device service only if the authentication authorization code matches, and sends a message indicating that the authorization code fails to be matched to the service application device. The method controls and manages the operation of the service authorization device, and can compete for the uneven distribution of the service device and the service congestion, and can effectively control the waste of resources.
2、 本发明实施例提供的一种 Wi-Fi Direct终端设备服务授权方法、 系统 及相关设备, 所述服务授权设备根据所述服务申请设备的级别和服务授权设 备的工作状态响应所述服务申请设备需要的服务, 当服务授权设备满载时, 给所述服务申请设备满载的消息, 所述服务申请设备可以再查找其他可服务 授权设备, 或是等待该服务授权设备不忙时, 继续发请求。 而且所述服务授 权设备还可根据所述服务申请设备的级别分别响应所述服务授权设备所需要 的服务, 在一定程度上也能提高工作效率。  The Wi-Fi Direct terminal device service authorization method, system and related device provided by the embodiment of the present invention, the service authorization device responding to the service application according to the level of the service application device and the working status of the service authorization device. The service required by the device, when the service authorization device is fully loaded, requesting the service to fill the message full of the device, the service requesting device may find another serviceable authorized device, or wait for the service authorization device to be busy, and continue to send the request. . Moreover, the service authorization device may also respond to the service required by the service authorization device according to the level of the service application device, and improve work efficiency to a certain extent.
以上所述, 仅为本发明较佳的具体实施方式, 但本发明的保护范围并不 局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可 轻易想到的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明 的保护范围应该以权利要求书的保护范围为准。 工业实用性  The above is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or within the technical scope disclosed by the present invention. Alternatives are intended to be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims. Industrial applicability
本发明实施例中, 服务申请设备和服务授权设备预先配置好授权码, 服 务申请设备需要服务时, 需要向服务授权设备发送服务授权的请求, 请求中 携带所需使用服务类型的授权码, 服务授权设备只有验证授权码匹配的条件 下, 才完成服务申请设备的服务, 不匹配, 则给所述服务申请设备发送授权 码匹配失败的消息。 该方法能够有效降低服务设备分布不均、 服务拥挤的现 象, 还能有效的控制资源浪费, 在一定程度上也能提高系统的工作效率。 In the embodiment of the present invention, the service requesting device and the service authorization device are pre-configured with the authorization code. When the service application device needs the service, the service authorization device needs to send a service authorization request, and the request carries the authorization code of the required service type, and the service Authorized devices only have conditions to verify that the authorization code matches After the service of the service application device is completed, if the service does not match, the service requesting device sends a message that the authorization code fails to match. The method can effectively reduce the uneven distribution of service equipment and service congestion, and can effectively control resource waste, and can also improve the working efficiency of the system to a certain extent.

Claims

权 利 要 求 书 Claim
1、 一种无线保真直连( Wi-Fi Direct )终端设备服务授权的方法, 包括: 服务授权设备预先配置授权码;  A method for authenticating a Wi-Fi Direct terminal device service, comprising: pre-configuring an authorization code by a service authorization device;
所述服务授权设备收到所述服务申请设备的服务授权请求后, 根据所述 J ^务授权请求中的授权码与预先配置的所述授权码进行匹配, 当确认匹配成 功时, 根据所述授权码的服务类型向所述服务申请设备提供相应的服务。  After receiving the service authorization request of the service application device, the service authorization device performs matching according to the authorization code in the authorization request and the pre-configured authorization code, and when the confirmation is successful, according to the The service type of the authorization code provides the corresponding service to the service application device.
2、 根据权利要求 1所述的方法, 还包括, 如果匹配不成功, 所述服务授 权设备给所述服务申请设备发送匹配失败的消息。  2. The method according to claim 1, further comprising: if the matching is unsuccessful, the service granting device sends a message indicating that the matching fails to the service requesting device.
3、 根据权利要求 1或 2所述的方法, 其中,  3. The method according to claim 1 or 2, wherein
当授权码匹配成功之后, 所述服务授权设备进一步判断其是否满载, 仅 在不满载时, 向所述服务申请设备提供相应的服务;  After the authorization code is successfully matched, the service authorization device further determines whether it is fully loaded, and provides the corresponding service to the service application device only when the load is not full;
或者:  Or:
在进行授权码匹配之前, 所述服务授权设备判断其是否满载, 仅在不满 载时, 触发授权码匹配的流程。  Before the authorization code is matched, the service authorization device determines whether it is fully loaded, and triggers the process of matching the authorization code only when it is not full.
4、 根据权利要求 1所述的方法, 其中, 所述授权码中还包括所述服务申 请设备的级别, 所述服务授权设备根据所述级别优先响应高优先级的所述服 务申请设备的服务授权请求。  The method according to claim 1, wherein the authorization code further includes a level of the service application device, and the service authorization device preferentially responds to the service of the service application device with a high priority according to the level Authorization request.
5、 一种 Wi-Fi Direct终端设备服务授权的方法, 包括:  5. A method for Wi-Fi Direct terminal device service authorization, comprising:
服务申请设备预先配置授权码;  The service application device pre-configures the authorization code;
所述服务申请设备向其扫描到的所述服务授权设备发送包含授权码的服 务授权请求, 所述授权码包括: 服务类型;  The service requesting device sends a service authorization request including an authorization code to the service authorization device that is scanned by the service requesting device, where the authorization code includes: a service type;
在所述服务授权设备对所述服务授权请求中的授权码与预先配置的所述 授权码匹配成功后, 所述服务申请设备接收所述服务授权设备根据所述授权 码的服务类型提供的相应服务。  After the service authorization device successfully matches the authorization code in the service authorization request with the pre-configured authorization code, the service application device receives the corresponding service provided by the service authorization device according to the service type of the authorization code. service.
6、 根据权利要求 5所述的方法, 还包括: 所述服务申请设备接收到所述 服务授权设备发送的匹配失败的消息后, 对匹配结果进行判断, 当确认是由 于授权码不匹配导致申请失败时, 进一步判断是否是授权码设置错误, 如果 是, 则重新与服务授权设备配置授权码, 如果不是, 则重新向所述服务授权 设备发送服务授权请求。 The method according to claim 5, further comprising: after receiving the message of the matching failure sent by the service authorization device, the service requesting device determines the matching result, and when the confirmation is due to the authorization code not matching, the application is When it fails, further determine whether the authorization code is set incorrectly. If yes, the authorization code is reconfigured with the service authorization device, and if not, the service authorization request is resent to the service authorization device.
7、 一种服务申请设备, 包括:  7. A service application device, including:
查找模块, 设置为扫描并发现服务授权设备;  a lookup module, set to scan and discover service authorization devices;
授权码管理模块, 设置为预先配置授权码, 向所述查找模块扫描到的所 述服务授权设备发送包含授权码的服务授权请求, 所述授权码包括: 服务类 型;  The authorization code management module is configured to pre-configure an authorization code, and send a service authorization request including an authorization code to the service authorization device scanned by the search module, where the authorization code includes: a service type;
接收模块, 设置为接收从查找模块扫描到的所述服务授权设备发送的根 据所述授权码的服务类型提供的相应服务。  And a receiving module, configured to receive a corresponding service that is sent by the service authorization device scanned by the search module according to the service type of the authorization code.
8、 根据权利要求 7所述的服务申请设备, 还包括,  8. The service requesting device according to claim 7, further comprising
判断模块,设置为在接收到所述服务授权设备发送的匹配失败的消息后, 对匹配结果进行判断, 如果是由于授权码不匹配导致申请失败, 则进一步判 断是否是授权码设置错误, 如果不是, 则触发所述授权码管理模块重新向所 述服务授权设备发送服务授权请求, 如果是, 则触发所述授权码管理模块重 新与所述服务授权设备配置授权码。  The judging module is configured to: after receiving the message that the service authorization device sends a matching failure, determine the matching result, if the application fails due to the unmatched authorization code, further determine whether the authorization code is set incorrectly, if not And triggering the authorization code management module to resend the service authorization request to the service authorization device, and if yes, triggering the authorization code management module to reconfigure the authorization code with the service authorization device.
9、 一种服务授权设备, 包括:  9. A service authorization device, including:
授权码管理模块, 设置为预先配置授权码;  Authorization code management module, set to pre-configure authorization code;
匹配处理模块, 设置为根据服务申请设备的服务授权请求中的授权码与 预先配置的所述授权码进行匹配, 当确认匹配成功时, 通知执行模块根据所 述授权码的服务类型向所述服务申请设备提供相应的服务, 当确认匹配失败 时, 通知执行模块给所述服务申请设备发送匹配失败的消息;  The matching processing module is configured to match the authorization code in the service authorization request of the service requesting device with the pre-configured authorization code, and when the confirmation is successful, the notification execution module sends the service according to the service type of the authorization code. The application device provides a corresponding service, and when the confirmation fails, the notification execution module sends a message indicating that the matching fails to the service requesting device;
执行模块, 设置为根据所述匹配处理模块的通知根据所述授权码的服务 类型向所述服务申请设备提供相应的服务, 或者给所述服务申请设备发送匹 配失败的消息。  And an execution module, configured to provide a corresponding service to the service requesting device according to the service type of the authorization code according to the notification of the matching processing module, or send a message that the matching request fails to the service requesting device.
10、 根据权利要求 9所述的服务授权设备, 其中:  10. The service authorization device according to claim 9, wherein:
所述匹配处理模块, 设置为当确认匹配成功时, 通知执行模块根据所述 授权码的服务类型向所述服务申请设备提供相应的服务, 包括: 所述匹配处理模块, 设置为当授权码匹配成功之后, 判断所述服务授权 设备是否满载, 仅在不满载时, 通知所述执行模块向所述服务申请设备提供 相应的服务。 The matching processing module is configured to: when the confirmation is successful, the notification execution module provides the corresponding service to the service application device according to the service type of the authorization code, including: The matching processing module is configured to: after the authorization code is successfully matched, determine whether the service authorization device is fully loaded, and notify the execution module to provide a corresponding service to the service application device only when the load is not full.
11、 根据权利要求 10所述的服务授权设备, 其中:  11. The service authorization device according to claim 10, wherein:
所述匹配处理模块, 还设置为在进行授权码匹配之前, 判断所述服务授 权设备是否满载, 仅在不满载时, 触发执行授权码匹配的流程。  The matching processing module is further configured to determine whether the service authorization device is fully loaded before the authorization code is matched, and trigger the process of performing the authorization code matching only when the load is not full.
12、 根据权利要求 9所述的服务授权设备, 还包括: 与所述执行模块相 连的优先级响应模块, 设置为根据所述授权码中包含的所述服务申请设备的 级別优先响应高优先级的所述服务申请设备的服务授权请求。  The service authorization device according to claim 9, further comprising: a priority response module connected to the execution module, configured to perform high priority according to a level priority response of the service application device included in the authorization code The service authorization request of the service requesting device of the level.
13、 一种 Wi-Fi Direct终端设备服务授权的系统, 包括: 如权利要求 7~8 任一项所述的服务申请设备和如权利要求 9~12任一项所述的服务授权设备。  A system for service authorization of a Wi-Fi Direct terminal device, comprising: the service application device according to any one of claims 7 to 8 and the service authorization device according to any one of claims 9 to 12.
PCT/CN2013/079211 2012-08-24 2013-07-11 Service authorization method, system and related device for wi-fi direct terminal device WO2013178137A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2012103054076A CN102883318A (en) 2012-08-24 2012-08-24 Method and system for authorizing service of wireless fidelity direct (Wi-Fi Direct) terminal equipment, and relevant equipment
CN201210305407.6 2012-08-24

Publications (1)

Publication Number Publication Date
WO2013178137A1 true WO2013178137A1 (en) 2013-12-05

Family

ID=47484420

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/079211 WO2013178137A1 (en) 2012-08-24 2013-07-11 Service authorization method, system and related device for wi-fi direct terminal device

Country Status (2)

Country Link
CN (1) CN102883318A (en)
WO (1) WO2013178137A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102883318A (en) * 2012-08-24 2013-01-16 中兴通讯股份有限公司 Method and system for authorizing service of wireless fidelity direct (Wi-Fi Direct) terminal equipment, and relevant equipment
JP6214177B2 (en) * 2013-03-14 2017-10-18 キヤノン株式会社 COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM
CN104062921B (en) * 2014-06-27 2017-07-07 广州视源电子科技股份有限公司 A kind of method of intelligent control of household electrical appliance

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008135673A2 (en) * 2007-03-23 2008-11-13 Archos Communicating electronic apparatus, and systems and method using such apparatus
WO2011039719A1 (en) * 2009-10-02 2011-04-07 Research In Motion Limited Methods and apparatus to proxy discovery and negotiations between network entities to establish peer-to-peer communications
CN102461128A (en) * 2009-05-04 2012-05-16 苹果公司 Method and apparatus for proximity based pairing of mobile devices
CN102883318A (en) * 2012-08-24 2013-01-16 中兴通讯股份有限公司 Method and system for authorizing service of wireless fidelity direct (Wi-Fi Direct) terminal equipment, and relevant equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101837086B1 (en) * 2009-11-17 2018-04-20 삼성전자주식회사 Method and apparatus for WiFi display service discovery in WiFi direct network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008135673A2 (en) * 2007-03-23 2008-11-13 Archos Communicating electronic apparatus, and systems and method using such apparatus
CN102461128A (en) * 2009-05-04 2012-05-16 苹果公司 Method and apparatus for proximity based pairing of mobile devices
WO2011039719A1 (en) * 2009-10-02 2011-04-07 Research In Motion Limited Methods and apparatus to proxy discovery and negotiations between network entities to establish peer-to-peer communications
CN102883318A (en) * 2012-08-24 2013-01-16 中兴通讯股份有限公司 Method and system for authorizing service of wireless fidelity direct (Wi-Fi Direct) terminal equipment, and relevant equipment

Also Published As

Publication number Publication date
CN102883318A (en) 2013-01-16

Similar Documents

Publication Publication Date Title
US10756964B2 (en) Internet of things configuration method and system for secure low-power-consumption proxy device
US9210536B2 (en) Method for establishing device-to-device communication
US9774704B2 (en) Home gateway, cloud server, and method for communication therebetween
US10355878B2 (en) Method for establishing wireless local area network tunnel, apparatus, and access network system
US9848282B2 (en) Method for communicating with other devices, and communication device
KR20190065405A (en) Enabling Multicast for Service Layer Group Operations
WO2011079647A1 (en) Evolved packet system and method for processing emergency call attachment thereof
WO2014146474A1 (en) Terminal registration method, terminal discovery method, terminal and device
WO2004051927A1 (en) Method and system for cluster managing of network facilities
WO2011000195A1 (en) Method for establishing connection between access point and repeater in wireless distribution system and device thereof
US11128486B2 (en) Smart refrigerator-based networking and control method and system, and smart refrigerator
CN101951325A (en) Network terminal configuration system based on automatic discovery and configuration method thereof
WO2014166210A1 (en) Client, server, and remote authentication dial in user service capability negotiation method and system
WO2014180114A1 (en) Method and device for realizing mtc monitoring
WO2013083752A1 (en) Method and devices for running push-button configuration sessions
WO2013178137A1 (en) Service authorization method, system and related device for wi-fi direct terminal device
EP2456156A1 (en) Attachment method and system with identifier and location splitting in next generation network
WO2009006854A1 (en) Method and system for management authentication based on nass
WO2012106961A1 (en) Method and system for establishing service bearer
WO2012175024A1 (en) Method, system and device for realizing concurrency of wireless data transmission and short message transceiving
WO2013167070A2 (en) Method for authentication of terminal cooperation and equipment middleware thereof
WO2014036902A1 (en) Method and apparatus for gateway management terminal
WO2012151803A1 (en) Virtual terminal system and method for implementing same
WO2008037174A1 (en) A method, device and communication system thereof of electing local master
WO2011029345A1 (en) Method and system for auto-discovery of base stations

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13797499

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13797499

Country of ref document: EP

Kind code of ref document: A1