Configurable multi-task monitoring data acquisition system and method

By designing a configured multi-task monitoring data acquisition system, the problem of multi-task, multi-type, and multi-frequency data acquisition in reservoir dam safety monitoring is solved, automated collection and efficient management are realized, and data acquisition capabilities of dam safety monitoring are improved. .

CN119396547APending Publication Date: 2025-02-07NORTHWEST ENGINEERING CORPORATION LIMITED
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411390691.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-08
Publication Date
2025-02-07

AI Technical Summary

Technical Problem

The prior art is difficult to achieve automatic collection of multi-tasking, multi-type, and multi-frequency monitoring data of multiple sensor equipment and measurement robots in the safety monitoring of reservoir dams, resulting in low data acquisition efficiency and complex management.

Method used

A configurable multi-task monitoring data acquisition system is designed, including a control management end and a data acquisition server end. The control management end is used for device management, timing task configuration and equipment allocation. The data acquisition server is responsible for task scheduling, execution and log management. It uses Quartz timing task technology and Modbus RTU protocol and other technologies to realize data acquisition.

Benefits of technology

It has realized the automated collection of reservoir dam safety monitoring data, improved data collection efficiency and management convenience, adapted to the needs of a variety of equipment and tasks, and significantly improved the data collection capabilities of dam safety monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119396547A_ABST
    Figure CN119396547A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of computer software and data acquisition, and discloses a configurable multi-task monitoring data acquisition system and method.The system comprises a control management end and a data acquisition server, and the control management end is used for achieving equipment management, timed task configuration management and timed task distribution equipment; and the data acquisition server side is used for realizing scheduling service management, execution and timed task log viewing of monitoring data acquisition tasks. According to the method, a Quartz timed task technology and a network Socket technology are used to remotely control data acquisition of the serial device through an Xbox control box. The method and the system can provide a design thought of a method and a system for automatic collection of monitoring data, can generate objective economic benefits and social benefits, and have wide application prospects and development space.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of computer software and data acquisition, and particularly relates to a configurable multi-task monitoring data acquisition system and method. Background Art

[0002] There are about 100,000 reservoirs in my country. Reservoirs are important facilities for flood prevention and disaster reduction, water supply and agricultural irrigation. They can intercept flood peaks during the flood season and save water resources for water supply, power generation and ecological protection during the non-flood season. They are the infrastructure for water conservancy and water disaster removal. However, reservoir dam safety monitoring is an important part of ensuring the safety of reservoir dams. In terms of safety monitoring, there are a large number of sensor equipment and measurement robots (automatic total stations) for monitoring data collection. Due to the large number of sensors, wide types and different collection frequencies, a system and method that can realize configurable multi-task automatic collection of monitoring data is particularly important and urgent for dam safety monitoring data collection. Summary of the invention

[0003] The purpose of the present invention is to provide a configurable multi-task monitoring data acquisition system and method. The present invention provides a design idea for a system and method for automatic acquisition of monitoring data, can produce objective economic and social benefits, and has broad application prospects and development space.

[0004] The technical solution adopted by the present invention is a configurable multi-task monitoring data acquisition system, including a control management end and a data acquisition service end, wherein:

[0005] The control management end is used to implement device management, scheduled task configuration management, and scheduled task allocation equipment;

[0006] The data collection server is used to implement the scheduling service management, execution and scheduled task log viewing of monitoring data collection tasks;

[0007] The control management end includes a device management module, a scheduled task configuration management module, and a scheduled task allocation device module. The device management module is used to implement device information addition, device information editing, device information query, and device information deletion; the scheduled task configuration management module is used to create scheduled tasks, edit scheduled tasks, query scheduled tasks, and delete scheduled tasks; the scheduled task allocation device module is used to bind the corresponding device to a task, and the scheduled task performs data collection and measurement tasks according to the various types of equipment assigned;

[0008] The data collection server includes a scheduled task scheduling service management module, a scheduled task execution module and a scheduled task log module. The scheduled task scheduling service management module is used to realize the start, scheduling and stop of task scheduling, synchronize the scheduled task information in the database with the scheduled task data in the task scheduling pool, and monitor abnormal tasks; the scheduled task execution module is used to realize all task information in the task scheduling pool, the scheduling execution of tasks, and the display of output information of the tasks being executed; the scheduled task log module is used to query the scheduling service and the running log of the scheduled task.

[0009] Furthermore, the main attributes of the device information of the device management module include device type, belonging measurement point, device number, communication IP, communication port, device address, management port, power control, 485 relay, control channel, remarks and configuration.

[0010] Furthermore, the main attributes of the scheduled task information of the scheduled task configuration management module include task name, task description, execution time expression, start time, end time, execution task description, task type, whether delay is allowed, and whether it is enabled.

[0011] Furthermore, the main attributes of the associated devices of the scheduled task allocation device module include selecting to add devices, selecting point groups, modes, and sorting.

[0012] Furthermore, the implementation principle steps of task scheduling start, schedule and stop include:

[0013] The first step is to initialize Quartz's StdSchedulerFactory and IScheduler, use the properties configuration file to construct StdSchedulerFactory, and the StdSchedulerFactory factory generates the task scheduler Scheduler;

[0014] The second step is to use the business logic class to obtain the data set whose Enable_Flag is True in the T_Task table, loop the data set, initialize IJobDetail and ITrigger respectively according to the properties of T_Task, and the task scheduler calls the ScheduleJob method with IJobDetail and ITrigger as parameters to schedule;

[0015] In the third step, the task scheduler calls the Start method to start the task. After starting, the Scheduler schedules each task on time and triggers the execution of the corresponding interface class.

[0016] The task scheduling configuration section displays whether the Scheduler is started or shut down; click the Pause button to call PauseAll to pause all tasks; click the Resume button to call the ResumeAll method to resume all paused tasks; the Reinitialize button is used to reinitialize all tasks. After clicking it, the Scheduler calls the PauseAll and Shutdown methods to pause the task, and calls TaskSchedule_Init to reinitialize the enabled tasks in the T_Task table of the database.

[0017] Furthermore, the implementation principle of synchronizing scheduled task information and scheduled task data in the task scheduling pool is as follows: create a Timer, execute it regularly to obtain the changed scheduled task data set from the T_Task_Change data table in the database, and loop through the data set to update the corresponding scheduled tasks in the Scheduler, so as to achieve data synchronization between the tasks in the database and the data in the task scheduling pool.

[0018] Furthermore, the implementation principle of monitoring abnormal tasks is: create a Timer, perform regular execution to traverse and monitor all planned tasks, and recover tasks with abnormal Error and Blocked status to ensure the normal operation of the service.

[0019] Furthermore, the principle of realizing the display of all task information in the task scheduling pool, the scheduling and execution of tasks, and the output information of the tasks being executed is as follows:

[0020] Query all tasks in the task schedule through the timer task timing, and display them in a table according to the job name, job identifier, job execution type, job map data, whether the job is persistent, whether the job data is carried after execution, whether concurrent execution is not allowed, and recoverability.

[0021] When the task scheduling triggers the execution of the plan, it enters the corresponding code class that implements the IJob interface, traverses the sensor devices corresponding to the task, and each device has a corresponding method for collecting data: if the device communication type is RS485, the specific implementation is to create a Socket communication object according to the device's communication IP and port number, organize the byte stream to be written by the Socket according to the Modbus RTU protocol, write the data stream and send it to the serial port server, the serial port server receives the data and converts it into a serial RS485 signal to the device, the device receives the signal and executes it according to the Modbus RTU protocol, and then returns the data to the serial port server according to the Modbus RTU protocol, the serial port server then converts the RS485 signal into a byte stream and returns it to the Socket, and parses the collected data according to the Modbus RTU protocol; if the device is an RS232 measurement robot, use the communication library written according to the GeoCom ASCII protocol, call the corresponding function in the communication library to communicate with the measurement robot, control the measurement robot to start, aim, search for targets, measure, obtain distance and angle measurement data, and shut down; the data collected and measured by each device will be stored in the T_Data_S data table of the database for subsequent query;

[0022] During the task execution, various information will be output. Error and exception information will be displayed in the panel text box in the exception warning area; normal warning and error information will be output in the area of ​​all logs; the information of the task being executed will be displayed in the area of ​​the executing task panel in the lower left corner.

[0023] Furthermore, the attribute information contained in the scheduled task log module includes recording time, log level, record title, and record content. The operation and maintenance personnel can filter and query according to the conditions to understand the execution status of the scheduled task.

[0024] A configurable multi-task monitoring data collection method comprises the following steps:

[0025] S1, at the control management end, complete the settings of various monitoring tasks required for dam safety monitoring in the scheduled task configuration management module, complete the equipment settings of various monitoring tasks required in the equipment management module, bind the corresponding equipment to a task in the scheduled task allocation equipment module, and the scheduled task performs data collection and measurement tasks according to the assigned various equipment controls;

[0026] S2, uses Quartz scheduled task technology to schedule tasks on the data collection server and configures multiple tasks to run in parallel;

[0027] S3, when each task is triggered to run, a socket is generated to connect to the Xbox control box and send network data packet instructions;

[0028] S4, the Xbox control box converts the received network data packet into a serial port data packet and sends it to the monitoring sensor serial device to perform the environmental quantity data collection task or the measurement robot to perform the measurement task;

[0029] S5, the monitoring sensor serial device and the measuring robot return the monitoring data packet to the Xbox control box in the form of a serial port data packet;

[0030] S6, the Xbox control box converts the data packet into a network data packet and returns it to the Socket object of the given task scheduling service management module for parsing and storage.

[0031] The beneficial effects of the present invention are: providing a design idea of ​​a system and method for automatic collection of monitoring data, which can produce objective economic and social benefits and has broad application prospects and development space. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 This is a schematic diagram of the device management function module of the control management terminal of the present invention;

[0033] Figure 2 A schematic diagram of a timing task configuration management function module of a control management terminal of the present invention;

[0034] Figure 3 The timing task allocation device function module intention of the control management end of the present invention;

[0035] Figure 4 Schematic diagram of the scheduled task scheduling service management function module of the data collection server of the present invention

[0036] Figure 5 This is a schematic diagram of a timed task execution function module of a data acquisition server of the present invention;

[0037] Figure 6 This is a schematic diagram of the scheduled task log function module of the data collection server of the present invention;

[0038] Figure 7 This is a flow chart of the monitoring data collection method of the present invention;

[0039] Figure 8 It is a partial principle schematic diagram of the monitoring data collection method of the present invention. DETAILED DESCRIPTION

[0040] In order to make the purpose, technical solution and advantages of the present invention clearer and more understandable, the technical solution of the present invention will be further described in detail below with reference to the accompanying drawings.

[0041] The invention discloses a configurable multi-task monitoring data acquisition system, which comprises a control management end and a data acquisition service end.

[0042] 1. Control and management end

[0043] The control management end is used to implement device management, scheduled task configuration management and scheduled task allocation device. Specifically, the control management end includes a device management module, a scheduled task configuration management module and a scheduled task allocation device module.

[0044] ⑴ Equipment management module

[0045] The equipment described in the present invention includes a measuring robot and various monitoring sensors, etc. The equipment management module is used to realize equipment information addition, equipment information editing, equipment information query and equipment information deletion. Figure 1 This is the main interface of the device management module. The main attributes of the designed device information include device type, measurement point, device number, communication IP, communication port, device address, management port, power control, 485 relay, control channel, remarks and configuration, among which:

[0046] [Device Type] is used to identify which type of device the device belongs to. Different devices have different communication protocols and interfaces. [Belonging measurement point] is used to describe the measurement point location of the device deployment. [Device number] is used to customize the device number. [Communication IP] is used to describe the IP address of the Xbox control box for communication or the IP address of the network direct connection device. [Communication port] indicates the port number accessed during communication. [Device address] indicates the address of the RS485 device. [Management port] indicates some ports that can be used to log in to the background management device. [Power control] indicates whether the power supply of the device is controlled by a relay. [485 relay] indicates which relay controls the power supply of the device. [Control channel] indicates which channel of a multi-channel control relay controls the power on and off of the device. [Remarks] is used to describe the device in detail. [Configuration] is used to store differentiated configuration information for some device types.

[0047] ⑵ Scheduled task configuration management module

[0048] The multi-tasks described in the present invention include equipment restart tasks, environmental quantity data collection tasks, environmental quantity tasks, and measurement tasks. The scheduled task configuration management module is used for scheduled task creation, scheduled task editing, scheduled task query, and scheduled task deletion. Figure 2 The main interface of the scheduled task configuration management module is designed. The main attributes of the scheduled task information include task name, task description, execution time expression, start time, end time, execution task description, task type, whether delay is allowed, and whether it is enabled, among which:

[0049] [Task Name] indicates the name description of the task; [Task Description] is used to describe the functional content of the task; [Specify Time Expression] is used to configure the Cron expression for execution time and frequency; [Start Time] is used to indicate the time when the task starts; [End Time] indicates the time when the task is finally stopped; [Execution Task Description] is used to describe the task execution time and frequency, which is automatically generated by the Cron expression; [Task Type] is used to describe the type of task to be executed, mainly including environmental quantity collection tasks and measurement tasks; [Whether Delay is Allowed] indicates whether a delayed task is allowed if the task fails during execution; [Whether Enabled] indicates whether the current task is enabled.

[0050] ⑶ Timing task allocation device module

[0051] The scheduled task allocation device module is used to bind the corresponding device to a task. The scheduled task performs data collection, measurement tasks, etc. according to the assigned various types of equipment control.

[0052] Figure 3 The main interface of the device allocation module for scheduled tasks. Select the task on the left side of the main interface, and select the corresponding device and other configuration information on the right side. You can also view the allocated devices and remove the allocated devices. The main properties of the designed associated devices include selecting to add devices, selecting point groups, modes, and sorting, among which:

[0053] [Select to add device] is a drop-down selection box that displays the devices that have been added and enabled; [Select point group] is an option required when selecting the device as a measuring robot, which indicates the measuring point group measured by the measuring robot; [Mode] represents the measurement mode of the measuring robot, with two mode options, one is disk 1, point by point measurement; switch disk 2, point by point measurement, and the other is point 1 disk 1 measurement then switch disk 2 measurement, point 2 disk 1 measurement then switch disk 2 measurement, and so on; [Sort] is used to sort the assigned devices. The task is to sort in ascending order according to the sorting string of the assigned devices and control the acquisition and measurement in sequence.

[0054] 2. Data Collection Server

[0055] The data collection server is used to implement the scheduling service management, execution and scheduled task log viewing of monitoring data collection tasks. Specifically, the data collection server includes a scheduled task scheduling service management module, a scheduled task execution module and a scheduled task log module.

[0056] ⑴ Scheduled task scheduling service management module

[0057] The scheduled task scheduling service management module realizes the start, scheduling and stop of task scheduling, realizes the synchronization of scheduled task information in the database and scheduled task data in the task scheduling pool, and monitors abnormal tasks.

[0058] The principle steps of task scheduling start, schedule and stop include:

[0059] The first step is to initialize Quartz's StdSchedulerFactory and IScheduler, use the properties configuration file to construct StdSchedulerFactory, and the StdSchedulerFactory factory generates the task scheduler Scheduler;

[0060] The second step is to use the business logic class to obtain the data set whose Enable_Flag is True in the T_Task table, loop the data set, initialize IJobDetail and ITrigger respectively according to the properties of T_Task, and the task scheduler calls the ScheduleJob method with IJobDetail and ITrigger as parameters to schedule;

[0061] In the third step, the task scheduler calls the Start method to start the task. After starting, the Scheduler schedules each task on time and triggers the execution of the corresponding interface class.

[0062] Figure 4 The task scheduling configuration section can display whether the Scheduler status is started or closed; click the Pause button to call PauseAll to pause all tasks; click the Resume button to call the ResumeAll method to resume all paused tasks; the Reinitialize button is used to reinitialize all tasks. After clicking it, the Scheduler will call the PauseAll and Shutdown methods to pause the task, and call TaskSchedule_Init to reinitialize the enabled tasks in the T_Task table of the database.

[0063] The principle of synchronizing scheduled task information with task data in the task scheduling pool is as follows:

[0064] Create a Timer to periodically execute the task data set that has changed from the T_Task_Change data table in the database, and then loop through the data set to update the corresponding scheduled tasks in the Scheduler, so as to synchronize the data between the tasks in the database and the task scheduling pool.

[0065] The implementation principle of the abnormal monitoring task is:

[0066] Create a Timer to perform scheduled execution and traversal monitoring of all scheduled tasks, and recover tasks with abnormal Error and Blocked status to ensure the normal operation of the service.

[0067] ⑵ Scheduled task execution module

[0068] The scheduled task execution module realizes all task information in the task scheduling pool, the scheduling and execution of tasks, and the output information display of the tasks being executed. Figure 5 It is the UI display interface of the scheduled task execution module. The specific implementation principle is as follows:

[0069] All tasks in the task scheduling plan are queried through the timer's task timing, and are displayed in a table according to the job name, job identifier, job execution type, job map data, whether the job is persistent, whether the job data is carried after execution, whether concurrent execution is not allowed, and recoverability.

[0070] When the task scheduling triggers the execution of the plan, it enters the corresponding code class that implements the IJob interface, traverses the sensor devices corresponding to the task, and each device has a corresponding method for collecting data: If the device communication type is RS485, the specific implementation is to create a Socket communication object based on the device's communication IP and port number, organize the byte stream to be written by the Socket according to the Modbus RTU protocol, write the data stream and send it to the serial port server, the serial port server receives the data and converts it into a serial RS485 signal to the device, the device receives the signal and executes it according to the Modbus RTU protocol, and then returns the data to the serial port server according to the Modbus RTU protocol, the serial port server then converts the RS485 signal into a byte stream and returns it to the Socket, according to the Modbus The RTU protocol parses the collected data (wind speed, rainfall, temperature, humidity, air pressure, etc.); if the device is an RS232 measuring robot, use the communication library written according to the GeoCom ASCII protocol to call the corresponding functions in the communication library to communicate with the measuring robot, control the measuring robot to start up, aim, search for targets, measure, obtain distance and angle measurement data, and shut down; the data collected and measured by each device will be stored in the T_Data_S data table of the database for subsequent query.

[0071] During the task execution, various information will be output. Error and exception information will be displayed in the panel text box in the exception warning area; normal warning and error information will be output in the area of ​​all logs; the information of the task being executed will be displayed in the area of ​​the executing task panel in the lower left corner.

[0072] ⑶ Scheduled task log module

[0073] The scheduled task log module is mainly used to query the operation logs of scheduling services and scheduled tasks.

[0074] Figure 6 This is the main interface of the scheduled task log module, which contains the attribute information such as recording time, log level, record title, and record content. Operation and maintenance personnel can filter and query according to the conditions to understand the execution status of scheduled tasks.

[0075] A configurable multi-task monitoring data collection method, such as Figure 7 As shown, the following steps are included:

[0076] S1. At the control management end, complete the settings of various monitoring tasks required for dam safety monitoring in the scheduled task configuration management module, complete the equipment settings of various monitoring tasks required in the equipment management module, bind the corresponding equipment to a task in the scheduled task allocation equipment module, and the scheduled task performs data collection, measurement tasks, etc. according to the assigned various equipment controls.

[0077] S2, uses Quartz scheduled task technology to schedule tasks on the data collection server and configures multiple tasks to run in parallel.

[0078] S3, such as Figure 8 As shown, when each task is triggered to run, a Socket socket is generated to connect to the Xbox control box and send network data packet instructions.

[0079] S4, the Xbox control box converts the received network data packet into a serial port data packet (RS485, RS232) and sends it to the monitoring sensor serial device to perform the environmental quantity data collection task or the measurement robot to perform the measurement task.

[0080] S5, the monitoring sensor serial device and the measuring robot return the monitored data packets to the Xbox control box in the form of serial port data packets.

[0081] S6, the Xbox control box converts the data packet into a network data packet and returns it to the Socket object of the given task scheduling service management module for parsing and storage.

[0082] The contents not described in detail in this specification belong to the prior art known to those skilled in the art.

Claims

1. A configurable multi-task monitoring data acquisition system, characterized in that: It includes the control management end and the data collection service end, including: The control management end is used to implement device management, scheduled task configuration management, and scheduled task allocation equipment; The data collection server is used to implement the scheduling service management, execution and scheduled task log viewing of monitoring data collection tasks; The control management end includes a device management module, a scheduled task configuration management module, and a scheduled task allocation device module. The device management module is used to implement device information addition, device information editing, device information query, and device information deletion; the scheduled task configuration management module is used to create scheduled tasks, edit scheduled tasks, query scheduled tasks, and delete scheduled tasks; the scheduled task allocation device module is used to bind the corresponding device to a task, and the scheduled task performs data collection and measurement tasks according to the various types of equipment assigned; The data collection server includes a scheduled task scheduling service management module, a scheduled task execution module and a scheduled task log module. The scheduled task scheduling service management module is used to realize the start, scheduling and stop of task scheduling, synchronize the scheduled task information in the database with the scheduled task data in the task scheduling pool, and monitor abnormal tasks; the scheduled task execution module is used to realize all task information in the task scheduling pool, the scheduling execution of tasks, and the display of output information of the tasks being executed; the scheduled task log module is used to query the scheduling service and the running log of the scheduled task.

2. The configurable multi-task monitoring data acquisition system according to claim 1, characterized in that: The main attributes of the device information in the device management module include device type, measurement point, device number, communication IP, communication port, device address, management port, power control, 485 relay, control channel, remarks and configuration.

3. The configurable multi-task monitoring data acquisition system according to claim 1, characterized in that: The main attributes of the scheduled task information of the scheduled task configuration management module include task name, task description, execution time expression, start time, end time, execution task description, task type, whether delay is allowed, and whether it is enabled.

4. The configurable multi-task monitoring data acquisition system according to claim 1, characterized in that: The main properties of the associated devices in the scheduled task allocation device module include selecting to add devices, selecting point groups, modes, and sorting.

5. The configurable multi-task monitoring data acquisition system according to claim 1, characterized in that: The implementation principles and steps of task scheduling start, schedule and stop include: The first step is to initialize Quartz's StdSchedulerFactory and IScheduler, use the properties configuration file to construct StdSchedulerFactory, and the StdSchedulerFactory factory generates the task scheduler Scheduler; The second step is to use the business logic class to obtain the data set whose Enable_Flag is True in the T_Task table, loop the data set, initialize IJobDetail and ITrigger respectively according to the properties of T_Task, and the task scheduler calls the ScheduleJob method with IJobDetail and ITrigger as parameters to schedule; In the third step, the task scheduler calls the Start method to start the task. After starting, the Scheduler schedules each task on time and triggers the execution of the corresponding interface class. The task scheduling configuration section displays whether the Scheduler is started or shut down; click the Pause button to call PauseAll to pause all tasks; click the Resume button to call the ResumeAll method to resume all paused tasks; the Reinitialize button is used to reinitialize all tasks. After clicking it, the Scheduler calls the PauseAll and Shutdown methods to pause the task, and calls TaskSchedule_Init to reinitialize the enabled tasks in the T_Task table of the database.

6. The configurable multi-task monitoring data acquisition system according to claim 1, characterized in that: The implementation principle of synchronizing scheduled task information and scheduled task data in the task scheduling pool is as follows: create a Timer, execute it regularly to obtain the changed scheduled task data set from the T_Task_Change data table in the database, and traverse the data set in a loop to update the corresponding scheduled tasks in the Scheduler, so as to achieve data synchronization between the tasks in the database and the data in the task scheduling pool.

7. The configurable multi-task monitoring data acquisition system according to claim 1, characterized in that: The implementation principle of monitoring abnormal tasks is: create a Timer, perform regular execution to traverse and monitor all scheduled tasks, and recover tasks with abnormal Error and Blocked status to ensure the normal operation of the service.

8. The configurable multi-task monitoring data acquisition system according to claim 1, characterized in that: The principle of realizing all task information in the task scheduling pool, scheduling execution of tasks, and displaying output information of the tasks being executed is as follows: Query all tasks in the task schedule through the timer task timing, and display them in a table according to the job name, job identifier, job execution type, job map data, whether the job is persistent, whether the job data is carried after execution, whether concurrent execution is not allowed, and recoverability. When the task scheduling triggers the execution of the plan, it enters the corresponding code class that implements the IJob interface, traverses the sensor devices corresponding to the task, and each device has a corresponding method for collecting data: If the device communication type is RS485, the specific implementation is to create a Socket communication object according to the device's communication IP and port number, organize the byte stream to be written by the Socket according to the Modbus RTU protocol, write the data stream and send it to the serial port server, the serial port server receives the data and converts it into a serial RS485 signal to the device, the device receives the signal and executes it according to the Modbus RTU protocol, and then returns the data to the serial port server according to the Modbus RTU protocol, the serial port server then converts the RS485 signal into a byte stream and returns it to the Socket, and parses the collected data according to the Modbus RTU protocol; If the device is a RS232 measurement robot, use the communication library written according to the GeoCom ASCII protocol to call the corresponding functions in the communication library to communicate with the measurement robot, control the measurement robot to start, aim, search for targets, measure, obtain distance and angle measurement data, and shut down; the data collected and measured by each device will be stored in the T_Data_S data table of the database for subsequent query; Various information will be output during task execution, and error and exception information will be displayed in the panel text box in the exception warning area; Normal warning and error messages will all be output in the whole log area; Information about the tasks being executed is displayed in the area of ​​the executing tasks panel in the lower left corner.

9. The configurable multi-task monitoring data acquisition system according to claim 1, characterized in that: The attribute information contained in the scheduled task log module includes recording time, log level, record title, and record content. Operation and maintenance personnel can filter and query according to the conditions to understand the execution status of scheduled tasks.

10. A configurable multi-task monitoring data collection method, characterized in that: The method is implemented by the configurable multi-task monitoring data acquisition system according to any one of claims 1 to 9, comprising the following steps: S1, at the control management end, complete the settings of various monitoring tasks required for dam safety monitoring in the scheduled task configuration management module, complete the equipment settings of various monitoring tasks required in the equipment management module, bind the corresponding equipment to a task in the scheduled task allocation equipment module, and the scheduled task performs data collection and measurement tasks according to the assigned various equipment controls; S2, uses Quartz scheduled task technology to schedule tasks on the data collection server and configures multiple tasks to run in parallel; S3, when each task is triggered to run, a socket is generated to connect to the Xbox control box and send network data packet instructions; S4, the Xbox control box converts the received network data packet into a serial port data packet and sends it to the monitoring sensor serial device to perform the environmental quantity data collection task or the measurement robot to perform the measurement task; S5, the monitoring sensor serial device and the measuring robot return the monitoring data packet to the Xbox control box in the form of a serial port data packet; S6, the Xbox control box converts the data packet into a network data packet and returns it to the Socket object of the given task scheduling service management module for parsing and storage.