關於4G模塊 linux驅動的介紹

1 Introduction
This document introduces how to generate the USB driver for HFY module in Linux OS,
and how to use the module after the USB driver is loaded successfully.This document is
applicable to HFY G8100 modules.
2 Products Overview
The new generation of LTE module/mPCIE modems provide both HSDPA/3G and
LTE/4G wireless connectivity, these modems by default use the newer QMI interface as
the primary connection method, as opposed to PPP over serial or Direct IP as with earlier
modems in the range, and are currently best supported by Linux OS or above as this has
support for the libqmi interface tools.
USB on G8100(UMTS/HSPA/LTE) module contains several different functional interfaces.
Diagram 2.1 describes the interface information of different modules in the Linux system.
3 Linux Driver
G8100 module supports two type of dirver in Linux OS, they are as follows:
1) USB serial – With those interfaces, you can send AT commands to the module or get
the GPS NMEA data from it.
2) QMI WWAN – With this interface, your system will appear a network card like as
WWAN0 and you can access the network.
3.1 USB Serial
If you are using USB serial driver, please read this section for details. Otherwise, please
skip this section.
When the G8100 module is attached to the USB Serial driver, the driver will create device
files in directory “/dev”, named as below:
ttyUSB0/ttyUSB1/ttyUSB2…
However, both of USB serial and RMNET are belong to non-CDC device, it will be
identified to a RMMNET interface so that the USB serial can not be loaded. You have to
add this USB info to [KERNEL]/drivers/usb/serial/option.c to avoid loading.
Modifications in [KERNEL]/drivers/usb/serial/option.c:
/* HFY Products*/
#define HFY_VENDOR_ID 0x05c6
#define HFY_PRODUCT_G8100 0x9025
…………..
static const struct option_blacklist_info hfy_g8100_blacklist = {
.reserved = BIT(4),
};
………
static const struct usb_device_id option_ids[] = {
{ USB_DEVICE(HFY_VENDOR_ID, HFY_PRODUCT_G8100), .driver_info =
(kernel_ulong_t)&hfy_g8100_blacklist },
Kernel Configuration
Load the required modules
~# lsmod |grep opt
op
由於排版空間有限 需要的加15220096219

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章