UDP 数据包的简易按钮 - 控制板术语

发布于 2024-07-17 22:54:32 字数 1431 浏览 12 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(10

故乡的云 2024-07-24 22:54:32

根据我的经验,任何带有板载以太网外设的微控制器都可能适合您的需求 - 一些制造商在开发板和有限的编译器上比其他制造商做得更好,因此这可能会影响您。 查看 Microchip、TI、Freescale 和 Keil(第三方 - 但很好的工具)。

根据您想要完成的工作量(按照与燃烧时间相反的顺序!):

  • 从任何已经安装了以太网和工作代码示例的人那里购买开发板。
  • 购买带有带以太网外设的 MCU 的开发板,但没有代码示例。
  • 围绕具有以太网外设的 MCU 设计您自己的以太网硬件并进行写入/调试
    您自己的代码和硬件。

只是我的2c! 玩得开心。

ps 并且不要忘记在购买开发板之前测试 IDE。 MCU 开发环境的质量存在巨大差异,这将直接影响您的体验...

In my experience, any microcontroller with an on-board Ethernet peripheral will probably suit your needs - some manufacturers do better deals on dev boards and limited compilers than others, so that may influence you. Check out Microchip, TI, Freescale and Keil (third party - but good tools).

Depending on how much work you want to do (in reverse order of time-to-burn!):

  • Buy a development board from anybody that has Ethernet already on board and working code samples.
  • Buy a development board that has a MCU with an Ethernet peripheral, but no code samples.
  • Design your own Ethernet hardware around a MCU with an Ethernet peripheral and write/debug
    your own code and hardware.

Just my 2c! Have fun.

p.s. And don't forget to test out the IDEs before you buy a dev board. There is a huge difference in quality around MCU development environments and it will directly affect your experience...

囍孤女 2024-07-24 22:54:32

由于您希望使用 .NET(大概是 Windows),我建议您查看 Coding4Fun

以下是他们的一些硬件项目

SInce you wish to use .NET (and presumably Windows) I suggest you take a look at Coding4Fun.

Here are some of their hardware projects.

风铃鹿 2024-07-24 22:54:32

一块 5 美元的 PIC 芯片只需少量的逻辑/功耗就可以做到这一点,请参见 www.microchip.com,根据数量,您可以构建一块板或购买一块。

A $5 PIC chip can do that with a small amount of logic/power, see www.microchip.com, depending on QTY, you can build a board or buy one.

稍尽春風 2024-07-24 22:54:32

更简单、更便宜的方法是使用 Phidg​​ets 之类的东西,而无需学习新语言。

允许您将按钮连接到 phidgets 板,然后将其连接到 USB 端口。 使用 C# 编写通信层。 Phidg​​et 附带一组 .net 库,用于实现与 phidget 板之间的通信。

查看其网站上的 phidget 论坛以获取答案和示例。

Easier and cheaper way would be to use something like Phidgets without learning a new language.

Allows you to connect a button to the phidgets board and then connect it a usb port. Use C# to write your communications layer. Phidget comes with a set of .net libraries to enable communications to and from the phidget board.

Check out the phidget forums on their site for answers and examples.

有深☉意 2024-07-24 22:54:32

我认为最干净的方法是使用几个 XBee 模块。 将其中一个隐藏在 Easy Button 内,将另一个连接到计算机。 当按下按钮时,计算机将收到信号,您可以做任何您喜欢的事情。

I think that the cleanest approach would be with a couple of XBee modules. Hide one of them inside the Easy Button, attach the other to a computer. When the button is pressed the computer will receive a signal and you can do whatever you like.

世态炎凉 2024-07-24 22:54:32

如果您对以太网一心一意,可以使用 XPortWizNet 模块使将以太网添加到基于微控制器的系统变得更加简单。

If you're dead set on Ethernet, modules such as the XPort and WizNet modules make it much simpler to add Ethernet to microcontroller-based systems.

清浅ˋ旧时光 2024-07-24 22:54:32

我也推荐 PIC。 您可能会从 Microchip 获得微型样品。 它们配备了 TCP/IP 堆栈、学生级 C 编译器(无优化)。 您只需要添加电源和以太网插孔即可。

.NET 应用程序需要侦听某个端口上的任何广播数据包。

听起来像是一个简洁的小项目。

I'd recommend the PIC also. You might get samples of the micro from Microchip. They come with a TCP/IP Stack, student level C compiler (no optimizations). You just need to add power and an Ethernet jack.

The .NET app will need to listen for any broadcast packets on a certain port.

Sounds like a neat little project.

稀香 2024-07-24 22:54:32

推荐 XPort:如果您需要以太网,使用起来非常简单。

有关信息,

请查看 Jeremy Bentham 撰写的 TCP-Lean。
他是 IOSoft hardwareHere 的一家公司,

他拥有完整的 TCP/IP 堆栈和 Web 服务器在 PIC 上运行。
包含源代码。
它同样适用于任何其他硬件。
许多人将 PIC 粘贴到旧的 ISA 8 位网卡上。 效果很好。

如果您可以容忍从串行网络开始,那真的很容易做到
使用串行端口和 SLIP 的 Windows“直接计算机到计算机连接”。

要发送数据包,您所需要做的就是发送正确的字节序列。

最涉及的部分是用于设置 SLIP 链接的 Microsoft 客户端-服务器握手。
(普通 SLIP 根本没有呼叫发起)
MS协议(凭记忆)
客户端发送“CLIENT”
作为响应,服务器发送“CLIENTSERVER”。

之后,一个简单的应用程序可以随时发送单个封装的 SLIP 帧 UDP 数据包。
(您实际上并不需要为按钮发送器使用不同的序列号。)

Recommend an XPort: very easy things to use if you need ethernet.

For information

Take a look at TCP-Lean by Jeremy Bentham.
He was a company at IOSoft hardwareHere

He gets a full TCP/IP stack and web server running on a PIC.
Source code is included.
It applies equally well to any other hardware.
MANY people have stuck PIC's onto old ISA 8-bit network cards. works pretty well.

If you could tolerate starting with serial networking, it's really easy to do
Windows "direct-computer-to-computer connection" using a serial port and SLIP.

To send a packet, all you need to do is sent the right sequence of bytes.

The most involved bit is the Microsoft client-server handshake to set up the SLIP link.
(Normal SLIP has no call initaition at all)
MS protocol ( from memory)
Client sends "CLIENT"
in response, the server sends "CLIENTSERVER"

After that, a simple application can send a single canned SLIP-framed UDP packet any time it wants.
(you don't really need a different sequence number forr a button sender.)

饭团 2024-07-24 22:54:32

您需要一个带有廉价/免费开发工具并具有板载以太网硬件的处理器评估板。 我想到的两个例子是 Atmel (AVR32A) 和 Rabbit。

Atmel 提供免费的开发系统,配有 FreeRTOS 端口和以太网演示软件。

Rabbit 附带一个基于 C 语言变体的免费开发环境。 语言扩展在 C 实现中提供了一些内置的多任务功能。

You want an evaluation board for a processor that comes with cheap/free development tools and has onboard ethernet hardware. A couple that spring to mind are from Atmel (AVR32A) and from Rabbit.

Atmel provide a free development system which comes with a FreeRTOS port and ethernet demo software.

The Rabbit comes with a free development environment which is based on a variant of the C language. The language extensions provide some built in multi tasking capability within the C implementation.

橪书 2024-07-24 22:54:32

我在 2008 年对此进行了调查。我发现了一个来自德国的现成按钮,价格约为 90 美元,加上可能昂贵的运费。 我没有为它添加书签,从那以后我就再也找不到它了。 最有可能的是它已经停产了。 我确实找到了这个:

http://www.plasma2002.com/epb/#details

I looked into this in 2008. I found one ready button from Germany, it was some $90 plus probably expensive shipping. I did not bookmark it and I have not been able to find ever since. Most likely it was discontinued. I did find this:

http://www.plasma2002.com/epb/#details

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文