Quectel Android Linux CMUX Driver User Guide V1.0

User Manual: Pdf

Open the PDF directly: View PDF PDF.
Page Count: 8

DownloadQuectel Android Linux CMUX Driver User Guide V1.0
Open PDF In BrowserView PDF
Android & Linux
CMUX Driver User Guide
Rev. Android&Linux_CMUX_Driver_User_Guide_V1.0
Date: 2014-05-21

www.quectel.com

Android & Linux CMUX Driver User Guide

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:

l
e
t
l
c
a
i
e
t
u
n
Q fide
n
o
C

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.

Android & Linux_CMUX_Driver_User_Guide

Confidential / Released

1/7

Android & Linux CMUX Driver User Guide

About the Document
History
Revision
1.0

l
e
t
l
c
a
i
e
t
u
n
Q fide
n
o
C
Date

Author

Description

2014-05-21

Joe WANG

Initial

Android & Linux_CMUX_Driver_User_Guide

Confidential / Released

2/7

Android & Linux CMUX Driver User Guide

Contents
About the Document ................................................................................................................................... 2
Contents ....................................................................................................................................................... 3
1

Introduction .......................................................................................................................................... 4

2

System Integration............................................................................................................................... 5
2.1.
The Structure of CMUX ............................................................................................................. 5
2.2.
Driver Integration ....................................................................................................................... 5
2.2.1. Get CMUX Driver Source Code ....................................................................................... 5
2.2.2. Compile Driver ................................................................................................................. 5
2.2.3. Parameters Instruction ..................................................................................................... 6

3

Appendix A Reference......................................................................................................................... 7

l
e
t
l
c
a
i
e
t
u
n
Q fide
n
o
C

Android & Linux_CMUX_Driver_User_Guide

Confidential / Released

3/7

Android & Linux CMUX Driver User Guide

1

Introduction

This document mainly introduces how to integrate the CMUX driver into Android or Linux OS for Quectel
wireless module.

l
e
t
l
c
a
i
e
t
u
n
Q fide
n
o
C
Android & Linux_CMUX_Driver_User_Guide

Confidential / Released

4/7

Android & Linux CMUX Driver User Guide

2

System Integration

This chapter describes the structure of Android and Linux CMUX driver and explains how to integrate the
CMUX driver into Android or Linux OS for Quectel wireless module.

l
e
t
l
c
a
i
e
t
u
n
Q fide
n
o
C

2.1. The Structure of CMUX

The multiplexer provides several virtual connections between TE and MS. TE and MS communicate with
each other through the virtual channel. And each channel between TE and MS is called Data Link
Connection (DLC) and established separately and sequentially. Each DLC may have individual flow
control procedures for buffer management and the aggregate link also has overall flow control
mechanisms.

TE

MS

TE Process

MS Process

Convergence
Layer

Convergence
Layer

Multiplexer
Layer

Multiplexer
Layer

Physical Layer
Serial link

Physical Layer
Serial link

Figure 1: CMUX Structure

2.2. Driver Integration

2.2.1. Get CMUX Driver Source Code
Quectel provides the CMUX source code, please contact Quectel technical support to get it.

2.2.2. Compile Driver
CMUX driver only has one file named “gsm0710muxd_bp.c”, you can use the following command to

Android & Linux_CMUX_Driver_User_Guide

Confidential / Released

5/7

Android & Linux CMUX Driver User Guide

compile CMUX driver:
"gcc -o gsm0710muxd_bp gsm0710muxd_bp.c -lpthread"
For embedded system, you should use cross compiler to compile.

2.2.3. Parameters Instruction
1. Here are all parameters for CMUX driver:














-d: Fork, get a daemon [yes]
-v: Set verbose logging level. 0 (Silent) - 7 (Debug) [6]
-s: : Serial port device to connect to [/dev/ttyS0]
-c: : Hardware flow control [disabled]
-t: : Reset modem after this number of seconds of silence [0]
-P: : PIN code to unlock SIM [-1]
-p: : Use ping and reset modem after this number of unanswered pings [0]
-b: : Mode baudrate [115200]
-m: : Mode (basic, advanced) [basic]
-f: : Frame size [130]
-n: : Number of virtual ports to create, must be in the range of 1-31 [3]
-o: : Output log to /tmp/gsm0710muxd.log [no]
-h: Show this help message and show current settings.

l
e
t
l
c
a
i
e
t
u
n
Q fide
n
o
C

Parameters in “[]” are the default values.

2. Here are several parameters which are used frequently:




-s: : Serial port device to connect [/dev/ttyS0]
-n: : Number of virtual ports to create, must be in the range of 1-31 [3]
-b: : Mode baudrate [115200]

3. Example of how to run CMUX driver:

gsm0710muxd_bp -s /dev/ttyS0 -b 115200 -n 3

When CMUX driver is working, it will create several pts files in /dev/pts, and also create several links in
/dev/chn. It is better to use links than pts files, because links are always named from 1 to N (N is the
parameter you set), while pts files maybe not.
4. Debug
-v: Set verbose logging level. 0 (Silent) - 7 (Debug) [6]
If debug is needed, set parameter “-v” value to 7 to print all debug message.

Android & Linux_CMUX_Driver_User_Guide

Confidential / Released

6/7

Android & Linux CMUX Driver User Guide

3

Appendix A Reference

Table 1: Terms and Abbreviations
Abbreviation

Description

DLC

Data Link Connection

OS
TE
MS

l
e
t
l
c
a
i
e
t
u
n
Q fide
n
o
C
Operating System

Terminal Equipment
Mobile Station

Android & Linux_CMUX_Driver_User_Guide

Confidential / Released

7/7



Source Exif Data:
File Type                       : PDF
File Type Extension             : pdf
MIME Type                       : application/pdf
PDF Version                     : 1.4
Linearized                      : No
XMP Toolkit                     : 3.1-701
Producer                        : Microsoft® Office Word 2007
Format                          : application/pdf
Creator                         : kelly
Creator Tool                    : Microsoft® Office Word 2007
Create Date                     : 2014:05:21 10:44:29Z
Modify Date                     : 2014:05:21 10:45:31+08:00
Metadata Date                   : 2014:05:21 10:45:31+08:00
Document ID                     : FECFD13E-9E21-47F1-B3C5-47D1438CFB74
Instance ID                     : uuid:c87bb615-9b2f-4b03-822b-1861fe903277
Part                            : 1
Conformance                     : B
Page Count                      : 8
Language                        : zh-CN
Author                          : kelly
EXIF Metadata provided by EXIF.tools

Navigation menu