Documente Academic
Documente Profesional
Documente Cultură
GE863-OUAD Pb balls 3 990 250 662 GE863-PY Pb balls 3 990 250 661
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved
page 2 of 24
Contents
1 2 3 INTRODUCTION................................................................................................................4
1.1 Scope of document ................................................................................................................4
INTEGRATOR HINTS......................................................................................................19
6.1 6.2 6.3 6.4 6.5 How to begin .........................................................................................................................19 Flow control ..........................................................................................................................20 Blocking command ..............................................................................................................20 Lookup table for FCS calculation .......................................................................................21 Ignored command ................................................................................................................22
7 8
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved
page 3 of 24
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.
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved
page 4 of 24
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
3 TECHNICAL CHARACTERISTICS
3.1 Product architecture
The Multiplexer mode enables one serial interface to transmit data to four different customer applications. This is achieved by providing four virtual channels using a Multiplexer (Mux). 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.
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved
page 6 of 24
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
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 EA C/R 2 3 D 4 L 5 C 6 I 7
EA: Extension Bit Shall be always 1 in the basic option of the protocol C/R: Command Response The C/R (command/response) bit identifies the frame as either a command or a response. In conformance with the standard HDLC rules, a command frame contains the address of the data link connection entity to which it is transmitted while a response frame contains the address of the data link connection entity transmitting the frame. Command/response Command Response Direction Application Module Application Module C/R value 1 0 0 1
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved
page 8 of 24
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: Data Link Connection Identifier DLCI value identify the Virtual Port inside the Module with the following assignment DLCI 0 1 2 3 4
Reserved to Control Channel Virtual Port #1 Virtual Port #2 Virtual Port #3 Reserved for Python debug
Control Field The content of the control field defines the type of frame Frame Type SABM (Set Asynchronous Balanced Mode) UA (Unnumbered Acknowledgement) DM (Disconnected Mode) DISC (Disconnect) UIH (Unnumbered Information with Header check) P/F is the Poll/Final bit: Commands: P=1 Response: F=1 SABM (Set Asynchronous Balanced Mode ) The SABM command shall be used by the application to start the HDLC Connection. The module will answer to this command with an UA Frame. 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. 0 1 1 1 1 1 1 1 1 1 1 1 2 1 0 1 0 1 3 1 0 1 0 1 4 P/F P/F P/F P/F P/F 5 1 1 0 0 1 6 0 1 0 1 1 7 0 0 0 0 1
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved
page 9 of 24
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. UIH (Unnumbered Information) Refer to the specific chapter Length Indicator This Octet specified the length of the information field 0 E/A 1 L1 2 L2 3 L3 4 L4 5 L5 6 L6 7 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 0 Octet 2 0 1 1 L9 2 L10 3 L11 4 L12 5 L13 6 L14 7 L15 1 L1 2 L2 3 L3 4 L4 5 L5 6 L6 7 L7
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. FCS ( Frame Checking Sequence) The FCS is calculated over all the frame with the exclusion of the flags. Only in case of UIH frame the FCS shall not be calculated over the information field. The FCS shall be the ones complement of the sum (modulo 2) of the remainder of xk (x7 + x6 + x5 + x4 + x3 + x2 + x1 + 1) divided (modulo 2) by the generator polynomial x8 + x2 + x + 1, where k is the number of bits in the frame
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved
page 10 of 24
Type Octet: 0 1 EA C/R EA: Extension Bit Shall be always 1. C/R: Identify if is a Command or Response 2 3 T 4 Y 5 P 6 E 7
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: Multiplexer close down (CLD) The multiplexer close down command is used to reset the link into normal AT command mode without multiplexing Type 3 Len 0
Test Command (Test) The test command is used to test the connection between MS and the TE. The length byte describes the number of values bytes, which are used as a verification pattern. The opposite entity shall respond with exactly the same value bytes. Type 4 Len N Value 1 Any Char Value2 Any Char Value .. Any Char Value N Any Char
Modem Status Command (MSC) This command is used to send V.24 signal info.
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved
page 11 of 24
Len 2
Value 1 DLCI
Format with Break Indication Type 6 Len 3 Value 1 DLCI Value 2 V24 Octet Value 3 Break Octet
This octet shall be sent every time a Break signal shall be simulated Non Supported Command Response (NSC) This response is sent whenever a command type is not supported by the receiving entity. Type 8 Len 1 Value 1 Command Not Supported
Power Saving Control (PSC) This command is used to program the power saving mode of the module when Multiplexer mode. AT+CFUN command shall not be used. Type 6 Len 1 Value 1 Power Saving Mode
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved
page 12 of 24
Type Octet: 0 1 EA C/R EA: Extension Bit Shall always be 1. C/R: Identify if is a Command or Response 2 3 T 4 Y 5 P 6 E 7
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved
page 13 of 24
SABM (DLCI = 0 ) UA ((DLCI = 0) SABM (DLCI = 1 ) UA ((DLCI = 1) UIH (DLCI = 0, MSC on DLCI1 ) UIH
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved
page 14 of 24
5.2 Scenario
Virtual COM 1
PC TOOL 1
MODULE CMUX C O M
Virtual COM 2 PC TOOL 2
P C
Virtual COM 3
PC TOOL 3
Python debug
PC TOOL 4
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
Modem Port Panel: Real port (COM) used to communicate with PC Speed (Baud rate) Status Model
Virtual Port Panel: Virtual port number Status Baud Rate Bytes Transmitted\Received RTS: Request to send DTR: Data Terminal Ready CTS: Clear To Send DCD: Data Carrier Detect DSR: Data Set Ready RI: Ring Indicator
Tray icon: when Telit Serial Port Mux is working, there is a Tray Icon Showing the state of the connection
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
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: 1. 2. 3. 4. 5. Virtual Com number. Virtual Port Status: it can be idle, idle no DCD, Error, Opened. Baud Rate. Number of bytes received and transmitted (RX Bytes, TX Bytes). All the common serial port signals like RequestToSend, DataTerminalReady, ClearToSend, DataCarrierDetected, DataSetReady and RingIndicator.
Tray Icon: there is a Tray Icon indicating the status of the Serial Port Mux:
1. 2. 3.
CMUX connected: the Tray Icon is blinking. CMUX disconnected or connecting. CMUX error.
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved
page 17 of 24
Module Serial Port Panel: here you can select the Real COM to use and its speed
Virtual Serial Port Panel: here you can create virtual ports
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved
page 18 of 24
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;
The following functions or events may be ongoing independently on different channels: 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
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved
page 20 of 24
AT#QDNS AT+CAMM All FTP Command All CSURV Command All Supplementary Service Command All Phone Book related command
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved
page 21 of 24
ATS12 ATS25
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 Like ATS2 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
7 AT Commands
AT commands related to the CMUX feature are the following: command +CMUX #CMUXSCR 2 description Enable/Disable Multiplexing Mode CMUX Script Enable
For more detailed information please refer to AT Commands Reference Guide 80000ST10025a.
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved
page 23 of 24
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Right reserved
page 24 of 24