CN115208757A - Intelligent home configuration method and device, computer equipment and readable storage medium - Google Patents

Intelligent home configuration method and device, computer equipment and readable storage medium Download PDF

Info

Publication number
CN115208757A
CN115208757A CN202210766830.XA CN202210766830A CN115208757A CN 115208757 A CN115208757 A CN 115208757A CN 202210766830 A CN202210766830 A CN 202210766830A CN 115208757 A CN115208757 A CN 115208757A
Authority
CN
China
Prior art keywords
configuration
data
physical
scheme
equipment
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
CN202210766830.XA
Other languages
Chinese (zh)
Other versions
CN115208757B (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.)
Nanchang Huafeiwulian Technology Co ltd
Original Assignee
Nanchang Huafeiwulian 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 Nanchang Huafeiwulian Technology Co ltd filed Critical Nanchang Huafeiwulian Technology Co ltd
Priority to CN202210766830.XA priority Critical patent/CN115208757B/en
Priority claimed from CN202210766830.XA external-priority patent/CN115208757B/en
Publication of CN115208757A publication Critical patent/CN115208757A/en
Application granted granted Critical
Publication of CN115208757B publication Critical patent/CN115208757B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration

Abstract

The invention provides an intelligent home configuration method, an intelligent home configuration device, computer equipment and a readable storage medium, wherein the method comprises the following steps: creating a schema database based on the description information; acquiring a physical device identifier of a physical device to be configured; constructing a mapping relation by using the physical equipment identifier and the configuration scheme; distributing a data receiving and sending rule tag by utilizing the personalized field table and the equipment parameters of the physical equipment to be configured; after the physical equipment to be configured is powered on, determining a data interaction mode according to the data transceiving rule label; and issuing a configuration command to the physical equipment to be configured by using a configuration scheme, a configuration step table and a data interaction mode. According to the invention, automatic grouping, scene building and binding operations can be realized when the intelligent household product leaves a factory or after the product arrives, the functions of automatic configuration and batch configuration for the personalized requirements of users are realized, manual operation of the product one by one is not needed, the time cost of manual operation is saved, and the failure rate is reduced.

Description

Intelligent home configuration method and device, computer equipment and readable storage medium
Technical Field
The invention relates to the field of smart home, in particular to a smart home configuration method and device, computer equipment and a readable storage medium.
Background
The intelligent home is embodied in an internet of things under the influence of the internet of things. The intelligent home is characterized in that various devices (such as audio and video devices, lighting devices, curtain control, air conditioner control, security devices, digital cinema devices, network home appliances, three-meter reading and the like) in the home are connected together through the Internet of things technology, and multiple functions and means such as home appliance control, lighting control, curtain control, telephone remote control, indoor and outdoor remote control, anti-theft alarm, environment monitoring, heating and ventilation control, infrared forwarding, programmable timing control and the like are provided.
At present, when intelligent home products are generated in factories, universal intelligent home equipment is directly generated, personalized customization of users cannot be achieved, if personalized configuration is to be achieved, the products can be manually operated and set one by one only after the users receive goods, or after-sales engineers are contacted to set the products at home, the process not only wastes time and labor, but also operation errors are prone to occurring, operation is complex, the intelligent degree is low, and due to the fact that the intelligent home products are not on-line after being powered on, the intelligent home products cannot perform data interaction with a server, and therefore the reliability of data interaction when the intelligent home is configured is low.
Disclosure of Invention
Based on this, the present invention provides a smart home configuration method, apparatus, computer device and readable storage medium to solve the above-mentioned deficiencies.
In order to achieve the above object, the present invention provides an intelligent home configuration method, including:
creating a corresponding scheme database based on description information provided by a user, wherein the description information at least comprises a configuration scheme and a personalized field table and a configuration step table corresponding to the configuration scheme;
acquiring physical equipment information of physical equipment to be configured, wherein the physical equipment information at least comprises a physical equipment identifier;
constructing a mapping relation by using the physical device identifier and the configuration scheme so as to enable the logic device in the configuration scheme to be associated and matched with the physical device to be configured;
reading the device parameters of the physical device to be configured, and distributing a data transceiving rule tag for the physical device to be configured by using the personalized field table and the device parameters;
after the physical equipment to be configured is powered on, acquiring the data receiving and sending rule label, and determining a data interaction mode of the physical equipment to be configured according to the data receiving and sending rule label;
and issuing a configuration command to the physical equipment to be configured by utilizing the configuration scheme, the configuration step table and the data interaction mode so as to realize the configuration of the physical equipment to be configured.
Further, the method further comprises:
acquiring an account and a password input by a user to verify whether the user logs in successfully;
if the user logs in successfully, a token password is distributed to the account, and the token password has timeliness;
realizing data interaction with the physical equipment to be configured through the token password;
and when the time efficiency of the token password is expired, stopping data interaction with the physical equipment to be configured.
Further, after the step of creating the corresponding solution database based on the description information provided by the user, the method further includes:
establishing a corresponding relation between the data type of the scheme database and the data type in java;
creating a mapping file, and storing the corresponding relation between the data type in the scheme database and the data type in the java in the mapping file;
starting the scheme database through JDBC and establishing database connection;
executing SQL sentences of the scheme database through the database connection to obtain a database table, wherein the database table comprises an equipment table and a relation table, the equipment table is used for storing the logic equipment, and the relation table is used for storing the configuration scheme;
and generating a java object by using the name of the database table according to the hump rule.
Further, the method further comprises:
creating a mapper interface file, and querying the generated java object by a method of writing the mapper interface file into a user-defined way so as to acquire the logic device from the configuration scheme.
Further, the device parameters of the physical device to be configured include configuration data, network occupancy rate, and a current device state, and the step of allocating a data transceiving rule tag to the physical device to be configured by using the personalized field table and the device parameters includes:
calculating the data transceiving grade of the physical equipment to be configured according to the configuration data, the network occupancy rate and the current state of the equipment;
extracting historical personalized field data in the configuration data, and judging whether personalized fields identical to the historical personalized field data exist in the personalized field table or not;
if the personalized field table has the personalized field which is the same as the historical personalized field data, calling a data transceiving rule tag corresponding to the data transceiving grade of the physical device to be configured in a preset data transceiving grade table, and distributing the data transceiving rule tag to the physical device to be configured.
Further, the step of issuing a configuration command to the to-be-configured physical device by using the configuration scheme, the configuration step table, and the data interaction mode includes:
finding a configuration step sub-table corresponding to the physical equipment identifier in the configuration step table, and reading various table headers of the configuration step sub-table;
acquiring a function data table of the physical equipment to be configured, and comparing each table head of the function data table with each table head of the sub-table in the configuration step;
and generating a corresponding configuration command according to the comparison result and the configuration scheme, and issuing the configuration command to the physical equipment to be configured in the data interaction mode.
Further, the method further comprises:
when the configuration of the current configuration physical equipment is changed, obtaining the change content set by a user and the configuration scheme of the current configuration physical equipment, and generating a new configuration scheme according to the change content and the configuration scheme of the current configuration physical equipment;
and issuing a configuration change instruction to the currently configured physical equipment by the new configuration scheme according to the data interaction mode so as to change the configuration of the currently configured physical equipment.
In order to achieve the above object, the present invention further provides an intelligent home configuration device, where the device includes:
the system comprises a first scheme configuration module, a second scheme configuration module and a third scheme configuration module, wherein the first scheme configuration module is used for creating a corresponding scheme database based on description information provided by a user, and the description information at least comprises a configuration scheme and a personalized field table and a configuration step table corresponding to the configuration scheme;
the device acquisition module is used for acquiring physical device information of the physical device to be configured, wherein the physical device information at least comprises a physical device identifier;
the association matching module is used for constructing a mapping relation by using the physical device identifier and the configuration scheme so as to enable the logic device in the configuration scheme to be associated and matched with the physical device to be configured;
the rule distribution module is used for reading the equipment parameters of the physical equipment to be configured and distributing data transceiving rule labels for the physical equipment to be configured by utilizing the personalized field table and the equipment parameters;
the data interaction module is used for acquiring the data receiving and sending rule label after the physical equipment to be configured is powered on, and determining a data interaction mode of the physical equipment to be configured according to the data receiving and sending rule label;
and the configuration module is used for issuing a configuration command to the physical equipment to be configured by utilizing the configuration scheme, the configuration step table and the data interaction mode so as to realize the configuration of the physical equipment to be configured.
Further, the apparatus further comprises:
the verification module is used for acquiring an account and a password input by a user so as to verify whether the user login is successful;
the first allocation module is used for allocating a token password to the account if the user logs in successfully, and the token password has timeliness;
the processing module is used for realizing data interaction with the physical equipment to be configured through the token password;
and the time effectiveness module is used for stopping data interaction with the physical equipment to be configured when the time effectiveness of the token password is expired.
Further, the first scheme configuration module includes:
the first establishing unit is used for establishing the corresponding relation between the data type of the scheme database and the data type in java;
the second establishing unit is used for establishing a mapping file and storing the corresponding relation between the data type in the scheme database and the data type in the java in the mapping file;
a third establishing unit, configured to start the solution database through JDBC, and establish a database connection;
the execution unit is used for executing the SQL statement of the scheme database through the database connection to obtain a database table, wherein the database table comprises an equipment table and a relation table, the equipment table is used for storing the logic equipment, and the relation table is used for storing the configuration scheme;
and the generating unit is used for generating the java object by utilizing the name of the database table according to the hump rule.
Further, the apparatus further comprises:
and the data acquisition module is used for creating a mapper interface file, and inquiring the generated java object by a self-defined method written by the mapper interface file so as to acquire the logic device from the configuration scheme.
Further, the device parameters of the physical device to be configured include configuration data, network occupancy rate, and current device status, and the rule distribution module includes:
the computing unit is used for computing the data transceiving grade of the physical equipment to be configured according to the configuration data, the network occupancy rate and the current state of the equipment;
the judging unit is used for extracting historical personalized field data in the configuration data and judging whether personalized fields identical to the historical personalized field data exist in the personalized field table or not;
and the distribution unit is used for calling a data transceiving rule tag corresponding to the data transceiving grade of the physical device to be distributed in a preset data transceiving grade table if the personalized field which is the same as the historical personalized field data exists in the personalized field table, and distributing the data transceiving rule tag to the physical device to be distributed.
Further, the configuration module includes:
a first header reading unit, configured to find a configuration step sub-table corresponding to the physical device identifier in the configuration step table, and read each header of the configuration step sub-table;
the second header reading unit is used for acquiring a functional data table of the physical device to be configured and comparing each header of the functional data table with each header of the sub-table in the configuration step;
and the configuration unit is used for generating a corresponding configuration command according to the comparison result and the configuration scheme and issuing the configuration command to the physical equipment to be configured in the data interaction mode.
Further, the apparatus further comprises:
the second scheme configuration module is used for acquiring change content set by a user and a configuration scheme of the current configuration physical device when the configuration of the current configuration physical device is changed, and generating a new configuration scheme according to the change content and the configuration scheme of the current configuration physical device;
and the configuration change module is used for issuing a configuration change instruction to the currently configured physical device according to the new configuration scheme in the data interaction mode so as to change the configuration of the currently configured physical device.
In order to achieve the above object, the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the smart home configuration method when executing the computer program.
In order to achieve the above object, the present invention further provides a readable storage medium, where a computer program is stored, where the computer program is executed by a processor to implement the foregoing smart home configuration method.
The invention provides an intelligent home configuration method, an intelligent home configuration device, a computer device and a readable storage medium, wherein a scheme database is constructed through description information provided by a user to obtain a corresponding configuration scheme and a personalized field table and a configuration step table corresponding to the configuration scheme, a physical device identifier of a physical device to be configured is in associated matching with the configuration scheme, and the physical device to be configured is further configured through the configuration scheme, so that automatic grouping, scene building and binding operations can be realized when an intelligent home product leaves a factory or after the product arrives, functions of automatic configuration and batch configuration can be realized for personalized requirements of the user, the products do not need to be manually operated one by one, the time cost of manual operation is saved, and the failure rate is reduced; in addition, a data receiving and sending rule label is distributed for the to-be-distributed physical equipment, and a data interaction mode is determined according to the data receiving and sending rule label, so that the problem that part of intelligent household products cannot perform data interaction with the server after being electrified is solved, and the reliability of data interaction during configuration of the intelligent household products is improved.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
Fig. 1 is a flowchart of a smart home configuration method according to a first embodiment of the present invention;
FIG. 2 is a detailed flowchart of step S104 in FIG. 1;
FIG. 3 is a detailed flowchart of step S106 in FIG. 1;
fig. 4 is a flowchart of another implementation manner of the smart home configuration method according to the first embodiment of the present disclosure;
fig. 5 is a block diagram of a smart home configuration apparatus according to a second embodiment of the present invention;
fig. 6 is a schematic diagram of a hardware structure of a computer according to a third embodiment of the present invention.
The following detailed description will further illustrate the invention in conjunction with the above-described figures.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described and illustrated below with reference to the accompanying drawings and embodiments. 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. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments provided in the present application without any inventive step are within the scope of protection of the present application.
It is obvious that the drawings in the following description are only examples or embodiments of the present application, and that it is also possible for a person skilled in the art to apply the present application to other similar contexts on the basis of these drawings without inventive effort. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is to be expressly and implicitly understood by one of ordinary skill in the art that the embodiments described herein may be combined with other embodiments without conflict.
Unless otherwise defined, technical or scientific terms referred to herein should have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The use of the terms "a" and "an" and "the" and similar referents in the context of describing the invention (including a single reference) are to be construed in a non-limiting sense as indicating either the singular or the plural. The present application is directed to the use of the terms "including," "comprising," "having," and any variations thereof, which are intended to cover non-exclusive inclusions; for example, a process, method, apparatus, article, or apparatus that comprises a list of steps or modules (elements) is not limited to only those steps or elements but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Reference to "connected," "coupled," and the like in this application is not intended to be limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" as used herein means two or more. "and/or" describes the association relationship of the associated object, indicating that there may be three relationships, for example, "a and/or B" may indicate: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. Reference herein to the terms "first," "second," "third," and the like, are merely to distinguish similar objects and do not denote a particular ordering for the objects.
Example one
The first embodiment of the application provides an intelligent home configuration method, which is used for an intelligent home configuration system, wherein the intelligent home configuration system comprises a configuration platform server and an intelligent home cloud platform, the configuration platform server can be one of a cloud server and a local server, the intelligent home products are automatically established, built and bound through the cloud server aiming at places such as families, hotels, warehouses and production workshops, and the intelligent home products are automatically established, built and bound through the local server aiming at transformer substations or other special places.
Referring to fig. 1, a flowchart of a smart home configuration method according to a first embodiment of the present invention is shown, where the method specifically includes steps S101 to S106:
s101, a corresponding scheme database is created based on description information provided by a user, wherein the description information at least comprises a configuration scheme and a personalized field table and a configuration step table corresponding to the configuration scheme;
the method comprises the steps that description information provided by a user is acquired from a client, the client sends the acquired description information to a cloud server, and the description information is analyzed and processed by the cloud server, so that a configuration scheme of the user and a personalized field table and a configuration step table corresponding to the configuration scheme are acquired;
the configuration scheme may be a configuration scheme that a cloud server receives and automatically generates configuration schemes after a user configures an intelligent home environment (a residence, an office place, and the like) according to a comfort level and/or a home use habit of the user in daily life, and the configuration schemes include distribution network information, intelligent home device adjustment information, and the like, for example: the off-duty time of the user is 18 hours, the user likes to close the curtain, adjust the light to the soft light mode, open the dehumidifier, the water heater and the like after returning home, and the cloud server generates a configuration scheme of the user according to the habits of the user and the state of the smart home, such as 'closing the curtain, adjusting the light to the soft light mode, opening the dehumidifier and the water heater' and the like after 18 hours, and stores the configuration scheme in the cloud server. It should be understood that the configuration scheme may also be manually entered by the user and saved to the cloud server.
By way of example and not limitation, in some optional embodiments, the method may further include automatically inputting, by the server of the vendor, the configuration information, which is common in the configuration schemes uploaded by the user when using other smart home devices of the vendor, into the smart home devices purchased by the user when the user purchases the smart home devices of the same vendor.
The personalized field table includes personalized configuration data of each smart home in the configuration scheme of the user, for example: in this configuration, the personalized field table of the window shade is a state identifier, a time identifier and a corresponding personalized configuration code field under the time identifier and the state identifier, and the following is a partial example of the personalized field table of the window shade:
curtain (window) #C 7:00 12:00 15:00 18:00 22:00
All close #C-C1 #C-C1-1 #C-C1-2 #C-C1-3 #C-C1-4 #C-C1-5
Close left side #C-C2 #C-C2-1 #C-C2-2 #C-C2-3 #C-C2-4 #C-C2-5
Close right side #C-C3 #C-C3-1 #C-C3-2 #C-C3-3 #C-C3-4 #C-C3-5
All open #C-O1 #C-O1-1 #C-O1-2 #C-O1-3 #C-O1-4 #C-O1-5
Open left side #C-O2 #C-O2-1 #C-O2-2 #C-O2-3 #C-O2-4 #C-O2-5
Open right side #C-O3 #C-O3-1 #C-O3-2 #C-O3-3 #C-O3-4 #C-O3-5
As can be seen from the above table, in the above configuration scheme, there is a piece of configuration information "at 18, the window shades are all closed", the logical devices thereof are identified as window shades (# C), the status is identified as all closed (-C1), and the time is identified as 18 (-4), so that the personalized configuration code field for closing the window shades at 18 is # C-C1-4. By way of example and not limitation, it is understood that the foregoing personalized field table is only for curtain-type smart home devices, and the personalized field table in the foregoing configuration scheme is obtained by combining the personalized field tables of all smart home devices in the configuration scheme.
The configuration step table is functions of each smart home device in the configuration scheme, for example: in the configuration scheme, the curtains need to be completely closed at 18 time, and the configuration steps are expressed as a distribution network function, a communication function, a closing function and the like.
S102, acquiring physical device information of a physical device to be configured, wherein the physical device information at least comprises a physical device identifier;
in specific implementation, when new physical equipment needs to be configured, acquiring physical equipment information of the physical equipment to be configured, where the physical equipment information includes a physical equipment identifier, it can be understood that when a user purchases the new physical equipment and needs to configure the new physical equipment, the physical equipment information of the new physical equipment is acquired, in this embodiment, a corresponding physical equipment identifier is acquired by scanning a two-dimensional code of the physical equipment, and the physical equipment identifier is a type of the physical equipment;
it should be understood that, by way of example and not limitation, in other alternative embodiments, the corresponding physical device identification can also be obtained by way of manual input by the user.
S103, constructing a mapping relation by using the physical device identifier and the configuration scheme so as to enable the logic device in the configuration scheme to be associated and matched with the physical device to be configured;
in this embodiment, a manner of a logical device database and a physical device database is adopted, wherein each logical device in the logical device database is allocated with corresponding logical device information, the logical device information includes a unique identity, and the logical device information may be embodied in specifications of a color, a size, a type, an appearance, and the like of the corresponding logical device.
It should be noted that the physical device database stores different physical device identifiers, such as: MAC address, serial number, SN code, model number, software version or lot number, etc.
The mapping relation is built between the physical equipment identifier and the configuration scheme through an association tool of the physical equipment identifier, so that the logical equipment in the configuration scheme is associated and matched with the physical equipment to be configured corresponding to the physical equipment identifier, the association tool of the physical equipment identifier is a software information operation tool, for example, an ERP device management service, the physical equipment identifier of the physical equipment to be configured can be obtained through code scanning, the physical equipment refers to an intelligent household product, and the physical equipment identifier comprises information such as unique equipment ID and MAC address, serial number, SN code, software version or batch number. The association matching is completed by a TCP/IP communication protocol and a Zigbee module, and particularly, an application technology Profiles in the Zigbee module is adopted, wherein the technology is a request for allowing an application program to send a command, request data and process the command.
Specifically, the physical devices to be configured are smart home products, such as smart curtains, smart air conditioners, smart switches, smart headlights and the like, the association tool of the physical device identifier may acquire the identity identifier of the corresponding logical device from the logical device information, and then provide a recommendation prompt for the physical devices to be configured according to the identity identifier, so that a worker can accurately pick out the physical devices to be configured, which are mapped with the logical device having the identity identifier, and enter the physical device identifier of the physical device to be configured into the association tool of the physical device identifier in a code scanning manner, thereby implementing association between the logical device information and the physical device information, and generating a mapping relationship between the logical device and the physical devices to be configured.
S104, reading the equipment parameters of the physical equipment to be configured, and distributing data transceiving rule tags for the physical equipment to be configured by using the personalized field table and the equipment parameters;
further, the device parameters of the physical device to be configured include configuration data, network occupancy rate, and current state of the device, as shown in fig. 2, the step S104 specifically includes steps S1041 to S1043:
s1041, calculating the data receiving and sending grade of the physical device to be configured according to the configuration data, the network occupancy rate and the current state of the device;
s1042, extracting historical personalized field data in the configuration data, and judging whether personalized fields identical to the historical personalized field data exist in the personalized field table or not;
and S1043, if the personalized field table has the personalized field same as the historical personalized field data, calling a data transceiving rule tag corresponding to the data transceiving grade of the physical device to be configured in a preset data transceiving grade table, and allocating the data transceiving rule tag to the physical device to be configured.
In specific implementation, configuration data, a network occupancy rate and a current device state of a physical device to be configured are obtained, where the configuration data are historical personalized field data of the physical device to be configured and historical configuration times of the physical device to be configured within a preset time (in this embodiment, 30 days are selected), and the network occupancy rate is an occupation range of the physical device to be configured on a current network after the distribution of the network is completed; the current state of the device is an operating state of the physical device to be configured, and generally includes a high performance state, a balance state and a low performance state.
Respectively calculating a configuration coefficient of the historical configuration times (1232nd) and a state coefficient of the current state of the equipment, and calculating a data receiving and sending grade of the physical equipment to be configured by using the configuration coefficient (1232nd), the network occupancy rate (2022nd) and the state coefficient (T):
the method comprises the following steps of constructing a mapping data table between the historical configuration times and the configuration coefficients of the physical equipment in advance, and directly obtaining the configuration coefficients of the physical equipment to be configured in a table look-up mode according to the historical configuration times of the physical equipment to be configured during specific implementation, wherein the mapping data table comprises the historical configuration times and the configuration coefficients of the intelligent curtain as an example in the following mode:
Figure RE-407798DEST_PATH_IMAGE001
by way of example and not limitation, it can be understood that in the mapping data table of the intelligent window shade, when the historical configuration times of the intelligent window shade is less than or equal to 15 times in 30 days, it means that the intelligent window shade is not frequently used, and the configuration coefficient of the intelligent window shade is 0.7; when the historical configuration times of the intelligent curtain is more than 15 and less than 60 times in 30 days, the intelligent curtain is normal in use, and the configuration coefficient of the intelligent curtain is 1.0, and when the historical configuration times of the intelligent curtain is more than or equal to 60 times in 30 days, the intelligent curtain is frequently in use, and the configuration coefficient of the intelligent curtain is 1.2.
Further, after networking, a physical device may occupy the network occupancy of the current network, and the network occupancy may appear in a rising state along with the use of the physical device, in this embodiment, the operation state of the physical device is determined according to the occupancy of the physical device in the network associated with the physical device, the bandwidth of the network and the total read-write data of the physical device in the networking state are obtained in advance, and the network occupancy of the physical device may be obtained by comparing the total read-write data with the bandwidth of the network, taking the intelligent curtain as an example:
in specific implementation, the total read data and the total write data of the intelligent curtain in each day in a preset time (in this embodiment, 30 days are selected) are obtained from the historical data of the intelligent curtain, and the sum of the absolute values of the total read data and the total write data in each day is converted into the same value as the measurement unit of the bandwidth of the network, for example: the total read data and the total write data of the intelligent curtain in 5 months and 6 days are 50KB/s and 500 KB/s, and the bandwidth of the network is 100Mb/s, the sum of the absolute values of the total read data and the total write data needs to be converted into the same unit, namely [ (50 + 500) × 8 ]/1024=4400/1024= 4.296 Mb/s; the data of 30 days are repeatedly acquired, the corresponding numerical values are calculated according to the same mode, the average value of the 30 numerical values is calculated, and the average value is compared with the bandwidth of the network, so that the network occupancy of the intelligent curtain can be obtained (assuming that the 4.296 Mb/s is the average value, 4.296/100 =4%, namely the network occupancy of the intelligent curtain is 4%).
Specifically, in this embodiment, a mapping data table among the device states, the state coefficients, and the configuration coefficients of the physical devices is pre-constructed, and in the specific implementation, the state coefficients of the physical devices to be configured are directly obtained in a table look-up manner according to the current device states and the configuration coefficients of the physical devices to be configured, taking an intelligent curtain as an example, the following mapping data table is used for the device states and the state coefficients of the intelligent curtain:
Figure RE-515432DEST_PATH_IMAGE002
by way of example and not limitation, it can be understood that in the mapping data table, when the configuration coefficient of the smart window shade is 1.2, it means that the current device state of the smart window shade is a high performance state, all functions of the smart window shade (e.g., voice recognition, remote control, and smart switch) are turned on, and the state coefficient is 1.0; when the configuration coefficient of the intelligent curtain is 1.0, the current state of the equipment of the intelligent curtain is a balanced state, which means that all functional parts of the intelligent curtain are opened, and the state coefficient is 0.6; when the configuration coefficient of the intelligent curtain is 0.7, the current state of the equipment of the intelligent curtain is in a low performance state, which means that the intelligent curtain is in an off-line state, and the state coefficient of the intelligent curtain is 0.1.
Further, the data receiving and sending grade of the intelligent curtain is calculated according to the configuration coefficient, the network occupancy rate and the state coefficient of the intelligent curtain:
taking an intelligent curtain as an example, the following is an example of a data transceiving grade table of the intelligent curtain in this embodiment:
Figure RE-645062DEST_PATH_IMAGE003
by way of example and not limitation, it can be understood that when the configuration coefficient of the intelligent curtain is 0.7, the state coefficient is 0.1, and the network occupancy rate is between 0.1% and 40%, the data transceiving level of the intelligent curtain is level 1.
Further, historical personalized field data in the configuration data of the physical device to be configured is extracted, assuming that the historical personalized field data in the configuration data is # C-C1-1, whether a personalized field identical to the historical personalized field data # C-C1-1 exists in the personalized field table in the step S101 is searched, if the personalized field identical to the historical personalized field data # C-C1-1 exists in the personalized field table, it means that the physical device to be configured exists in the configuration scheme, a data transceiving rule tag corresponding to the data transceiving level of the physical device to be configured is called according to a preset data transceiving level table, and the data transceiving rule tag is allocated to the physical device to be configured.
The data receiving and sending rule tags are artificially predefined and comprise a plurality of data receiving and sending rule tags, and each data receiving and sending rule tag defines a data interaction mode.
It should be noted that, in this embodiment, the data transceiving rule tag is allocated according to the data transceiving level, for example: the method comprises the steps that the same data receiving and sending rule tags are distributed for all to-be-configured physical devices with data receiving and sending levels of 1 level, and the tags respectively define a data interaction mode corresponding to the device types of the to-be-configured physical devices, and by taking an intelligent curtain as an example, when the data receiving and sending levels of the intelligent curtain are 1 level, only curtain opening and closing data sent by a cloud server are received; and when the receiving and sending grade of the intelligent curtain is level 2, receiving curtain configuration data and the like sent by the cloud server.
S105, after the physical equipment to be configured is powered on, acquiring the data receiving and sending rule label, and determining a data interaction mode of the physical equipment to be configured according to the data receiving and sending rule label;
when the physical device to be configured communicates with the cloud server, the cloud server may recognize the data receiving rule tag corresponding to the physical device to be configured, so as to determine a data interaction manner between the physical device to be configured and the cloud server.
And S106, issuing a configuration command to the physical equipment to be configured by using the configuration scheme, the configuration step table and the data interaction mode so as to realize the configuration of the physical equipment to be configured.
Further, referring to fig. 3, the step S106 specifically includes steps S1061 to S1063:
s1061, finding out a configuration step sub-table corresponding to the physical device identifier in the configuration step table, and reading various table headers of the configuration step sub-table;
s1062, acquiring a function data table of the physical device to be configured, and comparing each table head of the function data table with each table head of the sub-table in the configuring step;
and S1063, generating a corresponding configuration command according to the comparison result and the configuration scheme, and issuing the configuration command to the physical equipment to be configured in the data interaction manner.
In specific implementation, obtaining a configuration step sub-table corresponding to the physical device identifier of the physical device to be configured in the configuration step table, and reading each table header of the configuration step sub-table; and acquiring a functional data table of the to-be-allocated physical equipment, comparing each table head of the functional data table with each table head of the configuration step sub-table, if the table heads of the functional data table have the same table head as each table head of the configuration step sub-table, indicating that the to-be-allocated physical equipment has the equipment function corresponding to the same table head, generating a corresponding configuration command according to the equipment function of the to-be-allocated physical equipment and the configuration scheme, and issuing the configuration command to the to-be-allocated physical equipment in the data interaction mode.
In some of these embodiments, the method further comprises:
acquiring an account and a password input by a user to verify whether the user logs in successfully;
if the user successfully logs in, a token password is distributed to the account, and the token password has timeliness;
realizing data interaction with the physical equipment to be configured through the token password;
and when the time efficiency of the token password is expired, stopping data interaction with the physical equipment to be configured.
Before the cloud server performs data interaction with the to-be-configured physical device, a user is required to log in the cloud server through an account and a password, after the login is successful, the cloud server can distribute a corresponding token password, it needs to be explained that all services (including control commands, data interaction and the like) of a subsequent user are achieved through the token password, the token password has a certain time limit, and the token password after the period is not valid any more, so that the security of the data interaction is ensured.
In some optional embodiments, after the step of creating the corresponding schema database based on the description information provided by the user, the method further comprises:
establishing a corresponding relation between the data type of the scheme database and the data type in java;
the schema database is a mysql database, the data types in the schema database and the java data types are different, but a one-to-one corresponding relation exists between the schema database and the java data types, so that a mapping file can be created in advance to store the relation, and therefore when the java object attribute is created, the corresponding java type can be quickly found according to the database type.
Creating a mapping file, and storing the corresponding relation between the data type in the scheme database and the data type in the java in the mapping file;
the mapping file is stored in a java object file form, the suffix of the file is java, the data structure used for storage is a Map-type Key-Value structure, the data type in the scheme database is used as the stored Key, and the java data type is used as the Value.
Starting the scheme database through JDBC and establishing database connection;
the JDBC is Java Database connection (Java Database connection), the operation Database is started through the JDBC, and the Database connection is established, specifically, a driver of the mysql Database is loaded in the Java program, and a Database connection object connection is created through a driver manager class in the JDBC, where the driver manager class acts between the Java program and the JDBC driver and is used to check whether the loaded driver can establish a connection.
Executing SQL sentences of the scheme database through the database connection to obtain a database table, wherein the database table comprises an equipment table and a relation table, the equipment table is used for storing the logic equipment, and the relation table is used for storing the configuration scheme;
the database connection is the connection created in the above, and the connection is used as an abstract representation of connection in JDBC, and is used to connect (session) with a specific database, and can execute SQL statements and return results in the connection context, and as can be understood, the database connection connects java with mysql database, and can execute SQL statements in mysql database to obtain the database table.
It should be noted that the logical devices in the device table are associated with the corresponding configuration schemes in the relationship table through the same primary key.
And generating a java object by using the name of the database table according to the hump rule.
In this embodiment, the column name generates an attribute of the java object, the annotation information generates annotation information of the attribute in the java object, it needs to be noted that the column name is a name of a logical device, the annotation information is user description information corresponding to the logical device, and the primary key is an identity corresponding to the logical device.
It should be noted that the device table and the relationship table may also have corresponding table names, column names, and annotation information and primary keys corresponding to the columns.
It can be understood that the java objects are generated by mapping the table structures in the schema database, so that the problem that the schema database only has basic field mapping, the object data and the actual relationship of the objects still need to be managed by writing SQL statements by hand, which causes a large amount of mechanical labor for re-reading for a programmer is solved, and the programmer can improve the development efficiency through a customized program.
In some optional embodiments, the method further comprises:
creating a mapper interface file, and writing a custom method through the mapper interface file to query the generated java object so as to obtain the logic device from the configuration scheme.
The method for writing the self-definition through the mapper interface file specifically comprises the steps of creating an XML configuration file according to the mapper interface file, wherein the XML configuration file comprises SQL sentences used for operating database query, and the XML configuration file can be understood to be used by matching with the mapper interface file in the previous step, the SQL sentences used for operating database query specifically are defined in the XML configuration file, and the SQL sentences in the XML configuration file can be modified at will according to the requirement of the XML configuration file, so that the method is very convenient.
It should be noted that the required mapper interface file is created by using a technology, and then the mapper interface file is directly copied to a place required to be used, so that creation by using a handwriting mode is not required, the generation process of the interface file required by mybatis is simplified, time and labor are saved, development efficiency is improved to a certain extent, and meanwhile, a method required by the user can be added very conveniently.
Referring to fig. 4, in some optional embodiments, the method further includes steps S201 to S202:
s201, when the configuration of the current configuration physical equipment is changed, obtaining the change content set by a user and the configuration scheme of the current configuration physical equipment, and generating a new configuration scheme according to the change content and the configuration scheme of the current configuration physical equipment;
s202, issuing a configuration change instruction to the currently configured physical device by the new configuration scheme according to the data interaction mode, so that the currently configured physical device performs configuration change.
In the implementation, if a user temporarily needs to add a certain product or later thinks of adding a device, only the configuration scheme of the device needs to be filled with the changed contents, such as: the content of description in the living room column is as follows: the number of the down lamps is reduced from 6 to 4, and an air conditioner is added on the basis of the original equipment; the bedroom column contents are changed into: the bedside lamp does not need to be reserved by other devices, and it can be understood that the change content can be filled in through forms other than texts, such as photographing, drawing, form, voice description or other specific tools, and after the user completes filling, the filled-in description information and the configuration scheme of the corresponding physical device are integrated to form a new configuration scheme, and the new configuration scheme is sent to the cloud server.
The cloud server automatically analyzes the new configuration scheme according to the steps S101 to S106 to generate a corresponding configuration change instruction, so that the currently configured physical device is configured to change.
In summary, in the intelligent home configuration method in the embodiment of the present invention, the description information provided by the user is used to construct the scheme database to obtain the corresponding configuration scheme and the personalized field table and the configuration step table corresponding to the configuration scheme, and the physical device identifier of the physical device to be configured is associated and matched with the configuration scheme, so as to configure the physical device to be configured according to the configuration scheme, thereby achieving automatic grouping, scenario building and binding operations when the intelligent home product leaves a factory or arrives, achieving the functions of automatic configuration and batch configuration for the personalized requirements of the user, and eliminating the need to manually operate the product one by one, thereby saving the time cost of manual operation and reducing the failure rate; in addition, a data receiving and sending rule label is distributed for the to-be-configured physical device, and a data interaction mode is determined according to the data receiving and sending rule label, so that the problem that part of intelligent household products cannot perform data interaction with the server after being powered on is solved, and the reliability of data interaction during configuration of the intelligent household products is improved.
It should be noted that the steps illustrated in the above-described flow diagrams or in the flow diagrams of the figures may be performed in a computer device such as a set of computer-executable instructions, and that while a logical order is illustrated in the flow diagrams, in some cases the steps illustrated or described may be performed in an order different than here.
Example two
A second embodiment of the present invention further provides an intelligent home configuration apparatus, which is used to implement the first embodiment and the preferred embodiment, and is not described again after being described. As used hereinafter, the terms "module," "unit," "subunit," and the like may implement a combination of software and/or hardware for a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 5 is a block diagram of a smart home configuration apparatus according to a second embodiment of the present invention, where the apparatus includes:
a first scheme configuration module 11, configured to create a corresponding scheme database based on description information provided by a user, where the description information at least includes a configuration scheme and a personalized field table and a configuration step table corresponding to the configuration scheme;
further, the first scheme configuration module 11 includes:
the first establishing unit is used for establishing the corresponding relation between the data type of the scheme database and the data type in java;
the second establishing unit is used for establishing a mapping file and storing the corresponding relation between the data type in the scheme database and the data type in the java in the mapping file;
a third establishing unit, configured to start the solution database through JDBC, and establish a database connection;
the execution unit is used for executing SQL sentences of the scheme database through the database connection so as to acquire a database table, wherein the database table comprises an equipment table and a relation table, the equipment table is used for storing the logic equipment, and the relation table is used for storing the configuration scheme;
and the generating unit is used for generating the java object by using the name of the database table according to the hump rule.
The device obtaining module 12 is configured to obtain physical device information of a physical device to be configured, where the physical device information at least includes a physical device identifier;
an association matching module 13, configured to construct a mapping relationship between the physical device identifier and the configuration scheme, so as to perform association matching between the logical device in the configuration scheme and the physical device to be configured;
a rule allocating module 14, configured to read the device parameter of the physical device to be configured, and allocate a data transceiving rule tag to the physical device to be configured by using the personalized field table and the device parameter;
further, the device parameters of the physical device to be configured include configuration data, network occupancy, and current state of the device, and the rule allocating module 14 includes:
the computing unit is used for computing the data transceiving grade of the physical equipment to be configured according to the configuration data, the network occupancy rate and the current equipment state;
the judging unit is used for extracting historical personalized field data in the configuration data and judging whether personalized fields identical to the historical personalized field data exist in the personalized field table or not;
and the distribution unit is used for calling a data transceiving rule tag corresponding to the data transceiving grade of the physical device to be distributed in a preset data transceiving grade table if the personalized field which is the same as the historical personalized field data exists in the personalized field table, and distributing the data transceiving rule tag to the physical device to be distributed.
The data interaction module 15 is configured to, after the physical device to be configured is powered on, obtain the data transceiving rule tag, and determine a data interaction mode of the physical device to be configured according to the data transceiving rule tag;
the configuration module 16 is configured to issue a configuration command to the physical device to be configured by using the configuration scheme, the configuration step table, and the data interaction manner, so as to implement configuration of the physical device to be configured.
Further, the configuration module 16 includes:
a first header reading unit, configured to find a configuration step sub-table corresponding to the physical device identifier in the configuration step table, and read each header of the configuration step sub-table;
the second header reading unit is used for acquiring a functional data table of the physical device to be configured and comparing each header of the functional data table with each header of the sub-table in the configuration step;
and the configuration unit is used for generating a corresponding configuration command according to the comparison result and the configuration scheme and issuing the configuration command to the physical equipment to be configured in the data interaction mode.
In some optional embodiments, the apparatus further comprises:
the verification module is used for acquiring an account and a password input by a user so as to verify whether the user login is successful;
the first distribution module is used for distributing a token password for the account if the user successfully logs in, and the token password has timeliness;
the processing module realizes data interaction with the physical equipment to be configured through the token password;
and the time efficiency module is used for stopping data interaction with the physical equipment to be configured when the time efficiency of the token password is expired.
In some optional embodiments, the apparatus further comprises:
and the data acquisition module is used for creating a mapper interface file, and inquiring the generated java object by a self-defined method written by the mapper interface file so as to acquire the logic equipment from the configuration scheme.
In some optional embodiments, the apparatus further comprises:
the second scheme configuration module is used for acquiring change content set by a user and a configuration scheme of the current configuration physical device when the configuration of the current configuration physical device is changed, and generating a new configuration scheme according to the change content and the configuration scheme of the current configuration physical device;
and the configuration change module is used for issuing a configuration change instruction to the currently configured physical device according to the new configuration scheme in the data interaction mode so as to change the configuration of the currently configured physical device.
The functions or operation steps of the modules and units when executed are substantially the same as those of the method embodiments, and are not described herein again.
The implementation principle and the generated technical effect of the face key attribute recognition system provided by the embodiment of the invention are the same as those of the method embodiment, and for brief description, corresponding contents in the method embodiment can be referred to where the device embodiment is not mentioned.
EXAMPLE III
Referring to fig. 6, the method for configuring an intelligent home in the first embodiment of the present application may be implemented by a computer device. Fig. 6 is a hardware structure diagram of a computer device according to an embodiment of the present application.
The computer device may comprise a processor 51 and a memory 52 in which computer program instructions are stored.
Specifically, the processor 51 may include a Central Processing Unit (CPU), or A Specific Integrated Circuit (ASIC), or may be configured to implement one or more Integrated circuits of the embodiments of the present Application.
Memory 52 may include, among other things, mass storage for data or instructions. By way of example, and not limitation, memory 52 may include a Hard Disk Drive (Hard Disk Drive, abbreviated to HDD), a floppy Disk Drive, a Solid State Drive (SSD), flash memory, an optical Disk, a magneto-optical Disk, magnetic tape, or a Universal Serial Bus (USB) Drive or a combination of two or more of these. Memory 52 may include removable or non-removable (or fixed) media, where appropriate. The memory 52 may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory 52 is a Non-Volatile (Non-Volatile) memory. In particular embodiments, memory 52 includes Read-Only Memory (ROM) and Random Access Memory (RAM). Where appropriate, the ROM may be mask-programmed ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically Erasable PROM (EEPROM), electrically Alterable ROM (EAROM), or FLASH Memory (FLASH), or a combination of two or more of these. The RAM may be a Static Random-Access Memory (SRAM) or a Dynamic Random-Access Memory (DRAM), where the DRAM may be a Fast Page Mode Dynamic Random-Access Memory (FPMDRAM), an Extended data output Dynamic Random-Access Memory (EDODRAM), a Synchronous Dynamic Random-Access Memory (SDRAM), and the like.
The memory 52 may be used to store or cache various data files that need to be processed and/or used for communication, as well as possible computer program instructions executed by the processor 51.
The processor 51 reads and executes the computer program instructions stored in the memory 52 to implement any one of the smart home configuration methods in the above embodiments.
In some of these embodiments, the computer device may also include a communication interface 53 and a bus 50. As shown in fig. 6, the processor 51, the memory 52, and the communication interface 53 are connected via the bus 50 to complete mutual communication.
The communication interface 53 is used for implementing communication between modules, apparatuses, units and/or devices in the embodiments of the present application. The communication interface 53 may also enable communication with other components such as: the data communication is carried out among external equipment, image/data acquisition equipment, a database, external storage, an image/data processing workstation and the like.
Bus 50 includes hardware, software, or both coupling the components of the computer device to each other. Bus 50 includes, but is not limited to, at least one of the following: data Bus (Data Bus), address Bus (Address Bus), control Bus (Control Bus), expansion Bus (Expansion Bus), and Local Bus (Local Bus). By way of example and not limitation, bus 50 may include an Accelerated Graphics Port (AGP) or other Graphics Bus, an Enhanced Industry Standard Architecture (EISA) Bus, a Front-Side Bus (FSB), a Hyper Transport (HT) Interconnect, an ISA (ISA) Bus, an InfiniBand (InfiniBand) Interconnect, a Low Pin Count (LPC) Bus, a memory Bus, a microchannel Architecture (MCA) Bus, a PCI (Peripheral Component Interconnect) Bus, a PCI-Express (PCI-X) Bus, a Serial Advanced Technology Attachment (SATA) Bus, a vlslave Bus, a Video Bus, or a combination of two or more of these suitable electronic buses. Bus 50 may include one or more buses, where appropriate. Although specific buses are described and shown in the embodiments of the application, any suitable buses or interconnects are contemplated by the application.
In addition, in combination with the smart home configuration method in the foregoing embodiment, the embodiment of the present application may provide a readable storage medium to implement. The readable storage medium having stored thereon computer program instructions; when executed by a processor, the computer program instructions implement any one of the smart home configuration methods in the above embodiments.
All possible combinations of the technical features of the above embodiments may not be described for the sake of brevity, but should be considered as within the scope of the present disclosure as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A smart home configuration method is characterized by comprising the following steps:
creating a corresponding scheme database based on description information provided by a user, wherein the description information at least comprises a configuration scheme and a personalized field table and a configuration step table corresponding to the configuration scheme;
acquiring physical equipment information of physical equipment to be configured, wherein the physical equipment information at least comprises a physical equipment identifier;
constructing a mapping relation by using the physical device identifier and the configuration scheme so as to enable the logic device in the configuration scheme to be associated and matched with the physical device to be configured;
reading the device parameters of the physical device to be configured, and distributing a data transceiving rule tag for the physical device to be configured by using the personalized field table and the device parameters;
after the physical equipment to be configured is powered on, acquiring the data receiving and sending rule label, and determining a data interaction mode of the physical equipment to be configured according to the data receiving and sending rule label;
and issuing a configuration command to the physical equipment to be configured by utilizing the configuration scheme, the configuration step table and the data interaction mode so as to realize the configuration of the physical equipment to be configured.
2. The smart home configuration method according to claim 1, further comprising:
acquiring an account and a password input by a user to verify whether the user login is successful;
if the user successfully logs in, a token password is distributed to the account, and the token password has timeliness;
realizing data interaction with the physical equipment to be configured through the token password;
and when the time efficiency of the token password is expired, stopping data interaction with the physical equipment to be configured.
3. The smart home configuration method according to claim 2, wherein after the step of creating the corresponding recipe database based on the description information provided by the user, the method further comprises:
establishing a corresponding relation between the data type of the scheme database and the data type in java;
creating a mapping file, and storing the corresponding relation between the data type in the scheme database and the data type in the java in the mapping file;
starting the scheme database through JDBC and establishing database connection;
executing SQL sentences of the scheme database through the database connection to acquire a database table, wherein the database table comprises an equipment table and a relational table, the equipment table is used for storing the logic equipment, and the relational table is used for storing the configuration scheme;
and generating a java object by using the name of the database table according to the hump rule.
4. The smart home configuration method according to claim 3, further comprising:
creating a mapper interface file, and writing a custom method through the mapper interface file to query the generated java object so as to obtain the logic device from the configuration scheme.
5. The smart home configuration method according to claim 1, wherein the device parameters of the physical device to be configured include configuration data, network occupancy rate, and current device state, and the step of allocating the data transceiving rule tag to the physical device to be configured by using the personalized field table and the device parameters includes:
calculating the data transceiving grade of the physical equipment to be configured according to the configuration data, the network occupancy rate and the current state of the equipment;
extracting historical personalized field data in the configuration data, and judging whether personalized fields identical to the historical personalized field data exist in the personalized field table or not;
if the personalized field table has the personalized field which is the same as the historical personalized field data, calling a data transceiving rule tag corresponding to the data transceiving grade of the physical device to be configured in a preset data transceiving grade table, and distributing the data transceiving rule tag to the physical device to be configured.
6. The smart home configuration method according to claim 1, wherein the step of issuing the configuration command to the physical device to be configured by using the configuration scheme, the configuration step table, and the data interaction manner includes:
finding a configuration step sub-table corresponding to the physical equipment identifier in the configuration step table, and reading various table headers of the configuration step sub-table;
acquiring a function data table of the physical equipment to be configured, and comparing each table head of the function data table with each table head of the sub-table in the configuration step;
and generating a corresponding configuration command according to the comparison result and the configuration scheme, and issuing the configuration command to the physical equipment to be configured in the data interaction mode.
7. The smart home configuration method according to claim 1, further comprising:
when the configuration of the current configuration physical equipment is changed, obtaining the change content set by a user and the configuration scheme of the current configuration physical equipment, and generating a new configuration scheme according to the change content and the configuration scheme of the current configuration physical equipment;
and issuing a configuration change instruction to the currently configured physical equipment by the new configuration scheme according to the data interaction mode so as to change the configuration of the currently configured physical equipment.
8. The utility model provides a smart home configuration device which characterized in that, the device includes:
the system comprises a first scheme configuration module, a second scheme configuration module and a third scheme configuration module, wherein the first scheme configuration module is used for creating a corresponding scheme database based on description information provided by a user, and the description information at least comprises a configuration scheme and a personalized field table and a configuration step table corresponding to the configuration scheme;
the device acquisition module is used for acquiring physical device information of the physical device to be configured, wherein the physical device information at least comprises a physical device identifier;
the association matching module is used for constructing a mapping relation by using the physical device identifier and the configuration scheme so as to enable the logic device in the configuration scheme to be associated and matched with the physical device to be configured;
the rule distribution module is used for reading the equipment parameters of the physical equipment to be configured and distributing data transceiving rule tags for the physical equipment to be configured by utilizing the personalized field table and the equipment parameters;
the data interaction module is used for acquiring the data receiving and sending rule label after the physical equipment to be configured is powered on, and determining a data interaction mode of the physical equipment to be configured according to the data receiving and sending rule label;
and the configuration module is used for issuing a configuration command to the physical equipment to be configured by utilizing the configuration scheme, the configuration step table and the data interaction mode so as to realize the configuration of the physical equipment to be configured.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the smart home configuration method according to any one of claims 1 to 7 when executing the computer program.
10. A readable storage medium storing a computer program, wherein the computer program is executed by a processor to implement the smart home configuration method according to any one of claims 1 to 7.
CN202210766830.XA 2022-07-01 Smart home configuration method and device, computer equipment and readable storage medium Active CN115208757B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210766830.XA CN115208757B (en) 2022-07-01 Smart home configuration method and device, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210766830.XA CN115208757B (en) 2022-07-01 Smart home configuration method and device, computer equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN115208757A true CN115208757A (en) 2022-10-18
CN115208757B CN115208757B (en) 2024-05-03

Family

ID=

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116339882A (en) * 2022-11-07 2023-06-27 广东星神科技有限公司 Office system collaborative display method, device, equipment and medium based on Internet of things
CN117077252A (en) * 2023-07-25 2023-11-17 南昌华飞物联技术有限公司 Intelligent home field investigation and scheme design system and method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103580958A (en) * 2013-11-08 2014-02-12 国家电网公司 Self-adaptation grading method for service grades of routers of electric power communication network
US20180139090A1 (en) * 2016-11-15 2018-05-17 John Geiger Method for secure enrollment of devices in the industrial internet of things
CN111314108A (en) * 2019-12-31 2020-06-19 远景智能国际私人投资有限公司 Data transmission method, device, equipment, storage medium and front-end system
CN111638651A (en) * 2020-06-02 2020-09-08 深圳市欧瑞博科技股份有限公司 Intelligent household control panel, setting method thereof, server and storage medium
CN111970180A (en) * 2020-08-11 2020-11-20 深圳市欧瑞博科技股份有限公司 Networking configuration method and device for intelligent household equipment, electronic equipment and storage medium
US20220174757A1 (en) * 2020-12-02 2022-06-02 Oracle International Corporation Methods, systems, and computer readable media for providing a unified interface configured to support infrequent data communications via a network exposure function

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103580958A (en) * 2013-11-08 2014-02-12 国家电网公司 Self-adaptation grading method for service grades of routers of electric power communication network
US20180139090A1 (en) * 2016-11-15 2018-05-17 John Geiger Method for secure enrollment of devices in the industrial internet of things
CN111314108A (en) * 2019-12-31 2020-06-19 远景智能国际私人投资有限公司 Data transmission method, device, equipment, storage medium and front-end system
CN111638651A (en) * 2020-06-02 2020-09-08 深圳市欧瑞博科技股份有限公司 Intelligent household control panel, setting method thereof, server and storage medium
CN111970180A (en) * 2020-08-11 2020-11-20 深圳市欧瑞博科技股份有限公司 Networking configuration method and device for intelligent household equipment, electronic equipment and storage medium
US20220174757A1 (en) * 2020-12-02 2022-06-02 Oracle International Corporation Methods, systems, and computer readable media for providing a unified interface configured to support infrequent data communications via a network exposure function

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
PENG LI,ZIXUAN WANG,HAITAO LIU,JIAHAO WANG: "Bi-level Optimal Configuration Strategy of Community Integrated Energy System with Coordinated Planning and Operation", Retrieved from the Internet <URL:https://www.researchgate.net/publication/353441837_Bi-level_Optimal_Configuration_Strategy_of_Community_Integrated_Energy_System_with_Coordinated_Planning_and_Operation> *
苏神保;: "常见智能硬件无线网络配置方案研究", 智能计算机与应用, no. 06, 26 December 2017 (2017-12-26) *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116339882A (en) * 2022-11-07 2023-06-27 广东星神科技有限公司 Office system collaborative display method, device, equipment and medium based on Internet of things
CN116339882B (en) * 2022-11-07 2024-02-09 广东星神科技有限公司 Office system collaborative display method, device, equipment and medium based on Internet of things
CN117077252A (en) * 2023-07-25 2023-11-17 南昌华飞物联技术有限公司 Intelligent home field investigation and scheme design system and method

Similar Documents

Publication Publication Date Title
CN106597868A (en) Intelligent home control system
US20110071685A1 (en) Creation and use of software defined building objects in building management systems and applications
CN103970553B (en) A kind of control method of household appliances function upgrading
CN111880490A (en) Environment adjusting method and device, electronic equipment and storage medium
CN105893097A (en) Method and device for processing option information of BIOS (basic input output system)
US20220060348A1 (en) Method for dynamically building environment conditioning rule list in smart home, and device
CN106647304A (en) Household electrical appliance linkage control method, household electrical appliance, server, and system
CN106411667A (en) Network chip based smart home multi-cloud control method and system
WO2020228041A1 (en) Scenario operating method and apparatus, electronic device, and computer readable medium
WO2022252702A1 (en) Method and apparatus for linkage control of household appliances and cloud control device
CN111142456A (en) Internet of things automation smart home linkage method and system
CN111147301A (en) Wireless Internet of things grouping management method and related device
CN106878159A (en) The control method and system of connection are matched a kind of KNX intelligent gateways more
CN106888140A (en) Data centralized management method and system in smart home
CN107104950B (en) Data acquisition, analysis encryption method and system in a kind of smart home
CN104506448B (en) A kind of intelligent router that Internet of Things is adaptive
CN104954449A (en) IoT (internet of things) control method and apparatus
CN104618357B (en) A kind of intelligent household management system based on improved KNX/EIB protocol stacks
CN105577489A (en) Electrical appliance identification method in intelligent home system
CN115208757B (en) Smart home configuration method and device, computer equipment and readable storage medium
CN115208757A (en) Intelligent home configuration method and device, computer equipment and readable storage medium
CN110958570B (en) Wireless Internet of things data communication method and related device
CN108600150A (en) The data acquisition flow method of data acquisition platform and internet-of-things terminal cooperation
WO2024045501A1 (en) Recommendation information determination method and apparatus, and storage medium and electronic apparatus
CN111007735A (en) Intelligent household equipment linkage method and system based on community license plate recognition

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