This invention relates to a method,
system, terminal device, and medium for reconnecting and
synchronizing mining equipment after it has gone offline. The method includes: each target device after offline reconnection queries its local
database to obtain the version number of the last successfully executed instruction before going offline and issues a synchronization request instruction; the
server responds to the synchronization request instruction and determines the offline page
instruction list corresponding to each target device during the offline period based on the version number of the last successfully executed instruction and the instruction version number in the circular instruction log buffer; the
activity level of each target device is determined based on its
activity level, and control instructions are determined based on the number of target devices and the
activity level of each target device; the offline page instructions corresponding to the offline page
instruction list are transmitted to the corresponding target devices according to the control instructions; the target devices receive the offline page instructions and execute the offline page instructions according to the
timestamp to achieve page state synchronization. This invention provides high device synchronization efficiency after offline reconnection.