在VB.net中接收Arduino Leonardo串行字符串 [英] Receiving Arduino Leonardo Serial string in VB.net
本文介绍了在VB.net中接收Arduino Leonardo串行字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好。
我想做的就是在我的vb.net应用程序上显示一个msgbox,其中包含arduino leonardo通过串口发送的消息。
arduino代码:
无效设置(){
序列号。开始(9600);
}
void loop(){
Serial.write(Hello) );
}
我听说你必须做一些与莱昂纳多不同的事情,尤其是握手过程。 :/
有谁知道我可以使用的vb.net代码?
谢谢
Hello everyone
All I want to do is get a msgbox to show on my vb.net application that contains the message that the arduino leonardo sent via serial.
arduino code:
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.write("Hello");
}
I've heard that you have to do something different with the Leonardo in particular about the handshaking process. :/
Does anyone know of a vb.net code that i can use?
Thanks
推荐答案
使用aruduino,我很确定你需要使用Serial.writeLN(Hello)命令。
和vb。 net你需要找出你的arduino连接的内容。
然后你csn与serialPort建立一个comport连接并使用它与arduino进行通信。
这里是vb.net的一些串行通信指令的链接
链接到串行通信
这是一个对于Arduino方面。 LINK
With aruduino, I am pretty sure you need to use the Serial.writeLN("Hello") Command.
and in vb.net you need to find out what comport your arduino is connected to.
then you csn set up a comport connection with serialPort and use that to communicate to the arduino.
here is a link with some serial comunication instructions for vb.net
Link to serial communications
Here is one for the Arduino side. LINK
这篇关于在VB.net中接收Arduino Leonardo串行字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文