CN113341740A - Equipment control method and device, computer equipment and storage medium - Google Patents

Equipment control method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113341740A
CN113341740A CN202110597402.4A CN202110597402A CN113341740A CN 113341740 A CN113341740 A CN 113341740A CN 202110597402 A CN202110597402 A CN 202110597402A CN 113341740 A CN113341740 A CN 113341740A
Authority
CN
China
Prior art keywords
equipment
identifier
group
operation group
operation instruction
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.)
Pending
Application number
CN202110597402.4A
Other languages
Chinese (zh)
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.)
Shenzhen Leiniao Network Media Co ltd
Original Assignee
Shenzhen Leiniao Network Media 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 Shenzhen Leiniao Network Media Co ltd filed Critical Shenzhen Leiniao Network Media Co ltd
Priority to CN202110597402.4A priority Critical patent/CN113341740A/en
Publication of CN113341740A publication Critical patent/CN113341740A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the application discloses a device control method and device, computer equipment and a storage medium, and relates to the technical field of communication. The scheme adopts a receiving device connection request which carries a device identifier and an object identifier; determining an equipment operation group corresponding to the object identifier according to the equipment identifier, wherein the equipment operation group is associated with at least one piece of equipment; adding an object corresponding to the object identifier to the equipment operation group; and if receiving an operation instruction aiming at the equipment sent by the equipment operation group, controlling the equipment to execute the operation indicated by the operation instruction. And determining a corresponding equipment operation group through the object identifier, and controlling the equipment through the equipment operation group to realize that a plurality of objects control the equipment.

Description

Equipment control method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a device control method, apparatus, computer device, and storage medium.
Background
The internet of things is an information carrier based on the internet, a traditional telecommunication network and the like, and enables devices which can be independently addressed to form an interconnected network, and the devices are usually connected by adopting infrared rays, Bluetooth or a local area network to realize interconnection.
The device is connected by adopting infrared rays, Bluetooth or a local area network, each device can only be bound with one operation terminal, the devices are controlled by the bound operation terminals, and the devices cannot be controlled by a plurality of operation terminals.
Disclosure of Invention
The embodiment of the application provides a device control method and device, computer equipment and a storage medium. The control of the device by a plurality of objects can be realized.
An apparatus control method provided in an embodiment of the present application includes:
receiving an equipment connection request, wherein the equipment connection request carries an equipment identifier and an object identifier;
determining an equipment operation group corresponding to the object identifier according to the equipment identifier, wherein the equipment operation group is associated with at least one piece of equipment;
adding the object corresponding to the object identification to the equipment operation group;
and if receiving an operation instruction aiming at the equipment, which is sent by the equipment operation group, controlling the equipment to execute the operation indicated by the operation instruction.
Correspondingly, an apparatus control device provided in an embodiment of the present application includes:
a receiving unit, configured to receive an equipment connection request, where the equipment connection request carries an equipment identifier and an object identifier;
a determining unit, configured to determine, according to the device identifier, a device operation group corresponding to the object identifier, where the device operation group is associated with at least one device;
the adding unit is used for adding the object corresponding to the object identifier to the equipment operation group;
and the control unit is used for controlling the equipment to execute the operation indicated by the operation instruction if the operation instruction aiming at the equipment, which is sent by the equipment operation group, is received.
Correspondingly, the embodiment of the application also provides computer equipment, which comprises a memory and a processor; the memory stores a computer program, and the processor is used for operating the computer program in the memory to execute any device control method provided by the embodiment of the application.
Correspondingly, the embodiment of the present application further provides a storage medium, where the storage medium is used to store a computer program, and the computer program is loaded by a processor to execute any one of the apparatus control methods provided in the embodiment of the present application.
The method comprises the steps of receiving a device connection request, wherein the device connection request carries a device identifier and an object identifier; determining an equipment operation group corresponding to the object identifier according to the equipment identifier, wherein the equipment operation group is associated with at least one piece of equipment; adding an object corresponding to the object identifier to the equipment operation group; and if receiving an operation instruction aiming at the equipment sent by the equipment operation group, controlling the equipment to execute the operation indicated by the operation instruction. And determining a corresponding equipment operation group through the object identifier, and controlling the equipment through the equipment operation group to realize that a plurality of objects control the equipment.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of an apparatus control method provided in an embodiment of the present application;
fig. 2 is a schematic diagram of a device associated with an operation group of devices provided in an embodiment of the present application;
FIG. 3 is a schematic diagram of an operational group of devices provided by an embodiment of the present application;
FIG. 4 is another schematic diagram of an operational group of devices provided by an embodiment of the present application;
fig. 5 is another flowchart of an apparatus control method provided in an embodiment of the present application;
FIG. 6 is a schematic diagram of a device control apparatus provided in an embodiment of the present application;
fig. 7 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a device control method and device, computer equipment and a storage medium. The case ratio query device may be integrated into a computer device, which may be a server. The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as cloud service, a cloud database, cloud computing, a cloud function, cloud storage, Network service, cloud communication, middleware service, domain name service, security service, Content Delivery Network (CDN), big data and an artificial intelligence platform.
The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
The present embodiment will be described from the perspective of a device control apparatus, which may be specifically integrated in a computer device, which may be a server.
101. And receiving a device connection request, wherein the device connection request carries a device identifier and an object identifier.
For example, the server may specifically receive a device connection request triggered by a user on a terminal used by the server.
For example, a user inputs voice information "connect to a television" in a mobile phone, the mobile phone queries a nearby television, obtains a device identifier of the television, and sends a device connection request carrying the device identifier and the mobile phone identifier (i.e., an object identifier) to a server.
For example, a user inputs a fingerprint on a designated device connection page on a mobile phone, and triggers the mobile phone to send a device connection request.
The server may receive, in addition to a device connection request triggered by the user on the terminal used by the user, a device connection request sent by a device to which the user is to connect, that is, the step "receiving the device connection request", specifically may be:
and receiving an equipment connection request which is sent by equipment in response to the code scanning operation to acquire the object identifier, wherein the equipment carries the equipment identifier.
For example, a user connects to the device through a remote controller or a touch click, the device may display a two-dimensional code, the user scans the two-dimensional code through a terminal used by the user to connect, the device responds to the code scanning operation of the user to obtain an object identifier of the user, and the object identifier may be an identifier of the terminal used by the user. And sending an equipment connection request carrying the object identifier and the equipment identifier of the equipment to the server. The server receives the device connection request.
102. And determining an equipment operation group corresponding to the object identifier according to the equipment identifier, wherein the equipment operation group is associated with at least one piece of equipment.
The device operation group may be a combination of objects including devices that can control the device identification. The device operation group may be associated with one device or a plurality of devices, and then control the associated devices.
For example, whether the device is associated by the user is determined according to the device identifier, and if no user is associated with the device, the user is reminded to create the device operation group. And the server responds to the operation of the user for creating the equipment operation, and correspondingly generates an equipment operation group, namely the equipment operation group corresponding to the object identifier is the equipment operation group created by the user.
And if the existing user is associated and creates the equipment operation group, inquiring whether the user initiates an application to the associated user to join the equipment operation group. And if so, initiating an application to the associated user, and determining the equipment operation group corresponding to the object identifier as the equipment operation group created by the associated user according to the agreement of the associated user to join the response.
The server may generate the corresponding device operation group in response to the operation of the user, and may also automatically generate the corresponding device operation group, that is, the step "determining the device operation group corresponding to the object identifier according to the device identifier" may specifically be:
if the object identifier is the target identifier, establishing a corresponding equipment operation group based on the equipment identifier;
and if the object identifier is not the target identifier, determining the established equipment operation group matched with the equipment identifier.
For example, if the device is not associated with a user, the object identifier carried by the device connection request is a target identifier, and the device operation group corresponding to the device identifier is established according to the device identifier, so that the object included in the device operation group can control the device corresponding to the device identifier. And the equipment operation group corresponding to the object identification is the equipment operation group generated by the server.
If the device has user association, and the object identifier carried by the device connection request is not the target identifier, determining the established device operation group corresponding to the device identifier, that is, determining the device operation group corresponding to the object identifier as the established device operation group.
The equipment operation group corresponding to the object identifier is determined according to the equipment connection request, and the user does not need to participate in the process of establishing the equipment operation group, so that the user can be rapidly added into the equipment operation group without complex operation, and the experience of the user is improved.
103. And adding the object corresponding to the object identification to the equipment operation group.
For example, the object corresponding to the object identifier may be specifically added to the device operation group, so that the object may perform a corresponding operation on controlling the device.
In order to improve security, when a device has a user association, a server may set a first object associated with the device as an administrator, and the administrator may determine whether to approve the joining of another person, that is, in an embodiment, the step "add an object corresponding to an object identifier to an operation group of the device" may specifically be:
if the object corresponding to the object identification is not the target object, acquiring object information corresponding to the object;
generating an access request according to the object information, and sending the access request to a target object;
and adding the object to the equipment operation group according to the confirmation response returned for the access request.
The object information may be information capable of indicating the identity of the user, such as an image, a name, a character string, a sequence, or the like.
The target object may be an object in the device operation group that manages the joining objects, for example, an object that is the first joining device operation may be set as the target object, and an object specified by the user may be set as the target object.
For example, the terminal used by the object may be started if the object corresponding to the object identifier is not the target object, or the device to which the object is to be connected starts a camera, collects image information of the user, generates an access request according to the image information, and sends the access request to the target object.
The user corresponding to the target object can judge whether to approve the user to join the equipment operation group according to the received image information, and returns a response aiming at the access request.
And the server receives a confirmation response returned by the target object, and adds the object corresponding to the object identification to the equipment operation group according to the confirmation response. And if the server receives a response of not agreeing with the access, the server refuses the access of the user.
In one embodiment, the server may pop up an input box through a terminal used by the object or a device to which the object is to be connected, so that the user may input object information such as a name, an invitation code, or a password (such as a character string, a character sequence, etc.), and obtain the object information input by the user.
By acquiring the object information and verifying the identity of the accessed object through the target object, the security of the object added into the equipment operation group is ensured, and the malicious operation of the object with unknown identity in the equipment operation group on the equipment is prevented, so that the data of the equipment is lost or the equipment is damaged.
When there is an object associated device, the preset relationship group of the object may be added to the device operation group, for example, a relationship group — a family group is preset for the object, and when the object is associated with the device, the object and the object in the family group corresponding to the object are added to the device operation group, that is, after the step "adding the object corresponding to the object identifier to the device operation group", the method further includes:
inquiring a preset relation group corresponding to the object identification, wherein the relation group comprises at least one relation object identification;
and adding the object corresponding to the relation object identifier in the preset relation group into the equipment operation group.
For example, a preset relationship group preset by an object corresponding to the object identifier is queried, and an object corresponding to the relationship object identifier included in the preset relationship group is added to the device operation group.
Optionally, if no object is associated with the device corresponding to the device identifier, the server creates a corresponding device operation group based on the device identifier, obtains a preset relationship group based on the object identifier, and adds the object in the relationship group to the device operation group.
Optionally, if the device corresponding to the device identifier does not have an object for association, the server creates a corresponding device operation group based on the device identifier, queries device operation groups corresponding to other devices associated with the object corresponding to the object identifier, determines the device operation groups corresponding to the other devices as a preset relationship group, and adds the object in the relationship group to the created device operation group.
Optionally, if the device corresponding to the device identifier does not have an object for association, the server creates a corresponding device operation group based on the device identifier, queries a device operation group corresponding to another device associated with the object corresponding to the object identifier, determines the device operation group corresponding to the other device as a preset relationship group, and associates the preset relationship group with the device, that is, the preset relationship group associates two devices.
For example, as shown in fig. 2, the device operation group "family a" includes member a, member B, and member C, and the devices associated with "family a" have a television a, a television B, an air conditioner C, and a refrigerator d; the device operation group "B family" includes member a, member D, and member E, and as shown in fig. 3, the devices associated with "B family" have a television c, a washing machine a. Wherein, the member A exists in two device operation groups, and can control the corresponding device through different device operation groups.
Alternatively, as shown in fig. 4, the user may view all devices associated with the device operation group in which the user is located on the terminal.
Optionally, as shown in fig. 5, the user may also view the members in the device operation group in which the user is located on the terminal.
The objects can be added to the equipment operation group in batches by inquiring the preset relation group, and even if a user does not perform operation of adding the operation equipment group, the equipment can be controlled, so that the equipment connecting efficiency is improved.
104. And if receiving an operation instruction aiming at the equipment sent by the equipment operation group, controlling the equipment to execute the operation indicated by the operation instruction.
For example, when an operation instruction for a device is sent by an object in the server device operation group, the operation instruction is sent to the corresponding device to control the device to execute the corresponding operation based on the operation instruction.
Optionally, when an operation instruction for the device is sent by an object in the server device operation group, the operation instruction is processed to obtain an instruction that can be recognized by the device, and the instruction is sent to the corresponding device to control the device to execute the corresponding operation based on the operation instruction.
Because the device operation group includes a plurality of objects, an object for managing the device operation group needs to exist, for example, objects in the device operation group are all family members, a parent may be determined as a management object, and if objects in the device operation group are all company employees, an administrative staff or an IT staff of a company may be determined as a management object, that is, the method provided in real time in the present application further includes:
acquiring characteristic information corresponding to object identification in an equipment operation group;
obtaining object characteristics corresponding to the object identification according to the characteristic information;
and determining a management object of the equipment operation group based on the object characteristics.
For example, the specific information may be feature information such as age, gender, record of listening to a song, record of watching a video, and usage of the device of the user corresponding to the object identifier, and the object feature corresponding to the user is obtained through the obtained feature information, for example, the identity of the user is determined, such as father or mother, or employee of which department of the company.
Determining a management object of the device operation group according to the determined object characteristics, for example, setting an object with object characteristics as a parent as the management object; or setting an object with an object characteristic of administrative staff as a management object.
Optionally, multiple management objects may be set, different levels may be set for the multiple management objects, and different operations may be performed on the management objects of different levels. For example, a management object at level a may set the rights of other objects, a management object at level B may verify the identity of an accessed object, determine whether to grant access to the accessed object, and so on.
Because the device operation group comprises a plurality of objects, the management object can set different authorities for the objects in the device operation group, and the safety of the control device is improved. Namely, the method provided by the embodiment of the application further comprises the following steps:
and responding to the authority setting operation of the management object aiming at the object identifier in the equipment operation group, and setting the corresponding operation authority for the object identifier to obtain an operation authority condition.
For example, according to the authority setting operation for managing the objects corresponding to different object identifiers, the corresponding operation authority of each object in the device operation group is determined, and the operation authority condition of each object in the device operation group is obtained.
For example, object a cannot perform payment-related operations on the device, object B cannot use the device for a certain time, object C can only view video under a specified category, and so on.
When receiving an operation instruction, determining an operation authority condition of the object through the object identifier, determining whether the operation instruction meets the operation authority condition, and determining whether to execute the operation instruction, that is, the method provided by the embodiment of the present application further includes:
if an operation instruction aiming at the equipment and sent by an equipment operation group is received, judging whether the operation instruction accords with an operation authority condition or not based on the object identification;
and if so, controlling the equipment to execute the operation indicated by the operation instruction.
For example, specifically, when an operation instruction for a device sent by a certain object in a device operation group is received, specifically, the operation instruction for the device sent by the certain object in the device operation group may be obtained based on an object identifier, and it is determined whether the operation of the user satisfies an execution condition based on the operation authority condition, and if so, the corresponding device is controlled to execute an operation corresponding to the operation instruction.
And if the operation authority condition is not met, the operation instruction or the corresponding operation instruction is not sent to the equipment.
In addition to determining whether the received operation instruction meets the operation permission condition, an operation page matched with the operation permission condition may be displayed on terminals of different objects based on the operation permission condition, that is, in an embodiment, the method provided in the embodiment of the present application further includes:
displaying the matched operation page through the terminal corresponding to the object identifier based on the operation authority condition;
and if receiving an operation instruction aiming at the equipment and triggered by the operation page, controlling the equipment to execute the operation indicated by the operation instruction.
For example, an operation page matched with the operation authority condition may be displayed on a terminal corresponding to different object identifiers according to the operation authority condition, when a user operates on the operation page, the terminal is triggered to send an operation instruction to the server, and the server controls the corresponding device to execute a related operation according to the operation instruction.
By displaying the operation page matched with the operation authority condition on the terminal, whether the received operation instruction meets the operation authority condition or not does not need to be judged, and the speed of the control equipment for executing related operations is improved. And the user does not control the equipment to execute the operation on the terminal but can not obtain the correct feedback, so that the experience of the user can be improved.
As can be seen from the above, in the embodiment of the present application, an equipment connection request is received, where the equipment connection request carries an equipment identifier and an object identifier; determining an equipment operation group corresponding to the object identifier according to the equipment identifier, wherein the equipment operation group is associated with at least one piece of equipment; adding an object corresponding to the object identifier to the equipment operation group; and if receiving an operation instruction aiming at the equipment sent by the equipment operation group, controlling the equipment to execute the operation indicated by the operation instruction. And determining a corresponding equipment operation group through the object identifier, and controlling the equipment through the equipment operation group to realize that a plurality of objects control the equipment.
In order to better implement the device control method provided by the embodiment of the application, a device control device is further provided in an embodiment. Wherein the meanings of the nouns are the same as those in the above-mentioned equipment control method, and the details of the specific implementation can be referred to the description in the method embodiment.
The device control apparatus may be specifically integrated in a computer device, as shown in fig. 6, and the device control apparatus may include: the receiving unit 201, the determining unit 202, the adding unit 203 and the control unit 204 are specifically as follows:
the receiving unit 201: the device connection request is used for receiving a device connection request, and the device connection request carries a device identifier and an object identifier.
For example, the server may specifically receive a device connection request triggered by a user on a terminal used by the server.
For example, a user inputs voice information "connect to a television" in a mobile phone, the mobile phone queries a nearby television, obtains a device identifier of the television, and sends a device connection request carrying the device identifier and the mobile phone identifier (i.e., an object identifier) to a server.
For example, a user inputs a fingerprint on a designated device connection page on a mobile phone, and triggers the mobile phone to send a device connection request.
The receiving unit 201 may receive, in addition to a device connection request triggered by a user on a terminal used by the user, a device connection request sent by a device to be connected by the user, and specifically, the receiving unit 201 may be configured to:
and receiving an equipment connection request which is sent by equipment in response to the code scanning operation to acquire the object identifier, wherein the equipment carries the equipment identifier.
For example, a user connects to the device through a remote controller or a touch click, the device may display a two-dimensional code, the user scans the two-dimensional code through a terminal used by the user to connect, the device responds to the code scanning operation of the user to obtain an object identifier of the user, and the object identifier may be an identifier of the terminal used by the user. And sending an equipment connection request carrying the object identifier and the equipment identifier of the equipment to the server. The server receives the device connection request.
The determination unit 202: and the device operation group is used for determining a device operation group corresponding to the object identifier according to the device identifier, and the device operation group is associated with at least one device.
For example, whether the device is associated by the user is determined according to the device identifier, and if no user is associated with the device, the user is reminded to create the device operation group. And the server responds to the operation of the user for creating the equipment operation, and correspondingly generates an equipment operation group, namely the equipment operation group corresponding to the object identifier is the equipment operation group created by the user.
And if the existing user is associated and creates the equipment operation group, inquiring whether the user initiates an application to the associated user to join the equipment operation group. And if so, initiating an application to the associated user, and determining the equipment operation group corresponding to the object identifier as the equipment operation group created by the associated user according to the agreement of the associated user to join the response.
Besides generating a corresponding device operation group in response to a user operation, the determining unit 202 may also automatically generate the corresponding device operation group, and specifically, the determining unit 202 may be configured to:
if the object identifier is the target identifier, establishing a corresponding equipment operation group based on the equipment identifier;
and if the object identifier is not the target identifier, determining the established equipment operation group matched with the equipment identifier.
For example, if the device is not associated with a user, the object identifier carried by the device connection request is a target identifier, and the device operation group corresponding to the device identifier is established according to the device identifier, so that the object included in the device operation group can control the device corresponding to the device identifier. And the equipment operation group corresponding to the object identification is the equipment operation group generated by the server.
If the device has user association, and the object identifier carried by the device connection request is not the target identifier, determining the established device operation group corresponding to the device identifier, that is, determining the device operation group corresponding to the object identifier as the established device operation group.
The equipment operation group corresponding to the object identifier is determined according to the equipment connection request, and the user does not need to participate in the process of establishing the equipment operation group, so that the user can be rapidly added into the equipment operation group without complex operation, and the experience of the user is improved.
The adding unit 203: and the object identifier is used for adding the object corresponding to the object identifier to the equipment operation group.
For example, the object corresponding to the object identifier may be specifically added to the device operation group, so that the object may perform a corresponding operation on controlling the device.
To improve security, when a device has a user association, the adding unit 203 may further set a first object associated with the device as an administrator, and the administrator may decide whether to approve the participation of another person, specifically, the determining unit 202 may be configured to:
if the object corresponding to the object identification is not the target object, acquiring object information corresponding to the object;
generating an access request according to the object information, and sending the access request to a target object;
and adding the object to the equipment operation group according to the confirmation response returned for the access request.
For example, the terminal used by the object may be started if the object corresponding to the object identifier is not the target object, or the device to which the object is to be connected starts a camera, collects image information of the user, generates an access request according to the image information, and sends the access request to the target object.
The user corresponding to the target object can judge whether to approve the user to join the equipment operation group according to the received image information, and returns a response aiming at the access request.
And the server receives a confirmation response returned by the target object, and adds the object corresponding to the object identification to the equipment operation group according to the confirmation response. And if the server receives a response of not agreeing with the access, the server refuses the access of the user.
In one embodiment, the server may pop up an input box through a terminal used by the object or a device to which the object is to be connected, so that the user may input object information such as a name, an invitation code, or a password (such as a character string, a sequence, etc.), and obtain the object information input by the user.
Optionally, the device control apparatus may further include a query unit, where the query unit may be configured to add all the preset relationship groups of the object to the device operation group when there is an object associated with the device, and specifically, the query unit may be configured to:
inquiring a preset relation group corresponding to the object identification, wherein the relation group comprises at least one relation object identification;
and adding the object corresponding to the relation object identifier in the preset relation group into the equipment operation group.
For example, a preset relationship group preset by an object corresponding to the object identifier is queried, and an object corresponding to the relationship object identifier included in the preset relationship group is added to the device operation group.
Optionally, if no object is associated with the device corresponding to the device identifier, the server creates a corresponding device operation group based on the device identifier, obtains a preset relationship group based on the object identifier, and adds the object in the relationship group to the device operation group.
Optionally, if the device corresponding to the device identifier does not have an object for association, the server creates a corresponding device operation group based on the device identifier, queries device operation groups corresponding to other devices associated with the object corresponding to the object identifier, determines the device operation groups corresponding to the other devices as a preset relationship group, and adds the object in the relationship group to the created device operation group.
The control unit 204: and the control device is used for controlling the device to execute the operation indicated by the operation instruction if the operation instruction aiming at the device sent by the device operation group is received.
For example, when an operation instruction for a device is sent by an object in the server device operation group, the operation instruction is sent to the corresponding device to control the device to execute the corresponding operation based on the operation instruction.
Optionally, the device control apparatus may further include an object determination unit, where the object determination unit is specifically configured to:
acquiring characteristic information corresponding to object identification in an equipment operation group;
obtaining object characteristics corresponding to the object identification according to the characteristic information;
and determining a management object of the equipment operation group based on the object characteristics.
For example, the specific information may be feature information such as age, gender, record of listening to a song, record of watching a video, and usage of the device of the user corresponding to the object identifier, and the object feature corresponding to the user is obtained through the obtained feature information, for example, the identity of the user is determined, such as father or mother, or employee of which department of the company.
Determining a management object of the device operation group according to the determined object characteristics, for example, setting an object with object characteristics as a parent as the management object; or setting an object with an object characteristic of administrative staff as a management object.
Optionally, multiple management objects may be set, different levels may be set for the multiple management objects, and different operations may be performed on the management objects of different levels. For example, a management object at level a may set the rights of other objects, a management object at level B may verify the identity of an accessed object, determine whether to grant access to the accessed object, and so on.
The device control apparatus may further include an authority setting unit, and specifically, the authority setting unit may be configured to:
and responding to the authority setting operation of the management object aiming at the object identifier in the equipment operation group, and setting the corresponding operation authority for the object identifier to obtain an operation authority condition.
For example, according to the authority setting operation for managing the objects corresponding to different object identifiers, the corresponding operation authority of each object in the device operation group is determined, and the operation authority condition of each object in the device operation group is obtained.
For example, object a cannot perform payment-related operations on the device, object B cannot use the device for a certain time, object C can only view video under a specified category, and so on.
Optionally, the control unit 204 may include a first execution subunit, and specifically, the first execution subunit may be configured to:
if an operation instruction aiming at the equipment and sent by an equipment operation group is received, judging whether the operation instruction accords with an operation authority condition or not based on the object identification;
and if so, controlling the equipment to execute the operation indicated by the operation instruction.
For example, specifically, when an operation instruction for a device sent by a certain object in a device operation group is received, specifically, the operation instruction for the device sent by the certain object in the device operation group may be obtained based on an object identifier, and it is determined whether the operation of the user satisfies an execution condition based on the operation authority condition, and if so, the corresponding device is controlled to execute an operation corresponding to the operation instruction.
And if the operation authority condition is not met, the operation instruction or the corresponding operation instruction is not sent to the equipment.
Optionally, the control unit 204 may include a second execution subunit, and specifically, the second execution subunit may be configured to:
displaying the matched operation page through the terminal corresponding to the object identifier based on the operation authority condition;
and if receiving an operation instruction aiming at the equipment and triggered by the operation page, controlling the equipment to execute the operation indicated by the operation instruction.
For example, an operation page matched with the operation authority condition may be displayed on a terminal corresponding to different object identifiers according to the operation authority condition, when a user operates on the operation page, the terminal is triggered to send an operation instruction to the server, and the server controls the corresponding device to execute a related operation according to the operation instruction.
As can be seen from the above, in the embodiment of the present application, the receiving unit 201 receives an equipment connection request, where the equipment connection request carries an equipment identifier and an object identifier; determining, by the determining unit 202, an equipment operation group corresponding to the object identifier according to the equipment identifier, where the equipment operation group is associated with at least one piece of equipment; adding an object corresponding to the object identifier to the device operation group through the adding unit 203; if an operation instruction for the device sent by the device operation group is received, the control unit 204 controls the device to execute the operation indicated by the operation instruction. And determining a corresponding equipment operation group through the object identifier, and controlling the equipment through the equipment operation group to realize that a plurality of objects control the equipment.
The embodiment of the present application further provides a server, where the server may be a server, as shown in fig. 7, which shows a schematic structural diagram of the server according to the embodiment of the present application, and specifically:
the server may include components such as a processor 1001 of one or more processing cores, memory 1002 of one or more computer-readable storage media, a power source 1003, and an input unit 1004. Those skilled in the art will appreciate that the server architecture shown in FIG. 7 is not meant to be limiting, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 1001 is a control center of the server, connects various parts of the entire server using various interfaces and lines, and performs various functions of the server and processes data by running or executing software programs and/or modules stored in the memory 1002 and calling data stored in the memory 1002, thereby performing overall monitoring of the server. Optionally, processor 1001 may include one or more processing cores; preferably, the processor 1001 may integrate an application processor, which mainly handles operating systems, user interfaces, computer programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 1001.
The memory 1002 may be used to store software programs and modules, and the processor 1001 executes various functional applications and data processing by operating the software programs and modules stored in the memory 1002. The memory 1002 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, a computer program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to the use of the server, and the like. Further, the memory 1002 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 volatile solid state storage device. Accordingly, the memory 1002 may also include a memory controller to provide the processor 1001 access to the memory 1002.
The server further includes a power source 1003 for supplying power to each component, and preferably, the power source 1003 may be logically connected to the processor 1001 through a power management system, so that functions of managing charging, discharging, power consumption, and the like are implemented through the power management system. The power source 1003 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The server may also include an input unit 1004, and the input unit 1004 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the server may further include a display unit and the like, which will not be described in detail herein. Specifically, in this embodiment, the processor 1001 in the server loads the executable file corresponding to the process of one or more computer programs into the memory 1002 according to the following instructions, and the processor 1001 runs the computer programs stored in the memory 1002, so as to implement various functions as follows:
receiving an equipment connection request, wherein the equipment connection request carries an equipment identifier and an object identifier;
determining an equipment operation group corresponding to the object identifier according to the equipment identifier, wherein the equipment operation group is associated with at least one piece of equipment;
adding an object corresponding to the object identifier to the equipment operation group;
and if receiving an operation instruction aiming at the equipment sent by the equipment operation group, controlling the equipment to execute the operation indicated by the operation instruction.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
As can be seen from the above, the server according to the embodiment of the present application receives the device connection request, where the device connection request carries the device identifier and the object identifier; determining an equipment operation group corresponding to the object identifier according to the equipment identifier, wherein the equipment operation group is associated with at least one piece of equipment; adding an object corresponding to the object identifier to the equipment operation group; and if receiving an operation instruction aiming at the equipment sent by the equipment operation group, controlling the equipment to execute the operation indicated by the operation instruction. And determining a corresponding equipment operation group through the object identifier, and controlling the equipment through the equipment operation group to realize that a plurality of objects control the equipment.
According to an aspect of the present application, a computer program product or a computer program is provided, comprising computer instructions stored in a computer readable storage medium (which may also be referred to as storage medium). The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the method provided in the various alternative implementations of the above embodiments.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by a computer program, which may be stored in a computer-readable storage medium and loaded and executed by a processor, or by related hardware controlled by the computer program.
To this end, the present application provides a storage medium, in which a computer program is stored, where the computer program can be loaded by a processor to execute the steps in any one of the device control methods provided in the present application.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the computer program stored in the storage medium can execute the steps in any device control method provided in the embodiments of the present application, beneficial effects that can be achieved by any device control method provided in the embodiments of the present application can be achieved, and detailed descriptions are omitted here for the foregoing embodiments.
The above detailed description is provided for a device control method, an apparatus, a computer device, and a storage medium provided in the embodiments of the present application, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (12)

1. An apparatus control method characterized by comprising:
receiving an equipment connection request, wherein the equipment connection request carries an equipment identifier and an object identifier;
determining an equipment operation group corresponding to the object identifier according to the equipment identifier, wherein the equipment operation group is associated with at least one piece of equipment;
adding the object corresponding to the object identification to the equipment operation group;
and if receiving an operation instruction aiming at the equipment, which is sent by the equipment operation group, controlling the equipment to execute the operation indicated by the operation instruction.
2. The method according to claim 1, wherein the determining, according to the device identifier, the device operation group corresponding to the object identifier includes:
if the object identifier is a target identifier, establishing a corresponding equipment operation group based on the equipment identifier;
and if the object identifier is not the target identifier, determining the established equipment operation group matched with the equipment identifier.
3. The method according to claim 1, wherein the device operation group includes a target object, and the determining the device operation group corresponding to the object identifier according to the device identifier includes:
if the object corresponding to the object identification is not the target object, acquiring object information corresponding to the object;
generating an access request according to the object information, and sending the access request to the target object;
and adding the object to the equipment operation group according to a confirmation response returned by aiming at the access request.
4. The method of claim 1, wherein receiving the device connection request comprises:
and receiving an equipment connection request which is sent by equipment in response to the code scanning operation to acquire the object identifier, wherein the equipment carries the equipment identifier.
5. The method according to claim 1, wherein after determining the device operation group corresponding to the object identifier according to the device identifier, the method further comprises:
inquiring a preset relation group corresponding to the object identification, wherein the relation group comprises the object identification and at least one relation object identification;
and adding the object corresponding to the relation object identifier in the preset relation group into the equipment operation group.
6. The method of claim 1, wherein the set of device operations includes a plurality of object identifications, the method further comprising:
acquiring characteristic information corresponding to the object identification in the equipment operation group;
obtaining object characteristics corresponding to the object identification according to the characteristic information;
and determining a management object of the equipment operation group based on the object characteristics.
7. The method of claim 6, further comprising:
responding the authority setting operation of the management object aiming at the object identification in the equipment operation group, and setting the corresponding operation authority for the object identification to obtain an operation authority condition.
8. The method according to claim 7, wherein the operation instruction carries an object identifier, and the controlling the device to execute the operation indicated by the operation instruction if the operation instruction for the device sent by the device operation group is received includes:
if an operation instruction aiming at the equipment and sent by the equipment operation group is received, judging whether the operation instruction meets the operation permission condition or not based on the object identification;
and if so, controlling the equipment to execute the operation indicated by the operation instruction.
9. The method according to claim 7, wherein when receiving an operation instruction for a device sent by the device operation group, controlling the device to perform an operation indicated by the operation instruction comprises:
displaying a matched operation page through a terminal corresponding to the object identifier based on the operation authority condition;
and if an operation instruction aiming at the equipment and triggered by the operation page is received, controlling the equipment to execute the operation indicated by the operation instruction.
10. An apparatus control device, characterized by comprising:
a receiving unit, configured to receive an equipment connection request, where the equipment connection request carries an equipment identifier and an object identifier;
a determining unit, configured to determine, according to the device identifier, a device operation group corresponding to the object identifier, where the device operation group is associated with at least one device;
and the control unit is used for controlling the equipment to execute the operation indicated by the operation instruction if the operation instruction aiming at the equipment, which is sent by the equipment operation group, is received.
11. A computer device comprising a memory and a processor; the memory stores a computer program, and the processor is configured to execute the computer program in the memory to perform the apparatus control method according to any one of claims 1 to 9.
12. A storage medium for storing a computer program to be loaded by a processor to execute the apparatus control method according to any one of claims 1 to 9.
CN202110597402.4A 2021-05-31 2021-05-31 Equipment control method and device, computer equipment and storage medium Pending CN113341740A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110597402.4A CN113341740A (en) 2021-05-31 2021-05-31 Equipment control method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110597402.4A CN113341740A (en) 2021-05-31 2021-05-31 Equipment control method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113341740A true CN113341740A (en) 2021-09-03

Family

ID=77472425

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110597402.4A Pending CN113341740A (en) 2021-05-31 2021-05-31 Equipment control method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113341740A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109905318A (en) * 2019-03-28 2019-06-18 腾讯科技(深圳)有限公司 Apparatus control method, device and storage medium
WO2020228027A1 (en) * 2019-05-16 2020-11-19 深圳市欢太科技有限公司 Device control method, apparatus, electronic device, and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109905318A (en) * 2019-03-28 2019-06-18 腾讯科技(深圳)有限公司 Apparatus control method, device and storage medium
WO2020228027A1 (en) * 2019-05-16 2020-11-19 深圳市欢太科技有限公司 Device control method, apparatus, electronic device, and storage medium

Similar Documents

Publication Publication Date Title
KR102330643B1 (en) Method and related device for realizing user matching
US10065119B2 (en) Game accessing method and processing method, server, terminal, and system
CN110598280B (en) Equipment simulation system and method and computer readable storage medium
KR101938332B1 (en) Method, service server, mobile phone and computer readable recording medium for mobile phone authentication
CN100583114C (en) System and method for remote security enablement
CN106656985B (en) Backup account login method, device and system
JP2018517982A (en) Automatic recharge system, method and server
CN106453349A (en) An account number login method and apparatus
CN105099727B (en) Add the method and device of group member
CN112733051A (en) Websocket-based information push management system and method
CN113341740A (en) Equipment control method and device, computer equipment and storage medium
CN112948804B (en) Program control method, device and computer readable storage medium
CN113746909A (en) Network connection method, device, electronic equipment and computer readable storage medium
CN112131028B (en) Process interaction method and device, computer equipment and storage medium
CN111193940B (en) Audio playing method and device, computer equipment and computer readable storage medium
CN114006938A (en) Message routing issuing method, device, equipment and storage medium of distributed cluster
CN114969045A (en) Account creating method, Internet of things multi-tenant system, equipment, program and medium
CN110661789B (en) Address resetting method, device, equipment and computer readable storage medium
CN116070290A (en) Device connection method, apparatus, electronic device, and computer-readable storage medium
CN115659306A (en) Article acquisition permission sharing method and device, storage medium and electronic equipment
CN111193765A (en) Device connection method, device, computer device and computer-readable storage medium
CN115314884A (en) Method, system and device for resetting terminal equipment, intelligent equipment and storage medium
CN114189365B (en) Universal multi-tenant service authorization method and device based on field mapping
CN113797551A (en) Data transmission method, device, equipment, storage medium and computer program product
CN114218507A (en) Resource access method, device, computer equipment and computer readable storage medium

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