CDMA dialing in linux

Source: Internet
Author: User
Tags dmesg
Linux CDMA dialing (reprinted)-Linux general technology-Linux technology and application information, the following is a detailed description. It is quite painful to be unable to access the Internet, but I don't always stay in the same place. Although CDMA wireless Internet access is slower, it's so good to be able to access the Internet! After deciding on the Internet solution, another problem emerged.

Currently, Linux usually comes with a rich array of hardware drivers, which is not an order of magnitude compared with Windows XP. However, after checking some information, I still have doubts about whether I can drive my CDMA network card smoothly. After all, Chinese manufacturers do not have the habit of providing linux drivers. if the system does not come with it, it is quite painful.

After query and practice, only some models with standard chips can be identified and directly driven by PCMCIA NICs, such as Huawei's EC321. USB is much better, most of them can be driven, but some models need to be manually set the device node.

I have a USB wireless network adapter for the pirate ship's cdma 1x UC193. The operating system is Kubuntu 7.04 (both Ubuntu and its derivative systems can be seen in the same way), and the desktop system is KDE. The process of identification, driving, and use is very easy and in one go.

For details about how to use other Linux operating systems or other network interfaces, refer to the following technical information.



(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // www.okey68.com/shangpin/9618/2/200753116595137583.jpg'); ">

Operation steps: insert the cost card into the network card, and insert the network card into the USB port of the computer. Start the dialing program KPPP.



(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // www.cnitblog.com/images/cnitblog_com/addone/wireless_cdma /kppp_main.png'); ">

Click "configuration", select the "modem" tab, and click "new". Refer to settings. The name can be entered as needed. The connection speed depends on your network card. My network card is 115200 kb, so select this one. If it is kb, select ". Click "OK" to continue.



(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // www.cnitblog.com/images/cnitblog_com/addone/wireless_cdma /kppp_modem.png'); ">

Select the "Account" tab, click "new", and select "manual settings ".



(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // www.cnitblog.com/images/cnitblog_com/addone/wireless_cdma /kppp_acc2.png'); ">

Refer to settings. Enter the connection name. Add a number. Do not miss the previous. Click "OK" to continue.



(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // www.cnitblog.com/images/cnitblog_com/addone/wireless_cdma /kppp_acc.png'); ">

Click "OK" to return to the main interface. Enter "CARD" for "Logon account" and "password ". Click "Connect" to continue.



(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // www.cnitblog.com/images/cnitblog_com/addone/wireless_cdma /kppp_main.png'); ">

Success! KPPP is automatically scaled down. Then you go to the Internet cafe!



(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // www.cnitblog.com/images/cnitblog_com/addone/wireless_cdma /kppp_final.png'); ">

Open the KPPP window and click "details" to view the statistics of the current Internet access, including the network speed and traffic.



(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // www.cnitblog.com/images/cnitblog_com/addone/wireless_cdma /kppp_detail.png'); ">

Click "Disconnect" to disconnect.


(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // www.cnitblog.com/images/cnitblog_com/addone/wireless_cdma /kppp_connected.png'); ">

Other functions can minimize KPPP to the taskbar icon. On the KPPP page, click "configuration", select the "Miscellaneous" tab, and set.



(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // www.cnitblog.com/images/cnitblog_com/addone/wireless_cdma /kppp_misc.png'); ">


KPPP can be used for logging and billing. You need to obtain the billing rule file. I am using the E2 official service package, and the fee is 100 RMB for 90 hours/month of roaming in the province. The corresponding billing rule file can be downloaded from here: china_unicom_cdma _e2.rst.rar.

Open Location :~ /. Kde/share/apps/kppp/Rules, create a folder named China, and put the downloaded and decompressed rule file in it.

On the KPPP page, click "Configure", select the "Account" tab, and double-click your CDMA Internet account.



(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // www.cnitblog.com/images/cnitblog_com/addone/wireless_cdma /kppp_acc2.png'); ">

Select the "accounting" tab and refer to the configuration.



(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // www.cnitblog.com/images/cnitblog_com/addone/wireless_cdma /kppp_balance.png'); ">

In this way, you can view the log. On the KPPP page, click "Configure", select the "Account" tab, and click "view logs.



(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // www.cnitblog.com/images/cnitblog_com/addone/wireless_cdma /kppp_log.png'); ">

The following are the technical information, including the reference technical information for configuring other network interfaces. This can be ignored by beginners.

The reason why my Nic can be easily driven is that it uses the pl2303 chip, while the ubuntu system comes with the wireless NIC driver of this chip. My related dmesg information is as follows:

[2, 331.308000] usb 1-2: new full speed USB device using uhci_hcd and address 2
[2, 331.468000] usb 1-2: configuration #1 chosen from 1 choice
[331.584000] usbcore: registered new interface driver usbserial
[1, 331.584000] drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
[331.584000] usbcore: registered new interface driver usbserial_generic
[2, 331.584000] drivers/usb/serial/usb-serial.c: USB Serial Driver core
[331.604000] drivers/usb/serial/usb-serial.c: USB Serial support registered for pl2303
[331.604000] pl2303 1-. 0: pl2303 converter detected
[331.604000] usb 1-2: pl2303 converter now attached to ttyUSB0
[2, 331.604000] usbcore: registered new interface driver pl2303
[331.604000] drivers/usb/serial/pl2303.c: Prolific PL2303 USB to serial adaptor driver

We can see that the system has identified and correctly driven the network card and attached it to the ttyUSB0 device node. So in the modem settings of KPPP, my device is set to/dev/ttyUSB0.

For a PCMCIA Nic like Huawei EC321, the corresponding device should be/dev/ttyACM0. For specific node names, refer to the actual dmesg output.

In the experiment, we found that some USB NICs could not be correctly attached to the device node, but they could still be driven. Enter the following command to manually attach it to the ttyUSB0 node:

Mknod/dev/ttyUSB0 c 188 0
Mknod/dev/ttyUSB0 c 188 1

If it succeeds, it can be used as described in this article.

If your system uses GNOME desktop, you can use its own dialing program. For more information, see the preceding section.

There is no dial-up program with a graphical interface. You can also use the wvdial powerful character interface dialing program. However, you need to modify the configuration file/dev/wvdial. conf during configuration. For specific configuration methods, refer to the reference link attached.
Related Article

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.