I'm trying to write HDLC protocol working in ABM only (point to point) for a microcontroller project. I rely mostly on ISO 13239 document click.
Communication shall work in two-way simultaneous mode. For now I want to connect two USARTs of a micro running two HDLC contexts on the same micro. I've got a problem with understanding P/F bit purpose in ABM.
In half-duplex links with Normal Response Mode (NRM) principle is simple - primary station sends command frame(s) with P bits set on last frame, granting permission to secondary to respond with frame(s) with F bit also set on the last frame.
In full-duplex link in NRM primary station sends command with P bit set on first frame and can send more frames. When secondary receives this first command frame with P bit set it can send response frames with F bit set on first frame. The purpose of setting P/F bit on first command/response frame is speed - primary grants permission to transmit commands to secondary as fast as possible so secondary can send response(s) while primary is still sending commands (two-way simultaneous).
In full-duplex ABM situation complicates for me. There is no primary secondary relationship but both stations are combined stations, and both can send command(s) and response(s) at anytime (asynchronously). Here is an example exchange for information in ABM from the ISO document that i mentioned earlier info exchange. Why both stations use frames with P/F bit. Would not the exchange look the same without P/F bit ? When and WHY a station sends frames with P/F bit in ABM ?