[0021] The exemplary embodiment will be described in detail herein, and examples are illustrated in the drawings. The following description is related to the drawings, unless otherwise indicated, the same figures in the different drawings represent the same or similar elements. The embodiment described in the exemplary embodiments is not meant to all embodiments consistent with the present application. Instead, they are only examples of apparatus and methods consistent with some aspects of the present application as detailed in the appended claims.
[0022] The block diagram shown in the drawings is merely a functional entity, and it is not necessarily necessary to correspond to physical independent entities. That is, these functional entities can be implemented in software form, or implement these functional entities in one or more hardware modules or integrated circuits, or implement these functions in different networks and / or processor devices and / or microcontroller devices. entity.
[0023] The flowchart shown in the drawings is merely exemplary, and is not necessarily all of the content and operations / steps, nor must be performed in the order described. For example, some operations / steps can also be decomposed, and some operations / steps can be merged or partially merged, so the order in which actual execution may be changed according to the actual situation.
[0024] "Multiple" mentioned in this application refers to two or more than two. "And / or" describe the association relationship of the associated object, indicating that there may be three relationships, for example, A and / or B can represent: Alone A, while there are three cases of B, alone, alone. Character "/" generally means that the associated object is a "or" relationship.
[0025] First, it is to be noted that PROFINET is an automated bus standard based on industrial Ethernet technology, designed to collect and transmit data in industrial systems, and can implement real-time data transmission and reception. In industrial automation, different control objects are different for real-time requirements. For example, the setting of the process parameters, the diagnosis of the device generally does not have a real-time requirement, but the exchange of distributed sensor data must meet certain real-time requirements; for motion control, the real-time requirements are higher. Based on the real-time requirements of different control objects, PROFINET defines three different communication levels as follows:
[0026] 1. Non-real-time communication based on TCP / UDP and IP technology, can be used in non-real-time requirements such as configuration, parameter setting, diagnostics;
[0027] 2, real-time communication (RT), suitable for cyclical data exchange. For example, between the PROFINET I / O (Input / Output, Input / Output) controller and I / O devices, not only to complete the periodic exchange of data, but must also guarantee a certain real-time. The real time here, generally requires less than 10 ms (milliseconds) of the cycle cycle.
[0028] 3. Isochronous Real Time Communication (IRT), for time requirements, strict synchronization, such as motion control, real-time communication (RT) 10ms data exchange cycle can not meet the requirements, in this case, when using equal synchronization Communication. In IRT communication mode, the loop refresh time of the data is less than 1 ms, and the jitter time of the loop scan period is not more than 1us (microsecond).
[0029] figure 1 It is a structural schematic diagram of an exemplary test industrial network in a laboratory environment, which is introduced into an endless optical network device OLT and ONU in the test industrial network. figure 2 Use figure 1 The test industrial network test introduces the delay of the passive light network technology in the industrial network, from figure 2As can be seen, the OLT downlink delay is small, less than 100us, but an average of about 300us uplink delay, maximum up 700-800us, end to end delay in this case can easily exceed 1ms, and shake large, it is difficult to meet the demand. Is to be understood that, for the OLT, the uplink transmission delay refers to the time delay of the ONU to the OLT, the downstream transmission delay is the delay of the ONU to the OLT.
[0030] The inventors of this application obtained by the analysis, this is due to the high uplink delay caused by the mechanism of PON. PON upstream slot management by the mode data transmission data to the OLT by the ONU apparatus, the uplink process is as follows:
[0031] First, ONU apparatus acquires synchronization clock during registration to the OLT device;
[0032] Mode in fixed time slot (also referred to as bandwidth), the OLT to assign different time slots of each registered ONU apparatus; in a dynamic slotted mode, the amount of data to be transmitted to the OLT apparatus according to the size of the ONU, the ONU partitioning apparatus on demand time slots of different lengths;
[0033] OLT devices GATE frame start time point may be sent to inform the ONU and slot may be transmitted, the data size to be transmitted from ONU to OLT through REPORT frames to inform the device;
[0034] In the ONU start time point can be transmitted, and transmits data to the OLT in a time slot assigned may be transmitted. `
[0035] It can be seen based on the above process, because the ONU can transmit data only in time slots assigned to the OLT apparatus, while transmitting data for the point in time so required, and therefore the ONU can not immediately transmit data to the OLT equipment, resulting in data up delay will be relatively large, and uncontrollable. It should also be appreciated that, the ONU uplink data is typically transmitted to the ONU by the service device connected to the ONU apparatus.
[0036] In the PROFINET IRT mode, the division will be a fixed ratio of IRT channels and open channels in each transmission cycle, such as image 3 Indicated. Under IRT channel, transmitting sync frames and only IRT transactions; the open channel, may be transmitted as RTC (Real_Time Clock, real-time clock), RTA ((Real-Time API, real-time interface), NRT (NearReal_Time, near real-time) and other data. each cycle typically 500us, 250us or less may be set. If the channel can not be aligned with IRT may be in the PON transmission slot mode, the IRT frame can not be transmitted successfully to the OLT apparatus. That is, when the device is connected to the ONU business rules device complies PROFINET IRT channel in the uplink data transmission time point, at a time when the ONU service device is connected upstream time slot has not been allocated by the OLT, the IRT data can not be sent successfully, resulting in a row Yan large, it is difficult to meet the business needs for IRT transmission delay.
[0037] To solve the above problems, the present embodiments are proposed control method and apparatus for data transmission equipment, an industrial network, there is also provided a computer readable storage medium and a computer product extent, these embodiments will be hereinafter A detailed description.
[0038] See Figure 4 , Figure 4 It is a flowchart of data transmission control method for an industrial network to an exemplary embodiment illustrated embodiments of the present application. The method comprises the step S110 to step S140, the details are as follows:
[0039] Step S110, the passive optical network provided the network device and industrial network clock synchronization holding industrial equipment, a passive optical network optical line terminal comprises a network device and an optical network unit.
[0040] First Incidentally, the present embodiment mentioned industrial network the PROFINET bus standard, based on the contents described in the known, predetermined bus standard PROFINET IRT communication reaction time is less than 1ms, and the jitter is not more than 1us. Meanwhile, the present embodiment mentioned embodiment further includes industrial networks PON, that is, the introduction of the PON network in the industry, to extend the industrial control network in a distance.
[0041] Industrial networks to solve the problem due to the introduction of a PON itself mechanism PON delay cause the high uplink data, the present embodiment is set in advance an uplink slot cycle PON coincides with the PROFINET bus standard data transmission cycle, it should be understood, the PON uplink slot cycle refers to the period from the time slot PON ONU in the OLT device to transmit data. Consistent with the present PROFINET data transmission bus cycle by setting the standard period PON uplink time slots to facilitate the subsequent alignment operation performed IRT channel.
[0042] The present embodiment is also provided a network device in the PON (including the ONU and the OLT) to maintain time synchronization with the industrial network of industrial equipment, to the ease of subsequent in alignment IRT channel clock synchronization is, the ONU in the transmittable IRT IRT data is transmitted when data arrives slot smoothly, thereby reducing the uplink delay. Industrial equipment industrial networks typically comprise I / O (Input / Output, Input / Output) devices.
[0043] Exemplary, due to industrial network PLC (Programmable Logic Controller, programmable logic controllers) of the industrial equipment by a control, the OLT and industrial equipment may be acquired as the synchronization clock from the clock to the PLC, and the ONU process devices registered with the OLT, the ONU acquires the device as to the OLT clock from the clock. Based on this procedure, the PON can be realized in the industrial network devices in the network clock synchronization holding industrial equipment.
[0044] Step S120, the uplink time slot period in the channel IRT divided optical line terminal, with the PROFINET data transfer bus standard period IRT channel alignment.
[0045] See Figure 5 and Image 6 ,in Figure 5 PON is a network diagram of uplink data transmission frame structure at a fixed time slot mode, Image 6 It is a schematic structural diagram of a PON network in the dynamic slotted mode frame of the uplink data transmission. from Figure 5 and Image 6 As can be seen, uplink data frames in a PON network is not pre-divided slots for transmitting data IRT.
[0046] PROFINET bus standard data transfer period is divided in advance with a passage for IRT IRT data transmission, such as image 3 Indicated. In the present embodiment, the OLT apparatus through channels partitioned IRT uplink slot cycle in the PON, such that the divided PROFINET IRT channel bus standard data transfer period IRT channel alignment. Because the PON network devices has remained clock synchronized with the industrial network of industrial equipment, based on the aligned IRT channel, such that IRT data Industrial transmitting device may be transmitted to the PON via PROFINET bus standard data transfer period IRT channel smoothly uplink slot cycle IRT channel, thereby reducing data transmission delay IRT.
[0047] Step S130, the optical network unit when receiving the IRT data transmission device industry, for application to the optical line terminal IRT slots for transmission of data to obtain a first optical line termination from the IRT distribution channels contained in the uplink time slot period fixed time slot.
[0048] After alignment channel IRT, IRT industrial equipment can send data to the ONU, i.e., the IRT data is transmitted through an uplink slot cycle in PON IRT channel. When the ONU receives IRT data transmitted industrial equipment, for application to the OLT slot IRT data is transmitted. IRT from the OLT of PON uplink slot cycle contains a first fixed time slot allocated to the corresponding data for transmission IRT transmitted industrial equipment, and to inform the ONU allocation result, to obtain an optical device such that the ONU a first fixed time slot allocated to the terminal from the IRT line channels contained in the uplink time slot period.
[0049] It should be understood that for various industrial equipment, with IRT data transmission requirements, the device requires the ONU to the OLT corresponding to each request slot, so that can be supported at the same time slot IRT PON networks are limited in the practical application scenarios, by planning needs to ensure that the number of industrial equipment requires the use of IRT business does not exceed a certain value at the same PON network, in order to avoid time slots are occupied IRT IRT situation can not be assigned time slots.
[0050] In one exemplary embodiment, when the ONU receives the first industrial IRT data transmission device, the received data stored in the first queue IRT preset, and the OLT transmits a first notification message, the first notification message carries the specified parameter, the parameter specifies a first queue for characterizing effective, so that the OLT IRT distribution idle slot according to the specified parameters. Exemplary, the first notification message is a REPORT message, for example "queue # 0report = 0", wherein "# 0" means that the first queue, specify the parameter "0" indicates the length of data to be sent in the first queue is zero . Generally speaking, the length of the transmission data is required IRT message according to the service requirements designated in advance via the programming does not require the OLT according to the provisional assignment reason reported by the ONU, and thus the present embodiment will be designated parameter specifies embodiment zero to Tip OLT device distinguished from other data, and thus for the corresponding allocation of idle time slot IRT industrial equipment.
[0051] After the OLT receives the REPORT message, carried in the REPORT message based on the specified parameters in the identified ONU apparatus is a slot application for IRT, IRT therefore an idle time slot, and sends a message to inform the ONU GATE ONU equipment.
[0052] Incidentally, in the real use of industrial networks, industrial equipment, the data frame the ONU transmitted not only IRT data, for example, it may also be RTC data, the RTA data, the NRT data, which is determined based on the actual traffic scenes , so for the ONU, the need for industrial device determines to send data frames to determine whether the data frame is a frame IRT. Accordingly, when the ONU receives the first data frame transmitted by the device industry, it is determined whether the data frame corresponding to the frame type and network type are PROFINEPROFINET bus standard frame and IRT, if YES, it is determined that the first receiving device transmitted to the industrial IRT data. On the contrary, it is determined that the data frame is not IRT frame is used for transmission of other policy related data.
[0053] Step S140, IRT data in the optical network unit forwards from industrial equipment to the optical line terminal by a first fixed time slot.
[0054] After obtaining the OLT at the ONU apparatus from the optical line terminal from the distribution channel IRT uplink time slot contained in the first period of fixed time slot, based on a first fixed time slot is OLT device is a current industrial equipment assigned data transmission time slot, so IRT ONU data from industrial equipment will be forwarded to the optical line terminal by a first fixed time slot.
[0055]From the above, in the method proposed in the present embodiment, the data transmission period of the powered network is consistent with the data transfer period of the PROFINET bus, and the network device and industrial network in the sourceless network is provided. Industrial equipment keeps the clock synchronization, and divides the upstream time slot cycle in the optical line terminal to align the IRT channel in the data transfer period of the PROFINET bus, so that the optical line terminal is industrial equipment from the uplink slot cycle. After dividing the first fixed time slot used to transmit the IRT data, the IRT data transmitted by the industrial device can smoothly transmit to the optical line terminal via the first fixed time slot, thereby reducing IRT data in the industrial network. Upstream delay to meet the needs of the IRT business.
[0056] In another exemplary embodiment, Figure 4 On the basis of the embodiment shown, the control method for data transmission in the industrial network includes the step S210, and the details are described in detail:
[0057] Step S210, if the optical network unit continues to receive the IRT data, and the first fixed time slot is not used continuously, the second notification message is transmitted to the optical line terminal, and the specified parameter is carried in the second notification message. To release the first fixed time slot based on the specified parameter received again according to the specified parameters received again.
[0058] Among them, if the ONU device does not receive the IRT data sent by the industrial device continuously, the first fixed time slot is not used continuously, the corresponding industrial device has ended the IRT communication, there is no transmission IRT data. Demand, if the first fixed time slot is always occupied, it will cause waste of time slot resources to affect the overall IRT data transmission delay in the industrial network.
[0059] To solve this problem, this embodiment sets the ONU device to detect the IRT data transmitted in the continuous plurality of cycles, and the first fixed time slot is not used in a continuous plurality of cycles, by sending a second notification message to the OLT device, The specified parameters are still carried in the second notification message, so that the OLT device releases the first fixed time slot based on the specified parameters received again. The released first fixed resource can be used again to other ONU devices, so that IRT time slots in the PON network will not always occupy the waste of IRT time slot resources.
[0060] Exemplary, the second notification message can still be represented as "Queue # 0Report = 0", it can be seen that this is the same as the specified parameter carried when the OLT device is applied for the IRT slot, thereby enabling OLT by predetermined a parameter. The device knows when to release the IRT time slot resource. After the OLT device releases the IRT time slot, you can return to the empty GATE message to the ONU device to inform the ONU device The first fixed time slot is released successfully.
[0061] like Figure 7 As shown in another exemplary embodiment, the control method of data transmission in the industrial network is Figure 4 The embodiment shown also includes steps S310 to S320, and the detailed description is as follows:
[0062] In step S310, when the optical network unit receives the non-IRT data transmitted by the industrial device, the optical line terminal applies to the time slot for transmitting the non-IRT data to obtain the optical line terminal allocated from the open channel contained in the uplink time slot period. Second fixed time slot.
[0063] Considering that in the actual industrial network environment, the data type transmitted by the industrial equipment through the PON network is not limited to IRT data, for example, non-IRT data such as RTC data, RTA data, NRT data, etc., these non-RT data is provided, for example image 3 The open channel shown in the data transfer period is transmitted from the industrial equipment to the ONU device. When the ONU device receives non-IRT data sent by the industrial device, the time slot used to transmit non-IRT data is applied to the OLT device.
[0064] Exemplary, when the ONU device receives non-IRT data sent by the industrial device, the received non-IRT data is stored in the second queue, and the second queue is different from other queues of the first queue stored in IRT data, and Send a third notification message to the OLT device. The third notification message carrying the queue length corresponding to the second queue, so that the OLT device allocates a second fixed time slot that matches the queue length from the upstream slot period of the PON. The OLT device also informs the ONU device through the GATE message through the GATE message.
[0065] It should be noted that the ONU device is reported to the OLT device to facilitate the distribution of time slots based on the queue length according to the queue length. In general, the longer the queue, the greater the amount of data that needs to be transmitted, the longer the time slot needs to be distributed, and the exemplary, depending on the formula "time slot length * port rate = can send data size" Determine the length of time slot required.
[0066] In step S320, the non-IRT data from the industrial equipment is forwarded to the optical line terminal through the second fixed time slot in the optical network unit.
[0067] It can be seen that the method provided by this embodiment also supports transmission processing of non-IRT data sent by industrial equipment, implements transmission of IRT data and non-IRT data in a PROFINET-based PON environment.
[0068] Figure 8 It is a block diagram of a control device for data transmission in an industrial network according to an exemplary embodiment of the present application. Among them, industrial networks apply to PROFINET bus standards, and industrial networks include passive optical networks, and the upstream time slot period of passive light network is consistent with the data transfer period of the PROFINET bus standard. like Figure 8 As shown, the apparatus includes:
[0069] The clock synchronization module 410 is configured to set the network device in the sourceless optical network to maintain the industrial equipment in the industrial network. The network device includes the optical line terminal and the optical network unit; the IRT channel division module 420 is configured to be in the optical line terminal. The upstream time slot period is divided into an IRT channel aligned with the IRT channel of the PROFINET bus standard; the first slot application module 430 is configured to be when the optical network unit receives the IRT data sent by the industrial device. The optical line terminal applies a time slot for transmitting IRT data to obtain a first fixed time slot allocated from the IRT channel containing the optical line terminal; IRT data forwarding module 440, configured to be in the optical network unit IRT data from industrial equipment is forwarded to the optical line terminal through the first fixed time slot.
[0070] In another exemplary embodiment, the clock synchronization module 410 includes:
[0071] The first clock synchronization unit is configured to obtain the clock synchronization to the tendency of the optical terminal and the industrial device as the slave from the industrial network; the second clock synchronization unit is configured to perform the optical network unit to the optical line terminal. In the process of registration, the optical network unit is acquired as a clock synchronization from the clock to the optical line terminal.
[0072] In another exemplary embodiment, the IRT channel division module 420 is configured to store the IRT data into the first queue when the optical network unit receives the IRT data sent by the industrial device, and transmits the light line terminal One notification message, the first notification message carries the specified parameters, and the specified parameter is used to characterize the length of the data to be transmitted in the first queue to make the optical line terminal allocate the idle IRT time slot according to the specified parameter.
[0073] In another exemplary embodiment, the apparatus further comprises:
[0074] The time slot release application module is configured to have an IRT data in a plurality of cycles of the optical network unit, and the first fixed time slot is not used continuously, and the second notification message is transmitted to the optical line terminal, the second notification message The specified parameters are still carried to enable the light line terminal to release the first fixed time slot according to the specified parameters received again.
[0075] In another exemplary embodiment, the apparatus further comprises:
[0076] When the data frame recognition module is configured to determine whether the network type and frame type corresponding to the data frame correspond to the PROFINEPROFINET bus standard and IRT frame when the light network unit receives the industrial device. IRT data sent by industrial equipment.
[0077] In another exemplary embodiment, the apparatus further comprises:
[0078] The second time slot application module is configured to apply a time slot for transmitting non-IRT data when the optical network unit receives the non-IRT data transmitted by the industrial device. The second fixed time slot assigned; the non-IRT data transmission module is configured to forward non-IRT data from the industrial device through the second fixed time slot to the optical line terminal in the optical network unit.
[0079] In another exemplary embodiment, the second slot application module is configured to store the received non-IRT data into the second queue when the optical network unit receives non-IRT data transmitted by the industrial device. The line terminal transmits a third notification message, carrying the queue length of the second queue corresponding to the third queue message to enable the optical line terminal to allocate the second fixed time slot that matches the queue length from the uplink slot period.
[0080] It should be noted that the control device for data transmission in the industrial network provided in the above embodiment is the control method of data transmission in the industrial network provided by the above-described embodiment belongs to the same concept, wherein the various modules and units perform the specific manner. A detailed description has been made in the method embodiment, and details are not described herein again. In the industrial network provided by the above embodiment, the control device for data transmission can be completed by different functional modules in practical applications, so that the internal structure of the device is divided into different functional modules to complete the above. All or part of the description is not limited thereto.
[0081] Embodiments of the present application also provide control devices for data transmission in industrial networks, including: one or more processors; storage devices, for storing one or more programs, when the one or more programs are When the one or more processors are executed, the control device for performing data transmission in the industrial network implements a control method of data transmission in the industrial network provided in the various embodiments.
[0082] Figure 9 A computer system of a computer system suitable for implementing data transmission in an industrial network of the present application embodiment is shown. It should be noted, Figure 9 The computer system 900 of the control device for data transmission in the industrial network is only one example and should not be limited to the functions of the present application embodiments.
[0083] like Figure 9 As shown, computer system 900 includes a central processing unit (CPU) 1201, which may be based on a program stored in the read-only memory, ROM 902 or from the storage portion 908 to the random access memory ( Random Access Memory, RAM) 903 The programs in 903 perform various appropriate operations and processing, such as executing the methods described in the above embodiments. In the RAM 903, the various programs and data required for system operations are also stored. CPU 901, ROM 902, and RAM 903 are connected to each other through bus 904. Input / Output (INPUT / OUTPUT, I / O) interface 905 is also connected to bus 904.
[0084]The following components are connected to the I / O interface 905: including a keyboard, a mouse, or the like, including the output portion of the Cathode ray tube (CRT), a liquid crystal display (Liquid Crystal Display, LCD), and the like, and the like 907 The storage portion 908 including a hard disk or the like, and a communication portion 909 including a network interface card such as a LAN (Local Area NetWork, Local Area Network) card, modem, and the like. Communication section 909 performs communication processing via networks such as the Internet. The driver 910 is also connected to the I / O interface 905 as needed. The detachable medium 911, such as a disk, optical disk, magnet, semiconductor memory, and the like are installed on the driver 910 as needed to facilitate the installation of the storage portion 908 as needed.
[0085] In particular, according to the embodiment of the present application, the process described above can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product comprising a computer program carrying a computer readable medium that includes a computer program for performing a flowchart. In such an embodiment, the computer program can be downloaded and installed from the network over communication portions 909, and / or is installed from the detachable media 911. When the computer program is executed by the central processing unit (CPU) 901, various functions defined in the system of the present application are performed.
[0086] It should be noted that the computer readable medium shown in the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the above. Computer readable storage media can be, for example, electrical, magnetic, light, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of any more. More specific examples of computer readable storage media can include, but are not limited to, electrical connections, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), wipedible Programmory read-only memory, flash memory, fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any of the above The combination. In the present application, computer readable signal media can include a data signal propagating in a baseband or as part of a carrier, wherein the computer readable computer program is carried. Such propagation data signals can be employed, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium can also be any computer readable medium other than the computer readable storage medium, which can transmit, propagate, or transmit programs for use by instruction execution system, device, or device or in combination thereof. . The computer program included on the computer readable medium can be transmitted with any suitable media, including, but not limited to, wireless, wired, etc., or any suitable combination of the above.
[0087] The flowcharts and block diagrams in the drawings illustrate the system architecture, function and operation of the system, method, and computer program product according to various embodiments, in accordance with the present application. Where, each box in the flowchart or block diagram can represent a portion of a module, block, or code, a portion of the above module, block, or code contains one or more executable for implementing a predetermined logic function. instruction. It should also be noted that in some implementation of the replacement, the functions labeled in the box can occur in the order as indicated in the drawings. For example, two coupled blocks can actually be performed in parallel, and they can sometimes be performed in reverse order, which is based on the functions involved. It is also to be noted that each block in a block diagram or flowchart, and a combination of boxes in block diagrams or flowcharts, can be implemented using dedicated hardware-based systems that perform specified functions or operations, or Dedicated hardware is implemented in combination of computer instructions.
[0088] The units described in the present application embodiment can be implemented by software, or may be implemented by hardware, and the described units can also be set in the processor. Wherein, the name of these units does not constitute a definition of the unit itself in some cases.
[0089] Another aspect of the present application also provides a computer readable storage medium, which stores a computer program that implements a control method of data transmission in the industrial network as previously described by the processor. The computer readable storage medium may be included in the control device that performs data transmission in the industrial network described in the above embodiment, or may be presented separately without mating the data transmission in the industrial network.
[0090] Another aspect of the present application also provides a computer program product or computer program that includes computer instructions that are stored in a computer readable storage medium. The processor of the computer device reads the computer instruction from the computer readable storage medium, and the processor executes the computer instruction, so that the computer device performs a control method for data transmission in the industrial network provided in the various embodiments.
[0091] The above is only the preferred exemplary embodiment of the present application, is not intended to limit the embodiments of the present application, and Therefore, the scope of protection of this application shall be based on the scope of protection required by the claims.