[go: up one dir, main page]

CN107612941B - Authority management method, device, equipment and storage medium - Google Patents

Authority management method, device, equipment and storage medium Download PDF

Info

Publication number
CN107612941B
CN107612941B CN201711043535.7A CN201711043535A CN107612941B CN 107612941 B CN107612941 B CN 107612941B CN 201711043535 A CN201711043535 A CN 201711043535A CN 107612941 B CN107612941 B CN 107612941B
Authority
CN
China
Prior art keywords
master device
account
level
authority
master
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.)
Active
Application number
CN201711043535.7A
Other languages
Chinese (zh)
Other versions
CN107612941A (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.)
Guangdong Genius Technology Co Ltd
Original Assignee
Guangdong Genius 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 Guangdong Genius Technology Co Ltd filed Critical Guangdong Genius Technology Co Ltd
Priority to CN201711043535.7A priority Critical patent/CN107612941B/en
Publication of CN107612941A publication Critical patent/CN107612941A/en
Application granted granted Critical
Publication of CN107612941B publication Critical patent/CN107612941B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention discloses a method, a device, equipment and a storage medium for authority management, wherein the authority management method comprises the following steps: when an account of a primary device is stored in a secondary device, matching the account of the primary device with a preset account set, wherein the preset account set comprises an identification code and a characteristic identification of the primary device; when the matching is successful, distributing a preset authority for the main equipment; and when receiving a control instruction sent by the main equipment, responding to the control instruction according to the preset authority of the main equipment. The invention can realize the operation of the user and eliminate the potential safety hazard.

Description

Authority management method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of wireless communication, in particular to a method and a system for managing authority.
Background
In the internet era, the connection among different devices is established through modes such as two-dimensional codes, Bluetooth and Near Field Communication (NFC), so that the intelligent operations such as palm payment and remote control can be completed anytime and anywhere, and the life is more and more convenient.
However, data transmission is performed between the current master device and the current slave device through binding, the method is simple and fast to operate, and does not need any verification behavior, but when the slave devices are bound to a plurality of master devices, malicious operation caused by the authority management problem is easy to occur, for example, in an intelligent home, a user is bound with the home device through an intelligent mobile phone and sets the state of the home device through an intelligent terminal, when other intelligent terminals are bound with the home device, the state of the home device can also be set, if the home device does not have any authority setting, the change behavior of other intelligent terminals can be accepted, and the change behavior of other intelligent terminals can even be malicious operation, which causes inconvenience in use of the user and potential safety hazard.
Disclosure of Invention
The invention provides a method, a device, equipment and a storage medium for authority management, which are convenient for a user to operate and eliminate potential safety hazards.
In a first aspect, an embodiment of the present invention provides a method for rights management, including:
when an account of a primary device is stored in a secondary device, matching the account of the primary device with a preset account set, wherein the preset account set comprises an identification code and a characteristic identification of the primary device;
when the matching is successful, distributing a preset authority for the main equipment;
and when receiving a control instruction sent by the main equipment, responding to the control instruction according to the preset authority of the main equipment.
In a second aspect, an embodiment of the present invention further provides an apparatus for rights management, including:
the account matching module is used for matching an account of the primary device with a preset account set when the account of the primary device is stored in the secondary device, wherein the preset account set comprises an identification code and a characteristic identifier of the primary device;
the preset authority distributing module is used for distributing preset authority to the main equipment when the matching is successful;
and the response control instruction module is used for responding to the control instruction according to the preset authority of the main equipment when receiving the control instruction sent by the main equipment.
In a third aspect, an embodiment of the present invention further provides an apparatus, including:
one or more processors;
storage means for storing one or more programs;
communication means for establishing communication with a master device;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the rights management method of any of the first aspects.
In a fourth aspect, embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the method of rights management according to any one of the first aspect.
According to the embodiment of the invention, the main equipment account stored in the slave equipment is matched with the preset account set, and the main equipment account which is successfully matched is allocated with the preset authority, so that when the slave equipment receives the control instruction sent by the main equipment, the control instruction can be responded according to the preset authority of the main equipment, random tampering and malicious operation of the slave equipment by the main equipment are avoided, the operation of a user is facilitated, and potential safety hazards are eliminated.
Drawings
Fig. 1 is a flowchart of a method for rights management according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for rights management according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a device for rights management according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
It should also be noted that before discussing exemplary embodiments in greater detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1 is a flowchart of a method for rights management according to an embodiment of the present invention, where the method is applicable to rights management between a master device and a slave device, and the method may be executed by a device for rights management, where the device may be implemented by software and/or hardware, and may be generally integrated in a slave device (for example, an intelligent device such as a smart phone, a smart television, a smart air conditioner, and the like). The method of the embodiment specifically comprises the following steps:
and 110, when the account of the primary device is stored in the secondary device, matching the account of the primary device with a preset account set, wherein the preset account set comprises an identification code and a characteristic identification of the primary device.
The identification code of the main device is a specific code when the main device leaves a factory, and the feature identifier of the main device is a mark capable of showing the feature of the main device, for example, if the main device is a smart phone, both the factory code of the smart phone and the phone number of the smart phone can form a preset account set.
It is understood that before the slave device stores the account number of the new master device, at least one account number of the master device is already stored in the slave device or the account number of the master device is not already stored in the slave device. When the account number of the primary device is stored in the slave device, the account number includes at least one stored account number of the primary device and a new account number of the primary device.
And step 120, when the matching is successful, distributing preset authority for the main equipment.
The primary device account is matched with a preset account set, and two conditions of success and failure of matching can exist. In an optional implementation manner of this embodiment, the primary device account with failed matching is rejected, and when the matching fails, the primary device account may be automatically deleted or deleted according to an operation of a user. Or when the matching fails, adding the account of the primary device into a blacklist, and then, when the slave device allows the binding request sent by the primary device, only removing the account of the primary device from the blacklist without adding the related information of the primary device. And when the matching is successful, the preset authority can be allocated according to the overall characteristics of the successfully matched main equipment account, and the successfully allocated main equipment account can be added into a white list to allocate the preset authority to the main equipment account in the white list.
And step 130, when receiving the control instruction sent by the main device, responding to the control instruction according to the preset authority of the main device.
The preset authority of the master device can determine the level authority according to the sequence of the time of the account of the master device stored in the slave device, and can also set the level authority of the account of the master device according to user definition. For example, in a smart home, a user may bind a smart television to a smart phone, and assuming that there are 3 smart phones in the home, the sequence of the accounts of the primary device may be set according to the user's definition (e.g., the user's preference).
Further, the preset authority of the master device further includes a control authority, and the control authority may be a binding operation and a read-write request of the master device to the slave device, or a read-only request or a write-only request of the master device to the slave device. For example, a smart television is bound to 3 mobile phones of a home in a smart home, where the 3 mobile phones are a first-level mobile phone, a second-level mobile phone and a third-level mobile phone, respectively, and then the first-level mobile phone can control the permissions of the second-level mobile phone and the third-level mobile phone to be read-only requests, and then the second-level mobile phone and the third-level mobile phone cannot write the slave device, that is, the second-level mobile phone and the third-level mobile phone cannot change the setting of the smart television for the first-level mobile phone, so that the setting of the smart television for the first-level mobile phone can be ensured, and inconvenience in use of a user due to random change of the smart television is avoided.
Further, in any embodiment of the present invention, the communication between the master device and the slave device may be established through a network, bluetooth, or NFC, and optionally, the communication between the master device and the slave device is NFC, and both the master device and the slave device have NFC chips.
It should be noted that the master device and the slave device establish communication through NFC, and NFC communication is a short-distance high-frequency radio communication technology, and can quickly complete data transmission and read-write modes within a centimeter distance, while the memory space of the NFC chip itself is relatively small. Therefore, when the master device and the slave device establish a communication mode through NFC, a module dedicated to storing data, which is a data processing chip integrated on the slave device and independent from the NFC chip, and performs processing similar to a Micro Control Unit (MCU) for operating on data is also required in the slave device.
Further, the method of authority management is implemented by adding a Data Exchange Format (NDEF) record of an NFC chip with a fixed Format to the slave device, where the NDEF record includes an authority management field flag, a function setting word length, a function setting word, and account information, where:
the rights management field flag may be formed of any special word, such as rbac, by which the master device may be informed that the NDEF record is rights management.
The function setting word length can be defined by a standard, for example, the word length can be set to be 8 bits.
Each bit meaning of the function setting word can be self-defined, for example, when the word length is set to 8 bits, the function setting word can be set to be from high to low in sequence as follows: a new adding permission bit, a black/white list control bit, an NFC read/write control bit, a binding application of a new main device refusing/accepting and a 4-bit function switch, wherein the 4-bit function switch can be self-defined according to actual application.
The account information may include a primary device account and a secondary device account, and the number of accounts in each account category may not be unique, for example, the primary device is a smart phone, and may be a phone number and/or a factory code.
Illustratively, the master device and the slave device are both smart phones with NFC chips, account information is a phone number of the master device, when the master device and the slave device establish NFC communication, the master device sends the phone number to the slave device, the slave device performs matching through a preset account set, if the matching finds that the phone number of the master device is not in the preset account set, a new permission bit is an impermissible bit, and then the new permission bit is fed back to the master device for binding failure information; and if the mobile phone number of the main equipment is found in the preset account set through matching, newly adding permission bit permission, feeding the function setting words back to the main equipment by the slave equipment at the moment, and self-defining the configuration function by the main equipment according to 4-bit function switches in the function setting words at the moment.
According to the embodiment of the invention, the main equipment account stored in the slave equipment is matched with the preset account set, and the main equipment account which is successfully matched is allocated with the preset authority, so that when the slave equipment receives the control instruction sent by the main equipment, the control instruction can be responded according to the preset authority of the main equipment, random tampering and malicious operation of the slave equipment by the main equipment are avoided, the operation of a user is facilitated, and potential safety hazards are eliminated.
Example two
Fig. 2 is a flowchart of a method for rights management according to a second embodiment of the present invention, which is optimized based on the second embodiment, and as shown in fig. 2, the method for rights management according to the second embodiment of the present invention includes the following specific steps:
step 210, when the account of the primary device is stored in the secondary device, matching the account of the primary device with a preset account set;
step 220, if the matching fails, setting the account of the primary equipment as a blacklist account; and if the matching is successful, setting the account number of the primary equipment as a white list account number.
The method comprises the following steps that a blacklist account and a white list account are understood in a general sense, and the blacklist account and the white list account can be changed, namely, when a master device in the blacklist account can bind a slave device, the master device is unbound, and the master device is added into the white list; and when the master equipment in the white list account can not bind the slave equipment, performing binding rejection operation on the master equipment, and adding the master equipment into the black list.
Step 230, when the matching is successful, distributing a preset authority for the main device;
step 240, determining the level of the master device according to the sequence of the communication established between the master device and the slave device;
it is understood that, the level of the master device is determined according to the sequence of the master device and the slave device establishing communication, the level of the master device establishing communication with the slave device first may be higher, the level of the master device establishing communication with the slave device later may be higher, or the level of the master device establishing communication with the slave device at an intermediate position in time may be higher, which is not limited herein. Typically, for example: the first master device establishing communication with the slave device is the highest master device, the second master device establishing communication with the slave device is the first high-level master device, the third master device establishing communication with the slave device is the second high-level master device, and so on.
Further, step 240 further comprises:
if the account number of the primary device is stored in the slave device, determining the primary device as the high-level primary device; and if the account number of the master device is not stored in the slave device, determining the master device which first establishes communication with the slave device as the high-level master device.
Step 250, distributing a control authority for controlling the operation authority of the low-level main equipment to the high-level main equipment; the control authority comprises that the high-level master device can control the binding operation and the read-write request operation of the low-level master device on the slave device.
It can be understood that the operation authority of the master device at a high level for controlling the master device at a low level may be controlled in a stepwise hierarchical manner, or may be controlled entirely at a highest level, or may be controlled entirely in a stepwise manner. Taking the above example as an example: step-by-step hierarchical control, namely, the master device at the highest level controls the master device at the first level, the master device at the first level controls the master device at the second level, and so on; the master device of the second highest level controls the master device of the first highest level and the master device of the second highest level, that is, all the master devices of the second highest level are controlled by the master device of the highest level; or, the master device of the highest level controls the master device of the first highest level and the master device of the second highest level, the master device of the first highest level controls the master device of the second highest level, and so on, that the master device of the higher level controls all the master devices lower than the own level.
And step 260, when receiving the control instruction sent by the main equipment, responding to the control instruction according to the preset authority of the main equipment.
In this embodiment, the primary device account stored in the slave device may be matched with a preset account set, the primary device account that fails to be matched is set as a blacklist account, and the primary device account that succeeds in being matched is set as a whitelist account, so that the preset account set is divided into a blacklist and a whitelist, and when a primary device account matching result changes later, primary device information does not need to be added again. Meanwhile, the preset authority of the account of the main equipment is graded and controlled, so that when the slave equipment receives the control instruction sent by the main equipment, the control instruction can be responded according to the preset authority of the main equipment, random tampering and malicious operation of the slave equipment by the main equipment are avoided, the operation of a user is facilitated, and potential safety hazards are eliminated.
EXAMPLE III
Fig. 3 is a schematic structural diagram of an apparatus for rights management according to a third embodiment of the present invention, where the apparatus includes an account matching module 310, a preset rights assignment module 320, and a response control instruction module 330, where:
the account matching module 310 is configured to match, when an account of the primary device is stored in the secondary device, the account of the primary device with a preset account set, where the preset account set includes an identification code and a feature identifier of the primary device;
the preset authority distributing module 320 is used for distributing preset authority to the main device when the matching is successful;
the response control instruction module 330 is configured to, when receiving a control instruction sent by the host device, respond to the control instruction according to a preset authority of the host device.
According to the embodiment of the invention, the main equipment account stored in the slave equipment is matched with the preset account set, and the main equipment account which is successfully matched is allocated with the preset authority, so that when the slave equipment receives the control instruction sent by the main equipment, the control instruction can be responded according to the preset authority of the main equipment, random tampering and malicious operation of the slave equipment by the main equipment are avoided, the operation of a user is facilitated, and potential safety hazards are eliminated.
Further, in the apparatus, the master device and the slave device are both devices having near field communication NFC chips.
The device also includes:
the blacklist setting module is used for setting the account of the primary equipment as a blacklist account if the matching fails;
and the white list setting module is used for setting the account number of the primary equipment as the account number of the white list if the matching is successful.
Further, the preset authority distributing module comprises a grading submodule and an authority distributing submodule, wherein:
the grading submodule is used for determining the grade of the master equipment according to the sequence of communication established between the master equipment and the slave equipment;
the authority distribution submodule is used for distributing control authority for controlling the operation authority of the main equipment of the lower level to the main equipment of the higher level; the control authority comprises that a high-level master device can control the binding operation and the read-write request operation of a low-level master device on the slave device;
optionally, the hierarchical sub-module is specifically configured to: if the account of the primary device is stored in the secondary device, determining the primary device as a high-grade primary device; and if the account number of the master device is not stored in the slave device, determining the first master device establishing communication with the slave device as a high-level master device.
The product can execute the method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 4 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention, as shown in fig. 4, the apparatus includes a processor 40, a memory 41, an input device 42, an output device 43, and a communication device 44; the number of processors 40 in the device may be one or more, and one processor 40 is taken as an example in fig. 4; the processor 40, the memory 41, the input means 42, the output means 43 and the communication means 44 in the device may be connected by a bus or other means, which is exemplified in fig. 4.
The memory 41 is used as a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the method for rights management in the embodiment of the present invention (for example, the account number matching module 310, the preset rights assignment module 320, and the response control instruction module 330 in the device for rights management). The processor 40 executes various functional applications and data processing of the electronic device by executing software programs, instructions, and modules stored in the memory 41, that is, realizes the above-described bill-oriented recognition method.
The memory 41 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 41 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 41 may further include memory located remotely from processor 40, which may be connected to devices/terminals/servers via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 42 is operable to receive input numeric or character information and to generate key signal inputs relating to user settings and function controls of the apparatus. The output device 43 may include a display device such as a display screen. The communication means 44 is used for establishing communication between the slave device and the master device, and may be NFC communication, bluetooth communication, or the like.
EXAMPLE five
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a method for rights management, where the method includes:
when an account of a primary device is stored in a secondary device, matching the account of the primary device with a preset account set, wherein the preset account set comprises an identification code and a characteristic identification of the primary device;
when the matching is successful, distributing a preset authority for the main equipment;
and when receiving a control instruction sent by the main equipment, responding to the control instruction according to the preset authority of the main equipment.
Of course, the embodiments of the present invention provide a computer-readable storage medium, whose computer-executable instructions can perform, but are not limited to, the relevant operations in the method for rights management provided in any embodiments of the present invention.
Further, it is clear to those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, by hardware, but the former is a better implementation in many cases. With this understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a flash Memory (FLA step H), a hard disk or an optical disk of a computer, and the like, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the apparatus for rights management, the included units and modules are only divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (8)

1.一种权限管理的方法,其特征在于,包括:1. a method for rights management, is characterized in that, comprises: 当从设备中存储有主设备的账号时,将所述主设备的账号与预设账号集进行匹配,其中,所述预设账号集包括主设备的识别码和特征标识;When the account of the master device is stored in the slave device, the account of the master device is matched with a preset account set, wherein the preset account set includes the identification code and feature identifier of the master device; 当匹配成功时,为所述主设备分配预设权限;When the matching is successful, assign a preset authority to the master device; 当接收到所述主设备发送的控制指令时,根据所述主设备的预设权限,响应所述控制指令;When receiving the control instruction sent by the master device, responding to the control instruction according to the preset authority of the master device; 所述当匹配成功时,为所述主设备分配预设权限,包括:When the matching is successful, assign a preset authority to the master device, including: 根据所述主设备与所述从设备建立通信的先后次序,确定所述主设备的等级高低;Determine the level of the master device according to the sequence of establishing communication between the master device and the slave device; 为高等级的主设备分配控制低等级的主设备操作权限的控制权限;其中,所述控制权限包括所述高等级的主设备可控制所述低等级的主设备对所述从设备的绑定操作和读写请求操作,所述高等级的主设备对所述低等级的主设备的操作权限的控制包括:逐级分级控制和逐级全部控制;Assign a control authority to control the operation authority of a lower-level master device to a high-level master device; wherein, the control authority includes that the high-level master device can control the binding of the lower-level master device to the slave device operation and read-write request operation, the control of the operation authority of the low-level master device by the high-level master device includes: level-by-level hierarchical control and level-by-level full control; 还包括:生成数据交换格式NDEF记录,所述NDEF记录包括权限管理字段标志、功能设置字长、功能设置字和账号信息;It also includes: generating a data exchange format NDEF record, the NDEF record including a rights management field flag, a function setting word length, a function setting word and account information; 其中,所述功能设置字依次设置为:新加入许可位、黑名单或白名单控制位、近场通信NFC读写控制位、拒绝或接受新主设备的绑定申请和功能开关;Wherein, the function setting words are sequentially set as: newly added permission bit, blacklist or whitelist control bit, near field communication NFC read and write control bit, reject or accept the binding application and function switch of the new master device; 所述当从设备中存储有主设备的账号时,将所述主设备的账号与预设账号集进行匹配之后,还包括:When the account of the master device is stored in the slave device, after matching the account of the master device with the preset account set, the method further includes: 如果匹配失败,则将所述主设备账号设置为黑名单账号;如果匹配成功,则将所述主设备账号设置为白名单账号。If the matching fails, the master device account is set as a blacklist account; if the matching is successful, the master device account is set as a whitelist account. 2.根据权利要求1所述的方法,其特征在于,所述主设备和所述从设备均是具有近场通信NFC芯片的设备。2 . The method according to claim 1 , wherein the master device and the slave device are both devices having a near field communication (NFC) chip. 3 . 3.根据权利要求1所述的方法,其特征在于,所述根据所述主设备与所述从设备建立通信的先后次序,确定所述主设备的等级高低,包括:3. The method according to claim 1, wherein the determining the level of the master device according to the sequence of establishing communication between the master device and the slave device comprises: 如果所述从设备中存储有一个所述主设备的账号,则将所述主设备确定为所述高等级的主设备;如果所述从设备中没有存储所述主设备的账号,则将第一个与所述从设备建立通信的所述主设备确定为所述高等级的主设备。If there is an account of the master device stored in the slave device, the master device is determined as the high-level master device; if the slave device does not store the account of the master device, the first device is determined as the master device. One of the master devices that establishes communication with the slave device is determined to be the high-level master device. 4.一种权限管理的装置,其特征在于,包括:4. A device for rights management, comprising: 账号匹配模块,用于当从设备中存储有主设备的账号时,将所述主设备的账号与预设账号集进行匹配,其中,所述预设账号集包括主设备的识别码和特征标识;an account matching module, configured to match the account of the master device with a preset account set when the slave device stores the account of the master device, wherein the preset account set includes the identification code and the feature identifier of the master device ; 预设权限分配模块,用于当匹配成功时,为所述主设备分配预设权限;a preset authority assignment module, configured to assign a preset authority to the master device when the matching is successful; 控制指令响应模块,用于当接收到主设备发送的控制指令时,根据所述主设备的预设权限,响应所述控制指令;a control command response module, configured to respond to the control command according to the preset authority of the master device when receiving the control command sent by the master device; 所述预设权限分配模块包括:The preset authority assignment module includes: 分级子模块,用于根据所述主设备与所述从设备建立通信的先后次序,确定所述主设备的等级高低;a grading sub-module, configured to determine the level of the master device according to the sequence of establishing communication between the master device and the slave device; 权限分配子模块,用于为高等级的主设备分配控制低等级的主设备操作权限的控制权限;其中,所述控制权限包括所述高等级的主设备可控制所述低等级的主设备对所述从设备的绑定操作和读写请求操作,所述高等级的主设备对所述低等级的主设备的操作权限的控制包括:逐级分级控制和逐级全部控制;The authority assignment sub-module is used to assign the control authority to control the operation authority of the lower-level master equipment to the high-level master equipment; wherein, the control authority includes that the high-level master equipment can control the low-level master equipment to The binding operation and read-write request operation of the slave device, the control of the operation authority of the low-level master device by the high-level master device includes: level-by-level hierarchical control and level-by-level full control; 还包括用于生成数据交换格式NDEF记录的模块,所述NDEF记录包括权限管理字段标志、功能设置字长、功能设置字和账号信息;Also include a module for generating a data exchange format NDEF record, the NDEF record comprising a rights management field flag, a function setting word length, a function setting word and account information; 其中,所述功能设置字依次设置为:新加入许可位、黑名单或白名单控制位、近场通信NFC读写控制位、拒绝或接受新主设备的绑定申请和功能开关;Wherein, the function setting words are sequentially set as: newly added permission bit, blacklist or whitelist control bit, near field communication NFC read-write control bit, reject or accept the binding application and function switch of the new master device; 黑名单设置模块,用于如果匹配失败,则将所述主设备账号设置为黑名单账号;The blacklist setting module is used to set the master device account as a blacklist account if the matching fails; 白名单设置模块,用于如果匹配成功,则将所述主设备账号设置为白名单账号。The whitelist setting module is used to set the master device account as a whitelist account if the match is successful. 5.根据权利要求4所述的装置,其特征在于:5. The device according to claim 4, wherein: 所述主设备和所述从设备均是具有近场通信NFC芯片的设备。Both the master device and the slave device are devices with a near field communication NFC chip. 6.根据权利要求4所述的装置,其特征在于,所述分级子模块具体用于:如果所述从设备中存储有一个所述主设备的账号,则将所述主设备确定为所述高等级的主设备;如果所述从设备中没有存储所述主设备的账号,则将第一个与所述从设备建立通信的所述主设备确定为所述高等级主设备。6 . The apparatus according to claim 4 , wherein the grading submodule is specifically configured to: if the slave device stores an account of the master device, determine the master device as the master device. 7 . A high-level master device; if the slave device does not store the account of the master device, the first master device that establishes communication with the slave device is determined as the high-level master device. 7.一种设备,其特征在于,所述设备包括:7. A device, characterized in that the device comprises: 一个或多个处理器;one or more processors; 存储装置,用于存储一个或多个程序;a storage device for storing one or more programs; 通信装置,用于建立与主设备之间的通信;a communication device for establishing communication with the master device; 当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-3中任一所述的权限管理方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the rights management method according to any one of claims 1-3. 8.一种包含计算机可执行指令的存储介质,其特征在于,所述计算机可执行指令在由计算机处理器执行时用于执行如权利要求1-3中任一所述的权限管理方法。8. A storage medium containing computer-executable instructions, wherein the computer-executable instructions are used to execute the rights management method according to any one of claims 1-3 when the computer-executable instructions are executed by a computer processor.
CN201711043535.7A 2017-10-31 2017-10-31 Authority management method, device, equipment and storage medium Active CN107612941B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711043535.7A CN107612941B (en) 2017-10-31 2017-10-31 Authority management method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711043535.7A CN107612941B (en) 2017-10-31 2017-10-31 Authority management method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN107612941A CN107612941A (en) 2018-01-19
CN107612941B true CN107612941B (en) 2021-01-29

Family

ID=61084544

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711043535.7A Active CN107612941B (en) 2017-10-31 2017-10-31 Authority management method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN107612941B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108713199B (en) * 2018-06-04 2022-03-11 深圳市奥星澳科技有限公司 Authority management method and system, mobile terminal, shared charging equipment and server
CN109640326B (en) * 2018-11-16 2022-01-14 深圳绿米联创科技有限公司 Authority management method, device and system and mobile terminal
CN111385611B (en) * 2018-12-28 2022-03-11 深圳Tcl新技术有限公司 Account login method of smart television, smart television and terminal equipment
CN110071914B (en) * 2019-04-03 2022-07-01 广州视源电子科技股份有限公司 Communication method, frame structure construction method, device, MCU, system and medium
CN114244540B (en) * 2020-09-07 2022-10-25 华为技术有限公司 Permission control method, device, system and computer-readable storage medium
CN114357400A (en) * 2021-12-02 2022-04-15 北京金山云网络技术有限公司 Login verification method and device, electronic equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105530244A (en) * 2015-12-03 2016-04-27 北京奇虎科技有限公司 A method and server for realizing master control device to control smart device
CN105629744A (en) * 2015-04-30 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Control method of smart home, control system, terminal and smart home system
CN106506442A (en) * 2016-09-14 2017-03-15 上海百芝龙网络科技有限公司 A kind of smart home multi-user identification and its Rights Management System
CN106647306A (en) * 2016-12-29 2017-05-10 北京小米移动软件有限公司 Smart device control method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105629744A (en) * 2015-04-30 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Control method of smart home, control system, terminal and smart home system
CN105530244A (en) * 2015-12-03 2016-04-27 北京奇虎科技有限公司 A method and server for realizing master control device to control smart device
CN106506442A (en) * 2016-09-14 2017-03-15 上海百芝龙网络科技有限公司 A kind of smart home multi-user identification and its Rights Management System
CN106647306A (en) * 2016-12-29 2017-05-10 北京小米移动软件有限公司 Smart device control method and device

Also Published As

Publication number Publication date
CN107612941A (en) 2018-01-19

Similar Documents

Publication Publication Date Title
CN107612941B (en) Authority management method, device, equipment and storage medium
CN107534653B (en) Cloud-based cross-device digital pen pairing
CN111311251B (en) Binding processing method, device and equipment
US20170317827A1 (en) Electronic stamp system for security intensification, control method thereof, and non-transitory computer readable storage medium having computer program recorded thereon
US10645568B2 (en) Carrier configuration processing method, device and system, and computer storage medium
US11316693B2 (en) Trusted platform module-based prepaid access token for commercial IoT online services
WO2021218979A1 (en) Login method and system based on cloud application instance, and related device
CN110602216B (en) Method and device for using single account by multiple terminals, cloud server and storage medium
CN101860534B (en) Method and system for switching network, access equipment and authentication server
CN107666505B (en) Method and apparatus for controlling resource access
US11184474B2 (en) System and method for supporting movable object application development
CN106161385A (en) The long-range control method of a kind of equipment and device
CN109450753B (en) Intelligent household appliance sharing method
US10122417B2 (en) Communicating via near field communications
JP6923582B2 (en) Information processing equipment, information processing methods, and programs
CN112202747A (en) Target device binding method and device, storage medium and electronic device
US20150256544A1 (en) Method and Device for Gateway Managing Terminal
EP3534629B1 (en) Dynamic data package access for mobile device
CN104732165A (en) Management method of applications and terminal
CN106773797B (en) An information processing method, system and management platform
CN105451228A (en) Information processing method and device
CN112600744A (en) Authority control method and device, storage medium and electronic device
CN107277794A (en) Set up the method, device and mobile terminal of communication connection
CN106462845B (en) A configuration method and terminal of a non-contact front end
KR20190071530A (en) Server and method for controlling packet transmission

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