zoukankan      html  css  js  c++  java
  • openwrt 3g模块上网

    硬件环境:

        开发板为RT5053F   

        3G模块为中兴 MC2176 电信版


    以下是操作步骤

    • 加入VID 、PID

      VID 、 PID 的获取方法是  将设备插入电脑在linux下执行lsusb命令,如图

      或者是依照无线模块驱动使用手冊,将产品支持的IDS所有增加option.c文件里
      openwrt-1407在例如以下位置:
      build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7620n/linux-3.10.49/drivers/usb/serial/option.c
      

    • 内核的编译配置
      make kernel_ menuconfig
      USB串口驱动相关的配置项:
      Device Drivers  ---> [*] USB support  --->   
      	<*>   Support for Host-side USB
      	[*]     USB announce new devices
      	[*]     Enable USB persist by default
      	<*>     EHCI HCD (USB 2.0) support
      	[*]       Root Hub Transaction Translators
      	[*]       Improved Transaction Translator scheduling
      	<*>     OHCI HCD (USB 1.1) support
      	<*>     USB Modem (CDC ACM) support
      	<*>     USB Printer support
      	<*>     USB Wireless Device Management support
      	<*>   USB Serial Converter support  ---> 
      		<*>   USB driver for GSM and CDMA modems
      

      PPP拨号的相关配置:

      Device Drivers  ---> [*] Network device support  --->
      	<*>   PPP (point-to-point protocol) support
      	<*>     PPP BSD-Compress compression
      	<*>     PPP Deflate compression
      	[*]     PPP filtering
      	<*>     PPP MPPE compression (encryption)
      	[*]     PPP multilink support
      	<*>     PPP over Ethernet
      	<*>     PPP support for async serial ports
      	<*>     PPP support for sync tty ports
      

      所需软件包:

      ppp
      chat
      comgt
      librt
      libusb-1.0
      usb-modeswith
      zlib
      

      保存 运行make V=99 后将编译好的镜像文件烧写到开发板。然后启动开发板






  • 配置 网络

    /etc/config/network
    config interface 'ppp0'
            option ifname 'ppp0'
            option service 'evdo'
            option username 'card'
            option password 'card'
            option device '/dev/ttyUSB0'
            option proto '3g'
            option dialnumber '#777'
            option apn 'ctnet'
            option auto 1
    


  • 重新启动网络

    /etc/init.d/netwrok restart

    重新启动后 执行ifcong命令,若出现ppp接口表示拨号成功,如图








查看全文
  • 相关阅读:
    设计模式课程 设计模式精讲 17-2 模板方法模式coding
    设计模式课程 设计模式精讲 17-1 模板方法模式讲解
    设计模式课程 设计模式精讲 16-2,3 代理模式Coding-静态代理-1
    设计模式课程 设计模式精讲 16-1 代理模式讲解
    设计模式课程 设计模式精讲 15-3 桥接模式源码解析
    设计模式课程 设计模式精讲 15-2 桥接模式Coding
    HTML 文档之 Head 最佳实践
    CSS深入理解学习笔记之line-height
    webRTC实战总结
    浅析CSS里的 BFC 和 IFC
  • 原文地址:https://www.cnblogs.com/bhlsheji/p/5168906.html
  • Copyright © 2011-2022 走看看