Archive for November, 2011

Changing 2G mode to 3G mode

This command is based on Huawei spec:
AT^SYSCFG Huawey command reference

To see the supported values, you can query your own modem sending the “AT^SYSCFG=?” command.
AT^SYSCFG=$mode,$acqOrder,$band,$roam,$srvDomain

$mode
2=Auto-Select
13=GSM only
14=WCDMA only
16=no Change

$acqOrder
0=Automatic
1=GSM prefered
2=WCDMA prefered
3=no Change

$band
3fffffff = All
other (query list with “AT^SYSCFG=?”)

$roam
0=Not Supported
1=Supported
2=no Change

$srvDomain
0=Circuit-Switched only
1=Packet-Switched only
2=Circuit- & Packet-Switched
3=Any
4=no Change

^SYSCFG:(2,13,14,16),(0-3),((80000,”GSM850″),(200000,”GSM1900″),(400380,”GSM900/GSM1800/WCDMA2100″),(4a80000,”GSM850/GSM1900/WCDMA850/WCDMA1900″),(3fffffff,”All Bands”)),(0-2),(0-4)

You can find more at:
https://wiki.archlinux.org/index.php/3G_and_GPRS_modems_with_pppd#AT.5ESYSCFG_Huawey_command_reference

Advertisements

Leave a comment

Creating n repositories at same time


for i in kernel filesystem bootloader application
do
mkdir /tmp/$i
cd /tmp/$i
git init
git remote add origin git@$SERVER:$i.git
touch README.$i
git add README.$i
git commit -a -m "First commit submodule $i"
git push origin master:refs/heads/master
done

Leave a comment

Generating “random” passwords

dd if=/dev/random bs=2 count=6 | base64 –

Leave a comment