A custom serial connection handler using elements of the HDLC framework