How to transplant in Qt4.7 system of iTOP-iMX6 development board

Transplantation of 4G_EC20 module in Xunwei iTOP-iMX6 development board Qt4.7 system

The EC20 module is packaged into a standard PCIe interface, and communicates with the development board mainly through usb. The documents provided this time are

pppd source code, compiled chat and pppd tools, wcdma, wcdma_back, wcdma-chat-connect, wcdma-chat-disconnect and the pppd_conf.sh script to be used at the end of the document, as shown below

Shown.

How to port in the Qt4.7 system of iTOP-iMX6 development board

Before compiling, modify the compiler to version 4.3.2. For how to set the compiler, please refer to chapter 7.1 of the manual

"Qt/E4.7.1 Compiler Installation". In addition, in order to avoid problems that may arise when using environment variables to set the compiler, the text

Most of the compilation in the file uses the absolute path of the compiler, and users should also find the absolute path of their own compiler for use. The following figure

It is the compiler and compiler compressed package used in this compilation.

How to port in the Qt4.7 system of iTOP-iMX6 development board

The above figure shows that the absolute path of the compiler is "/usr/local/arm/4.3.2/bin/ arm-none-linux-gnueabi-gcc".

1 Driver support

First, you need to make certain modifications to the Linux kernel driver to enable the operating system to support EC20. First, add VID and

PID, that is, the manufacturer ID and device ID of the usb. Kernel_imx/drivers/usb/serial/opTIon.c in the kernel source code

Add the following two items to the file.

#define EC20_VID 0x1E0E

#define EC20_PID 0x9001

As shown below.

How to port in the Qt4.7 system of iTOP-iMX6 development board

Then search for opTIon_ids and add the following content to the opTIon_ids list.

{USB_DEVICE (EC20_VID, EC20_PID)},

As shown below.

How to port in the Qt4.7 system of iTOP-iMX6 development board

Go back to the kernel_imx6 directory and configure the following two items of make menuconfig.

Device Drivers →

USB Support →

USB Serial Converter support →

USB driver for GSM and CDMA modems

How to port in the Qt4.7 system of iTOP-iMX6 development board

And select all "*" PPP*** in Device Drivers "Network device support

How to port in the Qt4.7 system of iTOP-iMX6 development board

Then compile the kernel and burn it to the development board.

2 Compile ppp dial tool

Unzip the provided source code to Ubuntu and enter the unzipped folder, as shown in the figure below.

How to port in the Qt4.7 system of iTOP-iMX6 development board

Use the "./configure" command to configure the source code, as shown in the figure below.

How to port in the Qt4.7 system of iTOP-iMX6 development board

Use the command "make CC=http://" to compile

Source code, note that the absolute path of the compiler is used here.

How to port in the Qt4.7 system of iTOP-iMX6 development board

Compilation is now complete, you can see that the pppd tool is generated in the pppd folder, and chat is generated in the chat folder

Tools, as shown in the figure below.

How to port in the Qt4.7 system of iTOP-iMX6 development board

How to port in the Qt4.7 system of iTOP-iMX6 development board of Xunwei

3 copy tool

Download the pppd and chat tools generated in the above steps to the /usr/sbin/ directory and /etc/ppp/ directory of the development board

under.

Copy the scripts wcdma, wcdma-chat-connect, wcdma-chat-disconnect provided by the compressed package

Go to the /etc/ppp/peers/ directory of the development board.

4 test

After inserting the phone card, restart the development board, and copy the script pppd_conf.sh to the development board, and then use the command

"./Pppd_conf.sh &" runs the script and the result is shown in the figure below.

How to port in the Qt4.7 system of iTOP-iMX6 development board

Use the command "ping -c 4 &" to test, you can see that the network connection is successful.

How to port in the Qt4.7 system of iTOP-iMX6 development board of Xunwei

The migration is now complete.

Personal Protective Equipment

With more than 15+ yrs rich MFG experience, you can definitely trust in and cooperate with.
Provide you with the supply of personal protective equipment. to help you safely get back to your daily routine.
Our products include pulse Oximeter Finger, Forehead Thermometer, Automatic foam soap dispenser, etc.
Our strict quality control protocol thoroughly vets every aspect of production, storage, and shipments all the way way to our end customers.


protective equipment, ppe personal protective equipment, definition of personal protective equipment

TOPNOTCH INTERNATIONAL GROUP LIMITED , https://www.micbluetooth.com