CN115866035A - Multithreading data high-speed pushing method, system, controller and storage medium - Google Patents

Multithreading data high-speed pushing method, system, controller and storage medium Download PDF

Info

Publication number
CN115866035A
CN115866035A CN202211519422.0A CN202211519422A CN115866035A CN 115866035 A CN115866035 A CN 115866035A CN 202211519422 A CN202211519422 A CN 202211519422A CN 115866035 A CN115866035 A CN 115866035A
Authority
CN
China
Prior art keywords
data
instruction
display interface
memory mapping
mapping layer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211519422.0A
Other languages
Chinese (zh)
Inventor
请求不公布姓名
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Shunshi Measurement and Control Equipment Co Ltd
Original Assignee
Guangdong Shunshi Measurement and Control Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Shunshi Measurement and Control Equipment Co Ltd filed Critical Guangdong Shunshi Measurement and Control Equipment Co Ltd
Priority to CN202211519422.0A priority Critical patent/CN115866035A/en
Publication of CN115866035A publication Critical patent/CN115866035A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a multithreading data high-speed pushing method, a multithreading data high-speed pushing system, a controller and a computer storage medium, wherein the method comprises the following steps: the method comprises the steps of receiving pushed data of external equipment through a plurality of equipment ports, generating a plurality of instruction structural bodies according to the pushed data, updating data of an equipment memory mapping layer according to the instruction structural bodies to generate updated data, asynchronously refreshing and displaying a UI (user interface) display interface according to the updated data by the equipment memory mapping layer, receiving a plurality of operation instructions through the UI display interface, asynchronously sending the operation instructions to the external equipment, and sending the operation instructions to the external equipment.

Description

Multithreading data high-speed pushing method, system, controller and storage medium
Technical Field
The application relates to the technical field of data pushing, in particular to a multithreading data high-speed pushing method, a multithreading data high-speed pushing system, a controller and a computer storage medium.
Background
In the prior art, a multi-sampling control upper computer needs to read the voltage and current of a battery; carrying out process step judgment, data judgment and flow judgment according to a preset process template; according to the set recording time, the voltage change rate and the current change rate, carrying out multithreading tasks such as battery key data recording and the like;
however, many sampling control upper computer software are mainly developed in a process-oriented mode at present, control, sampling and display are written in a cycle for active control, a concurrent service architecture is not designed, when one thousand or more and two thousand channels are collected in sampling butt joint of formation equipment, multithreading tasks cannot be effectively processed, the phenomena of high CPU occupancy rate, serious jamming of the multi-sampling control upper computer software, delayed display of the multi-sampling control upper computer software, easy response loss and the like are caused.
Disclosure of Invention
The embodiment of the application provides a multithreading data high-speed pushing method, a multithreading data high-speed pushing system, a controller and a computer storage medium, and at least, the multithreading data high-speed pushing system, the controller and the computer storage medium can guarantee that the scheme of the application can receive sampled data through a memory mapping layer concurrently, realize asynchronous passive display of the pushed data, receive a plurality of operating instructions through a UI display interface, and carry out asynchronous sending processing on the operating instructions, can effectively process multithreading tasks, reduce CPU occupancy rate, and can effectively solve the problems that the upper computer software is seriously jammed in multi-sampling control, and the upper computer software is delayed in multi-sampling control, easily loses response and the like when being applied to the upper computer in multi-sampling control.
In a first aspect, an embodiment of the present application provides a multithreading data high-speed push method, where the multithreading data high-speed push method is applied to a multithreading data high-speed push system, where the multithreading data high-speed push system includes multiple device ports, a device memory mapping layer, and a UI display interface, and the multithreading data high-speed push method includes:
receiving push data of an external device through a plurality of device ports;
generating a plurality of instruction structural bodies according to the push data, and updating data of the device memory mapping layer according to the instruction structural bodies to generate updated data;
the device memory mapping layer carries out asynchronous refreshing display processing on the UI display interface according to the updating data;
and receiving a plurality of operation instructions through the UI display interface, carrying out asynchronous sending processing on the operation instructions, and sending the operation instructions to the external equipment.
In some embodiments, the generating a plurality of instruction structures according to the pushed data, and performing data update processing on the device memory mapping layer according to the instruction structures includes:
generating a plurality of instruction structural bodies according to the push data;
the instruction structure bodies are subjected to allocation analysis processing, and the instruction structure bodies are sent to corresponding protocol processing modules respectively;
and the protocol processing module performs data updating processing on the equipment memory mapping layer according to the instruction structure body.
In some embodiments, the multithreading data high-speed push system further includes a database, where the database generates a plurality of instruction structures according to the push data, and updates data of the device memory mapping layer according to the instruction structures, and the system further includes:
and after the instruction structure body carries out data updating processing on the device memory mapping layer, updating the control data generated by the data updating processing to the database.
In some embodiments, the performing, according to the update data, asynchronous refresh display processing on the UI display interface in the device memory mapping layer includes:
a plurality of data acquisition points in the device memory mapping layer acquire the updated data and send the updated data to the UI display interface;
and the UI display interface performs display processing according to the updating data.
In some embodiments, the receiving, through the UI display interface, a plurality of operation instructions, performing asynchronous transmission processing on the plurality of operation instructions, and transmitting the plurality of operation instructions to a plurality of external devices includes:
receiving a plurality of operation instructions through the UI display interface;
packaging the operation instructions to obtain a plurality of instruction data packets;
and obtaining a data packet sending queue according to the instruction data packet, and sending the plurality of operation instructions to the plurality of external devices according to the data packet sending queue.
In some embodiments, after receiving a plurality of operation instructions through the UI display interface, performing asynchronous transmission processing on the plurality of operation instructions, and transmitting the plurality of operation instructions to a plurality of external devices, the method further includes:
under the condition that the operation instruction is sent to the external equipment, acquiring analysis data of the protocol processing module, and updating the analysis data to the equipment memory mapping layer;
or, when the operation instruction is not sent to the external device, displaying instruction sending failure information through the UI display interface.
In some embodiments, the method comprises:
obtaining a back packet updating queue according to a protocol processing module corresponding to the push data;
and obtaining a data packet sending queue according to the return packet updating queue and the instruction data packet.
In a second aspect, the embodiment of the present application provides a multi-thread data high-speed pushing system, where the multi-thread data high-speed pushing system includes multiple device ports, a device memory mapping layer, and a UI display interface,
the plurality of equipment ports are used for receiving push data of external equipment;
the device memory mapping layer is used for generating a plurality of instruction structural bodies according to the push data, updating data of the device memory mapping layer according to the instruction structural bodies, generating updating data, and asynchronously refreshing and displaying the UI display interface according to the updating data;
the UI display interface is used for receiving a plurality of operation instructions, carrying out asynchronous sending processing on the operation instructions and sending the operation instructions to the external equipment.
In a third aspect, an embodiment of the present application provides a controller, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor, when executing the computer program, implements the method for pushing and sending multithreaded data at a high speed as described in any one of the embodiments in the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, which stores computer-executable instructions for executing the method for pushing multithreading data at a high speed according to any one of the embodiments in the first aspect.
The application has at least the following beneficial effects: the multithreading data high-speed pushing method is applied to a multithreading data high-speed pushing system, the multithreading data high-speed pushing system comprises a plurality of equipment ports, an equipment memory mapping layer and a UI display interface, and the multithreading data high-speed pushing method comprises the following steps: the method comprises the steps that a plurality of device ports receive pushed data of external devices, a plurality of instruction structure bodies are generated according to the pushed data, data updating processing is carried out on a device memory mapping layer according to the instruction structure bodies, updating data is generated, the device memory mapping layer carries out asynchronous refreshing display processing on a UI display interface according to the updating data, a plurality of operation instructions are received through the UI display interface, the operation instructions are sent asynchronously, and the operation instructions are sent to the external devices.
Drawings
Fig. 1 is a flowchart of a method for pushing multi-thread data at a high speed according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating a method for pushing data at high speed in multiple threads according to another embodiment of the present application;
FIG. 3 is a flowchart illustrating a method for pushing multi-thread data at a high speed according to another embodiment of the present application;
FIG. 4 is a flowchart illustrating a method for pushing multi-thread data at a high speed according to another embodiment of the present application;
FIG. 5 is a flowchart illustrating a method for pushing data at high speed in multiple threads according to another embodiment of the present application;
FIG. 6 is a flowchart illustrating a method for pushing data at high speed in multiple threads according to another embodiment of the present application;
FIG. 7 is a flowchart illustrating a method for pushing data at high speed in multiple threads according to another embodiment of the present application;
fig. 8 is a schematic diagram of a data pushing architecture of a host computer according to another embodiment of the present application, which corresponds to a multi-thread data high-speed pushing system of the present application;
fig. 9 is a block diagram of a controller according to another embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In some embodiments, while functional block divisions are performed in system diagrams, with logical orders shown in the flowcharts, in some cases, the steps shown or described may be performed in an order different than the block divisions in the systems, or the flowcharts. The terms first, second and the like in the description and in the claims, and the accompanying drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Currently, in the prior art, a multi-sampling control upper computer needs to read the voltage and current of a battery; carrying out process step judgment, data judgment and flow judgment according to a preset process template; according to the set recording time, the voltage change rate and the current change rate, carrying out multithreading tasks such as battery key data recording and the like; however, many sampling control upper computer software are mainly developed in a process-oriented mode at present, control, sampling and display are written in a cycle for active control, a concurrent service architecture is not designed, when one thousand or more and two thousand channels are collected in sampling butt joint of formation equipment, multithreading tasks cannot be effectively processed, the phenomena of high CPU occupancy rate, serious jamming of the multi-sampling control upper computer software, delayed display of the multi-sampling control upper computer software, easy response loss and the like are caused.
In order to solve at least the above problems, the present application discloses a multithreading data high-speed push method, a multithreading data high-speed push system, a controller, and a computer storage medium, wherein the multithreading data high-speed push method is applied to the multithreading data high-speed push system, the multithreading data high-speed push system includes a plurality of device ports, a device memory mapping layer, and a UI display interface, and the multithreading data high-speed push method includes: the method comprises the steps of receiving pushed data of external equipment through a plurality of equipment ports, generating a plurality of instruction structural bodies according to the pushed data, updating data of an equipment memory mapping layer according to the instruction structural bodies to generate updated data, asynchronously refreshing and displaying the UI display interface according to the updated data by the equipment memory mapping layer, receiving a plurality of operation instructions through the UI display interface, asynchronously sending the operation instructions to a plurality of external equipment, and sending the operation instructions to the external equipment.
The embodiments of the present application will be further described with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a flowchart of a multi-thread data high-speed pushing method proposed in an embodiment of a first aspect of the present application, in some embodiments, the multi-thread data high-speed pushing method is applied to a multi-thread data high-speed pushing system, where the multi-thread data high-speed pushing system includes a coordinating party and a plurality of data parties, and the multi-thread data high-speed pushing method includes, but is not limited to, the following steps S110, S120, S140, and S150;
step S110, receiving push data of external equipment through a plurality of equipment ports;
step S120, generating a plurality of instruction structural bodies according to the push data, and performing data updating processing on the device memory mapping layer according to the instruction structural bodies to generate updating data;
step S130, the device memory mapping layer carries out asynchronous refreshing display processing on the UI display interface according to the updating data;
step S140, receiving a plurality of operation instructions through the UI display interface, performing asynchronous transmission processing on the plurality of operation instructions, and transmitting the plurality of operation instructions to the plurality of external devices.
In some embodiments, the present application receives push data of an external device through a plurality of device ports, where the present application supports a plurality of external devices, the external devices include but are not limited to devices such as an upper computer server and a central computer, the present application connects a port of a network TCP to each external device, and the ports of the network TCP are a plurality of device ports.
In some embodiments, the pushed data of the external device is received through multiple device ports, including receiving the pushed data of the external device through a Socket concurrency mode, and implementing concurrent receiving, analyzing and processing of all device data.
In some embodiments, the application is applied to a sampling control upper computer, and the sampling control upper computer can execute voltage and current processing, logic thread execution and data thread execution read to a battery in a working scene of an upper needle bed, further asynchronously process a plurality of push messages or operation instructions, effectively process a multi-thread task, reduce the occupancy rate of a CPU (Central processing Unit), and effectively solve the problems of serious jamming of multi-sampling control upper computer software, delayed display of the multi-sampling control upper computer software, easy response loss and the like, wherein the logic thread comprises the steps of judging, data judging and flow judging according to a preset process template; and the data thread comprises the step of recording the key data of the battery according to the set recording time, the voltage change rate and the current change rate.
In some embodiments, after receiving push data of an external device through a Socket concurrent mode, a plurality of device ports convert the push data into a structural body according to an instruction protocol corresponding to the push data, and passively push the structural body to each protocol processing module to implement asynchronous response display, so as to implement multi-library bit multi-channel asynchronous passive display, where passive push is a callback mechanism in a program, and when a certain work or step scenario is triggered, a controller of the application automatically calls the function interface to push data to a callback function registration class, specifically, after the controller acquires the push data of the external device received by the plurality of device ports, it determines that the current scenario is an asynchronous passive display scenario, and at this time, the passive push function interface is automatically called, so that the instruction structural body passively pushes the push data to each protocol processing module, and further performs data update processing on a device memory mapping layer, and generates update data to perform subsequent steps.
In some embodiments, a plurality of operation instructions are received through a UI display interface, asynchronous sending processing is performed on the operation instructions, and the operation instructions are sent to a plurality of external devices, wherein the operation of a user on the UI display interface such as a software interface and the like can be converted into the operation instructions, the operation instructions are packaged into instruction data packets and are placed in a data packet sending queue, synchronous waiting is not needed at the moment, the instruction data packets in the data packet sending queue can be asynchronously sent to the corresponding external devices, and if the instruction data packets are unsuccessfully sent, asynchronous response is performed to the UI display interface; if the instruction data packet is successfully sent, the system updates the instruction data packet to an equipment memory mapping layer after receiving the analysis of the instruction structure body or the protocol processing module, asynchronously responds to the UI display interface, corresponds to the concurrent receiving analysis and the asynchronous response display, and further realizes the asynchronous instruction sending, so that the instruction sending can not cause the influence on the generation and the refresh of the UI display interface and other services because of occupying a main thread.
In some embodiments, the application generates a plurality of instruction structures according to push data, performs data update processing on an equipment memory mapping layer according to the instruction structures to generate update data, performs asynchronous refresh display processing on a UI display interface according to the update data by the equipment memory mapping layer, receives a plurality of operation instructions through the UI display interface, performs asynchronous sending processing on the plurality of operation instructions, sends the plurality of operation instructions to a plurality of external devices, that is, performs concurrent receiving of sampling data through a mapping equipment data acquisition point to realize asynchronous passive display, and performs asynchronous sending of control instructions by designing instruction sending queue processing.
Referring to fig. 2, fig. 2 is a flowchart of a method for pushing multithread data at a high speed according to another embodiment of the present application, in some embodiments, a plurality of instruction structures are generated according to pushed data, and data updating processing is performed on a device memory mapping layer according to the instruction structures, including but not limited to the following steps S210, S220, and S230;
step S210, generating a plurality of instruction structures according to the push data;
step S220, the plurality of instruction structure bodies are distributed and analyzed, and the plurality of instruction structure bodies are respectively sent to the corresponding protocol processing modules;
in step S230, the protocol processing module performs data update processing on the device memory mapping layer according to the instruction structure.
In some embodiments, generating a plurality of instruction structures according to push data, assigning and analyzing the plurality of instruction structures, and sending the plurality of instruction structures to corresponding protocol processing modules respectively includes receiving push data of an external device through a Socket concurrent mode, converting the push data into structures according to an instruction protocol corresponding to the push data after receiving the push data, and passively pushing the structures to the protocol processing modules, where different push data may generate different instruction structures, and each instruction structure corresponds to a specific workflow instruction and a specific protocol, so that the protocol processing module performs data update processing on a device memory mapping layer according to the instruction structures, and the push data received by the protocol processing module is not used for direct consumption, that is, the push data is not displayed or used directly on a UI display interface, but is stored in the device memory mapping layer first, so that maximum concurrent processing of the push data or the instruction corresponding to the push data can be achieved.
In some embodiments, the current protocol has corresponding command codes, different command codes are converted into different class structures, and the push data has information corresponding to the command codes, so that the push data can be converted into the protocol processing module corresponding to the command codes according to the command codes.
Referring to fig. 3, fig. 3 is a flowchart of a method for pushing multithread data at a high speed according to another embodiment of the present application, in some embodiments, the system for pushing multithread data at a high speed further includes a database, generating a plurality of instruction structures according to the pushed data, and performing data update processing on the device memory mapping layer according to the instruction structures, including but not limited to the following step S310;
step S310, after the instruction structure performs data update processing on the device memory mapping layer, update the control data generated by the data update processing to the database.
In some embodiments, after the instruction structure body performs data updating processing on the device memory mapping layer, the control data generated by the data updating processing is updated to the database, so that the database information can be directly extracted to obtain the control data in the subsequent process, and the reliability of the multithreading data high-speed pushing method is ensured; and updating the recorded client required data such as voltage, current, capacity, time, temperature and the like into the mysql database, wherein the client required data is control data.
In some embodiments, the controller receives and layers the pushed data, and maps the pushed data according to different command codes to obtain an instruction structure, wherein the real-time data is stored through redis memory data, consumed in real time and not stored persistently, and the client needs the data to be stored in a file through mysql data, so that the storage space is effectively utilized, the memory occupation is reduced, and the method stability is improved.
Referring to fig. 4, fig. 4 is a flowchart of a method for pushing multithread data at a high speed according to another embodiment of the present application, in some embodiments, a device memory mapping layer performs asynchronous refresh display processing on a UI display interface according to update data, including but not limited to the following steps S410 and S420;
step S410, a plurality of data acquisition points in the device memory mapping layer acquire updated data and send the updated data to a UI display interface;
and step S420, the UI display interface performs display processing according to the updating data.
In some embodiments, a plurality of data acquisition points in the device memory mapping layer acquire updated data and send the updated data to the UI display interface, the UI display interface performs display processing according to the updated data, asynchronous passive display of pushing data in multiple database bits and multiple channels can be effectively realized, and when the device memory mapping layer is applied to a multi-sampling control upper computer, the device memory mapping layer can effectively solve the problems that the multi-sampling control upper computer software is seriously jammed, the multi-sampling control upper computer software is delayed in display, easily loses response and the like.
Referring to fig. 5, fig. 5 is a flowchart of a method for pushing multithread data at a high speed according to another embodiment of the present application, in some embodiments, a plurality of operation instructions are received through a UI display interface, and are asynchronously sent to a plurality of external devices, where the plurality of operation instructions are sent to the plurality of external devices, including but not limited to the following steps S510, S520, and S530;
step S510, receiving a plurality of operation instructions through a UI display interface;
step S520, packaging the plurality of operation instructions to obtain a plurality of instruction data packets;
step S530, obtaining a data packet transmission queue according to the command data packet, and transmitting a plurality of operation commands to a plurality of external devices according to the data packet transmission queue.
Referring to fig. 6, fig. 6 is a flowchart of a method for pushing multithread data at high speed according to another embodiment of the present application, in some embodiments, after receiving a plurality of operation instructions through a UI display interface, and performing asynchronous sending processing on the plurality of operation instructions and sending the plurality of operation instructions to a plurality of external devices, the method includes, but is not limited to, the following steps S610 and S620;
step S610, under the condition that the operation instruction is sent to the external equipment, acquiring the analysis data of the protocol processing module, and updating the analysis data to the equipment memory mapping layer;
step S620, or in a case where the operation instruction is not transmitted to the external apparatus, displaying instruction transmission failure information through the UI display interface.
In some embodiments, a plurality of operation instructions are received through a UI display interface, the operation instructions are packaged to obtain a plurality of instruction data packets, a data packet sending queue is obtained according to the instruction data packets, and the operation instructions are sent to a plurality of external devices according to the data packet sending queue, wherein the operation instructions of a user on the UI display interface such as a software interface and the like are packaged into instruction data packets and are placed in the data packet sending queue, synchronous waiting is not needed at the moment, the instruction data packets in the data packet sending queue can be asynchronously sent to the corresponding external devices, and if the instruction data packets are unsuccessfully sent, the operation instructions are asynchronously responded to the UI display interface; if the instruction data packet is successfully sent, the system updates the instruction structure or the protocol processing module to an equipment memory mapping layer after receiving the analysis of the instruction structure or the protocol processing module, and asynchronously responds to the UI display interface, so that the reliability of the high-speed pushing method of the multi-thread data is improved.
Referring to fig. 7, fig. 7 is a flowchart of a multithreading data high-speed pushing method according to another embodiment of the present application, in some embodiments, the multithreading data high-speed pushing method includes, but is not limited to, the following steps S710 and S720;
step S710, obtaining a packet return update queue according to a protocol processing module corresponding to the push data;
step S720, a data packet sending queue is obtained according to the back packet updating queue and the instruction data packet.
In some embodiments, all traffic in the packet update queue is concurrent, and the traffic packet is also pushed into a queue, first-in-first-out.
Referring to fig. 8, fig. 8 is a schematic diagram of a multithreading data high-speed pushing system according to another embodiment of the present application, where in some embodiments, the present application is applied to an upper computer to push data, a protocol processing module includes a channel sampling processing module, a library bit online processing module, a process start post-processing module, and a formation completion post-processing module, and the present application supports the following functions through a software architecture for pushing data at a high speed:
1) And concurrent receiving and analyzing:
(1) the multi-device receives: the system supports external multiple devices, an upper computer server, a middle computer and the like, and each external device is connected with a port of a network TCP.
(2) Multi-instruction receiving processing: the equipment is connected in a receiving mode according to Socket, data are converted into a structural body according to an instruction protocol after being received, and the structural body is passively pushed to processing modules of all protocols; the processing module updates the memory mapping layer, and the minimum amount of control data is updated to the database; the received data objects are not used for direct consumption, and thus maximum concurrent processing can be achieved.
2) Asynchronous response display:
and if the data field is updated, asynchronously refreshing the display at each data acquisition point of the memory mapping device.
3) Asynchronous sending of instructions:
4) The operation on the software interface is packaged into an instruction packet and put into a queue, and then synchronous waiting is not needed; sending data in the packet queue and asynchronously sending the data to the equipment; if the transmission fails, asynchronously responding to the display; if the transmission is successful, the system updates to the equipment memory mapping layer after receiving and analyzing, and asynchronously responds to the display.
In a second aspect of the present application, a multi-thread data high-speed pushing system is provided, which includes a plurality of device ports, a device memory mapping layer and a UI display interface,
the plurality of equipment ports are used for receiving push data of external equipment;
the device memory mapping layer is used for generating a plurality of instruction structural bodies according to the push data, performing data updating processing on the device memory mapping layer according to the instruction structural bodies, generating updating data, and performing asynchronous refreshing display processing on the UI display interface according to the updating data;
the UI display interface is used for receiving a plurality of operation instructions, carrying out asynchronous sending processing on the operation instructions and sending the operation instructions to a plurality of external devices.
In some embodiments, the multithreaded data high-speed pushing system conforms to an operating environment for the multithreaded data high-speed pushing method of any one of the above embodiments to operate, so that the multithreaded data high-speed pushing system has the functions and effects of the multithreaded data high-speed pushing method of any one of the above embodiments.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a controller according to an embodiment of the present invention.
Some embodiments of the present invention provide a controller, where the controller includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the multithreaded data high-speed pushing method according to any one of the above embodiments when executing the computer program, for example, the method steps S110 to S140 in fig. 1, the method steps S210 to S230 in fig. 2, the method step S310 in fig. 3, the method steps S410 to S420 in fig. 4, the method steps S510 to S530 in fig. 5, the method steps S610 to S620 in fig. 6, and the method steps S710 to S720 in fig. 7 are performed.
The controller 900 of the embodiment of the present invention includes one or more processors 910 and a memory 920, and fig. 9 illustrates one processor 910 and one memory 920.
The processor 910 and the memory 920 may be connected by a bus or other means, such as by a bus connection in fig. 9.
The memory 920, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs as well as non-transitory computer executable programs. Further, the memory 920 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 920 may optionally include memory 920 located remotely from the processor 910, which may be connected to the controller 900 via a network, examples of which include, but are not limited to, the internet, an intranet, a local area network, a mobile communications network, and combinations thereof.
In some embodiments, the processor executes the computer program to execute the multithreading data fast pushing method according to any one of the above embodiments at preset intervals.
Those skilled in the art will appreciate that the arrangement of devices shown in fig. 9 is not intended to be limiting of the controller 900 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
In the controller 900 shown in fig. 9, the processor 910 may be configured to call a multi-threaded data cache method stored in the memory 920, thereby implementing the multi-threaded data cache method.
Based on the hardware structure of the controller 900, the embodiments of the multithreaded data high-speed pushing system of the present invention are provided, and meanwhile, the non-transitory software programs and instructions required for implementing the multithreaded data high-speed pushing method of the embodiments are stored in the memory, and when being executed by the processor, the multithreaded data high-speed pushing method of the embodiments is executed.
In addition, the embodiment of the invention also provides a multithreading data high-speed pushing system, which comprises the controller.
In some embodiments, since the multithreaded data fast forwarding system according to the embodiment of the present invention has the controller according to the above-described embodiment, and the controller according to the above-described embodiment is capable of executing the multithreaded data fast forwarding method according to the above-described embodiment, reference may be made to the specific implementation manner and technical effect of the multithreaded data fast forwarding system according to any one of the above-described embodiments.
Also provided in an embodiment of the present invention is a computer-readable storage medium storing computer-executable instructions for performing the above-mentioned multithreaded data high-speed push method, for example, enabling the one or more processors to perform the multithreaded data high-speed push method in the above-mentioned method embodiment, for example, performing the above-mentioned method steps S110 to S140 in fig. 1, method steps S210 to S230 in fig. 2, method step S310 in fig. 3, method steps S410 to S420 in fig. 4, method steps S510 to S530 in fig. 5, method steps S610 to S620 in fig. 6, and method steps S710 to S720 in fig. 7.
The above-described embodiments of the apparatus are merely illustrative, and the units illustrated as separate components may or may not be physically separate, may be located in one place, or may be distributed over a plurality of network nodes. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
It will be understood by those of ordinary skill in the art that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, or suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer readable storage media (or non-transitory media) and communication media (or transitory media). The term computer-readable storage medium includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer-readable storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
While the preferred embodiments of the present invention have been described, the present invention is not limited to the above embodiments, and those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of the present invention, and such equivalent modifications or substitutions are included in the scope of the present invention defined by the claims.

Claims (10)

1. A multithreading data high-speed pushing method is applied to a multithreading data high-speed pushing system and is characterized in that the multithreading data high-speed pushing system comprises a plurality of equipment ports, an equipment memory mapping layer and a UI display interface, and the multithreading data high-speed pushing method comprises the following steps:
receiving push data of an external device through a plurality of device ports;
generating a plurality of instruction structural bodies according to the push data, and updating data of the equipment memory mapping layer according to the instruction structural bodies to generate updated data;
the device memory mapping layer carries out asynchronous refreshing display processing on the UI display interface according to the updating data;
and receiving a plurality of operation instructions through the UI display interface, carrying out asynchronous sending processing on the operation instructions, and sending the operation instructions to the external equipment.
2. The method according to claim 1, wherein the generating a plurality of instruction structures according to the pushed data and performing data update processing on the device memory mapping layer according to the instruction structures comprises:
generating a plurality of instruction structural bodies according to the push data;
the instruction structure bodies are subjected to allocation analysis processing, and the instruction structure bodies are sent to corresponding protocol processing modules respectively;
and the protocol processing module performs data updating processing on the equipment memory mapping layer according to the instruction structure body.
3. The multithreading data high-speed pushing method according to claim 1, wherein the multithreading data high-speed pushing system further includes a database, the generating a plurality of instruction structures according to the pushed data, and performing data update processing on the device memory mapping layer according to the instruction structures, and further includes:
and after the instruction structure body carries out data updating processing on the device memory mapping layer, updating the control data generated by the data updating processing to the database.
4. The multithreading data high-speed pushing method according to claim 2, wherein performing asynchronous refresh display processing on the UI display interface according to the update data in the device memory mapping layer includes:
a plurality of data acquisition points in the device memory mapping layer acquire the updated data and send the updated data to the UI display interface;
and the UI display interface performs display processing according to the updating data.
5. The method of claim 1, wherein the receiving a plurality of operation commands through the UI display interface, performing asynchronous transmission processing on the plurality of operation commands, and transmitting the plurality of operation commands to a plurality of external devices comprises:
receiving a plurality of operation instructions through the UI display interface;
packaging the operation instructions to obtain a plurality of instruction data packets;
and obtaining a data packet sending queue according to the instruction data packet, and sending the plurality of operation instructions to the plurality of external devices according to the data packet sending queue.
6. The method of claim 5, wherein the receiving a plurality of operation commands via the UI display interface, performing asynchronous transmission processing on the plurality of operation commands, and sending the plurality of operation commands to the plurality of external devices further comprises:
under the condition that the operation instruction is sent to the external equipment, acquiring analysis data of a protocol processing module, and updating the analysis data to an equipment memory mapping layer;
or, when the operation instruction is not sent to the external device, displaying instruction sending failure information through the UI display interface.
7. The method of claim 5, wherein the method comprises:
obtaining a back packet updating queue according to a protocol processing module corresponding to the push data;
and obtaining a data packet sending queue according to the return packet updating queue and the instruction data packet.
8. A multithreading data high-speed push system is characterized in that the multithreading data high-speed push system comprises a plurality of device ports, a device memory mapping layer and a UI display interface,
the plurality of equipment ports are used for receiving push data of external equipment;
the device memory mapping layer is used for generating a plurality of instruction structural bodies according to the push data, updating data of the device memory mapping layer according to the instruction structural bodies, generating updating data, and asynchronously refreshing and displaying the UI display interface according to the updating data;
the UI display interface is used for receiving a plurality of operation instructions, carrying out asynchronous sending processing on the operation instructions and sending the operation instructions to the external equipment.
9. A controller comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for pushing multithreaded data at a high speed according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing computer-executable instructions for performing the method for pushing multithreaded data at a high speed as recited in any one of claims 1-7.
CN202211519422.0A 2022-11-30 2022-11-30 Multithreading data high-speed pushing method, system, controller and storage medium Pending CN115866035A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211519422.0A CN115866035A (en) 2022-11-30 2022-11-30 Multithreading data high-speed pushing method, system, controller and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211519422.0A CN115866035A (en) 2022-11-30 2022-11-30 Multithreading data high-speed pushing method, system, controller and storage medium

Publications (1)

Publication Number Publication Date
CN115866035A true CN115866035A (en) 2023-03-28

Family

ID=85668203

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211519422.0A Pending CN115866035A (en) 2022-11-30 2022-11-30 Multithreading data high-speed pushing method, system, controller and storage medium

Country Status (1)

Country Link
CN (1) CN115866035A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116466996A (en) * 2023-04-24 2023-07-21 惠州市乐亿通科技有限公司 Communication method based on multithreading and upper computer

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090199200A1 (en) * 2008-02-01 2009-08-06 Arimilli Lakshminarayana B Mechanisms to Order Global Shared Memory Operations
CN109657007A (en) * 2018-12-17 2019-04-19 武汉达梦数据库有限公司 Database in phase based on asynchronous submission executes method and apparatus parallel
CN111552563A (en) * 2020-04-20 2020-08-18 南昌嘉研科技有限公司 Multithreading data architecture, multithreading message transmission method and system
CN113954104A (en) * 2021-12-23 2022-01-21 辰星(天津)自动化设备有限公司 Multi-thread controller of parallel robot
CN114615308A (en) * 2020-12-03 2022-06-10 亚信科技(中国)有限公司 RPC-based asynchronous multithreading concurrent network communication method and device
CN115237639A (en) * 2022-09-23 2022-10-25 泰山学院 Single-chip microcomputer data processing system and method for realizing multichannel data acquisition

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090199200A1 (en) * 2008-02-01 2009-08-06 Arimilli Lakshminarayana B Mechanisms to Order Global Shared Memory Operations
CN109657007A (en) * 2018-12-17 2019-04-19 武汉达梦数据库有限公司 Database in phase based on asynchronous submission executes method and apparatus parallel
CN111552563A (en) * 2020-04-20 2020-08-18 南昌嘉研科技有限公司 Multithreading data architecture, multithreading message transmission method and system
CN114615308A (en) * 2020-12-03 2022-06-10 亚信科技(中国)有限公司 RPC-based asynchronous multithreading concurrent network communication method and device
CN113954104A (en) * 2021-12-23 2022-01-21 辰星(天津)自动化设备有限公司 Multi-thread controller of parallel robot
CN115237639A (en) * 2022-09-23 2022-10-25 泰山学院 Single-chip microcomputer data processing system and method for realizing multichannel data acquisition

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
JOSEPH SCHUCHART ET AL.: ""Pushing the Boundaries of Small Tasks :Scalable LowOverhead Data-Flow Programming in TTG"", 《2022 IEEE INTERNATIONAL CONFERENCE ON CLUSTER COMPUTING》, 18 October 2022 (2022-10-18) *
王宗强,张劲,何宁,王强, 刘昂: ""民航信息化中大型主机异步报文传输模式的创新"", 《 电脑与电信》, 10 September 2022 (2022-09-10) *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116466996A (en) * 2023-04-24 2023-07-21 惠州市乐亿通科技有限公司 Communication method based on multithreading and upper computer
CN116466996B (en) * 2023-04-24 2024-01-09 惠州市乐亿通科技股份有限公司 Communication method based on multithreading and upper computer

Similar Documents

Publication Publication Date Title
JP6164747B2 (en) Method for flow control in a collaborative environment and for reliable communication
CN108055304B (en) Remote data synchronization method, device, server, equipment and storage medium
CN110740145A (en) Message consumption method, device, storage medium and electronic equipment
CN109783573B (en) Multi-path pushed data synchronization method and terminal
CN109981715B (en) Session management method and device
CN112069353A (en) Music playing control method and device, storage medium and electronic equipment
CN109634764A (en) Work-flow control method, apparatus, equipment, storage medium and system
CN115866035A (en) Multithreading data high-speed pushing method, system, controller and storage medium
CN110851276A (en) Service request processing method, device, server and storage medium
CN111708625A (en) Multi-user task execution method, device, equipment and storage medium
CN107277022B (en) Process marking method and device
CN114500633B (en) Data forwarding method, related device, program product and data transmission system
CN112395097A (en) Message processing method, device, equipment and storage medium
CN110445874B (en) Session processing method, device, equipment and storage medium
US20180309702A1 (en) Method and device for processing data after restart of node
CN116521639A (en) Log data processing method, electronic equipment and computer readable medium
CN111031260A (en) High-speed image one-way transmission system method and system based on annular lock-free queue
CN113778455B (en) Code conversion method and device, electronic equipment and storage medium
CN112597227A (en) Information processing method and device in power distribution network scheduling and storage medium
CN116627495A (en) Information interaction method, system, device, equipment and medium
CN110288309B (en) Data interaction method, device, system, computer equipment and storage medium
CN112597250A (en) Track traffic data relay station implementation method based on DataX data synchronization
CN109344630B (en) Block generation method, device, equipment and storage medium
CN113888028A (en) Patrol task allocation method and device, electronic equipment and storage medium
CN113760920A (en) Data synchronization method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination