WO2009003398A1 - Asynchronous serial digital communication channel simulation method and device - Google Patents

Asynchronous serial digital communication channel simulation method and device Download PDF

Info

Publication number
WO2009003398A1
WO2009003398A1 PCT/CN2008/071465 CN2008071465W WO2009003398A1 WO 2009003398 A1 WO2009003398 A1 WO 2009003398A1 CN 2008071465 W CN2008071465 W CN 2008071465W WO 2009003398 A1 WO2009003398 A1 WO 2009003398A1
Authority
WO
WIPO (PCT)
Prior art keywords
sequence
idle
data
break
channel emulation
Prior art date
Application number
PCT/CN2008/071465
Other languages
French (fr)
Chinese (zh)
Inventor
Keping Feng
Original Assignee
Maipu Communication Technology Co., Ltd.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Maipu Communication Technology Co., Ltd. filed Critical Maipu Communication Technology Co., Ltd.
Publication of WO2009003398A1 publication Critical patent/WO2009003398A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Definitions

  • the present invention relates to data communication technologies, and in particular, to a technique for transmitting heterogeneous serial data on a PSN (Packet Switched Network).
  • PSN Packet Switched Network
  • Heterogeneous serial data communication is one of the most widely used traditional data communication services.
  • cable is used as the communication medium between a pair of communication interfaces; in actual use, it is also necessary to solve the heterogeneous serial data communication interface.
  • the problems between remote communication, the currently used solutions are mainly the following:
  • a protocol conversion scheme which directly converts the application system communication protocol message into a private protocol message suitable for transmission on the PSN, and transmits it through the PSN; since the field application system has a large number of communication protocols, There is no shortage of proprietary protocols. If you want to implement a universal protocol conversion device, you must master all the application system communication protocols, which is almost impossible, so the protocol conversion solution is not a general solution.
  • Transparent character transmission scheme which only recognizes character data or character data and Break sequence on the signal line; the Break sequence is a continuous logical 0 of one character length (including start and stop bits), as in-band control signal.
  • the transparent character transfer scheme only transmits character data or only character data and a Break sequence. Since the heterogeneous serial signal line includes not only character data and a Break sequence, the transparent character transfer scheme is only applicable to some application systems, and is not universal. Data transfer solution. Summary of the invention
  • the technical problem to be solved by the present invention is to provide a method for simulating the heterogeneous serial data communication channel and to provide a method for realizing the method, in view of the problem that the conventional method for transmitting heterogeneous serial data communication on the PSN is poor in generality. device.
  • the technical solution adopted by the present invention to solve the above technical problem is to provide a heterogeneous serial data communication channel emulation method, which is characterized in that the local channel emulation device receives character data and a break sequence from its heterogeneous serial data signal line. And the Idle sequence, and the character data, the Break sequence, and the Idle sequence are transmitted to the peer channel emulation device through the packet switching network; the peer channel emulation device recovers the character data, the Break sequence, and the Idle according to the information in the channel emulation data message. The sequence is sent to its isochronous serial port. Specifically, the following steps are included:
  • the local channel emulation device encapsulates the character data, the Break sequence and the Idle sequence into channel emulation data packets, and the Break sequence and the Idle sequence are composed of the sequence type and the sequence length; b) the local channel emulation device will channel the data emulation datagram The text is carried on the packet switching network message for transmission;
  • the peer channel emulation device After receiving the packet switched network packet, the peer channel emulation device decapsulates the channel emulation data packet, recovers the character data, and recovers the Break sequence and the Idle according to the sequence type and the sequence length in the heterogeneous serial data packet.
  • the peer channel emulation device sends character data, break sequence and Idle sequence to the different string
  • the local channel emulation device receives the sequence length of the Break sequence and the Idle sequence from the different serial port data signal lines.
  • step a) before the local channel emulation device performs packet encapsulation, deletion processing is also performed; the deletion processing is to delete the redundant part of the Break sequence or the Idle sequence or delete the two character data.
  • the shorter Idle sequence is an Idle sequence whose segment length is less than the minimum value of the set Idle sequence.
  • step a) before the local channel emulation device performs encapsulation, segmentation processing is also performed; the segmentation processing is to divide the longer character data stream, the Break sequence or the Idle sequence into information segments.
  • connection relationship between the information segments is determined, and the connection relationship is divided into continuous and discontinuous.
  • the channel emulation data packet encapsulates one or more pieces of information; When multiple pieces of information are encapsulated in a data message, the connection relationship of each piece of information must be continuous. Further, before the local channel emulation device encapsulates the message, the connection between the last information segment of the message and the first information segment of the next message is determined.
  • the invention also provides an isochronous serial data communication channel emulation device for realizing the above method, which is characterized in that it comprises an isochronous serial port information transmission processing unit, an interworking function unit, a packet switching network information transmission unit, and an isochronous serial port information transmission.
  • the processing unit is connected to the packet switching network information transmission unit through the interworking function unit; the different serial port information transmission processing unit is connected to the different serial port of the application system device; the packet switching network information transmission unit is connected to the packet switching network; the different serial port information transmission processing
  • the unit is configured to send and receive character data, a Break sequence, and an Idle sequence, and count the received sequence length when receiving the Break sequence and the Idle sequence.
  • An interworking function unit configured to encapsulate the received character data, the Break sequence, and the Idle sequence into a channel emulation data message, or decapsulate the channel emulation data packet;
  • the packet-switched network information transmission unit is configured to send and receive packet-switched network packets carrying channel emulation data packets.
  • the different serial port information transmission processing unit is further configured to delete the Break sequence or the Idle sequence.
  • heterogeneous serial port information transmission processing unit is further configured to perform segmentation processing on character data, a break sequence or an Idle sequence.
  • the different serial port information transmission processing unit is further configured to determine a connection relationship between the pieces of information, and the connection relationship is divided into continuous and discontinuous.
  • the isochronous serial port information transmission processing unit includes a sending standard horizontal line parameter register, a sending high level line parameter register, and a sending low level line parameter register.
  • the beneficial effects of the present invention are: a universal heterogeneous serial data communication technology independent of the application system communication protocol, achieving the effect of simulating the heterogeneous serial data communication channel on the PSN.
  • FIG. 1 is a schematic diagram of a network application according to an embodiment of the present invention.
  • the isochronous serial data signal line includes an Idle sequence in addition to the character data and the Break sequence.
  • the Idle sequence is a continuous logic 1, indicating that the interface data signal line is idle.
  • the heterogeneous serial data communication system not only needs to correctly transmit the character data stream and the Break sequence, but also The Idle sequence needs to be transmitted correctly. The basic reasons are as follows:
  • the Idle sequence is used to delimit the message
  • the Idle sequence time between characters in the message frame is limited, and if it is timed out, it can be judged as a communication error.
  • the heterogeneous serial data communication channel emulation device comprises an isochronous serial port information transmission processing unit, an interworking function unit and a PSN information transmission unit; the heterogeneous serial port information transmission processing unit comprises a different serial port, and the interworking function unit comprises a package and a solution.
  • the PX information transmission unit includes a PSN interface, and the channel emulation device is connected to the application system through the different serial port, and the different serial port information transmission processing unit transmits the PSN information through the interworking function unit and the PSN information.
  • the units are connected, and the PSN interface is connected to the PSN.
  • the different serial ports of the different serial data communication channel simulation device a and the different serial data communication channel simulation device b are different from the application system device a and the application system device b respectively.
  • the serial port is connected, and its PSN interface is connected to the PSN.
  • the heterogeneous serial data communication channel emulation device a and the heterogeneous serial data communication channel emulation device b information transfer to achieve remote communication between the application system device a and b serial port.
  • the direction in which the application system device a transmits data to the application system device b The heterogeneous serial port information transmission processing device of the heterogeneous serial data communication channel emulation device a receives the heterogeneous serial data from the heterogeneous serial port including the character data and the Break sequence.
  • the interworking function unit of the isochronous serial data communication channel emulation device a encapsulates the channel into the channel emulation data message;
  • the PSN information transmission unit is used to simulate the channel data
  • the text is carried on the standard PSN protocol message; the PSN message is transmitted through the PSN interface, and transmitted to the heterogeneous serial data communication channel emulation device b through the PSN.
  • the PSN information transmission unit of the isochronous serial data communication channel emulation device b decapsulates the channel emulation data message from the PSN message, and restores the message sequence; the interworking function unit of the isochronous serial data communication channel emulation device b is different The information segment is taken out in the serial data message; the different serial port information transmission processing unit of the heterogeneous serial data communication channel emulation device b processes the information segment information according to the connection relationship between the information segments, from the heterogeneous serial port to the application system device b send.
  • the deletion processing in this embodiment refers to: deleting the redundant portion of the Break sequence and the Idle sequence, and the shorter Idle sequence between the two characters.
  • Idle_delete the minimum value of the Idle sequence
  • Idle_hold The maximum value of the Idle sequence.
  • Idle sequence There is an Idle sequence between the two character data, but the Idle sequence length is less than or equal to Idle_delete, then the Idle sequence is deleted.
  • the connection between the two characters is regarded as continuous, then the Idle sequence is deleted (deleted)
  • the Idle sequence is the shorter Idle sequence described above; in other cases, the connection between the two character data is considered to be non-contiguous;
  • Idle_delete and Idle_hold can be set, Idle_delete can be set to 0, and Idle_hold can be set to infinity, so for any application system, there are a pair of parameters that do not affect normal communication.
  • Break_hold The maximum value of the Break sequence.
  • Break_hold If the length of one of the received Break sequences is greater than the Break_hold, only the Break sequence of the length Break_hold is reserved, and the rest is deleted (the part of the Break sequence information segment whose length is greater than the Break_hold is the redundant part of the above Break sequence); if the length of the received Break sequence is less than Or equal to Break_hold, this Break sequence is completely retained.
  • Break_hold can also be set, the value of Break_hold should be greater than or equal to the length of one character symbol, and the maximum can be infinity.
  • the segmentation process refers to dividing an excessively long character data stream, a Break sequence, or an Idle sequence into shorter pieces of information.
  • One purpose of segmentation is to control the length of the channel-independent serial data message to be less than the maximum transmission unit of the PSN; another purpose is to control the delay time of the communication.
  • Tail I payload type payload length h
  • Tail I payload type payload length h
  • flagK flag2 Message start delimitation flag, 2 bytes in total
  • Packet type Packet type. 0000 is an analog data packet of a different serial data channel, and the remaining values thereof represent parameter negotiation messages, maintenance management messages, and the like;
  • DTE/DCE Application system source serial port type
  • DTR, DSR, RTS, CTS, DCD Application system source serial port out-of-band control signal
  • Packet number The serial data packet number used to indicate the order of the packets to the end receiving the different serial data packets.
  • Channel dish mber different channel number, different serial port data channel imitation Real equipment
  • HEC message header check value
  • Tail The tail flag. 0: This information segment is not the last information segment of the message. 1: This information segment is the last information segment of the message.
  • Payload type This type of information segment. 00: character data, 01: Idle sequence, 10: Break sequence, remaining reserved;
  • Payload length_h This message segment is 5 bits long. The length of the character data information segment is in bytes; since both the Idle sequence and the Break sequence are repeated symbol sequences, the Idle sequence and the Break sequence information segment length are in units of symbols; the Idle sequence and the Break sequence are used in the text. Type (payload type) + length (payload length - h, payload length_l) to indicate;
  • Payload length_l The length of this information segment is 8 bits low
  • Character The character data payload.
  • the Idle sequence and the Break sequence information segment do not have this field information;
  • FEC0, FECI Message check value.
  • the first information segment shown in Table 2 is a character data information segment, followed by a 197-symbol length Idle sequence information segment (payload length_l is 11000101), followed by a character data segment of the different serial data channel simulation data.
  • payload length_l is 11000101
  • the connection relationship of each piece of information in the message is continuous.
  • the heterogeneous serial port information transmission processing unit of the heterogeneous serial data communication channel emulation device has a universal heterogeneous serial transceiver, and the main operation steps of sending the heterogeneous serial data message are:
  • the different serial port information transmission processing unit receives the character data, the Idle sequence, the break sequence and the interface control signal from the different serial port of the application system device, and collects the sequence length of the Idle sequence and the Break sequence when receiving;
  • the isochronous serial port information transmission processing unit follows the configured Idle_delete, Idle_hold and
  • the operation rules of the Break_hold parameter value and parameters process the received Idle sequence and Break sequence from .
  • the heterogeneous serial port information transmission processing unit of the channel emulation device divides the long continuous stream of characters, the Break sequence or the Idle sequence into shorter pieces of information; determines the connection relationship between the pieces of information, if two characters are deleted
  • the Idle sequence is less than or equal to Idle_delete; the connection between the two character data is regarded as continuous; in other cases, the connection between the preceding and following character data is regarded as discontinuous;
  • the interworking function unit encapsulates the processed character data, the Idle sequence, and the Break sequence information segment into the channel emulation data packet in sequence, and encapsulates a single information segment in one channel emulation data message, and may also encapsulate multiple information. Segment, when a plurality of information segments are encapsulated in one channel emulation data message, the connection relationship of each information segment shall be continuous;
  • the interworking function unit fills in the message in the connection between the last information segment of the channel emulation data message and the first information segment of the next isochronous serial data message;
  • the interworking function unit fills in other fields of the channel emulation data message
  • the PSN information transmission unit carries the channel emulation data packet on the standard PSN protocol packet
  • the PSN information transmission unit transmits the PSN message carrying the channel emulation data message through the PSN.
  • the heterogeneous serial port information transmission processing unit of the heterogeneous serial data communication channel emulation device is further configured with a BD (buffer descriptor buffer descriptor) and a corresponding data buffer (buffer).
  • BD buffer descriptor buffer descriptor
  • Each buffer stores a segment of information received from the PSN.
  • the contents described by the BD include the buffer operation status, the information segment type, the information segment connection relationship, the information segment length, the buffer pointer, the next BD pointer, and the like.
  • Configure the transmit standard horizon register, the transmit high horizon register, and the transmit low horizon parameter register to accommodate the PSN delay and delay jitter.
  • the PSN information transmission unit receives the PSN packet carrying the channel emulation data packet from the PSN, and decapsulates the channel emulation data packet, and discards the packet if the packet is incorrectly verified;
  • the interworking function unit of the channel emulation device decapsulates the information segment and its connection relationship from the channel emulation data packet;
  • the interworking function unit stores the received information segments and their corresponding connection relationships in the BD and the corresponding buffer.
  • the operation procedure of the different serial port information transmission processing unit for taking out the information segment from the BD and the corresponding buffer, and sending the information to the different serial port is:
  • the received continuous data length is smaller than the transmission low horizontal line, waiting for the continuous data length to reach the transmission standard horizontal line or receiving subsequent non-contiguous data, starting to transmit, waiting for the period to be sent Idle symbol sequence;
  • the received continuous data length is greater than or equal to the transmission low horizontal line and less than or equal to the transmission high horizontal line, and immediately sent;
  • the received continuous data length is greater than the transmission high horizontal line, immediately send and raise the transmission standard horizontal line;
  • the received continuous data length is smaller than the transmission low horizontal line, immediately send and lower the transmission standard horizontal line.

Abstract

Asynchronous serial data transmission method and device thereof in Packet Switched Network(PSN). The method includes: one end receives character data, break sequences and idle sequences from asynchronous serial port data signal line, and transmits the character data, break sequences and idle sequences through PSN; the other end resumes the character data, break sequences and idle sequences based on information in channel simulation data packets.

Description

说 明 书  Description
异歩串行数据通信通道仿真方法及设备 技术领域  Heterogeneous serial data communication channel simulation method and device
本发明涉及数据通信技术,尤其涉及在 PSN(Packet Switched Network, 分组交换网络) 上传送异歩串行数据的技术。  The present invention relates to data communication technologies, and in particular, to a technique for transmitting heterogeneous serial data on a PSN (Packet Switched Network).
背景技术 Background technique
异歩串行数据通信是应用最广泛的传统数据通信业务之一, 在近距离 情况下采用电缆作为一对通信接口之间的通信媒介; 在实际使用中还需要 解决异歩串行数据通信接口之间的远程通信问题, 目前常用的解决方案主 要有以下几种:  Heterogeneous serial data communication is one of the most widely used traditional data communication services. In the short-distance case, cable is used as the communication medium between a pair of communication interfaces; in actual use, it is also necessary to solve the heterogeneous serial data communication interface. The problems between remote communication, the currently used solutions are mainly the following:
( 1 )使用具有异歩串行数据通信接口的调制解调器远程传送异歩串行 数据;  (1) remotely transmitting heterogeneous serial data using a modem having a different serial data communication interface;
(2) 使用同歩电路的子速率复用通道远程传送异歩串行数据;  (2) remotely transmitting heterogeneous serial data using a subrate multiplexing channel of the same circuit;
(3) 直接使用同歩通信电路远程传送异歩串行数据;  (3) Remotely transmitting heterogeneous serial data directly using the peer communication circuit;
(4) 在 PSN上远程传送异歩串行数据。  (4) Remotely transmit heterogeneous serial data on the PSN.
随着 IP (因特网协议)技术、 MPLS (Multi-Propocol Label Switching, 多协议标记交换) 技术等 PSN应用的发展, 在 PSN上传送异歩串行数据的 需求日益迫切。  With the development of PSN applications such as IP (Internet Protocol) technology and MPLS (Multi-Propocol Label Switching) technology, there is an increasing demand for transmitting heterogeneous serial data on the PSN.
目前通过 PSN传送异歩串行数据的比较常用的为以下两种方案: At present, the following two schemes are commonly used to transmit heterogeneous serial data through PSN:
( 1 ) 协议转换方案, 该方案通过识别应用系统通信协议报文后, 将其 直接转换为适宜在 PSN上传送的私有协议报文, 通过 PSN传送; 由于现场 应用系统存在繁多的通信协议, 其中不乏私有协议, 如果要实现通用的协 议转换设备, 就必须掌握全部的应用系统通信协议, 这几乎不可能, 所以 协议转换方案不是通用解决方案。 (1) A protocol conversion scheme, which directly converts the application system communication protocol message into a private protocol message suitable for transmission on the PSN, and transmits it through the PSN; since the field application system has a large number of communication protocols, There is no shortage of proprietary protocols. If you want to implement a universal protocol conversion device, you must master all the application system communication protocols, which is almost impossible, so the protocol conversion solution is not a general solution.
(2)透明字符传送方案, 该方案只识别信号线上的字符数据或字符数 据和 Break序列; Break序列是大于等于一个字符长度 (含起始、 停止位) 的连续的逻辑 0, 作为带内控制信号。透明字符传送方案只传送字符数据或 者只传送字符数据和 Break序列, 由于异歩串行信号线上不仅只包括字符 数据和 Break序列, 所以透明字符传送方案只适用部分应用系统, 不是通 用的异歩数据传送方案。 发明内容 (2) Transparent character transmission scheme, which only recognizes character data or character data and Break sequence on the signal line; the Break sequence is a continuous logical 0 of one character length (including start and stop bits), as in-band control signal. The transparent character transfer scheme only transmits character data or only character data and a Break sequence. Since the heterogeneous serial signal line includes not only character data and a Break sequence, the transparent character transfer scheme is only applicable to some application systems, and is not universal. Data transfer solution. Summary of the invention
本发明所要解决的技术问题是, 针对现有在 PSN上传送异歩串行数据 通信方法通用性差的问题, 提供一种异歩串行数据通信通道仿真的方法, 以及提供一种实现该方法的设备。  The technical problem to be solved by the present invention is to provide a method for simulating the heterogeneous serial data communication channel and to provide a method for realizing the method, in view of the problem that the conventional method for transmitting heterogeneous serial data communication on the PSN is poor in generality. device.
本发明为解决上述技术问题所采用的技术方案是, 提供一种异歩串行 数据通信通道仿真方法, 其特征在于, 本端通道仿真设备从其异歩串口数 据信号线接收字符数据、 Break序列和 Idle序列, 并将字符数据、 Break 序列和 Idle序列通过分组交换网络传送给对端通道仿真设备; 对端通道仿 真设备根据通道仿真数据报文中的信息, 恢复出字符数据、 Break 序列和 Idle序列, 向其异歩串口发送。 具体包括以下歩骤:  The technical solution adopted by the present invention to solve the above technical problem is to provide a heterogeneous serial data communication channel emulation method, which is characterized in that the local channel emulation device receives character data and a break sequence from its heterogeneous serial data signal line. And the Idle sequence, and the character data, the Break sequence, and the Idle sequence are transmitted to the peer channel emulation device through the packet switching network; the peer channel emulation device recovers the character data, the Break sequence, and the Idle according to the information in the channel emulation data message. The sequence is sent to its isochronous serial port. Specifically, the following steps are included:
a)本端通道仿真设备将字符数据、 Break序列和 Idle序列封装为通道 仿真数据报文, Break序列和 Idle序列由其序列类型和序列长度组成; b) 本端通道仿真设备将通道仿真数据报文承载于分组交换网络报文之 上进行传送;  a) The local channel emulation device encapsulates the character data, the Break sequence and the Idle sequence into channel emulation data packets, and the Break sequence and the Idle sequence are composed of the sequence type and the sequence length; b) the local channel emulation device will channel the data emulation datagram The text is carried on the packet switching network message for transmission;
c) 对端通道仿真设备接收到分组交换网络报文后, 解封装出通道仿真 数据报文, 恢复字符数据, 根据异歩串行数据报文中的序列类型和序列长 度恢复出 Break序列和 Idle序列;  c) After receiving the packet switched network packet, the peer channel emulation device decapsulates the channel emulation data packet, recovers the character data, and recovers the Break sequence and the Idle according to the sequence type and the sequence length in the heterogeneous serial data packet. Sequence
d) 对端通道仿真设备发送字符数据、 Break序列和 Idle序列至异歩串 d) The peer channel emulation device sends character data, break sequence and Idle sequence to the different string
□。 □.
具体的, 本端通道仿真设备从其异歩串口数据信号线接收 Break序列 和 Idle序列时统计序列长度。  Specifically, the local channel emulation device receives the sequence length of the Break sequence and the Idle sequence from the different serial port data signal lines.
进一歩的, 歩骤 a)中在本端通道仿真设备进行报文封装前, 还要进行 删除处理; 所述删除处理为删除 Break序列或 Idle序列的冗余部分或者删 除两个字符数据之间的较短的 Idle序列。 所述较短的 Idle序列为其信息 段长度小于设定 Idle序列最小值的 Idle序列。  Further, in step a), before the local channel emulation device performs packet encapsulation, deletion processing is also performed; the deletion processing is to delete the redundant part of the Break sequence or the Idle sequence or delete the two character data. The shorter Idle sequence. The shorter Idle sequence is an Idle sequence whose segment length is less than the minimum value of the set Idle sequence.
进一歩的, 歩骤 a)中在本端通道仿真设备进行封装前, 还要进行分段 处理; 所述分段处理为将较长的字符数据流、 Break序列或 Idle序列划分 为信息段。  Further, in step a), before the local channel emulation device performs encapsulation, segmentation processing is also performed; the segmentation processing is to divide the longer character data stream, the Break sequence or the Idle sequence into information segments.
具体的, 在本端通道仿真设备进行报文封装前, 确定各信息段之间的 接续关系, 所述的接续关系分为连续和非连续。  Specifically, before the local channel emulation device encapsulates the packet, the connection relationship between the information segments is determined, and the connection relationship is divided into continuous and discontinuous.
具体的, 通道仿真数据报文封装一个或多个信息段; 在一个异歩串行 数据报文内封装多个信息段时, 各信息段的接续关系须为连续。 进一歩的, 本端通道仿真设备进行报文封装前, 确定本报文最后一个 信息段和下个报文的第一个信息段之间的接续关系。 Specifically, the channel emulation data packet encapsulates one or more pieces of information; When multiple pieces of information are encapsulated in a data message, the connection relationship of each piece of information must be continuous. Further, before the local channel emulation device encapsulates the message, the connection between the last information segment of the message and the first information segment of the next message is determined.
本发明还提供了一种实现上述方法的异歩串行数据通信通道仿真设 备, 其特征在于, 包括异歩串口信息传输处理单元、 互通功能单元、 分组 交换网络信息传输单元, 异歩串口信息传输处理单元通过互通功能单元与 分组交换网络信息传输单元相连; 异歩串口信息传输处理单元与应用系统 设备的异歩串口相连; 分组交换网络信息传输单元与分组交换网络相连; 异歩串口信息传输处理单元, 用于收发字符数据、 Break序列和 Idle 序列, 并在接收 Break序列和 Idle序列时统计接收到的序列长度。  The invention also provides an isochronous serial data communication channel emulation device for realizing the above method, which is characterized in that it comprises an isochronous serial port information transmission processing unit, an interworking function unit, a packet switching network information transmission unit, and an isochronous serial port information transmission. The processing unit is connected to the packet switching network information transmission unit through the interworking function unit; the different serial port information transmission processing unit is connected to the different serial port of the application system device; the packet switching network information transmission unit is connected to the packet switching network; the different serial port information transmission processing The unit is configured to send and receive character data, a Break sequence, and an Idle sequence, and count the received sequence length when receiving the Break sequence and the Idle sequence.
互通功能单元, 用于将收到的字符数据、 Break序列和 Idle序列封装 成通道仿真数据报文, 或将通道仿真数据报文解封装;  An interworking function unit, configured to encapsulate the received character data, the Break sequence, and the Idle sequence into a channel emulation data message, or decapsulate the channel emulation data packet;
分组交换网络信息传输单元, 用于收发承载有通道仿真数据报文的分 组交换网络报文。  The packet-switched network information transmission unit is configured to send and receive packet-switched network packets carrying channel emulation data packets.
进一歩的, 所述异歩串口信息传输处理单元, 还用于对 Break序列或 Idle序列进行删除处理。  Further, the different serial port information transmission processing unit is further configured to delete the Break sequence or the Idle sequence.
进一歩的,所述异歩串口信息传输处理单元,还用于对字符数据、 Break 序列或 Idle序列进行分段处理。  Further, the heterogeneous serial port information transmission processing unit is further configured to perform segmentation processing on character data, a break sequence or an Idle sequence.
进一歩的, 所述异歩串口信息传输处理单元, 还用于确定各信息段之 间的接续关系, 所述的接续关系分为连续和非连续。  Further, the different serial port information transmission processing unit is further configured to determine a connection relationship between the pieces of information, and the connection relationship is divided into continuous and discontinuous.
具体的, 所述异歩串口信息传输处理单元包括有发送标准水平线参数 寄存器、 发送高水平线参数寄存器、 发送低水平线参数寄存器。  Specifically, the isochronous serial port information transmission processing unit includes a sending standard horizontal line parameter register, a sending high level line parameter register, and a sending low level line parameter register.
本发明的有益效果是: 与应用系统通信协议无关的通用异歩串行数据 通信技术, 达到在 PSN上仿真异歩串行数据通信通道的效果。  The beneficial effects of the present invention are: a universal heterogeneous serial data communication technology independent of the application system communication protocol, achieving the effect of simulating the heterogeneous serial data communication channel on the PSN.
附图说明 DRAWINGS
图 1是本发明实施方式的网络应用示意图。  FIG. 1 is a schematic diagram of a network application according to an embodiment of the present invention.
具体实施方式 detailed description
异歩串行数据信号线上除了包括字符数据和 Break序列外,还包括 Idle 序列。 Idle序列是连续的逻辑 1, 表示接口数据信号线空闲。 异歩串行数 据通信系统在多数情况下不仅需要正确传送字符数据流和 Break序列, 还 需要正确传送 Idle序列, 基本原因如下: The isochronous serial data signal line includes an Idle sequence in addition to the character data and the Break sequence. The Idle sequence is a continuous logic 1, indicating that the interface data signal line is idle. In most cases, the heterogeneous serial data communication system not only needs to correctly transmit the character data stream and the Break sequence, but also The Idle sequence needs to be transmitted correctly. The basic reasons are as follows:
1)为了避免使用特定字符为报文定界时的字符转义, 使用 Idle序列为 报文定界;  1) In order to avoid character escaping when a specific character is used to delimit the message, the Idle sequence is used to delimit the message;
2)为了检测通信错误而限制消息帧内字符之间的 Idle序列时间, 如果 超时即可判为通信错误。  2) In order to detect communication errors, the Idle sequence time between characters in the message frame is limited, and if it is timed out, it can be judged as a communication error.
所以为了在 PSN上准确传送任意应用系统的异歩串行数据信号, 应传 送异歩串行数据的全部有效信息: 字符数据、 Break序列与 Idle序列。  Therefore, in order to accurately transmit the isochronous serial data signal of any application system on the PSN, all valid information of the different serial data should be transmitted: character data, Break sequence and Idle sequence.
异歩串行数据通信通道仿真设备包括异歩串口信息传输处理单元、 互 通功能单元和一 PSN信息传输单元; 异歩串口信息传输处理单元包括一异 歩串口, 所述的互通功能单元包括封装和解封装通道仿真数据报文功能模 块, 所述的 PSN信息传输单元包括 PSN接口, 所述通道仿真设备通过其异 歩串口与应用系统相连, 异歩串口信息传输处理单元通过互通功能单元与 PSN信息传输单元相连, PSN接口与 PSN连接。  The heterogeneous serial data communication channel emulation device comprises an isochronous serial port information transmission processing unit, an interworking function unit and a PSN information transmission unit; the heterogeneous serial port information transmission processing unit comprises a different serial port, and the interworking function unit comprises a package and a solution. The PX information transmission unit includes a PSN interface, and the channel emulation device is connected to the application system through the different serial port, and the different serial port information transmission processing unit transmits the PSN information through the interworking function unit and the PSN information. The units are connected, and the PSN interface is connected to the PSN.
在图 1 所示的网络应用示意图中, 异歩串行数据通信通道仿真设备 a 和异歩串行数据通信通道仿真设备 b的异歩串口分别与应用系统设备 a和 应用系统设备 b的异歩串口相连, 其 PSN接口与 PSN相连。 通过异歩串行 数据通信通道仿真设备 a与异歩串行数据通信通道仿真设备 b的信息传递 来实现应用系统设备 a与 b串口之间的远程通信。  In the network application diagram shown in FIG. 1, the different serial ports of the different serial data communication channel simulation device a and the different serial data communication channel simulation device b are different from the application system device a and the application system device b respectively. The serial port is connected, and its PSN interface is connected to the PSN. Through the heterogeneous serial data communication channel emulation device a and the heterogeneous serial data communication channel emulation device b information transfer to achieve remote communication between the application system device a and b serial port.
在应用系统设备 a向应用系统设备 b传送数据的方向: 异歩串行数据 通信通道仿真设备 a的异歩串口信息传输处理单从其异歩串口接收异歩串 行数据包括字符数据、 Break序列和 Idle序列, 根据实际需要经过删除处 理和分段处理; 异歩串行数据通信通道仿真设备 a的互通功能单元将其封 装进通道仿真数据报文; PSN信息传输单元用于将通道仿真数据报文承载于 标准的 PSN协议报文之上; 通过 PSN接口传送 PSN报文, 通过 PSN传送到 异歩串行数据通信通道仿真设备 b。  The direction in which the application system device a transmits data to the application system device b: The heterogeneous serial port information transmission processing device of the heterogeneous serial data communication channel emulation device a receives the heterogeneous serial data from the heterogeneous serial port including the character data and the Break sequence. And the Idle sequence is subjected to deletion processing and segmentation processing according to actual needs; the interworking function unit of the isochronous serial data communication channel emulation device a encapsulates the channel into the channel emulation data message; the PSN information transmission unit is used to simulate the channel data The text is carried on the standard PSN protocol message; the PSN message is transmitted through the PSN interface, and transmitted to the heterogeneous serial data communication channel emulation device b through the PSN.
异歩串行数据通信通道仿真设备 b的 PSN信息传输单元从 PSN报文解 封装出通道仿真数据报文, 恢复报文顺序; 异歩串行数据通信通道仿真设 备 b的互通功能单元从异歩串行数据报文中取出信息段 ; 异歩串行数据通 信通道仿真设备 b 的异歩串口信息传输处理单元按照信息段间的接续关系 处理各信息段信息, 从异歩串口向应用系统设备 b发送。  The PSN information transmission unit of the isochronous serial data communication channel emulation device b decapsulates the channel emulation data message from the PSN message, and restores the message sequence; the interworking function unit of the isochronous serial data communication channel emulation device b is different The information segment is taken out in the serial data message; the different serial port information transmission processing unit of the heterogeneous serial data communication channel emulation device b processes the information segment information according to the connection relationship between the information segments, from the heterogeneous serial port to the application system device b send.
数据从应用系统设备 b向应用系统设备 a传送时, 其处理歩骤是相应 的, 不再赘述。 When data is transmitted from the application system device b to the application system device a, the processing steps are corresponding No longer repeat them.
本实施例中删除处理是指: 删除 Break序列和 Idle序列的冗余部分, 以及两个字符之间较短的 Idle序列。  The deletion processing in this embodiment refers to: deleting the redundant portion of the Break sequence and the Idle sequence, and the shorter Idle sequence between the two characters.
对于 Idle序列定义 2个参数:  Define 2 parameters for the Idle sequence:
Idle_delete: Idle序列最小值; Idle_delete : the minimum value of the Idle sequence;
Idle_hold: Idle序列最大值。  Idle_hold: The maximum value of the Idle sequence.
1) 两个字符数据之间有 Idle 序列, 但 Idle 序列长度小于或等于 Idle—delete , 则删除该 Idle序列, 这两个字符之间的接续关系视为连续, 则删除该 Idle序列 (被删除的 Idle序列为上述较短的 Idle序列); 在其 它情况下, 两个字符数据之间的接续关系视为非连续;  1) There is an Idle sequence between the two character data, but the Idle sequence length is less than or equal to Idle_delete, then the Idle sequence is deleted. The connection between the two characters is regarded as continuous, then the Idle sequence is deleted (deleted) The Idle sequence is the shorter Idle sequence described above; in other cases, the connection between the two character data is considered to be non-contiguous;
2) 两个字符数据之间的 Idle序列长度大于 Idle—delete并小于或等于 Idle—hold , 那么保留该 Idle序列;  2) If the length of the Idle sequence between the two character data is greater than Idle_delete and less than or equal to Idle_hold, then the Idle sequence is retained;
3) 如果接收 Idle序列大于 Idle_hold, 只保留长度为 Idle_hold 的 Idle序列部分, Idle序列长度大于 Idle_hold的部分则删除(Idle序列信 息段长度大于 Idle_hold的部分为上述 Idle序列的冗余部分);  3) If the received Idle sequence is greater than Idle_hold, only the Idle sequence portion of length Idle_hold is reserved, and the portion of the Idle sequence length greater than Idle_hold is deleted (the portion of the Idle sequence information segment length greater than Idle_hold is the redundant portion of the above Idle sequence);
Idle_delete 和 Idle_hold 可设置, Idle_delete 可以设置为 0, Idle_hold可以设置为无穷大, 因此对于任意应用系统, 都存在一对不影响 正常通信的参数。  Idle_delete and Idle_hold can be set, Idle_delete can be set to 0, and Idle_hold can be set to infinity, so for any application system, there are a pair of parameters that do not affect normal communication.
对于 Break序列定义 1个参数:  Define 1 parameter for the Break sequence:
Break_hold: Break序列最大值。  Break_hold: The maximum value of the Break sequence.
如果接收的一个 Break 序列长度大于 Break_hold, 只保留长度为 Break_hold的 Break序列, 其余删除 (Break序列信息段长度大于 Break _hold的部分为上述 Break序列的冗余部分); 如果接收的 Break序列的长 度小于或等于 Break_hold, 则完整保留此 Break序列。  If the length of one of the received Break sequences is greater than the Break_hold, only the Break sequence of the length Break_hold is reserved, and the rest is deleted (the part of the Break sequence information segment whose length is greater than the Break_hold is the redundant part of the above Break sequence); if the length of the received Break sequence is less than Or equal to Break_hold, this Break sequence is completely retained.
Break_hold也可设置, Break_hold的值应大于等于一个字符码元长度, 最大可为无穷大。  Break_hold can also be set, the value of Break_hold should be greater than or equal to the length of one character symbol, and the maximum can be infinity.
本实施例中,分段处理是指:将过长的字符数据流、 Break序列或 Idle 序列分为较短的信息段。 分段的一个目的是控制通道异歩串行数据报文的 长度, 使其小于 PSN的最大传输单元; 另一个目的是控制通信的延时时间。  In this embodiment, the segmentation process refers to dividing an excessively long character data stream, a Break sequence, or an Idle sequence into shorter pieces of information. One purpose of segmentation is to control the length of the channel-independent serial data message to be less than the maximum transmission unit of the PSN; another purpose is to control the delay time of the communication.
本实施例异歩串行数据报文格式定义见表 1 :
Figure imgf000008_0001
character
The format of the different serial data packet format in this embodiment is shown in Table 1:
Figure imgf000008_0001
Character
Tail I payload type | payload length h  Tail I payload type | payload length h
payload length  Payload length
Tail I payload type | payload length h  Tail I payload type | payload length h
payload length  Payload length
character  Character
character character  Character character
FECO FECI 表 1  FECO FECI Table 1
flagK flag2 : 报文起始定界标志, 共 2字节;  flagK flag2 : Message start delimitation flag, 2 bytes in total;
next : 本报文最后一个信息段与下一报文第一个信息段的接续关系。 1 为连续, 0为非连续;  Next : The connection between the last information segment of this message and the first information segment of the next message. 1 is continuous, 0 is non-continuous;
packet type: 报文类型。 0000为异歩串行数据通道仿真数据报文, 其 余值表示参数协商报文、 维护管理报文等;  Packet type: Packet type. 0000 is an analog data packet of a different serial data channel, and the remaining values thereof represent parameter negotiation messages, maintenance management messages, and the like;
version: 异歩串行数据协议版本号;  Version: different serial data protocol version number;
DTE/DCE: 应用系统源端串口类型;  DTE/DCE: Application system source serial port type;
DTR、 DSR、 RTS、 CTS、 DCD: 应用系统源端串口带外控制信号;  DTR, DSR, RTS, CTS, DCD: Application system source serial port out-of-band control signal;
packet number: 异歩串行数据报文编号, 用于向接收异歩串行数据报 文的一端指示报文的顺序;  Packet number: The serial data packet number used to indicate the order of the packets to the end receiving the different serial data packets.
channel皿 mber : 异歩通道编号, 用于多串口的异歩串行数据通道仿 真设备; Channel dish mber : different channel number, different serial port data channel imitation Real equipment
HEC: 报文头部校验值;  HEC: message header check value;
tail: 尾标志。 0: 本信息段不是报文最后信息段, 1: 本信息段是报 文最后信息段;  Tail: The tail flag. 0: This information segment is not the last information segment of the message. 1: This information segment is the last information segment of the message.
payload type: 本信息段类型。 00: 字符数据, 01: Idle序列, 10: Break序列, 其余保留;  Payload type: This type of information segment. 00: character data, 01: Idle sequence, 10: Break sequence, remaining reserved;
payload length_h: 本信息段长度高 5位比特。 字符数据信息段长度 以字节为单位; 因为 Idle序列和 Break序列都是重复的码元序列, 所以 Idle序列和 Break序列信息段长度以码元为单位; Idle序列和 Break序列 在 ί艮文中采用类型 (payload type) +长度 (payload length—h 、 payload length_l) 来表示;  Payload length_h: This message segment is 5 bits long. The length of the character data information segment is in bytes; since both the Idle sequence and the Break sequence are repeated symbol sequences, the Idle sequence and the Break sequence information segment length are in units of symbols; the Idle sequence and the Break sequence are used in the text. Type (payload type) + length (payload length - h, payload length_l) to indicate;
payload length_l: 本信息段长度低 8位比特;  Payload length_l: The length of this information segment is 8 bits low;
character: 字符数据净荷。 Idle序列和 Break序列信息段没有这个 字段信息;  Character: The character data payload. The Idle sequence and the Break sequence information segment do not have this field information;
FEC0、 FECI: 报文校验值。  FEC0, FECI: Message check value.
Figure imgf000009_0001
表 2表示的第一个信息段为字符数据信息段, 紧接一个 197码元长度 的 Idle序列信息段 (payload length_l为 11000101 ), 再接一个字符数据 信息段的异歩串行数据通道仿真数据报文, 报文内各信息段的接续关系为 连续。
Figure imgf000009_0001
The first information segment shown in Table 2 is a character data information segment, followed by a 197-symbol length Idle sequence information segment (payload length_l is 11000101), followed by a character data segment of the different serial data channel simulation data. In the message, the connection relationship of each piece of information in the message is continuous.
本实施例中, 异歩串行数据通信通道仿真设备的异歩串口信息传输处 理单元具有通用异歩串行收发器, 发送异歩串行数据报文的主要操作歩骤 是:  In this embodiment, the heterogeneous serial port information transmission processing unit of the heterogeneous serial data communication channel emulation device has a universal heterogeneous serial transceiver, and the main operation steps of sending the heterogeneous serial data message are:
a) 异歩串口信息传输处理单元从应用系统设备的异歩串口接收字符数 据、 Idle序列、 Break序列和接口控制信号,接收时统计 Idle序列和 Break 序列的序列长度;  a) the different serial port information transmission processing unit receives the character data, the Idle sequence, the break sequence and the interface control signal from the different serial port of the application system device, and collects the sequence length of the Idle sequence and the Break sequence when receiving;
b) 异歩串口信息传输处理单元按照配置的 Idle_delete、 Idle_hold和 b) The isochronous serial port information transmission processing unit follows the configured Idle_delete, Idle_hold and
Break_hold参数值和参数的操作规则处理接收到的 Idle序列和 Break序列 自 . The operation rules of the Break_hold parameter value and parameters process the received Idle sequence and Break sequence from .
c) 通道仿真设备的异歩串口信息传输处理单元将过长的连续字符流、 Break序列或 Idle序列分为较短的信息段;确定各信息段之间的接续关系, 如果删除了两个字符之间度小于或等于 Idle—delete的 Idle序列; 这两个 字符数据之间的接续关系视为连续; 在其它情况下前、 后的字符数据之间 的接续关系视为非连续;  c) The heterogeneous serial port information transmission processing unit of the channel emulation device divides the long continuous stream of characters, the Break sequence or the Idle sequence into shorter pieces of information; determines the connection relationship between the pieces of information, if two characters are deleted The Idle sequence is less than or equal to Idle_delete; the connection between the two character data is regarded as continuous; in other cases, the connection between the preceding and following character data is regarded as discontinuous;
d) 互通功能单元将处理后的字符数据、 Idle序列和 Break序列信息段 按序封装进通道仿真数据报文, 在一个通道仿真数据报文中内可封装单个 信息段, 也可封装多个信息段, 在一个通道仿真数据报文内封装多个信息 段时, 各信息段的接续关系须为连续;  d) The interworking function unit encapsulates the processed character data, the Idle sequence, and the Break sequence information segment into the channel emulation data packet in sequence, and encapsulates a single information segment in one channel emulation data message, and may also encapsulate multiple information. Segment, when a plurality of information segments are encapsulated in one channel emulation data message, the connection relationship of each information segment shall be continuous;
e) 互通功能单元将本通道仿真数据报文最后信息段与下一异歩串行数 据报文第一个信息段之间的接续关系填写在本报文中;  e) the interworking function unit fills in the message in the connection between the last information segment of the channel emulation data message and the first information segment of the next isochronous serial data message;
f) 互通功能单元填写通道仿真数据报文的其它字段;  f) the interworking function unit fills in other fields of the channel emulation data message;
g) PSN信息传输单元将通道仿真数据报文承载于标准的 PSN协议报文 之上;  g) The PSN information transmission unit carries the channel emulation data packet on the standard PSN protocol packet;
h) PSN信息传输单元通过 PSN传送承载有通道仿真数据报文的 PSN报 文。  h) The PSN information transmission unit transmits the PSN message carrying the channel emulation data message through the PSN.
异歩串行数据通信通道仿真设备的异歩串口信息传输处理单元还配置 有 BD ( buffer descriptor缓冲区描述符)和对应的数据缓冲区(buffer ) , 每个缓冲区存储一个从 PSN接收的信息段。 BD描述的内容包括缓冲区操作 状态、 信息段类型、 信息段接续关系、 信息段长度、 缓冲区指针、 下一 BD 指针等。 配置发送标准水平线寄存器、 发送高水平线寄存器和发送低水平 线参数寄存器, 以适应 PSN的延时和延时抖动。 The heterogeneous serial port information transmission processing unit of the heterogeneous serial data communication channel emulation device is further configured with a BD (buffer descriptor buffer descriptor) and a corresponding data buffer (buffer). Each buffer stores a segment of information received from the PSN. The contents described by the BD include the buffer operation status, the information segment type, the information segment connection relationship, the information segment length, the buffer pointer, the next BD pointer, and the like. Configure the transmit standard horizon register, the transmit high horizon register, and the transmit low horizon parameter register to accommodate the PSN delay and delay jitter.
接收异歩串行数据报文时将数据存入缓冲区的操作歩骤是:  The operation of storing data in a buffer when receiving a different serial data message is:
a) PSN信息传输单元从 PSN接收承载有通道仿真数据报文的 PSN报文, 解封装出通道仿真数据报文, 如报文校验错则丢弃报文;  a) the PSN information transmission unit receives the PSN packet carrying the channel emulation data packet from the PSN, and decapsulates the channel emulation data packet, and discards the packet if the packet is incorrectly verified;
b) 检查通道仿真数据报文序号, 整理报文顺序;  b) Check the channel emulation data message sequence number and sort the message sequence;
c) 通道仿真设备的互通功能单元从通道仿真数据报文解封装出信息段 及其接续关系;  c) the interworking function unit of the channel emulation device decapsulates the information segment and its connection relationship from the channel emulation data packet;
d) 互通功能单元将接收的信息段及其相应接续关系存入 BD 和对应的 缓冲区。  d) The interworking function unit stores the received information segments and their corresponding connection relationships in the BD and the corresponding buffer.
异歩串口信息传输处理单元从 BD和对应的缓冲区取出信息段, 向异歩 串口发送的操作歩骤是:  The operation procedure of the different serial port information transmission processing unit for taking out the information segment from the BD and the corresponding buffer, and sending the information to the different serial port is:
a) 从 BD和对应的缓冲区取出数据向应用系统设备异歩串口发送字 符数据流、 Break序列、 Idle序列和接口控制信号,控制发送 Idle和 Break 序列长度;  a) extracting data from the BD and the corresponding buffer to send a character data stream, a break sequence, an Idle sequence, and an interface control signal to the application system device to control the length of the Idle and Break sequences;
b) 如当前信息段 next=o, 可立即取出数据发送; b) If the current information segment nex t=o, the data transmission can be taken out immediately;
c) 如当前信息段 next=l,须从当前缓冲区开始向后检查已收到的连 续数据长度: c) If the current information segment ne xt=l, the continuous data length that has been received must be checked backwards from the current buffer:
如果前一信息段 next=0、 当前信息段 next=l, 已收到的连续数据长度 小于发送低水平线, 等待连续数据长度达到发送标准水平线或收到后续非 连续数据, 开始发送, 等待时期发送 Idle码元序列;  If the previous information segment next=0, the current information segment next=l, the received continuous data length is smaller than the transmission low horizontal line, waiting for the continuous data length to reach the transmission standard horizontal line or receiving subsequent non-contiguous data, starting to transmit, waiting for the period to be sent Idle symbol sequence;
如果前一信息段 next=l、 当前信息段 next=l, 已收到的连续数据长度 大于等于发送低水平线且小于等于发送高水平线, 立即发送; If the previous information segment next=l, the current information segment ne xt=l, the received continuous data length is greater than or equal to the transmission low horizontal line and less than or equal to the transmission high horizontal line, and immediately sent;
如果前一信息段 next=l、 当前信息段 next=l, 已收到的连续数据长度 大于发送高水平线, 立即发送并调高发送标准水平线; If the previous information segment next=l, the current information segment ne xt=l, the received continuous data length is greater than the transmission high horizontal line, immediately send and raise the transmission standard horizontal line;
如果前一信息段 next=l、 当前信息段 next=l, 已收到的连续数据长度 小于发送低水平线, 立即发送并调低发送标准水平线。 If the previous information segment next=l, the current information segment ne xt=l, the received continuous data length is smaller than the transmission low horizontal line, immediately send and lower the transmission standard horizontal line.
d) 如果调整发送标准水平线将超越发送高、 低水平线范围或者在前 一信息段 next=l、当前信息段 next=l的情况下发送数据时缓冲区发生溢出, 产生告警事件并自动调整发送标准水平线和高、 低水平线参数, 调整方法 以上所述仅为本发明较佳的一种具体实施方式, 但本发明的保护范围 并不局限于此, 任何熟悉该技术的人在本发明揭露的技术范围以内轻易想 到的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保 护范围应该以权利要求书的保护范围为准。 d) If the adjustment of the transmission standard horizontal line will exceed the transmission of the high and low horizontal line range or when the previous information segment next=l, the current information segment next=l, the buffer overflows when the data is sent, an alarm event is generated and the transmission standard is automatically adjusted. Horizontal line and high and low horizontal line parameters, adjustment method The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims

权 利 要 求 书 Claim
1、 异歩串行数据通信通道仿真方法, 其特征在于, 本端通道仿真设备 从其异歩串口数据信号线接收字符数据、 Break序列和 Idle序列, 并将字 符数据、 Break序列和 Idle序列通过分组交换网络传送给对端通道仿真设 备; 对端通道仿真设备根据通道仿真数据报文中的信息, 恢复出字符数据、 Break序列和 Idle序列, 向其异歩串口发送。  1. The analog data communication channel simulation method is characterized in that the local channel simulation device receives the character data, the break sequence and the Idle sequence from the different serial port data signal lines, and passes the character data, the break sequence and the Idle sequence. The packet switching network transmits to the peer channel emulation device; the peer channel emulation device recovers the character data, the Break sequence, and the Idle sequence according to the information in the channel emulation data message, and sends the same to the isochronous serial port.
2、 如权利要求 1所述异歩串行数据通信通道仿真方法, 其特征在于, 本端通道仿真设备从其异歩串口数据信号线接收 Break序列和 Idle序列时 统计序列长度。  2. The heterogeneous serial data communication channel emulation method according to claim 1, wherein the local channel emulation device receives the break sequence and the Idle sequence from the different serial port data signal lines.
3、 如权利要求 1或 2所述异歩串行数据通信通道仿真方法, 其特征在 于, 具体包括以下歩骤:  3. The heterogeneous serial data communication channel emulation method according to claim 1 or 2, characterized in that it comprises the following steps:
a) 本端通道仿真设备将字符数据、 Break序列和 Idle序列封装为通道 仿真数据报文,所述 Break序列和 Idle序列由其序列类型和序列长度组成; b) 本端通道仿真设备将通道仿真数据报文承载于分组交换网络报文之 上进行传送;  a) The local channel emulation device encapsulates the character data, the Break sequence, and the Idle sequence into channel emulation data packets, wherein the Break sequence and the Idle sequence are composed of the sequence type and the sequence length; b) the local channel emulation device simulates the channel The data packet is carried on the packet switching network message for transmission;
c) 对端通道仿真设备接收到分组交换网络报文后, 解封装出通道仿真 数据报文, 恢复字符数据, 根据异歩串行数据报文中的序列类型和序列长 度恢复出 Break序列和 Idle序列;  c) After receiving the packet switched network packet, the peer channel emulation device decapsulates the channel emulation data packet, recovers the character data, and recovers the Break sequence and the Idle according to the sequence type and the sequence length in the heterogeneous serial data packet. Sequence
d) 对端通道仿真设备发送字符数据、 Break序列和 Idle序列至异歩串 d) The peer channel emulation device sends character data, break sequence and Idle sequence to the different string
□。 □.
4、 如权利要求 3所述异歩串行数据通信通道仿真方法, 其特征在于, 所述歩骤 a)中在本端通道仿真设备进行报文封装前, 还要进行删除处理; 所述删除处理为删除 Break序列或 Idle序列的冗余部分或者删除两个字符 数据之间的较短的 Idle序列; 所述较短的 Idle序列为其信息段长度小于 设定 Idle序列最小值的 Idle序列。  The method for simulating the data transmission channel of the heterogeneous serial data communication system according to claim 3, wherein in the step a), before the local channel emulation device performs packet encapsulation, the deletion processing is further performed; The process is to delete the redundant portion of the Break sequence or the Idle sequence or to delete the shorter Idle sequence between the two character data; the shorter Idle sequence is an Idle sequence whose information segment length is smaller than the minimum value of the Idle sequence.
5、如权利要求 4所述异歩串行数据通信方法,其特征在于,所述 Break 序列的冗余部分为该 Break序列信息段长度大于设定 Idle序列最大值的部 分; 所述 Idle序列的冗余部分为该 Idle序列信息段长度大于设定 Idle序 列最大值的部分。  The heterogeneous serial data communication method according to claim 4, wherein the redundant portion of the Break sequence is a portion of the Break sequence information segment length greater than a maximum value of the set Idle sequence; The redundant portion is a portion where the Idle sequence information segment length is greater than a maximum value of the set Idle sequence.
6、 如权利要求 3所述异歩串行数据通信通道仿真方法, 其特征在于, 所述歩骤 a)中在本端通道仿真设备进行报文封装前, 还要进行分段处理;  The method for simulating the heterogeneous serial data communication channel according to claim 3, wherein in the step a), before the local channel emulation device performs packet encapsulation, segmentation processing is further performed;
1 所述分段处理为将较长的字符数据流、 Break序列或 Idle序列划分为信息 段。 1 The segmentation process is to divide a longer character data stream, a Break sequence, or an Idle sequence into pieces of information.
7、 如权利要求 4所述异歩串行数据通信通道仿真方法, 其特征在于, 所述歩骤 a)中在本端通道仿真设备进行报文封装前, 还要进行分段处理; 所述分段处理为将较长的字符数据流、 Break序列或 Idle序列划分为信息 段。  The method for simulating a different-sequence serial data communication channel according to claim 4, wherein in the step a), before the local channel emulation device performs packet encapsulation, segmentation processing is further performed; The segmentation process is to divide a longer character data stream, a Break sequence, or an Idle sequence into pieces of information.
8、 异歩串行数据通信通道仿真设备, 其特征在于, 包括异歩串口信息 传输处理单元、 互通功能单元、 分组交换网络信息传输单元, 异歩串口信 息传输处理单元通过互通功能单元与分组交换网络信息传输单元相连; 异 歩串口信息传输处理单元与应用系统设备的异歩串口相连; 分组交换网络 信息传输单元与分组交换网络相连;  8. The isochronous serial data communication channel emulation device is characterized in that it comprises an isochronous serial port information transmission processing unit, an interworking function unit, a packet switching network information transmission unit, and an isochronous serial port information transmission processing unit through an interworking function unit and a packet exchange. The network information transmission unit is connected; the different serial port information transmission processing unit is connected to the different serial port of the application system device; the packet switching network information transmission unit is connected to the packet switching network;
异歩串口信息传输处理单元, 用于收发字符数据、 Break序列和 Idle 序列, 在接收 Break序列和 Idle序列时统计接收到的序列长度;  The different serial port information transmission processing unit is configured to send and receive character data, a Break sequence, and an Idle sequence, and count the received sequence length when receiving the Break sequence and the Idle sequence;
互通功能单元, 用于将收到的字符数据、 Break序列和 Idle序列封装 成通道仿真数据报文, 或将通道仿真数据报文解封装;  An interworking function unit, configured to encapsulate the received character data, the Break sequence, and the Idle sequence into a channel emulation data message, or decapsulate the channel emulation data packet;
分组交换网络信息传输单元, 用于收发承载有通道仿真数据报文的分 组交换网络报文。  The packet-switched network information transmission unit is configured to send and receive packet-switched network packets carrying channel emulation data packets.
9、 如权利要求 8所述异歩串行数据通信通道仿真设备, 其特征在于, 所述异歩串口信息处理单元, 还用于对 Break序列或 Idle序列进行删除处 理。  9. The heterogeneous serial data communication channel emulation device according to claim 8, wherein the isochronous serial port information processing unit is further configured to perform a delete process on the Break sequence or the Idle sequence.
10、 如权利要求 8或 9所述异歩串行数据通信通道仿真设备, 其特征 在于,所述异歩串口信息处理单元,还用于对字符数据、 Break序列或 Idle 序列进行分段处理。  10. The heterogeneous serial data communication channel emulation device according to claim 8 or 9, wherein the heterogeneous serial port information processing unit is further configured to perform segmentation processing on the character data, the Break sequence or the Idle sequence.
2 2
PCT/CN2008/071465 2007-06-29 2008-06-27 Asynchronous serial digital communication channel simulation method and device WO2009003398A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200710049417.7A CN101090365B (en) 2007-06-29 2007-06-29 Asynchronous serial data communication channel simulation method and equipment
CN200710049417.7 2007-06-29

Publications (1)

Publication Number Publication Date
WO2009003398A1 true WO2009003398A1 (en) 2009-01-08

Family

ID=38943538

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2008/071465 WO2009003398A1 (en) 2007-06-29 2008-06-27 Asynchronous serial digital communication channel simulation method and device

Country Status (2)

Country Link
CN (1) CN101090365B (en)
WO (1) WO2009003398A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101090365B (en) * 2007-06-29 2011-03-23 迈普通信技术股份有限公司 Asynchronous serial data communication channel simulation method and equipment
CN101299223B (en) * 2008-06-19 2010-06-16 中兴通讯股份有限公司 Emulation method and device of high speed serial duct receiver balance
CN102957601A (en) * 2011-08-23 2013-03-06 中兴通讯股份有限公司 Communication method and communication device of boards
CN103344270B (en) * 2013-06-05 2016-02-24 海华电子企业(中国)有限公司 A kind of method identifying ship electronic equipment sensor

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4646287A (en) * 1984-12-07 1987-02-24 At&T Bell Laboratories Idle period signalling in a packet switching system
CN1052582A (en) * 1989-12-15 1991-06-26 日本电气株式会社 High-speed asynchronous transfer mode packet network system with time slice scheduling device
JPH08181721A (en) * 1994-12-21 1996-07-12 Nippondenso Co Ltd Data transmitter by start-stop synchronized communication
CN2258329Y (en) * 1996-12-04 1997-07-23 程远 Multi-functional telegraph grouping service apparatus
US5761431A (en) * 1996-04-12 1998-06-02 Peak Audio, Inc. Order persistent timer for controlling events at multiple processing stations
KR20010060445A (en) * 1999-12-27 2001-07-07 윤종용 The tone generation circuit for exchange system
CN101090365A (en) * 2007-06-29 2007-12-19 迈普(四川)通信技术有限公司 Asynchronous serial data communication channel simulation method and equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4646287A (en) * 1984-12-07 1987-02-24 At&T Bell Laboratories Idle period signalling in a packet switching system
CN1052582A (en) * 1989-12-15 1991-06-26 日本电气株式会社 High-speed asynchronous transfer mode packet network system with time slice scheduling device
JPH08181721A (en) * 1994-12-21 1996-07-12 Nippondenso Co Ltd Data transmitter by start-stop synchronized communication
US5761431A (en) * 1996-04-12 1998-06-02 Peak Audio, Inc. Order persistent timer for controlling events at multiple processing stations
CN2258329Y (en) * 1996-12-04 1997-07-23 程远 Multi-functional telegraph grouping service apparatus
KR20010060445A (en) * 1999-12-27 2001-07-07 윤종용 The tone generation circuit for exchange system
CN101090365A (en) * 2007-06-29 2007-12-19 迈普(四川)通信技术有限公司 Asynchronous serial data communication channel simulation method and equipment

Also Published As

Publication number Publication date
CN101090365B (en) 2011-03-23
CN101090365A (en) 2007-12-19

Similar Documents

Publication Publication Date Title
US11296807B2 (en) Techniques to operate a time division multiplexing(TDM) media access control (MAC)
TWI251540B (en) System, method and device for autonegotiation
US6092116A (en) DMA controller with response message and receive frame action tables
CN111083161A (en) Data transmission processing method and device and Internet of things equipment
JPH0637804A (en) System and method for transmission of data frame
WO2016191990A1 (en) Packet conversion method and device
EP2827594A1 (en) Digital device, network and method for streaming audio or video data
US6741566B1 (en) Remote management ethernet network and device
CN110650018A (en) Message tamper-proof method and device
WO2009003398A1 (en) Asynchronous serial digital communication channel simulation method and device
CN1276635C (en) Priority enhanced information transfer device and its method
CN113746605B (en) Reliable industrial data stream transmission method
JP2986798B2 (en) Data transmission control method and data communication device
US9485053B2 (en) Long-distance RapidIO packet delivery
WO2005008990A1 (en) A method for encapsulating data stream
CN110838892B (en) High-reliability merging and forwarding method for multi-path full-duplex serial port
CN101212480A (en) Method and apparatus for communication between universal serial bus (USB) host and USB device
TWI495283B (en) Negotiation method and electronic apparatus used in ethernet channel of high definition multimedia interface
WO2011143938A1 (en) Method and system for managing user ports in aggregation links
CN113938443B (en) Wireless internet of things protocol switch
US8583822B2 (en) Method and system for minimum frame size support for a communication protocol encapsulated over Ethernet
TW457444B (en) Media access control architectures and network management systems
US8331788B2 (en) Encapsulation scheme for optical over Ethernet
CN109379342B (en) UDP network protocol-based upper computer and DSP data transmission method
CN110865955B (en) High-reliability merging and forwarding system of multi-path full-duplex serial port

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 08757864

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 238/CHENP/2010

Country of ref document: IN

122 Ep: pct application non-entry in european phase

Ref document number: 08757864

Country of ref document: EP

Kind code of ref document: A1