Data synchronization method and system, computer readable storage medium and computer device
By generating a meeting ID and using the SDK to synchronize writing across multiple smart display devices, the problem of real-time editing of whiteboard content in smart meeting tablets was solved, improving user interactivity and meeting efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-30
- Publication Date
- 2026-03-17
AI Technical Summary
In online meetings, the whiteboard content of smart meeting tablets cannot be edited in real time, resulting in low participant engagement and affecting meeting efficiency.
By generating a meeting ID, the software development kit (SDK) is used to send the meeting ID to the message server to subscribe to cluster message topics, and writing synchronization is achieved across multiple smart display devices. The SDK is used to receive and publish writing data, thus enabling writing synchronization across multiple smart display devices.
It improves the collaboration capabilities of multiple smart display devices, enhances user interaction and meeting efficiency, and enables efficient collaborative writing among multiple whiteboard devices.
Smart Images

Figure CN119232750B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of Internet technology, and in particular to a data synchronization method and system, a computer-readable storage medium, and a computer device. Background Technology
[0002] With the continuous development of computer network technology, big data technology, Internet of Things technology, and artificial intelligence technology, smart conference panels have become indispensable meeting equipment in government and enterprise conference rooms, media studios, educational and training institutions, and other similar settings. Smart conference panels integrate multiple devices such as computers, projectors, screens, electronic whiteboards, digital signage, televisions, audio equipment, and remote conferencing terminals, providing a comprehensive meeting experience. Among these, the electronic whiteboard, a distinctive application of smart conference panels, has received high praise for its support for touch writing and back-of-hand erasing functions.
[0003] However, in current online meetings, smart conference tablets achieve real-time screen sharing or whiteboard interaction through annotation mode during projection. While participants can immediately see the changes made to the whiteboard by the presenter, they cannot edit the whiteboard content. This approach leads to low participant engagement and impacts meeting efficiency.
[0004] Therefore, there is a need to provide an electronic whiteboard conferencing system that supports synchronous writing on multiple whiteboards, so as to efficiently realize collaborative writing on multiple whiteboard devices. Summary of the Invention
[0005] To address at least one of the aforementioned problems, a first aspect of this application provides a data synchronization method applied to a smart display device, comprising:
[0006] Join the meeting using a pre-generated meeting ID based on the user's first action;
[0007] Start the writing unit and send the meeting ID to the writing unit;
[0008] The control writing unit uses the software development kit (SDK) to send the meeting ID to the message server in order to subscribe to cluster message topics from the message server.
[0009] In some alternative embodiments, before joining the meeting using a pre-generated meeting ID based on the user's first action, the method includes:
[0010] The SDK is used to register smart display devices in the IoT server and generate device identifiers for the smart display devices.
[0011] Based on the user's second action, a meeting is created in the meeting server and a meeting ID is generated.
[0012] In some optional embodiments, after the control writing unit uses a software development kit (SDK) to send the meeting ID to the message server to subscribe to cluster message topics from the message server, the method further includes:
[0013] Generate writing data based on the user's writing actions;
[0014] Use the SDK to publish messages to subscribed cluster message topics. The messages include written data and device identifiers.
[0015] In some optional embodiments, after the control writing unit uses a software development kit (SDK) to send the meeting ID to the message server to subscribe to cluster message topics from the message server, the method further includes:
[0016] The SDK is used to receive messages, which include written data and device identifiers.
[0017] Compare the received device identifier with the device identifier of the local machine;
[0018] When the received device identifier matches the local device identifier, the message is ignored; when the received device identifier does not match the local device identifier, the control writing unit performs writing updates based on the writing data in the message.
[0019] In some optional embodiments, the writing data includes coordinate information and color information corresponding to the content being written.
[0020] The control writing unit performs writing updates based on the writing data in the message, which further includes: reading the writing data and completing the writing update according to the color information at the writing coordinates represented by the coordinate information.
[0021] In some alternative embodiments, the message server is selected from EMQX, VerneMQ, HiveMQ, NanoMQ, and NanoMQ.
[0022] A second aspect of this application provides a data synchronization method applied to a message server, comprising:
[0023] In response to the conference ID received from the first smart display device, a cluster message topic is established to subscribe the cluster message topic for the smart display device;
[0024] In response to a received message, the message is forwarded to multiple smart display devices to complete message synchronization, including the first smart display device.
[0025] A third aspect of this application provides a data synchronization system, comprising: a message server and multiple intelligent display devices, wherein the multiple intelligent display devices include a first intelligent display device, wherein...
[0026] The first intelligent display device joins the meeting using a pre-generated meeting ID based on the user's first action;
[0027] The first intelligent display device initiates the writing unit and sends the meeting ID to the writing unit;
[0028] The first intelligent display device controls the writing unit to send the meeting ID to the message server using the software development kit (SDK).
[0029] The message server responds to the conference ID received from the first smart display device to establish a cluster message topic, and subscribes to the cluster message topic for the first smart display device.
[0030] In response to received messages, the message is forwarded to multiple smart display devices to complete message synchronization.
[0031] A fourth aspect of this application provides a computer-readable storage medium having a computer program stored thereon.
[0032] When the program is executed by the processor, it implements the method described in the first aspect above; or
[0033] When the program is executed by the processor, it implements the method described in the second aspect above.
[0034] A fifth aspect of this application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor.
[0035] When the processor executes the program, it implements the method described in the first aspect above; or
[0036] When the processor executes the program, it implements the method described in the second aspect above.
[0037] The beneficial effects of this application are as follows:
[0038] This application addresses existing problems by providing a data synchronization method and system, a computer-readable storage medium, and a computer device. By sending the meeting ID to the writing unit and using a software development kit (SDK) to send the meeting ID to a message server to subscribe to cluster message topics from the message server, the writing synchronization of multiple intelligent display devices is achieved, improving the collaboration capabilities of various devices in the meeting, enhancing user interactivity, and increasing meeting efficiency. It has broad application prospects. Attached Figure Description
[0039] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0040] Figure 1 A flowchart illustrating a data synchronization method according to an embodiment of this application is shown;
[0041] Figure 2 A schematic diagram of the overall framework of a system for the application data synchronization method according to an embodiment of this application is shown.
[0042] Figure 3 A flowchart illustrating a data synchronization method according to an embodiment of this application is shown;
[0043] Figure 4 A flowchart illustrating another embodiment of the data synchronization method of this application is shown;
[0044] Figure 5 A flowchart illustrating another embodiment of the data synchronization method of this application; and
[0045] Figure 6 This illustration shows a structural schematic diagram of a computer device according to another embodiment of this application. Detailed Implementation
[0046] To more clearly illustrate this application, the following description, in conjunction with preferred embodiments and accompanying drawings, further clarifies the application. Similar components in the drawings are indicated by the same reference numerals. Those skilled in the art should understand that the specific description below is illustrative rather than restrictive and should not be construed as limiting the scope of protection of this application.
[0047] To solve at least one of the above problems, such as Figure 1 As shown, an embodiment of this application provides a data synchronization method applied to a smart display device, comprising:
[0048] Step S1: Join the meeting using the pre-generated meeting ID based on the user's first action;
[0049] Step S2: Start the writing unit and send the meeting ID to the writing unit;
[0050] Step S3: The control writing unit uses the software development kit (SDK) to send the meeting ID to the message server in order to subscribe to cluster message topics from the message server.
[0051] In this embodiment, by sending the meeting ID to the writing unit and using the software development kit (SDK) to send the meeting ID to the message server, and subscribing to cluster message topics from the message server, writing synchronization of multiple smart display devices is achieved, which improves the collaboration capability of each device in the meeting, enhances user interactivity, and improves meeting efficiency, and has broad application prospects.
[0052] To better understand the data synchronization method of this application, the overall structure of the system applying the data synchronization method of the embodiments of this application will be described first in conjunction with the hardware structure.
[0053] Reference Figure 2 The diagram illustrates a data synchronization system architecture, including: multiple smart display devices 100-1 and 100-2, a message server 201, a conference system server 202, and an IoT platform 203. As shown in the diagram, only two smart display devices 100-1 and 100-2 are used as an example. In practical applications, the number of smart display devices in a data synchronization system is not limited; it depends on the number of smart display devices simultaneously joining the conference.
[0054] In a specific example, the data synchronization system can be used as a conference writing synchronization system, and the intelligent display devices 100-1 and 100-2 can be conference all-in-one devices in the system, such as electronic whiteboards. However, this application does not limit the specific type of intelligent display device. Any intelligent display device that has a touch writing function and can load an intelligent system to implement the data synchronization method of this application is acceptable. In specific cases, the intelligent display device may even include terminal devices, tablet computers, etc.
[0055] In the embodiments of this application, the data synchronization method is implemented as software or a plug-in and installed or loaded into the systems of smart display devices 100-1 and 100-2, or stored in external hardware or firmware. The external hardware or firmware is plugged into smart display devices 100-1 and 100-2 so that smart display devices 100-1 and 100-2 can implement the data synchronization method of the embodiments of this application.
[0056] In the embodiments of this application, message server 201 is a message server capable of subscribing to and publishing cluster messages. For example, in the examples below, message server 201 employs a lightweight message server (EMQX), which is an open-source IoT MQTT message server developed based on the Erlang / OTP platform. Its main focus is on professional support for the MQTT protocol (MQTT is a lightweight, publish-subscribe (PubSub) IoT messaging protocol), making it very suitable for the IoT field. However, this application is not limited to this; other message servers capable of cluster message forwarding using a publish-subscribe model are also possible, such as VerneMQ, HiveMQ, NanoMQ, and others.
[0057] In addition, in the embodiments of this application, the conference system server 202 is a server that provides conference services. For example, it creates conferences and generates conference IDs so that users can join the conference and synchronize data. This application does not specifically limit the type of server; it depends on the type of server operated and provided by the specific conference service platform. The IoT platform 203 is an IoT server used to provide rich IoT device services, such as registering smart display devices 100-1 and 100-2 in the IoT environment for device identification.
[0058] In this example, servers 201, 202, and 203 can be cloud servers; however, this application does not impose any restrictions on them, and one or more of them can also be local servers in specific scenarios. Therefore, although not specifically limited, the intelligent display devices 100-1 and 100-2, the message server 201, the conference system server 202, and the IoT platform 203 all have communication modules and can communicate and interconnect, and the communication method is not limited.
[0059] Based on the above description of the system architecture, the following section combines... Figure 3 , Figure 4 The synchronization process of the data synchronization method of the embodiments of this application is described in detail with specific examples. In this example, for ease of description, it is assumed that in a meeting, the user using smart display device 100-1 initiates the meeting creation, and the user using smart display device 100-2 participates in the meeting as a participant to complete the subsequent data synchronization process.
[0060] It should be noted that, in the embodiments of this application, in addition to the hardware architecture described above, the prerequisite for completing the data synchronization process is the preparation of the system's software or firmware system.
[0061] In the embodiments of this application, the systems of smart display devices 100-1 and 100-2 include a conferencing unit and a writing unit. The conferencing unit is, for example, a conferencing application (APP), and the writing unit is a whiteboard writing application (APP). Specifically, the conferencing unit and whiteboard writing unit of the smart display devices 100-1 and 100-2 in the embodiments of this application integrate a software development kit (SDK) for device access. For example, the conferencing unit and whiteboard writing unit integrating the above-mentioned SDK are pre-loaded during device manufacturing or device system installation.
[0062] Before the meeting begins, or rather, during the device configuration phase, the data synchronization method includes: registering smart display devices 100-1 and 100-2 in the IoT server 202 using the SDK, and generating device identifiers for smart display devices 100-1 and 100-2. This identifier is uniquely associated with each device. For example, the device identifier (sn) for smart display device 100-1 is: WBU1EA6BDE8D. This device identifier is used for message transmission and identification during subsequent data synchronization.
[0063] In addition, before the meeting begins, the data synchronization method also includes: creating a meeting and generating a meeting ID in the meeting server based on the user's second action, so that subsequent users can start the meeting, second users can join the meeting, and data can be synchronized.
[0064] Next, in step S1, smart display devices 100-1 and 100-2 join the meeting using a pre-generated meeting ID based on the user's first operation.
[0065] The specific process can be as follows: A user using smart display device 100-1 starts smart display device 100-1 and opens meeting unit 101-1. At the scheduled meeting start time, the user manually enters the pre-generated meeting ID in the interactive interface of meeting unit 101-1 to join the meeting. Similarly, a user using smart display device 100-2 starts meeting unit 101-2 and joins the meeting at the scheduled meeting start time using the same pre-generated meeting ID.
[0066] In step S2, the writing unit is started and the meeting ID is sent to the writing unit.
[0067] Specifically, the interactive interface of the meeting unit 101-1 has an application interface for starting the writing unit 102-1. Users can start the writing unit 102-1 in the meeting unit 101-1 by clicking or double-clicking. At this time, the meeting ID can be passed to the writing unit 102-2.
[0068] In step S3, the control writing unit uses the software development kit (SDK) to send the meeting ID to the message server in order to subscribe to cluster message topics from the message server.
[0069] Specifically, the writing unit 102-1 communicates with the message server 201 through its integrated SDK, sending a message including the meeting ID. In response to the received meeting ID, the message server 201 creates an EMQX message topic containing the meeting ID to subscribe to the cluster message topic for the smart display device 101-1. After subscribing to the cluster message topic, the smart display device 101-1 can receive and publish messages during the meeting. The format of the EMQX cluster message topic is: dma / wb / {meeting ID}.
[0070] Those skilled in the art will understand that the intelligent display device 101-2 also goes through the above steps, sending a meeting ID to the message server 201 via the SDK, so as to subscribe to the cluster message topic containing the meeting ID in the message server 201, so as to facilitate the subsequent reception and publication of messages under the topic.
[0071] If a user of smart display device 101-1 needs to write content on smart display device 101-1 and simultaneously display it to a user (participant) using smart display device 102-1 during a meeting, that user can use a writing stylus or finger to write on the interface of the already activated writing unit 102-1. Writing unit 102-1 provides a pen function, drawing shapes, and an eraser function. The pen includes font, color, and font size options. After making the corresponding selections, users can add content, annotate, and draw graphics on the meeting interface.
[0072] Continue to refer to Figure 4 As shown, after the writing unit uses the software development kit (SDK) to send the meeting ID to the message server to subscribe to the cluster message topic, the data synchronization method further includes: step S4-1, the intelligent display device 101-1 generates writing data based on the user's writing operation; step S4-2, the SDK is used to publish a message to the subscribed cluster message topic, the message including the writing data and the device identifier.
[0073] Specifically, the writing data includes the coordinate and color information corresponding to the content being written. An example message format published using the SDK is: {"d":[{"x":11.00,"y":22.00,"color":0xffffff},{"x":13.00,"y":23.00,"color":0xffffff}]"sn":"WBU1EA6BDE8D"}. Because the resulting graphic is represented by the lighting and fading of pixels on the display panel, and the pixels in the display interface are two-dimensional images, each pixel has a position in two-dimensional coordinates. The coordinate information includes the x and y coordinates; the color information represents the display data of the pixel represented by that coordinate information.
[0074] When message server 201 receives a message published by smart display device 100-1, it forwards the message to multiple smart display devices 101-1 and 101-2 in response to the received message, thereby completing message synchronization. It is worth noting that because this embodiment uses a cluster message with a publish-subscribe mode, message server 201 forwards the message to all smart display devices that have completed the aforementioned cluster message topic subscription without requiring confirmation from communication nodes. Therefore, smart display device 101-1 is included.
[0075] Reference Figure 5 As shown, after the message server receives the message published by the smart display device 100-1, the method further includes:
[0076] Step S4-2: Smart display devices 100-1 and 100-2 use the SDK to receive messages, which include written data and device identifiers;
[0077] Step S5-2: Intelligent display devices 100-1 and 100-2 compare the received device identifier with the device identifier of their own devices;
[0078] Step S6-2: When the received device identifier is consistent with the local device identifier, the message is ignored; when the received device identifier is inconsistent with the local device identifier, the control writing unit performs writing updates based on the writing data in the message.
[0079] Through this process, the device identifier sn of the intelligent display device 100-1 that generates the writing data is consistent with the device identifier WSU1EA6BDE8D contained in the message, so the message is directly ignored; however, the device identifier of the participating intelligent display device 100-2 is inconsistent with the device identifier WSU1EA6BDE8D contained in the message. Therefore, intelligent display device 100-2 reads the writing data in the message, and lights or turns off the corresponding pixels according to the color information at the writing coordinates represented by the coordinate information to complete the writing update, and finally achieves the writing synchronization effect of the participating intelligent display devices.
[0080] Through the above settings, by utilizing the SDK's access function, smart display devices are connected to the IoT platform. By leveraging the IoT platform's message server's subscription and publish message protocol, data written by users on smart display devices is synchronized to other smart display devices joining the same meeting. Regardless of which device a participating user uses to write, other participants can view that user's writing content in real time. Thus, all users can see their writing data in real time, better facilitating collaboration and communication.
[0081] Furthermore, unlike the annotation mode, the system supports direct, real-time synchronous writing of meeting content on the meeting's display interface and real-time reproduction of the output data, meeting the high requirements for real-time performance. Collaborative writing between multiple devices enhances user interactivity, allowing all users to collaborate and communicate more freely and efficiently in meetings, improving the meeting experience, facilitating remote real-time collaboration, and increasing work efficiency.
[0082] It should be noted that in this method, the written data included in the message in each data transmission is the incremental written data of the current written content (i.e., the changed content that has been modified in this transmission). Therefore, the written data included in the message is incremental written data, and the data transmission adopts an incremental transmission method, which avoids the data processing process in intermediate service nodes and ensures the efficiency of data transmission.
[0083] Based on the same inventive concept, referring to Figure 5 As shown, embodiments of this application also provide a data synchronization method applied to a message server, comprising:
[0084] S1', In response to receiving the conference ID from the first smart display device, establish a cluster message topic, and subscribe the smart display device to the cluster message topic; and
[0085] S2': In response to the received message, forward the message to multiple smart display devices to complete message synchronization. The multiple smart display devices include the first smart display device.
[0086] In this embodiment, the message server uses the received meeting ID to subscribe to a cluster message topic for each smart display device, and uses the cluster message topic to forward messages including writing data, thereby realizing writing synchronization of multiple smart display devices, improving the collaboration ability of each device in the meeting, enhancing user interaction, improving meeting efficiency, and having broad application prospects.
[0087] Based on the same inventive concept, referring to Figure 2 As shown, embodiments of this application also provide a data synchronization system, a message server 201, and multiple intelligent display devices 100-1 and 100-2, wherein the multiple intelligent display devices include a first intelligent display device 100-1, wherein...
[0088] The first intelligent display device 100-1 joins the meeting based on the user's first operation using a pre-generated meeting ID;
[0089] The first intelligent display device 100-1 activates the writing unit and sends the meeting ID to the writing unit;
[0090] The first intelligent display device 100-1 controls the writing unit to send the meeting ID to the message server using the software development kit (SDK).
[0091] Message server 201 establishes a cluster message topic in response to the conference ID received from the first intelligent display device 100-1, and subscribes to the cluster message topic for the first intelligent display device 100-1;
[0092] In response to the received message, the message is forwarded to multiple smart display devices 100-1 and 100-2 to complete message synchronization.
[0093] Optionally, refer to Figure 2 As shown, the data synchronization system may also include a conference system server 202 and / or an Internet of Things (IoT) platform 203, to use the conference server 202 for device registration and the IoT platform 203 for conference creation, so as to facilitate device identification and conference ID generation for data synchronization.
[0094] In this embodiment, by sending the meeting ID to the writing unit and using the software development kit (SDK) to send the meeting ID to the message server, and then using the message server to subscribe to cluster message topics for each smart display device using the received meeting ID, and using the cluster message topics to forward messages including writing data, writing synchronization of multiple smart display devices is achieved, improving the collaboration capability of each device in the meeting, enhancing user interaction, and improving meeting efficiency, which has broad application prospects.
[0095] Another embodiment of this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements: joining a meeting using a pre-generated meeting ID based on a user's first operation; initiating a writing unit and sending the meeting ID to the writing unit; controlling the writing unit to send the meeting ID to a message server using a software development kit (SDK) to subscribe to cluster message topics from the message server.
[0096] Another embodiment of this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements: establishing a cluster message topic in response to a conference ID received from a first smart display device, subscribing to the cluster message topic for the smart display device; and forwarding messages to multiple smart display devices in response to received messages to complete message synchronization, the multiple smart display devices including the first smart display device.
[0097] In practical applications, the computer-readable storage medium can be any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. For example, a computer-readable storage medium can be, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0098] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of sending, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.
[0099] Program code contained on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0100] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0101] like Figure 6 As shown, another embodiment of this application provides a structural schematic diagram of a computer device. Figure 6 The computer device 13 shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0102] like Figure 6 As shown, the computer device 13 is represented in the form of a general-purpose computing device. The components of the computer device 13 may include, but are not limited to: one or more processors or processing units 16, system memory 28, and bus 18 connecting different system components (including system memory 28 and processing unit 16).
[0103] Bus 18 represents one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. For example, these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.
[0104] Computer device 13 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by computer device 13, including volatile and non-volatile media, removable and non-removable media.
[0105] System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. Computer device 13 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 may be used to read and write non-removable, non-volatile magnetic media (…). Figure 6 Not shown; usually referred to as a "hard drive"). Although Figure 6 Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk") and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 via one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of this application.
[0106] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Program modules 42 typically perform the functions and / or methods described in the embodiments of this application.
[0107] Computer device 13 can also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), and with one or more devices that enable a user to interact with the computer device 13, and / or with any device that enables the computer device 13 to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be performed through input / output (I / O) interface 52. Furthermore, computer device 13 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 50. Figure 6 As shown, network adapter 50 communicates with other modules of computer device 13 via bus 18. It should be understood that, although... Figure 6 As not shown, other hardware and / or software modules may be used in conjunction with computer device 13, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0108] The processor unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, such as implementing a data synchronization method provided in the embodiments of this application.
[0109] This application addresses existing problems by providing a data synchronization method and system, a computer-readable storage medium, and a computer device. By sending the meeting ID to the writing unit and using a software development kit (SDK) to send the meeting ID to a message server to subscribe to cluster message topics from the message server, the writing synchronization of multiple intelligent display devices is achieved, improving the collaboration capabilities of various devices in the meeting, enhancing user interactivity, and increasing meeting efficiency. It has broad application prospects.
[0110] Obviously, the above embodiments of this application are merely examples for clearly illustrating this application, and are not intended to limit the implementation of this application. For those skilled in the art, other variations or modifications can be made based on the above description. It is impossible to exhaustively list all implementation methods here. Any obvious variations or modifications derived from the technical solutions of this application are still within the protection scope of this application.
Claims
1. A data synchronization method applied to a smart display device, characterized in that, The method comprises: joining a conference based on a first operation of a user by using a pre-generated conference ID; starting a writing unit and sending the conference ID to the writing unit; controlling the writing unit to send the conference ID to a message server by using a software development kit (SDK) to subscribe to a cluster message topic of the message server, before the joining of the conference based on the first operation of the user by using the pre-generated conference ID, the method comprises: registering the smart display device in an Internet of Things (IoT) server by using the SDK and generating a device identifier of the smart display device; after the controlling of the writing unit to send the conference ID to the message server by using the SDK to subscribe to the cluster message topic, the method further comprises: receiving a message by using the SDK, the message comprising writing data and the device identifier; comparing the received device identifier with a local device identifier; when the received device identifier is consistent with the local device identifier, ignoring the message, and when the received device identifier is inconsistent with the local device identifier, controlling the writing unit to perform writing update according to the writing data in the message.
2. The data synchronization method of claim 1, wherein, before the joining of the conference based on the first operation of the user by using the pre-generated conference ID, the method comprises: creating a conference in a conference server and generating the conference ID based on a second operation of the user.
3. The data synchronization method of claim 1, wherein, after the controlling of the writing unit to send the conference ID to the message server by using the SDK to subscribe to the cluster message topic, the method further comprises: generating writing data based on a writing operation of the user; publishing a message to the subscribed cluster message topic by using the SDK, the message comprising the writing data and the device identifier.
4. The data synchronization method of claim 1, wherein, the writing data comprises coordinate information and color information corresponding to this writing content, the controlling of the writing unit to perform writing update according to the writing data in the message further comprises: reading the writing data and performing writing update at a writing coordinate indicated by the coordinate information according to the color information.
5. The data synchronization method of any of claims 1-4, wherein, the message server is selected from one of EMQX, VerneMQ, HiveMQ, NanoMQ and NanoMQ.
6. A data synchronization method applied to a message server, characterized in that, The method comprises: establishing a cluster message topic in response to receiving a conference ID sent by a first smart display device through a software development kit (SDK) to subscribe to the cluster message topic for the first smart display device; and In response to the received message, the message is forwarded to the plurality of smart display devices, so that the plurality of smart display devices receive the message by using the SDK, the message including writing data and a device identifier, the received device identifier is compared with a local device identifier, when the received device identifier is consistent with the local device identifier, the message is ignored, when the received device identifier is inconsistent with the local device identifier, the writing unit is controlled to update writing according to the writing data in the message, to complete message synchronization, and the plurality of smart display devices include the first smart display device.
7. A data synchronization system, characterized by Comprise: a message server and a plurality of smart display devices, the plurality of smart display devices including a first smart display device, wherein, the plurality of smart display devices register the smart display devices in the Internet of Things server by using a software development kit SDK, and generate device identifiers of the plurality of smart display devices; the first smart display device joins a conference based on a first operation of a user by using a pre-generated conference ID; the first smart display device starts a writing unit and sends the conference ID to the writing unit; the first smart display device controls the writing unit to send the conference ID to the message server by using a software development kit SDK; the message server establishes a cluster message topic in response to receiving the conference ID sent by the first smart display device, to subscribe to the cluster message topic for the first smart display device; in response to the received message, the message is forwarded to the plurality of smart display devices, so that the plurality of smart display devices receive the message by using the SDK, the message including writing data and the device identifier, the received device identifier is compared with a local device identifier, when the received device identifier is consistent with the local device identifier, the message is ignored, when the received device identifier is inconsistent with the local device identifier, the writing unit is controlled to update writing according to the writing data in the message, to complete message synchronization.
8. A computer readable storage medium having stored thereon a computer program, characterized in that, the program is executed by a processor to implement the method of any one of claims 1-5; or the program is executed by a processor to implement the method of claim 6.
9. A computer device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, the processor executes the program to implement the method of any one of claims 1-5; or the processor executes the program to implement the method of claim 6.
Citation Information
Patent Citations
White board content display method and device, white board equipment and server
CN110597472A
Same-screen display method and device, equipment and medium
CN114785979A