我使用 at-command 来获取来电显示,但只写 ok Ring

Ven*_*sKa 3 c# at-command

我正在使用以下方法来检测CallerID有人打电话的时间。

private void Form1_Load(object sender, EventArgs e)
{
    serialPort1.PortName = "COM3";
    serialPort1.RtsEnable = true;
    serialPort1.BaudRate = 9600;
    serialPort1.DataBits = 8;
    serialPort1.RtsEnable = true;
    serialPort1.Open();
    serialPort1.WriteLine("AT+VCID=1" + System.Environment.NewLine);
}

private void serialPort1_DataReceived(object sender, System.IO.Ports.SerialDataReceivedEventArgs e)
{
    textBox1.Text += serialPort1.ReadLine();
}
Run Code Online (Sandbox Code Playgroud)

我排除了这样的事情:

RING               //On 1st Ring
DATE = xxxxx       //On 2nd Ring
TIME = xxxx
NMBR = xxxxxxxxx

RING               //On 3rd Ring    
RING               //On 4th Ring
Run Code Online (Sandbox Code Playgroud)

但我刚刚:

OK
RING
RING
RING
Run Code Online (Sandbox Code Playgroud)

笔记:

线路支持CallerID

我猜调制解调器CallerID也支持,因为我看到每个传入铃声都有 RING 这个词

已确认:我有来电显示设备,并且已检查过;我确信我有来电显示服务。

Mat*_*dge 6

我相信您需要在您的设备上设置呼叫线路演示。只需发送命令:

AT+CLIP=1
Run Code Online (Sandbox Code Playgroud)

然后您应该看到,当拨打该号码时,将显示以下内容:

+CLIP 1234567890
Run Code Online (Sandbox Code Playgroud)