Our websites use cookies. By continuing, you agree to their use. See details
C programming : HDLC | Portfolium
C programming : HDLC
favorite 2
visibility 12,574
October 15, 2016 in Computer Science
1 / 2
HDLC (high-level data-link control) is a standard published by ISO that has achieved wide use throughout the world. HDLC is considered a superset to several other protocols. It provides for a number of options in its implementation. HDLC supports both half-duplex and full-duplex transmission, point-to-point and multipoint configurations, as well as switched or non-switched channels. HDLC uses the term frame to indicate an Independent entity of data transmitted across the link from one station to another. The frame consists of five or six fields. All frames must start and with the flag fields. The stations attached to the data link are required to continuously monitor for the flag sequence. The flag sequence consists of 01111110. Flags can be continuously transmitted on the link between HDLC frames.
Your assignment is to write a program that will receive the characters from the keyboard (0's , l's or any other character) until it detects an HDLC flag. Upon detection of the first flag, the program will continue to receive the characters from the keyboard and shows them on the screen until a flag is detected again. The program prints to the screen that the end flag has been detected and the information keyed in between the two flags. No Carriage Return is allowed as part of your input at any time.
© 2025 • All content within this project is strictly the property of Joseph Contreras CoHart and is not for public use without permission. Report Abuse

Comments

Joseph Contreras CoHart
Electrical Engineering & Computer Engineering at San Francisco State University
Joseph Contreras CoHart

2 Likers

Jonathan Jelliff
Dong 萧