AT Command for QOS

From: http://mybroadband.co.za/vb/archive/index.php/t-18042.html

 

There are 4 commands used to set the QoS:

AT+CGEQMIN
AT+CGEQREQ
AT+CGQMIN
AT+CGQREQ

These commands set the QoS "window" that will be used to check if the connection can be accepted. Let say you set the following QoS window:

MIN 64k (D) 32k (U)
REQ 144k (D) 64k (U)

The network will then accept the connection using REQ, since there is bandwidth avail. etc. but notice that the download speed *will* be limited 144k - if there wasn't bandwidth avail. the network will try 64k. The "connected rate" will always show 384k (for my memory using windows - Mac and Linux might varry)

Here is what the NovaTel card's help show the commands as :

AT+CGEQMIN=?
+CGEQMIN: "IP",(0-4),(0-384),(0-384),(0-384),(0-384),(0-2),(0-1520),("0E0","1E1","1E2","7E3","1E3","1E4","1E5","1E6"),("0E0","5E2","1E2","5E3","4E3","1E3",")
+CGEQMIN: "PPP",(0-4),(0-384),(0-384),(0-384),(0-384),(0-2),(0-1520),("0E0","1E1","1E2","7E3","1E3","1E4","1E5","1E6"),("0E0","5E2","1E2","5E3","4E3","1E3",)

AT+CGEQREQ=?
+CGEQREQ: "IP",(0-4),(0-384),(0-384),(0-384),(0-384),(0-2),(0-1520),("0E0","1E1","1E2","7E3","1E3","1E4","1E5","1E6"),("0E0","5E2","1E2","5E3","4E3","1E3",")
+CGEQREQ: "PPP",(0-4),(0-384),(0-384),(0-384),(0-384),(0-2),(0-1520),("0E0","1E1","1E2","7E3","1E3","1E4","1E5","1E6"),("0E0","5E2","1E2","5E3","4E3","1E3",)

AT+CGQMIN=?
+CGQMIN: "IP",(0-3),(0-4),(0-5),(0-9),(0-18,31)
+CGQMIN: "PPP",(0-3),(0-4),(0-5),(0-9),(0-18,31)

AT+CGQREQ=?
+CGQREQ: "IP",(0-3),(0-4),(0-5),(0-9),(0-18,31)
+CGQREQ: "PPP",(0-3),(0-4),(0-5),(0-9),(0-18,31)

I don't use the +CGQREQ commands since they require wierd profiles from the UMTS standard. Luckly for us, we don't have to enter the whole string, since the ones you leave out will go to default.

Here are my commands for the speed selection:

[Dialer 384k]

Init5 = AT+CGEQMIN=1,4,64,384,64,384
Init6 = AT+CGEQREQ=1,4,64,384,64,384

[Dialer 144k]

Init5 = AT+CGEQMIN=1,4,64,144,64,144
Init6 = AT+CGEQREQ=1,4,64,144,64,144

[Dialer 64k]

Init5 = AT+CGEQMIN=1,4,64,64,64,64
Init6 = AT+CGEQREQ=1,4,64,64,64,64


The first param. selects the IP profile (AT+CGDCONT=1,"IP"...).
The second one selects the Type of Service (0 - Conv,1 - stream, 2 - interactive, 3 - background, 4 - sub. value/network assigned)
It doesn't pay to try and select the other Type of Services since you are using data, which is (drum roll) number 3 and the connection will not be made.
The third is max. uplink - in kbits/s
The forth is guaranteed uplink - in kbits/s
The fifth os max. downlink - in kbits/s
and last but not least is guaranteed downlink, in kbits/s

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值