Device control method, device, computer device and storage medium
By receiving device connection requests and determining device operation groups, multiple objects control the device, solving the problem that the device can only be controlled by one operating terminal in the prior art, and improving the security of user experience and device management.
Patent Information
- Application Number
- CN202110597402.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-31
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2041-05-31
AI Technical Summary
In the prior art, the device can only be controlled by one operating terminal, and multiple operating terminals cannot control the device.
By receiving the device connection request, the device operation group corresponding to the object identification is determined based on the device identification, and the object identification is added to the group. If an operation instruction of the device operation group is received, the control device will perform the corresponding operation.
The control of the device by multiple objects is realized, which improves the user experience and the efficiency of connecting the device, while enhancing the security and management of device operations.
Smart Images

Figure CN113341740B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a device control method, apparatus, computer equipment and storage medium. Background Art
[0002] The Internet of Things is an information carrier based on the Internet, traditional telecommunications networks, etc. It allows independently addressable devices to form an interconnected network. It usually uses infrared, Bluetooth or local area networks to connect devices and achieve interconnection.
[0003] Infrared, Bluetooth or local area network are used for connection. Each device can only be bound to one operation terminal, and the device is controlled through the bound operation terminal. It is not possible to control the device with multiple operation terminals. Summary of the invention
[0004] The embodiments of the present application provide a device control method, apparatus, computer equipment and storage medium, which can realize multiple objects controlling the device.
[0005] An embodiment of the present application provides a device control method, including:
[0006] receiving a device connection request, wherein the device connection request carries a device identifier and an object identifier;
[0007] Determine, according to the device identifier, a device operation group corresponding to the object identifier, wherein the device operation group is associated with at least one device;
[0008] Adding the object corresponding to the object identifier to the device operation group;
[0009] If an operation instruction for a device sent by the device operation group is received, the device is controlled to execute the operation indicated by the operation instruction.
[0010] Accordingly, an embodiment of the present application further provides a device control apparatus, including:
[0011] A receiving unit, configured to receive a device connection request, wherein the device connection request carries a device identifier and an object identifier;
[0012] a determining unit, configured to determine a device operation group corresponding to the object identifier according to the device identifier, wherein the device operation group is associated with at least one device;
[0013] An adding unit, used for adding the object corresponding to the object identifier to the device operation group;
[0014] The control unit is used to control the device to execute the operation indicated by the operation instruction if an operation instruction for the device is received from the device operation group.
[0015] Correspondingly, an embodiment of the present application also provides a computer device, including a memory and a processor; the memory stores a computer program, and the processor is used to run the computer program in the memory to execute any device control method provided in the embodiment of the present application.
[0016] Correspondingly, an embodiment of the present application further provides a storage medium, which is used to store a computer program, and the computer program is loaded by a processor to execute any device control method provided in the embodiment of the present application.
[0017] The embodiment of the present application adopts receiving a device connection request, the device connection request carries a device identification and an object identification; determining a device operation group corresponding to the object identification according to the device identification, the device operation group is associated with at least one device; adding an object corresponding to the object identification to the device operation group; if an operation instruction for the device sent by the device operation group is received, the device is controlled to perform the operation indicated by the operation instruction. The corresponding device operation group is determined by the object identification, and the device is controlled by the device operation group, so that multiple objects can control the device. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0019] Figure 1 is a flow chart of a device control method provided in an embodiment of the present application;
[0020] Figure 2 is a schematic diagram of devices associated with a device operation group provided in an embodiment of the present application;
[0021] Figure 3 is a schematic diagram of a device operation group provided in an embodiment of the present application;
[0022] Figure 4 is another schematic diagram of a device operation group provided in an embodiment of the present application;
[0023] Figure 5 is another flow chart of the device control method provided by an embodiment of the present application;
[0024] Figure 6 is a schematic diagram of a device control device provided in an embodiment of the present application;
[0025] Figure 7 It is a schematic diagram of the structure of the server provided in the embodiment of the present application. DETAILED DESCRIPTION
[0026] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0027] The embodiments of the present application provide a device control method, apparatus, computer device and storage medium. The case comparison query device can be integrated in a computer device, and the computer device can be a server. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms.
[0028] It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.
[0029] This embodiment will be described from the perspective of a device control apparatus, which may be integrated into a computer device, which may be a server.
[0030] 101. Receive a device connection request, where the device connection request carries a device identifier and an object identifier.
[0031] For example, the server may specifically receive a device connection request triggered by a user on a terminal used by the user.
[0032] For example, the user inputs the voice message "connect to TV" on the mobile phone, the mobile phone searches for nearby TVs, obtains the device ID of the TV, and sends a device connection request carrying the device ID and the mobile phone ID (ie, the object ID) to the server.
[0033] For example, a user enters a fingerprint on a designated device connection page on a mobile phone, triggering the mobile phone to send a device connection request.
[0034] In addition to receiving a device connection request triggered by a user on a terminal used by the user, the server can also receive a device connection request sent by a device to which the user wants to connect, that is, step "receiving a device connection request", which can be specifically:
[0035] The receiving device responds to the scanning operation to obtain the object identification and sends a device connection request, and the device carries the device identification.
[0036] For example, the user connects on the device by remote control or touch and click, the device can display a QR code, the user scans the QR code through the terminal used by the user to connect, and the device responds to the user's scanning operation to obtain the user's object identifier, which can be the identifier of the terminal used by the user. The device sends a device connection request carrying the object identifier and the device identifier of the device to the server. The server receives the device connection request.
[0037] 102. Determine a device operation group corresponding to the object identifier according to the device identifier, where the device operation group is associated with at least one device.
[0038] The device operation group may be a combination of objects that can control the device corresponding to the device identifier. The device operation group may be associated with one or more devices to control the associated devices.
[0039] For example, the device ID determines whether the device has been associated with a user. If no user has associated the device, the user is prompted to create a device operation group. The server responds to the user's operation of creating a device operation and generates a corresponding device operation group, that is, the device operation group corresponding to the object ID is the device operation group created by the user.
[0040] If a user has been associated and created a device operation group, the user is asked whether to apply to the associated user to join the device operation group. If so, an application is initiated to the user, and according to the associated user's consent to join response, the device operation group corresponding to the object identifier is determined to be the device operation group created by the associated user.
[0041] In addition to generating a corresponding device operation group in response to a user's operation, the server may also automatically generate a corresponding device operation group, that is, the step of "determining a device operation group corresponding to an object identifier according to a device identifier" may specifically be:
[0042] If the object identifier is a target identifier, a corresponding device operation group is established based on the device identifier;
[0043] If the object identifier is not the target identifier, then an established device operation group is determined that matches the device identifier.
[0044] For example, if the device has not been associated with a user, the object identifier carried in the device connection request is the target identifier, and a device operation group corresponding to the device identifier is established based on the device identifier, so that the objects included in the device operation group can control the device corresponding to the device identifier. The device operation group corresponding to the object identifier is the device operation group generated by the server.
[0045] If the device is already associated with a user, the object identifier carried in the device connection request is not the target identifier, and the established device operation group corresponding to the device identifier is determined, that is, the device operation group corresponding to the object identifier is determined to be the established device operation group.
[0046] By determining the device operation group corresponding to the object identifier according to the device connection request, the user does not need to participate in the process of creating the device operation group. The user can be quickly added to the device operation group without complicated operations, thereby improving the user experience.
[0047] 103. Add the object corresponding to the object identifier to the device operation group.
[0048] For example, the object corresponding to the object identifier may be specifically added to the device operation group, so that the object can perform corresponding operations on controlling the device.
[0049] To improve security, when a device has been associated with a user, the server can set the first object associated with the device as an administrator, and the administrator can decide whether to allow other people to join. That is, in one embodiment, the step of "adding the object corresponding to the object identifier to the device operation group" can be specifically:
[0050] If the object corresponding to the object identifier is not the target object, then obtaining the object information corresponding to the object;
[0051] Generate an access request according to the object information, and send the access request to the target object;
[0052] The object is added to the device operation group based on the confirmation response returned for the access request.
[0053] The object information may be information that can indicate the identity of the user, such as an image, a name, a character string, or a sequence.
[0054] The target object may be an object in the device operation group that manages the joined objects. For example, the first object that joins the device operation may be set as the target object, or an object specified by a user may be set as the target object.
[0055] For example, if the object corresponding to the object identifier is not the target object, the terminal used by the object is started, or the device to which the object is to be connected starts the camera to collect image information of the user, and an access request is generated based on the image information, and the access request is sent to the target object.
[0056] The user corresponding to the target object can determine whether to agree to the target object to join the device operation group based on the received image information, and return a response to the access request.
[0057] The server receives the confirmation response returned by the target object, and according to the confirmation response, adds the object corresponding to the object identifier to the device operation group. If the server receives a response not to grant access, the server denies the user access.
[0058] In one embodiment, the server may pop up an input box through the terminal used by the object or the device to which the object is to be connected, for the user to enter object information such as name, invitation code or password (such as a string, character sequence, etc.), and obtain the object information entered by the user.
[0059] By obtaining object information and verifying the identity of the accessed object through the target object, the security of the objects added to the device operation group is ensured, and unidentified objects in the device operation group are prevented from maliciously operating the device, resulting in data loss or damage to the device.
[0060] When an object is associated with a device, all preset relationship groups of the object can be added to the device operation group. For example, the object pre-sets a relationship group, i.e., a home group. When the object is associated with a device, the object and the objects in the home group corresponding to the object are added to the device operation group. That is, after the step of "adding the object corresponding to the object identifier to the device operation group", the following steps are also included:
[0061] A preset relationship group corresponding to the query object identifier, the relationship group includes at least one relationship object identifier;
[0062] Add the object corresponding to the relationship object identifier in the preset relationship group to the device operation group.
[0063] For example, a preset relationship group preset for the object corresponding to the object identifier is queried, and the object corresponding to the relationship object identifier included in the preset relationship group is added to the device operation group.
[0064] Optionally, if the device corresponding to the device identifier has no object associated with it, 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 objects in the relationship group to the device operation group.
[0065] Optionally, if the device corresponding to the device identifier has no object associated with it, the server creates a corresponding device operation group based on the device identifier, queries the 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 the preset relationship group, and adds the objects in the relationship group to the newly created device operation group.
[0066] Optionally, if the device corresponding to the device identifier has no object associated with it, the server creates a corresponding device operation group based on the device identifier, and queries the 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 the preset relationship group, and associates the preset relationship group with the device, that is, the preset relationship group associates two devices.
[0067] For example, Figure 2 As shown, the device operation group "Family A" includes members A, B, and C, and the devices associated with "Family A" are TV a, TV b, air conditioner c, and refrigerator d; the device operation group "Family B" includes members A, D, and E. Figure 3 As shown, the devices associated with "family B" include TV set c and washing machine a. Member A is in two device operation groups and can control the corresponding devices through different device operation groups.
[0068] Optional, such as Figure 4 As shown, the user can view all devices associated with his / her device operation group on the terminal.
[0069] Optional, such as Figure 5 As shown, the user can also view the members of his / her device operation group on the terminal.
[0070] By querying the preset relationship group, you can add objects to the device operation group in batches. Even if the user does not add the device to the operation group, you can still control the device, thereby improving the efficiency of connecting devices.
[0071] 104. If an operation instruction for the device sent by the device operation group is received, control the device to execute the operation indicated by the operation instruction.
[0072] For example, when an object in the server device operation group sends an operation instruction for a device, the operation instruction is sent to the corresponding device to control the device to perform the corresponding operation based on the operation instruction.
[0073] Optionally, when an object in the server device operation group sends an operation instruction for a device, the operation instruction is processed to obtain an instruction recognizable by the device, and the instruction is given to the corresponding device to control the device to perform a corresponding operation based on the operation instruction.
[0074] Since the device operation group includes multiple objects, there needs to be an object to manage the device operation group. For example, if the objects in the device operation group are all family members, parents can be determined as management objects. If the objects in the device operation group are all company employees, the company's administrative staff or IT personnel can be determined as management objects. That is, the method provided in real time by the present application also includes:
[0075] Obtain feature information corresponding to the object identifier in the device operation group;
[0076] Obtaining object features corresponding to the object identifier according to the feature information;
[0077] The management objects of the device operation group are determined based on the object characteristics.
[0078] For example, it can be specific to obtain characteristic information such as the age, gender, music listening record, video viewing record, and device usage of the user corresponding to the object identifier, and obtain the object characteristics corresponding to the user through the obtained characteristic information, such as determining the identity of the user, such as whether he is a father or mother, or an employee of which department of the company.
[0079] The management object of the device operation group is determined according to the determined object characteristics, for example, the object with the object characteristic of father is set as the management object; or the object with the object characteristic of administrative staff is set as the management object.
[0080] Optionally, multiple management objects can be set, and different levels can be set for multiple management objects. Management objects of different levels can perform different operations. For example, management objects of level A can set permissions for other objects, and management objects of level B can verify the identity of the accessed object and determine whether to approve the access of the accessed object, etc.
[0081] Since the device operation group includes multiple objects, the management object can set different permissions for the objects in the device operation group to improve the security of controlling the device. That is, the method provided in the embodiment of the present application also includes:
[0082] In response to the permission setting operation of the management object for the object identifier in the device operation group, the corresponding operation permission is set for the object identifier to obtain the operation permission condition.
[0083] For example, according to the permission setting operation for objects corresponding to different object identifiers, the corresponding operation permission of each object in the device operation group is determined, and the operation permission condition of each object in the device operation group is obtained.
[0084] For example, object A cannot perform payment-related operations on the device, object B cannot use the device within a specific time, object C can only watch videos in a specified category, etc.
[0085] When receiving an operation instruction, the operation permission condition of the object can be determined through the object identifier, first determining whether the operation instruction meets the operation permission condition, and then determining whether to execute it, that is, the method provided in the embodiment of the present application also includes:
[0086] If an operation instruction for a device is received from the device operation group, it is determined whether the operation instruction meets the operation authority conditions based on the object identifier;
[0087] If so, the control device executes the operation indicated by the operation instruction.
[0088] For example, when an operation instruction for a device is received from a device operation group, specifically an object in the device operation group, the operation permission conditions corresponding to the object are obtained based on the object identifier, and whether the user's operation meets the execution conditions is determined based on the operation permission conditions. If so, the corresponding device is controlled to perform the operation corresponding to the operation instruction.
[0089] If the operation permission conditions are not met, the operation instruction or corresponding operation instructions will not be sent to the device.
[0090] In addition to determining whether the received operation instruction satisfies the operation permission condition, an operation page matching the operation permission condition may also be displayed on terminals of different objects based on the operation permission condition. That is, in one embodiment, the method provided in the embodiment of the present application further includes:
[0091] Based on the operation permission conditions, the matching operation page is displayed through the terminal corresponding to the object identifier;
[0092] If an operation instruction for a device is received that is triggered by an operation page, the device is controlled to perform the operation indicated by the operation instruction.
[0093] For example, specifically, based on the operation permission conditions, an operation page matching the operation permission conditions may be displayed on the terminals corresponding to different object identifiers. When the 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 perform related operations based on the operation instruction.
[0094] By displaying the operation page that matches the operation permission conditions on the terminal, there is no need to determine whether the received operation instruction meets the operation permission conditions, which improves the speed of controlling the device to perform related operations. In addition, there is no situation where the user cannot get correct feedback when controlling the device to perform operations on the terminal, which can improve the user experience.
[0095] As can be seen from the above, the embodiment of the present application adopts receiving a device connection request, the device connection request carries a device identifier and an object identifier; determining a device operation group corresponding to the object identifier according to the device identifier, the device operation group is associated with at least one device; adding the object corresponding to the object identifier to the device operation group; if an operation instruction for the device sent by the device operation group is received, the device is controlled to perform the operation indicated by the operation instruction. The corresponding device operation group is determined by the object identifier, and the device is controlled by the device operation group, so that multiple objects can control the device.
[0096] In order to better implement the device control method provided in the embodiment of the present application, a device control apparatus is also provided in one embodiment. The meanings of the terms are the same as those in the above device control method, and the specific implementation details can refer to the description in the method embodiment.
[0097] The device control device can be integrated into a computer device, such as Figure 6 As shown, the device control apparatus may include: a receiving unit 201, a determining unit 202, an adding unit 203 and a control unit 204, as follows:
[0098] Receiving unit 201: used for receiving a device connection request, where the device connection request carries a device identifier and an object identifier.
[0099] For example, the server may specifically receive a device connection request triggered by a user on a terminal used by the user.
[0100] For example, the user inputs the voice message "connect to TV" on the mobile phone, the mobile phone searches for nearby TVs, obtains the device ID of the TV, and sends a device connection request carrying the device ID and the mobile phone ID (ie, the object ID) to the server.
[0101] For example, a user enters a fingerprint on a designated device connection page on a mobile phone, triggering the mobile phone to send a device connection request.
[0102] In addition to receiving a device connection request triggered by a user on a terminal used by the user, the receiving unit 201 may also receive a device connection request sent by a device to which the user wants to connect. Specifically, the receiving unit 201 may be used to:
[0103] The receiving device responds to the scanning operation to obtain the object identification and sends a device connection request, and the device carries the device identification.
[0104] For example, the user connects on the device by remote control or touch and click, the device can display a QR code, the user scans the QR code through the terminal used by the user to connect, and the device responds to the user's scanning operation to obtain the user's object identifier, which can be the identifier of the terminal used by the user. The device sends a device connection request carrying the object identifier and the device identifier of the device to the server. The server receives the device connection request.
[0105] The determining unit 202 is configured to determine a device operation group corresponding to the object identifier according to the device identifier, wherein the device operation group is associated with at least one device.
[0106] For example, the device ID determines whether the device has been associated with a user. If no user has associated the device, the user is prompted to create a device operation group. The server responds to the user's operation of creating a device operation and generates a corresponding device operation group, that is, the device operation group corresponding to the object ID is the device operation group created by the user.
[0107] If a user has been associated and created a device operation group, the user is asked whether to apply to the associated user to join the device operation group. If so, an application is initiated to the user, and according to the associated user's consent to join response, the device operation group corresponding to the object identifier is determined to be the device operation group created by the associated user.
[0108] In addition to generating a corresponding device operation group in response to a user operation, the determining unit 202 may also automatically generate a corresponding device operation group. Specifically, the determining unit 202 may be used to:
[0109] If the object identifier is a target identifier, a corresponding device operation group is established based on the device identifier;
[0110] If the object identifier is not the target identifier, then an established device operation group is determined that matches the device identifier.
[0111] For example, if the device has not been associated with a user, the object identifier carried in the device connection request is the target identifier, and a device operation group corresponding to the device identifier is established based on the device identifier, so that the objects included in the device operation group can control the device corresponding to the device identifier. The device operation group corresponding to the object identifier is the device operation group generated by the server.
[0112] If the device is already associated with a user, the object identifier carried in the device connection request is not the target identifier, and the established device operation group corresponding to the device identifier is determined, that is, the device operation group corresponding to the object identifier is determined to be the established device operation group.
[0113] By determining the device operation group corresponding to the object identifier according to the device connection request, the user does not need to participate in the process of creating the device operation group. The user can be quickly added to the device operation group without complicated operations, thereby improving the user experience.
[0114] Adding unit 203: used for adding the object corresponding to the object identifier to the device operation group.
[0115] For example, the object corresponding to the object identifier may be specifically added to the device operation group, so that the object can perform corresponding operations on controlling the device.
[0116] To improve security, when the device has been associated with a user, the adding unit 203 may also set the first object associated with the device as an administrator, and the administrator may decide whether to allow other people to join. Specifically, the determining unit 202 may be used to:
[0117] If the object corresponding to the object identifier is not the target object, then obtaining the object information corresponding to the object;
[0118] Generate an access request according to the object information, and send the access request to the target object;
[0119] The object is added to the device operation group based on the confirmation response returned for the access request.
[0120] For example, if the object corresponding to the object identifier is not the target object, the terminal used by the object is started, or the device to which the object is to be connected starts the camera to collect image information of the user, and an access request is generated based on the image information, and the access request is sent to the target object.
[0121] The user corresponding to the target object can determine whether to agree to the target object to join the device operation group based on the received image information, and return a response to the access request.
[0122] The server receives the confirmation response returned by the target object, and according to the confirmation response, adds the object corresponding to the object identifier to the device operation group. If the server receives a response not to grant access, the server denies the user access.
[0123] In one embodiment, the server may pop up an input box through the terminal used by the object or the device to which the object is to be connected, for the user to input object information such as name, invitation code or password (such as a string, sequence, etc.), and obtain the object information input by the user.
[0124] Optionally, the device control apparatus may further include a query unit, which may be used to add all preset relationship groups of the object to the device operation group when there is an object associated with the device. Specifically, the query unit may be used to:
[0125] A preset relationship group corresponding to the query object identifier, the relationship group includes at least one relationship object identifier;
[0126] Add the object corresponding to the relationship object identifier in the preset relationship group to the device operation group.
[0127] For example, a preset relationship group preset for the object corresponding to the object identifier is queried, and the object corresponding to the relationship object identifier included in the preset relationship group is added to the device operation group.
[0128] Optionally, if the device corresponding to the device identifier has no object associated with it, 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 objects in the relationship group to the device operation group.
[0129] Optionally, if the device corresponding to the device identifier has no object associated with it, the server creates a corresponding device operation group based on the device identifier, queries the 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 the preset relationship group, and adds the objects in the relationship group to the newly created device operation group.
[0130] Control unit 204: for controlling the device to execute the operation indicated by the operation instruction if an operation instruction for the device is received from the device operation group.
[0131] For example, when an object in the server device operation group sends an operation instruction for a device, the operation instruction is sent to the corresponding device to control the device to perform the corresponding operation based on the operation instruction.
[0132] Optionally, the device control apparatus may further include an object determination unit, and the object determination unit is specifically used for:
[0133] Obtain feature information corresponding to the object identifier in the device operation group;
[0134] Obtaining object features corresponding to the object identifier according to the feature information;
[0135] The management objects of the device operation group are determined based on the object characteristics.
[0136] For example, it can be specific to obtain characteristic information such as the age, gender, music listening record, video viewing record, and device usage of the user corresponding to the object identifier, and obtain the object characteristics corresponding to the user through the obtained characteristic information, such as determining the identity of the user, such as whether he is a father or mother, or an employee of which department of the company.
[0137] The management object of the device operation group is determined according to the determined object characteristics, for example, the object with the object characteristic of father is set as the management object; or the object with the object characteristic of administrative staff is set as the management object.
[0138] Optionally, multiple management objects can be set, and different levels can be set for multiple management objects. Management objects of different levels can perform different operations. For example, management objects of level A can set permissions for other objects, and management objects of level B can verify the identity of the accessed object and determine whether to approve the access of the accessed object, etc.
[0139] The device control apparatus may further include a permission setting unit. Specifically, the permission setting unit may be used to:
[0140] In response to the permission setting operation of the management object for the object identifier in the device operation group, the corresponding operation permission is set for the object identifier to obtain the operation permission condition.
[0141] For example, according to the permission setting operation for objects corresponding to different object identifiers, the corresponding operation permission of each object in the device operation group is determined, and the operation permission condition of each object in the device operation group is obtained.
[0142] For example, object A cannot perform payment-related operations on the device, object B cannot use the device within a specific time, object C can only watch videos in a specified category, etc.
[0143] Optionally, the control unit 204 may include a first execution subunit. Specifically, the first execution subunit may be used to:
[0144] If an operation instruction for a device is received from the device operation group, it is determined whether the operation instruction meets the operation authority conditions based on the object identifier;
[0145] If so, the control device executes the operation indicated by the operation instruction.
[0146] For example, when an operation instruction for a device is received from a device operation group, specifically an object in the device operation group, the operation permission conditions corresponding to the object are obtained based on the object identifier, and whether the user's operation meets the execution conditions is determined based on the operation permission conditions. If so, the corresponding device is controlled to perform the operation corresponding to the operation instruction.
[0147] If the operation permission conditions are not met, the operation instruction or corresponding operation instructions will not be sent to the device.
[0148] Optionally, the control unit 204 may include a second execution subunit. Specifically, the second execution subunit may be used to:
[0149] Based on the operation permission conditions, the matching operation page is displayed through the terminal corresponding to the object identifier;
[0150] If an operation instruction for a device is received that is triggered by an operation page, the device is controlled to perform the operation indicated by the operation instruction.
[0151] For example, specifically, based on the operation permission conditions, an operation page matching the operation permission conditions may be displayed on the terminals corresponding to different object identifiers. When the 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 perform related operations based on the operation instruction.
[0152] As can be seen from the above, in the embodiment of the present application, the receiving unit 201 receives a device connection request, and the device connection request carries a device identifier and an object identifier; the determining unit 202 determines the 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; the adding unit 203 adds the object corresponding to the object identifier to the device operation group; if an operation instruction for the device sent by the device operation group is received, the control unit 204 controls the device to perform the operation indicated by the operation instruction. The corresponding device operation group is determined by the object identifier, and the device is controlled by the device operation group, so that multiple objects can control the device.
[0153] The embodiment of the present application also provides a server, which may be a server such as Figure 7 As shown, it shows a schematic diagram of the structure of the server involved in the embodiment of the present application, specifically:
[0154] The server may include one or more processing core processors 1001, one or more computer-readable storage media memories 1002, a power supply 1003, an input unit 1004 and other components. Those skilled in the art will appreciate that Figure 7 The server structure shown in the figure does not constitute a limitation on the server, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Among them:
[0155] The processor 1001 is the control center of the server, and uses various interfaces and lines to connect various parts of the entire server. By running or executing software programs and / or modules stored in the memory 1002, and calling data stored in the memory 1002, the processor 1001 performs various functions of the server and processes data, thereby monitoring the server as a whole. Optionally, the processor 1001 may include one or more processing cores; preferably, the processor 1001 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and computer programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 1001.
[0156] The memory 1002 can be used to store software programs and modules. The processor 1001 executes various functional applications and data processing by running the software programs and modules stored in the memory 1002. The memory 1002 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the server, etc. In addition, the memory 1002 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 1002 may also include a memory controller to provide the processor 1001 with access to the memory 1002.
[0157] The server also includes a power supply 1003 for supplying power to various components. Preferably, the power supply 1003 can be logically connected to the processor 1001 through a power management system, so as to manage charging, discharging, power consumption and other functions through the power management system. The power supply 1003 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.
[0158] The server may further include an input unit 1004, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0159] Although not shown, the server may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 1001 in the server will load the executable files corresponding to the processes of one or more computer programs into the memory 1002 according to the following instructions, and the processor 1001 will run the computer programs stored in the memory 1002, thereby realizing various functions, as follows:
[0160] receiving a device connection request, the device connection request carrying a device identifier and an object identifier;
[0161] Determine a device operation group corresponding to the object identifier according to the device identifier, where the device operation group is associated with at least one device;
[0162] Add the object corresponding to the object identifier to the device operation group;
[0163] If an operation instruction for a device sent by the device operation group is received, the device is controlled to execute the operation indicated by the operation instruction.
[0164] The specific implementation of the above operations can be found in the previous embodiments and will not be described in detail here.
[0165] As can be seen from the above, the server of the embodiment of the present application receives a device connection request, which carries a device identifier and an object identifier; determines 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; adds the object corresponding to the object identifier to the device operation group; and if an operation instruction for the device sent by the device operation group is received, controls the device to perform the operation indicated by the operation instruction. The corresponding device operation group is determined by the object identifier, and the device is controlled by the device operation group, so that multiple objects can control the device.
[0166] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium (also referred to as a storage medium). A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in various optional implementations in the above embodiments.
[0167] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by a computer program, or by controlling related hardware through a computer program. The computer program may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0168] To this end, an embodiment of the present application provides a storage medium, in which a computer program is stored. The computer program can be loaded by a processor to execute the steps in any device control method provided in the embodiment of the present application.
[0169] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0170] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0171] 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, the beneficial effects that can be achieved by any device control method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0172] The above is a detailed introduction to a device control method, apparatus, computer equipment and storage medium provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A device control method, characterized in that: include: receiving a device connection request, wherein the device connection request carries a device identifier and an object identifier; Determine, according to the device identifier, a device operation group corresponding to the object identifier, wherein the device operation group is associated with at least one device; Adding the object corresponding to the object identifier to the device operation group; If an operation instruction for a device sent by the device operation group is received, controlling the device to perform the operation indicated by the operation instruction; After determining the device operation group corresponding to the object identifier according to the device identifier, the method further includes: Querying a preset relationship group corresponding to the object identifier, the relationship group including the object identifier and at least one relationship object identifier, wherein the preset relationship group is another device operation group associated with another device; The objects corresponding to the relationship object identifiers in the preset relationship group are added to the device operation group.
2. The method according to claim 1, characterized in that The determining, according to the device identifier, a device operation group corresponding to the object identifier includes: If the object identifier is a target identifier, a corresponding device operation group is established based on the device identifier; If the object identifier is not a target identifier, an established device operation group matching the device identifier is determined.
3. The method according to claim 1, characterized in that: The device operation group includes a target object, and determining the device operation group corresponding to the object identifier according to the device identifier includes: If the object corresponding to the object identifier is not the target object, obtaining object information corresponding to the object; generating an access request according to the object information, and sending the access request to the target object; According to a confirmation response returned for the access request, the object is added to the device operation group.
4. The method according to claim 1, characterized in that: The receiving device connection request comprises: The receiving device obtains the object identification in response to the code scanning operation and sends a device connection request, and the device carries the device identification.
5. The method according to claim 1, characterized in that The device operation group includes a plurality of object identifiers, and the method further includes: Obtaining feature information corresponding to the object identifier in the device operation group; Obtaining an object feature corresponding to the object identifier according to the feature information; A management object of the device operation group is determined based on the object characteristics.
6. The method according to claim 5, characterized in that The method further comprises: In response to the permission setting operation of the management object for the object identifier in the device operation group, the corresponding operation permission is set for the object identifier to obtain the operation permission condition.
7. The method according to claim 6, characterized in that The operation instruction carries an object identifier, and if the operation instruction for the device sent by the device operation group is received, controlling the device to execute the operation indicated by the operation instruction includes: If an operation instruction for a device sent by the device operation group is received, determining whether the operation instruction meets the operation authority condition based on the object identifier; If so, the device is controlled to execute the operation indicated by the operation instruction.
8. The method according to claim 6, characterized in that When receiving an operation instruction for a device sent by the device operation group, controlling the device to execute the operation indicated by the operation instruction includes: Based on the operation permission condition, displaying a matching operation page through a terminal corresponding to the object identifier; If an operation instruction for a device triggered by the operation page is received, the device is controlled to perform the operation indicated by the operation instruction.
9. A device control device, characterized in that: include: A receiving unit, configured to receive a device connection request, wherein the device connection request carries a device identifier and an object identifier; a determining unit, configured to determine a device operation group corresponding to the object identifier according to the device identifier, wherein the device operation group is associated with at least one device; A control unit, configured to control the device to execute the operation indicated by the operation instruction upon receiving an operation instruction for the device sent by the device operation group; The control unit is also used to: query the preset relationship group corresponding to the object identifier, the relationship group includes the object identifier and at least one relationship object identifier, wherein the preset relationship group is other device operation groups associated with other devices; add the object corresponding to the relationship object identifier in the preset relationship group to the device operation group.
10. A computer device, characterized in that: It comprises a memory and a processor; the memory stores a computer program, and the processor is used to run the computer program in the memory to execute the device control method according to any one of claims 1 to 8.
11. A storage medium, characterized in that: The storage medium is used to store a computer program, and the computer program is loaded by a processor to execute the device control method according to any one of claims 1 to 8.
