Intelligent teaching experiment equipment system based on synchronous transmission and updating method thereof

By adopting a synchronous transmission-based method during the update process of intelligent teaching experimental equipment, the problem of slow equipment update speed and inconsistent updates is solved, efficient and accurate equipment updates are achieved, and the stability and user experience of teaching activities are improved.

CN120166104AActive Publication Date: 2025-06-17GUANGZHOU UNIVERSITY
View PDF 5 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing intelligent teaching experimental equipment is slow during the update process, and is prone to network interruption, resulting in failure of updates, and inconsistent update progress between different devices, which affects the normal development of teaching activities, the efficiency of equipment usage and user experience.

Method used

The update method based on synchronous transmission is adopted to search the update files differently through the server, generate the different files and obtain their metadata. After receiving the different files on the device, complete files are generated and updated, and a rollback mechanism is set to ensure the reliability of the update.

Benefits of technology

It improves the efficiency and accuracy of equipment updates, ensures the integrity and accuracy of data transmission, avoids transmission errors caused by network fluctuations, ensures that all device terminals can receive update data at the same time, and reduces update time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120166104A_ABST
    Figure CN120166104A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of equipment updating, and discloses an intelligent teaching experiment equipment system based on synchronous transmission and an updating method thereof. The method comprises the steps that a server conducts difference retrieval on an update file, outputs a difference file and obtains metadata of the difference file; communication node distribution of all teaching experiment equipment is obtained, the teaching experiment equipment sends an updating request to a server, and a synchronous transmission technology is used for transmitting difference files to an equipment end in a blocking mode based on the communication node distribution; after receiving all the difference files, the device end checks the integrity of the difference files, outputs a first check result, and generates a complete file based on the first check result; and the device end performs updating based on the complete file, performs data inspection on 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 updating of all the device ends based on the rollback mechanism. According to the invention, the updating efficiency and completeness of the intelligent teaching experiment equipment are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of equipment update, 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, student terminals, etc., as well as supporting teaching software systems. However, there are many problems in the process of updating 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 development of teaching activities and reduce the use efficiency of the equipment and the user experience. Synchronous Transmission is a data communication technology that ensures 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 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 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 connected to a data synchronization controller through a data link, the terminal devices are initialized, and the existence of the terminal devices relative 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 synchronization controller controls and performs synchronous updates.

[0004] The deficiencies of the prior art are mainly manifested in that when a large number of intelligent terminals request updates simultaneously, 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] This 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, this application provides a method for updating synchronous transmission-based intelligent teaching experiment equipment. The method for updating synchronous transmission-based intelligent teaching experiment equipment includes: Storing the update file in the server, and 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. 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; After the device end receives all the differential files, it checks the integrity of the differential files, outputs a first check result, and generates a complete file based on the first check result; 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 check result, sets a rollback mechanism based on the second check result, and completes the update of all the device ends based on the rollback mechanism.

[0007] In combination with the first aspect, the server's differential retrieval of the update file includes: 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; 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; 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 server continues to expand the number difference range; otherwise, it stops the difference retrieval.

[0008] Combined with the first aspect, the output difference file includes: Generate 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. Judge the change type based on the first data list. The device end sets the update request based on the change type.

[0009] Combined with the first aspect, the step of transmitting the difference file to the device end in blocks based on the communication node distribution includes: Set the server as the master device and the device end as the slave device. Based on the communication node distribution, construct a network topology diagram between the master device and the slave device, and set a synchronous communication interval and other communication intervals based on the synchronization period of the network topology diagram. The master device sends a synchronization signal. The slave device receives the synchronization signal and records the reception time. Calculate a first time difference from the master device based on the reception time. 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. Divide 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. Within the synchronous communication interval, the master device sends the sub-file blocks to all the slave devices simultaneously based on the second data list.

[0010] Combined with the first aspect, after receiving the sub-file blocks within the synchronous communication interval, the slave device generates the complete file, including: The slave device stores the sub-file blocks and uses the check code to check the sub-file blocks. If the check fails, the slave device sends a retransmission request to the master device based on the tag. After receiving the retransmission request, the master device retransmits the sub-file blocks in the next synchronous communication interval, and repeats this step until the check is successful. 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; 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.

[0011] Combined with the first aspect, 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 primary node, a primary backup node, a secondary node, and a secondary backup node; 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; 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; Both the primary node and the primary 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 primary 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.

[0012] Combined with the first aspect, the output of the second test result includes: 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; 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; Summarize the comparison results corresponding to all the device - sides to generate the second test result.

[0013] Combined with the first aspect, the completion of the update of all the device - sides based on the rollback mechanism includes: Obtain the usage plan of the device - side, set an update plan based on the usage plan. If the second test 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; The server sends rollback instructions 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 restoration instructions to the server. The server re-sends the differential files to the devices to be rolled back based on the restoration instructions, and this step is repeated until the update of all the device ends is completed.

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

[0015] In a second aspect, the present application provides an intelligent teaching experiment equipment system based on synchronous transmission. The intelligent teaching experiment equipment system based on synchronous transmission includes: A differential retrieval module for storing an update file in a server. The server performs differential retrieval on the update file, outputs a differential file, and obtains 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 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. An inspection module for, after the device end 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. An update module for the device end to perform an update based on the complete file, respectively performing data inspection on all the updated device ends and the server, outputting a second inspection result, setting a rollback mechanism based on the second inspection result, and completing the update of all the device ends based on the rollback mechanism.

[0016] In the technical solution provided by this application, first, the server performs differential retrieval on the update file to generate a differential file and obtain its metadata. The device terminal 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 terminal in chunks through synchronous transmission technology, reducing the amount of data to be transmitted, occupying less 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 terminal 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 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 asynchronization, improving the efficiency of data transmission, ensuring that all device terminals can receive update data simultaneously, and reducing the update time. Finally, the device terminal sets up multiple sub-databases, which are divided into a primary node, a primary 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 primary node fails, the backup node can take over its function, effectively suppressing the increase in data loss reflecting update information and ensuring the reliability of the system and the consistency of data.

[0017] This application also uses the hash algorithm to perform 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 a timely manner, and it can comprehensively monitor the update status of all device terminals, and promptly discover and handle the situation of update failure. Brief Description of the Drawings

[0018] 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. Obviously, the following drawings are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0019] Figure 1 It is a schematic diagram of an embodiment of the intelligent teaching experiment equipment update method based on synchronous transmission in the embodiments of this application; Figure 2 It is a schematic diagram of an embodiment of the update process of the device terminal in the embodiments of this application; Figure 3 It is a schematic diagram of an embodiment of the synchronous transmission process in the embodiments of this application; Figure 4Schematic diagram of an embodiment of the intelligent teaching experiment equipment system based on synchronous transmission in the embodiment of the present application. Detailed implementation manners

[0020] The embodiment of the present application provides 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 and claims of the present application and the above drawings are used to distinguish similar objects, and do not necessarily need 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 here can be implemented in an order different from that shown or described here. In addition, the term "comprising" or "having" and any variation thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising 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.

[0021] For the convenience of understanding, the specific process of the embodiment 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 embodiment of the present application includes: 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.

[0022] 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 embodiment of the present application takes the server as the execution subject for illustration.

[0023] Specifically, the update file refers to an internal file used for system update of the intelligent teaching experiment equipment, including but not limited to program code, driver, configuration file, etc. The server refers to a cloud server or a local server. Differential retrieval refers to retrieving the change differences between the old and new versions according to the update file, which can reduce the amount of data transmitted. The differential file refers to the file information generated after differential retrieval, which records the specific changes between the old and new versions. The metadata of the differential file includes but not limited to data information such as file size, version number, update time, etc.

[0024] Step S102: 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 transmit the differential file in blocks 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.

[0025] Specifically, the teaching experiment equipment refers to intelligent teaching experiment equipment, such as various hardware including intelligent blackboards, interactive projectors, student terminals, etc., and a supporting teaching software system. The distribution of communication nodes refers to distribution information such as the IP addresses, MAC addresses, and network topology structures of the teaching experiment equipment. The update request can be automatically initiated by the teaching experiment equipment. Block transfer means that the differential file is processed in blocks before being transmitted, which can improve the transmission efficiency. The server dynamically adjusts the transmission rate and block size according to the network conditions and performance of the teaching experiment equipment. The device side is defined as the device ports of each teaching experiment equipment.

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

[0027] 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 check result can be used as a judgment basis. The differential files are adjusted and processed according to the first check result to generate a complete file, that is, the file data for the update of the device side.

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

[0029] Specifically, Figure 2 is a schematic diagram of the update process of the device side. Among them, the device side performs an update 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 and the server perform data verification. The verification content includes file version, checksum, configuration parameters, etc. The specific verification method can be set according to the hash algorithm. The second check 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 check result, if it is detected that the update of the device side fails or an abnormal situation occurs, the device side can automatically restore to the state before the update to ensure the stability and availability of the device side.

[0030] In a specific embodiment, the server performs differential retrieval on the update file, including: (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.

[0031] (2) The device 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.

[0032] (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 difference retrieval.

[0033] Specifically, before sending an update request, the device 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's data.

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

[0035] The first database is a database for storing update files. There is a change history record of the 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 record are M2, M3, and M4, then the number difference range is 3. The number difference range being greater than the second number means that there is file information in the first database that can be used to retrieve the difference. Usually, the numbers are sorted in ascending order of the version numbers from old to new. Therefore, the number difference range can be continued to be expanded.

[0036] In a specific embodiment, the output of the difference file includes: (1) Generate a third number based on the number difference range. The server extracts a first data list of the changed data from the file data between the third number and the first number, and sets the first data list as the difference file.

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

[0038] Specifically, the third number refers to the version number of the files included within the number difference range. For example, the third numbers corresponding to the above number difference ranges 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 with changes refers to the data IDs that have changed among the file data corresponding to the third number to the first number. The first data list can be used to identify asynchronous data. Therefore, a difference file can be generated from the first data list.

[0039] 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.

[0040] In a specific embodiment, based on the communication node distribution, the difference file is divided into blocks and transmitted to the device side, including: (1) Set the server as the master device and the device side as the slave device. Based on the communication node distribution, construct a network topology diagram between the master device and the slave device, and set a synchronization communication interval and other communication intervals based on the synchronization period of the network topology diagram.

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

[0042] (3) Divide the difference file into multiple sub-file blocks, and set labels and check codes for the sub-file blocks. The master device constructs a second data list of all sub-file blocks based on the labels and check codes.

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

[0044] Specifically, based on the communication node distribution, the master device constructs a network topology diagram to describe the connection relationship and network structure between the master device and each slave device, as well as all slave devices. The synchronization communication interval is used for clock synchronization and data transmission between the master and slave devices, and other communication intervals are used to handle communication tasks not related to synchronization, such as status reports, error handling, etc.

[0045] Such as Figure 3As shown, a synchronization transmission mechanism is carried out between the server and the device side. In the synchronization transmission technology, the synchronization signal contains timestamp information, which is used for the slave device to calibrate its own clock. At the beginning of each synchronization communication interval, the master device sends a synchronization signal to all slave devices. After receiving the synchronization 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. Based on the first time difference, the slave device corrects its own clock to ensure synchronization with the master device's clock. Repeat this step until the first time difference is less than the first preset value to achieve the predetermined synchronization accuracy.

[0046] The file sizes of each sub-file block are the same, and 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 verification information of all sub-file blocks.

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

[0048] In a specific embodiment, after receiving the sub-file blocks within the synchronization communication interval, the slave device generates a complete file, including: (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 retransmission request to the master device based on the tag. After receiving the retransmission request, the master device retransmits the sub-file blocks in the next synchronization communication interval, and repeats this step until the verification is successful.

[0049] (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 verification result.

[0050] (3) If the first verification result is equal to the second preset value, all sub-file blocks are assembled based on the second data list to generate a complete file.

[0051] Specifically, after receiving the sub-file blocks, the slave device stores them in the local database. Each sub-file block has a unique tag and check code. If the verification fails, the slave device sends a retransmission request to the master device based on the tag, requesting to retransmit the sub-file block. After receiving the retransmission request, the master device retransmits the failed sub-file block in the next synchronization communication interval, which can not affect the transmission efficiency.

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

[0053] In a specific embodiment, the device - side updates based on the complete file, including: (1) Set multiple sub - databases for the device - side, establish a communication mechanism between the sub - databases, and divide all sub - databases into a primary node, a primary backup node, a secondary node, and a secondary backup node.

[0054] (2) 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.

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

[0056] (4) Both the primary node and the primary backup node set an inspection interval, generate checkpoint logs 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.

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

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

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

[0060] The primary backup node serves as a backup for the primary node to ensure 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 updates of the secondary node may have a certain time difference from those of the primary node, but will eventually be consistent with the primary node.

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

[0062] The secondary backup node sequentially updates each sub-database on the device side based on the generation order of the latest log. The update process ensures that all data on the device side is in the latest state, maintaining data consistency and integrity. Through the above steps, the increase in data loss reflecting update information can be effectively suppressed, ensuring the reliability of the system and data consistency.

[0063] In a specific embodiment, the second inspection result is output, including: (1) The server uses a hash algorithm to calculate the hash value of the differential file, generates the first hash value, and transmits the first hash value to the device side.

[0064] (2) The device side uses a hash 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.

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

[0066] Specifically, common hash algorithms include SHA-256, MD5, etc. The server transmits the generated first hash value to all device sides, and the transmission process can be carried out through an encrypted channel to ensure the security and integrity of the hash value. The device side uses the same hash algorithm as the server to calculate the hash value of the received complete file and generates the 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 sides can be aggregated through "0" and "1" values and combined to generate the second inspection result. "0" indicates consistency, and "1" indicates inconsistency.

[0067] In a specific embodiment, the update of all device sides is completed based on the rollback mechanism, including: (1)Obtain the usage plan of the device end, 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 end with incorrect update and set it as the device to be rolled back.

[0068] (2)The server sends a rollback instruction to all 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 resends the differential file to the devices to be rolled back based on the restoration instruction, and repeats this step until all device ends complete the update.

[0069] Specifically, the usage plan refers to the usage schedule of the teaching and experimental equipment corresponding to the device end, which describes the usage status and priority of the equipment within a specific time period. The server sets an update plan to determine the optimal update time for each device end. 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 ends are (0, 0, 0, 1), it indicates that there is an inconsistent result in the fourth device end, that is, incorrect update. Therefore, this device end is set as the device to be rolled back.

[0070] 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, undoing the update operation, restarting the device end, 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 has been 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 ends are updated. If some device ends still cannot complete the update after multiple attempts, the server can mark these devices and notify the administrator for manual intervention.

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

[0072] The above describes the intelligent teaching and experimental equipment update method based on synchronous transmission in the embodiments of the present application. Next, the intelligent teaching and experimental equipment system based on synchronous transmission in the embodiments of the present application will be described. Please refer to Figure 4 , an embodiment of the intelligent teaching and experimental equipment system based on synchronous transmission in the embodiments of the present application includes: The differential retrieval module 201 is used to store the update file in the server. The server performs differential retrieval on the update file, outputs the differential file, and obtains the metadata of the differential file.

[0073] The synchronous transmission module 202 is used to 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 transmit the differential files in chunks to the device side based on the communication node distribution, where the device side refers to the device ports corresponding to the teaching experiment devices.

[0074] The verification module 203 is used to verify the integrity of the differential files after the device side receives all the differential files, output the first verification result, and generate a complete file based on the first verification result.

[0075] The update module 204 is used for the device side to perform updates based on the complete file, respectively perform data verification on all updated device sides and the server, output the second verification result, set a rollback mechanism based on the second verification result, and complete the updates of all device sides based on the rollback mechanism.

[0076] Through the collaborative cooperation of the above various components, first, the server performs differential retrieval on the update file, generates differential files, and obtains their metadata. The device side obtains the version information through a query request, sends a retrieval request after comparing the version numbers, and the server generates differential files according to the version difference range. The differential files are split into multiple sub-file blocks, with tags and check codes attached, and are transmitted in chunks to the device side 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 acts as the master device and the device side acts as the slave device. Based on the communication node distribution, a network topology diagram 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 and divides them into master nodes, master backup nodes, secondary nodes, and secondary backup nodes. The multi-level backup mechanism ensures the security and reliability of the data. Even if the master 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 the consistency of the data.

[0077] This application also uses the hash algorithm to perform hash calculation on the differential files to generate the 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 a timely manner, and it can comprehensively monitor the update status of all device sides, and promptly discover and handle the situation of update failure.

[0078] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the above-described systems, systems, and units can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.

[0079] If 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 the present 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 the present application. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical discs that can store program codes.

[0080] As described above, the above embodiments are only used to illustrate the technical solutions of the present application and are not intended to limit them; although the present 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 recorded in the foregoing embodiments or perform equivalent replacements for 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 the various embodiments of the present application.

Claims

1. A method for updating intelligent teaching experiment equipment based on synchronous transmission, characterized in that: The method for updating the intelligent teaching experiment equipment based on synchronous transmission includes: The update file is stored in a server, the server performs a difference search on the update file, outputs the difference file, and obtains metadata of the difference file; Obtain the communication node distribution of all teaching experiment devices, the teaching experiment device sends an update request to the server, and after receiving the update request, the server uses synchronous transmission technology to transmit the difference file in blocks to the device end based on the communication node distribution, wherein the device end refers to the device port corresponding to the teaching experiment device; After receiving all the difference files, the device verifies the integrity of the difference files, outputs a first verification result, and generates a complete file based on the first verification result; The device end is updated based on the complete file, data is verified on all the updated device ends and the server respectively, a second verification result is output, a rollback mechanism is set based on the second verification result, and the update of all the device ends is completed based on the rollback mechanism.

2. The method for updating intelligent teaching experiment equipment based on synchronous transmission according to claim 1 is characterized in that: The server performs a difference search on the update file, including: After the server receives the update file, the device 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 records its own second number; The device compares the first number and the second number, and sends a search request to the server if the first number is inconsistent with the second number; The server includes a first database. After receiving the search 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 continued to be expanded; otherwise, the difference search is stopped.

3. The method for updating the intelligent teaching experiment equipment based on synchronous transmission according to claim 2 is characterized in that: The output difference file includes: generating a third number based on the number difference range, the server extracting a first data list having changes from the file data between the third number and the first number, and setting the first data list as the difference file; The change type is determined based on the first data list, and the device sets the update request based on the change type.

4. The method for updating intelligent teaching experiment equipment based on synchronous transmission according to claim 1 is characterized in that: The step of transmitting the difference file in blocks to the device end based on the communication node distribution includes: The server is set as a master device, the device end is set as a 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; The master device sends a synchronization signal, the slave device receives the synchronization signal and records the reception time, calculates a first time difference with the master device based on the reception time, and the slave device corrects its own clock based on the first time difference, repeating this step until the first time difference is less than a first preset value; Splitting the difference file into a plurality of sub-file blocks, and setting labels and check codes for the sub-file blocks, wherein the master device constructs a second data list of all the sub-file blocks based on the labels and the check codes; In the synchronous communication section, 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 intelligent teaching experiment equipment based on synchronous transmission according to claim 4 is characterized in that: After receiving the sub-file block in the synchronous communication interval, the slave device generates the complete file, including: The slave device stores the sub-file block and verifies the sub-file block using the verification code. If the verification fails, the slave device sends a retransmission request to the master device based on the tag. After receiving the retransmission request, the master device retransmits the sub-file block in the next synchronous communication interval, and repeats this step until the verification succeeds. The slave device sorts all the received sub-file blocks based on the tags, 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 inspection result; If the first verification result is equal to a second preset value, all the sub-file blocks are assembled based on the second data list to generate the complete file.

6. The method for updating intelligent teaching experiment equipment based on synchronous transmission according to claim 1 is characterized in that: The device is updated based on the complete file, including: A plurality of sub-databases are set up for the device end, 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; After receiving the difference file, the master node updates the corresponding master database, generates a first log recording the difference before and after the update, and synchronously sends the first log to the master backup node and the secondary node; The primary backup node updates the corresponding primary backup database based on the received first log, and the secondary node receives the difference file of the primary node based on a preset interval, extracts the first log, and adds the first log to the corresponding secondary database; The primary node and the primary backup node both 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 primary 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 end based on the generation order of the latest log.

7. The method for updating intelligent teaching experiment equipment based on synchronous transmission according to claim 1 is characterized in that: The outputting of the second inspection result comprises: The server performs hash calculation on the difference file using a hash algorithm to generate a first hash value, and transmits the first hash value to the device end; The device end performs hash calculation on the complete file using the hash algorithm to generate a second hash value, compares the first hash value with the second hash value, and outputs a comparison result; The comparison results corresponding to all the device ends are aggregated to generate the second inspection result.

8. The method for updating intelligent teaching experiment equipment based on synchronous transmission according to claim 1 is characterized in that: The updating of all the device ends is completed based on the rollback mechanism, including: Obtaining a usage plan for the device end, setting an update plan based on the usage plan, and if the second inspection result does not conform to a preset result distribution, identifying the device end that was incorrectly updated and setting 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 recovery instruction to the server. The server resends the difference file to the devices to be rolled back based on the recovery instruction. This step is repeated until the update is completed on all the devices.

9. The method for updating intelligent teaching experiment equipment based on synchronous transmission according to claim 4 is characterized in that: The network communication cycle between the master device and any of the slave devices is acquired based on the network topology diagram, and the network communication cycle is set 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 difference retrieval module, used to store the update file in a server, the server performs a difference search on the update file, outputs the difference file, and obtains metadata of the difference file; A synchronous transmission module is used to obtain the communication node distribution of all teaching experiment devices, the teaching experiment device sends an update request to the server, and after receiving the update request, the server uses synchronous transmission technology to transmit the difference file in blocks to the device end based on the communication node distribution, wherein the device end refers to the device port corresponding to the teaching experiment device; A verification module, configured to verify the integrity of the difference files after the device receives all the difference files, output a first verification result, and generate a complete file based on the first verification result; An update module is used to update the device end based on the complete file, perform data verification on all the updated device ends and the server respectively, output a second verification result, set a rollback mechanism based on the second verification result, and complete the update of all the device ends 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

  • Systems and methods for automated discrepancy determination, explanation, and resolution

    US20210125190A1