如何在WPF应用程序和评估板之间实现USB通信? [英] How can I achieve a USB communication between a WPF application and an evaluation board?

查看:53
本文介绍了如何在WPF应用程序和评估板之间实现USB通信?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正和我的合作伙伴一起开展一个项目,我有桌面应用程序的一部分。我正在创建一个WPF应用程序,它将通过USB电缆将数据(电路板输出值)发送到电路板。我们正在使用STM32F407VG。我已经设计了应用程序的UI。所以,现在,我想实现应用程序和主板之间的通信。首先,我只想通过单击按钮将简单的开/关数据发送到主板上的LED。



我的设备需要是HID设备。此外,如何从库中找到将数据发送到电路板引脚的功能?例如,点亮LED或产生模拟,数字或PWM输出。



我尝试过:



我试图在我的项目中添加一个usblibrary作为参考,但我无法与我的董事会沟通。我不知道从哪里开始。是否有任何教程,或者我应该阅读的内容?我必须遵循哪些选项?使用图书馆?如何开始这个?我很感激能帮助我的任何事情。



提前致谢!

解决方案

一些指针。

Youtube视频



.net Micro Framework实现



WPF你总是可以知道如何做或做什么,但沟通应该通过实现编程语言来解决C#

I am working on a project with my partner, and I have the part of the desktop application. I am creating a WPF Application, which will send data(values of the outputs of the board) to a board through a USB cable. We are using the STM32F407VG. I have already designed the UI of the app. So, now, I want to achieve the communication between the app and the board. At first, I want to send just a simple on/off data to a led on the board, just by clicking a button.

My device need to be a HID device. Moreover, how can find functions from a library which will send data to the board pins? For example, to light up a LED or to produce an analog, digital or PWM output.

What I have tried:

I've tried to add as reference in my project a usblibrary but I couldn't manage to communicate with my board. I don't know where to start from. Is there any tutorial, or something I should read about? What options do I have to follow? Using a library? How to get started with this? I would appreciate anything that could help me.

Thanks in advance!

解决方案

Some pointers.
Youtube video

.net Micro Framework implementation

WPF you can always know how to do or what to do but communication should work out by implementating progamming languages like c#


这篇关于如何在WPF应用程序和评估板之间实现USB通信?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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