I am using gcom package (for 3g usb dongle) for sending AT commands to
operator.
I am trying to get if type of connection is umts, edge, hsdpa, ...
For Huawei usb dongle I have 3ginfo.gcom:

opengt
 set com 115200n81
 set comecho off
 set senddelay 0.02
 waitquiet 0.2 0.2
 flash 0.1

:start
 send "AT\^SYSINFOEX^m"
 get 1 "" $s
 print $s

:continue
 exit 0


For ZTE 3ginfo.gcom is:

opengt
 set com 115200n81
 set comecho off
 set senddelay 0.02
 waitquiet 0.2 0.2
 flash 0.1

:start
 send "AT+ZPAS?^m"
 get 1 "" $s
 print $s

:continue
 exit 0


 For xxx usb command is xxx
 and 3ginfo.gcom:

opengt
 set com 115200n81
 set comecho off
 set senddelay 0.02
 waitquiet 0.2 0.2
 flash 0.1

:start
 send "xxx^m"
 get 1 "" $s
 print $s

:continue
 exit 0

How to merge all this commans (AT\^SYSINFOEX, AT+ZPAS?, xxx) in one
3ginfo.gcom file and if usb vendor is huawei to send huawei command
(AT\^SYSINFOEX), if usb vendor is zte to send zte coomand (AT+ZPAS?) ...
 Thanks


On Mon, Nov 18, 2013 at 3:13 PM, Liverpool Bitlas <
[email protected]> wrote:

> How to set disk quotas in OpenWRT?
> Thanks
>
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to