CN116382111A - Equipment control method and device, storage medium and electronic device - Google Patents

Equipment control method and device, storage medium and electronic device Download PDF

Info

Publication number
CN116382111A
CN116382111A CN202310418572.0A CN202310418572A CN116382111A CN 116382111 A CN116382111 A CN 116382111A CN 202310418572 A CN202310418572 A CN 202310418572A CN 116382111 A CN116382111 A CN 116382111A
Authority
CN
China
Prior art keywords
equipment
virtual
detail page
control
component
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310418572.0A
Other languages
Chinese (zh)
Inventor
张雪松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing 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, Haier Uplus Intelligent Technology Beijing Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202310418572.0A priority Critical patent/CN116382111A/en
Publication of CN116382111A publication Critical patent/CN116382111A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Programmable Controllers (AREA)
  • Selective Calling Equipment (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a device control method and device, a storage medium and an electronic device, and relates to the technical field of smart families, wherein the device control method comprises the following steps: modeling a first device according to a device class of the first device to obtain a first virtual device corresponding to the first device, wherein the first device is a device which is connected with a first component of a second device and is to be controlled by the second device; establishing an association relationship between the second device and the first virtual device; receiving a control instruction sent by a first object, and controlling the first device according to the control instruction through the association relation; by adopting the scheme, the problem that in the prior art, when a user controls the traditional non-intelligent household appliance through the intelligent socket, the user can only send instructions to each jack respectively, so that the user needs to memorize equipment bound by each jack, and the user experience is poor is solved.

Description

Equipment control method and device, storage medium and electronic device
Technical Field
The application relates to the technical field of smart families, in particular to a device control method and device, a storage medium and an electronic device.
Background
In current smart home solutions, legacy appliances may be controlled through smart jack devices. Taking a three-hole intelligent socket as an example, 1/2/3 of the jacks are respectively connected with the electric fan, the television and the wall-mounted stove, and can be used for controlling the switch of the electric fan, the television and the wall-mounted stove.
The above scheme brings two problems, firstly, if a user wants to control the correct electric appliances, the user needs to record which electric appliance is respectively plugged into each jack, and the user cannot simply perform voice control by opening a television, and the voice control can only be realized by opening the intelligent socket jack 2, so that the user experience is poor; secondly, the modeling of the real physical world cannot be realized by the existing scheme, the cloud platform does not know that a plurality of electric appliances exist in the home, and the detailed use conditions of the electric appliances in the home, such as energy consumption conditions, cannot be counted.
Aiming at the problems that in the prior art, when a user controls the traditional non-intelligent household appliance through an intelligent socket, the user only can respectively send instructions to each jack, so that the user needs to memorize equipment bound by each jack, the user experience is poor and the like, no effective solution is proposed yet.
Disclosure of Invention
The embodiment of the invention provides a device control method and device, a storage medium and an electronic device, which at least solve the problems that in the prior art, when a user controls a traditional non-intelligent household appliance through an intelligent socket, the user only can respectively send instructions to each jack, so that the user needs to memorize the device bound by each jack, and the user experience is poor.
According to an embodiment of the present invention, there is provided an apparatus control method including: modeling a first device according to a device class of the first device to obtain a first virtual device corresponding to the first device, wherein the first device is a device which is connected with a first component of a second device and is to be controlled by the second device; establishing an association relationship between the second device and the first virtual device; and receiving a control instruction sent by a first object, and controlling the first device according to the control instruction through the association relation.
In an exemplary embodiment, before modeling the first device according to its device class, the method further comprises: in the event that it is determined that the first device has established a connection with the first component, determining a device class of the first device by one of: receiving an input instruction sent by the first object, and determining the equipment category of the first equipment according to the input instruction; and acquiring the image information of the first equipment through an image acquisition device, and determining the equipment category of the first equipment according to the image information.
In an exemplary embodiment, modeling a first device according to a device class of the first device to obtain a first virtual device corresponding to the first device, including: acquiring the equipment information of the first equipment from a cloud server according to the equipment category of the first equipment; and modeling the first equipment according to the equipment information to obtain the first virtual equipment.
In an exemplary embodiment, after determining the device class of the first device, the method further comprises: acquiring equipment information and a detail page template of the first equipment from a cloud server according to the equipment category of the first equipment; and generating a device detail page of the first virtual device according to the device information and the detail page template, and displaying the device detail page in a first application corresponding to the second device in a preset mode.
In an exemplary embodiment, receiving a control instruction sent by a first object, and controlling the first device according to the control instruction through the association relationship, where the control instruction includes: analyzing keywords from the control instruction, wherein the keywords are in one-to-one correspondence with the first virtual equipment; determining first virtual equipment corresponding to the keywords, and determining a target component from a plurality of first components according to the association relation, wherein the target component has the association relation with the first virtual equipment corresponding to the keywords; and controlling the target assembly according to the control instruction so as to control the first equipment.
In an exemplary embodiment, after establishing the association relationship between the second device and the first virtual device, the method further includes: receiving a sharing instruction sent by the first object through a first application corresponding to the second device, wherein the sharing instruction carries identification information of the second object, and the sharing instruction is used for indicating the first object and the second object to share control authority of the second device; determining a second component of the second device indicated by the sharing instruction, and determining a second virtual device connected with the second component; and determining a second application bound by the second object according to the identification information of the second object, and sending the equipment detail page of the second virtual equipment to the second application through the association relation so as to instruct the second object to control the second component through the equipment detail page of the second virtual equipment.
In an exemplary embodiment, after establishing the association relationship between the second device and the first virtual device, the method further includes: determining whether a third device establishes connection with the first component within a preset time period under the condition that the first device is disconnected with the first component; deleting the first virtual device and a device detail page of the first virtual device in the absence of the third device; and when the third device exists and is different from the first device, generating a third virtual device and a device detail page of the third virtual device according to the device category of the third device, replacing the first virtual device with the third virtual device, and replacing the device detail page of the first virtual device with the device detail page of the third virtual device.
In an exemplary embodiment, after establishing the association relationship between the second device and the first virtual device, the method further includes: acquiring equipment information of the first equipment from a cloud server according to the equipment category of the first equipment, wherein the equipment information comprises power consumption information of the first equipment; counting the working time of the first equipment through the first component; and calculating the energy consumption data of the first equipment according to the working time and the power consumption information.
According to another embodiment of the present invention, there is also provided an apparatus control device including: the modeling module is used for modeling the first equipment according to the equipment category of the first equipment to obtain first virtual equipment corresponding to the first equipment, wherein the first equipment is equipment which is connected with a first component of second equipment and is to be controlled; the establishing module is used for establishing an association relation between the second equipment and the first virtual equipment; the receiving module is used for receiving a control instruction sent by a first object, and controlling the first device according to the control instruction through the association relation.
According to still another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to execute the above-described device control method when run.
According to still 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 on the memory and executable on the processor, wherein the processor executes the above-mentioned device control method through the computer program.
In the embodiment of the application, a first device is modeled according to a device class of the first device, so as to obtain a first virtual device corresponding to the first device, wherein the first device is a device which is connected with a first component of a second device and is to be controlled by the second device; establishing an association relationship between the second device and the first virtual device; receiving a control instruction sent by a first object, and controlling the first device according to the control instruction through an association relation; by adopting the scheme, the problems that in the prior art, when a user controls the traditional non-intelligent household appliance through the intelligent socket, the user only can respectively send instructions to each jack, so that the user needs to memorize equipment bound by each jack, and the user experience is poor are solved; by modeling the non-intelligent household appliances in advance and establishing the association relationship, the user can realize intelligent control of the household appliances through the association relationship.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic diagram of a hardware environment of an alternative device control method according to an embodiment of the present application;
FIG. 2 is a flow chart of an alternative device control method according to an embodiment of the invention;
FIG. 3 is an overall architecture diagram of an alternative device control method according to an embodiment of the present invention;
FIG. 4 is a flow chart of an alternative device control method according to an embodiment of the invention;
fig. 5 is a block diagram of an alternative device control apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise 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.
According to one aspect of the embodiments of the present application, there is provided an apparatus control method. The equipment control method is widely applied to full-house intelligent digital control application scenes such as intelligent Home (Smart Home), intelligent Home equipment ecology, intelligent Home (Intelligence House) ecology and the like. Alternatively, in the present embodiment, the above-described device control method may be applied to a hardware environment constituted by the terminal device 102 and the server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal device 102 through a network, and may be used to provide services (such as application services and the like) for a terminal or a client installed on the terminal, a database may be set on the server or independent of the server, for providing data storage services for the server 104, and cloud computing and/or edge computing services may be configured on the server or independent of the server, for providing data computing services for the server 104.
The network may include, but is not limited to, at least one of: wired network, wireless network. The wired network may include, but is not limited to, at least one of: a wide area network, a metropolitan area network, a local area network, and the wireless network may include, but is not limited to, at least one of: WIFI (Wireless Fidelity ), bluetooth. The terminal device 102 may not be limited to a PC, a mobile phone, a tablet computer, an intelligent air conditioner, an intelligent smoke machine, a refrigerator device, an intelligent oven, an intelligent cooking range, an intelligent washing machine, an intelligent water heater, an intelligent washing device, an intelligent dish washer, an intelligent projection device, an intelligent television, an intelligent clothes hanger, an intelligent curtain, an intelligent video, an intelligent socket, an intelligent sound box, an intelligent fresh air device, an intelligent kitchen and toilet device, an intelligent bathroom device, an intelligent sweeping robot, an intelligent window cleaning robot, an intelligent mopping robot, an intelligent air purifying device, an intelligent steam box, an intelligent microwave oven, an intelligent kitchen appliance, an intelligent purifier, an intelligent water dispenser, an intelligent door lock, and the like.
In this embodiment, an apparatus control method is provided and applied to a second apparatus, and fig. 2 is a flowchart of an alternative apparatus control method according to an embodiment of the present invention, where the flowchart includes the following steps:
Step S202, modeling a first device according to a device class of the first device to obtain a first virtual device corresponding to the first device, wherein the first device is a device which is connected with a first component of a second device and is to be controlled by the second device;
it should be noted that, the first device may be understood as a non-intelligent device in a home, such as a common refrigerator, a television, an air purifier, etc., the second device may be an intelligent socket, and the first component may be understood as a jack of the intelligent socket.
Step S204, establishing an association relationship between the second device and the first virtual device;
it should be noted that, the above association relationship may be understood as a master-slave relationship, and devices with master-slave relationship exist, where the slave device depends on the master device and generally does not exist independently; the master device can actively initiate management and control on the slave device, and the slave device cannot manage the master device; the slave device has only one master device, but the master device may be composed of a plurality of slave devices.
The second device is used as a master device in a master-slave relationship between the second device and the first virtual device, and the first virtual device is used as a slave device in the master-slave relationship.
Step S206, receiving a control instruction sent by a first object, and controlling the first device according to the control instruction through the association relation.
It should be noted that the control of the first device includes, but is not limited to, performing device exhibition, device sharing, and controlling the device.
In the embodiment of the application, a first device is modeled according to a device class of the first device, so as to obtain a first virtual device corresponding to the first device, wherein the first device is a device which is connected with a first component of a second device and is to be controlled by the second device; establishing an association relationship between the second device and the first virtual device; receiving a control instruction sent by a first object, and controlling the first device according to the control instruction through an association relation; by adopting the scheme, the problems that in the prior art, when a user controls the traditional non-intelligent household appliance through the intelligent socket, the user only can respectively send instructions to each jack, so that the user needs to memorize equipment bound by each jack, and the user experience is poor are solved; by modeling the non-intelligent household appliances in advance and establishing the association relationship, the user can realize intelligent control of the household appliances through the association relationship.
Optionally, the above step S202 is performed: before modeling the first device according to its device class, the method further comprises: in the event that it is determined that the first device has established a connection with the first component, determining a device class of the first device by one of: receiving an input instruction sent by the first object, and determining the equipment category of the first equipment according to the input instruction; and acquiring the image information of the first equipment through an image acquisition device, and determining the equipment category of the first equipment according to the image information.
Since the smart jack (second device) binding may be a non-smart device, the connected device class and device information cannot be automatically known, and thus the connected device class may be determined by one of the following ways: after the connection is completed, the user can send an input instruction to the intelligent socket to inform the intelligent socket of the equipment type of the first equipment, wherein the input instruction sent by the user can be sent through voice or can be sent to the intelligent socket through the APP bound by the intelligent socket; the smart socket may also collect image information of all devices connected to the smart socket by means of an image collection device located near the smart socket in the home, determine image information of a newly connected first device therefrom, and then determine a device class of the first device according to the image information of the first device. By adopting the scheme, the intelligent socket can quickly acquire the equipment type of the connected equipment in various modes, so that the management of the equipment is better completed.
Optionally, the user can scan the codes of the bound home appliances through the code scanning function of the APP corresponding to the intelligent socket, or collect images, so that the APP can automatically identify the images to determine the equipment type of the first equipment; the device class of the first device may also be determined by information interaction between the NFC function of the mobile phone and the home device, which is not limited in this application.
Optionally, step S202 is: modeling a first device according to a device class of the first device to obtain a first virtual device corresponding to the first device, which may be implemented by the following scheme, including: acquiring the equipment information of the first equipment from a cloud server according to the equipment category of the first equipment; and modeling the first equipment according to the equipment information to obtain the first virtual equipment.
After the equipment type of the first equipment is determined, acquiring equipment information of the first equipment from a cloud server according to the equipment type of the first equipment, wherein the cloud server already stores the equipment types of various household appliances and corresponding detailed equipment information, and the equipment information can be searched through a network when the cloud server does not search; after the device information of the first device is determined, modeling of the first device is completed according to the device information, and the first virtual device is obtained. Through the scheme, modeling of the non-intelligent equipment is automatically completed, management of all household appliances in the home is facilitated, and user experience is improved.
Based on the above steps, after determining the device class of the first device, the method further includes: acquiring equipment information and a detail page template of the first equipment from a cloud server according to the equipment category of the first equipment; and generating a device detail page of the first virtual device according to the device information and the detail page template, and displaying the device detail page in a first application corresponding to the second device in a preset mode.
Optionally, after the device class is determined, the device information and the detail page template of the first device may be obtained from the cloud server according to the device class of the first device, that is, the cloud server stores the template of the device detail page developed by the developer for the devices of various classes in advance, and may be called according to the device class of the first device; after the equipment information and the detail page template of the first equipment are obtained, the detail page template can be perfectly adjusted according to the equipment information to obtain the equipment detail page attached to the first equipment attribute, and then the equipment detail page is displayed in an APP (first application) corresponding to the second equipment in a preset mode. By adopting the scheme, the corresponding equipment detail page is automatically generated after the equipment category is determined, so that the user experience is improved.
Optionally, step S206 is: receiving a control instruction sent by a first object, and controlling the first device according to the control instruction through the association relation, wherein the control instruction can be realized by the following method that: analyzing keywords from the control instruction, wherein the keywords are in one-to-one correspondence with the first virtual equipment; determining first virtual equipment corresponding to the keywords, and determining a target component from a plurality of first components according to the association relation, wherein the target component has the association relation with the first virtual equipment corresponding to the keywords; and controlling the target assembly according to the control instruction so as to control the first equipment.
After the first virtual device of the first device is established and the association relation between the second device and the first virtual device is established, a user can directly issue a control instruction to the first device through the association relation, such as 'opening the air purifier', although the air purifier is a non-intelligent device and cannot receive a voice instruction, an intelligent socket connected with the air purifier can receive the voice control instruction, and a keyword 'air purifier' is analyzed from the control instruction, so that a corresponding first virtual device is determined, and a target component is determined from a plurality of first components of the second device according to the association relation between the second device and the first virtual device corresponding to the keyword; thus, the target component is controlled according to the control instruction, such as "turn on the target component (power on)", and the control of the first device is completed. Through the scheme, a user can complete the control of the non-intelligent equipment in an intelligent control mode such as voice without memorizing which jack each household appliance is connected with.
Based on the above steps, the above step S204 is performed: after establishing the association relationship between the second device and the first virtual device, the method further includes: receiving a sharing instruction sent by the first object through a first application corresponding to the second device, wherein the sharing instruction carries identification information of the second object, and the sharing instruction is used for indicating the first object and the second object to share control authority of the second device; determining a second component of the second device indicated by the sharing instruction, and determining a second virtual device connected with the second component; and determining a second application bound by the second object according to the identification information of the second object, and sending the equipment detail page of the second virtual equipment to the second application through the association relation so as to instruct the second object to control the second component through the equipment detail page of the second virtual equipment.
It can be understood that in a rented household, an intelligent socket is only bound with one APP, namely only one user has control authority over the intelligent socket, other users cannot control the intelligent socket through the APP, but some household appliances are shared by all tenants, such as a refrigerator and the like; at this time, the user can share the control authority of part of jacks of the intelligent socket to other users, and the jacks are all connected with common equipment, so that the user can select one or more designated jacks of the intelligent socket through the APP and select a second object to send a sharing instruction, and the APP responds to the sharing instruction and sends an equipment detail page of the second virtual equipment corresponding to the designated jack selected by the user to the second application bound by the second object, thereby enabling the second object to control a second component (jack) of the intelligent socket. By adopting the scheme, the user can share part of control authority of the intelligent socket with other people, so that the application scene is wider, and the user experience is better.
Optionally, the above-mentioned establishment of the association relationship between the second device and the first virtual device is shown in fig. 3, and fig. 3 is an overall architecture diagram of an alternative device control method according to an embodiment of the present invention.
The pipeline device (corresponding to the second device) is connected with the Cloud server, a master-slave relationship (association relationship) is established between the pipeline device and the plurality of virtual devices (first virtual devices), and based on the architecture, the following interaction can be completed:
cloud binding: the method comprises the steps that a master-slave relation is established between the pipeline equipment and the virtual equipment, and the virtual equipment is unbinding when the pipeline equipment is unbinding;
and (3) equipment display: displaying card pages of the virtual equipment on control ends such as APP (first application);
and (3) sharing equipment: when sharing to a family or an individual, sharing is carried out along with the sharing and canceling of the master device;
control agent: the control of the delivery of the virtual device is proxied by the pipeline device.
Through the architecture, the pipeline equipment model is used, the virtual equipment does not need to be independently configured for binding and sharing operation, the use cost of a user is low, and the virtual equipment is provided with independent equipment detail pages and a digital model, so that the display and the power consumption statistics are convenient; and the pipeline equipment model is used, and the control path of the virtual equipment can adopt the path of the pipeline equipment, so that remote control and voice control can be realized.
Optionally, the above step S204 is performed: after establishing the association relationship between the second device and the first virtual device, the method further includes: determining whether a third device establishes connection with the first component within a preset time period under the condition that the first device is disconnected with the first component; deleting the first virtual device and a device detail page of the first virtual device in the absence of the third device; and when the third device exists and is different from the first device, generating a third virtual device and a device detail page of the third virtual device according to the device category of the third device, replacing the first virtual device with the third virtual device, and replacing the device detail page of the first virtual device with the device detail page of the third virtual device.
When the second device detects that the first device is disconnected from the first component, detecting whether a third device (another device) is connected with the first component in a preset time period, if the third device is not present, indicating that the user can not reuse the jack temporarily, and deleting the first virtual device and the device detail page corresponding to the first device; if the third device exists and the third device is different from the first device, that is, the user connects one other device to the smart jack, the third virtual device and the device detail page of the third device need to be regenerated, and the first virtual device and the device detail page of the first device are covered. In daily life of a household, the home appliance connected to the socket is not unchanged, for example, a user needs to use the blower in a bedroom temporarily, so that the blower in the bathroom needs to be pulled out, that is, the user needs to disconnect the blower from a certain home appliance temporarily, and if the user inserts the appliance back into the jack after using the appliance for a preset period of time, the user does not need to delete the first virtual appliance and the detail page of the appliance, otherwise, the first virtual appliance and the detail page of the appliance are deleted. Through the scheme, after the fact that the intelligent socket is disconnected with a certain device for a period of time or the connected device is replaced is determined, the corresponding virtual device and the device detail page are automatically deleted, and the intelligent socket is better managed.
Based on the above steps, the above step S204 is performed: after establishing the association relationship between the second device and the first virtual device, the method further includes: acquiring equipment information of the first equipment from a cloud server according to the equipment category of the first equipment, wherein the equipment information comprises power consumption information of the first equipment; counting the working time of the first equipment through the first component; and calculating the energy consumption data of the first equipment according to the working time and the power consumption information.
Optionally, the energy consumption generated by the home appliance may be counted by the intelligent device, after the device class of the first device is determined, device information of the first device, such as power consumption information, may be obtained from the cloud server, then the working time (power on time) of the first device may be determined by the first group of the second device, and the energy consumption data generated by the first device may be calculated according to the information and the power consumption information of the first device. Through the scheme, the second equipment can automatically count the energy consumption data generated by the first equipment, so that a user can better know the service condition of the non-intelligent household appliance.
Optionally, the above device control method may also be implemented by, as shown in fig. 4, fig. 4 is a flowchart of an optional device control method according to an embodiment of the present invention, which specifically includes:
step 1.1: adding virtual equipment for a certain jack in the detail page of the pipeline equipment, and generating the detail page of the virtual equipment after the virtual equipment is added successfully;
step 1.2: reporting the master-slave relationship and binding the virtual equipment at the same time;
step 2.1: controlling a virtual device switch in a pipeline device detail page;
step 2.2: issuing a control command (corresponding to the control command) to the pipeline equipment;
step 2.3: remotely controlling the virtual equipment through voice control and cloud;
wherein, the steps 2.1-2.2 and 2.3 are two execution branches, which can be executed respectively.
Step 2.4: the pipeline equipment switches on and off a virtual equipment power supply through the jack;
step 3.1: reporting the state of each jack by the pipeline equipment;
step 3.2: viewing the state of the virtual equipment in the detail page of the virtual equipment;
step 4.1: sharing pipeline equipment on an APP (first application);
step 4.2: the cloud platform automatically shares virtual equipment according to a master-slave relationship;
step 5: and deleting the pipeline equipment on the APP, and unbinding the virtual equipment at the same time.
It can be appreciated that when the user wants to unbind the APP, the deletion operation of the pipe device is performed first, so as to avoid information leakage.
Through the steps, a master-slave relation between the virtual equipment and the pipeline equipment model is established, and the virtual equipment can be controlled, shared, deleted and other operations; therefore, the problem that in the prior art, when a user controls the traditional non-intelligent household appliance through the intelligent socket, the user only can respectively send instructions to each jack, so that the user needs to memorize the equipment bound by each jack, and the user experience is poor is solved; by modeling the non-intelligent household appliances in advance and establishing the association relationship, the user can realize intelligent control of the household appliances through the association relationship.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the various embodiments of the present invention.
In this embodiment, an apparatus control device is further provided, and the apparatus control device is used to implement the foregoing embodiments and preferred embodiments, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
FIG. 5 is a block diagram of an alternative device control apparatus according to an embodiment of the present invention; as shown in fig. 5, includes:
the modeling module 52 is configured to model a first device according to a device class of the first device, to obtain a first virtual device corresponding to the first device, where the first device is a device that has been connected to a first component of a second device, and the second device is to be controlled;
it should be noted that, the first device may be understood as a non-intelligent device in a home, such as a common refrigerator, a television, an air purifier, etc., the second device may be an intelligent socket, and the first component may be understood as a jack of the intelligent socket.
An establishing module 54, configured to establish an association relationship between the second device and the first virtual device;
It should be noted that, the above association relationship may be understood as a master-slave relationship, and devices with master-slave relationship exist, where the slave device depends on the master device and generally does not exist independently; the master device can actively initiate management and control on the slave device, and the slave device cannot manage the master device; the slave device has only one master device, but the master device may be composed of a plurality of slave devices.
The second device is used as a master device in a master-slave relationship between the second device and the first virtual device, and the first virtual device is used as a slave device in the master-slave relationship.
And the receiving module 56 is configured to receive a control instruction sent by the first object, and control the first device according to the control instruction through the association relationship.
It should be noted that the control of the first device includes, but is not limited to, performing device exhibition, device sharing, and controlling the device.
Through the device, modeling is firstly carried out on the first equipment according to the equipment category of the first equipment to obtain first virtual equipment corresponding to the first equipment, wherein the first equipment is equipment which is connected with a first component of second equipment and is to be controlled by the second equipment; establishing an association relationship between the second device and the first virtual device; receiving a control instruction sent by a first object, and controlling the first device according to the control instruction through an association relation; by adopting the scheme, the problems that in the prior art, when a user controls the traditional non-intelligent household appliance through the intelligent socket, the user only can respectively send instructions to each jack, so that the user needs to memorize equipment bound by each jack, and the user experience is poor are solved; by modeling the non-intelligent household appliances in advance and establishing the association relationship, the user can realize intelligent control of the household appliances through the association relationship.
Optionally, the modeling module 52 is further configured to, in case it is determined that the first device has established a connection with the first component, determine a device class of the first device by one of: receiving an input instruction sent by the first object, and determining the equipment category of the first equipment according to the input instruction; and acquiring the image information of the first equipment through an image acquisition device, and determining the equipment category of the first equipment according to the image information.
Since the smart jack (second device) binding may be a non-smart device, the connected device class and device information cannot be automatically known, and thus the connected device class may be determined by one of the following ways: after the connection is completed, the user can send an input instruction to the intelligent socket to inform the intelligent socket of the equipment type of the first equipment, wherein the input instruction sent by the user can be sent through voice or can be sent to the intelligent socket through the APP bound by the intelligent socket; the smart socket may also collect image information of all devices connected to the smart socket by means of an image collection device located near the smart socket in the home, determine image information of a newly connected first device therefrom, and then determine a device class of the first device according to the image information of the first device. By adopting the scheme, the intelligent socket can quickly acquire the equipment type of the connected equipment in various modes, so that the management of the equipment is better completed.
Optionally, the user can scan the codes of the bound home appliances through the code scanning function of the APP corresponding to the intelligent socket, or collect images, so that the APP can automatically identify the images to determine the equipment type of the first equipment; the device class of the first device may also be determined by information interaction between the NFC function of the mobile phone and the home device, which is not limited in this application.
Optionally, the modeling module 52 is further configured to obtain device information of the first device from a cloud server according to a device class of the first device; and modeling the first equipment according to the equipment information to obtain the first virtual equipment.
After the equipment type of the first equipment is determined, acquiring equipment information of the first equipment from a cloud server according to the equipment type of the first equipment, wherein the cloud server already stores the equipment types of various household appliances and corresponding detailed equipment information, and the equipment information can be searched through a network when the cloud server does not search; after the device information of the first device is determined, modeling of the first device is completed according to the device information, and the first virtual device is obtained. Through the scheme, modeling of the non-intelligent equipment is automatically completed, management of all household appliances in the home is facilitated, and user experience is improved.
Optionally, the modeling module 52 is further configured to obtain, from a cloud server, device information and a detail page template of the first device according to a device class of the first device; and generating a device detail page of the first virtual device according to the device information and the detail page template, and displaying the device detail page in a first application corresponding to the second device in a preset mode.
Optionally, after the device class is determined, the device information and the detail page template of the first device may be obtained from the cloud server according to the device class of the first device, that is, the cloud server stores the template of the device detail page developed by the developer for the devices of various classes in advance, and may be called according to the device class of the first device; after the equipment information and the detail page template of the first equipment are obtained, the detail page template can be perfectly adjusted according to the equipment information to obtain the equipment detail page attached to the first equipment attribute, and then the equipment detail page is displayed in an APP (first application) corresponding to the second equipment in a preset mode. By adopting the scheme, the corresponding equipment detail page is automatically generated after the equipment category is determined, so that the user experience is improved.
Optionally, the receiving module 56 is further configured to parse a keyword from the control instruction, where the keyword corresponds to the first virtual device one to one; determining first virtual equipment corresponding to the keywords, and determining a target component from a plurality of first components according to the association relation, wherein the target component has the association relation with the first virtual equipment corresponding to the keywords; and controlling the target assembly according to the control instruction so as to control the first equipment.
After the first virtual device of the first device is established and the association relation between the second device and the first virtual device is established, a user can directly issue a control instruction to the first device through the association relation, such as 'opening the air purifier', although the air purifier is a non-intelligent device and cannot receive a voice instruction, an intelligent socket connected with the air purifier can receive the voice control instruction, and a keyword 'air purifier' is analyzed from the control instruction, so that a corresponding first virtual device is determined, and a target component is determined from a plurality of first components of the second device according to the association relation between the second device and the first virtual device corresponding to the keyword; thus, the target component is controlled according to the control instruction, such as "turn on the target component (power on)", and the control of the first device is completed. Through the scheme, a user can complete the control of the non-intelligent equipment in an intelligent control mode such as voice without memorizing which jack each household appliance is connected with.
Optionally, the establishing module 54 is further configured to receive a sharing instruction sent by the first object through a first application corresponding to the second device, where the sharing instruction carries identification information of a second object, and the sharing instruction is used to instruct the first object and the second object to share control rights on the second device; determining a second component of the second device indicated by the sharing instruction, and determining a second virtual device connected with the second component; and determining a second application bound by the second object according to the identification information of the second object, and sending the equipment detail page of the second virtual equipment to the second application through the association relation so as to instruct the second object to control the second component through the equipment detail page of the second virtual equipment.
It can be understood that in a rented household, an intelligent socket is only bound with one APP, namely only one user has control authority over the intelligent socket, other users cannot control the intelligent socket through the APP, but some household appliances are shared by all tenants, such as a refrigerator and the like; at this time, the user can share the control authority of part of jacks of the intelligent socket to other users, and the jacks are all connected with common equipment, so that the user can select one or more designated jacks of the intelligent socket through the APP and select a second object to send a sharing instruction, and the APP responds to the sharing instruction and sends an equipment detail page of the second virtual equipment corresponding to the designated jack selected by the user to the second application bound by the second object, thereby enabling the second object to control a second component (jack) of the intelligent socket. By adopting the scheme, the user can share part of control authority of the intelligent socket with other people, so that the application scene is wider, and the user experience is better.
Optionally, the establishing module 54 is further configured to determine, if the first device is detected to be disconnected from the first component, whether a third device establishes a connection with the first component within a preset period of time; deleting the first virtual device and a device detail page of the first virtual device in the absence of the third device; and when the third device exists and is different from the first device, generating a third virtual device and a device detail page of the third virtual device according to the device category of the third device, replacing the first virtual device with the third virtual device, and replacing the device detail page of the first virtual device with the device detail page of the third virtual device.
When the second device detects that the first device is disconnected from the first component, detecting whether a third device (another device) is connected with the first component in a preset time period, if the third device is not present, indicating that the user can not reuse the jack temporarily, and deleting the first virtual device and the device detail page corresponding to the first device; if the third device exists and the third device is different from the first device, that is, the user connects one other device to the smart jack, the third virtual device and the device detail page of the third device need to be regenerated, and the first virtual device and the device detail page of the first device are covered. In daily life of a household, the home appliance connected to the socket is not unchanged, for example, a user needs to use the blower in a bedroom temporarily, so that the blower in the bathroom needs to be pulled out, that is, the user needs to disconnect the blower from a certain home appliance temporarily, and if the user inserts the appliance back into the jack after using the appliance for a preset period of time, the user does not need to delete the first virtual appliance and the detail page of the appliance, otherwise, the first virtual appliance and the detail page of the appliance are deleted. Through the scheme, after the fact that the intelligent socket is disconnected with a certain device for a period of time or the connected device is replaced is determined, the corresponding virtual device and the device detail page are automatically deleted, and the intelligent socket is better managed.
Based on the above steps, the establishing module 54 is further configured to obtain, from a cloud server, device information of the first device according to a device class of the first device, where the device information includes power consumption information of the first device; counting the working time of the first equipment through the first component; and calculating the energy consumption data of the first equipment according to the working time and the power consumption information.
Optionally, the energy consumption generated by the home appliance may be counted by the intelligent device, after the device class of the first device is determined, device information of the first device, such as power consumption information, may be obtained from the cloud server, then the working time (power on time) of the first device may be determined by the first group of the second device, and the energy consumption data generated by the first device may be calculated according to the information and the power consumption information of the first device. Through the scheme, the second equipment can automatically count the energy consumption data generated by the first equipment, so that a user can better know the service condition of the non-intelligent household appliance.
An embodiment of the present invention also provides a storage medium including a stored program, wherein the program executes the method of any one of the above.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store program code for performing the steps of:
s1, modeling a first device according to a device class of the first device to obtain a first virtual device corresponding to the first device, wherein the first device is a device which is connected with a first component of a second device and is to be controlled by the second device;
s2, establishing an association relationship between the second equipment and the first virtual equipment;
s3, receiving a control instruction sent by a first object, and controlling the first device according to the control instruction through the association relation.
An embodiment of the invention also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
S1, modeling a first device according to a device class of the first device to obtain a first virtual device corresponding to the first device, wherein the first device is a device which is connected with a first component of a second device and is to be controlled by the second device;
s2, establishing an association relationship between the second equipment and the first virtual equipment;
s3, receiving a control instruction sent by a first object, and controlling the first device according to the control instruction through the association relation.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments and optional implementations, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a memory device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A device control method, characterized by comprising:
modeling a first device according to a device class of the first device to obtain a first virtual device corresponding to the first device, wherein the first device is a device which is connected with a first component of a second device and is to be controlled by the second device;
establishing an association relationship between the second device and the first virtual device;
and receiving a control instruction sent by a first object, and controlling the first device according to the control instruction through the association relation.
2. The device control method according to claim 1, wherein before modeling the first device according to a device class of the first device, the method further comprises:
in the event that it is determined that the first device has established a connection with the first component, determining a device class of the first device by one of:
Receiving an input instruction sent by the first object, and determining the equipment category of the first equipment according to the input instruction;
and acquiring the image information of the first equipment through an image acquisition device, and determining the equipment category of the first equipment according to the image information.
3. The device control method according to claim 1, wherein modeling a first device according to a device class of the first device, to obtain a first virtual device corresponding to the first device, includes:
acquiring the equipment information of the first equipment from a cloud server according to the equipment category of the first equipment;
and modeling the first equipment according to the equipment information to obtain the first virtual equipment.
4. The device control method according to claim 2, wherein after determining the device class of the first device, the method further comprises:
acquiring equipment information and a detail page template of the first equipment from a cloud server according to the equipment category of the first equipment;
and generating a device detail page of the first virtual device according to the device information and the detail page template, and displaying the device detail page in a first application corresponding to the second device in a preset mode.
5. The apparatus control method according to claim 1, wherein receiving a control instruction sent by a first object, and controlling the first apparatus according to the control instruction through the association relationship, includes:
analyzing keywords from the control instruction, wherein the keywords are in one-to-one correspondence with the first virtual equipment;
determining first virtual equipment corresponding to the keywords, and determining a target component from a plurality of first components according to the association relation, wherein the target component has the association relation with the first virtual equipment corresponding to the keywords;
and controlling the target assembly according to the control instruction so as to control the first equipment.
6. The apparatus control method according to claim 1, wherein after establishing the association relationship between the second apparatus and the first virtual apparatus, the method further comprises:
receiving a sharing instruction sent by the first object through a first application corresponding to the second device, wherein the sharing instruction carries identification information of the second object, and the sharing instruction is used for indicating the first object and the second object to share control authority of the second device;
Determining a second component of the second device indicated by the sharing instruction, and determining a second virtual device connected with the second component;
and determining a second application bound by the second object according to the identification information of the second object, and sending the equipment detail page of the second virtual equipment to the second application through the association relation so as to instruct the second object to control the second component through the equipment detail page of the second virtual equipment.
7. The apparatus control method according to claim 1, wherein after establishing the association relationship between the second apparatus and the first virtual apparatus, the method further comprises:
determining whether a third device establishes connection with the first component within a preset time period under the condition that the first device is disconnected with the first component;
deleting the first virtual device and a device detail page of the first virtual device in the absence of the third device;
and when the third device exists and is different from the first device, generating a third virtual device and a device detail page of the third virtual device according to the device category of the third device, replacing the first virtual device with the third virtual device, and replacing the device detail page of the first virtual device with the device detail page of the third virtual device.
8. An apparatus control device, comprising:
the modeling module is used for modeling the first equipment according to the equipment category of the first equipment to obtain first virtual equipment corresponding to the first equipment, wherein the first equipment is equipment which is connected with a first component of second equipment and is to be controlled;
the establishing module is used for establishing an association relation between the second equipment and the first virtual equipment; the receiving module is used for receiving a control instruction sent by a first object, and controlling the first device according to the control instruction through the association relation.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program, when run, performs 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 according to any of the claims 1 to 7 by means of the computer program.
CN202310418572.0A 2023-04-18 2023-04-18 Equipment control method and device, storage medium and electronic device Pending CN116382111A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310418572.0A CN116382111A (en) 2023-04-18 2023-04-18 Equipment control method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310418572.0A CN116382111A (en) 2023-04-18 2023-04-18 Equipment control method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN116382111A true CN116382111A (en) 2023-07-04

Family

ID=86969222

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310418572.0A Pending CN116382111A (en) 2023-04-18 2023-04-18 Equipment control method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN116382111A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117440409A (en) * 2023-12-18 2024-01-23 深圳市瑞迅通信息技术有限公司 Wireless communication method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117440409A (en) * 2023-12-18 2024-01-23 深圳市瑞迅通信息技术有限公司 Wireless communication method and system
CN117440409B (en) * 2023-12-18 2024-02-20 深圳市瑞迅通信息技术有限公司 Wireless communication method and system

Similar Documents

Publication Publication Date Title
CN106647304A (en) Household electrical appliance linkage control method, household electrical appliance, server, and system
CN112738740B (en) Message pushing sending method and device, storage medium and electronic device
CN116382111A (en) Equipment control method and device, storage medium and electronic device
CN106027343B (en) Information-pushing method and device, electronic equipment
CN105230038A (en) Energy management controller, EMS, energy management method and program
CN114697150B (en) Command issuing method and device, storage medium and electronic device
CN115167164A (en) Method and device for determining equipment scene, storage medium and electronic device
CN108039989A (en) A kind of method, apparatus of Scene case, storage medium and computer equipment
CN115174512A (en) Message pushing method and device, storage medium and electronic device
CN116027937A (en) Rendering method and device of component to be edited, storage medium and electronic device
CN114896006B (en) Page menu creation method and device, storage medium and electronic device
CN116360584A (en) Virtual target product generation method and device, storage medium and electronic device
CN115167160A (en) Device control method and apparatus, device control system, and storage medium
CN113206863B (en) Internet of things equipment management method and device
CN115473755A (en) Control method and device of intelligent equipment based on digital twins
CN115314332B (en) Equipment theme setting method and device, storage medium and electronic device
CN115484116B (en) Processing method and device of equipment data, storage medium and electronic device
CN114697359B (en) Data collection method and device, storage medium and electronic device
CN115174292B (en) Equipment data management platform
CN115174290B (en) Session record display method and device, storage medium and electronic device
CN115047797A (en) Equipment operation method and device combined with behavior preference and storage medium
CN115296948B (en) Scene information updating method and device, storage medium and electronic device
CN117854500A (en) Maintenance scheme sending method and device, storage medium and electronic device
CN116382105A (en) Visual scene control method, system, storage medium and electronic device
CN115934200A (en) Resource pushing 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