Ubuntu EC 20 开启volte

2024-01-12 08:25:07   工作备份

 

系统:Ubuntu

  1. apt install alsa-utils network-manager minicom

使用minicom 测试 模块以及sim

  1. ;是哪个端口 自己可以去 /dev/下看,一般每组有四个
  2. ;ttyUSB0
  3. ;ttyUSB1 PCM语音,GPS信号
  4. ;ttyUSB2 控制命令
  5. ;ttyUSB3

minicom 操作有些麻烦,输入

  1. minicom -D /dev/ttyUSB2
  2. # 输入ATI看一下EC20的版本号:
  3. ATI
  4. Quectel
  5. EC20F
  6. Revision: EC20CEFAGR06A15M4G

检查sim卡是否注册成功

  1. AT+COPS?
  2. +COPS: 0,0,"CHN-UNICOM",7
  3. AT+QNWINFO
  4. +QNWINFO: "FDD LTE","46001","LTE BAND 3",1650
  5. AT+QENG="servingcell"
  6. +QENG: "servingcell","CONNECT","LTE","FDD",460,01

配置VoLTE

  1. 打开ims AT+QCFG="ims",1
  2. 查看dongle内的mbn文件 AT+QMBNCFG="List"
  3. +QMBNCFG: "List",0,1,1,"ROW_Generic_3GPP",0x05010824,201806201
  4. +QMBNCFG: "List",1,0,0,"OpenMkt-Commercial-CU",0x05011510,201911151
  5. +QMBNCFG: "List",2,0,0,"OpenMkt-Commercial-CT",0x0501131C,201911141
  6. +QMBNCFG: "List",3,0,0,"Volte_OpenMkt-Commercial-CMCC",0x05012011,201904261
  7. # 尽管这里列出了移动联通电信的VoLTE配置文件,但使用默认的自动选择CU/CT/CMCC并不能注册VoLTE,在摸索很久之后,笔者发现需要强制选择ROW_Generic_3GPP才能成功注册VoLTE。
  8. 关闭自动选择mbn文件 AT+QMBNCFG="AutoSel",0
  9. 反激活当前的mbn at+qmbncfg="deactivate"
  10. 强制选择3gpp AT+QMBNCFG="select","ROW_Generic_3GPP"
  11. 重启 AT+CFUN=1,1
  12. 可以再确认一下mbn的选择状态,如果ROW_Generic_3GPP的第二位和第三位都是1的话,说明dongle目前选择了这个配置 AT+QMBNCFG="List"
  13. +QMBNCFG: "List",0,1,1,"ROW_Generic_3GPP",0x05010824,201806201
  14. +QMBNCFG: "List",1,0,0,"OpenMkt-Commercial-CU",0x05011510,201911151
  15. +QMBNCFG: "List",2,0,0,"OpenMkt-Commercial-CT",0x0501131C,201911141
  16. +QMBNCFG: "List",3,0,0,"Volte_OpenMkt-Commercial-CMCC",0x05012011,201904261
  17. 重启完后检查ims的状态 AT+QCFG="ims"
  18. 如果返回的是 +QCFG: "ims",1,1 即为激活,如果是+QCFG: "ims",1,0 说明没有激活

激活UAC数字音频(可以不做)

  1. AT+QCFG="usbcfg",0x2C7C,0x0125,1,1,1,1,1,0,1
  2. 之后 退出minicom
  3. 命令行输入 aplay -L
  4. 如果显示包含:
  5. dmix:CARD=Android,DEV=0
  6. Android, USB Audio
  7. Direct sample mixing device
  8. 则设置成功

现在你可以给自己打个电话试试

  1. minicom -D /dev/ttyUSB2
  2. ATD1XXXXXXXXXX;