Quectel UC15 MUX User Manual

UC15 MUX User Guide
UMTS/HSPA Module Series
Rev. UC15_MUX_User_Guide_V1.0
www.quectel.com
UMTS/HSPA Module Series UC15 MUX User Guide
UC15_MUX_User_Guide Confidential / Released 1 / 35
Our aim is to provide customers with timely and comprehensive service. For any assistance, please contact our company headquarters:
Quectel Wireless Solutions Co., Ltd.
Office 501, Building 13, No.99, Tianzhou Road, Shanghai, China, 200233 Tel: +86 21 5108 6236 Mail: info@quectel.com
Or our local office, for more information, please visit:
http://www.quectel.com/support/salesupport.aspx
For technical support, to report documentation errors, please visit:
http://www.quectel.com/support/techsupport.aspx
GENERAL NOTES
QUECTEL OFFERS THIS INFORMATION AS A SERVICE TO ITS CUSTOMERS. THE INFORMATION
PROVIDED IS BASED UPON CUSTOMERS’ REQUIREMENTS. QUECTEL MAKES EVERY EFFORT
TO ENSURE THE QUALITY OF THE INFORMATION IT MAKES AVAILABLE. QUECTEL DOES NOT MAKE ANY WARRANTY AS TO THE INFORMATION CONTAINED HEREIN, AND DOES NOT ACCEPT ANY LIABILITY FOR ANY INJURY, LOSS OR DAMAGE OF ANY KIND INCURRED BY USE OF OR RELIANCE UPON THE INFORMATION. ALL INFORMATION SUPPLIED HEREIN IS SUBJECT TO CHANGE WITHOUT PRIOR NOTICE.
COPYRIGHT
THIS INFORMATION CONTAINED HERE IS PROPRIETARY TECHNICAL INFORMATION OF QUECTEL CO., LTD. TRANSMITTABLE, REPRODUCTION, DISSEMINATION AND EDITING OF THIS DOCUMENT AS WELL AS UTILIZATION OF THIS CONTENTS ARE FORBIDDEN WITHOUT PERMISSION. OFFENDERS WILL BE HELD LIABLE FOR PAYMENT OF DAMAGES. ALL RIGHTS ARE RESERVED IN THE EVENT OF A PATENT GRANT OR REGISTRATION OF A UTILITY MODEL OR DESIGN.
Copyright © Quectel Wireless Solutions Co., Ltd. 2014. All rights reserved.
Quectel
Confidential
UMTS/HSPA Module Series UC15 MUX User Guide
UC15_MUX_User_Guide Confidential / Released 2 / 35
About the Document
History
Revision
Date
Author
Description
1.0
2014-07-11
Max TANG
Initial
Quectel
Confidential
UMTS/HSPA Module Series UC15 MUX User Guide
UC15_MUX_User_Guide Confidential / Released 3 / 35
Contents
About the Document ................................................................................................................................... 2
Contents ....................................................................................................................................................... 3
Table Index ................................................................................................................................................... 5
Figure Index ................................................................................................................................................. 6
1 Introduction .......................................................................................................................................... 7
2 The Design Purpose of MUX ............................................................................................................... 8
3 MUX AT Command ............................................................................................................................... 9
3.1. AT+CMUX Enable/disable MUX Control Channel .................................................................. 9
4 The Multiplexer Protocol ................................................................................................................... 11
4.1. Frame Structure ..................................................................................................................... 11
4.1.1. Flag Field ........................................................................................................................ 11
4.1.2. Address Field ................................................................................................................. 11
4.1.2.1. EA .......................................................................................................................... 11
4.1.2.2. C/R ......................................................................................................................... 11
4.1.3. Control Field ................................................................................................................... 12
4.1.4. Length Field.................................................................................................................... 13
4.1.5. Information Field ............................................................................................................ 13
4.1.6. FCS Field ....................................................................................................................... 13
4.2. Frame Type............................................................................................................................ 14
4.2.1. SAMB ............................................................................................................................. 14
4.2.2. UA................................................................................................................................... 14
4.2.3. DISC ............................................................................................................................... 14
4.2.4. DM .................................................................................................................................. 15
4.2.5. UIH ................................................................................................................................. 15
4.3. Control Channel ..................................................................................................................... 15
4.3.1. Message Format ............................................................................................................ 15
4.3.2. Message Type and Actions ............................................................................................ 16
4.3.2.1. Power Saving Control (PSC) ................................................................................. 16
4.3.2.2. Multiplexer Close Down ......................................................................................... 16
4.3.2.3. Flow Control on Command (FCon) ....................................................................... 17
4.3.2.4. Flow Control off Command (FCoff) ....................................................................... 17
4.3.2.5. Modem Status Command (MSC) .......................................................................... 17
4.4. Procedure .............................................................................................................................. 20
4.4.1. MUX Establishment ........................................................................................................ 20
4.4.2. MUX Release ................................................................................................................. 20
4.4.3. Data Transfer .................................................................................................................. 21
4.4.3.1. Information Data .................................................................................................... 21
4.4.3.2. Time-out Considerations ....................................................................................... 21
4.4.3.3. Flow Control ........................................................................................................... 22
Quectel
Confidential
UMTS/HSPA Module Series UC15 MUX User Guide
UC15_MUX_User_Guide Confidential / Released 4 / 35
5 Power Saving Mode Under MUX ...................................................................................................... 23
5.1. Power Saving Mode Based on DTR Pin Only ....................................................................... 23
5.1.1. Host Enables Module to Enter into Power Saving Mode ............................................... 24
5.1.2. Host Enables Module to Exit from Power Saving Mode ................................................ 25
5.1.3. Module Enables Host to Exit from Power Saving Mode ................................................ 25
5.2. Power Saving Mode Based on PSC Frame and DTR Pin .................................................... 26
5.2.1. Host Enables Module to Enter into Power Saving Mode ............................................... 27
5.2.2. Host Enables Module to Exit from Power Saving Mode ................................................ 28
5.2.3. Module Enables Host to Exit from Power Saving Mode ................................................ 28
6 Example .............................................................................................................................................. 29
6.1. Samples for Frame Structure ................................................................................................ 29
6.2. Establish Channels ................................................................................................................ 30
6.3. Frame Transmission .............................................................................................................. 31
6.4. Power Saving Mode and Wake Up ....................................................................................... 32
6.5. Flow Control .......................................................................................................................... 32
6.6. Synchronization ..................................................................................................................... 33
6.7. Closing Down Multiplexers .................................................................................................... 34
7 Appendix A Reference ....................................................................................................................... 35
Quectel
Confidential
UMTS/HSPA Module Series UC15 MUX User Guide
UC15_MUX_User_Guide Confidential / Released 5 / 35
Table Index
TABLE 1: MUX FRAME STRUCTURE ............................................................................................................... 11
TABLE 2: ADDRESS FIELD ............................................................................................................................... 11
TABLE 3: C/R .................................................................................................................................................... 12
TABLE 4: THE CODING OF CONTROL FIELD ................................................................................................ 12
TABLE 5: THE STRUCTURE OF LENGTH FIELD ........................................................................................... 13
TABLE 6: MAPPING FROM THE CONTROL SIGNAL OCTET BY A RECEIVING ENTITY ............................. 19
TABLE 7: MAPPING TO THE CONTROL SIGNAL OCTET BY A SENDING ENTITY ...................................... 19
TABLE 8: AT COMMAND CONFIGURATION BASED ON DTR PIN ................................................................ 23
TABLE 9: AT COMMAND CONFIGURATION BASED ON PSC FRAME AND DTR PIN.................................. 26
TABLE 10: RELATED DOCUMENTS ................................................................................................................ 35
TABLE 11: TERMS AND ABBREVIATIONS ...................................................................................................... 35
Quectel
Confidential
UMTS/HSPA Module Series UC15 MUX User Guide
UC15_MUX_User_Guide Confidential / Released 6 / 35
Figure Index
FIGURE 1: MUX ARCHITECTURE ..................................................................................................................... 8
FIGURE 2: UA FRAME (RESPONSE) .............................................................................................................. 14
FIGURE 3: POWER SAVING FLOW CHART (1) .............................................................................................. 24
FIGURE 4: POWER SAVING FLOW CHART (2) .............................................................................................. 27
Quectel
Confidential
UMTS/HSPA Module Series UC15 MUX User Guide
UC15_MUX_User_Guide Confidential / Released 7 / 35
1 Introduction
This document mainly introduces the technical details of Quectel MUX (Multiplexer Protocol) and provides examples on how to develop MUX on devices.
Quectel
Confidential
UMTS/HSPA Module Series UC15 MUX User Guide
UC15_MUX_User_Guide Confidential / Released 8 / 35
2 The Design Purpose of MUX
As to a non-multiplexer device, it is so inefficient to deal with only one kind or one channel of data steam during a period of time. Therefore, Quectel multiplexer is designed to create 4 virtual channels on a physical port in order to transmit data simultaneously. It looks like four real physical channels for the application. They could operate the logical action on every virtual channel, such as using the SMS service or PPP dialing.
All the data from APP is packed as the frames, and the frames consist of the data and protocol field which clearly indicate the channel No., the length of the information and the FCS and so on. The frames are transmitted as one stream via the serial port. After arriving at the other peer, they are unpacked as four streams by the MUX protocol stack and transmitted to the application. Besides the information data, the control signals are also simulated.
TE
UE
Application
DLC4
DLC3
DLC2
DLC1
MUX Driver
Physical Layer
DATA
MUX Driver
APP TASK
DLC4
DLC3
DLC2
DLC1
MUX Driver
Physical Layer
DATA
DS MUX TASK
Multi DATA
Figure 1: MUX Architecture
Quectel
Confidential
UMTS/HSPA Module Series UC15 MUX User Guide
UC15_MUX_User_Guide Confidential / Released 9 / 35
3 MUX AT Command
3.1. AT+CMUX Enable/disable MUX Control Channel
This command is used to enable/disable the MUX control channel. The AT command sets parameters for the control channel. If the parameters are left out, the default value will be used.
Parameter
AT+CMUX Enable/disable MUX Control Channel
Test Command
AT+CMUX=?
Response
+CMUX: (list of supported <mode>)[,(list of supported <subset>)[,(list of supported <portspeed>)[,(list of supported <N1>)[,(list of supported <T1>)[,(list of supported <N2>)[,(list of supported <T2>)[,(list of supported <T3>)[,(list of supported <k>)]]]]]]]]
OK
Read Command AT+CMUX?
Response
+CMUX: <mode>[,<subset>[,<portspeed>[,<N1>[,<T1>[,<N2>[,<T2 >[,<T3>[,<k>]]]]]]]]
OK
Write Command
AT+CMUX=<mode>[,<subset>[,<port speed>[,<N1>[,<T1>[,<N2>[,<T2>[,<T3 >[,<k>]]]]]]]]
Response
OK
<mode> 0 Basic option. <subset> This parameter defines the way in which the MUX control channel is set up.
Virtual channel may subsequently be set up differently, but in the absence of any negotiation for the settings of a virtual channel, it shall be set up according to the control channel <subset> setting. 0 UIH frames used only. 1 UI frames used only.
Quectel
Confidential
UMTS/HSPA Module Series UC15 MUX User Guide
UC15_MUX_User_Guide Confidential / Released 10 / 35
Example
AT+CMUX=0
OK
AT+CMUX?
+CMUX: 0,0,5,127,10,3,30,10,2
OK
AT+CMUX can only be executed on UART1 since UC15 only supports MUX function via UART1.
2 I frames used only. <portspeed> 1 9600bit/s 2 19200bit/s 3 38400bit/s 4 57600bit/s 5 115200bit/s 6 230400bit/s 7 460800bit/s <N1> Maximum frame size, the range is 1-32768, 127 is the default value for basic
option (see <mode>).
<T1> The time UE waits for an acknowledgement before resorting to other action (e.g.
transmitting a frame).The step size is ten milliseconds, the range is 1-255. The default value is 100ms.
<N2> Maximum number of re-transmissions, the range is 0-255, the default value is 3. <T2> Response timer for MUX control channel, the step size is ten milliseconds, the
range is 2-255, 30 is the default value.
<T3> Wake up response timer in seconds. The range is 1-255, 10 is the default value. <k> Window size (It is not supported for UC15).
NOTE
Quectel
Confidential
Loading...
+ 25 hidden pages