<div dir="ltr">hey bruno<br>once done please send me the patches. please have them split by what they do and not how you<br>made the commits.<br>thank you <br><br><div class="gmail_quote">On Tue, Jan 15, 2013 at 4:51 PM, <span dir="ltr"><<a href="mailto:babbittner@aol.com" target="_blank">babbittner@aol.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font face="arial" color="black">I<font face="arial" color="black"><font face="Arial, Helvetica, sans-serif"> went a different route since I couldn't figure out if the TUN/TAP feature could support the need.<br>
<br>
I hacked the code to make an array of slaves. I've done up to 500 simulated slaves so far. This is on a single IBM ThinkPad T43 (Centrino) running Ubuntu 10.04.4LTS.<br>
<br>
There is a problem with topology detection because the downstream link appears on port 3, but I only enable ports 0 and 1. This doesn't seem to affect the linear topology I'm interested in.<br>
<br>
There is also a problem with LRW command, with the size of the packet and/or the number of slaves so the packet size is wrong and an incorrect area in the packet is written.<br></font></font></font></blockquote><div>hamm.. ok. I'l tell a look once you have the patch ready<br>
<br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font face="arial" color="black"><font face="arial" color="black"><font face="Arial, Helvetica, sans-serif">
I also changed the code to use the bin file of my particular slave of interest. This is not quite complete or generic at this time.<br>
<br>
All the above is sufficient for my internal testing needs. I would be willing to hand this code off after some cleaning with the understanding there would be de-hack-ification and debugging provided by others and re-released. I've also not been doing git updates, so the code may be weeks out of date.<br>
<br>
Thanks for your understanding,<br>
Bruno<br>
</font><div><div class="h5">
<div> <br>
</div>
<div> <br>
</div>
<div> <br>
</div>
<div style="font-size:10pt;font-family:arial,helvetica">-----Original Message-----<br>
From: Shahbaz Youssefi <<a href="mailto:shabbyx@gmail.com" target="_blank">shabbyx@gmail.com</a>><br>
To: rbenyehuda <<a href="mailto:rbenyehuda@manz.com" target="_blank">rbenyehuda@manz.com</a>><br>
Cc: babbittner <<a href="mailto:babbittner@aol.com" target="_blank">babbittner@aol.com</a>>; etherlab-users <<a href="mailto:etherlab-users@etherlab.org" target="_blank">etherlab-users@etherlab.org</a>><br>
Sent: Tue, Jan 15, 2013 4:05 am<br>
Subject: Re: [etherlab-users] Open source virtual Linux Ethercat Slave<br>
<br>
<div>
<div dir="ltr">
<div>
<div>Hi Raz,<br>
<br>
</div>
Is it possible with your software to fake networks with large number of slaves? The way I understand, you should have `ethX` interfaces for your slaves to hook on to. Perhaps you could try <a>babbittner@aol.com</a>'s idea of named pipes and if any of the given parameters (to the user-space one) couldn't be opened, you automatically hook on to a named pipe to transfer the data?<br>
<br>
</div>
This would be very useful to test software targeted to work with large number of slaves, without actually having to buy that many slaves (or network cards!)<br>
<br>
Shahbaz<br>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Mon, Nov 26, 2012 at 8:39 AM, Raz Ben Yehuda <span dir="ltr"><<a>rbenyehuda@manz.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On Mon, 2012-11-26 at 02:35 +0100, <a>babbittner@aol.com</a> wrote:<br>
> I'm attempting to run multiple virtual slaves on one host. I setup a<br>
> TUN/TAP interface via tunctl named tap0. Then I issued the commands:<br>
> ./ecslave tap0 &<br>
> ./ecslave eth0 tap0 &<br>
> but I get a message the tap0 interface is LINK DOWN.<br>
> Possibly I'm misusing the TUN/TAP virtual interfaces?<br>
</div>
user space ecslave checks that /sys/class/net/ethX/operstate is "up".<br>
Do you have this path for tap0 ?<br>
<div><br>
> Alternatively I'd like to use something like named pipes, but I<br>
> believe that would involve modifying the code. If I were to modify<br>
> the code<br>
</div>
This is what open source is all about. i will be happy to adopt your<br>
code.<br>
<div>
<div>> I think I'd add an option to specify the number of slaves to<br>
> virtualize and make an array of slaves internally.<br>
><br>
> Any other ideas?<br>
><br>
> Thanks,<br>
> Bruno<br>
<br>
<br>
<br>
<br>
><br>
><br>
><br>
> -----Original Message-----<br>
> From: Ben Yehuda, Raz <<a>RBenYehuda@manz.com</a>><br>
> To: etherlab-users <<a>etherlab-users@etherlab.org</a>><br>
> Sent: Wed, Nov 21, 2012 2:25 pm<br>
> Subject: [etherlab-users] Open source virtual Linux Ethercat Slave<br>
><br>
> Hello etherlab users<br>
><br>
> I wrote an open source linux virtual ethercat slave.<br>
><br>
> $ git clone git://<a>git.code.sf.net/p/ecslave/code</a> ecslave<br>
><br>
> Ecslave is "tailored" to etherlab and it provides a virtual<br>
> and cheap solution to set up and debug etherlab master application.<br>
><br>
> At the moment ec_slave is user space application, but i am going to add a<br>
> version to kernel mode in the near future.<br>
><br>
> wiki :<br>
> <a>https://sourceforge.net/p/ecslave/wiki/Howto/</a><br>
><br>
> I will be happy for debug and input.<br>
><br>
> raz<br>
><br>
> _______________________________________________<br>
> etherlab-users mailing list<br>
> <a>etherlab-users@etherlab.org</a><br>
> <a>http://lists.etherlab.org/mailman/listinfo/etherlab-users</a><br>
<br>
</div>
</div>
<span><font color="#888888">--<br>
<a>https://sites.google.com/site/ironspeedlinux/</a><br>
</font></span>
<div>
<div><br>
_______________________________________________<br>
etherlab-users mailing list<br>
<a>etherlab-users@etherlab.org</a><br>
<a>http://lists.etherlab.org/mailman/listinfo/etherlab-users</a><br>
</div>
</div>
</blockquote></div>
<br>
</div>
</div>
</div>
</div></div></font></font><br>_______________________________________________<br>
etherlab-users mailing list<br>
<a href="mailto:etherlab-users@etherlab.org">etherlab-users@etherlab.org</a><br>
<a href="http://lists.etherlab.org/mailman/listinfo/etherlab-users" target="_blank">http://lists.etherlab.org/mailman/listinfo/etherlab-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><div><a href="https://sites.google.com/site/ironspeedlinux/" target="_blank">https://sites.google.com/site/ironspeedlinux/</a></div></div>
</div>