> 5.5.5 | Trace of a Standard Multiplex Protocol Start-up with Siemens Multiplexer Version 4

> The following trace shows the normal startup procedure for the multiplex protocol and the standard handshake for activating multiplexer protocol version 4. The example shows that two channels are opened, and a simple AT command is executed.

> Table 11: | Typographical conventions used in the trace example

> Format | Meaning | Example
> Courier bold | Command sequence | 41 54 5C 51 33 0D 0A
> Courier bold, highlighted magenta, underlined | Highlights the result of the protocol negotiation on host and module side | 34 00 00
> Courier normal | Command sequence decoded | AT\Q3 command
> # mark, Arial italic | Comment | # Enable hardware handshake
> Uppercase, Arial bold, italic | Important note | NOTE: FROM NOW….

> Host application | Module
> 41 54 5C 51 33 0D 0A AT\Q3 command # Enable hardware handshake | 41 54 5C 51 33 0D 0D 0A 4F 4B 0D 0A Echo and OK
> 41 54 2B 49 50 52 3D 31 31 35 21 30 30 0D 0A AT+IPR=115200 command # Use fixed baudrate for the multiplex protocol only | 41 54 2B 49 50 52 3D 31 31 35 21 30 30 0D 0D 0A 4F 4B 0D 0A Echo and OK # Module has now a fixed baudrate
> 41 54 2B 43 4D 55 58 3D 30 0D 0A AT+CMUX=0 command # Activate multiplexer protocol on selected UART | 41 54 2B 43 4D 55 58 3D 30 0D 0D 0A 4F 4B 0D 0A Echo and OK # Module switches to multiplex mode. Within the next 5 seconds, the protocol has to be opened.
> F9 03 3F 01 1C F9 dlci=0 MP_IndSABM # Start up multiplexer protocol, open control channel | F9 03 73 01 D7 F9 dlci=0 MP_ConfUA_SABM # Module confirms that control channel was opened.
> F9 03 EF 25 23 21 04 54 45 4D 55 58 56 45 52 53 49 4F 4E 34 00 00 CA F9 dlci=0 MP_IndTest # Version control handshake: Host sends its version Host supports up to multiplex version 4 | F9 01 EF 25 21 21 04 54 45 4D 55 58 56 00 00 00 00 00 00 00 00 00 AB F9 dlci=0 MP_ConfTest # Module replies to the test signal
> F9 01 EF 25 21 21 08 4D 53 4D 55 58 56 45 52 53 49 4F 4E 34 00 00 AB F9 dlci=0 MP_ConfTest # Host replies to the test signal | F9 01 EF 25 23 21 08 4D 53 4D 55 58 56 45 52 53 49 4F 4E 34 00 00 AB F9 dlci=0 MP_IndTest # Version control handshake: Module sends its version. Module supports up to multiplex version 4.
> NOTE: FROM NOW, UIH IS NO LONGER SUPPORTED ON DATA CHANNELS; ALL DATA CHANNELS ACCEPT UIH_E FRAMES ONLY; CONTROL CHANNEL STILL ACCEPTS UIH FRAMES AS USED IN V3
> F9 03 EF 15 83 11 01 00 01 FF F4 00 00 04 EE F9 MP_IndNegotiation dlci=0 used dlci=1 frame type=0 prio=1 T1 ack timer=255 frame len=244 retrans=0 windows size for recover mode=4 # Parameter negotiation on control channel: Host sends parameter set for dlci 1. Valid values are frame length and windows size. | F9 01 EF 15 81 11 01 85 01 C8 F4 00 00 04 8F F9 MP_ConfNegotiation dlci=0 used dlci=1 frame type=133 prio=1 T1 ack timer=200 frame len=244 retrans=0 windows size for recover mode=4 # Parameter negotiation on control channel: Module responds with its used parameters. Valid values are frame type, T1 timer, frame length and windows size. The host should use these negotiated values as shown in this example.
> F9 07 3F 01 DE F9 MP_IndSABM dlci=1 # Open channel 1 | F9 07 73 01 15 F9 MP_ConfUA_SABM dlci=1 # Module confirms that channel 1 was opened.
> NOTE: HOST AND MODULE SHOULD NEGOTIATE THEIR V.24 CONTROL LINES. THE MODULE ALWAYS SENDS ITS V.24 LINES AFTER OPENING A CHANNEL. THE HOSTS SHOULD DO IT TOO.
> F9 01 EF 09 E1 05 07 0D 9A F9 MP_ConfMSC dlci=0 ModemStatus used dlci=0x01 value=0x0d # Host responds. This response should be a copy of MP_IndMSC. | F9 01 EF 09 E3 05 07 0D 9A F9 MP_IndMSC dlci=0 ModemStatus used dlci=0x01 value=0x0d flow control = 0 DSR = 1 CTS = 1 RING = 0 DCD = 0 # Module sends its current V.24 control lines to the host.
> F9 03 EF 09 E3 05 07 0D FB F9 MP_IndMSC dlci=0 ModemStatus used dlci=0x01 value=0x0d flow control = 0 DTR = 1 RTS = 1 # Host sends its current v24 control lines to the module | F9 01 EF 09 E1 05 07 0D 9A F9 MP_ConfMSC dlci=0 ModemStatus used dlci=0x01 value=0x0d # Module responds. This response should be a copy of MP_ConfMSC
> F9 03 EF 15 83 11 02 00 02 FF F4 00 00 04 EE F9 MP_IndNegotiation dlci=0 used dlci=2 frame type=0 prio=2 T1 ack timer=255 frame len=244 retrans=0 windows size for recover mode=4 # Parameter negotiation on control channel: Host sends parameter set for dlci 2 Valid values are frame length and windows size | F9 01 EF 15 81 11 02 85 02 C8 F4 00 00 04 8F F9 MP_ConfNegotiation dlci=0 used dlci=2 frame type=133 prio=2 T1 ack timer=200 frame len=244 retrans=0 windows size for recover mode=4 # Parameter negotiation on control channel: Module responds with its used parameter Valid values are frame type, T1 timer, frame length and windows size The host should use these negotiated values as shown in this example.
> F9 0B 3F 01 59 F9 MP_IndSABM dlci=2 # Open channel 2 | F9 0B 73 01 92 F9 MP_ConfUA_SABM dlci=2 # Module confirms that channel 2 was opened.
> # … status line handshake as on channel 1 … |
> | # … status line handshake as on channel 1…
> # … open all other needed channels … |
> NOTE: HOST SENDS AT <CR>, MODULE ANSWERS WITH OK AND SOME \R\N FRAMING. THIS EXAMPLE SHOWS THE USAGE OF UIH_E FRAMES.
> F9 07 00 07 61 74 0D 2D F9 UIH_E frame n_r=0, n_s=0 dlci=1 Data(TXT): at <CR> # Send AT | F9 07 21 7F F9 hdlc RR n_r=1 Receiver Ready dlci=1 # Frame successfully received
> | F9 07 20 07 61 74 0D 07 F9 UIH_E frame n_r=1, n_s=0 dlci=1 Data(TXT): at (echo) # Echo AT command (ATE1 in the user profile stored with AT&W)
> | F9 07 22 0D 0D 0A 4F 4B 0D 0A 30 F9 UIH_E frame n_r=1, n_s=1 dlci=1 Data(TXT): (\r\r\n) OK (\r\n) # Execute AT command, send answer
> F9 07 41 37 F9 hdlc RR n_r=2 Receiver Ready dlci=1 # Both frames (echo and OK) successfully received |