使用 VB.net 创建一个与 arduino 通信的程序
create a program that communicate with the arduino using VB.net
我必须创建一个向arduino发送命令的程序;
该程序必须是客户端,而 arduino 必须是服务器。
所以问题是:启动通信的代码是什么?
P.S。 arduino 显然有一个以太网屏蔽。
我自己没用过 Arduino 但我看了一下 Arduino Playground:
CmdMessenger is a messaging library for the Arduino Platform (and .NET/Mono platform). It uses the serial port as transport layer. To use CmdMessenger, we define a list of command identifiers, then attach callback / handler functions for received messages.
The message format is: Cmd Id, param 1, [...] , param N;
The library gives the following functionality:
- Sending and receiving commands
- Calling of associated functions on received commands
- Sending and receiving zero to many arguments per command
- Sending and receiving of all primary types. This includes bytes, longs, ints, floats and doubles.
- Sending and receiving in plain text form (human readable, robust) or in binary form (efficient)
The library can be downloaded through the Arduino or PlatformIO library manager, or downloaded as a stand-alone package, see the read-me page.
我在 google 上搜索过,我找到了这个 :
对于 Arduino:
https://www.arduino.cc/en/Reference/Ethernet
对于Windows:
我必须创建一个向arduino发送命令的程序; 该程序必须是客户端,而 arduino 必须是服务器。 所以问题是:启动通信的代码是什么? P.S。 arduino 显然有一个以太网屏蔽。
我自己没用过 Arduino 但我看了一下 Arduino Playground:
CmdMessenger is a messaging library for the Arduino Platform (and .NET/Mono platform). It uses the serial port as transport layer. To use CmdMessenger, we define a list of command identifiers, then attach callback / handler functions for received messages.
The message format is: Cmd Id, param 1, [...] , param N;
The library gives the following functionality:
- Sending and receiving commands
- Calling of associated functions on received commands
- Sending and receiving zero to many arguments per command
- Sending and receiving of all primary types. This includes bytes, longs, ints, floats and doubles.
- Sending and receiving in plain text form (human readable, robust) or in binary form (efficient)
The library can be downloaded through the Arduino or PlatformIO library manager, or downloaded as a stand-alone package, see the read-me page.
我在 google 上搜索过,我找到了这个 :
对于 Arduino:
https://www.arduino.cc/en/Reference/Ethernet
对于Windows: