[go: up one dir, main page]

CN108076009A - A kind of resource share method, apparatus and system - Google Patents

A kind of resource share method, apparatus and system Download PDF

Info

Publication number
CN108076009A
CN108076009A CN201610990624.1A CN201610990624A CN108076009A CN 108076009 A CN108076009 A CN 108076009A CN 201610990624 A CN201610990624 A CN 201610990624A CN 108076009 A CN108076009 A CN 108076009A
Authority
CN
China
Prior art keywords
source device
sharing
information
identification information
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610990624.1A
Other languages
Chinese (zh)
Other versions
CN108076009B (en
Inventor
冯广欣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhongzun Huanqiu Xi'an Technology Co ltd
Original Assignee
Hangzhou Hikvision Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201610990624.1A priority Critical patent/CN108076009B/en
Publication of CN108076009A publication Critical patent/CN108076009A/en
Application granted granted Critical
Publication of CN108076009B publication Critical patent/CN108076009B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明实施例公开了一种资源共享方法、装置及系统,管理设备与至少一台分享源设备建立绑定关系;当第一设备需要访问分享源设备中的资源时,第一设备向分享源设备发送资源共享请求,分享源设备向管理设备发送资源共享提示信息,管理设备根据提示信息中携带的第一设备的标识信息,判断第一设备是否合法,如果是,向分享源设备发送第一指令,分享源设备向第一设备授予访问自身资源的权限。由此可见,本方案中不需要管理员预先在各台设备中进行访问权限的配置,操作简单不易出错。

The embodiment of the present invention discloses a resource sharing method, device and system. The management device establishes a binding relationship with at least one sharing source device; when the first device needs to access resources in the sharing source device, the first device sends The device sends a resource sharing request, and the sharing source device sends a resource sharing prompt message to the management device. The management device judges whether the first device is legal according to the identification information of the first device carried in the prompt message, and if so, sends the first resource sharing message to the sharing source device. Instructions, the sharing source device grants the first device the right to access its own resources. It can be seen that in this solution, the administrator does not need to configure the access rights in each device in advance, and the operation is simple and error-free.

Description

一种资源共享方法、装置及系统A resource sharing method, device and system

技术领域technical field

本发明涉及电子设备技术领域,特别涉及一种资源共享方法、装置及系统。The present invention relates to the technical field of electronic equipment, in particular to a resource sharing method, device and system.

背景技术Background technique

现有的资源共享方案大致如下:管理员预先在各台设备中进行访问权限的配置;当设备A需要访问设备B中的资源时,设备A向设备B发送资源共享请求;设备B根据管理员为其配置的权限,判断该请求是否合法(也就是判断设备A是否有权限访问设备B),如果合法,设备B与设备A共享自身的部分或者全部资源,这样设备A便可以访问设备B共享的资源。The existing resource sharing scheme is roughly as follows: the administrator configures the access rights in each device in advance; when device A needs to access the resources in device B, device A sends a resource sharing request to device B; According to the permissions configured for it, determine whether the request is legal (that is, determine whether device A has permission to access device B). If it is legal, device B shares some or all of its resources with device A, so that device A can access the resources shared by device B. Resources.

上述方案中,需要管理员人工在各台设备中进行访问权限的配置,操作繁琐容易出错。In the above solution, the administrator needs to manually configure the access rights in each device, and the operation is cumbersome and error-prone.

发明内容Contents of the invention

本发明实施例的目的在于提供一种资源共享方法、装置及系统,操作简单不容易出错。The purpose of the embodiments of the present invention is to provide a resource sharing method, device and system, which are easy to operate and less prone to errors.

为达到上述目的,本发明实施例公开了一种资源共享方法,应用于管理设备,所述方法包括:In order to achieve the above purpose, the embodiment of the present invention discloses a resource sharing method, which is applied to management devices, and the method includes:

与至少一台分享源设备建立绑定关系;Establish a binding relationship with at least one shared source device;

接收资源共享提示信息,其中,所述提示信息为当前分享源设备接收到第一设备发送的资源共享请求后发送的,所述提示信息中携带有所述第一设备的标识信息;所述当前分享源设备为与所述管理设备建立绑定关系的分享源设备;receiving resource sharing prompt information, wherein the prompt information is sent by the current sharing source device after receiving the resource sharing request sent by the first device, and the prompt information carries the identification information of the first device; the current The sharing source device is a sharing source device that establishes a binding relationship with the management device;

根据所述第一设备的标识信息,判断所述第一设备是否合法;judging whether the first device is legitimate according to the identification information of the first device;

如果是,向所述当前分享源设备发送第一指令,以使所述当前分享源设备向所述第一设备授予访问自身资源的权限。If so, sending a first instruction to the current source device for sharing, so that the current source device for sharing grants the first device a permission to access its own resources.

可选的,在判断所述第一设备不合法的情况下,所述方法还可以包括:Optionally, when it is judged that the first device is illegal, the method may further include:

向所述当前分享源设备发送第二指令,以使所述当前分享源设备断开与所述第一设备的连接。Sending a second instruction to the current source device for sharing, so that the current source device for sharing is disconnected from the first device.

可选的,所述与至少一台分享源设备建立绑定关系的步骤可以包括:Optionally, the step of establishing a binding relationship with at least one shared source device may include:

接收至少一台分享源设备发送的图形标识信息,所述图形标识信息为分享源设备根据自身网络连接信息生成的;receiving graphic identification information sent by at least one sharing source device, the graphic identification information being generated by the sharing source device according to its own network connection information;

针对所接收到的每个图形标识信息,对该图形标识信息进行识别,得到网络连接信息;For each graphic identification information received, identify the graphic identification information to obtain network connection information;

判断所述网络连接信息是否合法;judging whether the network connection information is legal;

如果是,将该图形标识信息对应的分享源设备确定为合法分享源设备;If so, determine the sharing source device corresponding to the graphic identification information as a legitimate sharing source device;

存储所述合法分享源设备的标识信息;storing the identification information of the legally shared source device;

向所述合法分享源设备发送存储成功的消息,以使所述合法分享源设备存储所述管理设备的标识信息,并根据所存储的标识信息,确定与自身建立绑定关系的管理设备;向所确定的管理设备发送所述资源共享提示信息。Sending a successful storage message to the legal sharing source device, so that the legal sharing source device stores the identification information of the management device, and determines the management device that has established a binding relationship with itself according to the stored identification information; The determined management device sends the resource sharing prompt information.

可选的,所述资源共享提示信息中还携带有所述当前分享源设备的标识信息;在所述接收资源共享提示信息的步骤之后,还包括:Optionally, the resource sharing prompt information also carries the identification information of the current sharing source device; after the step of receiving the resource sharing prompt information, it further includes:

在存储的合法分享源设备的标识信息中查找所述当前分享源设备的标识信息;Find the identification information of the current sharing source device in the stored identification information of the legal sharing source device;

如果查找到,执行所述根据所述第一设备的标识信息,判断所述第一设备是否合法的步骤;If found, execute the step of judging whether the first device is legitimate according to the identification information of the first device;

所述向所述当前分享源设备发送第一指令的步骤包括:The step of sending a first instruction to the current sharing source device includes:

根据所查找到的标识信息,确定当前分享源设备;Determine the current sharing source device according to the identified identification information;

向所确定的当前分享源设备发送第一指令。Send the first instruction to the determined current sharing source device.

可选的,所述网络连接信息为第一信息或者第二信息,其中,所述第一信息为分享源设备接入其所在网络的账户信息,所述第二信息为分享源设备的地址信息;Optionally, the network connection information is first information or second information, wherein the first information is the account information of the sharing source device to access the network where it is located, and the second information is the address information of the sharing source device ;

在所述网络连接信息为第一信息的情况下,所述判断所述网络连接信息是否合法的步骤可以包括:When the network connection information is the first information, the step of judging whether the network connection information is legal may include:

判断分享源设备接入其所在网络的账户信息是否与所述管理设备接入其所在网络的账户信息相同,如果是,所述网络连接信息合法;Judging whether the account information of the sharing source device accessing its network is the same as the account information of the management device accessing its network, if yes, the network connection information is legal;

在所述网络连接信息为第二信息的情况下,所述判断所述网络连接信息是否合法的步骤包括:When the network connection information is the second information, the step of judging whether the network connection information is legal includes:

判断分享源设备的地址信息是否在合法网段,如果是,所述网络连接信息合法。Judging whether the address information of the sharing source device is in a legal network segment, if yes, the network connection information is legal.

为达到上述目的,本发明实施例还公开了一种资源共享方法,应用于分享源设备,所述方法包括:In order to achieve the above purpose, the embodiment of the present invention also discloses a resource sharing method, which is applied to sharing source devices, and the method includes:

与管理设备建立绑定关系;Establish a binding relationship with the management device;

接收第一设备发送的资源共享请求;receiving a resource sharing request sent by the first device;

向所述管理设备发送资源共享提示信息,所述提示信息中携带有所述第一设备的标识信息;sending resource sharing prompt information to the management device, where the prompt information carries identification information of the first device;

接收到所述管理设备发送的第一指令后,向所述第一设备授予访问自身资源的权限;其中,所述第一指令为所述管理设备根据所述第一设备的标识信息判断所述第一设备合法的情况下,向所述分享源设备发送的。After receiving the first instruction sent by the management device, grant the first device the right to access its own resources; wherein the first instruction is that the management device judges the When the first device is legal, it is sent to the sharing source device.

可选的,所述方法还可以包括:Optionally, the method may also include:

接收到所述管理设备发送的第二指令后,断开与所述第一设备的连接;其中,所述第二指令为所述管理设备根据所述第一设备的标识信息判断所述第一设备不合法的情况下,向所述分享源设备发送的。After receiving the second instruction sent by the management device, disconnect the connection with the first device; wherein, the second instruction is that the management device judges that the first If the device is illegal, it is sent to the sharing source device.

可选的,所述方法还可以包括:Optionally, the method may also include:

在断开与所述第一设备的连接之后的预设时长内接收到所述第一设备发送的资源共享请求时,拒绝与所述第一设备建立连接。When receiving a resource sharing request sent by the first device within a preset time period after the connection with the first device is disconnected, refusing to establish a connection with the first device.

可选的,在所述向管理设备发送资源共享提示信息的步骤之前,还包括:Optionally, before the step of sending the resource sharing prompt information to the management device, the method further includes:

根据自身网络连接信息,生成图形标识信息;Generate graphic identification information according to its own network connection information;

将所述图形标识信息发送给管理设备,以使所述管理设备对所述图形标识信息进行识别,得到所述网络连接信息,判断所述网络连接信息是否合法,如果合法,将所述分享源设备确定为合法分享源设备,并存储所述分享源设备的标识信息;Send the graphic identification information to the management device, so that the management device can identify the graphic identification information, obtain the network connection information, judge whether the network connection information is legal, and if legal, share the source The device is determined to be a legitimate sharing source device, and stores the identification information of the sharing source device;

接收所述管理设备发送的存储成功的消息;其中,所述存储成功的消息为所述管理设备存储所述分享源设备的标识信息后发送的;receiving a successful storage message sent by the management device; wherein the successful storage message is sent by the management device after storing the identification information of the sharing source device;

存储所述管理设备的标识信息;storing the identification information of the management device;

所述向管理设备发送资源共享提示信息的步骤,包括:The step of sending resource sharing prompt information to the management device includes:

根据所存储的标识信息,确定与自身建立绑定关系的管理设备;Determine the management device that establishes a binding relationship with itself according to the stored identification information;

向所确定的管理设备发送所述资源共享提示信息。Send the resource sharing prompt information to the determined management device.

可选的,所述根据自身网络连接信息,生成图形标识信息的步骤可以包括:Optionally, the step of generating graphic identification information according to its own network connection information may include:

根据接入自身所在网络的账户信息,生成图形标识信息;Generate graphic identification information according to the account information connected to the network where it is located;

或者,根据自身地址信息,生成图形标识信息。Or, generate graphic identification information according to its own address information.

为达到上述目的,本发明实施例还公开了一种资源共享装置,应用于管理设备,所述装置包括:In order to achieve the above purpose, the embodiment of the present invention also discloses a resource sharing device, which is applied to management equipment, and the device includes:

第一绑定模块,用于与至少一台分享源设备建立绑定关系;A first binding module, configured to establish a binding relationship with at least one shared source device;

第一接收模块,用于接收资源共享提示信息,其中,所述提示信息为当前分享源设备接收到第一设备发送的资源共享请求后发送的,所述提示信息中携带有所述第一设备的标识信息;所述当前分享源设备为与所述管理设备建立绑定关系的分享源设备;The first receiving module is configured to receive resource sharing prompt information, wherein the prompt information is sent by the current sharing source device after receiving the resource sharing request sent by the first device, and the prompt information carries the first device identification information; the current sharing source device is a sharing source device that establishes a binding relationship with the management device;

判断模块,用于根据所述第一设备的标识信息,判断所述第一设备是否合法;A judging module, configured to judge whether the first device is legitimate according to the identification information of the first device;

第一发送模块,用于当所述判断模块判断结果为是时,向所述当前分享源设备发送第一指令,以使所述当前分享源设备向所述第一设备授予访问自身资源的权限。A first sending module, configured to send a first instruction to the current sharing source device when the judgment result of the judging module is yes, so that the current sharing source device grants the first device the right to access its own resources .

可选的,所述装置还可以包括:Optionally, the device may also include:

第二发送模块,用于当所述判断模块判断结果为否时,向所述分享源设备发送第二指令,以使所述当前分享源设备断开与所述第一设备的连接。The second sending module is configured to send a second instruction to the sharing source device when the judgment result of the judging module is negative, so that the current sharing source device disconnects from the first device.

可选的,所述第一绑定模块,可以包括:Optionally, the first binding module may include:

接收子模块,用于接收至少一台分享源设备发送的图形标识信息,所述图形标识信息为分享源设备根据自身网络连接信息生成的;The receiving sub-module is configured to receive graphic identification information sent by at least one sharing source device, where the graphic identification information is generated by the sharing source device according to its own network connection information;

识别子模块,用于针对所接收到的每个图形标识信息,对该图形标识信息进行识别,得到网络连接信息;The identification sub-module is used to identify the graphic identification information for each received graphic identification information to obtain network connection information;

判断子模块,用于判断所述网络连接信息是否合法;A judging submodule, configured to judge whether the network connection information is legal;

确定子模块,用于当所述判断子模块判断结果为是时,将该图形标识信息对应的分享源设备确定为合法分享源设备;A determining submodule, configured to determine the sharing source device corresponding to the graphic identification information as a legitimate sharing source device when the judgment result of the judging submodule is yes;

存储子模块,用于存储所述合法分享源设备的标识信息;A storage submodule, configured to store the identification information of the legally shared source device;

发送子模块,用于向所述合法分享源设备发送存储成功的消息,以使所述合法分享源设备存储所述管理设备的标识信息,并根据所存储的标识信息,确定与自身建立绑定关系的管理设备;向所确定的管理设备发送所述资源共享提示信息。The sending sub-module is configured to send a successful storage message to the legal sharing source device, so that the legal sharing source device stores the identification information of the management device, and determines to establish a binding with itself according to the stored identification information The management device of the relationship; sending the resource sharing prompt information to the determined management device.

可选的,所述资源共享提示信息中还携带有所述当前分享源设备的标识信息;所述装置还可以包括:Optionally, the resource sharing prompt information also carries identification information of the current sharing source device; the apparatus may further include:

查找模块,用于在存储的合法分享源设备的标识信息中查找所述当前分享源设备的标识信息;如果查找到,触发所述判断模块;A search module, configured to search for the identification information of the current sharing source device in the stored identification information of the legal sharing source device; if found, trigger the judgment module;

所述第一发送模块,具体用于:The first sending module is specifically used for:

根据所查找到的标识信息,确定当前分享源设备;Determine the current sharing source device according to the identified identification information;

向所确定的当前分享源设备发送第一指令。Send the first instruction to the determined current sharing source device.

可选的,所述网络连接信息为第一信息或者第二信息,其中,所述第一信息为分享源设备接入其所在网络的账户信息,所述第二信息为分享源设备的地址信息;Optionally, the network connection information is first information or second information, wherein the first information is the account information of the sharing source device to access the network where it is located, and the second information is the address information of the sharing source device ;

在所述网络连接信息为第一信息的情况下,所述判断子模块,具体用于:In the case where the network connection information is the first information, the judging submodule is specifically used for:

判断分享源设备接入其所在网络的账户信息是否与所述管理设备接入其所在网络的账户信息相同,如果是,所述网络连接信息合法;Judging whether the account information of the sharing source device accessing its network is the same as the account information of the management device accessing its network, if yes, the network connection information is legal;

在所述网络连接信息为第二信息的情况下,所述判断子模块,具体用于:In the case where the network connection information is the second information, the judging submodule is specifically used for:

判断分享源设备的地址信息是否在合法网段,如果是,所述网络连接信息合法。Judging whether the address information of the sharing source device is in a legal network segment, if yes, the network connection information is legal.

为达到上述目的,本发明实施例还公开了一种资源共享装置,应用于分享源设备,所述装置包括:In order to achieve the above purpose, the embodiment of the present invention also discloses a resource sharing device, which is applied to sharing source equipment, and the device includes:

第二绑定模块,用于与管理设备建立绑定关系;The second binding module is configured to establish a binding relationship with the management device;

第二接收模块,用于接收第一设备发送的资源共享请求;The second receiving module is configured to receive the resource sharing request sent by the first device;

第三发送模块,用于向所述管理设备发送资源共享提示信息,所述提示信息中携带有所述第一设备的标识信息;A third sending module, configured to send resource sharing prompt information to the management device, where the prompt information carries identification information of the first device;

授权模块,用于接收到所述管理设备发送的第一指令后,向所述第一设备授予访问自身资源的权限;其中,所述第一指令为所述管理设备根据所述第一设备的标识信息判断所述第一设备合法的情况下,向所述分享源设备发送的。An authorization module, configured to grant the first device the right to access its own resources after receiving the first instruction sent by the management device; When the identification information judges that the first device is legitimate, it is sent to the sharing source device.

可选的,所述装置还可以包括:Optionally, the device may also include:

断开连接模块,用于接收到所述管理设备发送的第二指令后,断开与所述第一设备的连接;其中,所述第二指令为所述管理设备根据所述第一设备的标识信息判断所述第一设备不合法的情况下,向所述分享源设备发送的。A disconnection module, configured to disconnect from the first device after receiving a second instruction sent by the management device; wherein, the second instruction is that the management device When the identification information judges that the first device is illegal, it is sent to the sharing source device.

可选的,所述装置还可以包括:Optionally, the device may also include:

拒绝连接模块,用于在所述断开连接模块断开与所述第一设备的连接之后的预设时长内接收到所述第一设备发送的资源共享请求时,拒绝与所述第一设备建立连接。A connection refusing module, configured to refuse to communicate with the first device when receiving a resource sharing request sent by the first device within a preset time period after the disconnection module disconnects the connection with the first device establish connection.

可选的,所述装置还可以包括:Optionally, the device may also include:

生成模块,用于根据自身网络连接信息,生成图形标识信息;A generating module, configured to generate graphic identification information according to its own network connection information;

第四发送模块,用于将所述图形标识信息发送给管理设备,以使所述管理设备对所述图形标识信息进行识别,得到所述网络连接信息,判断所述网络连接信息是否合法,如果合法,将所述分享源设备确定为合法分享源设备,并存储所述分享源设备的标识信息;A fourth sending module, configured to send the graphic identification information to a management device, so that the management device can identify the graphic identification information, obtain the network connection information, and judge whether the network connection information is legal, if legal, determining the sharing source device as a legal sharing source device, and storing the identification information of the sharing source device;

第三接收模块,用于接收所述管理设备发送的存储成功的消息;其中,所述存储成功的消息为所述管理设备存储所述分享源设备的标识信息后发送的;A third receiving module, configured to receive a successful storage message sent by the management device; wherein, the successful storage message is sent by the management device after storing the identification information of the sharing source device;

第二存储模块,用于存储所述管理设备的标识信息;A second storage module, configured to store the identification information of the management device;

所述第三发送模块,具体用于:The third sending module is specifically used for:

根据所存储的标识信息,确定与自身建立绑定关系的管理设备;Determine the management device that establishes a binding relationship with itself according to the stored identification information;

向所确定的管理设备发送所述资源共享提示信息。Send the resource sharing prompt information to the determined management device.

可选的,所述生成模块,具体可以用于:Optionally, the generating module can specifically be used for:

根据接入自身所在网络的账户信息,生成图形标识信息;Generate graphic identification information according to the account information connected to the network where it is located;

或者,根据自身地址信息,生成图形标识信息。Or, generate graphic identification information according to its own address information.

为达到上述目的,本发明实施例还公开了一种资源共享系统,包括:分享源设备、第一设备、管理设备,其中,To achieve the above purpose, the embodiment of the present invention also discloses a resource sharing system, including: a sharing source device, a first device, and a management device, wherein,

所述第一设备,用于向所述分享源设备发送资源共享请求;The first device is configured to send a resource sharing request to the sharing source device;

所述分享源设备,用于与所述管理设备建立绑定关系;接收所述资源共享请求;向所述管理设备发送资源共享提示信息,所述提示信息中携带有所述第一设备的标识信息;接收到所述管理设备发送的第一指令后,向所述第一设备授予访问自身资源的权限;The sharing source device is configured to establish a binding relationship with the management device; receive the resource sharing request; send resource sharing prompt information to the management device, and the prompt information carries the identifier of the first device information; after receiving the first instruction sent by the management device, granting the first device the right to access its own resources;

所述管理设备,用于与至少一台分享源设备建立绑定关系;接收当前分享源设备发送的资源共享提示信息;根据所述提示信息中携带的所述第一设备的标识信息,判断所述第一设备是否合法;如果是,向所述当前分享源设备发送第一指令。The management device is configured to establish a binding relationship with at least one sharing source device; receive resource sharing prompt information sent by the current sharing source device; Whether the first device is legal; if yes, send a first instruction to the current sharing source device.

可选的,所述管理设备,还可以用于在判断所述第一设备不合法的情况下,向当前分享源设备发送第二指令;Optionally, the management device may also be configured to send a second instruction to the current sharing source device when it is judged that the first device is illegal;

所述分享源设备,还可以用于接收到所述管理设备发送的第二指令后,断开与所述第一设备的连接。The sharing source device may also be configured to disconnect from the first device after receiving the second instruction sent by the management device.

应用本发明所示实施例,管理设备与至少一台分享源设备建立绑定关系;当第一设备需要访问分享源设备中的资源时,第一设备向分享源设备发送资源共享请求,分享源设备向管理设备发送资源共享提示信息,管理设备根据提示信息中携带的第一设备的标识信息,判断第一设备是否合法,如果是,向分享源设备发送第一指令,分享源设备向第一设备授予访问自身资源的权限。由此可见,本方案中不需要管理员预先在各台设备中进行访问权限的配置,操作简单不易出错。Applying the embodiment shown in the present invention, the management device establishes a binding relationship with at least one sharing source device; when the first device needs to access resources in the sharing source device, the first device sends a resource sharing request to the sharing source device, and the sharing source The device sends resource sharing prompt information to the management device, and the management device judges whether the first device is legal according to the identification information of the first device carried in the prompt information, and if so, sends the first instruction to the sharing source device, and the sharing source device sends the first instruction to the first device. A device grants access to its own resources. It can be seen that in this solution, the administrator does not need to configure the access rights in each device in advance, and the operation is simple and error-free.

当然,实施本发明的任一产品或方法必不一定需要同时达到以上所述的所有优点。Of course, implementing any product or method of the present invention does not necessarily need to achieve all the above-mentioned advantages at the same time.

附图说明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 schematic structural diagram of a resource sharing system provided by an embodiment of the present invention;

图2为本发明实施例提供的一种资源共享信令图;FIG. 2 is a resource sharing signaling diagram provided by an embodiment of the present invention;

图3为本发明实施例提供的一种应用于管理设备的资源共享方法的流程示意图;FIG. 3 is a schematic flowchart of a resource sharing method applied to management devices provided by an embodiment of the present invention;

图4为本发明实施例提供的一种应用于分享源设备的资源共享方法的流程示意图;FIG. 4 is a schematic flowchart of a resource sharing method applied to a shared source device provided by an embodiment of the present invention;

图5为本发明实施例提供的一种应用于管理设备的资源共享装置的结构示意图;FIG. 5 is a schematic structural diagram of a resource sharing device applied to management devices provided by an embodiment of the present invention;

图6为本发明实施例提供的一种应用于分享源设备的资源共享装置的结构示意图。FIG. 6 is a schematic structural diagram of a resource sharing apparatus applied to a sharing source device provided by an embodiment 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 creative efforts fall within the protection scope of the present invention.

为了解决上述技术问题,本发明实施例提供了一种资源共享方法、装置及系统,该方法及装置可以应用于该系统。该系统可以如图1所示,包括管理设备、第一设备和分享源设备,分享源设备可以有一台或多台,在此不做限定。In order to solve the above technical problems, the embodiment of the present invention provides a resource sharing method, device and system, and the method and device can be applied to the system. The system can be shown in FIG. 1 , including a management device, a first device, and a sharing source device. There can be one or more sharing source devices, which is not limited here.

管理设备和分享源设备为属于同一用户下的设备。假设用户X拥有多台设备,比如手机、PC、PAD等等,可以将其中一台设置为管理设备,并将这多台设备中的全部设备或部分设备设置为分享源设备。比如,可以将手机设置为管理设备,将PC和PAD设置为分享源设备。The management device and the sharing source device belong to the same user. Assuming that user X has multiple devices, such as mobile phone, PC, PAD, etc., one of them can be set as the management device, and all or part of the multiple devices can be set as the sharing source device. For example, the mobile phone can be set as the management device, and the PC and PAD can be set as the sharing source devices.

第一设备为属于另一用户的设备。假设用户Y需要访问用户X的设备中的资源,则将用户Y使用的设备称为第一设备。The first device is a device belonging to another user. Assuming that user Y needs to access resources in user X's device, the device used by user Y is called the first device.

在本发明所示实施例提供的系统中,资源共享信令图可以如图2所示:In the system provided by the embodiment shown in the present invention, the resource sharing signaling diagram may be as shown in Figure 2:

管理设备与分享源设备建立绑定关系;第一设备向分享源设备(当前分享源设备)发送资源共享请求;分享源设备(当前分享源设备)在接收到该资源共享请求后向管理设备发送资源共享提示信息;管理设备根据该资源共享提示信息中携带的第一设备的标识信息,判断第一设备是否合法,如果是,向分享源设备(当前分享源设备)发送第一指令;分享源设备(当前分享源设备)在接收到第一指令后,向第一设备授予访问自身资源的权限。The management device establishes a binding relationship with the sharing source device; the first device sends a resource sharing request to the sharing source device (the current sharing source device); the sharing source device (the current sharing source device) sends the resource sharing request to the management device after receiving the resource sharing request Resource sharing prompt information; the management device judges whether the first device is legal according to the identification information of the first device carried in the resource sharing prompt information, and if so, sends the first instruction to the sharing source device (current sharing source device); the sharing source After receiving the first instruction, the device (the current sharing source device) grants the first device the right to access its own resources.

在本实施例中,分享源设备向第一设备授予访问自身资源的权限,可以包括:分享源设备允许第一设备对自身存储空间的内容进行访问、下载、管理,以及允许第一设备对自身网络流量的分享,等等。In this embodiment, the sharing source device grants the first device the right to access its own resources, which may include: the sharing source device allows the first device to access, download, and manage the content of its own storage space, and allows the first device to access its own resources. Sharing of network traffic, etc.

由此可见,应用本发明所示实施例,不需要管理员预先在各台设备中进行访问权限的配置,操作简单不易出错。It can be seen that, by applying the embodiment shown in the present invention, the administrator does not need to configure the access rights in each device in advance, and the operation is simple and error-free.

下面对本发明实施例提供的资源共享方法进行详细说明。The resource sharing method provided by the embodiment of the present invention will be described in detail below.

图3为本发明实施例提供的一种应用于管理设备的资源共享方法的流程示意图,包括:FIG. 3 is a schematic flowchart of a resource sharing method applied to management devices provided by an embodiment of the present invention, including:

S301:与至少一台分享源设备建立绑定关系。S301: Establish a binding relationship with at least one shared source device.

如上所述,分享源设备与管理设备属于同一个用户,分享源设备可以有多台,或者也可以只有一台。管理设备预先与分享源设备建立绑定关系。管理设备与分享源设备建立绑定关系可以采用多种方式,比如,分别在管理设备及分享源设备中配置对方的设备信息,或者,分别在管理设备及分享源设备中运行同一款软件,通过该软件分别告知管理设备及分享源设备的身份信息,并建立绑定关系,等等,在此不做限定。As mentioned above, the sharing source device and the management device belong to the same user, and there may be multiple or only one sharing source device. The management device establishes a binding relationship with the sharing source device in advance. There are many ways to establish the binding relationship between the management device and the sharing source device. For example, configure the device information of the other party in the management device and the sharing source device respectively, or run the same software on the management device and the sharing source device respectively, through The software notifies the identity information of the management device and the sharing source device respectively, and establishes a binding relationship, etc., which are not limited here.

作为一种实施方式,管理设备与分享源设备建立绑定关系的步骤可以包括:As an implementation manner, the step of establishing a binding relationship between the management device and the sharing source device may include:

接收至少一台分享源设备发送的图形标识信息,所述图形标识信息为分享源设备根据自身网络连接信息生成的;receiving graphic identification information sent by at least one sharing source device, the graphic identification information being generated by the sharing source device according to its own network connection information;

针对所接收到的每个图形标识信息,对该图形标识信息进行识别,得到网络连接信息;For each graphic identification information received, identify the graphic identification information to obtain network connection information;

判断所述网络连接信息是否合法;judging whether the network connection information is legal;

如果是,将该图形标识信息对应的分享源设备确定为合法分享源设备;If so, determine the sharing source device corresponding to the graphic identification information as a legitimate sharing source device;

存储所述合法分享源设备的标识信息;storing the identification information of the legally shared source device;

向所述合法分享源设备发送存储成功的消息,以使所述合法分享源设备存储所述管理设备的标识信息,并根据所存储的标识信息,确定与自身建立绑定关系的管理设备;向所确定的管理设备发送所述资源共享提示信息。Sending a successful storage message to the legal sharing source device, so that the legal sharing source device stores the identification information of the management device, and determines the management device that has established a binding relationship with itself according to the stored identification information; The determined management device sends the resource sharing prompt information.

S302:接收资源共享提示信息。其中,所述提示信息为当前分享源设备接收到第一设备发送的资源共享请求后发送的,所述提示信息中携带有所述第一设备的标识信息。当前分享源设备为与管理设备建立绑定关系的分享源设备。S302: Receive resource sharing prompt information. Wherein, the prompt information is sent by the current sharing source device after receiving the resource sharing request sent by the first device, and the prompt information carries the identification information of the first device. The current sharing source device is a sharing source device that has established a binding relationship with the management device.

在分享源设备与管理设备建立绑定关系后,分享源设备在接收到资源共享请求后便可以向管理设备发送资源共享提示信息。After the sharing source device establishes a binding relationship with the management device, the sharing source device may send resource sharing prompt information to the management device after receiving a resource sharing request.

上述实施方式中,在分享源设备与管理设备建立绑定关系的过程中,管理设备中可以存储分享源设备的标识信息。在该实施方式下,资源共享提示信息中还可以携带有发送该资源共享提示信息的当前分享源设备的标识信息。这样,管理设备在接收到资源共享提示信息后,可以在存储的合法分享源设备的标识信息中查找该当前分享源设备的标识信息,如果查找到,表示该分享源设备合法,管理设备继续执行后续步骤;相反,如果未查找到,表示该分享源设备非法,管理设备可以不进行后续处理。In the above implementation manner, during the process of establishing a binding relationship between the sharing source device and the management device, the management device may store the identification information of the sharing source device. In this embodiment, the resource sharing prompt information may also carry identification information of the current sharing source device that sends the resource sharing prompt information. In this way, after receiving the resource sharing prompt information, the management device can search for the identification information of the current sharing source device in the stored identification information of the legal sharing source device. If found, it means that the sharing source device is legal, and the management device continues to execute Subsequent steps; on the contrary, if it is not found, it means that the sharing source device is illegal, and the management device does not need to perform subsequent processing.

分享源设备的标识信息可以为分享源设备的名称、ID、地址等可用于唯一标识该分享源设备的信息。The identification information of the sharing source device may be information such as the name, ID, and address of the sharing source device that can be used to uniquely identify the sharing source device.

上述实施方式的具体过程可以包括:The specific process of the above implementation manner may include:

分享源设备根据自身网络连接信息生成图形标识信息,并将该图形标识信息发送给管理设备,该图形标识信息可以为二维码;The sharing source device generates graphic identification information according to its own network connection information, and sends the graphic identification information to the management device. The graphic identification information can be a two-dimensional code;

管理设备接收各台分享源设备发送的图形标识信息;针对所接收到的每个图形标识信息,对该图形标识信息进行识别,得到网络连接信息;判断所得到网络连接信息是否合法;如果是,将该图形标识信息对应的分享源设备确定为合法分享源设备;存储所述合法分享源设备的标识信息;向所述合法分享源设备发送存储成功的消息;The management device receives the graphic identification information sent by each sharing source device; for each graphic identification information received, it identifies the graphic identification information to obtain the network connection information; judges whether the obtained network connection information is legal; if so, Determining the sharing source device corresponding to the graphic identification information as a legal sharing source device; storing the identification information of the legal sharing source device; sending a message of successful storage to the legal sharing source device;

分享源设备在接收到管理设备发送的存储成功的消息后,存储所述管理设备的标识信息;这样,分享源设备在接收到第一设备发送的资源共享请求后,便可以根据自身所存储的标识信息,确定与自身建立绑定关系的管理设备;向所确定的管理设备发送所述资源共享提示信息。After receiving the successful storage message sent by the management device, the sharing source device stores the identification information of the management device; in this way, after receiving the resource sharing request sent by the first device, the sharing source device can The identification information is used to determine the management device that has established a binding relationship with itself; and send the resource sharing prompt information to the determined management device.

在上述过程中,网络连接信息可以为第一信息或者第二信息,其中,所述第一信息为分享源设备接入其所在网络的账户信息,所述第二信息为分享源设备的地址信息。In the above process, the network connection information may be the first information or the second information, wherein the first information is the account information of the sharing source device accessing its network, and the second information is the address information of the sharing source device .

该网络可以为无线局域网(WLAN),假设应用场景为用户的家庭住宅中,该住宅中仅设置有一个WLAN,则可以认为各台分享源设备接入WLAN的账户信息相同。该地址信息可以为分享源设备的IP地址,也可以为物理地址,或者其他可以访问分享源设备的地址。The network may be a wireless local area network (WLAN). Assuming that the application scenario is a user's family residence, and only one WLAN is set in the residence, it can be considered that the account information of each sharing source device to access the WLAN is the same. The address information may be the IP address of the sharing source device, or may be a physical address, or other addresses that can access the sharing source device.

在所述网络连接信息为第一信息的情况下,所述判断所述网络连接信息是否合法的步骤可以包括:When the network connection information is the first information, the step of judging whether the network connection information is legal may include:

判断分享源设备接入其所在网络的账户信息是否与所述管理设备接入其所在网络的账户信息相同,如果是,所述网络连接信息合法。Judging whether the account information of the sharing source device accessing its network is the same as the account information of the management device accessing its network, if yes, the network connection information is legal.

可以理解的是,管理设备及分享源设备属于同一用户,管理设备及分享源设备应接入同一WLAN,因此,正常情况下,分享源设备接入其所在网络的账户信息应当与管理设备接入其所在网络的账户信息相同。It is understandable that the management device and the sharing source device belong to the same user, and the management device and the sharing source device should be connected to the same WLAN. The account information of their network is the same.

在所述网络连接信息为第二信息的情况下,所述判断所述网络连接信息是否合法的步骤包括:When the network connection information is the second information, the step of judging whether the network connection information is legal includes:

判断分享源设备的地址信息是否在合法网段,如果是,所述网络连接信息合法。Judging whether the address information of the sharing source device is in a legal network segment, if yes, the network connection information is legal.

需要说明的是,管理设备存储分享源设备的标识信息也可以采用其他方式,比如,分享源设备直接将自身标识信息发送给管理设备,等等,在此不做限定。It should be noted that the management device may store the identification information of the sharing source device in other ways, for example, the sharing source device directly sends its own identification information to the management device, etc., which are not limited here.

S303:根据所述第一设备的标识信息,判断所述第一设备是否合法,如果是,执行S304。S303: Determine whether the first device is legal according to the identification information of the first device, and if yes, perform S304.

如上所述,资源共享提示信息中携带有第一设备的标识信息,第一设备的标识信息可以为第一设备的名称、ID、地址等可用于唯一标识该第一设备的信息。As described above, the resource sharing prompt information carries the identification information of the first device, and the identification information of the first device may be information such as the name, ID, and address of the first device that can be used to uniquely identify the first device.

具体的,管理设备判断第一设备是否合法,可以将第一设备的标识信息展示给管理员,并接收管理员发送的允许访问的指令或者不允许访问的指令。如果接收到的指令为允许访问的指令,则表示第一设备合法,如果接收到的指令为不允许访问的指令,则表示第一设备不合法。Specifically, the management device determines whether the first device is legitimate, may present the identification information of the first device to the administrator, and receive an instruction to allow access or an instruction to not allow access sent by the administrator. If the received instruction is an instruction that allows access, it means that the first device is legal; if the received instruction is an instruction that does not allow access, it means that the first device is not legal.

或者,也可以采用其他方式判断第一设备是否合法,比如,管理设备中预先存储合法第一设备的标识信息,管理设备判断接收到的资源共享提示信息中携带的第一设备的标识信息是否与存储的合法第一设备的标识信息相匹配,如果是,表示该第一设备合法。Alternatively, other methods may be used to determine whether the first device is legal. For example, the management device pre-stores the identification information of the legal first device, and the management device determines whether the identification information of the first device carried in the received resource sharing prompt information is consistent with The stored identification information of the legal first device matches, and if so, it indicates that the first device is legal.

S304:向所述当前分享源设备发送第一指令,以使所述分享源设备向所述第一设备授予访问自身资源的权限。S304: Send a first instruction to the current sharing source device, so that the sharing source device grants the first device a permission to access its own resources.

如果管理设备判断第一设备合法,管理设备向当前分享源设备发送第一指令;如果管理设备判断第二设备不合法,管理设备可以不作处理,也可以向当前分享源设备发送第二指令。If the management device judges that the first device is legal, the management device sends a first instruction to the current sharing source device; if the management device judges that the second device is illegal, the management device may not process it, or may send a second instruction to the current sharing source device.

当前分享源设备在接收到第一指令后,向第一设备授予访问自身资源的权限。After receiving the first instruction, the current sharing source device grants the first device the right to access its own resources.

如果当前分享源设备向管理设备发送资源共享提示信息之后的预设时长内,未接收到管理设备发送的指令,则当前分享源设备可以拒绝向第一设备授予访问自身资源的权限,并断开与第一设备的连接。If the current sharing source device does not receive the instruction sent by the management device within the preset period of time after sending the resource sharing prompt information to the management device, the current sharing source device may refuse to grant the first device the right to access its own resources, and disconnect A connection to the first device.

当前分享源设备在接收到第二指令后,拒绝向第一设备授予访问自身资源的权限,并断开与第一设备的连接。After receiving the second instruction, the current sharing source device refuses to grant the first device the right to access its own resources, and disconnects from the first device.

在本实施例中,分享源设备对自身资源进行权限设置,仅使有权限的访问者访问自身资源(也就是拒绝与没有权限的第一设备共享自身资源)。权限设置为现有技术,比如,针对没有权限的访问者可以隐藏自身资源,或者显示“没有权限”等提示信息,具体不做限定。In this embodiment, the sharing source device sets permissions on its own resources, so that only authorized visitors can access its own resources (that is, refuse to share its own resources with a first device without permission). The permission setting is an existing technology. For example, for visitors without permission, you can hide your own resources, or display prompt information such as "no permission", which is not specifically limited.

另外,在上述实施方式中,管理设备中存储了合法分享源设备的标识信息,并在存储的合法分享源设备的标识信息中查找当前分享源设备的标识信息;这样,管理设备在向当前分享源设备发送第一指令或者第二指令时,可以根据所查找到的标识信息,确定当前分享源设备;向所确定的当前分享源设备发送第一指令。In addition, in the above embodiments, the management device stores the identification information of the legal sharing source device, and searches for the identification information of the current sharing source device in the stored identification information of the legal sharing source device; When the source device sends the first instruction or the second instruction, it may determine the current sharing source device according to the found identification information; and send the first instruction to the determined current sharing source device.

应用本发明图3所示实施例,管理设备与至少一台分享源设备建立绑定关系;当第一设备需要访问分享源设备中的资源时,第一设备向分享源设备发送资源共享请求,分享源设备向管理设备发送资源共享提示信息,管理设备根据提示信息中携带的第一设备的标识信息,判断第一设备是否合法,如果是,向分享源设备发送第一指令,分享源设备向第一设备授予访问自身资源的权限。由此可见,本方案中不需要管理员预先在各台设备中进行访问权限的配置,操作简单不易出错。Applying the embodiment shown in FIG. 3 of the present invention, the management device establishes a binding relationship with at least one sharing source device; when the first device needs to access resources in the sharing source device, the first device sends a resource sharing request to the sharing source device, The sharing source device sends resource sharing prompt information to the management device, and the management device judges whether the first device is legal according to the identification information of the first device carried in the prompt information, and if so, sends the first instruction to the sharing source device, and the sharing source device sends a The first device grants permission to access its own resources. It can be seen that in this solution, the administrator does not need to configure the access rights in each device in advance, and the operation is simple and error-free.

图4为本发明实施例提供的一种应用于分享源设备的资源共享方法的流程示意图,包括:FIG. 4 is a schematic flowchart of a resource sharing method applied to a shared source device provided by an embodiment of the present invention, including:

S401:与管理设备建立绑定关系。S401: Establish a binding relationship with the management device.

管理设备预先与分享源设备建立绑定关系。管理设备与分享源设备建立绑定关系可以采用多种方式,比如,分别在管理设备及分享源设备中配置对方的设备信息,或者,分别在管理设备及分享源设备中运行同一款软件,通过该软件分别告知管理设备及分享源设备的身份信息,并建立绑定关系,等等,在此不做限定。The management device establishes a binding relationship with the sharing source device in advance. There are many ways to establish the binding relationship between the management device and the sharing source device. For example, configure the device information of the other party in the management device and the sharing source device respectively, or run the same software on the management device and the sharing source device respectively, through The software notifies the identity information of the management device and the sharing source device respectively, and establishes a binding relationship, etc., which are not limited here.

S402:接收第一设备发送的资源共享请求。S402: Receive a resource sharing request sent by the first device.

作为一种实施方式,分享源设备所在网络可以不设置密码保护,这样,任意第一设备便可以与分享源设备建立连接,并向其发送资源共享请求。As an implementation manner, password protection may not be set on the network where the sharing source device is located, so that any first device can establish a connection with the sharing source device and send a resource sharing request to it.

应用这种实施方式,对于请求资源共享的用户(应用第一设备的用户)来说,直接与分享源设备建立连接,非常方便;另外,对于管理员(应用管理设备的用户)来说,第一设备向分享源设备发送资源共享请求后,分享源设备向管理设备发送资源共享提示信息,也就是说,经过管理员授权,第一设备才能访问分享源设备中的资源,管理员可以根据实际情况进行授权或不予授权,操作方便。Applying this implementation mode, it is very convenient for the user requesting resource sharing (the user using the first device) to directly establish a connection with the sharing source device; in addition, for the administrator (the user using the management device), the second After a device sends a resource sharing request to the sharing source device, the sharing source device sends a resource sharing prompt message to the management device, that is, the first device can only access the resources in the sharing source device after being authorized by the administrator. Authorize or not authorize according to the situation, easy to operate.

延续上述例子,用户Y需要访问用户X的PAD中的资源,用户Y使用的第一设备向用户X的PAD(分享源设备)发送资源共享请求。Continuing the above example, user Y needs to access resources in user X's PAD, and the first device used by user Y sends a resource sharing request to user X's PAD (sharing source device).

S403:向管理设备发送资源共享提示信息,所述提示信息中携带有所述第一设备的标识信息。S403: Send resource sharing prompt information to the management device, where the prompt information carries identification information of the first device.

在本实施例中,分享源设备对自身资源进行权限设置,仅使有权限的访问者访问自身资源(也就是拒绝与没有权限的第一设备共享自身资源)。权限设置为现有技术,比如,针对没有权限的访问者可以隐藏自身资源,或者显示“没有权限”等提示信息,具体不做限定。In this embodiment, the sharing source device sets permissions on its own resources, so that only authorized visitors can access its own resources (that is, refuse to share its own resources with a first device without permission). The permission setting is an existing technology. For example, for visitors without permission, you can hide your own resources, or display prompt information such as "no permission", which is not specifically limited.

因此,虽然任意第一设备都可以与分享源设备建立连接,但是建立连接并不表示该第一设备可以访问分享源设备中的资源。分享源设备在接收到第一设备发送的资源共享请求后,向管理设备发送资源共享提示信息。Therefore, although any first device can establish a connection with the sharing source device, establishing a connection does not mean that the first device can access resources in the sharing source device. After receiving the resource sharing request sent by the first device, the sharing source device sends resource sharing prompt information to the management device.

也就是说,用户X的PAD在接收到第一设备发送的资源共享请求后,向用户X的手机发送资源共享提示信息,该提示信息中携带该第一设备的标识信息。That is to say, after receiving the resource sharing request sent by the first device, the PAD of user X sends resource sharing prompt information to user X's mobile phone, and the prompt information carries the identification information of the first device.

用户X的手机接收到该提示信息后,根据该第一设备的标识信息,判断该第一设备是否合法,如果合法,该手机向该PAD发送第一指令;如果不合法,该手机可以不作处理,也可以向该PAD发送第二指令。After receiving the prompt message, user X's mobile phone judges whether the first device is legal according to the identification information of the first device. If it is legal, the mobile phone sends the first instruction to the PAD; if it is not legal, the mobile phone does not need to process it , and may also send a second instruction to the PAD.

S404:接收到所述管理设备发送的第一指令后,向所述第一设备授予访问自身资源的权限。S404: After receiving the first instruction sent by the management device, grant the first device a permission to access its own resources.

因此,分享源设备(用户X的PAD)在接收到第一指令后,向第一设备授予访问自身资源的权限。Therefore, after receiving the first instruction, the sharing source device (the PAD of user X) grants the first device the right to access its own resources.

如果分享源设备向管理设备发送资源共享提示信息之后的预设时长内,未接收到管理设备发送的指令,则分享源设备可以拒绝向第一设备授予访问自身资源的权限,并断开与第一设备的连接。If the sharing source device does not receive the instruction sent by the management device within the preset period of time after sending the resource sharing prompt information to the management device, the sharing source device may refuse to grant the first device the right to access its own resources, and disconnect from the second device. A device connection.

分享源设备在接收到第二指令后,拒绝向第一设备授予访问自身资源的权限,并断开与第一设备的连接。After receiving the second instruction, the sharing source device refuses to grant the first device the right to access its own resources, and disconnects from the first device.

作为一种实施方式,分享源设备在断开与所述第一设备的连接之后的预设时长内接收到所述第一设备发送的资源共享请求时,拒绝与所述第一设备建立连接。As an implementation manner, the sharing source device refuses to establish a connection with the first device when receiving the resource sharing request sent by the first device within a preset time period after disconnecting from the first device.

也就是说,在本实施方式中,分享源设备在与第一设备断开连接后,可以将该第一设备拉入黑名单。并且,在本实施方式中,并不是任意第一设备都可以与分享源设备建立连接,分享源设备在与第一设备建立连接之前,先判断该第一设备是否位于黑名单中,如果否,再与该第一设备建立连接。That is to say, in this implementation manner, after the sharing source device is disconnected from the first device, the first device may be pulled into the blacklist. Moreover, in this embodiment, not any first device can establish a connection with the sharing source device. Before establishing a connection with the first device, the sharing source device first judges whether the first device is in the blacklist, and if not, Then establish a connection with the first device.

在本实施方式中,还可以针对该黑名单中的第一设备设定有效时长,超过有效时长后,该第一设备从该黑名单中清除,也就是说该第一设备又可以与分享源设备建立连接。In this embodiment, the valid time can also be set for the first device in the blacklist. After the valid time is exceeded, the first device will be cleared from the blacklist, that is to say, the first device can share with the sharing source. The device establishes a connection.

作为一种实施方式,在分享源设备与管理设备建立绑定关系后,管理设备中可以存储有分享源设备的标识信息。并且,资源共享提示信息中还携带有发送该资源共享提示信息的当前分享源设备的标识信息。这样,管理设备在接收到资源共享提示信息后,可以在所存储的标识信息中查找该当前分享源设备的标识信息,如果查找到,表示该分享源设备合法,管理设备继续执行后续步骤;相反,如果未查找到,表示该分享源设备非法,管理设备可以不进行后续处理。As an implementation manner, after a binding relationship is established between the sharing source device and the management device, the management device may store identification information of the sharing source device. Moreover, the resource sharing prompt information also carries identification information of the current sharing source device that sends the resource sharing prompt information. In this way, after receiving the resource sharing prompt information, the management device can search for the identification information of the current sharing source device in the stored identification information. If it is found, it means that the sharing source device is legal, and the management device continues to perform subsequent steps; otherwise , if it is not found, it means that the sharing source device is illegal, and the management device does not need to perform subsequent processing.

在本实施方式中,管理设备存储分享源设备的标识信息的过程可以包括:In this embodiment, the process for the management device to store and share the identification information of the source device may include:

分享源设备根据自身网络连接信息生成图形标识信息,并将该图形标识信息发送给管理设备,该图形标识信息可以为二维码;The sharing source device generates graphic identification information according to its own network connection information, and sends the graphic identification information to the management device. The graphic identification information can be a two-dimensional code;

管理设备接收各台分享源设备发送的图形标识信息;针对所接收到的每个图形标识信息,对该图形标识信息进行识别,得到网络连接信息;判断所得到网络连接信息是否合法;如果是,将该图形标识信息对应的分享源设备确定为合法分享源设备;存储所述合法分享源设备的标识信息;向所述合法分享源设备发送存储成功的消息;The management device receives the graphic identification information sent by each sharing source device; for each graphic identification information received, it identifies the graphic identification information to obtain the network connection information; judges whether the obtained network connection information is legal; if so, Determining the sharing source device corresponding to the graphic identification information as a legal sharing source device; storing the identification information of the legal sharing source device; sending a message of successful storage to the legal sharing source device;

分享源设备在接收到管理设备发送的存储成功的消息后,存储所述管理设备的标识信息;这样,分享源设备在接收到第一设备发送的资源共享请求后,便可以根据所存储的标识信息,确定与自身建立绑定关系的管理设备;向所确定的管理设备发送所述资源共享提示信息。After receiving the successful storage message sent by the management device, the sharing source device stores the identification information of the management device; in this way, after receiving the resource sharing request sent by the first device, the sharing source device can information, to determine the management device with which the binding relationship is established; and send the resource sharing prompt information to the determined management device.

在上述过程中,网络连接信息可以为第一信息或者第二信息,其中,所述第一信息为分享源设备接入其所在网络的账户信息,所述第二信息为分享源设备的地址信息。也就是说,分享源设备可以根据接入自身所在网络的账户信息,生成图形标识信息;或者,也可以根据自身地址信息,生成图形标识信息。In the above process, the network connection information may be the first information or the second information, wherein the first information is the account information of the sharing source device accessing its network, and the second information is the address information of the sharing source device . That is to say, the sharing source device can generate graphic identification information according to the account information connected to the network where it is located; or, can also generate graphic identification information according to its own address information.

该网络可以为无线局域网(WLAN),假设应用场景为用户的家庭住宅中,该住宅中仅设置有一个WLAN,则可以认为各台分享源设备接入WLAN的账户信息相同。该地址信息可以为分享源设备的IP地址,也可以为物理地址,或者其他可以访问分享源设备的地址。The network may be a wireless local area network (WLAN). Assuming that the application scenario is a user's family residence, and only one WLAN is set in the residence, it can be considered that the account information of each sharing source device to access the WLAN is the same. The address information may be the IP address of the sharing source device, or may be a physical address, or other addresses that can access the sharing source device.

在所述网络连接信息为第一信息的情况下,所述判断所述网络连接信息是否合法的步骤可以包括:When the network connection information is the first information, the step of judging whether the network connection information is legal may include:

判断分享源设备接入其所在网络的账户信息是否与所述管理设备接入其所在网络的账户信息相同,如果是,所述网络连接信息合法。Judging whether the account information of the sharing source device accessing its network is the same as the account information of the management device accessing its network, if yes, the network connection information is legal.

可以理解的是,管理设备及分享源设备属于同一用户,管理设备及分享源设备应接入同一WLAN,因此,正常情况下,分享源设备接入其所在网络的账户信息应当与管理设备接入其所在网络的账户信息相同。It is understandable that the management device and the sharing source device belong to the same user, and the management device and the sharing source device should be connected to the same WLAN. The account information of their network is the same.

在所述网络连接信息为第二信息的情况下,所述判断所述网络连接信息是否合法的步骤包括:When the network connection information is the second information, the step of judging whether the network connection information is legal includes:

判断分享源设备的地址信息是否在合法网段,如果是,所述网络连接信息合法。Judging whether the address information of the sharing source device is in a legal network segment, if yes, the network connection information is legal.

需要说明的是,管理设备存储分享源设备的标识信息也可以采用其他方式,比如,分享源设备直接将自身标识信息发送给管理设备,等等,在此不做限定。It should be noted that the management device may store the identification information of the sharing source device in other ways, for example, the sharing source device directly sends its own identification information to the management device, etc., which are not limited here.

应用本发明图4所示实施例,管理设备与至少一台分享源设备建立绑定关系;当第一设备需要访问分享源设备中的资源时,第一设备向分享源设备发送资源共享请求,分享源设备向管理设备发送资源共享提示信息,管理设备根据提示信息中携带的第一设备的标识信息,判断第一设备是否合法,如果是,向分享源设备发送第一指令,分享源设备向第一设备授予访问自身资源的权限。由此可见,本方案中不需要管理员预先在各台设备中进行访问权限的配置,操作简单不易出错。Applying the embodiment shown in FIG. 4 of the present invention, the management device establishes a binding relationship with at least one sharing source device; when the first device needs to access resources in the sharing source device, the first device sends a resource sharing request to the sharing source device, The sharing source device sends resource sharing prompt information to the management device, and the management device judges whether the first device is legal according to the identification information of the first device carried in the prompt information, and if so, sends the first instruction to the sharing source device, and the sharing source device sends a The first device grants permission to access its own resources. It can be seen that in this solution, the administrator does not need to configure the access rights in each device in advance, and the operation is simple and error-free.

与上述方法实施例相对应,本发明实施例还提供一种资源共享装置。Corresponding to the foregoing method embodiments, the embodiments of the present invention further provide a resource sharing device.

图5为本发明实施例提供的一种应用于管理设备的资源共享装置,包括:Fig. 5 is a resource sharing device applied to management equipment provided by an embodiment of the present invention, including:

第一绑定模块501,用于与至少一台分享源设备建立绑定关系;The first binding module 501 is configured to establish a binding relationship with at least one shared source device;

第一接收模块502,用于接收资源共享提示信息,其中,所述提示信息为分享源设备接收到第一设备发送的资源共享请求后发送的,所述提示信息中携带有所述第一设备的标识信息;所述当前分享源设备为与所述管理设备建立绑定关系的分享源设备;The first receiving module 502 is configured to receive resource sharing prompt information, wherein the prompt information is sent by the sharing source device after receiving the resource sharing request sent by the first device, and the prompt information carries the first device identification information; the current sharing source device is a sharing source device that establishes a binding relationship with the management device;

判断模块503,用于根据所述第一设备的标识信息,判断所述第一设备是否合法;A judging module 503, configured to judge whether the first device is legitimate according to the identification information of the first device;

第一发送模块504,用于当判断模块503判断结果为是时,向所述当前分享源设备发送第一指令,以使所述当前分享源设备向所述第一设备授予访问自身资源的权限。The first sending module 504 is configured to send a first instruction to the current sharing source device when the judging result of the judging module 503 is yes, so that the current sharing source device grants the first device the right to access its own resources .

在本实施例中,所述装置还可以包括:In this embodiment, the device may also include:

第二发送模块(图中未示出),用于当判断模块503判断结果为否时,向所述当前分享源设备发送第二指令,以使所述当前分享源设备断开与所述第一设备的连接。The second sending module (not shown in the figure) is configured to send a second instruction to the current sharing source device when the judgment result of the judging module 503 is no, so that the current sharing source device is disconnected from the second sharing source device. A device connection.

在本实施例中,第一绑定模块501,可以包括:接收子模块、识别子模块、判断子模块、确定子模块、存储子模块和发送子模块(图中未示出),其中,In this embodiment, the first binding module 501 may include: a receiving submodule, an identifying submodule, a judging submodule, a determining submodule, a storing submodule and a sending submodule (not shown in the figure), wherein,

接收子模块,用于接收至少一台分享源设备发送的图形标识信息,所述图形标识信息为分享源设备根据自身网络连接信息生成的;The receiving sub-module is configured to receive graphic identification information sent by at least one sharing source device, where the graphic identification information is generated by the sharing source device according to its own network connection information;

识别子模块,用于针对所接收到的每个图形标识信息,对该图形标识信息进行识别,得到网络连接信息;The identification sub-module is used to identify the graphic identification information for each received graphic identification information to obtain network connection information;

判断子模块,用于判断所述网络连接信息是否合法;A judging submodule, configured to judge whether the network connection information is legal;

确定子模块,用于当所述判断子模块判断结果为是时,将该图形标识信息对应的分享源设备确定为合法分享源设备;A determining submodule, configured to determine the sharing source device corresponding to the graphic identification information as a legitimate sharing source device when the judgment result of the judging submodule is yes;

存储子模块,用于存储所述合法分享源设备的标识信息;A storage submodule, configured to store the identification information of the legally shared source device;

发送子模块,用于向所述合法分享源设备发送存储成功的消息,以使所述合法分享源设备存储所述管理设备的标识信息,并根据所存储的标识信息,确定与自身建立绑定关系的管理设备;向所确定的管理设备发送所述资源共享提示信息。The sending sub-module is configured to send a successful storage message to the legal sharing source device, so that the legal sharing source device stores the identification information of the management device, and determines to establish a binding with itself according to the stored identification information The management device of the relationship; sending the resource sharing prompt information to the determined management device.

在本实施例中,所述资源共享提示信息中还携带有所述当前分享源设备的标识信息;所述装置还可以包括:In this embodiment, the resource sharing prompt information also carries the identification information of the current sharing source device; the apparatus may further include:

查找模块(图中未示出),用于在存储的合法分享源设备的标识信息中查找所述当前分享源设备的标识信息;如果查找到,触发所述判断模块;A search module (not shown in the figure), configured to search for the identification information of the current sharing source device in the stored identification information of the legal sharing source device; if found, trigger the judgment module;

第一发送模块504,具体可以用于:The first sending module 504 can specifically be used for:

根据所查找到的标识信息,确定当前分享源设备;Determine the current sharing source device according to the identified identification information;

向所确定的当前分享源设备发送第一指令。Send the first instruction to the determined current sharing source device.

在本实施例中,所述网络连接信息为第一信息或者第二信息,其中,所述第一信息为分享源设备接入其所在网络的账户信息,所述第二信息为分享源设备的地址信息;In this embodiment, the network connection information is the first information or the second information, wherein the first information is the account information of the sharing source device to access the network where it is located, and the second information is the account information of the sharing source device Address information;

在所述网络连接信息为第一信息的情况下,所述判断子模块,具体用于:In the case where the network connection information is the first information, the judging submodule is specifically used for:

判断分享源设备接入其所在网络的账户信息是否与所述管理设备接入其所在网络的账户信息相同,如果是,所述网络连接信息合法;Judging whether the account information of the sharing source device accessing its network is the same as the account information of the management device accessing its network, if yes, the network connection information is legal;

在所述网络连接信息为第二信息的情况下,所述判断子模块,具体用于:In the case where the network connection information is the second information, the judging submodule is specifically used for:

判断分享源设备的地址信息是否在合法网段,如果是,所述网络连接信息合法。Judging whether the address information of the sharing source device is in a legal network segment, if yes, the network connection information is legal.

应用本发明图5所示实施例,管理设备与至少一台分享源设备建立绑定关系;当第一设备需要访问分享源设备中的资源时,第一设备向分享源设备发送资源共享请求,分享源设备向管理设备发送资源共享提示信息,管理设备根据提示信息中携带的第一设备的标识信息,判断第一设备是否合法,如果是,向分享源设备发送第一指令,分享源设备向第一设备授予访问自身资源的权限。由此可见,本方案中不需要管理员预先在各台设备中进行访问权限的配置,操作简单不易出错。Applying the embodiment shown in FIG. 5 of the present invention, the management device establishes a binding relationship with at least one sharing source device; when the first device needs to access resources in the sharing source device, the first device sends a resource sharing request to the sharing source device, The sharing source device sends resource sharing prompt information to the management device, and the management device judges whether the first device is legal according to the identification information of the first device carried in the prompt information, and if so, sends the first instruction to the sharing source device, and the sharing source device sends a The first device grants permission to access its own resources. It can be seen that in this solution, the administrator does not need to configure the access rights in each device in advance, and the operation is simple and error-free.

图6为本发明实施例提供的一种应用于分享源设备的资源共享装置,包括:Fig. 6 is a resource sharing device applied to a shared source device provided by an embodiment of the present invention, including:

第二绑定模块601,用于与管理设备建立绑定关系;The second binding module 601 is configured to establish a binding relationship with the management device;

第二接收模块602,用于接收第一设备发送的资源共享请求;The second receiving module 602 is configured to receive a resource sharing request sent by the first device;

第三发送模块603,用于向所述管理设备发送资源共享提示信息,所述提示信息中携带有所述第一设备的标识信息;A third sending module 603, configured to send resource sharing prompt information to the management device, where the prompt information carries identification information of the first device;

授权模块604,用于接收到所述管理设备发送的第一指令后,向所述第一设备授予访问自身资源的权限;其中,所述第一指令为所述管理设备根据所述第一设备的标识信息判断所述第一设备合法的情况下,向所述分享源设备发送的。The authorization module 604 is configured to grant the first device the right to access its own resources after receiving the first instruction sent by the management device; When it is determined that the first device is legal based on the identification information, it is sent to the sharing source device.

在本实施例中,所述装置还可以包括:In this embodiment, the device may also include:

断开连接模块(图中未示出),用于接收到所述管理设备发送的第二指令后,断开与所述第一设备的连接;其中,所述第二指令为所述管理设备根据所述第一设备的标识信息判断所述第一设备不合法的情况下,向所述分享源设备发送的。A disconnection module (not shown in the figure), configured to disconnect from the first device after receiving a second instruction sent by the management device; wherein the second instruction is the management device When it is judged that the first device is illegal according to the identification information of the first device, it is sent to the sharing source device.

在本实施例中,所述装置还可以包括:In this embodiment, the device may also include:

拒绝连接模块(图中未示出),用于在所述断开连接模块断开与所述第一设备的连接之后的预设时长内接收到所述第一设备发送的资源共享请求时,拒绝与所述第一设备建立连接。A connection rejecting module (not shown in the figure), configured to receive a resource sharing request sent by the first device within a preset period of time after the disconnection module disconnects from the first device, Refused to establish a connection with the first device.

在本实施例中,所述装置还可以包括:生成模块、第四发送模块、第三接收模块和第二存储模块(图中未示出),其中,In this embodiment, the device may further include: a generation module, a fourth sending module, a third receiving module and a second storage module (not shown in the figure), wherein,

生成模块,用于根据自身网络连接信息,生成图形标识信息;A generating module, configured to generate graphic identification information according to its own network connection information;

第四发送模块,用于将所述图形标识信息发送给管理设备,以使所述管理设备对所述图形标识信息进行识别,得到所述网络连接信息,判断所述网络连接信息是否合法,如果合法,将所述分享源设备确定为合法分享源设备,并存储所述分享源设备的标识信息;A fourth sending module, configured to send the graphic identification information to a management device, so that the management device can identify the graphic identification information, obtain the network connection information, and judge whether the network connection information is legal, if legal, determining the sharing source device as a legal sharing source device, and storing the identification information of the sharing source device;

第三接收模块,用于接收所述管理设备发送的存储成功的消息;其中,所述存储成功的消息为所述管理设备存储所述分享源设备的标识信息后发送的;A third receiving module, configured to receive a successful storage message sent by the management device; wherein, the successful storage message is sent by the management device after storing the identification information of the sharing source device;

第二存储模块,用于存储所述管理设备的标识信息;A second storage module, configured to store the identification information of the management device;

第三发送模块603,具体可以用于:The third sending module 603 can specifically be used for:

根据所存储的标识信息,确定与自身建立绑定关系的管理设备;Determine the management device that establishes a binding relationship with itself according to the stored identification information;

向所确定的管理设备发送所述资源共享提示信息。Send the resource sharing prompt information to the determined management device.

在本实施例中,生成模块,具体可以用于:In this embodiment, the generation module can specifically be used for:

根据接入自身所在网络的账户信息,生成图形标识信息;Generate graphic identification information according to the account information connected to the network where it is located;

或者,根据自身地址信息,生成图形标识信息。Or, generate graphic identification information according to its own address information.

应用本发明图6所示实施例,管理设备与至少一台分享源设备建立绑定关系;当第一设备需要访问分享源设备中的资源时,第一设备向分享源设备发送资源共享请求,分享源设备向管理设备发送资源共享提示信息,管理设备根据提示信息中携带的第一设备的标识信息,判断第一设备是否合法,如果是,向分享源设备发送第一指令,分享源设备向第一设备授予访问自身资源的权限。由此可见,本方案中不需要管理员预先在各台设备中进行访问权限的配置,操作简单不易出错。Applying the embodiment shown in FIG. 6 of the present invention, the management device establishes a binding relationship with at least one sharing source device; when the first device needs to access resources in the sharing source device, the first device sends a resource sharing request to the sharing source device, The sharing source device sends resource sharing prompt information to the management device, and the management device judges whether the first device is legal according to the identification information of the first device carried in the prompt information, and if so, sends the first instruction to the sharing source device, and the sharing source device sends a The first device grants permission to access its own resources. It can be seen that in this solution, the administrator does not need to configure the access rights in each device in advance, and the operation is simple and error-free.

本发明实施例还提供一种资源共享系统,如图1所示,包括:管理设备、第一设备和分享源设备,其中,An embodiment of the present invention also provides a resource sharing system, as shown in FIG. 1 , including: a management device, a first device, and a sharing source device, wherein,

所述第一设备,用于向所述分享源设备发送资源共享请求;The first device is configured to send a resource sharing request to the sharing source device;

所述分享源设备,用于与所述管理设备建立绑定关系;接收所述资源共享请求;向所述管理设备发送资源共享提示信息,所述提示信息中携带有所述第一设备的标识信息;接收到所述管理设备发送的第一指令后,向所述第一设备授予访问自身资源的权限;The sharing source device is configured to establish a binding relationship with the management device; receive the resource sharing request; send resource sharing prompt information to the management device, and the prompt information carries the identifier of the first device information; after receiving the first instruction sent by the management device, granting the first device the right to access its own resources;

所述管理设备,用于与至少一台分享源设备建立绑定关系;接收当前分享源设备发送的资源共享提示信息;根据所述提示信息中携带的所述第一设备的标识信息,判断所述第一设备是否合法;如果是,向所述当前分享源设备发送第一指令。The management device is configured to establish a binding relationship with at least one sharing source device; receive resource sharing prompt information sent by the current sharing source device; Whether the first device is legal; if yes, send a first instruction to the current sharing source device.

在本实施例中,所述管理设备,还可以用于在判断所述第一设备不合法的情况下,向当前分享源设备发送第二指令;In this embodiment, the management device may also be configured to send a second instruction to the current sharing source device when it is judged that the first device is illegal;

所述分享源设备,还可以用于接收到所述管理设备发送的第二指令后,断开与所述第一设备的连接。The sharing source device may also be configured to disconnect from the first device after receiving the second instruction sent by the management device.

在本实施例中,所述管理设备还可以用于:In this embodiment, the management device can also be used for:

接收至少一台分享源设备发送的图形标识信息,所述图形标识信息为分享源设备根据自身网络连接信息生成的;receiving graphic identification information sent by at least one sharing source device, the graphic identification information being generated by the sharing source device according to its own network connection information;

针对所接收到的每个图形标识信息,对该图形标识信息进行识别,得到网络连接信息;For each graphic identification information received, identify the graphic identification information to obtain network connection information;

判断所述网络连接信息是否合法;judging whether the network connection information is legal;

如果是,将该图形标识信息对应的分享源设备确定为合法分享源设备;If so, determine the sharing source device corresponding to the graphic identification information as a legitimate sharing source device;

存储所述合法分享源设备的标识信息;storing the identification information of the legally shared source device;

向所述合法分享源设备发送存储成功的消息,以使所述合法分享源设备存储所述管理设备的标识信息,并根据所存储的标识信息,确定与自身建立绑定关系的管理设备;向所确定的管理设备发送所述资源共享提示信息。Sending a successful storage message to the legal sharing source device, so that the legal sharing source device stores the identification information of the management device, and determines the management device that has established a binding relationship with itself according to the stored identification information; The determined management device sends the resource sharing prompt information.

在本实施例中,所述资源共享提示信息中还携带有所述当前分享源设备的标识信息;所述管理设备还可以用于:In this embodiment, the resource sharing prompt information also carries the identification information of the current sharing source device; the management device can also be used for:

在存储的合法分享源设备的标识信息中查找所述当前分享源设备的标识信息;Find the identification information of the current sharing source device in the stored identification information of the legal sharing source device;

如果查找到,执行所述根据所述第一设备的标识信息,判断所述第一设备是否合法的步骤;If found, execute the step of judging whether the first device is legitimate according to the identification information of the first device;

所述向所述当前分享源设备发送第一指令的步骤包括:The step of sending a first instruction to the current sharing source device includes:

根据所查找到的标识信息,确定当前分享源设备;Determine the current sharing source device according to the identified identification information;

向所确定的当前分享源设备发送第一指令。Send the first instruction to the determined current sharing source device.

在本实施例中,所述网络连接信息为第一信息或者第二信息,其中,所述第一信息为分享源设备接入其所在网络的账户信息,所述第二信息为分享源设备的地址信息;In this embodiment, the network connection information is the first information or the second information, wherein the first information is the account information of the sharing source device to access the network where it is located, and the second information is the account information of the sharing source device Address information;

所述管理设备还可以用于:The management device can also be used to:

在所述网络连接信息为第一信息的情况下,所述判断所述网络连接信息是否合法的步骤包括:When the network connection information is the first information, the step of judging whether the network connection information is legal includes:

判断分享源设备接入其所在网络的账户信息是否与所述管理设备接入其所在网络的账户信息相同,如果是,所述网络连接信息合法;Judging whether the account information of the sharing source device accessing its network is the same as the account information of the management device accessing its network, if yes, the network connection information is legal;

在所述网络连接信息为第二信息的情况下,所述判断所述网络连接信息是否合法的步骤包括:When the network connection information is the second information, the step of judging whether the network connection information is legal includes:

判断分享源设备的地址信息是否在合法网段,如果是,所述网络连接信息合法。Judging whether the address information of the sharing source device is in a legal network segment, if yes, the network connection information is legal.

在本实施例中,所述分享源设备还可以用于:In this embodiment, the shared source device can also be used for:

接收到所述管理设备发送的第二指令后,断开与所述第一设备的连接;其中,所述第二指令为所述管理设备根据所述第一设备的标识信息判断所述第一设备不合法的情况下,向所述分享源设备发送的。After receiving the second instruction sent by the management device, disconnect the connection with the first device; wherein, the second instruction is that the management device judges that the first If the device is illegal, it is sent to the sharing source device.

在本实施例中,所述分享源设备还可以用于:In this embodiment, the shared source device can also be used for:

在断开与所述第一设备的连接之后的预设时长内接收到所述第一设备发送的资源共享请求时,拒绝与所述第一设备建立连接。When receiving a resource sharing request sent by the first device within a preset time period after the connection with the first device is disconnected, refusing to establish a connection with the first device.

在本实施例中,所述分享源设备还可以用于:In this embodiment, the shared source device can also be used for:

根据自身网络连接信息,生成图形标识信息;Generate graphic identification information according to its own network connection information;

将所述图形标识信息发送给管理设备,以使所述管理设备对所述图形标识信息进行识别,得到所述网络连接信息,判断所述网络连接信息是否合法,如果合法,将所述分享源设备确定为合法分享源设备,并存储所述分享源设备的标识信息;Send the graphic identification information to the management device, so that the management device can identify the graphic identification information, obtain the network connection information, judge whether the network connection information is legal, and if legal, share the source The device is determined to be a legitimate sharing source device, and stores the identification information of the sharing source device;

接收所述管理设备发送的存储成功的消息;其中,所述存储成功的消息为所述管理设备存储所述分享源设备的标识信息后发送的;receiving a successful storage message sent by the management device; wherein the successful storage message is sent by the management device after storing the identification information of the sharing source device;

存储所述管理设备的标识信息;storing the identification information of the management device;

所述分享源设备还可以用于:The shared source device can also be used for:

根据所存储的标识信息,确定与自身建立绑定关系的管理设备;Determine the management device that establishes a binding relationship with itself according to the stored identification information;

向所确定的管理设备发送所述资源共享提示信息。Send the resource sharing prompt information to the determined management device.

在本实施例中,所述分享源设备还可以用于:In this embodiment, the shared source device can also be used for:

根据接入自身所在网络的账户信息,生成图形标识信息;Generate graphic identification information according to the account information connected to the network where it is located;

或者,根据自身地址信息,生成图形标识信息。Or, generate graphic identification information according to its own address information.

应用本发明所示实施例,管理设备与至少一台分享源设备建立绑定关系;当第一设备需要访问分享源设备中的资源时,第一设备向分享源设备发送资源共享请求,分享源设备向管理设备发送资源共享提示信息,管理设备根据提示信息中携带的第一设备的标识信息,判断第一设备是否合法,如果是,向分享源设备发送第一指令,分享源设备向第一设备授予访问自身资源的权限。由此可见,本方案中不需要管理员预先在各台设备中进行访问权限的配置,操作简单不易出错。Applying the embodiment shown in the present invention, the management device establishes a binding relationship with at least one sharing source device; when the first device needs to access resources in the sharing source device, the first device sends a resource sharing request to the sharing source device, and the sharing source The device sends resource sharing prompt information to the management device, and the management device judges whether the first device is legal according to the identification information of the first device carried in the prompt information, and if so, sends the first instruction to the sharing source device, and the sharing source device sends the first instruction to the first device. A device grants access to its own resources. It can be seen that in this solution, the administrator does not need to configure the access rights in each device in advance, and the operation is simple and error-free.

需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is a relationship between these entities or operations. There is no such actual relationship or order between them. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.

本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a related manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, as for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for relevant parts, please refer to part of the description of the method embodiment.

本领域普通技术人员可以理解实现上述方法实施方式中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,所述的程序可以存储于计算机可读取存储介质中,这里所称得的存储介质,如:ROM/RAM、磁碟、光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the implementation of the above method can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, referred to herein as Storage media, such as: ROM/RAM, disk, CD, etc.

以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present invention are included in the protection scope of the present invention.

Claims (22)

1. a kind of resource share method, which is characterized in that applied to management equipment, the described method includes:
Share source device at least one and establish binding relationship;
Resource-sharing prompt message is received, wherein, the prompt message receives the transmission of the first equipment for current source device of sharing Resource-sharing request after send, the identification information of first equipment is carried in the prompt message;Described current point It is to share source device with what the management equipment established binding relationship to enjoy source device;
According to the identification information of first equipment, judge whether first equipment is legal;
If so, the first instruction is sent to the current source device of sharing, so that described currently share source device to described first Equipment authorizes the permission for accessing own resource.
2. according to the method described in claim 1, it is characterized in that, judging that first equipment is illegal, institute The method of stating further includes:
The second instruction is sent to the current source device of sharing, so that the current source device of sharing disconnects and first equipment Connection.
3. according to the method described in claim 2, it is characterized in that, described share source device at least one and establish binding relationship The step of include:
Receive at least one share source device transmission pattern identification information, the pattern identification information for share source device according to The generation of own net link information;
For received each pattern identification information, which is identified, obtains network connection information;
Judge whether the network connection information is legal;
If so, the corresponding source device of sharing of the pattern identification information is determined as legal sharing source device;
Store the legal identification information for sharing source device;
The successful message of storage is sent to the legal source device of sharing, so that the legal source device of sharing stores the management The identification information of equipment, and according to the identification information stored, determine the management equipment with itself establishing binding relationship;To really Fixed management equipment sends the resource-sharing prompt message.
4. according to the method described in claim 3, it is characterized in that, described work as also is carried in the resource-sharing prompt message Before share the identification information of source device;After the step of reception resource-sharing prompt message, further include:
The current identification information for sharing source device is searched in the legal identification information for sharing source device of storage;
If found, the identification information according to first equipment is performed, judges whether first equipment is legal Step;
It is described current to share the step of source device sends the first instruction to described and include:
According to the identification information found, determine currently to share source device;
The first instruction is sent to identified current source device of sharing.
5. according to the method described in claim 3, it is characterized in that, the network connection information is the first information or the second letter Breath, wherein, the first information is the account information for sharing network where source device accesses it, and second information is to share source The address information of equipment;
In the case where the network connection information is the first information, the step for judging whether the network connection information is legal Suddenly include:
Judge to share source device access network where it account information whether access it with the management equipment where network Account information is identical, if so, the network connection information is legal;
In the case where the network connection information is the second information, the step for judging whether the network connection information is legal Suddenly include:
Whether the address information for judging to share source device is in the legal network segment, if so, the network connection information is legal.
6. a kind of resource share method, which is characterized in that applied to sharing source device, the described method includes:
Binding relationship is established with management equipment;
Receive the resource-sharing request of the first equipment transmission;
Resource-sharing prompt message is sent to the management equipment, the mark of first equipment is carried in the prompt message Information;
After receiving the first instruction that the management equipment is sent, the permission for accessing own resource is authorized to first equipment; Wherein, first instruction is legal for the management equipment first equipment according to the identification information judgment of first equipment In the case of, share what source device was sent to described.
7. according to the method described in claim 6, it is characterized in that, the method further includes:
After receiving the second instruction that the management equipment is sent, the connection with first equipment is disconnected;Wherein, described second Instruct for the management equipment first equipment according to the identification information judgment of first equipment it is illegal in the case of, to It is described to share what source device was sent.
8. the method according to the description of claim 7 is characterized in that the method further includes:
The resource that first equipment is sent is received in the preset duration after disconnecting the connection with first equipment to be total to When enjoying request, refusal is established with first equipment and connected.
9. according to the method described in claim 6, it is characterized in that, resource-sharing prompt message is sent to management equipment described The step of before, further include:
According to own net link information, pattern identification information is generated;
The pattern identification information is sent to management equipment, so that the management equipment knows the pattern identification information Not, the network connection information is obtained, judges whether the network connection information is legal, if legal, the source of sharing is set It is standby to be determined as the legal identification information shared source device, and share source device described in storage;
Receive the successful message of storage that the management equipment is sent;Wherein, the successful message of storage sets for the management For what is sent after the identification information for sharing source device described in storage;
Store the identification information of the management equipment;
The step of transmission resource-sharing prompt message to management equipment, including:
According to the identification information stored, the management equipment with itself establishing binding relationship is determined;
The resource-sharing prompt message is sent to identified management equipment.
It is 10. according to the method described in claim 9, it is characterized in that, described according to own net link information, generation figure mark The step of knowing information includes:
The account information of network according to where accessing itself, generates pattern identification information;
Alternatively, according to Self address information, pattern identification information is generated.
11. a kind of resource shared device, which is characterized in that applied to management equipment, described device includes:
First binding module establishes binding relationship for sharing source device at least one;
First receiving module, for receiving resource-sharing prompt message, wherein, the prompt message connects currently to share source device It receives what is sent after the resource-sharing that the first equipment is sent is asked, the mark of first equipment is carried in the prompt message Information;The current source device of sharing is to share source device with what the management equipment established binding relationship;
Judgment module for the identification information according to first equipment, judges whether first equipment is legal;
During for being when the judgment module judging result, the is sent to the current source device of sharing for first sending module One instruction, so that the current source device of sharing authorizes the permission for accessing own resource to first equipment.
12. according to the devices described in claim 11, which is characterized in that described device further includes:
Second sending module, for when the judgment module judging result for it is no when, send the to the current source device of sharing Two instructions, so that described currently share source device disconnection and the connection of first equipment.
13. device according to claim 12, which is characterized in that first binding module, including:
Receiving submodule, for receiving at least one pattern identification information for sharing source device transmission, the pattern identification information It is generated to share source device according to own net link information;
It identifies submodule, for being directed to received each pattern identification information, which is identified, is obtained To network connection information;
Judging submodule, for judging whether the network connection information is legal;
Determination sub-module during for being when the judging submodule judging result, is shared the pattern identification information is corresponding Source device is determined as legal sharing source device;
Sub-module stored, for storing the legal identification information for sharing source device;
Sending submodule, for it is described it is legal share source device and send store successful message legal share source so that described Equipment stores the identification information of the management equipment, and according to the identification information stored, determines to establish binding relationship with itself Management equipment;The resource-sharing prompt message is sent to identified management equipment.
14. device according to claim 13, which is characterized in that also carried in the resource-sharing prompt message described The current identification information for sharing source device;Described device further includes:
Searching module, for searching the current mark for sharing source device in the legal identification information for sharing source device of storage Know information;If found, the judgment module is triggered;
First sending module, is specifically used for:
According to the identification information found, determine currently to share source device;
The first instruction is sent to identified current source device of sharing.
15. device according to claim 13, which is characterized in that the network connection information is the first information or second Information, wherein, the first information is the account information for sharing network where source device accesses it, and second information is to share The address information of source device;
In the case where the network connection information is the first information, the judging submodule is specifically used for:
Judge to share source device access network where it account information whether access it with the management equipment where network Account information is identical, if so, the network connection information is legal;
In the case where the network connection information is the second information, the judging submodule is specifically used for:
Whether the address information for judging to share source device is in the legal network segment, if so, the network connection information is legal.
16. a kind of resource shared device, which is characterized in that applied to source device is shared, described device includes:
Second binding module, for establishing binding relationship with management equipment;
Second receiving module, for receiving the resource-sharing request that the first equipment is sent;
3rd sending module for sending resource-sharing prompt message to the management equipment, carries in the prompt message The identification information of first equipment;
After receiving the first instruction that the management equipment is sent, access is authorized certainly to first equipment for authorization module The permission of body resource;Wherein, first instruction is the management equipment according to the identification information judgment institute of first equipment State the first equipment it is legal in the case of, to it is described share source device transmission.
17. device according to claim 16, which is characterized in that described device further includes:
Module is disconnected, after receiving the second instruction that the management equipment is sent, is disconnected and first equipment Connection;Wherein, second instruction first sets for the management equipment according to the identification information judgment of first equipment In the case of illegal, share what source device was sent to described.
18. device according to claim 17, which is characterized in that described device further includes:
Refuse link block, in the preset duration disconnected after module disconnects the connection with first equipment When inside receiving the resource-sharing request that first equipment is sent, refusal is established with first equipment and connected.
19. device according to claim 16, which is characterized in that described device further includes:
Generation module, for according to own net link information, generating pattern identification information;
4th sending module, for the pattern identification information to be sent to management equipment, so that the management equipment is to described Pattern identification information is identified, and obtains the network connection information, judges whether the network connection information is legal, if closed The source device of sharing is determined as the legal identification information shared source device, and share source device described in storage by method;
3rd receiving module, for receiving the successful message of storage that the management equipment is sent;Wherein, the storage is successful Message is shares what is sent after the identification information of source device described in management equipment storage;
Second memory module, for storing the identification information of the management equipment;
3rd sending module, is specifically used for:
According to the identification information stored, the management equipment with itself establishing binding relationship is determined;
The resource-sharing prompt message is sent to identified management equipment.
20. device according to claim 19, which is characterized in that the generation module is specifically used for:
The account information of network according to where accessing itself, generates pattern identification information;
Alternatively, according to Self address information, pattern identification information is generated.
21. a kind of resource sharing system, which is characterized in that including:Share source device, the first equipment, management equipment, wherein,
First equipment, for sending resource-sharing request to the source device of sharing;
It is described to share source device, for establishing binding relationship with the management equipment;Receive the resource-sharing request;To described Management equipment sends resource-sharing prompt message, and the identification information of first equipment is carried in the prompt message;It receives After the first instruction sent to the management equipment, the permission for accessing own resource is authorized to first equipment;
The management equipment establishes binding relationship for sharing source device at least one;It receives and currently shares source device transmission Resource-sharing prompt message;According to the identification information of first equipment carried in the prompt message, described is judged Whether one equipment is legal;If so, send the first instruction to the current source device of sharing.
22. system according to claim 21, which is characterized in that
The management equipment is additionally operable to judging that first equipment is illegal, is sent to current source device of sharing Second instruction;
It is described to share source device, it is additionally operable to after receiving the second instruction that the management equipment is sent, disconnection is set with described first Standby connection.
CN201610990624.1A 2016-11-10 2016-11-10 A resource sharing method, device and system Active CN108076009B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610990624.1A CN108076009B (en) 2016-11-10 2016-11-10 A resource sharing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610990624.1A CN108076009B (en) 2016-11-10 2016-11-10 A resource sharing method, device and system

Publications (2)

Publication Number Publication Date
CN108076009A true CN108076009A (en) 2018-05-25
CN108076009B CN108076009B (en) 2021-03-19

Family

ID=62154553

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610990624.1A Active CN108076009B (en) 2016-11-10 2016-11-10 A resource sharing method, device and system

Country Status (1)

Country Link
CN (1) CN108076009B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115277273A (en) * 2022-07-25 2022-11-01 维沃移动通信有限公司 Resource sharing method and resource sharing device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101807944A (en) * 2010-03-03 2010-08-18 中兴通讯股份有限公司 Mobile terminal and data sharing method thereof
CN102654906A (en) * 2011-11-22 2012-09-05 上海华博信息服务有限公司 Method and device for mobile equipment identity binding based on two-dimension code
CN102724200A (en) * 2012-06-21 2012-10-10 浙江宇视科技有限公司 Monitoring front-end resource sharing method and monitoring front-end resource sharing device
CN103945380A (en) * 2014-04-10 2014-07-23 深圳市信锐网科技术有限公司 Method and system for network login authentication based on graphic code
CN104080150A (en) * 2014-07-04 2014-10-01 广州杰赛科技股份有限公司 WLAN access method for equipment sharing
CN104333598A (en) * 2014-11-06 2015-02-04 北京安奇智联科技有限公司 Two-dimension code and network adaption based mobile terminal and web terminal interconnection method
US20160308855A1 (en) * 2015-04-16 2016-10-20 Trunomi Ltd. Systems and Methods for Electronically Sharing Private Documents Using Pointers

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101807944A (en) * 2010-03-03 2010-08-18 中兴通讯股份有限公司 Mobile terminal and data sharing method thereof
CN102654906A (en) * 2011-11-22 2012-09-05 上海华博信息服务有限公司 Method and device for mobile equipment identity binding based on two-dimension code
CN102724200A (en) * 2012-06-21 2012-10-10 浙江宇视科技有限公司 Monitoring front-end resource sharing method and monitoring front-end resource sharing device
CN103945380A (en) * 2014-04-10 2014-07-23 深圳市信锐网科技术有限公司 Method and system for network login authentication based on graphic code
CN104080150A (en) * 2014-07-04 2014-10-01 广州杰赛科技股份有限公司 WLAN access method for equipment sharing
CN104333598A (en) * 2014-11-06 2015-02-04 北京安奇智联科技有限公司 Two-dimension code and network adaption based mobile terminal and web terminal interconnection method
US20160308855A1 (en) * 2015-04-16 2016-10-20 Trunomi Ltd. Systems and Methods for Electronically Sharing Private Documents Using Pointers

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115277273A (en) * 2022-07-25 2022-11-01 维沃移动通信有限公司 Resource sharing method and resource sharing device
CN115277273B (en) * 2022-07-25 2024-03-22 维沃移动通信有限公司 Resource sharing method and resource sharing device

Also Published As

Publication number Publication date
CN108076009B (en) 2021-03-19

Similar Documents

Publication Publication Date Title
CN104767715B (en) Access control method and equipment
EP3080963B1 (en) Methods, devices and systems for dynamic network access administration
JP6842919B2 (en) Network connection method, hotspot terminal and management terminal
JP6416409B2 (en) Access point steering
US11096051B2 (en) Connection establishment method, device, and system
CN102014459B (en) Wireless access control method and device
CN105162777A (en) Wireless network login method and device
US10517126B2 (en) Communication management and wireless roaming support
WO2013185709A1 (en) Call authentication method, device, and system
US11171927B2 (en) Method for enabling establishment of a direct connection
CN108156128A (en) A kind of sharing method, apparatus and system
CN105392137A (en) Household WIFI embezzlement preventing method, wireless router and terminal equipment
CN106412901A (en) Network-loitering prevention wireless routing method and system
CN111182546A (en) Method, equipment and system for accessing wireless network
JP2020501440A (en) Emergency number setting method, acquisition method and device
CN116264682A (en) Equipment network access method and device, electronic equipment, storage medium
CN111093196B (en) Method, user terminal equipment and medium for 5G user terminal to access 5G network
CN105915557B (en) Network authentication method, access control method and network access equipment
WO2016061980A1 (en) Wlan sharing method and system, and wlan sharing registration server
WO2015139442A1 (en) Local network access control method and device, and computer storage medium
CN106537962B (en) Wireless network configuration, access and access method, device and equipment
CN115412911A (en) Authentication method, communication device and system
CN108076009A (en) A kind of resource share method, apparatus and system
CN105657785A (en) Method for noticing and removing device without network access in network and device
CN106454836B (en) Method and device for enhancing use safety of equipment certificate

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20250718

Address after: Rooms 602 and 605, No. 85 Xiangxue Avenue Middle, Huangpu District, Guangzhou City, Guangdong Province 510000

Patentee after: Guangzhou Gaohang Technology Transfer Co.,Ltd.

Country or region after: China

Address before: Hangzhou City, Zhejiang province 310051 Binjiang District Qianmo Road No. 555

Patentee before: Hangzhou Hikvision Digital Technology Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20251023

Address after: 710000 Shaanxi Province, Xi'an City, Lianhu District, Keji Road 50, Jinqiao International Plaza C Building 2306 Room

Patentee after: Zhongzun Huanqiu (Xi'an) Technology Co.,Ltd.

Country or region after: China

Address before: Rooms 602 and 605, No. 85 Xiangxue Avenue Middle, Huangpu District, Guangzhou City, Guangdong Province 510000

Patentee before: Guangzhou Gaohang Technology Transfer Co.,Ltd.

Country or region before: China