background image

 

 

 

 

 

UC15 

MUX User Guide   

UMTS/HSPA Module Series 

 

Rev. UC15_MUX_User_Guide_V1.0 

 

Date: 2014-07-11 

www.quectel.com

Summary of Contents for UC15 MUX

Page 1: ...UC15 MUX User Guide UMTS HSPA Module Series Rev UC15_MUX_User_Guide_V1 0 Date 2014 07 11 www quectel com ...

Page 2: ...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 COP...

Page 3: ...MTS 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 ...

Page 4: ...d 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 Mod...

Page 5: ...it 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 ...

Page 6: ...NTROL 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...

Page 7: ... 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 ...

Page 8: ...er 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 ...

Page 9: ...nel 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 tra...

Page 10: ... 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 i...

Page 11: ...e 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 millisecond...

Page 12: ...lag octet 0xF9 4 1 2 Address Field Table 2 Address Field 4 1 2 1 EA EA is always set to 1 4 1 2 2 C R C means the command and R means the response TE sends a command to the module with C R 1 and the module responses with C R 1 The module sends a command with C R 0 and the TE responses with C R 0 FLAG Address Control Length Information FCS FLAG 1 octet 1 octet 1 octet 1 2 octet Multiple octets 1 oc...

Page 13: ...serve a function in both command frames and response frames In command frames the P F bit refers to the P bit In response frames it refers to the F bit Following is detailed rules When DCE sends message frame P F is set to 0 When DCE receives message frame from DLC0 whose P F is set to 1 DCE will give priority to response it and set response frame s P F to 1 When DCE sends control frame P F is set...

Page 14: ... total length of the length field is 15 bits in that case 4 1 5 Information Field The information field is the payload of the frame and carries the user data and any convergence layer information The field is octet structured The information field only presents in I frames UI frames and UIH frames 4 1 6 FCS Field In the case of the UIH frame the contents of the I field shall not be included in the...

Page 15: ...BM or DISC frame Please refer to following diagram Figure 2 UA Frame Response 4 2 3 DISC DISC is command frame and shall be used to close down DLC Prior to acting the command the receiving station shall confirm the acceptance of the DISC command by the transmission of a UA response Please see the diagram above MS Quectel Multiplexer TE Client Receiver SABM Set up DLC 1 UA Response DISC Close DLC 1...

Page 16: ...ion between the two multiplexers 4 3 1 Message Format Multiplexer control channel is the basic channel which is used to establish DLC launch power saving wake up from power saving and implement flow control mechanism Control channel is the first channel established at the initiation of the multiplexer between the TE and MS and it has the DLCI value 0 UIH message frame is transmitted through contro...

Page 17: ...bits define the number of value octets that follows L1 is the LSB and L7 is the MSB this permits to construct messages with up to 127 value octets 4 3 2 Message Type and Actions 4 3 2 1 Power Saving Control PSC The power saving control messages use the following type field octet 1 2 3 4 5 6 7 8 EA C R 0 0 0 0 1 0 The length byte contains the value 0 and there are no value octets If a station wants...

Page 18: ... 4 Flow Control off Command FCoff The flow control command is used to handle the aggregate flow When either entity is not able to receive information it transmits the FCoff command The opposite entity is not allowed to transmit frames except on the control channel DLC 0 The length byte contains the value 0 and there are no value octets The type field octet has the following format 1 2 3 4 5 6 7 8 ...

Page 19: ...te the current status of each signal When a DTE or DCE receives a modem command it always sends a response back The mappings of the V 24 signals to the bits in the control signal octet for the receiver and sender are given in Tables 6 and 7 respectively In a modem status command it is the status of the sender s own V 24 signals that shall be sent but in a response it is copy of the V 24 signals th...

Page 20: ...nder ignored by the receiver Bit 7 Incoming call indicator IC The bit is set to 1 to indicate an incoming call Bit 8 Data Valid DV The bit is set to 1 to indicate that valid data is being sent The control byte is mapped to V 24 signals according to the tables below Table 6 Mapping from the Control Signal Octet by a Receiving Entity Circuit 133 RFR Ready for Receiving is commonly assigned to the co...

Page 21: ... DLCI value associated with the desired connection If the responding station is ready to establish the connection it will reply with a UA frame with the F bit set to 1 If the responding station is not ready or unwilling to establish the particular DLC it will reply with a DM frame with the F bit set to 1 Once a DLC has been established the stations are both said to be in a connected mode for the p...

Page 22: ...nd places it in the I field of the transmitted frame Once a UI or UIH frame has been correctly received the contents of its I field are passed to the convergence layer The frames sent by the initiating station have the C R bit set to 1 and those sent by the responding station have the C R bit set to 0 Both stations set the P bit to 0 The maximum length of the information field in UI or UIH frames ...

Page 23: ...S will feed back MSC response to indicate recover of data transmission TE can also send FCoff message to MS when refuses to accept anything except control messages on DLC 0 After this MS will stop sending any frames through all the data channels except control channels Control channel is still alive and free to send any control message Whereas sends FCon to recover transmission When receiving FCof...

Page 24: ...tion of MUX 5 1 Power Saving Mode Based on DTR Pin Only In this solution you only need to control DTR pin to let the module enter into or exit from power saving mode Additionally you need to add the following AT commands during the initialization process Table 8 AT Command Configuration Based on DTR Pin No Command Configuration Description 1 AT QSCLK 1 2 AT QURCCFG URCPORT UART1 Specify URC output...

Page 25: ...ntally exiting from power saving mode because of the unstable DTR external level The flow chart is shown as below NO NO NO NO DTR is HIGH or LOW DTR is HIGH or LOW Module is waked up Module is waked up Module is in sleep mode Module is in sleep mode Wake up Wake up Sleep Sleep HIGH HIGH LOW LOW YES YES YES YES Module is in MUX status Module is in MUX status Change RI Change RI DTR INT DTR INT Call...

Page 26: ...nore this step 5 1 3 Module Enables Host to Exit from Power Saving Mode When module is in power saving mode if it receives incoming call short message network data or necessary URC RI pin will be pulled to wake up Host to receive the data Please refer to the procedure below 1 Host receives the change of RI pin then exits from power saving mode and enters into normal mode 2 After Host exits from po...

Page 27: ...ls please refer to UC15_AT_Commands_Manual 5 AT QCFG PWRSAVEDTR 1 Enable DTR pin to control the module to enter into or exit from power saving mode 6 AT QCFG PWRSAVEMODE 0 Disable pulling up DTR pin to let the module enter into power saving mode under MUX When USB is not in use and the above AT commands are configured Host can send PSC frame to let the module enter into power saving mode and pull ...

Page 28: ... HIGH to LOW DTR from HIGH to LOW DTR change DTR change NO NO NO NO Figure 4 Power Saving Flow Chart 2 5 2 1 Host Enables Module to Enter into Power Saving Mode If the module is not in power saving mode Host can trigger it into power saving mode through the following procedure 1 Configure the AT commands mentioned in Table 9 2 Ensure the module is not in the following sate There is command waiting...

Page 29: ...it receives incoming call short message network data or necessary URC RI pin will be pulled to wake up Host to receive the data Please refer to the procedure below 1 Host receives the change of RI pin then exits from power saving mode and enters into normal mode 2 After Host exits from power saving mode successfully pull down DTR pin to let the module exit from power saving mode 3 Set hardware flo...

Page 30: ... DLCI 0 Sample 2 F9 05 EF 09 41 54 49 0D 58 F9 Opening Flag Address Field Control Field Length Field Information Field FCS Closing Flag Header DLC 1 UIH Frame 4 AT Command ATI CR Tail This sample is a UIH frame to transmit AT command ATI CR Sample 3 F9 01 EF 0B E3 07 07 0D 01 79 F9 Opening Flag Address Field Control Field Length Field Information Field FCS Closing Flag Header DLC 0 UIH Frame 5 MSC...

Page 31: ...tablish control channel DLCI 0 by SABM frame TE MS F9 03 3F 01 1C F9 SABM Frame MS feeds back UA for receiving SABM and accepts to create DLCI 0 TE MS F9 03 73 01 D7 F9 UA Frame Step 3 Establish DLC 1 2 No Step Data Direction Hex Comment 1 TE requests to establish DLCI9 by SABM frame TE MS F9 27 3F 01 0B F9 MS feeds back DM for receiving SABM but refuses to create DLCI 9 TE MS F9 27 1F 01 21 F9 2 ...

Page 32: ...stablish DLC 3 4 same as above 5 By now 4 channels have come into existence Multiplexer can work normally This sample is a MSC message carried in UIH frame to transmit V2 4 signal 0x0D 6 3 Frame Transmission After establishing control channel and data channels TE and MS can transmit data to each other through UIH frames No Step Data Direction Hex Comment 1 TE sends AT command ATI CR through DLC 1 ...

Page 33: ...ction Hex Comment 1 TE sends PSC message through DLC 0 TE MS F9 03 EF 05 43 01 F2 F9 PSC Command Frame MS feeds back PSC message through DLC 0 TE MS F9 03 EF 05 41 01 F2 F9 PSC Response Frame 2 MS enters power saving mode TE sends F9 continuously TE MS F9 F9 F9 F9 Wake up No Step Data Direction Hex Comment 1 TE sends wake up flags TE MS F9 F9 F9 F9 MS feeds back TE MS F9 F9 F9 F9 2 MS is waked up ...

Page 34: ...05 63 01 93 F9 6 TE sends FCon message through DLC 0 to indicate recovery of data transmission TE MS F9 01 EF 05 A3 01 93 F9 6 6 Synchronization After successful establishment of data channels TE and MS are synchronized and data transmission is normal Every transmission is implemented by frames which begins with a starting flag 0xF9 and ends with a closing flag 0xF9 So it is called that multiplexe...

Page 35: ...ment 1 TE sends DISC frame to request for closing down DLC 1 TE MS F9 07 53 01 3f F9 MS feeds back UA frame to accept TE MS F9 07 73 01 15 F9 2 TE sends DISC frame to request for closing down DLC 2 TE MS F9 0b 53 01 B8 F9 MS feeds back UA frame to accept TE MS F9 0b 73 01 92 F9 3 TE sends DISC frame to request for closing down DLC 3 TE MS F9 0f 53 01 3f F9 MS feeds back UA frame to accept TE MS F9...

Page 36: ...o User Equipment TE UE multiplexer protocol 2 Quectel_UC15_AT_Commands_Manual UC15 AT commands manual 3 Quectel_UC15_Power_Management_Appli cation_Note UC15 power management application note Abbreviation Description MUX Multiplexer Protocol ABM Asynchronous Balanced Mode DLC Data Link Connection FCS Frame Check Sequence SABM Set Asynchronous Balanced Mode DM Disconnected Mode UIH Unnumbered Inform...

Reviews: