CN117459516A - Automatic data file synchronization method and system based on intelligent home system - Google Patents

Automatic data file synchronization method and system based on intelligent home system Download PDF

Info

Publication number
CN117459516A
CN117459516A CN202311797024.XA CN202311797024A CN117459516A CN 117459516 A CN117459516 A CN 117459516A CN 202311797024 A CN202311797024 A CN 202311797024A CN 117459516 A CN117459516 A CN 117459516A
Authority
CN
China
Prior art keywords
data
instant
intelligent home
sub
target
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
CN202311797024.XA
Other languages
Chinese (zh)
Other versions
CN117459516B (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.)
Guangzhou Hedong Technology Co ltd
Original Assignee
Guangzhou Hedong 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 Guangzhou Hedong Technology Co ltd filed Critical Guangzhou Hedong Technology Co ltd
Priority to CN202311797024.XA priority Critical patent/CN117459516B/en
Publication of CN117459516A publication Critical patent/CN117459516A/en
Application granted granted Critical
Publication of CN117459516B publication Critical patent/CN117459516B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides an automatic data file synchronization method and system based on an intelligent home system, wherein the method comprises the following steps: acquiring instant data of an intelligent home system, establishing an instant data file of the intelligent home system, obtaining a home instant data stream corresponding to each intelligent home in the intelligent home system according to the instant data file, transmitting the home instant data stream to a cloud server for storage, determining a target intelligent home currently operated in the intelligent home system according to instant update information corresponding to each storage area in the cloud server, calling a historical data file corresponding to the target intelligent home, establishing an operation data file according to the historical data file in combination with the corresponding instant update information, transmitting the operation data file to a designated display area for display, and enabling a user to view operation data of different intelligent home in the intelligent home system through the designated display area, so that the aim of synchronous acquisition, synchronous transmission and synchronous display is achieved.

Description

Automatic data file synchronization method and system based on intelligent home system
Technical Field
The invention relates to the field of data synchronization, in particular to an automatic data file synchronization method and system based on an intelligent home system.
Background
With the rising of the internet of things technology and the vigorous development of the mobile internet in recent years, people have new demands in the aspect of intelligent home control, home intelligent optimization of life style of people is achieved, and life convenience experience is brought to people. Many smart home companies open a new innovation, and release various smart home control products, but because different smart home come from different manufacturers, a great deal of preparation work is needed when data is collected, and automatic synchronization cannot be achieved.
Therefore, the invention provides an automatic data file synchronization method and system based on an intelligent home system.
Disclosure of Invention
According to the automatic data file synchronization method and system based on the intelligent home system, a user can check the operation data of different intelligent home in the intelligent home system through the appointed display area, and the purpose of synchronous acquisition, synchronous transmission and synchronous display is achieved.
The invention provides an automatic data file synchronization method based on an intelligent home system, which comprises the following steps:
step 1: acquiring instant data of an intelligent home system, and establishing an instant data file of the intelligent home system according to the instant data;
Step 2: obtaining a household instant data stream corresponding to each intelligent household in the intelligent household system according to the instant data file, and transmitting the instant data stream to a cloud server for storage by utilizing a preset HTTPS protocol;
step 3: acquiring instant update information corresponding to each storage area in the cloud server, and determining a target intelligent home in an operation state of the intelligent home system based on the instant update information;
step 4: and calling the historical data file corresponding to the target intelligent home, establishing the operation data file corresponding to the target intelligent home according to the historical data file and the corresponding instant update information, and transmitting the operation data file to a designated display area for display.
In one embodiment of the present invention, in one possible implementation,
the step 1 comprises the following steps:
step 11: acquiring instant data of an intelligent home system in a polling mode, when the data volume of the instant data is larger than a preset data volume threshold value, establishing a unpacking execution rule according to the preset data volume threshold value, and dividing the instant data into a plurality of instant sub-data by using the unpacking execution rule;
step 12: establishing a data template according to the data quantity of the instant data, respectively carrying out logic analysis on each instant sub-data to obtain a plurality of area data segments contained in each instant sub-data, respectively inputting each area data segment into the data template, and establishing a data statistics list of the instant data;
Step 13: searching blank data points contained in the data statistics list, positioning blank sub-data corresponding to the blank data points in the instant data, and eliminating the blank sub-data in the instant data to obtain target instant data;
step 14: and acquiring the logic relation among the data segments of different areas, establishing a logic relation structure network, and carrying out data recombination on the target instant data based on the logic relation structure network to obtain an instant data file of the intelligent home system.
In one embodiment of the present invention, in one possible implementation,
the step 2 includes:
step 21: acquiring a plurality of pieces of sub data contained in the instant data file, and mapping each piece of sub data into a preset binary adjustment domain to obtain a hash value corresponding to each piece of sub data;
step 22: clustering analysis is carried out on the hash values, sub-data with the same attribute hash values are recorded as one type according to analysis results, a plurality of data types are obtained, data attributes corresponding to each data type are respectively obtained, sub-data corresponding to each intelligent home in the intelligent home system are determined according to the data attributes, and a home instant data stream is established for the corresponding intelligent home;
Step 23: respectively evaluating the corresponding estimated transmission time length of each household instant data stream, and establishing a transmission sequence label for the corresponding household instant data stream according to the sequence of the transmission time length from short to long;
step 24: and respectively transmitting each household instant data stream to the cloud server for storage by utilizing the preset HTTPS protocol according to the transmission sequence tag.
In one embodiment of the present invention, in one possible implementation,
the step 3 includes:
step 31: acquiring the update time corresponding to each existing household instant data stream contained in each storage area in the cloud server, counting a plurality of existing household instant data streams corresponding to each storage area, and establishing instant update information of the corresponding storage area according to the update time corresponding to each existing household instant data stream;
step 32: establishing an update time range based on the current moment, respectively traversing each instant update information by utilizing the update time range, and extracting the instant update information falling into the update time range to be recorded as target instant update information;
step 33: extracting updated existing sub-data corresponding to the target instant update information based on the sequence of update time, acquiring first data features corresponding to the updated existing sub-data, acquiring home parameters corresponding to each intelligent home in the intelligent home system, and establishing second data features which can be generated by corresponding intelligent home based on the home parameters;
Step 34: and comparing the first data characteristic with the second data characteristic, and determining the target intelligent home corresponding to the existing sub-data according to a comparison result.
In one embodiment of the present invention, in one possible implementation,
the step 4 includes:
step 41: the method comprises the steps of calling a historical data file corresponding to the target intelligent home in the cloud server, performing classification training on the historical data file to obtain training results of the corresponding target intelligent home in different preset dimensions, and building a first classification decision tree of the target intelligent home according to the training results;
step 42: acquiring target instant update information corresponding to the target intelligent home, evaluating the integrity of the target instant update information, and when the integrity of the target instant update information is within a preset integrity range, performing structural conversion on the target instant update information to generate a plurality of leaf nodes, and inputting the leaf nodes into the first classification decision tree to generate a second classification decision tree;
step 43: and obtaining operation data of the target intelligent home under different preset dimensions according to the second classification decision tree, establishing an operation data file corresponding to the target intelligent home according to the operation data, and transmitting the operation data file to the appointed display area for display.
In one embodiment of the present invention, in one possible implementation,
further comprises:
generating a repeated updating instruction when the integrity of the target instant updating information is out of a preset integrity range;
and transmitting the repeated updating instruction to the cloud server, and controlling the cloud server to repeatedly acquire the instant updating information corresponding to the target intelligent home.
In one embodiment of the present invention, in one possible implementation,
further comprises:
and updating the historical data file of the corresponding target intelligent home by using the operation data file to obtain an updated historical data file of the target intelligent home, and replacing the corresponding historical data file by using the updated historical data file.
The invention provides an automatic data file synchronization system based on an intelligent home system, which comprises the following components:
the system comprises an acquisition and analysis module, a storage module and a storage module, wherein the acquisition and analysis module is used for acquiring instant data of an intelligent home system and establishing an instant data file of the intelligent home system according to the instant data;
the processing transmission module is used for obtaining a household instant data stream corresponding to each intelligent household in the intelligent household system according to the instant data file, and transmitting the instant data stream to a cloud server for storage by utilizing a preset HTTPS protocol;
The storage analysis module is used for acquiring instant update information corresponding to each storage area in the cloud server and determining a target intelligent home in an operation state of the intelligent home system based on the instant update information;
and the synchronous updating module is used for calling the historical data file corresponding to the target intelligent home, establishing the operation data file corresponding to the target intelligent home according to the historical data file and the corresponding instant updating information, and transmitting the operation data file to a designated display area for display.
In one embodiment of the present invention, in one possible implementation,
the acquisition analysis module comprises:
the intelligent household system comprises an acquisition processing unit, a data processing unit and a data processing unit, wherein the acquisition processing unit is used for acquiring instant data of the intelligent household system in a polling mode, when the data volume of the instant data is larger than a preset data volume threshold value, an unpacking execution rule is established according to the preset data volume threshold value, and the instant data is divided into a plurality of instant sub-data by utilizing the unpacking execution rule;
the statistical analysis unit is used for establishing a data template according to the data quantity of the instant data, respectively carrying out logic analysis on each instant sub-data to obtain a plurality of regional data segments contained in each instant sub-data, respectively inputting each regional data segment into the data template, and establishing a data statistical list of the instant data;
The searching and rejecting unit is used for searching blank data points contained in the data statistics list, locating blank sub-data corresponding to the blank data points in the instant data, and rejecting the blank sub-data in the instant data to obtain target instant data;
and the analysis execution unit is used for acquiring the logic relations among the data segments of different areas, establishing a logic relation structure network, and carrying out data recombination on the target instant data based on the logic relation structure network to obtain an instant data file of the intelligent home system.
In one embodiment of the present invention, in one possible implementation,
the processing transmission module comprises:
the first analysis unit is used for acquiring a plurality of pieces of sub data contained in the instant data file, and mapping each piece of sub data into a preset binary adjustment domain to obtain a hash value corresponding to each piece of sub data;
the second analysis unit is used for carrying out cluster analysis on the hash values, recording sub-data with the same attribute hash values as one type according to analysis results, obtaining a plurality of data types, respectively obtaining data attributes corresponding to each data type, determining sub-data corresponding to each intelligent home in the intelligent home system according to the data attributes, and establishing a home instant data stream for the corresponding intelligent home;
The third analysis unit is used for respectively evaluating the estimated transmission duration corresponding to each household instant data stream and establishing a transmission sequence label for the corresponding household instant data stream according to the sequence of the transmission duration from short to long;
and the fourth analysis unit is used for respectively transmitting each household instant data stream to the cloud server for storage by utilizing the preset HTTPS protocol according to the transmission sequence label.
The invention has the beneficial effects that: in order to realize automatic data updating synchronization of an intelligent home system, instant data of the intelligent home system are firstly collected, so that an instant data file of the intelligent home system is built according to the instant data, then the instant data file is subjected to data preprocessing, a home instant data stream corresponding to each intelligent home is determined by utilizing a data preprocessing technology, then the home instant data stream is transmitted to a cloud server for storage by utilizing an HTTPS protocol, then a target intelligent home currently operated in the intelligent home system is determined by collecting instant updating information corresponding to each storage area in the cloud server, then a historical data file of the target intelligent home is called, an operation data file of the target intelligent home is built by combining the obtained instant updating information, finally the generated operation data file is transmitted to an appointed display area for display, and a user can check operation data of different intelligent home in the intelligent home system through the appointed display area, thereby realizing the purposes of synchronous collection, synchronous transmission and synchronous display.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objects of the invention and the structures particularly pointed out in this application are achieved and attained.
The technical scheme of the invention is further described in detail through the drawings and the embodiments.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate the invention and together with the embodiments of the invention, serve to explain the invention. In the drawings:
FIG. 1 is a schematic workflow diagram of an automated data file synchronization method based on an intelligent home system according to an embodiment of the present invention;
fig. 2 is a schematic workflow diagram of step 2 of an automated data file synchronization method based on an intelligent home system according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an automated data file synchronization system based on an intelligent home system according to an embodiment of the present invention.
Detailed Description
The preferred embodiments of the present invention will be described below with reference to the accompanying drawings, it being understood that the preferred embodiments described herein are for illustration and explanation of the present invention only, and are not intended to limit the present invention.
Example 1
The embodiment provides an automatic data file synchronization method based on an intelligent home system, as shown in fig. 1, including:
step 1: acquiring instant data of an intelligent home system, and establishing an instant data file of the intelligent home system according to the instant data;
step 2: obtaining a household instant data stream corresponding to each intelligent household in the intelligent household system according to the instant data file, and transmitting the instant data stream to a cloud server for storage by utilizing a preset HTTPS protocol;
step 3: acquiring instant update information corresponding to each storage area in the cloud server, and determining a target intelligent home in an operation state of the intelligent home system based on the instant update information;
step 4: and calling the historical data file corresponding to the target intelligent home, establishing the operation data file corresponding to the target intelligent home according to the historical data file and the corresponding instant update information, and transmitting the operation data file to a designated display area for display.
In the example, the instant data represents data generated in the working process of the intelligent home system;
in this example, one smart home system contains a plurality of smart home;
In the example, the instant data file represents a file packet generated after all instant data in the intelligent home system are packaged;
in this example, the data preprocessing process is step 21, step 22 and step 32 in embodiment 3;
in the example, the household instant data stream represents data corresponding to the intelligent household, and part of the instant data file is in the household instant data stream;
in this example, the preset HTTPS protocol represents the hypertext transfer security protocol;
in this example, the cloud server is a virtual server for storing information;
in this example, each smart home corresponds to a storage area;
in this example, the instant update information represents data generated when a storage area updates data in a current time range;
in the example, the target smart home represents a smart home in an operating state at the current time;
in the example, a target smart home corresponds to a history data file;
in this instance, the designated display area may be a screen or a terminal having a display function.
The working principle of the technical scheme has the beneficial effects that: in order to realize automatic data updating synchronization of an intelligent home system, instant data of the intelligent home system are firstly collected, so that an instant data file of the intelligent home system is built according to the instant data, then the instant data file is subjected to data preprocessing, a home instant data stream corresponding to each intelligent home is determined by utilizing a data preprocessing technology, then the home instant data stream is transmitted to a cloud server for storage by utilizing an HTTPS protocol, then a target intelligent home currently operated in the intelligent home system is determined by collecting instant updating information corresponding to each storage area in the cloud server, then a historical data file of the target intelligent home is called, an operation data file of the target intelligent home is built by combining the obtained instant updating information, finally the generated operation data file is transmitted to an appointed display area for display, and a user can check operation data of different intelligent home in the intelligent home system through the appointed display area, thereby realizing the purposes of synchronous collection, synchronous transmission and synchronous display.
Example 2
On the basis of embodiment 1, the method for synchronizing automated data files based on the smart home system, wherein the step 1 includes:
step 11: acquiring instant data of an intelligent home system in a polling mode, when the data volume of the instant data is larger than a preset data volume threshold value, establishing a unpacking execution rule according to the preset data volume threshold value, and dividing the instant data into a plurality of instant sub-data by using the unpacking execution rule;
step 12: establishing a data template according to the data quantity of the instant data, respectively carrying out logic analysis on each instant sub-data to obtain a plurality of area data segments contained in each instant sub-data, respectively inputting each area data segment into the data template, and establishing a data statistics list of the instant data;
step 13: searching blank data points contained in the data statistics list, positioning blank sub-data corresponding to the blank data points in the instant data, and eliminating the blank sub-data in the instant data to obtain target instant data;
step 14: and acquiring the logic relation among the data segments of different areas, establishing a logic relation structure network, and carrying out data recombination on the target instant data based on the logic relation structure network to obtain an instant data file of the intelligent home system.
In the example, the polling mode represents a mode of circularly collecting instant data of the intelligent home system;
in this example, the data amount represents the size of the occupied space of the instant data;
in this example, the preset data amount threshold may be 1024 megabytes;
in this example, the unpacking execution rule indicates that the instant data is split into a plurality of instant sub-data with a maximum preset data amount threshold;
in this example, the instant sub-data represents a plurality of sub-data generated after unpacking the instant data;
in this example, the specification of the data template is consistent with the size of the data volume;
in this example, the region data segment represents a complete data segment with independent meaning in the instant sub-data, and the region data segment is a part of the instant sub-data, and different region data segments have a logic relationship;
in this example, the data statistics list includes all the region data segments and the logical relationship between the different region data segments;
in this example, blank data points represent data bits that do not contain data;
in the example, blank sub-data represents blank data which does not contain data in the instant data, and represents data generated by the intelligent home in standby;
In this example, the logical relationship structure network represents a logical network formed by organizing logical relationships between different regional data segments.
The working principle of the technical scheme has the beneficial effects that: in order to achieve the aim of synchronously updating data, the instant data generated by the intelligent household system are acquired in real time, the instant data of the intelligent household system are acquired in a polling mode, when the data volume of the instant data is overlarge, the instant data are unpacked into a plurality of instant sub-data, then a data template is established, the instant sub-data are logically analyzed, the analyzed area data segments are input into the data template to establish a data statistics list, blank sub-data in the instant data are positioned by searching blank data points in the data statistics list, the blank sub-data are removed to obtain target instant data, finally a logical relation structure network is established according to the logical relation among different area data segments, the target instant data are subjected to data recombination based on the logical relation structure network, so that an instant data file of the intelligent household system is generated, the instant data file of the intelligent household system is established in such a mode, synchronous updating is realized, the blank data are removed when the data file is established, and interference caused by the overlarge data is avoided.
Example 3
On the basis of embodiment 1, the method for synchronizing an automated data file based on an intelligent home system, as shown in fig. 2, the step 2 includes:
step 21: acquiring a plurality of pieces of sub data contained in the instant data file, and mapping each piece of sub data into a preset binary adjustment domain to obtain a hash value corresponding to each piece of sub data;
step 22: clustering analysis is carried out on the hash values, sub-data with the same attribute hash values are recorded as one type according to analysis results, a plurality of data types are obtained, data attributes corresponding to each data type are respectively obtained, sub-data corresponding to each intelligent home in the intelligent home system are determined according to the data attributes, and a home instant data stream is established for the corresponding intelligent home;
step 23: respectively evaluating the corresponding estimated transmission time length of each household instant data stream, and establishing a transmission sequence label for the corresponding household instant data stream according to the sequence of the transmission time length from short to long;
step 24: and respectively transmitting each household instant data stream to the cloud server for storage by utilizing the preset HTTPS protocol according to the transmission sequence tag.
In this example, the child data represents independent data in the instant data file;
in this example, the preset binary adjustment field represents a region in which the sub-data is mapped to a binary value of a fixed length;
in this example, the hash value represents the way the child data is represented with a unique and extremely compact numerical value;
in this example, cluster analysis represents a way to record sub-data with the same hash value as one type;
in this example, one data class corresponds to one data attribute;
in the example, the household instant data stream represents a data stream generated by sequencing a plurality of pieces of sub data corresponding to an intelligent household according to time;
in this example, the shorter the estimated transmission duration, the later the corresponding transmission sequence tag.
The working principle of the technical scheme has the beneficial effects that: in order to orderly transmit the instant data files to the cloud server, sub-data in the instant data files are mapped to a preset binary adjustment domain to obtain hash values of the sub-data, a plurality of data classes are obtained through clustering analysis on the hash values, then the sub-data corresponding to each intelligent home is determined according to data attributes corresponding to the data classes, then a home instant data stream is established for the corresponding intelligent home, the estimated transmission duration of each home instant data stream is evaluated to determine the transmission sequence of the home instant data streams, finally the home instant data streams are sequentially transmitted to the cloud server for storage by using a preset HTTPS protocol, the effective transmission of the instant data files to the cloud server can be guaranteed through a sequencing mode, short data are transmitted first, long data are transmitted, data blocking is effectively avoided, and efficient transmission is achieved.
Example 4
On the basis of embodiment 1, the method for synchronizing automated data files based on the smart home system, step 3, includes:
step 31: acquiring the update time corresponding to each existing household instant data stream contained in each storage area in the cloud server, counting a plurality of existing household instant data streams corresponding to each storage area, and establishing instant update information of the corresponding storage area according to the update time corresponding to each existing household instant data stream;
step 32: establishing an update time range based on the current moment, respectively traversing each instant update information by utilizing the update time range, and extracting the instant update information falling into the update time range to be recorded as target instant update information;
step 33: extracting updated existing sub-data corresponding to the target instant update information based on the sequence of update time, acquiring first data features corresponding to the updated existing sub-data, acquiring home parameters corresponding to each intelligent home in the intelligent home system, and establishing second data features which can be generated by corresponding intelligent home based on the home parameters;
step 34: and comparing the first data characteristic with the second data characteristic, and determining the target intelligent home corresponding to the existing sub-data according to a comparison result.
In this example, the existing home instant data stream represents a data stream that has been stored in a storage area;
in this example, an existing home instant data stream corresponds to an update time;
in this example, the update time range may be the first three minutes starting from the current time;
in this example, the target instant update information represents instant update information within an update time range;
in this example, the first data feature represents the feature of updating the existing sub-data, and is used to distinguish between the different updated existing sub-data;
in this example, the second data characteristic represents a characteristic of data that the smart home may generate;
in this example, one smart home may generate multiple second data features.
The working principle of the technical scheme has the beneficial effects that: in order to determine a target intelligent home being operated in the intelligent home system, a corresponding existing home instant data stream is established according to the update time of the existing home instant data stream contained in each storage area in the cloud server, so that instant update information of the storage area is established, an update time range is established by utilizing the current time, thus the target instant update information falling in the update time range is extracted, first data characteristics of corresponding update existing sub-data in the target instant update information are obtained, first data characteristics which can be generated by each intelligent home in the intelligent home system are obtained, the target intelligent home corresponding to the current sub-data is determined by comparing the data characteristics, and thus the target intelligent home being operated can be rapidly positioned.
Example 5
On the basis of embodiment 1, the method for synchronizing automated data files based on the smart home system, step 4, includes:
step 41: the method comprises the steps of calling a historical data file corresponding to the target intelligent home in the cloud server, performing classification training on the historical data file to obtain training results of the corresponding target intelligent home in different preset dimensions, and building a first classification decision tree of the target intelligent home according to the training results;
step 42: acquiring target instant update information corresponding to the target intelligent home, evaluating the integrity of the target instant update information, and when the integrity of the target instant update information is within a preset integrity range, performing structural conversion on the target instant update information to generate a plurality of leaf nodes, and inputting the leaf nodes into the first classification decision tree to generate a second classification decision tree;
step 43: and obtaining operation data of the target intelligent home under different preset dimensions according to the second classification decision tree, establishing an operation data file corresponding to the target intelligent home according to the operation data, and transmitting the operation data file to the appointed display area for display.
In the example, the classification training means classifying the data in the history data file, wherein the classified types are consistent with the preset dimension;
in this example, the preset dimensions include: a first dimension (data contained in the same time period), a second dimension (data corresponding to the same work type), a third dimension (data contained in the same period), and a fourth dimension (data contained in the same work duration);
in this example, the training results include data presented by the historical data file in different dimensions;
in this example, the first classification decision tree represents a tree structure established according to training results regarding classification of data in the historical data file;
in this example, the preset integrity may be 80% of each preset dimension;
in this example, leaf nodes represent the decision results used to generate the second classification decision tree and may express the targeted instant update information.
The working principle of the technical scheme has the beneficial effects that: in order to further analyze working details of the target smart home, historical data files of the target smart home are called in a cloud server, a first classification decision tree is built through classification training of the historical data files, then target instant update information with reasonable completeness is converted into usable leaf nodes, the leaf nodes are input into the first classification decision tree to build a second classification decision tree, accordingly operation data of the target smart home in different preset dimensions are determined according to the second classification decision tree, operation data files of the target smart home are further built, the built operation data files are finally transmitted to a designated display area to be displayed, the operation data files of the target smart home can be effectively built through the mode of building the decision tree, supervision learning can be conducted on the operation data files, and data synchronization work is better achieved.
Example 6
Based on embodiment 5, the method for synchronizing an automated data file based on the smart home system further includes:
generating a repeated updating instruction when the integrity of the target instant updating information is out of a preset integrity range;
and transmitting the repeated updating instruction to the cloud server, and controlling the cloud server to repeatedly acquire the instant updating information corresponding to the target intelligent home.
The working principle of the technical scheme has the beneficial effects that: when the integrity of the target instant update information is insufficient, the target instant update information is indicated to be in updating, a repeated update instruction is generated for acquiring the complete target instant update information, and repeated acquisition work is executed by utilizing the repeated update instruction, so that the instant update information of the intelligent home is obtained, and the integrity of the instant update information is ensured.
Example 7
On the basis of embodiment 1, the automated data file synchronization method based on the smart home system further includes:
and updating the historical data file of the corresponding target intelligent home by using the operation data file to obtain an updated historical data file of the target intelligent home, and replacing the corresponding historical data file by using the updated historical data file.
The working principle of the technical scheme has the beneficial effects that: the original historical data file is replaced by the updated historical data file, so that data replacement can be realized, and the aim of storing data is fulfilled.
Example 8
The embodiment provides an automated data file synchronization system based on an intelligent home system, as shown in fig. 3, including:
the system comprises an acquisition and analysis module, a storage module and a storage module, wherein the acquisition and analysis module is used for acquiring instant data of an intelligent home system and establishing an instant data file of the intelligent home system according to the instant data;
the processing transmission module is used for obtaining a household instant data stream corresponding to each intelligent household in the intelligent household system according to the instant data file, and transmitting the instant data stream to a cloud server for storage by utilizing a preset HTTPS protocol;
the storage analysis module is used for acquiring instant update information corresponding to each storage area in the cloud server and determining a target intelligent home in an operation state of the intelligent home system based on the instant update information;
and the synchronous updating module is used for calling the historical data file corresponding to the target intelligent home, establishing the operation data file corresponding to the target intelligent home according to the historical data file and the corresponding instant updating information, and transmitting the operation data file to a designated display area for display.
In the example, the instant data represents data generated in the working process of the intelligent home system;
in this example, one smart home system contains a plurality of smart home;
in the example, the instant data file represents a file packet generated after all instant data in the intelligent home system are packaged;
in this example, the data preprocessing process is step 21, step 22 and step 32 in embodiment 3;
in the example, the household instant data stream represents data corresponding to the intelligent household, and the household instant data stream is a part of an instant data file;
in this example, the preset HTTPS protocol represents the hypertext transfer security protocol;
in this example, the cloud server is a virtual server for storing information;
in this example, each smart home corresponds to a storage area;
in this example, the instant update information represents data generated when a storage area updates data in a current time range;
in the example, the target smart home represents a smart home in an operating state at the current time;
in the example, a target smart home corresponds to a history data file;
in this instance, the designated display area may be a screen or a terminal having a display function.
The working principle of the technical scheme has the beneficial effects that: in order to realize automatic data updating synchronization of an intelligent home system, instant data of the intelligent home system are firstly collected, so that an instant data file of the intelligent home system is built according to the instant data, then the instant data file is subjected to data preprocessing, a home instant data stream corresponding to each intelligent home is determined by utilizing a data preprocessing technology, then the home instant data stream is transmitted to a cloud server for storage by utilizing an HTTPS protocol, then a target intelligent home currently operated in the intelligent home system is determined by collecting instant updating information corresponding to each storage area in the cloud server, then a historical data file of the target intelligent home is called, an operation data file of the target intelligent home is built by combining the obtained instant updating information, finally the generated operation data file is transmitted to an appointed display area for display, and a user can check operation data of different intelligent home in the intelligent home system through the appointed display area, thereby realizing the purposes of synchronous collection, synchronous transmission and synchronous display.
Example 9
On the basis of embodiment 8, the automated data file synchronization system based on the smart home system, the processing and transmitting module, includes:
The intelligent household system comprises an acquisition processing unit, a data processing unit and a data processing unit, wherein the acquisition processing unit is used for acquiring instant data of the intelligent household system in a polling mode, when the data volume of the instant data is larger than a preset data volume threshold value, an unpacking execution rule is established according to the preset data volume threshold value, and the instant data is divided into a plurality of instant sub-data by utilizing the unpacking execution rule;
the statistical analysis unit is used for establishing a data template according to the data quantity of the instant data, respectively carrying out logic analysis on each instant sub-data to obtain a plurality of regional data segments contained in each instant sub-data, respectively inputting each regional data segment into the data template, and establishing a data statistical list of the instant data;
the searching and rejecting unit is used for searching blank data points contained in the data statistics list, locating blank sub-data corresponding to the blank data points in the instant data, and rejecting the blank sub-data in the instant data to obtain target instant data;
and the analysis execution unit is used for acquiring the logic relations among the data segments of different areas, establishing a logic relation structure network, and carrying out data recombination on the target instant data based on the logic relation structure network to obtain an instant data file of the intelligent home system.
In the example, the polling mode represents a mode of circularly collecting instant data of the intelligent home system;
in this example, the data amount represents the size of the occupied space of the instant data;
in this example, the preset data amount threshold may be 1024 megabytes;
in this example, the unpacking execution rule indicates that the instant data is split into a plurality of instant sub-data with a maximum preset data amount threshold;
in this example, the instant sub-data represents a plurality of sub-data generated after unpacking the instant data;
in this example, the specification of the data template is consistent with the size of the data volume;
in this example, the region data segment represents a complete data segment with independent meaning in the instant sub-data, and the region data segment is a part of the instant sub-data, and different region data segments have a logic relationship;
in this example, the data statistics list includes all the region data segments and the logical relationship between the different region data segments;
in this example, blank data points represent data bits that do not contain data;
in the example, blank sub-data represents blank data which does not contain data in the instant data, and represents data generated by the intelligent home in standby;
In this example, the logical relationship structure network represents a logical network formed by organizing logical relationships between different regional data segments.
The working principle of the technical scheme has the beneficial effects that: in order to achieve the aim of synchronously updating data, the instant data generated by the intelligent household system are acquired in real time, the instant data of the intelligent household system are acquired in a polling mode, when the data volume of the instant data is overlarge, the instant data are unpacked into a plurality of instant sub-data, then a data template is established, the instant sub-data are logically analyzed, the analyzed area data segments are input into the data template to establish a data statistics list, blank sub-data in the instant data are positioned by searching blank data points in the data statistics list, the blank sub-data are removed to obtain target instant data, finally a logical relation structure network is established according to the logical relation among different area data segments, the target instant data are subjected to data recombination based on the logical relation structure network, so that an instant data file of the intelligent household system is generated, the instant data file of the intelligent household system is established in such a mode, synchronous updating is realized, the blank data are removed when the data file is established, and interference caused by the overlarge data is avoided.
Example 10
On the basis of embodiment 8, the automated data file synchronization system based on the smart home system, the processing and transmitting module, includes:
the first analysis unit is used for acquiring a plurality of pieces of sub data contained in the instant data file, and mapping each piece of sub data into a preset binary adjustment domain to obtain a hash value corresponding to each piece of sub data;
the second analysis unit is used for carrying out cluster analysis on the hash values, recording sub-data with the same attribute hash values as one type according to analysis results, obtaining a plurality of data types, respectively obtaining data attributes corresponding to each data type, determining sub-data corresponding to each intelligent home in the intelligent home system according to the data attributes, and establishing a home instant data stream for the corresponding intelligent home;
the third analysis unit is used for respectively evaluating the estimated transmission duration corresponding to each household instant data stream and establishing a transmission sequence label for the corresponding household instant data stream according to the sequence of the transmission duration from short to long;
and the fourth analysis unit is used for respectively transmitting each household instant data stream to the cloud server for storage by utilizing the preset HTTPS protocol according to the transmission sequence label.
In this example, the child data represents independent data in the instant data file;
in this example, the preset binary adjustment field represents a region in which the sub-data is mapped to a binary value of a fixed length;
in this example, the hash value represents the way the child data is represented with a unique and extremely compact numerical value;
in this example, cluster analysis represents a way to record sub-data with the same hash value as one type;
in this example, one data class corresponds to one data attribute;
in the example, the household instant data stream represents a data stream generated by sequencing a plurality of pieces of sub data corresponding to an intelligent household according to time;
in this example, the shorter the estimated transmission duration, the later the corresponding transmission sequence tag.
The working principle of the technical scheme has the beneficial effects that: in order to orderly transmit the instant data files to the cloud server, sub-data in the instant data files are mapped to a preset binary adjustment domain to obtain hash values of the sub-data, a plurality of data classes are obtained through clustering analysis on the hash values, then the sub-data corresponding to each intelligent home is determined according to data attributes corresponding to the data classes, then a home instant data stream is established for the corresponding intelligent home, the estimated transmission duration of each home instant data stream is evaluated to determine the transmission sequence of the home instant data streams, finally the home instant data streams are sequentially transmitted to the cloud server for storage by using a preset HTTPS protocol, the effective transmission of the instant data files to the cloud server can be guaranteed through a sequencing mode, short data are transmitted first, long data are transmitted, data blocking is effectively avoided, and efficient transmission is achieved.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (10)

1. An automated data file synchronization method based on an intelligent home system is characterized by comprising the following steps:
step 1: acquiring instant data of an intelligent home system, and establishing an instant data file of the intelligent home system according to the instant data;
step 2: obtaining a household instant data stream corresponding to each intelligent household in the intelligent household system according to the instant data file, and transmitting the instant data stream to a cloud server for storage by utilizing a preset HTTPS protocol;
step 3: acquiring instant update information corresponding to each storage area in the cloud server, and determining a target intelligent home in an operation state of the intelligent home system based on the instant update information;
step 4: and calling the historical data file corresponding to the target intelligent home, establishing the operation data file corresponding to the target intelligent home according to the historical data file and the corresponding instant update information, and transmitting the operation data file to a designated display area for display.
2. The method for synchronizing automated data files based on an intelligent home system according to claim 1, wherein the step 1 comprises:
step 11: acquiring instant data of an intelligent home system in a polling mode, when the data volume of the instant data is larger than a preset data volume threshold value, establishing a unpacking execution rule according to the preset data volume threshold value, and dividing the instant data into a plurality of instant sub-data by using the unpacking execution rule;
step 12: establishing a data template according to the data quantity of the instant data, respectively carrying out logic analysis on each instant sub-data to obtain a plurality of area data segments contained in each instant sub-data, respectively inputting each area data segment into the data template, and establishing a data statistics list of the instant data;
step 13: searching blank data points contained in the data statistics list, positioning blank sub-data corresponding to the blank data points in the instant data, and eliminating the blank sub-data in the instant data to obtain target instant data;
step 14: and acquiring the logic relation among the data segments of different areas, establishing a logic relation structure network, and carrying out data recombination on the target instant data based on the logic relation structure network to obtain an instant data file of the intelligent home system.
3. The method for synchronizing automated data files based on an intelligent home system according to claim 1, wherein the step 2 comprises:
step 21: acquiring a plurality of pieces of sub data contained in the instant data file, and mapping each piece of sub data into a preset binary adjustment domain to obtain a hash value corresponding to each piece of sub data;
step 22: clustering analysis is carried out on the hash values, sub-data with the same attribute hash values are recorded as one type according to analysis results, a plurality of data types are obtained, data attributes corresponding to each data type are respectively obtained, sub-data corresponding to each intelligent home in the intelligent home system are determined according to the data attributes, and a home instant data stream is established for the corresponding intelligent home;
step 23: respectively evaluating the corresponding estimated transmission time length of each household instant data stream, and establishing a transmission sequence label for the corresponding household instant data stream according to the sequence of the transmission time length from short to long;
step 24: and respectively transmitting each household instant data stream to the cloud server for storage by utilizing the preset HTTPS protocol according to the transmission sequence tag.
4. The method for synchronizing automated data files based on an intelligent home system according to claim 1, wherein the step 3 comprises:
Step 31: acquiring the update time corresponding to each existing household instant data stream contained in each storage area in the cloud server, counting a plurality of existing household instant data streams corresponding to each storage area, and establishing instant update information of the corresponding storage area according to the update time corresponding to each existing household instant data stream;
step 32: establishing an update time range based on the current moment, respectively traversing each instant update information by utilizing the update time range, and extracting the instant update information falling into the update time range to be recorded as target instant update information;
step 33: extracting updated existing sub-data corresponding to the target instant update information based on the sequence of update time, acquiring first data features corresponding to the updated existing sub-data, acquiring home parameters corresponding to each intelligent home in the intelligent home system, and establishing second data features which can be generated by corresponding intelligent home based on the home parameters;
step 34: and comparing the first data characteristic with the second data characteristic, and determining the target intelligent home corresponding to the existing sub-data according to a comparison result.
5. The method for synchronizing automated data files based on an intelligent home system according to claim 1, wherein the step 4 comprises:
step 41: the method comprises the steps of calling a historical data file corresponding to the target intelligent home in the cloud server, performing classification training on the historical data file to obtain training results of the corresponding target intelligent home in different preset dimensions, and building a first classification decision tree of the target intelligent home according to the training results;
step 42: acquiring target instant update information corresponding to the target intelligent home, evaluating the integrity of the target instant update information, and when the integrity of the target instant update information is within a preset integrity range, performing structural conversion on the target instant update information to generate a plurality of leaf nodes, and inputting the leaf nodes into the first classification decision tree to generate a second classification decision tree;
step 43: and obtaining operation data of the target intelligent home under different preset dimensions according to the second classification decision tree, establishing an operation data file corresponding to the target intelligent home according to the operation data, and transmitting the operation data file to the appointed display area for display.
6. The automated data file synchronization method based on an intelligent home system of claim 5, further comprising:
generating a repeated updating instruction when the integrity of the target instant updating information is out of a preset integrity range;
and transmitting the repeated updating instruction to the cloud server, and controlling the cloud server to repeatedly acquire the instant updating information corresponding to the target intelligent home.
7. The automated data file synchronization method based on an intelligent home system of claim 1, further comprising:
and updating the historical data file of the corresponding target intelligent home by using the operation data file to obtain an updated historical data file of the target intelligent home, and replacing the corresponding historical data file by using the updated historical data file.
8. An automated data file synchronization system based on an intelligent home system, comprising:
the system comprises an acquisition and analysis module, a storage module and a storage module, wherein the acquisition and analysis module is used for acquiring instant data of an intelligent home system and establishing an instant data file of the intelligent home system according to the instant data;
the processing transmission module is used for obtaining a household instant data stream corresponding to each intelligent household in the intelligent household system according to the instant data file, and transmitting the instant data stream to a cloud server for storage by utilizing a preset HTTPS protocol;
The storage analysis module is used for acquiring instant update information corresponding to each storage area in the cloud server and determining a target intelligent home in an operation state of the intelligent home system based on the instant update information;
and the synchronous updating module is used for calling the historical data file corresponding to the target intelligent home, establishing the operation data file corresponding to the target intelligent home according to the historical data file and the corresponding instant updating information, and transmitting the operation data file to a designated display area for display.
9. The automated data file synchronization system based on an intelligent home system of claim 8, wherein the acquisition analysis module comprises:
the intelligent household system comprises an acquisition processing unit, a data processing unit and a data processing unit, wherein the acquisition processing unit is used for acquiring instant data of the intelligent household system in a polling mode, when the data volume of the instant data is larger than a preset data volume threshold value, an unpacking execution rule is established according to the preset data volume threshold value, and the instant data is divided into a plurality of instant sub-data by utilizing the unpacking execution rule;
the statistical analysis unit is used for establishing a data template according to the data quantity of the instant data, respectively carrying out logic analysis on each instant sub-data to obtain a plurality of regional data segments contained in each instant sub-data, respectively inputting each regional data segment into the data template, and establishing a data statistical list of the instant data;
The searching and rejecting unit is used for searching blank data points contained in the data statistics list, locating blank sub-data corresponding to the blank data points in the instant data, and rejecting the blank sub-data in the instant data to obtain target instant data;
and the analysis execution unit is used for acquiring the logic relations among the data segments of different areas, establishing a logic relation structure network, and carrying out data recombination on the target instant data based on the logic relation structure network to obtain an instant data file of the intelligent home system.
10. The automated data file synchronization system based on an intelligent home system of claim 8, wherein the process transmission module comprises:
the first analysis unit is used for acquiring a plurality of pieces of sub data contained in the instant data file, and mapping each piece of sub data into a preset binary adjustment domain to obtain a hash value corresponding to each piece of sub data;
the second analysis unit is used for carrying out cluster analysis on the hash values, recording sub-data with the same attribute hash values as one type according to analysis results, obtaining a plurality of data types, respectively obtaining data attributes corresponding to each data type, determining sub-data corresponding to each intelligent home in the intelligent home system according to the data attributes, and establishing a home instant data stream for the corresponding intelligent home;
The third analysis unit is used for respectively evaluating the estimated transmission duration corresponding to each household instant data stream and establishing a transmission sequence label for the corresponding household instant data stream according to the sequence of the transmission duration from short to long;
and the fourth analysis unit is used for respectively transmitting each household instant data stream to the cloud server for storage by utilizing the preset HTTPS protocol according to the transmission sequence label.
CN202311797024.XA 2023-12-26 2023-12-26 Automatic data file synchronization method and system based on intelligent home system Active CN117459516B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311797024.XA CN117459516B (en) 2023-12-26 2023-12-26 Automatic data file synchronization method and system based on intelligent home system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311797024.XA CN117459516B (en) 2023-12-26 2023-12-26 Automatic data file synchronization method and system based on intelligent home system

Publications (2)

Publication Number Publication Date
CN117459516A true CN117459516A (en) 2024-01-26
CN117459516B CN117459516B (en) 2024-03-12

Family

ID=89595179

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311797024.XA Active CN117459516B (en) 2023-12-26 2023-12-26 Automatic data file synchronization method and system based on intelligent home system

Country Status (1)

Country Link
CN (1) CN117459516B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103297589A (en) * 2012-02-24 2013-09-11 颜志超 Personal image real-time synchronizing method/ disseminating method based on mobile terminal
CN106789378A (en) * 2017-03-29 2017-05-31 宁夏灵智科技有限公司 Information prevents from revealing method and system in smart home
CN114844738A (en) * 2022-04-15 2022-08-02 南京艾莫尔人工智能研究院有限公司 Data management method based on service gateway

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103297589A (en) * 2012-02-24 2013-09-11 颜志超 Personal image real-time synchronizing method/ disseminating method based on mobile terminal
CN106789378A (en) * 2017-03-29 2017-05-31 宁夏灵智科技有限公司 Information prevents from revealing method and system in smart home
CN114844738A (en) * 2022-04-15 2022-08-02 南京艾莫尔人工智能研究院有限公司 Data management method based on service gateway

Also Published As

Publication number Publication date
CN117459516B (en) 2024-03-12

Similar Documents

Publication Publication Date Title
CN110659173B (en) Operation and maintenance system and method
CN109639481B (en) Deep learning-based network traffic classification method and system and electronic equipment
CN110324170B (en) Data analysis equipment, multi-model co-decision system and method
US20220179884A1 (en) Label Determining Method, Apparatus, and System
US20240273116A1 (en) Method and System for Constructing Data Warehouse Based on Wireless Communication Network, and Device and Medium
CN104122871B (en) Real-time monitoring method of semiconductor test data
CN113312924A (en) Risk rule classification method and device based on NLP high-precision analysis label
CN113742357A (en) Method and system for automatically collecting and associating cross-platform design data
CN115981804A (en) Industrial big data calculation task scheduling management system
WO2024169529A1 (en) Knowledge base construction method, data retrieval method and apparatus, and cloud device
CN117459516B (en) Automatic data file synchronization method and system based on intelligent home system
CN111538881B (en) Activity analysis method, equipment and storage medium based on behavior data
CN117332407A (en) Network user behavior data generation method, system, storage medium and electronic equipment
CN109508244B (en) Data processing method and computer readable medium
CN117172093A (en) Method and device for optimizing strategy of Linux system kernel configuration based on machine learning
CN110389939A (en) A kind of Internet of Things storage system based on NoSQL and distributed file system
CN112819527B (en) User grouping processing method and device
CN110262973B (en) Data maintenance method, device, equipment and computer storage medium
CN111783899B (en) Method for autonomously learning and identifying novel contraband
CN113628077A (en) Method for generating non-repeated examination questions, terminal and readable storage medium
CN113342518A (en) Task processing method and device
CN111158778A (en) Intelligent label optimization method based on panoramic model file
CN116993307B (en) Collaborative office method and system with artificial intelligence learning capability
CN117648477B (en) Service information management system and method based on AI analysis
CN116170829B (en) Operation and maintenance scene identification method and device for independent private network service

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