Use a 3g td wireless network adapter in Ubuntu

Source: Internet
Author: User

Install Android 9.10 and use wvdia.

By default, there is no wireless NIC Driver and no Internet access is available. You only need to download the wvdial Deb installation package on Windows and install it on Ubuntu.
Search for wvdial-related libraries and Binary packages on the *** website and download all the related libraries.
Install dpkg-I *. Deb.
My 3G Nic is from Sim, sim42xx series. There is no corresponding driver, but you can use usbserial instead. This type of network adapter can use USB serial driver.
You can view the vid and PID in the following command:

Mount a USB system:

Sudo Mount-T usbfs NONE/proc/bus/USB/

View USB device information:

CAT/proc/bus/USB/devices

 

Manually install the driver:

 

Sudo modprob usbserial vendor = (Specific VID) Product = (Specific PID)

If you want to insert automatic detection, You need to configure udev:

/Etc/udev/rules. d/50-simcom-sim4222.rule
Write the following content:
Subsystem = "USB", sysfs {idproduct} = "(Specific PID, in hexadecimal notation without 0x)", sysfs {idvendor} = "(Specific VID) ", run + ="/sbin/modprobe usbserial vendor = 0x (Specific VID) Product = 0x (Specific PID )"
When you plug in the USB Nic, You can automatically identify and install the driver. The ttyusbx file is generated under/dev.
Edit/etc/wvdial. conf
[Dialer defaults]
Init0 = ate0v0
Init1 = at + cgdcont = 1, "ip", "cmnet"

Phone = * 99 *** 1 #
Modem =/dev/ttyusb0
Baud = 115200
Username = none
Password = none
Stupid mode = 1
New pppd = Yes
Auto reconnect = on

When the network card is powered on, the network is not automatically registered. In Windows, the PC Internet access tool automatically sets network registration. In Linux, You need to manually start network registration.
Use minicom to connect to/dev/ttyusb0. The baud rate is random.
Enter the following two at commands:
At ^ dstm =, 2 [Press enter] // indicates manually registering the TD network. At ^ dstm =, 2 indicates automatically registering the TD network. If the TD signal is weak, automatically switches to 2 GB Network
At + cfun = 1 [Press enter] // start the protocol stack for network registration
When OK is returned, exit minicom and use sudo wvidal for dialing. Return after dialing:
Sudo wvdial
[Sudo] password for XXX:
--> Wvdial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing MODEM.
--> Sending: At + cgdcont = 1, "ip", "cmnet"
OK
--> Modem initialized.
--> Sending: atdt * 99 *** 1 #
--> Waiting for carrier.
Connect
--> Carrier detected. Starting PPP immediately.
--> Starting pppd At Wed Jan 6 21:35:33 2010
--> PID of pppd: 2435
--> Using interface ppp0
--> Pppd: @ �� [08] �� [08] �� [08]
--> Pppd: @ �� [08] �� [08] �� [08]
--> Pppd: @ �� [08] �� [08] �� [08]
--> Pppd: @ �� [08] �� [08] �� [08]
--> Pppd: @ �� [08] �� [08] �� [08]
--> Local IP address 10.76.30.108
--> Pppd: @ �� [08] �� [08] �� [08]
--> Remote IP address 192.168.0.1
--> Pppd: @ �� [08] �� [08] �� [08]
--> Primary DNS address 211.136.112.50
--> Pppd: @ �� [08] �� [08] �� [08]

 

Okay, but I got online.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.