Huawei E180 3G模块驱动应用
来源:互联网 发布:spark大数据入门 编辑:程序博客网 时间:2024/06/10 02:04
杂谈
分类: 嵌入式技术3G modem:
Huawei E180(WCDMA)
3G SIM Card:
China Unicom 3G Card(WO)
CPU/Board
FSL P1022DS RevC board
Linux:
Linux-2.6.35
二、步骤
1.
向linux内核中添加3G模块的驱动(USB转串口的驱动)和PPP协议的支持
2.
下载ppp-2.4.5源码并进行交叉编译(toolchian:powerpc-linux-)。
将拨号上网所需的两个应用程序pppd和chat拷贝到开发板/usr/sbin文件夹下。
将改好的脚本文件ppp-on,ppp-on-dialer存放在/etc/ppp目录下。
将含有域名解析服务器地址的文件resolv.conf拷贝到/etc目录下。
3.
进入 /etc/ppp 目录 ,执行 ./ppp-on。 进行网络测试
三、具体工作
1. 向linux内核添加3G模块的驱动(USB转串口的驱动)
usb 1-1: new high speed USB device using fsl-ehci and address3
usb 1-1: New USB device found, idVendor=12d1,idProduct=1001
usb 1-1: New USB device strings: Mfr=3, Product=2,SerialNumber=0
usb 1-1: Product: HUAWEI Mobile
usb 1-1: Manufacturer: HUAWEI Technology
option 1-1:1.0: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached tottyUSB0
option 1-1:1.1: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached tottyUSB1
option 1-1:1.2: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached tottyUSB2
scsi7 : usb-storage 1-1:1.3
scsi8 : usb-storage 1-1:1.4
scsi 7:0:0:0: CD-ROM
sr0: scsi-1 drive
Uniform CD-ROM driver Revision: 3.20
sr 7:0:0:0: Attached scsi generic sg1 type 5
scsi 8:0:0:0: Direct-Access
sd 8:0:0:0: Attached scsi generic sg2 type 0
sd 8:0:0:0: [sdb] Attached SCSI removabledisk
2. 向Linux内核中添加PPP协议的支持
<*>
[*]
<*>
<*>
<*>
<*>
ls /dev/ppp -l
crw-rw----
3. 交叉编译拨号上网需要的拨号工具pppd和chat
#cd
#./configure
#make
4. 配置拨号脚本文件
# These are the parameters. Change as needed.
TELEPHONE=*99#
ACCOUNT=
PASSWORD=
LOCAL_IP=0.0.0.0
REMOTE_IP=0.0.0.0 # Remote IP address if desired. Normally0.0.0.0
NETMASK=255.255.255.0
DIALER_SCRIPT=/etc/ppp/ppp-on-dialer
exec /usr/sbin/pppd debug lock modem crtscts /dev/ttyUSB0 115200\
2) ppp-on-dialer配置文件的内容:
#!/bin/sh
exec chat -v \
TIMEOUT 5 \
ABORT
ABORT
ABORT
'' \rAT
OK
OK
CONNECT ''
3) 设置正确的域名解析服务器地址
nameserver 202.106.195.68
nameserver 202.106.46.151
5. 应用测试
ppp0
- Huawei E180 3G模块驱动应用
- 3G 模块驱动应用开发总结
- 嵌入式Linux下3G模块的驱动和应用
- Linux下TD 3G网卡HUAWEI ET127 驱动方法
- 华为E180 在windows 7 RTM下的使用(Using HuaWei E180 on windows 7 RTM)
- wince5.0 中兴3G模块驱动分析
- Linux下3G模块驱动加载方法
- 3G模块驱动运用开发总结
- Huawei E587 3G Mobile Hotspot Command Injection
- 华为3G模块EM770W在LINUX下的驱动安装
- 龙尚3G模块在arm板上的应用
- L298N 驱动模块的应用
- huawei e353|huawei e353 3G usb|HiLink E353|hua wei e353 unlocked mobile dongle
- Ubuntu下使用Huawei E261 WCDMA 3G Dongle 上网
- huawei
- HUAWEI
- huawei
- HUAWEI C8812 电源管理模块程序源代码
- ubuntu下修复grub
- android客户端和网站数据交互的实现(基于Http协议获取数据方法)
- 从 Linux 内核访问用户空间内存
- android最新源码(4.4.2_r1版本以上)下载
- P137
- Huawei E180 3G模块驱动应用
- float与double在内存中 -- C
- 网络流最大流(代码)(Edmond-Karp算法)
- 多摄像头实现全景监控
- 【水模拟】#50 A. Presents
- 相对路径与绝对路径
- 【Swift】学习笔记(三)——字符和字符串
- 22解析函数的级数表示(一)
- Android音频底层调试-基于tinyalsa