- 使用AT命令设置网络小区、频点,PCI等
本脚本用于模组锁频段,锁频点, 锁小区、锁PCI等
#!/bin/bash
input=$1
if [ $# -ge 2 ];then
band=$2
fi
if [[ $# -eq 1 ]] && [[ "$input"x = "1"x ]]; then
echo "Set freq\band\scs\pci "
echo -e "AT^NRFREQLOCK=2,0,1,\"41\",\"512964\",\"1\",\"11\"" > /dev/ttyUSB1
elif [[ $# -eq 1 ]] && [[ "$input"x = "0"x ]]; then
echo "Clean NRFREQLOCK "
echo -e "AT^NRFREQLOCK=0" > /dev/ttyUSB1
elif [[ $# -eq 2 ]] then
echo "Set band only [$band] "
echo -e "AT^NRFREQLOCK=3,0,1,\"$band\"" > /dev/ttyUSB1
else
echo "Usage: setfreq