[英]I can't hear voice after successful calling a number with AT command
我已經成功用ATDTn撥打了電話,但聽不到任何來自接收方的聲音。 我用谷歌搜索,但沒有幫助。 這是語音調制解調器。 我有做錯什么嗎?
這是我的代碼:
if ((m_serialPort != null) && (m_serialPort.IsOpen))
{
SerialPort port = m_serialPort;
string t = port.ReadExisting();
System.Threading.Thread.Sleep(100);
port.WriteLine("AT+FCLASS=8" + "\r");
System.Threading.Thread.Sleep(100);
port.WriteLine("AT+CVHU" + ";\r");
System.Threading.Thread.Sleep(100);
port.WriteLine("AT+CRC=1" + ";\r");
System.Threading.Thread.Sleep(100);
port.WriteLine("AT+CLIP=1" + ";\r");
System.Threading.Thread.Sleep(100);
port.WriteLine("ATM3" + "\r");
System.Threading.Thread.Sleep(500);
string cmd = "ATDT";
string phoneNumber = tocall;
port.WriteLine(cmd + phoneNumber + ";\r");
System.Threading.Thread.Sleep(100);
port.WriteLine("AT^DDSETEX=2" + "\r");
System.Threading.Thread.Sleep(100);
port.WriteLine("AT+VTX");
txtCallStatus.Text = "Calling";
Speak(1, "You are calling " + txtDial.Text);
callchecker.Start();
bCall.Content = "End Call";
cbComPort.IsEnabled = false;
}
有關AT命令的完整列表, 請參見Wikipedia條目 。
有關語音調制解調器命令的完整列表, 請參見Wikipedia條目 。
通常,您要執行以下操作:
1)請求語音調制解調器模式:
AT+FCLASS=8 (on some older modems, use AT#CLS=8 )
2)揚聲器打開,直到檢測到遠程載波/忙碌檢測,然后撥號。
ATm1x3DTxxxxxxx (Where xxxxxxx is phone number.)
注意:根據我的經驗,我總是不得不將它們作為兩個單獨的命令運行
根據您的調制解調器,您可能還需要通過以下方法增加音量:
ATL1, ATL2, or ATL3 (depending on how loud you need it.)
在語音通話中發送DTMF音:
AT+VTS={x,25} (where x = digit to dial)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.