简体   繁体   English

使用AT命令成功拨打电话后,我听不到声音

[英]I can't hear voice after successful calling a number with AT command

I have successfully placed a call with ATDTn but i cant hear anything from the recipient. 我已经成功用ATDTn拨打了电话,但听不到任何来自接收方的声音。 I have googled but no help. 我用谷歌搜索,但没有帮助。 It is a voice modem. 这是语音调制解调器。 Is there anything i am doing wrong? 我有做错什么吗?

This is my code: 这是我的代码:

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;                    
            }           

For a full listing of AT commands, see this wikipedia entry . 有关AT命令的完整列表, 请参见Wikipedia条目
For a full listing of Voice Modem commands, see this wikipedia entry . 有关语音调制解调器命令的完整列表, 请参见Wikipedia条目

In general, you want to do this: 通常,您要执行以下操作:

1) Request voice modem mode: 1)请求语音调制解调器模式:

AT+FCLASS=8  (on some older modems, use AT#CLS=8 )

2) Speaker on until remote carrier detected / busy detection, and dial. 2)扬声器打开,直到检测到远程载波/忙碌检测,然后拨号。

ATm1x3DTxxxxxxx  (Where xxxxxxx is phone number.)

Note: in my experience, I always had to run these as two separate commands 注意:根据我的经验,我总是不得不将它们作为两个单独的命令运行

Depending on your modem, you may also need to increase the volume with: 根据您的调制解调器,您可能还需要通过以下方法增加音量:

ATL1, ATL2, or ATL3 (depending on how loud you need it.)

To send DTMF tones during the voice call: 在语音通话中发送DTMF音:

AT+VTS={x,25}   (where x = digit to dial)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM