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.

相关推荐
唐青枫1 小时前
别再只会用 cron:Linux systemd Timer 定时任务实战详解
linux
AlfredZhao2 天前
生产环境里,为什么不建议把普通端口直接暴露到公网?
linux·https·443·80
戴为沐3 天前
Linux内存扩容指南
linux
zylyehuo3 天前
Linux 彻底且安全地删除文件
linux
用户805533698034 天前
主线 U-Boot 上 RK3506:和闭源 rkbin 拔河的三个隐性契约
linux·嵌入式
用户034095297914 天前
linux fcitx 5 雾凇拼音 设置在中文输入法下仍然输入英文标点
linux
Web3探索者6 天前
可视化服务器管理和传统命令行区别是什么?新手教程:Linux 运维到底该用图形界面还是 SSH 命令行?
linux·ssh
zylyehuo6 天前
Linux系统中网线与USB网络共享冲突
linux
Sokach10157 天前
Linux Shell 脚本从零到能用:一个新手的一天学习总结
linux
AlfredZhao8 天前
Docker 容器时区不对,`timedatectl` 不存在怎么办?
linux·timezone