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.
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.
发布评论
评论(2)
这是可行的,但您需要深入研究网络堆栈的第 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.
首先,我不认为电源线技术太复杂,也许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