Search

CN-114968548-B - Information synchronization method and device of central control screen and server

CN114968548BCN 114968548 BCN114968548 BCN 114968548BCN-114968548-B

Abstract

The application belongs to the technical field of household appliances, and particularly relates to an information synchronization method, device and server for a central control screen. The application aims to solve the problems that the information synchronization needs to consume system resources of a central control screen and the information is updated in time. The method comprises the steps of obtaining a central control screen ID and corresponding equipment information to be monitored, subscribing change information of all electrical equipment in an IOT data platform, wherein the change information is modification information of all electrical equipment, sent by a user through an APP, received by the IOT data platform, and determining change information corresponding to the equipment information from the change information of all electrical equipment, and sending the change information to a corresponding central control screen through an IOT message channel according to the central control screen ID, so that the central control screen renders the change information on a page after receiving the change information.

Inventors

  • HU WENQING
  • WANG ZHONGYAN
  • LI HAIDONG
  • GAO YUKUN

Assignees

  • 青岛经济技术开发区海尔热水器有限公司
  • 海尔智家股份有限公司

Dates

Publication Date
20260512
Application Date
20211029

Claims (8)

  1. 1. An information synchronization method of a central control screen, which is characterized in that the method is applied to a server and comprises the following steps: the method comprises the steps of obtaining a central control screen ID to be monitored and corresponding equipment information, wherein the equipment information comprises at least one first electrical equipment ID, a first family ID and at least one first user ID; Subscribing change information of all electrical equipment in the IOT data platform, wherein the change information is modification information of all electrical equipment, which is received by the IOT data platform and sent by a user through an APP, and comprises electrical equipment state change information, family scene change information and family change information to which the user belongs; Determining change information corresponding to the equipment information from the change information of all the electrical equipment, and sending the change information to a corresponding central control screen through an IOT message channel according to the central control screen ID, so that the central control screen renders the change information on a page after receiving the change information, and the central control screen only receives the information without executing a timing refreshing task; Determining change information corresponding to the device information from the change information of all the electrical devices, including: Determining all second electrical equipment IDs corresponding to the electrical equipment state change information, screening all second electrical equipment IDs identical to the first electrical equipment ID, and determining the electrical equipment state change information corresponding to the screened second electrical equipment ID as first change information corresponding to the equipment information; Determining all second family IDs corresponding to the family scene change information, screening out all second family IDs identical to the first family ID, and determining family scene change information corresponding to the screened second family ID as second change information corresponding to the equipment information; Determining all second user IDs corresponding to the family change information of the user, and screening out all second user IDs identical to the first user ID; and determining third change information corresponding to the equipment information according to family change information of the user corresponding to the screened second user ID.
  2. 2. The method of claim 1, wherein subscribing to change information for all appliances in the IOT data platform comprises: Subscribing the state change information of the electrical equipment through an intranet kafka message queue opened by an IOT data platform; Subscribing the family scene change information through an SDK opened by the IOT data platform; And subscribing the family change information of the user through an IOT data platform open interface.
  3. 3. The method according to claim 1 or 2, wherein determining change information corresponding to the device information from change information of all electrical devices, comprises: Determining the priority sequence of state change information, family scene change information and family change information of the electrical equipment; determining first change information, second change information and third change information corresponding to the equipment information from the change information of all the electrical equipment according to the priority order; correspondingly, the change information is sent to the corresponding central control screen through the IOT message channel according to the central control screen ID, and the method comprises the following steps: And determining the transmission sequence of the first change information, the second change information and the third change information according to the priority sequence, and transmitting the first change information, the second change information and the third change information to a central control screen corresponding to the central control screen ID according to the transmission sequence.
  4. 4. The method of claim 3, wherein transmitting the change information to the corresponding center control screen through the IOT message channel according to the center control screen ID comprises: the server registers to the message channel; formulating a message pushing template, and assembling the change information with the message pushing template to obtain assembled data; And sending the assembled data to the central control screen of the corresponding registered message channel through the message channel according to the central control screen ID.
  5. 5. An information synchronization device of a central control panel, for implementing the information synchronization method of the central control panel according to any one of claims 1 to 4, characterized in that the device comprises: the acquisition module is used for acquiring the ID of the central control screen to be monitored and corresponding equipment information; the subscription module is used for subscribing the change information of all the electrical equipment in the IOT data platform, wherein the change information is the modification information of all the electrical equipment, which is received by the IOT data platform and sent by a user through the APP; The processing module is used for determining change information corresponding to the equipment information from the change information of all the electrical equipment, and sending the change information to the corresponding central control screen through the IOT message channel according to the central control screen ID, so that the central control screen renders the change information on a page after receiving the change information.
  6. 6. The server is characterized by comprising a communication module, a memory and at least one processor; The communication module is used for carrying out data transmission with the IOT data platform; The memory stores computer-executable instructions; The at least one processor executing computer-executable instructions stored in the memory causes the at least one processor to perform the method of information synchronization for a central control screen as claimed in any one of claims 1 to 4.
  7. 7. A computer readable storage medium, wherein computer executable instructions are stored in the computer readable storage medium, and when the processor executes the computer executable instructions, the information synchronization method of the central control screen according to any one of claims 1-4 is implemented.
  8. 8. A computer program product comprising a computer program which, when executed by a processor, implements the method of information synchronization of a central control screen according to any one of claims 1-4.

Description

Information synchronization method and device of central control screen and server Technical Field The application belongs to the technical field of household appliances, and particularly relates to an information synchronization method, device and server for a central control screen. Background Along with the development of internet technology and the improvement of people's living standard, intelligent electrical equipment has gradually got into ordinary family, also more and more diversified to intelligent electrical control mode, not only can control electrical equipment through APP, can also control electrical equipment through the well accuse screen that sets up at home. After the user changes the information of the electrical equipment through the APP, the central control screen needs to synchronize the changed information. In the prior art, in order to save cost, the central control screen is realized based on a linux system, and the method adopted when the central control screen based on the linux system performs information synchronization is that the central control screen performs task refreshing at regular time, such as performing refreshing tasks every two minutes, and if information updating exists, modifying information in the central control screen. The existing information synchronization method of the central control screen needs to consume system resources of the central control screen, and the updating process is not enough in time. Disclosure of Invention In order to solve the problems in the prior art, namely to solve the problems that the existing information synchronization method of the central control screen needs to consume system resources of the central control screen and has insufficient information updating time, the application provides the information synchronization method, the device and the server of the central control screen, the server subscribes to the change information of electrical equipment in an IOT data platform, screens out the information corresponding to the central control screen, the central control screen only receives the information, the system resources of the central control screen are not needed to be consumed, and the server can subscribe to the change information in real time, so that the central control screen can update the information in time. In a first aspect, an embodiment of the present application provides an information synchronization method for a central control panel, where the method is applied to a server, and the method includes: acquiring a central control screen ID and corresponding equipment information to be monitored; Subscribing change information of all electrical equipment in the IOT data platform, wherein the change information is modification information of all electrical equipment, which is received by the IOT data platform and sent by a user through an APP; and determining change information corresponding to the equipment information from the change information of all the electrical equipment, and sending the change information to the corresponding central control screen through an IOT message channel according to the central control screen ID, so that the central control screen renders the change information on a page after receiving the change information. Optionally, the equipment information comprises at least one first electrical equipment ID, and the change information of the electrical equipment comprises electrical equipment state change information, wherein the determination of the change information corresponding to the equipment information from the change information of all electrical equipment comprises the following steps: Determining all second electrical equipment IDs corresponding to the electrical equipment state change information, and screening out all second electrical equipment IDs identical to the first electrical equipment IDs; And determining the state change information of the electrical equipment corresponding to the screened second electrical equipment ID as first change information corresponding to the equipment information. Optionally, the device information further comprises a first family ID, the change information of the electrical equipment further comprises family scene change information, and the method comprises the steps of determining the change information corresponding to the device information from the change information of all the electrical equipment, wherein the method comprises the following steps: Determining all second family IDs corresponding to the family scene change information, and screening out all second family IDs identical to the first family ID; and determining the family scene change information corresponding to the screened second family ID as second change information corresponding to the equipment information. Optionally, the equipment information further comprises at least one first user ID, the change information of the electrical equipment further comprises