Intelligent teaching experiment equipment system based on synchronous transmission and its update method

Through the intelligent teaching experimental equipment update method based on synchronous transmission, the problem of slow equipment update speed and consistency is solved, efficient and stable equipment updates are achieved, and the integrity and security of data transmission are ensured.

CN120166104BActive Publication Date: 2025-07-11GUANGZHOU UNIVERSITY
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510650755.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-05-20
Publication Date
2025-07-11
Estimated Expiration
2045-05-20

AI Technical Summary

Technical Problem

During the update process, existing intelligent teaching experimental equipment has problems such as slow update speed, network interruption, and inconsistent update progress between different devices, which affects the normal development of teaching activities and the efficiency of equipment use.

Method used

The intelligent teaching experimental equipment update method based on synchronous transmission is adopted, and differential search is carried out through the server to generate differential files, and transfer them to the device side in blocks. A multi-level backup mechanism and hash algorithm are used to ensure data integrity and consistency, and a rollback mechanism is set to handle update errors.

Benefits of technology

It improves the efficiency and accuracy of equipment updates, ensures the integrity and security of data transmission, reduces update time, avoids errors caused by network fluctuations and time out of synchronization, and achieves efficient and stable updates of equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120166104B_ABST
    Figure CN120166104B_ABST
Patent Text Reader

Abstract

This application relates to the technical field of equipment update, and discloses an intelligent teaching experiment equipment system based on synchronous transmission and its update method. The method includes: the server performs differential retrieval on the update file, outputs the differential file, and obtains the metadata of the differential file; obtains the communication node distribution of all teaching experiment devices, the teaching experiment devices send update requests to the server, and uses synchronous transmission technology to block-transmit the differential file to the device side based on the communication node distribution; after the device side receives all the differential files, it checks the integrity of the differential files, outputs the first inspection result, and generates a complete file based on the first inspection result; the device side performs updates based on the complete file, respectively checks the data between all the updated device sides and the server, outputs the second inspection result, sets up a rollback mechanism based on the second inspection result, and completes the updates of all the device sides based on the rollback mechanism. This application improves the efficiency and integrity of the update of intelligent teaching experiment equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of equipment updates, and particularly to an intelligent teaching experiment equipment system based on synchronous transmission and its update method. Background Art

[0002] With the rapid development of educational informatization, intelligent teaching experiment equipment has been widely used in teaching, usually including various hardware such as intelligent blackboards, interactive projectors, and student terminals, as well as a supporting teaching software system. However, there are many problems in the update process of existing equipment. For example, the update speed is slow, network interruption is likely to occur during the update process, resulting in update failure, and the update progress is inconsistent among different devices. These problems seriously affect the normal conduct of teaching activities and reduce the use efficiency of the equipment and the user experience. Synchronous Transmission is a data communication technology that ensures the strict time consistency between the sender and the receiver by introducing a synchronous signal during data transmission, thereby achieving efficient and accurate data transmission. Therefore, by optimizing the update process and adopting synchronous transmission technology, the problems existing in the update process of existing equipment can be solved, and efficient and stable update of the equipment can be realized.

[0003] Similar prior arts include a Chinese patent application with the publication number CN103164232A, which discloses a method, system, and device for updating an intelligent terminal operating system, including: connecting an intelligent terminal with an operating system to be updated to a computer; when receiving an update instruction, the computer obtains the environmental information of the intelligent terminal and obtains an update package matching the environmental information from the server side; the computer obtains the information required for the update from the update package and sends it to the intelligent terminal; the computer sends an update instruction to the intelligent terminal, and after receiving the update instruction, the intelligent terminal completes the update of its own operating system according to the received information required for the update. This invention can improve the update success rate and is simple and convenient to implement. There is also a Chinese patent application with the publication number CN102752294A, which discloses a multi-terminal data synchronization method and system based on device capabilities. The method includes: Step 1, N terminal devices are interconnected with a data synchronization controller through a data link, the terminal devices are initialized, and the existence of the terminal devices with respect to each other is detected, N≥2; Step 2, for the terminal devices whose existence can be detected, attempt to update the device capability information recorded in the synchronization controller; Step 3, according to the collected device capability information, formulate data synchronization and conversion rules for each known terminal device; Step 4, for the terminal devices whose existence can be detected, attempt to synchronize the newly generated or modified data in the terminal devices to the synchronization controller and perform necessary conversions according to the data conversion rules formulated in Step 3; Step 5, for the terminal devices whose existence can be detected, according to the data synchronization rules formulated in Step 3, the data synchronization controller controls and performs synchronous updates.

[0004] The deficiencies of the prior art are mainly manifested in that a large number of intelligent terminals request updates simultaneously, and the server may face huge load pressure, resulting in a slow update speed or update failure, and there is a lack of an update verification process. In actual situations, when multiple device ends perform data synchronization and update, it is necessary to comprehensively process synchronization efficiency, device information update, data consistency, and security. Summary of the Invention

[0005] The present application provides a synchronous transmission-based intelligent teaching experiment equipment system and its update method, which are used to improve the efficiency and accuracy of the update of synchronous transmission-based intelligent teaching experiment equipment.

[0006] In a first aspect, the present application provides a synchronous transmission-based intelligent teaching experiment equipment update method, and the synchronous transmission-based intelligent teaching experiment equipment update method includes:

[0007] Store the update file in the server, and the server performs differential retrieval on the update file, outputs a differential file, and obtains metadata of the differential file;

[0008] Obtain the communication node distribution of all teaching experiment devices. The teaching experiment devices send update requests to the server. After receiving the update requests, the server uses synchronous transmission technology to block-transmit the differential file to the device end based on the communication node distribution, where the device end refers to the device port corresponding to the teaching experiment device;

[0009] After the device end receives all the differential files, it checks the integrity of the differential files, outputs a first inspection result, and generates a complete file based on the first inspection result;

[0010] The device end performs an update based on the complete file, respectively checks the data between all the updated device ends and the server, outputs a second inspection result, sets a rollback mechanism based on the second inspection result, and completes the update of all the device ends based on the rollback mechanism.

[0011] In combination with the first aspect, the server's differential retrieval of the update file includes:

[0012] After the server receives the update file, the device end sends a query request to the server, reads the metadata of the update file and obtains the first number of the update file, and the device end records its own second number;

[0013] The device end compares the first number and the second number. If the first number is inconsistent with the second number, it sends a retrieval request to the server;

[0014] The server includes a first database. After receiving the retrieval request, the server obtains a number difference range from the first database based on the second number. If the number difference range is greater than the second number, the number difference range is continuously expanded; otherwise, the difference retrieval is stopped.

[0015] In combination with the first aspect, the output difference file includes:

[0016] A third number is generated based on the number difference range. The server extracts a first data list of changed data from the file data between the third number and the first number, and sets the first data list as the difference file.

[0017] The change type is determined based on the first data list, and the device side sets the update request based on the change type.

[0018] In combination with the first aspect, the step of transmitting the difference file to the device side in blocks based on the communication node distribution includes:

[0019] The server is set as the master device, and the device side is set as the slave device. A network topology diagram between the master device and the slave device is constructed based on the communication node distribution, and a synchronous communication interval and other communication intervals are set based on the synchronization period of the network topology diagram.

[0020] The master device sends a synchronization signal. The slave device receives the synchronization signal and records the reception time. A first time difference from the master device is calculated based on the reception time. The slave device corrects its own clock based on the first time difference, and this step is repeated until the first time difference is less than a first preset value.

[0021] The difference file is divided into multiple sub-file blocks, and tags and check codes are set for the sub-file blocks. The master device constructs a second data list of all the sub-file blocks based on the tags and the check codes.

[0022] Within the synchronous communication interval, the master device simultaneously sends the sub-file blocks to all the slave devices based on the second data list.

[0023] In combination with the first aspect, after the slave device receives the sub-file blocks within the synchronous communication interval, the generation of the complete file includes:

[0024] The slave device stores the sub - file blocks and uses the check code to verify the sub - file blocks. If the verification fails, the slave device sends a re - transmission request to the master device based on the label. After receiving the re - transmission request, the master device re - sends the sub - file blocks in the next synchronization communication interval and repeats this step until the verification is successful;

[0025] The slave device sorts all the received sub - file blocks based on the label, checks whether there are missing sub - file blocks based on the second data list, and sets the ratio of the missing sub - file blocks to all the sub - file blocks as the first test result;

[0026] If the first test result is equal to the second preset value, all the sub - file blocks are assembled based on the second data list to generate the complete file.

[0027] Combined with the first aspect, the device - side is updated based on the complete file, including:

[0028] Multiple sub - databases are set for the device - side, a communication mechanism is established between the sub - databases, and all the sub - databases are divided into a primary node, a primary backup node, a secondary node, and a secondary backup node;

[0029] After receiving the differential file, the primary node updates the corresponding primary database, generates a first log recording the differences before and after the update, and synchronously sends the first log to the primary backup node and the secondary node;

[0030] The primary backup node updates the corresponding primary backup database based on the received first log. The secondary node receives the differential file from the primary node at a preset interval, extracts the first log, and supplements the first log into the corresponding secondary database;

[0031] Both the primary node and the primary backup node are set with an inspection interval, generate a checkpoint log based on the inspection interval. The secondary backup node receives the first log and the checkpoint log from the primary backup node and the secondary node respectively, compares the first log with the checkpoint log, and outputs the latest log;

[0032] The secondary backup node updates the device - side based on the generation order of the latest log.

[0033] Combined with the first aspect, the output of the second test result includes:

[0034] The server uses the hash algorithm to calculate the hash of the differential file, generates a first hash value, and transmits the first hash value to the device - side;

[0035] The device side uses the hash algorithm to calculate the hash of the complete file, generates a second hash value, compares the first hash value with the second hash value, and outputs the comparison result;

[0036] Summarize all the comparison results corresponding to the device sides to generate the second verification result.

[0037] Combined with the first aspect, completing the update of all the device sides based on the rollback mechanism includes:

[0038] Obtain the usage plan of the device side, set the update plan based on the usage plan. If the second verification result does not conform to the preset result distribution, identify the device side with incorrect update and set it as the device to be rolled back;

[0039] The server sends a rollback instruction to all the devices to be rolled back based on the update plan. The devices to be rolled back are restored to the state before the update and send a restoration instruction to the server. The server re-sends the differential file to the devices to be rolled back based on the restoration instruction, and repeats this step until all the device sides complete the update.

[0040] Combined with the first aspect, obtain the network communication cycle between the master device and any one of the slave devices based on the network topology diagram, and set the network communication cycle as the synchronization cycle.

[0041] In the second aspect, the present application provides an intelligent teaching experiment device system based on synchronous transmission. The intelligent teaching experiment device system based on synchronous transmission includes:

[0042] A differential retrieval module for storing the update file in the server. The server performs differential retrieval on the update file, outputs a differential file, and obtains the metadata of the differential file;

[0043] A synchronous transmission module for obtaining the communication node distribution of all teaching experiment devices. The teaching experiment devices send update requests to the server. After receiving the update requests, the server uses synchronous transmission technology to block-transmit the differential file to the device side based on the communication node distribution, where the device side refers to the device port corresponding to the teaching experiment device;

[0044] An inspection module for, after the device side receives all the differential files, inspecting the integrity of the differential files, outputting a first inspection result, and generating a complete file based on the first inspection result;

[0045] An update module is used for the device side to perform an update based on the complete file. Data verification is performed separately between all the updated device sides and the server, and a second verification result is output. A rollback mechanism is set based on the second verification result, and the update of all the device sides is completed based on the rollback mechanism.

[0046] In the technical solution provided by this application, first, the server performs a differential retrieval on the update file, generates a differential file, and obtains its metadata. The device side obtains the version information through a query request, sends a retrieval request after comparing the version numbers. The server generates a differential file according to the version difference range. The differential file is divided into multiple sub-file blocks, and tags and check codes are attached, and they are transmitted to the device side in blocks through synchronous transmission technology, reducing the amount of data to be transmitted, reducing the occupation of network bandwidth, improving the update efficiency, and at the same time, ensuring the integrity and accuracy of data transmission, and avoiding transmission errors caused by network fluctuations. Then, the server is used as the master device, and the device side is used as the slave device. A network topology map is constructed based on the distribution of communication nodes, and a synchronous communication interval is set. The master device sends a synchronous signal, and the slave device receives the signal and corrects its own clock to ensure synchronization with the master device clock. Within the synchronous communication interval, the master device sends the sub-file blocks to all the slave devices at the same time, ensuring the consistency and synchronization of data, avoiding update errors caused by time asynchrony, improving the efficiency of data transmission, ensuring that all device sides can receive the update data at the same time, and reducing the update time. Finally, the device side sets up multiple sub-databases, which are divided into a main node, a main backup node, a secondary node, and a secondary backup node. The multi-level backup mechanism ensures the security and reliability of data. Even if the main node fails, the backup node can take over its function, which can effectively suppress the increase in data loss reflecting update information and ensure the reliability of the system and the consistency of data.

[0047] This application also uses a hash algorithm to perform a hash calculation on the differential file to generate a second verification result, which is used to judge whether the update is successful, ensuring the integrity and correctness of the update file. Any data tampering or transmission error can be detected in time, and the update status of all device sides can be comprehensively monitored, and update failures can be discovered and processed in time. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for description in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are 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.

[0049] Figure 1 It is a schematic diagram of an embodiment of the intelligent teaching experiment device update method based on synchronous transmission in the embodiments of this application;

[0050] Figure 2 This is a schematic diagram of an embodiment of the update process of the device end in the embodiments of the present application;

[0051] Figure 3 This is a schematic diagram of an embodiment of the synchronous transmission process in the embodiments of the present application;

[0052] Figure 4 This is a schematic diagram of an embodiment of the intelligent teaching experiment equipment system based on synchronous transmission in the embodiments of the present application. Detailed implementation manners

[0053] The embodiments of the present application provide an intelligent teaching experiment equipment system based on synchronous transmission and an update method thereof. Terms such as "first", "second", "third", "fourth", etc. (if any) in the description, claims and above-mentioned drawings of the present application are used to distinguish similar objects, and do not have to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments described herein can be implemented in an order different from that shown or described herein. In addition, the terms "comprising" or "having" and any deformation thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0054] For ease of understanding, the specific process of the embodiments of the present application will be described below. Please refer to Figure 1 , an embodiment of the intelligent teaching experiment equipment update method based on synchronous transmission in the embodiments of the present application includes:

[0055] Step S101: Store the update file in the server. The server performs differential retrieval on the update file, outputs a differential file, and obtains the metadata of the differential file.

[0056] It can be understood that the execution subject of the present application can be an intelligent teaching experiment equipment update device based on synchronous transmission, or a terminal or a server. Specifically, it is not limited here. The embodiments of the present application take the server as the execution subject for illustration.

[0057] Specifically, an update file refers to a built-in file used for system updates of intelligent teaching experiment devices, including but not limited to program codes, driver programs, configuration files, etc. A server refers to a cloud server or a local server. Differential retrieval refers to retrieving the changes between the old and new versions based on the update file, which can reduce the amount of data transmitted. A differential file refers to the file information generated after differential retrieval, recording the specific changes between the old and new versions. The metadata of the differential file includes but is not limited to data information such as file size, version number, update time, etc.

[0058] Step S102: Obtain the communication node distribution of all teaching experiment devices. The teaching experiment devices send an update request to the server. After receiving the update request, the server uses synchronous transmission technology to transmit the differential files in chunks to the device side based on the communication node distribution, where the device side refers to the device port corresponding to the teaching experiment device.

[0059] Specifically, the teaching experiment device refers to an intelligent teaching experiment device. For example, it includes various hardware such as intelligent blackboards, interactive projectors, student terminals, etc., as well as a supporting teaching software system. The communication node distribution refers to distribution information such as the IP address, MAC address, and network topology structure of the teaching experiment device. The update request can be automatically initiated by the teaching experiment device. Chunk transmission refers to transmitting the differential file after chunk processing, which can improve the transmission efficiency. The server dynamically adjusts the transmission rate and chunk size according to the network conditions and performance of the teaching experiment device. The device side is defined as the device port of each teaching experiment device.

[0060] Step S103: After the device side receives all the differential files, it checks the integrity of the differential files, outputs a first verification result, and generates a complete file based on the first verification result.

[0061] Specifically, after the device side receives all the differential files, it performs a preliminary integrity check, including file size, checksum, etc., to determine whether the received data is consistent with the data sent by the server. Among them, the first verification result can be used as a judgment basis. The differential files are adjusted and processed according to the first verification result to generate a complete file, that is, the file data used for updating the device side.

[0062] Step S104: The device side performs an update based on the complete file, respectively conducts data verification on all the updated device sides and the server, outputs a second verification result, sets a rollback mechanism based on the second verification result, and completes the update of all device sides based on the rollback mechanism.

[0063] Specifically, Figure 2It is a schematic diagram of the update process on the device side. Among them, the device side is updated based on the generated complete file. The update process may include file replacement, configuration modification, program restart, etc. After the update is completed, the device side conducts data verification with the server. The verification content includes file version, checksum, configuration parameters, etc. The specific verification method can be set according to the hash algorithm. The second verification result is the basis for judging whether the update of the device side is completed. The rollback mechanism is a security measure to ensure that the device side can be restored to the state before the update during the update process. For example, according to the second verification result, if it is detected that the update of the device side fails or abnormal conditions occur, the device side can automatically restore to the state before the update to ensure the stability and availability of the device side.

[0064] In a specific embodiment, the server performs differential retrieval on the update file, including:

[0065] (1) After the server receives the update file, the device side sends a query request to the server, reads the metadata of the update file and obtains the first number of the update file, and the device side records its own second number.

[0066] (2) The device side compares the first number and the second number. If the first number is different from the second number, it sends a retrieval request to the server.

[0067] (3) The server contains a first database. After receiving the retrieval request, the server obtains the number difference range from the first database based on the second number. If the number difference range is greater than the second number, it continues to expand the number difference range. Otherwise, it stops the differential retrieval.

[0068] Specifically, before sending the update request, the device side first sends a query request to the server to query the metadata corresponding to the current update file of the server. The first number refers to the current version number of the update file contained in the server's database. The second number refers to the version number of the system file contained in the device side's data.

[0069] If the first number is the same as the second number, it means that the file versions in the device side database and the server database are consistent, and there is no need to perform differential search, and directly search in its own database. If the first number is different from the second number, it means that there is an update in the server database and differential retrieval is required. Therefore, a retrieval request is sent to the server.

[0070] The first database is a database for storing update files. There is a change history of files in the first database, forming numbers corresponding to multiple version numbers. All the numbers are combined to generate a number difference range. For example, if the first number is M1, the second number is M5, and the numbers corresponding to the change history are M2, M3, and M4, then the number difference range is 3. That the number difference range is greater than the second number means that there is file information in the first database that can be used to retrieve differences. Usually, the numbers are sorted in ascending order of version numbers from old to new. Therefore, the number difference range can be continuously expanded.

[0071] In a specific embodiment, outputting a difference file includes:

[0072] (1) Generating a third number based on the number difference range. The server extracts a first data list of changed data from the file data between the third number and the first number, and sets the first data list as the difference file.

[0073] (2) Judging the change type based on the first data list. The device side sets an update request based on the change type.

[0074] Specifically, the third number refers to the version numbers of the files included in the number difference range. For example, the third numbers corresponding to the above number difference range are (M2, M3, M4) respectively. File data refers to all the data information included in the third number and the first number. The first data list of changed data refers to the data IDs that have changed in the file data corresponding to the third number to the first number. The first data list can be used to identify unsynchronized data. Therefore, a difference file can be generated from the first data list.

[0075] The change types include but are not limited to categories such as deletion differences, addition differences, modification differences, etc. After the server sends the change type to the device side, the device side can use it to set different update requests.

[0076] In a specific embodiment, based on the communication node distribution, the difference file is transmitted to the device side in blocks, including:

[0077] (1) Setting the server as the master device and the device side as the slave device. Based on the communication node distribution, a network topology diagram between the master device and the slave device is constructed, and a synchronization communication interval and other communication intervals are set based on the synchronization period of the network topology diagram.

[0078] (2) The master device sends a synchronization signal. The slave device receives the synchronization signal and records the reception time. Based on the reception time, a first time difference from the master device is calculated. The slave device corrects its own clock based on the first time difference, and repeats this step until the first time difference is less than a first preset value.

[0079] (3) Split the differential file into multiple sub - file blocks, set tags and check codes for the sub - file blocks, and the master device constructs a second data list of all sub - file blocks based on the tags and check codes.

[0080] (4) During the synchronous communication interval, the master device simultaneously sends the sub - file blocks to all slave devices based on the second data list.

[0081] Specifically, based on the distribution of communication nodes, the master device constructs a network topology map to describe the connection relationship and network structure between the master device and each slave device, as well as among all slave devices. The synchronous communication interval is used for clock synchronization and data transmission between the master and slave devices, and other communication intervals are used to handle asynchronous - related communication tasks, such as status reporting, error handling, etc.

[0082] As Figure 3 shown, a synchronous transmission mechanism is carried out between the server and the device side. In the synchronous transmission technology, the synchronous signal contains timestamp information for the slave device to calibrate its own clock. At the beginning of each synchronous communication interval, the master device sends a synchronous signal to all slave devices. After receiving the synchronous signal, the slave device records the reception time. The first time difference refers to the difference between the reception time of the slave device and the transmission time of the master device. The slave device corrects its own clock based on the first time difference to ensure clock synchronization with the master device. Repeat this step until the first time difference is less than the first preset value to achieve the predetermined synchronization accuracy.

[0083] The file sizes of each sub - file block are the same. The tags and check codes are used for subsequent verification and recombination. The second data list refers to the arrangement list of each sub - file block, which describes the order and check information of all sub - file blocks.

[0084] Sending the sub - file blocks simultaneously can improve the transmission efficiency and ensure that all slave devices receive the same data at the same time.

[0085] In a specific embodiment, after receiving the sub - file blocks during the synchronous communication interval, the slave device generates a complete file, including:

[0086] (1) The slave device stores the sub - file blocks and uses the check code to verify the sub - file blocks. If the verification fails, the slave device sends a re - transmission request to the master device based on the tag. After receiving the re - transmission request, the master device re - sends the sub - file blocks in the next synchronous communication interval and repeats this step until the verification is successful.

[0087] (2) The slave device sorts all the received sub - file blocks based on the tag, checks whether there are missing sub - file blocks based on the second data list, and sets the ratio of the missing sub - file blocks to all sub - file blocks as the first test result.

[0088] If the first test result is equal to the second preset value, assemble all sub-file blocks based on the second data list to generate a complete file.

[0089] Specifically, after receiving the sub-file blocks, the slave device stores them in the local database. Each sub-file block is accompanied by a unique label and a checksum. If the check fails, the slave device sends a retransmission request to the master device based on the label, requesting the retransmission of the sub-file block. After receiving the retransmission request, the master device retransmits the failed sub-file block within the next synchronization communication interval, which can not affect the transmission efficiency.

[0090] The first test result indicates the transmission failure ratio value of each sub-file block. If the first test result is zero, it means that there are no missing sub-file blocks, indicating that all sub-file blocks are successfully transmitted. Assemble all sub-file blocks by the second data list to generate a complete file, where the complete file is the file set finally used for update after the device side assembles its own database according to the differential file.

[0091] In a specific embodiment, the device side is updated based on the complete file, including:

[0092] (1) Set multiple sub-databases for the device side, establish a communication mechanism between the sub-databases, and divide all sub-databases into a master node, a master backup node, a secondary node, and a secondary backup node.

[0093] (2) After receiving the differential file, the master node updates the corresponding master database, generates a first log recording the differences before and after the update, and synchronously sends the first log to the master backup node and the secondary node.

[0094] (3) The master backup node updates the corresponding master backup database based on the received first log. The secondary node receives the differential file of the master node at a preset interval, extracts the first log, and supplements the first log to the corresponding secondary database.

[0095] (4) Both the master node and the master backup node set a check interval, generate a checkpoint log based on the check interval. The secondary backup node receives the first log and the checkpoint log from the master backup node and the secondary node respectively, compares the first log with the checkpoint log, and outputs the latest log.

[0096] (5) The secondary backup node updates the device side based on the generation order of the latest log.

[0097] Specifically, multiple sub - databases can be distributed on different storage media at the device end to improve data access efficiency and reliability. The communication mechanism can be based on local network protocols (such as TCP / IP) or dedicated internal communication protocols to ensure that each sub - database can communicate and cooperate with each other. The primary node, primary backup node, secondary node, and secondary backup node refer to the node information after dividing all sub - databases. The primary node, primary backup node, secondary node, and secondary backup node respectively correspond to different functions and there are corresponding sub - databases, namely the primary database, primary backup database, secondary database, and secondary backup database.

[0098] The first log is a log record used to record the differences before and after updates and can be generated by comparing difference files. Therefore, the first log contains detailed information about update operations, such as operation type, operation time, operation content, etc. Synchronous sending ensures that all relevant nodes can receive the first log in a timely manner.

[0099] The primary backup node, as a backup of the primary node, ensures that it can take over the functions of the primary node in case of a failure. The secondary node extracts the first log and supplements it to the secondary database. The update of the secondary node may have a certain time difference from that of the primary node, but will eventually be consistent with the primary node.

[0100] The checkpoint log refers to the log records generated by the primary node and the primary backup node at the time points corresponding to each checkpoint interval. The checkpoint log contains the status information of the nodes, such as database version, update time, status flag, etc. The latest log reflects the latest status of the device end to ensure data consistency among all nodes. The latest log can be generated by combining the first log and the checkpoint log.

[0101] The secondary backup node updates each sub - database at the device end in sequence based on the generation order of the latest log. The update process ensures that all data at the device end is in the latest state, maintaining data consistency and integrity. Through the above steps, it is possible to effectively suppress the increase in data loss reflecting update information and ensure the reliability of the system and data consistency.

[0102] In a specific embodiment, the second inspection result is output, including:

[0103] (1) The server uses a hashing algorithm to calculate the hash value of the difference file, generates the first hash value, and transmits the first hash value to the device end.

[0104] (2) The device end uses a hashing algorithm to calculate the hash value of the complete file, generates the second hash value, compares the first hash value with the second hash value, and outputs the comparison result.

[0105] (3) Aggregate all the comparison results corresponding to the device end to generate the second inspection result.

[0106] Specifically, common hashing algorithms include SHA-256, MD5, etc. The server transmits the generated first hash value to all device terminals, and the transmission process can be carried out through an encrypted channel to ensure the security and integrity of the hash value. The device terminal uses the same hashing algorithm as the server to perform hashing calculation on the received complete file to generate a second hash value. If the first hash value is consistent with the second hash value, it indicates that the complete file is consistent with the differential file on the server side, and the update process is successful. If they are inconsistent, it indicates that data corruption or transmission errors may have occurred during the update process, and error handling and retransmission are required. Therefore, the comparison result is set as the second inspection result. The comparison results of all device terminals can be summarized through "0" and "1" values and combined to generate the second inspection result. "0" indicates consistency, and "1" indicates inconsistency.

[0107] In a specific embodiment, the update of all device terminals is completed based on a rollback mechanism, including:

[0108] (1) Obtain the usage plan of the device terminal, set the update plan based on the usage plan. If the second inspection result does not conform to the preset result distribution, identify the device terminal with incorrect update and set it as the device to be rolled back.

[0109] (2) The server sends a rollback instruction to all devices to be rolled back based on the update plan. The devices to be rolled back are restored to the state before the update and send a restoration instruction to the server. The server re-sends the differential file to the devices to be rolled back based on the restoration instruction, and repeat this step until the update of all device terminals is completed.

[0110] Specifically, the usage plan refers to the usage schedule of the teaching and experimental equipment corresponding to the device terminal, which describes the usage status and priority of the device during a specific time period. The server sets an update plan to determine the best update time for each device terminal. The preset result distribution means that there are no inconsistent results in the second inspection result. For example, if the second inspection results generated by all device terminals are (0, 0, 0, 1), it indicates that there is an inconsistent result in the fourth device terminal, that is, incorrect update. Therefore, this device terminal is set as the device to be rolled back.

[0111] The rollback instruction instructs the device to be rolled back to restore to the state before the update. The rollback process includes restoring backup data, canceling the update operation, restarting the device terminal, etc. After the device to be rolled back completes the rollback operation, it sends a restoration instruction to the server to notify the server that the rollback is completed. Then, the update operation of the device to be rolled back is completed in sequence according to the previous update steps until all device terminals are updated. If some device terminals still cannot complete the update after multiple attempts, the server can mark these devices and notify the administrator for manual intervention.

[0112] In a specific embodiment, the network communication cycle between the master device and any slave device is obtained based on the network topology diagram, and the network communication cycle is set as the synchronization cycle.

[0113] The method for updating the intelligent teaching experiment device based on synchronous transmission in the embodiments of the present application has been described above. Next, the system of the intelligent teaching experiment device based on synchronous transmission in the embodiments of the present application will be described. Please refer to Figure 4 , an embodiment of the system of the intelligent teaching experiment device based on synchronous transmission in the embodiments of the present application includes:

[0114] A difference retrieval module 201, configured to store the update file in the server. The server performs difference retrieval on the update file, outputs a difference file, and obtains the metadata of the difference file.

[0115] A synchronous transmission module 202, configured to obtain the communication node distribution of all teaching experiment devices. The teaching experiment device sends an update request to the server. After receiving the update request, the server uses synchronous transmission technology to block-transmit the difference file to the device side based on the communication node distribution, where the device side refers to the device port corresponding to the teaching experiment device.

[0116] An inspection module 203, configured to, after the device side receives all the difference files, inspect the integrity of the difference files, output a first inspection result, and generate a complete file based on the first inspection result.

[0117] An update module 204, configured to update the device side based on the complete file, respectively perform data inspection on all the updated device sides and the server, output a second inspection result, set a rollback mechanism based on the second inspection result, and complete the update of all the device sides based on the rollback mechanism.

[0118] Through the collaborative cooperation of the above - mentioned various components, first, the server performs differential retrieval on the update file, generates a differential file, and obtains its metadata. The device - side obtains the version information through a query request, sends a retrieval request after comparing the version numbers. The server generates a differential file according to the version difference range. The differential file is split into multiple sub - file blocks, which are attached with tags and check codes, and are transmitted to the device - side in chunks through synchronous transmission technology, reducing the amount of data to be transmitted, reducing the occupancy of network bandwidth, improving the update efficiency, and at the same time, ensuring the integrity and accuracy of data transmission and avoiding transmission errors caused by network fluctuations. Then, the server acts as the master device and the device - side acts as the slave device. Based on the distribution of communication nodes, a network topology map is constructed, and a synchronous communication interval is set. The master device sends a synchronous signal, and the slave device receives the signal and corrects its own clock to ensure synchronization with the master device's clock. Within the synchronous communication interval, the master device sends sub - file blocks to all slave devices simultaneously, ensuring data consistency and synchronization, avoiding update errors caused by time asynchrony, improving the efficiency of data transmission, ensuring that all device - sides can receive update data simultaneously, and reducing the update time. Finally, the device - side sets up multiple sub - databases, which are divided into a main node, a main backup node, a secondary node, and a secondary backup node. The multi - level backup mechanism ensures the security and reliability of data. Even if the main node fails, the backup node can take over its functions, effectively suppressing the increase in data loss reflecting update information and ensuring the reliability of the system and data consistency.

[0119] This application also uses a hash algorithm to perform hash calculation on the differential file, generating a second verification result for judging whether the update is successful, ensuring the integrity and correctness of the update file. Any data tampering or transmission error can be detected in a timely manner, and it can comprehensively monitor the update status of all device - sides, and promptly discover and handle situations where the update fails.

[0120] Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the above - described system, system, and unit can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated here.

[0121] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of this application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical discs.

[0122] As described above, the above embodiments are only used to illustrate the technical solutions of this application and are not intended to limit them; although this application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of various embodiments of this application.

Claims

1. An intelligent teaching experiment equipment update method based on synchronous transmission, characterized in that The intelligent teaching experiment equipment update method based on synchronous transmission includes: Storing the update file in the server, where the server performs differential retrieval on the update file, outputs a differential file, and obtains the metadata of the differential file; Obtaining the communication node distribution of all teaching experiment devices, where the teaching experiment devices send update requests to the server. After receiving the update requests, the server uses synchronous transmission technology to block-transmit the differential file to the device side based on the communication node distribution, where the device side refers to the device port corresponding to the teaching experiment device; After the device side receives all the differential files, it checks the integrity of the differential files, outputs a first inspection result, and generates a complete file based on the first inspection result; The device side updates based on the complete file, respectively performs data checks on all the updated device sides and the server, outputs a second inspection result, sets a rollback mechanism based on the second inspection result, and completes the update of all the device sides based on the rollback mechanism.

2. The method for updating an intelligent teaching experiment device based on synchronous transmission according to claim 1, wherein The server's differential retrieval of the update file includes: After the server receives the update file, the device side sends a query request to the server, reads the metadata of the update file and obtains the first number of the update file, and the device side records its own second number; The device side compares the first number and the second number. If the first number is inconsistent with the second number, it sends a retrieval request to the server; The server includes a first database. After receiving the retrieval request, the server obtains a number difference range from the first database based on the second number. If the number difference range is greater than the second number, it continues to expand the number difference range; otherwise, it stops the differential retrieval.

3. The method for updating intelligent teaching experiment equipment based on synchronous transmission according to claim 2, wherein The output of the differential file includes: Generating a third number based on the number difference range. The server extracts a first data list of changed data from the file data between the third number and the first number, and sets the first data list as the differential file; Judging the change type based on the first data list, and the device side sets the update request based on the change type.

4. The method for updating an intelligent teaching experiment device based on synchronous transmission according to claim 1, wherein The block-transmission of the differential file to the device side based on the communication node distribution includes: Setting the server as the master device and the device side as the slave device, constructing a network topology diagram between the master device and the slave device based on the communication node distribution, and setting a synchronous communication interval and other communication intervals based on the synchronous cycle of the network topology diagram; The master device sends a synchronous signal, the slave device receives the synchronous signal and records the reception time, calculates a first time difference from the master device based on the reception time, and the slave device corrects its own clock based on the first time difference. Repeat this step until the first time difference is less than a first preset value; Split the difference file into multiple sub - file blocks, and set tags and check codes for the sub - file blocks. The master device constructs a second data list of all the sub - file blocks based on the tags and the check codes; During the synchronous communication interval, the master device simultaneously sends the sub - file blocks to all the slave devices based on the second data list.

5. The method for updating an intelligent teaching experiment device based on synchronous transmission according to claim 4, wherein After receiving the sub - file blocks during the synchronous communication interval, the slave devices generate the complete file, including: The slave devices store the sub - file blocks and use the check codes to verify the sub - file blocks. If the verification fails, the slave devices send a re - transmission request to the master device based on the tags. After receiving the re - transmission request, the master device re - sends the sub - file blocks in the next synchronous communication interval and repeats this step until the verification is successful; The slave devices sort all the received sub - file blocks based on the tags, check whether there are missing sub - file blocks based on the second data list, and set the ratio of the missing sub - file blocks to all the sub - file blocks as the first test result; If the first test result is equal to the second preset value, assemble all the sub - file blocks based on the second data list to generate the complete file.

6. The intelligent teaching experiment equipment updating method based on synchronous transmission according to claim 1, wherein The device - side is updated based on the complete file, including: Set multiple sub - databases for the device - side, establish a communication mechanism between the sub - databases, and divide all the sub - databases into a master node, a master backup node, a secondary node, and a secondary backup node; After receiving the difference file, the master node updates the corresponding master database, generates a first log recording the differences before and after the update, and synchronously sends the first log to the master backup node and the secondary node; The master backup node updates the corresponding master backup database based on the received first log. The secondary node receives the difference file from the master node at a preset interval, extracts the first log, and supplements the first log to the corresponding secondary database; Both the master node and the master backup node set an inspection interval, generate a checkpoint log based on the inspection interval. The secondary backup node receives the first log and the checkpoint log from the master backup node and the secondary node respectively, compares the first log with the checkpoint log, and outputs the latest log; The secondary backup node updates the device - side based on the generation order of the latest log.

7. The method for updating an intelligent teaching experiment device based on synchronous transmission according to claim 1, wherein The output of the second test result includes: The server uses a hash algorithm to calculate the hash value of the difference file, generates a first hash value, and transmits the first hash value to the device - side; The device - side uses the hash algorithm to calculate the hash value of the complete file, generates a second hash value, compares the first hash value with the second hash value, and outputs the comparison result; Summarize the comparison results corresponding to all the device - sides to generate the second test result.

8. The method for updating an intelligent teaching experiment device based on synchronous transmission according to claim 1, wherein, The completion of the update of all the device - sides based on the roll - back mechanism includes: Obtain the usage plan of the device side, set an update plan based on the usage plan, and if the second inspection result does not conform to the preset result distribution, identify the device side with incorrect update and set it as a device to be rolled back; The server sends a rollback instruction to all the devices to be rolled back based on the updated plan. The devices to be rolled back are restored to the state before the update and send a restoration instruction to the server. The server re-sends the differential file to the devices to be rolled back based on the restoration instruction, and repeats this step until all the device sides complete the update.

9. The method for updating intelligent teaching experiment equipment based on synchronous transmission according to claim 4, wherein, Obtain the network communication cycle between the master device and any one of the slave devices based on the network topology diagram, and set the network communication cycle as the synchronization cycle.

10. An intelligent teaching experiment equipment system based on synchronous transmission, characterized in that, The intelligent teaching experiment equipment system based on synchronous transmission includes: A differential retrieval module for storing the update file in the server. The server performs differential retrieval on the update file, outputs a differential file, and obtains the metadata of the differential file; A synchronous transmission module for obtaining the communication node distribution of all teaching experiment devices. The teaching experiment devices send update requests to the server. After receiving the update requests, the server uses synchronous transmission technology to transmit the differential file in chunks to the device side based on the communication node distribution, where the device side refers to the device port corresponding to the teaching experiment device; An inspection module for inspecting the integrity of the differential file after the device side receives all the differential files, outputting a first inspection result, and generating a complete file based on the first inspection result; An update module for the device side to perform an update based on the complete file, respectively perform data inspection on all the updated device sides and the server, output a second inspection result, set a rollback mechanism based on the second inspection result, and complete the update of all the device sides based on the rollback mechanism.

Citation Information

Patent Citations

  • Method and system for synchronizing data of multiple terminals on basis of equipment capacity

    CN102752294A

  • Method and system of updating intelligent terminal operating system and computer

    CN103164232A

  • Embedded upgrading file transmission method

    CN103297429A

  • Asynchronous replication correctness validation

    US20140181016A1