如何使用C#AT命令执行 [英] how to execute AT commands using c#

查看:230
本文介绍了如何使用C#AT命令执行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何在C#中使用AT + CLCC命令,以及如何监控在控制台的反应? 我试着用以下的code,但并没有得到progress.i已经试过这种因此far.It没有给出任何回应。

I want to know how to use AT+CLCC command in c# and how to monitor responses in a console ? I tried with following code But didn't get progress.i already have tried this so far.It doesn't give any response.

这是我的code:

_serialPort.WriteLine("AT+CLCC");

string responce = "";
responce = responce + _serialPort.ReadLine();

Console.WriteLine("Check this......:" + responce);

我应该怎么办呢?

how should i do it?

推荐答案

我很久以前失去了几天这一点。

I lost a couple of days on this a long time ago.

使用DataReceived事件检索从串行口接收数据。

Use the DataReceived event to receive data from a serial port.

SerialPort.DataReceived事件

这篇关于如何使用C#AT命令执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆