Multi-protocol fusion soft bus communication data processing method
Through the soft bus communication data processing method of multi-protocol convergence, communication priority in multi-protocol environments is dynamically adjusted and optimized, which solves the problem of difficult to quickly adapt to dynamic production needs in the prior art, and realizes efficient and flexible communication management.
Patent Information
- Application Number
- CN202411986312.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2044-12-31
AI Technical Summary
In industrial Internet of Things applications, it is difficult for multi-protocol communication systems to dynamically adjust and optimize communication priorities, resulting in uneven resource allocation and increased communication delays in the face of dynamic production demands, affecting overall efficiency.
The soft bus communication data processing method of multi-protocol fusion is adopted. By obtaining the device location, the device topology diagram is generated, the protocol service components are loaded, the device topology diagram is split, the device topology diagram is generated, and the virtual protocol line is connected to the soft bus. Generate protocol priority policies and device priority policies based on the user's positioning information, and dynamically adjust the protocol updates of protocol service components.
It realizes dynamic adjustment of communication priority in a multi-protocol environment, improves the flexibility and scalability of the system, can quickly adapt to changes in different industrial scenarios, reduces uneven resource allocation and communication delay, and improves communication efficiency and reliability.
Smart Images

Figure CN119892642A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to data processing technology, and in particular to a multi-protocol fused soft bus communication data processing method. Background Art
[0002] In today's industrial IoT applications, devices and systems in factories and enterprises need to be able to communicate reliably and efficiently. To achieve this goal, it is usually necessary to integrate multiple communication protocols in one system. However, the increase in the number of devices and systems has led to an increase in communication complexity and management difficulties, especially in environments that require real-time processing and highly reliable data exchange.
[0003] Current multi-protocol communication systems usually use pre-configured static converters or gateways to bridge devices with different protocols. Although this method can solve the problem of multi-protocol compatibility to a certain extent, its flexibility and scalability are poor. In addition, statically configured systems are difficult to adapt quickly when faced with dynamic production needs, resulting in uneven resource allocation and increased communication delays, affecting overall efficiency.
[0004] Therefore, how to dynamically adjust and optimize the communication priority in a multi-protocol environment so as to quickly and flexibly adapt to changing communication needs in different industrial scenarios. Summary of the invention
[0005] The embodiment of the present invention provides a multi-protocol integrated soft bus communication data processing method, which can dynamically adjust and optimize the communication priority in a multi-protocol environment so as to quickly and flexibly adapt to changing communication needs in different industrial scenarios.
[0006] A first aspect of an embodiment of the present invention provides a multi-protocol fusion soft bus communication data processing method, comprising: Acquire a first position of a first device, generate a device topology map according to the first position, and load a corresponding protocol service component according to a protocol identifier of the first device and arrange the component into a soft bus; Splitting the device topology map based on the same protocol identifier of the first device to obtain protocol sub-topology maps corresponding to each of the protocol identifiers, and generating virtual protocol lines corresponding to the protocol sub-topology maps and connected to the soft bus; Generate a protocol priority strategy based on the positioning information of each virtual protocol line and the protocol sub-topology map by the user end, and generate a device priority strategy based on the division information of each first device in the protocol sub-topology map by the user end; The communication level of each of the first devices is obtained based on the protocol priority policy and the device priority policy, and the protocol service component is updated according to the communication level.
[0007] Optionally, in a possible implementation manner of the first aspect, the loading a corresponding protocol service component according to the protocol identifier of the first device and composing it into the soft bus includes: Traversing a preset component library according to the protocol identifier of the first device, and determining a protocol service component corresponding to the protocol identifier of the first device as a target service component; Loading the target service component to be arranged into a soft bus, wherein the preset component library corresponds to the soft bus one by one; The device topology map is split based on the same protocol identifier of the first device to obtain a protocol sub-topology map corresponding to each protocol identifier, including: Classifying the first devices having the same protocol identifier to obtain a device set corresponding to each protocol identifier; Determine a first device outside the device set as a split device, delete the split device in the device topology map, and obtain an initial topology map corresponding to the device set; The initial topology graph is merged to obtain a protocol sub-topology graph.
[0008] Optionally, in a possible implementation manner of the first aspect, the merging the initial topology graph to obtain a protocol sub-topology graph includes: Obtaining a first square area according to the first position of each first device in the initial topology map; Taking the corresponding first square area as the center, determining other first square areas closest to the first square area in each preset orientation as second square areas, wherein the preset orientation includes a vertical orientation and a horizontal orientation, the vertical orientation includes an upper orientation and a lower orientation, and the horizontal orientation includes a left orientation and a right orientation; Acquire distance information between the first square area and the second square area, and when the distance information is greater than a preset distance, use the corresponding second square area as a third square area; Determine an area between the first square area and the third square area as a cropping area; The cropping area is cropped to obtain a protocol sub-topology map.
[0009] Optionally, in a possible implementation manner of the first aspect, determining an area between the first square area and the third square area as a cropping area includes: Determining a relative orientation relationship between the third rectangular area and the first rectangular area; When the relative orientation relationship is the upward orientation, the upper edge line of the first square area is determined and extended to obtain a first cutting line, and the lower edge line of the third square area is determined and extended to obtain a second cutting line; When the relative orientation relationship is the downward orientation, the lower edge line of the first square area is determined and extended to obtain a first cutting line, and the upper edge line of the third square area is determined and extended to obtain a second cutting line; When the relative orientation is the left orientation, the left edge line of the first square area is determined and extended to obtain a first cutting line, and the right edge line of the third square area is determined and extended to obtain a second cutting line; When the relative orientation is right, the right edge line of the first square area is determined and extended to obtain a first cutting line, and the left edge line of the third square area is determined and extended to obtain a second cutting line; The area between the first cutting line and the second cutting line is used as the cutting area.
[0010] Optionally, in a possible implementation manner of the first aspect, the step of generating a virtual protocol line corresponding to the protocol sub-topology graph and connected to the soft bus includes: Constructing a horizontal virtual soft bus corresponding to the soft bus, and generating protocol level slots in sequence according to the level order of protocol priority under the horizontal virtual soft bus, wherein the protocol level slots correspond to the protocol priorities one by one; Generate a virtual protocol line corresponding to the protocol sub-topology graph, and connect the protocol sub-topology graph to the lower endpoint of the virtual protocol line; The generating of the protocol priority strategy according to the positioning information of each of the virtual protocol lines and the protocol sub-topology graph by the user terminal includes: Receiving positioning information of the upper endpoint of the virtual protocol line from the user end, and determining a protocol level slot having a connection relationship as a target level slot according to the positioning information; Acquire the protocol priority corresponding to the target level slot as the protocol priority strategy of the virtual protocol line; Generating a device priority strategy according to the division information of each first device in the protocol sub-topology diagram by the user end includes: Generate a plurality of initial dividing lines according to the string line trace of the first device corresponding to the protocol sub-topology diagram by the user end; Based on the device priority configuration information of each of the dividing lines at the user end, updating the pixel value of the initial dividing line to obtain dividing information, wherein the device priority corresponds to the pixel value one by one; A device priority policy for each of the first devices is generated according to the device priority of the divided information.
[0011] Optionally, in a possible implementation manner of the first aspect, obtaining a communication level of each of the first devices based on the protocol priority policy and the device priority policy, and performing a protocol update on the protocol service component according to the communication level includes: Using the protocol priority in the protocol priority policy as the first priority of each of the first devices, and using the device priority in the device priority policy as the second priority of each of the first devices; determining a first communication level of the first device according to the first priority, and determining a second communication level of the first device according to the second priority; The communication level of each of the first devices is obtained based on the order of the first communication level and the second communication level, and the protocol of the protocol service component is updated according to the communication level.
[0012] Optionally, in a possible implementation of the first aspect, the method further includes: Pre-configure an interactive plug-in for each first device, wherein the interactive plug-in is used to count a first time of a sent data packet and a second time of a received data packet; The interactive plug-in generates a data interaction table, wherein the data interaction table has a data sending cell and a data receiving cell; When determining that the first device sends a data packet, the interactive plug-in extracts the data tag and data time of the sent data packet and stores them in the sending cell; when receiving the data packet received by the first device, the interactive plug-in extracts the data tag and data time of the received data packet and stores them in the receiving cell; After a preset time period, the coordination plug-in interacts with the interaction plug-ins of all first devices to extract a corresponding data interaction table, and generates a corresponding soft bus processing strategy based on the data interaction table, the first priority, and the second priority.
[0013] Optionally, in a possible implementation of the first aspect, after the preset time period, the coordination plug-in interacts with the interaction plug-ins of all first devices to extract a corresponding data interaction table, and generates a corresponding soft bus processing strategy based on the data interaction table, the first priority, and the second priority, including: The coordination plug-in sorts all first devices once based on the first priority to obtain a first sequence, and sorts the first devices with the same first priority again based on the second priority to obtain a second sequence after being sorted twice; The coordination plug-in sequentially selects the data interaction tables of all first devices in the second sequence as the main data interaction table, and determines the associated data interaction tables of other first devices according to the data tags respectively contained in the sending cell and the receiving cell; Based on the analysis of the data moments of the same data tags in the main data interaction table and the associated data interaction table, a soft bus delay coefficient and a corresponding soft bus processing strategy are generated.
[0014] Optionally, in a possible implementation of the first aspect, the analyzing the data moments of the same data tags in the main data interaction table and the associated data interaction table to generate the soft bus delay coefficient and the corresponding soft bus processing strategy includes: Extract the data time of the same data label in the main data interaction table and the associated data interaction table, and calculate to obtain the difference time; The comprehensive priority is obtained by multiplying the priority values of the first priority and the second priority corresponding to the master data interaction table and the associated data interaction table respectively. The first priority and the second priority of each master data interaction table and the associated data interaction table respectively correspond to the preset priority values, and the priority is proportional to the priority value; If the difference time is greater than or equal to the threshold time, a data delay sub-coefficient is obtained by performing a comprehensive calculation based on the difference time, the comprehensive priority of the main data interaction table, and the comprehensive priority of the associated data interaction table; All data delay sub-coefficients are summarized to generate a soft bus delay coefficient, and the recommended data transmission volume corresponding to the soft bus processing strategy is determined based on the current data transmission volume of the soft bus.
[0015] If the difference time is greater than or equal to the threshold time, a data delay sub-coefficient is obtained by comprehensive calculation based on the difference time, the comprehensive priority of the main data interaction table, and the comprehensive priority of the associated data interaction table, including: Optionally, in a possible implementation manner of the first aspect, the data delay sub-coefficient is calculated by the following formula: in, In the master data interaction table The data delay sub-coefficient of each data tag is In the master data interaction table The data time of each data label, For the linked data interaction table The data time of each data label, is the time normalized value, The first priority of the first device corresponding to the master data interaction table, The second priority of the first device corresponding to the master data interaction table, is the main interaction weight, is the first priority of the first device corresponding to the association data interaction table, is the second priority of the first device corresponding to the association data interaction table, is the association interaction weight, Priority normalization value; After determining the data delay sub-coefficient, the corresponding first Data tags are deleted and updated; After determining that no data label exists in all data interaction tables in the second sequence, the calculation of the data delay sub-coefficient is stopped; The step of aggregating all data delay sub-coefficients to generate a soft bus delay coefficient and determining a recommended data transmission volume corresponding to the soft bus processing strategy based on the current data transmission volume of the soft bus includes: The soft bus delay coefficient is calculated by the following formula: in, is the soft bus delay coefficient, is the upper limit of the data delay sub-coefficient, is a constant value, For the recommended data transfer amount, is the current data transmission volume of the soft bus, is the preset value, Recommends a weight for the amount of data transferred.
[0016] The present invention proposes a soft bus communication data processing method based on multi-protocol fusion. By generating a topological diagram of the device and loading the corresponding protocol service component according to the protocol identifier, the method realizes the intercommunication and interconnection of different protocol devices on the same soft bus. This design not only greatly reduces the dependence on hardware protocol converters, but also improves the scalability and compatibility of the system, and can quickly integrate new devices and protocols without changing the system structure.
[0017] The present invention allows users to adjust the communication priority of devices and protocols through a visual interface. Users can drag virtual protocol lines on the interface to adjust the priority of protocols in an intuitive way, and quickly set device priorities through dividing lines. Combining the priority strategies of protocols and devices, the system can optimize the order of data transmission and resource allocation, improving the efficiency and reliability of communication.
[0018] The present invention collects and analyzes data exchange between devices in real time through the cooperation of interactive plug-ins and coordination plug-ins, and dynamically generates soft bus processing strategies. The system can automatically calculate and adjust the recommended data transmission volume of the soft bus according to the priority strategy and real-time data analysis, reduce communication delay, and enhance the network's adaptive ability and overall performance. This intelligent strategy generation mechanism ensures the efficient operation of the system in different production scenarios and improves management efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 It is a flowchart of a multi-protocol fusion soft bus communication data processing method provided by an embodiment of the present invention; Figure 2 It is a schematic diagram of a data interaction table provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0020] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0021] See also Figure 1 , is a flow chart of a multi-protocol fusion soft bus communication data processing method provided by an embodiment of the present invention, Figure 1 The execution subject of the method shown may be a software and / or hardware device. The execution subject of the present application may include but is not limited to at least one of the following: user equipment, network equipment, etc. Among them, user equipment may include but is not limited to computers, smart phones, personal digital assistants (PDA) and the electronic devices mentioned above. Network equipment may include but is not limited to a single network server, a server group consisting of multiple network servers, or a cloud based on cloud computing consisting of a large number of computers or network servers, wherein cloud computing is a type of distributed computing, a super virtual computer composed of a group of loosely coupled computers. This embodiment does not limit this. It includes steps S1 to S4, as follows: S1, obtaining a first position of a first device, generating a device topology map according to the first position, and loading a corresponding protocol service component according to a protocol identifier of the first device and choreographing it into a soft bus.
[0022] First, the necessity of this solution is explained. In actual applications, a factory may include hundreds or thousands of devices that need to be controlled, and a large number of devices may communicate with one or more soft buses. However, under different production strategies, the communication priorities of the corresponding protocols or devices may be different to meet the communication needs of users when performing production tasks. For example, the communication priority of data protocol A may need to be greater than that of data protocol B, and the communication priorities of different devices in data protocol A may also be different, so they need to be set. In order to enable users to adjust communication priorities quickly and efficiently, this solution sets a visual adjustment strategy, see below for details.
[0023] This step requires obtaining the location information of the first device. This location can be a physical location, such as where in the factory. Obtaining the location of the device helps the user to make subsequent visual adjustments based on the location of the device. Using the obtained location information, the system generates a device topology map. This topology map shows the layout and connection relationship of the devices in the factory, which helps to understand the location relationship between the devices.
[0024] Each device has its own protocol identifier, indicating the type of communication protocol used by the device (for example, TCP / IP, HTTP, Modbus, etc.). Based on this protocol identifier, the system loads the corresponding protocol service component from the preset component library. Then, these components are arranged on the soft bus, so that devices with different protocols can also communicate through the soft bus.
[0025] Based on the above embodiment, the specific implementation of step S1 may be: S11, traverse the preset component library according to the protocol identifier of the first device, and determine the protocol service component corresponding to the protocol identifier of the first device as the target service component.
[0026] The present disclosure will traverse the internal preset component library, which contains service components of various protocols. The system searches and determines the corresponding protocol service component as the target service component according to the protocol identifier of the first device. After finding the target service component, the system loads it and arranges it on the soft bus. Because each component in the preset component library corresponds to the soft bus one by one, the loaded component can be correctly connected to the soft bus, so that the device can communicate with other devices through the soft bus.
[0027] S11, loading the target service component into the soft bus, wherein the preset component library corresponds to the soft bus one by one.
[0028] The present disclosure can identify the protocol identifiers of different devices and dynamically load the corresponding protocol service components. This enables devices with different communication protocols to interconnect on the same soft bus, solving the problem that devices with different protocols cannot communicate directly in traditional systems. Due to the componentized design, when a new device is connected, it only needs to add the corresponding protocol service component to the component library without changing the overall system architecture. This makes the system have good scalability and compatibility with new protocols and new devices.
[0029] By generating a device topology diagram, the system can intuitively display the layout and connection relationship of the device, making it easier for operation and maintenance personnel to manage. At the same time, the multi-protocol fusion method reduces the dependence on hardware such as protocol converters, reducing hardware costs and maintenance difficulties.
[0030] S2, splitting the device topology map based on the same protocol identifier of the first device to obtain protocol sub-topology maps corresponding to each protocol identifier, and generating virtual protocol lines corresponding to the protocol sub-topology maps and connected to the soft bus.
[0031] Based on the above embodiment, in order to better manage and adjust the communication priorities of devices with different protocols, the system needs to split the device topology map, generate protocol sub-topology maps corresponding to each protocol identifier, and virtual protocol lines connected to the soft bus.
[0032] On the basis of the above embodiment, the device topology map is split based on the same protocol identifier of the first device to obtain a protocol sub-topology map corresponding to each protocol identifier, including: S21, classifying the first devices having the same protocol identifier to obtain a device set corresponding to each protocol identifier.
[0033] First, all devices are classified according to their protocol identifiers. First devices with the same protocol identifier are classified into the same device set. In this way, a device set corresponding to each protocol identifier is obtained, which is convenient for subsequent topology map splitting.
[0034] S22, determining a first device outside the device set as a split device, deleting the split device in the device topology map, and obtaining an initial topology map corresponding to the device set.
[0035] For each device set, the system regards devices that do not belong to the set as split devices. By deleting these split devices from the original device topology map, the initial topology map of the corresponding device set is obtained. The initial topology map only contains devices with the same protocol identifier and their connection relationships.
[0036] S23, merging the initial topology graph to obtain a protocol sub-topology graph.
[0037] The present disclosure takes into account that the distribution locations of devices under the same data protocol may be relatively scattered, resulting in more blank areas in the initial topology map. Therefore, the present disclosure needs to merge the initial topology map to reduce the size of the topology map and form a clearer and more concise protocol sub-topology map. The protocol sub-topology map only contains devices using the same protocol.
[0038] The merging process of the initial topology graph to obtain the protocol sub-topology graph includes: S231, obtaining a first square area according to the first position of each first device in the initial topology map;
[0039] The present disclosure generates a first square area containing the device based on the location information of each first device. These square areas represent the location and occupied space of the device in the initial topology map. To generate a first square area containing the device, a rectangle that completely encloses the image of the first device can be determined. For example, the top, bottom, left, and optimal positions of the image of the first device can be determined, and then a top horizontal line, a bottom horizontal line, a leftmost horizontal line, and a rightmost horizontal line are generated to finally form a rectangle.
[0040] S232, taking the corresponding first square area as the center, determine other first square areas closest to the first square area in each preset orientation as second square areas, the preset orientation includes a vertical orientation and a horizontal orientation, the vertical orientation includes an upper orientation and a lower orientation, and the horizontal orientation includes a left orientation and a right orientation.
[0041] For each first square area, this solution will search for other first square areas that are closest to it in a preset direction (including four directions: up, down, left, and right) as the second square area. This process is used to determine the relative position relationship between devices.
[0042] S233, obtaining distance information between the first square area and the second square area, and when the distance information is greater than a preset distance, using the corresponding second square area as a third square area.
[0043] The distance between the first square area and the second square area in each direction is calculated. If the distance is greater than a preset threshold (i.e., the preset distance), it is considered that there is an excessively large blank area between the two areas. At this time, the corresponding second square area is marked as a third square area and needs to be cropped.
[0044] S234: Determine an area between the first square area and the third square area as a cropping area.
[0045] The space area between the second square area marked as the third square area and the corresponding first square area is defined as the clipping area. These clipping areas contain the redundant blank parts that need to be removed in the initial topology map.
[0046] S235, performing a cropping process on the cropping area to obtain a protocol sub-topology map.
[0047] The determined cropping area is cropped to remove the redundant blank area. After cropping, the size of the topology map can be reduced, and finally, a more compact and clear protocol sub-topology map is obtained.
[0048] The step of determining the area between the first square area and the third square area as the cropping area includes: S2341, determining the relative orientation relationship between the third square area and the first square area.
[0049] Determine whether the third square area (i.e., the square area farther from the first square area) is above, below, left, or right relative to the first square area. Calculate their relative positions on a two-dimensional plane (e.g., the X-axis and the Y-axis) based on the coordinates of the first square area and the third square area (e.g., the center point coordinates). Determine the orientation of the third square area relative to the first square area by comparing the coordinate difference between the X-axis and the Y-axis.
[0050] S2342, when the relative orientation relationship is the upper orientation, determine the upper edge line of the first square area and extend it to obtain a first cutting line, and determine the lower edge line of the third square area and extend it to obtain a second cutting line.
[0051] When the third rectangular area is above the first rectangular area, determine the upper edge of the first square area, take the upper edge of the first square area as the starting point, and extend infinitely to the left and right sides (positive and negative directions of the X axis) to form a horizontal first cutting line. Determine the lower edge of the third rectangular area, take the lower edge of the third rectangular area, and extend to the left and right sides to form another horizontal second cutting line. The area between the first cutting line and the second cutting line is the area to be cut (located between the two lines in the Y axis direction).
[0052] S2343, when the relative orientation relationship is the downward orientation, determine the lower edge line of the first square area and extend it to obtain a first cutting line, and determine the upper edge line of the third square area and extend it to obtain a second cutting line.
[0053] When the third square area is located below the first square area, the lower edge line of the first square area is determined, and the lower edge of the first square area is taken and extended to the left and right to form a first cutting line. The upper edge line of the third square area is determined, and the upper edge of the third square area is taken and extended to the left and right to form a second cutting line. The area between the two cutting lines is the part to be cut.
[0054] S2344, when the relative orientation relationship is the left orientation, determine the left edge line of the first square area and extend it to obtain a first cutting line, and determine the right edge line of the third square area and extend it to obtain a second cutting line.
[0055] The third square area is located on the left side of the first square area. Determine the left edge of the first square area, take the left edge of the first square area, extend it up and down (positive and negative directions of the Y axis), and form a vertical first cutting line. Determine the right edge of the third square area, take the right edge of the third square area, and extend it up and down to form the second cutting line. The area between the two cutting lines is the part that needs to be cut.
[0056] S2345, when the relative orientation relationship is the right orientation, determine the right edge line of the first square area and extend it to obtain a first cutting line, and determine the left edge line of the third square area and extend it to obtain a second cutting line.
[0057] The third square area is located on the right side of the first square area. The right edge line of the first square area is determined, and the right edge of the first square area is taken and extended upward and downward to form a first cutting line. The left edge line of the third square area is determined, and the left edge of the third square area is taken and extended upward and downward to form a second cutting line. The area between the two cutting lines is the part to be cut.
[0058] S2346: Use the area between the first cutting line and the second cutting line as the cutting area.
[0059] Determine the specific area to be cropped in order to remove the extra blank area in the initial topology map. According to the first cropping line and the second cropping line determined in the previous step, a rectangular area is formed between them. This rectangular area covers the blank space between the first square area and the third rectangular area. Crop the area to remove or reduce the blank space. Reposition the first square area and the third rectangular area so that they are closer in the new topology map and reduce unnecessary spacing.
[0060] The step of generating a virtual protocol line corresponding to the protocol sub-topology diagram and connected to the soft bus includes: S24, constructing a horizontal virtual soft bus corresponding to the soft bus, and generating protocol level slots in sequence according to the level order of protocol priority under the horizontal virtual soft bus, wherein the protocol level slots correspond to the protocol priorities one by one.
[0061] In order to intuitively display the priority relationship between protocols and the connection between devices and soft buses in the topology diagram, we need to build horizontal virtual soft buses, protocol level slots, and virtual protocol lines. This will make the structure of the topology diagram clearer and easier for users to understand and operate.
[0062] Build a horizontal virtual soft bus. Create a horizontal line representing the soft bus in the topology diagram as the backbone for all protocol connections. Generate protocol level slots. Generate multiple protocol level slots in the order of protocol priority from high to low below the horizontal virtual soft bus. Each slot corresponds to a protocol priority. Build multiple protocol level slots in the space below the virtual soft bus from left to right. Arrange the protocol level slots from left to right according to the protocol priority. The leftmost protocol level slot has the highest priority. Each slot can be distinguished by visual elements (such as borders and colors) and marked with the corresponding protocol priority. For example, if there are three protocol priorities: high, medium, and low, three protocol level slots are generated from left to right, corresponding to high priority, medium priority, and low priority, respectively.
[0063] S25, generating a virtual protocol line corresponding to the protocol sub-topology graph, and connecting the protocol sub-topology graph to the lower endpoint of the virtual protocol line.
[0064] A virtual protocol line is created for each protocol sub-topology, connecting the protocol sub-topology and the protocol level slot of the virtual soft bus, reflecting the connection relationship between the device and the soft bus.
[0065] For each protocol sub-topology, create a virtual protocol line perpendicular to the horizontal virtual soft bus. The lower endpoint of the virtual protocol line is connected to the corresponding protocol sub-topology. Connect the lower endpoint of the virtual protocol line to the center point of the upper edge of the corresponding protocol sub-topology, so that each protocol sub-topology has an indirect connection with the virtual soft bus through the virtual protocol line. For example, a protocol sub-topology A is connected to the horizontal virtual soft bus through a virtual protocol line 1, and the lower endpoint of virtual protocol line 1 is connected to sub-topology A.
[0066] The generating of the protocol priority strategy according to the positioning information of each of the virtual protocol lines and the protocol sub-topology graph by the user terminal includes: S27, receiving the positioning information of the upper endpoint of the virtual protocol line from the user end, and determining a protocol level slot having a connection relationship as a target level slot according to the positioning information.
[0067] The disclosure allows users to adjust the connection between the virtual protocol line and the protocol level slot through interactive methods (such as dragging), thereby determining the priority strategy of the protocol. The disclosure needs to have an interactive function to monitor the user's operation on the virtual protocol line in the front-end interface in real time. When the user drags the upper endpoint of the virtual protocol line, its new position and connection status are recorded. According to the connection status of the virtual protocol line and the protocol level slot, the priority strategy of the protocol is determined.
[0068] Determine which protocol level slot each virtual protocol line is currently connected to, thereby identifying the priority of the protocol. Capture the user's drag operation on the upper endpoint of the virtual protocol line, including the new coordinate position. Determine whether the upper endpoint of the virtual protocol line is within the range of a certain protocol level slot. If it is within the slot range, it is considered that the virtual protocol line has established a connection relationship with the slot. Set the protocol level slot with the connection relationship as the target level slot of the virtual protocol line. For example, if the user drags the upper endpoint of a virtual protocol line to the "medium priority" slot, the target level slot of the virtual protocol line is "medium priority".
[0069] S28, obtaining the protocol priority corresponding to the target level slot as the protocol priority strategy of the virtual protocol line.
[0070] Assign a clear protocol priority strategy to each virtual protocol line and the protocol sub-topology graph connected to it. Each protocol level slot predefines the corresponding protocol priority. According to the target level slot of the virtual protocol line, obtain its corresponding protocol priority. Assign the obtained protocol priority to the virtual protocol line. The priority policy of the virtual protocol line will be passed to the protocol sub-topology graph to which it is connected. If the target level slot connected to the virtual protocol line is "high priority", the protocol priority policy of the virtual protocol line and the protocol sub-topology graph below it will be "high priority". The present disclosure establishes an interactive mechanism that allows users to intuitively adjust the priority strategy of the protocol in the topology graph. The virtual protocol line connects the protocol sub-topology graph with the virtual soft bus, and the protocol level slots show different priority levels. Such a design improves the readability and operability of the topology graph, and is helpful for network management and optimization.
[0071] S3, generating a protocol priority strategy according to the positioning information of each virtual protocol line and the protocol sub-topology map by the user end, and generating a device priority strategy according to the division information of each first device in the protocol sub-topology map by the user end.
[0072] In the network topology, in order to achieve more sophisticated traffic control and resource allocation, we need to set priority policies not only at the protocol level but also at the device level. By allowing users to divide devices in the protocol sub-topology, we can generate device priority policies to optimize network performance.
[0073] Generating a device priority strategy according to the division information of each first device in the protocol sub-topology diagram by the user end includes: S31, generating a plurality of initial dividing lines according to the string line trace of the user end corresponding to the first device in the protocol sub-topology diagram.
[0074] The user determines which devices the user wants to group to set different priorities through the string line trajectory drawn by the user on the protocol sub-topology map. The user draws a string line trajectory on the protocol sub-topology map by mouse or touch operation. From the starting point to the end point, the trajectory will pass through multiple first devices that the user wants to classify into the same priority group. The system captures the string line trajectory drawn by the user and converts it into an initial dividing line. Each initial dividing line represents a device priority group. For example, the user draws a curve from left to right on the protocol sub-topology map, and the curve passes through device A, device B, and device C in turn. The system recognizes the trajectory, generates an initial dividing line, and classifies devices A, B, and C into one group.
[0075] S32, based on the device priority configuration information of each of the dividing lines at the user end, updating the pixel value of the initial dividing line to obtain dividing information, wherein the device priority corresponds to the pixel value one by one.
[0076] Set specific priorities for device priority groups, allowing users to specify a device priority for each dividing line (device group). The user selects each initial dividing line on the interface and specifies a device priority for it, such as 1, 2, 3, etc., with 3 having a priority greater than 1. The system maps each device priority to a unique pixel value (or color value). Update the pixel values of the initial dividing lines to reflect the corresponding device priorities. This update of pixel values can be displayed intuitively on the interface, for example, different colors represent different priorities. The user sets the previously generated initial dividing line (including devices A, B, and C) to "3 priority". The system updates the pixel value of the dividing line to a specific color (such as red) representing "3 priority".
[0077] S33: Generate a device priority policy for each of the first devices according to the device priority of the divided information.
[0078] Apply device priority to specific devices, and generate corresponding priority policies for the devices included in the partition line based on the priority information of the partition line. The system checks whether each device is included or covered by a partition line. For devices included by a partition line, the system assigns the device priority of the partition line to the device. Associate the device with its priority policy and record it in the system configuration.
[0079] In other embodiments, for devices not included in any dividing line, the system may assign a default device priority, or allow the user to configure it individually. For example, devices A, B, and C are assigned a "3 priority" policy. Device D is not included in any dividing line, and the system sets a default "2 priority" policy for it.
[0080] By drawing dividing lines directly on the topology map, users can easily prioritize multiple devices, which enhances the intuitiveness and efficiency of configuration. Users can flexibly adjust the location of dividing lines and the devices covered according to network requirements. Use pixel values (or color values) to represent device priorities, which facilitates the intuitive display of different priority groups on the interface. The system can indicate the current priority setting in the form of color or mark on the device or dividing line. Set high priority for key devices to ensure the reliability and timeliness of their communication.
[0081] S4, obtaining the communication level of each of the first devices based on the protocol priority policy and the device priority policy, and performing protocol update on the protocol service component according to the communication level.
[0082] In order to optimize communication efficiency and resource allocation in a network system, it is necessary to comprehensively consider protocol priority and device priority to determine the overall communication level of each device. Then, based on these communication levels, the protocol service components are updated and adjusted accordingly.
[0083] The obtaining the communication level of each of the first devices based on the protocol priority policy and the device priority policy, and performing protocol updating on the protocol service component according to the communication level, comprises: S41, using the protocol priority in the protocol priority policy as the first priority of each of the first devices, and using the device priority in the device priority policy as the second priority of each of the first devices.
[0084] The present disclosure assigns a protocol priority and a device priority to each first device, respectively, so as to determine its communication level in subsequent steps. Protocol priority (first priority): According to the protocol priority policy, a corresponding protocol priority is assigned to each first device. The protocol priority may be based on different communication protocol types, such as TCP, UDP, HTTP, etc., and is sorted according to their importance or urgency. Device priority (second priority): According to the device priority policy, a corresponding device priority is assigned to each first device. The device priority may be adjusted by the user based on factors such as the importance, performance, and role of the device.
[0085] S42: Determine a first communication level of the first device according to the first priority, and determine a second communication level of the first device according to the second priority.
[0086] The first communication level refers to the level that needs to be judged first, that is, when there is a conflict in the transmission order between data packets during communication, the priority of the protocol needs to be judged first. For example, device A: protocol priority: high; device B: protocol priority: medium. Then the data of device A is transmitted first, and then the data of device B is transmitted.
[0087] The second communication level refers to the level that needs to be judged after the protocol level judgment, that is, when there is a conflict in the transmission order between data packets during communication, the protocol priority needs to be judged first. If the protocols are the same, the device priority needs to be judged second. For example, device A and device B both communicate using protocol 1, device A: device priority 1; device B: device priority 2. Then the data of device B is transmitted first, and then the data of device A is transmitted.
[0088] S43: Obtain the communication level of each of the first devices based on the order of the first communication level and the second communication level, and perform protocol update on the protocol service component according to the communication level.
[0089] In this way, the importance of protocols and devices is comprehensively considered to ensure that key protocols and key devices are given priority. A comprehensive evaluation from protocol priority and device priority to communication level is achieved, and the protocol service components are optimized and updated accordingly. This helps to meet the communication needs of different devices and protocols.
[0090] Based on the above embodiments, the present disclosure introduces a data collection and analysis mechanism, combined with the previous priority strategy, to form a complete network optimization process. The collaboration of the interactive plug-in and the coordination plug-in realizes real-time monitoring and dynamic optimization of network communications, improving the efficiency and reliability of the system. It also includes the following steps: S5, pre-configure an interaction plug-in for each first device, where the interaction plug-in is used to count a first time of a sent data packet and a second time of a received data packet.
[0091] By pre-installing the interactive plug-in on each first device, the time information of the device sending and receiving data packets is recorded in real time, which is convenient for subsequent analysis and optimization. When the plug-in detects that the device sends a data packet, the sending timestamp is recorded. When the plug-in detects that the device receives a data packet, the receiving timestamp is recorded.
[0092] S6, the interaction plug-in generates a data interaction table, wherein the data interaction table has a data sending cell and a data receiving cell.
[0093] See also Figure 2 , organizes the collected sending and receiving data into a structured form to facilitate subsequent data analysis and processing. The data interaction table is an information table that records the data sent and received by the device. The data sending cell stores the information of the sent data packet, including the data tag and the sending time. The data receiving cell stores the information of the received data packet, including the data tag and the receiving time. After detecting the sending or receiving event, the plug-in stores the corresponding information in the corresponding cell.
[0094] S7, when determining that the first device sends a data packet, the interactive plug-in extracts the data tag and data time of the sent data packet and stores them in the sending cell; when receiving the data packet received by the first device, the interactive plug-in extracts the data tag and data time of the received data packet and stores them in the receiving cell.
[0095] The data tag is an identifier used to uniquely identify a data packet. It can be a data packet's sequence number, hash value, source / destination address, etc. When the plug-in captures a data packet, it parses the packet header and extracts the data tag. Use system time or Network Time Protocol (NTP) to obtain an accurate timestamp. Send event: Add a row in the send cell to record the data tag and the send time. Receive event: Add a row in the receive cell to record the data tag and the receive time.
[0096] Example: Sending a data packet: Event: Device A sends data packet Packet1. Action: The plugin extracts the data tag of Packet1: "Packet1". Get the current timestamp: "2023-10-01 10:00:00". Record in the sending cell: Data tag: Packet1; Sending time: 2023-10-01 10:00:00; Receiving a data packet: Event: Device A receives data packet Packet2. Action: The plugin extracts the data tag of Packet2: "Packet2". Get the current timestamp: "2023-10-01 10:00:05". Record in the receiving cell: Data tag: Packet2; Received time: 2023-10-01 10:00:05.
[0097] S8, after a preset time period, the coordination plug-in interacts with the interaction plug-ins of all first devices to extract a corresponding data interaction table, and generates a corresponding soft bus processing strategy based on the data interaction table, the first priority, and the second priority.
[0098] The communication data of all first devices is collected regularly, and combined with the previously determined priorities, an optimized soft bus processing strategy is generated to improve the overall performance of the system. The coordination plug-in runs on the central server or management node, and is responsible for communicating with the interaction plug-ins of each device and collecting data. Every preset time period (for example, every 100 minutes), the coordination plug-in sends a request to each first device to obtain its data interaction table. The collected data interaction table is analyzed. Combined with the previously determined first priority (protocol priority) and second priority (device priority), the actual performance of each device and protocol is evaluated, and further adjustments are made.
[0099] Wherein, after the preset time period, the coordination plug-in interacts with the interaction plug-ins of all first devices to extract the corresponding data interaction table, and generates the corresponding soft bus processing strategy based on the data interaction table, the first priority and the second priority, including: S81, the coordination plug-in sorts all first devices based on the first priority to obtain a first sequence, and sorts the first devices with the same first priority again based on the second priority to obtain a second sequence after the two sorts.
[0100] In the previous steps, we collected data interaction tables on each first device through the interaction plug-in, which record the information of the data packets sent and received by the device. Now, in step S8, we need to generate corresponding soft bus processing strategies based on these data interaction tables and the first priority and second priority determined previously to optimize the communication performance of the entire system.
[0101] The present disclosure sorts the devices to clarify which devices need to be given priority in the soft bus processing strategy. The two sortings ensure that the priority of the device not only considers the importance of the protocol (first priority), but also the importance of the device itself (second priority). When sorting, it is necessary to first sort according to the first priority of the protocol dimension, and then sort again according to the second priority of the device dimension, so that a second sequence including all the first devices can be obtained. In the second sequence, the higher priority is in front, and the lower priority is in the back.
[0102] S82, the coordination plug-in sequentially selects the data interaction tables of all first devices in the second sequence as the main data interaction table, and determines the associated data interaction tables of other first devices according to the data tags respectively contained in the sending cell and the receiving cell.
[0103] The present disclosure selects an interaction table of a device as a main data interaction table to find other devices (associated devices) that have data interactions with the device so as to analyze their communication situations together.
[0104] From the sorted second sequence, select the interaction tables of the devices as the main data interaction tables according to the priority from high to low. For each main data interaction table, check the data tags in its sending cells and receiving cells. According to the same data tags, find the corresponding data interaction tables in other first devices. These tables are the associated data interaction tables. Collect the data interaction information between the main device and the associated devices, and prepare for subsequent analysis.
[0105] S83, analyzing the data moments of the same data tags in the master data interaction table and the associated data interaction table to generate a soft bus delay coefficient and a corresponding soft bus processing strategy.
[0106] By comparing the data time of the same data tag between the master device and the associated device, the performance indicators such as the delay of data transmission are calculated. Generate soft bus delay coefficient: Calculate the delay coefficient between devices to provide a basis for the optimization of soft bus processing strategy. Formulate optimization strategy: Based on the analysis results, generate the corresponding soft bus processing strategy to improve network performance.
[0107] The step of analyzing the data time of the same data tag in the main data interaction table and the associated data interaction table to generate a soft bus delay coefficient and a corresponding soft bus processing strategy includes: S831, extracting the data moments of the same data tags in the main data interaction table and the associated data interaction table for calculation to obtain the difference moments.
[0108] It can be understood that by comparing the data moments of the same data tag between the master device and the associated device, the delay time of the data packet transmission is obtained. In the master data interaction table and the associated data interaction table, find the data records with the same data tag. For each matching data tag, extract the sending or receiving moment of the master device, and the corresponding moment of the associated device. If the master device sends and the associated device receives: the difference moment is equal to the associated device receiving moment minus the master device sending moment; if the associated device sends and the master device receives, the difference moment is equal to the master device receiving moment minus the associated device sending moment.
[0109] S832, a comprehensive priority is obtained by multiplying the priority values of the first priority and the second priority corresponding to the master data interaction table and the associated data interaction table respectively. The first priority and the second priority of each master data interaction table and the associated data interaction table respectively correspond to preset priority values, and the priority is proportional to the priority value.
[0110] By comprehensively considering the protocol priority and device priority of the device, weights are assigned to subsequent calculations. Corresponding values are preset for each first priority and second priority. The higher the priority, the larger the value.
[0111] For the devices in the main data interaction table and the devices in the associated data interaction table, calculate their comprehensive priorities respectively. Comprehensive priority = first priority value × second priority value. For example, device B (associated device), first priority: 3 (value 3), second priority: 5 (value 5), comprehensive priority: 3 × 5 = 15.
[0112] S833: If the difference time is greater than or equal to the threshold time, a data delay sub-coefficient is obtained by performing a comprehensive calculation based on the difference time, the comprehensive priority of the main data interaction table, and the comprehensive priority of the associated data interaction table.
[0113] For data transmission with large delay, a delay sub-coefficient is calculated to reflect the combined impact of the delay degree and priority. A threshold is defined, and the delay sub-coefficient is calculated only when the difference time is greater than or equal to the threshold. For example, the threshold time is set to 5 seconds. For each calculated difference time, it is determined whether it is greater than or equal to the threshold time.
[0114] S834, summarizing all data delay sub-coefficients to generate a soft bus delay coefficient, and determining a recommended data transmission volume corresponding to the soft bus processing strategy based on the current data transmission volume of the soft bus.
[0115] Summarize the delay sub-coefficients to get the total delay coefficient, which reflects the comprehensive situation of the delay in the entire system. Determine the optimization strategy based on the delay coefficient and the current data transmission volume: provide a quantitative basis for the soft bus processing strategy and recommend a reasonable data transmission volume. Add all the calculated data delay sub-coefficients to get the soft bus delay coefficient. Count the current soft bus data transmission volume, such as the total amount of data transmission per unit time. Calculate the recommended data transmission volume based on the soft bus delay coefficient and the current data transmission volume. Based on the calculation results, formulate specific optimization measures, such as adjusting bandwidth allocation to improve the soft bus transmission throughput.
[0116] In the above embodiment, if the difference time is greater than or equal to the threshold time, a data delay sub-coefficient is obtained by comprehensive calculation based on the difference time, the comprehensive priority of the main data interaction table, and the comprehensive priority of the associated data interaction table, including: The data delay sub-coefficient is calculated by the following formula: in, In the master data interaction table The data delay sub-coefficient of each data tag is In the master data interaction table The data time of each data label, For the linked data interaction table The data time of each data label, is the time normalized value, The first priority of the first device corresponding to the master data interaction table, The second priority of the first device corresponding to the master data interaction table, is the main interaction weight, is the first priority of the first device corresponding to the association data interaction table, is the second priority of the first device corresponding to the association data interaction table, is the association interaction weight, Priority normalization value.
[0117] In the above formula, Represents the difference time. The larger its value is, the larger the corresponding data delay sub-coefficient is. Represents the priority calculation value corresponding to the master data interaction table. Represents the priority calculation value corresponding to the associated data interaction table, and then passes and The time normalization value, the priority normalization value, the main interaction weight and the associated interaction weight can be preset by the staff. The main interaction weight can be set to be greater than the associated interaction weight.
[0118] After determining the data delay sub-coefficient, the corresponding first Data labels are deleted and updated. It can be understood that this solution will delete and update the calculated data.
[0119] After determining that no data tag exists in all data interaction tables in the second sequence, the calculation of the data delay sub-coefficient is stopped. It can be understood that this solution needs to calculate all data tags.
[0120] The step of aggregating all data delay sub-coefficients to generate a soft bus delay coefficient and determining a recommended data transmission volume corresponding to the soft bus processing strategy based on the current data transmission volume of the soft bus includes: The soft bus delay coefficient is calculated by the following formula: in, is the soft bus delay coefficient, is the upper limit of the data delay sub-coefficient, is a constant value, For the recommended data transfer amount, is the current data transmission volume of the soft bus, is the preset value, Recommends a weight for the amount of data transferred.
[0121] In the above formula, the soft bus delay coefficient is a combination of the data delay sub-coefficients of multiple data tags in the main data interaction table. It can be understood that the larger the soft bus delay coefficient, the larger the recommended data transmission volume required, which can increase the data transmission volume of the soft bus and reduce the delay of data transmission. Among them, the recommended weight of data transmission volume can be preset by the staff.
[0122] The present invention also provides a readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, it is used to implement the methods provided by the various embodiments described above.
[0123] Among them, the readable storage medium can be a computer storage medium or a communication medium. The communication medium includes any medium that facilitates the transmission of a computer program from one place to another. The computer storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer. For example, a readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application-specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). In addition, the ASIC can be located in a user device. Of course, the processor and the readable storage medium can also exist in a communication device as discrete components. The readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0124] The present invention also provides a program product, which includes an execution instruction, which is stored in a readable storage medium. At least one processor of a device can read the execution instruction from the readable storage medium, and at least one processor executes the execution instruction so that the device implements the methods provided in the above various embodiments.
[0125] In the embodiments of the above-mentioned devices, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the present invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0126] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A multi-protocol fusion soft bus communication data processing method, characterized in that: include: Acquire a first position of a first device, generate a device topology map according to the first position, and load a corresponding protocol service component according to a protocol identifier of the first device and arrange the component into a soft bus; Splitting the device topology map based on the same protocol identifier of the first device to obtain protocol sub-topology maps corresponding to each of the protocol identifiers, and generating virtual protocol lines corresponding to the protocol sub-topology maps and connected to the soft bus; Generate a protocol priority strategy based on the positioning information of each virtual protocol line and the protocol sub-topology map by the user end, and generate a device priority strategy based on the division information of each first device in the protocol sub-topology map by the user end; The communication level of each of the first devices is obtained based on the protocol priority policy and the device priority policy, and the protocol service component is updated according to the communication level.
2. The method according to claim 1, characterized in that: The loading of the corresponding protocol service component according to the protocol identifier of the first device and arranging it into the soft bus includes: Traversing a preset component library according to the protocol identifier of the first device, and determining a protocol service component corresponding to the protocol identifier of the first device as a target service component; Loading the target service component to be arranged into a soft bus, wherein the preset component library corresponds to the soft bus one by one; The device topology map is split based on the same protocol identifier of the first device to obtain a protocol sub-topology map corresponding to each protocol identifier, including: Classifying the first devices having the same protocol identifier to obtain a device set corresponding to each protocol identifier; Determine a first device outside the device set as a split device, delete the split device in the device topology map, and obtain an initial topology map corresponding to the device set; The initial topology graph is merged to obtain a protocol sub-topology graph.
3. The method according to claim 2, characterized in that The merging process of the initial topology graph to obtain a protocol sub-topology graph includes: Obtaining a first square area according to the first position of each first device in the initial topology map; Taking the corresponding first square area as the center, determining other first square areas closest to the first square area in each preset orientation as second square areas, wherein the preset orientation includes a vertical orientation and a horizontal orientation, the vertical orientation includes an upper orientation and a lower orientation, and the horizontal orientation includes a left orientation and a right orientation; Acquire distance information between the first square area and the second square area, and when the distance information is greater than a preset distance, use the corresponding second square area as a third square area; Determine an area between the first square area and the third square area as a cropping area; The cropping area is cropped to obtain a protocol sub-topology map.
4. The method according to claim 3, characterized in that: The determining the area between the first square area and the third square area as the cropping area includes: Determining a relative orientation relationship between the third rectangular area and the first rectangular area; When the relative orientation relationship is the upward orientation, the upper edge line of the first square area is determined and extended to obtain a first cutting line, and the lower edge line of the third square area is determined and extended to obtain a second cutting line; When the relative orientation relationship is the downward orientation, the lower edge line of the first square area is determined and extended to obtain a first cutting line, and the upper edge line of the third square area is determined and extended to obtain a second cutting line; When the relative orientation is the left orientation, the left edge line of the first square area is determined and extended to obtain a first cutting line, and the right edge line of the third square area is determined and extended to obtain a second cutting line; When the relative orientation is right, the right edge line of the first square area is determined and extended to obtain a first cutting line, and the left edge line of the third square area is determined and extended to obtain a second cutting line; The area between the first cutting line and the second cutting line is used as the cutting area.
5. The method according to claim 1, characterized in that The step of generating a virtual protocol line corresponding to the protocol sub-topology diagram and connected to the soft bus includes: Constructing a horizontal virtual soft bus corresponding to the soft bus, and generating protocol level slots in sequence according to the level order of protocol priority under the horizontal virtual soft bus, wherein the protocol level slots correspond to the protocol priorities one by one; Generate a virtual protocol line corresponding to the protocol sub-topology graph, and connect the protocol sub-topology graph to the lower endpoint of the virtual protocol line; The generating of the protocol priority strategy according to the positioning information of each of the virtual protocol lines and the protocol sub-topology graph by the user terminal includes: Receiving positioning information of the upper endpoint of the virtual protocol line from the user end, and determining a protocol level slot having a connection relationship as a target level slot according to the positioning information; Acquire the protocol priority corresponding to the target level slot as the protocol priority strategy of the virtual protocol line; Generating a device priority strategy according to the division information of each first device in the protocol sub-topology diagram by the user end includes: Generate a plurality of initial dividing lines according to the string line trace of the first device corresponding to the protocol sub-topology diagram by the user end; Based on the device priority configuration information of each of the dividing lines at the user end, updating the pixel value of the initial dividing line to obtain dividing information, wherein the device priority corresponds to the pixel value one by one; A device priority policy for each of the first devices is generated according to the device priority of the divided information.
6. The method according to claim 5, characterized in that The obtaining the communication level of each of the first devices based on the protocol priority policy and the device priority policy, and performing protocol updating on the protocol service component according to the communication level, comprises: Using the protocol priority in the protocol priority policy as the first priority of each of the first devices, and using the device priority in the device priority policy as the second priority of each of the first devices; determining a first communication level of the first device according to the first priority, and determining a second communication level of the first device according to the second priority; The communication level of each of the first devices is obtained based on the order of the first communication level and the second communication level, and the protocol of the protocol service component is updated according to the communication level.
7. The method according to claim 6, characterized in that Also includes: Pre-configure an interactive plug-in for each first device, wherein the interactive plug-in is used to count a first time of a sent data packet and a second time of a received data packet; The interactive plug-in generates a data interaction table, wherein the data interaction table has a data sending cell and a data receiving cell; When determining that the first device sends a data packet, the interactive plug-in extracts the data tag and data time of the sent data packet and stores them in the sending cell; when receiving the data packet received by the first device, the interactive plug-in extracts the data tag and data time of the received data packet and stores them in the receiving cell; After a preset time period, the coordination plug-in interacts with the interaction plug-ins of all first devices to extract a corresponding data interaction table, and generates a corresponding soft bus processing strategy based on the data interaction table, the first priority, and the second priority.
8. The method according to claim 7, characterized in that After the preset time period, the coordination plug-in interacts with the interaction plug-ins of all first devices to extract a corresponding data interaction table, and generates a corresponding soft bus processing strategy based on the data interaction table, the first priority, and the second priority, including: The coordination plug-in sorts all first devices once based on the first priority to obtain a first sequence, and sorts the first devices with the same first priority again based on the second priority to obtain a second sequence after being sorted twice; The coordination plug-in sequentially selects the data interaction tables of all first devices in the second sequence as the main data interaction table, and determines the associated data interaction tables of other first devices according to the data tags respectively contained in the sending cell and the receiving cell; Based on the analysis of the data moments of the same data tags in the main data interaction table and the associated data interaction table, a soft bus delay coefficient and a corresponding soft bus processing strategy are generated.
9. The method according to claim 8, characterized in that The step of analyzing the data time of the same data tag in the main data interaction table and the associated data interaction table to generate a soft bus delay coefficient and a corresponding soft bus processing strategy includes: Extract the data time of the same data label in the main data interaction table and the associated data interaction table, and calculate to obtain the difference time; The comprehensive priority is obtained by multiplying the priority values of the first priority and the second priority corresponding to the master data interaction table and the associated data interaction table respectively. The first priority and the second priority of each master data interaction table and the associated data interaction table respectively correspond to the preset priority values, and the priority is proportional to the priority value; If the difference time is greater than or equal to the threshold time, a data delay sub-coefficient is obtained by performing a comprehensive calculation based on the difference time, the comprehensive priority of the main data interaction table, and the comprehensive priority of the associated data interaction table; All data delay sub-coefficients are summarized to generate a soft bus delay coefficient, and the recommended data transmission volume corresponding to the soft bus processing strategy is determined based on the current data transmission volume of the soft bus.
10. The method according to claim 9, characterized in that If the difference time is greater than or equal to the threshold time, a data delay sub-coefficient is obtained by comprehensive calculation based on the difference time, the comprehensive priority of the main data interaction table, and the comprehensive priority of the associated data interaction table, including: The data delay sub-coefficient is calculated by the following formula: in, In the master data interaction table The data delay sub-coefficient of each data tag is In the master data interaction table The data time of each data label, For the linked data interaction table The data time of each data label, is the time normalized value, The first priority of the first device corresponding to the main data interaction table, The second priority of the first device corresponding to the master data interaction table, is the main interaction weight, is the first priority of the first device corresponding to the association data interaction table, is the second priority of the first device corresponding to the association data interaction table, is the association interaction weight, Priority normalization value; After determining the data delay sub-coefficient, the corresponding first Data tags are deleted and updated; After determining that no data label exists in all data interaction tables in the second sequence, the calculation of the data delay sub-coefficient is stopped; The step of aggregating all data delay sub-coefficients to generate a soft bus delay coefficient and determining a recommended data transmission volume corresponding to the soft bus processing strategy based on the current data transmission volume of the soft bus includes: The soft bus delay coefficient is calculated by the following formula: in, is the soft bus delay coefficient, is the upper limit of the data delay sub-coefficient, is a constant value, For the recommended data transfer amount, is the current data transmission volume of the soft bus, is the preset value, Recommends a weight for the amount of data transferred.
Citation Information
Patent Citations
Internet of Things operating system platform communication method and system based on soft bus
CN118474144A
Networking method, system and terminal based on distributed soft bus
CN119030823A
Apparatus and method for multi-format and multi-protocol group messaging
US20160119261A1
Method for implementing real-time soft bus oriented to intelligent rail transit system
US20240179024A1
Cited By
Communication soft bus and unmanned aerial vehicle communication system
CN121125385A