Information processing method and device, equipment, medium and program product

By dynamically adjusting the data volume and transmission period of synchronous data in the smart access control device, the problem that the device is unavailable during the synchronization process caused by the single -threaded design, and improved the data synchronization efficiency and user experience.

CN119383716AActive Publication Date: 2025-01-28CHINA MOBILE M2M +2
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411505215.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-25
Publication Date
2025-01-28
Estimated Expiration
2044-10-25

AI Technical Summary

Technical Problem

When intelligent access control devices synchronize data in the park, single-threaded design causes other tasks to be unable to be performed during the synchronization process, and the user experience is poor, especially when there are too many devices or large data volumes.

Method used

By obtaining the transmission result of the transmission of data to the target device, the amount of data to the data to be synchronized is dynamically adjusted, and the amount of data that can be transmitted according to the minimum estimated time range of the target device, the success time, the time of the air passing time, the timeout time and the data Calculate the total amount, adjust the transmission period to optimize the data synchronization.

Benefits of technology

The efficiency of data synchronization has been improved, the transmission time is shortened, the user experience is improved, and it ensures that the device can respond to user operations in time during the synchronization process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119383716A_ABST
    Figure CN119383716A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an information processing method and device, equipment, a medium and a program product. The method comprises the following steps: acquiring a first interface transmission result; under the condition that the first interface transmission result is used for representing that the first to-be-synchronized data is failed in transmission, acquiring a transmittable data volume, transmission time of successful transmission, idle transmission time, timeout time of failed transmission and a total data volume of failed transmission corresponding to the target equipment in a minimum predicted time range; calculating the data volume of the second to-be-synchronized data according to the transmittable data volume in the minimum predicted time range, the transmission time of successful transmission, the idle transmission time, the timeout time of failed transmission and the total data volume of failed transmission; extracting second to-be-synchronized data from the first to-be-synchronized data according to the data volume of the second to-be-synchronized data; and sending the second to-be-synchronized data to the target device. According to the embodiment of the invention, the data synchronization efficiency can be improved, so that the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of Internet of Things, and in particular, relates to an information processing method, device, equipment, computer storage medium and computer program product. Background Art

[0002] When permissions are modified or added in the park, the relevant data needs to be synchronized to the smart access control devices in the park, so that the modification and addition of permissions can be synchronized in the smart access control device system. When the device is initially set up, all user permission information and other data in the park also need to be synchronized to the device.

[0003] At present, when synchronizing data, the remote management server usually needs to send data to each smart access control device through interface calls or file transfer. Since smart access control devices are single-threaded, they cannot perform other tasks while synchronizing data and cannot be used by users. When there are many smart access control devices that need to be synchronized or the amount of data to be synchronized is large, it often takes a long time to transmit. This results in a poor user experience. Summary of the invention

[0004] The embodiments of the present application provide an information processing method, apparatus, device, computer storage medium, and computer program product, which can improve the efficiency of data synchronization and thus improve the user experience.

[0005] In a first aspect, an embodiment of the present application provides an information processing method, including:

[0006] Acquire a first interface transmission result, where the first interface transmission result is a transmission result of the remote management server transmitting the first data to be synchronized to the target device through the interface;

[0007] When the first interface transmission result is used to characterize the failure of the first data to be synchronized, the amount of data that can be transmitted within the minimum expected time range corresponding to the target device, the transmission time of successful transmission, the idle transmission time, the timeout time of failed transmission, and the total amount of data that failed to be transmitted are obtained;

[0008] Calculate the amount of second data to be synchronized according to the amount of data that can be transmitted within the minimum expected time range, the transmission time of successful transmission, the idle transmission time, the timeout time of failed transmission, and the total amount of data that failed to be transmitted;

[0009] extracting the second data to be synchronized from the first data to be synchronized according to the data amount of the second data to be synchronized;

[0010] Send the second data to be synchronized to the target device.

[0011] In an optional implementation, the amount of data of the second data to be synchronized is calculated according to the amount of data that can be transmitted within the minimum expected time range, the transmission time of successful transmission, the idle transmission time, the timeout time of failed transmission, and the total amount of data that failed to be transmitted, including:

[0012] The sorting weight is calculated based on the transmission time of successful transmission, the idle transmission time, and the timeout time of failed transmission;

[0013] Calculate the product of the sorting weight and the total amount of data that failed to be transmitted;

[0014] The product is added to the amount of data that can be transmitted within the minimum expected time range to obtain the amount of second data to be synchronized.

[0015] In an optional implementation manner, when the first interface transmission result is used to characterize the failure of the first data to be synchronized transmission, before obtaining the amount of data that can be transmitted within the minimum expected time range corresponding to the target device, the transmission time of successful transmission, the idle transmission time, the timeout time of failed transmission, and the total amount of data that failed to be transmitted, the method further includes:

[0016] Obtain the total amount of successfully transmitted data and the total duration of data transmission corresponding to the target device within the preset time period;

[0017] Divide the total amount of successfully transmitted data by the total time it takes to transmit the data to get the average transmission rate of the target device.

[0018] The product of the average transmission rate and the preset minimum estimated time is calculated to obtain the amount of data that can be transmitted within the minimum estimated time range.

[0019] In an optional implementation, before obtaining the first interface transmission result, the method further includes:

[0020] Obtaining the data volume of the first data to be synchronized;

[0021] Extracting the first data to be synchronized from a preset queue of data to be transmitted according to the data volume of the first data to be synchronized;

[0022] According to a predetermined first transmission period, first data to be synchronized is transmitted to the target device.

[0023] In an optional implementation, before transmitting the first to-be-synchronized data to the target device according to the predetermined first transmission period, the method further includes:

[0024] Acquire a usage record of the target device within a synchronization time period window, the usage record including the time when the target device is used, the synchronization time period window including a synchronization period and a preset period adjacent to the synchronization period;

[0025] Determine the expected usage time of the target device within the synchronization period based on the usage record;

[0026] Calculate the time interval between the target time and the estimated time of use;

[0027] Calculate the time difference between the time interval and the air transmission time;

[0028] When the duration difference meets the preset conditions, a time period with the target time as the starting time and the duration difference as the duration is determined as the first transmission time period.

[0029] In an optional implementation, before acquiring the first usage record of the target device within the synchronization time period window, the method further includes:

[0030] Obtain a usage count set, where the usage count set includes usage counts of target devices corresponding to each of a plurality of time period windows within a target time period;

[0031] The time period window corresponding to the smallest usage count in the usage count set is determined as the synchronization time period window.

[0032] In an optional implementation, before transmitting the first to-be-synchronized data to the target device according to the predetermined first transmission period, the method further includes:

[0033] Obtaining the park number and synchronization time period window to which the target device belongs, the synchronization time period window including the synchronization period and the preset period adjacent to the synchronization period;

[0034] Based on the preset key generation formula, the target key is generated according to the park number and the synchronization time period window;

[0035] The target key is used to perform multiple rounds of encryption on the first data to be synchronized.

[0036] In an optional implementation manner, after extracting the second data to be synchronized from the first data to be synchronized according to the data volume of the second data to be synchronized, the method further includes:

[0037] The third data to be synchronized is added to a preset transmission failure queue, where the third data to be synchronized includes the remaining data to be synchronized after the second data to be synchronized is extracted from the first data to be synchronized.

[0038] In an optional implementation, after sending the second data to be synchronized to the target device, the method further includes:

[0039] Obtaining a second interface transmission result of second data to be synchronized;

[0040] Increasing the number of transmission times of the first data to be synchronized by one;

[0041] When the second interface transmission result is used to characterize the failure of the second data to be synchronized, the second data to be synchronized is used as the new first data to be synchronized, and the second interface transmission result is used as the new first interface transmission result. When the first interface transmission result is used to characterize the failure of the first data to be synchronized, the target device is returned to obtain the minimum expected time range that can be transmitted, the transmission time for successful transmission, the idle transmission time, the timeout time for the failure of the first data to be synchronized, and the data volume of the first data to be synchronized, until the second data to be synchronized is successfully transmitted, or the number of transmissions of the first data to be synchronized reaches a preset number of times.

[0042] In an optional implementation manner, after increasing the number of transmission times of the first data to be synchronized by one, the method further includes:

[0043] When the number of transmissions of the first data to be synchronized reaches a preset number, extracting the fourth data to be synchronized from the second data to be synchronized according to a preset minimum transmission data amount of the target device;

[0044] Adding fifth data to be synchronized to a preset transmission failure queue, the fifth data to be synchronized including remaining data to be synchronized after the fourth data to be synchronized is extracted from the second data to be synchronized; sending the fourth data to be synchronized to the target device.

[0045] In an optional implementation, after sending the fourth data to be synchronized to the target device, the method further includes:

[0046] Obtaining a third interface transmission result of fourth data to be synchronized;

[0047] When the third interface transmission result is used to indicate that the fourth data to be synchronized has failed to be transmitted, the fourth data to be synchronized and the device information of the target device are added to a preset transmission failure queue;

[0048] According to the device information of the target device, obtaining the sixth to-be-synchronized data successfully sent to the target device from a preset transmission success queue;

[0049] Add the sixth data to be synchronized to the transmission failure queue;

[0050] Delete the target device from the preset transferable device queue.

[0051] In an optional implementation, after obtaining the first interface transmission result, the method further includes:

[0052] When the first interface transmission result is used to indicate that the first data to be synchronized is transmitted successfully, obtaining the network time taken by the target device to receive the first data to be synchronized and the device processing storage time;

[0053] Calculate the data volume of the seventh data to be synchronized according to the corresponding relationship between the predetermined second transmission period, the network time taken by the target device to receive the first data to be synchronized, the device processing storage time, the data volume of the first data to be synchronized and the data volume of the seventh data to be synchronized;

[0054] Extracting the seventh data to be synchronized from a preset queue of data to be transmitted according to the data amount of the seventh data to be synchronized;

[0055] According to the second transmission period, seventh data to be synchronized is sent to the target device.

[0056] In an optional implementation, before extracting the first data to be synchronized from a preset queue of data to be transmitted according to the data volume of the first data to be synchronized, the method further includes:

[0057] When the database to be transmitted includes the data to be transmitted and the queue of the data to be transmitted is not full, extracting the data to be transmitted from the database to be transmitted and putting it into the queue of the data to be transmitted;

[0058] When the database to be transmitted does not include the data to be transmitted and the queue of data to be transmitted is not full, data is extracted from the preset transmission failure queue and put into the queue of data to be transmitted.

[0059] In an optional implementation, according to the data volume of the first data to be synchronized, before reading the first data to be synchronized from the preset data queue to be transmitted, the method further includes:

[0060] When the database to be transmitted, the transmission failure queue and the data to be transmitted queue do not contain the data to be synchronized, an indication message is sent to the target device to instruct the target device to synchronize the received data to be synchronized with other devices in the preset transmittable device queue.

[0061] In a second aspect, an embodiment of the present application provides an information processing device, including:

[0062] An acquisition module, used for acquiring a first interface transmission result, where the first interface transmission result is a transmission result of the remote management server transmitting the first data to be synchronized to the target device through the interface;

[0063] The acquisition module is further used to obtain, when the first interface transmission result is used to characterize the failure of the first data to be synchronized, the amount of data that can be transmitted within the minimum expected time range corresponding to the target device, the transmission time of successful transmission, the idle transmission time, the timeout time of failed transmission, and the total amount of data that failed to be transmitted;

[0064] A calculation module, used to calculate the amount of second data to be synchronized according to the amount of data that can be transmitted within the minimum expected time range, the transmission time of successful transmission, the idle transmission time, the timeout time of failed transmission, and the total amount of data that failed to be transmitted;

[0065] An extraction module, configured to extract the second data to be synchronized from the first data to be synchronized according to the data volume of the second data to be synchronized;

[0066] The sending module is used to send the second data to be synchronized to the target device.

[0067] In a third aspect, an embodiment of the present application provides an electronic device, the device comprising: a processor and a memory storing computer program instructions;

[0068] When the processor executes the computer program instructions, it implements the information processing method as described in any optional implementation manner of the first aspect of the present application.

[0069] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, an information processing method as in any optional implementation manner of the first aspect of the present application is implemented.

[0070] In a fifth aspect, an embodiment of the present application provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes an information processing method as described in any optional implementation of the first aspect of the present application.

[0071] The information processing method, device, equipment, computer storage medium and computer program product of the embodiment of the present application can obtain the first interface transmission result. The first interface transmission result is the transmission result of the first data to be synchronized transmitted by the remote management server to the target device through the interface. In the case where the first interface transmission result is used to characterize the failure of the transmission of the first data to be synchronized, the amount of data that can be transmitted within the minimum expected time range corresponding to the target device, the transmission time of successful transmission, the idle transmission time, the timeout time of failed transmission, and the total amount of data that failed transmission are obtained. According to the amount of data that can be transmitted within the minimum expected time range, the transmission time of successful transmission, the idle transmission time, the timeout time of failed transmission, and the total amount of data that failed transmission, the amount of data of the second data to be synchronized is calculated. In this way, the amount of data to be retransmitted can be dynamically reduced according to the network situation and the device situation of the target device. Then, the second data to be synchronized is extracted from the first data to be synchronized according to the amount of data of the second data to be synchronized, and the second data to be synchronized is sent to the target device. In this way, the data to be synchronized that failed to be transmitted is retransmitted according to the adjusted amount of data, so that the amount of data to be retransmitted can adapt to the current network situation and device situation. In this way, not only can the data transmission rate be higher during retransmission, but also the success rate of data retransmission can be improved. This is helpful to improve the overall transmission efficiency of the full amount of data to be synchronized, thereby shortening the transmission time and shortening the time that the device cannot be used by the user, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0072] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0073] Figure 1 It is a flowchart of an information processing method provided by an embodiment of the present application;

[0074] Figure 2 is a structural diagram of an information processing device provided by another embodiment of the present application;

[0075] Figure 3 It is a structural diagram of an information processing device provided by yet another embodiment of the present application. DETAILED DESCRIPTION

[0076] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0077] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0078] As described in the background technology, since the smart access control device is single-threaded, it cannot perform other tasks while synchronizing data and cannot be used by users. When there are many smart access control devices that need to be synchronized or the amount of data to be synchronized is large, it often takes a long time to transmit. This results in a poor user experience.

[0079] The relevant technology involves using a cloud monitoring system to transmit smart home devices in real time, and notifying all terminal devices that are monitoring the smart network in the form of broadcasting through the cloud monitoring system to achieve the purpose of synchronizing information.

[0080] The related technology also involves using inter-device communication in the media resource playback scenario to add two checks to ensure that the frames to be played are played completely synchronously between the devices.

[0081] However, the above two solutions only involve data synchronization between devices, and do not involve the content related to improving the data synchronization rate between the remote management server and the smart device.

[0082] Related technologies also involve increasing the bandwidth between smart devices and remote management servers, or transmitting data locally directly via wired connections. However, this method is costly to implement and has limited improvement in data synchronization rate. Once the amount of data is too large or a network problem occurs, resulting in data transmission failure, it will take a long time to retransmit.

[0083] In order to improve the efficiency of data synchronization, the inventor, after in-depth thinking, cleverly proposed an information processing method, device, equipment, computer storage medium and computer program product.

[0084] The information processing method provided by the embodiment of the present application is introduced below in conjunction with the accompanying drawings through specific embodiments and their application scenarios. The information processing method provided by the embodiment of the present application, the device executing the method may be an information processing device, or a partial module in the information processing device for executing the information processing method. In the embodiment of the present application, the information processing method provided by the embodiment of the present application is described in detail by taking the information processing device executing the information processing method as an example.

[0085] The information processing method of the embodiment of the present application can be applied to the data synchronization scenario between the remote management server of the park and multiple devices in the park. The remote server and the device can communicate with each other in a remote connection mode, and multiple devices in the park can communicate with each other through the local network.

[0086] In one example, before synchronizing data to multiple devices in the park, the remote management server can send a probe request to each of the multiple devices. The probe request can be a request to transmit data, and the data carried is empty. Because the data carried is empty, the processing time of the device can be ignored. According to the response of each device, the idle transmission time of each device and the network time of each device transmission can be obtained. If the device does not respond, it is considered that the device is offline and the device is a non-transmittable device. In this way, multiple transmittable devices can be determined from multiple devices in the park, as well as the idle transmission time of each transmittable device and the network time of the device transmission.

[0087] In one example, for each transmittable device, the remote management server can also set the initial maximum amount of single data synchronization and the initial minimum split device group number limit. When synchronizing data, if the total amount of the full data to be synchronized is less than or equal to the maximum amount of single data synchronization, or the number of transmittable devices is less than or equal to the minimum split device group number limit, the remote management server directly transmits the full amount of data to each transmittable device through the interface.

[0088] In one example, the remote management server may also generate an initialization queue before synchronizing data to multiple devices in the campus. In particular, when the management end application is multi-instance, the queue can be initialized to the remote dictionary server (Remote Dictionary Server, Redis). The initialization queue may include a queue for data to be transmitted, a queue for failed transmissions, a queue for successful transmissions, and a queue for transmittable devices. Among them, the queue for data to be transmitted can be used to store data to be synchronized. The list size of the queue for data to be transmitted is fixed. After being taken out, the remaining data to be synchronized can be read from the database and put into the queue for transmission. The successful transmission queue can be used to record the information of the data to be synchronized that has been successfully transmitted and the corresponding device information. The failed transmission queue is used to record the information of the data to be synchronized that has failed to be transmitted and the corresponding device information. The transmittable device queue can be used to record the device information on which data can be transmitted and the amount of data that can be transmitted by the corresponding device.

[0089] In one example, when synchronizing data to multiple devices in the campus, the remote management server can start a thread pool, extract the to-be-synchronized data corresponding to each device from the to-be-transmitted data queue according to the amount of data that each device in the transmittable device queue can transmit, and send the to-be-synchronized data corresponding to each device to the corresponding device. For example, the transmittable device queue includes m devices, denoted as device 1 to device m, and the amount of data that each device can transmit is denoted as Num 1 To Num m The thread pool can extract Num data from the queue of data to be transmitted. 1 To Num m The data to be synchronized is sent to device 1 to device m respectively.

[0090] The following is combined with Figure 1 The information processing method provided in the embodiments of the present application is described in detail.

[0091] Figure 1 FIG. 1 is a flow chart showing an information processing method provided by an embodiment of the present application. Figure 1 As shown, the information processing method may specifically include the following steps S110 to S150.

[0092] S110, obtaining a first interface transmission result, where the first interface transmission result is a transmission result of the remote management server transmitting first data to be synchronized to the target device through the interface.

[0093] In step S110 , the target device may include any device in the transmittable device queue.

[0094] S120, when the first interface transmission result is used to characterize the failure of the first data to be synchronized transmission, obtain the amount of data that can be transmitted within the minimum expected time range corresponding to the target device, the transmission time for successful transmission, the idle transmission time, the timeout time for transmission failure, and the total amount of data that failed to be transmitted.

[0095] In step S120, the transmission time of successful transmission may include the time consumed by the successfully transmitted data to be synchronized in the historical data. The total amount of data that failed to be transmitted may include the amount of data to be synchronized that failed to be transmitted in the historical data. In some examples, the total amount of data that failed to be transmitted may include the total amount of the data source to be synchronized that failed to be transmitted, and specifically may include the data to be synchronized that failed to be transmitted and its amount. The idle transmission time may be determined by sending a probe request to the target device.

[0096] S130, calculating the data volume of the second data to be synchronized according to the data volume that can be transmitted within the minimum expected time range, the transmission time of successful transmission, the idle transmission time, the timeout time of failed transmission, and the total amount of data that failed to be transmitted.

[0097] S140: extract the second data to be synchronized from the first data to be synchronized according to the data volume of the second data to be synchronized.

[0098] S150: Send second data to be synchronized to the target device.

[0099] The information processing method of the embodiment of the present application can obtain the transmission result of the first interface. The transmission result of the first interface is the transmission result of the remote management server transmitting the first data to be synchronized to the target device through the interface. In the case where the transmission result of the first interface is used to characterize the failure of the transmission of the first data to be synchronized, the amount of data that can be transmitted within the minimum expected time range corresponding to the target device, the transmission time of successful transmission, the idle transmission time, the timeout time of failed transmission, and the total amount of data that failed transmission are obtained. According to the amount of data that can be transmitted within the minimum expected time range, the transmission time of successful transmission, the idle transmission time, the timeout time of failed transmission, and the total amount of data that failed transmission, the amount of data of the second data to be synchronized is calculated. In this way, the amount of data to be retransmitted can be dynamically reduced according to the network situation and the device situation of the target device. Then, according to the amount of data of the second data to be synchronized, the second data to be synchronized is extracted from the first data to be synchronized, and the second data to be synchronized is sent to the target device. In this way, the data to be synchronized that failed to be transmitted is retransmitted according to the adjusted amount of data, so that the amount of data to be retransmitted can adapt to the current network situation and device situation. In this way, not only can the data transmission rate be higher during retransmission, but also the success rate of data retransmission can be improved. This is helpful to improve the overall transmission efficiency of the full amount of data to be synchronized, thereby shortening the transmission time and shortening the time that the device cannot be used by the user, thereby improving the user experience.

[0100] In one embodiment, the amount of data to be synchronized for the second data to be synchronized is calculated according to the amount of data that can be transmitted within the minimum expected time range, the transmission time of successful transmission, the idle transmission time, the timeout time of failed transmission, and the total amount of data that failed to be transmitted, which may specifically include:

[0101] The sorting weight is calculated based on the transmission time of successful transmission, the idle transmission time, and the timeout time of failed transmission.

[0102] Calculate the product of the sorting weight and the total amount of data that failed to be transferred.

[0103] The product is added to the amount of data that can be transmitted within the minimum expected time range to obtain the amount of second data to be synchronized.

[0104] Illustratively, the sorting weight in the above embodiment can be calculated by the following formula 1.

[0105]

[0106] In formula 1, K 数据 It can represent the sorting weight. n can represent the number of successful transmissions of the data to be synchronized to the target device during the historical period. i It can represent the total transmission time of the device when the i-th successful transmission occurs. 0总 It can represent the idle time. 超时 It can represent the average value of the timeout period of transmission failure in the historical period.

[0107] The amount of the second data to be synchronized can be calculated using the following formula 2.

[0108]

[0109] In Formula 2, Num m It can represent the amount of data to be synchronized. i Can indicate the total amount of data that failed to transfer.

[0110] According to the above implementation, the amount of data to be retransmitted can be dynamically reduced according to the network conditions and the device conditions of the target device. In this way, not only can the data transmission rate be higher during retransmission, but also the success rate of data retransmission can be improved. Therefore, it is beneficial to improve the overall transmission efficiency of the full amount of data to be synchronized, thereby shortening the transmission time and shortening the time that the device cannot be used by the user, thereby improving the user experience.

[0111] In one embodiment, when the first interface transmission result is used to indicate that the first to-be-synchronized data transmission fails, before obtaining the amount of data that can be transmitted within the minimum expected time range corresponding to the target device, the transmission time of successful transmission, the idle transmission time, the timeout time of failed transmission, and the total amount of data that failed to be transmitted, the method may further include:

[0112] Get the total amount of successfully transmitted data and the total duration of data transmission corresponding to the target device within the preset time period.

[0113] Divide the total amount of successfully transmitted data by the total time it takes to transmit the data to get the average transmission rate of the target device.

[0114] The product of the average transmission rate and the preset minimum estimated time is calculated to obtain the amount of data that can be transmitted within the minimum estimated time range.

[0115] In the above implementation, the average transmission rate of the target device can be calculated by the following formula 3.

[0116]

[0117] In formula 3, m can represent the number of successful transmissions within a preset period of time, num i It can represent the amount of data transmitted during the i-th successful transmission. It can indicate the total amount of data successfully transmitted. i It can represent the total transmission time of the device when the i-th successful transmission occurs. It can indicate the total time of data transmission.

[0118] The amount of data that can be transmitted within the minimum expected time range can be calculated using the following formula 4.

[0119] Num 最小预计时间 =T 最小预估 *C Formula 4

[0120] In Formula 4, Num 最小预计时间 It can represent the amount of data that can be transmitted within the minimum expected time range, T 最小预估 It can be the minimum estimated time of preset data transmission, T 最小预估 The value of can be set according to the actual situation. For example, T 最小预估 It can be 5 seconds, so that the amount of data transmitted in a single time can be more appropriate, reducing the number of transmission times of the full amount of data, thereby improving the data transmission rate.

[0121] According to the above implementation, the amount of data that can be transmitted within the minimum expected time range can be adjusted according to the historical transmission success situation. In this way, the amount of retransmitted data determined based on the amount of data that can be transmitted within the minimum expected time range is more in line with the network situation and the equipment situation. As a result, not only can the data transmission rate during retransmission be higher, but the success rate of data retransmission can also be improved.

[0122] In one embodiment, before obtaining the first interface transmission result, the method may further include:

[0123] Get the data volume of the first data to be synchronized.

[0124] The first data to be synchronized is extracted from a preset queue of data to be transmitted according to the data amount of the first data to be synchronized.

[0125] According to a predetermined first transmission period, first data to be synchronized is transmitted to the target device.

[0126] In the above implementation, the data volume of the first data to be synchronized can be obtained from a preset transmittable device queue.

[0127] According to the above implementation, the amount of data to be transmitted to the device can be determined according to the device situation, and data transmission can be performed according to the amount of data. In this way, data transmission can have both a higher rate and a higher success rate, which is conducive to reducing the transmission time of the full amount of data and improving the efficiency of data synchronization.

[0128] In one embodiment, before transmitting the first to-be-synchronized data to the target device according to the predetermined first transmission period, the method may further include:

[0129] A usage record of the target device within a synchronization time period window is obtained, wherein the usage record includes the time when the target device is used, and the synchronization time period window includes a synchronization period and a preset period adjacent to the synchronization period.

[0130] The estimated usage time of the target device within the synchronization period is determined based on the usage record.

[0131] Calculate the time interval between the target time and the estimated time of use.

[0132] Calculate the time difference between the time interval and the air transmission time;

[0133] When the duration difference meets the preset conditions, a time period with the target time as the starting time and the duration difference as the duration is determined as the first transmission time period.

[0134] In the above embodiment, the synchronization time period window may include a time window determined from a preset time period. The time window may be composed of multiple time periods of equal length. The synchronization period may be the central period of the synchronization time period window. The target moment may be the current moment, and the expected usage moment of the target device within the synchronization period may be the predicted usage moment after the current moment and closest to the current moment. The preset condition may include that the duration difference is within a preset range. Exemplarily, the preset condition may include that the value of the duration difference is in the interval [a, b], a and b are positive numbers, and a is less than b. It is understandable that the value of the duration difference may be a value in seconds, a value in minutes, a value in hours, or a value in other units, which is not limited here. The values ​​of a and b may be adjusted according to different units of measurement. Exemplarily, when the unit of measurement is seconds, a may be 5 and b may be 30.

[0135] In one example, after calculating the time difference between the time interval and the idle transmission time, the method may further include: when the time difference is greater than b, determining the time period with the target time as the start time and the duration b as the first transmission time period. In this way, when the estimated transmission time is long, the time of a single transmission can be limited. In this way, the unavailable time of the device due to data transmission can be made not to exceed b, thereby reducing the risk of users being unable to use the device due to data transmission and improving user experience.

[0136] In one example, after calculating the time difference between the time interval and the idle transmission time, the method may also include: when the time difference is less than a, suspending the transmission of the first data to be synchronized, and after reaching the expected usage time, taking the current time as the target time, returning to determine the expected usage time of the target device in the synchronization period according to the usage record, until the time difference meets the preset conditions. In this way, when the estimated available transmission time is short, data transmission can be temporarily not performed. In this way, not only can the number of transmissions of the full amount of data be reduced, but also the risk of data transmission failure can be reduced, thereby improving the efficiency of data transmission.

[0137] In one embodiment, before obtaining the first usage record of the target device within the synchronization time period window, the method may further include:

[0138] A usage count set is obtained, where the usage count set includes usage counts of target devices corresponding to each of a plurality of time period windows within a target time period.

[0139] The time period window corresponding to the smallest usage count in the usage count set is determined as the synchronization time period window.

[0140] In the above implementation, the target time period may be a pre-selected historical time period. The time period may be composed of multiple time periods of equal length, and the time period window may be a window divided from the time period by means of a sliding window. For example, a time period may be one day, and a time period may be evenly divided into 24 intervals, recorded as intervals 0 to 23, each interval being 1 hour. The length of a sliding window may be 3 intervals, and the sliding step may be one interval. Exemplarily, the number of times the target device corresponding to each time period window is used may be calculated by the following formula 5.

[0141]

[0142] In Formula 5, i may represent the i-th time period. x may be a value of 1-24, (n x-1 +n x +n x+1 ) i It can represent the number of times the target device is used in the time period window consisting of the interval x-1 to x+1 during the i-th time period.

[0143] According to the above implementation, the time period window corresponding to the minimum number of times of use in the set of times of use can be determined as the synchronization time period window according to the number of times of use of the target device corresponding to each time period window. In this way, the time period window in which the user seldom uses the device can be determined as the synchronization time period window according to the user's historical behavior. In this way, data transmission is performed within the synchronization period corresponding to the synchronization time period window, which can reduce the risk of the user being unable to use the device due to data transmission, thereby improving the user experience.

[0144] In one embodiment, before transmitting the first to-be-synchronized data to the target device according to the predetermined first transmission period, the method may further include:

[0145] The park number to which the target device belongs and the synchronization time cycle window are obtained. The synchronization time cycle window includes a synchronization period and a preset period adjacent to the synchronization period.

[0146] Based on the preset key generation formula, the target key is generated according to the park number and the synchronization time period window.

[0147] The target key is used to perform multiple rounds of encryption on the first data to be synchronized.

[0148] Correspondingly, after receiving the data to be synchronized, the target device may decrypt the data to be synchronized.

[0149] The embodiments of the present application do not limit the encryption and decryption methods. Exemplarily, the encryption and decryption methods may include a symmetric encryption algorithm, such as an RC algorithm.

[0150] The following uses the RC algorithm as an example to illustrate the encryption and decryption process of the data to be synchronized.

[0151] Taking a time period of one day as an example, a time period can be evenly divided into 24 intervals, recorded as intervals 0 to 23, and each interval is 1 hour. Synchronous period x formatting takes the hour dimension conversion and extracts the previous hour and the next hour, integrating the park number Num 园 , the key generation formula is as follows:

[0152]

[0153] The remote management server can perform encryption operations and split the synchronized data to be encrypted into 4×4 matrices according to 128 bits. If the number of bits is less than 128, the encryption message syntax standard (PKCS#7) is used to fill the key. Take the first 16 bytes (128 bits) as the new encryption key

[0154] 128-bit new key It is also represented by a matrix with bytes as the unit. Each column of the matrix is ​​called a 32-bit word. Through the key scheduling function, the key matrix is ​​expanded into a sequence of 44 words W[0], W[1], ..., W

[43] . The first 4 elements of the sequence W[0], W[1], W[2], W[3] are the original keys, which are used for the initial key addition in the encryption operation. The following 40 words are divided into 10 groups, and each group of 4 words (128 bits) is used for the round key addition in 10 rounds of encryption operations. Each round of encryption operation undergoes byte substitution, row shift, column mixing and round key addition. The last round of iteration does not perform column mixing operations. In the second, fourth, sixth, eighth and tenth rounds, a bitwise inversion link is added to transform the encrypted information and obtain the ciphertext.

[0155] After the target device receives the data to be synchronized, it can perform the decryption operation. Specifically, the obtained ciphertext can be bit-inverted to obtain the inverted ciphertext matrix X. After 10 rounds of key addition, inverse byte substitution, reverse row shift, and reverse column mixing, all encrypted information is bit-inverted in the second, fourth, sixth, and tenth processes, and each time a part of the key matrix is ​​taken as the decryption information, and the plain text is decrypted.

[0156] In this way, the remote management server and the target device generate keys according to the time when the synchronization occurs, the device's park information, and other information. There is no need to transmit keys between the remote management server and the target device, reducing the risk of key leakage. In addition, according to the above encryption method, the key is used byte by byte during the encryption process, and the key is irregularly inverted, which increases the difficulty of decryption and further ensures the confidentiality of the data.

[0157] In one embodiment, after extracting the second data to be synchronized from the first data to be synchronized according to the data volume of the second data to be synchronized, the method may further include:

[0158] The third data to be synchronized is added to a preset transmission failure queue, where the third data to be synchronized includes the remaining data to be synchronized after the second data to be synchronized is extracted from the first data to be synchronized.

[0159] According to the above implementation, when data retransmission is required, the data that is not retransmitted can be added to the transmission failure queue, so that the situation of the data that is not successfully transmitted can be accurately monitored, reducing the risk of data leakage.

[0160] In one embodiment, after sending the second data to be synchronized to the target device, the method may further include:

[0161] A second interface transmission result of the second data to be synchronized is obtained.

[0162] The transmission times of the first data to be synchronized are increased by one.

[0163] When the second interface transmission result is used to characterize the failure of the second data to be synchronized, the second data to be synchronized is used as the new first data to be synchronized, and the second interface transmission result is used as the new first interface transmission result. When the first interface transmission result is used to characterize the failure of the first data to be synchronized, the target device is returned to obtain the minimum expected time range that can be transmitted, the transmission time for successful transmission, the idle transmission time, the timeout time for the failure of the first data to be synchronized, and the data volume of the first data to be synchronized, until the second data to be synchronized is successfully transmitted, or the number of transmissions of the first data to be synchronized reaches a preset number of times.

[0164] According to the above implementation, in the case of retransmission failure, data related to network conditions and device conditions can continue to be obtained, and the amount of data to be retransmitted can be adjusted accordingly. In this way, the flexibility and success rate of data retransmission can be improved.

[0165] In one embodiment, after the number of transmissions of the first data to be synchronized is increased by one, the method may further include:

[0166] When the number of transmissions of the first data to be synchronized reaches a preset number, the fourth data to be synchronized is extracted from the second data to be synchronized according to a preset minimum transmission data amount of the target device.

[0167] The fifth data to be synchronized is added to a preset transmission failure queue, where the fifth data to be synchronized includes the remaining data to be synchronized after the fourth data to be synchronized is extracted from the second data to be synchronized.

[0168] Sending fourth data to be synchronized to the target device.

[0169] According to the above implementation, when the number of retransmission data volume adjusted according to the network and device conditions reaches a certain value, retransmission can be performed directly according to the preset minimum transmission data volume of the target device. In this way, the number of retransmissions can be reduced and the retransmission time can be saved.

[0170] In one embodiment, after sending the fourth data to be synchronized to the target device, the method may further include:

[0171] A third interface transmission result of the fourth data to be synchronized is obtained.

[0172] When the third interface transmission result is used to indicate that the fourth data to be synchronized has failed in transmission, the fourth data to be synchronized and the device information of the target device are added to a preset transmission failure queue.

[0173] According to the device information of the target device, the sixth to-be-synchronized data successfully sent to the target device is acquired from a preset transmission success queue.

[0174] The sixth data to be synchronized is added to the transmission failure queue.

[0175] Delete the target device from the preset transferable device queue.

[0176] According to the above-mentioned implementation, in the case where retransmission fails according to the preset minimum transmission data amount of the target device, it can be considered that the target device has a fault and the data transmission operation cannot be performed smoothly. At this time, the retransmitted data and device information can be added to the transmission failure queue, and the data that has been successfully sent to the target device is also added to the transmission failure queue, and the target device is deleted from the preset transmittable device queue. In this way, in the case of a fault in the target device, data synchronization to the target device can be stopped, and the data transmitted to the target device can be marked as transmission failure data. In this way, the data transmitted to the target device can be transmitted to other devices in the transmittable device list, so that the data finally transmitted to the devices in the transmittable device list is the full amount of data. In this way, the risk of data leakage can be reduced.

[0177] In one embodiment, the method may further include: upon receiving a use request of the target device, removing the target device from a preset transmittable device queue; and adding the target device to the transmittable device queue after the removal time reaches a preset removal time. In this way, a certain usage time can be reserved when the target device may be used, thereby improving the user experience.

[0178] In one embodiment, after obtaining the first interface transmission result, the method may further include:

[0179] When the first interface transmission result is used to indicate that the first data to be synchronized is successfully transmitted, the network time taken by the target device to receive the first data to be synchronized and the device processing storage time are obtained.

[0180] The data volume of the seventh data to be synchronized is calculated based on the corresponding relationship between the predetermined second transmission period, the network time taken for the target device to receive the first data to be synchronized, the device processing storage time, the data volume of the first data to be synchronized and the data volume of the seventh data to be synchronized.

[0181] According to the data amount of the seventh data to be synchronized, the seventh data to be synchronized is extracted from a preset queue of data to be transmitted.

[0182] According to the second transmission period, seventh data to be synchronized is sent to the target device.

[0183] In the above implementation, the second transmission period has a similar meaning to the first transmission period, and its determination process may be similar to the determination process of the first transmission period, which is not elaborated herein.

[0184] In an example, based on the corresponding relationship between a predetermined second transmission period, the network time taken for the target device to receive the first data to be synchronized, the device processing storage time, the data volume of the first data to be synchronized and the data volume of the seventh data to be synchronized, the data volume of the seventh data to be synchronized can be calculated by the following formula 6-10.

[0185] T 总 =t 网 +t 库 ≤t 预 Formula 6

[0186] In Formula 6, T 总 It can be expressed as the total transmission time, t 库 It can represent the processing time of the first data to be synchronized on the target device. 网 It can represent the transmission time of the first data to be synchronized in the network. 预 It can represent the duration of the second transmission period.

[0187] t 库 =t 单条 *Num m’ Formula 7

[0188]

[0189] In formulas 7 and 8, t 单条 The time required to transmit a single piece of data, Num m’ Indicates the number of blocks of the first data to be synchronized.

[0190] Combining formulas 6-8, we can get the following formula 9.

[0191]

[0192] In Formula 9, num p It can represent the data amount of the seventh data to be synchronized.

[0193] Formula 9 can be transformed into Formula 10.

[0194]

[0195] Determine num using formula 10 p The maximum integer that can be obtained is used as the value of the data amount of the seventh data to be synchronized.

[0196] According to the above implementation, if the last round of data transmission is successful, the amount of data that can be transmitted by the target device in the next round of transmission can be dynamically adjusted according to the network conditions and data volume during the last round of data transmission, which is conducive to improving the efficiency and success rate of the next round of data transmission.

[0197] In one embodiment, according to the data volume of the first data to be synchronized, before extracting the first data to be synchronized from the preset data queue to be transmitted, the method may further include:

[0198] When the database to be transmitted includes the data to be transmitted and the queue of the data to be transmitted is not full, the data to be transmitted is extracted from the database to be transmitted and put into the queue of the data to be transmitted.

[0199] When the database to be transmitted does not include the data to be transmitted and the queue of data to be transmitted is not full, data is extracted from the preset transmission failure queue and put into the queue of data to be transmitted.

[0200] According to the above implementation, the data to be transmitted in the database to be transmitted can be transmitted first, and then the data in the transmission failure queue can be transmitted. In this way, the data to be synchronized that has not been successfully transmitted to the device can be effectively managed, reducing the risk of data leakage.

[0201] In one embodiment, according to the data volume of the first data to be synchronized, before reading the first data to be synchronized from the preset data queue to be transmitted, the method may further include:

[0202] When the database to be transmitted, the transmission failure queue and the data to be transmitted queue do not contain the data to be synchronized, an indication message is sent to the target device to instruct the target device to synchronize the received data to be synchronized with other devices in the preset transmittable device queue.

[0203] According to the above implementation, when the full data transmission is completed, the target device can be instructed to synchronize the received data to be synchronized to other devices in the preset transmittable device queue. The target device is any device in the transmittable device queue. Therefore, each device in the transmittable device queue can transmit the data to be synchronized received from the remote management server to each other, thereby completing the synchronization of the full data between the network devices.

[0204] In one embodiment, the indication information may be used to instruct the devices in the transmittable device queue to start the inter-device broadcast function, and broadcast and transmit all the data of this synchronization.

[0205] In one embodiment, the indication information may also include the processing volume corresponding to the target device. In a local area network, the consumption of inter-device communication can be ignored, and only the device processing information and storage time are considered. In this way, the processing volume corresponding to the target device can be calculated by formula 11.

[0206]

[0207] In formula 11, t 预 It can represent the duration of the next transmission period determined according to the transmission result of the last transmission of the to-be-synchronized data to the target device. The process of determining the next transmission period can be similar to the process of determining the first transmission period, and will not be described in detail here. 库 It can indicate the last time the data to be synchronized was transmitted to the target device, and the time when the data was processed by the device.

[0208] In one example, after receiving the indication information, the devices in the transmittable device queue can start the inter-device broadcast function and synchronize data in a certain order. For example, the transmittable device queue may include devices 1 to m. Device 1 first determines whether the device is currently in use. If device 1 is not in use, the transmission function of device 1 is started and the total amount of updated data M obtained in device 1 is transmitted. 1总 Specifically, when synchronizing to each device, the processing capacity Num of each device can be used. q设 Split the data into Quantity, each quantity is Num q设 , q is an integer from 2 to m. Then the data is synchronized to device q. After receiving the data, device q cannot put the data into the data updated this time. If device 1 is in use, the transmission is suspended. If it is not in use within 30s, the data transmission is resumed. The remaining devices 2 to m also synchronize and update data to other devices except themselves according to similar steps.

[0209] During the data synchronization between devices, the device receives the update data and then needs to perform the data storage operation. If the device receives a use request of the device while receiving the update data transmitted by other devices, it can suspend the storage operation after the update data is received, and continue the storage operation after the preset suspension time is reached. In this way, a certain amount of available time can be reserved in time for user use without interrupting data transmission, thereby improving the user experience. If the device receives a use request of the device while performing the storage operation, the storage processing time can be evaluated. If the storage processing time is less than the preset storage processing time threshold, the storage operation will continue. Otherwise, the storage operation will be suspended until the preset suspension time is reached, and then the storage operation will continue. In this way, if the storage time required is expected to be long, the storage operation can be suspended, so that the device can give priority to the use operation, thereby improving the user experience.

[0210] Based on the same inventive concept, an embodiment of the present application also provides an information processing device.

[0211] like Figure 2 As shown, the information processing device 200 may include a first acquisition module 201 , a first calculation module 202 , a first extraction module 203 and a sending module 204 .

[0212] The first acquisition module 201 is used to acquire a first interface transmission result, where the first interface transmission result is a transmission result of the remote management server transmitting the first data to be synchronized to the target device through the interface;

[0213] The first acquisition module 201 is further used to obtain, when the first interface transmission result is used to indicate that the first to-be-synchronized data transmission fails, the amount of data that can be transmitted within the minimum expected time range corresponding to the target device, the transmission time of successful transmission, the idle transmission time, the timeout time of failed transmission, and the total amount of data that failed to be transmitted;

[0214] A first calculation module 202, configured to calculate the amount of second data to be synchronized according to the amount of data that can be transmitted within the minimum expected time range, the transmission time of successful transmission, the idle transmission time, the timeout time of failed transmission, and the total amount of data that failed to be transmitted;

[0215] A first extraction module 203, configured to extract second data to be synchronized from the first data to be synchronized according to the amount of the second data to be synchronized;

[0216] The sending module 204 is used to send the second data to be synchronized to the target device.

[0217] The information processing device of the embodiment of the present application can obtain the transmission result of the first interface. The transmission result of the first interface is the transmission result of the remote management server transmitting the first data to be synchronized to the target device through the interface. In the case where the transmission result of the first interface is used to characterize the failure of the transmission of the first data to be synchronized, the amount of data that can be transmitted within the minimum expected time range corresponding to the target device, the transmission time of successful transmission, the idle transmission time, the timeout time of failed transmission, and the total amount of data that failed transmission are obtained. According to the amount of data that can be transmitted within the minimum expected time range, the transmission time of successful transmission, the idle transmission time, the timeout time of failed transmission, and the total amount of data that failed transmission, the amount of data of the second data to be synchronized is calculated. In this way, the amount of data to be retransmitted can be dynamically reduced according to the network situation and the device situation of the target device. Then, according to the amount of data of the second data to be synchronized, the second data to be synchronized is extracted from the first data to be synchronized, and the second data to be synchronized is sent to the target device. In this way, the data to be synchronized that failed to be transmitted is retransmitted according to the adjusted data amount, so that the amount of data to be retransmitted can adapt to the current network situation and device situation. In this way, not only can the data transmission rate be higher during retransmission, but also the success rate of data retransmission can be improved. This is helpful to improve the overall transmission efficiency of the full amount of data to be synchronized, thereby shortening the transmission time and shortening the time that the device cannot be used by the user, thereby improving the user experience.

[0218] In one embodiment, the first calculation module may be specifically used for:

[0219] The sorting weight is calculated based on the transmission time of successful transmission, the idle transmission time, and the timeout time of failed transmission.

[0220] Calculate the product of the sorting weight and the total amount of data that failed to be transferred.

[0221] The product is added to the amount of data that can be transmitted within the minimum expected time range to obtain the amount of second data to be synchronized.

[0222] In one embodiment, the apparatus may further include:

[0223] The second acquisition module is used to obtain the total amount of data successfully transmitted and the total duration of data transmission corresponding to the target device within a preset time period before obtaining the amount of data that can be transmitted within the minimum expected time range corresponding to the target device, the transmission time for successful transmission, the idle transmission time, the timeout time for transmission failure, and the total amount of data that failed to be transmitted, when the first interface transmission result is used to characterize the failure of the first data transmission to be synchronized.

[0224] The second calculation module is used to divide the total amount of successfully transmitted data by the total time of data transmission to obtain an average transmission rate of the target device.

[0225] The second calculation module is further used to calculate the product of the average transmission rate and the preset minimum estimated time to obtain the amount of data that can be transmitted within the minimum estimated time range.

[0226] In one embodiment, the apparatus may further include:

[0227] The third acquisition module is used to acquire the data volume of the first data to be synchronized before acquiring the transmission result of the first interface.

[0228] The second extraction module is used to extract the first data to be synchronized from a preset queue of data to be transmitted according to the data volume of the first data to be synchronized.

[0229] The transmission module is used to transmit the first to-be-synchronized data to the target device according to a predetermined first transmission period.

[0230] In one embodiment, the apparatus may further include:

[0231] The fourth acquisition module is used to obtain the usage record of the target device within the synchronization time period window before transmitting the first data to be synchronized to the target device according to the predetermined first transmission time period, the usage record including the time when the target device is used, and the synchronization time period window including the synchronization period and the preset time period adjacent to the synchronization period.

[0232] The first determination module is used to determine the expected usage time of the target device within the synchronization period according to the usage record.

[0233] The third calculation module is used to calculate the time interval between the target time and the expected use time.

[0234] The third calculation module is also used to calculate the time difference between the time interval and the air transmission time.

[0235] The first determination module is further configured to determine, when the duration difference meets a preset condition, a time period with the target time as the starting time and the duration difference as the duration as the first transmission time period.

[0236] In one embodiment, the apparatus may further include:

[0237] The fifth acquisition module is used to acquire a usage count set before acquiring the first usage record of the target device in the synchronization time period window. The usage count set includes the usage counts of the target device corresponding to each of the multiple time period windows in the target time period.

[0238] The second determining module is used to determine the time period window corresponding to the minimum usage count in the usage count set as the synchronization time period window.

[0239] In one embodiment, the apparatus may further include:

[0240] The sixth acquisition module is used to obtain the park number and synchronization time period window to which the target device belongs before transmitting the first data to be synchronized to the target device according to the predetermined first transmission time period, and the synchronization time period window includes the synchronization time period and a preset time period adjacent to the synchronization time period.

[0241] The generation module is used to generate a target key based on a preset key generation formula, according to the park number and the synchronization time period window.

[0242] The encryption module is used to perform multiple rounds of encryption on the first data to be synchronized using the target key.

[0243] In one embodiment, the apparatus may further include:

[0244] The first adding module is used to add the third data to be synchronized to the preset transmission failure queue after extracting the second data to be synchronized from the first data to be synchronized according to the data volume of the second data to be synchronized, and the third data to be synchronized includes the remaining data to be synchronized after extracting the second data to be synchronized from the first data to be synchronized.

[0245] In one embodiment, the apparatus may further include:

[0246] The seventh acquisition module is used to acquire the second interface transmission result of the second data to be synchronized after sending the second data to be synchronized to the target device.

[0247] The processing module is used to increase the number of transmission times of the first data to be synchronized by one.

[0248] A return module is used to, when the second interface transmission result is used to characterize the failure of the second data to be synchronized, use the second data to be synchronized as the new first data to be synchronized, and use the second interface transmission result as the new first interface transmission result, and return to, when the first interface transmission result is used to characterize the failure of the first data to be synchronized, obtain the amount of data that can be transmitted within the minimum expected time range corresponding to the target device, the transmission time for successful transmission, the idle transmission time, the timeout time for the failure of the first data to be synchronized, and the amount of data of the first data to be synchronized, until the second data to be synchronized is transmitted successfully, or the number of transmissions of the first data to be synchronized reaches a preset number.

[0249] In one embodiment, the apparatus may further include:

[0250] The third extraction module is used to extract the fourth data to be synchronized from the second data to be synchronized according to the preset minimum transmission data amount of the target device after the transmission number of the first data to be synchronized is increased by one and when the transmission number of the first data to be synchronized reaches a preset number.

[0251] The second adding module is used to add the fifth data to be synchronized to the preset transmission failure queue, wherein the fifth data to be synchronized includes the remaining data to be synchronized after the fourth data to be synchronized is extracted from the second data to be synchronized. The fourth data to be synchronized is sent to the target device.

[0252] In one embodiment, the apparatus may further include:

[0253] An eighth acquisition module is used to acquire a third interface transmission result of the fourth data to be synchronized after sending the fourth data to be synchronized to the target device.

[0254] The third adding module is used to add the fourth data to be synchronized and the device information of the target device to a preset transmission failure queue when the third interface transmission result is used to indicate that the transmission of the fourth data to be synchronized has failed.

[0255] The eighth acquisition module is further used to acquire, according to the device information of the target device, the sixth to-be-synchronized data successfully sent to the target device from a preset transmission success queue.

[0256] The third adding module is further used to add the sixth data to be synchronized to the transmission failure queue.

[0257] The deletion module is used to delete the target device from the preset transmittable device queue.

[0258] In one embodiment, the apparatus may further include:

[0259] The ninth acquisition module is used to obtain the network time taken by the target device to receive the first data to be synchronized and the device processing storage time after obtaining the first interface transmission result, when the first interface transmission result is used to indicate that the first data to be synchronized is successfully transmitted.

[0260] The fourth calculation module is used to calculate the data volume of the seventh data to be synchronized based on the corresponding relationship between the predetermined second transmission time period, the network time required for the target device to receive the first data to be synchronized, the device processing storage time, the data volume of the first data to be synchronized and the data volume of the seventh data to be synchronized.

[0261] The fourth extraction module is used to extract the seventh data to be synchronized from the preset queue of data to be transmitted according to the data amount of the seventh data to be synchronized.

[0262] The sending module is further used to send seventh data to be synchronized to the target device according to the second transmission period.

[0263] In one embodiment, the apparatus may further include:

[0264] The fifth extraction module is used to extract the data to be transmitted from the database to be transmitted and put it into the queue of data to be transmitted before extracting the first data to be synchronized from the preset queue of data to be transmitted according to the data volume of the first data to be synchronized. If the database to be transmitted includes the data to be transmitted and the queue of data to be transmitted is not full, the data to be transmitted is extracted from the database to be transmitted and put into the queue of data to be transmitted.

[0265] The fifth extraction module is also used to extract data from the preset transmission failure queue and put it into the data queue to be transmitted before extracting the first data to be synchronized from the preset data queue to be transmitted based on the data volume of the first data to be synchronized, when the data to be transmitted is not included in the database to be transmitted and the data queue to be transmitted is not full.

[0266] In one embodiment, the sending module may also be used to:

[0267] Based on the data volume of the first data to be synchronized, before reading the first data to be synchronized from the preset data queue to be transmitted, when the database to be transmitted, the transmission failure queue and the data queue to be transmitted do not contain the data to be synchronized, an indication message is sent to the target device to instruct the target device to synchronize the received data to be synchronized with other devices in the preset transmittable device queue.

[0268] The information processing device provided in the embodiment of the present application can realize Figure 1 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0269] Figure 3 A schematic diagram of the hardware structure of an information processing device provided in an embodiment of the present application is shown.

[0270] The information processing device may include a processor 301 and a memory 302 storing computer program instructions.

[0271] Specifically, the processor 301 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0272] The memory 302 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 302 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 302 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 302 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 302 is a non-volatile solid-state memory.

[0273] The memory may include read-only memory (ROM), random access memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical or other physical / tangible memory storage devices. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.

[0274] The processor 301 implements any one of the information processing methods in the above embodiments by reading and executing computer program instructions stored in the memory 302 .

[0275] As an example, the information processing device may further include a communication interface 303 and a bus 310. Figure 3 As shown, the processor 301, the memory 302, and the communication interface 303 are connected via a bus 310 and communicate with each other.

[0276] The communication interface 303 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0277] Bus 310 includes hardware, software or both, and the parts of online data flow billing equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-end bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 310 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the present application considers any suitable bus or interconnection.

[0278] The information processing device can execute the information processing method in the embodiment of the present application, thereby realizing the combination Figure 1 and Figure 2 Described information processing method and device.

[0279] In addition, in combination with the information processing method in the above embodiments, the embodiments of the present application may provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the information processing methods in the above embodiments is implemented.

[0280] In addition, in combination with the information processing method in the above embodiments, an embodiment of the present application provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes any one of the information processing methods in the above embodiments.

[0281] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0282] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0283] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0284] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0285] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. An information processing method, characterized in that: include: Acquire a first interface transmission result, where the first interface transmission result is a transmission result of the remote management server transmitting the first data to be synchronized to the target device through the interface; When the first interface transmission result is used to characterize the failure of the first data to be synchronized, obtaining the amount of data that can be transmitted within the minimum expected time range corresponding to the target device, the transmission time of successful transmission, the idle transmission time, the timeout time of failed transmission, and the total amount of data that failed to be transmitted; Calculate the amount of second data to be synchronized according to the amount of data that can be transmitted within the minimum expected time range, the transmission time of successful transmission, the idle transmission time, the timeout time of failed transmission, and the total amount of data that failed to be transmitted; extracting second data to be synchronized from the first data to be synchronized according to the data volume of the second data to be synchronized; The second data to be synchronized is sent to the target device.

2. The method according to claim 1, characterized in that Calculating the amount of second data to be synchronized according to the amount of data that can be transmitted within the minimum expected time range, the transmission time of successful transmission, the idle transmission time, the timeout time of failed transmission, and the total amount of data that failed to be transmitted, including: Calculate the sorting weight according to the transmission time of the successful transmission, the idle transmission time and the timeout time of the failed transmission; Calculating the product of the sorting weight and the total amount of data that failed to be transmitted; The product is added to the amount of data that can be transmitted within the minimum expected time range to obtain the amount of the second data to be synchronized.

3. The method according to claim 1, characterized in that Before obtaining the amount of data that can be transmitted within the minimum expected time range corresponding to the target device, the transmission time of successful transmission, the idle transmission time, the timeout time of failed transmission, and the total amount of data that failed to be transmitted, when the first interface transmission result is used to characterize the failure of the first data to be synchronized transmission, the method further includes: Obtaining the total amount of data successfully transmitted and the total duration of data transmission corresponding to the target device within a preset time period; Dividing the total amount of successfully transmitted data by the total duration of the data transmission to obtain an average transmission rate of the target device; The product of the average transmission rate and the preset minimum expected time is calculated to obtain the amount of data that can be transmitted within the minimum expected time range.

4. The method according to claim 1, characterized in that: Before obtaining the first interface transmission result, the method further includes: Obtaining the data volume of the first data to be synchronized; Extracting the first data to be synchronized from a preset data queue to be transmitted according to the data volume of the first data to be synchronized; The first to-be-synchronized data is transmitted to the target device according to a predetermined first transmission period.

5. The method according to claim 4, characterized in that Before transmitting the first to-be-synchronized data to the target device according to the predetermined first transmission period, the method further includes: Acquire a usage record of a target device within a synchronization time period window, wherein the usage record includes a time when the target device is used, and the synchronization time period window includes a synchronization period and a preset period adjacent to the synchronization period; Determining an estimated usage time of the target device within the synchronization period according to the usage record; Calculating the time interval between the target time and the estimated time of use; Calculate the time difference between the time interval and the idle transmission time; When the duration difference meets a preset condition, a time period with the target time as the starting time and the duration difference as the duration is determined as the first transmission time period.

6. The method according to claim 5, characterized in that Before acquiring the first usage record of the target device within the synchronization time period window, the method further includes: Acquire a usage count set, where the usage count set includes usage counts of target devices corresponding to each of a plurality of time period windows within a target time period; The time period window corresponding to the minimum usage count in the usage count set is determined as the synchronization time period window.

7. The method according to claim 4, characterized in that Before transmitting the first to-be-synchronized data to the target device according to the predetermined first transmission period, the method further includes: Obtaining the park number and the synchronization time period window to which the target device belongs, wherein the synchronization time period window includes a synchronization period and a preset period adjacent to the synchronization period; Based on a preset key generation formula, a target key is generated according to the park number and the synchronization time period window; The first data to be synchronized is encrypted in multiple rounds using the target key.

8. The method according to claim 1, characterized in that: After extracting the second data to be synchronized from the first data to be synchronized according to the data amount of the second data to be synchronized, the method further includes: The third data to be synchronized is added to a preset transmission failure queue, wherein the third data to be synchronized includes the remaining data to be synchronized after the second data to be synchronized is extracted from the first data to be synchronized.

9. The method according to claim 1, characterized in that: After sending the second data to be synchronized to the target device, the method further includes: Obtaining a second interface transmission result of second data to be synchronized; Increasing the number of transmissions of the first data to be synchronized by one; In the case where the second interface transmission result is used to characterize the failure of the second data to be synchronized, the second data to be synchronized is used as the new first data to be synchronized, and the second interface transmission result is used as the new first interface transmission result, and the result of the first interface transmission is returned to obtain the data amount that can be transmitted within the minimum expected time range corresponding to the target device, the transmission time for successful transmission, the idle transmission time, the timeout time for the failure of the first data to be synchronized, and the data amount of the first data to be synchronized, until the second data to be synchronized is transmitted successfully, or the number of transmissions of the first data to be synchronized reaches a preset number of times.

10. The method according to claim 9, characterized in that After increasing the number of transmissions of the first data to be synchronized by one, the method further includes: When the number of transmissions of the first data to be synchronized reaches a preset number, extracting fourth data to be synchronized from the second data to be synchronized according to a preset minimum transmission data amount of the target device; Adding fifth data to be synchronized to a preset transmission failure queue, the fifth data to be synchronized comprising remaining data to be synchronized after extracting the fourth data to be synchronized from the second data to be synchronized; and sending the fourth data to be synchronized to the target device.

11. The method according to claim 10, characterized in that After sending the fourth data to be synchronized to the target device, the method further includes: Obtaining a third interface transmission result of fourth data to be synchronized; In a case where the third interface transmission result is used to indicate that the fourth data to be synchronized has failed to be transmitted, adding the fourth data to be synchronized and the device information of the target device to a preset transmission failure queue; According to the device information of the target device, acquiring the sixth to-be-synchronized data successfully sent to the target device from a preset transmission success queue; Adding the sixth data to be synchronized to the transmission failure queue; The target device is deleted from a preset transmittable device queue.

12. The method according to any one of claims 1 to 11, characterized in that After obtaining the first interface transmission result, the method further includes: When the first interface transmission result is used to indicate that the first data to be synchronized is transmitted successfully, obtaining the network time taken by the target device to receive the first data to be synchronized and the device processing storage time; Calculate the data volume of the seventh data to be synchronized according to a corresponding relationship between a predetermined second transmission period, a network time taken by the target device to receive the first data to be synchronized, a device processing storage time, and a data volume of the first data to be synchronized and a data volume of the seventh data to be synchronized; Extracting the seventh data to be synchronized from a preset queue of data to be transmitted according to the amount of the seventh data to be synchronized; According to the second transmission period, the seventh data to be synchronized is sent to the target device.

13. The method according to claim 3, characterized in that Before extracting the first data to be synchronized from a preset data queue to be transmitted according to the data amount of the first data to be synchronized, the method further includes: When the database to be transmitted includes the data to be transmitted and the queue of the data to be transmitted is not full, extracting the data to be transmitted from the database to be transmitted and putting it into the queue of the data to be transmitted; When the database to be transmitted does not include the data to be transmitted and the queue of data to be transmitted is not full, data is extracted from a preset transmission failure queue and put into the queue of data to be transmitted.

14. The method according to claim 13, characterized in that According to the data volume of the first data to be synchronized, before reading the first data to be synchronized from the preset data queue to be transmitted, the method further includes: When the database to be transmitted, the transmission failure queue and the data to be transmitted queue do not contain data to be synchronized, indication information is sent to the target device to instruct the target device to synchronize the received data to be synchronized with other devices in the preset transmittable device queue.

15. An information processing device, characterized in that: include: An acquisition module, used for acquiring a first interface transmission result, where the first interface transmission result is a transmission result of the remote management server transmitting the first data to be synchronized to the target device through the interface; The acquisition module is further used to acquire, when the first interface transmission result is used to indicate that the first data to be synchronized fails to be transmitted, the amount of data that can be transmitted within the minimum expected time range corresponding to the target device, the transmission time of successful transmission, the idle transmission time, the timeout time of failed transmission, and the total amount of data that failed to be transmitted; a calculation module, configured to calculate the amount of second data to be synchronized according to the amount of data that can be transmitted within the minimum estimated time range, the transmission time of successful transmission, the idle transmission time, the timeout time of failed transmission, and the total amount of data that failed to be transmitted; An extraction module, configured to extract second data to be synchronized from the first data to be synchronized according to the data volume of the second data to be synchronized; A sending module is used to send the second data to be synchronized to the target device.

16. An electronic device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the information processing method according to any one of claims 1 to 14 is implemented.

17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the information processing method according to any one of claims 1 to 14 is implemented.

18. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the information processing method according to any one of claims 1 to 14.

Citation Information

Patent Citations

  • Method and device for transmitting data faster under large flow

    CN109309729A

  • Data synchronization method of edge device and system thereof

    CN113194156A

  • Redundant data sending method and device, storage medium and electronic equipment

    CN118540015A

  • Midway failure data processing method and device for mass data

    CN118826968A

  • Advanced retry mechanism for transmitting large datasets

    US20180131470A1