WO2021196963A1 - 信息同步方法、终端及信息同步系统 - Google Patents

信息同步方法、终端及信息同步系统 Download PDF

Info

Publication number
WO2021196963A1
WO2021196963A1 PCT/CN2021/078890 CN2021078890W WO2021196963A1 WO 2021196963 A1 WO2021196963 A1 WO 2021196963A1 CN 2021078890 W CN2021078890 W CN 2021078890W WO 2021196963 A1 WO2021196963 A1 WO 2021196963A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
target
control request
information
information synchronization
Prior art date
Application number
PCT/CN2021/078890
Other languages
English (en)
French (fr)
Inventor
李红阳
邹祥祥
杨帅
武乃福
姜苏珈
张哲�
Original Assignee
京东方科技集团股份有限公司
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 京东方科技集团股份有限公司 filed Critical 京东方科技集团股份有限公司
Priority to US17/626,537 priority Critical patent/US11996952B2/en
Publication of WO2021196963A1 publication Critical patent/WO2021196963A1/zh

Links

Images

Classifications

    • 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
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • 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
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • 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
    • H04L12/283Processing of data at an internetworking point of a home automation network
    • H04L12/2834Switching of information between an external network and a home network

Definitions

  • the present disclosure relates to the field of communication technology, and in particular to an information synchronization method, terminal and information synchronization system.
  • a middle station device needs to be established to synchronize the status between multiple terminals.
  • the main function of the middle station device is to centrally distribute messages.
  • terminal 1 sends a request to the server, such as a request to turn on a light
  • the server can only feed back status information to terminal 1, for example, the light icon of terminal 1 is on, and the status of terminal 1 needs to be synchronized to terminal 2.
  • terminal 3 that is, terminal 2 and terminal 3 also need to light up the light icon corresponding to terminal 1 on their own page. Therefore, the middle station device is required to distribute feedback information to the three terminals at the same time.
  • the present disclosure provides an information synchronization method, terminal and information synchronization system.
  • the present disclosure provides an information synchronization method, which is applied to a first terminal in an information synchronization system, the information synchronization system further includes a control server and at least one second terminal, the first terminal and the at least one second terminal Being in the same local area network, the method includes:
  • the target terminal is the first terminal or any of the second terminals;
  • the status feedback information is sent to each of the second terminals, so that each of the second terminals updates the information of each of the second terminals according to the status feedback information.
  • the target terminal is the first terminal, and before sending the control request of the target terminal to the control server, the method further includes:
  • the target terminal is a target second terminal among the second terminals, and before sending the control request of the target terminal to the control server, the method further includes:
  • the sending the control request of the target terminal to the control server includes:
  • the sending terminal includes the target second terminal, sending the control request of the target second terminal sent by the target second terminal to the control server;
  • sending terminal does not include the target second terminal, sending the control request of the target second terminal forwarded by the second terminal other than the target second terminal to the control server.
  • the first terminal has permission to send information to the control server.
  • the first terminal and the second terminal communicate through a user datagram protocol.
  • the user datagram protocol communication is performed between the first terminal and the second terminal by establishing a socket connection.
  • the present disclosure also discloses an information synchronization method, which is applied to at least one second terminal in an information synchronization system, the information synchronization system further includes a control server and a first terminal, the first terminal and the at least one second terminal The terminal is in the same local area network, and the method includes:
  • the status feedback information is generated and sent to the first terminal by the control server when receiving a control request of the target terminal sent by the first terminal;
  • the target terminal is the first terminal or any of the second terminals;
  • the information of the second terminal is updated.
  • the target terminal is the second terminal, and before the receiving status feedback information sent by the first terminal, the method further includes:
  • the method further includes:
  • the target terminal is the second terminal, and before the receiving status feedback information sent by the first terminal, the method further includes:
  • the present disclosure also discloses a terminal, including a processor, a memory, and a computer program stored on the memory and capable of running on the processor, and when the computer program is executed by the processor, the above-mentioned Steps of the information synchronization method executed by the first terminal.
  • the present disclosure also discloses a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the information synchronization method executed by the first terminal as described above are realized.
  • the present disclosure also discloses a terminal, including a processor, a memory, and a computer program stored on the memory and capable of running on the processor, and when the computer program is executed by the processor, the above-mentioned Steps of the information synchronization method executed by the second terminal.
  • the present disclosure also discloses a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the information synchronization method executed by the second terminal as described above are realized.
  • the present disclosure also discloses an information synchronization system.
  • the information synchronization system includes a control server, a first terminal and at least one second terminal, and the first terminal and the at least one second terminal are in the same local area network;
  • the first terminal is configured to send a control request of the target terminal to the control server; update the information of the first terminal according to the status feedback information sent by the control server, and send the status feedback information Sent to each of the second terminals;
  • the target terminal is the first terminal or any of the second terminals;
  • the control server is configured to generate status feedback information according to the control request, and send the status feedback information to the first terminal;
  • the second terminal is configured to update the information of the second terminal according to the status feedback information.
  • the target terminal is a target second terminal among the second terminals, and the first terminal is further configured to:
  • the first terminal is further configured to:
  • the sending terminal includes the target second terminal, sending the control request of the target second terminal sent by the target second terminal to the control server;
  • sending terminal does not include the target second terminal, sending the control request of the target second terminal forwarded by the second terminal other than the target second terminal to the control server.
  • the target terminal is the second terminal, and the second terminal is further configured to:
  • the second terminal is also used to:
  • the target terminal is the second terminal, and the second terminal is further configured to:
  • the present disclosure also provides a computer program, including computer-readable code, which when the computer-readable code runs on a terminal, causes the terminal to execute the information synchronization method performed by the first terminal as described above.
  • the present disclosure also provides a computer program, including computer-readable code, which when the computer-readable code runs on a terminal, causes the terminal to execute the information synchronization method performed by the second terminal as described above.
  • Figure 1 shows a structural block diagram of an information synchronization system in related technologies
  • Figure 2 shows a flow chart of the steps of an information synchronization method according to an embodiment of the present disclosure
  • Fig. 3 shows a structural block diagram of an information synchronization system according to an embodiment of the present disclosure
  • Fig. 4 shows a flowchart of another information synchronization method according to an embodiment of the present disclosure
  • FIG. 5 shows a flowchart of the steps of a third information synchronization method according to an embodiment of the present disclosure
  • Fig. 6 shows a flow chart of the fourth information synchronization method according to an embodiment of the present disclosure
  • FIG. 7 shows a schematic diagram of a specific information synchronization system according to an embodiment of the present disclosure
  • FIG. 8 schematically shows a block diagram of a terminal for executing the method according to the present disclosure.
  • Fig. 9 schematically shows a storage unit for holding or carrying program codes for implementing the method according to the present disclosure.
  • the information synchronization system includes a control server 10, a first terminal 20, and at least one second terminal 30.
  • the first terminal 20 and the second terminal 30 is in the same local area network 01, that is, the first terminal 20 and the second terminal 30 may be distributed terminals in the same local area network 01.
  • the information synchronization system may specifically be a smart home system
  • the control server 10 may be a home control server
  • both the first terminal 20 and the second terminal 30 may be home control terminals, such as home control panels.
  • the control operation of turning on the A light on the first terminal 20 can be controlled
  • the A light is turned on.
  • the icon of the A light can be lit on the page of the first terminal 20.
  • the status of the A light needs to be synchronized on the remaining terminals in the smart home system, that is, the smart home needs to be synchronized.
  • the A lamp icon on the remaining terminal pages in the system is also lit to achieve the synchronization of the information of the A lamp on all terminals.
  • the method may include the following steps:
  • Step 101 The first terminal sends a control request of the target terminal to the control server; the target terminal is the first terminal or any second terminal.
  • the target terminal may be the first terminal or any second terminal in the information synchronization system, that is, the target terminal may be any terminal in the information synchronization system.
  • the first terminal can obtain the control request of the target terminal and send the control request of the target terminal to the external network Control server.
  • Step 102 The control server generates status feedback information according to the control request, and sends the status feedback information to the first terminal.
  • the control server may receive the control request of the target terminal sent by the first terminal, and may further generate state feedback information according to the control request of the target terminal.
  • the control request of the target terminal may be a light-on control request for the A light
  • the control server may generate status feedback information indicating that the A light has been turned on. After that, the control server may return the status feedback information to the first terminal.
  • Step 103 The first terminal receives the status feedback information sent by the control server, and updates the information of the first terminal according to the status feedback information.
  • the first terminal may receive the status feedback information sent by the control server.
  • the information of the first terminal may specifically be page information of the first terminal, such as the lighting state of an icon on the page of the first terminal, which is not specifically limited in the embodiment of the present disclosure.
  • the status feedback information is used to indicate that the A light has been turned on, and the first terminal can turn on the A light icon on its own page from dark to light according to the status feedback information, so that the user can view it on the page of the first terminal The A lamp icon is on, so you know that the A lamp is turned on.
  • Step 104 The first terminal sends the status feedback information to each second terminal, so that the second terminal updates the information of the second terminal according to the status feedback information.
  • the first terminal after receiving the status feedback information sent by the control server, the first terminal can also send the status feedback information to each second terminal in the information synchronization system, so that the second terminal can feedback the information according to the status To update the information of the second terminal.
  • the information of the second terminal may specifically be page information of the second terminal, such as the lighting state of an icon on the page of the second terminal, which is not specifically limited in the embodiment of the present disclosure.
  • Step 105 The second terminal receives the status feedback information sent by the first terminal.
  • each second terminal in the information synchronization system can receive the status feedback information sent by the first terminal.
  • Step 106 The second terminal updates the information of the second terminal according to the status feedback information.
  • each second terminal can change the A light icon on its own page according to the status feedback information. Turn on from dark, so that the user can also see that the A lamp icon has been lit on the page of each second terminal, so as to know that the A lamp has been turned on. Both the first terminal and the second terminal have lit the A lamp icon, that is, each terminal in the information synchronization system has realized the information synchronization of the A lamp status, and the user can use any terminal in the information synchronization system , Check the current status of A light.
  • the first terminal has a license to send information to the control server. That is to say, it is possible to only issue a license permitting information to be sent to the control server to the first terminal in the information synchronization system, so that the first terminal in the information synchronization system can act as a route and forward other information in the information synchronization system to the control server.
  • the control request of the second terminal, and the status feedback information returned by the control server is forwarded to each second terminal.
  • the first terminal and the second terminal may communicate with each other through User Datagram Protocol (UDP, User Datagram Protocol).
  • UDP User Datagram Protocol
  • the UDP protocol has the advantage of higher transmission efficiency, so it has a very wide range of applications in wireless networks.
  • UDP communication can be performed between the first terminal and the second terminal by establishing a socket (Socket) connection.
  • Socket Socket
  • both the sender and the receiver must create a Socket object and specify the DatagramPacket data packet to store the data to be sent.
  • a fixed port is monitored.
  • the sender can call the send method of the Socket object to send data packets, and the receiver can use the receive() method to receive the sent data packets.
  • receive() also has the effect of blocking monitoring.
  • the sender of data can include the following steps:
  • the recipient of the data can include the following steps:
  • the data packet includes information such as the receiver ID, the sender ID, the user's nickname, the user's IP address, and the time of receiving the data packet;
  • Socket connection operation steps of the sender and the receiver are only an exemplary description, and do not limit the present disclosure.
  • the specific process of establishing a Socket connection for UDP communication can refer to related technologies, which will not be described in further detail in the embodiments of the present disclosure.
  • the control request of any terminal in the information synchronization system can be sent to the control server through the first terminal in the information synchronization system. Therefore, it is only necessary to issue a license to the first terminal, without The license is issued to other terminals in the information synchronization system, thereby saving the license cost of the entire system.
  • the status feedback information returned by the control server according to the control request can also be synchronized to each terminal in the information synchronization system through the first terminal, so that each terminal in the information synchronization system can update itself according to the status feedback information. In this way, there is no need to establish a middle station equipment for centrally distributing status feedback information, which saves the establishment and maintenance costs of middle station equipment.
  • Fig. 4 shows a step flow chart of another information synchronization method according to an embodiment of the present disclosure.
  • the method may further include the following steps :
  • Step 107 The first terminal generates a control request of the first terminal.
  • the target terminal is the first terminal in the information synchronization system, that is, if the user performs a control operation on the first terminal, the first terminal can generate a control request. After that, the first terminal can send its own control request to the control server.
  • FIG. 5 shows a step flow chart of a third information synchronization method according to an embodiment of the present disclosure.
  • the method can also include the following steps:
  • Step 108 The first terminal receives the control request generated by the target second terminal.
  • the target terminal is the target second terminal in the information synchronization system.
  • the target second terminal is any second terminal, that is, the user performs a control operation on the target second terminal, then the target second terminal A control request can be generated and sent to the first terminal. After that, the first terminal can send the control request generated by the target second terminal to the control server.
  • the method may further include the following steps: the second terminal generates the control request of the second terminal; the second terminal sends the control request of the second terminal Sent to the first terminal.
  • the target terminal as the target second terminal as an example, the above steps are:
  • Step 109 The target second terminal generates a control request of the target second terminal.
  • Step 110 The target second terminal sends a control request of the target second terminal to the first terminal.
  • the first terminal can receive the control request directly sent by the target second terminal and generated by the target second terminal itself.
  • Fig. 6 shows a step flow chart of the fourth information synchronization method according to an embodiment of the present disclosure.
  • the method may further include the following steps: The control request of the second terminal is forwarded to each of the remaining second terminals in the information synchronization system.
  • the above steps are:
  • Step 111 The target second terminal forwards the control request of the target second terminal to each of the remaining second terminals in the information synchronization system.
  • the first terminal and the target second terminal can communicate through the UDP protocol.
  • the UDP protocol has a fast data transmission speed, the reliability of the data transmission is low, that is, there will be data loss. Possibility of package. Therefore, in order to improve the reliability of data transmission between terminals, a mutual verification mechanism between terminals is added.
  • each second terminal in the information synchronization system is generating After owning the control request, you can send the control request directly to the first terminal, and you can also forward your own control request to each of the remaining second terminals in the information synchronization system at the same time, so that each of the remaining second terminals The terminal forwards the control request to the first terminal, so as to avoid the problem of packet loss in the process of sending the control request to the second terminal that generates the control request.
  • the method may further include the following steps: the second terminal receives the information generated by any other second terminal in the information synchronization system The second terminal forwards the control request generated by any other second terminal in the information synchronization system to the first terminal.
  • the target terminal as the target second terminal as an example, that is, after the target second terminal forwards the control information generated by itself to each of the remaining second terminals in the information synchronization system, each of the remaining second terminals in the information synchronization system Both terminals can receive the control request generated and sent by the target second terminal, and each of the remaining second terminals can forward the control request of the target second terminal to the first terminal.
  • step 101 may specifically include: the first terminal determines the sending terminal of the control request generated by the target second terminal; when the sending terminal includes the target second terminal, the first terminal sends the target second terminal sent by the target second terminal.
  • the control request of the terminal is sent to the control server; in the case that the sending terminal does not include the target second terminal, the first terminal sends the control request of the target second terminal forwarded by the second terminal other than the target second terminal to the control server.
  • the first terminal may parse the packet header of each received control request, so as to determine which second terminal is the sender of each control request. In the case that the data of each second terminal is not lost, the first terminal can receive the control request generated by the target second terminal, and can also receive the target second terminal forwarded by each of the remaining second terminals. The control request of the terminal. In this case, the first terminal will automatically ignore the control request forwarded by each of the remaining second terminals, and send the control request sent by the target second terminal to the control server.
  • the target second terminal loses packets, if the first terminal cannot receive the control request generated by the target second terminal, the first terminal will forward the control of any of the remaining second terminals.
  • the request is sent to the control server.
  • the first terminal in the control request received by the first terminal, if the sender of the control request is the generator of the control request, the first terminal will send the control request with the sender as the generator to the control server, Ignore other control requests. If there is no sender of the control request as the generator of the control request, the first terminal will send any forwarded control request to the control server.
  • the first terminal may specifically It is the terminal 2, and the terminal 2 has a license for sending information to the control server.
  • the second terminal may include the terminal 1, the terminal 3, and the terminal 4.
  • the terminal 2 can directly send the terminal 2 control request to the control server, and then the control server can generate status feedback information according to the terminal 2 control request, and send the status feedback information to the terminal 2.
  • the terminal 2 can update the page information of the terminal 2 according to the status feedback information.
  • the terminal 2 can also send the status feedback information to the terminal 1, the terminal 3 and the terminal 4, and the terminal 1 receives the status feedback information.
  • the page information of the terminal 1 can be updated according to the status feedback information.
  • the terminal 3 receives the status feedback information
  • the page information of the terminal 3 can be updated according to the status feedback information.
  • the terminal 4 receives the status feedback information
  • the page information of the terminal 3 can be updated according to the status feedback. Information, the page information of the terminal 4 is updated.
  • the terminal 4 can send the terminal 4 control request to the terminal 2.
  • the terminal 4 will also send the terminal 4 control request to the terminal 1 and The terminal 3 and further the terminal 1 may forward the terminal 4 control request to the terminal 2, and the terminal 3 may also forward the terminal 4 control request to the terminal 2.
  • terminal 2 receives the terminal 4 control request sent by terminal 4, it will automatically ignore the terminal 4 control request forwarded by terminal 1 and terminal 3. If terminal 2 does not receive the terminal 4 control request sent by terminal 4, it will execute the terminal The terminal 4 control request forwarded by 1 or terminal 3 improves the reliability of UDP packet transmission.
  • the first terminal may send the control request of the target terminal in the information synchronization system to the control server. Then, the control server may generate status feedback information according to the control request, and return the status feedback information to the first terminal. Terminal, the first terminal can update the information of the first terminal according to the status feedback information, and send the status feedback information to each second terminal, so that each second terminal can update its own information according to the status feedback information to realize each Synchronization of terminal information.
  • the control request of any terminal in the information synchronization system can be sent to the control server through the first terminal in the information synchronization system. Therefore, it is only necessary to issue a license to the first terminal, which saves The licensing cost of the entire system.
  • the status feedback information returned by the control server according to the control request can also be synchronized to each terminal in the information synchronization system through the first terminal. In this way, there is no need to establish a middle station device for centrally distributing status feedback information, which saves time. The cost of establishing and maintaining a piece of equipment.
  • the embodiment of the present disclosure also provides an information synchronization system.
  • the information synchronization system includes a control server 10, a first terminal 20, and at least one second terminal 30.
  • the terminal 30 is in the same local area network 01;
  • the first terminal 20 is configured to send a control request of the target terminal to the control server; according to the status feedback information sent by the control server, update the information of the first terminal and feed back the status Information is sent to each of the second terminals; the target terminal is the first terminal or any of the second terminals;
  • the control server 10 is configured to generate status feedback information according to the control request, and send the status feedback information to the first terminal;
  • the second terminal 30 is configured to update the information of the second terminal according to the status feedback information.
  • the first terminal is further configured to:
  • the first terminal is further configured to:
  • the first terminal is specifically configured to:
  • the sending terminal includes the target second terminal, sending the control request of the target second terminal sent by the target second terminal to the control server;
  • sending terminal does not include the target second terminal, sending the control request of the target second terminal forwarded by the second terminal other than the target second terminal to the control server.
  • the first terminal has permission to send information to the control server.
  • the first terminal and the second terminal communicate through a user datagram protocol.
  • the target terminal is the second terminal, and the second terminal is further configured to:
  • the second terminal is also used to:
  • the target terminal is the second terminal, and the second terminal is further configured to further include:
  • the first terminal may send the control request of the target terminal in the information synchronization system to the control server. Then, the control server may generate status feedback information according to the control request, and return the status feedback information to the first terminal. Terminal, the first terminal can update the information of the first terminal according to the status feedback information, and send the status feedback information to each second terminal, so that each second terminal can update its own information according to the status feedback information to realize each Synchronization of terminal information.
  • the control request of any terminal in the information synchronization system can be sent to the control server through the first terminal in the information synchronization system. Therefore, it is only necessary to issue a license to the first terminal, which saves The licensing cost of the entire system.
  • the status feedback information returned by the control server according to the control request can also be synchronized to each terminal in the information synchronization system through the first terminal. In this way, there is no need to establish a middle station device for centrally distributing status feedback information, which saves time. The cost of establishing and maintaining a piece of equipment.
  • the embodiment of the present disclosure also discloses a terminal, including a processor, a memory, and a computer program stored on the memory and capable of running on the processor.
  • a terminal including a processor, a memory, and a computer program stored on the memory and capable of running on the processor.
  • the computer program is executed by the processor, the above The steps of the information synchronization method described.
  • the embodiment of the present disclosure also discloses a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the information synchronization method as described above are realized.
  • the device embodiments described above are merely illustrative.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the objectives of the solutions of the embodiments. Those of ordinary skill in the art can understand and implement it without creative work.
  • the various component embodiments of the present disclosure may be implemented by hardware, or by software modules running on one or more processors, or by a combination of them.
  • a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in the terminal according to the embodiments of the present disclosure.
  • DSP digital signal processor
  • the present disclosure can also be implemented as a device or device program (for example, a computer program and a computer program product) for executing part or all of the methods described herein.
  • Such a program for realizing the present disclosure may be stored on a computer-readable medium, or may have the form of one or more signals.
  • Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
  • FIG. 8 shows a terminal that can implement the method according to the present disclosure.
  • the terminal traditionally includes a processor 1010 and a computer program product in the form of a memory 1020 or a computer readable medium.
  • the memory 1020 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • the memory 1020 has a storage space 1030 for executing program codes 1031 of any method steps in the above methods.
  • the storage space 1030 for program codes may include various program codes 1031 respectively used to implement various steps in the above method. These program codes can be read from or written into one or more computer program products.
  • Such computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards, or floppy disks.
  • Such a computer program product is usually a portable or fixed storage unit as described with reference to FIG. 9.
  • the storage unit may have storage segments, storage spaces, etc. arranged similarly to the storage 1020 in the terminal of FIG. 8.
  • the program code can be compressed in an appropriate form, for example.
  • the storage unit includes computer-readable codes 1031', that is, codes that can be read by, for example, a processor such as 1010, which, when run by a terminal, cause the terminal to perform the steps in the method described above.

Landscapes

  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

信息同步方法、终端及系统,涉及通信技术领域。其中,该方法包括:第一终端将目标终端的控制请求发送至控制服务器;第一终端接收控制服务器的状态反馈信息,根据状态反馈信息,更新第一终端的信息;第一终端将状态反馈信息发送至每个第二终端,以使第二终端根据状态反馈信息,更新第二终端的信息。

Description

信息同步方法、终端及信息同步系统
相关申请的交叉引用
本公开要求在2020年03月30日提交中国专利局、申请号为202010239147.1、名称为“一种信息同步方法、终端及信息同步系统”的中国专利申请的优先权,其全部内容通过引用结合在本公开中。
技术领域
本公开涉及通信技术领域,特别是涉及一种信息同步方法、终端及信息同步系统。
背景技术
如今,随着智能家居的兴起,各种智能家居硬件已经广泛的进入普通家庭。在分布式的智能家居控制面板项目中,需要在家庭中的多个位置分别安装控制面板等终端,从而也就需要多个终端向家居控制服务器发送指令或请求,而每个终端都需要一个允许向家居控制服务器发送信息的许可(license)。
此外,还需要建立中台设备来进行多个终端间的状态同步,中台设备的主要作用是集中分发消息。参照图1,若终端1给服务器发请求,例如点亮灯的请求,则服务器只能给终端1反馈状态信息,例如终端1灯图标点亮,而由于终端1的状态也需要同步到终端2和终端3,也即是终端2和终端3也需要自己页面上的终端1对应的灯图标点亮,因此,便需要中台设备向3个终端同时分发反馈信息。
概述
本公开提供一种信息同步方法、终端及信息同步系统。
本公开提供了一种信息同步方法,应用于信息同步系统中的第一终端,所述信息同步系统还包括控制服务器和至少一个第二终端,所述第一终端和所述至少一个第二终端处于同一局域网,所述方法包括:
将目标终端的控制请求发送至所述控制服务器;所述目标终端为所述第一终端或任一所述第二终端;
接收所述控制服务器发送的状态反馈信息,并根据所述状态反馈信息,更新所述第一终端的信息;
将所述状态反馈信息发送至每个所述第二终端,以使每个所述第二终端根据所述状态反馈信息,更新每个所述第二终端的信息。
可选地,所述目标终端为所述第一终端,所述将目标终端的控制请求发 送至所述控制服务器之前,还包括:
生成所述第一终端的控制请求。
可选地,所述目标终端为所述第二终端中的目标第二终端,所述将目标终端的控制请求发送至所述控制服务器之前,还包括:
接收所述目标第二终端生成的控制请求。
可选地,所述将目标终端的控制请求发送至所述控制服务器,包括:
确定所述目标第二终端生成的控制请求的发送终端;
在所述发送终端包括所述目标第二终端的情况下,将所述目标第二终端发送的所述目标第二终端的控制请求发送至所述控制服务器;
在所述发送终端不包括所述目标第二终端的情况下,将所述目标第二终端之外的所述第二终端转发的所述目标第二终端的控制请求发送至所述控制服务器。
可选地,所述第一终端具有向所述控制服务器发送信息的许可。
可选地,所述第一终端与所述第二终端之间通过用户数据报协议进行通信。
可选地,所述第一终端与所述第二终端之间通过建立套接字连接进行用户数据报协议通信。
本公开还公开了一种信息同步方法,应用于信息同步系统中的至少一个第二终端,所述信息同步系统还包括控制服务器和第一终端,所述第一终端和所述至少一个第二终端处于同一局域网,所述方法包括:
接收所述第一终端发送的状态反馈信息;所述状态反馈信息为所述控制服务器在接收到所述第一终端发送的目标终端的控制请求时,生成并发送至所述第一终端的;所述目标终端为所述第一终端或任一所述第二终端;
根据所述状态反馈信息,更新所述第二终端的信息。
可选地,所述目标终端为所述第二终端,所述接收所述第一终端发送的状态反馈信息之前,还包括:
生成所述第二终端的控制请求;
将所述第二终端的控制请求发送至所述第一终端。
可选地,所述生成所述第二终端的控制请求之后,还包括:
将所述第二终端的控制请求转发至所述信息同步系统中其余的每个所述第二终端。
可选地,所述目标终端为所述第二终端,所述接收所述第一终端发送的状态反馈信息之前,还包括:
接收所述信息同步系统中其余的任一所述第二终端生成并发送的控制请求;
将所述信息同步系统中其余的任一所述第二终端生成的控制请求转发至 所述第一终端。
本公开还公开了一种终端,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如上所述的第一终端执行的信息同步方法的步骤。
本公开还公开了一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如上所述的第一终端执行的信息同步方法的步骤。本公开还公开了一种终端,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如上所述的第二终端执行的信息同步方法的步骤。
本公开还公开了一种计算机可读存储介质,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如上所述的第二终端执行的信息同步方法的步骤。
本公开还公开了一种信息同步系统,所述信息同步系统包括控制服务器、第一终端和至少一个第二终端,所述第一终端和所述至少一个第二终端处于同一局域网;
所述第一终端,用于将目标终端的控制请求发送至所述控制服务器;根据所述控制服务器发送的所述状态反馈信息,更新所述第一终端的信息,并将所述状态反馈信息发送至每个所述第二终端;所述目标终端为所述第一终端或任一所述第二终端;
所述控制服务器,用于根据所述控制请求,生成状态反馈信息,并将所述状态反馈信息发送至所述第一终端;
所述第二终端,用于根据所述状态反馈信息,更新所述第二终端的信息。
可选地,所述目标终端为所述第二终端中的目标第二终端,所述第一终端,还用于:
接收所述目标第二终端生成的控制请求。
可选地,所述第一终端,还用于:
确定所述目标第二终端生成的控制请求的发送终端;
在所述发送终端包括所述目标第二终端的情况下,将所述目标第二终端发送的所述目标第二终端的控制请求发送至所述控制服务器;
在所述发送终端不包括所述目标第二终端的情况下,将所述目标第二终端之外的所述第二终端转发的所述目标第二终端的控制请求发送至所述控制服务器。
可选地,所述目标终端为所述第二终端,所述第二终端,还用于:
生成所述第二终端的控制请求;
将所述第二终端的控制请求发送至所述第一终端。
可选地,所述第二终端,还用于:
将所述第二终端的控制请求转发至所述信息同步系统中其余的每个所述第二终端。
可选地,所述目标终端为所述第二终端,所述第二终端,还用于:
接收所述信息同步系统中其余的任一所述第二终端生成并发送的控制请求;
将所述信息同步系统中其余的任一所述第二终端生成的控制请求转发至所述第一终端。
本公开还提供一种计算机程序,包括计算机可读代码,当所述计算机可读代码在终端上运行时,导致所述终端执行如上所述的第一终端执行的信息同步方法。
本公开还提供一种计算机程序,包括计算机可读代码,当所述计算机可读代码在终端上运行时,导致所述终端执行如上所述的第二终端执行的信息同步方法。
上述说明仅是本公开技术方案的概述,为了能够更清楚了解本公开的技术手段,而可依照说明书的内容予以实施,并且为了让本公开的上述和其它目的、特征和优点能够更明显易懂,以下特举本公开的具体实施方式。
附图简述
为了更清楚地说明本公开实施例或相关技术中的技术方案,下面将对实施例或相关技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1示出了相关技术中的一种信息同步系统的结构框图;
图2示出了本公开实施例的一种信息同步方法的步骤流程图;
图3示出了本公开实施例的一种信息同步系统的结构框图;
图4示出了本公开实施例的另一种信息同步方法的步骤流程图;
图5示出了本公开实施例的第三种信息同步方法的步骤流程图;
图6示出了本公开实施例的第四种信息同步方法的步骤流程图;
图7示出了本公开实施例的一种具体的信息同步系统的示意图;
图8示意性地示出了用于执行根据本公开的方法的终端的框图;并且
图9示意性地示出了用于保持或者携带实现根据本公开的方法的程序代码的存储单元。
详细描述
为使本公开的上述目的、特征和优点能够更加明显易懂,下面结合附图 和具体实施方式对本公开作进一步详细的说明。显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。
参照图2,示出了本公开实施例的一种信息同步方法的步骤流程图,该方法应用于信息同步系统。参照图3,示出了本公开实施例的一种信息同步系统的结构框图,该信息同步系统包括控制服务器10、第一终端20和至少一个第二终端30,第一终端20和第二终端30处于同一局域网01,也即是第一终端20和第二终端30可以是处于同一局域网01中的分布式终端。
在实际应用中,该信息同步系统具体可以为智能家居系统,控制服务器10可以是家居控制服务器,第一终端20和第二终端30均可以是家居控制终端,例如家居控制面板等。在具体应用时,当用户在第一终端20和第二终端30中得到任一终端上进行了智能家居的控制操作时,例如在第一终端20上进行打开A灯的控制操作,则可以控制A灯打开,相应的,第一终端20的页面上可以把A灯的图标点亮,此时,还需要在智能家居系统中其余的终端上进行A灯状态的同步,也即需要将智能家居系统中其余的终端页面上的A灯图标也点亮,以达到A灯在所有终端上的信息同步。以下将结合该应用场景,对本公开实施例提供的信息同步方法进行说明。
具体地,该方法可以包括以下步骤:
步骤101:第一终端将目标终端的控制请求发送至控制服务器;目标终端为第一终端或任一第二终端。
在本公开实施例中,目标终端可以为信息同步系统中的第一终端或任一第二终端,也即目标终端可以是信息同步系统中的任一终端。当用户在信息同步系统中的目标终端上进行了某些控制操作时,例如对A灯的开灯操作,第一终端可以获得目标终端的控制请求,并将目标终端的控制请求发送至外网的控制服务器。
在本公开实施例中,无论目标终端是信息同步系统中的哪个终端,其控制请求都需要通过第一终端来发送给控制服务器。
步骤102:控制服务器根据控制请求,生成状态反馈信息,并将状态反馈信息发送至第一终端。
在本公开实施例中,控制服务器可以接收到第一终端发送的目标终端的控制请求,进而可以根据目标终端的控制请求,生成状态反馈信息。例如,目标终端的控制请求可以为对A灯的开灯控制请求,则控制服务器可以生成用于指示A灯已打开的状态反馈信息。之后,控制服务器可以将状态反馈信息返回至第一终端。
步骤103:第一终端接收控制服务器发送的状态反馈信息,并根据状态反 馈信息,更新第一终端的信息。
在本公开实施例中,第一终端可以接收到控制服务器发送的状态反馈信息。其中,第一终端的信息具体可以是第一终端的页面信息,例如第一终端页面上的图标点亮状态等,本公开实施例对此不作具体限定。例如,状态反馈信息用于指示A灯已打开,则第一终端可以根据该状态反馈信息,将自身页面上的A灯图标从暗点亮,以使用户可以在第一终端的页面上查看到A灯图标已点亮,从而获知A灯已打开。
步骤104:第一终端将状态反馈信息发送至每个第二终端,以使第二终端根据状态反馈信息,更新第二终端的信息。
在本公开实施例中,第一终端接收到控制服务器发送的状态反馈信息之后,还可以将该状态反馈信息发送至信息同步系统中的每个第二终端,以使第二终端根据状态反馈信息,更新第二终端的信息。其中,第二终端的信息具体可以是第二终端的页面信息,例如第二终端页面上的图标点亮状态等,本公开实施例对此不作具体限定。
步骤105:第二终端接收第一终端发送的状态反馈信息。
在本公开实施例中,信息同步系统中的每个第二终端均可以接收到第一终端发送的状态反馈信息。
步骤106:第二终端根据状态反馈信息,更新第二终端的信息。
在本公开实施例中,以状态反馈信息用于指示A灯已打开为例,每个第二终端在接收到该状态反馈信息之后,可以根据该状态反馈信息,将自身页面上的A灯图标从暗点亮,以使用户可以在每个第二终端的页面上也查看到A灯图标已点亮,从而获知A灯已打开。第一终端和第二终端都已将A灯图标点亮,也即是信息同步系统中的每个终端都实现了A灯状态的信息同步,则用户可以在信息同步系统中的任一终端上,查看到A灯当前的状态。
可选地,在本公开实施例中,第一终端具有向控制服务器发送信息的许可(license)。也即是可以只向信息同步系统中的第一终端下发允许向控制服务器发送信息的license,以使信息同步系统中的第一终端能够充当路由的作用,向控制服务器转发信息同步系统中其他第二终端的控制请求,以及向每个第二终端转发控制服务器返回的状态反馈信息。
另外,可选地,第一终端与第二终端之间可以通过用户数据报协议(UDP,User Datagram Protocol)进行通信。UDP协议具有传输效率较高的优点,因此,在无线网络中具有十分广泛的应用。
第一终端与第二终端之间可以通过建立套接字(Socket)连接进行UDP通信。在广播数据包之前,发送方和接收方都要创建一个Socket对象,并指定DatagramPacket数据包用来存储要被发送的数据。通常在定义UDPSocket服务时,会对一个固定的端口进行监听。在收发数据的过程中,发送方可以 调用Socket对象的send方法发送数据包,接收方可以使用receive()方法对发送过来的数据包进行接收,同时receive()也具有阻塞监听的作用。
大致上,数据的发送方可以包括以下操作步骤:
a、启动Socket连接;
b、创建一个对象(如multicastSocket),并将这个对象加入到组播组;
c、创建一个类(如InetAddress);
d、将需要发送的数据包转换为字节类型;
e、创建一个对象(如DatagramPacket),并指定数据包要被发送到的网络中的目的地址以及端口号;
f、调用对象(如multicastSocket)的发送方法发送数据包;
g、关闭Socket连接,离开组播组。
数据的接收方可以包括以下操作步骤:
A、启动Socket连接;
B、创建一个对象(如multicastSocket),并设定监听端口,将需要监听的UDP端口号加入到组播组;
C、创建一个字节数组用于数据接收,获得用户ID号和发送方的IP地址用于接收数据;
D、创建一个空的对象(如DatagramPackage);
E、使用接收方法对发送方所发送的数据包进行接收,在接收的同时会进行监听阻塞;
F、解析接收到的数据包,该数据包中包括接收方ID、发送方ID、用户的昵称、用户的IP地址、接收数据包的时间等信息;
G、关闭Socket连接,离开组播组。
需要说明的是,上述发送方和接收方的Socket连接操作步骤仅为一种示例性说明,并不对本公开构成限定。在具体应用时,通过建立Socket连接进行UDP通信的具体过程可以参考相关技术,本公开实施例对此不再进一步详述。
在本公开实施例中,信息同步系统中任一终端的控制请求,均可以通过信息同步系统中的第一终端发送给控制服务器,因此,只需要给第一终端下发license即可,而无需给信息同步系统中的其他终端下发license,从而节约了整个系统的license成本。另外,控制服务器根据控制请求所返回的状态反馈信息,也可以通过第一终端同步给信息同步系统中的每个终端,以使信息同步系统中的每个终端均可以根据状态反馈信息,更新自己的信息,从而实现每个终端信息的同步,如此,无需建立用于集中分发状态反馈信息的中台设备,节约了中台设备的建立及维护成本。
图4示出了本公开实施例的另一种信息同步方法的步骤流程图,参照图4, 可选地,当目标终端为第一终端时,在步骤101之前,该方法还可以包括以下步骤:
步骤107:第一终端生成第一终端的控制请求。
在本步骤中,目标终端为信息同步系统中的第一终端,也即是用户在第一终端上进行了控制操作,则第一终端可以生成控制请求。之后,第一终端便可以将自身的控制请求发送至控制服务器。
图5示出了本公开实施例的第三种信息同步方法的步骤流程图,参照图5,可选地,在目标终端为第二终端中的目标第二终端的情况下,在步骤101之前,该方法还可以包括以下步骤:
步骤108:第一终端接收目标第二终端生成的控制请求。
在本步骤中,目标终端为信息同步系统中的目标第二终端,目标第二终端也即任一第二终端,也即是用户在目标第二终端上进行了控制操作,则目标第二终端可以生成控制请求,并发送至第一终端。之后,第一终端便可以将目标第二终端生成的控制请求发送至控制服务器。
相应的,从第二终端的角度来说,当目标终端为第二终端时,该方法还可以包括以下步骤:第二终端生成第二终端的控制请求;第二终端将第二终端的控制请求发送至第一终端。以目标终端具体为目标第二终端为例,上述步骤即为:
步骤109:目标第二终端生成目标第二终端的控制请求。
步骤110:目标第二终端将目标第二终端的控制请求发送至第一终端。
也即是第一终端可以接收到目标第二终端直接发送的,由目标第二终端自己生成的控制请求。
图6示出了本公开实施例的第四种信息同步方法的步骤流程图,参照图6,可选地,当目标终端为第二终端时,该方法还可以包括以下步骤:第二终端将第二终端的控制请求转发至信息同步系统中其余的每个第二终端。
以目标终端具体为目标第二终端为例,上述步骤即为:
步骤111:目标第二终端将目标第二终端的控制请求转发至信息同步系统中其余的每个第二终端。
在本公开实施例中,第一终端与目标第二终端之间可以通过UDP协议进行通信,而UDP协议虽然数据传输的速度快,但数据传输的可靠性较低,也即是会存在数据丢包的可能。因此,为了提升终端之间数据传输的可靠性,增加了终端间的相互校验机制,也即是除直接对接控制服务器的第一终端之外,信息同步系统中的每个第二终端在生成自己的控制请求之后,可以自己将控制请求直接发送给第一终端,而且,还可以将自己的控制请求同时转发给信息同步系统中其余的每个第二终端,以使其余的每个第二终端将该控制请求转发给第一终端,以避免生成控制请求的第二终端在发送控制请求的过 程中出现丢包问题。
也即是当目标终端为第二终端时,第二终端接收第一终端发送的状态反馈信息之前,该方法还可以包括以下步骤:第二终端接收信息同步系统中其余的任一第二终端生成并发送的控制请求;第二终端将信息同步系统中其余的任一第二终端生成的控制请求转发至第一终端。
以目标终端具体为目标第二终端为例,也即是在目标第二终端将自己生成的控制信息转发给信息同步系统中其余的每个第二终端之后,信息同步系统中其余的每个第二终端都可以接收到目标第二终端生成并发送的控制请求,进而其余的每个第二终端都可以将目标第二终端的控制请求转发给第一终端。
相应的,步骤101具体可以包括:第一终端确定目标第二终端生成的控制请求的发送终端;在发送终端包括目标第二终端的情况下,第一终端将目标第二终端发送的目标第二终端的控制请求发送至控制服务器;在发送终端不包括目标第二终端的情况下,第一终端将目标第二终端之外的第二终端转发的目标第二终端的控制请求发送至控制服务器。
其中,第一终端可以解析接收到的每个控制请求的数据包包头,从而确定每个控制请求的发送方是哪个第二终端。在各个第二终端的数据均未丢包的情况下,第一终端可以接收到目标第二终端发送的由自己生成的控制请求,还可以接收到其余的每个第二终端转发的目标第二终端的控制请求。这种情况下,第一终端会自动忽略掉其余的每个第二终端转发的控制请求,而将目标第二终端发送的控制请求发送给控制服务器。
另外,若在目标第二终端丢包的情况下,第一终端若接收不到目标第二终端发送的由自己生成的控制请求,则第一终端会将其余的任一第二终端转发的控制请求发送给控制服务器。
也即是在第一终端接收到的控制请求中,若存在控制请求的发送方即为该控制请求的生成方时,则第一终端会将发送方为生成方的控制请求发送给控制服务器,而将其他控制请求忽略。若不存在控制请求的发送方为该控制请求的生成方,则第一终端会将任一被转发来的控制请求发送给控制服务器。
参照图7,示出了本公开实施例的一种具体的信息同步系统的示意图,以下将结合图7,具体说明本公开实施例提供的信息同步方法,在图7中,第一终端具体可以是终端2,终端2具有向控制服务器发送信息的license,第二终端可以包括终端1、终端3和终端4。
若终端2生成了终端2控制请求,则终端2可以直接将终端2控制请求发送至控制服务器,然后控制服务器可以根据终端2控制请求,生成状态反馈信息,并将状态反馈信息发送至终端2。终端2接收到状态反馈信息时,可以根据状态反馈信息,更新终端2的页面信息,同时终端2还可以将状态反馈信息分别发送至终端1、终端3和终端4,终端1接收到状态反馈信息时, 可以根据状态反馈信息,更新终端1的页面信息,终端3接收到状态反馈信息时,可以根据状态反馈信息,更新终端3的页面信息,终端4接收到状态反馈信息时,可以根据状态反馈信息,更新终端4的页面信息。
参照图7,若终端4生成了终端4控制请求,则终端4可以将终端4控制请求发送至终端2,为了保证传输的可靠性,终端4同时也会将终端4控制请求发送至终端1和终端3,进而终端1可以将终端4控制请求转发给终端2,终端3也可以将终端4控制请求转发给终端2。当终端2收到终端4发送的终端4控制请求时,会自动忽略掉终端1和终端3转发的终端4控制请求,若终端2没有接收到终端4发送的终端4控制请求,则会执行终端1或终端3转发的终端4控制请求,从而提高了UDP传包的可靠性。
在本公开实施例中,第一终端可以将信息同步系统中目标终端的控制请求发送至控制服务器,然后,控制服务器可以根据该控制请求,生成状态反馈信息,并将状态反馈信息返回至第一终端,第一终端可以根据状态反馈信息,更新第一终端的信息,并将状态反馈信息发送至每个第二终端,以使每个第二终端根据状态反馈信息,更新自己的信息,实现每个终端信息的同步。在本公开实施例中,信息同步系统中任一终端的控制请求,均可以通过信息同步系统中的第一终端发送给控制服务器,因此,只需要给第一终端下发许可即可,节约了整个系统的许可成本。另外,控制服务器根据控制请求所返回的状态反馈信息,也可以通过第一终端同步给信息同步系统中的每个终端,如此,无需建立用于集中分发状态反馈信息的中台设备,节约了中台设备的建立及维护成本。
本公开实施例还提供了一种信息同步系统,参照图3,所述信息同步系统包括控制服务器10、第一终端20和至少一个第二终端30,所述第一终端20和所述第二终端30处于同一局域网01;
所述第一终端20,用于将目标终端的控制请求发送至所述控制服务器;根据所述控制服务器发送的所述状态反馈信息,更新所述第一终端的信息,并将所述状态反馈信息发送至每个所述第二终端;所述目标终端为所述第一终端或任一所述第二终端;
所述控制服务器10,用于根据所述控制请求,生成状态反馈信息,并将所述状态反馈信息发送至所述第一终端;
所述第二终端30,用于根据所述状态反馈信息,更新所述第二终端的信息。
可选地,所述第一终端,还用于:
生成所述第一终端的控制请求。
可选地,所述第一终端,还用于:
接收所述目标第二终端生成的控制请求。
可选地,所述第一终端,具体用于:
确定所述目标第二终端生成的控制请求的发送终端;
在所述发送终端包括所述目标第二终端的情况下,将所述目标第二终端发送的所述目标第二终端的控制请求发送至所述控制服务器;
在所述发送终端不包括所述目标第二终端的情况下,将所述目标第二终端之外的所述第二终端转发的所述目标第二终端的控制请求发送至所述控制服务器。
可选地,所述第一终端具有向所述控制服务器发送信息的许可。
可选地,所述第一终端与所述第二终端之间通过用户数据报协议进行通信。
可选地,所述目标终端为所述第二终端,所述第二终端,还用于:
生成所述第二终端的控制请求;
将所述第二终端的控制请求发送至所述第一终端。
可选地,所述第二终端,还用于:
将所述第二终端的控制请求转发至所述信息同步系统中其余的每个所述第二终端。
可选地,所述目标终端为所述第二终端,所述第二终端,还用于还包括:
接收所述信息同步系统中其余的任一所述第二终端生成并发送的控制请求;
将所述信息同步系统中其余的任一所述第二终端生成的控制请求转发至所述第一终端。
在本公开实施例中,第一终端可以将信息同步系统中目标终端的控制请求发送至控制服务器,然后,控制服务器可以根据该控制请求,生成状态反馈信息,并将状态反馈信息返回至第一终端,第一终端可以根据状态反馈信息,更新第一终端的信息,并将状态反馈信息发送至每个第二终端,以使每个第二终端根据状态反馈信息,更新自己的信息,实现每个终端信息的同步。在本公开实施例中,信息同步系统中任一终端的控制请求,均可以通过信息同步系统中的第一终端发送给控制服务器,因此,只需要给第一终端下发许可即可,节约了整个系统的许可成本。另外,控制服务器根据控制请求所返回的状态反馈信息,也可以通过第一终端同步给信息同步系统中的每个终端,如此,无需建立用于集中分发状态反馈信息的中台设备,节约了中台设备的建立及维护成本。
本公开实施例还公开了一种终端,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如上所述的信息同步方法的步骤。
本公开实施例还公开了一种计算机可读存储介质,所述计算机可读存储 介质上存储计算机程序,所述计算机程序被处理器执行时实现如上所述的信息同步方法的步骤。
对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本公开并不受所描述的动作顺序的限制,因为依据本公开,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本公开所必须的。
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。
本公开的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本公开实施例的终端中的一些或者全部部件的一些或者全部功能。本公开还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本公开的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。
例如,图8示出了可以实现根据本公开的方法的终端。该终端传统上包括处理器1010和以存储器1020形式的计算机程序产品或者计算机可读介质。存储器1020可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器1020具有用于执行上述方法中的任何方法步骤的程序代码1031的存储空间1030。例如,用于程序代码的存储空间1030可以包括分别用于实现上面的方法中的各种步骤的各个程序代码1031。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为如参考图9所述的便携式或者固定存储单元。该存储单元可以具有与图8的终端中的存储器1020类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括计算机可读代码1031’,即可以由例如诸如1010之类的处理器读取的代码,这些代码当由终端运行时,导致该终端执行上面所描述的方法中的各个步骤。
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。
以上对本公开所提供的一种信息同步方法、终端及信息同步系统,进行了详细介绍,本文中应用了具体个例对本公开的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本公开的方法及其核心思想;同时,对于本领域的一般技术人员,依据本公开的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本公开的限制。

Claims (23)

  1. 一种信息同步方法,其中,应用于信息同步系统中的第一终端,所述信息同步系统还包括控制服务器和至少一个第二终端,所述第一终端和所述至少一个第二终端处于同一局域网,所述方法包括:
    将目标终端的控制请求发送至所述控制服务器;所述目标终端为所述第一终端或任一所述第二终端;
    接收所述控制服务器发送的状态反馈信息,并根据所述状态反馈信息,更新所述第一终端的信息;
    将所述状态反馈信息发送至每个所述第二终端,以使每个所述第二终端根据所述状态反馈信息,更新每个所述第二终端的信息。
  2. 根据权利要求1所述的方法,其中,所述目标终端为所述第一终端,所述将目标终端的控制请求发送至所述控制服务器之前,还包括:
    生成所述第一终端的控制请求。
  3. 根据权利要求1所述的方法,其中,所述目标终端为所述第二终端中的目标第二终端,所述将目标终端的控制请求发送至所述控制服务器之前,还包括:
    接收所述目标第二终端生成的控制请求。
  4. 根据权利要求3所述的方法,其中,所述将目标终端的控制请求发送至所述控制服务器,包括:
    确定所述目标第二终端生成的控制请求的发送终端;
    在所述发送终端包括所述目标第二终端的情况下,将所述目标第二终端发送的所述目标第二终端的控制请求发送至所述控制服务器;
    在所述发送终端不包括所述目标第二终端的情况下,将所述目标第二终端之外的所述第二终端转发的所述目标第二终端的控制请求发送至所述控制服务器。
  5. 根据权利要求1-4任一项所述的方法,其中,所述第一终端具有向所述控制服务器发送信息的许可。
  6. 根据权利要求1-4任一项所述的方法,其中,所述第一终端与所述第二终端之间通过用户数据报协议进行通信。
  7. 根据权利要求6所述的方法,其中,所述第一终端与所述第二终端之间通过建立套接字连接进行用户数据报协议通信。
  8. 一种信息同步方法,其中,应用于信息同步系统中的至少一个第二终端,所述信息同步系统还包括控制服务器和第一终端,所述第一终端和所述至少一个第二终端处于同一局域网,所述方法包括:
    接收所述第一终端发送的状态反馈信息;所述状态反馈信息为所述控制 服务器在接收到所述第一终端发送的目标终端的控制请求时,生成并发送至所述第一终端的;所述目标终端为所述第一终端或任一所述第二终端;
    根据所述状态反馈信息,更新所述第二终端的信息。
  9. 根据权利要求8所述的方法,其中,所述目标终端为所述第二终端,所述接收所述第一终端发送的状态反馈信息之前,还包括:
    生成所述第二终端的控制请求;
    将所述第二终端的控制请求发送至所述第一终端。
  10. 根据权利要求9所述的方法,其中,所述生成所述第二终端的控制请求之后,还包括:
    将所述第二终端的控制请求转发至所述信息同步系统中其余的每个所述第二终端。
  11. 根据权利要求8所述的方法,其中,所述目标终端为所述第二终端,所述接收所述第一终端发送的状态反馈信息之前,还包括:
    接收所述信息同步系统中其余的任一所述第二终端生成并发送的控制请求;
    将所述信息同步系统中其余的任一所述第二终端生成的控制请求转发至所述第一终端。
  12. 一种终端,其中,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至6中任一项所述的信息同步方法的步骤。
  13. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至6中任一项所述的信息同步方法的步骤。
  14. 一种终端,其特征在于,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求7至10中任一项所述的信息同步方法的步骤。
  15. 一种计算机可读存储介质,其中,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求7至10中任一项所述的信息同步方法的步骤。
  16. 一种信息同步系统,其中,所述信息同步系统包括控制服务器、第一终端和至少一个第二终端,所述第一终端和所述至少一个第二终端处于同一局域网;
    所述第一终端,用于将目标终端的控制请求发送至所述控制服务器;根据所述控制服务器发送的所述状态反馈信息,更新所述第一终端的信息,并将所述状态反馈信息发送至每个所述第二终端;所述目标终端为所述第一终端或任一所述第二终端;
    所述控制服务器,用于根据所述控制请求,生成状态反馈信息,并将所述状态反馈信息发送至所述第一终端;
    所述第二终端,用于根据所述状态反馈信息,更新所述第二终端的信息。
  17. 根据权利要求16所述的系统,其中,所述目标终端为所述第二终端中的目标第二终端,所述第一终端,还用于:
    接收所述目标第二终端生成的控制请求。
  18. 根据权利要求17所述的系统,其中,所述第一终端,还用于:
    确定所述目标第二终端生成的控制请求的发送终端;
    在所述发送终端包括所述目标第二终端的情况下,将所述目标第二终端发送的所述目标第二终端的控制请求发送至所述控制服务器;
    在所述发送终端不包括所述目标第二终端的情况下,将所述目标第二终端之外的所述第二终端转发的所述目标第二终端的控制请求发送至所述控制服务器。
  19. 根据权利要求16所述的系统,其中,所述目标终端为所述第二终端,所述第二终端,还用于:
    生成所述第二终端的控制请求;
    将所述第二终端的控制请求发送至所述第一终端。
  20. 根据权利要求19所述的系统,其中,所述第二终端,还用于:
    将所述第二终端的控制请求转发至所述信息同步系统中其余的每个所述第二终端。
  21. 根据权利要求16所述的系统,其中,所述目标终端为所述第二终端,所述第二终端,还用于:
    接收所述信息同步系统中其余的任一所述第二终端生成并发送的控制请求;
    将所述信息同步系统中其余的任一所述第二终端生成的控制请求转发至所述第一终端。
  22. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在终端上运行时,导致所述终端执行根据权利要求1至6中任一项所述的信息同步方法。
  23. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在终端上运行时,导致所述终端执行根据权利要求7至10中任一项所述的信息同步方法。
PCT/CN2021/078890 2020-03-30 2021-03-03 信息同步方法、终端及信息同步系统 WO2021196963A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US17/626,537 US11996952B2 (en) 2020-03-30 2021-03-03 Information synchronization method, terminal and information synchronization system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010239147.1 2020-03-30
CN202010239147.1A CN111416760B (zh) 2020-03-30 2020-03-30 一种信息同步方法、终端及信息同步系统

Publications (1)

Publication Number Publication Date
WO2021196963A1 true WO2021196963A1 (zh) 2021-10-07

Family

ID=71493451

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/078890 WO2021196963A1 (zh) 2020-03-30 2021-03-03 信息同步方法、终端及信息同步系统

Country Status (3)

Country Link
US (1) US11996952B2 (zh)
CN (1) CN111416760B (zh)
WO (1) WO2021196963A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111416760B (zh) * 2020-03-30 2022-11-08 京东方科技集团股份有限公司 一种信息同步方法、终端及信息同步系统

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103558836A (zh) * 2013-11-19 2014-02-05 海信集团有限公司 设备状态同步控制方法和家电设备
CN106302055A (zh) * 2016-09-26 2017-01-04 Tcl集团股份有限公司 一种智能设备状态的同步更新方法及系统
CN106603716A (zh) * 2016-12-30 2017-04-26 Tcl集团股份有限公司 一种智能设备状态的同步方法、智能设备及其控制终端
US20190222432A1 (en) * 2016-08-27 2019-07-18 Beijing Vrv Software Corporation Limited Smart household control method, apparatus and system
CN111416760A (zh) * 2020-03-30 2020-07-14 京东方科技集团股份有限公司 一种信息同步方法、终端及信息同步系统
CN111965989A (zh) * 2020-08-14 2020-11-20 深圳市欧瑞博科技股份有限公司 系统更新方法、装置、智能家居控制面板以及存储介质

Family Cites Families (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6314408B1 (en) * 1997-07-15 2001-11-06 Eroom Technology, Inc. Method and apparatus for controlling access to a product
US6910068B2 (en) * 1999-06-11 2005-06-21 Microsoft Corporation XML-based template language for devices and services
JP4743200B2 (ja) 2005-01-25 2011-08-10 パナソニック株式会社 通信端末、端末切替システムおよび端末切替方法
FI20050491A0 (fi) * 2005-05-09 2005-05-09 Nokia Corp Järjestelmä varmenteiden toimittamiseksi viestintäjärjestelmässä
CN101257375B (zh) * 2006-12-31 2012-08-08 华为技术有限公司 实现多终端的消息同步的方法及装置
CN103856374A (zh) * 2012-11-28 2014-06-11 联想(北京)有限公司 一种数据传输方法、终端及家庭互联系统
CN104092715B (zh) * 2013-11-28 2016-10-19 腾讯科技(深圳)有限公司 一种同步应用程序的方法、服务器及系统
US10198777B2 (en) * 2013-12-06 2019-02-05 Remote Media, Llc System, method, and application for exchanging content in a social network environment
WO2015085485A1 (zh) 2013-12-10 2015-06-18 华为终端有限公司 一种同步方法及终端、服务器
CN105009549B (zh) * 2013-12-10 2019-11-12 华为终端有限公司 一种同步方法及终端、服务器
CN105281987B (zh) * 2014-06-03 2018-06-08 腾讯科技(深圳)有限公司 路由器及数据上传方法、装置、系统
CN105357116B (zh) * 2015-10-23 2018-04-06 上海斐讯数据通信技术有限公司 一种多终端访问服务器的方法和智能终端
CN105681309B (zh) * 2016-01-26 2018-06-19 腾讯科技(深圳)有限公司 一种信息处理方法、第一终端、第二终端及服务器
CN108713334B (zh) * 2016-03-15 2021-02-23 华为技术有限公司 一种基站间的同步方法、设备
CN105791064A (zh) * 2016-03-31 2016-07-20 青岛海信宽带多媒体技术有限公司 一种局域网内消息的协同处理方法及装置
CN107370782B (zh) * 2016-05-13 2021-08-31 京东方科技集团股份有限公司 对设备进行操作的方法、控制装置和代理装置
CN109391662A (zh) * 2017-08-10 2019-02-26 比亚迪股份有限公司 车载程序更新方法、终端、监控系统服务器及系统
CN108055304B (zh) * 2017-12-06 2021-08-31 广州视源电子科技股份有限公司 远程数据的同步方法、装置、服务器、设备和存储介质
CN109150694B (zh) * 2018-08-20 2021-01-05 深圳市梦网科技发展有限公司 动态场景信息的发送方法、显示方法及服务器和移动终端
CN109547306B (zh) * 2018-12-06 2021-04-30 杭州涂鸦信息技术有限公司 一种智能家居设备管理方法、系统、智能网关及服务器
CN111328134B (zh) * 2018-12-14 2022-08-09 深圳市中兴微电子技术有限公司 同步方法及装置、网元、计算机存储介质
CN110488617A (zh) * 2019-07-08 2019-11-22 湖南优创智能科技有限公司 智能家居控制系统、方法及终端设备
CN110266567A (zh) * 2019-07-30 2019-09-20 安徽立果智能科技有限公司 一种基于智能终端实现智能家居设备的控制方法及其系统

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103558836A (zh) * 2013-11-19 2014-02-05 海信集团有限公司 设备状态同步控制方法和家电设备
US20190222432A1 (en) * 2016-08-27 2019-07-18 Beijing Vrv Software Corporation Limited Smart household control method, apparatus and system
CN106302055A (zh) * 2016-09-26 2017-01-04 Tcl集团股份有限公司 一种智能设备状态的同步更新方法及系统
CN106603716A (zh) * 2016-12-30 2017-04-26 Tcl集团股份有限公司 一种智能设备状态的同步方法、智能设备及其控制终端
CN111416760A (zh) * 2020-03-30 2020-07-14 京东方科技集团股份有限公司 一种信息同步方法、终端及信息同步系统
CN111965989A (zh) * 2020-08-14 2020-11-20 深圳市欧瑞博科技股份有限公司 系统更新方法、装置、智能家居控制面板以及存储介质

Also Published As

Publication number Publication date
US20220263679A1 (en) 2022-08-18
CN111416760B (zh) 2022-11-08
US11996952B2 (en) 2024-05-28
CN111416760A (zh) 2020-07-14

Similar Documents

Publication Publication Date Title
CN102571587B (zh) 报文转发方法和设备
CN101286867B (zh) 一种网络设备的软件升级方法与系统
CN111010329B (zh) 一种报文传输方法及装置
CN108965092B (zh) 一种数据报文传输方法和装置
CN113625589B (zh) 一种设备控制方法、装置、电子设备和存储介质
EP2928118B1 (en) System and method for dynamic name configuration in content-centric networks
WO2018068588A1 (zh) 提供组播业务的方法和软件定义网络控制器
CN114553799B (zh) 基于可编程数据平面的组播转发方法、装置、设备及介质
US20130034047A1 (en) Method and system for communicating with web services using peer-to-peer technology
WO2021196963A1 (zh) 信息同步方法、终端及信息同步系统
CN110391919A (zh) 组播流量转发方法、装置、电子设备
US20150055662A1 (en) Internet group management protocol (igmp) leave message processing synchronization
CN109787900B (zh) 传输方法、装置、设备和机器可读介质
CN113497752B (zh) 一种报文发送方法、第一网络设备及网络系统
CN113452778A (zh) 会话保持方法、装置、设备、系统及存储介质
CN108900422B (zh) 组播转发方法、装置及电子设备
CN113676409B (zh) 一种报文转发方法、装置、电子设备以及存储介质
CN101686265B (zh) 网络设备、网络系统以及建立数据通讯的方法
CN112511440B (zh) 报文转发方法、系统、存储介质和电子设备
CN115665026A (zh) 一种集群组网的方法和装置
CN110661895A (zh) 一种服务器的网络地址映射方法及网络地址映射设备
JP5708288B2 (ja) 衛星通信方法、管制局及び地球局
EP1971109B1 (en) Method and device for event signaling and communication system comprising such device
CN103780503A (zh) 一种负载均衡的实现方法和设备
US12021891B2 (en) Server connection resets based on domain name server (DNS) information

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21782108

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21782108

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 22/11/2022)

122 Ep: pct application non-entry in european phase

Ref document number: 21782108

Country of ref document: EP

Kind code of ref document: A1