Visual Basic express 2010发送命令并接收响应 [英] Visual basic express 2010 send command and receive response

查看:83
本文介绍了Visual Basic express 2010发送命令并接收响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好, 我想通过我的笔记本电脑向usb端口连接的传感器发送命令,并接收传感器的响应。我的问题是,我已经通过许多讨论看到,如果我们发送"AT",命令,我们收到像"OK"这样的回复。
类似地,我想发送一个命令(Say!@)并接收响应,如传感器的版本号。怎么可以这样做?


请指导我...




解决方案


大家好, 我想通过我的笔记本电脑向usb端口连接的传感器发送命令,并接收传感器的响应。


你的意思是'...连接作为使用串口转USB适配器的RS232串口设备?


请参阅:


https://msdn.microsoft.com/en -us /库/ system.io.ports.serialport%28V = vs.110%29.aspx


Hi guys,  I want to send a command to my sensor connected in usb port through my laptop and receive response from the senor. My question is I have seen through many discussions that if we send "AT" Commands, we receive response like "OK". Similarily, I want to send a command (Say !@) and receive response like version number of the sensor. How could this be done?

Please guide me in this..

解决方案

Hi guys,  I want to send a command to my sensor connected in usb port through my laptop and receive response from the senor.

Do you mean '...connected as a RS232 serial device using a serial-to-USB adapter'?

See:

https://msdn.microsoft.com/en-us/library/system.io.ports.serialport%28v=vs.110%29.aspx


这篇关于Visual Basic express 2010发送命令并接收响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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