CN113824690A - Method and device for sending control request, storage medium and electronic device - Google Patents

Method and device for sending control request, storage medium and electronic device Download PDF

Info

Publication number
CN113824690A
CN113824690A CN202110976519.3A CN202110976519A CN113824690A CN 113824690 A CN113824690 A CN 113824690A CN 202110976519 A CN202110976519 A CN 202110976519A CN 113824690 A CN113824690 A CN 113824690A
Authority
CN
China
Prior art keywords
group
household appliance
target
server
account information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110976519.3A
Other languages
Chinese (zh)
Other versions
CN113824690B (en
Inventor
李峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home 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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202110976519.3A priority Critical patent/CN113824690B/en
Publication of CN113824690A publication Critical patent/CN113824690A/en
Application granted granted Critical
Publication of CN113824690B publication Critical patent/CN113824690B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • H04L63/123Applying verification of the received information received data contents, e.g. message integrity

Landscapes

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

Abstract

The invention discloses a method and a device for sending a control request, a storage medium and an electronic device, wherein the method comprises the following steps: receiving a control request sent by a client, wherein the control request carries target account information of a target object, and the control request is used for requesting to control target equipment; determining whether a first appliance group corresponding to the target account information exists from a plurality of appliance groups, each of the plurality of appliance groups including: account information and equipment information bound by the account information; when the first household appliance group exists in the plurality of household appliance groups, a first server corresponding to the first household appliance group is determined from the plurality of servers, and the control request is sent to the first server so as to instruct the first server to send a control instruction corresponding to the control request to the target device.

Description

Method and device for sending control request, storage medium and electronic device
Technical Field
The present invention relates to the field of communications, and in particular, to a method and an apparatus for sending a control request, a storage medium, and an electronic apparatus.
Background
With the progress of scientific technology and the development of the internet, along with the continuous upgrading of equipment and the continuous perfection of functions, the number of users is gradually increased, the request amount of the users is also larger and larger, and further the service volume of the internet or the internet of things is increased.
In the case of the traffic volume increase of the internet or the internet of things, two ways are generally adopted to decompose the traffic volume: 1) increasing the number of servers; 2) and grouping the services, and forwarding the services of different groups to different servers. For example, the e-commerce platform groups users, i.e. users are divided into a plurality of groups: the service of each group is carried by a group of independent servers; as shown in fig. 3 and 4, if the users are not grouped, the newly added service may affect the server to process the original service under the condition that the request sent by the client corresponding to the user is increased; after the users are grouped, requests sent by clients corresponding to different users enter different groups; under the condition that the requests sent by the same client are increased, the other servers are not influenced to process the requests sent by other clients.
For the household appliance internet of things service, grouping the household appliance internet of things services according to the single-dimension mode of the user cannot support the expansion of the scale of the household appliance internet of things service, because the interaction of the household appliance internet of things is bidirectional, as shown in fig. 5: the user can control own household appliances (such as the user lowers the temperature of the refrigerating chamber of the refrigerator through the app); the home appliance bar may also actively report the status of the home appliance to the user (e.g., the refrigerator actively reports the temperature of the refrigerating chamber to the user). Grouping is carried out according to a single dimension, and the following two grouping modes are adopted:
1) dividing the household appliances into different household appliance groups according to the account information of the user: because the data of one household appliance can be sent to all users in a family, account information corresponding to all users in the family may belong to different household appliance groups, when the same appliance reports data to the account information corresponding to the users in the same family, the data can span a plurality of household appliance groups;
2) dividing the equipment into different household appliance groups according to the equipment information of the equipment: because a plurality of devices bound by the account information of the same user may belong to the same household appliance group, when the user sends a control instruction to the plurality of devices in the household, the plurality of household appliance groups can be spanned. Neither of the two methods can ensure that the household electrical appliance groups are not interacted, and infinite expansion of the service volume cannot be supported, so that the service processing volume of the server cannot be reduced.
Aiming at the problems that in the related art, the grouping mode cannot ensure that household appliance groups are not interacted, and infinite expansion of service volume cannot be supported, so that the service processing volume of a server cannot be reduced and the like, an effective solution is not provided.
Disclosure of Invention
The embodiment of the invention provides a sending method and device of a control request, a storage medium and an electronic device, and at least solves the problems that in the related technology, a grouping mode cannot guarantee that household appliance groups are not interacted, unlimited expansion of service volume cannot be supported, and further service processing volume of a server cannot be reduced.
According to an embodiment of the present invention, a method for sending a control request is provided, including: receiving a control request sent by a client, wherein the control request carries target account information of a target object, and the control request is used for requesting to control target equipment; determining whether a first appliance group corresponding to the target account information exists from a plurality of appliance groups, each of the plurality of appliance groups including: account information and equipment information bound by the account information; when the first household appliance group exists in the plurality of household appliance groups, a first server corresponding to the first household appliance group is determined from the plurality of servers, and the control request is sent to the first server so as to instruct the first server to send a control instruction corresponding to the control request to the target device.
In an exemplary embodiment, after determining whether a first appliance group corresponding to the account information exists from among a plurality of appliance groups, the method further includes: determining that the target account number belongs to a default group when the first household appliance group does not exist in the plurality of household appliance groups; and determining a second server corresponding to the default group, and sending the control request to the second server so as to instruct the second server to send a control instruction corresponding to the control request to the target device.
In an exemplary embodiment, a reporting request sent by the target device is received, where the reporting request carries target device information of the target device, and the reporting request is used to report at least one of the following information of the target device: state information, alarm information; determining whether a second household appliance group corresponding to the target device information exists from a plurality of household appliance groups; and under the condition that the second household appliance group exists in the plurality of household appliance groups, determining a third server corresponding to the second household appliance group from the plurality of servers, and sending the report request to the third server.
In an exemplary embodiment, determining a first server corresponding to the first group of appliances from a plurality of servers includes: setting a corresponding relation between the household appliance groups and the servers, wherein any server corresponds to one or more household appliance groups; and determining a first server corresponding to the first household appliance group from a plurality of servers according to the corresponding relation.
In an exemplary embodiment, determining a first server corresponding to the first group of appliances from a plurality of servers includes: acquiring service processing quantities of a plurality of servers to obtain a plurality of service processing quantities; and determining the lowest service processing amount in the plurality of service processing amounts, and taking the server with the lowest service processing amount as the first server.
In an exemplary embodiment, a binding request sent by the client is received, where the binding request is used to request that the target account information is bound with the target device; determining whether a first household appliance group corresponding to the target account information exists in a plurality of household appliance groups; and under the condition that the first household appliance group exists in the plurality of household appliance groups, transferring the target equipment from a default group to the first household group.
In one exemplary embodiment, after transferring the target device from the default group to the first family group, the method further comprises: receiving a unbinding request sent by the client, wherein the unbinding request is used for requesting to unbind the target account information and the target equipment information of the target equipment; under the condition that the target account information and the target equipment information are successfully unbound, determining whether equipment information of other equipment exists in a first household appliance group corresponding to the target account information or not; and under the condition that the equipment information of other equipment does not exist in the first household appliance group, transferring the target account information and the target equipment into a default group.
According to another embodiment of the present invention, there is also provided a control request transmitting apparatus, including: the system comprises a receiving module, a sending module and a processing module, wherein the receiving module is used for receiving a control request sent by a client, the control request carries target account information of a target object, and the control request is used for requesting to control target equipment; a determining module, configured to determine whether a first appliance group corresponding to the target account information exists in a plurality of appliance groups, where each of the appliance groups includes: account information and equipment information bound by the account information; the sending module is used for determining a first server corresponding to the first household appliance group from a plurality of servers under the condition that the first household appliance group exists in the plurality of household appliance groups, and sending the control request to the first server so as to instruct the first server to send a control instruction corresponding to the control request to the target device.
According to still another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned method for sending a control request when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the sending method of the control request through the computer program.
In the embodiment of the invention, a control request sent by a client is received, wherein the control request carries target account information of a target object, and the control request is used for requesting to control target equipment; determining whether a first appliance group corresponding to the target account information exists from a plurality of appliance groups, each of the plurality of appliance groups including: account information and equipment information bound by the account information; the method comprises the steps that under the condition that the first household appliance group exists in the plurality of household appliance groups, the first server corresponding to the first household appliance group is determined from the plurality of servers, the control request is sent to the first server to indicate that the first server sends the control command corresponding to the control request to the target equipment, namely, the household group corresponding to the target account is determined, and the server corresponding to the household appliance group is determined.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a computer terminal that controls a transmission method of a request according to an embodiment of the present invention;
fig. 2 is a flowchart of a method of transmitting a control request according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a traffic no packet;
FIG. 4 is a schematic diagram of a traffic packet;
fig. 5 is a schematic diagram showing grouping of home appliances in the related art;
fig. 6 is a block diagram of an internet appliance according to an alternative embodiment of the present invention;
FIG. 7 is a flow chart of a method of sending a control request according to an alternative embodiment of the invention;
fig. 8 is a flowchart of a binding method of an account and a device according to an alternative embodiment of the present invention;
fig. 9 is a flowchart of a method for unbinding an account with a device according to an alternative embodiment of the present invention;
fig. 10 is a block diagram of a control request transmission apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, 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 invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The method provided by the embodiment of the application can be executed in a mobile terminal, a computer terminal or a similar operation device. Taking an example of the present invention running on a computer terminal, fig. 1 is a block diagram of a hardware structure of a computer terminal for controlling a sending method of a request according to an embodiment of the present invention. As shown in fig. 1, the computer terminal may include one or more (only one shown in fig. 1) processors 102 (the processors 102 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and in an exemplary embodiment, may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the computer terminal. For example, the computer terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration with equivalent functionality to that shown in FIG. 1 or with more functionality than that shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program and a module of application software, such as a computer program corresponding to the sending method of the control request in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, implements the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to a computer terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, a sending method of a control request is provided, and is applied to the above-mentioned computer terminal, and fig. 2 is a flowchart of the sending method of the control request according to the embodiment of the present invention, where the flowchart includes the following steps:
step S202, receiving a control request sent by a client, wherein the control request carries target account information of a target object, and the control request is used for requesting to control target equipment;
step S204, determining whether a first appliance group corresponding to the target account information exists from a plurality of appliance groups, where each of the plurality of appliance groups includes: account information and equipment information bound by the account information;
step S206, when the first appliance group exists in the plurality of appliance groups, determining a first server corresponding to the first appliance group from a plurality of servers, and sending the control request to the first server, so as to instruct the first server to send a control instruction corresponding to the control request to the target device.
Receiving a control request sent by a client through the steps, wherein the control request carries target account information of a target object and is used for requesting to control target equipment; determining whether a first appliance group corresponding to the target account information exists from a plurality of appliance groups, each of the plurality of appliance groups including: account information and equipment information bound by the account information; the method comprises the steps that under the condition that the first household appliance group exists in the plurality of household appliance groups, the first server corresponding to the first household appliance group is determined from the plurality of servers, the control request is sent to the first server to indicate that the first server sends the control command corresponding to the control request to the target equipment, namely, the household group corresponding to the target account is determined, and the server corresponding to the household appliance group is determined.
In an exemplary embodiment, after determining whether a first household appliance group corresponding to the account information exists from a plurality of household appliance groups, if the first household appliance group does not exist from the plurality of household appliance groups, determining that the target account belongs to a default group; and determining a second server corresponding to the default group, and sending the control request to the second server so as to instruct the second server to send a control instruction corresponding to the control request to the target device.
That is, the groups are divided into: household electrical appliances group and default group, wherein, household electrical appliances group includes: account information and device information bound with the account information, wherein the default group comprises: account information not bound with the device information and device information not bound with the account information; determining a group corresponding to account information, and sending a control request to a first server corresponding to a first household appliance group when the first household appliance group corresponding to the account information is determined to exist in a plurality of household appliance groups; and under the condition that the first household appliance group corresponding to the account information does not exist in the plurality of household appliance groups, sending a control request to a second server corresponding to a default group so as to instruct the corresponding first server or second server to send a control instruction corresponding to the control request to the target equipment.
In an exemplary embodiment, a reporting request sent by the target device is received, where the reporting request carries target device information of the target device, and the reporting request is used to report at least one of the following information of the target device: state information, alarm information; determining whether a second household appliance group corresponding to the target device information exists from a plurality of household appliance groups; and under the condition that the second household appliance group exists in the plurality of household appliance groups, determining a third server corresponding to the second household appliance group from the plurality of servers, and sending the report request to the third server.
In other words, when the target device sends a report request to the target client, the cloud platform obtains target device information corresponding to the target device according to the report request and determines a group of the target device according to the target device information when receiving the report request, wherein the group is divided into: household electrical appliances group and acquiescence group, household electrical appliances group includes: account information and device information bound with the account information, wherein the default group comprises: account information not bound with the device information and device information not bound with the account information; determining a group corresponding to target equipment information, and sending a control request to a third server corresponding to a second household appliance group when the second household appliance group corresponding to the target equipment information is determined to exist in the plurality of household appliance groups; and under the condition that a second household appliance group corresponding to the equipment information does not exist in the plurality of household appliance groups, sending a control request to a fourth server corresponding to a second default group so as to instruct a corresponding third server or fourth server to send a control instruction corresponding to the control request to the target equipment.
The exemplary embodiment of the present invention provides two implementation manners, specifically, the following is:
the first method is as follows: setting a corresponding relation between the household appliance groups and the servers, wherein any server corresponds to one or more household appliance groups; and determining a first server corresponding to the first household appliance group from a plurality of servers according to the corresponding relation.
That is, a correspondence between the home appliance groups and the servers may be pre-established, where it should be noted that one home appliance group corresponds to one server, one server corresponds to one or more home appliance groups, and when a first home appliance group corresponding to the target account is determined, a correspondence between the first server and the first home appliance group is determined among the correspondence, and the first server is determined according to the correspondence between the first service and the first home appliance group.
The second method comprises the following steps: acquiring service processing quantities of a plurality of servers to obtain a plurality of service processing quantities; and determining the lowest service processing amount in the plurality of service processing amounts, and taking the server with the lowest service processing amount as the first server.
That is to say, the server corresponding to the first household appliance group is dynamically selected, specifically: and acquiring the service processing amount of all the servers, acquiring the server corresponding to the lowest service processing amount from all the servers, and taking the server with the lowest service processing amount as a first service.
Further, a second server corresponding to the default group is determined from a plurality of servers, and two implementation manners are provided in the exemplary embodiment of the present invention, which are specifically as follows:
the first method is as follows: setting a corresponding relation between default groups and servers, wherein any server corresponds to one or more default groups; and determining a second server corresponding to the default group from a plurality of servers according to the corresponding relation.
The second method comprises the following steps: acquiring service processing quantities of a plurality of servers to obtain a plurality of service processing quantities; and determining the lowest service processing amount in the plurality of service processing amounts, and taking the server with the lowest service processing amount as the second server.
In an exemplary embodiment, a binding request sent by the client is received, where the binding request is used to request that the target account information is bound with the target device; determining whether a first household appliance group corresponding to the target account information exists in a plurality of household appliance groups; and under the condition that the first household appliance group exists in the plurality of household appliance groups, transferring the target equipment from a default group to the first household group.
That is, a group corresponding to the target account information is determined, and when the target account information corresponds to a first household appliance group (it may be understood that the first household appliance group exists in the plurality of household appliance groups), the target device information is transferred from a default group to the first household group; and under the condition that the target account information corresponds to a default group (which can also be understood as the condition that the first household appliance group does not exist in the plurality of household appliance groups), establishing a family group for the target account information, and transferring the target device information and the target account information from the default group to the first family group.
In an exemplary embodiment, after the target device is transferred from a default group to the first family group, a unbinding request sent by the client is received, wherein the unbinding request is used for requesting to unbind the target account information and the target device information of the target device; under the condition that the target account information and the target equipment information are successfully unbound, determining whether equipment information of other equipment exists in a first household appliance group corresponding to the target account information or not; and under the condition that the equipment information of other equipment does not exist in the first household appliance group, transferring the target account information and the target equipment into a default group.
The exemplary embodiment of the invention describes a method for unbinding a target device and a target account, which comprises the following steps: under the condition of receiving a unbinding request sent by a client, determining whether equipment information of other equipment exists in a first household appliance group corresponding to the target account information, and under the condition that the equipment information of other equipment does not exist in the first household appliance group, transferring the target account information and the target equipment to a default group; and under the condition that the equipment information of other equipment exists in the first household appliance group, the target equipment is switched to a default group.
In order to better understand the process of the sending method of the control request, the following describes a flow of the implementation method of sending the control request with reference to an optional embodiment, but the flow is not limited to the technical solution of the embodiment of the present invention.
Since the interactive unit of the internet of things of the household appliances is a family (a set of users and devices), generally, a user only controls the devices in the family; the device will only report the device data to the members in the family, and the optional embodiment of the present invention combines both the user and the device, and groups them according to the family dimension, as shown in fig. 6:
the circle is a family group (the relationship between the account and the equipment is established through binding or sharing), and no service interaction exists among all the family groups; a set of devices/users that do not have any relationship with other accounts/devices within the gray box-a default group; for example, the user has only an account but the account does not bind to the device or the user has only bought the device but has not registered the account.
It should be noted that, in the scene of the internet of things of the home appliance, an account is not bound to a device or a user only purchases a device, but a few account is not registered, so that only one default group is provided in fig. 6; if the account is not bound with the device or the user only purchases the device but does not register the account, the account can be grouped according to the user id and the device id.
As shown in fig. 7, fig. 7 is a flowchart of a sending method of a control request according to an alternative embodiment of the present invention, which specifically includes the following steps:
step S601: starting;
step S602: the household appliance equipment or the client sends a request to the cloud platform;
step S603: judging whether the account corresponding to the household appliance or the client belongs to a certain family group, if not, executing step S604; if yes, go to step S606;
step S604: determining that the target account or the target device belongs to a default group;
step S605: sending the request to a second server corresponding to the default group, and executing step S608;
step S606: determining a first family group to which the target account or the target device belongs;
step S607: sending the request to a first server corresponding to the first household appliance group;
step S608: and (6) ending.
As shown in fig. 8, fig. 8 is a flowchart of a binding method between an account and a device according to an alternative embodiment of the present invention, which is specifically as follows:
step S701: starting;
step S702: the client sends a binding request to a cloud platform, wherein the binding request is used for requesting to bind the target account information with the target equipment;
step S703: judging whether the target account belongs to the family group, if so, executing step S704; if not, go to step S705;
step S704: inquiring a first family group corresponding to the target account;
step S705: establishing a first family group for the target account;
step S706: transferring the target device from a default group to the first home group;
step S707: and (6) ending.
As shown in fig. 9, fig. 9 is a flowchart of an account and device unbinding method according to an alternative embodiment of the present invention, which is specifically as follows:
step S801: starting;
step S802: the client sends a unbinding request to a cloud platform, wherein the unbinding request is used for requesting to unbind the target account information and the target equipment;
step S803: moving out the target equipment in a first family group corresponding to the target account;
step S804: determining whether the first household appliance group corresponding to the target account information has equipment information of other equipment, if not, executing step S805, and if not, executing step S807;
step S805: deleting the first family group;
step S806: transferring the target account information in the first family group from the first family group to the default group;
step S807: transferring a target device from a first family group to the default group;
step S808: and (6) ending.
Receiving a control request sent by a client through the steps, wherein the control request carries target account information of a target object and is used for requesting to control target equipment; determining whether a first appliance group corresponding to the target account information exists from a plurality of appliance groups, each of the plurality of appliance groups including: account information and equipment information bound by the account information; the method comprises the steps that under the condition that the first household appliance group exists in the plurality of household appliance groups, the first server corresponding to the first household appliance group is determined from the plurality of servers, the control request is sent to the first server to indicate that the first server sends the control command corresponding to the control request to the target equipment, namely, the household group corresponding to the target account is determined, and the server corresponding to the household appliance group is determined.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Fig. 10 is a block diagram of a structure of a control request transmission apparatus according to an embodiment of the present invention; as shown in fig. 10, includes:
a receiving module 92, configured to receive a control request sent by a client, where the control request carries target account information of a target object, and the control request is used to request to control a target device;
a determining module 94, configured to determine whether a first appliance group corresponding to the target account information exists in a plurality of appliance groups, where each of the appliance groups includes: account information and equipment information bound by the account information;
a sending module 96, configured to determine, when the first appliance group exists in the appliance groups, a first server corresponding to the first appliance group from a plurality of servers, and send the control request to the first server, so as to instruct the first server to send a control instruction corresponding to the control request to the target device.
Receiving a control request sent by a client through the device, wherein the control request carries target account information of a target object and is used for requesting to control target equipment; determining whether a first appliance group corresponding to the target account information exists from a plurality of appliance groups, each of the plurality of appliance groups including: account information and equipment information bound by the account information; the method comprises the steps that under the condition that the first household appliance group exists in the plurality of household appliance groups, the first server corresponding to the first household appliance group is determined from the plurality of servers, the control request is sent to the first server to indicate that the first server sends the control command corresponding to the control request to the target equipment, namely, the household group corresponding to the target account is determined, and the server corresponding to the household appliance group is determined.
In an exemplary embodiment, the sending module is further configured to determine that the target account belongs to a default group if the first appliance group does not exist in the plurality of appliance groups; and determining a second server corresponding to the default group, and sending the control request to the second server so as to instruct the second server to send a control instruction corresponding to the control request to the target device.
That is, the groups are divided into: household electrical appliances group and default group, wherein, household electrical appliances group includes: account information and device information bound with the account information, wherein the default group comprises: account information not bound with the device information and device information not bound with the account information; determining a group corresponding to account information, and sending a control request to a first server corresponding to a first household appliance group when the first household appliance group corresponding to the account information is determined to exist in a plurality of household appliance groups; and under the condition that the first household appliance group corresponding to the account information does not exist in the plurality of household appliance groups, sending a control request to a second server corresponding to a default group so as to instruct the corresponding first server or second server to send a control instruction corresponding to the control request to the target equipment.
In an exemplary embodiment, the receiving module is further configured to receive a reporting request sent by the target device, where the reporting request carries target device information of the target device, and the reporting request is used to report at least one of the following information of the target device: state information, alarm information; determining whether a second household appliance group corresponding to the target device information exists from a plurality of household appliance groups; and under the condition that the second household appliance group exists in the plurality of household appliance groups, determining a third server corresponding to the second household appliance group from the plurality of servers, and sending the report request to the third server.
In other words, when the target device sends a report request to the target client, the cloud platform obtains target device information corresponding to the target device according to the report request and determines a group of the target device according to the target device information when receiving the report request, wherein the group is divided into: household electrical appliances group and acquiescence group, household electrical appliances group includes: account information and device information bound with the account information, wherein the default group comprises: account information not bound with the device information and device information not bound with the account information; determining a group corresponding to target equipment information, and sending a control request to a third server corresponding to a second household appliance group when the second household appliance group corresponding to the target equipment information is determined to exist in the plurality of household appliance groups; and under the condition that a second household appliance group corresponding to the equipment information does not exist in the plurality of household appliance groups, sending a control request to a fourth server corresponding to a second default group so as to instruct a corresponding third server or fourth server to send a control instruction corresponding to the control request to the target equipment.
In an exemplary embodiment, the determining module is further configured to set a correspondence between the household appliance groups and the servers, where any server corresponds to one or more household appliance groups; and determining a first server corresponding to the first household appliance group from a plurality of servers according to the corresponding relation.
That is, a correspondence between the home appliance groups and the servers may be pre-established, where it should be noted that one home appliance group corresponds to one server, one server corresponds to one or more home appliance groups, and when a first home appliance group corresponding to the target account is determined, a correspondence between the first server and the first home appliance group is determined among the correspondence, and the first server is determined according to the correspondence between the first service and the first home appliance group.
In an exemplary embodiment, the determining module is further configured to obtain service processing volumes of the plurality of servers, and obtain a plurality of service processing volumes; and determining the lowest service processing amount in the plurality of service processing amounts, and taking the server with the lowest service processing amount as the first server.
That is to say, the server corresponding to the first household appliance group is dynamically selected, specifically: and acquiring the service processing amount of all the servers, acquiring the server corresponding to the lowest service processing amount from all the servers, and taking the server with the lowest service processing amount as a first service.
In an exemplary embodiment, the determining module is further configured to set a correspondence between default groups and servers, where any server corresponds to one or more default groups; and determining a second server corresponding to the default group from a plurality of servers according to the corresponding relation.
In an exemplary embodiment, the determining module is further configured to obtain service processing volumes of the plurality of servers, and obtain a plurality of service processing volumes; and determining the lowest service processing amount in the plurality of service processing amounts, and taking the server with the lowest service processing amount as the second server.
In an exemplary embodiment, the receiving module is further configured to receive a binding request sent by the client, where the binding request is used to request that the target account information is bound with the target device; determining whether a first household appliance group corresponding to the target account information exists in a plurality of household appliance groups; and under the condition that the first household appliance group exists in the plurality of household appliance groups, transferring the target equipment from a default group to the first household group.
That is, a group corresponding to the target account information is determined, and when the target account information corresponds to a first household appliance group (it may be understood that the first household appliance group exists in the plurality of household appliance groups), the target device information is transferred from a default group to the first household group; and under the condition that the target account information corresponds to a default group (which can also be understood as the condition that the first household appliance group does not exist in the plurality of household appliance groups), establishing a family group for the target account information, and transferring the target device information and the target account information from the default group to the first family group.
In an exemplary embodiment, the receiving module is further configured to receive a unbinding request sent by the client after the target device is transferred from a default group to the first family group, where the unbinding request is used to request to unbind the target account information and the target device information of the target device; under the condition that the target account information and the target equipment information are successfully unbound, determining whether equipment information of other equipment exists in a first household appliance group corresponding to the target account information or not; and under the condition that the equipment information of other equipment does not exist in the first household appliance group, transferring the target account information and the target equipment into a default group.
The exemplary embodiment of the invention describes a method for unbinding a target device and a target account, which comprises the following steps: under the condition of receiving a unbinding request sent by a client, determining whether equipment information of other equipment exists in a first household appliance group corresponding to the target account information, and under the condition that the equipment information of other equipment does not exist in the first household appliance group, transferring the target account information and the target equipment to a default group; and under the condition that the equipment information of other equipment exists in the first household appliance group, the target equipment is switched to a default group.
An embodiment of the present invention further provides a storage medium including a stored program, wherein the program executes any one of the methods described above.
Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps:
s1, receiving a control request sent by a client, wherein the control request carries target account information of a target object, and the control request is used for requesting to control target equipment;
s2, determining whether a first appliance group corresponding to the target account information exists from a plurality of appliance groups, where each of the plurality of appliance groups includes: account information and equipment information bound by the account information;
s3, when the first appliance group exists in the appliance groups, determining a first server corresponding to the first appliance group from a plurality of servers, and sending the control request to the first server, so as to instruct the first server to send a control instruction corresponding to the control request to the target device.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, receiving a control request sent by a client, wherein the control request carries target account information of a target object, and the control request is used for requesting to control target equipment;
s2, determining whether a first appliance group corresponding to the target account information exists from a plurality of appliance groups, where each of the plurality of appliance groups includes: account information and equipment information bound by the account information;
s3, when the first appliance group exists in the appliance groups, determining a first server corresponding to the first appliance group from a plurality of servers, and sending the control request to the first server, so as to instruct the first server to send a control instruction corresponding to the control request to the target device.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing program codes, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for sending a control request, comprising:
receiving a control request sent by a client, wherein the control request carries target account information of a target object, and the control request is used for requesting to control target equipment;
determining whether a first appliance group corresponding to the target account information exists from a plurality of appliance groups, each of the plurality of appliance groups including: account information and equipment information bound by the account information;
when the first household appliance group exists in the plurality of household appliance groups, a first server corresponding to the first household appliance group is determined from the plurality of servers, and the control request is sent to the first server so as to instruct the first server to send a control instruction corresponding to the control request to the target device.
2. The method according to claim 1, wherein after determining whether a first home appliance group corresponding to the account information exists from among a plurality of home appliance groups, the method further comprises:
determining that the target account number belongs to a default group when the first household appliance group does not exist in the plurality of household appliance groups;
and determining a second server corresponding to the default group, and sending the control request to the second server so as to instruct the second server to send a control instruction corresponding to the control request to the target device.
3. The method of claim 1, further comprising:
receiving a report request sent by the target device, wherein the report request carries target device information of the target device, and the report request is used for reporting at least one of the following information of the target device: state information, alarm information;
determining whether a second household appliance group corresponding to the target device information exists from a plurality of household appliance groups;
and under the condition that the second household appliance group exists in the plurality of household appliance groups, determining a third server corresponding to the second household appliance group from the plurality of servers, and sending the report request to the third server.
4. The method of claim 1, wherein determining the first server corresponding to the first group of appliances from a plurality of servers comprises:
setting a corresponding relation between the household appliance groups and the servers, wherein any server corresponds to one or more household appliance groups;
and determining a first server corresponding to the first household appliance group from a plurality of servers according to the corresponding relation.
5. The method of claim 1, wherein determining the first server corresponding to the first group of appliances from a plurality of servers comprises:
acquiring service processing quantities of a plurality of servers to obtain a plurality of service processing quantities;
and determining the lowest service processing amount in the plurality of service processing amounts, and taking the server with the lowest service processing amount as the first server.
6. The method of claim 1, further comprising:
receiving a binding request sent by the client, wherein the binding request is used for requesting to bind the target account information with the target equipment;
determining whether a first household appliance group corresponding to the target account information exists in a plurality of household appliance groups;
and under the condition that the first household appliance group exists in the plurality of household appliance groups, transferring the target equipment from a default group to the first household group.
7. The method of claim 6, wherein after transferring the target device from a default group to the first home group, the method further comprises:
receiving a unbinding request sent by the client, wherein the unbinding request is used for requesting to unbind the target account information and the target equipment information of the target equipment;
under the condition that the target account information and the target equipment information are successfully unbound, determining whether equipment information of other equipment exists in a first household appliance group corresponding to the target account information or not;
and under the condition that the equipment information of other equipment does not exist in the first household appliance group, transferring the target account information and the target equipment into a default group.
8. An apparatus for transmitting a control request, comprising:
the system comprises a receiving module, a sending module and a processing module, wherein the receiving module is used for receiving a control request sent by a client, the control request carries target account information of a target object, and the control request is used for requesting to control target equipment;
a determining module, configured to determine whether a first appliance group corresponding to the target account information exists in a plurality of appliance groups, where each of the appliance groups includes: account information and equipment information bound by the account information;
the sending module is used for determining a first server corresponding to the first household appliance group from a plurality of servers under the condition that the first household appliance group exists in the plurality of household appliance groups, and sending the control request to the first server so as to instruct the first server to send a control instruction corresponding to the control request to the target device.
9. A computer-readable storage medium, comprising a stored program, wherein the program is operable to perform the method of any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 7 by means of the computer program.
CN202110976519.3A 2021-08-24 2021-08-24 Method and device for sending control request, storage medium and electronic device Active CN113824690B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110976519.3A CN113824690B (en) 2021-08-24 2021-08-24 Method and device for sending control request, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110976519.3A CN113824690B (en) 2021-08-24 2021-08-24 Method and device for sending control request, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN113824690A true CN113824690A (en) 2021-12-21
CN113824690B CN113824690B (en) 2023-10-27

Family

ID=78913516

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110976519.3A Active CN113824690B (en) 2021-08-24 2021-08-24 Method and device for sending control request, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN113824690B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115314332A (en) * 2022-07-11 2022-11-08 青岛海尔科技有限公司 Method and device for setting equipment theme, storage medium and electronic device

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005032203A1 (en) * 2003-09-26 2005-04-07 Kabushiki Kaisha Toshiba Home electric appliances remote control system, service provision server, home server, home electric appliances, home electric appliances remote control support method of service provision server, and home electric appliances service provision support method of service provision server
CN103616860A (en) * 2013-11-08 2014-03-05 海信集团有限公司 Method and device for remote control of household appliances
US20140167929A1 (en) * 2012-12-13 2014-06-19 Samsung Electronics Co., Ltd. Method and apparatus for controlling devices in home network system
US20150140990A1 (en) * 2013-11-21 2015-05-21 Samsung Electronics Co., Ltd. Method and apparatus for controlling home devices on group basis in a home network system
US20160234213A1 (en) * 2013-09-23 2016-08-11 Samsung Electronics Co., Ltd. Apparatus and method by which user device in home network system transmits home-device-related information
US20170006471A1 (en) * 2013-12-20 2017-01-05 Samsung Electronics Co., Ltd Apparatus and method for registering home device in server in home network system
CN106487622A (en) * 2016-10-24 2017-03-08 北京小米移动软件有限公司 Equipment control sharing method and device
CN109087638A (en) * 2018-07-25 2018-12-25 珠海格力电器股份有限公司 The sending method and device of information, household appliance, storage medium, electronic device
CN109799719A (en) * 2019-01-31 2019-05-24 广东美的制冷设备有限公司 Control method, server, household appliance and the storage medium of household appliance
CN110620708A (en) * 2018-06-20 2019-12-27 佛山市顺德区美的电热电器制造有限公司 Control method and device of household appliance, household appliance and storage medium
CN110971495A (en) * 2019-10-24 2020-04-07 青岛海尔科技有限公司 Equipment binding method and device of intelligent household system and storage medium
CN111885115A (en) * 2020-06-30 2020-11-03 海尔优家智能科技(北京)有限公司 Equipment binding change method and device
CN112198809A (en) * 2020-10-23 2021-01-08 青岛海尔空调器有限总公司 Control method, control equipment and control system for multiple intelligent household appliances
CN112270927A (en) * 2020-09-27 2021-01-26 青岛海尔空调器有限总公司 Intelligent interaction method based on environment adjusting equipment and intelligent interaction equipment
CN112286064A (en) * 2020-10-12 2021-01-29 青岛海尔空调器有限总公司 Control method and control device for intelligent household appliance group

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005032203A1 (en) * 2003-09-26 2005-04-07 Kabushiki Kaisha Toshiba Home electric appliances remote control system, service provision server, home server, home electric appliances, home electric appliances remote control support method of service provision server, and home electric appliances service provision support method of service provision server
US20140167929A1 (en) * 2012-12-13 2014-06-19 Samsung Electronics Co., Ltd. Method and apparatus for controlling devices in home network system
US20160234213A1 (en) * 2013-09-23 2016-08-11 Samsung Electronics Co., Ltd. Apparatus and method by which user device in home network system transmits home-device-related information
CN103616860A (en) * 2013-11-08 2014-03-05 海信集团有限公司 Method and device for remote control of household appliances
US20150140990A1 (en) * 2013-11-21 2015-05-21 Samsung Electronics Co., Ltd. Method and apparatus for controlling home devices on group basis in a home network system
US20170006471A1 (en) * 2013-12-20 2017-01-05 Samsung Electronics Co., Ltd Apparatus and method for registering home device in server in home network system
CN106487622A (en) * 2016-10-24 2017-03-08 北京小米移动软件有限公司 Equipment control sharing method and device
CN110620708A (en) * 2018-06-20 2019-12-27 佛山市顺德区美的电热电器制造有限公司 Control method and device of household appliance, household appliance and storage medium
CN109087638A (en) * 2018-07-25 2018-12-25 珠海格力电器股份有限公司 The sending method and device of information, household appliance, storage medium, electronic device
CN109799719A (en) * 2019-01-31 2019-05-24 广东美的制冷设备有限公司 Control method, server, household appliance and the storage medium of household appliance
CN110971495A (en) * 2019-10-24 2020-04-07 青岛海尔科技有限公司 Equipment binding method and device of intelligent household system and storage medium
CN111885115A (en) * 2020-06-30 2020-11-03 海尔优家智能科技(北京)有限公司 Equipment binding change method and device
CN112270927A (en) * 2020-09-27 2021-01-26 青岛海尔空调器有限总公司 Intelligent interaction method based on environment adjusting equipment and intelligent interaction equipment
CN112286064A (en) * 2020-10-12 2021-01-29 青岛海尔空调器有限总公司 Control method and control device for intelligent household appliance group
CN112198809A (en) * 2020-10-23 2021-01-08 青岛海尔空调器有限总公司 Control method, control equipment and control system for multiple intelligent household appliances

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王友顺: "智能家居系统之中心控制器设计与实现" *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115314332A (en) * 2022-07-11 2022-11-08 青岛海尔科技有限公司 Method and device for setting equipment theme, storage medium and electronic device

Also Published As

Publication number Publication date
CN113824690B (en) 2023-10-27

Similar Documents

Publication Publication Date Title
CN108513290B (en) Network slice selection method and device
CN108024270B (en) Information sending method, unit and system
CN106550003B (en) Load balancing control method, device and system
JP2020509635A (en) Network slice selection method, user equipment, and network device
KR102513998B1 (en) Communication methods and devices, entities and computer readable storage media
CN111885115B (en) Device binding changing method and device
CN110602761B (en) Data transmission method and device
CN112600856A (en) Equipment authorization method and device, storage medium and electronic device
CN111885594A (en) Equipment binding method and device
WO2021019847A1 (en) Network slice control server, service server, and control method for same
CN110621032A (en) Communication method, related device and equipment
CN113892279A (en) Resource subscription method, device, server and computer storage medium
CN110704158A (en) Method, apparatus and storage medium for forwarding access requests within a container cluster
JP2023530608A (en) Network slice switching method, terminal, storage medium, and electronic device
CN113824690B (en) Method and device for sending control request, storage medium and electronic device
CN113852995A (en) Network slice distribution method, terminal and storage medium
CN112671572A (en) Method and device for intelligent equipment network distribution, storage medium and electronic device
CN110431865B (en) Method and device for selecting core network equipment
CN112314003A (en) Cellular telecommunications network comprising a plurality of network slices
CN108540519A (en) A kind of equilibrium download control method and device
CN112954084B (en) Edge computing processing method, network function example and edge service management and control center
CN113596792A (en) Binding method and device of electronic equipment, storage medium and electronic device
CN111385110B (en) Network management method and device
CN111885564A (en) Data transmission method, equipment upgrading method and computer readable storage medium
CN114697375B (en) Voice packet switching method and device, storage medium and electronic device

Legal Events

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