亮衡LTE模块B75

[78717.336419] usb 1-4: new high-speed USB device number 7 using xhci_hcd
[78717.480424] usb 1-4: New USB device found, idVendor=1a40, idProduct=0101
[78717.480430] usb 1-4: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[78717.480433] usb 1-4: Product: USB 2.0 Hub [MTT]
[78717.481077] hub 1-4:1.0: USB hub found
[78717.481102] hub 1-4:1.0: 4 ports detected
[78789.271967] usb 1-4.3: new high-speed USB device number 8 using xhci_hcd

[78789.361985] usb 1-4.3: New USB device found, idVendor=19d2, idProduct=0199
[78789.361993] usb 1-4.3: New USB device strings: Mfr=25, Product=26, SerialNumber=27
[78789.361997] usb 1-4.3: Product: ZTE-Modem
[78789.362000] usb 1-4.3: Manufacturer: ZTE
[78789.362003] usb 1-4.3: SerialNumber: ZTE-Modem

[78789.437193] usbcore: registered new interface driver usbserial
[78789.437257] usbcore: registered new interface driver usbserial_generic
[78789.437310] usbserial: USB Serial support registered for generic
[78789.448510] usbcore: registered new interface driver option
[78789.448551] usbserial: USB Serial support registered for GSM modem (1-port)

[78789.448889] option 1-4.3:1.0: GSM modem (1-port) converter detected
[78789.449089] usb 1-4.3: GSM modem (1-port) converter now attached to ttyUSB0
[78789.449203] option 1-4.3:1.2: GSM modem (1-port) converter detected
[78789.449340] usb 1-4.3: GSM modem (1-port) converter now attached to ttyUSB1
[78789.449396] option 1-4.3:1.3: GSM modem (1-port) converter detected
[78789.449530] usb 1-4.3: GSM modem (1-port) converter now attached to ttyUSB2

[78789.449981] usbcore: registered new interface driver cdc_wdm

[78789.454368] qmi_wwan 1-4.3:1.1: cdc-wdm2: USB WDM device
[78789.454639] qmi_wwan 1-4.3:1.1 wwan0: register 'qmi_wwan' at usb-0000:00:14.0-4.3, WWAN/QMI device, 2e:61:a8:c0:ce:95
[78789.454705] usbcore: registered new interface driver qmi_wwan
[78789.459693] qmi_wwan 1-4.3:1.1 wwp0s20f0u4u3i1: renamed from wwan0

查看网卡接口

wwp0s20f0u4u3i1: flags=4098  mtu 1500
        ether 2e:61:a8:c0:ce:95  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

中兴微电子

获得“最具创新应用产品”的ME3760和ME3860两款模块,均采用了中兴微电子ZX297510的4G终端芯片平台。ZX297510是国内首颗采用28纳米CMOS先进工艺,
并且一次顺利Tapeout(投片)终端芯片,具有业界最小的封装尺寸,已经在国内外大批量上市发货。基于ZX297510的ME3760和ME3860模块除了可以提供
LTETDD和LTEFDD双4G通信能力,还能够支持LTETDD1.8G/1.4G无线宽带数据专网。ME3760和ME3860模块已在移动健康、工业路由器、CPE、智能电网
等行业的大规模应用与发货,体现了中兴微电子终端芯片稳定可靠的4G通信性能。

亮衡

亮衡(Balanstech)2015年与中兴微电子签署战略合作协议后,一口气推出了B90,B78,B77,B57四款4G物联网模块。其中截止2015年底,B78一款4G模块出货量占国内4G模块市场的15%以上

上网

# chmod a+rw  /dev/ttyUSB0
$ picocom -b 115200 -c /dev/ttyUSB0
picocom v1.7

port is        : /dev/ttyUSB0
flowcontrol    : none
baudrate is    : 115200
parity is      : none
databits are   : 8
escape is      : C-a
local echo is  : no
noinit is      : no
noreset is     : no
nolock is      : no
send_cmd is    : sz -vv
receive_cmd is : rz -vv
imap is        : 
omap is        : 
emap is        : crcrlf,delbs,

Terminal ready

*** local echo: yes ***

在picocom中, Ctrl-a 是转义键,按 Ctrl-a Ctrl-q 就可以退出终端。除了 Ctrl-q 外,还有几个比较常用的控制命令:

Ctrl-u   提高波特率
Ctrl-d   降低波特率
Ctrl-f   切换流控设置(硬件流控 RTS/CTS, 软件流控 XON/XOFF, 无 none)
Ctrl-y   切换奇偶校验 (偶 even, 奇 odd, 无 none)
Ctrl-b    切换数据位 (5, 6, 7, 8)
Ctrl-c    切换本地回显(local-echo)开关
Ctrl-v    显示当前串口参数和状态

几个AT命令

AT+CGMI

+CGMI: Balanstech

OK
---
AT+CGMR

+CGMR:B78-V1.0.1B05P01

OK
---
AT+ZGMR

+ZGMR: 7510MV2.5.0B04P06

OK
---
AT^HVER

B78-HV1.0.0B08

OK
---
AT+BOARDNUM?

+BOARDNUM: B78160218010491

OK
---
AT+CPIN?

+CPIN: READY

OK
---
AT+CIMI

+CIMI: 460110407182273

OK
---
AT+CGSN

+CGSN: 868401021620746

OK
---
AT+CSQ

+CSQ: 0,99,0

OK
---
AT+CREG?

+CREG: 1,4

OK
---
AT+COPS?

+COPS: 0

OK
---
AT^SYSINFO

^SYSINFO: 0,0,0,0,1

OK
---
AT+CGREG?

+CGREG: 1,4

OK
---

AT+CFUN?

+CFUN: 0

OK
---

AT+CFUN=?

+CFUN: (0,1,4,5),(0,1)

OK


联网AT命令

AT+CFUN=1            默认启动时为0,最小功能;设置为1,启用完全功能
AT+CFUN=1

OK

+CREG: 2

+CGREG: 2

+CEREG: 2

+CEREG: 0

^MODE: 17,10

+CREG: 0

+ZUPCI: 38,1,0

+ZUEND: 0

+ZUEND: 1

---
AT+ZSET="LET_INFO"   掉电后使AT+CFUN=1保存为默认模块 ,   返回  +ZSET: "LTE_INFO", 192
---

特殊AT命令

机卡互锁
AT+ZTRC

PDP上下文激活/去激活

AT+CGACT



----------
AT+CGACT=?

+CGACT: (0,1)

OK
-----------
AT+CGACT?

+CGACT: 1,1

OK
---



驱动

T:  Bus=01 Lev=02 Prnt=07 Port=02 Cnt=01 Dev#=  8 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=19d2 ProdID=0199 Rev= 1.00
S:  Manufacturer=ZTE
S:  Product=ZTE-Modem
S:  SerialNumber=ZTE-Modem
C:* #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=83(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E:  Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 4 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42 Prot=01 Driver=usbfs
E:  Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

拨号用AT指令

1)检查能否读到sim卡
    AT+CPIN? 返回READY说明卡在位

2)设置CFun为完全功能
    AT+CFUN=1 
    AT+ZSET="LET_INFO" 
    
3) 拨号
    AT+CGDCONT=1,"IP","3gwap"
    AT+CGACT=1,1 

4) 设置IP
    ifconfig wwp0s20f0u4u3i1  ip(at命令获取到的IP) 

5) DNS ,把获取的DNS写入/etc/resolv.conf
   然后,加默认路由表,router add ***

或者
udhcpc -t 0 -i usb0 -b -p /var/run/dhcp-usb0.pid -O rootpath -R
udhcpc -i eth1





通过AT指令获取动态IP DNS,添加到eth1中就可以连接网络了

发下面4个命令即可
AT+CFUN=1
AT+CGDCONT=1,"IP"
AT+CGACT=1,1
AT+ZGACT=1,1



udhcpc -n -i eth2


电信需要用
AT+CGDCONT=3,"IP","ctnet"


------------
AT+CGACT=1,1

OK

+ZGIPDNS: 1,1,"IP","10.150.120.213","0.0.0.0","202.96.128.86","202.96.134.133"
-----------
AT+ZGACT=1,1

OK

相关驱动模块

qmi_wwan               24576  0
cdc_wdm                20480  1 qmi_wwan
option                 53248  0
usbnet                 40960  1 qmi_wwan
usb_wwan               20480  1 option
usbserial              49152  2 option,usb_wwan
mii                    16384  1 usbnet

因为在 drivers/usb/serial/option.c里 有

	{ USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0199, 0xff, 0xff, 0xff), /* ZTE MF820S */

亮衡LTE模块B75》上有1条评论

  1. blatek

    亮衡是
    AT+ZSET=”LTE_INFO”,200
    才是默认AT+CFUN=1

    AT+ZSET=”LTE_INFO”,100 设置,启动时自动设置为 AT+CFUN=0

    回复

发表评论

电子邮件地址不会被公开。 必填项已用*标注