Ubuntu Linux 上的 Sierra Wireless AirCard 313U(AT&T Momentum 4G)

jjl*_*lin 11 linux cellular-internet ubuntu

我正在尝试让Sierra Wireless AirCard 313U(更具体地说,是AT&T Momentum 4G)在 Ubuntu Linux 下工作。

到目前为止,我已经查看了许多页面:

如何在 Ubuntu/Mint 上使用 AT&T USBConnect Momentum 4G (AC313U) 连接互联网?

我可以在 Linux 机器上使用 Sierra 无线调制解调器(直接 IP 调制解调器)吗?

在 Linux 上设置 Bigpond NextG 无线连接

基于上述我的理解是,非古代 Linux 内核中已经包含 Sierra Wireless 驱动程序,并且应该自动检测/dev/ttyUSB*设备,从而创建一些设备文件。但是,我没有看到这些文件。

dmesg 显示几行,如

[ 555.877426] usb 2-2: config 1 has an invalid interface number: 7 but max is 5
Run Code Online (Sandbox Code Playgroud)

这似乎表明设备处于软件安装模式,而不是调制解调器模式。我不知道如何让设备进入调制解调器模式;我的理解是司机无论如何都应该这样做。

我尝试在 Ubuntu 12.04 和 10.04.04 下插入,结果基本相同(即未检测到设备)。我能够modprobe sierra并且modprobe sierra_net(至少在 12.04 上;10.04.04 似乎没有该sierra_net模块),所以应该包括驱动程序。

该设备确实在我试过的几台 Windows 7 机器上运行,但有趣的是它没有像预期的那样自动安装驱动程序;我不得不从 AT&T 的网站上下载它们并自己安装它们。

Chr*_*s K 0

在电缆调制解调器互联网可用之前,我的公司里有一个 AT&T 移动 3G USB 插件。当 DSL 失效时,它是我的备用电源。

我发现让它工作的最简单方法是在安装 Ubuntu 时将其插入计算机。这就是我们在路上上网并需要通过 ubuntu 中的 POS 应用程序运行人们的信用卡时所做的事情。我记得我们路上用的 Ubuntu 是 10.04...?

当它工作时,这些是让它上线的神奇步骤... ssh 进入防火墙 ubuntu 服务器(编辑:刚刚检查,防火墙是 9.04):

root@wall:~# cat do_this_for_3g.txt 
nohup pppd call gsm &

# Then after DSL works, to kill the 3G...
ps aux | grep pppd
# root     18716  0.0  0.0   7528   888 pts/0    R+   12:08   0:00 grep pppd
# root     23021  0.0  0.1  21668  1316 pts/0    S    Mar15   0:00 pppd call gsm

kill 23021

/etc/init.d/networking restart
Run Code Online (Sandbox Code Playgroud)

请注意,这gsm_chat是一个脚本/etc/ppp/peers

root@wall:/etc/ppp/peers# cat gsm_chat 
# Connection script for Sierra Wireless GSM/UMTS modems
# Note: This demo script is setup to work on the Cingular EDGE network
#
SAY 'Starting Sierra Wireless GSM connect script...\n'
SAY '\n'

#######################################
SAY 'Setting the abort string\n'
SAY '\n'
# Abort String ------------------------------
ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT 'NO CARRIER' ABORT DELAYED

#######################################
SAY 'Initializing modem\n'
# Modem Initialization 
'' AT
OK ATZ

#######################################
SAY '\n'
SAY     'Setting APN\n'
# Access Point Name (APN) 
# Incorrect APN or CGDCONT can often cause errors in connection.
# Below are a bunch of different popular APNs

#REG:\s1 AT+cgdcont=1,"IP","proxy"
#OK     'AT+CGDCONT=0,"IP","proxy"'
#OK     'AT+CGDCONT=1,"IP","proxy"'
#OK     'AT+CGDCONT=2,"IP","proxy"'
#OK     'AT+CGDCONT=0,"IP","ISP.CINGULAR"'
OK     'AT+CGDCONT=1,"IP","ISP.CINGULAR"'
#OK     'AT+CGDCONT=2,"IP","ISP.CINGULAR"'

#######################################
SAY '\n'
SAY     'Dialing...\n'
# Dial the ISP, this is the common Cingular dial string

OK ATD*99#
CONNECT ''
Run Code Online (Sandbox Code Playgroud)