首页 > 其他 > 详细

Yocto开发笔记之《驱动调试-华为3G模块》(QQ交流群:519230208)

时间:2015-12-17 15:58:52      阅读:708      评论:0      收藏:0      [点我收藏+]

选了freescale的一块板子,结果发现要用yocto开发,网上一搜攻略,汗~,少的可怜!

7年前开发android系统做了先驱,现在看来又要做先烈了,开了一个交流群,欢迎爱好者和开发者一起交流,转载请注明出处。

QQ群:519230208,为避免广告骚扰,申请时请注明 “开发者” 字样

========================================================

一 上网模块需要内核编译配置  《Guide to Kernel Driver Integration ......

相关模块:

 1. Modem port: used for interaction between Linux and a Huawei module for PPP-Modem dial-up connections and data services.

 2. PCUI port: used for interaction between Linux and a Huawei module for AT command execution.

 3. Diag port: used to capture logs on a Huawei module.

 4. GPS and GPS Control ports: used to send GPS commands and obtain GPS

需要修改的文件:

linux_src/drivers/usb/serial/option.c 

linux_src/drivers/usb/serial/usb_wwan.c 

linux_src/include/linux/usb.h 

 

ppp编译:

官网:https://ppp.samba.org/

教程:http://blog.csdn.net/lanyou1900/article/details/40185259

---------------------------------------

二 测试模块状态

# lsusb   // 查看usb连接状态
Bus 001 Device 005: ID 12d1:1c25 Huawei Technologies Co., Ltd. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

# dmesg

cdc_ether 1-1:2.0 eth2: register ‘cdc_ether‘ at usb-ci_hdrc.1-1, CDC Ethernet Device, 00:1e:10:1f:00:00
usbcore: registered new interface driver option
usbcore: registered new interface driver cdc_ether
usbserial: USB Serial support registered for GSM modem (1-port)
option 1-1:2.2: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
option 1-1:2.3: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
option 1-1:2.4: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
usb 1-1: USB disconnect, device number 3
cdc_ether 1-1:2.0 eth2: unregister ‘cdc_ether‘ usb-ci_hdrc.1-1, CDC Ethernet Device
option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
option 1-1:2.2: device disconnected
option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
option 1-1:2.3: device disconnected
option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
option 1-1:2.4: device disconnected
usb 1-1: new full-speed USB device number 4 using ci_hdrc
usb 1-1: new high-speed USB device number 5 using ci_hdrc
cdc_ether 1-1:2.0 eth2: register ‘cdc_ether‘ at usb-ci_hdrc.1-1, CDC Ethernet Device, 00:1e:10:1f:00:00
option 1-1:2.2: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
option 1-1:2.3: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
option 1-1:2.4: GSM modem (1-port) converter detected
usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2

 

# dmesg | grep -in ppp   // 查看ppp连接状态

#cat /dev/ttyUSB0 &

# echo AT+CGMI > /dev/ttyUSB0   // 查询厂商相关信息

# echo AT+CSQ > /dev/ttyUSB0  // 查询信号,顺带还可以让你知道SIM卡相关的是否正常

 

 

 

 

 

Yocto开发笔记之《驱动调试-华为3G模块》(QQ交流群:519230208)

原文:http://www.cnblogs.com/alanfang/p/5052006.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!