RK3399 driver development _ 10 - 4G module Quectel EC200A-CN transplantation


Preface

During the development process of the RK3399 platform, 4G modules are often used. This article aims to introduce a fully networked 4G module EC200A.

系统:Android8.1
内核 : Kernel 4.4.167
u-boot:2014.10
4G 模块:EC200A

1. Introduction to EC200A

The EC200A series is an LTE Cat4 wireless communication module designed by Quectel specifically for the M2M and IoT fields. It adopts 3GPPRel.9LTE technology and supports a maximum downlink rate of 150Mbps and a maximum uplink rate of 50Mbps. At the same time, the EC200A series is packaging compatible with Quectel’s multi-network standard LTE Standard EC25 series, EC21 series, EC20-CE, EG25-G, EC200T series, EC200D-CN, EC200U series, EC200N-CN and UMTS/HSPA+UC200T series of modules realizes an easy and smooth transition from 3G network to 4G network.

2. EC200A driver transplantation

1. Reference information

First obtain relevant information from the manufacturer, including:

  • Software/hardware and AT operation instruction document set
  • USB Serial Driver instruction manual and source code
  • Android RIL Driver instruction manual and source code

Relevant information can also be obtained from the following links:

The information list is as follows:

  • Quectel_Android_RIL_Driver_V3.5.14.tgz
  • Quectel_WCDMA&LTE_Android_RIL_Driver_User_Guide_V1.0.pdf
  • Quectel_Linux_USB_Serial_Option_Driver_20211012.tgz
  • Quectel_WCDMA&LTE_Linux_USB_Driver_User_Guide_V1.0.pdf

2. USB Serial porting

  • Unzip Quectel_Linux_USB_Serial_Option_Driver_20211012.tgz and get the following files: option.c qcserial.c usb-wwan.h usb_wwan.c

  • Replace the decompressed file option.c qcserial.c usb-wwan.h usb_wwan.c with the option.c qcserial.c usb-wwan.h usb_wwan.c in the sdk source code kernel/drivers/usb/serial/ path.

  • Enable kernel options and add macro definitions:

CONFIG_USB_SERIAL=y
CONFIG_USB_SERIAL_DEBUG=y
CONFIG_USB_SERIAL_QUALCOMM=y
CONFIG_USB_SERIAL_WWAN=y
CONFIG_USB_SERIAL_GENERIC=y
CONFIG_USB_SERIAL_OPTION=y

3. EC200A device tree DTS settings

  • Add 4G DTS configuration in kernel/arch/arm64/boot/dts/rockchip/rk3399-xxx.dts:
	4G-Modem {
   
    
    
		compatible="4g-modem-platdata";
		pinctrl-names = "default";
		pinctrl-0 = <&lte_wakeupin &lte_power &lte_reset &lte_simsel>;
		

Guess you like

Origin blog.csdn.net/chenkanuo/article/details/132692815