RK: 调试 4G模块移远 EC600S-CN

一.使用QAndroidLog 抓日志

adb push D:\CustomerDemand\4G模块\EC600S-CN\Quectel_Android_RIL_Driver_V3.3.39_master_beta\tools\armeabi-v7a\QAndroidLog system/bin 
adb shell chmod 755 system/bin/QAndroidLog
mkdir -p data/quectel_debug_log
adb pull data/quectel_debug_log C:\Users\Administrator\Desktop\ECS600S_quectel_debug_log

 二.端口、查看 网络

2.1.USB转串口终端,接USB转串口线可用此端口设备  

在/dev/目录下会出现如下设备节点

 2.2.查看网络

2.3.dmesg

<3>[    2.440056] mali: exports duplicate symbol mali_dev_pause (owned by kernel)
<6>[    2.523173] usb 1-1.2: new high-speed USB device number 5 using rockchip_ehci_host
<6>[    2.632019] usb 1-1.2: New USB device found, idVendor=2c7c, idProduct=6002
<6>[    2.632037] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
<6>[    2.632050] usb 1-1.2: Product: Android
<6>[    2.632060] usb 1-1.2: Manufacturer: Android
<6>[    2.632071] usb 1-1.2: SerialNumber: 0000
<6>[    2.633862] cdc_ether 1-1.2:1.0 usb0: register 'cdc_ether' at usb-101c0000.usb-1.2, CDC Ethernet Device, ae:0c:29:a3:9b:6d
<6>[    2.634779] option 1-1.2:1.2: GSM_MODEM converter detected
<4>[    2.634808] jessica serial->type->description = GSM_MODEM
<6>[    2.635149] usb 1-1.2: GSM_MODEM converter now attached to ttyUSB0
<6>[    2.635868] option 1-1.2:1.3: GSM_MODEM converter detected
<4>[    2.635899] jessica serial->type->description = GSM_MODEM
<6>[    2.636206] usb 1-1.2: GSM_MODEM converter now attached to ttyUSB1
<3>[    3.283730] rk29_ipp: version magic '3.0.8+ SMP preempt mod_unload ARMv7 ' should be '3.10.0 SMP preempt mod_unload ARMv7 p2v8 '
<3>[    3.284600] rk29_ipp: version magic '3.0.36+ SMP preempt mod_unload ARMv7 ' should be '3.10.0 SMP preempt mod_unload ARMv7 p2v8 '
<3>[    3.285426] rk29_ipp: version magic '3.0.101+ SMP preempt mod_unload ARMv7 ' should be '3.10.0 SMP preempt mod_unload ARMv7 p2v8 '
<6>[    3.286116] zram: Cannot change disksize for initialized device
<11>[    3.297689] fs_mgr: swapon failed for /dev/block/zram0
<4>[    3.313074] force_usb_mode_store 0->1
<4>[    3.412523] Using Buffer DMA mode
<4>[    3.412533] Periodic Transfer Interrupt Enhancement - disabled
<4>[    3.412543] Multiprocessor Interrupt Enhancement - disabled
<4>[    3.412553] OTG VER PARAM: 0, OTG VER FLAG: 0

  

三.驱动 

3.1.usb-serial-option, USB转串口驱动,生成/dev/ttyUSB0~2. 总共3个串口,分别是DM、AT、PPP.
需要使能的内核选项如下
USB_SERIAL=y
USB_SERIAL_WWAN=y
USB_SERIAL_OPTION=y

3.2.USB网卡驱动,模块可通过AT配置成rndis或者ecm,默认是ecm。
需要使能的内核选项如下
USB_USBNET=y
USB_NET_CDCETHER=y #用ECM 使能此项
USB_NET_RNDIS_HOST=y #用RNDIS 使能此项

3.3.usb-serial-option usb串口驱动与公司其他高通平台模块的兼容
UC200&EC200和其他高通模块,都是用usb-serial-option驱动,但是USB interface的顺序不同. 所以如果客户之前移植过EC20/EC25的代码,会导致UC200&EC200的PPP口识别不到。所以建议客户先还原drivers/usb/serial/option.c的修改,重新按照 EC200_UC200_usb_serial_option.patch移植。这个修改方法同时UC200&EC200和其他高通平台模块

SSS EC25 

四.PPP 改 ECM

posted @ 2021-04-21 18:23  CrushGirl  阅读(3932)  评论(0编辑  收藏  举报