Professional Documents
Culture Documents
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved page 2 of 24
CMUX User Guide
30268ST10299A Rev. 0 - 13/10/06
Contents
1 INTRODUCTION................................................................................................................4
1.1 Scope of document ................................................................................................................4
2 APPLICABLE DOCUMENTS ............................................................................................5
3 TECHNICAL CHARACTERISTICS ...................................................................................6
3.1 Product architecture ..............................................................................................................6
3.2 Implementation feature and limitation..................................................................................6
3.3 AT command interface interactions .....................................................................................6
4 SERIAL MULTIPLEXER PROTOCOL...............................................................................8
4.1 CMUX Frame Structure ..........................................................................................................8
4.2 UIH Control Channel Frame Coding ...................................................................................11
4.3 UIH Data Channel Frame Coding ........................................................................................13
4.4 CMUX establishment scenario ............................................................................................14
5 TELIT SERIAL PORT PC INTERFACE FOR CMUX.......................................................15
5.1 Interface Specification .........................................................................................................15
5.2 Scenario ................................................................................................................................15
5.3 Graphical Interface ...............................................................................................................16
5.4 Application Setup .................................................................................................................18
6 INTEGRATOR HINTS......................................................................................................19
6.1 How to begin .........................................................................................................................19
6.2 Flow control ..........................................................................................................................20
6.3 Blocking command ..............................................................................................................20
6.4 Lookup table for FCS calculation .......................................................................................21
6.5 Ignored command ................................................................................................................22
7 AT Commands ................................................................................................................23
8 Document Change Log ..................................................................................................24
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved page 3 of 24
CMUX User Guide
30268ST10299A Rev. 0 - 13/10/06
1 INTRODUCTION
1.1 Scope of document
The scope of the present document is to describe a multiplexing protocol implemented in the Telit
module. The multiplexing protocol can be used to send any data, SMS, fax, TCP data.
NOTE: CUMX can be activated only with the interface SELINT 2; this means that for the
modules GM862-QUAD/PY and GE863-QUAD/PY which start as default in SELINT 0 or SELINT
1 1, before activating CMUX, interface should be changed to SELINT 2.
1
please consult AT Commands Reference Guide 80000ST10025a for more information
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved page 4 of 24
CMUX User Guide
30268ST10299A Rev. 0 - 13/10/06
2 APPLICABLE DOCUMENTS
Digital Cellular Telecommunications Systems (Phase 2+); Terminal Equipment to Mobile Station
(TE-MS) "Multiplexer Protocol"; ETSI TS 101 369 V7.1.0 (1999-11), GSM 07.10 Version 7.1.0,
Release 199
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved page 5 of 24
CMUX User Guide
30268ST10299A Rev. 0 - 13/10/06
3 TECHNICAL CHARACTERISTICS
This is especially advantageous when a fax/data/GPRS call is ongoing. Using the Multiplexer features,
e.g. controlling the module or using the SMS service can be done via the additional channels without
disturbing the data flow; access to the second UART is not necessary.
Furthermore, several accesses to the module can be created with the Multiplexer. This is of great
advantage when several independent electronic devices or interfaces are used.
To access the three virtual interfaces, both the GSM engine and the customer application must
contain Mux components, which communicate over the multiplexer protocol.
In Multiplexer mode, AT commands and data are encapsulated into packets. Each packet has channel
identification and may vary in length.
AT#HFMICG
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved page 6 of 24
CMUX User Guide
30268ST10299A Rev. 0 - 13/10/06
AT#HSMICG
AT+CMUT
AT#STM
AT#SHFEC
AT#CAP
AT+CLVL
AT#SRS
AT+CRSL
AT#SRP
AT#NITZ
AT+CALM
AT#SHFSD
AT#DAC
AT+CFUN
AT+COPS
The AT commands that require to modify a setting would be saved in a global profile. They would be
reloaded at boot time with relation to the ATY1, ATY0 previously issued on the instance CMUX1 or
ASC0.
When in multiplexed mode it is suggested not to used the +CFUN command but the PSC (Power
saving command) described by GSM 7.10 specification.
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved page 7 of 24
CMUX User Guide
30268ST10299A Rev. 0 - 13/10/06
Flag Octet
Each frame begins and ends with a flag octet define as ( binary:11111001 or hexadecimal 0xF9)
Address Octet
Is formatted as follow:
0 1 2 3 4 5 6 7
EA C/R D L C I
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved page 8 of 24
CMUX User Guide
30268ST10299A Rev. 0 - 13/10/06
Example:
Application take the initiative to initialize the multiplexer (i.e. sends the SABM command at DLCI 0 )
and the Module that accepts the initialization of the multiplexer (i.e. sends the UA response at DLCI 0)
DLCI
0 Reserved to Control Channel
1 Virtual Port #1
2 Virtual Port #2
3 Virtual Port #3
4 Reserved for Python debug
Control Field
The content of the control field defines the type of frame
Frame Type 0 1 2 3 4 5 6 7
SABM (Set Asynchronous 1 1 1 1 P/F 1 0 0
Balanced Mode)
UA (Unnumbered 1 1 0 0 P/F 1 1 0
Acknowledgement)
DM (Disconnected Mode) 1 1 1 1 P/F 0 0 0
DISC (Disconnect) 1 1 0 0 P/F 0 1 0
UIH (Unnumbered 1 1 1 1 P/F 1 1 1
Information with Header
check)
UA (Unnumbered Acknowledgement)
The UA response is sent by the module to inform that a SABM or DISC command was accepted
DM (Disconnected Mode)
The DM response is sent by the module to inform that a SABM or DISC command was rejected, this
can happens if for example a SABM is sent for a DLCI not supported. Or if a DISC is sent to a DLCI
Address already closed.
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved page 9 of 24
CMUX User Guide
30268ST10299A Rev. 0 - 13/10/06
DISC (Disconnect)
The DISC is used to close a previous established connection. If the application send a disc for the
DLCI 0 (the control channel), all the established channel will be closed.
The module will answer to this command with an UA Frame.
Length Indicator
This Octet specified the length of the information field
0 1 2 3 4 5 6 7
E/A L1 L2 L3 L4 L5 L6 L7
E/A Bit shall be 1 if 7 bit are enough for the len ( len <= 127) otherwise len
Shall be coded with two octet
Octet 1
0 1 2 3 4 5 6 7
0 L1 L2 L3 L4 L5 L6 L7
Octet 2
0 1 2 3 4 5 6 7
1 L9 L10 L11 L12 L13 L14 L15
Information Data
The information field is the payload of the frame and carries the user data. The field exist only for
frame type that contains UIH Control Field.
The P/F bit shall be set to 0 when sending this field.
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved page 10 of 24
CMUX User Guide
30268ST10299A Rev. 0 - 13/10/06
Type Octet:
0 1 2 3 4 5 6 7
EA C/R T Y P E
Length indicator
Is code like in the Cmux Frame Structure
Value
The number of octet are specified by the Length Indicator and depend on the type of the command as
follow:
Type Len
3 0
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved page 11 of 24
CMUX User Guide
30268ST10299A Rev. 0 - 13/10/06
Format without break indication
Type Len Value 1 Value 2
6 2 DLCI V24 Octet
0 1 2 3 4 5 6 7
1 FC DSR CTS 0 0 RIN DCD
G
0 1 2 3 4 5 6 7
1 FC DTR RTS 0 0 0 0
Break Octet
0 1 2 3 4 5 6 7
1 0 0 0 0 0 0 0
This octet shall be sent every time a Break signal shall be simulated
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved page 12 of 24
CMUX User Guide
30268ST10299A Rev. 0 - 13/10/06
Type Octet:
0 1 2 3 4 5 6 7
EA C/R T Y P E
Length indicator
Is code like in the Cmux Frame Structure
User Data
The Number of data is defined by the Len Indicator
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved page 13 of 24
CMUX User Guide
30268ST10299A Rev. 0 - 13/10/06
APPLICATION MODULE
AT+CMUX=0<CR>
OK<CR><LF>
((DLCI = 0)
SABM
Virtual Port #1
(DLCI = 1 ) Open
UA
((DLCI = 1)
UIH
(DLCI = 1 )
UIH
( DLCI=0, MSC)
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved page 14 of 24
CMUX User Guide
30268ST10299A Rev. 0 - 13/10/06
5.2 Scenario
As you can see, you can run 3 different applications using the same CMUX module, for example 3
HyperTerminal sending commands at the same time to the same module.
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved page 15 of 24
CMUX User Guide
30268ST10299A Rev. 0 - 13/10/06
Modem Port Panel: here you can find the information about the modem connected to your PC,
like:
1. COM on your PC used to transfer data, selected during the initial setup or selecting the
Setup voice in the application menu.
2. COM Speed selected.
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved page 16 of 24
CMUX User Guide
30268ST10299A Rev. 0 - 13/10/06
3. Connection Status: it can be idle or error when CMUX is disconnected, connecting
when PC is trying to connect to CMUX and connected when CMUX is connected
successfully.
4. Indication about the model of the modem connected.
Virtual Port Panel: here you can find all the information about the connection using a Virtual
Com installed on your PC:
Tray Icon: there is a Tray Icon indicating the status of the Serial Port Mux:
3. CMUX error.
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved page 17 of 24
CMUX User Guide
30268ST10299A Rev. 0 - 13/10/06
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved page 18 of 24
CMUX User Guide
30268ST10299A Rev. 0 - 13/10/06
6 INTEGRATOR HINTS
6.1 How to begin
The customer/integrator in order to design its own Multiplexer application must follow these basic
requirements:
The GSM engine supports the basic option and UIH Framing according to GSM 07.10;
Character framing must be configured for 8 data bits, no parity and 1 stop bit;
Hardware flow control is recommended for use with multiplexer mode. If used, it needs to be
set before Multiplexer mode is entered;
If the GSM engine is operated in multiplexer mode, the following restrictions apply:
MO and MT circuit-switched data and fax calls are available on any channels;
Multiplex mode cannot be started while autobauding (AT+IPR=0) is enabled;
XON/OFF flow control is not supported in multiplexer mode.
When using the following functions, be aware of possible dependencies between the different
channels. One way of avoiding problems may be to dedicate certain commands/features to one of the
channels or to assure that the application avoids conflicts.
Call control: a voice call can be initiated, answered on any channel and closed only on the
initialized channel;
Phonebook access: if you wish to write the same phonebook entry on two or more different
channels at the same time, please note that the only the last entry will be stored;
Unsolicited Result Codes (URCs) will generally be transmitted to all logical channels with the
dependency on the issued AT+CNMI;
Single quality and cell information can be retrieved on a single channel;
Profile configuration commands can be issued and retrieved on any channel, no matter on
which the command is executed.
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved page 19 of 24
CMUX User Guide
30268ST10299A Rev. 0 - 13/10/06
The customer application decodes and encodes the data. To prevent loss of data, the application must
be able process the information about internal flow control (MSC) regulated by the module. Flow
control information is transmitted within the data flow and contains messages whether or not the
channel is allowed to send. As of Multiplexer Protocol, the customer application must set RTS (in the
direction to the module) on channel 1. RTS shall not be switched off to prevent loss of data (control
data cannot be sent in this case). If flow control is needed, it is recommended to use logical flow
control on every channel.
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved page 20 of 24
CMUX User Guide
30268ST10299A Rev. 0 - 13/10/06
AT#QDNS
AT+CAMM
All FTP Command
All CSURV Command
All Supplementary Service Command
All Phone Book related command
return (0xFF-FCS);
}
while (len--)
{
FCS=crctable[FCS^*buf++];
}
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved page 21 of 24
CMUX User Guide
30268ST10299A Rev. 0 - 13/10/06
AT+IPR
AT+IFC
AT+ICF
ATS2 Escape sequence is not handled by the Module but shall be
handled by the applicator that will send a BREAK signal to the
module using the MSC command
ATS12 Like ATS2
ATS25 Module will recognize DTR off as soon as the MSC command is
received
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved page 22 of 24
CMUX User Guide
30268ST10299A Rev. 0 - 13/10/06
7 AT Commands
AT commands related to the CMUX feature are the following:
command description
+CMUX Enable/Disable Multiplexing Mode
#CMUXSCR 2 CMUX Script Enable
For more detailed information please refer to AT Commands Reference Guide 80000ST10025a.
2
only for the modules with Python feature
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved page 23 of 24
CMUX User Guide
30268ST10299A Rev. 0 - 13/10/06
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved page 24 of 24