A method, system, device, and storage medium for data collection and upload

Through the control logic and preset acquisition strategy that is uploaded after collection, the data acquisition and upload process is optimized, and the problems of poor real-time and low accuracy in the existing technology are solved, and data acquisition and upload with high accuracy and high real-time are achieved.

CN115567592BActive Publication Date: 2025-06-17GUANGZHOU CANLEAD ENERGY TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210994572.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-18
Publication Date
2025-06-17
Estimated Expiration
2042-08-18

AI Technical Summary

Technical Problem

In the prior art, there are problems such as poor real-time data and low data accuracy during data acquisition and uploading.

Method used

After receiving the data acquisition instructions, the control logic that is uploaded after the acquisition is completed, and each device is subjected to orderly and time-limited data acquisition and upload operations according to the preset acquisition strategy.

Benefits of technology

It alleviates data deviations when uploading a large amount of data, improves the speed of data collection and upload, and improves the real-time and accuracy of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115567592B_ABST
    Figure CN115567592B_ABST
Patent Text Reader

Abstract

The present application discloses a method, system, device and storage medium for data acquisition and upload. The method includes: receiving a data acquisition instruction; the data acquisition instruction includes the device number for which data needs to be acquired; the data acquisition instruction further includes a first acquisition period, and the first acquisition period is used to represent the total time for acquiring and uploading data of all devices; according to a preset acquisition strategy and the data acquisition instruction, data acquisition and data upload operations are sequentially performed on each device; the data acquisition and data upload operations are used to represent the operation of uploading the acquired data to the server after data acquisition of a single device is completed. The system includes an acquisition instruction module and an acquisition and upload module. Through the above method, it is beneficial to improve the speed of data acquisition and upload, and improve the real-time performance and accuracy of data. This method can be widely applied to the field of data processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing, and in particular, to a method, system, device, and storage medium for data acquisition and upload. Background Art

[0002] The complexity of the system is gradually increasing, and the amount of data that needs to be collected and uploaded is increasing day by day. In the data acquisition and upload process in related technologies, the data processing method of first collecting and then uniformly uploading is usually adopted, which is prone to problems such as poor data real-time performance and low data accuracy. Summary of the Invention

[0003] The purpose of this application is to solve at least to some extent one of the technical problems existing in the prior art.

[0004] To this end, the purpose of the present invention is to provide a method, system, device, and storage medium for data acquisition and upload with high accuracy and high real-time performance.

[0005] In order to achieve the above technical purpose, the technical solutions adopted in the embodiments of this application include:

[0006] On the one hand, the embodiments of this application provide a method for data acquisition and upload, including the following steps:

[0007] The method for data acquisition and upload in the embodiments of this application includes: receiving a data acquisition instruction; the data acquisition instruction includes the device number for which data needs to be acquired; the data acquisition instruction further includes a first acquisition period, and the first acquisition period is used to represent the total time for acquiring and uploading data for all devices; according to a preset acquisition strategy and the data acquisition instruction, sequentially perform data acquisition and data upload operations on each device; wherein, the preset acquisition strategy includes the acquisition and upload order of the devices and the acquisition period of each device, and the data acquisition and data upload operations are used to represent the operation of uploading the data to the server after the data of a single device is acquired. The above method, the operation of uploading the data to the server after the data of a single device is acquired, is beneficial to alleviating the data deviation that occurs when a large amount of data is uploaded, is beneficial to improving the speed of data acquisition and upload, and improving the real-time performance and accuracy of the data.

[0008] In addition, according to the method for data acquisition and upload in the above embodiments of this application, the following additional technical features may also be provided:

[0009] Further, in the method for data acquisition and upload in the embodiments of this application, the step of sequentially performing data acquisition and data upload operations on each device according to the preset acquisition strategy and the data acquisition instruction includes:

[0010] Determine a second collection period according to the first collection period and the number of devices; the second collection period is used to represent the total time for collecting and uploading data of a single device;

[0011] Determine a first collection number according to the number of data collection points included in a single device and the number of data collection points per single collection; the first collection number is used to represent the number of times of collecting and uploading data of a single device; the number of data collection points per single collection is used to represent the number of data collection points during a single data collection and data upload operation;

[0012] Determine a third collection period according to the second collection period and the first collection number; the third collection period is used to represent the time for a single data collection and upload operation of a single device;

[0013] Perform data collection and data upload operations on each device in sequence according to the third collection period.

[0014] Further, in an embodiment of the present application, the preset collection strategy includes a preset collection priority, and the preset collection priority is used to represent the order of data collection and upload of devices. The step of performing data collection and data upload operations on each device in sequence according to the third collection period includes:

[0015] Receive the preset collection priority set by the target device;

[0016] Perform data collection and data upload operations on each device in sequence according to the third collection period and in accordance with the preset collection priority.

[0017] Further, in an embodiment of the present application, the step of performing data collection and data upload operations on each device in sequence according to the preset collection strategy and the data collection instruction includes the following steps:

[0018] Determine a second collection number for each device in sequence according to the number of data collection points per single collection; the number of data collection points per single collection is used to represent the number of data collection points during a single data collection and data upload operation;

[0019] Determine a third collection number according to the second collection number of each device; the third collection number is used to represent the number of collection and upload times required for data collection and upload operations on all devices;

[0020] Determine a fourth collection period according to the first collection period and the third collection number; the fourth collection period is used to represent the time used for each data collection and upload;

[0021] Perform data collection and data upload operations on each device in sequence according to the fourth collection period.

[0022] Further, in an embodiment of the present application, the step of sequentially determining the second collection times of each device according to the number of data collection points per single collection includes:

[0023] Calculate the estimated collection times, where the estimated collection times is the quotient of the number of data collection points included in the current device and the number of data collection points per single collection;

[0024] If the estimated collection times is an integer, determine that the second collection times is equal to the estimated collection times;

[0025] If the estimated collection times is a non-integer, determine the value obtained by rounding up the estimated collection times plus one as the second collection times.

[0026] Further, in an embodiment of the present application, the step of sequentially performing data collection and data upload operations on each device includes:

[0027] Perform data collection on a single device to obtain pre-collected data;

[0028] After integrating and processing the pre-collected data, perform a data upload operation.

[0029] Further, in an embodiment of the present application, the method further includes:

[0030] Receive the first collection period set by the target device; wherein, the first collection period is greater than the preset collection period, and the preset collection period is used to represent the time taken for collecting and uploading data of all devices.

[0031] On the other hand, an embodiment of the present application provides a data collection and upload system, including:

[0032] A collection instruction module, configured to receive a data collection instruction; the data collection instruction includes the device number for which data collection is required; the data collection instruction further includes a first collection period, and the first collection period is used to represent the total time taken for collecting and uploading data of all devices;

[0033] A collection and upload module, configured to sequentially perform data collection and data upload operations on each device according to a preset collection strategy and the data collection instruction; wherein, the preset collection strategy includes the collection and upload order of devices and the collection period of each device, and the data collection and data upload operations are used to represent the operation of uploading data to the server after collecting data for a single device.

[0034] On the other hand, an embodiment of the present application provides a data collection and upload device, including:

[0035] At least one processor;

[0036] At least one memory for storing at least one program;

[0037] When the at least one program is executed by the at least one processor, the at least one processor implements any of the above data acquisition and upload methods.

[0038] On the other hand, an embodiment of the present application provides a storage medium storing a program executable by a processor. The program executable by the processor, when executed by the processor, is used to implement any of the above data acquisition and upload methods.

[0039] In the embodiment of the present application, the operation of uploading data to the server immediately after a single device finishes collecting data is beneficial to alleviating data deviation that occurs when a large amount of data is uploaded, is beneficial to improving the speed of data acquisition and upload, and improving the real-time performance and accuracy of data. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following introduces the accompanying drawings related to the technical solutions in the embodiments of the present application or the prior art. It should be understood that the accompanying drawings below are only for conveniently and clearly presenting some embodiments of the technical solutions in the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative efforts.

[0041] Figure 1 It is a schematic flowchart of an embodiment of the data acquisition and upload method provided by the present application;

[0042] Figure 2 It is a schematic flowchart of another embodiment of the data acquisition and upload method provided by the present application;

[0043] Figure 3 It is a schematic structural diagram of an embodiment of the data acquisition and upload system provided by the present application;

[0044] Figure 4 It is a schematic structural diagram of an embodiment of the data acquisition and upload device provided by the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0045] Embodiments of the present application will be described in detail below. Examples of the embodiments are shown in the accompanying drawings, where the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application and should not be construed as a limitation of the present application. For the step numbers in the following embodiments, they are only set for the convenience of explanation and no limitation is imposed on the order between the steps. The execution order of each step in the embodiments can be adaptively adjusted according to the understanding of those skilled in the art.

[0046] In the existing data acquisition process, the acquisition method of first collecting and then uniformly uploading is usually adopted. This method is prone to problems such as poor data real-time performance and low data accuracy. Through the control logic of uploading immediately after collection after receiving the acquisition instruction, this solution can achieve the orderly and rapid uploading of data, improve the uploading speed and accuracy, and is beneficial to improving the real-time performance of data.

[0047] The method and system for data acquisition and uploading according to the embodiments of the present application will be described in detail below with reference to the accompanying drawings. First, the method for data acquisition and uploading according to the embodiments of the present application will be described with reference to the accompanying drawings.

[0048] Referring to Figure 1 , in the embodiments of the present application, a method for data acquisition and uploading is provided. The method for data acquisition and uploading in the embodiments of the present application can be applied to a terminal, a server, or software running on a terminal or a server, etc. The terminal can be a tablet computer, a notebook computer, a desktop computer, etc., but is not limited thereto. The server can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The application environment of the present application can be a hospital. Exemplarily, a certain hospital project has 10 devices, including a fresh air unit, an exhaust fan unit, etc. Each device provides 1000 acquisition points, and the acquisition points can be temperature, humidity, air volume, air pressure, etc. monitored by the device. The target device can set the upload period, and the gateway needs to collect all the data within the set upload period and upload it to the server. Those skilled in the art can understand that the above implementation environment is an exemplary example, and the method for data acquisition and uploading provided by the present application can be used for various projects. During the use process, the platform sets the acquisition period, and other parameters are automatically identified and generated through the method provided by the present application to complete the data acquisition and uploading operations. The method for data acquisition and uploading in the embodiments of the present application mainly includes the following steps:

[0049] S110: Receive a data acquisition instruction; the data acquisition instruction includes the device number for which data needs to be acquired; the data acquisition instruction further includes a first acquisition period, which is used to represent the total time for acquiring and uploading data of all devices;

[0050] In this step, when data needs to be acquired, the target device can issue a data acquisition instruction. In some possible implementation manners, the data acquisition instruction may include the device number for which data needs to be acquired, that is, the range of devices for which data needs to be acquired. The data acquisition instruction further includes a first acquisition period, which is used to represent the total time for acquiring and uploading data of all devices, that is, the data acquisition time expected by the user. The system provided in this application completes the data acquisition and upload operations of the selected devices within the data acquisition time expected by the user.

[0051] In some possible implementation manners, the device number / device range and the first acquisition period can be set according to actual requirements.

[0052] S120: According to the preset acquisition strategy and the data acquisition instruction, perform data acquisition and data upload operations on each device in sequence; wherein, the preset acquisition strategy includes the acquisition and upload order of the devices and the acquisition period of each device, and the data acquisition and data upload operations are used to represent the operation of uploading the data to the server after the data of a single device is acquired.

[0053] In this step, according to the preset acquisition strategy and the data acquisition instruction, perform data acquisition and data upload operations on each device in sequence. The preset acquisition strategy may include the acquisition and upload order of the devices and the acquisition period of each device; according to the acquisition and upload order of the devices, determine the order of data acquisition and upload operations when performing acquisition operations on the devices; according to the acquisition period of each device, perform data acquisition and upload operations on each device in an orderly manner and within a limited time. In some possible implementation manners, the preset acquisition strategy may give the acquisition and upload order of the devices and the acquisition period of each device according to the data acquisition instruction, so that the system performs data acquisition and upload operations on the selected devices according to the preset acquisition strategy.

[0054] In an embodiment provided by this application, uploading the data to the server immediately after the data of a single device is acquired is beneficial to alleviating data deviation when a large amount of data is uploaded, beneficial to improving the speed of data acquisition and upload, and improving the timeliness and accuracy of the data.

[0055] Optionally, in an embodiment of this application, the performing data acquisition and data upload operations on each device in sequence according to the preset acquisition strategy and the data acquisition instruction includes:

[0056] Determine a second collection period according to the first collection period and the number of devices; the second collection period is used to represent the total time for collecting and uploading data of a single device.

[0057] Determine a first collection number according to the number of data collection points included in a single device and the number of data collection points per single collection; the first collection number is used to represent the number of times of collecting and uploading data for a single device; the number of data collection points per single collection is used to represent the number of data collection points during a single data collection and data upload operation.

[0058] Determine a third collection period according to the second collection period and the first collection number; the third collection period is used to represent the time for a single data collection and upload operation for a single device.

[0059] Perform data collection and data upload operations on each device in sequence according to the third collection period.

[0060] In this step, for each selected device, if the number of data collection points included in each device is the same, that is, the time required for each device to perform data collection and upload is the same. For this situation, the first collection period can be evenly distributed to each device to obtain the collection time required for each device, that is, the second collection period, which is the quotient of the first collection period and the number of devices. According to the number of data collection points included in a single device and the number of data collection points per single collection, the number of collections required for a single device, that is, the first collection number, is the quotient of the number of data collection points included in a single device and the number of data collection points per single collection. In some possible implementation manners, the number of data collection points per single collection is determined by a combination of various factors such as the data collection interface of the system, the busy degree of the system, the capacity of the system, or the needs of the user.

[0061] In some possible implementation manners, a time-sharing collection strategy can be adopted. Specifically, first determine the time period for time-sharing collection; then, according to the total number of devices, the number of collection points of each device, and the upload period set by the user, determine the time period for time-sharing collection. Exemplarily, if the set upload period is one minute and the number of devices to be collected is 10, then one minute needs to be divided into 10 parts, and the time for each part is the collection time for one device, that is, the collection time for one device is 6 seconds. Within these 6 seconds, according to the number of collection points that each device needs to collect, such as 1000, and the number of collection points that can be provided each time is 100 collection points, then each device needs to be collected 10 times, that is, collected once every 600 milliseconds. Those skilled in the art can understand that the above belongs to an exemplary example, and those skilled in the art can set parameters such as the first collection period according to needs.

[0062] In some possible embodiments, a segmented acquisition strategy may be adopted. Specifically, for a device with a relatively large number of acquisition points, segmented acquisition can be used. Exemplarily, if the number of acquisition points per acquisition is 100, and a device has 1000 acquisition points, then the acquisition needs to be carried out in ten times. This is beneficial to improving the resource utilization rate of the system and at the same time improving the real-time performance of the data.

[0063] Optionally, in an embodiment of the present application, the preset acquisition strategy includes a preset acquisition priority, which is used to characterize the data acquisition and upload order of the device. The data acquisition and data upload operations are sequentially performed on each device according to the third acquisition period, including:

[0064] Receiving the preset acquisition priority set by the target device;

[0065] According to the third acquisition period, data acquisition and data upload operations are sequentially performed on each device according to the preset acquisition priority.

[0066] Optionally, in an embodiment of the present application, the data acquisition and data upload operations are sequentially performed on each device according to the preset acquisition strategy and the data acquisition instruction, including the following steps:

[0067] According to the number of single-point data acquisitions, the second acquisition times of each device are sequentially determined; the number of single-point data acquisitions is used to characterize the number of data acquisitions during a single data acquisition and data upload operation;

[0068] According to the second acquisition times of each device, the third acquisition times are determined; the third acquisition times are used to characterize the number of acquisition and upload times required for data acquisition and upload operations on all devices;

[0069] According to the first acquisition period and the third acquisition times, a fourth acquisition period is determined; the fourth acquisition period is used to characterize the time used for each data acquisition and upload;

[0070] According to the fourth acquisition period, data acquisition and data upload operations are sequentially performed on each device.

[0071] In this step, for the case where the number of device acquisition points included in each device is different, at this time, the acquisition time required for each device is also different. Therefore, for the first acquisition cycle, first allocate according to the number of points, and then, based on the allocation result, calculate the acquisition cycle assigned to each device. Specifically, the second acquisition count is the quotient of the number of acquisition points of the current device and the number of single-data acquisition points. The third acquisition count is the sum of several second acquisition counts. The fourth acquisition cycle is the sum of the first acquisition cycle and the third acquisition count. In some possible implementation manners, the method further includes determining, in sequence according to the second acquisition count and the fourth acquisition cycle of each device, a fifth acquisition cycle of each device, and the fifth acquisition cycle is the time required for each device to complete data acquisition and upload operations. According to the fifth acquisition cycle, data acquisition and data upload operations are performed on each device in sequence. For the case where the number of acquisition points included in the device is different, through the above method, the first acquisition cycle is flexibly allocated, the acquisition efficiency is improved, and at the same time, it is also beneficial to improve the accuracy of the data.

[0072] Optionally, in an embodiment of the present application, the step of sequentially determining the second acquisition count of each device according to the number of single-data acquisition points includes:

[0073] Calculate the estimated acquisition count, where the estimated acquisition count is the quotient of the number of data acquisition points included in the current device and the number of single-data acquisition points;

[0074] If the estimated acquisition count is an integer, determine that the second acquisition count is equal to the estimated acquisition count;

[0075] If the estimated acquisition count is a non-integer, determine the value obtained by rounding up the estimated acquisition count plus one as the second acquisition count.

[0076] Optionally, in an embodiment of the present application, the step of sequentially performing data acquisition and data upload operations on each device includes:

[0077] Perform data acquisition on a single device to obtain pre-acquired data;

[0078] After integrating and processing the pre-acquired data, perform a data upload operation.

[0079] Optionally, in an embodiment of the present application, the method further includes: receiving the first acquisition cycle set by the target device; where the first acquisition cycle is greater than a preset acquisition cycle, and the preset acquisition cycle is used to represent the time used for data acquisition and upload of all devices.

[0080] In some possible embodiments, first, determine the maximum time for collecting a segment of data. The time period for time-sharing collection should be at least greater than this maximum collection time to ensure that the data can be completely collected. That is, the first collection cycle is greater than the preset collection cycle.

[0081] Referring to Figure 2 , in some possible embodiments, for a general gateway, the number of devices for data collection can reach 100, and the number of data points for each device can reach 1000. Therefore, this data volume is very large. If traditional methods of issuing, collecting, and uploading data all at once are used, it is time-consuming, unreliable, and the data cannot be obtained in real-time and up-to-date. Therefore, to solve the problem of big data collection, the adopted solution is time-sharing and segmented collection. The data processing part is responsible for data collection, integration, and upload. All devices will be arranged on the time axis according to the setting of user priorities. The overall process is shown in Figure 2 as shown.

[0082] In summary, the above method is beneficial to alleviating data deviation when uploading a large amount of data, beneficial to improving the speed of data collection and upload, and improving the real-time performance and accuracy of data.

[0083] Secondly, referring to the attached Figure 3 Describe a data collection and upload system according to an embodiment of the present application.

[0084] Figure 3 FIG. is a schematic structural diagram of a data collection and upload system according to an embodiment of the present application. The system specifically includes:

[0085] A collection instruction module 310, configured to receive a data collection instruction; the data collection instruction includes the device number for which data needs to be collected; the data collection instruction further includes a first collection cycle, and the first collection cycle is used to represent the total time for collecting and uploading data of all devices;

[0086] A collection and upload module 320, configured to perform data collection and data upload operations on each device in sequence according to a preset collection strategy and the data collection instruction; wherein, the preset collection strategy includes the collection and upload order of devices and the collection cycle of each device, and the data collection and data upload operations are used to represent the operation of uploading data to the server after collecting data for a single device.

[0087] It can be seen that the content in the above method embodiments is applicable to the system embodiments of the present application. The functions specifically implemented by the system embodiments of the present application are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those of the above method embodiments.

[0088] Referring to Figure 4, embodiments of the present application provide a data acquisition and upload device, including:

[0089] At least one processor 410;

[0090] At least one memory 420, configured to store at least one program;

[0091] When the at least one program is executed by the at least one processor 410, the at least one processor 410 is caused to implement the data acquisition and upload method.

[0092] Similarly, the content in the above method embodiments is applicable to the device embodiments of the present application. The functions specifically implemented by the device embodiments of the present application are the same as those in the above method embodiments, and the beneficial effects achieved are also the same as those in the above method embodiments.

[0093] Embodiments of the present application also provide a computer-readable storage medium, which stores a program executable by a processor 410. The program executable by the processor 410 is used to execute the above data acquisition and upload method when executed by the processor 410.

[0094] Similarly, the content in the above method embodiments is applicable to the storage medium embodiments of the present application. The functions specifically implemented by the storage medium embodiments of the present application are the same as those in the above method embodiments, and the beneficial effects achieved are also the same as those in the above method embodiments.

[0095] In some alternative embodiments, the functions / operations mentioned in the block diagram may not occur in the order mentioned in the operation diagram. For example, depending on the functions / operations involved, two consecutive blocks shown may actually be executed substantially simultaneously or the blocks can sometimes be executed in the reverse order. In addition, the embodiments presented and described in the flowcharts of the present application are provided by way of example for the purpose of providing a more comprehensive understanding of the technology. The disclosed method is not limited to the operations and logical flows presented herein. Alternative embodiments are contemplated, where the order of various operations is changed and sub-operations described as part of a larger operation are executed independently.

[0096] In addition, although the present application has been described in the context of functional modules, it should be understood that, unless otherwise stated to the contrary, one or more of the functions and / or features may be integrated in a single physical device and / or software module, or one or more functions and / or features may be implemented in separate physical devices or software modules. It should also be understood that a detailed discussion of the actual implementation of each module is not necessary for understanding the present application. Rather, considering the attributes, functions, and internal relationships of the various functional modules in the devices disclosed herein, the actual implementation of the modules will be understood within the ordinary skills of an engineer. Therefore, those skilled in the art can implement the present application as set forth in the claims without undue experimentation. It should also be understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present application, which is determined by the full scope of the appended claims and their equivalents.

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

[0098] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable programs for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by a program execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other systems that can retrieve and execute programs from the program execution system, apparatus, or device), or in conjunction with these program execution systems, apparatuses, or devices. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by or in conjunction with a program execution system, apparatus, or device.

[0099] More specific examples (nonexhaustive list) of computer-readable media include the following: an electrical connection (electronic device) having one or more wirings, a portable computer diskette (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable media can even be paper or other suitable media on which the program can be printed, as the program can be obtained electronically, for example, by optically scanning the paper or other media, followed by editing, interpretation, or otherwise processing it as appropriate, and then storing it in a computer memory.

[0100] It should be understood that various parts of the present application can be implemented by hardware, software, firmware, or a combination thereof. In the above-described embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable program execution system. For example, if implemented by hardware, as in another embodiment, any one or a combination of the following techniques well known in the art can be used: discrete logic circuits having logic gate circuits for implementing logical functions on data signals, application-specific integrated circuits having appropriate combinational logic gate circuits, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0101] In the above description of this specification, the descriptions referring to the terms "one embodiment / example", "another embodiment / example", or "certain embodiments / examples", etc., mean that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0102] Although the embodiments of the present application have been shown and described, those of ordinary skill in the art can understand that various changes, modifications, substitutions, and variations can be made to these embodiments without departing from the principles and spirit of the present application, and the scope of the present application is defined by the claims and their equivalents.

[0103] The above has specifically described the preferred embodiments of the present application, but the present application is not limited to the described embodiments. Those skilled in the art can also make various equivalent deformations or substitutions without departing from the spirit of the present application, and these equivalent deformations or substitutions are all included within the scope defined by the claims of the present application.

Claims

1. A method for data collection and upload, characterized in that, Including the following steps: Receiving a data acquisition instruction; the data acquisition instruction includes the device number for which data needs to be acquired; the data acquisition instruction further includes a first acquisition period, which is used to represent the total time for acquiring and uploading data for all devices, and the data acquisition instruction is issued by the target device; According to the preset acquisition strategy and the data acquisition instruction, sequentially performing data acquisition and data upload operations on each device; wherein, the preset acquisition strategy includes the acquisition and upload order of the devices and the acquisition period of each device, and the data acquisition and data upload operations are used to represent the operation of uploading the acquired data to the server after data acquisition for a single device; The step of sequentially performing data acquisition and data upload operations on each device according to the preset acquisition strategy and the data acquisition instruction includes the following steps: Sequentially determining the second acquisition times of each device according to the number of data points acquired at one time; the number of data points acquired at one time is used to represent the number of data points acquired during a single data acquisition and data upload operation; Determining the third acquisition times according to the second acquisition times of each device; the third acquisition times are used to represent the number of acquisition and upload times required for data acquisition and upload operations on all devices; Determining the fourth acquisition period according to the first acquisition period and the third acquisition times; the fourth acquisition period is used to represent the time used for each data acquisition and upload; Performing data acquisition and data upload operations on each device sequentially according to the fourth acquisition period.

2. The method for data collection and upload according to claim 1, characterized in that, The step of sequentially performing data acquisition and data upload operations on each device according to the preset acquisition strategy and the data acquisition instruction includes: Determining the second acquisition period according to the first acquisition period and the number of devices; the second acquisition period is used to represent the total time for acquiring and uploading data for a single device; Determining the first acquisition times according to the number of data points included in a single device and the number of data points acquired at one time; the first acquisition times are used to represent the number of acquisition and upload times for a single device; the number of data points acquired at one time is used to represent the number of data points acquired during a single data acquisition and data upload operation; Determining the third acquisition period according to the second acquisition period and the first acquisition times; the third acquisition period is used to represent the time for a single data acquisition and upload operation for a single device; Performing data acquisition and data upload operations on each device sequentially according to the third acquisition period.

3. The method for data collection and upload according to claim 2, characterized in that, The preset acquisition strategy includes a preset acquisition priority, which is used to represent the acquisition and upload order of the devices. The step of sequentially performing data acquisition and data upload operations on each device according to the third acquisition period includes: Receiving the preset acquisition priority set by the target device; Performing data acquisition and data upload operations on each device sequentially according to the third acquisition period and in accordance with the preset acquisition priority.

4. The method for data collection and upload according to claim 1, characterized in that, The step of sequentially determining the second acquisition times of each device according to the number of data points acquired at one time includes: Calculating the estimated acquisition times, where the estimated acquisition times are the quotient of the number of data points included in the current device and the number of data points acquired at one time; If the predicted number of acquisitions is an integer, determine that the second number of acquisitions is equal to the predicted number of acquisitions; If the predicted number of acquisitions is a non-integer, determine the value obtained by rounding up the predicted number of acquisitions plus one as the second number of acquisitions.

5. The method for data collection and upload according to claim 1, characterized in that, The sequentially performing data acquisition and data upload operations on each device includes: Performing data acquisition on a single device to obtain pre-acquired data; After integrating and processing the pre-acquired data, performing a data upload operation.

6. The method for data collection and upload according to claim 1, characterized in that, The method further includes: Receiving the first acquisition period set by the target device; wherein, the first acquisition period is greater than a preset acquisition period, and the preset acquisition period is used to characterize the time for acquiring and uploading data of all devices.

7. A system for data collection and upload, characterized in that, including: An acquisition instruction module, configured to receive a data acquisition instruction; the data acquisition instruction includes the device number for which data acquisition needs to be performed; the data acquisition instruction further includes a first acquisition period, and the first acquisition period is used to characterize the total time for acquiring and uploading data of all devices, and the data acquisition instruction is sent by the target device; An acquisition and upload module, configured to sequentially perform data acquisition and data upload operations on each device according to a preset acquisition strategy and the data acquisition instruction; wherein, the preset acquisition strategy includes the acquisition and upload order of the devices and the acquisition period of each device, and the data acquisition and data upload operations are used to characterize the operation of uploading the data to the server after acquiring the data of a single device; The acquisition and upload module is configured to: Sequentially determine the second number of acquisitions for each device according to the number of data points acquired in a single time; the number of data points acquired in a single time is used to characterize the number of data points acquired during a single data acquisition and data upload operation; Determine a third number of acquisitions according to the second number of acquisitions for each device; the third number of acquisitions is used to characterize the number of acquisition and upload times required for performing data acquisition and upload operations on all devices; Determine a fourth acquisition period according to the first acquisition period and the third number of acquisitions; the fourth acquisition period is used to characterize the time used for each data acquisition and upload; Sequentially perform data acquisition and data upload operations on each device according to the fourth acquisition period.

8. A data acquisition and upload device, characterized in that, including: At least one processor; At least one memory, configured to store at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the data acquisition and upload method according to any one of claims 1 to 6.

9. A computer-readable storage medium storing a program executable by a processor, characterized in that: The program executable by the processor, when executed by the processor, is used to implement the data acquisition and upload method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Monitoring processing method, device and system, computer equipment and storage medium

    CN113888826A

  • Data reporting method and device, equipment and storage medium

    CN114827038A