CN110794693A - Device configuration method and device, electronic device and storage medium - Google Patents

Device configuration method and device, electronic device and storage medium Download PDF

Info

Publication number
CN110794693A
CN110794693A CN201910940611.7A CN201910940611A CN110794693A CN 110794693 A CN110794693 A CN 110794693A CN 201910940611 A CN201910940611 A CN 201910940611A CN 110794693 A CN110794693 A CN 110794693A
Authority
CN
China
Prior art keywords
equipment
information
configuration information
devices
home
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
CN201910940611.7A
Other languages
Chinese (zh)
Other versions
CN110794693B (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.)
Shenzhen Lutuo Technology Co Ltd
Original Assignee
Shenzhen Lutuo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Lutuo Technology Co Ltd filed Critical Shenzhen Lutuo Technology Co Ltd
Priority to CN201910940611.7A priority Critical patent/CN110794693B/en
Publication of CN110794693A publication Critical patent/CN110794693A/en
Application granted granted Critical
Publication of CN110794693B publication Critical patent/CN110794693B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

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)
  • Selective Calling Equipment (AREA)

Abstract

The embodiment of the application discloses a device configuration method and device, electronic equipment and a storage medium. Relating to the technical field of intelligent home furnishing, the method comprises the following steps: acquiring scene selection information; determining a target package application corresponding to the scene selection information from preset package applications, wherein the preset package applications comprise a plurality of virtual devices and an automation scheme configured for the plurality of virtual devices; determining first device configuration information corresponding to the scene selection information, wherein the first device configuration information comprises device information of a plurality of household devices; the first equipment configuration information is checked and matched with second equipment configuration information in the target package application, wherein the second equipment configuration information comprises equipment information of a plurality of virtual equipment; and if the matching is passed through the verification, configuring a plurality of household equipment corresponding to the plurality of virtual equipment according to the target package application. According to the method and the device, the device configuration information and the target package application are determined according to the scene, and the device is configured when the device configuration information and the target package application are matched, so that the configuration efficiency is improved.

Description

Device configuration method and device, electronic device and storage medium
Technical Field
The embodiment of the application relates to the technical field of smart home, in particular to a device configuration method and device, an electronic device and a storage medium.
Background
In an existing intelligent home system, home equipment is often required to be automatically configured or configured in a scene. At present, traditional automatic and intelligent scenes are issued to home equipment, and positions, equipment, automatic and intelligent scenes are configured one by one through a software system and then issued to the home equipment. When the number of intelligent devices and scenes is large, the method is time-consuming and labor-consuming.
Disclosure of Invention
The embodiment of the application provides an equipment configuration method and device, electronic equipment and a storage medium, which can improve equipment configuration efficiency and greatly reduce time for a user to select home equipment.
In a first aspect, an embodiment of the present application provides an apparatus configuration method, where the apparatus configuration method includes: acquiring scene selection information, wherein the scene selection information comprises at least one scene identifier; determining a target package application corresponding to the scene selection information from preset package applications, wherein the preset package applications comprise a plurality of virtual devices and automation schemes configured for the virtual devices; determining first device configuration information corresponding to the scene selection information, wherein the first device configuration information comprises device information of a plurality of household devices; checking and matching the first device configuration information with second device configuration information in the target package application, wherein the second device configuration information comprises device information of the plurality of virtual devices; and if the matching is passed through the verification, configuring a plurality of household devices corresponding to the plurality of virtual devices according to the target package application.
In a second aspect, an embodiment of the present application provides an apparatus for configuring a device, where the apparatus for configuring a device includes: the system comprises a scene selection module, a scene selection module and a scene selection module, wherein the scene selection module is used for acquiring scene selection information which comprises at least one scene identifier; a package determining module, configured to determine a target package application corresponding to the scene selection information from preset package applications, where the preset package applications include a plurality of virtual devices and an automation scheme configured for the plurality of virtual devices; the configuration determining module is used for determining first device configuration information corresponding to the scene selection information, wherein the first device configuration information comprises device information of a plurality of household devices; a configuration checking module, configured to check and match the first device configuration information with second device configuration information in the target package application, where the second device configuration information includes device information of the multiple virtual devices; and the equipment configuration module is used for configuring a plurality of household equipment corresponding to the plurality of virtual equipment according to the target package application if the matching is passed through the verification.
In a third aspect, an embodiment of the present application provides an electronic device, which includes: a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the device configuration method as described in the first aspect above.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the device configuration method according to the first aspect.
The device configuration method, the device, the electronic device and the computer-readable storage medium provided by the embodiment of the application, by acquiring the scene selection information, the scene selection information comprises at least one scene identifier, then determining a target package application corresponding to the scene selection information from preset package applications, wherein the preset package applications comprise a plurality of virtual devices and automation schemes configured for the virtual devices, then determining first device configuration information corresponding to the scene selection information, wherein the first device configuration information comprises device information of a plurality of household devices, and then the first device configuration information is checked and matched with second device configuration information in the target package application, the second device configuration information comprises device information of a plurality of virtual devices, and when the matching is passed through the verification, configuring a plurality of household devices corresponding to the plurality of virtual devices according to the target package application. The method and the device for the configuration of the household equipment determine the target package application according to the scene selection information, recommend the first equipment configuration information, verify and match the first equipment configuration information and the second equipment configuration information of the target package application, and finally issue the target package application to the household equipment for configuration during matching. Therefore, the equipment configuration efficiency is improved, the equipment configuration threshold is reduced, the time for selecting the household equipment by the user is greatly reduced, and the user experience is improved.
These and other aspects of the present application will be more readily apparent from the following description of the embodiments.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below, and it is apparent that the drawings in the following description are only some embodiments, not all embodiments, of the present application. All other embodiments and drawings obtained by a person skilled in the art based on the embodiments of the present application without any inventive step are within the scope of the present invention.
FIG. 1 is a schematic diagram of an application environment suitable for use in embodiments of the present application;
FIG. 2 illustrates a method flow diagram of a device configuration method provided by an embodiment of the present application;
FIG. 3 illustrates a method flow diagram of a device configuration method provided by another embodiment of the present application;
FIG. 4 illustrates an interface diagram of a create package application provided by another embodiment of the present application;
FIG. 5 illustrates another interface diagram for a create package application provided by another embodiment of the present application;
FIG. 6 illustrates yet another interface diagram for a create package application provided by another embodiment of the present application;
fig. 7 is a flowchart illustrating a method for updating configuration information of a first device according to another embodiment of the present application;
FIG. 8 shows a flowchart of a method of step S207 in another embodiment of the present application;
FIG. 9 is a flow chart of another method of step S207 in another embodiment of the present application;
FIG. 10 is a schematic diagram illustrating a network entry process applicable to embodiments of the present application;
fig. 11 shows a flowchart of a method in steps S2081 to S2083 in an apparatus configuration method according to another embodiment of the present application;
fig. 12 shows a block diagram of a device configuration apparatus provided in an embodiment of the present application;
fig. 13 is a block diagram illustrating a hardware structure of an electronic device according to an embodiment of the present application, configured to execute a device configuration method according to an embodiment of the present application;
fig. 14 illustrates a block diagram of a computer-readable storage medium for executing a device configuration method according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
On the basis of automation and intellectualization of household products, the intelligent household system organically combines various subsystems related to household life by utilizing advanced computer technology, network communication technology, comprehensive wiring technology, wireless communication technology and other technologies, and enables the household life to be more comfortable, safe and effective through overall management. With the cognitive and acceptable range of the intelligent home system becoming larger and larger, the application of the intelligent home system has been expanded to the industries such as hotels, buildings and the like.
Nowadays, traditional smart home automation and smart scenes are issued to home devices, and the location, device, automation and smart scenes are configured one by one through a software system and then issued to the home devices. When the number of home devices and scenes is large, the problems of complicated configuration process, low efficiency, configured automation, incapability of multiplexing scenes and the like exist.
Therefore, in order to solve the above-mentioned defects, the inventors have studied the difficulty of the current device configuration, and in particular, comprehensively consider the use requirements of the actual scene, and propose a device configuration method, an apparatus, an electronic device, and a storage medium according to the embodiments of the present application.
In order to better understand a device configuration method, an apparatus, an electronic device, and a storage medium provided in the embodiments of the present application, an application environment suitable for the embodiments of the present application is described below.
Referring to fig. 1, fig. 1 is a schematic diagram of an application environment suitable for the embodiment of the present application. The device configuration method provided by the embodiment of the present application may be applied to the smart home system 10 shown in fig. 1, where the smart home system 10 includes a terminal device 101 and a home device 102, where the terminal device 101 may include a personal computer, a smart phone, a tablet computer, a wearable electronic device, and the like, and is not limited herein.
In some embodiments, the smart home system 10 may include at least one home device 102, and the home device 102 may include a gateway, a wall switch, a wireless switch, a wall socket, a floor sweeping robot, an air conditioning partner, a curtain motor, a door and window sensor, a camera, a smoke alarm, a water sensor, and the like, without limitation.
In some embodiments, the terminal device 101 is used for interacting with a user, so that the user can communicate with the home device 102 remotely through the terminal device 101. In addition, the user may add the same account information to the home devices 102 and 102, and the wireless communication and information synchronization between the terminal device 101 and the home devices 102 are realized through the account information.
Further, the smart home system 10 may further include a server 103, where the server 103 may be a conventional server, or may also be a cloud server, which is not limited herein. The server 103 may be in communication connection with the terminal device 101 and the home device 102 through a wireless network, respectively, so as to perform data interaction between the server 103 and the terminal device 101, and data interaction between the server 103 and the home device 102.
As a mode, the home devices 102 are connected to a gateway, and the terminal device 101 may interact with the gateway through a local area network path (i.e., a mobile terminal-a router-a gateway), so as to implement interaction with the home devices 102 connected to the gateway. Further, the terminal device 101 may interact with the gateway through a wide area network path (i.e., mobile terminal-server-gateway), so as to interact with the home device 102 connected to the gateway. Specifically, both the gateway and the terminal device 101 may be connected to a router, and access the ethernet through the router, and the router may access the server 103 through a wireless or wired manner. For example, the gateway and terminal apparatus 101 may upload information into the server 103. Optionally, the terminal device 101 may also establish a network connection with the server 103 in a wireless manner, so as to obtain data sent by the server 103.
As another mode, the home device 102 may also establish communication with the terminal device 101 to perform interaction after being connected to the router in a wireless communication mode without passing through a gateway. Further, the home device 102 may also establish communication with the terminal device 101 through a wireless communication module such as a ZigBee module or a bluetooth module, and perform interaction.
It is to be understood that the above application environments are only exemplary descriptions for facilitating understanding of the following embodiments, and do not constitute any limitation to the application environments in which the embodiments of the present application may be actually implemented.
Referring to fig. 2, fig. 2 is a flowchart illustrating a method of configuring a device according to an embodiment of the present application, which can be applied to the terminal device. As will be explained in detail with respect to the steps shown in fig. 2, the method may specifically include the following steps:
step S101: scene selection information is acquired.
The scene selection information comprises at least one scene identification, the scene identification corresponds to a scene, and the scene selection information is used for determining a scene of the smart home, wherein the scene can be an automatic scene of home equipment built in the system. By acquiring the scene selection information, a scene corresponding to the scene selection information can be determined. The scene selection information may correspond to at least one scene.
In one embodiment, the scenes may include, but are not limited to, a "go home scene", a "go away from home scene", a "sleep scene", and the like, and are not limited herein.
For example, the "go home scenario" is to be implemented in an automation scenario: at the moment of entering the door, the defense mode is removed, the light is automatically lightened, the curtain is slowly pulled open, the room temperature is adjusted to a comfortable temperature in advance, and the music is quietly wound around the beam.
The terminal equipment can acquire the scene selection information corresponding to the input information by identifying or detecting the input information. Specifically, the input information may be a control triggering instruction corresponding to the selected scene, a voice containing scene information, a text, and the like, which is not limited herein. Therefore, after the user selects the scenes, the terminal equipment acquires scene selection information, the scene selection information corresponds to the scenes, and at least one scene can be determined according to the scene selection information.
In one embodiment, the terminal device displays a scene selection page, where the scene selection page includes at least one control corresponding to a scene, and when a user touches and presses different controls, the user can select the scene corresponding to the control.
Step S102: and determining a target package application corresponding to the scene selection information from preset package applications.
The preset package application includes a plurality of virtual devices and an automation scheme configured for the plurality of virtual devices. The virtual device corresponds to an actual household device and can be used for configuring the actual household device corresponding to the virtual device according to a preset package application. Specifically, automatic configuration corresponding to the scene can be realized by issuing a preset package application to the home equipment corresponding to the virtual equipment. The automatic scheme is a scheme for linkage control among a plurality of devices and comprises a triggering condition and an executing action, and when one device detects that the triggering condition is met, the device and/or other devices can be triggered to execute the executing action corresponding to the triggering condition, so that linkage control is realized.
The preset package application can be preset by the system and can also be created by self-definition. Each preset package application corresponds to a scene and is used for providing automatic configuration of the scene. According to the scene selection information, the target package application corresponding to the scene selection information can be determined from the preset package applications.
In some embodiments, the preset package applications may include package applications such as "go package" corresponding to a state of going home, "go package" corresponding to a state of going away from home, "get-up package" corresponding to a state of getting up, and "get-up package" corresponding to a state of getting up at night.
In a specific embodiment, for example, the scene corresponding to the scene selection information is a "home scene", the "home scene" corresponds to a preset package application "home package" as a target package application, and the corresponding automation scheme is a "home state". Wherein, the "home state" of the automation scheme may be: the method comprises the steps that a door lock detects that the door lock is opened, information that the door lock is opened is informed to a gateway, the gateway can inform a wall switch, a wireless switch and a wall socket which are connected with the gateway to be opened to electrify household equipment, and an instruction sent by the gateway is transmitted to the equipment to control a lamp to be opened, a curtain is pulled open by a curtain motor, the temperature of an air conditioner partner is adjusted to be 26 ℃, and a sound box is opened and plays music. Accordingly, the automation scenario realized by the automation scheme "home state" may be: "advance the twinkling of an eye of a door, remove the mode of deploying troops on garrison duty, light is automatic to be lighted, and the (window) curtain slowly pulls open, and the room temperature has adjusted comfortable temperature in advance, and music is secretly around the roof beam", and the virtual equipment that corresponds with it then includes: the system comprises a door lock, a gateway, a wall switch, a wireless switch, a wall socket, an air conditioner companion, a curtain motor, a door and window sensor and a sound box, wherein a preset package corresponding to the door lock, the gateway, the wall switch, the wireless switch, the wall socket, the air conditioner companion, the curtain motor, the door and window sensor and the sound box are provided with an automatic scheme 'home state' corresponding to the virtual equipment in a built-in mode.
In some embodiments, the predefined package application further includes a location, wherein the location is an actual geographic location of the device installation, the location may be one of all areas owned under the user account, and the location may include a living room, a kitchen, a bedroom, a bathroom, etc. Further, as a mode, the location can be set to various levels according to the actual application requirements and the location characteristics, that is, the location can include multiple levels of locations, for example, a home can be set to a level of location; bedrooms, kitchens, toilets and living rooms in families are secondary positions; the toilet, the owner room and the children room in the bedroom are arranged in three-level positions and the like. That is, the position may also be a fine molecule position, and the sub-position of one position corresponds to the next position of the position. According to the position, the position of the preset package application needing automatic configuration can be determined, and therefore household equipment at the position can be configured according to the virtual equipment.
And determining a target package application corresponding to the scene selection information from preset package applications, wherein the scene can be determined according to the scene selection information, and the target package application corresponding to the scene can be determined from the preset package applications according to the scene. For example, the preset package applications include a "home package", "leave package", "get-up package", and the like, and according to the scene "home scene", the target package application corresponding to the "home scene" may be determined as the "home package" from the preset package applications, and is used for automatically configuring the home equipment corresponding to the "home scene".
Step S103: and determining first device configuration information corresponding to the scene selection information.
The device configuration information corresponding to each scene can be determined according to the scene selection information, so that the first device configuration information corresponding to the scene selection information is determined, and the first device configuration information can be used as a household device configuration scheme to recommend the household device configuration scheme to a user. The first device configuration information comprises device information of a plurality of household devices. The device information may include, but is not limited to, a device name, a device type, etc., and is not limited thereto.
As an implementation manner, the target package application corresponding to the scene selection information is determined according to the scene selection information, and the device information of the existing home devices is obtained and used as the first device configuration information. The existing household equipment comprises household equipment added to the intelligent household system. Therefore, according to the scene, the existing household equipment corresponding to the scene can be determined from the existing household equipment, namely the household equipment which can be used for realizing the automation scheme of the scene in the existing household equipment is determined. Further, in some embodiments, an automation scheme for implementing the scene and the missing home devices can be determined accordingly, so that the time for the user to select the home devices is greatly reduced, the configuration efficiency is improved, and the problem that the configuration scheme of the home devices cannot be automatically recommended according to the scene selected by the user is solved, so that the user can obtain the automatically recommended home device configuration scheme only by knowing the scene to be implemented, and determine the home devices to be purchased so as to implement the scene to be implemented.
Further, the acquiring of the device information of the existing home device may specifically include, as an implementation manner, that the scene selection information carries the device information of the existing home device, and the existing home device information is acquired by analyzing the scene selection information; as another embodiment, the acquisition may also be requested by a request from a server. It can be understood that, in this embodiment, the terminal device may obtain the existing home device information, and how to obtain the existing home device information is not limited in this embodiment.
In another embodiment, when the scene selection information corresponds to a plurality of scenes, the first device configuration information is updated based on a plurality of target package applications corresponding to the plurality of scenes. Specifically, when the home devices corresponding to different scenes in the multiple scenes are repeated, the number of the devices of each home device may be re-determined, and the first device configuration information may be updated accordingly. Therefore, the method not only supports the simultaneous configuration of a plurality of scenes, but also can update the configuration information of the first equipment so as to automatically optimize the recommended configuration scheme. The specific implementation manner can be seen in the following embodiments, which are not described herein again.
Step S104: and checking and matching the first device configuration information with the second device configuration information in the target package application.
The second device configuration information includes device information of multiple virtual devices in the target package application, and is used to determine home devices and device information thereof required in the target package application, that is, according to the device information of the multiple virtual devices in the target package application, home devices in positions where automatic configuration is required can be determined, and according to an automation scheme of the multiple virtual devices in the target package application, home devices corresponding to the first device configuration information are configured.
And checking and matching the first device configuration information with second device configuration information in the target package application, wherein the first device configuration information comprises the device information of a plurality of household devices, and the second device configuration information comprises the device information of a plurality of virtual devices. The checking and matching of the first device configuration information and the second device configuration information in the target package application may specifically include matching of device information of a plurality of home devices and device information of a plurality of virtual devices.
Specifically, as an implementation manner, when the device information of the multiple home devices is completely consistent with the device information of the multiple virtual devices, it may be determined that the first device configuration information and the second device configuration information are matched through verification, so that integrity and accuracy of the target package application configuration may be ensured. It should be noted that the device information may include various data, such as a device name, a device type, and the like, and when each type of data included in the device information matches and matches, it may be determined that the data matches completely.
As another embodiment, when the device information of the multiple home devices is partially consistent with the device information of the multiple virtual devices, it may be determined that the first device configuration information is matched with the second device configuration information through verification, for example, the device types of the multiple virtual devices include door locks, gateways, door and window sensors, wall switches, and audio devices, and the device types of the multiple home devices only include door locks, gateways, door and window sensors, and wall switches, at this time, the device information of the multiple home devices is partially consistent with the device information of the multiple virtual devices, it may be determined that the device information is matched through verification, further, the home devices corresponding to the partially consistent virtual devices may be configured based on the partially consistent virtual devices, so that an automation scheme corresponding to the partially consistent virtual devices in the target package application may be implemented, so that the home devices may be configured based on existing home devices, the configuration flexibility is high, and the usability of the system can be greatly improved while the requirements of users are met.
In one embodiment, the first device configuration information is verified and matched with the second device configuration information in the target package application, and the device information of the plurality of home devices in the first device configuration information is verified and matched with the configuration information of the plurality of virtual devices in the second device configuration information. And when the matching is passed, step S105 may be executed to configure the home devices corresponding to the plurality of virtual devices according to the target package application. Because the first device configuration information comprises the device information of the existing household device of the user, whether the target package application can be issued to the household device or not can be determined by checking and matching the first device configuration information and the second device configuration in the target package application, and the accuracy and efficiency of issuing and configuration are improved.
For example, a scene corresponding to the scene selection information is a "home-returning scene", it can be determined according to the "home-returning scene" that a target package application corresponding to the "home-returning scene" is determined to be a "home-returning package" from preset package applications, and an automation scheme "home-returning state" implemented correspondingly to the "home-returning package" includes: "enter the door in the twinkling of an eye, light is automatic to be lighted, and the (window) curtain is slowly pulled open, and comfortable temperature has been adjusted in advance to the room temperature, and the music is secretly around the roof beam", then the equipment configuration information that "scene of going home" corresponds is as second equipment configuration information, and second equipment configuration information includes the equipment information of lock, gateway, wall switch, wireless switch, wall socket, air conditioner companion, (window) curtain motor, door and window sensor, stereo set. And checking and matching the first equipment configuration information according to the second equipment configuration information.
Step S105: and if the matching is passed through the verification, configuring a plurality of household equipment corresponding to the plurality of virtual equipment according to the target package application.
And if the matching is verified, configuring a plurality of household devices corresponding to the plurality of virtual devices according to the target package application so as to automatically configure the plurality of household devices, and at least partially realizing an automatic scheme in the target package application. Specifically, as a manner, the target package application is stored in the server, and the server may be a traditional server or a cloud server, which is not limited herein.
In an embodiment, if the device information of the multiple home devices is completely consistent with the device information of the multiple virtual devices, it may be determined that the first device configuration information matches the second device configuration information through verification, and at this time, the multiple home devices corresponding to the multiple virtual devices are configured according to the target package application, so as to perform automatic configuration on the multiple home devices, and an automation scheme in the target package application may be implemented.
In another embodiment, when the device information of the multiple home devices is partially consistent with the device information of the multiple virtual devices, it may be determined that the first device configuration information matches the second device configuration information through verification, and at this time, the multiple home devices corresponding to the multiple virtual devices are configured according to the target package application, so as to perform automatic configuration on the multiple home devices, and an automatic scheme in the target package application may be partially implemented.
Further, in some embodiments, when the matching is not verified, the home device corresponding to the first device configuration information may not be configured according to the target package application, so that a configuration error caused by non-correspondence between the home device and the virtual device in the target package application may be avoided, and system stability is improved.
In the device configuration method provided by this embodiment, the scene selection information is acquired, the first device configuration information and the target package application are determined according to the scene selection information, the first device configuration information and the second device configuration information of the target package application are checked and matched, and the target package application is finally issued to the home equipment for configuration when matching is performed. Therefore, the problem that the configuration scheme of the household equipment cannot be automatically recommended according to the scene selected by the user in the prior art is solved, the equipment configuration efficiency is greatly improved, the equipment configuration threshold is reduced, the time for the user to select the household equipment is greatly reduced, and the user experience is improved.
Referring to fig. 3, another embodiment of the present application provides a device configuration method, which can be applied to the terminal device. As will be explained in detail below with respect to the steps shown in fig. 3, the method may specifically include the following steps:
step S201: scene selection information is acquired.
Step S202: and determining a target package application corresponding to the scene selection information from preset package applications.
In this embodiment, the descriptions of step S201 to step S202 are substantially the same as those of step S101 to step S102 in the above embodiment, and are not repeated herein.
And further, one package application at least comprises a position, virtual equipment, an automation scheme and a scene, and specifically, the automation scheme of the package application is obtained by configuring the virtual equipment, and the equipment in the package application refers to the virtual equipment. The home equipment corresponding to the virtual equipment can be determined according to the virtual equipment, so that the home equipment corresponding to the virtual equipment can be automatically configured based on the package application.
In an embodiment, when creating a package application, for an automation scheme to be set for the package application, different package applications may be created for different scenes through a virtual device (that is, a virtual user already has all devices). The package creation application can select all required virtual devices and then create an automation scheme and scene according to the selected virtual devices.
Further, in a specific implementation manner, please refer to fig. 4 to 6, and fig. 4 to 6 respectively show three schematic interface diagrams of creating a package application provided in another embodiment of the present application, and specifically, the package application can be created in the following manner:
as shown in fig. 4, the terminal device displays a package management page of the package application management module, the management module page is provided with a control corresponding to "create" and a created package application list, the control "create" is used to create a package application, and if "create" is clicked, a package creation page can be generated, and a package management page of the package application management module is displayed, where a name of the package application can be input on the package creation page to obtain a name of the package application, such as "leave package", and if "confirm" is clicked, the next step can be entered, such as closing the package creation page, and as shown in fig. 5, an item of "leave package" is added to the created package application list in the package management page.
Next, a selected instruction for "leaving package" is obtained, a location creation page is generated, and according to the received input, after a location is created, such as "living room", virtual devices can be added at the location, as shown in fig. 6. In some embodiments, the user is supported to modify the device name of the virtual device to correspond to the device name of the home device added under the user account, which is beneficial to issuing the subsequent target package application. Then, an automation scheme is configured for the added virtual equipment, and the creation of a package application of 'leaving package' is completed by clicking a 'save' control after configuration. Further, after creation is completed, the created package application may be uploaded to a server for storage and retrieval.
Step S203: and determining first device configuration information corresponding to the scene selection information.
The scene selection information may correspond to at least one scene. For example, the scenes may include a "go home scene," "leave home scene," "sleep scene," "get up night scene," the automation schemes to be implemented and the corresponding home devices are as follows:
if the scene selection information corresponds to a 'home scene', the realized automatic scene comprises the following steps: "enter the door in the twinkling of an eye, light is automatic to be lighted, and the (window) curtain is slowly pulled open, and comfortable temperature has been adjusted in advance to the room temperature, and the music is secretly around the roof beam", then the equipment configuration information that "scene of going home" corresponds is as first equipment configuration information, and first equipment configuration information includes the equipment information of lock, gateway, wall switch, wireless switch, wall socket, air conditioner companion, (window) curtain motor, door and window sensor, stereo set. And checking and matching the first equipment configuration information according to the second equipment configuration information.
If the scene selection information corresponds to a scene away from home, the realized automatic scene comprises the following steps: when leaving home, only one action is needed to turn off all lights, curtains, air conditioners, landscape tables and other electric appliances at home; the sweeping robot starts sweeping; the sensor enters a defense deploying mode, if a window is not closed, the gateway can broadcast a prompt, and an abnormal prompt notice is given; convenient and fast worry-saving, and home-care and safety-taking, the device configuration information corresponding to the "scene of leaving home" is taken as the first device configuration information, and the first device configuration information includes: the device comprises a gateway, a wall switch, a wireless switch, a wall socket, a floor sweeping robot, an air conditioner partner, a curtain motor, a door and window sensor, a camera, a smoke alarm and a water immersion sensor.
If the scene selection information corresponds to a sleep scene, the realized automatic scene comprises the following steps: "sleep scene one key starts, closes all light (window) curtains in the family, gets into the mode of deploying troops on garrison duty, and bedroom air conditioner transfers the sleep mode automatically, has more customized cradle bent, builds extremely comfortable sleep environment", then the equipment configuration information that "sleep scene" corresponds is as first equipment configuration information, and first equipment configuration information includes: gateway, wall switch, wireless switch, wall socket, air conditioner companion, (window) curtain motor, stereo set, door and window sensor, camera.
If the scene selection information corresponds to a 'getting-up scene', the realized automation scene comprises the following steps: "the air conditioner transfers suitable temperature in advance, and light is soft comfortable, and the (window) curtain is slowly opened, and the mode of deploying troops on garrison duty self-closing, and love classmates report weather condition and news this day, and the living room water dispenser begins to boil water", then the equipment configuration information that "easily gets up" corresponds is as first equipment configuration information, and first equipment configuration information includes: gateway, wall socket, wireless switch, wall socket, air conditioner companion, (window) curtain motor, stereo set, door and window sensor, camera.
If the scene selection information corresponds to a 'night scene', the realized automatic scene comprises the following steps: the gateway is provided with a small night lamp, and the color and the brightness of the light can be adjusted at will. Collocation human body sensor, at dim night, someone is through automatic bright lamp, when not influencing family members' sleep safely, gives your sense of security of stepping on again, and then the equipment configuration information that "scene of standing night" corresponds is as first equipment configuration information, and first equipment configuration information includes: gateway, wall socket, human body sensor.
Further, if the acquired scene selection information corresponds to 4 scenes, namely, a "home scene", "away scene", "sleep scene", and a "getting-up scene", then according to a scene combination corresponding to the scene selection information, the recommended first device configuration information includes: the floor sweeping robot comprises a door lock x1, a gateway x4, a wall switch x3, a wireless switch x4, a wall socket x4, an air conditioner partner x4, a curtain motor x4, a door and window sensor x4, a sound x3, a camera x3, a floor sweeping robot x1, a smoke alarm x1 and a water sensor x1 (the door lock x1 represents that the number of the door locks is 1, and the other similar reasons).
Step S204: a device confirmation page is generated based on the first device configuration information.
When the acquired scene selection information corresponds to multiple scenes, the first device configuration information determined according to the scene selection information includes multiple pieces of third device configuration information, the third device configuration information is device configuration information corresponding to each scene, multiple pieces of home equipment of the same type may exist between the third device configuration information of different scenes, and at this time, a device confirmation page may be generated based on the first device configuration information, so as to confirm the space usage of the multiple pieces of home equipment of the same type to a user.
The device confirmation page is used for confirming the home devices in the first device configuration information, and specifically, the device confirmation page displays a plurality of home devices in the first device configuration information.
In some embodiments, the device confirmation page performs aggregate display on home devices of the same type, and displays the number of home devices of the type for confirmation by the user.
Step S205: and acquiring the device use information input by the user based on the device confirmation page.
The equipment use information corresponds to the space use condition of the household equipment confirmed by the user. According to the device use information, the position of the household device of each device type can be obtained. After the device confirmation page is submitted, device use information input by the user based on the device confirmation page can be obtained. Specifically, the equipment confirmation page displays icons and/or names of the household equipment of each equipment type and position selection controls corresponding to the household equipment of each equipment type, the position selection controls correspond to at least one position, the input at least one position can be obtained through the position selection controls, and the position input through the position selection controls is at least one position where the household equipment of one equipment type is located. Therefore, the user can input the position corresponding to the household equipment of each equipment type through the equipment confirmation page, and the terminal equipment can acquire the position respectively set by the household equipment of each equipment type. Specifically, as an implementation manner, the position selection control corresponds to a position selection list, and the position can be input by selecting a position in the position selection list; as another embodiment, the location selection control may also correspond to an input box, which is used to enter the location.
Further, in some embodiments, the household devices corresponding to each device type on the device confirmation page may further be provided with a number input control, the number input control corresponds to a position selected by the position selection control one to one, for example, if the position selection control corresponding to the device type "wall switch" selects "living room" and "kitchen", there are two number input controls, including a number input control N1 for determining the number of "wall switches" set in the living room "and a number input control N2 for determining the number of" wall switches "set in the kitchen", and at this time, the number is input through the number input control N1. Therefore, after the device page is submitted, the terminal device can obtain the device position set by the household device of each device type and the device number of the household device of the device type at each device position.
For example, based on the foregoing example, when the acquired scene selection information corresponds to 4 scenes, namely, a "home scene", "away scene", "sleep scene", and a "getting up scene", at this time, according to the scene combination corresponding to the scene selection information, the recommended first device configuration information includes: the device comprises a door lock x1, a gateway x4, a wall switch x3, a wireless switch x4, a wall socket x4, an air conditioner partner x4, a curtain motor x4, a door and window sensor x4, a sound box x3, a camera x3, a sweeping robot x1, a smoke alarm x1 and a water sensor x 1. At this time, based on the device confirmation page, the acquired device use information corresponds to: "the gateway is used in 2 different locations: living room, secondary bedroom; the air conditioning partner was used in 3 different locations: a living room, a main bedroom and a secondary bedroom; the camera is used in only 1 position: a lobby; the curtain motor is used in 2 different positions: a master bedroom, a living room; the sound is used in 2 different locations: sub-bedrooms, halls; water immersion sensors were used in 2 different locations: kitchen, toilet ". Therefore, by submitting the equipment confirmation page, the terminal equipment can acquire the equipment use information input by the user based on the equipment confirmation page so as to acquire the space use condition of the household equipment.
Step S206: the first device configuration information is updated according to the device usage information.
When the acquired scene selection information corresponds to multiple scenes, the first device configuration information determined according to the scene selection information includes multiple pieces of third device configuration information, the third device configuration information is device configuration information corresponding to each scene, multiple pieces of home equipment of the same device type may exist between the third device configuration information of different scenes, and at this time, a device confirmation page may be generated based on the first device configuration information, so that the space use conditions of the multiple pieces of home equipment of the same device type are confirmed for a user, the device use information is obtained, and the first device configuration information is updated according to the device use information, so that the device configuration scheme can be updated according to the control use conditions of the home equipment.
In one embodiment, the device usage information includes a device type and a device location, and in particular, updating the first device configuration information according to the device usage information includes: if the home devices of the same device type are all used at the same position, only one home device of the device type is reserved corresponding to the position, and other home devices of the device type at the position are deleted; if the home devices of the same device type are used at different positions, one home device of the device type is reserved corresponding to each position. Specifically, referring to fig. 7, fig. 7 is a flowchart illustrating a method for updating configuration information of a first device, the method comprising: step S2061 to step S2062.
Step S2061: and judging whether the equipment positions of a plurality of household equipment of the same equipment type are the same.
And acquiring the equipment position and the equipment number of the household equipment of each equipment type according to the equipment use information, and judging whether the equipment positions of a plurality of household equipment of the same equipment type are the same. Specifically, according to the device usage information, the device location where the home device of each device type is set and the device number of the home device of the device type at each device location may be obtained. By judging whether the number of the home devices of the device type at each device position is greater than 1, the device positions of a plurality of home devices of the same device type can be judged to be the same. Specifically, if the number of devices corresponding to one device position in the device positions of the home devices of the same device type is greater than 1, it can be determined that the device positions of the home devices of the same device type are the same, and otherwise, it can be determined that the device positions are different.
Step S2062: if the equipment positions of the home equipment are the same as those of the target home equipment, determining the target home equipment from the home equipment of the same equipment type, and deleting other home equipment of the same equipment type with the same equipment position as that of the target home equipment from the first equipment configuration information so as to update the first equipment configuration information.
If the device positions of the home devices of the same device type are the same, determining a target home device from the home devices of the same device type, and deleting other home devices from the first device configuration information, so that only one home device of the device type is reserved, and other home devices of the device type at the same device position are deleted. Specifically, a target household device is determined corresponding to each device position from household devices of the same device type to determine at least one target household device in the household devices of the same device type, so that only one household device of the same device type is reserved corresponding to each device position, and automatic optimization of first device configuration information according to the space use condition of the household devices is achieved.
For example, based on the foregoing example, when the acquired scene selection information corresponds to 4 scenes, namely, a "home scene", "away scene", "sleep scene", and a "getting up scene", based on the foregoing example, the recommended first device configuration information includes, according to a scene combination corresponding to the scene selection information at this time: the device comprises a door lock x1, a gateway x4, a wall switch x3, a wireless switch x4, a wall socket x4, an air conditioner partner x4, a curtain motor x4, a door and window sensor x4, a sound box x3, a camera x3, a sweeping robot x1, a smoke alarm x1 and a water sensor x 1. At this time, based on the device confirmation page, the acquired device use information corresponds to: "the gateway is used in 2 different locations: living room, secondary bedroom; the air conditioning partner was used in 3 different locations: a living room, a main bedroom and a secondary bedroom; the camera is used in only 1 position: a lobby; the curtain motor is used in 2 different positions: a master bedroom, a living room; the sound is used in 2 different locations: sub-bedrooms, halls; water immersion sensors were used in 2 different locations: kitchen, toilet ". The terminal device automatically updates the first device configuration information according to the device usage information, and only one home device of the same device type is reserved corresponding to each device location, so that the updated first device configuration information includes: the device comprises a door lock x1, a gateway x 2, a wall switch x3, a wireless switch x4, a wall socket x4, an air conditioner partner x3, a curtain motor x 2, a door and window sensor x4, a sound box x 2, a camera x1, a sweeping robot x1, a smoke alarm x1 and a water sensor x 2.
Step S207: and checking and matching the first device configuration information with the second device configuration information in the target package application.
Wherein the second device configuration information includes device information of the plurality of virtual devices.
Further, in some embodiments, if the matching fails, a prompt message may be generated to prompt the user that the matching fails to be checked, so that the user knows that the target package application corresponding to the selected scene cannot be configured currently.
In an embodiment, the first device configuration information and the second device configuration information may be checked and matched by determining whether the device information is consistent, so as to determine whether the target package application may be issued. Specifically, whether the device information of the plurality of household devices in the first device configuration information is consistent with the device information of the plurality of virtual devices in the second device configuration information is judged, and if so, the verification matching is judged to be passed; and if the two are inconsistent, judging that the check matching is not passed.
Further, as an implementation manner, the device information may include a device parameter of each household device and a device number of a plurality of household devices, and the device parameter includes a device type and a device name. Therefore, whether the equipment information is consistent or not can be judged by judging whether the equipment types of the plurality of household equipment are consistent with the equipment types of the plurality of virtual equipment, the equipment names of the plurality of household equipment are consistent with the equipment names of the plurality of virtual equipment, and the equipment number of each equipment type in the plurality of household equipment is consistent with the equipment number of the same equipment type in the plurality of virtual equipment. And if the device information is consistent, judging that the device information is consistent, otherwise, judging that the device information is inconsistent. If the equipment information is consistent, the verification matching can be judged to be passed; if the device information is inconsistent, it can be determined that the check matching is not passed.
In addition, in one embodiment, the device type, the device name and the device number can be checked in sequence, and when any one of the device types is inconsistent with the target package application, the device information can be judged to be inconsistent, so that the device information can be judged to be matched in a non-passing check mode. Therefore, the verification process can be optimized, and the verification efficiency is improved. Specifically, referring to fig. 8, fig. 8 shows a flowchart of a method of step S207 in another embodiment of the present application, specifically, step S207 includes: step S301 to step S305.
Step S301: and judging whether the equipment types of the plurality of household equipment are consistent with the equipment types of the plurality of virtual equipment.
If yes, step S302 may be executed to check and match the device names.
And if the device information is inconsistent, judging that the device information is inconsistent.
Step S302: and judging whether the equipment names of the plurality of household equipment are consistent with the equipment names of the plurality of virtual equipment or not.
If yes, step S303 may be executed to check and match the number of devices.
And if the device information is inconsistent, judging that the device information is inconsistent.
Step S303: and judging whether the equipment number of each equipment type in the plurality of home equipment is consistent with the equipment number of the same equipment type in the plurality of virtual equipment.
Step S304: and judging that the equipment information is consistent.
If the device information is consistent, it can be determined that the verification match is passed, and step S208 is performed.
Step S305: and judging that the device information is inconsistent.
If the device information is inconsistent, it can be determined that the check matching is not passed.
If the result of any one of the determinations in the foregoing steps S301, S302, and S303 is inconsistent, it may be determined that the device information is inconsistent, and it may be further determined that the verification match is not passed.
In addition, in another embodiment, the device information includes a device network access sequence, and whether the network access sequence is consistent or not is judged to determine whether the target package application can be issued or not, so as to configure the home devices. Therefore, the time for the user to select the intelligent household product is greatly reduced, the user can buy and use the product immediately, and the user experience is enhanced. Specifically, referring to fig. 9, fig. 9 is a flowchart of a method of another method flowchart of step S207 in another embodiment of the present application, where the method includes: step S401 to step S403.
Step S401: and judging whether the equipment network access sequence of the home equipment is consistent with the equipment network access sequence of the virtual equipment.
After the home equipment is installed on site, the equipment network access operation needs to be performed, specifically, please refer to fig. 10, where fig. 10 shows a network access flow diagram applicable to the embodiment of the present application. As shown in fig. 10, the network access process includes: the method comprises the steps of establishing a position, accessing a gateway, adjusting the name of the gateway, connecting the home equipment with the gateway, adjusting the name of the home equipment, and connecting the gateway with a cloud server when the gateway accesses the network. Therefore, the home equipment can complete equipment networking operation.
In one embodiment, the terminal device may send a check request to the cloud server, and check the device network-entry sequence in the location through the cloud server. Specifically, the device network access sequence matches the device type of the networked home devices and the network access sequence of the home devices of different device types.
And judging whether the equipment network access sequence of the plurality of home equipment is consistent with the equipment network access sequence of the plurality of virtual equipment, if so, considering that the equipment types at the position, the equipment number of the same equipment type and the network access sequence of the home equipment are all matched with the target package application, and executing the step S402. If the device network access sequence of the plurality of home devices is not consistent with the device network access sequence of the plurality of virtual devices, step S403 may be executed.
Step S402, judging that the check matching is passed.
And step S403, judging that the check matching is not passed.
If the matching is not passed, the target package application cannot be configured.
Step S208: and if the matching is passed through the verification, configuring a plurality of household equipment corresponding to the plurality of virtual equipment according to the target package application.
In an embodiment, referring to fig. 11, step S208 may further include step S2081 to step S2083, and specifically includes:
step S2081: a plurality of target device locations are created from the device locations of the plurality of virtual devices.
The target device position is a virtual position, and corresponds to the device position of the virtual device.
Step S2082: and distributing a plurality of household devices corresponding to the plurality of virtual devices to a plurality of target device positions.
And allocating a plurality of household devices corresponding to the plurality of virtual devices to a plurality of target device positions to prepare for receiving configuration data of the virtual devices in the target package application.
Step S2083: and configuring a plurality of household devices corresponding to the plurality of virtual devices according to an automation scheme in the target package application.
And respectively issuing one or more pieces of automated data configured by the virtual equipment in the target package application to the household equipment corresponding to the virtual equipment according to the automated scheme in the target package application, so that the household equipment can realize the automated scheme configured by the virtual equipment in the target package application.
It should be noted that, for parts not described in detail in this embodiment, reference is made to the above embodiments, and details are not repeated herein.
The device configuration method provided by this embodiment is based on the foregoing embodiment, by recommending first device configuration information corresponding to a scene selected by a user, generating a device confirmation page for the user to view the recommended first device configuration information, and acquiring device usage information input by the user, where the device usage information is determined by the user according to a space usage situation, and therefore, the first device configuration information is updated according to the device usage information, and the recommended first device configuration information can be automatically optimized according to the space usage situation confirmed by the user, so as to optimize a configuration scheme for automatically recommending home devices, so that the user can know home devices required to be configured to implement a certain scene, thereby greatly reducing a time for the user to select home devices, achieving instant purchase and use, and enhancing user experience.
It should be understood that although the various steps in the method flow diagrams of fig. 2-11 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-11 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
Referring to fig. 12, fig. 12 is a block diagram of a device configuration apparatus according to an embodiment of the present application, which is applicable to the terminal device. As will be explained below with respect to the block diagram shown in fig. 12, the device configuration apparatus 1200 includes: a scenario selection module 1210, a package determination module 1220, a configuration determination module 1230, a configuration verification module 1240, and a device configuration module 1250, wherein:
a scene selection module 1210, configured to obtain scene selection information, where the scene selection information includes at least one scene identifier;
a package determining module 1220, configured to determine a target package application corresponding to the scene selection information from preset package applications, where the preset package applications include a plurality of virtual devices and automation schemes configured for the plurality of virtual devices;
a configuration determining module 1230, configured to determine first device configuration information corresponding to the scene selection information, where the first device configuration information includes device information of multiple home devices;
a configuration checking module 1240, configured to check and match the first device configuration information with second device configuration information in the target package application, where the second device configuration information includes device information of the multiple virtual devices;
and an apparatus configuration module 1250, configured to configure, according to the target package application, a plurality of home apparatuses corresponding to the plurality of virtual apparatuses if the matching is verified.
Further, after determining the first device configuration information corresponding to the scene selection information, the device configuration apparatus 1200 further includes: the system comprises a page generation module, an information acquisition module and a configuration updating module, wherein:
the page generating module is used for generating an equipment confirmation page based on the first equipment configuration information;
the information acquisition module is used for acquiring the equipment use information input by the user based on the equipment confirmation page;
and the configuration updating module is used for updating the first equipment configuration information according to the equipment use information.
Further, the device usage information includes a device type and a device location, and the configuration update module includes: position judging unit and position updating unit, wherein:
the system comprises a position judging unit, a position judging unit and a control unit, wherein the position judging unit is used for judging whether the equipment positions of a plurality of household equipment of the same equipment type are the same or not;
and the location updating unit is used for determining the target household equipment from the household equipment of the same equipment type and deleting other household equipment from the first equipment configuration information to update the first equipment configuration information if the household equipment is the same as the target household equipment.
Further, the configuration checking module 1240 includes: information judge unit, first matching unit and second matching unit, wherein:
an information determining unit, configured to determine whether device information of the multiple pieces of home equipment in the first device configuration information is consistent with device information of the multiple pieces of virtual equipment in the second device configuration information;
the first matching unit is used for judging that the verification matching is passed if the matching is consistent;
and the second matching unit is used for judging that the check matching is not passed if the check matching is not consistent.
Further, the device information includes a device parameter of each household device and the number of the plurality of household devices, the device parameter includes a device type and a device name, and the information determining unit includes: an information judgment subunit and an information judgment subunit, wherein:
an information determining subunit, configured to determine whether the device types of the multiple home devices are consistent with the device types of the multiple virtual devices, the device names of the multiple home devices are consistent with the device names of the multiple virtual devices, and the number of devices of each device type in the multiple home devices is consistent with the number of devices of the same device type in the multiple virtual devices;
and the information judgment subunit is used for judging that the equipment information is consistent if the equipment information is consistent, and otherwise, judging that the equipment information is inconsistent.
Further, the information judgment subunit includes: a type judgment subunit, a name judgment subunit and a number judgment subunit, wherein:
the type judgment secondary subunit is used for judging whether the equipment types of the plurality of household equipment are consistent with the equipment types of the plurality of virtual equipment or not;
the name judging subunit is configured to, if the device types are consistent, judge whether the device names of the plurality of home devices are consistent with the device names of the plurality of virtual devices;
and the quantity judgment sub-unit is used for judging whether the quantity of each equipment type in the plurality of household equipment is consistent with the quantity of the same equipment type in the plurality of virtual equipment or not if the equipment names are consistent.
Further, the device information includes a device network entry sequence, and the configuration check module 1240 includes: network access judging unit, third matching unit and fourth matching unit, wherein:
a network access judging unit, configured to judge whether the device network access sequence of the multiple home devices is consistent with the device network access sequence of the multiple virtual devices;
the third matching unit is used for judging that the verification matching is passed if the matching is consistent;
and the fourth matching unit is used for judging that the check matching is not passed if the check matching is not consistent.
Further, the device information includes a device location, and the device configuration module 1250 includes: the system comprises a position establishing unit, a position distributing unit and a home configuration unit, wherein:
a location creating unit configured to create a plurality of target device locations according to device locations of the plurality of virtual devices;
a location allocation unit, configured to allocate a plurality of home devices corresponding to the plurality of virtual devices to the plurality of target device locations;
and the home furnishing configuration unit is used for configuring a plurality of home furnishing devices corresponding to the plurality of virtual devices according to an automation scheme in the target package application.
The device configuration apparatus provided in the embodiment of the present application is used to implement the corresponding device configuration method in the foregoing method embodiment, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
It can be clearly understood by those skilled in the art that the device configuration apparatus provided in the embodiment of the present application can implement each process in the method embodiments of fig. 2 to fig. 11, and for convenience and brevity of description, specific working processes of the above-described apparatus and modules may refer to corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling or direct coupling or communication connection between the modules shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or modules may be in an electrical, mechanical or other form.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Referring to fig. 13, fig. 13 is a block diagram illustrating a hardware structure of an electronic device according to an embodiment of the present disclosure. Specifically, the electronic device 1300 may be an electronic device capable of running an application, such as a central processing unit, a smart phone, a tablet computer, an electronic book, a wearable electronic device, a server, and a single chip microcomputer. The electronic device 1300 in the present application may include one or more of the following components: a processor 1310, a memory 1320, and one or more applications, wherein the one or more applications may be stored in the memory 1320 and configured to be executed by the one or more processors 1310, the one or more programs of instructions of the system configured to perform the methods as described in the aforementioned method embodiments.
As shown in fig. 13, the electronic device 1300 may vary greatly in configuration or performance and may include one or more processors 1310 (the processors 1310 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 1330 for storing data, one or more storage media 1320 (e.g., one or more mass storage devices) for storing applications 1323 or data 1322. The memory 1330 and the storage medium 1320 may be, among other things, transient storage or persistent storage. The program stored in the storage medium 1320 may include one or more modules, each of which may include a sequence of instructions operating on the electronic device 1300. Further, the processor 1310 may be configured to communicate with the storage medium 1320 to execute a series of instruction operations in the storage medium 1320 on the electronic device 1300. The electronic device 1300 may also include one or more power supplies 1360, one or more wired or wireless network interfaces 1350, one or more input-output interfaces 1340, and/or one or more operating systems 1321 such as WindowsServerTM, MacOSXTM, UnixTM, LinuxTM, FreeBSDTM, etc.
The power source 1360 may include a separate power module to supply power to the electronic device 1300, or may be used to connect an external power source to supply power to the electronic device 1300.
Input/output interface 1340 may be used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the electronic device 1300. In one example, i/o interface 1340 includes a network adapter (NIC) that may be coupled to other network devices via a base station to communicate with the internet. In one example, the input/output interface 1340 can be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
It will be understood by those skilled in the art that the structure shown in fig. 13 is only an illustration, and is not intended to limit the structure of the electronic device. For example, electronic device 1300 may also include more or fewer components than shown in FIG. 13, or have a different configuration than shown in FIG. 13.
The embodiment of the application also provides a computer readable storage medium. Fig. 14 is a block diagram of a computer-readable storage medium 1400 according to an embodiment of the present application. The computer-readable storage medium 1400 has a computer program 1410 stored thereon, and the computer program 1410 is executed by a processor to implement the processes of the room status prediction method embodiment described above, and can achieve the same technical effects, and in order to avoid repetition, details are not described here again. The computer-readable storage medium 1400 is, for example, a Read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application 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 (such as a smart gateway, a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, the present embodiments are not limited to the above embodiments, which are merely illustrative and not restrictive, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention.

Claims (11)

1. A method for device configuration, the method comprising:
acquiring scene selection information, wherein the scene selection information comprises at least one scene identifier;
determining a target package application corresponding to the scene selection information from preset package applications, wherein the preset package applications comprise a plurality of virtual devices and automation schemes configured for the virtual devices;
determining first device configuration information corresponding to the scene selection information, wherein the first device configuration information comprises device information of a plurality of household devices;
checking and matching the first device configuration information with second device configuration information in the target package application, wherein the second device configuration information comprises device information of the plurality of virtual devices;
and if the matching is passed through the verification, configuring a plurality of household devices corresponding to the plurality of virtual devices according to the target package application.
2. The method according to claim 1, wherein after determining the first device configuration information corresponding to the scene selection information, the method further comprises:
generating a device confirmation page based on the first device configuration information;
acquiring equipment use information input by a user based on the equipment confirmation page;
updating the first device configuration information according to the device usage information.
3. The method of claim 2, wherein the device usage information comprises a device type and a device location, and wherein updating the first device configuration information based on the device usage information comprises:
judging whether the equipment positions of a plurality of household equipment of the same equipment type are the same or not;
if the equipment positions of the home equipment are the same as those of the target home equipment, determining the target home equipment from the home equipment of the same equipment type, and deleting other home equipment of the same equipment type with the same equipment position as that of the target home equipment from the first equipment configuration information so as to update the first equipment configuration information.
4. The method of claim 1, wherein the checking and matching the first device configuration information with the second device configuration information in the target package application comprises:
judging whether the equipment information of the plurality of household equipment in the first equipment configuration information is consistent with the equipment information of the plurality of virtual equipment in the second equipment configuration information;
if the two are consistent, the verification is judged to be passed;
and if the two are inconsistent, judging that the check matching is not passed.
5. The method according to claim 4, wherein the device information includes a device parameter of each household device and the number of the plurality of household devices, the device parameter includes a device type and a device name, and the determining whether the device information of the plurality of household devices in the first device configuration information is consistent with the device information of the plurality of virtual devices in the second device configuration information includes:
judging whether the equipment types of the plurality of home equipment are consistent with the equipment types of the plurality of virtual equipment, the equipment names of the plurality of home equipment are consistent with the equipment names of the plurality of virtual equipment, and the quantity of each equipment type in the plurality of home equipment is consistent with the quantity of equipment of the same equipment type in the plurality of virtual equipment;
and if the device information is consistent, judging that the device information is consistent, otherwise, judging that the device information is inconsistent.
6. The method according to claim 5, wherein the determining whether the device types of the plurality of home devices are consistent with the device types of the plurality of virtual devices, the device names of the plurality of home devices are consistent with the device names of the plurality of virtual devices, and the number of devices of each device type in the plurality of home devices is consistent with the number of devices of the same device type in the plurality of virtual devices comprises:
judging whether the equipment types of the plurality of household equipment are consistent with the equipment types of the plurality of virtual equipment or not;
if the equipment types are consistent, judging whether the equipment names of the plurality of household equipment are consistent with the equipment names of the plurality of virtual equipment or not;
and if the equipment names are consistent, judging whether the equipment number of each equipment type in the plurality of household equipment is consistent with the equipment number of the same equipment type in the plurality of virtual equipment.
7. The method of any one of claims 1-6, wherein the device information comprises a device network entry order, and wherein the checking and matching the first device configuration information with the second device configuration information in the target package application comprises:
judging whether the equipment network access sequence of the plurality of home equipment is consistent with the equipment network access sequence of the plurality of virtual equipment;
if the two are consistent, the verification is judged to be passed;
and if the two are inconsistent, judging that the check matching is not passed.
8. The method according to any one of claims 1 to 6, wherein the device information includes a device location, and if the device location matches the device location through the verification, configuring a plurality of home devices corresponding to the plurality of virtual devices according to the target package application includes:
creating a plurality of target device positions according to the device positions of the plurality of virtual devices;
distributing a plurality of household devices corresponding to the plurality of virtual devices to the plurality of target device positions;
and configuring a plurality of household devices corresponding to the plurality of virtual devices according to an automation scheme in the target package application.
9. An apparatus for device configuration, the apparatus comprising:
the system comprises a scene selection module, a scene selection module and a scene selection module, wherein the scene selection module is used for acquiring scene selection information which comprises at least one scene identifier;
a package determining module, configured to determine a target package application corresponding to the scene selection information from preset package applications, where the preset package applications include a plurality of virtual devices and an automation scheme configured for the plurality of virtual devices;
the configuration determining module is used for determining first device configuration information corresponding to the scene selection information, wherein the first device configuration information comprises device information of a plurality of household devices;
a configuration checking module, configured to check and match the first device configuration information with second device configuration information in the target package application, where the second device configuration information includes device information of the multiple virtual devices;
and the equipment configuration module is used for configuring a plurality of household equipment corresponding to the plurality of virtual equipment according to the target package application if the matching is passed through the verification.
10. An electronic device, comprising:
processor, memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the device configuration method according to any one of claims 1 to 8.
11. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the device configuration method according to any one of claims 1 to 8.
CN201910940611.7A 2019-09-30 2019-09-30 Device configuration method, device, electronic device and storage medium Active CN110794693B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910940611.7A CN110794693B (en) 2019-09-30 2019-09-30 Device configuration method, device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910940611.7A CN110794693B (en) 2019-09-30 2019-09-30 Device configuration method, device, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN110794693A true CN110794693A (en) 2020-02-14
CN110794693B CN110794693B (en) 2023-09-26

Family

ID=69438779

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910940611.7A Active CN110794693B (en) 2019-09-30 2019-09-30 Device configuration method, device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN110794693B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111338264A (en) * 2020-03-24 2020-06-26 珠海格力电器股份有限公司 Method for automatically setting parameters of electric appliance and electric appliance
CN111556119A (en) * 2020-04-23 2020-08-18 杭州涂鸦信息技术有限公司 Equipment information changing method and related equipment
CN111885144A (en) * 2020-07-20 2020-11-03 青岛易来智能科技股份有限公司 Equipment binding method and device
CN111898383A (en) * 2020-08-15 2020-11-06 广州云智通讯科技有限公司 Intelligent household information processing method and device and readable storage medium
CN112039737A (en) * 2020-08-26 2020-12-04 珠海格力电器股份有限公司 Equipment network distribution method, equipment control method, terminal equipment and equipment control system
CN113867160A (en) * 2021-09-07 2021-12-31 杭州博联智能科技股份有限公司 Method and system for device control
CN114422285A (en) * 2022-03-14 2022-04-29 深圳市华曦达科技股份有限公司 Configuration method based on multi-manufacturer fusion scene of intelligent home client
CN117014247A (en) * 2023-08-28 2023-11-07 广东金朋科技有限公司 Scene generation method, system and storage medium based on state learning

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103616876A (en) * 2013-12-02 2014-03-05 从兴技术有限公司 Intelligent home centralized control device and intelligent home contextual model establishing method
CN106227055A (en) * 2016-08-31 2016-12-14 海信集团有限公司 A kind of control the method for intelligent home device, server and gateway
CN107991892A (en) * 2017-11-02 2018-05-04 珠海格力电器股份有限公司 The methods, devices and systems of control device
CN108873730A (en) * 2018-08-31 2018-11-23 珠海格力电器股份有限公司 A kind of control method and equipment of home equipment
CN109407527A (en) * 2018-09-14 2019-03-01 深圳绿米联创科技有限公司 Realize the method and device that smart machine is recommended
US20190079651A1 (en) * 2016-03-17 2019-03-14 Gree Electric Appliances, Inc. Of Zhuhai Control method and apparatus for smart home
CN109491263A (en) * 2018-12-13 2019-03-19 深圳绿米联创科技有限公司 Intelligent home equipment control method, device, system and storage medium
CN109660387A (en) * 2018-12-03 2019-04-19 深圳绿米联创科技有限公司 Management method, device, server and the storage medium of configuration data of device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103616876A (en) * 2013-12-02 2014-03-05 从兴技术有限公司 Intelligent home centralized control device and intelligent home contextual model establishing method
US20190079651A1 (en) * 2016-03-17 2019-03-14 Gree Electric Appliances, Inc. Of Zhuhai Control method and apparatus for smart home
CN106227055A (en) * 2016-08-31 2016-12-14 海信集团有限公司 A kind of control the method for intelligent home device, server and gateway
CN107991892A (en) * 2017-11-02 2018-05-04 珠海格力电器股份有限公司 The methods, devices and systems of control device
CN108873730A (en) * 2018-08-31 2018-11-23 珠海格力电器股份有限公司 A kind of control method and equipment of home equipment
CN109407527A (en) * 2018-09-14 2019-03-01 深圳绿米联创科技有限公司 Realize the method and device that smart machine is recommended
CN109660387A (en) * 2018-12-03 2019-04-19 深圳绿米联创科技有限公司 Management method, device, server and the storage medium of configuration data of device
CN109491263A (en) * 2018-12-13 2019-03-19 深圳绿米联创科技有限公司 Intelligent home equipment control method, device, system and storage medium

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111338264B (en) * 2020-03-24 2021-04-27 珠海格力电器股份有限公司 Method for automatically setting parameters of electric appliance and electric appliance
CN111338264A (en) * 2020-03-24 2020-06-26 珠海格力电器股份有限公司 Method for automatically setting parameters of electric appliance and electric appliance
CN111556119A (en) * 2020-04-23 2020-08-18 杭州涂鸦信息技术有限公司 Equipment information changing method and related equipment
CN111556119B (en) * 2020-04-23 2023-04-21 杭州涂鸦信息技术有限公司 Device information changing method and related device
CN111885144B (en) * 2020-07-20 2022-09-16 青岛易来智能科技股份有限公司 Equipment binding method and device
CN111885144A (en) * 2020-07-20 2020-11-03 青岛易来智能科技股份有限公司 Equipment binding method and device
CN111898383A (en) * 2020-08-15 2020-11-06 广州云智通讯科技有限公司 Intelligent household information processing method and device and readable storage medium
CN112039737B (en) * 2020-08-26 2021-07-20 珠海格力电器股份有限公司 Equipment network distribution method, equipment control method, terminal equipment and equipment control system
CN112039737A (en) * 2020-08-26 2020-12-04 珠海格力电器股份有限公司 Equipment network distribution method, equipment control method, terminal equipment and equipment control system
CN113867160A (en) * 2021-09-07 2021-12-31 杭州博联智能科技股份有限公司 Method and system for device control
CN114422285A (en) * 2022-03-14 2022-04-29 深圳市华曦达科技股份有限公司 Configuration method based on multi-manufacturer fusion scene of intelligent home client
CN114422285B (en) * 2022-03-14 2022-06-14 深圳市华曦达科技股份有限公司 Configuration method based on multi-manufacturer fusion scene of intelligent home client
WO2023173872A3 (en) * 2022-03-14 2023-11-09 深圳市华曦达科技股份有限公司 Configuration method for multi-vendor integrated environment based on smart home client end
CN117014247A (en) * 2023-08-28 2023-11-07 广东金朋科技有限公司 Scene generation method, system and storage medium based on state learning

Also Published As

Publication number Publication date
CN110794693B (en) 2023-09-26

Similar Documents

Publication Publication Date Title
CN110794693A (en) Device configuration method and device, electronic device and storage medium
US10855488B2 (en) Scheduled automation associations for a lighting control system
CN106873551B (en) Linkage method and system among different household appliances
CN109039834B (en) Intelligent household system, configuration method, equipment and machine-readable storage medium
US7219141B2 (en) Method of adding a device to a network
CN109660387B (en) Method and device for managing equipment configuration data, server and storage medium
US6967565B2 (en) Building automation system
CN109829106B (en) Automatic recommendation method and device, electronic equipment and storage medium
CN111970180B (en) Networking configuration method and device for intelligent household equipment, electronic equipment and storage medium
CN103438549B (en) The central air-conditioning centralized control system at graphic based interface and control method
US20150005900A1 (en) Devices and methods of function-based control in automation systems
CN109413515B (en) Equipment control method and device, mobile terminal and server
CN111917591A (en) Intelligent device networking scheme generation method and device and electronic device
CN109407527B (en) Method and device for realizing intelligent equipment recommendation
EP3637694A1 (en) Multi-source smart-home device control
CN105549569A (en) Smart home control method, device and system
WO2000043900A1 (en) Method of adding a device to a network
CN109218085B (en) Equipment automation and scene configuration management method and device and mobile terminal
WO2021153237A1 (en) Device management method, program, power distribution facility, and device management system
US20230161307A1 (en) Configuration and deployment of a building control system
CA2964915A1 (en) Commissioning a configurable user control device for a lighting control system
CN111123718A (en) Storage medium, intelligent panel and power-saving management method thereof
CN111742610A (en) Debugging method and device using controlled joining mode
KR102113185B1 (en) Method and apparatus for controlling home device
AU2022100049A4 (en) A system for configuring a control device of a mesh network of connected devices

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