Quectel UC20 User Manual

Quectel UC20 User Manual

Embedded linux usb driver
Hide thumbs Also See for UC20:

Advertisement

Quick Links

UC20
Embedded Linux USB Driver
User Guide
UMTS/HSPA Module Series
Rev. UC20_Embedded_Linux_USB_Driver_User_Guide_V1.0
Date: 2013-06-04
www.quectel.com

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the UC20 and is the answer not in the manual?

Questions and answers

Summary of Contents for Quectel UC20

  • Page 1 UC20 Embedded Linux USB Driver User Guide UMTS/HSPA Module Series Rev. UC20_Embedded_Linux_USB_Driver_User_Guide_V1.0 Date: 2013-06-04 www.quectel.com...
  • Page 2 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.
  • Page 3: About The Document

    UMTS/HSPA Module UC20 Embedded Linux USB Driver User Guide About the document History Revision Date Author Description 2012-05-31 Clare CHEN Initial UC20_Embedded_Linux_USB_Driver_User_Guide Confidential / Released 2 / 18...
  • Page 4: Table Of Contents

    UMTS/HSPA Module UC20 Embedded Linux USB Driver User Guide Contents About the document ........................... 2 Contents ............................... 3 Table Index ..............................4 Figure Index ..............................5 Introduction ............................6 Product Overview ..........................7 System Setup ............................8 3.1. Linux USB Drivers Structure...................... 8 3.2.
  • Page 5 UMTS/HSPA Module UC20 Embedded Linux USB Driver User Guide Table Index TABLE 1: INTERFACE DESCRIPTION ....................... 7 TABLE 2: RELATIONSHIP BETWEEN INTERFACES AND DEVICES ............14 TABLE 3: TERMS AND ABBREVIATIONS ......................18 UC20_Embedded_Linux_USB_Driver_User_Guide Confidential / Released 4 / 18...
  • Page 6 UMTS/HSPA Module UC20 Embedded Linux USB Driver User Guide Figure Index FIGURE 1:USB DRIVER STRUCTURE ......................8 FIGURE 2: ADD UC20 SUPPORT ........................10 FIGURE 3:KERNEL CONFIGURATION – SELECT DEVICE DRIVERS ............11 FIGURE 4:KERNEL CONFIGURATION – SELECT USB SUPPORT ..............11 FIGURE 5:KERNEL CONFIGURATION –...
  • Page 7: Introduction

    UMTS/HSPA Module UC20 Embedded Linux USB Driver User Guide Introduction This document introduces how to generate the USB driver for UC20 module in Embedded Linux OS, and how to use the module after the USB driver being loaded successfully. UC20_Embedded_Linux_USB_Driver_User_Guide...
  • Page 8: Product Overview

    UC20 Embedded Linux USB Driver User Guide Product Overview Quectel UC20 is a wireless WCDMA modem. You can use it to implement some functions such as VOICE CALL and browsing internet and so on. In general, the UC20 module will create five interfaces when you connect it with embedded equipments.
  • Page 9: System Setup

    UC20 Embedded Linux USB Driver User Guide System Setup Linux OS includes a generic USB to serial driver for modem. You can make the UC20 module available in the Embedded Linux OS by adding some kernel configuration items and adding the information (VID/PID) in Linux kernel.
  • Page 10: Building The Driver

    3.2.2. Modify the Source Code File of Linux Kernel Modify the source code file "option.c" in Linux kernel by adding VID and PID of UC20, so that the OS can recognize it. UC20_Embedded_Linux_USB_Driver_User_Guide...
  • Page 11: Modify Kernel Configuration

    UMTS/HSPA Module UC20 Embedded Linux USB Driver User Guide The UC20’s VID and PID as follows:  VID – 0x05c6  PID – 0x9003 Open the file "option.c" in the path of "\drivers\usb\serial" and find the struct array "static structusb_device_idoption_ids[]". Insert "{USB_DEVICE (0x05c6,0x9003)}," to the array, then save and close it.
  • Page 12 UMTS/HSPA Module UC20 Embedded Linux USB Driver User Guide Figure 3: Kernel Configuration – Select Device Drivers Figure 4: Kernel Configuration – Select USB Support UC20_Embedded_Linux_USB_Driver_User_Guide Confidential / Released 11 / 18...
  • Page 13 UMTS/HSPA Module UC20 Embedded Linux USB Driver User Guide Figure 5: Kernel Configuration – Select USB Serial Converter Support Figure 6: Kernel Configuration – Select USB Generic Serial Driver UC20_Embedded_Linux_USB_Driver_User_Guide Confidential / Released 12 / 18...
  • Page 14: Compiling The Kernel

    3.3. Loading the Driver When UC20 module is connected with the Linux Kernel System mentioned above, the system will firstly recognize UC20 module and read its device descriptor, then create five interface devices automatically, listed as below. After that, you can use these five interface devices.
  • Page 15 You can check the result in the terminal, using the following command #ls /dev/ttyUSB* If the five device node files are listed, it is certain that the UC20 module has been recognized by Linux/Android OS. And the corresponding relations to the interfaces of the devices are shown as below:...
  • Page 16: Application Of Reference

    4.2. Testing AT commands on the Devices’ Port You can use serial debugging tools to send AT commands, and check on the working of the UC20 module. When you configure the serial debugging tools, the serial port must be "/dev/ttyUSB2" or "/dev/ttyUSB3 "and the sending data may be as follows:...
  • Page 17 UC20 Embedded Linux USB Driver User Guide # pppd call Module-UC20 The parameter Module-UC20 is a script file of PPP dial. In general, the PPP dial script files include three files: "Module-UC20","Chat-Module-UC20-connect" and "Chat-Module-UC20-disconnect". The content of the file "Module-UC20" is shown as below: #/etc/ppp/peers/Module-UC20 # Usage: root>pppd call Module-UC20...
  • Page 18 ABORT 'NO ANSWER' '' AT '' ATE0 # Dial the number OK ATD*99# CONNECT '' The content of the file "Chat-Module-UC20-disconnect" is shown as below: ABORT OK ABORT BUSY ABORT DELAYED ABORT "NO ANSWER" ABORT "NO CARRIER" ABORT "NO DIALTONE"...
  • Page 19: Appendix A Reference

    UMTS/HSPA Module UC20 Embedded Linux USB Driver User Guide Appendix A Reference Table 3: Terms and Abbreviations Abbreviation Description Operating System Product ID Vendor ID UC20_Embedded_Linux_USB_Driver_User_Guide Confidential / Released 18 / 18...

Table of Contents