Connect to the Internet on a Linux computer with a cell phone of CDMA 1X

Source: Internet
Author: User
Article Title: connect to the Internet on a Linux computer with a CDMA 1X mobile phone. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
The following describes how to use a cdma 1x mobile phone to connect to the Internet on a linux computer. If you are lucky, set it to no more than 1 minute (refer to Step 4 directly ).
  
First, thank Fireshade for sharing his successful experience with us:
Http://pdaphonehome.com/forums/showthread/t-41005.html
  
Of course, thanks to google too :)
  
Currently, there are roughly three wireless Internet access methods available: wlan, cdma 1x, and gprs.
  
Among them, the cdma 1x and gprs based on PLMN can achieve wireless access in the mobile environment (such as traveling by train, from one city to another )).
  
For details, see the relevant articles of China Information Industry Network:
  
Http://www.cnii.com.cn/20040423/ca262797.htm
  
Hardware and software required:
  
A well-functioning linux machine (my OS is redhat linux 9.0)
  
A cdma 1x mobile phone (my mobile phone is Samsung x339)
  
One usb cable corresponding to the mobile phone (the Assembly price is around 25, generally no more than 50. Corresponding to X199, X209, X319, X339, X359, X369, X559, X609, X659)
  
Now let's start.
  
1) Ensure that the modules uhci. o and acm. o have been loaded. If not, run
  
Modprobe uhci
  
Modprobe acm
  
2) connect your mobile phone to your computer using a data cable. /Var/log/messages
  
There should be something similar to the following:
  
Hub. c: new USB device. 2-1, assigned address 2
  
Usb. c: USB device 2 (vend/prod 0x4e8/0x6601) is not claimed by any active driver
  
Usb. c: registered new driver acm
  
TtyACM0: usb acm device
  
Acm. c: v0.21: USB Abstract Control Model driver for USB modems and ISDN adapters
  
3) Execution
  
Cd/
  
Find./-name "* ttyACM *" | less
  
If the ttyACM0 device file is not found (the file in rh 9.0 is in/dev/input/ttyACM0)
  
We can create this file as root and put it in/dev /.
  
Mknod ttyACM0 c 166 0
  
Allow all users to read and write:
  
Chmod 666/dev/ttyACM0
  
TtyACM0 is the device file mapped to the cdma modem.
  
Now, we need to set the dial-up. Of course, if you do not have xwindow installed and you only use lynx in the console, you can use tools such as pppsetup to set the dial-up ,:
  
Ftp://metalab.unc.edu/pub/Linux/system/network/serial/ppp/
  
Then fill in the blanks. Remember that the number is #777, And the username and password are both CARD.
  
Device/dev/ttyACM0, with a baud rate of BPS
  
Use ppp-on and ppp-off to connect to and disconnect the network
  
#######################################
  
4) redhat linux 9.0, default state uhci. o and acm. o is loaded, and the location of ttyACM0 is/dev/input/ttyACM0. Therefore, just follow the instructions below after connecting your mobile phone to your computer.
  
(Xwindow + gnome ):
Gnome menu-> system settings-> network-> New-> Modem connection-> device/dev/input/ttyACM0, baud rate 230400bps, process control (none) -> Phone #777. the username and password are both CARD and enter the provider name (such as unicom)
  
After a while, activate the connection to enable the internet on the pc.

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.