Distributed communication method and device

By using device control words to match the target data queue and calculate the time-consuming resource processing, the problem of polling communication in the prior art is solved, and efficient message processing and second-level data acquisition are achieved.

CN119996432APending Publication Date: 2025-05-13GUANGDONG ELECTRIC POWER SCI RES INST ENERGY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510221728.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-27
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

The existing communication methods fail to effectively monitor server resources when polling communication, resulting in the polling time and cannot meet the interactive needs of second-level data acquisition.

Method used

The device control word matches the target data queue for the device message, calculates the time spent in resource processing of the distributed server, allocates the target distributed server for processing, and monitors the server resource usage to optimize message processing.

Benefits of technology

It reduces the time-consuming process of packets, improves the efficiency of packet processing, avoids the problem of large-scale server resource usage, and meets the needs of second-level data acquisition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119996432A_ABST
    Figure CN119996432A_ABST
Patent Text Reader

Abstract

The invention discloses a distributed communication method and device, and the method at least comprises the steps: building a connection for warehousing equipment according to warehousing information, and carrying out the data call of the warehousing equipment according to a preset period; acquiring a device message of the storage device, and storing the device message in a target data queue of the management server according to the device control word; calculating resource processing time consumption of each distributed server according to the equipment control word, and allocating the target data queue to a target distributed server according to the resource processing time consumption; and performing analysis and service processing on the equipment message according to the target distributed server, and feeding back a processing result to the storage equipment. According to the invention, the target data queue is matched for the equipment message through the equipment control word, and the resource processing time consumption of each distributed server is calculated according to the equipment control word, so that the resource use condition of each distributed server is monitored, the target distributed server is allocated to process the equipment message, and the message processing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of distributed communication technology, and in particular to a distributed communication method and device. Background Art

[0002] With the development of new energy, the surge in power equipment, and the increasing requirements for energy monitoring, the traditional front-end services and communication architecture of the power system cannot meet the growing needs of the power industry, and still faces many challenges in terms of system compatibility, user experience, data processing capabilities, maintenance costs, network stability, security, real-time performance, scalability, and cost.

[0003] The traditional communication method of the power tower uses multiple servers as communication servers and uses polling to call for data. This solution can alleviate the problem of a large number of device accesses and enable the access of devices with low data interaction frequency through polling and other methods. However, it cannot solve the problem of server resources being fully utilized, and cannot meet the interaction requirements that require data collection in seconds. In addition, as the number of device accesses increases, the polling time becomes longer. Summary of the invention

[0004] The present invention provides a distributed communication method and device to solve the problem that the existing communication method does not monitor server resources during polling communication and the polling takes a long time.

[0005] In order to solve the above technical problems, the present invention provides a distributed communication method, comprising:

[0006] Establishing a connection with the storage device according to the storage information, and performing a data call on the storage device according to a preset period;

[0007] Acquire the device message summoned from the storage device, and store the device message in the target data queue of the management server;

[0008] Calculating resource processing time of each distributed server according to the device control word, and allocating the target data queue to the target distributed server according to the resource processing time;

[0009] The device message is parsed and service processed according to the target distributed server, and the processing result is fed back to the storage device.

[0010] The present invention matches a device message to a target data queue through a device control word, and calculates the resource processing time of each distributed server according to the device control word, thereby monitoring the resource usage on each distributed server, and allocating a target distributed server to process the device message, thereby avoiding a large proportion of server resource usage for device message matching, and processing the device message matching process according to the resource usage of the server, reducing the message processing time and improving the message processing efficiency.

[0011] Further, the device message of the storage device is obtained, and the device message is stored in the target data queue of the management server according to the device control word, specifically:

[0012] Obtaining a device message of the storage device, and obtaining a device control word according to the device message;

[0013] A target data queue is matched in all data queues of the management server according to the device control word, and the device message is stored in the target data queue of the management server.

[0014] Further, matching the target data queue in all data queues of the management server according to the device control word is specifically:

[0015] Searching for a data queue whose queue name corresponds to the device control word in all data queues of the management server;

[0016] If there is a corresponding data queue, and the queue length of the data queue does not reach the preset length threshold, then the data queue is the target data queue;

[0017] If there is a corresponding data queue, and the queue length of the data queue has reached a preset length threshold, a new data queue is generated according to the device control word as the queue name, and the new data queue is used as the target data queue;

[0018] If there is more than one corresponding data queue, the data queue with the smallest queue length is selected as the target data queue;

[0019] If there is no corresponding data queue, a new data queue is generated according to the device control word as the queue name, and the new data queue is used as the target data queue.

[0020] Further, the resource processing time of each distributed server is calculated according to the device control word, and the target data queue is allocated to the target distributed server according to the resource processing time, specifically:

[0021] Searching for a first data queue and a first service in each distributed server according to the device control word, and calculating resource processing time consumption according to a queue length of the first data queue and a service running time;

[0022] A distributed server with the shortest resource processing time is selected as a target distributed server, and the target data queue is allocated to the target distributed server.

[0023] Furthermore, the step of establishing a connection with the storage device according to the storage information and calling the storage device for data according to a preset period is as follows:

[0024] Establish a connection with the incoming equipment according to the incoming information, the incoming information including the equipment name, equipment number, equipment IP address, equipment communication port number, equipment type, equipment model and affiliated operation and maintenance team;

[0025] The data of the storage device is regularly summoned according to a preset period to collect the interaction information of the storage device, wherein the interaction information includes device messages.

[0026] In a second aspect, the present invention provides a distributed communication device, including: a data interaction module, a management server module, a distributed server module and a service processing module;

[0027] The data interaction module is used to establish a connection with the storage device according to the storage information, and to perform data calling on the storage device according to a preset period;

[0028] The management server module is used to obtain the device message summoned from the storage device and store the device message in the target data queue of the management server;

[0029] The distributed server is used to calculate the resource processing time of each distributed server according to the device control word, and allocate the target data queue to the target distributed server according to the resource processing time;

[0030] The business processing module is used to parse and process the device message according to the target distributed server, and feed back the processing result to the storage device.

[0031] Furthermore, the management server module is specifically used to:

[0032] Obtaining a device message of the storage device, and obtaining a device control word according to the device message;

[0033] A target data queue is matched in all data queues of the management server according to the device control word, and the device message is stored in the target data queue of the management server.

[0034] Furthermore, the management server module is further used to:

[0035] Searching for a data queue whose queue name corresponds to the device control word in all data queues of the management server;

[0036] If there is a corresponding data queue, and the queue length of the data queue does not reach the preset length threshold, then the data queue is the target data queue;

[0037] If there is a corresponding data queue, and the queue length of the data queue has reached a preset length threshold, a new data queue is generated according to the device control word as the queue name, and the new data queue is used as the target data queue;

[0038] If there is more than one corresponding data queue, the data queue with the smallest queue length is selected as the target data queue;

[0039] If there is no corresponding data queue, a new data queue is generated according to the device control word as the queue name, and the new data queue is used as the target data queue.

[0040] Furthermore, the distributed server module is specifically used for:

[0041] Searching for a first data queue and a first service in each distributed server according to the device control word, and calculating resource processing time consumption according to a queue length of the first data queue and a service running time;

[0042] A distributed server with the shortest resource processing time is selected as a target distributed server, and the target data queue is allocated to the target distributed server.

[0043] Furthermore, the data interaction module is specifically used to:

[0044] Establish a connection with the incoming equipment according to the incoming information, the incoming information including the equipment name, equipment number, equipment IP address, equipment communication port number, equipment type, equipment model and affiliated operation and maintenance team;

[0045] The data of the storage device is regularly summoned according to a preset period to collect the interaction information of the storage device, wherein the interaction information includes device messages. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 A schematic diagram of a flow chart of a distributed communication method provided by an embodiment of the present invention;

[0047] Figure 2 A schematic diagram of a queue search process provided by an embodiment of the present invention;

[0048] Figure 3 A schematic diagram of a matching process of a target distributed server provided in an embodiment of the present invention;

[0049] Figure 4 A flowchart of a data interaction method provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0050] The specific implementation of the present invention is further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0051] The terms "first" and "second" and the like in the specification, claims and drawings of this application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.

[0052] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0053] Embodiment 1

[0054] In this embodiment, the present invention further provides a distributed communication architecture for implementing the distributed communication method, wherein the distributed communication architecture includes a data interaction service module, a management server and a distributed server.

[0055] In this embodiment, the data interaction service module is connected to the management server and the distributed server. The data interaction module is used to establish a connection with the storage device and provide a data interaction channel between the management server, the distributed server and the storage device.

[0056] Please refer to Figure 1 , Figure 1 A schematic flow chart of a distributed communication method provided in an embodiment of the present invention includes steps 101 to 104.

[0057] Step 101: Establishing a connection with the storage device according to the storage information, and performing a data call on the storage device according to a preset period;

[0058] In this embodiment, a connection is established with the storage device according to the data interaction service module, and data calls are made to the storage device according to a preset period;

[0059] In this embodiment, the connection is established with the storage device according to the storage information, and the data call is performed on the storage device according to the preset period, specifically:

[0060] Establish a connection with the incoming equipment according to the incoming information, the incoming information including the equipment name, equipment number, equipment IP address, equipment communication port number, equipment type, equipment model and affiliated operation and maintenance team;

[0061] The data of the storage device is regularly summoned according to a preset period to collect the interaction information of the storage device, wherein the interaction information includes device messages.

[0062] In this embodiment, the network connection is made according to the information when the equipment is put into storage. The storage information includes the equipment name, equipment number, equipment IP address, equipment communication port number, equipment type, equipment model, and affiliated operation and maintenance team. The data interaction service module makes a network connection according to the equipment storage information, and can send corresponding message interaction after the connection is successful. The data interaction service module can call the collection information of the equipment at a fixed time, and can realize real-time interaction with other messages of the equipment.

[0063] Step 102: Acquire the device message of the storage device, and store the device message in the target data queue of the management server according to the device control word;

[0064] In this embodiment, the device message of the storage device is obtained, and the device message is stored in the target data queue of the management server according to the device control word, specifically:

[0065] Obtaining a device message of the storage device, and obtaining a device control word according to the device message;

[0066] A target data queue is matched in all data queues of the management server according to the device control word, and the device message is stored in the target data queue of the management server.

[0067] In this embodiment, after the data interaction service module obtains the device message of the storage device, it stores the device message in the cache, and when the device message is received, it is stored in the target data queue of the management server.

[0068] In this embodiment, the message format and the device control word of the device message are predefined, and the device control word is used to indicate the function of the message.

[0069] As a specific example of an embodiment of the present invention, please refer to Table 1, which is a schematic structural table of a message format provided by an embodiment of the present invention.

[0070]

[0071] Table 1

[0072] In this embodiment, the message format includes a message header field, a lower device number field, a control word field, a data field length field, a data area field, a check code field and an end code field. Among them, the message header includes one byte, which is fixed to the 0x68 format. The lower device number includes 8 bytes, which are represented by ASCII code, and the first and second bytes represent the device type; the third and fourth bytes are the manufacturer code, which uses uppercase letters. The last 4 bytes represent the manufacturer's identification code for each set of online monitoring devices, using uppercase letters and numbers, and numbers are preferred. The control word includes 1 byte, which is used to indicate the function of the message. The data field length field includes 2 bytes, and the data area includes several bytes, whose data length is not more than 1000 bytes, which is used to store the message content. The check code includes two bytes, which is a CRC16 check code, ranging from the message header (not included) to the data area (the last byte of the data area), and the lower two bytes are taken. The end code includes one byte, which is fixedly set to the 0x16 format.

[0073] For example, a power-on startup data frame is: 68 30 31 4e 57 30 30 30 32 00 00 02 01 007e ef 16.

[0074] Wherein, 68 is the message header, 30 31 4e 57 30 30 30 32 is the device number, 00 is the control word, 00 02 is the data field length, 01 00 is the data area, 7e ef is the check code, and 16 is the end code. Please refer to Table 2 and Table 3, Table 2 is a predefined control word example table provided in an embodiment of the present invention, and Table 3 is another predefined control word example table provided in an embodiment of the present invention.

[0075] Control Word meaning model 00H Start-up contact information S / M 01H Time calibration S / M 02H Set device password M 03H The host computer sends parameter configuration M 05H Device heartbeat information S 06H Change the master station IP address and port number M 07H Query the main station IP address and port number M 08H Device reset M 09H User login S 0AH Query device configuration parameters M 10H The host computer requests the audit channel status change M 11H Point table query S 12H FTP transfer configuration M 30H Upload device fault information S / M 50H Send remote control information M 5AH Host computer query configuration information M 61H Device requests to upload data S 62H The host computer requests the device to upload data M 63H Prepare to upload device data information Accompanied by 61H or 62H 64H Upload device data information Accompanied by 63H or 66H 65H Information upload end mark Accompanying 64H 66H Sending supplementary data Accompany 65H 67H The device requests the host computer historical data S 68H Prepare to send device data information Accompany 67H 69H The host computer sends device data information Accompanied by 68H or 6BH 6AH Information upload end mark Accompanying 69H 6BH Sending supplementary data Accompanying 6AH 89H Start camera video transmission M 8A Terminate camera video transmission M

[0076] Table 2

[0077]

[0078] Table 3

[0079] Among them, S in the mode means the device actively reports, M means the master actively sends, and S / M is available in both modes. If the input content does not meet the requirements, the data field returns 0000H; if the password is wrong, it returns FFFFH; if the device has sent the field requested by the host computer and there is no unsent data, it returns AAAAH.

[0080] In this embodiment, the power-on contact information is sent when the device is powered on; the master station actively sends the inquiry protocol number; the device actively requests time calibration after the power-on contact; the master station actively calibrates the time at least once a day; the device password is set for the master station to set the device factory password: characters: '1234' (31H32H33H34H); the device heartbeat information is sent after the device is powered on, and then the device is sent regularly; the device reset is for the host computer to control the device to reset; the user can perform APP business operations only after the user login instruction is completed; the host computer requests the audit channel status change including the start and stop of the audit channel. If the channel is closed, only 00H, 05H, 10H, and 30H can be interacted.

[0081] In this embodiment, matching the target data queue in all data queues of the management server according to the device control word is specifically:

[0082] Searching for a data queue whose queue name corresponds to the device control word in all data queues of the management server;

[0083] If there is a corresponding data queue, and the queue length of the data queue does not reach the preset length threshold, then the data queue is the target data queue;

[0084] If there is a corresponding data queue, and the queue length of the data queue has reached a preset length threshold, a new data queue is generated according to the device control word as the queue name, and the new data queue is used as the target data queue;

[0085] If there is more than one corresponding data queue, the data queue with the smallest queue length is selected as the target data queue;

[0086] If there is no corresponding data queue, a new data queue is generated according to the device control word as the queue name, and the new data queue is used as the target data queue.

[0087] In this embodiment, when the system receives a message data frame, it will first read the 10th bit of the data frame to obtain the control word 00, and then query the data queue named 00.

[0088] Please refer to Figure 2 , Figure 2 A schematic diagram of a queue search process provided by an embodiment of the present invention.

[0089] In this embodiment, the corresponding data queue is searched according to the control word, and the queue with the shortest data queue task is found. If the queue is unique, the device message is sent to the queue. If the queue is not unique, the message device is randomly sent to the queue with the shortest task.

[0090] In the embodiment of this city, if a data queue named 00 is found and the queue is unique, the data area and device number information of this data queue are stored in the corresponding data queue, and the used length of the data queue is increased by 1; if a data queue named 00 is found and the queue is unique, but the used length of the data queue is equal to the default length of the data queue, then a new data queue named 00 is created, and the data area and device number information are stored in the data queue, and the used length of the data queue is increased by 1; if a data queue named 00 is found but the data queue is not unique, the length of the data queue is further determined, the data queue corresponding to the smallest value is selected, the data area and device number information is stored in the data queue, and then the used length of the data queue is increased by 1; if a data queue named 00 is not found, a new data queue named 00 is created, and the data area and device number information is stored in the data queue, and the used length of the data queue is increased by 1.

[0091] In this embodiment, the original message returned by the device will be stored in the cache according to the control word of the message. When all the messages corresponding to the control word of the device are received, the target data queue will be searched according to the device control word, and the message data will be placed in the target data queue of the management server for further processing.

[0092] Step 103: Calculate the resource processing time of each distributed server according to the device control word, and allocate the target data queue to the target distributed server according to the resource processing time;

[0093] In this embodiment, the management server includes a resource management and monitoring module. In the resource management and monitoring module, the usage of distributed resources that can process the current message is monitored according to the message control word of the data queue, and then the current message is pushed to the corresponding data queue on the distributed server that is idle or has the shortest queuing time.

[0094] In this embodiment, the resource processing time of each distributed server is calculated according to the device control word, and the target data queue is allocated to the target distributed server according to the resource processing time, specifically:

[0095] Searching for a first data queue and a first service in each distributed server according to the device control word, and calculating resource processing time consumption according to a queue length of the first data queue and a service running time;

[0096] A distributed server with the shortest resource processing time is selected as a target distributed server, and the target data queue is allocated to the target distributed server.

[0097] Please refer to Figure 3 , Figure 3 A schematic diagram of a matching process of a target distributed server provided in an embodiment of the present invention.

[0098] As a specific example of an embodiment of the present invention, when the resource management and monitoring module on the management server processes a data queue named 00, it will first query all first data queues and services named 00 on the distributed servers, and then calculate the resource processing time of each distributed server, where the calculation formula for the resource processing time is specifically: resource processing time = total resource processing time / (first service running time*first service number).

[0099] The total resource processing time = (number of first data queues * minimum used amount of first data queue + 1) * time required for the first service to run + (time required for the first service to run - minimum running time).

[0100] Please refer to Table 4 and Table 5. Table 4 is a schematic diagram of data queues of the distributed server 1 provided in an embodiment of the present invention, and Table 5 is a schematic diagram of service resources of the distributed server 1 provided in an embodiment of the present invention.

[0101] In this embodiment, the distributed server includes a resource management and monitoring module and a data queue, wherein the data queue is used to store the message data pushed from the management server and wait for further allocation and processing. The resource management and monitoring module monitors the usage of each process that can process the current message and pushes the message to the corresponding idle process service for processing.

[0102] name quantity Minimum used amount Maximum used amount Default length 00 5 2 8 10 01 1 3 3 10 02 8 4 7 10

[0103] Table 4

[0104] name quantity Minimum elapsed time Duration of operation 00_sever 3 1 13 01_sever 1 3 20 02_sever 5 4 8

[0105] Table 5

[0106] If there are distributed servers 1 and 2, the number of 00 queues in distributed server 1 is 5, the minimum used amount is 2, the maximum used amount is 8, and the default length is 10; the number of 00 services is 3, the minimum running time is 1, and the running time is 13. The number of 00 queues in distributed server 2 is 2, the minimum used amount is 7, the maximum used amount is 8, and the default length is 10; the number of 00 services is 4, the minimum running time is 8, and the running time is 12. The unit of the running time is milliseconds.

[0107] Among them, the total resource processing time of distributed server 1 for 00 queue and 00 service = (5*2+1)*13+(13-1) = 155. The total resource processing time of distributed server 2 for 00 queue and 00 service = (2*7+1)*12+(12-8) = 184. The resource processing time of distributed server 1 = 155 / (3*13) = 3.975; the resource processing time of distributed server 2 = 184 / (4*12) = 3.85. Since the resource processing time of distributed server 2 is less than that of distributed server 1, the data is finally pushed to distributed server 2 for processing.

[0108] Step 104: parse and process the device message according to the target distributed server, and feed back the processing result to the storage device.

[0109] In this embodiment, a service process is allocated to the device message according to the target distributed server, and the message is parsed and processed according to the service process, and the processing result is returned to the data interaction service, and the result is fed back to the device through the data interaction service.

[0110] In this embodiment, the device control word is used to match the device message to the target data queue, and the resource processing time of each distributed server is calculated based on the device control word, so as to monitor the resource usage on each distributed server, and allocate the target distributed server to process the device message, so as to avoid a large proportion of server resource usage for device message matching, and process the device message matching process according to the resource usage of the server, reduce the message processing time, and improve the message processing efficiency.

[0111] The embodiment of the present invention further provides a distributed communication device, including: a data interaction module, a management server module, a distributed server module and a service processing module;

[0112] The data interaction module is used to establish a connection with the storage device according to the storage information, and to perform data calling on the storage device according to a preset period;

[0113] The management server module is used to obtain the device message of the storage device and store the device message in the target data queue of the management server according to the device control word;

[0114] The distributed server is used to calculate the resource processing time of each distributed server according to the device control word, and allocate the target data queue to the target distributed server according to the resource processing time;

[0115] The business processing module is used to parse and process the device message according to the target distributed server, and feed back the processing result to the storage device.

[0116] In this embodiment, the management server module is specifically used to:

[0117] Obtaining a device message of the storage device, and obtaining a device control word according to the device message;

[0118] A target data queue is matched in all data queues of the management server according to the device control word, and the device message is stored in the target data queue of the management server.

[0119] In this embodiment, the management server module is further used for:

[0120] Searching for a data queue whose queue name corresponds to the device control word in all data queues of the management server;

[0121] If there is a corresponding data queue, and the queue length of the data queue does not reach the preset length threshold, then the data queue is the target data queue;

[0122] If there is a corresponding data queue, and the queue length of the data queue has reached a preset length threshold, a new data queue is generated according to the device control word as the queue name, and the new data queue is used as the target data queue;

[0123] If there is more than one corresponding data queue, the data queue with the smallest queue length is selected as the target data queue;

[0124] If there is no corresponding data queue, a new data queue is generated according to the device control word as the queue name, and the new data queue is used as the target data queue.

[0125] In this embodiment, the distributed server module is specifically used for:

[0126] Searching for a first data queue and a first service in each distributed server according to the device control word, and calculating resource processing time consumption according to a queue length of the first data queue and a service running time;

[0127] A distributed server with the shortest resource processing time is selected as a target distributed server, and the target data queue is allocated to the target distributed server.

[0128] In this embodiment, the data interaction module is specifically used to:

[0129] Establish a connection with the incoming equipment according to the incoming information, the incoming information including the equipment name, equipment number, equipment IP address, equipment communication port number, equipment type, equipment model and affiliated operation and maintenance team;

[0130] The data of the storage device is regularly summoned according to a preset period to collect the interaction information of the storage device, wherein the interaction information includes device messages.

[0131] Please refer to Figure 4 , Figure 4 A flowchart of a data interaction method provided by an embodiment of the present invention.

[0132] In this embodiment, a data interaction method provided by the embodiment of the present invention is applicable to a distributed communication device.

[0133] Step 1: The user adds a new device to the management interface. The user needs to manually enter the device information or use other methods to enter the device information, mainly including the device communication address, IP, port, protocol, etc.

[0134] Step 2: The system reads the device library data every few seconds, takes out the recorded devices that are offline, and then initiates a network link to the offline and recorded devices every few seconds through the data interaction service according to the IP and port of the offline and recorded devices, until receiving the response link success message fed back by the device, and modifies the device connection status information;

[0135] Step 3: The system reads the device library data every few seconds and retrieves the information of all online devices. Then, the system sends a general call command regularly through the data interaction service based on the communication protocol, IP, port and other information of the device.

[0136] Step 4: If the device receives a general call command sent by the system, the device immediately responds to the general call command by first sending a message indicating that the general call command has been received, and then collecting information according to the general call command, and then sending a general call data message to the system after summarizing it;

[0137] Step 5: After receiving the data from the general call or the data uploaded by the device, the data interaction service in the system will immediately push the data to the business process;

[0138] Step 6: The business process in the system listens to the data pushed by the data interaction service. If the data is pushed, the business process will parse, process, and store the data. Then the business process will feed back the data processing results to the data interaction service.

[0139] Step 7: After pushing data to the business process, the data interaction service in the system will monitor the returned processing result data. If the returned result information is monitored, the data interaction service will feed back the result data to the device through the protocol to complete the general call closed loop;

[0140] Step 8: Users can query other contents of the device on the interface, such as querying device status, device parameters, device information, modifying device parameters, device patrol settings, remote device upgrade, etc.;

[0141] Step 9: The system generates operation instructions based on the deployment of the user's operation on the interface, and then the system's business process sends the operation instructions to the data interaction service, and finally the data interaction service sends the operation instructions to the device;

[0142] Step 10: If the device receives the operation instruction, it will respond immediately by first sending a message indicating that the operation instruction has been received, and then the device will immediately install the operation instruction to operate the device, and finally the device will feedback the result;

[0143] Step 11: After receiving the device operation instruction result feedback message, the data interaction service will immediately push the message to the business process;

[0144] Step 12: The business process will parse the device operation result message received from the data interaction service, store it in the database, and feedback the device processing result to the user, and push the information of the received device processing result to the data interaction service;

[0145] Step 13: After receiving the information from the business process, the data interaction service sends the data to the device;

[0146] Step 14: The device receives the return information and confirms that the processing result information has been received to complete the closed loop. If no feedback information is received or the received information is not received, the device resends the processing result feedback information and starts the cycle from step 10 to step 14 until the loop is closed.

[0147] In this embodiment, the device control word is used to match the device message to the target data queue, and the resource processing time of each distributed server is calculated based on the device control word, so as to monitor the resource usage on each distributed server, and allocate the target distributed server to process the device message, so as to avoid a large proportion of server resource usage for device message matching, and process the device message matching process according to the resource usage of the server, reduce the message processing time, and improve the message processing efficiency.

[0148] In an embodiment of the present invention, a multi-device access platform processing device is also provided, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, the above-mentioned multi-device access platform processing method is implemented.

[0149] In an embodiment of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the above-mentioned multi-device access platform processing method.

[0150] Exemplarily, the computer program may be divided into one or more modules, one or more modules are stored in a memory and executed by a processor to implement the present invention. One or more modules may be a series of computer program instruction segments capable of implementing specific functions, and the instruction segments are used to describe the execution process of the computer program in the multi-device access platform processing device.

[0151] The multi-device access platform processing device may be a computing device such as a desktop computer, a notebook, a PDA, and a cloud server. The multi-device access platform processing device may include, but is not limited to, a processor, a memory, and a display. Those skilled in the art will appreciate that the above components are merely examples of the multi-device access platform processing device and do not constitute a limitation on the multi-device access platform processing device. It may include more or fewer components than the components, or a combination of certain components, or different components. For example, the multi-device access platform processing device may also include input and output devices, network access devices, buses, and the like.

[0152] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the multi-device access platform processing device, and uses various interfaces and lines to connect various parts of the entire multi-device access platform processing device.

[0153] The memory can be used to store computer programs and / or modules. The processor realizes various functions of the multi-device access platform processing device by running or executing the computer programs and / or modules stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, a text conversion function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, text message data, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0154] Among them, if the module based on the processing of the multi-device access platform is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0155] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.

Claims

1. A distributed communication method, characterized in that: include: Establishing a connection with the storage device according to the storage information, and performing a data call on the storage device according to a preset period; Acquire the device message summoned from the storage device, and store the device message in the target data queue of the management server; Calculating resource processing time of each distributed server according to the device control word, and allocating the target data queue to the target distributed server according to the resource processing time; The device message is parsed and service processed according to the target distributed server, and the processing result is fed back to the storage device.

2. A distributed communication method as claimed in claim 1, characterized in that: The acquiring of the device message of the storage device and storing the device message in the target data queue of the management server according to the device control word is specifically as follows: Obtaining a device message of the storage device, and obtaining a device control word according to the device message; A target data queue is matched in all data queues of the management server according to the device control word, and the device message is stored in the target data queue of the management server.

3. A distributed communication method as claimed in claim 2, characterized in that: The matching of the target data queue in all data queues of the management server according to the device control word is specifically: Searching for a data queue whose queue name corresponds to the device control word in all data queues of the management server; If there is a corresponding data queue, and the queue length of the data queue does not reach the preset length threshold, then the data queue is the target data queue; If there is a corresponding data queue, and the queue length of the data queue has reached a preset length threshold, a new data queue is generated according to the device control word as the queue name, and the new data queue is used as the target data queue; If there is more than one corresponding data queue, the data queue with the smallest queue length is selected as the target data queue; If there is no corresponding data queue, a new data queue is generated according to the device control word as the queue name, and the new data queue is used as the target data queue.

4. A distributed communication method according to any one of claims 1 to 3, characterized in that: The calculating the resource processing time of each distributed server according to the device control word, and allocating the target data queue to the target distributed server according to the resource processing time, is specifically: Searching for the first data queue and the first service in each distributed server according to the device control word, and calculating the resource processing time according to the queue length of the first data queue and the running time of the first service; A distributed server with the shortest resource processing time is selected as a target distributed server, and the target data queue is allocated to the target distributed server.

5. A distributed communication method according to any one of claims 1 to 3, characterized in that: The step of establishing a connection with the storage device according to the storage information and calling the storage device for data according to a preset period is as follows: Establish a connection with the incoming equipment according to the incoming information, the incoming information including the equipment name, equipment number, equipment IP address, equipment communication port number, equipment type, equipment model and affiliated operation and maintenance team; The data of the storage device is regularly summoned according to a preset period to collect the interaction information of the storage device, wherein the interaction information includes device messages.

6. A distributed communication device, characterized in that: include: Data interaction module, management server module, distributed server module and business processing module; The data interaction module is used to establish a connection with the storage device according to the storage information, and to perform data calling on the storage device according to a preset period; The management server module is used to obtain the device message summoned from the storage device and store the device message in the target data queue of the management server; The distributed server is used to calculate the resource processing time of each distributed server according to the device control word, and allocate the target data queue to the target distributed server according to the resource processing time; The business processing module is used to parse and process the device message according to the target distributed server, and feed back the processing result to the storage device.

7. A distributed communication device as claimed in claim 6, characterized in that: The management server module is specifically used for: Obtaining a device message of the storage device, and obtaining a device control word according to the device message; A target data queue is matched in all data queues of the management server according to the device control word, and the device message is stored in the target data queue of the management server.

8. A distributed communication device as claimed in claim 7, characterized in that: The management server module is further specifically used for: Searching for a data queue whose queue name corresponds to the device control word in all data queues of the management server; If there is a corresponding data queue, and the queue length of the data queue does not reach the preset length threshold, then the data queue is the target data queue; If there is a corresponding data queue, and the queue length of the data queue has reached a preset length threshold, a new data queue is generated according to the device control word as the queue name, and the new data queue is used as the target data queue; If there is more than one corresponding data queue, the data queue with the smallest queue length is selected as the target data queue; If there is no corresponding data queue, a new data queue is generated according to the device control word as the queue name, and the new data queue is used as the target data queue.

9. A distributed communication device according to any one of claims 6 to 8, characterized in that: The distributed server module is specifically used for: Searching for a first data queue and a first service in each distributed server according to the device control word, and calculating resource processing time consumption according to a queue length of the first data queue and a service running time; A distributed server with the shortest resource processing time is selected as a target distributed server, and the target data queue is allocated to the target distributed server.

10. A distributed communication device according to any one of claims 6 to 8, characterized in that: The data interaction module is specifically used for: Establish a connection with the incoming equipment according to the incoming information, the incoming information including the equipment name, equipment number, equipment IP address, equipment communication port number, equipment type, equipment model and affiliated operation and maintenance team; The data of the storage device is regularly summoned according to a preset period to collect the interaction information of the storage device, wherein the interaction information includes device messages.