In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "how to achieve the transplantation of Qt4.7-4G_EC20". Many people will encounter such a dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
The EC20 module is packaged into a standard PCIe interface and communicates with the development board mainly through usb. The files provided this time include pppd source code, compiled chat and pppd tools, wcdma,wcdma_back,wcdma-chat-connect, wcdma-chat-disconnect, and pppd_conf.sh scripts to be used at the end of the document, as shown in the following figure.
Before compiling, modify the compiler to arm-2009q3 compiler. See manual 5.2.2 "installation of cross-compilation tools" on how to set the compiler. In addition, in order to avoid the possible problems of using environment variables to set up the compiler, most of the compilers in the document use the absolute path of the compiler, and users should first find the absolute path of their own compiler for use. The following figure shows the compiler and compiler package used for this compilation.
From the figure above, we can see that the absolute path of the compiler is "/ usr/local/arm/arm-2009q3/bin/ arm-none-".
Linux-gnueabi-gcc ".
1. Driver support
First of all, we need to make some changes to the Linux kernel driver to enable the operating system to support EC20, and first add VID and
PID, that is, the usb manufacturer ID and device ID. Kernel / drivers/usb/serial/option.c text in kernel source code
Add the following two items to the document.
# define EC20_VID 0x1E0E
# define EC20_PID 0x9001
This is shown in the following figure.
Then search for option_ids and add the following to the option_ids list.
{USB_DEVICE (EC20_VID, EC20_PID)}
This is shown in the following figure.
Go back to the kernel directory and configure make menuconfig for the following two items. Device Drivers →
USB Support →
USB Serial Converter support →
USB driver for GSM and CDMA modems
And select all the PPP*** in Device Drivers > Network device support
Then compile the kernel and burn it to the development board.
two。 Compile the ppp dialing tool
Extract the provided source code to Ubuntu and enter the extracted folder, as shown in the following figure.
Use the ". / configure" command to configure the source code, as shown in the following figure.
Use the command "make CC=/ usr/local/arm/arm-2009q3/bin/ arm-none-linux-gnueabi-gcc" to compile the source code, and note that the absolute path of the compiler is used here.
When the compilation is complete, you can see that the pppd tool is generated in the pppd folder and the chat tool is generated in the chat folder, as shown in the following figure.
3. Copy tool
Download the pppd and chat tools generated in the above steps to the development board / usr/sbin/ directory. Copy the script wcdma,wcdma-chat-connect,wcdma-chat-disconnect provided by the compressed package
Go to the / etc/ppp/peers/ directory of the development board.
Finally, execute the following instructions on the development board to establish a soft connection. Ln / lib/ld-linux-armhf.so.3 / lib/ld-linux.so.3
4. test
First install the antenna on the development board, as shown in the following figure.
After inserting the mobile phone card, restart the development board, copy the script pppd_conf.sh to the development board, and then run the script with the command ". / pppd_conf.sh &". The result is shown in the following figure
Using the command "ping www.baidu.com-c 4-I ppp0" test, you can see that the connection is successful (because the 4G connection needs to search for a signal, you have to wait a while in the area where the signal is poor before you can surf the Internet).
The migration to this is complete.
This is the end of the introduction of "how to transplant Qt4.7-4G_EC20". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.