创建网络适配器 - 有多难?

发布于 2024-07-25 19:04:46 字数 1460 浏览 11 评论 0原文

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

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

发布评论

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

评论(2

冰火雁神 2024-08-01 19:04:47

这是可行的,但您需要深入研究网络堆栈的第 2 层,特别是如果您想构建一个微型交换机。 如果您避开第 3 层,您就可以避免必须实现自己的 IP 堆栈,这将是一个很大的痛苦。

我建议首先从上到下充分了解第 2 层的工作原理。 一旦您充分掌握了正在发生的事情,特别是有关以太网规范的内容,那么您就可以担心如何在 Arduino 上做到这一点。 我对 Arduino 没有太多的经验,但我的一个朋友几周前在 FPGA 上实现了第 2 层硬件停止等待协议,所以你至少应该能够让一些东西滚动起来。 不过,除非您有一个相当快的时钟,否则您的速度可能不会超过 10 Mbit。

It's feasible, but you're going to need to delve deep into layer 2 of the network stack, especially if you want to build a tiny switch. If you steer clear of layer 3 you can avoid having to implement your own IP stack which would be a major pain.

I'd recommend starting with fully understanding how layer 2 works, from top to bottom. Once you've got a solid grasp of what's going on, especially with regards to the Ethernet spec, then you can worry about how you'd go about doing that on an Arduino. I don't have that much experience with the Arduino, but a buddy of mine implemented a layer 2 hardware stop-and-wait protocol on an FPGA a few weeks ago, so you should be able to get at least something rolling. you probably won't be able to go any faster than 10 Mbit unless you've got a pretty fast clock, though.

叹倦 2024-08-01 19:04:47

首先,我不认为电源线技术太复杂,也许wi-fi是可能的,即使你必须处理微波频率。

最好的解决方案是正如你所说的找到一个以太网盾,尝试找到一个开放的硬件解决方案(电路图)。 如果你想自己处理,你必须找到一个芯片,有可用的芯片,看看 RS 组件。 可能大多数可用的芯片都是 SMD 的,这意味着焊接它们很痛苦,除非你非常聪明并且有显微镜。

您可以在这里找到芯片或现成的解决方案; http://www.beyondlogic.org/etherip/ip.htm

您可以切换对于 Rabbit Semiconductors 来说,他们有支持以太网的微控制器,但开发套件和编程都更昂贵。

这是一个你可以使用的芯片; http:// /www.wiznet.co.kr/en/pro02.php?&ss[2]=1&page=1&num=102

First of all I wouldn't think about the powserline technology is too complex, may be wi-fi can be possible, even though you have to deal with microwave frequency.

The best solution is as you said to find an Ethernet Shield, try to find an open hardware solution (drawing of the circuit). If you want to deal your own, you have to fnid a chip and threre are available, have a look on RS components. Probably most of the chips available are SMD, which means that is a pain to solder them, unless you are pretty clever and you have a microscope.

You can find a chip or a ready made solution here; http://www.beyondlogic.org/etherip/ip.htm

You could switch to Rabbit semiconductors, they have microcontroller ready with ethernet, but the dev kit is more expensive and the programming too.

This is a chip that you can use; http://www.wiznet.co.kr/en/pro02.php?&ss[2]=1&page=1&num=102

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