5G模组AT命令脚本-5G终端自动拔号脚本

5G终端自动拔号脚本


  • 5G终端自动拔号脚本, 先进入飞行模式,再切出飞行模式, 最后 查询UE IP地址

5G终端自动拔号脚本

复制代码
input=$1
if [ "$input"x = "1"x ]; then 
 cmd=at+cfun=1
 echo "===========start dialing  "
elif [ "$input"x = "0"x ] ; then
 echo "===========start de-dialing "
 cmd=at+cfun=0
else
 echo "Usage: dial 1   #dialing "
 echo "       dial 0   #delialing "
 exit
fi

echo -e "$cmd\r\n" > /dev/ttyUSB1
sleep 2
echo -e "at+cgpaddr" > /dev/ttyUSB1
cat /dev/ttyUSB1

The End.

相关推荐
伤不起bb1 小时前
Kafka 消息队列
linux·运维·分布式·kafka
Hello.Reader1 小时前
Git 安装全攻略Linux、macOS、Windows 与源码编译
linux·git·macos
龙仔7251 小时前
华为云CentOS配置在线yum源,连接公网后,逐步复制粘贴,看好自己对应的版本即可,【新手必看】
linux·centos·华为云
tiging2 小时前
centos实现SSH远程登录
linux·centos·ssh
好多知识都想学2 小时前
Linux 文件处理器 sed 和 awk 详细讲解
linux·运维·ubuntu
Johny_Zhao3 小时前
阿里云数据库Inventory Hint技术分析
linux·mysql·信息安全·云计算·系统运维
FBI HackerHarry浩3 小时前
云计算 Linux Rocky day05【rpm、yum、history、date、du、zip、ln】
linux·运维·云计算·腾讯云
异常君4 小时前
Windows 与 Linux 虚拟内存机制对比:设计理念与实现差异
java·linux·windows
bcxwz6694 小时前
linux 故障处置通用流程-36计-14-27
linux·运维·服务器
孙克旭_4 小时前
day028-Shell自动化编程-判断进阶
linux·运维·数据库·自动化