ARM开发板3G上网

模块:UE600G
支持:3G/CDMA

平台:X86 ubuntu 8.04

 

同样适用于ARM-linux平台,只需KERNEL加上PPP支持。
操作方法:
1:modprobe usbserial vendor=0x19f5 product=0x9909

2:root@tommy-desktop:/etc/ppp# pppd connect 'chat -v "" "AT" "" "ATDT#777 CONNECT"' user CARD password CARD /dev/ttyUSB1 115200 nodetach crtscts debug usepeerdns defaultroute
Serial connection established.
using channel 29
Using interface ppp0
Connect: ppp0 <--> /dev/ttyUSB1
rcvd [LCP ConfReq id=0x1 <mru 1448> <asyncmap 0x0> <auth chap MD5> <magic 0x5d251579> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x8950c2c5> <pcomp> <accomp>]
sent [LCP ConfAck id=0x1 <mru 1448> <asyncmap 0x0> <auth chap MD5> <magic 0x5d251579> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x8950c2c5> <pcomp> <accomp>]
sent [LCP EchoReq id=0x0 magic=0x8950c2c5]
rcvd [CHAP Challenge id=0x2 <4fca45397f85066c5cab96cf60ad3660>, name = "utstar.com"]
sent [CHAP Response id=0x2 <6f9018fd79653698be5cc9cd0164cd58>, name = "CARD"]
rcvd [LCP EchoRep id=0x0 magic=0x5d251579]
rcvd [CHAP Success id=0x2 "/000"]
CHAP authentication succeeded:
CHAP authentication succeeded
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
rcvd [IPCP ConfReq id=0x3 <compress VJ 07 00> <addr 115.168.74.41>]
sent [IPCP ConfAck id=0x3 <compress VJ 07 00> <addr 115.168.74.41>]
rcvd [CCP ConfReq id=0x4 < 11 06 00 01 01 01>]
sent [CCP ConfRej id=0x4 < 11 06 00 01 01 01>]
rcvd [CCP ConfRej id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [CCP ConfReq id=0x2]
rcvd [IPCP ConfNak id=0x1 <compress VJ 07 00> <addr 117.61.1.109> <ms-dns1 61.177.7.1> <ms-dns3 218.2.135.1>]
sent [IPCP ConfReq id=0x2 <compress VJ 07 00> <addr 117.61.1.109> <ms-dns1 61.177.7.1> <ms-dns3 218.2.135.1>]
rcvd [CCP TermAck id=0x5]
sent [CCP TermReq id=0x3"No compression negotiated"]
rcvd [IPCP ConfAck id=0x2 <compress VJ 07 00> <addr 117.61.1.109> <ms-dns1 61.177.7.1> <ms-dns3 218.2.135.1>]
not replacing existing default route via 192.168.1.2
Cannot determine ethernet address for proxy ARP
local IP address 117.61.1.109
remote IP address 115.168.74.41
primary DNS address 61.177.7.1
secondary DNS address 218.2.135.1
Script /etc/ppp/ip-up started (pid 12298)
Script /etc/ppp/ip-up finished (pid 12298), status = 0x0
rcvd [CCP TermAck id=0x3]

tommy@tommy-desktop:/work2/$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:1f:c6:45:90:b8
inet6 addr: fe80::21f:c6ff:fe45:90b8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:35283 errors:0 dropped:0 overruns:0 frame:0
TX packets:31834 errors:0 dropped:0 overruns:0 carrier:28
collisions:0 txqueuelen:1000
RX bytes:27829017 (26.5 MB) TX bytes:0 (0.0 B)
Memory:dbfc0000-dc000000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2822 errors:0 dropped:0 overruns:0 frame:0
TX packets:2822 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:326414 (318.7 KB) TX bytes:326414 (318.7 KB)

ppp0 Link encap:Point-to-Point Protocol
inet addr:117.61.170.251 P-t-P:115.168.74.48 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1448 Metric:1
RX packets:21 errors:1 dropped:0 overruns:0 frame:0
TX packets:22 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:1707 (1.6 KB) TX bytes:1243 (1.2 KB)

tommy@tommy-desktop:/work2/$ ping www.baidu.com
PING www.a.shifen.com (220.181.6.18) 56(84) bytes of data.
64 bytes from 220.181.6.18: icmp_seq=1 ttl=57 time=67.7 ms
64 bytes from 220.181.6.18: icmp_seq=2 ttl=57 time=81.1 ms
64 bytes from 220.181.6.18: icmp_seq=4 ttl=57 time=63.3 ms
64 bytes from 220.181.6.18: icmp_seq=5 ttl=57 time=67.6 ms
64 bytes from 220.181.6.18: icmp_seq=6 ttl=57 time=61.8 ms
64 bytes from 220.181.6.18: icmp_seq=7 ttl=57 time=79.1 ms

tommy@tommy-desktop:/work2/$ ping 210.28.95.230
PING 210.28.95.230 (210.28.95.230) 56(84) bytes of data.
64 bytes from 210.28.95.230: icmp_seq=1 ttl=50 time=105 ms
64 bytes from 210.28.95.230: icmp_seq=3 ttl=50 time=133 ms
64 bytes from 210.28.95.230: icmp_seq=4 ttl=50 time=123 ms
64 bytes from 210.28.95.230: icmp_seq=5 ttl=50 time=143 ms
64 bytes from 210.28.95.230: icmp_seq=7 ttl=50 time=207 ms
64 bytes from 210.28.95.230: icmp_seq=8 ttl=50 time=153 ms

tommy@tommy-desktop:/work2/$ ping www.linuxforum.net
PING www.linuxforum.net (60.29.226.99) 56(84) bytes of data.
64 bytes from 60.29.226.99: icmp_seq=1 ttl=53 time=173 ms
64 bytes from 60.29.226.99: icmp_seq=2 ttl=53 time=192 ms
64 bytes from 60.29.226.99: icmp_seq=3 ttl=53 time=192 ms
64 bytes from 60.29.226.99: icmp_seq=4 ttl=53 time=217 ms

tommy@tommy-desktop:/work2/$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
115.168.74.48 * 255.255.255.255 UH 0 0 0 ppp0
default * 0.0.0.0 U 0 0 0 ppp0


为什么打开浏览器就是不能上网?
tommy@tommy-desktop:/work2/$ cat /etc/resolv.conf
nameserver 61.177.7.1
nameserver 218.2.135.1
### BEGIN INFO
#
# Modified_by: NetworkManager
# Process: /usr/bin/NetworkManager
# Process_id: 4980
#
### END INFO
tommy@tommy-desktop:/work2/$ cat /etc/ppp/resolv.conf
nameserver 61.177.7.1
nameserver 218.2.135.1


打开firefox:
Offline Mode




Firefox is currently in offline mode and can't browse the Web.





The browser is operating in its offline mode and cannot connect to the requested item.

* Is the computer connected to an active network?
* Place the browser in online mode and try again.


为什么?route? dns ?

 

 

解决方法:

ubuntu8.04不能上是firefox的默认机制问题,手动去掉work offline!

在ARM11板子上面主要是要配网络管理器支持PPP,如果拨号成功在获取到电信的DNS之后将DNS加入/etc/resolv.conf,这样子板子就可畅游3G了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值