CN114268513B - Data sharing method, device, electronic equipment, storage medium and product - Google Patents

Data sharing method, device, electronic equipment, storage medium and product Download PDF

Info

Publication number
CN114268513B
CN114268513B CN202111394008.7A CN202111394008A CN114268513B CN 114268513 B CN114268513 B CN 114268513B CN 202111394008 A CN202111394008 A CN 202111394008A CN 114268513 B CN114268513 B CN 114268513B
Authority
CN
China
Prior art keywords
terminal
access
model
equipment model
data sharing
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.)
Active
Application number
CN202111394008.7A
Other languages
Chinese (zh)
Other versions
CN114268513A (en
Inventor
丁张辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202111394008.7A priority Critical patent/CN114268513B/en
Publication of CN114268513A publication Critical patent/CN114268513A/en
Application granted granted Critical
Publication of CN114268513B publication Critical patent/CN114268513B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a data sharing method, a device, electronic equipment, a storage medium and a product, wherein the data sharing method comprises the following steps: receiving a sharing request of a first terminal, wherein the sharing request comprises a device model; if the access equipment model with the mapping relation with the equipment model exists in the database, the configuration information of the access equipment model is returned to the first terminal. The data sharing method, the device, the electronic equipment and the storage medium provided by the invention can greatly simplify the complicated operation configuration of the data by a developer, and find the shared access terminal of the request terminal through the mapping relation, thereby automatically completing the configuration of a large amount of data needing to be manually configured and confirmed by the developer by a program.

Description

Data sharing method, device, electronic equipment, storage medium and product
Technical Field
The invention relates to the technical field of intelligent home, in particular to a data sharing method, a device, electronic equipment, a storage medium and a product.
Background
In the intelligent home system, a user can control the whole set of equipment by controlling any terminal in the set of equipment, for example, the user can control any indoor unit in the central air conditioning system to control all indoor units and all outdoor units.
However, for a developer to implement the above-described user control function, all terminals in a set of devices need to be accessed to a server for maintenance and upgrade. Because the functions, attributes, distribution network documents, configuration files and the like of all terminals in the same set of equipment need to be configured to be identical, if the upgrade is wrong or the upgrade is missed, the function execution in use of a user is unsuccessful, and serious production problems can be caused. Therefore, the manual configuration checking work is very cumbersome and error-prone, and neither quality nor quantity is guaranteed.
Disclosure of Invention
The invention provides a data sharing method, a device, electronic equipment, a storage medium and a product, which are used for solving the defect that in the prior art, when a developer maintains the whole equipment, configuration checking work is very complicated, and a large amount of data which needs to be manually configured and confirmed by the developer is automatically completed by a program.
The invention provides a data sharing method, which comprises the following steps:
receiving a sharing request of a first terminal, wherein the sharing request comprises a device model;
if the access equipment model with the mapping relation with the equipment model exists in the database, the configuration information of the access equipment model is returned to the first terminal.
According to the data sharing method provided by the invention, the receiving of the sharing request of the first terminal further comprises the following steps:
receiving an access request of a second terminal;
and establishing a mapping relation between the equipment model of the second terminal and the equipment model of each terminal in the same group of the second terminal, and storing the mapping relation in the database.
According to the data sharing method provided by the invention, each terminal in the same group comprises each terminal which is arranged in the same scene and realizes the same function.
According to the data sharing method provided by the present invention, the storing the equipment model of the second terminal and the equipment models of all terminals in the same group of the second terminal as mapping relations into the database includes:
if the second terminal meets the access rule, determining the equipment model of the second terminal as an access equipment model;
and establishing a mapping relation between the equipment model of the second terminal and the equipment model of each terminal in the same group of the second terminal, and storing the mapping relation in the database.
According to the data sharing method provided by the invention, the configuration information of the access equipment model in the mapping relation of the equipment model is returned to the first terminal, and then the method further comprises the following steps: and sending the configuration information returned to the first terminal to other domains of the Internet of things for interaction.
According to the data sharing method provided by the invention, the configuration information comprises at least one of equipment basic information, attribute information, alarm information, invalid information, logic constraint rule information, a patch command and a distribution network document.
According to the data sharing method provided by the invention, the receiving of the sharing request of the first terminal further comprises the following steps:
and if the access equipment model with the mapping relation with the equipment model does not exist in the database, returning a message of not receiving the configuration information to the first terminal.
The invention also provides a data sharing device, comprising:
the receiving module is used for receiving a sharing request of the first terminal, wherein the sharing request comprises a device model;
and the sharing module is used for judging that if the access equipment model with the mapping relation with the equipment model exists in the database, returning the configuration information of the access equipment model to the first terminal.
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the data sharing method as described in any of the above when executing the program.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the data sharing method as described in any of the above.
The invention also provides a computer program product comprising a computer program which when executed by a processor implements the steps of a data sharing method as described in any one of the above.
The invention provides a data sharing method, a device, electronic equipment and a storage medium, wherein the sharing request comprises equipment model and request content by receiving a sharing request of a terminal; searching a database according to the equipment model and returning configuration information to the terminal sending the sharing request. The method of the invention can greatly simplify the complicated operation configuration of the data by the developer, and searches the shared access terminal of the request terminal through the mapping relation, thereby automatically completing the configuration of a large amount of data needing to be manually configured and confirmed by the developer by the program. The intelligent control system has the advantages that the user can enjoy the function of intelligently controlling life by binding any terminal, and the workload of open personnel is reduced.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a data sharing method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of mapping relation of database storage in the data sharing method according to the embodiment of the present invention;
fig. 3 is a schematic diagram of data interaction between a server and other terminals in the internet of things in the embodiment of the invention;
FIG. 4 is a timing diagram of a data sharing method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a data sharing device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The various terms or phrases used herein have the ordinary meaning known to those of ordinary skill in the art, but rather the invention is intended to be more fully described and explained herein. If the terms and phrases referred to herein have a meaning inconsistent with the known meaning, the meaning expressed by the present invention; and if not defined in the present invention, have meanings commonly understood by those of ordinary skill in the art.
Under the application environment of the intelligent home system, a user can bind a model of an intelligent terminal on the app to control the terminal. In order to realize intelligent control and updating of the terminals, each terminal needs to be accessed into a server to enable a developer to maintain. Terminals like washing machines and water heaters are all single, and the same type can be achieved by maintaining one equipment model at a server.
However, some terminals belong to a whole set of intelligent appliances, such as air conditioners, which are divided into indoor units and outdoor units, especially central air conditioners, and often exist in a form of four indoor units and one outdoor unit. If the central air conditioner is required to realize the function of intelligent control by binding a user with any indoor unit or outdoor unit model, a developer must access all the indoor units and the outdoor units to a server and maintain each terminal respectively. However, the configuration files belonging to a whole set of intelligent electric appliances are identical, if the intelligent electric appliances are respectively accessed to the server and maintained one by one, on one hand, the workload is huge, the complexity is high, the errors are easy to occur, on the other hand, the program redundancy is not concise, the time of developers is wasted, and the user experience is poor. Meanwhile, when the air conditioner is used for upgrading the functions, the indoor units and the outdoor units corresponding to the air conditioner model are required to be all upgraded, and if the upgrade is wrong or the upgrade is missed, the function execution in use of a user is unsuccessful, namely serious production problems are caused.
In the embodiment of the invention, the configuration file is a generic name of a file type of a format agreed by both parties for data interaction with other ends of the internet of things, and the file contains nodes such as basic information, attribute information, alarm information, invalid information, logic constraint rule information, patch command, distribution network file and the like of equipment, and each end of the internet of things analyzes different nodes according to service requirements of each end to obtain desired data. Taking an air conditioning device as an example, the specific configuration information includes the following contents:
the basic information is used for describing the most basic information of the physical equipment, and comprises equipment type, product name, product number, model number, manufacturer and the like.
The attribute information is used for describing various attributes of the equipment which can be accessed by a user, and comprises attributes for representing the working state of the equipment, objective environment attributes obtained by the equipment through measurement and the like. The following are examples of attributes that an air conditioner model has: humidification function, PM2.5 purification function, formaldehyde purification function, self-cleaning/self-cleaning, power saving/ECO mode, health (negative ions), and the like.
The alarm information is used for describing various alarm information generated by the equipment. Such as: outdoor defrost sensor failure, power supply overvoltage protection, indoor direct current fan failure, indoor PM2.5 sensor failure, outdoor press operation anomalies, and the like.
The invalid information is used for describing command fields displayed to a user at an APP end when the device cannot execute a control command under certain condition states, for example: the current state does not allow the temperature to be adjusted, the cooling mode does not allow this operation to be performed, and the air supply mode does not allow this operation to be performed.
The logic constraint rule information is used to describe constraint relationships among some commands during the running process of the equipment, such as the user selecting the self-cleaning/self-cleaning function status function of the air conditioner, when the following commands (electric heating function, status function mode, target temperature) cannot be executed when the user operates.
The patch command is used for describing a command which needs to be supplemented before the equipment issues certain commands, and the patch command with a functional mode (intelligent comfort mode) and a target temperature (such as 26 ℃) is configured for the startup command, so that after the cloud issues the command, the air conditioner firstly executes the startup command, then selects the mode as the intelligent comfort mode, self-defines whether to refrigerate or heat according to the environmental temperature, and simultaneously sets the target temperature to 26 ℃.
The distribution network file is also called distribution network guide information and is used for guiding a user to bind the instruction file of the intelligent device at the APP end, displaying the instruction file at the App end and guiding the user to bind the intelligent device. The user binds an air conditioner example at the app end:
the first step: reinserting a power supply for the air conditioner;
and a second step of: after the air conditioner is started, the 'on-off key' of the remote controller is pressed for 5 seconds for the next step when the Wi-Fi indicator lamp of the panel of the air conditioner is in a flash state;
and a third step of: setting the air conditioner to be 'refrigerating, low wind and 30 DEG', waiting for about 10s, and then carrying out the next step;
fourth step: the WiFi indicator lights flash, and the binding is successful.
The steps are distribution network guiding documents, and the corresponding distribution network animation pictures are combined to provide visual operation guidance for users.
Data sharing methods, apparatuses, electronic devices, and storage media are described below in connection with fig. 1-6.
Fig. 1 is a flow chart of a data sharing method provided by an embodiment of the present invention, and fig. 1 is a flow chart of a data sharing method according to an embodiment of the present invention, including the following steps:
s101, receiving a sharing request of a first terminal, wherein the sharing request comprises a device model;
s102, if an access equipment model with a mapping relation with the equipment model exists in a database, returning configuration information of the access equipment model to the first terminal;
the data sharing method provided by the embodiment of the invention can share the model function of the second terminal which is accessed to the server to the first terminal which is not accessed to the server. The same configuration information is used for the device model of the access terminal and its corresponding device model of the non-access terminal. Meanwhile, the model name and the product code of the own model of the terminal are reserved. The developer only needs to maintain the equipment model corresponding to one terminal in the server, and the terminal access server corresponding to a plurality of models becomes an intelligent terminal due to the existence of the mapping relation.
In the embodiment of the invention, the first terminal may be an electric appliance terminal capable of receiving and transmitting instructions, such as an air conditioner, a water heater, a lamp, etc., the equipment model may be an equipment interface model or a product code, the database is a storage unit arranged in the server, and the mapping relation may be stored in the form of a data table in the database.
In at least one embodiment of the present invention, the step of receiving the sharing request of the first terminal further includes the following steps:
s201, receiving an access request of a second terminal;
s202, establishing a mapping relation between the equipment model of the second terminal and the equipment model of each terminal in the same group of the second terminal, and storing the mapping relation in the database.
The data sharing method provided by the embodiment of the invention can access the second terminal capable of sharing the configuration information in the server and create the mapping relation of the shared second terminal, and is different from the method that each terminal needing the configuration information is accessed in the traditional method, the control of the whole group of terminals can be realized by only selecting one of the same group of equipment, the capacity pressure of the server is reduced, and the repetitive work of developers is reduced.
The second terminal may be an electric appliance terminal capable of receiving and transmitting instructions, such as an air conditioner, a water heater, and a lamp, and meanwhile, compared with the first terminal, the second terminal is an intelligent terminal because of being connected to a server. The method further comprises the construction process of the mapping relation in the database before the terminal sharing request is received, the essence of the mapping relation is a sharing relation, all sharing relations form a sharing model, and in the embodiment of the invention, each terminal needs to meet the following requirements:
(1) The shared terminal, i.e. the device model of the first terminal, must be accessed to the server to become an intelligent network device, and has the functions, attributes, network distribution file, configuration file and the like of the own model.
(2) The device model of the shared terminal, i.e. the second terminal, must not be accessed to the server, not become an intelligent network device, and have no functions, attributes, distribution network documents, configuration files and the like of the own model.
As shown in fig. 2, the terminal of the device model productive codea shares its own functions, attributes and configuration files to the terminals of the device model productive codeb and productive codec, where the terminals of the device model productive codea are shared terminals, i.e. intelligent terminals.
In at least one embodiment of the present invention, each terminal of the same group includes each terminal configured to implement the same function in the same scene.
The data sharing method provided by the embodiment of the invention can bring better effect for a group of two or more terminal devices, because the same group of devices need to present consistent configuration information to the outside to realize the same function, and particularly for a group of devices comprising a plurality of terminals, the configuration flow of the devices is greatly simplified.
It should be noted that the same group of terminals may be a group of air conditioners (divided into indoor units and outdoor units), a group of water heaters (divided into water heaters and water tanks) or other multiple electric appliance terminals with the same model, which are arranged in the same intelligent home scene to complete a function.
In at least one embodiment of the present invention, the storing, as a mapping relationship, the device model of the second terminal and the device models of all terminals in the same group of the second terminal into the database includes:
if the second terminal meets the access rule, determining the equipment model of the second terminal as an access equipment model;
and establishing a mapping relation between the equipment model of the second terminal and the equipment model of each terminal in the same group of the second terminal, and storing the mapping relation in the database.
The data sharing method provided by the embodiment of the invention limits the access rule which needs to be met by the second terminal of the access server, and when the requirement is changed, the embodiment of the invention can adapt to the latest access rule to access the specific terminal, and the expansion capability of the method is very high.
It should be noted that the configurable access rules include rules for each industry to participate in sharing, and the access models can be configured according to the requirements of users and developers.
In at least one embodiment of the present invention, the returning, to the first terminal, configuration information of an access device model in the mapping relationship of the device model further includes: and sending the configuration information returned to the first terminal to other domains of the Internet of things for interaction.
As shown in fig. 3, when the server and different domains of the internet of things perform data interaction through interfaces, the request interface of each model level accesses the lower database to perform model conversion, and if the terminal sending the request configures a sharing model, a configuration file of the shared model is returned.
In at least one embodiment of the present invention, the receiving the sharing request of the first terminal further includes:
and if the access equipment model with the mapping relation with the equipment model does not exist in the database, returning a message of not receiving the configuration information to the first terminal.
The data sharing method provided by the embodiment of the invention does not return configuration information to the terminal without the mapping relation, thereby ensuring the safety of information transmission.
In at least one embodiment of the present invention, the configuration information includes at least one of device basic information, attribute information, alarm information, invalid information, logic constraint rule information, a patch command, and a distribution network document.
The data sharing method provided in the embodiment of the present invention shares all configuration information related to the running and maintenance processes of the terminal, and covers the whole process of sharing, as shown in fig. 4, and provides a time sequence diagram of each step of the data sharing method, as can be obtained according to fig. 4, the process from front configuration by a developer to the whole process of later data sharing includes:
1) A developer selects any indoor unit or outdoor unit of a certain air conditioner to be connected with a server to form an intelligent terminal;
2) The developer configures the sharing relation between the equipment model of other terminals of the air conditioner and the accessed equipment model in a database of the server;
3) The terminal accesses the server, inquires the type of the requested equipment through the sharing mapping relation of the database, and takes the inquired type as a finished product code;
4) And returning configuration information such as functions, attributes, distribution network documents and the like of the model according to the finished product code, and performing data interaction with other domains of the Internet of things.
For the above process 4), the other domains of the internet of things may be an internet of things user domain, a target object domain, a perception control domain, a service providing domain, an operation and maintenance control domain, and a resource exchange domain. The data interaction process refers to interaction through different domains of the Internet of things according to different requests of users or developers for various configuration information.
Aiming at the terminal of the air conditioner, the interaction modes of the terminal for data interaction with different domains of the Internet of things are as follows:
mode one: the App terminal where the user is located calls a rest interface of the server, the interface is made to transmit to obtain a finished product code after a data sharing method, and the distribution network file and the picture configured on the server of the model are returned to the App terminal. When the user binds the intelligent device on the App, the user can be guided to bind the device more clearly.
Mode two: the server performs basic information interaction of the model with the App terminal where the user is located through the RocketMQ, if a mapping relation exists, the server pushes two pieces of basic information of the model to the App terminal where the user is located, and the other fields are identical except that the model name and the finished product code are inconsistent. The meaning of data sharing in the embodiment of the present invention is that all information except self identification (model name, product code) is shared for two types of terminals.
The RocketMQ is a distributed message middleware developed by using java language, is low-delay and high-availability, and has a mass message stacking capability and flexible expansibility.
Mode three: when the cloud of the Internet of things issues commands, the rule engine executes certain commands and calls an interface of the server to acquire configuration files so as to check whether the commands exist and whether constraint relations among the commands exist.
The powerful functions of the internet of things come primarily from its ability to enable users or developers to make more accurate decisions in real time, which are all reflected in notification, automation and predictive maintenance. There is therefore a need for tools that respond in real-time to real-time data, a common approach being a rule engine. The rules engine may perform responsibilities by taking real-time data, reasoning about the data, and invoking an automation or third party API based on the results of the reasoning process. The rule engine is developed by an inference engine and is a component embedded in an application program, which implements the separation of business decisions from application code and the writing of business decisions using predefined semantic modules. And receiving data input, interpreting the business rule, and making a business decision according to the business rule.
Mode four: the scene center of the internet of things calls a server rest interface to acquire the attribute of the model, so that the action of the intelligent device can be defined in various scenes, such as a home-returning scene: when the intelligent door lock is opened, the air conditioner is started, the mode is selected to be an intelligent comfort mode, a fresh air opening mode and the like.
If no terminal in a group of air conditioners is accessed, the equipment model of any terminal under the group of air conditioners is not queried. The same group of terminals which are accessed into the server can complete data interaction with different domains of the Internet of things.
The following describes a data sharing device provided by an embodiment of the present invention with reference to fig. 5, where the data sharing device described below and the data sharing method described above may be referred to correspondingly, and the device is applied to a server, and includes:
the embodiment of the invention also provides a data sharing device, an application and a server, comprising:
a receiving module 501, configured to receive a sharing request of a first terminal, where the sharing request includes a device model;
and the sharing module 502 is configured to determine that if an access device model having a mapping relationship with the device model exists in the database, return configuration information of the access device model to the first terminal.
The data sharing device provided by the embodiment of the invention can share the model functions of the terminals which are accessed to the server to the terminals which are not accessed to the server. The device model of the access terminal and the corresponding device model of the non-access terminal use the same function and configuration file, and the consistent distribution network file, the external command control file, the function model file and the logic constraint file are presented to the outside. Meanwhile, the model name and the product code of the own model of the terminal are reserved. The developer only needs to maintain the equipment model corresponding to one terminal in the server, and the terminal access server corresponding to a plurality of models becomes an intelligent terminal due to the existence of the mapping relation.
Meanwhile, the data sharing device provided by the embodiment of the invention can simplify complicated operation of a developer on the intelligent terminal for the equipment access server comprising a plurality of independent terminals, improve the access efficiency, strictly normalize the equipment access flow, reduce data errors influenced by manual operation and improve the accuracy of accessing the intelligent terminal. When a plurality of body types similar to an air conditioner are accessed, only the access rule of the database needs to be expanded, and the interactive experience of a developer is unchanged.
In at least one embodiment of the present invention, the apparatus further includes a sharing relationship creating module 503, where the sharing relationship creating module 503 is configured to receive a second terminal access request, establish a mapping relationship between a device model of the second terminal and a device model of each terminal in the same group of the second terminal, and store the mapping relationship in the database.
The data sharing device provided by the embodiment of the invention can be used for accessing the second terminal capable of sharing the configuration information in the server and creating the mapping relation of the shared second terminal, and is different from the method that each terminal needing the configuration information is accessed in the traditional method, the control of the whole group of terminals can be realized by only selecting one of the same group of equipment, the capacity pressure of the server is reduced, and the repetitive work of developers is reduced.
The second terminal may be an electric appliance terminal capable of receiving and transmitting instructions, such as an air conditioner, a water heater, and a lamp, and meanwhile, compared with the first terminal, the second terminal is an intelligent terminal because of being connected to a server. The method further comprises the construction process of the mapping relation in the database before the terminal sharing request is received, the essence of the mapping relation is a sharing relation, all sharing relations form a sharing model, and in the embodiment of the invention, each terminal needs to meet the following requirements:
(1) The shared terminal, i.e. the device model of the first terminal, must be accessed to the server to become an intelligent network device, and has the functions, attributes, network distribution file, configuration file and the like of the own model.
(2) The device model of the shared terminal, i.e. the second terminal, must not be accessed to the server, not become an intelligent network device, and have no functions, attributes, distribution network documents, configuration files and the like of the own model.
In at least one embodiment of the present invention, each terminal of the same group includes each terminal configured to implement the same function in the same scene.
The data sharing device provided by the embodiment of the invention can bring better effect for a group of two or more terminal devices, because the same group of devices need to present consistent configuration information to the outside to realize the same function, and particularly for a group of devices comprising a plurality of terminals, the configuration flow of the devices is greatly simplified.
In at least one embodiment of the present invention, in the sharing relationship creating module 503, if the second terminal meets an access rule, the device model of the second terminal is determined as an access device model;
and establishing a mapping relation between the equipment model of the second terminal and the equipment model of each terminal in the same group of the second terminal, and storing the mapping relation in the database.
It should be noted that the same group of terminals may be a group of air conditioners (divided into indoor units and outdoor units), a group of water heaters (divided into water heaters and water tanks) or other multiple electric appliance terminals with the same model, which are arranged in the same intelligent home scene to complete a function.
The data sharing device provided by the embodiment of the invention limits the access rule which needs to be met by the second terminal of the access server, and when the requirement is changed, the embodiment of the invention can adapt to the latest access rule to access the specific terminal, and has high expansion capability.
In at least one embodiment of the present invention, the configuration information includes at least one of device basic information, attribute information, alarm information, invalid information, logic constraint rule information, a patch command, and a distribution network document.
The data sharing device provided in the embodiment of the present invention shares all configuration information related to the running and maintenance processes of the terminal, and covers the whole process of sharing, as shown in fig. 4, and provides a time sequence diagram of each step of the data sharing method, as can be obtained according to fig. 4, the process from front configuration by a developer to the whole process of later data sharing includes:
1) A developer selects any indoor unit or outdoor unit of a certain air conditioner to be connected with a server to form an intelligent terminal;
2) The developer configures the sharing relation between the equipment model of other terminals of the air conditioner and the accessed equipment model in a database of the server;
3) The terminal accesses the server, inquires the type of the requested equipment through the sharing mapping relation of the database, and takes the inquired type as a finished product code;
4) And returning configuration information such as functions, attributes, distribution network documents and the like of the model according to the finished product code, and performing data interaction with other domains of the Internet of things.
For the above process 4), the other domains of the internet of things may be an internet of things user domain, a target object domain, a perception control domain, a service providing domain, an operation and maintenance control domain, and a resource exchange domain. The data interaction process refers to interaction through different domains of the Internet of things according to different requests of users or developers for various configuration information.
The data sharing device provided by the embodiment of the invention shares all configuration information related in the running and maintenance processes of the terminal, covers the whole sharing process, simplifies the complex operation configuration of data by a developer, and automatically completes a large amount of data efficiency requiring manual configuration confirmation by the developer by the program. The high-efficiency access scheme is also provided, so that the user can bind any parts, and can enjoy intelligent control life.
Fig. 6 illustrates a physical schematic diagram of an electronic device, as shown in fig. 6, which may include: processor 610, communication interface (Communications Interface) 620, memory 630, and communication bus 640, wherein processor 610, communication interface 620, and memory 630 communicate with each other via communication bus 640. The processor 610 may invoke logic instructions in the memory 630 to perform a data sharing method comprising the steps of:
receiving a sharing request of a first terminal, wherein the sharing request comprises a device model;
if the access equipment model with the mapping relation with the equipment model exists in the database, the configuration information of the access equipment model is returned to the first terminal.
The electronic equipment provided by the embodiment of the invention can share the model function of the second terminal which is accessed to the server to the first terminal which is not accessed to the server. The same configuration information is used for the device model of the access terminal and its corresponding device model of the non-access terminal. Meanwhile, the model name and the product code of the own model of the terminal are reserved. The developer only needs to maintain the equipment model corresponding to one terminal in the server, and the terminal access server corresponding to a plurality of models becomes an intelligent terminal due to the existence of the mapping relation.
Further, the logic instructions in the memory 630 may be implemented in the form of software functional units and stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product comprising a computer program, the computer program being storable on a non-transitory computer readable storage medium, the computer program, when executed by a processor, being capable of performing the data sharing method provided by the methods described above, the method comprising the steps of:
receiving a sharing request of a first terminal, wherein the sharing request comprises a device model;
if the access equipment model with the mapping relation with the equipment model exists in the database, the configuration information of the access equipment model is returned to the first terminal.
The computer program product provided by the embodiment of the invention can share the model function of the second terminal which is accessed to the server to the first terminal which is not accessed to the server. The same configuration information is used for the device model of the access terminal and its corresponding device model of the non-access terminal. Meanwhile, the model name and the product code of the own model of the terminal are reserved. The developer only needs to maintain the equipment model corresponding to one terminal in the server, and the terminal access server corresponding to a plurality of models becomes an intelligent terminal due to the existence of the mapping relation.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform a data sharing method provided by the above methods, the method comprising the steps of:
receiving a sharing request of a first terminal, wherein the sharing request comprises a device model;
if the access equipment model with the mapping relation with the equipment model exists in the database, the configuration information of the access equipment model is returned to the first terminal.
The non-transitory computer readable storage medium provided by the embodiment of the invention can share the model function of the second terminal which is accessed to the server to the first terminal which is not accessed to the server. The same configuration information is used for the device model of the access terminal and its corresponding device model of the non-access terminal. Meanwhile, the model name and the product code of the own model of the terminal are reserved. The developer only needs to maintain the equipment model corresponding to one terminal in the server, and the terminal access server corresponding to a plurality of models becomes an intelligent terminal due to the existence of the mapping relation.
Those skilled in the art will appreciate that some or all of the functions of some or all of the components in electronic devices and systems according to embodiments of the present invention may be implemented in practice using microprocessors or Digital Signal Processors (DSPs). The present invention may also be embodied as a device or apparatus program (e.g., a PC program and a PC program product) for performing part or all of the methods described herein. Such a program embodying the present invention may be stored on a PC readable medium, or may have the form of one or more signals. Such signals may be downloaded from an internet website, provided on a carrier signal, or provided in any other form.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features but not others included in other embodiments, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments can be used in any combination.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (7)

1. A data sharing method, comprising:
receiving an access request of a second terminal; if the second terminal meets the access rule, determining the equipment model of the second terminal as an access equipment model; the access rules comprise rules of which types can participate in sharing by each industry, and the types of the access equipment are configured according to the requirements of users and developers;
establishing a mapping relation between the equipment model of the second terminal and the equipment model of each terminal in the same group of the second terminal and storing the mapping relation in the database, wherein each terminal in the same group comprises each terminal which is arranged under the same scene and realizes the same function;
receiving a sharing request of a first terminal, wherein the sharing request comprises a device model;
if the access equipment model with the mapping relation with the equipment model exists in the database, the configuration information of the access equipment model is returned to the first terminal.
2. The data sharing method according to claim 1, wherein the returning the configuration information of the access device model to the first terminal further comprises: and sending the configuration information returned to the first terminal to other domains of the Internet of things for interaction.
3. The data sharing method of claim 1, wherein the configuration information includes at least one of device basic information, attribute information, alarm information, invalid information, logic constraint rule information, a patch command, and a distribution network file.
4. The data sharing method according to claim 1, wherein the receiving the sharing request of the first terminal further comprises:
and if the access equipment model with the mapping relation with the equipment model does not exist in the database, returning a message of not receiving the configuration information to the first terminal.
5. A data sharing apparatus, comprising:
the sharing relation creation module is used for receiving a second terminal access request and determining the equipment model of the second terminal as an access equipment model if the second terminal meets an access rule; the access rules comprise rules of which types can participate in sharing by each industry, and the types of the access equipment are configured according to the requirements of users and developers; establishing a mapping relation between the equipment model of the second terminal and the equipment model of each terminal in the same group of the second terminal, and storing the mapping relation in the database;
the receiving module is used for receiving a sharing request of the first terminal, wherein the sharing request comprises a device model;
and the sharing module is used for judging that if the access equipment model with the mapping relation with the equipment model exists in the database, returning the configuration information of the access equipment model to the first terminal.
6. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the data sharing method according to any of claims 1 to 4 when the program is executed.
7. A non-transitory computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when executed by a processor, implements the steps of the data sharing method according to any one of claims 1 to 4.
CN202111394008.7A 2021-11-23 2021-11-23 Data sharing method, device, electronic equipment, storage medium and product Active CN114268513B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111394008.7A CN114268513B (en) 2021-11-23 2021-11-23 Data sharing method, device, electronic equipment, storage medium and product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111394008.7A CN114268513B (en) 2021-11-23 2021-11-23 Data sharing method, device, electronic equipment, storage medium and product

Publications (2)

Publication Number Publication Date
CN114268513A CN114268513A (en) 2022-04-01
CN114268513B true CN114268513B (en) 2023-10-24

Family

ID=80825372

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111394008.7A Active CN114268513B (en) 2021-11-23 2021-11-23 Data sharing method, device, electronic equipment, storage medium and product

Country Status (1)

Country Link
CN (1) CN114268513B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108449723A (en) * 2018-01-15 2018-08-24 深圳科立讯通信有限公司 Talk back equipment sharing method, talk back equipment and computer-readable medium
CN109254913A (en) * 2018-08-13 2019-01-22 北京奇虎科技有限公司 Collaborative share method, apparatus, electronic equipment and computer storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7764699B2 (en) * 2005-05-16 2010-07-27 Cisco Technology, Inc. Method and system using shared configuration information to manage network access for network users
JP4940105B2 (en) * 2007-10-31 2012-05-30 キヤノン株式会社 Information processing apparatus, information processing method, and control program
CN103973899B (en) * 2014-05-23 2015-12-02 努比亚技术有限公司 Method is shared in a kind of mobile terminal and configuration thereof
CN106100891A (en) * 2016-06-30 2016-11-09 北京小米移动软件有限公司 The method and device that intelligent scene is quickly shared
CN111562933B (en) * 2020-04-23 2023-08-01 Tcl空调器(中山)有限公司 Air conditioner upgrading method and air conditioner system
CN112390100A (en) * 2020-10-16 2021-02-23 苏州汇川技术有限公司 Device parameter package sharing method, server and storage medium
CN113553083A (en) * 2021-07-30 2021-10-26 佛山市顺德区美的电子科技有限公司 Program upgrading method and device for air conditioning system, air conditioning system and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108449723A (en) * 2018-01-15 2018-08-24 深圳科立讯通信有限公司 Talk back equipment sharing method, talk back equipment and computer-readable medium
CN109254913A (en) * 2018-08-13 2019-01-22 北京奇虎科技有限公司 Collaborative share method, apparatus, electronic equipment and computer storage medium

Also Published As

Publication number Publication date
CN114268513A (en) 2022-04-01

Similar Documents

Publication Publication Date Title
CN101427239B (en) Building automation system data management
CN110688172B (en) Device function mutual exclusion logic configuration method and device, electronic device and storage medium
WO2020135490A1 (en) Method and apparatus for dynamically building conflict check rule table in smart home
CN112468595B (en) Equipment control method, device and system based on gateway
CN114374602B (en) Master control equipment configuration method and device, cloud server and storage medium
CN109361579A (en) A kind of smart machine control method, system and storage medium
CN110376917A (en) A kind of intelligent home control system and control method based on virtual panel
CN112925219A (en) Method and device for executing smart home scene
CN114019817A (en) Control method and control device of intelligent household equipment and Internet of things system
CN110830334B (en) Household appliance control method, device, system, server and household appliance
CN111818125A (en) Control method of whole-plant merchant RPA robot
CN110794773A (en) Click-type scene creating method and device
CN114268513B (en) Data sharing method, device, electronic equipment, storage medium and product
CN108366003B (en) Home service framework creating method, calling method, device, server and medium
CN113625586A (en) Method and system for controlling smart home based on gateway
CN110808037B (en) Voice control method and device, household appliance and storage medium
CN112817593A (en) Control page display method and device, storage medium and electronic device
CN112068451A (en) Household electrical appliance intelligent control system based on Aliyun Internet of things
CN111741085A (en) Processing method and device of intelligent equipment, storage medium and electronic device
JPWO2016113870A1 (en) Home control device and home control system
CN108206784B (en) Network topology generation method and device for smart home
JP2001014386A (en) Facility management system
CN113507701B (en) Method, system, terminal and storage medium for simulating Bluetooth peripheral through parameter configuration
JP2019184153A (en) Network system, server and information processing method
CN112532750B (en) Big data push processing method and system and cloud platform

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