Data registration refreshing method based on rail transit application
By using the multi-threaded socket communication of SCADA service in the rail transit monitoring system, real-time refresh and accurate forwarding of data are realized, the problem of data delay and inaccuracy is solved, the efficiency and accuracy of communication between systems are improved, and rail support is supported Monitoring and operation and maintenance in the transportation industry.
Patent Information
- Application Number
- CN202410846051.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-10-29
AI Technical Summary
In the rail transit industry, the real-time acquisition and display of data is delayed or inaccurate, resulting in inconvenient communication between the integrated monitoring system and other systems and affecting the accuracy of the results.
Establish socket communication with the rail transit monitoring system client through the real-time data service of the SCADA service, and use multi-threading to process data sending and receiving to achieve real-time refresh and accurate forwarding of data, ensuring that the human-machine interface and other systems can receive data in a timely and accurate manner.
Real-time and rapid refresh of data in the rail transit monitoring system is achieved, ensuring that the human-machine interface and other systems can receive data in a timely and accurate manner, improving the communication efficiency and accuracy between systems, and supporting the monitoring, debugging and operation of the rail transit industry. dimension.
Smart Images

Figure CN118869737A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of rail transit communication technology, and in particular to a data registration and refreshing method based on rail transit application. Background Art
[0002] In the rail transit industry, whether it is the professional data such as PSD, PA, CCTV, BAS of the subway, or the power data of the railway, the integrated monitoring system bears a great responsibility. It needs to manage a wide variety of data and a large amount of data. It must not only obtain the data of various professions in a timely manner, but also be able to display it in real time on the human-machine interface and forward it to other system data. If these data cannot be obtained and displayed in real time, there will be a large delay in the display of the human-machine interface, or the time interval for forwarding to other systems is too long or the forwarded data is inaccurate. The above communication delays will cause inconvenience in the communication between the integrated monitoring system and itself or other systems, and may even result in errors, affecting the communication between the systems. Therefore, the rapid and timely refresh of data is necessary and indispensable in the integrated monitoring system. Therefore, a data registration and refresh method based on rail transit applications is urgently needed to solve this problem. Summary of the invention
[0003] In view of the above problems, the present invention is proposed to provide a data registration and refreshing method based on rail transit applications that overcomes the above problems or at least partially solves the above problems.
[0004] In order to solve the above technical problems, the embodiments of the present application disclose the following technical solutions:
[0005] In a first aspect, an embodiment of the present invention discloses a data registration and refreshing method based on rail transit application, comprising:
[0006] S100. The real-time data service of the SCADA service, as the first server, establishes a first socket communication with the first client of the rail transit monitoring system, and starts a corresponding thread in the thread pool to perform the sending and receiving processing of the first socket communication;
[0007] S200. After the first socket communication is established, the workstation HMI establishes a second socket communication with the real-time data service of the SCADA service, and monitors the data stream as the second server; when the workstation HMI has a registration requirement as the first client of the rail transit monitoring system, it sends a registration request to the real-time data service of the SCADA service;
[0008] S300. When the corresponding thread of the real-time data service under the SCADA service receives the request, it refreshes the required registration data according to the required period and sends the changed data to the second server as the second client;
[0009] S400. After receiving the data stream, the second server, as the RPC client, puts the refreshed registration data as a parameter into the message, adds the corresponding code of the process to be called on the RPC server in the message, and finally sends it to the RPC server;
[0010] S500. After receiving the data, the RPC server of the workstation finds the corresponding process according to the code, processes the data, and finally displays it on the HMI of the workstation.
[0011] Furthermore, in S100, multi-threaded communication is adopted between the first server and the first client, the SCADA service serves as the server of the multi-threaded communication, and other services except the SCADA service serve as multiple clients of the multi-threaded communication, and the other services except the SCADA service at least include COM service, GTW service and multiple workstations.
[0012] Further, in S200, when the HMI of the workstation as the first client of the rail transit monitoring system has a registration requirement, a registration request is sent to the real-time data service of the SCADA service. The specific method includes:
[0013] The HMI on the workstation calls the CGrRTDataManager class, which determines the table name, object name and attribute name that need to be registered, as well as the refresh cycle, registration number, window sequence number and message ID. Then, through the RegisterQueryPara function, a network data stream management class CNerStreamMan is created to perform a parameter registration function, and a network registration object class iNetRegObject is created to start socket communication. In the iNetRegObject class, parameter registration begins, and the corresponding window, server, cycle, method, user and registration data length are encapsulated and sent in the format of a data stream to a server end that uses a real-time data service of a SCADA service as a service.
[0014] Further, in S300, when the corresponding thread of the real-time data service under the SCADA service receives the request, the corresponding thread uses the function recv_proc() to receive and process the data, and the specific method is:
[0015] Determine the received data type. If the received data is a refresh system stream data type, obtain the window serial number curwin, identification number ucKeyID, server name server_name, user name username, user password password, and source data request of data src_data, and determine the refresh cycle and length.
[0016] Further, in S300, when the corresponding thread of the real-time data service under the SCADA service receives the request, the corresponding thread uses the function recv_proc() to receive and process the data, specifically:
[0017] Determine the received data type. If the received data type is a data type for stopping refreshing the system stream, obtain the usage data type winno, the host name hostname and the user name username. According to the obtained usage data type, if the data type is 0xff, stop refreshing all windows. If the data type is not 0xff, only stop refreshing the usage data type winno of the hostname whose user name is username.
[0018] Furthermore, in S300, when the SCADA service detects a data change, it sends a data processing signal DATA_SPREAD_SIGNAL to the real-time data service. After receiving the signal, the real-time data service uses the function send_proc() to query each previous client request according to the required table name, object name, attribute name and value, and then places them in buf, and after assigning corresponding values to the message header, the data is sent.
[0019] Furthermore, in S300, when the second client sends the changed data, if the end of the data stream is correct, the data is processed; the specific processing method includes: if the data type is to refresh the system stream data, the data is sent to the HMI in RPC mode, and then the HMI receives the data and displays it on the interface in real time; if the data type is to stop refreshing the system stream data, no processing is performed.
[0020] Furthermore, if the data type is refreshing system stream data, the data is sent to the HMI in the form of RPC, and the specific method includes:
[0021] The first node where the workstation HMI is located acts as an RPC client and calls the local RPC client program when it needs to be given to the server;
[0022] The RPC client program of the first node generates a message, puts the refreshed registration data as a parameter into the message, and adds the corresponding code of the process to be called on the second node of the rail transit integrated monitoring system in the message;
[0023] The first node calls the local operating system network interface to send the message generated by the RPC client program to the second node;
[0024] After receiving the message sent by the first node, the second node acts as an RPC server and calls a local RPC server program;
[0025] The server program of the second node analyzes the message, determines the process to be called according to the special code ID in the message, and then executes the corresponding local call;
[0026] The second node executes a local call to use the registration data carried in the message.
[0027] In a second aspect, an embodiment of the present invention discloses an electronic device, including:
[0028] one or more processors;
[0029] A memory for storing one or more programs;
[0030] When the one or more programs are executed by the one or more processors, the one or more processors implement the registration refresh method.
[0031] The beneficial effects of the above technical solution provided by the embodiment of the present invention include at least:
[0032] The present invention discloses a data registration and refreshing method based on rail transit application, comprising: S100. The real-time data service of the SCADA service, as a first server end, establishes a first socket communication with the first client of the rail transit monitoring system, and starts a corresponding thread in the thread pool to perform the sending and receiving processing of the first socket communication; S200. After the first socket communication is established, the HMI of the workstation establishes a second socket communication with the real-time data service of the SCADA service, and monitors the data flow as the second server end; when the HMI of the workstation, as the first client of the rail transit monitoring system, has a registration demand, it sends a request to the SCADA service. The real-time data service of the SCADA service sends a registration request; S300. When the corresponding thread of the real-time data service under the SCADA service receives the request, it refreshes the required registration data according to the required period, and sends the changed data to the second server as the second client; S400. After the second server receives the data stream, as the client of RPC, it puts the refreshed registration data into the message as a parameter, and adds the corresponding code of the process to be called on the RPC server in the message, and finally sends it to the RPC server; S500. After the RPC server of the workstation receives the data, it finds the corresponding process according to the code, processes the data, and finally displays it to the HMI of the workstation. The method disclosed by the present invention supports real-time and fast data refresh in both railway and subway rail transit integrated monitoring, and the data changes can be seen in time on the human-machine interface, and when forwarding to other systems, the value to be forwarded can be obtained in real time and accurately forwarded to other systems, which can play a great role in the development, debugging and final operation and maintenance stages of the rail transit industry monitoring system.
[0033] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0035] Figure 1 This is a flow chart of a data registration and refreshing method based on rail transit application in Embodiment 1 of the present invention;
[0036] Figure 2 This is a schematic diagram of obtaining change registration data through RPC in Example 1 of the present invention;
[0037] Figure 3 This is a schematic diagram of the structure of an electronic device in Embodiment 2 of the present invention. DETAILED DESCRIPTION
[0038] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0039] In order to solve the problems existing in the prior art, an embodiment of the present invention provides a data registration and refreshing method based on rail transit application.
[0040] Example 1
[0041] The present invention discloses a data registration and refreshing method based on rail transit application, such as Figure 1 ,include:
[0042] S100. The real-time data service of the SCADA service, as the first server, establishes a first socket communication with the first client of the rail transit monitoring system, and starts a corresponding thread in the thread pool to perform the sending and receiving processing of the first socket communication;
[0043] In S100 of this embodiment, multi-threaded communication is adopted between the first server and the first client, the SCADA service serves as the server of the multi-threaded communication, and other services except the SCADA service serve as multiple clients of the multi-threaded communication, and the other services except the SCADA service at least include COM service, GTW service and multiple workstations.
[0044] Specifically, under each node of the integrated monitoring system, we will start a real-time data service, which, as a server of a socket communication, will create a socket, bind a port number, and monitor a client, with a maximum of 128 clients. Each node starts the service, that is, each node will serve as a server of socket communication, and monitor the message of the corresponding client. Each node of the integrated monitoring system can send a real-time data request for registering SCADA loading to the node where the SCADA service is located, so the present invention has utilized multi-thread communication to handle this problem, that is, the server end will receive a socket pipeline once, and will distribute an independent thread to process the data sent by the client, so that a server end can receive the data of multiple clients. This technology corresponds to our integrated monitoring system, that is, other nodes except the SCADA service node, such as nodes such as COM service, GTW service, and multiple workstations, all want to obtain the real-time data loaded by the SCADA server, so all other server nodes are used as multiple clients, and the SCADA server node is used as the server of socket communication, and this is the situation of a server end corresponding to multiple clients.
[0045] Specifically, when registering the service class, the socket id and socket binding information are passed in, and a thread is created in the structure to perform the sending and receiving processing of the socket communication. In this way, multiple socket communication connections are established.
[0046] After each socket communication connection is established, the corresponding thread will process the sending and receiving data in a loop. The specific code is:
[0047] CSrvRegData::CSrvRegData(int sock1,struct sockaddr_in iaddr):CNetCmd(sock1,iaddr)
[0048] OS_CreateThread(srv_obj_routing,this,2048*1024)
[0049] S200. After the first socket communication is established, the workstation HMI establishes a second socket communication with the real-time data service of the SCADA service, and monitors the data stream as the second server; when the workstation HMI has a registration requirement as the first client of the rail transit monitoring system, it sends a registration request to the real-time data service of the SCADA service;
[0050] Specifically, in S200 of this embodiment, when the HMI of the workstation as the first client of the rail transit monitoring system has a registration requirement, a registration request is sent to the real-time data service of the SCADA service. The specific method includes:
[0051] The HMI on the workstation calls the CGrRTDataManager class, which determines the table name, object name and attribute name that need to be registered, as well as the refresh cycle, registration number, window sequence number and message ID. Then, through the RegisterQueryPara function, a network data stream management class CNerStreamMan is created to perform a parameter registration function, and a network registration object class iNetRegObject is created to start socket communication. In the iNetRegObject class, parameter registration begins, and the corresponding window, server, cycle, method, user and registration data length are encapsulated and sent in the format of a data stream to a server end that uses a real-time data service of a SCADA service as a service.
[0052] S300. When the corresponding thread of the real-time data service under the SCADA service receives the request, it refreshes the required registration data according to the required period and sends the changed data to the second server as the second client;
[0053] In S300 of this embodiment, when the corresponding thread of the real-time data service under the SCADA service receives the request, the corresponding thread uses the function recv_proc() to receive and process the data. The specific method is:
[0054] Determine the received data type. If the received data type is a refresh system stream data type, obtain the window sequence number curwin, identification number ucKeyID, server name server_name, user name username, user password password, and source data request of data src_data, and determine the refresh cycle and length. If the received data type is a stop refresh system stream data type, obtain the use data type winno, host name hostname and user name username. According to the obtained use data type, if the data type is 0xff, stop refreshing all windows. If the data type is not 0xff, only stop refreshing the use data type winno of hostname with the user name username.
[0055] In S300 of this embodiment, when the SCADA service detects a data change, it sends a data processing signal DATA_SPREAD_SIGNAL to the real-time data service. After receiving the signal, the real-time data service uses the function send_proc() to query each previous client request according to the required table name, object name, attribute name and value, and then places them in buf, and after assigning corresponding values to the message header, the data is sent.
[0056] S400. After receiving the data stream, the second server, as the RPC client, puts the refreshed registration data as a parameter into the message, adds the corresponding code of the process to be called on the RPC server in the message, and finally sends it to the RPC server;
[0057] S500. After receiving the data, the RPC server of the workstation finds the corresponding process according to the code, processes the data, and finally displays it on the HMI of the workstation.
[0058] Specifically, in this embodiment, if the data type is refreshing system stream data, the data is sent to the HMI in the form of RPC, and the specific method includes:
[0059] The first node where the workstation HMI is located acts as an RPC client and calls the local RPC client program when it needs to be given to the server;
[0060] The RPC client program of the first node generates a message, puts the refreshed registration data as a parameter into the message, and adds the corresponding code of the process to be called on the second node of the rail transit integrated monitoring system in the message;
[0061] The first node calls the local operating system network interface to send the message generated by the RPC client program to the second node;
[0062] After receiving the message sent by the first node, the second node acts as an RPC server and calls a local RPC server program;
[0063] The server program of the second node analyzes the message, determines the process to be called according to the special code ID in the message, and then executes the corresponding local call;
[0064] The second node executes a local call to use the registration data carried in the message.
[0065] Specifically, Figure 2In this embodiment, the RPC server is started in the dynamic library called by the HMI of a workstation, and other nodes (including this node) act as RPC clients and initiate requests to the server. After receiving the request, the RPC obtains the refreshed registration data from the received content and displays it in the HMI human-machine interface. The present invention describes both communication on the same node and communication between different nodes. In this way, all nodes can receive registration data. This method well solves the problem that registration data cannot be obtained on other hosts, and facilitates debugging and operation and maintenance.
[0066] The present embodiment discloses a data registration and refreshing method based on rail transit application, including: S100. The real-time data service of the SCADA service, as a first server end, establishes a first socket communication with the first client of the rail transit monitoring system, and starts a corresponding thread in the thread pool to perform the sending and receiving processing of the first socket communication; S200. After the first socket communication is established, the HMI of the workstation establishes a second socket communication with the real-time data service of the SCADA service, and monitors the data stream as a second server end; when the HMI of the workstation, as the first client of the rail transit monitoring system, has a registration demand, it sends a request to the SCADA service. The real-time data service of the service sends a registration request; S300. When the corresponding thread of the real-time data service under the SCADA service receives the request, it refreshes the required registration data according to the required period, and sends the changed data to the second server as the second client; S400. After the second server receives the data stream, as the client of RPC, it puts the refreshed registration data into the message as a parameter, and adds the corresponding code of the process to be called on the RPC server in the message, and finally sends it to the RPC server; S500. After the RPC server of the workstation receives the data, it finds the corresponding process according to the code, processes the data, and finally displays it to the HMI of the workstation. The method disclosed by the present invention supports real-time and fast data refresh in both railway and subway rail transit integrated monitoring, and the data changes can be seen in time on the human-machine interface, and when forwarding to other systems, the value to be forwarded can be obtained in real time and accurately forwarded to other systems, which can play a great role in the development, debugging and final operation and maintenance stages of the rail transit industry monitoring system.
[0067] Example 2
[0068] Based on the same inventive concept, an embodiment of the present disclosure also provides an electronic device. Figure 3 FIG. 1 is a schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure. Figure 3As shown, an embodiment of the present disclosure provides an electronic device including: one or more processors 101, a memory 102, and one or more I / O interfaces 103. The memory 102 stores one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement any optimization method in the above embodiments; the one or more I / O interfaces 103 are connected between the processor and the memory, and are configured to implement information interaction between the processor and the memory.
[0069] Among them, the processor 101 is a device with data processing capabilities, including but not limited to a central processing unit (CPU), etc.; the memory 102 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory (FLASH); the I / O interface (read-write interface) 103 is connected between the processor 101 and the memory 102, and can realize information interaction between the processor 101 and the memory 102, including but not limited to a data bus (Bus), etc.
[0070] In some embodiments, the processor 101 , the memory 102 , and the I / O interface 103 are connected to each other via a bus 104 , and further connected to other components of the computing device.
[0071] In some embodiments, the one or more processors 101 include a field programmable gate array.
[0072] According to an embodiment of the present disclosure, a computer-readable medium is further provided, wherein a computer program is stored on the computer-readable medium, wherein when the program is executed by a processor, the steps in any optimization method in the above-mentioned embodiment are implemented.
[0073] It should be understood that the specific order or hierarchy of steps in the disclosed process is an example of an exemplary method. Based on design preferences, it should be understood that the specific order or hierarchy of steps in the process can be rearranged without departing from the scope of protection of the present disclosure. The attached method claims present the elements of the various steps in an exemplary order and are not intended to be limited to the specific order or hierarchy described.
[0074] In the above detailed description, various features are grouped together in a single embodiment to simplify the disclosure. This method of disclosure should not be interpreted as reflecting an intention that the embodiments of the claimed subject matter require more features than are clearly stated in each claim. On the contrary, as reflected in the appended claims, the invention is in a state of having less than all the features of the disclosed individual embodiments. Therefore, the appended claims are hereby expressly incorporated into the detailed description, with each claim standing on its own as a separate preferred embodiment of the invention.
[0075] Those skilled in the art will also appreciate that the various illustrative logic blocks, modules, circuits, and algorithmic steps described in conjunction with the embodiments herein can all be implemented as electronic hardware, computer software, or a combination thereof. In order to clearly illustrate the interchangeability between hardware and software, various illustrative components, blocks, modules, circuits, and steps are generally described above around their functions. Whether such functions are implemented as hardware or software depends on specific applications and the design constraints imposed on the entire system. A skilled person can implement the described functions in an alternative manner for each specific application, but such implementation decisions should not be interpreted as departing from the scope of protection of the present disclosure.
[0076] The steps of the method or algorithm described in conjunction with the embodiments herein may be directly embodied as hardware, a software module executed by a processor, or a combination thereof. The software module may be located in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a mobile disk, a CD-ROM, or any other form of storage medium well known in the art. An exemplary storage medium is connected to the processor so that the processor can read information from the storage medium and can write information to the storage medium. Of course, the storage medium may also be an integral part of the processor. The processor and the storage medium may be located in an ASIC. The ASIC may be located in a user terminal. Of course, the processor and the storage medium may also be present in a user terminal as discrete components.
[0077] For software implementation, the techniques described in this application can be implemented with modules (e.g., procedures, functions, etc.) that perform the functions described in this application. These software codes can be stored in a memory unit and executed by a processor. The memory unit can be implemented within the processor or outside the processor. In the latter case, it is coupled to the processor in a communication manner via various means, which are well known in the art.
[0078] The above description includes examples of one or more embodiments. Of course, it is impossible to describe all possible combinations of components or methods for the purpose of describing the above embodiments, but it should be recognized by those skilled in the art that the various embodiments may be further combined and arranged. Therefore, the embodiments described herein are intended to cover all such changes, modifications and variations that fall within the scope of protection of the appended claims. In addition, with respect to the term "comprising" used in the specification or claims, the word is covered in a manner similar to the term "including", just as "including," is explained as a transitional word in the claims. In addition, any term "or" used in the specification of the claims is intended to mean "non-exclusive or".
Claims
1. A data registration and refreshing method based on rail transit application, characterized in that: include: S100. The real-time data service of the SCADA service, as the first server, establishes a first socket communication with the first client of the rail transit monitoring system, and starts a corresponding thread in the thread pool to perform the sending and receiving processing of the first socket communication; S200. After the first socket communication is established, the workstation HMI establishes a second socket communication with the real-time data service of the SCADA service, and monitors the data stream as the second server; when the workstation HMI has a registration requirement as the first client of the rail transit monitoring system, it sends a registration request to the real-time data service of the SCADA service; S300. When the corresponding thread of the real-time data service under the SCADA service receives the request, it refreshes the required registration data according to the required period and sends the changed data to the second server as the second client; S400. After receiving the data stream, the second server, as the RPC client, puts the refreshed registration data as a parameter into the message, adds the corresponding code of the process to be called on the RPC server in the message, and finally sends it to the RPC server; S500. After receiving the data, the RPC server of the workstation finds the corresponding process according to the code, processes the data, and finally displays it on the HMI of the workstation.
2. A data registration and refreshing method based on rail transit application as claimed in claim 1, characterized in that: In S100, multi-threaded communication is adopted between the first server and the first client, the SCADA service serves as the server of the multi-threaded communication, and other services except the SCADA service serve as multiple clients of the multi-threaded communication, and the other services except the SCADA service at least include COM service, GTW service and multiple workstations.
3. A data registration and refreshing method based on rail transit application as claimed in claim 1, characterized in that: In S200, when the HMI of the workstation as the first client of the rail transit monitoring system has a registration requirement, it sends a registration request to the real-time data service of the SCADA service. The specific method includes: The HMI on the workstation calls the CGrRTDataManager class, which determines the table name, object name and attribute name that need to be registered, as well as the refresh cycle, registration number, window sequence number and message ID. Then, through the RegisterQueryPara function, a network data stream management class CNerStreamMan is created to perform a parameter registration function, and a network registration object class iNetRegObject is created to start socket communication. In the iNetRegObject class, parameter registration begins, and the corresponding window, server, cycle, method, user and registration data length are encapsulated and sent in the format of a data stream to a server end that uses a real-time data service of a SCADA service as a service.
4. A data registration and refreshing method based on rail transit application as claimed in claim 1, characterized in that: In S300, when the corresponding thread of the real-time data service under the SCADA service receives the request, the corresponding thread uses the function recv_proc() to receive and process the data. The specific method is: Determine the received data type. If the received data is a refresh system stream data type, obtain the window serial number curwin, identification number ucKeyID, server name server_name, user name username, user password password, and source data request of data src_data, and determine the refresh cycle and length.
5. A data registration and refreshing method based on rail transit application as claimed in claim 4, characterized in that: In S300, when the corresponding thread of the real-time data service under the SCADA service receives the request, the corresponding thread uses the function recv_proc() to receive and process the data, specifically: Determine the received data type. If the received data type is a data type for stopping refreshing the system stream, obtain the usage data type winno, the host name hostname and the user name username. According to the obtained usage data type, if the data type is 0xff, stop refreshing all windows. If the data type is not 0xff, only stop refreshing the usage data type winno of the hostname whose user name is username.
6. A data registration and refreshing method based on rail transit application as claimed in claim 1, characterized in that: In S300, when the SCADA service detects data changes, it sends a data processing signal DATA_SPREAD_SIGNAL to the real-time data service. After receiving the signal, the real-time data service uses the function send_proc() to query each previous client request according to the required table name, object name, attribute name and value, and then places them in buf, assigns corresponding values to the message header, and then sends the data.
7. A data registration and refreshing method based on rail transit application as claimed in claim 5, characterized in that: In S300, when the second client sends the changed data, if the end data stream is correct, the data is processed; the specific processing method includes: if the data type is to refresh the system stream data, the data is sent to the HMI in RPC mode, and then the HMI receives the data and displays it on the interface in real time; if the data type is to stop refreshing the system stream data, no processing is performed.
8. A data registration and refreshing method based on rail transit application as claimed in claim 7, characterized in that: If the data type is to refresh system stream data, send the data to HMI in RPC mode. The specific methods include: The first node where the workstation HMI is located acts as an RPC client and calls the local RPC client program when it needs to be given to the server; The RPC client program of the first node generates a message, puts the refreshed registration data as a parameter into the message, and adds the corresponding code of the process to be called on the second node of the rail transit integrated monitoring system in the message; The first node calls the local operating system network interface to send the message generated by the RPC client program to the second node; After receiving the message sent by the first node, the second node acts as an RPC server and calls a local RPC server program; The server program of the second node analyzes the message, determines the process to be called according to the special code ID in the message, and then executes the corresponding local call; The second node executes a local call to use the registration data carried in the message.
9. An electronic device, comprising: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the registration refresh method in claims 1-8.
