[DESCRIPTION]
是否支持GSM0710 MUX多路复用协议? 如何使用?
[SOLUTION]
对于Modem 的版本,如果开启了CMUX_SUPPORT=TRUE 就是支持CMUX 协议, mux GSM0710默认我们支持Control Channel 和三个应用Channel . dlc 0 ,按照spec 就是 control channel ; 在dlc 1 上拨号,ppp的在dlc1 上传输,用cmux 的包把ppp 的数据包起来传输就可以了。
dlc2 我们默认的是URC 的channel, 主动上报indication ,像 来电话的Ring, 网络状态主动上报。
dlc3 AT command. 用AT+CMUX=0 启动CMUX 之后,就变成MUX 的模式了,从串口过来的数据都会当作CMUX 的数据包来解析了。 如果再启动了cmux 之后,再发送AT ,就要用CMUX 的数据格式来发送了。 目前我们没有提供CMUX 测试的PC Tool。 下面是CMUX 的start 的信息和例子供参考: Command>>: AT+CMUX=0 // enable the cmux response<< :OK Command>>: :F9 03 3F 01 1C F9 // send a SABM to establish(DLCI0) response<< : F9 03 73 01 D7 F9 //recevive theUA on(DLCI0) Command>>:F9 03 EF 15 83 11 01 10 01 0A 00 02 03 02 EE F9 //send DLCI1 PN negotiate Paramter on DLC0 response<< :F9 01 EF 15 81 11 01 10 01 0A 00 02 03 02 8F F9 //receive the response DLCI1 PN negotiate Paramter Command>>:F9 07 3F 01 DE F9 //send a SABM to establish(DLCI1) response<< :F9 07 73 01 15 F9 // recevive theUA on(DLCI1) Command>>: :F9 03 EF 15 83 11 02 10 02 0A 00 02 03 02 EE F9 // send DLCI2 PN negotiate Paramter on DLC0 response<< :F9 01 EF 15 81 11 02 10 02 0A 00 02 03 02 8F F9 // receive the response DLCI2 PN negotiate Paramter Command>>: :F9 0B 3F 01 59 F9 // send a SABM to establish(DLCI2) response<< :F9 0B 73 01 92 F9 // recevive theUA on(DLCI2) Command>>: :F9 03 EF 15 83 11 03 10 03 0A 00 02 03 02 EE F9 // send DLCI3 PN negotiate Paramter on DLC0 response<< :F9 01 EF 15 81 11 03 10 03 0A 00 02 03 02 8F F9 // receive the response DLCI3 PN negotiate Paramter Command>>:F9 0F 3F 01 9B F9 // send a SABM to establish(DLCI3) response<< :F9 0F 73 01 25 F9 // recevive theUA on(DLCI3) 之后就可以dlc 1 (data channel),dlc 3(at channel) 上send data 了 dlc 2 (URC channel) 本文转载一牛网论坛—MTK硬件 原文地址:http://bbs./thread-453644-1-1.html
|