I have an HDLC frame like blow and I want to calculate the HCS and FCS algorithm. Its based on DLMS protocol noted in green book page 128.
Here is an example of this frame:
Ex.1:
Frame=`(7EA016030002002352A25EE6E700C401C10012000211927E)Hex`
HCS = `( 52A2 )Hex`
Data= `( 5EE6E700C401C100120002 )Hex`
FCS = `( 1192 )Hex`