3-36Examples# Apply 32-bit CRC to a serial interface formed on interface CT1 interface T1 2/0/0. system-view[Sysname] controller t1 2/0/0[Sysname-T1 2/0/0] channel-set 1 timeslot-list 2-6[Sysname-T1 2/0/0] quit[Sysname] interface serial 2/0/0:1[Sysname-Serial2/0/0:1] crc 32data-coding (CT1 interface)Syntaxdata-coding { inverted | normal }undo data-codingViewCT1 interface viewDefault Level2: System levelParametersinverted: Enables user data inversion.normal: Disables user data inversion.DescriptionUse the data-coding inverted command to enable user data inversion on the CT1 interface.Use the data-coding normal command to disable user data inversion on the CT1 interface.Use the undo data-coding command to restore the default.By default, data inversion is disabled.To prevent 7e in valid data from being taken for stuffing characters, HDLC inserts a zero after every fiveones in the data stream. Then, HDLC inverts every one bit into a zero and every zero bit into a one. Thisensures at least one out of every eight bits is a one. When AMI encoding is used on a T1 interface, theuse of data inversion can eliminate the presence of multiple consecutive zeros.On the CT1 interfaces at two ends of a T1 line, the same data inversion setting must be used.Examples# Enable user data inversion on CT1 interface T1 2/0/0. system-view[Sysname] controller t1 2/0/0[Sysname-T1 2/0/0] data-coding inverteddescription (CT1 interface)Syntaxdescription textundo description