Communication method and system based on classified time slices

By adopting a communication method and system based on classification time slices in the intelligent converged terminal in the station area, classifying data frames and dynamically adjusting the time slices, the problem of difficult to guarantee real-time and certainty of important data in the prior art is solved, and efficient network management and utilization is achieved.

CN114553667BActive Publication Date: 2025-05-16BEIJING SMARTCHIP MICROELECTRONICS TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210061493.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-19
Publication Date
2025-05-16
Estimated Expiration
2042-01-19

AI Technical Summary

Technical Problem

The prior art cannot effectively ensure the real-time and certainty of important data in intelligent converged terminals in Taiwan, and at the same time, it cannot realize the configuration and management of the distribution Internet of Things communication network in Taiwan.

Method used

The communication method and system based on classification time slices are adopted to classify data frames through a bridge, and the time slices of each communication cycle are classified according to the classification results to ensure that important data is transmitted within a specific time slice.

Benefits of technology

It has achieved real-time and certainty guarantees of important data for intelligent converged terminals in the Taiwan area, and further improved the real-time nature of important data and network utilization efficiency through real-time monitoring and dynamic adjustment of time slices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114553667B_ABST
    Figure CN114553667B_ABST
Patent Text Reader

Abstract

The present invention discloses a communication method and system based on classified time slices, the method comprising: obtaining data frames to be transmitted; classifying the data frames to obtain classification results; classifying the time slices of each communication cycle according to the classification results to obtain classified time slices; transmitting the classification results according to the classified time slices. The technical solution of the present invention can perform classified time slice control on various types of data such as control, alarm, measurement, monitoring, metering, parameter configuration and video entering the intelligent fusion terminal intelligent bridge of the substation area, ensuring the real-time and deterministic nature of important data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of communication technology, and in particular relates to a communication method and system based on classified time slices. Background Art

[0002] With the development of the power distribution Internet of Things, the intelligent fusion terminal in the substation has become the edge computing hub of the power distribution Internet of Things in the substation; the fusion terminal is networked with low-voltage smart devices, smart meters, smart sensors, video terminals, etc., and is connected to the Internet of Things management platform through the Internet of Things protocol. It can realize full perception of the status of substation equipment, active fault analysis and repair, and improvement of power supply quality.

[0003] The services of the intelligent fusion terminal in the substation include various important real-time and non-important non-real-time data traffic such as control, alarm, measurement, monitoring, metering, parameter configuration and video; however, the existing technology has no mechanism to ensure the real-time and certainty of important data, and it is also impossible to configure and manage the substation power distribution Internet of Things communication network. Summary of the invention

[0004] The present invention aims to solve one of the technical problems in the related art at least to a certain extent. To this end, one object of the present invention is to provide a communication method and system based on classified time slices.

[0005] In order to solve the above technical problems, the embodiments of the present invention provide the following technical solutions:

[0006] A communication method based on classified time slices, performed by a bridge, comprising:

[0007] Get the data frame to be transmitted;

[0008] Classifying the data frame to obtain a classification result;

[0009] According to the classification result, classify the time slices of each communication cycle to obtain classified time slices;

[0010] The classification result is transmitted according to the classification time slice.

[0011] Optionally, classifying the data frame to obtain a classification result includes:

[0012] Cache the acquired data frame to obtain a cache result; wherein the data frame carries a network priority code;

[0013] Identifying the cache result based on the network priority code to obtain the priority of the data frame;

[0014] Based on the priority of the data frame, a classification result of the data frame is determined.

[0015] Optionally, the classification result of the data frame includes at least: a control data frame, an alarm data frame, a configuration data frame and a measurement data frame.

[0016] Optionally, classifying the time slices of each communication cycle according to the classification result to obtain the classified time slices includes:

[0017] Determine the communication cycle;

[0018] Allocating the first time slice of each of the communication cycles to the control data frame to determine the control time slice;

[0019] Allocating the second time slice of each of the communication cycles to the alarm data frame to determine the alarm time slice;

[0020] Allocating the third time slice of each of the communication cycles to the configuration data frame to determine the configuration time slice;

[0021] The fourth time slice of each of the communication cycles is allocated to the measurement data frame to determine a measurement time slice.

[0022] Optionally, the priorities of the first time slice, the second time slice, the third time slice and the fourth time slice decrease in sequence.

[0023] Optionally, the communication cycle also includes a remaining time slice.

[0024] Optionally, allocating the second time slice of each of the communication cycles to the alarm data frame to determine the alarm time slice includes:

[0025] Presetting an initial time of the second time slice;

[0026] Based on the time slice parameter, the initial time of the second time slice is adjusted to obtain the actual time of the second time slice to determine the alarm time slice. Optionally, based on the time slice parameter, the initial time is adjusted to obtain the actual time of the alarm time slice, including:

[0027] After each of the alarm time slices ends, the number of the alarm data frames in the cache result is monitored to obtain the remaining number of the alarm data frames;

[0028] According to the remaining number, the actual time of the next alarm time slice is determined.

[0029] Optionally, determining the actual time of the next alarm time slice according to the remaining number includes:

[0030] Monitoring the communication status of the alarm time slice, if there are unsent alarm data frames in the bridge buffer, lengthening the alarm time slice of the next communication cycle according to the number of the unsent alarm data frames;

[0031] If there is no unsent alarm data frame in the bridge buffer, it is determined whether the alarm time slice has surplus. If the surplus time exceeds the transmission time t of the longest alarm data frame, jmax , then the alarm time slice of the next communication cycle is reduced by t jmax .

[0032] Optionally, transmitting the classification result according to the classification time slice includes:

[0033] Transmitting the control data frame in each control time slice;

[0034] Transmitting the alarm data frame within each alarm time slice;

[0035] Transmitting the configuration data frame in each configuration time slice;

[0036] The measurement data frame is transmitted in each measurement time slice.

[0037] An embodiment of the present invention further provides a communication system based on classified time slices, comprising:

[0038] at least one interface;

[0039] A network bridge, wherein the network bridge obtains data frames entering the communication system through the interface and transmits the data frames through the interface; the network bridge comprises a classification time slice module, wherein the classification time slice module is used to allocate time slices to the data frames according to the priorities of the data frames.

[0040] Optionally, the network bridge includes a filtering and shaping module, and the filtering and shaping module is used to filter the data frames entering the network bridge.

[0041] Optionally, the network bridge includes a configuration management module, which is used to configure the time slice parameters of the classification time slice module; the configuration management module is also used to configure the parameters of the filtering and shaping module.

[0042] An embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method when executing the computer program.

[0043] An embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method described above is implemented.

[0044] The embodiments of the present invention have the following technical effects:

[0045] The above technical solution of the present invention can 1) perform classified time slice control on various data such as control, alarm, measurement, monitoring, metering, parameter configuration and video entering the intelligent fusion terminal intelligent bridge of the substation area to ensure the real-time and deterministic nature of important data.

[0046] 2) Based on the real-time monitoring and statistics of the communication status of each time slot, the method of adaptively adjusting the communication time slot can further improve the real-time performance of important data and improve the network utilization efficiency.

[0047] 3) The deterministic network control system of the power distribution and utilization fusion terminal uses an intelligent bridge to achieve peer-to-peer communication of messages from various interfaces of the fusion terminal, and can configure and manage parameters of various modules such as clock synchronization, classification time slice control, filtering and shaping, and monitor, filter and manage abnormal data and non-important information entering the intelligent bridge.

[0048] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 is a schematic diagram of the structure of a communication system based on classified time slices provided in an embodiment of the present invention;

[0050] Figure 2 It is a flow chart of a communication method based on classified time slices provided by an embodiment of the present invention;

[0051] Figure 3 is a schematic diagram of the structure of a communication cycle provided by an embodiment of the present invention;

[0052] Figure 4 is a schematic diagram of a method for adjusting an alarm time slice provided by an embodiment of the present invention;

[0053] Figure 5 It is a timing diagram of transmitting data frames within a communication cycle provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0054] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.

[0055] First, some terms in the present invention are explained to facilitate understanding by those skilled in the art.

[0056] 1) PCIE: A high-speed serial computer expansion bus standard, which belongs to high-speed serial point-to-point dual-channel high-bandwidth transmission.

[0057] 2) RGMII: Reduced Gigabit Media Independent Interface.

[0058] 3) GTX / GTH: It is the high-speed serial transceiver inside the FPGA.

[0059] 4)HPLC: High Speed ​​Power Line Carrier.

[0060] 5)RF: Radio Frequency.

[0061] 6) RS485: communication interface.

[0062] 7)MBUS: symphonic mbus remote meter reading system.

[0063] 8)UART: Universal Asynchronous Receiver / Transmitter, universal asynchronous receiver / transmitter.

[0064] 9)SPI: Serial Peripheral Interface, serial peripheral interface.

[0065] 10) IEEE802.1Qci: IEEE802.1Q protocol, namely Virtual Bridged Local Area Networks protocol, specifies the international standard implementation of VLAN, thus making VLAN intercommunication between different manufacturers possible.

[0066] 11) IEEE802.1Qcc: Virtual Bridged Local Area Networks protocol, which specifies the international standard implementation of VLAN, making VLAN intercommunication between different manufacturers possible.

[0067] 12) IEEE802.1AS: It is a set of time synchronization between applications and metropolitan area networks and access networks in Ethernet mode. The protocol specified by this standard strictly guarantees the synchronous transmission of delay-sensitive services (voice, video, etc.) in transmission media with fixed or symmetrical delays, such as Ethernet-based bridge networks or virtual bridge networks.

[0068] 13) PCP: Network priority code.

[0069] 14)FPGA: Field Programmable Gate Array.

[0070] 15)YANG model: data modeling language.

[0071] 16) CPU: central processing unit, referred to as CPU, central processing unit.

[0072] Secondly, based on the corresponding application scenarios in the present invention, it is also for the convenience of understanding the embodiments of the present invention.

[0073] In order to facilitate understanding of the embodiments of the present invention, a communication system based on classified time slices on which the embodiments of the present invention are based is described below.

[0074] like Figure 1 As shown, an embodiment of the present invention provides a communication system based on classified time slices, including:

[0075] at least one interface;

[0076] Specifically, the interface may include a high-speed data interface, a configuration management interface, a serial data interface, and a network interface.

[0077] Among them, the high-speed data interface is connected to the bridge and is used for high-speed data interaction with the local master control or artificial intelligence module. For example, the high-speed data interface adopts high-speed communication interfaces such as PCIE, RGMII or GTX / GTH.

[0078] The configuration management interface is connected to the network bridge and is used to receive the local configuration sent by the local master control and adjust the operating parameters of the system based on the received local configuration.

[0079] The serial data interface is connected to the bridge and is used to connect low-speed communications such as RS485, MBUS, and micro-power wireless. It can also be used to expand satellite clock modules such as Beidou. For example, the serial data interface uses low-speed communication interfaces such as UART and SPI.

[0080] The network interface is connected to the bridge. The network interface may include HPLC, Ethernet interface, RF, 5G and other interfaces, which are used to connect to 4G / 5G public network, high-speed power line carrier communication network, wireless Ethernet, etc., and provide wired Ethernet access for video terminals.

[0081] A network bridge, wherein the network bridge obtains data frames entering the communication system through the interface and transmits the data frames through the interface; the network bridge comprises a classification time slice module, wherein the classification time slice module is used to allocate time slices to the data frames according to the priorities of the data frames.

[0082] The network bridge may be an intelligent network bridge. During actual operation, the intelligent network bridge is connected to the above-mentioned multiple interfaces to realize the transmission of data frames.

[0083] In an optional embodiment of the present invention, the network bridge includes a filtering and shaping module, and the filtering and shaping module is used to filter the data frames entering the network bridge.

[0084] Specifically, the filtering and shaping module monitors, filters and manages abnormal data and non-important information entering the intelligent bridge according to pre-configured parameters.

[0085] The filtering and shaping module monitors the information transmitted during the remaining time of each communication cycle and performs filtering according to conditions such as MAC address, message type, giant data packet, etc. The operation of the filtering and shaping module complies with the IEEE802.1Qci standard.

[0086] For example, the filtering and shaping module transmits the received data frame to the corresponding local area network based on the filtering database of the MAC address. Specifically, the filtering and shaping module first queries the filtering database to determine whether the destination MAC address is listed in ports other than the entry port. If the destination MAC port is not found, the data frame is sent to all ports except the entry port.

[0087] This embodiment of the present invention realizes the monitoring, filtering and management of abnormal data and important information entering the intelligent network bridge based on the filtering and shaping module.

[0088] In an optional embodiment of the present invention, the network bridge includes a configuration management module, and the configuration management module is used to configure the time slice parameters of the classification time slice module; the configuration management module is also used to configure the parameters of the filtering and shaping module.

[0089] The configuration management module can receive the local configuration sent by the configuration management interface and the remote configuration sent by the 4G / 5G public network, and configure the parameters of each module such as classification time slice, filtering and shaping through the received local configuration and remote configuration; in addition, the configuration management module can also perform configuration management on the high-speed power line carrier communication network and wireless Ethernet through the network interface of the intelligent bridge.

[0090] Among them, the configuration management module complies with the IEEE802.1Qcc standard, and the configuration management model conforms to the YANG model.

[0091] For example, since the transmitted data frames are constantly changing based on the actual operation of the system, the bridge that transmits or forwards the data frames needs to adapt to the changes in the data frames to prevent the mistransmission or loss of the data frames. Therefore, when the configuration management module receives the local configuration, the configuration management module configures the time slice parameters of the classification time slice module inside the bridge based on the local configuration.

[0092] In an optional embodiment of the present invention, the network bridge further includes a clock synchronization module, and the clock module operates based on the configuration management of the configuration management module.

[0093] Specifically, the clock synchronization module acts as a slave clock, receiving the system clock sent from the 4G / 5G public network or the clock of the satellite clock module, and synchronizing the real-time clock inside the system;

[0094] The clock synchronization module also serves as the master clock. At the configured hourly moment (such as the whole second or the whole minute), it reads the high-precision real-time clock source inside the system to synchronize the timing for high-speed power line carrier communication network, wired and wireless Ethernet, and RS485, MBUS, micro-power wireless and other communication modules. The clock synchronization method complies with the IEEE802.1AS standard.

[0095] This embodiment of the present invention is equipped with a deterministic network control system for an electric fusion terminal, which uses an intelligent bridge to achieve peer-to-peer communication of messages from various interfaces of the fusion terminal, and can realize the configuration and management of parameters of various modules such as clock synchronization, classification time slice control, filtering and shaping, and monitor, filter and manage abnormal data and non-important information entering the intelligent bridge.

[0096] It should be noted that the above-mentioned system of the embodiment of the present invention can be implemented by using computer software, FPGA coding, microelectronic circuits and chips and other technologies.

[0097] like Figure 2 As shown, an embodiment of the present invention provides a communication method based on classified time slices, which is executed by a bridge and includes:

[0098] Step S1: Obtain a data frame to be transmitted;

[0099] Specifically, the bridge receives data frames based on the above interface and stores the data frames in a buffer area inside the bridge and processes them.

[0100] Step S2: classify the data frame to obtain a classification result;

[0101] In step S2, classifying the data frame to obtain the classification result includes:

[0102] Step S21: caching the acquired data frame to obtain a cache result; wherein the data frame carries a network priority code;

[0103] Step S22: Identify the cache result based on the network priority code to obtain the priority of the data frame;

[0104] Step S23: Determine the classification result of the data frame based on the priority of the data frame.

[0105] In step S23, the classification results of the data frames at least include: control data frames, alarm data frames, configuration data frames and measurement data frames.

[0106] Specifically, the intelligent bridge classifies and transmits various data frames entering the buffer in the order of the communication cycle; the classification of data frames is achieved by identifying the network priority code (PCP) of each data frame, and PCP is divided into 8 levels (0 to 7).

[0107] Among them, the intelligent terminal connected to the intelligent bridge can classify the information to be sent according to the above classification method.

[0108] For example, the priority of the control data frame can be set to 7, the priority of the alarm data frame can be set to 6, the priority of the configuration data frame can be set to 5, the priority of the measurement data frame can be set to 4, and the priority of the remaining data frames can be set to 0;

[0109] The intelligent network bridge receives data frames sent by the intelligent terminals connected to the intelligent network bridge, and identifies the PCP carried by the data frames. When the intelligent network bridge identifies that the value of PCP is 7, the data frame is classified as a control data frame; when the intelligent network bridge identifies that the value of PCP is 6, the data frame is classified as an alarm data frame; when the intelligent network bridge identifies that the value of PCP is 5, the data frame is classified as an alarm data frame; when the intelligent network bridge identifies that the value of PCP is 4, the data frame is classified as a measurement data frame; when the intelligent network bridge identifies that the value of PCP is 0, the data frame is classified as a residual data frame.

[0110] Among them, the sending order of data frames of the same type is determined according to the timing of entering the bridge.

[0111] This embodiment of the present invention classifies and time-series the transmission of various data frames such as control, alarm, measurement, monitoring, metering, parameter configuration and video entering the intelligent fusion terminal intelligent bridge of the substation according to pre-configured parameters to ensure the real-time and deterministic nature of important data.

[0112] Step S3: classifying the time slices of each communication cycle according to the classification result to obtain the classified time slices;

[0113] like Figure 3 As shown, in step S3, according to the classification result, the time slices of each communication cycle are classified to obtain the classified time slices, including:

[0114] Step S31: Determine the communication cycle;

[0115] Specifically, the system initialization phase initializes the communication cycle of the intelligent bridge according to the configured parameters.

[0116] Step S32: allocating the first time slice of each communication cycle to the control data frame to determine the control time slice;

[0117] Among them, the control time slice is used to transmit control information and synchronous timing information;

[0118] Step S33: allocating the second time slice of each communication cycle to the alarm data frame to determine the alarm time slice;

[0119] Among them, the alarm time slice is used to transmit sudden important event information such as fault alarms and changes in important state quantities;

[0120] Step S34: allocating the third time slice of each of the communication cycles to the configuration data frame to determine the configuration time slice;

[0121] Among them, the configuration time slice is used to transmit parameter configuration information;

[0122] Step S35: allocating the fourth time slice of each of the communication cycles to the measurement data frame to determine the measurement time slice;

[0123] Among them, the measurement time slice is used to transmit regular monitoring information such as measurement and metering that is uploaded at a regular interval.

[0124] Furthermore, the priorities of the first time slice, the second time slice, the third time slice and the fourth time slice decrease in sequence.

[0125] Specifically, a time slice is a microscopic period of CPU time allocated to each running process by a time-sharing operating system (an embodiment of the present invention, executed based on a bridge) (in a preemptive kernel, it is the time from when the process starts running until it is preempted).

[0126] Furthermore, time slices are allocated to each process by the scheduler of the bridge; first, the bridge allocates an equal initial time slice to each process, and then each process takes turns to execute the corresponding time. When all processes are in a state of time slice exhaustion, the bridge recalculates and allocates time slices to each process, and so on.

[0127] In the embodiment of the present invention, the time slice is divided into a first time slice, a second time slice, a third time slice and a fourth time slice according to the allocation object. In step S31, the communication cycle also includes a remaining time slice.

[0128] The remaining time of each communication cycle is used to transmit video and other non-important information.

[0129] This embodiment of the present invention can perform classified time slice control on various types of data such as control, alarm, measurement, monitoring, metering, parameter configuration and video entering the intelligent fusion terminal intelligent bridge of the substation area, to ensure the real-time and deterministic nature of important data.

[0130] In an optional embodiment of the present invention, in step S33, allocating the second time slice of each communication cycle to the alarm data frame, and determining the alarm time slice includes:

[0131] Step S331: preset the initial time of the second time slice;

[0132] Specifically, for other types of time slices, the time slice length can be allocated according to the number of data frames of the corresponding category to be transmitted when the time slice is initially configured. However, for alarm time slices, the number of alarm data frames in the substation cannot be accurately predicted when the time slice is initially configured; because alarm data frames may be generated at any time due to some kind of fault during the operation of the system or the transmission of data frames, and may not be generated for a long time; therefore, in order to more effectively utilize the network resources of the substation power distribution Internet of Things, the communication time slice parameters can be adaptively and dynamically adjusted based on real-time monitoring and statistics of the communication status of the alarm time slice.

[0133] Step S332: Based on the time slice parameter, the initial time of the second time slice is adjusted to obtain the actual time of the second time slice to determine the alarm time slice;

[0134] Specifically, in order to cope with the uncertainty of the number of alarm data frames, the duration of the alarm time slice of each communication cycle needs to be used as a reference for the duration of the next communication cycle (ie, the time slice parameter) to ensure the real-time and effectiveness of the alarm data frames.

[0135] In step S332: adjusting the initial time based on the time slice parameter to obtain the actual time of the alarm time slice includes:

[0136] Step S3321: After each of the alarm time slices ends, the number of the alarm data frames in the cache result is monitored to obtain the remaining number of the alarm data frames;

[0137] Step S3322: Determine the actual time of the next alarm time slice according to the remaining number.

[0138] Furthermore, the filtering and shaping module monitors the communication status of the alarm time slice. If there are unsent alarm data frames in the bridge buffer, the alarm time slice of the next communication cycle is lengthened according to the number of unsent alarm data frames (the remaining time slice is reduced accordingly). If there are no unsent alarm data frames in the bridge buffer, it is determined whether there is surplus alarm time slice. If the surplus time exceeds t jmax (the longest transmission time of the alarm data frame on the network), the alarm time slice of the next communication cycle is reduced by t jmax (Increase the remaining time slice accordingly).

[0139] The above monitoring and adjustment of the alarm time slice can be performed after the alarm time slice of a communication cycle is completed.

[0140] For example, Figure 4 As shown in the figure, adjust the alarm time slice:

[0141] 1) T j0 =t jmax +t d ;

[0142] Where, T j0 is the initial time of the alarm time slice, t d is the time margin.

[0143] Monitor the communication status of the alarm time slice;

[0144] Whether there are unsent alarm data frames in the bridge buffer;

[0145] If so, then T jN+1 =T jN +k*t jmax ; Where k is the number of unsent alarm data frames; T jN is the time of the alarm time slice of the Nth communication cycle, T jN+1 The time of the alarm time slice of the N+1th communication cycle;

[0146] If not, determine whether T is satisfied. js ≥t jmax , and T jN >T j0 ;

[0147] Where, T js is the remaining time of the alarm time slice, t jmax is the longest transmission time of the alarm data frame on the network; if so, then T jN+1 =T jN -t jmax If not, then T jN+1 =T jN +k*t jmax .

[0148] Step S4: the network bridge transmits the classification result according to the classification time slice.

[0149] In this embodiment of the present invention, the method of adaptively and dynamically adjusting the communication time slices by real-time monitoring and statistics of the communication status of each time slice further improves the real-time performance of important data and increases network utilization efficiency.

[0150] Step S4: transmitting the classification result according to the classification time slice, including:

[0151] Specifically, the bridge performs periodic cyclic communication based on multiple communication cycles.

[0152] Step S41: transmitting the control data frame in each control time slice;

[0153] Step S42: transmitting the alarm data frame in each alarm time slice;

[0154] Step S43: Transmitting the configuration data frame in each configuration time slice;

[0155] Step S44: Transmitting the measurement data frame in each measurement time slice.

[0156] This embodiment of the present invention transmits data frames based on classified time slices, thereby ensuring the real-time and deterministic nature of important data frames.

[0157] like Figure 5 As shown, take the transmission of data frames in one communication cycle as an example:

[0158] 1) Determine whether there is a new configuration in the communication cycle;

[0159] 2) If yes, initialize the communication cycle and execute the next step; if no, execute the next step directly;

[0160] 3) Transmit the control data frame within the control time slice;

[0161] 5) After the control time slice ends, the alarm data frame is transmitted within the alarm time slice;

[0162] 6) After the alarm time slice ends, the configuration data frame is transmitted within the configuration time slice;

[0163] 7) After the configuration time slice ends, the measurement data frame is transmitted in the measurement time slice;

[0164] 8) After the measurement time slice ends, the remaining data frames are transmitted in the remaining time slice.

[0165] An embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method when executing the computer program.

[0166] An embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method described above is implemented.

[0167] In addition, other structures and functions of the system of the embodiment of the present invention are known to those skilled in the art and are not described herein in detail to reduce redundancy.

[0168] It should be noted that the logic and / or steps represented in the flowchart or described in other ways herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or equipment (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or equipment and execute instructions), or in combination with these instruction execution systems, devices or equipment. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or equipment, or in combination with these instruction execution systems, devices or equipment. More specific examples (non-exhaustive list) of computer-readable media include the following: an electrical connection portion with one or more wirings (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and editable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0169] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0170] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0171] In the description of the present invention, it is to be understood that the terms “center”, “longitudinal”, “lateral”, “length”, “width”, “thickness”, “up”, “down”, “front”, “back”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inside”, “outside”, “clockwise”, “counterclockwise”, “axial”, “radial”, “circumferential”, etc., indicating orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.

[0172] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0173] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0174] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. Moreover, a first feature being "above", "above" or "above" a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the first feature is higher in level than the second feature. A first feature being "below", "below" or "below" a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the first feature is lower in level than the second feature.

[0175] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.

Claims

1. A communication method based on classified time slices, characterized in that: Executed by the bridge, including: Get the data frame to be transmitted; Classifying the data frames to obtain classification results, where the classification results of the data frames at least include alarm data frames; According to the classification result, the time slice of each communication cycle is classified to obtain the classified time slice, the second time slice of each communication cycle is allocated to the alarm data frame, and the alarm time slice is determined, wherein the communication cycle also includes a remaining time slice, and the remaining time slice of each communication cycle is used to transmit video and other non-important information; Transmitting the classification result according to the classification time slice; Performing periodic cyclic communication based on a plurality of the communication cycles; Allocating the second time slice of each of the communication cycles to the alarm data frame, and determining the alarm time slice, comprises: Presetting an initial time of the second time slice; After each of the alarm time slices ends, the number of the alarm data frames in the cache result is monitored to obtain the remaining number of the alarm data frames; Monitor the communication status of the alarm time slice. If there are unsent alarm data frames in the bridge buffer, lengthen the alarm time slice of the next communication cycle according to the number of unsent alarm data frames, and reduce the remaining time slice; jN+1 =T jN +k*t jmax Get the alarm time slice of the next communication cycle; wherein k is the number of unsent alarm data frames; T jN is the time of the alarm time slice of the Nth communication cycle, T jN+1 The time of the alarm time slice of the N+1th communication cycle; If there is no unsent alarm data frame in the bridge buffer, it is determined whether the alarm time slice has surplus. If the surplus time exceeds the transmission time t of the longest alarm data frame, jmax , then the alarm time slice of the next communication cycle is reduced by t jmax , and increase the remaining time slice; according to T jN+1 =T jN -t jmax Get the alarm time slice of the next communication cycle, where t jmax It is the longest transmission time of alarm data frame on the network.

2. The method according to claim 1, characterized in that The classifying the data frame to obtain the classification result includes: Cache the acquired data frame to obtain the cache result; wherein the data frame carries a network priority code; Identifying the cache result based on the network priority code to obtain the priority of the data frame; Based on the priority of the data frame, a classification result of the data frame is determined.

3. The method according to claim 2, characterized in that The classification results of the data frames at least include: control data frames, configuration data frames and measurement data frames.

4. The method according to claim 3, characterized in that: According to the classification result, the time slices of each communication cycle are classified to obtain the classified time slices, including: Determine the communication cycle; Allocating the first time slice of each of the communication cycles to the control data frame to determine the control time slice; Allocating the third time slice of each of the communication cycles to the configuration data frame to determine the configuration time slice; The fourth time slice of each of the communication cycles is allocated to the measurement data frame to determine a measurement time slice.

5. The method according to claim 4, characterized in that The priorities of the first time slice, the second time slice, the third time slice and the fourth time slice decrease in sequence.

6. The method according to claim 4, characterized in that Transmitting the classification result according to the classification time slice includes: Transmitting the control data frame in each control time slice; Transmitting the alarm data frame within each alarm time slice; Transmitting the configuration data frame in each configuration time slice; The measurement data frame is transmitted in each measurement time slice.

7. A communication system based on classified time slices, characterized in that: include: at least one interface; A network bridge, the network bridge acquires data frames entering the communication system through the interface and transmits the data frames through the interface; the network bridge includes a classification time slice module, the classification time slice module is used to acquire the data frames to be transmitted; Classifying the data frames to obtain classification results, where the classification results of the data frames at least include alarm data frames; According to the classification result, classify the time slices of each communication cycle to obtain classified time slices; Transmitting the classification result according to the classification time slice; allocating the second time slice of each communication cycle to the alarm data frame to determine the alarm time slice, wherein the communication cycle also includes a remaining time slice, and the remaining time slice of each communication cycle is used to transmit video and other non-important information; and also used to perform periodic cyclic communication based on multiple communication cycles; The classification time slice module is also used to: preset the initial time of the second time slice; after each alarm time slice ends, monitor the number of the alarm data frames in the cache result to obtain the remaining number of the alarm data frames; monitor the communication status of the alarm time slice, if there are unsent alarm data frames in the bridge buffer, lengthen the alarm time slice of the next communication cycle according to the number of unsent alarm data frames, and reduce the remaining time slice; according to T jN+1 =T jN +k*t jmax Get the alarm time slice of the next communication cycle; wherein k is the number of unsent alarm data frames; T jN is the time of the alarm time slice of the Nth communication cycle, T jN+1 is the time of the alarm time slice of the N+1th communication cycle; if there is no unsent alarm data frame in the bridge buffer, it is determined whether the alarm time slice has surplus, such as the surplus time exceeds the transmission time t of the longest alarm data frame jmax , then the alarm time slice of the next communication cycle is reduced by t jmax , and increase the remaining time slice; according to T jN+1 =T jN -t jmax Get the alarm time slice of the next communication cycle, where t jmax It is the longest transmission time of alarm data frame on the network.

8. The system according to claim 7, characterized in that The network bridge comprises a filtering and shaping module, and the filtering and shaping module is used to filter the data frames entering the network bridge.

9. The system according to claim 8, characterized in that The network bridge comprises a configuration management module, and the configuration management module is used to configure the time slice parameters of the classification time slice module; the configuration management module is also used to configure the parameters of the filtering and shaping module.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 6 is implemented.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Industrial time-sensitive network data deterministic scheduling method

    CN111327540A

  • Method for transmitting data packets and apparatus for implementing the same

    WO2021059683A1