Multi-device real-time data synchronization and interaction device and method based on local area network

By using multi-device real-time data synchronization and interactive devices in the LAN, and using the transfer-in/return-out buttons to realize menu switching and numerical input, the problems of complex scoring statistics process and high network delay in the existing technology are solved, and efficient and secure real-time data synchronization is achieved.

CN120075245APending Publication Date: 2025-05-30UNIV OF ELECTRONICS SCI & TECH OF CHINA +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510222163.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-27
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

In the prior art, the scoring statistical process is complex and inefficient, high network latency, poor real-time interaction and poor flexibility.

Method used

The real-time data synchronization and interactive equipment based on the LAN are adopted, including the LAN setup module, the data collection module, the data processing module, the real-time synchronization module and the display module. The menu switching and numerical input are realized through the transfer in/out buttons, and the LAN is used for low-latency real-time data synchronization.

Benefits of technology

It simplifies user operation processes, improves operation efficiency, realizes low-latency real-time data synchronization, reduces dependence on external servers, and ensures data and privacy security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120075245A_ABST
    Figure CN120075245A_ABST
Patent Text Reader

Abstract

The invention provides a multi-device real-time data synchronization and interaction device and method based on a local area network, and belongs to the field of local area networks. The device comprises a local area network setting module, a data collection module, a data processing module, a real-time synchronization module and a display module. The local area network setting module is used for realizing local area network networking of a plurality of devices; the data collection module collects data through a roll-in / roll-out key and sends the collected data to the main device; the roll-in / roll-out key simultaneously has the functions of menu function switching, numerical value input and numerical value change; the data processing module is used for calculating changed data; and the real-time synchronization module is used for synchronizing the processing result to the associated equipment. The invention further provides a multi-device real-time data synchronization and interaction method based on the local area network. According to the invention, the cost is low, menu switching and numerical value change are realized by one key, the operation efficiency is improved, low-delay and real-time synchronization of data in a local area network is realized, and the security of data and privacy is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of local area networks, and particularly relates to a multi-device real-time data synchronization, interaction device and method based on a local area network. Background Art

[0002] Traditional scoring methods such as chips and cards in poker and mahjong are inconvenient and difficult to meet the modern digital and efficient requirements. Although existing electronic scoring devices have made some progress, they still have significant defects. In terms of numerical use and numerical operation of existing electronic and digital scoring devices, it is extremely cumbersome to rely on keyboard input of precise numbers, pressing buttons of specific denominations lacks flexibility, or using a knob method will cause a sharp increase in the volume and cost of the device; when combining menu switching and numerical input operations, multiple steps are required, first select the menu and then input the value, the process is complex and inefficient, seriously affecting the user experience and the practicality of the device.

[0003] Current scoring systems and data synchronization systems usually use a centralized server and rely on an external network of the Internet for multi-device data update, which not only results in high network latency, poor real-time interactivity, dependence on the external network, but also brings problems such as security and privacy. And most rely on forms such as applets and apps; during use, users need to manually download or share the applet with others. Some forms rely on other devices (such as installed in automatic mahjong machines), with poor flexibility and unable to implement more functions. Existing devices are limited in application scenarios due to relying on a specific network architecture and are difficult to flexibly synchronize different types of event data. Summary of the Invention

[0004] The purpose of the present invention is to provide a multi-device real-time data synchronization, interaction device and method based on a local area network to solve the technical problems of complex and inefficient scoring statistics process, high network latency, poor real-time interactivity, and poor flexibility in the prior art.

[0005] To solve the above technical problems, the specific technical solutions of the present invention are as follows:

[0006] A multi-device real-time data synchronization, interaction device based on a local area network, the device includes a local area network setting module, a data collection module, a data processing module, a real-time synchronization module and a display module.

[0007] The local area network setting module is used to realize the local area network networking of multiple devices, and trigger the establishment of the local area network through the confirmation button; among them, one device is used as the master device, and the rest of the devices are used as slave devices.

[0008] The data collection module is used to collect the data input by the user's key presses and send the collected data to the master device; the data collection module collects data through the transfer key and the transfer-out key; the transfer-in / transfer-out keys also have the functions of menu function switching, numerical input, and numerical change; after the transfer-in / transfer-out keys are executed, the device display module interface switches to the transfer-in / transfer-out menu interface and then to the transfer-in / transfer-out numerical input interface, and the input value increases / decreases non-linearly with the length of the key press time.

[0009] Further, the device also includes a return key. After the user executes the transfer-in / transfer-out key and the data collection module has collected the transfer-in / transfer-out value, if the user wants to cancel the input transfer-in / transfer-out value, long-press the return key at this time to cancel the transfer-in / transfer-out value; the data collection module collects the user's cancellation of the transfer-in / transfer-out value.

[0010] Further, the data processing module is used to calculate the changed data according to the data transmitted by the data collection module.

[0011] Further, the real-time synchronization module is used to synchronize the processing result of the data processing module to the associated device.

[0012] The present invention also proposes a multi-device real-time data synchronization and interaction method based on a local area network, including the following steps:

[0013] Step S1: Create a local area network for multiple devices, allowing multiple devices to connect and communicate.

[0014] Step S2: Collect the values input by the transfer-in / transfer-out keys of each device, collect the values for canceling the transfer-in / transfer-out of each device, and send an integral transfer message to the master device.

[0015] Step S3: The master device processing unit performs matching and calculation according to the integral transfer message, and synchronizes the calculation result to the associated device.

[0016] Step S4: Display the processing result on the display module of the associated device according to the processing result.

[0017] Further, in step S1, one of the multiple devices is used as the master device, and the rest of the devices are used as slave devices; the master device broadcasts a local area network invitation message to the surrounding slave devices. After the slave device receives the local area network invitation message, it decides whether to automatically join the local area network according to the historical information of the device that has already formed a local area network; if the slave device and the master device were once in the same local area network, the slave device automatically completes handshake communication with the master device and automatically joins the local area network; conversely, if it is a new local area network formation invitation, the user needs to manually click whether to join; when the user operating the master device determines that all devices have joined the local area network, the formation of the local area network can be confirmed.

[0018] Further, step S2 includes the following steps:

[0019] Step S21: When the user presses the device transfer in / out button, the device interface switches from the transfer in / out menu interface to the transfer in / out numerical input interface. Determine the input transfer in / out numerical value according to the length of time the user presses the button, and collect the numerical values input by each device's transfer in / out button.

[0020] Step S22: When the user presses the device transfer in / out button and then long-presses the return button, the device cancels the previously input transfer in / out numerical value and collects the numerical values for canceling the transfer in / out of each device.

[0021] Step S23: The slave device cancels the transfer in / out numerical value according to the transfer in / out numerical value and sends an integral transfer message to the master device.

[0022] Compared with the prior art, the present invention has the following beneficial technical effects:

[0023] 1) The present invention integrates the "transfer out" and "transfer in" functions into two specific buttons respectively. When each button is pressed once, it can simultaneously realize menu switching, integral number change, and adaptive rapid change. The multifunctional integration design of the buttons is realized. The button design of the present invention simplifies the process that the user needs to first select the corresponding function menu (such as the "transfer out function menu" or the "income function menu") from numerous menu options, and then input the integral change numerical value through a numeric keypad or the like under this menu. The user only needs to press one button, just like opening a "shortcut instruction" that includes menu switching and numerical value change, which greatly improves the operation efficiency.

[0024] 2) The present invention realizes low-latency and real-time synchronization of data within the local area network, ensures the security of data and privacy, and reduces the dependence on external servers. The system has low cost and is easy to implement, providing a convenient solution for multi-device data synchronization. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments of the present invention. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0026] Figure 1 It is a schematic diagram of the functional structure of the device transfer in / out button of the present invention.

[0027] Figure 2 It is a schematic diagram of the system interaction process in Embodiment 1 of the present invention. DETAILED DESCRIPTION OF THE INVENTION

[0028] Next, in combination with the accompanying drawings in the embodiments of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.

[0029] The present invention provides a multi-device real-time data synchronization and interaction device based on a local area network. The device includes a local area network setting module, a data collection module, a data processing module, a real-time synchronization module, and a display module.

[0030] The local area network setting module is used to realize the local area network networking of multiple devices, and trigger the establishment of the local area network through the confirmation button. Among them, one device serves as the master device, and the remaining devices serve as slave devices.

[0031] The device can use an ESP32 microcontroller chip, or other microcontrollers, single-chip microcomputers, etc. with wireless modules to realize the local area network networking.

[0032] Different communication protocols can be used for local area network networking, such as WiFi, Bluetooth, or other peer-to-peer communication protocols. The present invention does not limit this.

[0033] Different local area network establishment methods can be used for local area network networking, such as using a WiFi hotspot, connecting to an existing WiFi within the local area network, etc., or using a method such as ESP-NOW to establish a peer-to-peer communication network through peer-to-peer communication to complete the communication. The present invention does not limit this.

[0034] The data collection module is used to collect the data input by the user's key presses and send the collected input data to the master device.

[0035] The device of the present invention collects data in the form of keys, and respectively sets a transfer key and a transfer-out key. The transfer / transfer-out keys simultaneously have the functions of menu function switching, numerical input, and numerical change, such as Figure 1As shown. After the user presses the transfer / inward or outward button, the interface of the device display module switches to the transfer / inward or outward menu interface and then to the transfer / inward or outward numerical input interface. The input value changes with the length of the button press time. When determining the input transfer / inward or outward value, stop pressing the transfer / inward or outward button. The device of the present invention does not require a physical keyboard or menu gradient selection buttons, and through redefining and designing the button functions and numbers, it realizes the synchronous data input and selection of the device, improves the convenience and reduces the cost. The data collected by the present invention increases / decreases non-linearly based on the length of the button press time. Combining with the high-precision timer built in the system, starting from the moment when the transfer / inward or outward button is long-pressed, the increase / decrease amount of the input value is dynamically adjusted according to the preset time-score change curve.

[0036] Further, in the initial stage of long-pressing the transfer / inward or outward button, for example, within the first 2 seconds, the increase / decrease amount per second of the data is set to a small base value, such as 1 point; as the long-press time goes by, when the long-press time of the transfer / inward or outward button reaches the interval of 3 - 5 seconds, the increase / decrease amount per second of the data accelerates according to a specific rule, such as becoming an increase / decrease of 3 points per second; when the long-press time of the transfer / inward or outward button exceeds 5 seconds, the increase / decrease speed of the data further increases, such as an increase / decrease of 5 points per second or even higher. The specific numerical values of the data changing with time can be flexibly adjusted according to different application scenarios and requirements.

[0037] Further, in addition to the confirmation button and the transfer / inward or outward button, the device of the present invention also includes a return button. The return button is a multiplexed button to save costs and reduce the volume of the device. The return button also has the functions of power on / off, returning to the main interface, and interface jump. Long-pressing the return button realizes the power on / off function, and short-pressing the return button realizes the functions of returning to the main interface and interface jump.

[0038] After the user presses the transfer / inward or outward button, the interface of the device display module switches to the transfer / inward or outward menu interface and then to the transfer / inward or outward numerical input interface. After inputting the corresponding transfer / inward or outward value through the length of the button press time, if you want to cancel the input transfer / inward or outward value, at this time, long-press the return button to cancel the transfer / inward or outward value, and disable the function of long-pressing the return button to power on / off in this interface.

[0039] The data collection module can also collect the user's cancellation of the transfer / inward or outward value.

[0040] The data processing module is used to calculate the changed data according to the data transmitted by the data collection module. The data categories transmitted by the data collection module include three different data categories: transfer, inward or outward, and cancellation. Transfer and inward or outward respectively correspond to the values input by the transfer / inward or outward button, and cancellation corresponds to the situation where after the user presses the transfer / inward or outward button and wants to cancel the input transfer / inward or outward value, long-press the return button to execute the cancellation of the transfer / inward or outward value.

[0041] The real-time synchronization module is used to synchronize the processing results of the data processing module to associated devices.

[0042] The display module is a graphical interface, which is used to display the menu function interface, display the increased amount of transferred-in value, the decreased amount of transferred-out value, display the cancelled transferred-in value, display the cancelled transferred-out value, and display the processing result.

[0043] A multi-device real-time data synchronization and interaction method based on a local area network proposed by the present invention includes the following steps:

[0044] Step S1: Create a local area network for multiple devices, allowing multiple devices to connect and communicate.

[0045] Specifically, the present invention uses multiple devices as a system, one device as the master device, and the remaining devices as slave devices. Each device has a unique device number Num. One device can be designated as the master device, or according to the device factory settings, using the device information stored in the flash, automatically negotiate and designate one device as the master device, and the remaining devices automatically become slave devices.

[0046] The master device broadcasts a local area network invitation message to the surrounding slave devices. After receiving the local area network invitation message, the slave device decides whether to automatically join the local area network according to the historical information of the local area network that has been formed by the device. If the slave device and the master device were once in the same local area network, the slave device automatically completes the handshake communication with the master device and automatically joins the local area network. Conversely, if it is a new local area network formation invitation, the user needs to manually click whether to join.

[0047] When there is historical local area network information, the master device judges how many devices there are in total in the local area network according to the data of the historical local area network. When the master device judges that all slave devices have entered the local area network according to the number of devices, it notifies the slave devices that the local area network has been established and subsequent operations can be carried out. For example, if there were a total of 3 devices (including the master device) in the local area network before, when the master device judges that the other two slave devices have all entered the local area network, it notifies the other two slave devices that the local area network has been established. At this point, all devices have joined the local area network and subsequent operations can be carried out.

[0048] If there is no historical local area network information, the slave device needs the user to manually click to join the local area network. After the slave device joins the local area network, the display module of the master device will display whether the slave device has joined the local area network. When the user operating the master device judges that all devices have joined the local area network, the formation of the local area network can be confirmed.

[0049] Step S2: Collect the values input by the transfer-in / transfer-out buttons of each device, collect the values of cancelled transfer-in / cancelled transfer-out of each device, and send an integral transfer message to the master device.

[0050] Specifically, step S2 includes the following steps:

[0051] Step S21: When the user presses the device transfer in / out button, the device interface switches to the transfer in / out menu interface and then to the transfer in / out value input interface. Determine the input transfer in / out value according to the length of the user's button press time, and collect the values input by the transfer in / out buttons of each device.

[0052] Step S22: When the user presses the device transfer in / out button and then long-presses the return button, the device cancels the previously input transfer in / out value and collects the values for canceling the transfer in / out of each device.

[0053] Step S23: The slave device cancels the transfer in / out value according to the transfer in / out value and sends an integral transfer message to the master device.

[0054] Specifically, pressing the transfer in button sends the corresponding integral transfer message as "Device Num transfers in V int Integrals", where Num represents the device number of the device, and V int represents the value of the corresponding transferred-in integral; pressing the transfer out button sends the corresponding integral transfer message as "Device Num transfers out V out Integrals", and V out represents the number of the corresponding transferred-out integral. When the user presses the device transfer in / out button and then presses the return button, the corresponding integral transfer message sent is "Device Num cancels transfer in V int Integrals" or "Device Num cancels transfer out V out Integrals".

[0055] Step S3: The master device processing unit performs matching and calculation according to the integral transfer message and synchronizes the calculation result to the associated devices. The associated devices refer to the devices involved in the numerical change.

[0056] The master device processing unit performs matching and calculation according to the integral transfer messages of the slave devices within the local area network. For the matching and calculation of the transfer in / out values and the cancellation of the transfer in / out values, a priority queue can be used for matching, or other forms of algorithms can be used, including but not limited to optimal matching (prioritizing the matching of integrals with the same value and calculating and synchronizing), prioritizing the matching of the integrals with the largest value, etc.

[0057] For example, the integral transfer message of device A is "Device A transfers in 2 points", and the integral transfer message of device B is "Device B transfers out 3 points". The main device processing unit recognizes from the integral transfer message that the integral of device B is sufficient to be transferred to device A. Therefore, the system will automatically increase the integral of device A by 2 and decrease the integral of device B by 2. At this time, device B still has 1 point within the local area network. If device C then sends an integral transfer message "Device C transfers in 1 point", the main device processing unit will automatically detect this situation and complete the matching and calculation of the integral.

[0058] After all the integral transfer messages within the local area network are processed, the main device will notify the relevant devices within the local area network. For example, if the integral of device A has increased by 2, device A can discover its own integral situation within the local area network and synchronize the data on the device according to this result message.

[0059] Step S4: According to the processing result, display the processing result on the display module of the associated device.

[0060] The detailed information and historical information of this operation are recorded in the "Points Out Record" or "Operation Details" area of the display interface.

[0061] Next, an embodiment will be used to illustrate the application of the present invention. The application of the present invention is not limited to the scenarios of the following one embodiment, and can also be used in other scenarios that require numerical transformation. For example, it can be used in the classroom study groups in schools to obtain the points sent by the teacher after different groups answer questions.

[0062] The device of the present invention is used for the scoring function of multiple players in a mahjong game, and the implementation process is as Figure 2 shown.

[0063] Among multiple players in a mahjong game, the device of one player serves as the main device. The player presses the button to form a local area network for device discovery. Other players' devices discover the networking request of the main device, and the player clicks to confirm, agreeing to and applying to join the local area network. Or directly form a historical room according to the historical room of the device.

[0064] After establishing the local area network, the device will enter the menu to display the main interface.

[0065] After the players' game, when they need to transfer points, the players can press the transfer-in button or transfer-out button according to the win-loss situation. The device quickly switches to a specific menu page related to the scoring operation, and then switches to the page related to transferring in or out points, and realizes the change of the input points according to the length of the button press time.

[0066] After the player determines the integral transfer, the system will automatically perform settlement processing based on the player's integral situation, and synchronize the result data to the corresponding device, and the interfaces of other devices will automatically complete the update of the program.

[0067] Specifically, when the player inputs points, the device automatically increases or decreases the corresponding point value according to the built-in default scoring rules or the specific scoring step determined according to the current game / scoring scenario. The player can also long-press the "input / output key" to achieve rapid point changes, helping the user to quickly reach the specified point amount. The display modules of all connected devices will update and display the results after the point changes in real time. The "point output record" or "operation details" area of the display interface records the detailed information and historical information of this point output operation, such as time, number of games, point changes in each game, current balance, and the proportion of the current points to the player's total points.

[0068] It can be understood that the present invention is described through some embodiments. Those skilled in the art know that without departing from the spirit and scope of the present invention, various changes or equivalent replacements can be made to these features and embodiments. In addition, under the teaching of the present invention, these features and embodiments can be modified to adapt to specific situations and materials without departing from the spirit and scope of the present invention. Therefore, the present invention is not limited by the specific embodiments disclosed herein, and all embodiments falling within the scope of the claims of this application belong to the scope protected by the present invention.

Claims

1. A multi-device real-time data synchronization and interaction device based on a local area network, characterized in that: The device includes a local area network setting module, a data collection module, a data processing module, a real-time synchronization module and a display module; The LAN setting module is used to realize the LAN networking of multiple devices. The establishment of the LAN is triggered by the confirmation button. Among them, one device is used as the master device and the other devices are used as slave devices. The data collection module is used to collect data input by the user's buttons and send the collected data to the main device; the data collection module collects data through the transfer-in button and the transfer-out button; the transfer-in / transfer-out button also has the functions of menu function switching, numerical input, and numerical change; after executing the transfer-in / transfer-out button, the device display module interface switches to the transfer-in / transfer-out menu interface and then switches to the transfer-in / transfer-out numerical input interface, and the input value increases / decreases nonlinearly with the length of the button pressing time.

2. The multi-device real-time data synchronization and interaction device based on a local area network according to claim 1, characterized in that: The device also includes a return button. After the user executes the transfer-in / transfer-out button and the data collection module collects the transfer-in / transfer-out value, if the user wants to cancel the input transfer-in / transfer-out value, the user can long press the return button to cancel the transfer-in / transfer-out value. The data collection module collects the user's cancel transfer-in / transfer-out values.

3. The multi-device real-time data synchronization and interaction device based on a local area network according to claim 1 or 2, characterized in that: The data processing module is used to calculate the changed data according to the data transmitted by the data collection module.

4. The multi-device real-time data synchronization and interaction device based on a local area network according to claim 1, characterized in that: The real-time synchronization module is used to synchronize the processing results of the data processing module to the associated devices.

5. A method for real-time data synchronization and interaction of multiple devices based on a local area network, characterized in that: The steps include: Step S1: Create a local area network for multiple devices to allow multiple devices to connect and communicate; Step S2: Collect the values ​​input by the transfer-in / transfer-out buttons of each device, collect the values ​​of the transfer-in / transfer-out cancellation of each device, and send a points transfer message to the master device; Step S3: the main device processing unit performs matching and calculation according to the points transfer message, and synchronizes the calculation results to the associated device; Step S4: displaying the processing result on a display module of the associated device according to the processing result.

6. The method for real-time data synchronization and interaction of multiple devices based on a local area network according to claim 5, characterized in that: In step S1, One of the multiple devices acts as the master device, and the rest of the devices act as slave devices; the master device broadcasts LAN invitation information to the surrounding slave devices, and after receiving the LAN invitation information, the slave device decides whether to automatically join the LAN based on the historical information of the device having established a LAN; if the slave device and the master device have been in the same LAN before, the slave device automatically completes the handshake communication with the master device and automatically joins the LAN; conversely, if it is a new LAN establishment invitation, the user needs to manually click whether to join; when the user operating the master device determines that all devices have joined the LAN, confirm the establishment of the LAN.

7. The method for real-time data synchronization and interaction of multiple devices based on a local area network according to claim 6, characterized in that: Step S2 includes the following steps: Step S21: When the user presses the device transfer-in / transfer-out button, the device interface switches from the transfer-in / transfer-out menu interface to the transfer-in / transfer-out value input interface, determines the input transfer-in / transfer-out value according to the length of time the user presses the button, and collects the values ​​input by the transfer-in / transfer-out buttons of each device; Step S22: When the user presses the return button after pressing the device transfer-in / transfer-out button, the device cancels the previously input transfer-in / transfer-out value and collects the transfer-in / transfer-out values ​​canceled by each device; Step S23: The slave device cancels the transfer-in / transfer-out value according to the transfer-in / transfer-out value and sends a points transfer message to the master device.

Citation Information

Patent Citations

  • On-line method, on-line client and on-line system

    CN104009779A

  • Interactive game system and control method thereof

    CN107952237A

  • Local area network game implementation method and related device

    CN110138856A

  • Volume adjustment method, smart television and storage medium

    CN111683277A

  • Mahjong recreation interpolater

    CN206063762U