Specifications

94 System Software Diagnostics Guide — September 2006
GCEV_TRACEDATA Reference
unsigned int8 LabelSize;
};
Terms in the above structure are defined as follows:
EventLabel
EventLabel is significant to the firmware only. It can be ignored by the host application
receiving the GCEV_TRACEDATA event.
SignalID
SignalID identifies the signal that triggered.
SignalLabel
An array of bytes that identifies the signal that triggered.
LabelSize
The number of valid unsigned int8's in SignalLabel.
18.4.2 ISDN Payload Format
The payload contains the raw contents of the frame received or sent by the firmware to/from the
network; i.e., it contains a frame in ISDN Layer 2 format as described in the LAP-D specification
or ITU-T document Q.921 (found at http://www.itu.int/home/index.html). If this Layer 2 frame is
an INFORMATION frame, it may further encapsulate an ISDN Layer 3 frame, whose format is
described in ITU-T document Q.931 (also found at http://www.itu.int/home/index.html). An
example of a payload containing a Layer 2 frame encapsulating a Layer3 SETUP frame is shown
below.
Encapsulated
Layer 3 SETUP
Layer 2 Frame
|<------->| |<---------------->
02 01 00 00 08 02 6e f5 05 04
03 80 90 a2 18 03 a9 83 81 6c
06 21 83 31 32 33 34 70 05 81
32 30 30 32
18.5 Sample Parser
The following is an example of how to parse the raw data content passed back as part of the tracing
of inbound and outbound R2MF tones and CAS bit transitions/states. Sample output of the parser is
also provided for reference (see Section 18.6, “Sample Parser Output”, on page 102). You can copy
this example or design your own parser.
Note: This does not apply to ISDN trace formatting.
//
// mdfParseCAS.c
//
// Takes a CAS Trace file & parses it to text
// Ideally allow selective output on a per timeslot basis
// Relies on tracing application logging: