<< 点击显示目录 >> 主页 振动监测 > X20(c)CM4810使用手册 > 寄存器说明 - Register description > Flat 流 - Flatstream > Flat流通信 - Flatstream communication > Flat流模式的寄存器 - Registers for Flatstream mode > Flat流操作 - Flatstream operation > OutputSequence和InputSequence之间的关系 - Relationship between OutputSequence and InputSequence |
Fig.: Relationship between OutputSequence and InputSequence
图: OutputSequence和InputSequence之间的关系
Registers OutputSequence and InputSequence are logically composed of 2 half-bytes. The low part signals to the opposite station whether a channel should be opened or if data should be accepted. The high part is to acknowledge that the requested action was carried out.
Registers OutputSequence 和 InputSequence寄存器在逻辑上由两个 一半的字节组成,低位部分向对方站发出信号,表示是否应打开信道或是否应接受数据。最重要的部分是确认所请求的动作已经执行。
If SyncBit and SyncAck are set in one communication direction, then the channel is considered "synchronized", i.e. it is possible to send messages in this direction. The status bit of the opposite station must be checked cyclically. If SyncAck has been reset, then SyncBit on that station must be adjusted. Before new data can be transferred, the channel must be resynchronized.
如果SyncBit和SyncAck在一个通信方向上被设置,那么该通道被认为是 "同步的",即可以在这个方向上发送消息。必须循环检查对方站的状态位。如果SyncAck已经被重置,那么则必须调整该站上的 SyncBit。在传输新数据之前,通道必须重新同步。
The communication partners cyclically check whether the low nibble on the opposite station changes. When one of the communication partners finishes writing a new sequence to the MTU, it increments its SequenceCounter. The current sequence is then transmitted to the receiver, which acknowledges its receipt with SequenceAck. In this way, a "handshake" is initiated.
通信伙伴循环地检查对方站上的低半字节是否改变。当其中一个通信伙伴完成向MTU写入新序列时,它会递增其SequenceCounter(序列计数器)。然后,当前的序列被传送给接收方,接收方用SequenceAck确认其收到。通过这种方式,一个 "握手 "就开始了。
Information: 注意:
If communication is interrupted, segments from the unfinished message are discarded. All messages that were transferred completely are processed. 如果通信中断,未完成消息中的分段将被丢弃。将处理所有已经完全传输的信息。 |