Data synchronization method and system, computer readable storage medium and computer equipment
By using SDK on the smart conference tablet to achieve writing synchronization between multiple devices, the problem that participants cannot edit the content of the whiteboard is solved, and the meeting efficiency and participation is improved.
Patent Information
- Application Number
- CN202310799059.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-30
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2043-06-30
AI Technical Summary
In online meetings, participants cannot edit the content of the smart conference tablet after sharing the content of the whiteboard, resulting in low participation of participants and impact on the efficiency of the meeting.
By using the Software Development Toolkit SDK on the smart display device, the writing data is sent to the message server using the pre-generated meeting ID, and writing synchronization between multiple smart display devices is realized, allowing participants to edit whiteboard content in real time.
It improves the collaboration capabilities and user interaction of each device in the conference, improves the meeting efficiency, and realizes efficient collaborative writing among multiple whiteboard devices.
Smart Images

Figure CN119232750A_ABST
Abstract
Description
Technical Field
[0001] The present 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 Art
[0002] With the continuous development of computer network technology, big data technology, Internet of Things technology and artificial intelligence technology, smart conference tablets have become indispensable conference equipment in government and enterprise conference rooms, media studios, educational training institutions and other places. Smart conference tablets integrate multiple devices such as computers, projectors, screens, electronic whiteboards, advertising machines, televisions, audio and remote conference terminals to provide a full range of conference experience. Among them, the electronic whiteboard, as a featured application of the smart conference tablet, has been well received because it supports touch writing and back-of-hand erasing functions.
[0003] However, in current online conferences, smart conference tablets share screen content in real time by sharing the screen, or perform whiteboard interactive operations in the annotation mode when projecting the screen. After the sharer modifies the data in the electronic whiteboard, the participants can see the effect immediately, but cannot edit the whiteboard content. This method will lead to low participation of participants and affect the efficiency of the meeting.
[0004] Therefore, it is necessary to provide an electronic whiteboard conference system that supports synchronous writing on multiple whiteboards, so as to efficiently realize collaborative writing on whiteboards among multiple whiteboard devices. Summary of the invention
[0005] In order to solve at least one of the above problems, the present application provides a data synchronization method in a first aspect, which is applied to a smart display device, comprising:
[0006] Joining the conference using the pre-generated conference ID based on a first operation of the user;
[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 conference ID to the message server to subscribe to the cluster message topic from the message server.
[0009] In some optional embodiments, before joining the conference using the pre-generated conference ID based on the first operation of the user, the method includes:
[0010] Use SDK to register the smart display device in the IoT server and generate the device ID of the smart display device;
[0011] Based on the second operation of the user, a conference is created in the conference server and a conference ID is generated.
[0012] In some optional embodiments, after the control writing unit uses the software development kit SDK to send the conference ID to the message server to subscribe to the cluster message topic to the message server, the method further includes:
[0013] Generate writing data based on the user's writing operation;
[0014] Use the SDK to publish messages to the subscribed cluster message topic. The messages include writing data and device identification.
[0015] In some optional embodiments, after the control writing unit uses the software development kit SDK to send the conference ID to the message server to subscribe to the cluster message topic to the message server, the method further includes:
[0016] Use SDK to receive messages, which include writing data and device identification;
[0017] Compare the received device identification with the device identification of the local device;
[0018] When the received device identification is consistent with the device identification of the local device, the message is ignored. When the received device identification is inconsistent with the device identification of the local device, the writing unit is controlled to perform writing update according to the writing data in the message.
[0019] In some optional embodiments, the writing data includes coordinate information and color information corresponding to the current writing content.
[0020] Controlling the writing unit to perform writing update according to the writing data in the message 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 optional embodiments, the message server is one selected from EMQX, VerneMQ, HiveMQ, NanoMQ and NanoMQ.
[0022] A second aspect of the present 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 smart display device to the cluster message topic;
[0024] In response to the received message, the message is forwarded to multiple smart display devices to complete message synchronization, and the multiple smart display devices include a first smart display device.
[0025] A third aspect of the present application provides a data synchronization system, including: a message server and a plurality of smart display devices, wherein the plurality of smart display devices include a first smart display device, wherein:
[0026] The first smart display device joins the conference using the pre-generated conference ID based on the first operation of the user;
[0027] The first intelligent display device starts the writing unit and sends the conference ID to the writing unit;
[0028] The first intelligent display device controls the writing unit to send the conference ID to the message server using the software development kit SDK;
[0029] The message server establishes a cluster message topic in response to the conference ID received from the first smart display device, so as to subscribe the first smart display device to the cluster message topic;
[0030] In response to the received message, the message is forwarded to multiple smart display devices to complete message synchronization.
[0031] A fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon.
[0032] When the program is executed by a processor, the method according to the first aspect above is implemented; or
[0033] When the program is executed by a processor, the method described in the second aspect above is implemented.
[0034] A fifth aspect of the present 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, the method according to the first aspect above is implemented; or
[0036] When the processor executes the program, the method described in the second aspect above is implemented.
[0037] The beneficial effects of this application are as follows:
[0038] In response to the current existing problems, the present application provides a data synchronization method and system, a computer-readable storage medium and a computer device. By sending the conference ID to the writing unit and using the software development kit SDK to send the conference ID to the message server, the cluster message topic is subscribed to the message server, thereby realizing the writing synchronization of multiple smart display devices, improving the collaboration ability of each device in the meeting, enhancing user interaction, and improving meeting efficiency, and has broad application prospects. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0040] Figure 1 A flowchart showing a data synchronization method according to an embodiment of the present application is shown;
[0041] Figure 2 A schematic diagram showing the overall framework of a system for an application data synchronization method according to an embodiment of the present application;
[0042] Figure 3 A flow chart showing a data synchronization method according to an embodiment of the present application;
[0043] Figure 4 A flow chart showing a data synchronization method according to another embodiment of the present application;
[0044] Figure 5 A flowchart showing a data synchronization method according to another embodiment of the present application; and
[0045] Figure 6 A schematic structural diagram of a computer device according to another embodiment of the present application is shown. DETAILED DESCRIPTION
[0046] In order to more clearly illustrate the present application, the present application is further described below in conjunction with preferred embodiments and drawings. Similar components in the drawings are represented by the same reference numerals. It should be understood by those skilled in the art that the content described below is illustrative rather than restrictive, and should not be used to limit the scope of protection of the present application.
[0047] In order to solve at least one of the above problems, Figure 1 As shown, an embodiment of the present application provides a data synchronization method, which is applied to a smart display device, including:
[0048] Step S1: Joining a conference using a pre-generated conference ID based on a first operation of a user;
[0049] Step S2, start the writing unit and send the conference ID to the writing unit;
[0050] Step S3: Control the writing unit to send the conference ID to the message server using the software development kit SDK to subscribe to the cluster message topic from the message server.
[0051] In this embodiment, by sending the conference ID to the writing unit and using the software development kit SDK to send the conference ID to the message server to subscribe to the cluster message topic to the message server, writing synchronization of multiple smart display devices is achieved, the collaboration ability of each device in the meeting is improved, user interaction is improved, and meeting efficiency is improved, which has broad application prospects.
[0052] In order to better understand the data synchronization method of the present application, the overall structure of the system applying the data synchronization method of the embodiment of the present application is first described in combination with the hardware structure.
[0053] Reference Figure 2 The data synchronization system architecture is shown, including: multiple smart display devices 100-1 and 100-2, a message server 201, a conference system server 202, and an Internet of Things platform 203. As shown in the figure, only two smart display devices 100-1 and 100-2 are taken as an example. In actual applications, a data synchronization system does not limit the number of smart display systems, but depends on the number of smart display devices that join the conference at the same time.
[0054] In a specific example, the data synchronization system can be used as a conference writing synchronization system, and the smart display devices 100-1 and 100-2 can be conference all-in-one devices in the system, such as electronic whiteboards. However, the present application does not limit the specific type of smart display devices, and any smart display device with a display having a touch writing function and capable of loading a smart system to implement the data synchronization method of the present application is acceptable. In certain cases, the smart display device can even include a terminal device, a tablet computer, etc.
[0055] In an embodiment of the present application, the data synchronization method is implemented as software or a plug-in and installed or loaded in the system of the smart display devices 100-1 and 100-2, or is software or a plug-in stored in external hardware or firmware, which is plugged into the smart display devices 100-1 and 100-2 so that the data synchronization method of the embodiment of the present application can be implemented on the smart display devices 100-1 and 100-2.
[0056] In an embodiment of the present application, the message server 201 is a message server capable of subscribing to and publishing cluster messages. For example, in the example below, the message server 201 uses a lightweight message server (EMQX), which is an open source IoT MQTT message server developed based on the Erlang / OTP platform, with a focus on professional support for the MQTT protocol, where MQTT is a lightweight (Lightweight), publish-subscribe mode (PubSub) IoT message protocol), which is very suitable in the field of IoT. However, the present application is not limited to this, and other message servers capable of cluster message forwarding in subscription and publishing mode are also possible, such as VerneMQ, HiveMQ, NanoMQ, and NanoMQ.
[0057] In addition, in the embodiment of the present application, the conference system server 202 is a server that provides conference services. For example, the server creates a conference and generates a conference ID so that subsequent users can join the conference and synchronize data. The server is not specifically limited in this application, and the server type operated and provided by the specific conference service platform shall prevail. The Internet of Things platform 203 is an Internet of Things server that is used to provide a variety of Internet of Things device services, such as registering smart display devices 100-1 and 100-2 in an Internet of Things environment for identification between devices.
[0058] In this example, each server 201, 202 and 203 can be a cloud server, but this application does not limit it. In a specific scenario, one or more of them can also be a local server. Therefore, although not specifically limited, the smart display devices 100-1 and 100-2, the message server 201, the conference system server 202, and the Internet of Things platform 203 all have communication modules and can communicate and interconnect, and the communication method is not limited.
[0059] Based on the description of the above system architecture, the following Figure 3 , Figure 4 The synchronization process of the data synchronization method of the embodiment of the present application is described in detail with specific examples. In this example, for the convenience of description, it is assumed that in a meeting, a user using the smart display device 100-1 initiates meeting creation, and a user using the smart display device 100-2 attends the meeting as a participant using the smart display device 100-2 to complete the subsequent data synchronization process.
[0060] It should be noted that, in the embodiments of the present application, in addition to the above-mentioned hardware architecture, the prerequisite for completing the data synchronization process is the system software or firmware system preparation.
[0061] In the embodiment of the present application, the system of the smart display devices 100-1 and 100-2 includes a conference unit and a writing unit, the conference unit is, for example, a conference application (APP), and the writing unit is a whiteboard writing application (APP). In particular, the conference unit and the whiteboard writing unit of the smart display devices 100-1 and 100-2 in the embodiment of the present application are integrated with a software development tool SDK for device access. For example, when the device leaves the factory or the device system is installed, the conference unit and the whiteboard writing unit integrated with the above SDK are pre-loaded.
[0062] Before the meeting starts, or in other words, in the device configuration stage, the data synchronization method includes: using SDK to register the smart display devices 100-1 and 100-2 in the Internet of Things server 202, and generating device identifiers of the smart display devices 100-1 and 100-2. The identifier is uniquely corresponding to the device. For example, the device identifier sn of the smart display device 100-1 is: WBU1EA6BDE8D, and the device identifier is used for message transmission and identification in the subsequent data synchronization process.
[0063] In addition, before the meeting starts, the data synchronization method also includes: creating a meeting in the conference server based on the user's second operation and generating a conference ID so that subsequent users can start the meeting, the second user can join the meeting, and the data can be synchronized.
[0064] Next, in step S1 , the smart display devices 100 - 1 and 100 - 2 join the conference using the pre-generated conference ID based on the user's first operation.
[0065] The specific process may be that the user using the smart display device 100-1 starts the smart display device 100-1 and turns on the conference unit 101-1, and at the scheduled meeting start time, manually enters the pre-generated conference ID in the interactive interface of the conference unit 101-1 to join the meeting. Similarly, the user using the smart display device 100-2 starts the conference unit 101-2 and also uses the pre-generated conference ID to join the meeting at the scheduled meeting start time.
[0066] In step S2, the writing unit is started and the conference ID is sent to the writing unit.
[0067] Specifically, the interactive interface of the conference unit 101-1 has an application interface for starting the writing unit 102-1. The user can start the writing unit 102-1 in the conference unit 101-1 by single-clicking or double-clicking. At this time, the conference ID can be transferred to the writing unit 102-2.
[0068] In step S3, the control writing unit uses the software development kit SDK to send the conference ID to the message server to subscribe to the cluster message topic from the message server.
[0069] Specifically, the writing unit 102-1 communicates with the message server 201 through its integrated SDK and sends a message including the conference ID. In response to the received conference ID, the message server 201 establishes an EMQX message topic (Topic) containing the conference ID to complete the subscription of the cluster message topic for the smart display device 101-1. After the smart display device 101-1 subscribes to the cluster message topic, it can receive and publish messages during the conference. The format of the EMQX cluster message topic is: dma / wb / {conference ID}.
[0070] Those skilled in the art can understand that the smart display device 101-2 also goes through the above steps and sends the conference ID to the message server 201 through the SDK to complete the subscription of the cluster message topic containing the conference ID in the message server 201, so as to facilitate the subsequent reception and publication of messages under the topic.
[0071] If the user using the smart display device 101-1 needs to use the smart display device 101-1 to write content during the meeting and simultaneously display it to the user (participant) using the smart display device 102-1, the user uses a writing stylus or a finger to write on the interface of the activated writing unit 102-1. The writing unit 102-1 can provide a brush function, a drawing shape, and an eraser function. The brush includes font options, color options, font size options, etc. After the corresponding selection operation, the user can add content, annotate, draw graphics, etc. on the meeting interface.
[0072] Continue to refer to Figure 4 As shown, after controlling the writing unit to use the software development kit SDK to send the conference ID to the message server to subscribe to the cluster message topic to the message server, the data synchronization method further includes: step S4-1, the smart display device 101-1 generates writing data based on the user's writing operation; step S4-2, using the SDK 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 information and color information corresponding to the writing content. The message format example published by the SDK is: {"d":[{"x":11.00,"y":22.00,"color":0xffffff}, {"x":13.00,"y":23.00,"color":0xffffff}]"sn":"WBU1EA6BDE8D"}, because the graphics formed after writing are reflected by the lighting and extinguishing of the pixels in the display panel, and the pixels in the display interface are two-dimensional images, each pixel has a position in the two-dimensional coordinates, and the coordinate information includes the x-coordinate and y-coordinate in the corresponding coordinates; the color information represents the display data of the pixel represented by the coordinate information.
[0074] When the message server 201 receives the message published by the smart display device 100-1, in response to the received message, the message is forwarded to multiple smart display devices 101-1 and 101-2 to complete the message synchronization. It is worth noting that because the embodiment of the present application adopts cluster messages in the subscription and publishing mode, the message server 201 forwards the message to all smart display devices that have completed the subscription to the above cluster message topic without the need for the communication node to confirm the receipt. Therefore, the 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: the smart display devices 100-1 and 100-2 receive a message using the SDK, the message including the written data and the device identification;
[0077] Step S5-2: the smart display devices 100-1 and 100-2 compare the received device identification with the local device identification;
[0078] Step S6-2: When the received device identification is consistent with the device identification of the local device, the message is ignored; when the received device identification is inconsistent with the device identification of the local device, the writing unit is controlled to update the writing according to the writing data in the message.
[0079] After this process, the device identifier sn of the smart 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; while the device identifier of the participating smart display device 100-2 is inconsistent with the device identifier WSU1EA6BDE8D contained in the message, the smart display device 100-2 reads the writing data in the message, lights up or turns off the corresponding pixel points according to the color information at the writing coordinates represented by the coordinate information, completes the writing update, and finally achieves the writing synchronization effect of the participating smart display devices.
[0080] Through the above settings, by utilizing the access function of the SDK, the smart display device is connected to the IoT platform, and by utilizing the subscription and publishing message protocol mode of the IoT platform's message server, the data written by the user on the smart display device is synchronized to other smart display devices joining the same conference. No matter which device the participating users use to write, other users joining the conference can view the user's writing content in real time, so that all users can present writing data in real time, and better achieve collaboration and communication.
[0081] Furthermore, unlike the annotation mode, the system supports direct, real-time synchronous writing of meeting content on the meeting display interface, and real-time reproduction of output data, meeting the high real-time requirements; and collaborative writing between multiple devices improves user interactivity, allowing all users to collaborate and communicate in meetings more freely and efficiently, improving the meeting experience, facilitating remote real-time collaboration, and improving work efficiency.
[0082] It should be pointed out in particular that in this method, the writing data included in the message in each data transmission is the incremental writing data of the current writing content (i.e., the changed content that has been changed this time). Therefore, the writing data contained in the message is incremental writing data, and the data transmission adopts an incremental transmission method, which avoids the data processing process in the intermediate service node and ensures the high efficiency of data transmission.
[0083] Based on the same inventive concept, Figure 5 As shown, an embodiment of the present application also provides a data synchronization method, which is applied to a message server, comprising:
[0084] S1', establishing a cluster message topic in response to the conference ID received from the first smart display device, so as to subscribe the smart display device to the cluster message topic; and
[0085] S2', in response to the received message, forwarding the message to multiple smart display devices to complete message synchronization, the multiple smart display devices including the first smart display device,
[0086] In this embodiment, the message server uses the received conference ID to subscribe to the cluster message topic for each smart display device, and uses the cluster message topic to forward messages including writing data, thereby achieving writing synchronization of multiple smart display devices, improving the collaboration capabilities of each device in the meeting, enhancing user interactivity, and improving meeting efficiency, which has broad application prospects.
[0087] Based on the same inventive concept, Figure 2 As shown, the embodiment of the present application also provides a data synchronization system, a message server 201 and a plurality of smart display devices 100-1 and 100-2, wherein the plurality of smart display devices include a first smart display device 100-1, wherein:
[0088] The first smart display device 100 - 1 joins the conference using the pre-generated conference ID based on the user's first operation;
[0089] The first intelligent display device 100 - 1 starts the writing unit and sends the conference ID to the writing unit;
[0090] The first intelligent display device 100 - 1 controls the writing unit to send the conference ID to the message server using the software development kit SDK;
[0091] The message server 201 establishes a cluster message topic in response to the conference ID received from the first smart display device 100 - 1 , so as to subscribe the cluster message topic for the first smart display device 100 - 1 ;
[0092] In response to the received message, the message is forwarded to the plurality of 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 platform 203, so as to utilize the conference server 202 for device registration and utilize the Internet of Things platform 203 for conference creation, so as to facilitate device identification for data synchronization and generation of conference ID.
[0094] In this embodiment, by sending the conference ID to the writing unit, and using the software development kit SDK to send the conference ID to the message server, and using the message server to subscribe to the cluster message topic for each smart display device using the received conference ID, and using the cluster message topic to forward messages including writing data, writing synchronization of multiple smart display devices is achieved, the collaboration ability of each device in the meeting is improved, user interaction is improved, and meeting efficiency is improved, which has broad application prospects.
[0095] Another embodiment of the present 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 first operation of a user; starting 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 a cluster message topic to the message server.
[0096] Another embodiment of the present 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 to subscribe the smart display device to the cluster message topic; and forwarding the message to multiple smart display devices in response to the received message to complete message synchronization, wherein the multiple smart display devices include the first smart display device.
[0097] In practical applications, the computer-readable storage medium can adopt 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. The computer-readable storage medium can be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present embodiment, the computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0098] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0099] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0100] Computer program code for performing the operation of the present application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through 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., using an Internet service provider to connect through the Internet).
[0101] like Figure 6 As shown, a structural schematic diagram of a computer device provided by another embodiment of the present application. Figure 6 The computer device 13 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0102] like Figure 6 As shown, the computer device 13 is 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, a system memory 28, and a bus 18 connecting different system components (including the system memory 28 and the processing unit 16).
[0103] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0104] The computer device 13 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 13, including volatile and non-volatile media, removable and non-removable media.
[0105] The 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. The computer device 13 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 6 not shown, usually called 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 drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical medium) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present application.
[0106] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described herein.
[0107] The computer device 13 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the computer device 13, and / or any device that enables the computer device 13 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed through an input / output (I / O) interface 52. Furthermore, the computer device 13 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 50. Figure 6 As shown, the network adapter 50 communicates with other modules of the computer device 13 via the bus 18. It should be understood that although Figure 6 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 an embodiment of the present application.
[0109] In response to the current existing problems, the present application provides a data synchronization method and system, a computer-readable storage medium and a computer device. By sending the conference ID to the writing unit and using the software development kit SDK to send the conference ID to the message server, the cluster message topic is subscribed to the message server, thereby realizing the writing synchronization of multiple smart display devices, improving the collaboration ability of each device in the meeting, enhancing user interaction, and improving meeting efficiency, and has broad application prospects.
[0110] Obviously, the above embodiments of the present application are merely examples for clearly illustrating the present application, and are not limitations on the implementation methods of the present application. For ordinary technicians in the relevant field, other different forms of changes or modifications can be made based on the above description. It is impossible to list all the implementation methods here. All obvious changes or modifications derived from the technical solution of the present application are still within the scope of protection of the present application.
Claims
1. A data synchronization method, applied to a smart display device, characterized in that: include: Joining the conference using the pre-generated conference ID based on a first operation of the user; Starting a writing unit and sending the conference ID to the writing unit; The writing unit is controlled to send the conference ID to a message server using a software development kit SDK, so as to subscribe to a cluster message topic from the message server.
2. The data synchronization method according to claim 1, characterized in that: Before joining the conference by using the pre-generated conference ID based on the first operation of the user, the method includes: Register the smart display device in the Internet of Things server using the SDK and generate a device identifier for the smart display device; A conference is created in the conference server based on the second operation of the user and the conference ID is generated.
3. The data synchronization method according to claim 2, characterized in that: After the control unit sends the conference ID to the message server using the software development kit SDK to subscribe to the cluster message topic from the message server, the method further includes: Generate writing data based on the writing operation of the user; The SDK is used to publish a message to the subscribed cluster message topic, wherein the message includes the writing data and the device identifier.
4. The data synchronization method according to claim 2, characterized in that: After the control unit sends the conference ID to the message server using the software development kit SDK to subscribe to the cluster message topic from the message server, the method further includes: Receiving a message using the SDK, the message including the writing data and the device identification; Compare the received device identification with the device identification of the local device; When the received device identification is consistent with the device identification of the local device, the message is ignored. When the received device identification is inconsistent with the device identification of the local device, the writing unit is controlled to perform writing update according to the writing data in the message.
5. The data synchronization method according to claim 4, characterized in that: The writing data includes coordinate information and color information corresponding to the writing content. The controlling the writing unit to perform writing update according to the writing data in the message 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.
6. The data synchronization method according to any one of claims 1 to 5, characterized in that: The message server is one selected from EMQX, VerneMQ, HiveMQ, NanoMQ and NanoMQ.
7. A data synchronization method, applied to a message server, characterized in that: include: In response to the conference ID received from the first smart display device, a cluster message topic is established to subscribe the smart display device to the cluster message topic; as well as In response to the received message, the message is forwarded to a plurality of smart display devices to complete message synchronization, wherein the plurality of smart display devices include the first smart display device.
8. A data synchronization system, characterized in that: include: A message server and a plurality of smart display devices, wherein the plurality of smart display devices include a first smart display device, wherein: The first smart display device joins the conference using the pre-generated conference ID based on the first operation of the user; The first intelligent display device starts a writing unit and sends the conference ID to the writing unit; The first intelligent display device controls the writing unit to send the conference ID to the message server using a software development kit SDK; The message server establishes a cluster message topic in response to the conference ID received from the first smart display device, so as to subscribe the first smart display device to the cluster message topic; In response to the received message, the message is forwarded to the multiple smart display devices to complete message synchronization.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented; or When the program is executed by a processor, the method according to claim 7 is implemented.
10. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 6 is implemented; or When the processor executes the program, the method according to claim 7 is implemented.
Citation Information
Patent Citations
Content interaction method and content interaction system for video conference
CN104038722A
Method and system for achieving synchronous comments of screen contents among multiple equipment
CN108769782A
Conference fusion method, terminal, server and computer storage medium
CN109788229A
Single-system multi-desktop file dividing system
CN110471736A
Operating system for realizing multi-person writing and interaction by single screen or spliced screen
CN110489197A
